@ecan-bi/datav 1.2.32 → 1.2.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +2860 -2677
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +29 -29
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/types/control/checkbox/Checkbox.vue.d.ts +16 -0
- package/types/control/checkbox/index.d.ts +16 -0
- package/types/control/checkbox/props.d.ts +11 -0
- package/types/control/radio/Radio.vue.d.ts +16 -0
- package/types/control/radio/index.d.ts +16 -0
- package/types/control/radio/props.d.ts +11 -0
- package/types/control/select/Select.vue.d.ts +16 -0
- package/types/control/select/index.d.ts +16 -0
- package/types/control/select/props.d.ts +11 -0
- package/types/text/proportion/Proportion.vue.d.ts +16 -0
- package/types/text/proportion/index.d.ts +16 -0
- package/types/text/proportion/props.d.ts +11 -0
- package/types/text/text/Text.vue.d.ts +16 -0
- package/types/text/text/index.d.ts +16 -0
- package/types/text/text/props.d.ts +11 -0
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.2.
|
|
2
|
-
(function(V,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):(V=typeof globalThis<"u"?globalThis:V||self,r(V["@ecan/bi-datav"]={},V.Vue,V["echarts/core"],V.ResizeDetector,V.AntDesignVue,null,null,V.LodashEs,V.Dayjs,V.Axios,V.Mitt,null,null,null,V["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,V["echarts/renderers"],V["echarts/charts"],V["echarts/components"],null,V.Echarts,null,null,V.Xlsx,V.big.js))})(this,function(V,r,qe,ur,ne,Jf,Qf,je,Ne,ai,ii,ed,td,nd,hr,od,rd,ad,id,lt,Ue,he,sd,si,ld,cd,Dt,li){var W0,Z0,K0,Y0;"use strict";function ci(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 fi=ci(si),di=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function ui(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 di.forEach(i=>{a[i]=t(i)}),a}return o()}function hi(e,n,t){let o=null;r.watch([t,e,n],([a,i,l],s,f)=>{a&&i&&l&&(o=qe.throttle(()=>{i.resize()},100),ur.addListener(a,o)),f(()=>{o&&a&&ur.removeListener(a,o)})})}const mi={autoresize:Boolean},gi="ecLoadingOptions";function xi(e,n,t){const o=r.inject(gi,{}),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 yi={loading:Boolean,loadingOptions:Object},fd="",pi=/^on[^a-z]/,vi=e=>pi.test(e);function bi(e){const n={};for(const t in e)vi(t)||(n[t]=e[t]);return n}const Si="x-vue-echarts",wi="ecTheme",Ci="ecInitOptions",ki="ecUpdateOptions",Je=r.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...mi,...yi},inheritAttrs:!1,setup(e,{attrs:n,listeners:t}){const o=r.shallowRef(),a=r.shallowRef(),i=r.shallowRef(),l=r.inject(wi,null),s=r.inject(Ci,null),f=r.inject(ki,null),{autoresize:c,manualUpdate:d,loading:y,loadingOptions:u}=r.toRefs(e),h=r.computed(()=>i.value||e.option||Object.create(null)),g=r.computed(()=>e.theme||r.unref(l)||{}),m=r.computed(()=>e.initOptions||r.unref(s)||{}),p=r.computed(()=>e.updateOptions||r.unref(f)||{}),w=r.computed(()=>bi(n));function x(_){if(a.value||!o.value)return;const E=a.value=qe.init(o.value,g.value,m.value);e.group&&(E.group=e.group);let B=t;B||(B={},Object.keys(n).filter(I=>I.indexOf("on")===0&&I.length>2).forEach(I=>{const O=I.charAt(2).toLowerCase()+I.slice(3);B[O]=n[I]})),Object.keys(B).forEach(I=>{const O=B[I];O&&(I.indexOf("zr:")===0?E.getZr().on(I.slice(3).toLowerCase(),O):E.on(I.toLowerCase(),O))});function C(){if(E&&!E.isDisposed())try{E.resize()}catch(I){if(I.message==="Cannot read property 'get' of undefined")return;throw I}}function k(){E.setOption(_||h.value,p.value)}c.value?r.nextTick(()=>{C(),k()}):k()}function v(_,E){e.manualUpdate&&(i.value=_),a.value?a.value.setOption(_,E||{}):x(_)}function b(){a.value&&(a.value.dispose(),a.value=void 0)}let A=null;r.watch(d,_=>{typeof A=="function"&&(A(),A=null),_||(A=r.watch(()=>e.option,E=>{E&&(a.value?a.value.setOption(E,p.value):x())},{deep:!0}))},{immediate:!0}),r.watch([g,m],()=>{b(),x()},{deep:!0}),r.watchEffect(()=>{e.group&&a.value&&(a.value.group=e.group)});const S=ui(a,x);return xi(a,y,u),hi(a,c,o),r.onMounted(()=>{e.option&&x()}),r.onUnmounted(b),{chart:a,root:o,setOption:v,nonEventAttrs:w,...S}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",r.h(Si,e)}});function ze(e,n){_i(e)&&(e="100%");var t=Ai(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 _i(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Ai(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Ti(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function zt(e){return e<=1?"".concat(Number(e)*100,"%"):e}function nn(e){return e.length===1?"0"+e:String(e)}function Ei(e,n,t){return{r:ze(e,255)*255,g:ze(n,255)*255,b:ze(t,255)*255}}function on(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 Bi(e,n,t){var o,a,i;if(e=ze(e,360),n=ze(n,100),t=ze(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=on(s,l,e+1/3),a=on(s,l,e),i=on(s,l,e-1/3)}return{r:o*255,g:a*255,b:i*255}}function Di(e,n,t){e=ze(e,255),n=ze(n,255),t=ze(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 Ri(e,n,t){e=ze(e,360)*6,n=ze(n,100),t=ze(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],y=[i,i,s,t,t,l][f];return{r:c*255,g:d*255,b:y*255}}function Ii(e,n,t,o){var a=[nn(Math.round(e).toString(16)),nn(Math.round(n).toString(16)),nn(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 mr(e){return Ie(e)/255}function Ie(e){return parseInt(e,16)}var gr={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 Rt(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=Ni(e)),typeof e=="object"&&(Ge(e.r)&&Ge(e.g)&&Ge(e.b)?(n=Ei(e.r,e.g,e.b),l=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ge(e.h)&&Ge(e.s)&&Ge(e.v)?(o=zt(e.s),a=zt(e.v),n=Ri(e.h,o,a),l=!0,s="hsv"):Ge(e.h)&&Ge(e.s)&&Ge(e.l)&&(o=zt(e.s),i=zt(e.l),n=Bi(e.h,o,i),l=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(t=e.a)),t=Ti(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 Li="[-\\+]?\\d+%?",Oi="[-\\+]?\\d*\\.\\d+%?",Qe="(?:".concat(Oi,")|(?:").concat(Li,")"),rn="[\\s|\\(]+(".concat(Qe,")[,|\\s]+(").concat(Qe,")[,|\\s]+(").concat(Qe,")\\s*\\)?"),an="[\\s|\\(]+(".concat(Qe,")[,|\\s]+(").concat(Qe,")[,|\\s]+(").concat(Qe,")[,|\\s]+(").concat(Qe,")\\s*\\)?"),Pe={CSS_UNIT:new RegExp(Qe),rgb:new RegExp("rgb"+rn),rgba:new RegExp("rgba"+an),hsl:new RegExp("hsl"+rn),hsla:new RegExp("hsla"+an),hsv:new RegExp("hsv"+rn),hsva:new RegExp("hsva"+an),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 Ni(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var n=!1;if(gr[e])e=gr[e],n=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t=Pe.rgb.exec(e);return t?{r:t[1],g:t[2],b:t[3]}:(t=Pe.rgba.exec(e),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=Pe.hsl.exec(e),t?{h:t[1],s:t[2],l:t[3]}:(t=Pe.hsla.exec(e),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=Pe.hsv.exec(e),t?{h:t[1],s:t[2],v:t[3]}:(t=Pe.hsva.exec(e),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=Pe.hex8.exec(e),t?{r:Ie(t[1]),g:Ie(t[2]),b:Ie(t[3]),a:mr(t[4]),format:n?"name":"hex8"}:(t=Pe.hex6.exec(e),t?{r:Ie(t[1]),g:Ie(t[2]),b:Ie(t[3]),format:n?"name":"hex"}:(t=Pe.hex4.exec(e),t?{r:Ie(t[1]+t[1]),g:Ie(t[2]+t[2]),b:Ie(t[3]+t[3]),a:mr(t[4]+t[4]),format:n?"name":"hex8"}:(t=Pe.hex3.exec(e),t?{r:Ie(t[1]+t[1]),g:Ie(t[2]+t[2]),b:Ie(t[3]+t[3]),format:n?"name":"hex"}:!1)))))))))}function Ge(e){return!!Pe.CSS_UNIT.exec(String(e))}var Mt=2,xr=.16,zi=.05,Mi=.05,Pi=.15,yr=5,pr=4,Fi=[{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 vr(e){var n=e.r,t=e.g,o=e.b,a=Di(n,t,o);return{h:a.h*360,s:a.s,v:a.v}}function Pt(e){var n=e.r,t=e.g,o=e.b;return"#".concat(Ii(n,t,o,!1))}function Vi(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 br(e,n,t){var o;return Math.round(e.h)>=60&&Math.round(e.h)<=240?o=t?Math.round(e.h)-Mt*n:Math.round(e.h)+Mt*n:o=t?Math.round(e.h)+Mt*n:Math.round(e.h)-Mt*n,o<0?o+=360:o>=360&&(o-=360),o}function Sr(e,n,t){if(e.h===0&&e.s===0)return e.s;var o;return t?o=e.s-xr*n:n===pr?o=e.s+xr:o=e.s+zi*n,o>1&&(o=1),t&&n===yr&&o>.1&&(o=.1),o<.06&&(o=.06),Number(o.toFixed(2))}function wr(e,n,t){var o;return t?o=e.v+Mi*n:o=e.v-Pi*n,o>1&&(o=1),Number(o.toFixed(2))}function sn(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],o=Rt(e),a=yr;a>0;a-=1){var i=vr(o),l=Pt(Rt({h:br(i,a,!0),s:Sr(i,a,!0),v:wr(i,a,!0)}));t.push(l)}t.push(Pt(o));for(var s=1;s<=pr;s+=1){var f=vr(o),c=Pt(Rt({h:br(f,s),s:Sr(f,s),v:wr(f,s)}));t.push(c)}return n.theme==="dark"?Fi.map(function(d){var y=d.index,u=d.opacity,h=Pt(Vi(Rt(n.backgroundColor||"#141414"),Rt(t[y]),u*100));return h}):t}var ln={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"},cn={},fn={};Object.keys(ln).forEach(function(e){cn[e]=sn(ln[e]),cn[e].primary=cn[e][5],fn[e]=sn(ln[e],{theme:"dark",backgroundColor:"#141414"}),fn[e].primary=fn[e][5]});var Cr=[],It=[],qi="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function Hi(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function $i(e,n){if(n=n||{},e===void 0)throw new Error(qi);var t=n.prepend===!0?"prepend":"append",o=n.container!==void 0?n.container:document.querySelector("head"),a=Cr.indexOf(o);a===-1&&(a=Cr.push(o)-1,It[a]={});var i;return It[a]!==void 0&&It[a][t]!==void 0?i=It[a][t]:(i=It[a][t]=Hi(),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 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(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),o.forEach(function(a){ji(e,a,t[a])})}return e}function ji(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Ui(e,n){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(n))}function Gi(e,n){Ui(e,"[@ant-design/icons-vue] ".concat(n))}function _r(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function dn(e,n,t){return t?r.h(e.tag,kr({key:n},t,e.attrs),(e.children||[]).map(function(o,a){return dn(o,"".concat(n,"-").concat(e.tag,"-").concat(a))})):r.h(e.tag,kr({key:n},e.attrs),(e.children||[]).map(function(o,a){return dn(o,"".concat(n,"-").concat(e.tag,"-").concat(a))}))}function Ar(e){return sn(e)[0]}function Tr(e){return e?Array.isArray(e)?e:[e]:[]}var Wi=`
|
|
1
|
+
/*! @ecan-bi/datav@1.2.33 */
|
|
2
|
+
(function(V,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue"),require("echarts/core"),require("resize-detector"),require("ant-design-vue"),require("ant-design-vue/es/spin/style"),require("ant-design-vue/es/skeleton/style"),require("lodash-es"),require("dayjs"),require("axios"),require("mitt"),require("ant-design-vue/es/progress/style"),require("ant-design-vue/es/input/style"),require("ant-design-vue/es/date-picker/style"),require("ant-design-vue/es/date-picker/locale/zh_CN"),require("ant-design-vue/es/button/style"),require("ant-design-vue/es/checkbox/style"),require("ant-design-vue/es/select/style"),require("ant-design-vue/es/tree-select/style"),require("echarts/renderers"),require("echarts/charts"),require("echarts/components"),require("ant-design-vue/es/modal/style"),require("echarts"),require("ant-design-vue/es/table/style"),require("ant-design-vue/es/notification/style"),require("xlsx"),require("big.js")):typeof define=="function"&&define.amd?define(["exports","vue","echarts/core","resize-detector","ant-design-vue","ant-design-vue/es/spin/style","ant-design-vue/es/skeleton/style","lodash-es","dayjs","axios","mitt","ant-design-vue/es/progress/style","ant-design-vue/es/input/style","ant-design-vue/es/date-picker/style","ant-design-vue/es/date-picker/locale/zh_CN","ant-design-vue/es/button/style","ant-design-vue/es/checkbox/style","ant-design-vue/es/select/style","ant-design-vue/es/tree-select/style","echarts/renderers","echarts/charts","echarts/components","ant-design-vue/es/modal/style","echarts","ant-design-vue/es/table/style","ant-design-vue/es/notification/style","xlsx","big.js"],a):(V=typeof globalThis<"u"?globalThis:V||self,a(V["@ecan/bi-datav"]={},V.Vue,V["echarts/core"],V.ResizeDetector,V.AntDesignVue,null,null,V.LodashEs,V.Dayjs,V.Axios,V.Mitt,null,null,null,V["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,V["echarts/renderers"],V["echarts/charts"],V["echarts/components"],null,V.Echarts,null,null,V.Xlsx,V.big.js))})(this,function(V,a,He,ua,ne,Jf,Qf,Ue,Ne,ri,ii,ed,td,nd,ha,od,ad,rd,id,ct,Ge,he,sd,si,ld,cd,Dt,li){var W0,Z0,K0,Y0;"use strict";function ci(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 fi=ci(si),di=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function ui(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 di.forEach(i=>{r[i]=t(i)}),r}return o()}function hi(e,n,t){let o=null;a.watch([t,e,n],([r,i,l],s,f)=>{r&&i&&l&&(o=He.throttle(()=>{i.resize()},100),ua.addListener(r,o)),f(()=>{o&&r&&ua.removeListener(r,o)})})}const mi={autoresize:Boolean},gi="ecLoadingOptions";function xi(e,n,t){const o=a.inject(gi,{}),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 yi={loading:Boolean,loadingOptions:Object},fd="",pi=/^on[^a-z]/,vi=e=>pi.test(e);function bi(e){const n={};for(const t in e)vi(t)||(n[t]=e[t]);return n}const Si="x-vue-echarts",wi="ecTheme",Ci="ecInitOptions",ki="ecUpdateOptions",Qe=a.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...mi,...yi},inheritAttrs:!1,setup(e,{attrs:n,listeners:t}){const o=a.shallowRef(),r=a.shallowRef(),i=a.shallowRef(),l=a.inject(wi,null),s=a.inject(Ci,null),f=a.inject(ki,null),{autoresize:c,manualUpdate:d,loading:p,loadingOptions:u}=a.toRefs(e),h=a.computed(()=>i.value||e.option||Object.create(null)),m=a.computed(()=>e.theme||a.unref(l)||{}),y=a.computed(()=>e.initOptions||a.unref(s)||{}),S=a.computed(()=>e.updateOptions||a.unref(f)||{}),C=a.computed(()=>bi(n));function b(A){if(r.value||!o.value)return;const T=r.value=He.init(o.value,m.value,y.value);e.group&&(T.group=e.group);let E=t;E||(E={},Object.keys(n).filter(R=>R.indexOf("on")===0&&R.length>2).forEach(R=>{const N=R.charAt(2).toLowerCase()+R.slice(3);E[N]=n[R]})),Object.keys(E).forEach(R=>{const N=E[R];N&&(R.indexOf("zr:")===0?T.getZr().on(R.slice(3).toLowerCase(),N):T.on(R.toLowerCase(),N))});function w(){if(T&&!T.isDisposed())try{T.resize()}catch(R){if(R.message==="Cannot read property 'get' of undefined")return;throw R}}function _(){T.setOption(A||h.value,S.value)}c.value?a.nextTick(()=>{w(),_()}):_()}function g(A,T){e.manualUpdate&&(i.value=A),r.value?r.value.setOption(A,T||{}):b(A)}function v(){r.value&&(r.value.dispose(),r.value=void 0)}let k=null;a.watch(d,A=>{typeof k=="function"&&(k(),k=null),A||(k=a.watch(()=>e.option,T=>{T&&(r.value?r.value.setOption(T,S.value):b())},{deep:!0}))},{immediate:!0}),a.watch([m,y],()=>{v(),b()},{deep:!0}),a.watchEffect(()=>{e.group&&r.value&&(r.value.group=e.group)});const x=ui(r,b);return xi(r,p,u),hi(r,c,o),a.onMounted(()=>{e.option&&b()}),a.onUnmounted(v),{chart:r,root:o,setOption:g,nonEventAttrs:C,...x}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",a.h(Si,e)}});function ze(e,n){_i(e)&&(e="100%");var t=Ai(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 _i(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Ai(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Ti(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function zt(e){return e<=1?"".concat(Number(e)*100,"%"):e}function nn(e){return e.length===1?"0"+e:String(e)}function Ei(e,n,t){return{r:ze(e,255)*255,g:ze(n,255)*255,b:ze(t,255)*255}}function on(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 Bi(e,n,t){var o,r,i;if(e=ze(e,360),n=ze(n,100),t=ze(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=on(s,l,e+1/3),r=on(s,l,e),i=on(s,l,e-1/3)}return{r:o*255,g:r*255,b:i*255}}function Di(e,n,t){e=ze(e,255),n=ze(n,255),t=ze(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 Ri(e,n,t){e=ze(e,360)*6,n=ze(n,100),t=ze(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 Ii(e,n,t,o){var r=[nn(Math.round(e).toString(16)),nn(Math.round(n).toString(16)),nn(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 ma(e){return Ie(e)/255}function Ie(e){return parseInt(e,16)}var ga={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 Rt(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=Ni(e)),typeof e=="object"&&(We(e.r)&&We(e.g)&&We(e.b)?(n=Ei(e.r,e.g,e.b),l=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):We(e.h)&&We(e.s)&&We(e.v)?(o=zt(e.s),r=zt(e.v),n=Ri(e.h,o,r),l=!0,s="hsv"):We(e.h)&&We(e.s)&&We(e.l)&&(o=zt(e.s),i=zt(e.l),n=Bi(e.h,o,i),l=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(t=e.a)),t=Ti(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 Li="[-\\+]?\\d+%?",Oi="[-\\+]?\\d*\\.\\d+%?",et="(?:".concat(Oi,")|(?:").concat(Li,")"),an="[\\s|\\(]+(".concat(et,")[,|\\s]+(").concat(et,")[,|\\s]+(").concat(et,")\\s*\\)?"),rn="[\\s|\\(]+(".concat(et,")[,|\\s]+(").concat(et,")[,|\\s]+(").concat(et,")[,|\\s]+(").concat(et,")\\s*\\)?"),Pe={CSS_UNIT:new RegExp(et),rgb:new RegExp("rgb"+an),rgba:new RegExp("rgba"+rn),hsl:new RegExp("hsl"+an),hsla:new RegExp("hsla"+rn),hsv:new RegExp("hsv"+an),hsva:new RegExp("hsva"+rn),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 Ni(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var n=!1;if(ga[e])e=ga[e],n=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t=Pe.rgb.exec(e);return t?{r:t[1],g:t[2],b:t[3]}:(t=Pe.rgba.exec(e),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=Pe.hsl.exec(e),t?{h:t[1],s:t[2],l:t[3]}:(t=Pe.hsla.exec(e),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=Pe.hsv.exec(e),t?{h:t[1],s:t[2],v:t[3]}:(t=Pe.hsva.exec(e),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=Pe.hex8.exec(e),t?{r:Ie(t[1]),g:Ie(t[2]),b:Ie(t[3]),a:ma(t[4]),format:n?"name":"hex8"}:(t=Pe.hex6.exec(e),t?{r:Ie(t[1]),g:Ie(t[2]),b:Ie(t[3]),format:n?"name":"hex"}:(t=Pe.hex4.exec(e),t?{r:Ie(t[1]+t[1]),g:Ie(t[2]+t[2]),b:Ie(t[3]+t[3]),a:ma(t[4]+t[4]),format:n?"name":"hex8"}:(t=Pe.hex3.exec(e),t?{r:Ie(t[1]+t[1]),g:Ie(t[2]+t[2]),b:Ie(t[3]+t[3]),format:n?"name":"hex"}:!1)))))))))}function We(e){return!!Pe.CSS_UNIT.exec(String(e))}var Mt=2,xa=.16,zi=.05,Mi=.05,Pi=.15,ya=5,pa=4,Fi=[{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 va(e){var n=e.r,t=e.g,o=e.b,r=Di(n,t,o);return{h:r.h*360,s:r.s,v:r.v}}function Pt(e){var n=e.r,t=e.g,o=e.b;return"#".concat(Ii(n,t,o,!1))}function Vi(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 ba(e,n,t){var o;return Math.round(e.h)>=60&&Math.round(e.h)<=240?o=t?Math.round(e.h)-Mt*n:Math.round(e.h)+Mt*n:o=t?Math.round(e.h)+Mt*n:Math.round(e.h)-Mt*n,o<0?o+=360:o>=360&&(o-=360),o}function Sa(e,n,t){if(e.h===0&&e.s===0)return e.s;var o;return t?o=e.s-xa*n:n===pa?o=e.s+xa:o=e.s+zi*n,o>1&&(o=1),t&&n===ya&&o>.1&&(o=.1),o<.06&&(o=.06),Number(o.toFixed(2))}function wa(e,n,t){var o;return t?o=e.v+Mi*n:o=e.v-Pi*n,o>1&&(o=1),Number(o.toFixed(2))}function sn(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],o=Rt(e),r=ya;r>0;r-=1){var i=va(o),l=Pt(Rt({h:ba(i,r,!0),s:Sa(i,r,!0),v:wa(i,r,!0)}));t.push(l)}t.push(Pt(o));for(var s=1;s<=pa;s+=1){var f=va(o),c=Pt(Rt({h:ba(f,s),s:Sa(f,s),v:wa(f,s)}));t.push(c)}return n.theme==="dark"?Fi.map(function(d){var p=d.index,u=d.opacity,h=Pt(Vi(Rt(n.backgroundColor||"#141414"),Rt(t[p]),u*100));return h}):t}var ln={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"},cn={},fn={};Object.keys(ln).forEach(function(e){cn[e]=sn(ln[e]),cn[e].primary=cn[e][5],fn[e]=sn(ln[e],{theme:"dark",backgroundColor:"#141414"}),fn[e].primary=fn[e][5]});var Ca=[],It=[],qi="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function Hi(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function $i(e,n){if(n=n||{},e===void 0)throw new Error(qi);var t=n.prepend===!0?"prepend":"append",o=n.container!==void 0?n.container:document.querySelector("head"),r=Ca.indexOf(o);r===-1&&(r=Ca.push(o)-1,It[r]={});var i;return It[r]!==void 0&&It[r][t]!==void 0?i=It[r][t]:(i=It[r][t]=Hi(),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 ka(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){ji(e,r,t[r])})}return e}function ji(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Ui(e,n){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(n))}function Gi(e,n){Ui(e,"[@ant-design/icons-vue] ".concat(n))}function _a(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function dn(e,n,t){return t?a.h(e.tag,ka({key:n},t,e.attrs),(e.children||[]).map(function(o,r){return dn(o,"".concat(n,"-").concat(e.tag,"-").concat(r))})):a.h(e.tag,ka({key:n},e.attrs),(e.children||[]).map(function(o,r){return dn(o,"".concat(n,"-").concat(e.tag,"-").concat(r))}))}function Aa(e){return sn(e)[0]}function Ta(e){return e?Array.isArray(e)?e:[e]:[]}var Wi=`
|
|
3
3
|
.anticon {
|
|
4
4
|
display: inline-block;
|
|
5
5
|
color: inherit;
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
transform: rotate(360deg);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
`,
|
|
57
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function os(e,n){if(e){if(typeof e=="string")return
|
|
58
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fs(e,n){if(e){if(typeof e=="string")return Rr(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 Rr(e,n)}}function Rr(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 ds(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 us(e){if(Array.isArray(e))return e}function Ir(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){hn(e,a,t[a])})}return e}function hn(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function hs(e,n){if(e==null)return{};var t=ms(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 ms(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}Dr("#1890ff");var gt=function(n,t){var o,a=Ir({},n,t.attrs),i=a.class,l=a.icon,s=a.spin,f=a.rotate,c=a.tabindex,d=a.twoToneColor,y=a.onClick,u=hs(a,ss),h=(o={anticon:!0},hn(o,"anticon-".concat(l.name),!!l.name),hn(o,i,i),o),g=s===""||s||l.name==="loading"?"anticon-spin":"",m=c;m===void 0&&y&&(m=-1,u.tabindex=m);var p=f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0,w=Tr(d),x=ls(w,2),v=x[0],b=x[1];return r.createVNode("span",Ir({role:"img","aria-label":l.name},u,{onClick:y,class:h}),[r.createVNode(un,{class:g,icon:l,primaryColor:v,secondaryColor:b,style:p},null)])};gt.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},gt.displayName="AntdIcon",gt.inheritAttrs=!1,gt.getTwoToneColor=is,gt.setTwoToneColor=Dr;const Lr=gt;var gs={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 xs=gs;function Or(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){ys(e,a,t[a])})}return e}function ys(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var mn=function(n,t){var o=Or({},n,t.attrs);return r.createVNode(Lr,Or({},o,{icon:xs}),null)};mn.displayName="CloseOutlined",mn.inheritAttrs=!1;const ps=mn;var vs={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 bs=vs;function Nr(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){Ss(e,a,t[a])})}return e}function Ss(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var gn=function(n,t){var o=Nr({},n,t.attrs);return r.createVNode(Lr,Nr({},o,{icon:bs}),null)};gn.displayName="LoadingOutlined",gn.inheritAttrs=!1;const ws=gn,Cs=r.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:ne.Spin},setup(){return{indicator:r.h(ws,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),dd="",re=(e,n)=>{const t=e.__vccOpts||e;for(const[o,a]of n)t[o]=a;return t},ks={class:"spin-wrapper"};function _s(e,n,t,o,a,i){const l=r.resolveComponent("a-spin");return r.openBlock(),r.createElementBlock("div",ks,[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 xt=re(Cs,[["render",_s]]),As=r.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:ne.Skeleton}});function Ts(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=re(As,[["render",Ts]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const se=(e,n)=>{if(e.install=t=>{for(const o of[e,...Object.values(n??{})])t.component(o.name,o)},n)for(const[t,o]of Object.entries(n))e[t]=o;return e},me={id:"",name:"",keyName:"",type:"",width:"100px",height:"40px",position:"absolute",top:"0px",left:"0px",zIndex:1,rotate:"0deg",isShow:!0,isRender:!0,requestUrl:"",requestMethod:"get",requestHeaders:{},isOpenRequestTimer:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static"},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"},yn=fe(xn),Es=["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=je.without(Es,...n);return r.computed(()=>je.pick(e,t))},pn="EVENT_BUS",ke="GLOBAL_CONFIG",we="GLOBAL_MODEL",Te="REQUEST_MODEL",zr="GLOBAL_TOKEN",Ot="REFRESH_PAGE",Mr="MODAL_MODEL",ct=18,Bs="ygt",Ds=(W0=window==null?void 0:window.config)==null?void 0:W0.indicatorURL;(Z0=window==null?void 0:window.config)!=null&&Z0.uploadPath;const Pr=((K0=window==null?void 0:window.config)==null?void 0:K0.routerBaseURL)||"./",Rs=((Y0=window==null?void 0:window.config)==null?void 0:Y0.erdURL)||"",Ce=(e,n)=>{r.watch(()=>e.id,t=>{const o=r.inject(pn,{onEvent:(a,i)=>{}});t!=null&&t!==""&&o.onEvent(t,n)},{immediate:!0})},ye=e=>{const n=e.events,t=e.id,o=r.inject(pn,{emitEvent:(i,l)=>{}}),{touchEventId:a}=r.inject(ke,{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)}})}},yt=(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 y=e[d],u=y[t]||"",h=y[o]||"",g=y[a]||"";if(i.add(u),l.has(g)){const m=l.get(g);m.push({name:u,value:h,...y}),l.set(g,m)}else l.set(g,[{name:u,value:h,...y}])}const f=Array.from(i),c=[];for(const[d,y]of l)c.push({name:d,data:y});return{dimensions:f,dataset:c}};var ee=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Is(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ls(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 Fr={exports:{}};function Os(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var vn={exports:{}};const Ns=Ls(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Vr;function oe(){return Vr||(Vr=1,function(e,n){(function(t,o){e.exports=o()})(ee,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 ee<"u"&&ee.crypto&&(i=ee.crypto),!i&&typeof Os=="function")try{i=Ns}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 x(){}return function(v){var b;return x.prototype=v,b=new x,x.prototype=null,b}}(),f={},c=f.lib={},d=c.Base=function(){return{extend:function(x){var v=s(this);return x&&v.mixIn(x),(!v.hasOwnProperty("init")||this.init===v.init)&&(v.init=function(){v.$super.init.apply(this,arguments)}),v.init.prototype=v,v.$super=this,v},create:function(){var x=this.extend();return x.init.apply(x,arguments),x},init:function(){},mixIn:function(x){for(var v in x)x.hasOwnProperty(v)&&(this[v]=x[v]);x.hasOwnProperty("toString")&&(this.toString=x.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),y=c.WordArray=d.extend({init:function(x,v){x=this.words=x||[],v!=a?this.sigBytes=v:this.sigBytes=x.length*4},toString:function(x){return(x||h).stringify(this)},concat:function(x){var v=this.words,b=x.words,A=this.sigBytes,S=x.sigBytes;if(this.clamp(),A%4)for(var _=0;_<S;_++){var E=b[_>>>2]>>>24-_%4*8&255;v[A+_>>>2]|=E<<24-(A+_)%4*8}else for(var B=0;B<S;B+=4)v[A+B>>>2]=b[B>>>2];return this.sigBytes+=S,this},clamp:function(){var x=this.words,v=this.sigBytes;x[v>>>2]&=4294967295<<32-v%4*8,x.length=o.ceil(v/4)},clone:function(){var x=d.clone.call(this);return x.words=this.words.slice(0),x},random:function(x){for(var v=[],b=0;b<x;b+=4)v.push(l());return new y.init(v,x)}}),u=f.enc={},h=u.Hex={stringify:function(x){for(var v=x.words,b=x.sigBytes,A=[],S=0;S<b;S++){var _=v[S>>>2]>>>24-S%4*8&255;A.push((_>>>4).toString(16)),A.push((_&15).toString(16))}return A.join("")},parse:function(x){for(var v=x.length,b=[],A=0;A<v;A+=2)b[A>>>3]|=parseInt(x.substr(A,2),16)<<24-A%8*4;return new y.init(b,v/2)}},g=u.Latin1={stringify:function(x){for(var v=x.words,b=x.sigBytes,A=[],S=0;S<b;S++){var _=v[S>>>2]>>>24-S%4*8&255;A.push(String.fromCharCode(_))}return A.join("")},parse:function(x){for(var v=x.length,b=[],A=0;A<v;A++)b[A>>>2]|=(x.charCodeAt(A)&255)<<24-A%4*8;return new y.init(b,v)}},m=u.Utf8={stringify:function(x){try{return decodeURIComponent(escape(g.stringify(x)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(x){return g.parse(unescape(encodeURIComponent(x)))}},p=c.BufferedBlockAlgorithm=d.extend({reset:function(){this._data=new y.init,this._nDataBytes=0},_append:function(x){typeof x=="string"&&(x=m.parse(x)),this._data.concat(x),this._nDataBytes+=x.sigBytes},_process:function(x){var v,b=this._data,A=b.words,S=b.sigBytes,_=this.blockSize,E=_*4,B=S/E;x?B=o.ceil(B):B=o.max((B|0)-this._minBufferSize,0);var C=B*_,k=o.min(C*4,S);if(C){for(var I=0;I<C;I+=_)this._doProcessBlock(A,I);v=A.splice(0,C),b.sigBytes-=k}return new y.init(v,k)},clone:function(){var x=d.clone.call(this);return x._data=this._data.clone(),x},_minBufferSize:0});c.Hasher=p.extend({cfg:d.extend(),init:function(x){this.cfg=this.cfg.extend(x),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(x){return this._append(x),this._process(),this},finalize:function(x){x&&this._append(x);var v=this._doFinalize();return v},blockSize:16,_createHelper:function(x){return function(v,b){return new x.init(b).finalize(v)}},_createHmacHelper:function(x){return function(v,b){return new w.HMAC.init(x,b).finalize(v)}}});var w=f.algo={};return f}(Math);return t})}(vn)),vn.exports}var bn={exports:{}},qr;function qt(){return qr||(qr=1,function(e,n){(function(t,o){e.exports=o(oe())})(ee,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,y=[],u=0;u<d;u++){var h=c[u];y.push(h.high),y.push(h.low)}return s.create(y,this.sigBytes)},clone:function(){for(var c=l.clone.call(this),d=c.words=this.words.slice(0),y=d.length,u=0;u<y;u++)d[u]=d[u].clone();return c}})}(),t})}(bn)),bn.exports}var Sn={exports:{}},Hr;function zs(){return Hr||(Hr=1,function(e,n){(function(t,o){e.exports=o(oe())})(ee,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=[],y=0;y<c;y++)d[y>>>2]|=f[y]<<24-y%4*8;l.call(this,d,c)}else l.apply(this,arguments)};s.prototype=i}}(),t.lib.WordArray})}(Sn)),Sn.exports}var wn={exports:{}},$r;function Ms(){return $r||($r=1,function(e,n){(function(t,o){e.exports=o(oe())})(ee,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,y=[],u=0;u<d;u+=2){var h=c[u>>>2]>>>16-u%4*8&65535;y.push(String.fromCharCode(h))}return y.join("")},parse:function(f){for(var c=f.length,d=[],y=0;y<c;y++)d[y>>>1]|=f.charCodeAt(y)<<16-y%2*16;return i.create(d,c*2)}},l.Utf16LE={stringify:function(f){for(var c=f.words,d=f.sigBytes,y=[],u=0;u<d;u+=2){var h=s(c[u>>>2]>>>16-u%4*8&65535);y.push(String.fromCharCode(h))}return y.join("")},parse:function(f){for(var c=f.length,d=[],y=0;y<c;y++)d[y>>>1]|=s(f.charCodeAt(y)<<16-y%2*16);return i.create(d,c*2)}};function s(f){return f<<8&4278255360|f>>>8&16711935}}(),t.enc.Utf16})}(wn)),wn.exports}var Cn={exports:{}},jr;function pt(){return jr||(jr=1,function(e,n){(function(t,o){e.exports=o(oe())})(ee,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,y=this._map;f.clamp();for(var u=[],h=0;h<d;h+=3)for(var g=c[h>>>2]>>>24-h%4*8&255,m=c[h+1>>>2]>>>24-(h+1)%4*8&255,p=c[h+2>>>2]>>>24-(h+2)%4*8&255,w=g<<16|m<<8|p,x=0;x<4&&h+x*.75<d;x++)u.push(y.charAt(w>>>6*(3-x)&63));var v=y.charAt(64);if(v)for(;u.length%4;)u.push(v);return u.join("")},parse:function(f){var c=f.length,d=this._map,y=this._reverseMap;if(!y){y=this._reverseMap=[];for(var u=0;u<d.length;u++)y[d.charCodeAt(u)]=u}var h=d.charAt(64);if(h){var g=f.indexOf(h);g!==-1&&(c=g)}return s(f,c,y)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function s(f,c,d){for(var y=[],u=0,h=0;h<c;h++)if(h%4){var g=d[f.charCodeAt(h-1)]<<h%4*2,m=d[f.charCodeAt(h)]>>>6-h%4*2,p=g|m;y[u>>>2]|=p<<24-u%4*8,u++}return i.create(y,u)}}(),t.enc.Base64})}(Cn)),Cn.exports}var kn={exports:{}},Ur;function Ps(){return Ur||(Ur=1,function(e,n){(function(t,o){e.exports=o(oe())})(ee,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,y=f.sigBytes,u=c?this._safe_map:this._map;f.clamp();for(var h=[],g=0;g<y;g+=3)for(var m=d[g>>>2]>>>24-g%4*8&255,p=d[g+1>>>2]>>>24-(g+1)%4*8&255,w=d[g+2>>>2]>>>24-(g+2)%4*8&255,x=m<<16|p<<8|w,v=0;v<4&&g+v*.75<y;v++)h.push(u.charAt(x>>>6*(3-v)&63));var b=u.charAt(64);if(b)for(;h.length%4;)h.push(b);return h.join("")},parse:function(f,c=!0){var d=f.length,y=c?this._safe_map:this._map,u=this._reverseMap;if(!u){u=this._reverseMap=[];for(var h=0;h<y.length;h++)u[y.charCodeAt(h)]=h}var g=y.charAt(64);if(g){var m=f.indexOf(g);m!==-1&&(d=m)}return s(f,d,u)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function s(f,c,d){for(var y=[],u=0,h=0;h<c;h++)if(h%4){var g=d[f.charCodeAt(h-1)]<<h%4*2,m=d[f.charCodeAt(h)]>>>6-h%4*2,p=g|m;y[u>>>2]|=p<<24-u%4*8,u++}return i.create(y,u)}}(),t.enc.Base64url})}(kn)),kn.exports}var _n={exports:{}},Gr;function vt(){return Gr||(Gr=1,function(e,n){(function(t,o){e.exports=o(oe())})(ee,function(t){return function(o){var a=t,i=a.lib,l=i.WordArray,s=i.Hasher,f=a.algo,c=[];(function(){for(var m=0;m<64;m++)c[m]=o.abs(o.sin(m+1))*4294967296|0})();var d=f.MD5=s.extend({_doReset:function(){this._hash=new l.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(m,p){for(var w=0;w<16;w++){var x=p+w,v=m[x];m[x]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360}var b=this._hash.words,A=m[p+0],S=m[p+1],_=m[p+2],E=m[p+3],B=m[p+4],C=m[p+5],k=m[p+6],I=m[p+7],O=m[p+8],P=m[p+9],z=m[p+10],F=m[p+11],H=m[p+12],D=m[p+13],L=m[p+14],N=m[p+15],T=b[0],R=b[1],M=b[2],q=b[3];T=y(T,R,M,q,A,7,c[0]),q=y(q,T,R,M,S,12,c[1]),M=y(M,q,T,R,_,17,c[2]),R=y(R,M,q,T,E,22,c[3]),T=y(T,R,M,q,B,7,c[4]),q=y(q,T,R,M,C,12,c[5]),M=y(M,q,T,R,k,17,c[6]),R=y(R,M,q,T,I,22,c[7]),T=y(T,R,M,q,O,7,c[8]),q=y(q,T,R,M,P,12,c[9]),M=y(M,q,T,R,z,17,c[10]),R=y(R,M,q,T,F,22,c[11]),T=y(T,R,M,q,H,7,c[12]),q=y(q,T,R,M,D,12,c[13]),M=y(M,q,T,R,L,17,c[14]),R=y(R,M,q,T,N,22,c[15]),T=u(T,R,M,q,S,5,c[16]),q=u(q,T,R,M,k,9,c[17]),M=u(M,q,T,R,F,14,c[18]),R=u(R,M,q,T,A,20,c[19]),T=u(T,R,M,q,C,5,c[20]),q=u(q,T,R,M,z,9,c[21]),M=u(M,q,T,R,N,14,c[22]),R=u(R,M,q,T,B,20,c[23]),T=u(T,R,M,q,P,5,c[24]),q=u(q,T,R,M,L,9,c[25]),M=u(M,q,T,R,E,14,c[26]),R=u(R,M,q,T,O,20,c[27]),T=u(T,R,M,q,D,5,c[28]),q=u(q,T,R,M,_,9,c[29]),M=u(M,q,T,R,I,14,c[30]),R=u(R,M,q,T,H,20,c[31]),T=h(T,R,M,q,C,4,c[32]),q=h(q,T,R,M,O,11,c[33]),M=h(M,q,T,R,F,16,c[34]),R=h(R,M,q,T,L,23,c[35]),T=h(T,R,M,q,S,4,c[36]),q=h(q,T,R,M,B,11,c[37]),M=h(M,q,T,R,I,16,c[38]),R=h(R,M,q,T,z,23,c[39]),T=h(T,R,M,q,D,4,c[40]),q=h(q,T,R,M,A,11,c[41]),M=h(M,q,T,R,E,16,c[42]),R=h(R,M,q,T,k,23,c[43]),T=h(T,R,M,q,P,4,c[44]),q=h(q,T,R,M,H,11,c[45]),M=h(M,q,T,R,N,16,c[46]),R=h(R,M,q,T,_,23,c[47]),T=g(T,R,M,q,A,6,c[48]),q=g(q,T,R,M,I,10,c[49]),M=g(M,q,T,R,L,15,c[50]),R=g(R,M,q,T,C,21,c[51]),T=g(T,R,M,q,H,6,c[52]),q=g(q,T,R,M,E,10,c[53]),M=g(M,q,T,R,z,15,c[54]),R=g(R,M,q,T,S,21,c[55]),T=g(T,R,M,q,O,6,c[56]),q=g(q,T,R,M,N,10,c[57]),M=g(M,q,T,R,k,15,c[58]),R=g(R,M,q,T,D,21,c[59]),T=g(T,R,M,q,B,6,c[60]),q=g(q,T,R,M,F,10,c[61]),M=g(M,q,T,R,_,15,c[62]),R=g(R,M,q,T,P,21,c[63]),b[0]=b[0]+T|0,b[1]=b[1]+R|0,b[2]=b[2]+M|0,b[3]=b[3]+q|0},_doFinalize:function(){var m=this._data,p=m.words,w=this._nDataBytes*8,x=m.sigBytes*8;p[x>>>5]|=128<<24-x%32;var v=o.floor(w/4294967296),b=w;p[(x+64>>>9<<4)+15]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,p[(x+64>>>9<<4)+14]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,m.sigBytes=(p.length+1)*4,this._process();for(var A=this._hash,S=A.words,_=0;_<4;_++){var E=S[_];S[_]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360}return A},clone:function(){var m=s.clone.call(this);return m._hash=this._hash.clone(),m}});function y(m,p,w,x,v,b,A){var S=m+(p&w|~p&x)+v+A;return(S<<b|S>>>32-b)+p}function u(m,p,w,x,v,b,A){var S=m+(p&x|w&~x)+v+A;return(S<<b|S>>>32-b)+p}function h(m,p,w,x,v,b,A){var S=m+(p^w^x)+v+A;return(S<<b|S>>>32-b)+p}function g(m,p,w,x,v,b,A){var S=m+(w^(p|~x))+v+A;return(S<<b|S>>>32-b)+p}a.MD5=s._createHelper(d),a.HmacMD5=s._createHmacHelper(d)}(Math),t.MD5})}(_n)),_n.exports}var An={exports:{}},Wr;function Tn(){return Wr||(Wr=1,function(e,n){(function(t,o){e.exports=o(oe())})(ee,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,y){for(var u=this._hash.words,h=u[0],g=u[1],m=u[2],p=u[3],w=u[4],x=0;x<80;x++){if(x<16)f[x]=d[y+x]|0;else{var v=f[x-3]^f[x-8]^f[x-14]^f[x-16];f[x]=v<<1|v>>>31}var b=(h<<5|h>>>27)+w+f[x];x<20?b+=(g&m|~g&p)+1518500249:x<40?b+=(g^m^p)+1859775393:x<60?b+=(g&m|g&p|m&p)-1894007588:b+=(g^m^p)-899497514,w=p,p=m,m=g<<30|g>>>2,g=h,h=b}u[0]=u[0]+h|0,u[1]=u[1]+g|0,u[2]=u[2]+m|0,u[3]=u[3]+p|0,u[4]=u[4]+w|0},_doFinalize:function(){var d=this._data,y=d.words,u=this._nDataBytes*8,h=d.sigBytes*8;return y[h>>>5]|=128<<24-h%32,y[(h+64>>>9<<4)+14]=Math.floor(u/4294967296),y[(h+64>>>9<<4)+15]=u,d.sigBytes=y.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})}(An)),An.exports}var En={exports:{}},Zr;function Kr(){return Zr||(Zr=1,function(e,n){(function(t,o){e.exports=o(oe())})(ee,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(w){for(var x=o.sqrt(w),v=2;v<=x;v++)if(!(w%v))return!1;return!0}function g(w){return(w-(w|0))*4294967296|0}for(var m=2,p=0;p<64;)h(m)&&(p<8&&(c[p]=g(o.pow(m,1/2))),d[p]=g(o.pow(m,1/3)),p++),m++})();var y=[],u=f.SHA256=s.extend({_doReset:function(){this._hash=new l.init(c.slice(0))},_doProcessBlock:function(h,g){for(var m=this._hash.words,p=m[0],w=m[1],x=m[2],v=m[3],b=m[4],A=m[5],S=m[6],_=m[7],E=0;E<64;E++){if(E<16)y[E]=h[g+E]|0;else{var B=y[E-15],C=(B<<25|B>>>7)^(B<<14|B>>>18)^B>>>3,k=y[E-2],I=(k<<15|k>>>17)^(k<<13|k>>>19)^k>>>10;y[E]=C+y[E-7]+I+y[E-16]}var O=b&A^~b&S,P=p&w^p&x^w&x,z=(p<<30|p>>>2)^(p<<19|p>>>13)^(p<<10|p>>>22),F=(b<<26|b>>>6)^(b<<21|b>>>11)^(b<<7|b>>>25),H=_+F+O+d[E]+y[E],D=z+P;_=S,S=A,A=b,b=v+H|0,v=x,x=w,w=p,p=H+D|0}m[0]=m[0]+p|0,m[1]=m[1]+w|0,m[2]=m[2]+x|0,m[3]=m[3]+v|0,m[4]=m[4]+b|0,m[5]=m[5]+A|0,m[6]=m[6]+S|0,m[7]=m[7]+_|0},_doFinalize:function(){var h=this._data,g=h.words,m=this._nDataBytes*8,p=h.sigBytes*8;return g[p>>>5]|=128<<24-p%32,g[(p+64>>>9<<4)+14]=o.floor(m/4294967296),g[(p+64>>>9<<4)+15]=m,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})}(En)),En.exports}var Bn={exports:{}},Yr;function Fs(){return Yr||(Yr=1,function(e,n){(function(t,o,a){e.exports=o(oe(),Kr())})(ee,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})}(Bn)),Bn.exports}var Dn={exports:{}},Xr;function Jr(){return Xr||(Xr=1,function(e,n){(function(t,o,a){e.exports=o(oe(),qt())})(ee,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 y=[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,m){for(var p=this._hash.words,w=p[0],x=p[1],v=p[2],b=p[3],A=p[4],S=p[5],_=p[6],E=p[7],B=w.high,C=w.low,k=x.high,I=x.low,O=v.high,P=v.low,z=b.high,F=b.low,H=A.high,D=A.low,L=S.high,N=S.low,T=_.high,R=_.low,M=E.high,q=E.low,G=B,Y=C,J=k,W=I,de=O,ve=P,it=z,Ze=F,Ae=H,Se=D,$e=L,Ke=N,Ye=T,Bt=R,j=M,U=q,K=0;K<80;K++){var X,Z,ae=u[K];if(K<16)Z=ae.high=g[m+K*2]|0,X=ae.low=g[m+K*2+1]|0;else{var ie=u[K-15],le=ie.high,ce=ie.low,ge=(le>>>1|ce<<31)^(le>>>8|ce<<24)^le>>>7,Ve=(ce>>>1|le<<31)^(ce>>>8|le<<24)^(ce>>>7|le<<25),De=u[K-2],Ee=De.high,Xe=De.low,en=(Ee>>>19|Xe<<13)^(Ee<<3|Xe>>>29)^Ee>>>6,tn=(Xe>>>19|Ee<<13)^(Xe<<3|Ee>>>29)^(Xe>>>6|Ee<<26),X0=u[K-7],qf=X0.high,Hf=X0.low,J0=u[K-16],$f=J0.high,Q0=J0.low;X=Ve+Hf,Z=ge+qf+(X>>>0<Ve>>>0?1:0),X=X+tn,Z=Z+en+(X>>>0<tn>>>0?1:0),X=X+Q0,Z=Z+$f+(X>>>0<Q0>>>0?1:0),ae.high=Z,ae.low=X}var jf=Ae&$e^~Ae&Ye,ei=Se&Ke^~Se&Bt,Uf=G&J^G&de^J&de,Gf=Y&W^Y&ve^W&ve,Wf=(G>>>28|Y<<4)^(G<<30|Y>>>2)^(G<<25|Y>>>7),ti=(Y>>>28|G<<4)^(Y<<30|G>>>2)^(Y<<25|G>>>7),Zf=(Ae>>>14|Se<<18)^(Ae>>>18|Se<<14)^(Ae<<23|Se>>>9),Kf=(Se>>>14|Ae<<18)^(Se>>>18|Ae<<14)^(Se<<23|Ae>>>9),ni=y[K],Yf=ni.high,oi=ni.low,Oe=U+Kf,st=j+Zf+(Oe>>>0<U>>>0?1:0),Oe=Oe+ei,st=st+jf+(Oe>>>0<ei>>>0?1:0),Oe=Oe+oi,st=st+Yf+(Oe>>>0<oi>>>0?1:0),Oe=Oe+X,st=st+Z+(Oe>>>0<X>>>0?1:0),ri=ti+Gf,Xf=Wf+Uf+(ri>>>0<ti>>>0?1:0);j=Ye,U=Bt,Ye=$e,Bt=Ke,$e=Ae,Ke=Se,Se=Ze+Oe|0,Ae=it+st+(Se>>>0<Ze>>>0?1:0)|0,it=de,Ze=ve,de=J,ve=W,J=G,W=Y,Y=Oe+ri|0,G=st+Xf+(Y>>>0<Oe>>>0?1:0)|0}C=w.low=C+Y,w.high=B+G+(C>>>0<Y>>>0?1:0),I=x.low=I+W,x.high=k+J+(I>>>0<W>>>0?1:0),P=v.low=P+ve,v.high=O+de+(P>>>0<ve>>>0?1:0),F=b.low=F+Ze,b.high=z+it+(F>>>0<Ze>>>0?1:0),D=A.low=D+Se,A.high=H+Ae+(D>>>0<Se>>>0?1:0),N=S.low=N+Ke,S.high=L+$e+(N>>>0<Ke>>>0?1:0),R=_.low=R+Bt,_.high=T+Ye+(R>>>0<Bt>>>0?1:0),q=E.low=q+U,E.high=M+j+(q>>>0<U>>>0?1:0)},_doFinalize:function(){var g=this._data,m=g.words,p=this._nDataBytes*8,w=g.sigBytes*8;m[w>>>5]|=128<<24-w%32,m[(w+128>>>10<<5)+30]=Math.floor(p/4294967296),m[(w+128>>>10<<5)+31]=p,g.sigBytes=m.length*4,this._process();var x=this._hash.toX32();return x},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})}(Dn)),Dn.exports}var Rn={exports:{}},Qr;function Vs(){return Qr||(Qr=1,function(e,n){(function(t,o,a){e.exports=o(oe(),qt(),Jr())})(ee,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})}(Rn)),Rn.exports}var In={exports:{}},ea;function qs(){return ea||(ea=1,function(e,n){(function(t,o,a){e.exports=o(oe(),qt())})(ee,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,y=[],u=[],h=[];(function(){for(var p=1,w=0,x=0;x<24;x++){y[p+5*w]=(x+1)*(x+2)/2%64;var v=w%5,b=(2*p+3*w)%5;p=v,w=b}for(var p=0;p<5;p++)for(var w=0;w<5;w++)u[p+5*w]=w+(2*p+3*w)%5*5;for(var A=1,S=0;S<24;S++){for(var _=0,E=0,B=0;B<7;B++){if(A&1){var C=(1<<B)-1;C<32?E^=1<<C:_^=1<<C-32}A&128?A=A<<1^113:A<<=1}h[S]=c.create(_,E)}})();var g=[];(function(){for(var p=0;p<25;p++)g[p]=c.create()})();var m=d.SHA3=s.extend({cfg:s.cfg.extend({outputLength:512}),_doReset:function(){for(var p=this._state=[],w=0;w<25;w++)p[w]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(p,w){for(var x=this._state,v=this.blockSize/2,b=0;b<v;b++){var A=p[w+2*b],S=p[w+2*b+1];A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360;var _=x[b];_.high^=S,_.low^=A}for(var E=0;E<24;E++){for(var B=0;B<5;B++){for(var C=0,k=0,I=0;I<5;I++){var _=x[B+5*I];C^=_.high,k^=_.low}var O=g[B];O.high=C,O.low=k}for(var B=0;B<5;B++)for(var P=g[(B+4)%5],z=g[(B+1)%5],F=z.high,H=z.low,C=P.high^(F<<1|H>>>31),k=P.low^(H<<1|F>>>31),I=0;I<5;I++){var _=x[B+5*I];_.high^=C,_.low^=k}for(var D=1;D<25;D++){var C,k,_=x[D],L=_.high,N=_.low,T=y[D];T<32?(C=L<<T|N>>>32-T,k=N<<T|L>>>32-T):(C=N<<T-32|L>>>64-T,k=L<<T-32|N>>>64-T);var R=g[u[D]];R.high=C,R.low=k}var M=g[0],q=x[0];M.high=q.high,M.low=q.low;for(var B=0;B<5;B++)for(var I=0;I<5;I++){var D=B+5*I,_=x[D],G=g[D],Y=g[(B+1)%5+5*I],J=g[(B+2)%5+5*I];_.high=G.high^~Y.high&J.high,_.low=G.low^~Y.low&J.low}var _=x[0],W=h[E];_.high^=W.high,_.low^=W.low}},_doFinalize:function(){var p=this._data,w=p.words;this._nDataBytes*8;var x=p.sigBytes*8,v=this.blockSize*32;w[x>>>5]|=1<<24-x%32,w[(o.ceil((x+1)/v)*v>>>5)-1]|=128,p.sigBytes=w.length*4,this._process();for(var b=this._state,A=this.cfg.outputLength/8,S=A/8,_=[],E=0;E<S;E++){var B=b[E],C=B.high,k=B.low;C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,k=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360,_.push(k),_.push(C)}return new l.init(_,A)},clone:function(){for(var p=s.clone.call(this),w=p._state=this._state.slice(0),x=0;x<25;x++)w[x]=w[x].clone();return p}});a.SHA3=s._createHelper(m),a.HmacSHA3=s._createHmacHelper(m)}(Math),t.SHA3})}(In)),In.exports}var Ln={exports:{}},ta;function Hs(){return ta||(ta=1,function(e,n){(function(t,o){e.exports=o(oe())})(ee,function(t){/** @preserve
|
|
56
|
+
`,Ea=!1,Zi=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Wi;a.nextTick(function(){Ea||(typeof window<"u"&&window.document&&window.document.documentElement&&$i(n,{prepend:!0}),Ea=!0)})},Ki=["icon","primaryColor","secondaryColor"];function Yi(e,n){if(e==null)return{};var t=Xi(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 Xi(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 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(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.forEach(function(r){Ji(e,r,t[r])})}return e}function Ji(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var Lt={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Qi(e){var n=e.primaryColor,t=e.secondaryColor;Lt.primaryColor=n,Lt.secondaryColor=t||Aa(n),Lt.calculated=!!t}function es(){return Ft({},Lt)}var gt=function(n,t){var o=Ft({},n,t.attrs),r=o.icon,i=o.primaryColor,l=o.secondaryColor,s=Yi(o,Ki),f=Lt;if(i&&(f={primaryColor:i,secondaryColor:l||Aa(i)}),Zi(),Gi(_a(r),"icon should be icon definiton, but got ".concat(r)),!_a(r))return null;var c=r;return c&&typeof c.icon=="function"&&(c=Ft({},c,{icon:c.icon(f.primaryColor,f.secondaryColor)})),dn(c.icon,"svg-".concat(c.name),Ft({},s,{"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};gt.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},gt.inheritAttrs=!1,gt.displayName="IconBase",gt.getTwoToneColors=es,gt.setTwoToneColors=Qi;const un=gt;function ts(e,n){return rs(e)||as(e,n)||os(e,n)||ns()}function ns(){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 os(e,n){if(e){if(typeof e=="string")return Ba(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 Ba(e,n)}}function Ba(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 as(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 rs(e){if(Array.isArray(e))return e}function Da(e){var n=Ta(e),t=ts(n,2),o=t[0],r=t[1];return un.setTwoToneColors({primaryColor:o,secondaryColor:r})}function is(){var e=un.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var ss=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function ls(e,n){return us(e)||ds(e,n)||fs(e,n)||cs()}function cs(){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 fs(e,n){if(e){if(typeof e=="string")return Ra(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 Ra(e,n)}}function Ra(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 ds(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 us(e){if(Array.isArray(e))return e}function Ia(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){hn(e,r,t[r])})}return e}function hn(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function hs(e,n){if(e==null)return{};var t=ms(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 ms(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}Da("#1890ff");var xt=function(n,t){var o,r=Ia({},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=hs(r,ss),h=(o={anticon:!0},hn(o,"anticon-".concat(l.name),!!l.name),hn(o,i,i),o),m=s===""||s||l.name==="loading"?"anticon-spin":"",y=c;y===void 0&&p&&(y=-1,u.tabindex=y);var S=f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0,C=Ta(d),b=ls(C,2),g=b[0],v=b[1];return a.createVNode("span",Ia({role:"img","aria-label":l.name},u,{onClick:p,class:h}),[a.createVNode(un,{class:m,icon:l,primaryColor:g,secondaryColor:v,style:S},null)])};xt.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},xt.displayName="AntdIcon",xt.inheritAttrs=!1,xt.getTwoToneColor=is,xt.setTwoToneColor=Da;const La=xt;var gs={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 xs=gs;function Oa(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){ys(e,r,t[r])})}return e}function ys(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var mn=function(n,t){var o=Oa({},n,t.attrs);return a.createVNode(La,Oa({},o,{icon:xs}),null)};mn.displayName="CloseOutlined",mn.inheritAttrs=!1;const ps=mn;var vs={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 bs=vs;function Na(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){Ss(e,r,t[r])})}return e}function Ss(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var gn=function(n,t){var o=Na({},n,t.attrs);return a.createVNode(La,Na({},o,{icon:bs}),null)};gn.displayName="LoadingOutlined",gn.inheritAttrs=!1;const ws=gn,Cs=a.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:ne.Spin},setup(){return{indicator:a.h(ws,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),dd="",ae=(e,n)=>{const t=e.__vccOpts||e;for(const[o,r]of n)t[o]=r;return t},ks={class:"spin-wrapper"};function _s(e,n,t,o,r,i){const l=a.resolveComponent("a-spin");return a.openBlock(),a.createElementBlock("div",ks,[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 yt=ae(Cs,[["render",_s]]),As=a.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:ne.Skeleton}});function Ts(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 Vt=ae(As,[["render",Ts]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const se=(e,n)=>{if(e.install=t=>{for(const o of[e,...Object.values(n??{})])t.component(o.name,o)},n)for(const[t,o]of Object.entries(n))e[t]=o;return e},me={id:"",name:"",keyName:"",type:"",width:"100px",height:"40px",position:"absolute",top:"0px",left:"0px",zIndex:1,rotate:"0deg",isShow:!0,isRender:!0,requestUrl:"",requestMethod:"get",requestHeaders:{},isOpenRequestTimer:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static"},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"},yn=fe(xn),Es=["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=Ue.without(Es,...n);return a.computed(()=>Ue.pick(e,t))},pn="EVENT_BUS",ke="GLOBAL_CONFIG",we="GLOBAL_MODEL",Te="REQUEST_MODEL",za="GLOBAL_TOKEN",Ot="REFRESH_PAGE",Ma="MODAL_MODEL",ft=18,Bs="ygt",Ds=(W0=window==null?void 0:window.config)==null?void 0:W0.indicatorURL;(Z0=window==null?void 0:window.config)!=null&&Z0.uploadPath;const Pa=((K0=window==null?void 0:window.config)==null?void 0:K0.routerBaseURL)||"./",Rs=((Y0=window==null?void 0:window.config)==null?void 0:Y0.erdURL)||"",Ce=(e,n)=>{a.watch(()=>e.id,t=>{const o=a.inject(pn,{onEvent:(r,i)=>{}});t!=null&&t!==""&&o.onEvent(t,n)},{immediate:!0})},ye=e=>{const n=e.events,t=e.id,o=a.inject(pn,{emitEvent:(i,l)=>{}}),{touchEventId:r}=a.inject(ke,{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)}})}},pt=(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]||"",h=p[o]||"",m=p[r]||"";if(i.add(u),l.has(m)){const y=l.get(m);y.push({name:u,value:h,...p}),l.set(m,y)}else l.set(m,[{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 ee=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Is(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ls(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 Fa={exports:{}};function Os(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var vn={exports:{}};const Ns=Ls(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Va;function oe(){return Va||(Va=1,function(e,n){(function(t,o){e.exports=o()})(ee,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 ee<"u"&&ee.crypto&&(i=ee.crypto),!i&&typeof Os=="function")try{i=Ns}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 b(){}return function(g){var v;return b.prototype=g,v=new b,b.prototype=null,v}}(),f={},c=f.lib={},d=c.Base=function(){return{extend:function(b){var g=s(this);return b&&g.mixIn(b),(!g.hasOwnProperty("init")||this.init===g.init)&&(g.init=function(){g.$super.init.apply(this,arguments)}),g.init.prototype=g,g.$super=this,g},create:function(){var b=this.extend();return b.init.apply(b,arguments),b},init:function(){},mixIn:function(b){for(var g in b)b.hasOwnProperty(g)&&(this[g]=b[g]);b.hasOwnProperty("toString")&&(this.toString=b.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),p=c.WordArray=d.extend({init:function(b,g){b=this.words=b||[],g!=r?this.sigBytes=g:this.sigBytes=b.length*4},toString:function(b){return(b||h).stringify(this)},concat:function(b){var g=this.words,v=b.words,k=this.sigBytes,x=b.sigBytes;if(this.clamp(),k%4)for(var A=0;A<x;A++){var T=v[A>>>2]>>>24-A%4*8&255;g[k+A>>>2]|=T<<24-(k+A)%4*8}else for(var E=0;E<x;E+=4)g[k+E>>>2]=v[E>>>2];return this.sigBytes+=x,this},clamp:function(){var b=this.words,g=this.sigBytes;b[g>>>2]&=4294967295<<32-g%4*8,b.length=o.ceil(g/4)},clone:function(){var b=d.clone.call(this);return b.words=this.words.slice(0),b},random:function(b){for(var g=[],v=0;v<b;v+=4)g.push(l());return new p.init(g,b)}}),u=f.enc={},h=u.Hex={stringify:function(b){for(var g=b.words,v=b.sigBytes,k=[],x=0;x<v;x++){var A=g[x>>>2]>>>24-x%4*8&255;k.push((A>>>4).toString(16)),k.push((A&15).toString(16))}return k.join("")},parse:function(b){for(var g=b.length,v=[],k=0;k<g;k+=2)v[k>>>3]|=parseInt(b.substr(k,2),16)<<24-k%8*4;return new p.init(v,g/2)}},m=u.Latin1={stringify:function(b){for(var g=b.words,v=b.sigBytes,k=[],x=0;x<v;x++){var A=g[x>>>2]>>>24-x%4*8&255;k.push(String.fromCharCode(A))}return k.join("")},parse:function(b){for(var g=b.length,v=[],k=0;k<g;k++)v[k>>>2]|=(b.charCodeAt(k)&255)<<24-k%4*8;return new p.init(v,g)}},y=u.Utf8={stringify:function(b){try{return decodeURIComponent(escape(m.stringify(b)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(b){return m.parse(unescape(encodeURIComponent(b)))}},S=c.BufferedBlockAlgorithm=d.extend({reset:function(){this._data=new p.init,this._nDataBytes=0},_append:function(b){typeof b=="string"&&(b=y.parse(b)),this._data.concat(b),this._nDataBytes+=b.sigBytes},_process:function(b){var g,v=this._data,k=v.words,x=v.sigBytes,A=this.blockSize,T=A*4,E=x/T;b?E=o.ceil(E):E=o.max((E|0)-this._minBufferSize,0);var w=E*A,_=o.min(w*4,x);if(w){for(var R=0;R<w;R+=A)this._doProcessBlock(k,R);g=k.splice(0,w),v.sigBytes-=_}return new p.init(g,_)},clone:function(){var b=d.clone.call(this);return b._data=this._data.clone(),b},_minBufferSize:0});c.Hasher=S.extend({cfg:d.extend(),init:function(b){this.cfg=this.cfg.extend(b),this.reset()},reset:function(){S.reset.call(this),this._doReset()},update:function(b){return this._append(b),this._process(),this},finalize:function(b){b&&this._append(b);var g=this._doFinalize();return g},blockSize:16,_createHelper:function(b){return function(g,v){return new b.init(v).finalize(g)}},_createHmacHelper:function(b){return function(g,v){return new C.HMAC.init(b,v).finalize(g)}}});var C=f.algo={};return f}(Math);return t})}(vn)),vn.exports}var bn={exports:{}},qa;function qt(){return qa||(qa=1,function(e,n){(function(t,o){e.exports=o(oe())})(ee,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 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})}(bn)),bn.exports}var Sn={exports:{}},Ha;function zs(){return Ha||(Ha=1,function(e,n){(function(t,o){e.exports=o(oe())})(ee,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})}(Sn)),Sn.exports}var wn={exports:{}},$a;function Ms(){return $a||($a=1,function(e,n){(function(t,o){e.exports=o(oe())})(ee,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 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})}(wn)),wn.exports}var Cn={exports:{}},ja;function vt(){return ja||(ja=1,function(e,n){(function(t,o){e.exports=o(oe())})(ee,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=[],h=0;h<d;h+=3)for(var m=c[h>>>2]>>>24-h%4*8&255,y=c[h+1>>>2]>>>24-(h+1)%4*8&255,S=c[h+2>>>2]>>>24-(h+2)%4*8&255,C=m<<16|y<<8|S,b=0;b<4&&h+b*.75<d;b++)u.push(p.charAt(C>>>6*(3-b)&63));var g=p.charAt(64);if(g)for(;u.length%4;)u.push(g);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 m=f.indexOf(h);m!==-1&&(c=m)}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 m=d[f.charCodeAt(h-1)]<<h%4*2,y=d[f.charCodeAt(h)]>>>6-h%4*2,S=m|y;p[u>>>2]|=S<<24-u%4*8,u++}return i.create(p,u)}}(),t.enc.Base64})}(Cn)),Cn.exports}var kn={exports:{}},Ua;function Ps(){return Ua||(Ua=1,function(e,n){(function(t,o){e.exports=o(oe())})(ee,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 h=[],m=0;m<p;m+=3)for(var y=d[m>>>2]>>>24-m%4*8&255,S=d[m+1>>>2]>>>24-(m+1)%4*8&255,C=d[m+2>>>2]>>>24-(m+2)%4*8&255,b=y<<16|S<<8|C,g=0;g<4&&m+g*.75<p;g++)h.push(u.charAt(b>>>6*(3-g)&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 m=p.charAt(64);if(m){var y=f.indexOf(m);y!==-1&&(d=y)}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 m=d[f.charCodeAt(h-1)]<<h%4*2,y=d[f.charCodeAt(h)]>>>6-h%4*2,S=m|y;p[u>>>2]|=S<<24-u%4*8,u++}return i.create(p,u)}}(),t.enc.Base64url})}(kn)),kn.exports}var _n={exports:{}},Ga;function bt(){return Ga||(Ga=1,function(e,n){(function(t,o){e.exports=o(oe())})(ee,function(t){return function(o){var r=t,i=r.lib,l=i.WordArray,s=i.Hasher,f=r.algo,c=[];(function(){for(var y=0;y<64;y++)c[y]=o.abs(o.sin(y+1))*4294967296|0})();var d=f.MD5=s.extend({_doReset:function(){this._hash=new l.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(y,S){for(var C=0;C<16;C++){var b=S+C,g=y[b];y[b]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360}var v=this._hash.words,k=y[S+0],x=y[S+1],A=y[S+2],T=y[S+3],E=y[S+4],w=y[S+5],_=y[S+6],R=y[S+7],N=y[S+8],F=y[S+9],D=y[S+10],M=y[S+11],H=y[S+12],I=y[S+13],O=y[S+14],z=y[S+15],B=v[0],L=v[1],P=v[2],q=v[3];B=p(B,L,P,q,k,7,c[0]),q=p(q,B,L,P,x,12,c[1]),P=p(P,q,B,L,A,17,c[2]),L=p(L,P,q,B,T,22,c[3]),B=p(B,L,P,q,E,7,c[4]),q=p(q,B,L,P,w,12,c[5]),P=p(P,q,B,L,_,17,c[6]),L=p(L,P,q,B,R,22,c[7]),B=p(B,L,P,q,N,7,c[8]),q=p(q,B,L,P,F,12,c[9]),P=p(P,q,B,L,D,17,c[10]),L=p(L,P,q,B,M,22,c[11]),B=p(B,L,P,q,H,7,c[12]),q=p(q,B,L,P,I,12,c[13]),P=p(P,q,B,L,O,17,c[14]),L=p(L,P,q,B,z,22,c[15]),B=u(B,L,P,q,x,5,c[16]),q=u(q,B,L,P,_,9,c[17]),P=u(P,q,B,L,M,14,c[18]),L=u(L,P,q,B,k,20,c[19]),B=u(B,L,P,q,w,5,c[20]),q=u(q,B,L,P,D,9,c[21]),P=u(P,q,B,L,z,14,c[22]),L=u(L,P,q,B,E,20,c[23]),B=u(B,L,P,q,F,5,c[24]),q=u(q,B,L,P,O,9,c[25]),P=u(P,q,B,L,T,14,c[26]),L=u(L,P,q,B,N,20,c[27]),B=u(B,L,P,q,I,5,c[28]),q=u(q,B,L,P,A,9,c[29]),P=u(P,q,B,L,R,14,c[30]),L=u(L,P,q,B,H,20,c[31]),B=h(B,L,P,q,w,4,c[32]),q=h(q,B,L,P,N,11,c[33]),P=h(P,q,B,L,M,16,c[34]),L=h(L,P,q,B,O,23,c[35]),B=h(B,L,P,q,x,4,c[36]),q=h(q,B,L,P,E,11,c[37]),P=h(P,q,B,L,R,16,c[38]),L=h(L,P,q,B,D,23,c[39]),B=h(B,L,P,q,I,4,c[40]),q=h(q,B,L,P,k,11,c[41]),P=h(P,q,B,L,T,16,c[42]),L=h(L,P,q,B,_,23,c[43]),B=h(B,L,P,q,F,4,c[44]),q=h(q,B,L,P,H,11,c[45]),P=h(P,q,B,L,z,16,c[46]),L=h(L,P,q,B,A,23,c[47]),B=m(B,L,P,q,k,6,c[48]),q=m(q,B,L,P,R,10,c[49]),P=m(P,q,B,L,O,15,c[50]),L=m(L,P,q,B,w,21,c[51]),B=m(B,L,P,q,H,6,c[52]),q=m(q,B,L,P,T,10,c[53]),P=m(P,q,B,L,D,15,c[54]),L=m(L,P,q,B,x,21,c[55]),B=m(B,L,P,q,N,6,c[56]),q=m(q,B,L,P,z,10,c[57]),P=m(P,q,B,L,_,15,c[58]),L=m(L,P,q,B,I,21,c[59]),B=m(B,L,P,q,E,6,c[60]),q=m(q,B,L,P,M,10,c[61]),P=m(P,q,B,L,A,15,c[62]),L=m(L,P,q,B,F,21,c[63]),v[0]=v[0]+B|0,v[1]=v[1]+L|0,v[2]=v[2]+P|0,v[3]=v[3]+q|0},_doFinalize:function(){var y=this._data,S=y.words,C=this._nDataBytes*8,b=y.sigBytes*8;S[b>>>5]|=128<<24-b%32;var g=o.floor(C/4294967296),v=C;S[(b+64>>>9<<4)+15]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,S[(b+64>>>9<<4)+14]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,y.sigBytes=(S.length+1)*4,this._process();for(var k=this._hash,x=k.words,A=0;A<4;A++){var T=x[A];x[A]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360}return k},clone:function(){var y=s.clone.call(this);return y._hash=this._hash.clone(),y}});function p(y,S,C,b,g,v,k){var x=y+(S&C|~S&b)+g+k;return(x<<v|x>>>32-v)+S}function u(y,S,C,b,g,v,k){var x=y+(S&b|C&~b)+g+k;return(x<<v|x>>>32-v)+S}function h(y,S,C,b,g,v,k){var x=y+(S^C^b)+g+k;return(x<<v|x>>>32-v)+S}function m(y,S,C,b,g,v,k){var x=y+(C^(S|~b))+g+k;return(x<<v|x>>>32-v)+S}r.MD5=s._createHelper(d),r.HmacMD5=s._createHmacHelper(d)}(Math),t.MD5})}(_n)),_n.exports}var An={exports:{}},Wa;function Tn(){return Wa||(Wa=1,function(e,n){(function(t,o){e.exports=o(oe())})(ee,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,h=u[0],m=u[1],y=u[2],S=u[3],C=u[4],b=0;b<80;b++){if(b<16)f[b]=d[p+b]|0;else{var g=f[b-3]^f[b-8]^f[b-14]^f[b-16];f[b]=g<<1|g>>>31}var v=(h<<5|h>>>27)+C+f[b];b<20?v+=(m&y|~m&S)+1518500249:b<40?v+=(m^y^S)+1859775393:b<60?v+=(m&y|m&S|y&S)-1894007588:v+=(m^y^S)-899497514,C=S,S=y,y=m<<30|m>>>2,m=h,h=v}u[0]=u[0]+h|0,u[1]=u[1]+m|0,u[2]=u[2]+y|0,u[3]=u[3]+S|0,u[4]=u[4]+C|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})}(An)),An.exports}var En={exports:{}},Za;function Ka(){return Za||(Za=1,function(e,n){(function(t,o){e.exports=o(oe())})(ee,function(t){return function(o){var r=t,i=r.lib,l=i.WordArray,s=i.Hasher,f=r.algo,c=[],d=[];(function(){function h(C){for(var b=o.sqrt(C),g=2;g<=b;g++)if(!(C%g))return!1;return!0}function m(C){return(C-(C|0))*4294967296|0}for(var y=2,S=0;S<64;)h(y)&&(S<8&&(c[S]=m(o.pow(y,1/2))),d[S]=m(o.pow(y,1/3)),S++),y++})();var p=[],u=f.SHA256=s.extend({_doReset:function(){this._hash=new l.init(c.slice(0))},_doProcessBlock:function(h,m){for(var y=this._hash.words,S=y[0],C=y[1],b=y[2],g=y[3],v=y[4],k=y[5],x=y[6],A=y[7],T=0;T<64;T++){if(T<16)p[T]=h[m+T]|0;else{var E=p[T-15],w=(E<<25|E>>>7)^(E<<14|E>>>18)^E>>>3,_=p[T-2],R=(_<<15|_>>>17)^(_<<13|_>>>19)^_>>>10;p[T]=w+p[T-7]+R+p[T-16]}var N=v&k^~v&x,F=S&C^S&b^C&b,D=(S<<30|S>>>2)^(S<<19|S>>>13)^(S<<10|S>>>22),M=(v<<26|v>>>6)^(v<<21|v>>>11)^(v<<7|v>>>25),H=A+M+N+d[T]+p[T],I=D+F;A=x,x=k,k=v,v=g+H|0,g=b,b=C,C=S,S=H+I|0}y[0]=y[0]+S|0,y[1]=y[1]+C|0,y[2]=y[2]+b|0,y[3]=y[3]+g|0,y[4]=y[4]+v|0,y[5]=y[5]+k|0,y[6]=y[6]+x|0,y[7]=y[7]+A|0},_doFinalize:function(){var h=this._data,m=h.words,y=this._nDataBytes*8,S=h.sigBytes*8;return m[S>>>5]|=128<<24-S%32,m[(S+64>>>9<<4)+14]=o.floor(y/4294967296),m[(S+64>>>9<<4)+15]=y,h.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var h=s.clone.call(this);return h._hash=this._hash.clone(),h}});r.SHA256=s._createHelper(u),r.HmacSHA256=s._createHmacHelper(u)}(Math),t.SHA256})}(En)),En.exports}var Bn={exports:{}},Ya;function Fs(){return Ya||(Ya=1,function(e,n){(function(t,o,r){e.exports=o(oe(),Ka())})(ee,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})}(Bn)),Bn.exports}var Dn={exports:{}},Xa;function Ja(){return Xa||(Xa=1,function(e,n){(function(t,o,r){e.exports=o(oe(),qt())})(ee,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 m=0;m<80;m++)u[m]=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(m,y){for(var S=this._hash.words,C=S[0],b=S[1],g=S[2],v=S[3],k=S[4],x=S[5],A=S[6],T=S[7],E=C.high,w=C.low,_=b.high,R=b.low,N=g.high,F=g.low,D=v.high,M=v.low,H=k.high,I=k.low,O=x.high,z=x.low,B=A.high,L=A.low,P=T.high,q=T.low,G=E,Y=w,J=_,W=R,de=N,ve=F,st=D,Ke=M,Ae=H,Se=I,je=O,Ye=z,Xe=B,Bt=L,j=P,U=q,K=0;K<80;K++){var X,Z,re=u[K];if(K<16)Z=re.high=m[y+K*2]|0,X=re.low=m[y+K*2+1]|0;else{var ie=u[K-15],le=ie.high,ce=ie.low,ge=(le>>>1|ce<<31)^(le>>>8|ce<<24)^le>>>7,qe=(ce>>>1|le<<31)^(ce>>>8|le<<24)^(ce>>>7|le<<25),De=u[K-2],Ee=De.high,Je=De.low,en=(Ee>>>19|Je<<13)^(Ee<<3|Je>>>29)^Ee>>>6,tn=(Je>>>19|Ee<<13)^(Je<<3|Ee>>>29)^(Je>>>6|Ee<<26),X0=u[K-7],qf=X0.high,Hf=X0.low,J0=u[K-16],$f=J0.high,Q0=J0.low;X=qe+Hf,Z=ge+qf+(X>>>0<qe>>>0?1:0),X=X+tn,Z=Z+en+(X>>>0<tn>>>0?1:0),X=X+Q0,Z=Z+$f+(X>>>0<Q0>>>0?1:0),re.high=Z,re.low=X}var jf=Ae&je^~Ae&Xe,ei=Se&Ye^~Se&Bt,Uf=G&J^G&de^J&de,Gf=Y&W^Y&ve^W&ve,Wf=(G>>>28|Y<<4)^(G<<30|Y>>>2)^(G<<25|Y>>>7),ti=(Y>>>28|G<<4)^(Y<<30|G>>>2)^(Y<<25|G>>>7),Zf=(Ae>>>14|Se<<18)^(Ae>>>18|Se<<14)^(Ae<<23|Se>>>9),Kf=(Se>>>14|Ae<<18)^(Se>>>18|Ae<<14)^(Se<<23|Ae>>>9),ni=p[K],Yf=ni.high,oi=ni.low,Oe=U+Kf,lt=j+Zf+(Oe>>>0<U>>>0?1:0),Oe=Oe+ei,lt=lt+jf+(Oe>>>0<ei>>>0?1:0),Oe=Oe+oi,lt=lt+Yf+(Oe>>>0<oi>>>0?1:0),Oe=Oe+X,lt=lt+Z+(Oe>>>0<X>>>0?1:0),ai=ti+Gf,Xf=Wf+Uf+(ai>>>0<ti>>>0?1:0);j=Xe,U=Bt,Xe=je,Bt=Ye,je=Ae,Ye=Se,Se=Ke+Oe|0,Ae=st+lt+(Se>>>0<Ke>>>0?1:0)|0,st=de,Ke=ve,de=J,ve=W,J=G,W=Y,Y=Oe+ai|0,G=lt+Xf+(Y>>>0<Oe>>>0?1:0)|0}w=C.low=w+Y,C.high=E+G+(w>>>0<Y>>>0?1:0),R=b.low=R+W,b.high=_+J+(R>>>0<W>>>0?1:0),F=g.low=F+ve,g.high=N+de+(F>>>0<ve>>>0?1:0),M=v.low=M+Ke,v.high=D+st+(M>>>0<Ke>>>0?1:0),I=k.low=I+Se,k.high=H+Ae+(I>>>0<Se>>>0?1:0),z=x.low=z+Ye,x.high=O+je+(z>>>0<Ye>>>0?1:0),L=A.low=L+Bt,A.high=B+Xe+(L>>>0<Bt>>>0?1:0),q=T.low=q+U,T.high=P+j+(q>>>0<U>>>0?1:0)},_doFinalize:function(){var m=this._data,y=m.words,S=this._nDataBytes*8,C=m.sigBytes*8;y[C>>>5]|=128<<24-C%32,y[(C+128>>>10<<5)+30]=Math.floor(S/4294967296),y[(C+128>>>10<<5)+31]=S,m.sigBytes=y.length*4,this._process();var b=this._hash.toX32();return b},clone:function(){var m=i.clone.call(this);return m._hash=this._hash.clone(),m},blockSize:1024/32});o.SHA512=i._createHelper(h),o.HmacSHA512=i._createHmacHelper(h)}(),t.SHA512})}(Dn)),Dn.exports}var Rn={exports:{}},Qa;function Vs(){return Qa||(Qa=1,function(e,n){(function(t,o,r){e.exports=o(oe(),qt(),Ja())})(ee,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})}(Rn)),Rn.exports}var In={exports:{}},er;function qs(){return er||(er=1,function(e,n){(function(t,o,r){e.exports=o(oe(),qt())})(ee,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=[],h=[];(function(){for(var S=1,C=0,b=0;b<24;b++){p[S+5*C]=(b+1)*(b+2)/2%64;var g=C%5,v=(2*S+3*C)%5;S=g,C=v}for(var S=0;S<5;S++)for(var C=0;C<5;C++)u[S+5*C]=C+(2*S+3*C)%5*5;for(var k=1,x=0;x<24;x++){for(var A=0,T=0,E=0;E<7;E++){if(k&1){var w=(1<<E)-1;w<32?T^=1<<w:A^=1<<w-32}k&128?k=k<<1^113:k<<=1}h[x]=c.create(A,T)}})();var m=[];(function(){for(var S=0;S<25;S++)m[S]=c.create()})();var y=d.SHA3=s.extend({cfg:s.cfg.extend({outputLength:512}),_doReset:function(){for(var S=this._state=[],C=0;C<25;C++)S[C]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(S,C){for(var b=this._state,g=this.blockSize/2,v=0;v<g;v++){var k=S[C+2*v],x=S[C+2*v+1];k=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360,x=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360;var A=b[v];A.high^=x,A.low^=k}for(var T=0;T<24;T++){for(var E=0;E<5;E++){for(var w=0,_=0,R=0;R<5;R++){var A=b[E+5*R];w^=A.high,_^=A.low}var N=m[E];N.high=w,N.low=_}for(var E=0;E<5;E++)for(var F=m[(E+4)%5],D=m[(E+1)%5],M=D.high,H=D.low,w=F.high^(M<<1|H>>>31),_=F.low^(H<<1|M>>>31),R=0;R<5;R++){var A=b[E+5*R];A.high^=w,A.low^=_}for(var I=1;I<25;I++){var w,_,A=b[I],O=A.high,z=A.low,B=p[I];B<32?(w=O<<B|z>>>32-B,_=z<<B|O>>>32-B):(w=z<<B-32|O>>>64-B,_=O<<B-32|z>>>64-B);var L=m[u[I]];L.high=w,L.low=_}var P=m[0],q=b[0];P.high=q.high,P.low=q.low;for(var E=0;E<5;E++)for(var R=0;R<5;R++){var I=E+5*R,A=b[I],G=m[I],Y=m[(E+1)%5+5*R],J=m[(E+2)%5+5*R];A.high=G.high^~Y.high&J.high,A.low=G.low^~Y.low&J.low}var A=b[0],W=h[T];A.high^=W.high,A.low^=W.low}},_doFinalize:function(){var S=this._data,C=S.words;this._nDataBytes*8;var b=S.sigBytes*8,g=this.blockSize*32;C[b>>>5]|=1<<24-b%32,C[(o.ceil((b+1)/g)*g>>>5)-1]|=128,S.sigBytes=C.length*4,this._process();for(var v=this._state,k=this.cfg.outputLength/8,x=k/8,A=[],T=0;T<x;T++){var E=v[T],w=E.high,_=E.low;w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,_=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,A.push(_),A.push(w)}return new l.init(A,k)},clone:function(){for(var S=s.clone.call(this),C=S._state=this._state.slice(0),b=0;b<25;b++)C[b]=C[b].clone();return S}});r.SHA3=s._createHelper(y),r.HmacSHA3=s._createHmacHelper(y)}(Math),t.SHA3})}(In)),In.exports}var Ln={exports:{}},tr;function Hs(){return tr||(tr=1,function(e,n){(function(t,o){e.exports=o(oe())})(ee,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 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]),y=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]),m=f.RIPEMD160=s.extend({_doReset:function(){this._hash=l.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(S,_){for(var E=0;E<16;E++){var B=_+E,C=S[B];S[B]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360}var k=this._hash.words,I=h.words,O=g.words,P=c.words,z=d.words,F=y.words,H=u.words,D,L,N,T,R,M,q,G,Y,J;M=D=k[0],q=L=k[1],G=N=k[2],Y=T=k[3],J=R=k[4];for(var W,E=0;E<80;E+=1)W=D+S[_+P[E]]|0,E<16?W+=p(L,N,T)+I[0]:E<32?W+=w(L,N,T)+I[1]:E<48?W+=x(L,N,T)+I[2]:E<64?W+=v(L,N,T)+I[3]:W+=b(L,N,T)+I[4],W=W|0,W=A(W,F[E]),W=W+R|0,D=R,R=T,T=A(N,10),N=L,L=W,W=M+S[_+z[E]]|0,E<16?W+=b(q,G,Y)+O[0]:E<32?W+=v(q,G,Y)+O[1]:E<48?W+=x(q,G,Y)+O[2]:E<64?W+=w(q,G,Y)+O[3]:W+=p(q,G,Y)+O[4],W=W|0,W=A(W,H[E]),W=W+J|0,M=J,J=Y,Y=A(G,10),G=q,q=W;W=k[1]+N+Y|0,k[1]=k[2]+T+J|0,k[2]=k[3]+R+M|0,k[3]=k[4]+D+q|0,k[4]=k[0]+L+G|0,k[0]=W},_doFinalize:function(){var S=this._data,_=S.words,E=this._nDataBytes*8,B=S.sigBytes*8;_[B>>>5]|=128<<24-B%32,_[(B+64>>>9<<4)+14]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,S.sigBytes=(_.length+1)*4,this._process();for(var C=this._hash,k=C.words,I=0;I<5;I++){var O=k[I];k[I]=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360}return C},clone:function(){var S=s.clone.call(this);return S._hash=this._hash.clone(),S}});function p(S,_,E){return S^_^E}function w(S,_,E){return S&_|~S&E}function x(S,_,E){return(S|~_)^E}function v(S,_,E){return S&E|_&~E}function b(S,_,E){return S^(_|~E)}function A(S,_){return S<<_|S>>>32-_}a.RIPEMD160=s._createHelper(m),a.HmacRIPEMD160=s._createHmacHelper(m)}(),t.RIPEMD160})}(Ln)),Ln.exports}var On={exports:{}},na;function Nn(){return na||(na=1,function(e,n){(function(t,o){e.exports=o(oe())})(ee,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 y=c.blockSize,u=y*4;d.sigBytes>u&&(d=c.finalize(d)),d.clamp();for(var h=this._oKey=d.clone(),g=this._iKey=d.clone(),m=h.words,p=g.words,w=0;w<y;w++)m[w]^=1549556828,p[w]^=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,y=d.finalize(c);d.reset();var u=d.finalize(this._oKey.clone().concat(y));return u}})})()})}(On)),On.exports}var zn={exports:{}},oa;function $s(){return oa||(oa=1,function(e,n){(function(t,o,a){e.exports=o(oe(),Tn(),Nn())})(ee,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(y){this.cfg=this.cfg.extend(y)},compute:function(y,u){for(var h=this.cfg,g=c.create(h.hasher,y),m=l.create(),p=l.create([1]),w=m.words,x=p.words,v=h.keySize,b=h.iterations;w.length<v;){var A=g.update(u).finalize(p);g.reset();for(var S=A.words,_=S.length,E=A,B=1;B<b;B++){E=g.finalize(E),g.reset();for(var C=E.words,k=0;k<_;k++)S[k]^=C[k]}m.concat(A),x[0]++}return m.sigBytes=v*4,m}});o.PBKDF2=function(y,u,h){return d.create(h).compute(y,u)}}(),t.PBKDF2})}(zn)),zn.exports}var Mn={exports:{}},ra;function ft(){return ra||(ra=1,function(e,n){(function(t,o,a){e.exports=o(oe(),Tn(),Nn())})(ee,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,y){for(var u,h=this.cfg,g=h.hasher.create(),m=l.create(),p=m.words,w=h.keySize,x=h.iterations;p.length<w;){u&&g.update(u),u=g.update(d).finalize(y),g.reset();for(var v=1;v<x;v++)u=g.finalize(u),g.reset();m.concat(u)}return m.sigBytes=w*4,m}});o.EvpKDF=function(d,y,u){return c.create(u).compute(d,y)}}(),t.EvpKDF})}(Mn)),Mn.exports}var Pn={exports:{}},aa;function _e(){return aa||(aa=1,function(e,n){(function(t,o,a){e.exports=o(oe(),ft())})(ee,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,y=a.algo,u=y.EvpKDF,h=i.Cipher=f.extend({cfg:l.extend(),createEncryptor:function(C,k){return this.create(this._ENC_XFORM_MODE,C,k)},createDecryptor:function(C,k){return this.create(this._DEC_XFORM_MODE,C,k)},init:function(C,k,I){this.cfg=this.cfg.extend(I),this._xformMode=C,this._key=k,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 k=this._doFinalize();return k},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function C(k){return typeof k=="string"?B:S}return function(k){return{encrypt:function(I,O,P){return C(O).encrypt(k,I,O,P)},decrypt:function(I,O,P){return C(O).decrypt(k,I,O,P)}}}}()});i.StreamCipher=h.extend({_doFinalize:function(){var C=this._process(!0);return C},blockSize:1});var g=a.mode={},m=i.BlockCipherMode=l.extend({createEncryptor:function(C,k){return this.Encryptor.create(C,k)},createDecryptor:function(C,k){return this.Decryptor.create(C,k)},init:function(C,k){this._cipher=C,this._iv=k}}),p=g.CBC=function(){var C=m.extend();C.Encryptor=C.extend({processBlock:function(I,O){var P=this._cipher,z=P.blockSize;k.call(this,I,O,z),P.encryptBlock(I,O),this._prevBlock=I.slice(O,O+z)}}),C.Decryptor=C.extend({processBlock:function(I,O){var P=this._cipher,z=P.blockSize,F=I.slice(O,O+z);P.decryptBlock(I,O),k.call(this,I,O,z),this._prevBlock=F}});function k(I,O,P){var z,F=this._iv;F?(z=F,this._iv=o):z=this._prevBlock;for(var H=0;H<P;H++)I[O+H]^=z[H]}return C}(),w=a.pad={},x=w.Pkcs7={pad:function(C,k){for(var I=k*4,O=I-C.sigBytes%I,P=O<<24|O<<16|O<<8|O,z=[],F=0;F<O;F+=4)z.push(P);var H=s.create(z,O);C.concat(H)},unpad:function(C){var k=C.words[C.sigBytes-1>>>2]&255;C.sigBytes-=k}};i.BlockCipher=h.extend({cfg:h.cfg.extend({mode:p,padding:x}),reset:function(){var C;h.reset.call(this);var k=this.cfg,I=k.iv,O=k.mode;this._xformMode==this._ENC_XFORM_MODE?C=O.createEncryptor:(C=O.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==C?this._mode.init(this,I&&I.words):(this._mode=C.call(O,this,I&&I.words),this._mode.__creator=C)},_doProcessBlock:function(C,k){this._mode.processBlock(C,k)},_doFinalize:function(){var C,k=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(k.pad(this._data,this.blockSize),C=this._process(!0)):(C=this._process(!0),k.unpad(C)),C},blockSize:128/32});var v=i.CipherParams=l.extend({init:function(C){this.mixIn(C)},toString:function(C){return(C||this.formatter).stringify(this)}}),b=a.format={},A=b.OpenSSL={stringify:function(C){var k,I=C.ciphertext,O=C.salt;return O?k=s.create([1398893684,1701076831]).concat(O).concat(I):k=I,k.toString(d)},parse:function(C){var k,I=d.parse(C),O=I.words;return O[0]==1398893684&&O[1]==1701076831&&(k=s.create(O.slice(2,4)),O.splice(0,4),I.sigBytes-=16),v.create({ciphertext:I,salt:k})}},S=i.SerializableCipher=l.extend({cfg:l.extend({format:A}),encrypt:function(C,k,I,O){O=this.cfg.extend(O);var P=C.createEncryptor(I,O),z=P.finalize(k),F=P.cfg;return v.create({ciphertext:z,key:I,iv:F.iv,algorithm:C,mode:F.mode,padding:F.padding,blockSize:C.blockSize,formatter:O.format})},decrypt:function(C,k,I,O){O=this.cfg.extend(O),k=this._parse(k,O.format);var P=C.createDecryptor(I,O).finalize(k.ciphertext);return P},_parse:function(C,k){return typeof C=="string"?k.parse(C,this):C}}),_=a.kdf={},E=_.OpenSSL={execute:function(C,k,I,O){O||(O=s.random(64/8));var P=u.create({keySize:k+I}).compute(C,O),z=s.create(P.words.slice(k),I*4);return P.sigBytes=k*4,v.create({key:P,iv:z,salt:O})}},B=i.PasswordBasedCipher=S.extend({cfg:S.cfg.extend({kdf:E}),encrypt:function(C,k,I,O){O=this.cfg.extend(O);var P=O.kdf.execute(I,C.keySize,C.ivSize);O.iv=P.iv;var z=S.encrypt.call(this,C,k,P.key,O);return z.mixIn(P),z},decrypt:function(C,k,I,O){O=this.cfg.extend(O),k=this._parse(k,O.format);var P=O.kdf.execute(I,C.keySize,C.ivSize,k.salt);O.iv=P.iv;var z=S.decrypt.call(this,C,k,P.key,O);return z}})}()})}(Pn)),Pn.exports}var Fn={exports:{}},ia;function js(){return ia||(ia=1,function(e,n){(function(t,o,a){e.exports=o(oe(),_e())})(ee,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 y=0;y<s;y++)i[l+y]^=c[y]}return o}(),t.mode.CFB})}(Fn)),Fn.exports}var Vn={exports:{}},sa;function Us(){return sa||(sa=1,function(e,n){(function(t,o,a){e.exports=o(oe(),_e())})(ee,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 y=d.slice(0);s.encryptBlock(y,0),d[f-1]=d[f-1]+1|0;for(var u=0;u<f;u++)i[l+u]^=y[u]}});return o.Decryptor=a,o}(),t.mode.CTR})}(Vn)),Vn.exports}var qn={exports:{}},la;function Gs(){return la||(la=1,function(e,n){(function(t,o,a){e.exports=o(oe(),_e())})(ee,function(t){/** @preserve
|
|
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]),h=l.create([0,1518500249,1859775393,2400959708,2840853838]),m=l.create([1352829926,1548603684,1836072691,2053994217,0]),y=f.RIPEMD160=s.extend({_doReset:function(){this._hash=l.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(x,A){for(var T=0;T<16;T++){var E=A+T,w=x[E];x[E]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360}var _=this._hash.words,R=h.words,N=m.words,F=c.words,D=d.words,M=p.words,H=u.words,I,O,z,B,L,P,q,G,Y,J;P=I=_[0],q=O=_[1],G=z=_[2],Y=B=_[3],J=L=_[4];for(var W,T=0;T<80;T+=1)W=I+x[A+F[T]]|0,T<16?W+=S(O,z,B)+R[0]:T<32?W+=C(O,z,B)+R[1]:T<48?W+=b(O,z,B)+R[2]:T<64?W+=g(O,z,B)+R[3]:W+=v(O,z,B)+R[4],W=W|0,W=k(W,M[T]),W=W+L|0,I=L,L=B,B=k(z,10),z=O,O=W,W=P+x[A+D[T]]|0,T<16?W+=v(q,G,Y)+N[0]:T<32?W+=g(q,G,Y)+N[1]:T<48?W+=b(q,G,Y)+N[2]:T<64?W+=C(q,G,Y)+N[3]:W+=S(q,G,Y)+N[4],W=W|0,W=k(W,H[T]),W=W+J|0,P=J,J=Y,Y=k(G,10),G=q,q=W;W=_[1]+z+Y|0,_[1]=_[2]+B+J|0,_[2]=_[3]+L+P|0,_[3]=_[4]+I+q|0,_[4]=_[0]+O+G|0,_[0]=W},_doFinalize:function(){var x=this._data,A=x.words,T=this._nDataBytes*8,E=x.sigBytes*8;A[E>>>5]|=128<<24-E%32,A[(E+64>>>9<<4)+14]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,x.sigBytes=(A.length+1)*4,this._process();for(var w=this._hash,_=w.words,R=0;R<5;R++){var N=_[R];_[R]=(N<<8|N>>>24)&16711935|(N<<24|N>>>8)&4278255360}return w},clone:function(){var x=s.clone.call(this);return x._hash=this._hash.clone(),x}});function S(x,A,T){return x^A^T}function C(x,A,T){return x&A|~x&T}function b(x,A,T){return(x|~A)^T}function g(x,A,T){return x&T|A&~T}function v(x,A,T){return x^(A|~T)}function k(x,A){return x<<A|x>>>32-A}r.RIPEMD160=s._createHelper(y),r.HmacRIPEMD160=s._createHmacHelper(y)}(),t.RIPEMD160})}(Ln)),Ln.exports}var On={exports:{}},nr;function Nn(){return nr||(nr=1,function(e,n){(function(t,o){e.exports=o(oe())})(ee,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 h=this._oKey=d.clone(),m=this._iKey=d.clone(),y=h.words,S=m.words,C=0;C<p;C++)y[C]^=1549556828,S[C]^=909522486;h.sigBytes=m.sigBytes=u,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var d=this._hasher,p=d.finalize(c);d.reset();var u=d.finalize(this._oKey.clone().concat(p));return u}})})()})}(On)),On.exports}var zn={exports:{}},or;function $s(){return or||(or=1,function(e,n){(function(t,o,r){e.exports=o(oe(),Tn(),Nn())})(ee,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 h=this.cfg,m=c.create(h.hasher,p),y=l.create(),S=l.create([1]),C=y.words,b=S.words,g=h.keySize,v=h.iterations;C.length<g;){var k=m.update(u).finalize(S);m.reset();for(var x=k.words,A=x.length,T=k,E=1;E<v;E++){T=m.finalize(T),m.reset();for(var w=T.words,_=0;_<A;_++)x[_]^=w[_]}y.concat(k),b[0]++}return y.sigBytes=g*4,y}});o.PBKDF2=function(p,u,h){return d.create(h).compute(p,u)}}(),t.PBKDF2})}(zn)),zn.exports}var Mn={exports:{}},ar;function dt(){return ar||(ar=1,function(e,n){(function(t,o,r){e.exports=o(oe(),Tn(),Nn())})(ee,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,h=this.cfg,m=h.hasher.create(),y=l.create(),S=y.words,C=h.keySize,b=h.iterations;S.length<C;){u&&m.update(u),u=m.update(d).finalize(p),m.reset();for(var g=1;g<b;g++)u=m.finalize(u),m.reset();y.concat(u)}return y.sigBytes=C*4,y}});o.EvpKDF=function(d,p,u){return c.create(u).compute(d,p)}}(),t.EvpKDF})}(Mn)),Mn.exports}var Pn={exports:{}},rr;function _e(){return rr||(rr=1,function(e,n){(function(t,o,r){e.exports=o(oe(),dt())})(ee,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,h=i.Cipher=f.extend({cfg:l.extend(),createEncryptor:function(w,_){return this.create(this._ENC_XFORM_MODE,w,_)},createDecryptor:function(w,_){return this.create(this._DEC_XFORM_MODE,w,_)},init:function(w,_,R){this.cfg=this.cfg.extend(R),this._xformMode=w,this._key=_,this.reset()},reset:function(){f.reset.call(this),this._doReset()},process:function(w){return this._append(w),this._process()},finalize:function(w){w&&this._append(w);var _=this._doFinalize();return _},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function w(_){return typeof _=="string"?E:x}return function(_){return{encrypt:function(R,N,F){return w(N).encrypt(_,R,N,F)},decrypt:function(R,N,F){return w(N).decrypt(_,R,N,F)}}}}()});i.StreamCipher=h.extend({_doFinalize:function(){var w=this._process(!0);return w},blockSize:1});var m=r.mode={},y=i.BlockCipherMode=l.extend({createEncryptor:function(w,_){return this.Encryptor.create(w,_)},createDecryptor:function(w,_){return this.Decryptor.create(w,_)},init:function(w,_){this._cipher=w,this._iv=_}}),S=m.CBC=function(){var w=y.extend();w.Encryptor=w.extend({processBlock:function(R,N){var F=this._cipher,D=F.blockSize;_.call(this,R,N,D),F.encryptBlock(R,N),this._prevBlock=R.slice(N,N+D)}}),w.Decryptor=w.extend({processBlock:function(R,N){var F=this._cipher,D=F.blockSize,M=R.slice(N,N+D);F.decryptBlock(R,N),_.call(this,R,N,D),this._prevBlock=M}});function _(R,N,F){var D,M=this._iv;M?(D=M,this._iv=o):D=this._prevBlock;for(var H=0;H<F;H++)R[N+H]^=D[H]}return w}(),C=r.pad={},b=C.Pkcs7={pad:function(w,_){for(var R=_*4,N=R-w.sigBytes%R,F=N<<24|N<<16|N<<8|N,D=[],M=0;M<N;M+=4)D.push(F);var H=s.create(D,N);w.concat(H)},unpad:function(w){var _=w.words[w.sigBytes-1>>>2]&255;w.sigBytes-=_}};i.BlockCipher=h.extend({cfg:h.cfg.extend({mode:S,padding:b}),reset:function(){var w;h.reset.call(this);var _=this.cfg,R=_.iv,N=_.mode;this._xformMode==this._ENC_XFORM_MODE?w=N.createEncryptor:(w=N.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==w?this._mode.init(this,R&&R.words):(this._mode=w.call(N,this,R&&R.words),this._mode.__creator=w)},_doProcessBlock:function(w,_){this._mode.processBlock(w,_)},_doFinalize:function(){var w,_=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(_.pad(this._data,this.blockSize),w=this._process(!0)):(w=this._process(!0),_.unpad(w)),w},blockSize:128/32});var g=i.CipherParams=l.extend({init:function(w){this.mixIn(w)},toString:function(w){return(w||this.formatter).stringify(this)}}),v=r.format={},k=v.OpenSSL={stringify:function(w){var _,R=w.ciphertext,N=w.salt;return N?_=s.create([1398893684,1701076831]).concat(N).concat(R):_=R,_.toString(d)},parse:function(w){var _,R=d.parse(w),N=R.words;return N[0]==1398893684&&N[1]==1701076831&&(_=s.create(N.slice(2,4)),N.splice(0,4),R.sigBytes-=16),g.create({ciphertext:R,salt:_})}},x=i.SerializableCipher=l.extend({cfg:l.extend({format:k}),encrypt:function(w,_,R,N){N=this.cfg.extend(N);var F=w.createEncryptor(R,N),D=F.finalize(_),M=F.cfg;return g.create({ciphertext:D,key:R,iv:M.iv,algorithm:w,mode:M.mode,padding:M.padding,blockSize:w.blockSize,formatter:N.format})},decrypt:function(w,_,R,N){N=this.cfg.extend(N),_=this._parse(_,N.format);var F=w.createDecryptor(R,N).finalize(_.ciphertext);return F},_parse:function(w,_){return typeof w=="string"?_.parse(w,this):w}}),A=r.kdf={},T=A.OpenSSL={execute:function(w,_,R,N){N||(N=s.random(64/8));var F=u.create({keySize:_+R}).compute(w,N),D=s.create(F.words.slice(_),R*4);return F.sigBytes=_*4,g.create({key:F,iv:D,salt:N})}},E=i.PasswordBasedCipher=x.extend({cfg:x.cfg.extend({kdf:T}),encrypt:function(w,_,R,N){N=this.cfg.extend(N);var F=N.kdf.execute(R,w.keySize,w.ivSize);N.iv=F.iv;var D=x.encrypt.call(this,w,_,F.key,N);return D.mixIn(F),D},decrypt:function(w,_,R,N){N=this.cfg.extend(N),_=this._parse(_,N.format);var F=N.kdf.execute(R,w.keySize,w.ivSize,_.salt);N.iv=F.iv;var D=x.decrypt.call(this,w,_,F.key,N);return D}})}()})}(Pn)),Pn.exports}var Fn={exports:{}},ir;function js(){return ir||(ir=1,function(e,n){(function(t,o,r){e.exports=o(oe(),_e())})(ee,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})}(Fn)),Fn.exports}var Vn={exports:{}},sr;function Us(){return sr||(sr=1,function(e,n){(function(t,o,r){e.exports=o(oe(),_e())})(ee,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})}(Vn)),Vn.exports}var qn={exports:{}},lr;function Gs(){return lr||(lr=1,function(e,n){(function(t,o,r){e.exports=o(oe(),_e())})(ee,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 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,y=this._iv,u=this._counter;y&&(u=this._counter=y.slice(0),this._iv=void 0),i(u);var h=u.slice(0);c.encryptBlock(h,0);for(var g=0;g<d;g++)s[f+g]^=h[g]}});return o.Decryptor=l,o}(),t.mode.CTRGladman})}(qn)),qn.exports}var Hn={exports:{}},ca;function Ws(){return ca||(ca=1,function(e,n){(function(t,o,a){e.exports=o(oe(),_e())})(ee,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 y=0;y<f;y++)i[l+y]^=d[y]}});return o.Decryptor=a,o}(),t.mode.OFB})}(Hn)),Hn.exports}var $n={exports:{}},fa;function Zs(){return fa||(fa=1,function(e,n){(function(t,o,a){e.exports=o(oe(),_e())})(ee,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})}($n)),$n.exports}var jn={exports:{}},da;function Ks(){return da||(da=1,function(e,n){(function(t,o,a){e.exports=o(oe(),_e())})(ee,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})}(jn)),jn.exports}var Un={exports:{}},ua;function Ys(){return ua||(ua=1,function(e,n){(function(t,o,a){e.exports=o(oe(),_e())})(ee,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})}(Un)),Un.exports}var Gn={exports:{}},ha;function Xs(){return ha||(ha=1,function(e,n){(function(t,o,a){e.exports=o(oe(),_e())})(ee,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})}(Gn)),Gn.exports}var Wn={exports:{}},ma;function Js(){return ma||(ma=1,function(e,n){(function(t,o,a){e.exports=o(oe(),_e())})(ee,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})}(Wn)),Wn.exports}var Zn={exports:{}},ga;function Qs(){return ga||(ga=1,function(e,n){(function(t,o,a){e.exports=o(oe(),_e())})(ee,function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding})}(Zn)),Zn.exports}var Kn={exports:{}},xa;function el(){return xa||(xa=1,function(e,n){(function(t,o,a){e.exports=o(oe(),_e())})(ee,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 y=f.parse(d);return l.create({ciphertext:y})}}}(),t.format.Hex})}(Kn)),Kn.exports}var Yn={exports:{}},ya;function tl(){return ya||(ya=1,function(e,n){(function(t,o,a){e.exports=o(oe(),pt(),vt(),ft(),_e())})(ee,function(t){return function(){var o=t,a=o.lib,i=a.BlockCipher,l=o.algo,s=[],f=[],c=[],d=[],y=[],u=[],h=[],g=[],m=[],p=[];(function(){for(var v=[],b=0;b<256;b++)b<128?v[b]=b<<1:v[b]=b<<1^283;for(var A=0,S=0,b=0;b<256;b++){var _=S^S<<1^S<<2^S<<3^S<<4;_=_>>>8^_&255^99,s[A]=_,f[_]=A;var E=v[A],B=v[E],C=v[B],k=v[_]*257^_*16843008;c[A]=k<<24|k>>>8,d[A]=k<<16|k>>>16,y[A]=k<<8|k>>>24,u[A]=k;var k=C*16843009^B*65537^E*257^A*16843008;h[_]=k<<24|k>>>8,g[_]=k<<16|k>>>16,m[_]=k<<8|k>>>24,p[_]=k,A?(A=E^v[v[v[C^E]]],S^=v[v[S]]):A=S=1}})();var w=[0,1,2,4,8,16,32,64,128,27,54],x=l.AES=i.extend({_doReset:function(){var v;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var b=this._keyPriorReset=this._key,A=b.words,S=b.sigBytes/4,_=this._nRounds=S+6,E=(_+1)*4,B=this._keySchedule=[],C=0;C<E;C++)C<S?B[C]=A[C]:(v=B[C-1],C%S?S>6&&C%S==4&&(v=s[v>>>24]<<24|s[v>>>16&255]<<16|s[v>>>8&255]<<8|s[v&255]):(v=v<<8|v>>>24,v=s[v>>>24]<<24|s[v>>>16&255]<<16|s[v>>>8&255]<<8|s[v&255],v^=w[C/S|0]<<24),B[C]=B[C-S]^v);for(var k=this._invKeySchedule=[],I=0;I<E;I++){var C=E-I;if(I%4)var v=B[C];else var v=B[C-4];I<4||C<=4?k[I]=v:k[I]=h[s[v>>>24]]^g[s[v>>>16&255]]^m[s[v>>>8&255]]^p[s[v&255]]}}},encryptBlock:function(v,b){this._doCryptBlock(v,b,this._keySchedule,c,d,y,u,s)},decryptBlock:function(v,b){var A=v[b+1];v[b+1]=v[b+3],v[b+3]=A,this._doCryptBlock(v,b,this._invKeySchedule,h,g,m,p,f);var A=v[b+1];v[b+1]=v[b+3],v[b+3]=A},_doCryptBlock:function(v,b,A,S,_,E,B,C){for(var k=this._nRounds,I=v[b]^A[0],O=v[b+1]^A[1],P=v[b+2]^A[2],z=v[b+3]^A[3],F=4,H=1;H<k;H++){var D=S[I>>>24]^_[O>>>16&255]^E[P>>>8&255]^B[z&255]^A[F++],L=S[O>>>24]^_[P>>>16&255]^E[z>>>8&255]^B[I&255]^A[F++],N=S[P>>>24]^_[z>>>16&255]^E[I>>>8&255]^B[O&255]^A[F++],T=S[z>>>24]^_[I>>>16&255]^E[O>>>8&255]^B[P&255]^A[F++];I=D,O=L,P=N,z=T}var D=(C[I>>>24]<<24|C[O>>>16&255]<<16|C[P>>>8&255]<<8|C[z&255])^A[F++],L=(C[O>>>24]<<24|C[P>>>16&255]<<16|C[z>>>8&255]<<8|C[I&255])^A[F++],N=(C[P>>>24]<<24|C[z>>>16&255]<<16|C[I>>>8&255]<<8|C[O&255])^A[F++],T=(C[z>>>24]<<24|C[I>>>16&255]<<16|C[O>>>8&255]<<8|C[P&255])^A[F++];v[b]=D,v[b+1]=L,v[b+2]=N,v[b+3]=T},keySize:256/32});o.AES=i._createHelper(x)}(),t.AES})}(Yn)),Yn.exports}var Xn={exports:{}},pa;function nl(){return pa||(pa=1,function(e,n){(function(t,o,a){e.exports=o(oe(),pt(),vt(),ft(),_e())})(ee,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],y=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=s.DES=l.extend({_doReset:function(){for(var w=this._key,x=w.words,v=[],b=0;b<56;b++){var A=f[b]-1;v[b]=x[A>>>5]>>>31-A%32&1}for(var S=this._subKeys=[],_=0;_<16;_++){for(var E=S[_]=[],B=d[_],b=0;b<24;b++)E[b/6|0]|=v[(c[b]-1+B)%28]<<31-b%6,E[4+(b/6|0)]|=v[28+(c[b+24]-1+B)%28]<<31-b%6;E[0]=E[0]<<1|E[0]>>>31;for(var b=1;b<7;b++)E[b]=E[b]>>>(b-1)*4+3;E[7]=E[7]<<5|E[7]>>>27}for(var C=this._invSubKeys=[],b=0;b<16;b++)C[b]=S[15-b]},encryptBlock:function(w,x){this._doCryptBlock(w,x,this._subKeys)},decryptBlock:function(w,x){this._doCryptBlock(w,x,this._invSubKeys)},_doCryptBlock:function(w,x,v){this._lBlock=w[x],this._rBlock=w[x+1],g.call(this,4,252645135),g.call(this,16,65535),m.call(this,2,858993459),m.call(this,8,16711935),g.call(this,1,1431655765);for(var b=0;b<16;b++){for(var A=v[b],S=this._lBlock,_=this._rBlock,E=0,B=0;B<8;B++)E|=y[B][((_^A[B])&u[B])>>>0];this._lBlock=_,this._rBlock=S^E}var C=this._lBlock;this._lBlock=this._rBlock,this._rBlock=C,g.call(this,1,1431655765),m.call(this,8,16711935),m.call(this,2,858993459),g.call(this,16,65535),g.call(this,4,252645135),w[x]=this._lBlock,w[x+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function g(w,x){var v=(this._lBlock>>>w^this._rBlock)&x;this._rBlock^=v,this._lBlock^=v<<w}function m(w,x){var v=(this._rBlock>>>w^this._lBlock)&x;this._lBlock^=v,this._rBlock^=v<<w}o.DES=l._createHelper(h);var p=s.TripleDES=l.extend({_doReset:function(){var w=this._key,x=w.words;if(x.length!==2&&x.length!==4&&x.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var v=x.slice(0,2),b=x.length<4?x.slice(0,2):x.slice(2,4),A=x.length<6?x.slice(0,2):x.slice(4,6);this._des1=h.createEncryptor(i.create(v)),this._des2=h.createEncryptor(i.create(b)),this._des3=h.createEncryptor(i.create(A))},encryptBlock:function(w,x){this._des1.encryptBlock(w,x),this._des2.decryptBlock(w,x),this._des3.encryptBlock(w,x)},decryptBlock:function(w,x){this._des3.decryptBlock(w,x),this._des2.encryptBlock(w,x),this._des1.decryptBlock(w,x)},keySize:192/32,ivSize:64/32,blockSize:64/32});o.TripleDES=l._createHelper(p)}(),t.TripleDES})}(Xn)),Xn.exports}var Jn={exports:{}},va;function ol(){return va||(va=1,function(e,n){(function(t,o,a){e.exports=o(oe(),pt(),vt(),ft(),_e())})(ee,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,y=d.words,u=d.sigBytes,h=this._S=[],g=0;g<256;g++)h[g]=g;for(var g=0,m=0;g<256;g++){var p=g%u,w=y[p>>>2]>>>24-p%4*8&255;m=(m+h[g]+w)%256;var x=h[g];h[g]=h[m],h[m]=x}this._i=this._j=0},_doProcessBlock:function(d,y){d[y]^=f.call(this)},keySize:256/32,ivSize:0});function f(){for(var d=this._S,y=this._i,u=this._j,h=0,g=0;g<4;g++){y=(y+1)%256,u=(u+d[y])%256;var m=d[y];d[y]=d[u],d[u]=m,h|=d[(d[y]+d[u])%256]<<24-g*8}return this._i=y,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})}(Jn)),Jn.exports}var Qn={exports:{}},ba;function rl(){return ba||(ba=1,function(e,n){(function(t,o,a){e.exports=o(oe(),pt(),vt(),ft(),_e())})(ee,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 m=this._X=[u[0],u[3]<<16|u[2]>>>16,u[1],u[0]<<16|u[3]>>>16,u[2],u[1]<<16|u[0]>>>16,u[3],u[2]<<16|u[1]>>>16],p=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++)y.call(this);for(var g=0;g<8;g++)p[g]^=m[g+4&7];if(h){var w=h.words,x=w[0],v=w[1],b=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,A=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,S=b>>>16|A&4294901760,_=A<<16|b&65535;p[0]^=b,p[1]^=S,p[2]^=A,p[3]^=_,p[4]^=b,p[5]^=S,p[6]^=A,p[7]^=_;for(var g=0;g<4;g++)y.call(this)}},_doProcessBlock:function(u,h){var g=this._X;y.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 m=0;m<4;m++)s[m]=(s[m]<<8|s[m]>>>24)&16711935|(s[m]<<24|s[m]>>>8)&4278255360,u[h+m]^=s[m]},blockSize:128/32,ivSize:64/32});function y(){for(var u=this._X,h=this._C,g=0;g<8;g++)f[g]=h[g];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0<f[0]>>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0<f[1]>>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0<f[2]>>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0<f[3]>>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0<f[4]>>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0<f[5]>>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0<f[6]>>>0?1:0)|0,this._b=h[7]>>>0<f[7]>>>0?1:0;for(var g=0;g<8;g++){var m=u[g]+h[g],p=m&65535,w=m>>>16,x=((p*p>>>17)+p*w>>>15)+w*w,v=((m&4294901760)*m|0)+((m&65535)*m|0);c[g]=x^v}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})}(Qn)),Qn.exports}var eo={exports:{}},Sa;function al(){return Sa||(Sa=1,function(e,n){(function(t,o,a){e.exports=o(oe(),pt(),vt(),ft(),_e())})(ee,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],m=this._C=[u[2]<<16|u[2]>>>16,u[0]&4294901760|u[1]&65535,u[3]<<16|u[3]>>>16,u[1]&4294901760|u[2]&65535,u[0]<<16|u[0]>>>16,u[2]&4294901760|u[3]&65535,u[1]<<16|u[1]>>>16,u[3]&4294901760|u[0]&65535];this._b=0;for(var p=0;p<4;p++)y.call(this);for(var p=0;p<8;p++)m[p]^=g[p+4&7];if(h){var w=h.words,x=w[0],v=w[1],b=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,A=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,S=b>>>16|A&4294901760,_=A<<16|b&65535;m[0]^=b,m[1]^=S,m[2]^=A,m[3]^=_,m[4]^=b,m[5]^=S,m[6]^=A,m[7]^=_;for(var p=0;p<4;p++)y.call(this)}},_doProcessBlock:function(u,h){var g=this._X;y.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 m=0;m<4;m++)s[m]=(s[m]<<8|s[m]>>>24)&16711935|(s[m]<<24|s[m]>>>8)&4278255360,u[h+m]^=s[m]},blockSize:128/32,ivSize:64/32});function y(){for(var u=this._X,h=this._C,g=0;g<8;g++)f[g]=h[g];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0<f[0]>>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0<f[1]>>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0<f[2]>>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0<f[3]>>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0<f[4]>>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0<f[5]>>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0<f[6]>>>0?1:0)|0,this._b=h[7]>>>0<f[7]>>>0?1:0;for(var g=0;g<8;g++){var m=u[g]+h[g],p=m&65535,w=m>>>16,x=((p*p>>>17)+p*w>>>15)+w*w,v=((m&4294901760)*m|0)+((m&65535)*m|0);c[g]=x^v}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})}(eo)),eo.exports}(function(e,n){(function(t,o,a){e.exports=o(oe(),qt(),zs(),Ms(),pt(),Ps(),vt(),Tn(),Kr(),Fs(),Jr(),Vs(),qs(),Hs(),Nn(),$s(),ft(),_e(),js(),Us(),Gs(),Ws(),Zs(),Ks(),Ys(),Xs(),Js(),Qs(),el(),tl(),nl(),ol(),rl(),al())})(ee,function(t){return t})})(Fr);var il=Fr.exports;const Le=Is(il);var sl="0123456789abcdefghijklmnopqrstuvwxyz";function We(e){return sl.charAt(e)}function ll(e,n){return e&n}function Ht(e,n){return e|n}function wa(e,n){return e^n}function Ca(e,n){return e&~n}function cl(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 fl(e){for(var n=0;e!=0;)e&=e-1,++n;return n}var bt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ka="=";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+=bt.charAt(t>>6)+bt.charAt(t&63);for(n+1==e.length?(t=parseInt(e.substring(n,n+1),16),o+=bt.charAt(t<<2)):n+2==e.length&&(t=parseInt(e.substring(n,n+2),16),o+=bt.charAt(t>>2)+bt.charAt((t&3)<<4));(o.length&3)>0;)o+=ka;return o}function _a(e){var n="",t,o=0,a=0;for(t=0;t<e.length&&e.charAt(t)!=ka;++t){var i=bt.indexOf(e.charAt(t));i<0||(o==0?(n+=We(i>>2),a=i&3,o=1):o==1?(n+=We(a<<2|i>>4),a=i&15,o=2):o==2?(n+=We(a),n+=We(i>>2),a=i&3,o=3):(n+=We(a<<2|i>>4),n+=We(i&15),o=0))}return o==1&&(n+=We(a<<2)),n}var St,dl={decode:function(e){var n;if(St===void 0){var t="0123456789ABCDEF",o=` \f
|
|
72
|
-
\r \u2028\u2029`;for(
|
|
73
|
-
\r \u2028\u2029`;for(
|
|
74
|
-
`;break;default:
|
|
75
|
-
`}
|
|
76
|
-
`,s="",f=n+1;f<t;++f){for(var c=this.get(f),d=f==t-1?
|
|
77
|
-
`;o/=2,
|
|
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 no?t=n:t=new no(n,0);var o=new no(t),a=new Ta(t),i=e.decodeLength(t),l=t.pos,s=l-o.pos,f=null,c=function(){var y=[];if(i!==null){for(var u=l+i;t.pos<u;)y[y.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;y[y.length]=h}i=l-t.pos}catch(g){throw new Error("Exception while decoding undefined length content: "+g)}return y};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}(),Ta=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 Nt;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}(),et,gl=0xdeadbeefcafe,Ea=(gl&16777215)==15715070,Be=[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],xl=(1<<26)/Be[Be.length-1],Q=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=We(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+=We(a));return i?l:"0"},e.prototype.negate=function(){var n=te();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=te();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 Ba(t):o=new Da(t),this.exp(n,o)},e.prototype.clone=function(){var n=te();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=te();return this.bitwiseTo(n,ll,t),t},e.prototype.or=function(n){var t=te();return this.bitwiseTo(n,Ht,t),t},e.prototype.xor=function(n){var t=te();return this.bitwiseTo(n,wa,t),t},e.prototype.andNot=function(n){var t=te();return this.bitwiseTo(n,Ca,t),t},e.prototype.not=function(){for(var n=te(),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=te();return n<0?this.rShiftTo(-n,t):this.lShiftTo(n,t),t},e.prototype.shiftRight=function(n){var t=te();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+cl(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+=fl(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,Ca)},e.prototype.flipBit=function(n){return this.changeBit(n,wa)},e.prototype.add=function(n){var t=te();return this.addTo(n,t),t},e.prototype.subtract=function(n){var t=te();return this.subTo(n,t),t},e.prototype.multiply=function(n){var t=te();return this.multiplyTo(n,t),t},e.prototype.divide=function(n){var t=te();return this.divRemTo(n,t,null),t},e.prototype.remainder=function(n){var t=te();return this.divRemTo(n,null,t),t},e.prototype.divideAndRemainder=function(n){var t=te(),o=te();return this.divRemTo(n,t,o),[t,o]},e.prototype.modPow=function(n,t){var o=n.bitLength(),a,i=tt(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 Ba(t):t.isEven()?l=new pl(t):l=new Da(t);var s=[],f=3,c=a-1,d=(1<<a)-1;if(s[1]=l.convert(this),a>1){var y=te();for(l.sqrTo(s[1],y);f<=d;)s[f]=te(),l.mulTo(y,s[f-2],s[f]),f+=2}var u=n.t-1,h,g=!0,m=te(),p;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,m),l.sqrTo(m,i),f-=2;f>0?l.sqrTo(i,m):(p=i,i=m,m=p),l.mulTo(m,s[h],i)}for(;u>=0&&!(n[u]&1<<o);)l.sqrTo(i,m),p=i,i=m,m=p,--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=tt(1),l=tt(0),s=tt(0),f=tt(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 yl)},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]<=Be[Be.length-1]){for(t=0;t<Be.length;++t)if(o[0]==Be[t])return!0;return!1}if(o.isEven())return!1;for(t=1;t<Be.length;){for(var a=Be[t],i=t+1;i<Be.length&&a<xl;)a*=Be[i++];for(a=o.modInt(a);t<i;)if(a%Be[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:Ia(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=te());var l=te(),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,y=l[d-1];if(y!=0){var u=y*(1<<this.F1)+(d>1?l[d-2]>>this.F2:0),h=this.FV/u,g=(1<<this.F1)/u,m=1<<this.F2,p=o.t,w=p-d,x=t??te();for(l.dlShiftTo(w,x),o.compareTo(x)>=0&&(o[o.t++]=1,o.subTo(x,o)),e.ONE.dlShiftTo(d,x),x.subTo(l,l);l.t<d;)l[l.t++]=0;for(;--w>=0;){var v=o[--p]==y?this.DM:Math.floor(o[p]*h+(o[p-1]+m)*g);if((o[p]+=l.am(0,v,o,w,0,d))<v)for(l.dlShiftTo(w,x),o.subTo(x,o);o[p]<--v;)o.subTo(x,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=te(),a=te(),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=tt(o),i=te(),l=te(),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=Ia(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>Be.length&&(n=Be.length);for(var i=te(),l=0;l<n;++l){i.fromInt(Be[Math.floor(Math.random()*Be.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=te();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}(),yl=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}(),Ba=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}(),Da=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=te();return n.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),n.s<0&&t.compareTo(Q.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(n){var t=te();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}(),pl=function(){function e(n){this.m=n,this.r2=te(),this.q3=te(),Q.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=te();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 te(){return new Q(null)}function xe(e,n){return new Q(e,n)}var Ra=typeof navigator<"u";Ra&&Ea&&navigator.appName=="Microsoft Internet Explorer"?(Q.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,y=f*c+d*s;c=s*c+((y&32767)<<15)+o[a]+(i&1073741823),i=(c>>>30)+(y>>>15)+f*d+(i>>>30),o[a++]=c&1073741823}return i},et=30):Ra&&Ea&&navigator.appName!="Netscape"?(Q.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},et=26):(Q.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,y=f*c+d*s;c=s*c+((y&16383)<<14)+o[a]+i,i=(c>>28)+(y>>14)+f*d,o[a++]=c&268435455}return i},et=28),Q.prototype.DB=et,Q.prototype.DM=(1<<et)-1,Q.prototype.DV=1<<et;var oo=52;Q.prototype.FV=Math.pow(2,oo),Q.prototype.F1=oo-et,Q.prototype.F2=2*et-oo;var jt=[],kt,Me;for(kt="0".charCodeAt(0),Me=0;Me<=9;++Me)jt[kt++]=Me;for(kt="a".charCodeAt(0),Me=10;Me<36;++Me)jt[kt++]=Me;for(kt="A".charCodeAt(0),Me=10;Me<36;++Me)jt[kt++]=Me;function Ia(e,n){var t=jt[e.charCodeAt(n)];return t??-1}function tt(e){var n=te();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}Q.ZERO=tt(0),Q.ONE=tt(1);var vl=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 bl(){return new vl}var La=256,Gt,nt=null,Fe;if(nt==null){nt=[],Fe=0;var Wt=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var ro=new Uint32Array(256);for(window.crypto.getRandomValues(ro),Wt=0;Wt<ro.length;++Wt)nt[Fe++]=ro[Wt]&255}var Zt=0,Kt=function(e){if(Zt=Zt||0,Zt>=256||Fe>=La){window.removeEventListener?window.removeEventListener("mousemove",Kt,!1):window.detachEvent&&window.detachEvent("onmousemove",Kt);return}try{var n=e.x+e.y;nt[Fe++]=n&255,Zt+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",Kt,!1):window.attachEvent&&window.attachEvent("onmousemove",Kt))}function Sl(){if(Gt==null){for(Gt=bl();Fe<La;){var e=Math.floor(65536*Math.random());nt[Fe++]=e&255}for(Gt.init(nt),Fe=0;Fe<nt.length;++Fe)nt[Fe]=0;Fe=0}return Gt.next()}var ao=function(){function e(){}return e.prototype.nextBytes=function(n){for(var t=0;t<n.length;++t)n[t]=Sl()},e}();function wl(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 xe(i,16)}function Cl(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 ao,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 Q(t)}var kl=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=xe(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=Cl(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=xe(n,16),this.e=parseInt(t,16),this.d=xe(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=xe(n,16),this.e=parseInt(t,16),this.d=xe(o,16),this.p=xe(a,16),this.q=xe(i,16),this.dmp1=xe(l,16),this.dmq1=xe(s,16),this.coeff=xe(f,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(n,t){var o=new ao,a=n>>1;this.e=parseInt(t,16);for(var i=new Q(t,16);;){for(;this.p=new Q(n-a,1,o),!(this.p.subtract(Q.ONE).gcd(i).compareTo(Q.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new Q(a,1,o),!(this.q.subtract(Q.ONE).gcd(i).compareTo(Q.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(Q.ONE),f=this.q.subtract(Q.ONE),c=s.multiply(f);if(c.gcd(i).compareTo(Q.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=xe(n,16),o=this.doPrivate(t);return o==null?null:_l(o,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(n,t,o){var a=new ao,i=n>>1;this.e=parseInt(t,16);var l=new Q(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(Q.ONE),g=s.q.subtract(Q.ONE),m=h.multiply(g);m.gcd(l).compareTo(Q.ONE)==0?(s.n=s.p.multiply(s.q),s.d=l.modInverse(m),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=te(),s.q.fromNumberAsync(i,1,a,function(){s.q.subtract(Q.ONE).gcda(l,function(u){u.compareTo(Q.ONE)==0&&s.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(d,0)})})},y=function(){s.p=te(),s.p.fromNumberAsync(n-i,1,a,function(){s.p.subtract(Q.ONE).gcda(l,function(u){u.compareTo(Q.ONE)==0&&s.p.isProbablePrime(10)?setTimeout(d,0):setTimeout(y,0)})})};setTimeout(y,0)};setTimeout(f,0)},e.prototype.sign=function(n,t,o){var a=Al(o),i=a+t(n).toString(),l=wl(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=xe(t,16),i=this.doPublic(a);if(i==null)return null;var l=i.toString(16).replace(/^1f+00/,""),s=Tl(l);return s==o(n).toString()},e}();function _l(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 Al(e){return Yt[e]||""}function Tl(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}/*!
|
|
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 h=u.slice(0);c.encryptBlock(h,0);for(var m=0;m<d;m++)s[f+m]^=h[m]}});return o.Decryptor=l,o}(),t.mode.CTRGladman})}(qn)),qn.exports}var Hn={exports:{}},cr;function Ws(){return cr||(cr=1,function(e,n){(function(t,o,r){e.exports=o(oe(),_e())})(ee,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})}(Hn)),Hn.exports}var $n={exports:{}},fr;function Zs(){return fr||(fr=1,function(e,n){(function(t,o,r){e.exports=o(oe(),_e())})(ee,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})}($n)),$n.exports}var jn={exports:{}},dr;function Ks(){return dr||(dr=1,function(e,n){(function(t,o,r){e.exports=o(oe(),_e())})(ee,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})}(jn)),jn.exports}var Un={exports:{}},ur;function Ys(){return ur||(ur=1,function(e,n){(function(t,o,r){e.exports=o(oe(),_e())})(ee,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})}(Un)),Un.exports}var Gn={exports:{}},hr;function Xs(){return hr||(hr=1,function(e,n){(function(t,o,r){e.exports=o(oe(),_e())})(ee,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})}(Gn)),Gn.exports}var Wn={exports:{}},mr;function Js(){return mr||(mr=1,function(e,n){(function(t,o,r){e.exports=o(oe(),_e())})(ee,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})}(Wn)),Wn.exports}var Zn={exports:{}},gr;function Qs(){return gr||(gr=1,function(e,n){(function(t,o,r){e.exports=o(oe(),_e())})(ee,function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding})}(Zn)),Zn.exports}var Kn={exports:{}},xr;function el(){return xr||(xr=1,function(e,n){(function(t,o,r){e.exports=o(oe(),_e())})(ee,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})}(Kn)),Kn.exports}var Yn={exports:{}},yr;function tl(){return yr||(yr=1,function(e,n){(function(t,o,r){e.exports=o(oe(),vt(),bt(),dt(),_e())})(ee,function(t){return function(){var o=t,r=o.lib,i=r.BlockCipher,l=o.algo,s=[],f=[],c=[],d=[],p=[],u=[],h=[],m=[],y=[],S=[];(function(){for(var g=[],v=0;v<256;v++)v<128?g[v]=v<<1:g[v]=v<<1^283;for(var k=0,x=0,v=0;v<256;v++){var A=x^x<<1^x<<2^x<<3^x<<4;A=A>>>8^A&255^99,s[k]=A,f[A]=k;var T=g[k],E=g[T],w=g[E],_=g[A]*257^A*16843008;c[k]=_<<24|_>>>8,d[k]=_<<16|_>>>16,p[k]=_<<8|_>>>24,u[k]=_;var _=w*16843009^E*65537^T*257^k*16843008;h[A]=_<<24|_>>>8,m[A]=_<<16|_>>>16,y[A]=_<<8|_>>>24,S[A]=_,k?(k=T^g[g[g[w^T]]],x^=g[g[x]]):k=x=1}})();var C=[0,1,2,4,8,16,32,64,128,27,54],b=l.AES=i.extend({_doReset:function(){var g;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var v=this._keyPriorReset=this._key,k=v.words,x=v.sigBytes/4,A=this._nRounds=x+6,T=(A+1)*4,E=this._keySchedule=[],w=0;w<T;w++)w<x?E[w]=k[w]:(g=E[w-1],w%x?x>6&&w%x==4&&(g=s[g>>>24]<<24|s[g>>>16&255]<<16|s[g>>>8&255]<<8|s[g&255]):(g=g<<8|g>>>24,g=s[g>>>24]<<24|s[g>>>16&255]<<16|s[g>>>8&255]<<8|s[g&255],g^=C[w/x|0]<<24),E[w]=E[w-x]^g);for(var _=this._invKeySchedule=[],R=0;R<T;R++){var w=T-R;if(R%4)var g=E[w];else var g=E[w-4];R<4||w<=4?_[R]=g:_[R]=h[s[g>>>24]]^m[s[g>>>16&255]]^y[s[g>>>8&255]]^S[s[g&255]]}}},encryptBlock:function(g,v){this._doCryptBlock(g,v,this._keySchedule,c,d,p,u,s)},decryptBlock:function(g,v){var k=g[v+1];g[v+1]=g[v+3],g[v+3]=k,this._doCryptBlock(g,v,this._invKeySchedule,h,m,y,S,f);var k=g[v+1];g[v+1]=g[v+3],g[v+3]=k},_doCryptBlock:function(g,v,k,x,A,T,E,w){for(var _=this._nRounds,R=g[v]^k[0],N=g[v+1]^k[1],F=g[v+2]^k[2],D=g[v+3]^k[3],M=4,H=1;H<_;H++){var I=x[R>>>24]^A[N>>>16&255]^T[F>>>8&255]^E[D&255]^k[M++],O=x[N>>>24]^A[F>>>16&255]^T[D>>>8&255]^E[R&255]^k[M++],z=x[F>>>24]^A[D>>>16&255]^T[R>>>8&255]^E[N&255]^k[M++],B=x[D>>>24]^A[R>>>16&255]^T[N>>>8&255]^E[F&255]^k[M++];R=I,N=O,F=z,D=B}var I=(w[R>>>24]<<24|w[N>>>16&255]<<16|w[F>>>8&255]<<8|w[D&255])^k[M++],O=(w[N>>>24]<<24|w[F>>>16&255]<<16|w[D>>>8&255]<<8|w[R&255])^k[M++],z=(w[F>>>24]<<24|w[D>>>16&255]<<16|w[R>>>8&255]<<8|w[N&255])^k[M++],B=(w[D>>>24]<<24|w[R>>>16&255]<<16|w[N>>>8&255]<<8|w[F&255])^k[M++];g[v]=I,g[v+1]=O,g[v+2]=z,g[v+3]=B},keySize:256/32});o.AES=i._createHelper(b)}(),t.AES})}(Yn)),Yn.exports}var Xn={exports:{}},pr;function nl(){return pr||(pr=1,function(e,n){(function(t,o,r){e.exports=o(oe(),vt(),bt(),dt(),_e())})(ee,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],h=s.DES=l.extend({_doReset:function(){for(var C=this._key,b=C.words,g=[],v=0;v<56;v++){var k=f[v]-1;g[v]=b[k>>>5]>>>31-k%32&1}for(var x=this._subKeys=[],A=0;A<16;A++){for(var T=x[A]=[],E=d[A],v=0;v<24;v++)T[v/6|0]|=g[(c[v]-1+E)%28]<<31-v%6,T[4+(v/6|0)]|=g[28+(c[v+24]-1+E)%28]<<31-v%6;T[0]=T[0]<<1|T[0]>>>31;for(var v=1;v<7;v++)T[v]=T[v]>>>(v-1)*4+3;T[7]=T[7]<<5|T[7]>>>27}for(var w=this._invSubKeys=[],v=0;v<16;v++)w[v]=x[15-v]},encryptBlock:function(C,b){this._doCryptBlock(C,b,this._subKeys)},decryptBlock:function(C,b){this._doCryptBlock(C,b,this._invSubKeys)},_doCryptBlock:function(C,b,g){this._lBlock=C[b],this._rBlock=C[b+1],m.call(this,4,252645135),m.call(this,16,65535),y.call(this,2,858993459),y.call(this,8,16711935),m.call(this,1,1431655765);for(var v=0;v<16;v++){for(var k=g[v],x=this._lBlock,A=this._rBlock,T=0,E=0;E<8;E++)T|=p[E][((A^k[E])&u[E])>>>0];this._lBlock=A,this._rBlock=x^T}var w=this._lBlock;this._lBlock=this._rBlock,this._rBlock=w,m.call(this,1,1431655765),y.call(this,8,16711935),y.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),C[b]=this._lBlock,C[b+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function m(C,b){var g=(this._lBlock>>>C^this._rBlock)&b;this._rBlock^=g,this._lBlock^=g<<C}function y(C,b){var g=(this._rBlock>>>C^this._lBlock)&b;this._lBlock^=g,this._rBlock^=g<<C}o.DES=l._createHelper(h);var S=s.TripleDES=l.extend({_doReset:function(){var C=this._key,b=C.words;if(b.length!==2&&b.length!==4&&b.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var g=b.slice(0,2),v=b.length<4?b.slice(0,2):b.slice(2,4),k=b.length<6?b.slice(0,2):b.slice(4,6);this._des1=h.createEncryptor(i.create(g)),this._des2=h.createEncryptor(i.create(v)),this._des3=h.createEncryptor(i.create(k))},encryptBlock:function(C,b){this._des1.encryptBlock(C,b),this._des2.decryptBlock(C,b),this._des3.encryptBlock(C,b)},decryptBlock:function(C,b){this._des3.decryptBlock(C,b),this._des2.encryptBlock(C,b),this._des1.decryptBlock(C,b)},keySize:192/32,ivSize:64/32,blockSize:64/32});o.TripleDES=l._createHelper(S)}(),t.TripleDES})}(Xn)),Xn.exports}var Jn={exports:{}},vr;function ol(){return vr||(vr=1,function(e,n){(function(t,o,r){e.exports=o(oe(),vt(),bt(),dt(),_e())})(ee,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,h=this._S=[],m=0;m<256;m++)h[m]=m;for(var m=0,y=0;m<256;m++){var S=m%u,C=p[S>>>2]>>>24-S%4*8&255;y=(y+h[m]+C)%256;var b=h[m];h[m]=h[y],h[y]=b}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,m=0;m<4;m++){p=(p+1)%256,u=(u+d[p])%256;var y=d[p];d[p]=d[u],d[u]=y,h|=d[(d[p]+d[u])%256]<<24-m*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})}(Jn)),Jn.exports}var Qn={exports:{}},br;function al(){return br||(br=1,function(e,n){(function(t,o,r){e.exports=o(oe(),vt(),bt(),dt(),_e())})(ee,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,h=this.cfg.iv,m=0;m<4;m++)u[m]=(u[m]<<8|u[m]>>>24)&16711935|(u[m]<<24|u[m]>>>8)&4278255360;var y=this._X=[u[0],u[3]<<16|u[2]>>>16,u[1],u[0]<<16|u[3]>>>16,u[2],u[1]<<16|u[0]>>>16,u[3],u[2]<<16|u[1]>>>16],S=this._C=[u[2]<<16|u[2]>>>16,u[0]&4294901760|u[1]&65535,u[3]<<16|u[3]>>>16,u[1]&4294901760|u[2]&65535,u[0]<<16|u[0]>>>16,u[2]&4294901760|u[3]&65535,u[1]<<16|u[1]>>>16,u[3]&4294901760|u[0]&65535];this._b=0;for(var m=0;m<4;m++)p.call(this);for(var m=0;m<8;m++)S[m]^=y[m+4&7];if(h){var C=h.words,b=C[0],g=C[1],v=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,k=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,x=v>>>16|k&4294901760,A=k<<16|v&65535;S[0]^=v,S[1]^=x,S[2]^=k,S[3]^=A,S[4]^=v,S[5]^=x,S[6]^=k,S[7]^=A;for(var m=0;m<4;m++)p.call(this)}},_doProcessBlock:function(u,h){var m=this._X;p.call(this),s[0]=m[0]^m[5]>>>16^m[3]<<16,s[1]=m[2]^m[7]>>>16^m[5]<<16,s[2]=m[4]^m[1]>>>16^m[7]<<16,s[3]=m[6]^m[3]>>>16^m[1]<<16;for(var y=0;y<4;y++)s[y]=(s[y]<<8|s[y]>>>24)&16711935|(s[y]<<24|s[y]>>>8)&4278255360,u[h+y]^=s[y]},blockSize:128/32,ivSize:64/32});function p(){for(var u=this._X,h=this._C,m=0;m<8;m++)f[m]=h[m];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 m=0;m<8;m++){var y=u[m]+h[m],S=y&65535,C=y>>>16,b=((S*S>>>17)+S*C>>>15)+C*C,g=((y&4294901760)*y|0)+((y&65535)*y|0);c[m]=b^g}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})}(Qn)),Qn.exports}var eo={exports:{}},Sr;function rl(){return Sr||(Sr=1,function(e,n){(function(t,o,r){e.exports=o(oe(),vt(),bt(),dt(),_e())})(ee,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,h=this.cfg.iv,m=this._X=[u[0],u[3]<<16|u[2]>>>16,u[1],u[0]<<16|u[3]>>>16,u[2],u[1]<<16|u[0]>>>16,u[3],u[2]<<16|u[1]>>>16],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 S=0;S<4;S++)p.call(this);for(var S=0;S<8;S++)y[S]^=m[S+4&7];if(h){var C=h.words,b=C[0],g=C[1],v=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,k=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,x=v>>>16|k&4294901760,A=k<<16|v&65535;y[0]^=v,y[1]^=x,y[2]^=k,y[3]^=A,y[4]^=v,y[5]^=x,y[6]^=k,y[7]^=A;for(var S=0;S<4;S++)p.call(this)}},_doProcessBlock:function(u,h){var m=this._X;p.call(this),s[0]=m[0]^m[5]>>>16^m[3]<<16,s[1]=m[2]^m[7]>>>16^m[5]<<16,s[2]=m[4]^m[1]>>>16^m[7]<<16,s[3]=m[6]^m[3]>>>16^m[1]<<16;for(var y=0;y<4;y++)s[y]=(s[y]<<8|s[y]>>>24)&16711935|(s[y]<<24|s[y]>>>8)&4278255360,u[h+y]^=s[y]},blockSize:128/32,ivSize:64/32});function p(){for(var u=this._X,h=this._C,m=0;m<8;m++)f[m]=h[m];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 m=0;m<8;m++){var y=u[m]+h[m],S=y&65535,C=y>>>16,b=((S*S>>>17)+S*C>>>15)+C*C,g=((y&4294901760)*y|0)+((y&65535)*y|0);c[m]=b^g}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})}(eo)),eo.exports}(function(e,n){(function(t,o,r){e.exports=o(oe(),qt(),zs(),Ms(),vt(),Ps(),bt(),Tn(),Ka(),Fs(),Ja(),Vs(),qs(),Hs(),Nn(),$s(),dt(),_e(),js(),Us(),Gs(),Ws(),Zs(),Ks(),Ys(),Xs(),Js(),Qs(),el(),tl(),nl(),ol(),al(),rl())})(ee,function(t){return t})})(Fa);var il=Fa.exports;const Le=Is(il);var sl="0123456789abcdefghijklmnopqrstuvwxyz";function Ze(e){return sl.charAt(e)}function ll(e,n){return e&n}function Ht(e,n){return e|n}function wr(e,n){return e^n}function Cr(e,n){return e&~n}function cl(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 fl(e){for(var n=0;e!=0;)e&=e-1,++n;return n}var St="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",kr="=";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+=St.charAt(t>>6)+St.charAt(t&63);for(n+1==e.length?(t=parseInt(e.substring(n,n+1),16),o+=St.charAt(t<<2)):n+2==e.length&&(t=parseInt(e.substring(n,n+2),16),o+=St.charAt(t>>2)+St.charAt((t&3)<<4));(o.length&3)>0;)o+=kr;return o}function _r(e){var n="",t,o=0,r=0;for(t=0;t<e.length&&e.charAt(t)!=kr;++t){var i=St.indexOf(e.charAt(t));i<0||(o==0?(n+=Ze(i>>2),r=i&3,o=1):o==1?(n+=Ze(r<<2|i>>4),r=i&15,o=2):o==2?(n+=Ze(r),n+=Ze(i>>2),r=i&3,o=3):(n+=Ze(r<<2|i>>4),n+=Ze(i&15),o=0))}return o==1&&(n+=Ze(r<<2)),n}var wt,dl={decode:function(e){var n;if(wt===void 0){var t="0123456789ABCDEF",o=` \f
|
|
72
|
+
\r \u2028\u2029`;for(wt={},n=0;n<16;++n)wt[t.charAt(n)]=n;for(t=t.toLowerCase(),n=10;n<16;++n)wt[t.charAt(n)]=n;for(n=0;n<o.length;++n)wt[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=wt[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}},ut,to={decode:function(e){var n;if(ut===void 0){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=`= \f
|
|
73
|
+
\r \u2028\u2029`;for(ut=Object.create(null),n=0;n<64;++n)ut[t.charAt(n)]=n;for(ut["-"]=62,ut._=63,n=0;n<o.length;++n)ut[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=ut[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=to.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 to.decode(e)}},Ct=1e13,Nt=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<Ct?t=0:(t=0|l/Ct,l-=t*Ct),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+=Ct,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+=(Ct+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*Ct+n[o];return t},e.prototype.simplify=function(){var n=this.buf;return n.length==1?n[0]:this},e}(),Ar="…",ul=/^(\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)?)?$/,hl=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function kt(e,n){return e.length>n&&(e=e.substring(0,n)+Ar),e}var no=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?ul:hl).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 Nt(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+kt(s,o)}return l+s},e.prototype.parseOctetString=function(n,t,o){if(this.isASCII(n,t))return kt(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+=Ar),i},e.prototype.parseOID=function(n,t,o){for(var r="",i=new Nt,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 Nt)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 kt(r,o);i=new Nt,l=0}}return l>0&&(r+=".incomplete"),r},e}(),ml=function(){function e(n,t,o,r,i){if(!(r instanceof Tr))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 kt(this.stream.parseStringUTF(t,t+o),n);case 18:case 19:case 20:case 21:case 22:case 26:return kt(this.stream.parseStringISO(t,t+o),n);case 30:return kt(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 no?t=n:t=new no(n,0);var o=new no(t),r=new Tr(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(m){throw new Error("Exception while decoding undefined length content: "+m)}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}(),Tr=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 Nt;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}(),tt,gl=0xdeadbeefcafe,Er=(gl&16777215)==15715070,Be=[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],xl=(1<<26)/Be[Be.length-1],Q=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=Ze(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+=Ze(r));return i?l:"0"},e.prototype.negate=function(){var n=te();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=te();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 Br(t):o=new Dr(t),this.exp(n,o)},e.prototype.clone=function(){var n=te();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=te();return this.bitwiseTo(n,ll,t),t},e.prototype.or=function(n){var t=te();return this.bitwiseTo(n,Ht,t),t},e.prototype.xor=function(n){var t=te();return this.bitwiseTo(n,wr,t),t},e.prototype.andNot=function(n){var t=te();return this.bitwiseTo(n,Cr,t),t},e.prototype.not=function(){for(var n=te(),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=te();return n<0?this.rShiftTo(-n,t):this.lShiftTo(n,t),t},e.prototype.shiftRight=function(n){var t=te();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+cl(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+=fl(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,Cr)},e.prototype.flipBit=function(n){return this.changeBit(n,wr)},e.prototype.add=function(n){var t=te();return this.addTo(n,t),t},e.prototype.subtract=function(n){var t=te();return this.subTo(n,t),t},e.prototype.multiply=function(n){var t=te();return this.multiplyTo(n,t),t},e.prototype.divide=function(n){var t=te();return this.divRemTo(n,t,null),t},e.prototype.remainder=function(n){var t=te();return this.divRemTo(n,null,t),t},e.prototype.divideAndRemainder=function(n){var t=te(),o=te();return this.divRemTo(n,t,o),[t,o]},e.prototype.modPow=function(n,t){var o=n.bitLength(),r,i=nt(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 Br(t):t.isEven()?l=new pl(t):l=new Dr(t);var s=[],f=3,c=r-1,d=(1<<r)-1;if(s[1]=l.convert(this),r>1){var p=te();for(l.sqrTo(s[1],p);f<=d;)s[f]=te(),l.mulTo(p,s[f-2],s[f]),f+=2}var u=n.t-1,h,m=!0,y=te(),S;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=r;!(h&1);)h>>=1,--f;if((o-=f)<0&&(o+=this.DB,--u),m)s[h].copyTo(i),m=!1;else{for(;f>1;)l.sqrTo(i,y),l.sqrTo(y,i),f-=2;f>0?l.sqrTo(i,y):(S=i,i=y,y=S),l.mulTo(y,s[h],i)}for(;u>=0&&!(n[u]&1<<o);)l.sqrTo(i,y),S=i,i=y,y=S,--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=nt(1),l=nt(0),s=nt(0),f=nt(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 yl)},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]<=Be[Be.length-1]){for(t=0;t<Be.length;++t)if(o[0]==Be[t])return!0;return!1}if(o.isEven())return!1;for(t=1;t<Be.length;){for(var r=Be[t],i=t+1;i<Be.length&&r<xl;)r*=Be[i++];for(r=o.modInt(r);t<i;)if(r%Be[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:Ir(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=te());var l=te(),s=this.s,f=n.s,c=this.DB-Ut(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),h=this.FV/u,m=(1<<this.F1)/u,y=1<<this.F2,S=o.t,C=S-d,b=t??te();for(l.dlShiftTo(C,b),o.compareTo(b)>=0&&(o[o.t++]=1,o.subTo(b,o)),e.ONE.dlShiftTo(d,b),b.subTo(l,l);l.t<d;)l[l.t++]=0;for(;--C>=0;){var g=o[--S]==p?this.DM:Math.floor(o[S]*h+(o[S-1]+y)*m);if((o[S]+=l.am(0,g,o,C,0,d))<g)for(l.dlShiftTo(C,b),o.subTo(b,o);o[S]<--g;)o.subTo(b,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=te(),r=te(),i=t.convert(this),l=Ut(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=nt(o),i=te(),l=te(),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=Ir(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),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 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>Be.length&&(n=Be.length);for(var i=te(),l=0;l<n;++l){i.fromInt(Be[Math.floor(Math.random()*Be.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=te();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),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(){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}(),yl=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}(),Br=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}(),Dr=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=te();return n.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),n.s<0&&t.compareTo(Q.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(n){var t=te();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}(),pl=function(){function e(n){this.m=n,this.r2=te(),this.q3=te(),Q.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=te();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 te(){return new Q(null)}function xe(e,n){return new Q(e,n)}var Rr=typeof navigator<"u";Rr&&Er&&navigator.appName=="Microsoft Internet Explorer"?(Q.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},tt=30):Rr&&Er&&navigator.appName!="Netscape"?(Q.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},tt=26):(Q.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},tt=28),Q.prototype.DB=tt,Q.prototype.DM=(1<<tt)-1,Q.prototype.DV=1<<tt;var oo=52;Q.prototype.FV=Math.pow(2,oo),Q.prototype.F1=oo-tt,Q.prototype.F2=2*tt-oo;var jt=[],_t,Me;for(_t="0".charCodeAt(0),Me=0;Me<=9;++Me)jt[_t++]=Me;for(_t="a".charCodeAt(0),Me=10;Me<36;++Me)jt[_t++]=Me;for(_t="A".charCodeAt(0),Me=10;Me<36;++Me)jt[_t++]=Me;function Ir(e,n){var t=jt[e.charCodeAt(n)];return t??-1}function nt(e){var n=te();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}Q.ZERO=nt(0),Q.ONE=nt(1);var vl=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 bl(){return new vl}var Lr=256,Gt,ot=null,Fe;if(ot==null){ot=[],Fe=0;var Wt=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var ao=new Uint32Array(256);for(window.crypto.getRandomValues(ao),Wt=0;Wt<ao.length;++Wt)ot[Fe++]=ao[Wt]&255}var Zt=0,Kt=function(e){if(Zt=Zt||0,Zt>=256||Fe>=Lr){window.removeEventListener?window.removeEventListener("mousemove",Kt,!1):window.detachEvent&&window.detachEvent("onmousemove",Kt);return}try{var n=e.x+e.y;ot[Fe++]=n&255,Zt+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",Kt,!1):window.attachEvent&&window.attachEvent("onmousemove",Kt))}function Sl(){if(Gt==null){for(Gt=bl();Fe<Lr;){var e=Math.floor(65536*Math.random());ot[Fe++]=e&255}for(Gt.init(ot),Fe=0;Fe<ot.length;++Fe)ot[Fe]=0;Fe=0}return Gt.next()}var ro=function(){function e(){}return e.prototype.nextBytes=function(n){for(var t=0;t<n.length;++t)n[t]=Sl()},e}();function wl(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 xe(i,16)}function Cl(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 ro,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 Q(t)}var kl=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=xe(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=Cl(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=xe(n,16),this.e=parseInt(t,16),this.d=xe(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=xe(n,16),this.e=parseInt(t,16),this.d=xe(o,16),this.p=xe(r,16),this.q=xe(i,16),this.dmp1=xe(l,16),this.dmq1=xe(s,16),this.coeff=xe(f,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(n,t){var o=new ro,r=n>>1;this.e=parseInt(t,16);for(var i=new Q(t,16);;){for(;this.p=new Q(n-r,1,o),!(this.p.subtract(Q.ONE).gcd(i).compareTo(Q.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new Q(r,1,o),!(this.q.subtract(Q.ONE).gcd(i).compareTo(Q.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(Q.ONE),f=this.q.subtract(Q.ONE),c=s.multiply(f);if(c.gcd(i).compareTo(Q.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=xe(n,16),o=this.doPrivate(t);return o==null?null:_l(o,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(n,t,o){var r=new ro,i=n>>1;this.e=parseInt(t,16);var l=new Q(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(Q.ONE),m=s.q.subtract(Q.ONE),y=h.multiply(m);y.gcd(l).compareTo(Q.ONE)==0?(s.n=s.p.multiply(s.q),s.d=l.modInverse(y),s.dmp1=s.d.mod(h),s.dmq1=s.d.mod(m),s.coeff=s.q.modInverse(s.p),setTimeout(function(){o()},0)):setTimeout(f,0)},d=function(){s.q=te(),s.q.fromNumberAsync(i,1,r,function(){s.q.subtract(Q.ONE).gcda(l,function(u){u.compareTo(Q.ONE)==0&&s.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(d,0)})})},p=function(){s.p=te(),s.p.fromNumberAsync(n-i,1,r,function(){s.p.subtract(Q.ONE).gcda(l,function(u){u.compareTo(Q.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=Al(o),i=r+t(n).toString(),l=wl(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=xe(t,16),i=this.doPublic(r);if(i==null)return null;var l=i.toString(16).replace(/^1f+00/,""),s=Tl(l);return s==o(n).toString()},e}();function _l(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 Yt={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Al(e){return Yt[e]||""}function Tl(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 pe={};pe.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
|
|
83
|
+
*/var pe={};pe.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)}}};/**
|
|
84
84
|
* @fileOverview
|
|
85
85
|
* @name asn1-1.0.js
|
|
86
86
|
* @author Kenji Urushima kenji.urushima@gmail.com
|
|
87
87
|
* @version asn1 1.0.13 (2017-Jun-02)
|
|
88
88
|
* @since jsrsasign 2.1
|
|
89
89
|
* @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
|
|
90
|
-
*/var $={};(typeof $.asn1>"u"||!$.asn1)&&($.asn1={}),$.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var 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 Q(a,16),s=l.xor(e).add(Q.ONE);n=s.toString(16).replace(/^-/,"")}return n},this.getPEMStringFromHex=function(e,n){return hextopem(e,n)},this.newObject=function(e){var n=$,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,y=t.DERNumericString,u=t.DERPrintableString,h=t.DERTeletexString,g=t.DERIA5String,m=t.DERUTCTime,p=t.DERGeneralizedTime,w=t.DERSequence,x=t.DERSet,v=t.DERTaggedObject,b=t.ASN1Util.newObject,A=Object.keys(e);if(A.length!=1)throw"key of param shall be only one.";var S=A[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+S+":")==-1)throw"undefined key: "+S;if(S=="bool")return new o(e[S]);if(S=="int")return new a(e[S]);if(S=="bitstr")return new i(e[S]);if(S=="octstr")return new l(e[S]);if(S=="null")return new s(e[S]);if(S=="oid")return new f(e[S]);if(S=="enum")return new c(e[S]);if(S=="utf8str")return new d(e[S]);if(S=="numstr")return new y(e[S]);if(S=="prnstr")return new u(e[S]);if(S=="telstr")return new h(e[S]);if(S=="ia5str")return new g(e[S]);if(S=="utctime")return new m(e[S]);if(S=="gentime")return new p(e[S]);if(S=="seq"){for(var _=e[S],E=[],B=0;B<_.length;B++){var C=b(_[B]);E.push(C)}return new w({array:E})}if(S=="set"){for(var _=e[S],E=[],B=0;B<_.length;B++){var C=b(_[B]);E.push(C)}return new x({array:E})}if(S=="tag"){var k=e[S];if(Object.prototype.toString.call(k)==="[object Array]"&&k.length==3){var I=b(k[2]);return new v({tag:k[0],explicit:k[1],obj:I})}else{var O={};if(k.explicit!==void 0&&(O.explicit=k.explicit),k.tag!==void 0&&(O.tag=k.tag),k.obj===void 0)throw"obj shall be specified for 'tag'.";return O.obj=b(k.obj),new v(O)}}},this.jsonToASN1HEX=function(e){var n=this.newObject(e);return n.getEncodedHex()}},$.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 Q(i,2);a=a+"."+c.toString(10),i=""}}return a},$.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 Q(s,10),d=c.toString(2),y=7-d.length%7;y==7&&(y=0);for(var u="",h=0;h<y;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},$.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""}},$.asn1.DERAbstractString=function(e){$.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))},pe.lang.extend($.asn1.DERAbstractString,$.asn1.ASN1Object),$.asn1.DERAbstractTime=function(e){$.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),y=a(String(i.getSeconds()),2),u=l+s+f+c+d+y;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}},pe.lang.extend($.asn1.DERAbstractTime,$.asn1.ASN1Object),$.asn1.DERAbstractStructured=function(e){$.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)},pe.lang.extend($.asn1.DERAbstractStructured,$.asn1.ASN1Object),$.asn1.DERBoolean=function(){$.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},pe.lang.extend($.asn1.DERBoolean,$.asn1.ASN1Object),$.asn1.DERInteger=function(e){$.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(n){this.hTLV=null,this.isModified=!0,this.hV=$.asn1.ASN1Util.bigIntToMinTwosComplementsHex(n)},this.setByInteger=function(n){var t=new Q(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))},pe.lang.extend($.asn1.DERInteger,$.asn1.ASN1Object),$.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var n=$.asn1.ASN1Util.newObject(e.obj);e.hex="00"+n.getEncodedHex()}$.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))},pe.lang.extend($.asn1.DERBitString,$.asn1.ASN1Object),$.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var n=$.asn1.ASN1Util.newObject(e.obj);e.hex=n.getEncodedHex()}$.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},pe.lang.extend($.asn1.DEROctetString,$.asn1.DERAbstractString),$.asn1.DERNull=function(){$.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},pe.lang.extend($.asn1.DERNull,$.asn1.ASN1Object),$.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 Q(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};$.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=$.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))},pe.lang.extend($.asn1.DERObjectIdentifier,$.asn1.ASN1Object),$.asn1.DEREnumerated=function(e){$.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(n){this.hTLV=null,this.isModified=!0,this.hV=$.asn1.ASN1Util.bigIntToMinTwosComplementsHex(n)},this.setByInteger=function(n){var t=new Q(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))},pe.lang.extend($.asn1.DEREnumerated,$.asn1.ASN1Object),$.asn1.DERUTF8String=function(e){$.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},pe.lang.extend($.asn1.DERUTF8String,$.asn1.DERAbstractString),$.asn1.DERNumericString=function(e){$.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},pe.lang.extend($.asn1.DERNumericString,$.asn1.DERAbstractString),$.asn1.DERPrintableString=function(e){$.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},pe.lang.extend($.asn1.DERPrintableString,$.asn1.DERAbstractString),$.asn1.DERTeletexString=function(e){$.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},pe.lang.extend($.asn1.DERTeletexString,$.asn1.DERAbstractString),$.asn1.DERIA5String=function(e){$.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},pe.lang.extend($.asn1.DERIA5String,$.asn1.DERAbstractString),$.asn1.DERUTCTime=function(e){$.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))},pe.lang.extend($.asn1.DERUTCTime,$.asn1.DERAbstractTime),$.asn1.DERGeneralizedTime=function(e){$.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(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))},pe.lang.extend($.asn1.DERGeneralizedTime,$.asn1.DERAbstractTime),$.asn1.DERSequence=function(e){$.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var n="",t=0;t<this.asn1Array.length;t++){var o=this.asn1Array[t];n+=o.getEncodedHex()}return this.hV=n,this.hV}},pe.lang.extend($.asn1.DERSequence,$.asn1.DERAbstractStructured),$.asn1.DERSet=function(e){$.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var 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)},pe.lang.extend($.asn1.DERSet,$.asn1.DERAbstractStructured),$.asn1.DERTaggedObject=function(e){$.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(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)))},pe.lang.extend($.asn1.DERTaggedObject,$.asn1.ASN1Object);var El=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)}}(),Oa=function(e){El(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)?dl.decode(t):to.unarmor(t),s=ml.decode(l);if(s.sub.length===3&&(s=s.sub[2].sub[0]),s.sub.length===9){o=s.sub[1].getHexStringValue(),this.n=xe(o,16),a=s.sub[2].getHexStringValue(),this.e=parseInt(a,16);var f=s.sub[3].getHexStringValue();this.d=xe(f,16);var c=s.sub[4].getHexStringValue();this.p=xe(c,16);var d=s.sub[5].getHexStringValue();this.q=xe(d,16);var y=s.sub[6].getHexStringValue();this.dmp1=xe(y,16);var u=s.sub[7].getHexStringValue();this.dmq1=xe(u,16);var h=s.sub[8].getHexStringValue();this.coeff=xe(h,16)}else if(s.sub.length===2)if(s.sub[0].sub){var g=s.sub[1],m=g.sub[0];o=m.sub[0].getHexStringValue(),this.n=xe(o,16),a=m.sub[1].getHexStringValue(),this.e=parseInt(a,16)}else o=s.sub[0].getHexStringValue(),this.n=xe(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 $.asn1.DERInteger({int:0}),new $.asn1.DERInteger({bigint:this.n}),new $.asn1.DERInteger({int:this.e}),new $.asn1.DERInteger({bigint:this.d}),new $.asn1.DERInteger({bigint:this.p}),new $.asn1.DERInteger({bigint:this.q}),new $.asn1.DERInteger({bigint:this.dmp1}),new $.asn1.DERInteger({bigint:this.dmq1}),new $.asn1.DERInteger({bigint:this.coeff})]},o=new $.asn1.DERSequence(t);return o.getEncodedHex()},n.prototype.getPrivateBaseKeyB64=function(){return $t(this.getPrivateBaseKey())},n.prototype.getPublicBaseKey=function(){var t=new $.asn1.DERSequence({array:[new $.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new $.asn1.DERNull]}),o=new $.asn1.DERSequence({array:[new $.asn1.DERInteger({bigint:this.n}),new $.asn1.DERInteger({int:this.e})]}),a=new $.asn1.DERBitString({hex:"00"+o.getEncodedHex()}),i=new $.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(
|
|
90
|
+
*/var $={};(typeof $.asn1>"u"||!$.asn1)&&($.asn1={}),$.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 Q(r,16),s=l.xor(e).add(Q.ONE);n=s.toString(16).replace(/^-/,"")}return n},this.getPEMStringFromHex=function(e,n){return hextopem(e,n)},this.newObject=function(e){var n=$,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,h=t.DERTeletexString,m=t.DERIA5String,y=t.DERUTCTime,S=t.DERGeneralizedTime,C=t.DERSequence,b=t.DERSet,g=t.DERTaggedObject,v=t.ASN1Util.newObject,k=Object.keys(e);if(k.length!=1)throw"key of param shall be only one.";var x=k[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+x+":")==-1)throw"undefined key: "+x;if(x=="bool")return new o(e[x]);if(x=="int")return new r(e[x]);if(x=="bitstr")return new i(e[x]);if(x=="octstr")return new l(e[x]);if(x=="null")return new s(e[x]);if(x=="oid")return new f(e[x]);if(x=="enum")return new c(e[x]);if(x=="utf8str")return new d(e[x]);if(x=="numstr")return new p(e[x]);if(x=="prnstr")return new u(e[x]);if(x=="telstr")return new h(e[x]);if(x=="ia5str")return new m(e[x]);if(x=="utctime")return new y(e[x]);if(x=="gentime")return new S(e[x]);if(x=="seq"){for(var A=e[x],T=[],E=0;E<A.length;E++){var w=v(A[E]);T.push(w)}return new C({array:T})}if(x=="set"){for(var A=e[x],T=[],E=0;E<A.length;E++){var w=v(A[E]);T.push(w)}return new b({array:T})}if(x=="tag"){var _=e[x];if(Object.prototype.toString.call(_)==="[object Array]"&&_.length==3){var R=v(_[2]);return new g({tag:_[0],explicit:_[1],obj:R})}else{var N={};if(_.explicit!==void 0&&(N.explicit=_.explicit),_.tag!==void 0&&(N.tag=_.tag),_.obj===void 0)throw"obj shall be specified for 'tag'.";return N.obj=v(_.obj),new g(N)}}},this.jsonToASN1HEX=function(e){var n=this.newObject(e);return n.getEncodedHex()}},$.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 Q(i,2);r=r+"."+c.toString(10),i=""}}return r},$.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 Q(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 m=d.substr(h,7);h!=d.length-7&&(m="1"+m),f+=n(parseInt(m,2))}return f};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var o="",r=e.split("."),i=parseInt(r[0])*40+parseInt(r[1]);o+=n(i),r.splice(0,2);for(var l=0;l<r.length;l++)o+=t(r[l]);return o},$.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""}},$.asn1.DERAbstractString=function(e){$.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))},pe.lang.extend($.asn1.DERAbstractString,$.asn1.ASN1Object),$.asn1.DERAbstractTime=function(e){$.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 h=i.getMilliseconds();if(h!=0){var m=r(String(h),3);m=m.replace(/[0]+$/,""),u=u+"."+m}}return u+"Z"},this.zeroPadding=function(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}},pe.lang.extend($.asn1.DERAbstractTime,$.asn1.ASN1Object),$.asn1.DERAbstractStructured=function(e){$.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)},pe.lang.extend($.asn1.DERAbstractStructured,$.asn1.ASN1Object),$.asn1.DERBoolean=function(){$.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},pe.lang.extend($.asn1.DERBoolean,$.asn1.ASN1Object),$.asn1.DERInteger=function(e){$.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(n){this.hTLV=null,this.isModified=!0,this.hV=$.asn1.ASN1Util.bigIntToMinTwosComplementsHex(n)},this.setByInteger=function(n){var t=new Q(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))},pe.lang.extend($.asn1.DERInteger,$.asn1.ASN1Object),$.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var n=$.asn1.ASN1Util.newObject(e.obj);e.hex="00"+n.getEncodedHex()}$.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))},pe.lang.extend($.asn1.DERBitString,$.asn1.ASN1Object),$.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var n=$.asn1.ASN1Util.newObject(e.obj);e.hex=n.getEncodedHex()}$.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},pe.lang.extend($.asn1.DEROctetString,$.asn1.DERAbstractString),$.asn1.DERNull=function(){$.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},pe.lang.extend($.asn1.DERNull,$.asn1.ASN1Object),$.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 Q(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};$.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=$.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))},pe.lang.extend($.asn1.DERObjectIdentifier,$.asn1.ASN1Object),$.asn1.DEREnumerated=function(e){$.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(n){this.hTLV=null,this.isModified=!0,this.hV=$.asn1.ASN1Util.bigIntToMinTwosComplementsHex(n)},this.setByInteger=function(n){var t=new Q(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))},pe.lang.extend($.asn1.DEREnumerated,$.asn1.ASN1Object),$.asn1.DERUTF8String=function(e){$.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},pe.lang.extend($.asn1.DERUTF8String,$.asn1.DERAbstractString),$.asn1.DERNumericString=function(e){$.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},pe.lang.extend($.asn1.DERNumericString,$.asn1.DERAbstractString),$.asn1.DERPrintableString=function(e){$.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},pe.lang.extend($.asn1.DERPrintableString,$.asn1.DERAbstractString),$.asn1.DERTeletexString=function(e){$.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},pe.lang.extend($.asn1.DERTeletexString,$.asn1.DERAbstractString),$.asn1.DERIA5String=function(e){$.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},pe.lang.extend($.asn1.DERIA5String,$.asn1.DERAbstractString),$.asn1.DERUTCTime=function(e){$.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))},pe.lang.extend($.asn1.DERUTCTime,$.asn1.DERAbstractTime),$.asn1.DERGeneralizedTime=function(e){$.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(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))},pe.lang.extend($.asn1.DERGeneralizedTime,$.asn1.DERAbstractTime),$.asn1.DERSequence=function(e){$.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var n="",t=0;t<this.asn1Array.length;t++){var o=this.asn1Array[t];n+=o.getEncodedHex()}return this.hV=n,this.hV}},pe.lang.extend($.asn1.DERSequence,$.asn1.DERAbstractStructured),$.asn1.DERSet=function(e){$.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var 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)},pe.lang.extend($.asn1.DERSet,$.asn1.DERAbstractStructured),$.asn1.DERTaggedObject=function(e){$.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(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)))},pe.lang.extend($.asn1.DERTaggedObject,$.asn1.ASN1Object);var El=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)}}(),Or=function(e){El(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)?dl.decode(t):to.unarmor(t),s=ml.decode(l);if(s.sub.length===3&&(s=s.sub[2].sub[0]),s.sub.length===9){o=s.sub[1].getHexStringValue(),this.n=xe(o,16),r=s.sub[2].getHexStringValue(),this.e=parseInt(r,16);var f=s.sub[3].getHexStringValue();this.d=xe(f,16);var c=s.sub[4].getHexStringValue();this.p=xe(c,16);var d=s.sub[5].getHexStringValue();this.q=xe(d,16);var p=s.sub[6].getHexStringValue();this.dmp1=xe(p,16);var u=s.sub[7].getHexStringValue();this.dmq1=xe(u,16);var h=s.sub[8].getHexStringValue();this.coeff=xe(h,16)}else if(s.sub.length===2)if(s.sub[0].sub){var m=s.sub[1],y=m.sub[0];o=y.sub[0].getHexStringValue(),this.n=xe(o,16),r=y.sub[1].getHexStringValue(),this.e=parseInt(r,16)}else o=s.sub[0].getHexStringValue(),this.n=xe(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 $.asn1.DERInteger({int:0}),new $.asn1.DERInteger({bigint:this.n}),new $.asn1.DERInteger({int:this.e}),new $.asn1.DERInteger({bigint:this.d}),new $.asn1.DERInteger({bigint:this.p}),new $.asn1.DERInteger({bigint:this.q}),new $.asn1.DERInteger({bigint:this.dmp1}),new $.asn1.DERInteger({bigint:this.dmq1}),new $.asn1.DERInteger({bigint:this.coeff})]},o=new $.asn1.DERSequence(t);return o.getEncodedHex()},n.prototype.getPrivateBaseKeyB64=function(){return $t(this.getPrivateBaseKey())},n.prototype.getPublicBaseKey=function(){var t=new $.asn1.DERSequence({array:[new $.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new $.asn1.DERNull]}),o=new $.asn1.DERSequence({array:[new $.asn1.DERInteger({bigint:this.n}),new $.asn1.DERInteger({int:this.e})]}),r=new $.asn1.DERBitString({hex:"00"+o.getEncodedHex()}),i=new $.asn1.DERSequence({array:[t,r]});return i.getEncodedHex()},n.prototype.getPublicBaseKeyB64=function(){return $t(this.getPublicBaseKey())},n.wordwrap=function(t,o){if(o=o||64,!t)return t;var r="(.{1,"+o+`})( +|$
|
|
91
|
+
?)|(.{1,`+o+"})";return t.match(RegExp(r,"g")).join(`
|
|
92
92
|
`)},n.prototype.getPrivateKey=function(){var t=`-----BEGIN RSA PRIVATE KEY-----
|
|
93
93
|
`;return t+=n.wordwrap(this.getPrivateBaseKeyB64())+`
|
|
94
94
|
`,t+="-----END RSA PRIVATE KEY-----",t},n.prototype.getPublicKey=function(){var t=`-----BEGIN PUBLIC KEY-----
|
|
95
95
|
`;return t+=n.wordwrap(this.getPublicBaseKeyB64())+`
|
|
96
|
-
`,t+="-----END PUBLIC KEY-----",t},n.hasPublicKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")},n.hasPrivateKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},n.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},n}(kl),io,Bl=typeof process<"u"?(io=process.env)===null||io===void 0?void 0:io.npm_package_version:void 0,Dl=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
|
|
97
|
-
`),so=(e,n=2)=>{const t=parseFloat(e+"");return isNaN(t)?e:t.toFixed(n).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},Fl=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:Ne,...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},be=(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 y=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,u=d.match(y);for(let h=0;h<u.length;h++){const g=u[h],m=l[g];m!=null&&(d=d.replace(g,m))}(/\(.*\)/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," ")),e},Re=(e,n=()=>{})=>{const{requestUrl:t,requestMethod:o,requestHeaders:a,requestParams:i,requestInterval:l,isOpenRequestTimer:s}=e,{contextRequestUrl:f,touchEventId:c}=r.inject(ke,{contextRequestUrl:"",touchEventId:""}),{getGlobalModel:d}=r.inject(we,{getGlobalModel:g=>{}}),y=be(t),u=async(g={})=>{if(!y||!o||!a)return;let m={};i.forEach(b=>{const{key:A,value:S}=b;if(typeof S=="object"&&S!=null&&S.id){let _={};const{id:E,prop:B,propKey:C,operate:k}=S;E==="THIS"?_=d(r.unref(c))||{}:_=d(E)||{};const I=r.unref(_[B]);let O=null;if(["date","range"].some(z=>Jt(_==null?void 0:_.type,z))){const{value:z,type:F,mode:H}=k||{};if(z&&F&&H)switch(F){case"add":O=r.unref(I).add(z,H);break;case"minus":O=r.unref(I).subtract(z,H);break}O==null&&(O=r.unref(I)),O=(O==null?void 0:O.format((C==null?void 0:C.trim())||_.format))||""}else Object.prototype.toString.call(I)==="[object Object]"?C?O=I[C]:O=B?I[B]:I:Jt(_==null?void 0:_.type,"select")&&r.unref(I)&&B&&Array.isArray(r.unref(I))?O=r.unref(I).map(z=>Object.prototype.hasOwnProperty.call(z,B)?z[B]:z):O=I;m[A]=O}else typeof S=="string"&&(m[A]=be(S))}),m={...window.config.requestParams,...g,...m};let p="";const w=Object.keys(m),x=w.length-1,v=w.length;w.forEach((b,A)=>{let S=m[b];Object.prototype.toString.call(S)==="[object Object]"&&(S=JSON.stringify(S)),A===0?v!==1?p+=`?${b}=${S}&`:p+=`?${b}=${S}`:A===x?p+=`${b}=${S}`:p+=`${b}=${S}&`});try{const b=["get","head"].includes(o);let A=b?y+p:y;m.dataSqlId&&!A.includes("dataSqlId")&&(A+=`${A.includes("?")?"&":"?"}dataSqlId=${m.dataSqlId}`);const S=await ot({baseURL:r.unref(f)||"",url:A,method:o,headers:a,data:b?{}:m});return n(S),S}catch(b){console.error(b)}},h=s&&setInterval(u,l*1e3);return r.onUnmounted(()=>{clearInterval(h)}),u},rt=(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:m}=h,p={...e[0],value:e[0][m]};a.add(g),d.push(p)}const y=e[0][t]||"";i.set(y,d)}else for(let d=0;d<l;d++){const y=e[d],u=y[t];a.add(u);for(let h=0;h<s;h++){const g=o[h],{label:m,value:p}=g,w={...y,value:y[p]};if(i.has(m)){const x=i.get(m);x.push(w),i.set(m,x)}else i.set(m,[w])}}const f=Array.from(a),c=[];for(const[d,y]of i)c.push({name:d,data:y});return{dimensions:f,dataset:c}},ut=(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},qa=(e,n)=>{const t=`${Pr}/preview?pageId=${n}`,o=`${Pr}/${n}`;return e==="preview"?t:o},ht=(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},Tt=(e={})=>{const{requestToken:n}=r.inject(zr,{requestToken:()=>{}});e.dataType==="indicator"&&n();const t=(l={})=>{const{label:s,name:f,location:c,show:d,indexCode:y}=l;return{label:s,columnName:f,location:c,show:d,calcType:"COLUMN",hrpIndexCode:y}},o=(l={})=>{const{label:s,name:f,location:c,show:d,indexCode:y,calcType:u="COLUMN",builtInFormula:h,builtInValueSource:g,builtInCalcWay:m,formula:p,conditions:w}=l;return{label:s,columnName:f,location:c,show:d,calcType:u,hrpIndexCode:y,aggregate:"SUM",builtInFormula:h,builtInValueSource:g,builtInCalcWay:m,formula:p,conditions:w}},{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 y=l[d],{id:u,conditionLabel:h,conditionKey:g,conditionValueType:m}=y,p={rule:"NONE",label:h,fieldName:g,fieldValue:"",valueType:m},w=a(u)||{};console.log("model",w);const{value:x,format:v="YYYY-MM-DD"}=w||{};Jt(w.type,"date")?(p.fieldValue=(c=r.unref(x))==null?void 0:c.format(v),p.dateFormat=v):p.fieldValue=r.unref(x),f.push(p)}return f};return async()=>{var I,O;const{graphicConfig:l,type:s}=e;let{source:f,dataViewId:c,plugin:d="1",layer:y,chartType:u,classificationList:h=[],seriesList:g=[],leftAxisList:m=[],rightAxisList:p=[],queryColumnList:w=[],indicators:x=[],controlList:v=[],dataSourceId:b,idxLibMode:A,preview:S=!1}=l||{};y==null&&(Jt(s,"table")?y="1":y="2");let _;if(Array.isArray(h)&&h.length>0){const P=h.length;for(let z=0;z<P;z++){const F=h[z]||{},{label:H="",name:D="",show:L=!1,sort:N,customGroup:T,conditions:R}=F;if(L||P===1){_={label:H,columnName:D,show:L,sort:N,customGroup:T,conditions:R};break}}}let E;if(Array.isArray(g)&&g.length>0){const P=g.length;for(let z=0;z<P;z++){const F=g[z]||{},{label:H="",name:D="",show:L=!1,sort:N,customGroup:T,conditions:R}=F;if(L||P===1){E={label:H,columnName:D,show:L,sort:N,customGroup:T,conditions:R};break}}}const B=[];w==null||w.forEach(P=>{B.push(t(P))});const C=[];if(m==null||m.forEach(P=>{P.location="LEFT",C.push(o(P))}),p==null||p.forEach(P=>{P.location="RIGHT",C.push(o(P))}),x==null||x.forEach(P=>{P.location="LEFT",C.push(o(P))}),y==="1"&&B.length===0)return;if(y==="2"&&C.length===0)return;let k=[];(l==null?void 0:l.pageMode)==="design"?k=l.sqlConditions??[]:k=i(v);try{const P=(I=window==null?void 0:window.config)==null?void 0:I.pageId;return await ot.post(`${Ds}/diagram`,{source:f,dataViewId:c,plugin:d,layer:y,chartType:u,classification:_,series:E,indicatorList:C,queryColumns:B,pageFlag:!0,pageId:P,sqlConditions:k,dataSourceId:b,idxLibMode:A,preview:S},{headers:{Authentication:(O=window==null?void 0:window.config)==null?void 0:O.indicatorToken,operateContext:Bs}})}catch(P){console.error(P)}}},Vl=()=>{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}},ql=r.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...yn},setup(e){const{width:n,height:t}=r.inject(ke,{width:null,height:null}),o=r.computed(()=>({width:n.value,height:t.value,backgroundColor:e.backgroundColor,backgroundImage:ut(e.backgroundImage,!0),backgroundSize:e.backgroundSize})),a=r.ref(0),i=r.ref(0),l=r.ref(0),s=r.ref(0),f=r.ref(!1),c=r.ref();let d;const y=()=>new Promise(w=>{r.nextTick(()=>{n.value&&t.value?(a.value=parseFloat(n.value),i.value=parseFloat(t.value)):(a.value=c.value.clientWidth,i.value=c.value.clientHeight),(!l.value||!s.value)&&(l.value=window.screen.width,s.value=window.screen.height),w()})}),u=()=>{a.value&&i.value?(c.value.style.width=`${a.value}px`,c.value.style.height=`${i.value}px`):(c.value.style.width=`${l.value}px`,c.value.style.height=`${s.value}px`)};r.watch([n,t],async()=>{await y(),u(),h(),window.addEventListener("resize",g),m(),f.value=!0},{immediate:!0});const h=()=>{const w=document.body.clientWidth,x=document.body.clientHeight,v=a.value||l.value,b=i.value||s.value,A=w/v;let S=x/b;(a.value!==1920||i.value!==1080)&&(S=i.value/a.value*w/b),c.value&&(c.value.style.transform=`scale(${A}, ${S})`)},g=je.debounce(async()=>{await y(),h()},100),m=()=>{const w=window.MutationObserver;d=new w(g),d.observe(c.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},p=()=>{d&&(d.disconnect(),d.takeRecords(),d=null)};return r.onMounted(()=>{f.value=!1}),r.onUnmounted(()=>{window.removeEventListener("resize",g),p()}),{style:o,container:c,ready:f}}}),md="",Hl={id:"container",ref:"container"};function $l(e,n,t,o,a,i){return r.openBlock(),r.createElementBlock("div",Hl,[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 Ha=se(re(ql,[["render",$l],["__scopeId","data-v-06635c02"]])),lo={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},width:"1920px",height:"1080px"},co=fe(lo),jl=r.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...co},setup(e,{expose:n}){Vl();const t=r.ref(),o=()=>{t.value.setAttribute("datav-theme",e.theme)};r.watch(()=>e.theme,()=>{o()}),r.onMounted(()=>{o()});const a=r.computed(()=>be(e.contextRequestUrl)),i=r.computed(()=>e.pageMode),l=r.computed(()=>e.theme),s=r.computed(()=>e.width),f=r.computed(()=>e.height),c=r.ref("");r.provide(ke,{contextRequestUrl:a,pageMode:i,theme:l,touchEventId:c,width:s,height:f});const d=new Map;console.log("globalModel",d);const y=H=>d.get(H),u=(H,D)=>{d.set(H,D)};r.provide(we,{getGlobalModel:y,setGlobalModel:u});const h=[],g=()=>{h.pop()},m=H=>{h.push(H)},p=new Map,w=H=>p.get(H),x=(H,D)=>{p.set(H,D)};r.provide(Mr,{popUseModalIds:g,pushUseModalIds:m,getModalModel:w,setModalModel:x});const v=ii(),b=new Set,A=(H,D)=>{b.add(H),v.on(H,L=>typeof D[L]=="function"&&D[L]()),r.onBeforeUnmount(()=>{S(H)})},S=H=>{b.delete(H),v.off(H)},_=(H,D)=>{if(H==="PAGE"){const L=h.length;let N=[];if(L===0)N=[...b];else{const T=h[L-1];N=[...w(T)]}N.forEach(T=>{v.emit(T,D)})}else v.emit(H,D)};r.provide(pn,{onEvent:A,offEvent:S,emitEvent:_});const E=r.ref(0),B=()=>{E.value=r.unref(E)+1};r.provide(zr,{requestToken:B});const C=new Map,k=new Map,I=({requestFn:H=()=>{},sortNum:D=0,id:L=""})=>{if(C.has(D)){const N=C.get(D);N==null||N.push(H)}else C.set(D,[H]);k.set(L,H)},O=H=>new Promise((D,L)=>{const N=H.map(T=>T());Promise.all(N).then(T=>{D(T)}).catch(T=>{L(T)})}),P=H=>new Promise(async(D,L)=>{if(H){if(typeof H=="string"){const N=k.get(H);if(typeof N=="function"){const T=ot.interceptors.response.use(R=>(D(R),R),R=>(L(R),Promise.reject(R)));N(),ot.interceptors.response.eject(T)}}}else{const N=Array.from(C);N.sort((R,M)=>M[0]-R[0]);const T=N.length;try{e.pageMode!=="design"&&r.unref(E)>0;for(let R=0;R<T;R++){const M=N[R][1];await O(M)}}catch(R){console.error(R)}finally{C.clear(),D(null)}}});r.provide(Te,{setRequest:I,touchRequest:P});const z=()=>{v.emit(Ot)};r.provide(Ot,{emitRefreshPage:z});const F=H=>{v.on(Ot,()=>H()),r.onMounted(()=>{v.off(Ot)})};return r.onBeforeUnmount(()=>{C==null||C.clear(),k==null||k.clear()}),n({touchRequest:P,getGlobalModel:y,onRefreshPage:F}),{providerConfig:t}}}),Ul={id:"ProviderConfig",ref:"providerConfig"};function Gl(e,n,t,o,a,i){return r.openBlock(),r.createElementBlock("div",Ul,[r.renderSlot(e.$slots,"default")],512)}const $a=se(re(jl,[["render",Gl]])),fo={...me,name:"文本",keyName:"文本",type:"ecanText",width:"100px",height:"40px",text:"文字",lineHeight:1,color:"#333",variableColor:"#f00",fontSize:"14px",fontFamily:"",fontWeight:400,textShadow:"",justifyContent:"center",alignItems:"center",variableFontSize:"14px",variableDefaultValue:"0",format:"",target:"self",href:"",linkPage:"",data:{},percentageSide:"left",increaseColor:"",declineColor:"",minusSignShow:!0,unitShow:!0,unitText:"",unitFontSize:"14px",unitFontWeight:400,unitColor:"#333",unitTop:"",unitLeft:""},uo=fe(fo),ja=["refreshData","click","valueChange"],Ua="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=",Ga="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==",ho=r.defineComponent({name:"EcanText",components:{Skeleton:Vt},props:{...uo},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],([m,p])=>{p==="static"&&(t.value=m)},{immediate:!0});const i=r.computed(()=>{var A;const m=r.unref(t),p=e.increaseColor||e.color,w=e.declineColor||e.color;let x=e.text;x=x==null?void 0:x.replace(/\n|\\n/g,"<br/>"),x=x==null?void 0:x.replace(/\s(?!\{) | (?!\})\s/g," ");const v=x.match(/\{(.+?)\}/g)||[];let b="";if(v==null||v.length===0){if(x&&e.format==="percentage"&&!isNaN(+x)){const S=parseFloat(x),_=(S*100).toFixed(2);S>=0?x=`<span style="color: ${p||"#ED6643"};font-size:${r.unref(o)};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}(kl),io,Bl=typeof process<"u"?(io=process.env)===null||io===void 0?void 0:io.npm_package_version:void 0,Dl=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 Or(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(_r(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,_r(t),o)}catch{return!1}},e.prototype.getKey=function(n){if(!this.key){if(this.key=new Or,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=Bl,e}();const Nr=new Dl,At=Rl();function Rl(){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 zr=Le.enc.Utf8.parse("ABCDEF1234123412");function Il(e,n){n=n||At;const t=Le.enc.Utf8.parse(n);let o="";switch(typeof e){case"string":o=Le.enc.Utf8.parse(e);break;case"object":o=Le.enc.Utf8.parse(JSON.stringify(e));break;default:o=Le.enc.Utf8.parse(e.toString())}return Le.AES.encrypt(o,t,{iv:zr,mode:Le.mode.CBC,padding:Le.pad.ZeroPadding}).toString()}function Mr(e,n){n=n||At;const t=Le.enc.Utf8.parse(n),o=Le.AES.decrypt(e,t,{iv:zr,mode:Le.mode.CBC,padding:Le.pad.ZeroPadding});return Le.enc.Utf8.stringify(o).toString()}function Ll(e){Nr.setPublicKey(e)}function Ol(e){return Nr.encrypt(e)}function Pr(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 Nl(e){const{paramType:n,data:t,params:o,method:r}=e;n==="form"?["get","delete"].includes(r)?e.params=Tt(o,"string"):e.data=Tt(t,"string"):["get","delete"].includes(r)?e.params=Tt(o,"string"):e.data=Tt(t)}function Tt(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)}&`}}Ll("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMKaTbS1XHH7u/4dhao1n5Lcegpy6AHKX2TjmTP7IDW6N4wznqlL3Tt+U0/Il1TlNp1/EN+tffYYg4dPrrCUDwcCAwEAAQ==");const r=Ol(At);return{c:Il(t,At),p:r}}window.getEncryptParam=Tt;function zl(e,n){var t;(t=window==null?void 0:window.config)!=null&&t.encryptFlag&&Pr(e.url)&&(e.data instanceof FormData?e.data=Ml(e.data):Nl(e))}function Ml(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=Tt(o,"json");return typeof r=="object"&&(t.append("c",r.c),t.append("p",r.p)),t}window.xhaesKey=At,window.xhaesDecrypt=Mr;function Fr(e,n){var t;if((t=window==null?void 0:window.config)!=null&&t.encryptFlag&&Pr(e.config.url)&&!(e.data instanceof Blob)&&e.data.data!==void 0){const o=Mr(e.data.data.content,At);e.data=JSON.parse(o)}}const Vr=window.config.requestErrorTip,at=ri.create({timeout:1e3*180});at.interceptors.request.use(e=>(zl(e),e),e=>Promise.reject(e)),at.interceptors.response.use(e=>{var n,t,o;return Vr&&+((n=e==null?void 0:e.data)==null?void 0:n.code)==500&&ne.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"}),Fr(e),e},e=>{if(Fr(e==null?void 0:e.response),Vr)if(e.message.includes("timeout"))ne.message.error({content:"网络连接超时,请重试!",key:"TIMEOUT"});else{const{status:n}=(e==null?void 0:e.response)||{};n>=400&&n<500&&ne.message.error({content:"请求异常",key:"REQUEST_ERROR"}),n>=500&&ne.message.error({content:"服务器异常",key:"REQUEST_ERROR"})}return Promise.reject(e)});const Pl=e=>e.replace(/\\n/g,`
|
|
97
|
+
`),so=(e,n=2)=>{const t=parseFloat(e+"");return isNaN(t)?e:t.toFixed(n).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},Fl=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)=>{if(typeof e=="string"&&typeof n=="string")return e.toLocaleLowerCase().includes(n.toLocaleLowerCase());if(typeof e=="string"&&Array.isArray(n)){const t=n.length;for(let o=0;o<t;o++){const r=n[o];if(typeof r=="string"&&e.toLocaleLowerCase().includes(r.toLocaleLowerCase()))return!0}}return!1},Qt=(e,n)=>{const t={dayjs:Ne,...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},be=(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 h=0;h<u.length;h++){const m=u[h],y=l[m];y!=null&&(d=d.replace(m,y))}(/\(.*\)/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/>")),r&&(e=e==null?void 0:e.replace(/\s{2,}?/g," ")),e},Re=(e,n=()=>{})=>{const{requestUrl:t,requestMethod:o,requestHeaders:r,requestParams:i,requestInterval:l,isOpenRequestTimer:s}=e,{contextRequestUrl:f,touchEventId:c}=a.inject(ke,{contextRequestUrl:"",touchEventId:""}),{getGlobalModel:d}=a.inject(we,{getGlobalModel:m=>{}}),p=be(t),u=async(m={})=>{if(!p||!o||!r)return;let y={};i.forEach(v=>{const{key:k,value:x}=v;if(typeof x=="object"&&x!=null&&x.id){let A={};const{id:T,prop:E,propKey:w,operate:_}=x;T==="THIS"?A=d(a.unref(c))||{}:A=d(T)||{};const R=a.unref(A[E]);let N=null;if(["date","range"].some(D=>Jt(A==null?void 0:A.type,D))){const{value:D,type:M,mode:H}=_||{};if(D&&M&&H)switch(M){case"add":N=a.unref(R).add(D,H);break;case"minus":N=a.unref(R).subtract(D,H);break}N==null&&(N=a.unref(R)),N=(N==null?void 0:N.format((w==null?void 0:w.trim())||A.format))||""}else Object.prototype.toString.call(R)==="[object Object]"?w?N=R[w]:N=E?R[E]:R:Jt(A==null?void 0:A.type,"select")&&a.unref(R)&&E&&Array.isArray(a.unref(R))?N=a.unref(R).map(D=>Object.prototype.hasOwnProperty.call(D,E)?D[E]:D):N=R;y[k]=N}else typeof x=="string"&&(y[k]=be(x))}),y={...window.config.requestParams,...m,...y};let S="";const C=Object.keys(y),b=C.length-1,g=C.length;C.forEach((v,k)=>{let x=y[v];Object.prototype.toString.call(x)==="[object Object]"&&(x=JSON.stringify(x)),k===0?g!==1?S+=`?${v}=${x}&`:S+=`?${v}=${x}`:k===b?S+=`${v}=${x}`:S+=`${v}=${x}&`});try{const v=["get","head"].includes(o);let k=v?p+S:p;y.dataSqlId&&!k.includes("dataSqlId")&&(k+=`${k.includes("?")?"&":"?"}dataSqlId=${y.dataSqlId}`);const x=await at({baseURL:a.unref(f)||"",url:k,method:o,headers:r,data:v?{}:y});return n(x),x}catch(v){console.error(v)}},h=s&&setInterval(u,l*1e3);return a.onUnmounted(()=>{clearInterval(h)}),u},rt=(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 h=o[u],{label:m,value:y}=h,S={...e[0],value:e[0][y]};r.add(m),d.push(S)}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 h=0;h<s;h++){const m=o[h],{label:y,value:S}=m,C={...p,value:p[S]};if(i.has(y)){const b=i.get(y);b.push(C),i.set(y,b)}else i.set(y,[C])}}const f=Array.from(r),c=[];for(const[d,p]of i)c.push({name:d,data:p});return{dimensions:f,dataset:c}},ht=(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},qr=(e,n)=>{const t=`${Pa}/preview?pageId=${n}`,o=`${Pa}/${n}`;return e==="preview"?t:o},mt=(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=Qt(s)),e=e.replace(l,f)}catch{e=e.replace(l,s)}}return e},Ve=(e={})=>{const{requestToken:n}=a.inject(za,{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:m,builtInCalcWay:y,formula:S,conditions:C}=l;return{label:s,columnName:f,location:c,show:d,calcType:u,hrpIndexCode:p,aggregate:"SUM",builtInFormula:h,builtInValueSource:m,builtInCalcWay:y,formula:S,conditions:C}},{getGlobalModel:r}=a.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:m,conditionValueType:y}=p,S={rule:"NONE",label:h,fieldName:m,fieldValue:"",valueType:y},C=r(u)||{};console.log("model",C);const{value:b,format:g="YYYY-MM-DD"}=C||{};Jt(C.type,"date")?(S.fieldValue=(c=a.unref(b))==null?void 0:c.format(g),S.dateFormat=g):S.fieldValue=a.unref(b),f.push(S)}return f};return async()=>{var R,N;const{graphicConfig:l,type:s}=e;let{source:f,dataViewId:c,plugin:d="1",layer:p,chartType:u,classificationList:h=[],seriesList:m=[],leftAxisList:y=[],rightAxisList:S=[],queryColumnList:C=[],indicators:b=[],controlList:g=[],dataSourceId:v,idxLibMode:k,preview:x=!1}=l||{};p==null&&(Jt(s,["table","text","proportion","select","checkbox","radio"])?p="1":p="2");let A;if(Array.isArray(h)&&h.length>0){const F=h.length;for(let D=0;D<F;D++){const M=h[D]||{},{label:H="",name:I="",show:O=!1,sort:z,customGroup:B,conditions:L}=M;if(O||F===1){A={label:H,columnName:I,show:O,sort:z,customGroup:B,conditions:L};break}}}let T;if(Array.isArray(m)&&m.length>0){const F=m.length;for(let D=0;D<F;D++){const M=m[D]||{},{label:H="",name:I="",show:O=!1,sort:z,customGroup:B,conditions:L}=M;if(O||F===1){T={label:H,columnName:I,show:O,sort:z,customGroup:B,conditions:L};break}}}const E=[];C==null||C.forEach(F=>{E.push(t(F))});const w=[];if(y==null||y.forEach(F=>{F.location="LEFT",w.push(o(F))}),S==null||S.forEach(F=>{F.location="RIGHT",w.push(o(F))}),b==null||b.forEach(F=>{F.location="LEFT",w.push(o(F))}),p==="1"&&E.length===0)return;if(p==="2"&&w.length===0)return;let _=[];(l==null?void 0:l.pageMode)==="design"?_=l.sqlConditions??[]:_=i(g);try{const F=(R=window==null?void 0:window.config)==null?void 0:R.pageId;return await at.post(`${Ds}/diagram`,{source:f,dataViewId:c,plugin:d,layer:p,chartType:u,classification:A,series:T,indicatorList:w,queryColumns:E,pageFlag:!0,pageId:F,sqlConditions:_,dataSourceId:v,idxLibMode:k,preview:x},{headers:{Authentication:(N=window==null?void 0:window.config)==null?void 0:N.indicatorToken,operateContext:Bs}})}catch(F){console.error(F)}}},Vl=()=>{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}},ql=a.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...yn},setup(e){const{width:n,height:t}=a.inject(ke,{width:null,height:null}),o=a.computed(()=>({width:n.value,height:t.value,backgroundColor:e.backgroundColor,backgroundImage:ht(e.backgroundImage,!0),backgroundSize:e.backgroundSize})),r=a.ref(0),i=a.ref(0),l=a.ref(0),s=a.ref(0),f=a.ref(!1),c=a.ref();let d;const p=()=>new Promise(C=>{a.nextTick(()=>{n.value&&t.value?(r.value=parseFloat(n.value),i.value=parseFloat(t.value)):(r.value=c.value.clientWidth,i.value=c.value.clientHeight),(!l.value||!s.value)&&(l.value=window.screen.width,s.value=window.screen.height),C()})}),u=()=>{r.value&&i.value?(c.value.style.width=`${r.value}px`,c.value.style.height=`${i.value}px`):(c.value.style.width=`${l.value}px`,c.value.style.height=`${s.value}px`)};a.watch([n,t],async()=>{await p(),u(),h(),window.addEventListener("resize",m),y(),f.value=!0},{immediate:!0});const h=()=>{const C=document.body.clientWidth,b=document.body.clientHeight,g=r.value||l.value,v=i.value||s.value,k=C/g;let x=b/v;(r.value!==1920||i.value!==1080)&&(x=i.value/r.value*C/v),c.value&&(c.value.style.transform=`scale(${k}, ${x})`)},m=Ue.debounce(async()=>{await p(),h()},100),y=()=>{const C=window.MutationObserver;d=new C(m),d.observe(c.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},S=()=>{d&&(d.disconnect(),d.takeRecords(),d=null)};return a.onMounted(()=>{f.value=!1}),a.onUnmounted(()=>{window.removeEventListener("resize",m),S()}),{style:o,container:c,ready:f}}}),md="",Hl={id:"container",ref:"container"};function $l(e,n,t,o,r,i){return a.openBlock(),a.createElementBlock("div",Hl,[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 Hr=se(ae(ql,[["render",$l],["__scopeId","data-v-06635c02"]])),lo={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},width:"1920px",height:"1080px"},co=fe(lo),jl=a.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...co},setup(e,{expose:n}){Vl();const t=a.ref(),o=()=>{t.value.setAttribute("datav-theme",e.theme)};a.watch(()=>e.theme,()=>{o()}),a.onMounted(()=>{o()});const r=a.computed(()=>be(e.contextRequestUrl)),i=a.computed(()=>e.pageMode),l=a.computed(()=>e.theme),s=a.computed(()=>e.width),f=a.computed(()=>e.height),c=a.ref("");a.provide(ke,{contextRequestUrl:r,pageMode:i,theme:l,touchEventId:c,width:s,height:f});const d=new Map;console.log("globalModel",d);const p=H=>d.get(H),u=(H,I)=>{d.set(H,I)};a.provide(we,{getGlobalModel:p,setGlobalModel:u});const h=[],m=()=>{h.pop()},y=H=>{h.push(H)},S=new Map,C=H=>S.get(H),b=(H,I)=>{S.set(H,I)};a.provide(Ma,{popUseModalIds:m,pushUseModalIds:y,getModalModel:C,setModalModel:b});const g=ii(),v=new Set,k=(H,I)=>{v.add(H),g.on(H,O=>typeof I[O]=="function"&&I[O]()),a.onBeforeUnmount(()=>{x(H)})},x=H=>{v.delete(H),g.off(H)},A=(H,I)=>{if(H==="PAGE"){const O=h.length;let z=[];if(O===0)z=[...v];else{const B=h[O-1];z=[...C(B)]}z.forEach(B=>{g.emit(B,I)})}else g.emit(H,I)};a.provide(pn,{onEvent:k,offEvent:x,emitEvent:A});const T=a.ref(0),E=()=>{T.value=a.unref(T)+1};a.provide(za,{requestToken:E});const w=new Map,_=new Map,R=({requestFn:H=()=>{},sortNum:I=0,id:O=""})=>{if(w.has(I)){const z=w.get(I);z==null||z.push(H)}else w.set(I,[H]);_.set(O,H)},N=H=>new Promise((I,O)=>{const z=H.map(B=>B());Promise.all(z).then(B=>{I(B)}).catch(B=>{O(B)})}),F=H=>new Promise(async(I,O)=>{if(H){if(typeof H=="string"){const z=_.get(H);if(typeof z=="function"){const B=at.interceptors.response.use(L=>(I(L),L),L=>(O(L),Promise.reject(L)));z(),at.interceptors.response.eject(B)}}}else{const z=Array.from(w);z.sort((L,P)=>P[0]-L[0]);const B=z.length;try{e.pageMode!=="design"&&a.unref(T)>0;for(let L=0;L<B;L++){const P=z[L][1];await N(P)}}catch(L){console.error(L)}finally{w.clear(),I(null)}}});a.provide(Te,{setRequest:R,touchRequest:F});const D=()=>{g.emit(Ot)};a.provide(Ot,{emitRefreshPage:D});const M=H=>{g.on(Ot,()=>H()),a.onMounted(()=>{g.off(Ot)})};return a.onBeforeUnmount(()=>{w==null||w.clear(),_==null||_.clear()}),n({touchRequest:F,getGlobalModel:p,onRefreshPage:M}),{providerConfig:t}}}),Ul={id:"ProviderConfig",ref:"providerConfig"};function Gl(e,n,t,o,r,i){return a.openBlock(),a.createElementBlock("div",Ul,[a.renderSlot(e.$slots,"default")],512)}const $r=se(ae(jl,[["render",Gl]])),fo={...me,name:"文本",keyName:"文本",type:"ecanText",width:"100px",height:"40px",text:"文字",lineHeight:1,color:"#333",variableColor:"#f00",fontSize:"14px",fontFamily:"",fontWeight:400,textShadow:"",justifyContent:"center",alignItems:"center",variableFontSize:"14px",variableDefaultValue:"0",format:"",target:"self",href:"",linkPage:"",data:{},percentageSide:"left",increaseColor:"",declineColor:"",minusSignShow:!0,unitShow:!0,unitText:"",unitFontSize:"14px",unitFontWeight:400,unitColor:"#333",unitTop:"",unitLeft:"",graphicConfig:{}},uo=fe(fo),jr=["refreshData","click","valueChange"],Ur="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=",Gr="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==",ho=a.defineComponent({name:"EcanText",components:{Skeleton:Vt},props:{...uo},setup(e,{expose:n}){const t=ue(e),o=a.ref({}),r=a.computed(()=>e.variableFontSize||"14px"),i=a.computed(()=>"-"+a.unref(r));a.watch(()=>[e.data,e.dataType],([g,v])=>{v==="static"&&(o.value=g)},{immediate:!0});const l=a.computed(()=>{var E;const g=a.unref(o),v=e.increaseColor||e.color,k=e.declineColor||e.color;let x=e.text;x=x==null?void 0:x.replace(/\n|\\n/g,"<br/>"),x=x==null?void 0:x.replace(/\s(?!\{) | (?!\})\s/g," ");const A=x.match(/\{(.+?)\}/g)||[];let T="";if(A==null||A.length===0){if(x&&e.format==="percentage"&&!isNaN(+x)){const w=parseFloat(x),_=(w*100).toFixed(2);w>=0?x=`<span style="color: ${v||"#ED6643"};font-size:${a.unref(r)};display: inline-block;">
|
|
98
98
|
<div class="percentage-img-box">
|
|
99
|
-
<img style="width: ${
|
|
99
|
+
<img style="width: ${a.unref(r)};filter: ${`drop-shadow(${v||"#ED6643"} ${a.unref(r)} 0px)`};" src="${Ur}"/>
|
|
100
100
|
</div>
|
|
101
101
|
<span style="color: ${e.color}">${Math.abs(+_)}%</span>
|
|
102
|
-
</span>`:x=`<span style="color: ${
|
|
102
|
+
</span>`:x=`<span style="color: ${k||"#6ACB97"};font-size:${a.unref(r)};display: inline-block;">
|
|
103
103
|
<div class="percentage-img-box">
|
|
104
|
-
<img style="width: ${
|
|
104
|
+
<img style="width: ${a.unref(r)};filter: ${`drop-shadow(${k||"#6ACB97"} ${a.unref(r)} 0px)`};" src="${Gr}"/>
|
|
105
105
|
</div>
|
|
106
106
|
<span style="color: ${e.color}">${e.minusSignShow?"-":""}${Math.abs(+_)}%</span>
|
|
107
|
-
</span>`}
|
|
107
|
+
</span>`}T=x}for(let w=0;w<A.length;w++){const _=A[w],R=(E=_==null?void 0:_.slice(1,_.length-1))==null?void 0:E.trim();let N=R;const F=R.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);for(let M=0;M<F.length;M++){const H=F[M],I=g[H];I&&(N=R.replace(H,I))}if(/\(.*\)/g.test(N)){const M=Qt(N);M!=null&&(N=M)}let D=N;if(D===R&&(D=e.variableDefaultValue),D!=null){const M=e.format;M==="percentage"?(D=+D,isNaN(D)?x=x.replace(_,`<span style="color:${e.variableColor};font-size:${a.unref(r)}">0%</span>`):D>=0?(D=(D*100).toFixed(2),x=x.replace(_,`<span style="color: ${v||"#ED6643"};font-size:${a.unref(r)};display: inline-block;">
|
|
108
108
|
<div class="percentage-img-box">
|
|
109
|
-
<img style="width: ${
|
|
109
|
+
<img style="width: ${a.unref(r)};filter: ${`drop-shadow(${v||"#ED6643"} ${a.unref(r)} 0px)`};" src="${Ur}"/>
|
|
110
110
|
</div>
|
|
111
|
-
<span style="color: ${e.color}">${Math.abs(+
|
|
112
|
-
</span>`)):(
|
|
111
|
+
<span style="color: ${e.color}">${Math.abs(+D)}%</span>
|
|
112
|
+
</span>`)):(D=(D*100).toFixed(2),x=x.replace(_,`<span style="color: ${k||"#6ACB97"};font-size:${a.unref(r)};display: inline-block;">
|
|
113
113
|
<div class="percentage-img-box">
|
|
114
|
-
<img style="width: ${
|
|
114
|
+
<img style="width: ${a.unref(r)};filter: ${`drop-shadow(${k||"#6ACB97"} ${a.unref(r)} 0px)`};" src="${Gr}"/>
|
|
115
115
|
</div>
|
|
116
|
-
<span style="color: ${e.color}">${e.minusSignShow?"-":""}${Math.abs(+
|
|
117
|
-
</span>`))):e.format==="percent"?(k=+k,isNaN(k)||(k=(k*100).toFixed(2),x=x.replace(_,`<span style="color:${e.variableColor};font-size:${r.unref(o)}">${k}%</span>`))):e.format==="money"?(k=+k,isNaN(k)||(k=so(k),x=x.replace(_,`<span style="color:${e.variableColor};font-size:${r.unref(o)}">${k}</span>`))):I==="thousands"?(k=+k,isNaN(k)||(k=Fl(k),x=x.replace(_,`<span style="color:${e.variableColor};font-size:${r.unref(o)}">${k}</span>`))):x=x.replace(_,`<span style="color:${e.variableColor};font-size:${r.unref(o)}">${k}</span>`)}}if(b||(b=`<span>${x}</span>`),e.unitShow&&e.unitText){const{unitTop:S,unitLeft:_}=e;let E="position:relative;";S&&(E+=`top:${S};`),_&&(E+=`margin-left:${_};`),b+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${E}'>${e.unitText}</span>`}return b}),{pageMode:l}=r.inject(ke,{pageMode:"normal"}),s=Re(e),f=r.ref(!1),c=async()=>{var m;try{f.value=!0;const p=await s();t.value=((m=p==null?void 0:p.data)==null?void 0:m.data)||{}}catch(p){console.error(p)}finally{f.value=!1}},d=()=>{e.dataType!=="static"&&c()};Ce(e,{refreshData:d});const{setRequest:y}=r.inject(Te,{setRequest:({id:m,sortNum:p,requestFn:w})=>{}});y({id:e.id,requestFn:d,sortNum:e.requestSort}),Ce(e,{refreshData:d});const u=ye(e),h=u("click",()=>{if(!e.linkPage&&!e.href)return;const m=e.linkPage||"",p=qa(r.unref(l),m),w=e.href;let x=w||p;x=be(x);const v=e.target;v&&(v!=="event"?window.open(x,"_"+v):window.parent.postMessage({type:"openPage",url:w},"*"))}),g=u("valueChange",()=>{});return r.watch(()=>i.value,(m,p)=>{m!==p&&g()}),{style:n,myText:i,loading:f,click:h,textIndent:a,vFontSize:o}}}),Wa=()=>{r.useCssVars(e=>({b587bd1e:e.vFontSize,ab2fd0a4:e.textIndent,"412bf006":e.percentageSide}))},Za=ho.setup;ho.setup=Za?(e,n)=>(Wa(),Za(e,n)):Wa;const yd="",Wl=["innerHTML"];function Zl(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,Wl))}const Ka=se(re(ho,[["render",Zl],["__scopeId","data-v-d7a99ae1"]])),Kl=r.defineComponent({name:"EcanScrollText",setup(){return{text:r.ref("基础文本")}}}),vd="",Yl={class:"red"};function Xl(e,n,t,o,a,i){return r.openBlock(),r.createElementBlock("div",Yl,r.toDisplayString(e.text),1)}const Ya=se(re(Kl,[["render",Xl],["__scopeId","data-v-4dd9c03e"]])),mo={...me,name:"时间展示",keyName:"时间展示",type:"ecanTimeDisplay",format:"YYYY-MM-DD dddd HH:mm:ss",fontSize:"16px",color:"#333",width:"240px",height:"40px",fontFamily:"",fontWeight:400,textShadow:"",alignItems:"center",justifyContent:"center",operate:null,updateInterval:{value:1,mode:"second"}},go=fe(mo),Xa=["timeChange"],Jl=r.defineComponent({name:"EcanTimeDisplay",props:{...go},setup(e){const n=ue(e),t=()=>{const{format:c,operate:d}=e;let y=Ne();if(d){const{type:u,value:h,mode:g}=d;switch(u){case"add":y=y.add(h,g);break;case"minus":y=y.subtract(h,g)}}return y.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:y}=e.updateInterval||{};d&&(c=c*d);const u={second:1,minute:60,hour:60*60,day:24*60*60};y&&(c=c*u[y]),a=setInterval(()=>{o.value=t(),s()},c)};return Ce(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 Ja=se(re(Jl,[["render",Ql],["__scopeId","data-v-b628fca2"]])),xo={...me,type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#0d215e",itemColSpan:"10px",itemRowSpan:"10px",useRanking:!0,useTitle:!1,sliceCount:6,columnCount:1,itemHeight:"32px",data:[{name:"a",age:12},{name:"b",age:14}],columns:[{key:"name"},{key:"age"}]},yo=fe(xo),Qa=["refreshData","click"],ec=r.defineComponent({name:"EcanList",components:{Skeleton:Vt},props:{...yo},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:so,percentage:Xt,contrast:Xt}[g](h)||"",i=(h,g)=>{const m=parseFloat(h+"");if(g!=="contrast")return"";switch(!0){case m>=0:return"goUp";case m<0:return"goDown"}},l=Re(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()},y=ye(e)("click",()=>{});Ce(e,{refreshData:c});const{setRequest:u}=r.inject(Te,{setRequest:({id:h,sortNum:g,requestFn:m})=>{}});return u({id:e.id,requestFn:f,sortNum:e.requestSort}),{style:t,formatFn:a,columnStyle:o,contrastClass:i,dataSource:n,loading:s,click:y}}}),Cd="",kd="",tc=e=>(r.pushScopeId("data-v-7aa27677"),e=e(),r.popScopeId(),e),nc={key:0,class:"title"},oc={key:0,class:"ranking"},rc={key:1,class:"ecan-list-content"},ac={key:0,class:"ranking"},ic=tc(()=>r.createElementVNode("div",{class:"icon"},null,-1)),sc={class:"sort"},lc={key:2,class:"empty"};function cc(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",nc,[(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",oc)):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",rc,[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",ac,[ic,r.createElementVNode("div",sc," 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",lc," 暂无数据 "))]),_:1},8,["loading"])],4)}const e0=se(re(ec,[["render",cc],["__scopeId","data-v-7aa27677"]])),po={...me,name:"占比图",keyName:"占比图",type:"ecanProportion",strokeType:"circle",width:"200px",height:"200px",strokeColor:"#4091f7",strokeLinecap:"round",trailColor:"#f5f5f5",data:{percent:.3},text:"{percent}%",fontSize:"26px",color:"#4091f7",strokeWidth:6,fontWeight:400,strokeTextWidth:"100%",lineHeight:"26px",decimalFormat:!0,variableDefaultValue:"0",strokeTextShow:!0,gradientShow:!0,gradientColor:"",gradientOffset:1},vo=fe(po),t0=["refreshData","click"],fc=r.defineComponent({name:"EcanProportion",components:{AProgress:ne.Progress,Skeleton:Vt},props:{...vo},setup(e){const{pageMode:n}=r.inject(ke,{pageMode:"normal"}),t=ue(e),o=r.computed(()=>{const m=e.width;return parseFloat(m)}),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 m=r.unref(a),p=+e.variableDefaultValue;if(m==null)return isNaN(p)?0:p;const w=e.text.match(/\{.+\}/g)||[];let x;const v=new Set(Object.keys(m));for(let b=0;b<w.length;b++){const A=w[b],S=A.slice(1,A.length-1);if(v.has(S)){x=m[S];break}}return typeof x=="number"?x=x*100:typeof x=="string"&&!isNaN(+x)?x=+x*100:isNaN(p)?x=0:x=p*100,e.decimalFormat&&(x=+x.toFixed(2)),x}),l=r.computed(()=>{var v;let m=e.text;if(m==="")return r.unref(i);const p=e.variableDefaultValue,w=r.unref(a),x=m.match(/\{.+\}/g)||[];for(let b=0;b<x.length;b++){const A=x[b];let S=A.slice(1,A.length-1);const _=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,E=A.match(_);for(let C=0;C<(E==null?void 0:E.length);C++){const k=(v=E[C])==null?void 0:v.trim();w[k]!=null&&(S=S.replace(k,w[k]))}let B=S;try{/\(.*\)/g.test(S)&&(B=Qt(S))}catch(C){console.error(C)}typeof+B=="number"&&!isNaN(+B)?(B=+B*100,e.decimalFormat&&(B=B.toFixed(2))):B=p,m=m.replace(A,B+"")}return m}),s=Re(e),f=r.ref(!1),c=async()=>{var m;if(e.dataType==="request")try{f.value=!0;const p=await s();a.value=((m=p==null?void 0:p.data)==null?void 0:m.data)||{}}catch(p){console.error(p)}finally{f.value=!1}};Ce(e,{refreshData:()=>{c()}});const u=ye(e)("click",()=>{}),{setRequest:h}=r.inject(Te,{setRequest:({id:m,sortNum:p,requestFn:w})=>{}});h({id:e.id,requestFn:c,sortNum:e.requestSort});const g=r.computed(()=>{const{gradientShow:m,gradientColor:p,gradientOffset:w,strokeColor:x}=e;let v=x;return m&&p&&(v={"0%":x,[`${w*100}%`]:p}),v});return{style:t,myWidth:o,text:l,myValue:i,loading:f,click:u,customStrokeColor:g}}}),Ad="";function dc(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 n0=se(re(fc,[["render",dc],["__scopeId","data-v-269e1e9a"]])),bo={...me,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字"},So=fe(bo),o0=["inputChange","inputBlur"],uc=r.defineComponent({name:"EcanInput",components:{AInput:ne.Input},props:{...So},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=je.debounce(l("inputChange",()=>{i()}),300),f=l("inputBlur",()=>{});return{style:n,myValue:t,inputBlur:f,inputChange:s}}}),Ed="";function hc(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 r0=se(re(uc,[["render",hc]])),wo={...me,height:"33px",width:"130px",id:"",left:"0px",top:"0px",name:"日期选择器",keyName:"日期选择器",rotate:"",type:"ecanDatePicker",value:"",picker:"date",format:"YYYY-MM-DD",showTime:!1,useCurrentTime:!0,operate:null},Co=fe(wo),a0=["dateChange"],mc=r.defineComponent({name:"EcanDatePicker",props:{...Co},components:{ADatePicker:ne.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 y=null;if(f?y=Ne(be(f)):c&&(y=Ne()),d&&y){const{type:u,value:h,mode:g}=d;switch(u){case"add":y=y.add(h,g);break;case"minus":y=y.subtract(h,g)}}o.value=y},{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 Ce(e,{dateChange:l}),{style:n,getPopupContainer:t,myValue:o,locale:hr,change:s}}}),Dd="";function gc(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 i0=se(re(mc,[["render",gc]])),ko={...me,name:"日期范围选择器",keyName:"日期范围选择器",type:"ecanRangePicker",width:"250px",height:"35px",picker:"date",format:"YYYY-MM-DD",startTime:"",endTime:"",useCurrentTime:!0,interval:1,intervalUnit:"year",operate:null,limitStartTime:"",limitEndTime:""},_o=fe(ko),s0=["dateChange"],xc=r.defineComponent({name:"EcanRangePicker",components:{ARangePicker:ne.RangePicker},props:{..._o},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],([p,w,x,v,b,A])=>{let S=null,_=null;if(x&&(S=Ne().subtract(v,b),_=Ne()),p&&(S=Ne(be(p))),w&&(_=Ne(be(w))),A){const{type:E,value:B,mode:C}=A;switch(E){case"add":S=S&&S.add(B,C),_=_&&_.add(B,C);break;case"minus":S=S&&S.subtract(B,C),_=_&&_.subtract(B,C)}}o.value=[S,_]},{immediate:!0});let a=r.unref(o)[0],i=r.unref(o)[1];const l=p=>{Array.isArray(p)?(a=p[0],i=p[1]):(a=null,i=null)},s=p=>{let w=!1,{limitStartTime:x,limitEndTime:v}=e;const b={startTime:`${a||""}`,endTime:`${i||""}`};return x=be(x,{codeData:b}),v=be(v,{codeData:b}),x&&v?w=!(Ne(x)<p&&p<Ne(v)):x?w=Ne(x)>p:v&&(w=Ne(v)<p),w},{setGlobalModel:f}=r.inject(we,{setGlobalModel:(p,w)=>{}}),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 y=ye(e);let u=!1;const h=y("dateChange",()=>{}),g=p=>{const w=r.unref(o),x=w&&w[0]&&w[1];p===!1&&u===!0&&x&&(h(),u=!1)},m=()=>{u=!0};return Ce(e,{dateChange:h}),{style:n,getPopupContainer:t,locale:hr,dateChange:h,myValue:o,disabledDate:s,calendarChange:l,openChange:g,change:m}}}),Id="",Ld="";function yc(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 l0=se(re(xc,[["render",yc],["__scopeId","data-v-ddb2a0fe"]])),Ao={...me,width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton",text:"按钮",mode:"default",danger:!1,shape:"default",href:"",target:"self",fontSize:"14px",fontWeight:400},To=fe(Ao),c0=["click"],pc=r.defineComponent({name:"EcanButton",components:{AButton:ne.Button},props:{...To},setup(e){const n=ue(e),o=ye(e)("click",()=>{const f=r.unref(l);f&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:f},"*")}),a=r.computed(()=>({height:e.height})),i=r.computed(()=>be(e.text)),l=r.computed(()=>be(e.href)||null),s=r.computed(()=>{const f=e.target;if(!(f==="event"||r.unref(l)==null))return{self:"_self",blank:"_blank"}[f]});return{style:n,click:o,myText:i,myHref:l,myTarget:s,buttonStyle:a}}}),Nd="";function vc(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,style:r.normalizeStyle(e.buttonStyle)},{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","style"])],4)}const f0=se(re(pc,[["render",vc]])),Eo={...me,width:"240px",id:"",left:"0px",top:"0px",name:"复选框",keyName:"复选框",rotate:"",type:"ecanCheckbox",value:[],data:[{label:"选项一",value:"1",checked:!0},{label:"选项二",value:"2",checked:!0},{label:"选项三",value:"3"}]},Bo=fe(Eo),d0=["checkboxChange"],bc=r.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:ne.CheckboxGroup},props:{...Bo},setup(e){const n=ue(e),t=r.ref([]),o=r.ref([]),a=u=>{const h=e.value;let g=[];u.forEach(m=>{m.checked&&g.push(m.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=Re(e),l=async()=>{var g,m;if(e.dataType!=="request")return;const u=await i(),h=((m=(g=u==null?void 0:u.data)==null?void 0:g.data)==null?void 0:m.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:y}=r.inject(Te,{setRequest:({id:u,sortNum:h,requestFn:g})=>{}});return y({id:e.id,requestFn:l,sortNum:e.requestSort}),{myOption:t,style:n,myValue:o,checkboxChange:d}}}),Md="";function Sc(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 u0=se(re(bc,[["render",Sc]])),Do={...me,name:"下拉框选择器",keyName:"下拉框选择器",width:"120px",height:"33px",type:"ecanSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1},Ro=fe(Do),h0=["selectChange","refreshData"],wc=r.defineComponent({name:"EcanSelect",components:{ASelect:ne.Select},props:{...Ro},setup(e){const n=ue(e),t=()=>document.getElementById("ProviderConfig")||document.body,o=Re(e),a=r.ref(e.data||[]),i=r.ref();r.watch(()=>[e.value,e.mode,e.selectFirstOption],()=>{const{mode:p,selectFirstOption:w,value:x}=e;p==="multiple"||p==="tags"||p==="combobox"?x?i.value=x.split(","):w&&(i.value=[r.unref(a)[0]]):x?i.value=x:w&&(i.value=r.unref(a)[0])},{immediate:!0});const l=e.dataFieldNames,s=(p,w)=>{const x=l.label,v=l.value;let b;const A=w[x],S=w[v];return A!=null?b=A:S!=null&&(b=S),(b==null?void 0:b.toLowerCase().indexOf(p==null?void 0:p.toLowerCase()))>=0},f=p=>{const{label:w,value:x,options:v}=e.dataFieldNames;if(v&&Array.isArray(p))if(p.some(b=>v in b)){const b={},A=[];p.forEach(S=>{b[S[v]]||(b[S[v]]=[]),b[S[v]].push({[w]:S[w],[x]:S[x]})});for(const S in b)A.push({[w]:S,[v]:b[S]});return A}else return p;else if(!v)return p},c=r.ref(!1),d=async()=>{var p,w;if(e.dataType==="request"){c.value=!0;try{const x=await o();if(a.value=f(((w=(p=x==null?void 0:x.data)==null?void 0:p.data)==null?void 0:w.rows)||[]),e.selectFirstOption){let v=r.unref(a)[0];if(l.options){const b=v[l.options];b&&b.length&&(v=b[0])}i.value=v[l.value]}}catch(x){console.error(x)}finally{c.value=!1}}},{getGlobalModel:y,setGlobalModel:u}=r.inject(we,{getGlobalModel:p=>{},setGlobalModel:(p,w)=>{}});u(e.id,{type:e.type,value:i});const g=ye(e)("selectChange",()=>{const p=e.id,w=y(p);u(p,{...w,RECORD:i})});Ce(e,{selectChange:g,refreshData:d});const{setRequest:m}=r.inject(Te,{setRequest:({id:p,sortNum:w,requestFn:x})=>{}});return m({id:e.id,requestFn:d,sortNum:e.requestSort}),{style:n,getPopupContainer:t,myValue:i,selectChange:g,options:a,filterOption:s,loading:c}}}),Fd="",Vd="";function Cc(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 m0=se(re(wc,[["render",Cc],["__scopeId","data-v-7c425ecc"]])),Io={...me,name:"树形下拉框选择器",keyName:"树形下拉框选择器",width:"120px",height:"33px",type:"ecanTreeSelect",multiple:!1,data:[{label:"选项一",value:"1",children:[{label:"子选项一",value:"1-1"},{label:"子选项二",value:"1-2"}]},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:"",dataFieldNames:{label:"label",value:"value",children:"children"},maxTagCount:3,placeholder:"请选择",treeCheckable:!1,treeCheckStrictly:!1,selectFirstOption:!1},Lo=fe(Io),g0=["selectChange","refreshData"],kc={name:"EcanTreeSelect",components:{ATreeSelect:ne.TreeSelect},props:{...Lo},setup(e){const n=ue(e),t=r.ref(e.data),o=(h,g)=>{const m=e.dataFieldNames,p=m.label,w=m.value;let x;const v=g[p],b=g[w];return v!=null?x=v:b!=null&&(x=b),(x==null?void 0:x.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:m}=e;h?g?a.value=g.split(","):m&&(a.value=[r.unref(t)[0]]):g?a.value=g:m&&(a.value=r.unref(t)[0])},{immediate:!0});const i=r.ref(!1),l=Re(e),s=async()=>{var h,g;if(e.dataType==="request"){i.value=!0;try{const m=await l();t.value=((g=(h=m==null?void 0:m.data)==null?void 0:h.data)==null?void 0:g.rows)||[];const p=r.unref(t)[0];e.value===""&&p!=null&&(a.value=p[e.dataFieldNames.value])}catch(m){console.error(m)}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 y=ye(e)("selectChange",()=>{const h=e.id,g=f(h);c(h,{...g,RECORD:a})});Ce(e,{selectChange:y,refreshData:s});const{setRequest:u}=r.inject(Te,{setRequest:({id:h,sortNum:g,requestFn:m})=>{}});return u({id:e.id,requestFn:s,sortNum:e.reque}),{style:n,treeData:t,filterTreeNode:o,myValue:a,loading:i,selectChange:y}}},Hd="",$d="";function _c(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 x0=se(re(kc,[["render",_c],["__scopeId","data-v-37236421"]])),Oo={...me,width:"260px",height:"32px",id:"",left:"0px",top:"0px",name:"单选框",keyName:"单选框",rotate:"",type:"ecanRadio",value:[],data:[{label:"选项一",value:"1",checked:!0},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],optionType:"default"},No=fe(Oo),y0=["checkboxChange"],zo=r.defineComponent({name:"EcanRadio",components:{ARadioGroup:ne.RadioGroup},props:{...No},setup(e){const n=ue(e),t=r.ref([]),o=r.ref(""),a=h=>{const g=e.value;let m=[];h.forEach(p=>{p.checked&&m.push(p.value)}),typeof g=="string"&&g!==""?m=m.concat(g.split(",")):Array.isArray(g)&&(m=m.concat(g)),t.value=h,o.value=m[0]||""},i=r.computed(()=>e.height||"32px");r.watch(()=>[e.data,e.value],([h])=>{a(h)},{immediate:!0,deep:!0});const l=Re(e),s=async()=>{var m,p;if(e.dataType!=="request")return;const h=await l(),g=((p=(m=h==null?void 0:h.data)==null?void 0:m.data)==null?void 0:p.rows)||[];a(g)},{getGlobalModel:f,setGlobalModel:c}=r.inject(we,{getGlobalModel:h=>{},setGlobalModel:(h,g)=>{}});c(e.id,{type:e.type,value:o});const y=ye(e)("checkboxChange",()=>{const h=f(e.id);c(e.id,{...h,RECORD:o})}),{setRequest:u}=r.inject(Te,{setRequest:({id:h,sortNum:g,requestFn:m})=>{}});return u({id:e.id,requestFn:s,sortNum:e.requestSort}),{myOption:t,style:n,myValue:o,rHeight:i,checkboxChange:y}}}),p0=()=>{r.useCssVars(e=>({"6b42f1b0":e.rHeight}))},v0=zo.setup;zo.setup=v0?(e,n)=>(p0(),v0(e,n)):p0;const Ud="";function Ac(e,n,t,o,a,i){const l=r.resolveComponent("a-radio-group");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ecan-radio",e.optionType]),style:r.normalizeStyle(e.style)},[r.createVNode(l,{value:e.myValue,"onUpdate:value":n[0]||(n[0]=s=>e.myValue=s),options:e.myOption,"option-type":e.optionType,onChange:e.checkboxChange},null,8,["value","options","option-type","onChange"])],6)}const b0=se(re(zo,[["render",Ac]])),Mo={...me,id:"",name:"饼图",keyName:"饼图",type:"ecanPie",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234}],titleText:"",titleSubtext:"",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:"当前无说明信息",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendFormatter:"{name}"},Po=fe(Mo),S0=["click","refreshData","resetRecord"],Et=async e=>{var f;const n=await ot.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)},Fo={id:"",type:"ecanModal",title:"",titleFontSize:"14px",titleColor:"",width:"1000px",height:"800px",originalWidth:"1920px",originalHeight:"1080px",backgroundColor:"#fff",backgroundImage:"",backgroundSize:"100% 100%",keyName:"弹窗",componentList:[],fullModal:!1,destroyOnClose:!0,position:"default"},Vo=fe(Fo),w0=["showModal"],Tc=r.defineComponent({name:"EcanModal",components:{AModal:ne.Modal,CloseOutlined:ps},props:{...Vo},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(),y=r.ref(0),u=r.ref({}),h=ue(e),g=r.ref({}),m=r.ref(!1),p=r.ref();let w;const x=()=>{d.value=parseFloat(a)/parseFloat(l);const L=parseFloat(i)/parseFloat(s),N=document.body.offsetWidth,T=document.body.offsetHeight;c.value=N*r.unref(d),y.value=T*L,f.value=`${r.unref(d)*100}%`,u.value={width:`${r.unref(c)}px`,height:`${r.unref(y)}px`},g.value={...r.unref(h),backgroundImage:ut(e.backgroundImage,!0),transform:`scale(${r.unref(c)/parseFloat(a)},${r.unref(y)/parseFloat(i)})`,width:a,height:i}},v=je.debounce(()=>{x()},100),b=()=>{const L=window.MutationObserver;w=new L(v),w.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},A=()=>{w&&(w.disconnect(),w.takeRecords(),w=null)},S=r.ref(!1),{touchRequest:_}=r.inject(Te,{touchRequest:()=>{}}),E=()=>{S.value=!0},B=()=>{n("close"),S.value=!1},C=()=>{B()},k=()=>{B()},{setModalModel:I,pushUseModalIds:O,popUseModalIds:P}=r.inject(Mr,{pushUseModalIds:L=>{},popUseModalIds:()=>{},setModalModel:(L,N)=>{}}),z=()=>{const L=e.id;let N=[];const T=e.componentList;Array.isArray(T)&&(N=T.map(R=>R.id),I(L,[...new Set(N)]))};r.watch(()=>S.value,async L=>{L?(m.value=!1,O(e.id),z(),await r.nextTick(()=>{x(),window.addEventListener("resize",v),b(),m.value=!0}),_()):(P(),window.removeEventListener("resize",v),A())});const F=r.computed(()=>r.unref(d)>=1),H=r.computed(()=>e.fullModal),D=r.computed(()=>{let L="ecan-modal";return r.unref(F)&&(L+=" ecan-full-width-modal"),r.unref(H)&&(L+=" ecan-full-modal"),L});return Ce(e,{showModal:E}),{modalRef:p,containStyle:u,contentStyle:g,getContainer:t,modalStyle:o,modalWith:f,isFullModal:H,style:h,visible:S,showModal:E,onOk:C,onCancel:k,isFullWidth:F,wrapClassName:D,ready:m}}}),Wd="",Zd="",Ec={key:0};function Bc(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",Ec,[(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 at=se(re(Tc,[["render",Bc],["__scopeId","data-v-4234f235"]]));qe.use([lt.CanvasRenderer,Ue.PieChart,he.TitleComponent,he.ToolboxComponent,he.TooltipComponent,he.LegendComponent]);const Dc=r.defineComponent({name:"EcanPie",props:{...Po},components:{Spin:xt,Echarts:Je,EcanModal:at},setup(e,{expose:n}){const t=r.ref(!1),o=ue(e),a=r.ref([]),i=r.ref(),l=r.ref({}),s=r.computed(()=>{let{data:B=[]}=r.unref(a)[0]||{};if(Array.isArray(e.colors)){const C=e.isUseLabelColors,k=e.colors;B=B.map((I,O)=>({label:C?{color:k[O]}:{},...I}))}return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Et(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 C;t.value=!0,(C=i.value)==null||C.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ne.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:C=>{const{marker:k,seriesName:I,name:O,value:P,percent:z,data:F}=C||{};return be(e.tooltipFormatter,{textData:{marker:k,name:O,value:P,percent:z,a:I,b:O,c:P,d:z,...F}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor}},legend:r.unref(l),color:e.colors,series:[{data:B,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:Pl(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:{}}}]}}),f=()=>{l.value={show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,align:"left",textStyle:{color:e.legendTextStyleColor,fontSize:t.value?ct:e.labelFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,formatter:B=>{const{legendFormatter:C}=e;let k=C.replace(/{name}/g,B);if(C.includes("{value}")){const{data:I}=a.value[0]||{};if(I){const O=I.find(P=>P.name===B);O&&(k=k.replace(/{value}/g,O.value))}}return k}}},c=()=>{t.value=!1},{getGlobalModel:d,setGlobalModel:y}=r.inject(we,{getGlobalModel:B=>{},setGlobalModel:(B,C)=>{}}),{pageMode:u}=r.inject(ke,{pageMode:"normal"}),h=(B=[],C)=>{const{dataset:k}=yt(B,C);a.value=k},g=(B=[],C)=>{const k=yt(B,C);a.value=k.dataset};r.watch(()=>e.data,B=>{(e.dataType==="static"||r.unref(u)==="design")&&h(B)},{immediate:!0,deep:!0}),r.watch(()=>[e.legendShow,e.legendOrient,e.legendTop,e.legendLeft,e.legendTextStyleColor,e.labelFontSize,e.legendItemHeight,e.legendItemWidth,e.legendItemGap,e.legendFormatter],()=>{f()},{immediate:!0});const m=r.ref(!1),p=Re(e),w=async()=>{var B,C;if(e.dataType==="request")try{m.value=!0;const k=await p();h((C=(B=k==null?void 0:k.data)==null?void 0:B.data)==null?void 0:C.rows,e.valueTypeDataFieldNames)}catch(k){console.error(k)}finally{m.value=!1}},v=ye(e)("click",B=>{const C=d(e.id);y(e.id,{...C,RECORD:B==null?void 0:B.data})}),b=Tt(e),A=async()=>{var B;try{m.value=!0;const C=await b(),{data:k}=C.data||{};if(k){const{columns:I=[],rows:O=[]}=((B=C==null?void 0:C.data)==null?void 0:B.data)??{};let P=[];if(I.length>0){const z=I[0],F=I[1];P=O.map(H=>({name:H[z],value:H[F]}))}g(P)}}catch(C){console.error(C)}finally{m.value=!1}},S=()=>{switch(e.dataType){case"indicator":A();break;case"request":w();break}};Ce(e,{resetRecord:()=>{const B=e.id,C=d(B);y(B,{...C,RECORD:""})},refreshData:S,click:v}),n({refreshData:S});const{setRequest:E}=r.inject(Te,{setRequest:B=>{}});return typeof E=="function"&&E({id:e.id,requestFn:S,sortNum:e.requestSort}),{option:s,style:o,click:v,onClose:c,loading:m,ecanModal:i}}}),Yd="";function Rc(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 C0=se(re(Dc,[["render",Rc]])),qo={...me,id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"}],titleText:"",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0},Ho=fe(qo),k0=["click","refreshData","resetRecord"];qe.use([lt.CanvasRenderer,Ue.LineChart,he.ToolboxComponent,he.TitleComponent,he.LegendComponent]);const Ic=r.defineComponent({name:"EcanLine",props:{...Ho},components:{Spin:xt,Echarts:Je,EcanModal:at},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?ct:12),c=r.ref({});let d;const y=r.ref([]),u=r.computed(()=>{const P=e.xAxisLabelFormatter,z=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(){Et(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 F;o.value=!0,(F=s.value)==null||F.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ne.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:F=>{var N;const H=F.length;let D="",L=e.tooltipFormatter;d=(N=F[0])==null?void 0:N.data,L===""&&(L="{marker} {a} {c}");for(let T=0;T<H;T++){const{marker:R,seriesName:M,name:q,value:G,data:Y}=F[T]||{};T===0&&(D+=`${q}<br/>`),D+=be(L,{textData:{marker:R,name:q,value:G,a:M,b:q,c:G,...Y}},{useNewline:!0,useSpace:!0}),D+="<br/>"}return D}},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:r.unref(l).map(F=>{let H={};return F&&typeof F=="object"?H={...F,textStyle:{fontSize:f.value}}:H={value:F,textStyle:{fontSize:f.value}},H}),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(F){return ht(P,F)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:f.value,color:e.yAxisLabelColor,formatter(F){return ht(z,F)}},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},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:r.unref(y).map(F=>({name:F.name,icon:e.legendType}))},series:r.unref(i)}}),h=()=>{o.value=!1},{getGlobalModel:g,setGlobalModel:m}=r.inject(we,{getGlobalModel:P=>{},setGlobalModel:(P,z)=>{}}),{pageMode:p}=r.inject(ke,{pageMode:"normal"}),w=(P=[],z=!1)=>{let F;if(e.dataFieldConfigType==="key"){const N=z?e.keyTypeDataFieldNames:null;F=rt(P,N)}else if(e.dataFieldConfigType==="value"){const N=z?e.valueTypeDataFieldNames:null;F=yt(P,N)}l.value=F.dimensions,y.value=F.dataset;const H=F.dataset,D=[],L=H.length;for(let N=0;N<L;N++){const T={};e.shadowColor&&(T.shadowColor=e.shadowColor,T.shadowBlur=e.shadowBlur,T.shadowOffsetY=e.shadowOffsetY,T.shadowOffsetX=e.shadowOffsetX),D.push({type:"line",...H[N],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[N]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[N],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...T}})}i.value=D},x=(P=[],z,F=!1)=>{const D=rt(P,F?z:null);l.value=D.dimensions,y.value=D.dataset;const L=D.dataset,N=[],T=L.length;for(let R=0;R<T;R++){const M={};e.shadowColor&&(M.shadowColor=e.shadowColor,M.shadowBlur=e.shadowBlur,M.shadowOffsetY=e.shadowOffsetY,M.shadowOffsetX=e.shadowOffsetX),N.push({type:"line",...L[R],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[R]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[R],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...M}})}i.value=N};r.watch(()=>[e.data,e.symbolSize,e.smooth,e.lineStyleWidth,e.areaStyleOpacity,e.areaGradientShow,e.areaGradientColor,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX],([P])=>{(e.dataType==="static"||r.unref(p)==="design")&&w(P)},{immediate:!0,deep:!0});const v=r.ref(!1),b=Re(e),A=async()=>{var P,z;if(e.dataType==="request")try{v.value=!0;const F=await b();w((z=(P=F==null?void 0:F.data)==null?void 0:P.data)==null?void 0:z.rows,!0)}catch(F){console.error(F)}finally{v.value=!1}},_=ye(e)("click",P=>{const z=g(e.id);m(e.id,{...z,RECORD:e.tooltipShow?d:P.data})}),E=P=>{t.value.chart.containPixel("grid",[P.offsetX,P.offsetY])&&_()};e.tooltipShow?c.value["zr:click"]=E:c.value.click=_;const B=Tt(e),C=async()=>{var P;try{v.value=!0;const z=await B(),{columns:F=[],rows:H=[]}=((P=z==null?void 0:z.data)==null?void 0:P.data)??{};let D;F.length>0&&(D={name:F[0],types:F.slice(1).map(L=>({label:L,value:L}))}),x(H,D,!0)}catch(z){console.error(z)}finally{v.value=!1}},k=()=>{switch(e.dataType){case"indicator":C();break;case"request":A();break}};Ce(e,{refreshData:k,resetRecord:()=>{const P=e.id,z=g(P);m(P,{...z,RECORD:""})},click:_});const{setRequest:O}=r.inject(Te,{setRequest:P=>{}});return typeof O=="function"&&O({id:e.id,requestFn:k,sortNum:e.requestSort}),n({refreshData:k}),{option:u,style:a,click:_,loading:v,onClose:h,ecanModal:s,eventObj:c,echartRef:t}}}),Jd="";function Lc(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 _0=se(re(Ic,[["render",Lc]])),$o={...me,id:"",name:"柱状图",keyName:"柱状图",type:"ecanBar",width:"400px",height:"400px",top:"",left:"",rotate:"",xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisLineAlwaysDisplay:!1,data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:310,type:"类型一"},{name:"名称三",value:310,type:"类型一"}],titleText:"",titleSubtext:"",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:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,barBorderRadius:"",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,showBarBackground:!1,legendType:""},jo=fe($o),A0=["refreshData","click","resetRecord"];qe.use([lt.CanvasRenderer,Ue.BarChart,he.TitleComponent,he.LegendComponent,he.DatasetComponent,he.ToolboxComponent]);const Oc=r.defineComponent({name:"EcanBar",props:{...jo},components:{Spin:xt,Echarts:Je,EcanModal:at,AModal:ne.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?ct:12),y=r.computed(()=>{const{gradientShow:D,gradientColors:L,gradientOffset:N,barBorderRadius:T}=e,R=r.unref(f),M=R.length,q=[];for(let G=0;G<M;G++){const Y={...R[G],type:"bar",barWidth:e.barWidth,showBackground:e.showBarBackground};if(e.isStack&&(Y.stack="stack"),Y.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor},Y.itemStyle={},D&&(Y.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[G]},{offset:N,color:L[G]},{offset:1,color:L[G]}]}}),T){const J=T.split(",");if(J!=null&&J.length){const W=[];for(const de of J){const ve=parseFloat(de);isNaN(ve)||W.push(ve)}Y.itemStyle.borderRadius=W}}q.push(Y)}return q}),u=r.ref([]),h=r.ref(!1),g=r.computed(()=>{const D=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 N=t.value.chart.getOption(),{xAxis:T}=N||{};T&&T.length&&(l.value=T[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(){Et(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 N;o.value=!0,(N=c.value)==null||N.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(){ne.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:N=>{const T=N.length;let R="",M=e.tooltipFormatter;M===""&&(M="{marker} {a} {c}");for(let q=0;q<T;q++){const{marker:G,seriesName:Y,name:J,value:W,data:de}=N[q]||{};q===0&&(R+=`${J}<br/>`),R+=be(M,{textData:{marker:G,name:J,value:W,a:Y,b:J,c:W,...de}},{useNewline:!0,useSpace:!0}),R+="<br/>"}return R},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},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:r.unref(f).map((N,T)=>({name:N.name,itemStyle:{color:e.colors[T]},icon:e.legendType}))},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:r.unref(v),inverse:e.isUseHorizontalAxis?e.xAxisInverse:e.axisInverse,minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor,type:e.xAxisSplitLineType},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(N){return ht(L,N)}},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,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:d.value,color:e.yAxisLabelColor,rotate:e.yAxisLabelRotate,width:e.yAxisLabelWidth,overflow:e.yAxisLabelOverflow,formatter(N){return ht(D,N)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},series:r.unref(y)}}),{pageMode:m}=r.inject(ke,{pageMode:"normal"}),p=()=>{o.value=!1},w=(D=[],L=!1)=>{let N={};if(e.dataFieldConfigType==="key"){const T=L?e.keyTypeDataFieldNames:null;N=rt(D,T)}else if(e.dataFieldConfigType==="value"){const T=L?e.valueTypeDataFieldNames:null;N=yt(D,T)}f.value=N.dataset,u.value=N.dimensions},x=(D=[],L,N=!1)=>{const R=rt(D,N?L:null);f.value=R.dataset,u.value=R.dimensions},v=r.computed(()=>r.unref(u).map(D=>{let L={};return D&&typeof D=="object"?L={...D,textStyle:{fontSize:d.value}}:L={value:D,textStyle:{fontSize:d.value}},L}));r.watch(()=>e.data,D=>{(e.dataType==="static"||r.unref(m)==="design")&&w(D)},{immediate:!0,deep:!0});const b=Re(e),A=async()=>{var D,L;try{h.value=!0;const N=await b();w((L=(D=N==null?void 0:N.data)==null?void 0:D.data)==null?void 0:L.rows,!0)}catch(N){console.error(N)}finally{h.value=!1}},S=Tt(e),_=async()=>{var D;try{h.value=!0;const L=await S(),{columns:N=[],rows:T=[]}=((D=L==null?void 0:L.data)==null?void 0:D.data)??{};let R;N.length>0&&(R={name:N[0],types:N.slice(1).map(M=>({label:M,value:M}))}),x(T,R,!0)}catch(L){console.error(L)}finally{h.value=!1}},E=()=>{switch(e.dataType){case"indicator":_();break;case"request":A();break}},B=(D,L)=>!!r.unref(l)[L.value].value.includes(D),C=async()=>{a.value=!1;const D=t.value.chart.getOption();for(let L=0;L<7;L++)await k(D,L)},k=(D,L)=>new Promise(N=>{setTimeout(()=>{const{series:T,color:R,xAxis:M}=D,q=t.value.chart,{splitArea:G={}}=M[0]||{};T.forEach((Y,J)=>{const W=Y.data;let de="";L%2?de=R[J]+"a8":de=R[J],W[i.value].itemStyle={color:de}}),L%2?(G.show=!0,G.areaStyle.color=r.unref(l).map((Y,J)=>J===i.value?"#ff003b26":"")):G.show=!1,q.setOption({series:T,xAxis:M}),N()},200)});n({refreshData:E});const I=ye(e),{getGlobalModel:O,setGlobalModel:P}=r.inject(we,{getGlobalModel:D=>{},setGlobalModel:(D,L)=>{}}),z=I("click",D=>{const L=O(e.id);P(e.id,{...L,RECORD:D.data})}),{setRequest:F}=r.inject(Te,{setRequest:D=>{}});return typeof F=="function"&&F({id:e.id,requestFn:E,sortNum:e.requestSort}),Ce(e,{refreshData:E,click:z,resetRecord:()=>{const D=e.id,L=O(D);P(D,{...L,RECORD:""})}}),{option:g,style:s,refreshData:E,click:z,loading:h,onClose:p,ecanModal:c,echartRef:t,handleLocationOk:C,onFilterOption:B,locationVisible:a,locationValue:i,locationNames:l}}}),e1="",t1="",Nc=e=>(r.pushScopeId("data-v-2c904b1c"),e=e(),r.popScopeId(),e),zc={class:"location-wrap"},Mc=Nc(()=>r.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function Pc(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"),y=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(y,{visible:e.locationVisible,"onUpdate:visible":n[1]||(n[1]=u=>e.locationVisible=u),title:"快速定位",onOk:e.handleLocationOk},{default:r.withCtx(()=>[r.createElementVNode("div",zc,[Mc,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 T0=se(re(Oc,[["render",Pc],["__scopeId","data-v-2c904b1c"]])),Uo={...me,id:"",name:"散点图",keyName:"散点图",type:"ecanScatter",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:233,value:335},{name:556,value:310},{name:56,value:234}],titleText:"",titleSubtext:"",tooltipShow:!0,tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c}",legendShow:!1,legendOrient:"horizontal",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:10,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelColor:"#333",xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelFormatter:"{value}",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",dataFieldNames:{name:"name",value:"value"},gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",yAxisLabelShow:!0,yAxisSplitLineType:"solid"},Go=fe(Uo),E0=["click","refreshData","resetRecord"];qe.use([lt.CanvasRenderer,Ue.ScatterChart,he.ToolboxComponent,he.TitleComponent,he.TooltipComponent,he.LegendComponent]);const Fc=r.defineComponent({name:"EcanScatter",props:{...Go},components:{Spin:xt,Echarts:Je,EcanModal:at},setup(e){const n=r.ref(!1),t=ue(e),o=r.ref([]),a=r.ref(),i=r.computed(()=>n.value?ct:12),l=r.computed(()=>{const b=e.xAxisLabelFormatter,A=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Et(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 S;n.value=!0,(S=a.value)==null||S.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(){ne.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(S){return ht(b,S)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:i.value,color:e.yAxisLabelColor,formatter(S){return ht(A,S)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter(S){var I;const{marker:_,seriesName:E}=S,B=((I=S==null?void 0:S.data)==null?void 0:I.record)??{},{name:C,value:k}=B;return be(e.tooltipFormatter,{textData:{marker:_,seriesName:E,a:E,b:C,c:k,...B}})},axisPointer:{type:"cross"},textStyle:{fontSize:i.value}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{fontSize:i.value}},series:[{data:r.unref(o),type:"scatter",symbolSize:e.symbolSize}]}}),{getGlobalModel:s,setGlobalModel:f}=r.inject(we,{getGlobalModel:b=>{},setGlobalModel:(b,A)=>{}}),{pageMode:c}=r.inject(ke,{pageMode:"normal"}),d=(b=[],A)=>{const{name:S="name",value:_="value"}=A||{};o.value=b.map(E=>({value:[E[S],E[_]],record:E}))};r.watch(()=>e.data,b=>{(e.dataType==="static"||r.unref(c)==="design")&&d(b)},{immediate:!0,deep:!0});const y=r.ref(!1),u=Re(e),h=async()=>{var b,A;if(e.dataType==="request"){y.value=!0;try{const S=await u();d((A=(b=S==null?void 0:S.data)==null?void 0:b.data)==null?void 0:A.rows,e.dataFieldNames)}catch(S){console.error(S)}finally{y.value=!1}}},g=()=>{n.value=!1},p=ye(e)("click",b=>{const A=e.id,S=s(A);f(A,{...S,RECORD:b==null?void 0:b.data})});Ce(e,{refreshData:()=>{h()},click:p,resetRecord:()=>{const b=e.id,A=s(b);f(b,{...A,RECORD:""})}});const{setRequest:v}=r.inject(Te,{setRequest:b=>{}});return typeof v=="function"&&v({id:e.id,requestFn:h,sortNum:e.requestSort}),{option:l,style:t,click:p,loading:y,onClose:g,ecanModal:a}}}),o1="";function Vc(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 B0=se(re(Fc,[["render",Vc]])),Wo={...me,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:""},Zo=fe(Wo),qc=r.defineComponent({name:"EcanCustomGraph",props:{...Zo},components:{Echarts:Je},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:fi}}});function Hc(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 D0=se(re(qc,[["render",Hc]])),Ko={...me,id:"",name:"组合图表",keyName:"组合图表",type:"ecanComboGraph",width:"400px",height:"400px",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:410,type:"类型一"},{name:"名称三",value:210,type:"类型一"},{name:"名称一",value:510,type:"类型二"},{name:"名称二",value:731,type:"类型二"},{name:"名称三",value:910,type:"类型二"}],titleText:"",titleSubtext:"",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,yAxisSplitLineType:"solid",gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,legendType:"",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0},Yo=fe(Ko),R0=["refreshData","click","resetRecord"];qe.use([lt.CanvasRenderer,Ue.BarChart,Ue.LineChart,he.TitleComponent,he.LegendComponent,he.DatasetComponent,he.ToolboxComponent]);const $c=r.defineComponent({name:"EcanComboGraph",props:{...Yo},components:{Spin:xt,Echarts:Je,EcanModal:at,AModal:ne.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(),y=r.ref([]),u=r.computed(()=>o.value?ct:12),h=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 D=t.value.chart.getOption(),{xAxis:L}=D||{};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(){Et(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var D;o.value=!0,(D=d.value)==null||D.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ne.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:u.value},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:r.unref(y).map((D,L)=>({name:D.name,itemStyle:{color:e.colors[L]},icon:e.legendType}))},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:D=>{const L=D.length;let N="",T=e.tooltipFormatter;T===""&&(T="{marker} {a} {c}");const R=e.seriesTypes;for(let M=0;M<L;M++){const q=R[M],{tooltipFormatter:G}=q||{},{marker:Y,seriesName:J,name:W,value:de,data:ve}=D[M]||{};M===0&&(N+=`${W}<br/>`),N+=be(G||T,{textData:{marker:Y,name:W,value:de,seriesName:J,a:J,b:W,c:de,...ve}},{useNewline:!0,useSpace:!0}),N+="<br/>"}return N},textStyle:{color:e.tooltipTextStyleColor,fontSize:u.value}},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:r.unref(c).map(D=>{let L={};return D&&typeof D=="object"?L={...D,textStyle:{fontSize:u.value}}:L={value:D,textStyle:{fontSize:u.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:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:r.unref(x),series:r.unref(f)})),{pageMode:g}=r.inject(ke,{pageMode:"normal"}),m=()=>{o.value=!1},p=(D=[],L=!1)=>{let N;if(e.dataFieldConfigType==="key"){const G=L?e.keyTypeDataFieldNames:null;N=rt(D,G)}else if(e.dataFieldConfigType==="value"){const G=L?e.valueTypeDataFieldNames:null;N=yt(D,G)}c.value=N.dimensions;const T=N.dataset;y.value=N.dataset;const R=[],M=T.length,q=e.seriesTypes;for(let G=0;G<M;G++){const Y=q[G],{type:J,axisIndex:W}=Y||{};let de={type:J,yAxisIndex:W,...T[G]};if(J==="line"){const ve={};e.shadowColor&&(ve.shadowColor=e.shadowColor,ve.shadowBlur=e.shadowBlur,ve.shadowOffsetY=e.shadowOffsetY,ve.shadowOffsetX=e.shadowOffsetX),de={...de,symbolSize:e.symbolSize,smooth:e.smooth,itemStyle:{color:e.colors[G]},areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[G]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[G],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...ve}}}if(J==="bar"){const{gradientShow:ve,gradientColors:it,gradientOffset:Ze}=e,Ae={};if(e.barBorderRadius){const Se=e.barBorderRadius.split(",");if(Se!=null&&Se.length){const $e=[];for(const Ke of Se){const Ye=parseFloat(Ke);isNaN(Ye)||$e.push(Ye)}Ae.borderRadius=$e}}ve&&(Ae.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[G]},{offset:Ze,color:it[G]},{offset:1,color:it[G]}]}),de={...de,barWidth:e.barWidth,itemStyle:Ae}}R.push(de)}f.value=R},w=(D=[],L,N=!1)=>{const R=rt(D,N?L:null);c.value=R.dimensions;const M=R.dataset;y.value=R.dataset;const q=[],G=M.length,Y=e.seriesTypes;for(let J=0;J<G;J++){const W=Y[J];q.push({type:W==null?void 0:W.type,yAxisIndex:W==null?void 0:W.axisIndex,...M[J]})}f.value=q};r.watch(()=>[e.data,e.seriesTypes,e.symbolSize,e.smooth,e.areaStyleOpacity,e.lineStyleWidth,e.barWidth,e.barBorderRadius,e.areaGradientShow,e.areaGradientColor,e.gradientShow,e.gradientColors,e.gradientOffset,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX],([D])=>{(e.dataType==="static"||r.unref(g)==="design")&&p(D)},{immediate:!0,deep:!0});const x=r.computed(()=>{const D=e.yAxis;return D==null?void 0:D.map(L=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:u.value,color:e.yAxisLabelColor,formatter(N){return ht(L.axisLabelFormatter,N)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}}))}),v=r.ref(!1),b=Re(e),A=async()=>{var D,L;if(e.dataType==="request")try{v.value=!0;const N=await b();p((L=(D=N==null?void 0:N.data)==null?void 0:D.data)==null?void 0:L.rows,!0)}catch(N){console.error(N)}finally{v.value=!1}},S=Tt(e),_=async()=>{var D;try{v.value=!0;const L=await S(),{columns:N=[],rows:T=[]}=((D=L==null?void 0:L.data)==null?void 0:D.data)??{};let R;N.length>0&&(R={name:N[0],types:N.slice(1).map(M=>({label:M,value:M}))}),w(T,R,!0)}catch(L){console.error(L)}finally{v.value=!1}},E=()=>{switch(e.dataType){case"indicator":_();break;case"request":A();break}},B=(D,L)=>!!r.unref(l)[L.value].value.includes(D),C=async()=>{a.value=!1;const D=t.value.chart.getOption();for(let L=0;L<7;L++)await k(D,L)},k=(D,L)=>new Promise(N=>{setTimeout(()=>{const{series:T,color:R,xAxis:M}=D,q=t.value.chart,{splitArea:G={}}=M[0]||{};T.forEach((Y,J)=>{const W=Y.data;let de="";L%2?de=R[J]+"a8":de=R[J],W[i.value].itemStyle={color:de}}),L%2?(G.show=!0,G.areaStyle.color=r.unref(l).map((Y,J)=>J===i.value?"#ff003b26":"")):G.show=!1,q.setOption({series:T,xAxis:M}),N()},200)});n({refreshData:E});const I=ye(e),{getGlobalModel:O,setGlobalModel:P}=r.inject(we,{getGlobalModel:D=>{},setGlobalModel:(D,L)=>{}}),z=I("click",D=>{const L=O(e.id);P(e.id,{...L,RECORD:D==null?void 0:D.data})}),{setRequest:F}=r.inject(Te,{setRequest:D=>{}});return typeof F=="function"&&F({id:e.id,requestFn:E,sortNum:e.requestSort}),Ce(e,{resetRecord:()=>{const D=e.id,L=O(D);P(D,{...L,RECORD:""})},refreshData:E,click:z}),{style:s,option:h,click:z,loading:v,onClose:m,ecanModal:d,echartRef:t,handleLocationOk:C,onFilterOption:B,locationVisible:a,locationValue:i,locationNames:l}}}),i1="",s1="",jc=e=>(r.pushScopeId("data-v-470d5d84"),e=e(),r.popScopeId(),e),Uc={class:"location-wrap"},Gc=jc(()=>r.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function Wc(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"),y=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(y,{visible:e.locationVisible,"onUpdate:visible":n[1]||(n[1]=u=>e.locationVisible=u),title:"快速定位",onOk:e.handleLocationOk},{default:r.withCtx(()=>[r.createElementVNode("div",Uc,[Gc,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 I0=se(re($c,[["render",Wc],["__scopeId","data-v-470d5d84"]])),Xo={...me,id:"",name:"雷达图",keyName:"雷达图",type:"ecanRadar",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"},{name:"名称五",value:435,type:"类型一"},{name:"名称六",value:215,type:"类型一"}],titleText:"",titleSubtext:"",legendShow:!0,legendOrient:"horizontal",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",lineStyleWidth:2,symbolSize:4,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",axisNameColor:""},Jo=fe(Xo),L0=["refreshData","click","resetRecord"];qe.use([lt.CanvasRenderer,Ue.RadarChart,he.ToolboxComponent,he.TitleComponent,he.LegendComponent]);const Zc=r.defineComponent({name:"EcanRadar",props:{...Jo},components:{Spin:xt,Echarts:Je,EcanModal:at},setup(e,{expose:n}){const t=r.ref(),o=r.ref(!1),a=ue(e),i=r.ref([]),l=r.ref(),s=r.computed(()=>o.value?ct:12),f=r.ref({});let c;const d=r.ref([]),y=r.computed(()=>{const z=r.unref(d),F=z.length,H=[];for(let D=0;D<F;D++){const{name:L,data:N=[]}=z[D],T=[{name:L,value:N.map(M=>M.value)}],R={type:"radar",name:L,data:T,areaStyle:{color:e.colors[D],opacity:e.areaStyleOpacity},tooltip:{trigger:"item"},symbolSize:e.symbolSize,lineStyle:{width:e.lineStyleWidth},label:{show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor}};H.push(R)}return H}),u=r.computed(()=>{var L;const z=[],F={},H=r.unref(d),D=H.length;for(let N=0;N<D;N++){const{data:T=[]}=H[N];if(T!=null&&T.length)for(let R=0;R<T.length;R++)F[T[R].name]?F[T[R].name].push(T[R].value):F[T[R].name]=[T[R].value]}for(const N in F)z.push({name:N,max:(L=F[N])!=null&&L.length?Math.max(...F[N])*1.2:0});return z}),h=r.computed(()=>({toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Et(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 z;o.value=!0,(z=l.value)==null||z.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(){ne.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,left:"center"},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:s.value},show:e.tooltipShow,formatter:z=>{var D;let F="",H=e.tooltipFormatter;c=(D=z[0])==null?void 0:D.data,H===""&&(H="{marker} {a} {c}");for(let L=0;L<r.unref(u).length;L++){const N=r.unref(u)[L],{marker:T,seriesName:R,value:M}=z||{};L===0&&R&&(F+=`${R}<br/>`),F+=be(H,{textData:{marker:T,name:N.name,value:M[L],a:N.name,b:N.name,c:M[L],type:R}},{useNewline:!0,useSpace:!0}),F+="<br/>"}return F}},radar:{indicator:r.unref(u),axisName:{color:e.axisNameColor}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{fontSize:s.value},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:r.unref(d).map(z=>({name:z.name,icon:e.legendType}))},series:r.unref(y)})),g=()=>{o.value=!1},{getGlobalModel:m,setGlobalModel:p}=r.inject(we,{getGlobalModel:z=>{},setGlobalModel:(z,F)=>{}}),{pageMode:w}=r.inject(ke,{pageMode:"normal"}),x=(z=[],F=!1)=>{let H;if(e.dataFieldConfigType==="key"){const D=F?e.keyTypeDataFieldNames:null;H=rt(z,D)}else if(e.dataFieldConfigType==="value"){const D=F?e.valueTypeDataFieldNames:null;H=yt(z,D)}i.value=H.dimensions,d.value=H.dataset},v=(z=[],F,H=!1)=>{const L=rt(z,H?F:null);i.value=L.dimensions,d.value=L.dataset};r.watch(()=>[e.data,e.areaStyleOpacity],([z])=>{(e.dataType==="static"||r.unref(w)==="design")&&x(z)},{immediate:!0,deep:!0});const b=r.ref(!1),A=Re(e),S=async()=>{var z,F;if(e.dataType==="request")try{b.value=!0;const H=await A();x((F=(z=H==null?void 0:H.data)==null?void 0:z.data)==null?void 0:F.rows,!0)}catch(H){console.error(H)}finally{b.value=!1}},E=ye(e)("click",z=>{const F=m(e.id);p(e.id,{...F,RECORD:e.tooltipShow?c:z.data})}),B=z=>{t.value.chart.containPixel("grid",[z.offsetX,z.offsetY])&&E()};e.tooltipShow?f.value["zr:click"]=B:f.value.click=E;const C=Tt(e),k=async()=>{var z;try{b.value=!0;const F=await C(),{columns:H=[],rows:D=[]}=((z=F==null?void 0:F.data)==null?void 0:z.data)??{};let L;H.length>0&&(L={name:H[0],types:H.slice(1).map(N=>({label:N,value:N}))}),v(D,L,!0)}catch(F){console.error(F)}finally{b.value=!1}},I=()=>{switch(e.dataType){case"indicator":k();break;case"request":S();break}};Ce(e,{refreshData:I,resetRecord:()=>{const z=e.id,F=m(z);p(z,{...F,RECORD:""})},click:E});const{setRequest:P}=r.inject(Te,{setRequest:z=>{}});return typeof P=="function"&&P({id:e.id,requestFn:I,sortNum:e.requestSort}),n({refreshData:I}),{option:h,style:a,click:E,loading:b,onClose:g,ecanModal:l,eventObj:f,echartRef:t}}}),c1="";function Kc(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 O0=se(re(Zc,[["render",Kc]])),Qo={...me,name:"边框",keyName:"边框",type:"ecanBorder",width:"300px",height:"300px",zIndex:0,fontSize:"16px",fontFamily:"",fontWeight:700,title:"标题",mode:"no-title",borderColor:"#eee",borderRadius:"5",borderStyle:"solid",borderWidth:"2px",backgroundColor:"#ffffff",useBorderModify:!1,textShadow:"",data:{},gradientShow:!0,gradientColor:"",gradientOffset:1,gradientAngle:"180deg"},er=fe(Qo),N0=["click"],Yc=r.defineComponent({name:"EcanBorder",props:{...er},setup(e){const n=ue(e,["background"]),t=r.computed(()=>{const{gradientShow:d,gradientColor:y,gradientOffset:u,gradientAngle:h,backgroundColor:g}=e;return d&&y?{backgroundImage:`linear-gradient(${h}, ${g}, ${y} ${u*100}%)`}:{}}),{theme:o}=r.inject(ke,{theme:"light"}),a=r.computed(()=>({width:"100%",height:"100%"})),i=r.computed(()=>{const{borderRadius:d}=e,y=[],u={};if(d){const h=d.split(",");for(const g of h)(+g||+g==0)&&y.push(+g+"px")}return y!=null&&y.length&&(u.borderRadius=y.join(" ")),u}),s=ye(e)("click",()=>{}),f=r.ref([]);r.watch(()=>e.data,d=>{f.value=d},{immediate:!0,deep:!0}),Ce(e,{click:s});const{setGlobalModel:c}=r.inject(we,{setGlobalModel:(d,y)=>{}});return c(e.id,{type:e.type,value:f}),{style:n,gradientStyle:t,click:s,borderStyle:a,theme:o,borderRadiusStyle:i}}}),Xc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",Jc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",d1="",He=e=>(r.pushScopeId("data-v-c1c9f52d"),e=e(),r.popScopeId(),e),Qc=He(()=>r.createElementVNode("div",{class:"top-left border-item"},null,-1)),ef=He(()=>r.createElementVNode("div",{class:"top-right border-item"},null,-1)),tf=He(()=>r.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),nf=He(()=>r.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),of={class:"title-item-wrapper"},rf={class:"title-item"},af=He(()=>r.createElementVNode("img",{class:"title-decoration-left",src:Xc},null,-1)),sf={class:"title"},lf=He(()=>r.createElementVNode("img",{class:"title-decoration-right",src:Jc},null,-1)),cf=He(()=>r.createElementVNode("div",{class:"top-left border-item"},null,-1)),ff=He(()=>r.createElementVNode("div",{class:"top-right border-item"},null,-1)),df=He(()=>r.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),uf=He(()=>r.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),hf={key:2,class:"left-title"},mf={class:"title"};function gf(e,n,t,o,a,i){return r.openBlock(),r.createElementBlock("div",{class:"ecan-border",style:r.normalizeStyle({...e.style,...e.gradientStyle,...e.borderRadiusStyle}),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},[Qc,ef,tf,nf],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",of,[r.createElementVNode("div",rf,[af,r.createElementVNode("div",sf,r.toDisplayString(e.title),1),lf])]),cf,ff,df,uf],4)):r.createCommentVNode("",!0),e.mode==="left-title"?(r.openBlock(),r.createElementBlock("div",hf,[r.createElementVNode("div",mf,[r.createElementVNode("span",null,r.toDisplayString(e.title),1)])])):r.createCommentVNode("",!0)],4)}const z0=se(re(Yc,[["render",gf],["__scopeId","data-v-c1c9f52d"]])),tr={...me,tabHorizontalPadding:"0px",type:"ecanTabs",name:"标签页",keyName:"标签页",width:"500px",height:"400px",tabFontSize:"14px",backgroundColor:"#ffffff",activeTabColor:"#1890ff",tabBackgroundImage:"",activeTabBackgroundImage:"",tabColor:"#333",tabBarGutter:"24px",tabFontWeight:400,value:"",activeKey:0,autoSwitch:!1,autoSwitchInterval:5,contains:[],tabFlexDirection:"row",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}],tabAlignItems:"flex-start",tabJustifyContent:"flex-start"},nr=fe(tr),M0=["tabChange"],xf=r.defineComponent({name:"EcanTabs",props:{...nr},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(ke,{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)],y()},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:y}=r.inject(Ot,{emitRefreshPage:()=>{}}),u=c("tabChange",(h,g)=>{g!==r.unref(t)&&(s.value=h,t.value=g,y())});return Ce(e,{tabChange:u}),{style:n,activeKey:t,isActive:f,tabChange:u,myData:l,useImagePath:ut}}}),h1="",yf=["onClick"];function pf(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,yf))),128))],4)],4)}const P0=se(re(xf,[["render",pf],["__scopeId","data-v-a2045b93"]])),or={...me,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:""},rr=fe(or),vf=r.defineComponent({name:"EcanImage",props:{...rr},setup(e){const n=ue(e),t=r.computed(()=>ut(e.imgUrl)),{pageMode:o}=r.inject(ke,{pageMode:"normal"});return{style:n,myImgUrl:t,onClick:()=>{if(!e.linkPage&&!e.href)return;const i=e.linkPage||"",l=qa(r.unref(o),i),s=e.href;let f=s||l;f=be(f);const c=e.target;c&&(c!=="event"?window.open(f,"_"+c):window.parent.postMessage({type:"openPage",url:s},"*"))}}}}),g1="",bf=["src"];function Sf(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,bf)):(r.openBlock(),r.createElementBlock("div",{key:1,class:"image-placeholder",style:r.normalizeStyle(e.style)}," 请上传图片 ",4))}const F0=se(re(vf,[["render",Sf],["__scopeId","data-v-ef7a7bee"]])),ar={...me,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},ir=fe(ar),wf=r.defineComponent({name:"EcanIframe",props:{...ir},setup(e){const n=ue(e),{contextRequestUrl:t}=r.inject(ke,{contextRequestUrl:""}),o=r.computed(()=>{let a=be(e.link);if(e.linkType==="erd"&&a!=null){let i=r.unref(t);i[i.length-1]==="/"?i+="erdReport":i+="/erdReport",a=`${Rs||i}?_t=0&uid=${a}`}return a});return{style:n,myLink:o}}}),y1="",Cf=["src"];function kf(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,Cf)):(r.openBlock(),r.createElementBlock("div",{key:1,class:"iframe-placeholder",style:r.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const V0=se(re(wf,[["render",kf],["__scopeId","data-v-19bc100c"]])),sr={...me,zIndex:2,name:"表格",keyName:"表格",type:"ecanTable",width:"400px",height:"240px",bordered:!1,headerFontSize:"14px",fontSize:"14px",isUseSeq:!1,size:"default",headerFontWeight:400,isUseExport:!1,fontWeight:400,columnsFixedNum:0,scrollX:0,paginationShow:!0,isReverse:!1,simple:!1,pageSizeShow:!1,cellBackgroundColor:"",headerBackgroundColor:"",borderColor:"",paginationPosition:"bottomRight",paginationPageSize:10,isUseAction:!1,clickHighlight:!1,filterDropdownHeight:"200px",actionList:[{title:"",href:"",target:"",color:""}],actionColumnWidth:100,columns:[{title:"姓名",dataIndex:"name"},{title:"年龄",dataIndex:"age"},{title:"住址",dataIndex:"address"}],data:[{name:"小明",age:32,address:"福州软件园"},{name:"小红",age:25,address:"福州软件园"}],graphicConfig:{},stripedShow:!1,stripedColor:"#fafafa"},lr=fe(sr),q0=["click","refreshData","resetRecord","exportTableData"],cr=r.defineComponent({name:"EcanTable",components:{Skeleton:Vt,AButton:ne.Button,AInput:ne.Input,ACheckboxGroup:ne.CheckboxGroup,ATable:ne.Table,ATableSummary:ne.TableSummary,ATableSummaryRow:ne.TableSummaryRow,ATableSummaryCell:ne.TableSummaryCell},props:{...lr},setup(e,{expose:n}){const{pageMode:t}=r.inject(ke,{pageMode:"normal"}),o=r.ref(),a=r.ref(!1),i=ue(e),l=r.ref([]),s=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}}),f=r.computed(()=>{switch(e.size){case"small":return 40;case"middle":return 47;default:return 55}}),c=r.computed(()=>e.scrollX),d=r.computed(()=>{let j=0;const U=parseFloat(e.height)-r.unref(s);return(r.unref(f)*r.unref(l).length>U||r.unref(t)==="design")&&(j=U),console.log(j),j}),y=r.ref([]),u=r.ref([]),h=r.ref([]),g=r.ref(0),m=r.ref(1),p=r.ref(e.paginationPageSize||10),w=r.reactive([]),x=(j=[])=>{if(Array.isArray(j)&&j.length>0){const U=j.length,K=e.columnsFixedNum;for(let X=0;X<U;X++){const Z=j[X];X<K?Z.fixed="left":Z.fixed=!1;const{cellAlign:ae="center",cellColor:ie,dataIndex:le,title:ce,tableFilter:ge,headerCellAlign:Ve,headerCellColor:De}=Z;ge&&(w.push(le),Z.filterOptionsInputValue="",Z.filterCheckboxGroupValue=[],Z.customFilterDropdown=!0,Z.onFilter=(Ee,Xe)=>Xe[le].toString().toLowerCase().includes(Ee.toLowerCase())),Z.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:Ve||"center",color:De,borderBottomColor:e.borderColor}}),Z.customCell=(Ee,Xe)=>({style:{textAlign:ae,color:ie,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:r.unref(R)===Xe&&e.clickHighlight},onClick:F("click",()=>{const en=e.id,tn=H(en);Ee={dataIndex:le,title:ce,...Ee},D(en,{...tn,RECORD:Ee})})}),Array.isArray(Z.children)&&x(Z.children)}}},v=(j=[])=>(e.isUseSeq&&j.unshift({title:"序号",dataIndex:"SEQ",align:"center"}),e.isUseAction&&j.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),x(j),j);r.watch(p,()=>{m.value=1,q(!1)}),r.watch(o,j=>{a.value=!!j}),r.watch(()=>[e.columns,e.isUseSeq,e.isUseAction,e.columnsFixedNum,e.actionColumnWidth,e.cellBackgroundColor,e.borderColor,e.stripedColor],()=>{y.value=v(je.cloneDeep(e.columns))},{immediate:!0,deep:!0}),r.watch(()=>[e.data,e.dataType],([j,U])=>{U==="static"&&(u.value=j)},{immediate:!0});const b=r.ref({}),A=j=>{if(Array.isArray(j)){const U=j.length,K=w,X=K.length,Z={};for(let ie=0;ie<U;ie++){const le=j[ie];for(let ce=0;ce<X;ce++){const ge=K[ce];if(Z[ge])Z[ge].add(le[ge]);else{const Ve=new Set;Ve.add(le[ge]),Z[ge]=Ve}}}const ae={};for(const ie in Z)if(Object.prototype.hasOwnProperty.call(Z,ie)){const le=Z[ie],ce=Array.from(le);ae[ie]=ce.map(ge=>({label:ge,value:ge}))}b.value=ae}};r.watch(()=>[e.isReverse,y.value,u.value],()=>{const j=r.unref(y),U=r.unref(u);if(A(U),e.isReverse){const{columns:K,dataSource:X}=S(je.cloneDeep(j),je.cloneDeep(U));h.value=K,l.value=X}else h.value=j,l.value=U},{immediate:!0});const S=(j,U)=>{const K=j[0],X=[{title:K.title,dataIndex:"col0",key:"col0",align:"center"}];for(let ae=0;ae<U.length;ae++){const ie=U[ae],le="col"+(ae+1);X.push({title:ie[K.dataIndex],dataIndex:le,key:le,align:"center"})}const Z=[];for(let ae=1;ae<j.length;ae++){const ie=j[ae],le={col0:ie.title};for(let ce=0;ce<U.length;ce++){const ge=U[ce];le[`col${ce+1}`]=ge[ie.dataIndex]}Z.push(le)}return{columns:X,dataSource:Z}},_=r.ref(""),E=Re(e),B=r.ref(!1),C=async(j=!0,U={})=>{var K;try{j&&(B.value=!0),r.unref(_)&&(U.orderCondition=r.unref(_)),e.paginationShow&&(U={pageNum:r.unref(m),pageSize:r.unref(p)||"10",layer:"1",...U});const X=await E(U),{rows:Z=[],total:ae=0}=((K=X==null?void 0:X.data)==null?void 0:K.data)||{};if(g.value=ae,Array.isArray(Z)&&(u.value=Z),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:ie=[]}=e,le=ie.find(ce=>ce.key==="dataSqlId");if((le==null?void 0:le.value)==="xt_jxzebg"){const ce=Z.filter(ge=>!ge.绩效总额).map(ge=>ge.ORG_NAME);ce!=null&&ce.length&&r.nextTick(()=>{ne.notification.warning({message:"提示",description:`当前时段${ce.join("、")}绩效数据为空`,duration:3})})}}}catch(X){console.error(X)}finally{B.value=!1}},k=({current:j},U,K)=>{if(m.value=j,K&&Object.keys(K).length>0){const{field:X,order:Z}=K,ie={ascend:"asc",descend:"desc"}[Z];X!=null&&ie!=null&&(_.value=X+" "+ie,m.value=1)}q(!1)},I=r.computed(()=>{const j=e.simple,U=[e.paginationPosition];return e.paginationShow&&{simple:j,position:U,total:r.unref(g),current:r.unref(m),pageSize:r.unref(p)||"10",showSizeChanger:!1}}),O=j=>+j==1?"是":+j==0?"否":j,P=(j,U)=>U==null||U===""?j:{money:so,percentage:Xt,contrast:Xt,boolean:O}[U](j)||"",z=(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:H,setGlobalModel:D}=r.inject(we,{getGlobalModel:j=>{},setGlobalModel:(j,U)=>{}}),L=(j=[],U=[])=>{const K=j.map(X=>({title:X,dataIndex:X,key:X}));y.value=v(K),u.value=U},N=Tt(e),T=async()=>{var j,U,K,X;try{B.value=!0;const Z=await N();L((U=(j=Z==null?void 0:Z.data)==null?void 0:j.data)==null?void 0:U.columns,(X=(K=Z==null?void 0:Z.data)==null?void 0:K.data)==null?void 0:X.rows)}catch(Z){console.error(Z)}finally{B.value=!1}},R=r.ref(-1),M=(j,U)=>({onClick:F("rowClick",()=>{const K=e.id,X=H(K);D(K,{...X,RECORD:j}),R.value=U})}),q=(j=!0)=>{switch(e.dataType){case"request":C(j);break;case"indicator":T();break}},G=()=>{const j=e.id,U=H(j);D(j,{...U,RECORD:""})},Y=r.computed(()=>{const j=r.unref(h),U=[];let K=0;for(let Z=0;Z<j.length;Z++){const ae=j[Z],{isCalcTotal:ie}=ae;e.isUseSeq&&Z===0?U.push({...ae,total:"小计"}):ie?(U.push({...ae,index:Z,total:0}),K++):U.push({...ae})}if(K===0)return[];const X=r.unref(l);for(let Z=0;Z<U.length;Z++){const ae=U[Z];let ie=0;const{isCalcTotal:le,dataIndex:ce}=ae;if(le===!0){for(let ge=0;ge<X.length;ge++){const De=+X[ge][ce];isNaN(De)||(ie=new li.Big(ie).add(De).toNumber())}ae.total=ie}}return U}),{setRequest:J}=r.inject(Te,{setRequest:j=>{}});typeof J=="function"&&J({id:e.id,requestFn:q,sortNum:e.requestSort}),n({refreshData:q});const W=(j="",U)=>be(j,U),de=j=>{if(j!=="event")return{self:"_self",blank:"_blank"}[j]},ve=(j,U="")=>{j==="event"&&window.parent.postMessage({type:"openPage",url:U},"*")},it=(j,U)=>{j(U.filterCheckboxGroupValue)},Ze=(j,U)=>{j({confirm:!0}),U.filterOptionsInputValue="",U.filterCheckboxGroupValue=[]},Ae=()=>{},Se=j=>{const U=j.dataIndex;if(typeof U=="string"){let K=r.unref(b)[U];const X=r.unref(j.filterOptionsInputValue).trim();return Array.isArray(K)?(K=K.filter(Z=>typeof Z.label=="string"?Z.label.toLowerCase().includes(X.toLowerCase()):!0),K):[]}return[]},$e=async()=>{var ge,Ve;const j="EXPORT_KEY";ne.message.loading({key:j,content:"正在导出...",duration:0});let U=[];if(e.dataType==="static")U=e.data;else if(e.dataType==="request"){const De={layer:"1"};r.unref(_)&&(De.orderCondition=r.unref(_));const Ee=await E(De);U=((Ve=(ge=Ee==null?void 0:Ee.data)==null?void 0:ge.data)==null?void 0:Ve.rows)||{}}const K=r.unref(h),X=[],Z=[];K==null||K.forEach(De=>{X.push(De.dataIndex),Z.push(De.title)});const ae=U.map(De=>je.pick(De,X)),ie=Dt.utils.book_new(),le=Dt.utils.aoa_to_sheet([Z]),ce=Dt.utils.sheet_add_json(le,ae,{skipHeader:!0,origin:"A2"});Dt.utils.book_append_sheet(ie,ce,"sheet"),Dt.writeFile(ie,"表格数据.xlsx"),ne.message.success({key:j,content:"导出成功"})},Ke=(j,U=2)=>{const K=+j*100;return isNaN(K)||K<=0?0:K>=100?100:K.toFixed(U)};Ce(e,{resetRecord:G,refreshData:q,exportTableData:$e});const Ye=r.computed(()=>e.headerBackgroundColor||"#fafafa");return{x:c,y:d,style:i,customRow:M,pagination:I,formatFn:P,contrastClass:z,tableChange:k,summaryList:Y,loading:B,onTouchHrefEvent:ve,handleHref:W,handleHrefTarget:de,useRowIndex:R,tableColumns:h,tableDataSource:l,useFilterOptions:Se,useSetSelectedKeys:it,onResetFilter:Ze,onSearchFilterOptions:Ae,exportTableData:$e,handleProgressText:Ke,pageSizeVisible:a,pageSize:p,tableRef:o,headerBgColor:Ye,rowClassName:(j,U)=>{let K=null;return e.stripedShow&&(K=U%2===1?"table-striped":null),K}}}}),H0=()=>{r.useCssVars(e=>({"6b6c1e9d":e.headerBgColor,cbaaeac0:e.stripedColor}))},$0=cr.setup;cr.setup=$0?(e,n)=>(H0(),$0(e,n)):H0;const v1="",b1="",_f=["id"],Af={key:0,class:"table-tool"},Tf=r.createTextVNode("导出数据"),Ef=r.createTextVNode(" 搜索 "),Bf=r.createTextVNode(" 重置 "),Df={key:0},Rf={key:1,class:"action-list"},If=["href","target","onClick"],Lf={key:2,class:"progress-cell"},Of={class:"ant-pagination-options-quick-jumper"},Nf=r.createTextVNode(" 条 / 页 ");function zf(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"),y=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",Af,[r.createVNode(l,{class:"export-button",onClick:e.exportTableData},{default:r.withCtx(()=>[Tf]),_: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:e.y?{x:e.x,y:e.y}:{},pagination:e.pagination,"row-class-name":e.rowClassName,onChange:e.tableChange},{customFilterDropdown:r.withCtx(({column:m,selectedKeys:p,setSelectedKeys:w,confirm:x,clearFilters:v})=>[r.createElementVNode("div",{class:"ecan-table-filter",style:r.normalizeStyle({height:e.filterDropdownHeight})},[r.createVNode(s,{value:m.filterOptionsInputValue,"onUpdate:value":b=>m.filterOptionsInputValue=b,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),r.createVNode(f,{value:m.filterCheckboxGroupValue,"onUpdate:value":b=>m.filterCheckboxGroupValue=b,class:"filter-checkbox",options:e.useFilterOptions(m),onChange:b=>e.useSetSelectedKeys(w,m)},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:()=>x()},{default:r.withCtx(()=>[Ef]),_:2},1032,["onClick"]),r.createVNode(l,{size:"small",style:{width:"90px"},onClick:r.withModifiers(b=>e.onResetFilter(v,m),["stop"])},{default:r.withCtx(()=>[Bf]),_:2},1032,["onClick"])])],4)]),bodyCell:r.withCtx(({column:m,index:p,text:w,record:x})=>[m.dataIndex==="SEQ"?(r.openBlock(),r.createElementBlock("span",Df,r.toDisplayString(p+1),1)):m.dataIndex==="ACTION"?(r.openBlock(),r.createElementBlock("div",Rf,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.actionList,(v,b)=>(r.openBlock(),r.createElementBlock("div",{class:"action",key:b},[r.createElementVNode("a",{href:e.handleHref(v.href,x),target:e.handleHrefTarget(v.target),style:r.normalizeStyle({color:v.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:A=>e.onTouchHrefEvent(v.target,e.handleHref(v.href,x))},r.toDisplayString(v.title),13,If)]))),128))])):m.format==="progress"?(r.openBlock(),r.createElementBlock("div",Lf,[r.createElementVNode("div",{class:"progress",style:r.normalizeStyle({background:m.progressColor||"#1890ff",height:m.progressWidth||"18px",width:`${e.handleProgressText(w,m.progressTextDecimalPlaces)}%`})},null,4),r.createElementVNode("div",{class:"progress-text",style:r.normalizeStyle({color:e.handleProgressText(w)<100?m.progressTextColor||"#333":m.progressFinishedTextColor||"#fff"})},r.toDisplayString(e.handleProgressText(w,m.progressTextDecimalPlaces))+"% ",5)])):(r.openBlock(),r.createElementBlock("div",{key:3,class:r.normalizeClass([e.contrastClass(w,m.format)]),style:r.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},r.toDisplayString(m.format!=null?e.formatFn(w,m.format):w),7))]),summary:r.withCtx(()=>[e.summaryList.length>0?(r.openBlock(),r.createBlock(y,{key:0},{default:r.withCtx(()=>[r.createVNode(d,null,{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.summaryList,(m,p)=>(r.openBlock(),r.createBlock(c,{key:p,index:p,style:r.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:m.cellAlign||"center",color:m.cellColor,borderBottomColor:e.borderColor})},{default:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass([e.contrastClass(m.total,m.format)]),style:r.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},r.toDisplayString((m.format!=null||m.format!=="")&&e.formatFn(m.total,m.format)),7)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1})):r.createCommentVNode("",!0)]),_:1},8,["columns","data-source","bordered","size","customRow","scroll","pagination","row-class-name","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",Of,[r.withDirectives(r.createElementVNode("input",{type:"text","onUpdate:modelValue":n[0]||(n[0]=m=>e.pageSize=m)},null,512),[[r.vModelText,e.pageSize]]),Nf])],8,["to"])):r.createCommentVNode("",!0)]}),_:1},8,["loading"])],12,_f)}const j0=se(re(cr,[["render",zf],["__scopeId","data-v-a1d24e7f"]])),fr={...me,mapJson:null,data:[],name:"地图",keyName:"地图",type:"ecanMap",width:"400px",height:"400px",backgroundImage:"",backgroundImageRepeat:"no-repeat",geoBackgroundImage:"",geoBackgroundImageRepeat:"no-repeat",symbolImage:"",symbolWidth:10,symbolHeight:10,itemStyleColor:"#11BFDA",labelFontSize:14,labelShow:!0,geoLabelShow:!0,geoLabelColor:"#000",geoZoom:1,geoRoam:!1,geoCenter:"",geoLabelFontSize:12,labelColor:"",labelFormatter:"{b}",geoItemStyleAreaColor:"#eee",geoItemStyleBorderColor:"#000",geoItemStyleBorderWidth:1,geoItemStyleShadowColor:"",geoItemStyleShadowOffsetX:0,geoItemStyleShadowOffsetY:0,geoItemStyleShadowBlur:0,geoEmphasisDisabled:!1,geoEmphasisLabelColor:"#fff",geoEmphasisItemStyleAreaColor:"#f00",geoEmphasisItemStyleBorderColor:"#000",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{b}"},dr=fe(fr);qe.use([lt.CanvasRenderer,Ue.MapChart,Ue.ScatterChart,he.VisualMapComponent,he.TooltipComponent,he.GraphicComponent]);const Mf=r.defineComponent({name:"EcanMap",components:{Echarts:Je},props:{...dr},setup(e){const n=ue(e,["backgroundImage"]),t=r.ref(),o=r.computed(()=>ut(e.geoBackgroundImage)),a=r.computed(()=>ut(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://"+ut(d):"circle"}),s=r.computed(()=>{const d=e.geoCenter;let y;return typeof d=="string"&&d!==""&&(y=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:y,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 y;const d=e.mapJson;if(d!=null&&d.path){const u=await ot(((y=window==null?void 0:window.config)==null?void 0:y.uploadPath)+d.path);qe.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}}}),w1="",Pf=["src"];function Ff(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,Pf),[[r.vShow,!1]])],4)}const U0=se(re(Mf,[["render",Ff],["__scopeId","data-v-1fb5cdee"]])),G0=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:T0,EcanBorder:z0,EcanButton:f0,EcanCheckbox:u0,EcanComboGraph:I0,EcanCustomGraph:D0,EcanDatePicker:i0,EcanIframe:V0,EcanImage:F0,EcanInput:r0,EcanLine:_0,EcanList:e0,EcanMap:U0,EcanModal:at,EcanPageConfig:Ha,EcanPie:C0,EcanProportion:n0,EcanProviderConfig:$a,EcanRadar:O0,EcanRadio:b0,EcanRangePicker:l0,EcanScatter:B0,EcanScrollText:Ya,EcanSelect:m0,EcanTable:j0,EcanTabs:P0,EcanText:Ka,EcanTimeDisplay:Ja,EcanTreeSelect:x0,barComponentProps:jo,barEvents:A0,barProps:$o,borderComponentProps:er,borderEvents:N0,borderProps:Qo,buttonComponentProps:To,buttonEvents:c0,buttonProps:Ao,checkboxComponentProps:Bo,checkboxEvents:d0,checkboxProps:Eo,comboGraphComponentProps:Yo,comboGraphEvents:R0,comboGraphProps:Ko,customGraphComponentProps:Zo,customGraphProps:Wo,datePickerComponentProps:Co,datePickerEvents:a0,datePickerProps:wo,iframeComponentProps:ir,iframeProps:ar,imageComponentProps:rr,imageProps:or,inputComponentProps:So,inputEvents:o0,inputProps:bo,lineComponentProps:Ho,lineEvents:k0,lineProps:qo,listComponentProps:yo,listEvents:Qa,listProps:xo,mapComponentProps:dr,mapProps:fr,modalComponentProps:Vo,modalEvents:w0,modalProps:Fo,pageConfig:xn,pageConfigComponentProps:yn,pieComponentProps:Po,pieEvents:S0,pieProps:Mo,proportionComponentProps:vo,proportionEvents:t0,proportionProps:po,providerConfig:lo,providerConfigComponentProps:co,radarComponentProps:Jo,radarEvents:L0,radarProps:Xo,radioComponentProps:No,radioEvents:y0,radioProps:Oo,rangePickerComponentProps:_o,rangePickerEvents:s0,rangePickerProps:ko,scatterComponentProps:Go,scatterEvents:E0,scatterProps:Uo,selectComponentProps:Ro,selectEvents:h0,selectProps:Do,tableComponentProps:lr,tableEvents:q0,tableProps:sr,tabsComponentProps:nr,tabsEvents:M0,tabsProps:tr,textComponentProps:uo,textEvents:ja,textProps:fo,timeDisplayComponentProps:go,timeDisplayEvents:Xa,timeDisplayProps:mo,treeSelectComponentProps:Lo,treeSelectEvents:g0,treeSelectProps:Io},Symbol.toStringTag,{value:"Module"})),Vf={install:e=>{Object.keys(G0).forEach(n=>{const t=G0[n];t.install&&e.use(t)})}};V.EcanBar=T0,V.EcanBorder=z0,V.EcanButton=f0,V.EcanCheckbox=u0,V.EcanComboGraph=I0,V.EcanCustomGraph=D0,V.EcanDatePicker=i0,V.EcanIframe=V0,V.EcanImage=F0,V.EcanInput=r0,V.EcanLine=_0,V.EcanList=e0,V.EcanMap=U0,V.EcanModal=at,V.EcanPageConfig=Ha,V.EcanPie=C0,V.EcanProportion=n0,V.EcanProviderConfig=$a,V.EcanRadar=O0,V.EcanRadio=b0,V.EcanRangePicker=l0,V.EcanScatter=B0,V.EcanScrollText=Ya,V.EcanSelect=m0,V.EcanTable=j0,V.EcanTabs=P0,V.EcanText=Ka,V.EcanTimeDisplay=Ja,V.EcanTreeSelect=x0,V.barComponentProps=jo,V.barEvents=A0,V.barProps=$o,V.borderComponentProps=er,V.borderEvents=N0,V.borderProps=Qo,V.buttonComponentProps=To,V.buttonEvents=c0,V.buttonProps=Ao,V.checkboxComponentProps=Bo,V.checkboxEvents=d0,V.checkboxProps=Eo,V.comboGraphComponentProps=Yo,V.comboGraphEvents=R0,V.comboGraphProps=Ko,V.customGraphComponentProps=Zo,V.customGraphProps=Wo,V.datePickerComponentProps=Co,V.datePickerEvents=a0,V.datePickerProps=wo,V.default=Vf,V.iframeComponentProps=ir,V.iframeProps=ar,V.imageComponentProps=rr,V.imageProps=or,V.inputComponentProps=So,V.inputEvents=o0,V.inputProps=bo,V.lineComponentProps=Ho,V.lineEvents=k0,V.lineProps=qo,V.listComponentProps=yo,V.listEvents=Qa,V.listProps=xo,V.mapComponentProps=dr,V.mapProps=fr,V.modalComponentProps=Vo,V.modalEvents=w0,V.modalProps=Fo,V.pageConfig=xn,V.pageConfigComponentProps=yn,V.pieComponentProps=Po,V.pieEvents=S0,V.pieProps=Mo,V.proportionComponentProps=vo,V.proportionEvents=t0,V.proportionProps=po,V.providerConfig=lo,V.providerConfigComponentProps=co,V.radarComponentProps=Jo,V.radarEvents=L0,V.radarProps=Xo,V.radioComponentProps=No,V.radioEvents=y0,V.radioProps=Oo,V.rangePickerComponentProps=_o,V.rangePickerEvents=s0,V.rangePickerProps=ko,V.scatterComponentProps=Go,V.scatterEvents=E0,V.scatterProps=Uo,V.selectComponentProps=Ro,V.selectEvents=h0,V.selectProps=Do,V.tableComponentProps=lr,V.tableEvents=q0,V.tableProps=sr,V.tabsComponentProps=nr,V.tabsEvents=M0,V.tabsProps=tr,V.textComponentProps=uo,V.textEvents=ja,V.textProps=fo,V.timeDisplayComponentProps=go,V.timeDisplayEvents=Xa,V.timeDisplayProps=mo,V.treeSelectComponentProps=Lo,V.treeSelectEvents=g0,V.treeSelectProps=Io,Object.defineProperties(V,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
116
|
+
<span style="color: ${e.color}">${e.minusSignShow?"-":""}${Math.abs(+D)}%</span>
|
|
117
|
+
</span>`))):e.format==="percent"?(D=+D,isNaN(D)||(D=(D*100).toFixed(2),x=x.replace(_,`<span style="color:${e.variableColor};font-size:${a.unref(r)}">${D}%</span>`))):e.format==="money"?(D=+D,isNaN(D)||(D=so(D),x=x.replace(_,`<span style="color:${e.variableColor};font-size:${a.unref(r)}">${D}</span>`))):M==="thousands"?(D=+D,isNaN(D)||(D=Fl(D),x=x.replace(_,`<span style="color:${e.variableColor};font-size:${a.unref(r)}">${D}</span>`))):x=x.replace(_,`<span style="color:${e.variableColor};font-size:${a.unref(r)}">${D}</span>`)}}if(T||(T=`<span>${x}</span>`),e.unitShow&&e.unitText){const{unitTop:w,unitLeft:_}=e;let R="position:relative;";w&&(R+=`top:${w};`),_&&(R+=`margin-left:${_};`),T+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${R}'>${e.unitText}</span>`}return T}),{pageMode:s}=a.inject(ke,{pageMode:"normal"}),f=Re(e),c=a.ref(!1),d=async()=>{var g;try{c.value=!0;const v=await f();o.value=((g=v==null?void 0:v.data)==null?void 0:g.data)||{}}catch(v){console.error(v)}finally{c.value=!1}},p=(g=[])=>{o.value=g[0]||{}},u=Ve(e),h=async()=>{var g;try{c.value=!0;const v=await u(),{data:k}=(v==null?void 0:v.data)||{};if(k){const{columns:x=[],rows:A=[]}=((g=v==null?void 0:v.data)==null?void 0:g.data)??{};let T=[];if(x.length>0){const E=x[0];T=A.map(w=>({value:w[E]}))}p(T)}}catch(v){console.error(v)}finally{c.value=!1}},m=()=>{switch(e.dataType){case"indicator":h();break;case"request":d();break}};Ce(e,{refreshData:m});const{setRequest:y}=a.inject(Te,{setRequest:({id:g,sortNum:v,requestFn:k})=>{}});typeof y=="function"&&y({id:e.id,requestFn:m,sortNum:e.requestSort}),Ce(e,{refreshData:m}),n({refreshData:m});const S=ye(e),C=S("click",()=>{if(!e.linkPage&&!e.href)return;const g=e.linkPage||"",v=qr(a.unref(s),g),k=e.href;let x=k||v;x=be(x);const A=e.target;A&&(A!=="event"?window.open(x,"_"+A):window.parent.postMessage({type:"openPage",url:k},"*"))}),b=S("valueChange",()=>{});return a.watch(()=>l.value,(g,v)=>{g!==v&&b()}),{style:t,myText:l,loading:c,click:C,textIndent:i,vFontSize:r}}}),Wr=()=>{a.useCssVars(e=>({f90ce7ea:e.vFontSize,d84fff58:e.textIndent,ace9d4a8:e.percentageSide}))},Zr=ho.setup;ho.setup=Zr?(e,n)=>(Wr(),Zr(e,n)):Wr;const yd="",Wl=["innerHTML"];function Zl(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,Wl))}const Kr=se(ae(ho,[["render",Zl],["__scopeId","data-v-29fd5423"]])),Kl=a.defineComponent({name:"EcanScrollText",setup(){return{text:a.ref("基础文本")}}}),vd="",Yl={class:"red"};function Xl(e,n,t,o,r,i){return a.openBlock(),a.createElementBlock("div",Yl,a.toDisplayString(e.text),1)}const Yr=se(ae(Kl,[["render",Xl],["__scopeId","data-v-4dd9c03e"]])),mo={...me,name:"时间展示",keyName:"时间展示",type:"ecanTimeDisplay",format:"YYYY-MM-DD dddd HH:mm:ss",fontSize:"16px",color:"#333",width:"240px",height:"40px",fontFamily:"",fontWeight:400,textShadow:"",alignItems:"center",justifyContent:"center",operate:null,updateInterval:{value:1,mode:"second"}},go=fe(mo),Xr=["timeChange"],Jl=a.defineComponent({name:"EcanTimeDisplay",props:{...go},setup(e){const n=ue(e),t=()=>{const{format:c,operate:d}=e;let p=Ne();if(d){const{type:u,value:h,mode:m}=d;switch(u){case"add":p=p.add(h,m);break;case"minus":p=p.subtract(h,m)}}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=ye(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 Ce(e,{timeChange:s}),a.onMounted(()=>{f()}),a.onUnmounted(()=>{i()}),{style:n,time:o}}}),Sd="";function Ql(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 Jr=se(ae(Jl,[["render",Ql],["__scopeId","data-v-b628fca2"]])),xo={...me,type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#0d215e",itemColSpan:"10px",itemRowSpan:"10px",useRanking:!0,useTitle:!1,sliceCount:6,columnCount:1,itemHeight:"32px",data:[{name:"a",age:12},{name:"b",age:14}],columns:[{key:"name"},{key:"age"}]},yo=fe(xo),Qr=["refreshData","click"],ec=a.defineComponent({name:"EcanList",components:{Skeleton:Vt},props:{...yo},setup(e){const n=a.ref(e.data),t=ue(e,["backgroundColor"]),o=a.computed(()=>e.useRanking?{textAlign:"center"}:{textAlign:"left"}),r=(h,m)=>m==null||m===""?h:{money:so,percentage:Xt,contrast:Xt}[m](h)||"",i=(h,m)=>{const y=parseFloat(h+"");if(m!=="contrast")return"";switch(!0){case y>=0:return"goUp";case y<0:return"goDown"}},l=Re(e),s=a.ref(!1),f=async()=>{var h;if(e.dataType==="request")try{s.value=!0;const m=await l();n.value=((h=m==null?void 0:m.data)==null?void 0:h.data.rows)||[]}catch(m){console.error(m)}finally{s.value=!1}},c=()=>{f()},p=ye(e)("click",()=>{});Ce(e,{refreshData:c});const{setRequest:u}=a.inject(Te,{setRequest:({id:h,sortNum:m,requestFn:y})=>{}});return u({id:e.id,requestFn:f,sortNum:e.requestSort}),{style:t,formatFn:r,columnStyle:o,contrastClass:i,dataSource:n,loading:s,click:p}}}),Cd="",kd="",tc=e=>(a.pushScopeId("data-v-7aa27677"),e=e(),a.popScopeId(),e),nc={key:0,class:"title"},oc={key:0,class:"ranking"},ac={key:1,class:"ecan-list-content"},rc={key:0,class:"ranking"},ic=tc(()=>a.createElementVNode("div",{class:"icon"},null,-1)),sc={class:"sort"},lc={key:2,class:"empty"};function cc(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",nc,[(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",oc)):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",ac,[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",rc,[ic,a.createElementVNode("div",sc," 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",lc," 暂无数据 "))]),_:1},8,["loading"])],4)}const e0=se(ae(ec,[["render",cc],["__scopeId","data-v-7aa27677"]])),po={...me,name:"占比图",keyName:"占比图",type:"ecanProportion",strokeType:"circle",width:"200px",height:"200px",strokeColor:"#4091f7",strokeLinecap:"round",trailColor:"#f5f5f5",data:{percent:.3},text:"{percent}%",fontSize:"26px",color:"#4091f7",strokeWidth:6,fontWeight:400,strokeTextWidth:"100%",lineHeight:"26px",decimalFormat:!0,variableDefaultValue:"0",strokeTextShow:!0,gradientShow:!0,gradientColor:"",gradientOffset:1,graphicConfig:{}},vo=fe(po),t0=["refreshData","click"],fc=a.defineComponent({name:"EcanProportion",components:{AProgress:ne.Progress,Skeleton:Vt},props:{...vo},setup(e,{expose:n}){const{pageMode:t}=a.inject(ke,{pageMode:"normal"}),o=ue(e),r=a.computed(()=>{const g=e.width;return parseFloat(g)}),i=a.ref({});a.watch(()=>e.data,()=>{(e.dataType==="static"||a.unref(t)==="design")&&(i.value=e.data)},{immediate:!0,deep:!0});const l=a.computed(()=>{const g=a.unref(i),v=+e.variableDefaultValue;if(g==null)return isNaN(v)?0:v;const k=e.text.match(/\{.+\}/g)||[];let x;const A=new Set(Object.keys(g));for(let T=0;T<k.length;T++){const E=k[T],w=E.slice(1,E.length-1);if(A.has(w)){x=g[w];break}}return typeof x=="number"?x=x*100:typeof x=="string"&&!isNaN(+x)?x=+x*100:isNaN(v)?x=0:x=v*100,e.decimalFormat&&(x=+x.toFixed(2)),x}),s=a.computed(()=>{var A;let g=e.text;if(g==="")return a.unref(l);const v=e.variableDefaultValue,k=a.unref(i),x=g.match(/\{.+\}/g)||[];for(let T=0;T<x.length;T++){const E=x[T];let w=E.slice(1,E.length-1);const _=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,R=E.match(_);for(let F=0;F<(R==null?void 0:R.length);F++){const D=(A=R[F])==null?void 0:A.trim();k[D]!=null&&(w=w.replace(D,k[D]))}let N=w;try{/\(.*\)/g.test(w)&&(N=Qt(w))}catch(F){console.error(F)}typeof+N=="number"&&!isNaN(+N)?(N=+N*100,e.decimalFormat&&(N=N.toFixed(2))):N=v,g=g.replace(E,N+"")}return g}),f=Re(e),c=a.ref(!1),d=async()=>{var g;if(e.dataType==="request")try{c.value=!0;const v=await f();i.value=((g=v==null?void 0:v.data)==null?void 0:g.data)||{}}catch(v){console.error(v)}finally{c.value=!1}},p=(g=[])=>{i.value=g[0]||{}},u=Ve(e),h=async()=>{var g;try{c.value=!0;const v=await u(),{data:k}=(v==null?void 0:v.data)||{};if(k){const{columns:x=[],rows:A=[]}=((g=v==null?void 0:v.data)==null?void 0:g.data)??{};let T=[];if(x.length>0){const E=x[0];T=A.map(w=>({percent:w[E]}))}p(T)}}catch(v){console.error(v)}finally{c.value=!1}},m=()=>{switch(e.dataType){case"indicator":h();break;case"request":d();break}};Ce(e,{refreshData:m}),n({refreshData:m});const S=ye(e)("click",()=>{}),{setRequest:C}=a.inject(Te,{setRequest:({id:g,sortNum:v,requestFn:k})=>{}});typeof C=="function"&&C({id:e.id,requestFn:m,sortNum:e.requestSort});const b=a.computed(()=>{const{gradientShow:g,gradientColor:v,gradientOffset:k,strokeColor:x}=e;let A=x;return g&&v&&(A={"0%":x,[`${k*100}%`]:v}),A});return{style:o,myWidth:r,text:s,myValue:l,loading:c,click:S,customStrokeColor:b}}}),Ad="";function dc(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.customStrokeColor,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,strokeWidth:e.strokeWidth,showInfo:e.strokeTextShow,gapDegree:e.strokeType==="dashboard"?75:0,onClick:e.click},{format:a.withCtx(()=>[e.loading?(a.openBlock(),a.createBlock(l,{key:0,loading:e.loading},null,8,["loading"])):e.strokeTextShow?(a.openBlock(),a.createElementBlock("div",{key:1,class:"format",style:a.normalizeStyle({width:e.strokeTextWidth,fontSize:e.fontSize,color:e.color,fontWeight:e.fontWeight,lineHeight:e.lineHeight})},a.toDisplayString(e.text),5)):a.createCommentVNode("",!0)]),_:1},8,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","showInfo","gapDegree","onClick"])],4)}const n0=se(ae(fc,[["render",dc],["__scopeId","data-v-8f9c8d54"]])),bo={...me,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字"},So=fe(bo),o0=["inputChange","inputBlur"],uc=a.defineComponent({name:"EcanInput",components:{AInput:ne.Input},props:{...So},setup(e){const n=ue(e),t=a.ref("");a.watch(()=>e.value,c=>{t.value=c},{immediate:!0});const{getGlobalModel:o,setGlobalModel:r}=a.inject(we,{getGlobalModel:c=>{},setGlobalModel:(c,d)=>{}});r(e.id,{type:e.type,value:t});const i=()=>{const c=o(e.id);r(e.id,{...c,RECORD:t})},l=ye(e),s=Ue.debounce(l("inputChange",()=>{i()}),300),f=l("inputBlur",()=>{});return{style:n,myValue:t,inputBlur:f,inputChange:s}}}),Ed="";function hc(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 a0=se(ae(uc,[["render",hc]])),wo={...me,height:"33px",width:"130px",id:"",left:"0px",top:"0px",name:"日期选择器",keyName:"日期选择器",rotate:"",type:"ecanDatePicker",value:"",picker:"date",format:"YYYY-MM-DD",showTime:!1,useCurrentTime:!0,operate:null},Co=fe(wo),r0=["dateChange"],mc=a.defineComponent({name:"EcanDatePicker",props:{...Co},components:{ADatePicker:ne.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=Ne(be(f)):c&&(p=Ne()),d&&p){const{type:u,value:h,mode:m}=d;switch(u){case"add":p=p.add(h,m);break;case"minus":p=p.subtract(h,m)}}o.value=p},{deep:!0,immediate:!0});const{setGlobalModel:r}=a.inject(we,{setGlobalModel:(f,c)=>{}});r(e.id,{type:e.type,format:e.format,value:o});const l=ye(e)("dateChange",()=>{}),s=()=>{a.unref(o)&&l()};return Ce(e,{dateChange:l}),{style:n,getPopupContainer:t,myValue:o,locale:ha,change:s}}}),Dd="";function gc(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 i0=se(ae(mc,[["render",gc]])),ko={...me,name:"日期范围选择器",keyName:"日期范围选择器",type:"ecanRangePicker",width:"250px",height:"35px",picker:"date",format:"YYYY-MM-DD",startTime:"",endTime:"",useCurrentTime:!0,interval:1,intervalUnit:"year",operate:null,limitStartTime:"",limitEndTime:""},_o=fe(ko),s0=["dateChange"],xc=a.defineComponent({name:"EcanRangePicker",components:{ARangePicker:ne.RangePicker},props:{..._o},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],([S,C,b,g,v,k])=>{let x=null,A=null;if(b&&(x=Ne().subtract(g,v),A=Ne()),S&&(x=Ne(be(S))),C&&(A=Ne(be(C))),k){const{type:T,value:E,mode:w}=k;switch(T){case"add":x=x&&x.add(E,w),A=A&&A.add(E,w);break;case"minus":x=x&&x.subtract(E,w),A=A&&A.subtract(E,w)}}o.value=[x,A]},{immediate:!0});let r=a.unref(o)[0],i=a.unref(o)[1];const l=S=>{Array.isArray(S)?(r=S[0],i=S[1]):(r=null,i=null)},s=S=>{let C=!1,{limitStartTime:b,limitEndTime:g}=e;const v={startTime:`${r||""}`,endTime:`${i||""}`};return b=be(b,{codeData:v}),g=be(g,{codeData:v}),b&&g?C=!(Ne(b)<S&&S<Ne(g)):b?C=Ne(b)>S:g&&(C=Ne(g)<S),C},{setGlobalModel:f}=a.inject(we,{setGlobalModel:(S,C)=>{}}),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=ye(e);let u=!1;const h=p("dateChange",()=>{}),m=S=>{const C=a.unref(o),b=C&&C[0]&&C[1];S===!1&&u===!0&&b&&(h(),u=!1)},y=()=>{u=!0};return Ce(e,{dateChange:h}),{style:n,getPopupContainer:t,locale:ha,dateChange:h,myValue:o,disabledDate:s,calendarChange:l,openChange:m,change:y}}}),Id="",Ld="";function yc(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 l0=se(ae(xc,[["render",yc],["__scopeId","data-v-ddb2a0fe"]])),Ao={...me,width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton",text:"按钮",mode:"default",danger:!1,shape:"default",href:"",target:"self",fontSize:"14px",fontWeight:400},To=fe(Ao),c0=["click"],pc=a.defineComponent({name:"EcanButton",components:{AButton:ne.Button},props:{...To},setup(e){const n=ue(e),o=ye(e)("click",()=>{const f=a.unref(l);f&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:f},"*")}),r=a.computed(()=>({height:e.height})),i=a.computed(()=>be(e.text)),l=a.computed(()=>be(e.href)||null),s=a.computed(()=>{const f=e.target;if(!(f==="event"||a.unref(l)==null))return{self:"_self",blank:"_blank"}[f]});return{style:n,click:o,myText:i,myHref:l,myTarget:s,buttonStyle:r}}}),Nd="";function vc(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,style:a.normalizeStyle(e.buttonStyle)},{default:a.withCtx(()=>[a.createElementVNode("span",{style:a.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},a.toDisplayString(e.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target","style"])],4)}const f0=se(ae(pc,[["render",vc]])),Eo={...me,width:"240px",id:"",left:"0px",top:"0px",name:"复选框",keyName:"复选框",rotate:"",type:"ecanCheckbox",value:[],data:[{label:"选项一",value:"1",checked:!0},{label:"选项二",value:"2",checked:!0},{label:"选项三",value:"3"}],graphicConfig:{}},Bo=fe(Eo),d0=["checkboxChange"],bc=a.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:ne.CheckboxGroup},props:{...Bo},setup(e,{expose:n}){const t=ue(e),o=a.ref([]),r=a.ref([]),i=S=>{const C=e.value;let b=[];S.forEach(g=>{g.checked&&b.push(g.value)}),typeof C=="string"&&C!==""?b=b.concat(C.split(",")):Array.isArray(C)&&(b=b.concat(C)),o.value=S,r.value=b};a.watch(()=>[e.data,e.value],([S])=>{i(S)},{immediate:!0,deep:!0});const l=Re(e),s=async()=>{var b,g;if(e.dataType!=="request")return;const S=await l(),C=((g=(b=S==null?void 0:S.data)==null?void 0:b.data)==null?void 0:g.rows)||[];i(C)},{getGlobalModel:f,setGlobalModel:c}=a.inject(we,{getGlobalModel:S=>{},setGlobalModel:(S,C)=>{}});c(e.id,{type:e.type,value:r});const p=ye(e)("checkboxChange",()=>{const S=f(e.id);c(e.id,{...S,RECORD:r})}),u=Ve(e),h=async()=>{var S;try{const C=await u(),{data:b}=(C==null?void 0:C.data)||{};if(b){const{columns:g=[],rows:v=[]}=((S=C==null?void 0:C.data)==null?void 0:S.data)??{};let k=[];if(g.length>1){const x=g[0],A=g[1];k=v.map(T=>({label:T[x],value:T[A]}))}i(k)}}catch(C){console.error(C)}},m=()=>{switch(e.dataType){case"indicator":h();break;case"request":s();break}},{setRequest:y}=a.inject(Te,{setRequest:({id:S,sortNum:C,requestFn:b})=>{}});return typeof y=="function"&&y({id:e.id,requestFn:m,sortNum:e.requestSort}),n({refreshData:m}),{myOption:o,style:t,myValue:r,checkboxChange:p}}}),Md="";function Sc(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 u0=se(ae(bc,[["render",Sc]])),Do={...me,name:"下拉框选择器",keyName:"下拉框选择器",width:"120px",height:"33px",type:"ecanSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,graphicConfig:{}},Ro=fe(Do),h0=["selectChange","refreshData"],wc=a.defineComponent({name:"EcanSelect",components:{ASelect:ne.Select},props:{...Ro},setup(e,{expose:n}){const t=ue(e),o=()=>document.getElementById("ProviderConfig")||document.body,r=Re(e),i=a.ref(e.data||[]),l=a.ref();a.watch(()=>[e.value,e.mode,e.selectFirstOption],()=>{const{mode:k,selectFirstOption:x,value:A}=e;k==="multiple"||k==="tags"||k==="combobox"?A?l.value=A.split(","):x&&(l.value=[a.unref(i)[0]]):A?l.value=A:x&&(l.value=a.unref(i)[0])},{immediate:!0});const s=e.dataFieldNames,f=(k,x)=>{const A=s.label,T=s.value;let E;const w=x[A],_=x[T];return w!=null?E=w:_!=null&&(E=_),(E==null?void 0:E.toLowerCase().indexOf(k==null?void 0:k.toLowerCase()))>=0},c=k=>{const{label:x,value:A,options:T}=e.dataFieldNames;if(T&&Array.isArray(k))if(k.some(E=>T in E)){const E={},w=[];k.forEach(_=>{E[_[T]]||(E[_[T]]=[]),E[_[T]].push({[x]:_[x],[A]:_[A]})});for(const _ in E)w.push({[x]:_,[T]:E[_]});return w}else return k;else if(!T)return k},d=a.ref(!1),p=async()=>{var k,x;if(e.dataType==="request"){d.value=!0;try{const A=await r();if(i.value=c(((x=(k=A==null?void 0:A.data)==null?void 0:k.data)==null?void 0:x.rows)||[]),e.selectFirstOption){let T=a.unref(i)[0];if(s.options){const E=T[s.options];E&&E.length&&(T=E[0])}l.value=T[s.value]}}catch(A){console.error(A)}finally{d.value=!1}}},{getGlobalModel:u,setGlobalModel:h}=a.inject(we,{getGlobalModel:k=>{},setGlobalModel:(k,x)=>{}});h(e.id,{type:e.type,value:l});const y=ye(e)("selectChange",()=>{const k=e.id,x=u(k);h(k,{...x,RECORD:l})}),S=(k=[])=>{if(i.value=c(k),e.selectFirstOption){let x=a.unref(i)[0];if(s.options){const A=x[s.options];A&&A.length&&(x=A[0])}l.value=x[s.value]}},C=Ve(e),b=async()=>{var k;try{d.value=!0;const x=await C(),{data:A}=(x==null?void 0:x.data)||{},T=s.label,E=s.value;if(A){const{columns:w=[],rows:_=[]}=((k=x==null?void 0:x.data)==null?void 0:k.data)??{};let R=[];if(w.length>1){const N=w[0],F=w[1];R=_.map(D=>({[T]:D[N],[E]:D[F]}))}S(R)}}catch(x){console.error(x)}finally{d.value=!1}},g=()=>{switch(e.dataType){case"indicator":b();break;case"request":p();break}};Ce(e,{selectChange:y,refreshData:g});const{setRequest:v}=a.inject(Te,{setRequest:({id:k,sortNum:x,requestFn:A})=>{}});return typeof v=="function"&&v({id:e.id,requestFn:g,sortNum:e.requestSort}),n({refreshData:g}),{style:t,getPopupContainer:o,myValue:l,selectChange:y,options:i,filterOption:f,loading:d}}}),Fd="",Vd="";function Cc(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 m0=se(ae(wc,[["render",Cc],["__scopeId","data-v-a267b2f2"]])),Io={...me,name:"树形下拉框选择器",keyName:"树形下拉框选择器",width:"120px",height:"33px",type:"ecanTreeSelect",multiple:!1,data:[{label:"选项一",value:"1",children:[{label:"子选项一",value:"1-1"},{label:"子选项二",value:"1-2"}]},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:"",dataFieldNames:{label:"label",value:"value",children:"children"},maxTagCount:3,placeholder:"请选择",treeCheckable:!1,treeCheckStrictly:!1,selectFirstOption:!1},Lo=fe(Io),g0=["selectChange","refreshData"],kc={name:"EcanTreeSelect",components:{ATreeSelect:ne.TreeSelect},props:{...Lo},setup(e){const n=ue(e),t=a.ref(e.data),o=(h,m)=>{const y=e.dataFieldNames,S=y.label,C=y.value;let b;const g=m[S],v=m[C];return g!=null?b=g:v!=null&&(b=v),(b==null?void 0:b.toLowerCase().indexOf(h==null?void 0:h.toLowerCase()))>=0},r=a.ref();a.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:h,value:m,selectFirstOption:y}=e;h?m?r.value=m.split(","):y&&(r.value=[a.unref(t)[0]]):m?r.value=m:y&&(r.value=a.unref(t)[0])},{immediate:!0});const i=a.ref(!1),l=Re(e),s=async()=>{var h,m;if(e.dataType==="request"){i.value=!0;try{const y=await l();t.value=((m=(h=y==null?void 0:y.data)==null?void 0:h.data)==null?void 0:m.rows)||[];const S=a.unref(t)[0];e.value===""&&S!=null&&(r.value=S[e.dataFieldNames.value])}catch(y){console.error(y)}finally{i.value=!1}}},{getGlobalModel:f,setGlobalModel:c}=a.inject(we,{getGlobalModel:h=>{},setGlobalModel:(h,m)=>{}});c(e.id,{type:e.type,value:r});const p=ye(e)("selectChange",()=>{const h=e.id,m=f(h);c(h,{...m,RECORD:r})});Ce(e,{selectChange:p,refreshData:s});const{setRequest:u}=a.inject(Te,{setRequest:({id:h,sortNum:m,requestFn:y})=>{}});return u({id:e.id,requestFn:s,sortNum:e.reque}),{style:n,treeData:t,filterTreeNode:o,myValue:r,loading:i,selectChange:p}}},Hd="",$d="";function _c(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 x0=se(ae(kc,[["render",_c],["__scopeId","data-v-37236421"]])),Oo={...me,width:"260px",height:"32px",id:"",left:"0px",top:"0px",name:"单选框",keyName:"单选框",rotate:"",type:"ecanRadio",value:[],data:[{label:"选项一",value:"1",checked:!0},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],optionType:"default",graphicConfig:{}},No=fe(Oo),y0=["checkboxChange"],zo=a.defineComponent({name:"EcanRadio",components:{ARadioGroup:ne.RadioGroup},props:{...No},setup(e,{expose:n}){const t=ue(e),o=a.ref([]),r=a.ref(""),i=C=>{const b=e.value;let g=[];C.forEach(v=>{v.checked&&g.push(v.value)}),typeof b=="string"&&b!==""?g=g.concat(b.split(",")):Array.isArray(b)&&(g=g.concat(b)),o.value=C,r.value=g[0]||""},l=a.computed(()=>e.height||"32px");a.watch(()=>[e.data,e.value],([C])=>{i(C)},{immediate:!0,deep:!0});const s=Re(e),f=async()=>{var g,v;if(e.dataType!=="request")return;const C=await s(),b=((v=(g=C==null?void 0:C.data)==null?void 0:g.data)==null?void 0:v.rows)||[];i(b)},{getGlobalModel:c,setGlobalModel:d}=a.inject(we,{getGlobalModel:C=>{},setGlobalModel:(C,b)=>{}});d(e.id,{type:e.type,value:r});const u=ye(e)("checkboxChange",()=>{const C=c(e.id);d(e.id,{...C,RECORD:r})}),h=Ve(e),m=async()=>{var C;try{const b=await h(),{data:g}=(b==null?void 0:b.data)||{};if(g){const{columns:v=[],rows:k=[]}=((C=b==null?void 0:b.data)==null?void 0:C.data)??{};let x=[];if(v.length>1){const A=v[0],T=v[1];x=k.map(E=>({label:E[A],value:E[T]}))}i(x)}}catch(b){console.error(b)}},y=()=>{switch(e.dataType){case"indicator":m();break;case"request":f();break}},{setRequest:S}=a.inject(Te,{setRequest:({id:C,sortNum:b,requestFn:g})=>{}});return typeof S=="function"&&S({id:e.id,requestFn:y,sortNum:e.requestSort}),n({refreshData:y}),{myOption:o,style:t,myValue:r,rHeight:l,checkboxChange:u}}}),p0=()=>{a.useCssVars(e=>({"34e0447f":e.rHeight}))},v0=zo.setup;zo.setup=v0?(e,n)=>(p0(),v0(e,n)):p0;const Ud="";function Ac(e,n,t,o,r,i){const l=a.resolveComponent("a-radio-group");return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["ecan-radio",e.optionType]),style:a.normalizeStyle(e.style)},[a.createVNode(l,{value:e.myValue,"onUpdate:value":n[0]||(n[0]=s=>e.myValue=s),options:e.myOption,"option-type":e.optionType,onChange:e.checkboxChange},null,8,["value","options","option-type","onChange"])],6)}const b0=se(ae(zo,[["render",Ac]])),Mo={...me,id:"",name:"饼图",keyName:"饼图",type:"ecanPie",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234}],titleText:"",titleSubtext:"",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:"当前无说明信息",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendFormatter:"{name}"},Po=fe(Mo),S0=["click","refreshData","resetRecord"],Et=async e=>{var f;const n=await at.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)},Fo={id:"",type:"ecanModal",title:"",titleFontSize:"14px",titleColor:"",width:"1000px",height:"800px",originalWidth:"1920px",originalHeight:"1080px",backgroundColor:"#fff",backgroundImage:"",backgroundSize:"100% 100%",keyName:"弹窗",componentList:[],fullModal:!1,destroyOnClose:!0,position:"default"},Vo=fe(Fo),w0=["showModal"],Tc=a.defineComponent({name:"EcanModal",components:{AModal:ne.Modal,CloseOutlined:ps},props:{...Vo},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({}),h=ue(e),m=a.ref({}),y=a.ref(!1),S=a.ref();let C;const b=()=>{d.value=parseFloat(r)/parseFloat(l);const O=parseFloat(i)/parseFloat(s),z=document.body.offsetWidth,B=document.body.offsetHeight;c.value=z*a.unref(d),p.value=B*O,f.value=`${a.unref(d)*100}%`,u.value={width:`${a.unref(c)}px`,height:`${a.unref(p)}px`},m.value={...a.unref(h),backgroundImage:ht(e.backgroundImage,!0),transform:`scale(${a.unref(c)/parseFloat(r)},${a.unref(p)/parseFloat(i)})`,width:r,height:i}},g=Ue.debounce(()=>{b()},100),v=()=>{const O=window.MutationObserver;C=new O(g),C.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},k=()=>{C&&(C.disconnect(),C.takeRecords(),C=null)},x=a.ref(!1),{touchRequest:A}=a.inject(Te,{touchRequest:()=>{}}),T=()=>{x.value=!0},E=()=>{n("close"),x.value=!1},w=()=>{E()},_=()=>{E()},{setModalModel:R,pushUseModalIds:N,popUseModalIds:F}=a.inject(Ma,{pushUseModalIds:O=>{},popUseModalIds:()=>{},setModalModel:(O,z)=>{}}),D=()=>{const O=e.id;let z=[];const B=e.componentList;Array.isArray(B)&&(z=B.map(L=>L.id),R(O,[...new Set(z)]))};a.watch(()=>x.value,async O=>{O?(y.value=!1,N(e.id),D(),await a.nextTick(()=>{b(),window.addEventListener("resize",g),v(),y.value=!0}),A()):(F(),window.removeEventListener("resize",g),k())});const M=a.computed(()=>a.unref(d)>=1),H=a.computed(()=>e.fullModal),I=a.computed(()=>{let O="ecan-modal";return a.unref(M)&&(O+=" ecan-full-width-modal"),a.unref(H)&&(O+=" ecan-full-modal"),O});return Ce(e,{showModal:T}),{modalRef:S,containStyle:u,contentStyle:m,getContainer:t,modalStyle:o,modalWith:f,isFullModal:H,style:h,visible:x,showModal:T,onOk:w,onCancel:_,isFullWidth:M,wrapClassName:I,ready:y}}}),Wd="",Zd="",Ec={key:0};function Bc(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",Ec,[(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 it=se(ae(Tc,[["render",Bc],["__scopeId","data-v-4234f235"]]));He.use([ct.CanvasRenderer,Ge.PieChart,he.TitleComponent,he.ToolboxComponent,he.TooltipComponent,he.LegendComponent]);const Dc=a.defineComponent({name:"EcanPie",props:{...Po},components:{Spin:yt,Echarts:Qe,EcanModal:it},setup(e,{expose:n}){const t=a.ref(!1),o=ue(e),r=a.ref([]),i=a.ref(),l=a.ref({}),s=a.computed(()=>{let{data:E=[]}=a.unref(r)[0]||{};if(Array.isArray(e.colors)){const w=e.isUseLabelColors,_=e.colors;E=E.map((R,N)=>({label:w?{color:_[N]}:{},...R}))}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(){Et(e.toolboxDownloadUrl)}},myDataZoom:{show:t.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var w;t.value=!0,(w=i.value)==null||w.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ne.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:w=>{const{marker:_,seriesName:R,name:N,value:F,percent:D,data:M}=w||{};return be(e.tooltipFormatter,{textData:{marker:_,name:N,value:F,percent:D,a:R,b:N,c:F,d:D,...M}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor}},legend:a.unref(l),color:e.colors,series:[{data:E,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?ft:e.labelFontSize,position:e.labelPosition,formatter:Pl(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:{}}}]}}),f=()=>{l.value={show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,align:"left",textStyle:{color:e.legendTextStyleColor,fontSize:t.value?ft:e.labelFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,formatter:E=>{const{legendFormatter:w}=e;let _=w.replace(/{name}/g,E);if(w.includes("{value}")){const{data:R}=r.value[0]||{};if(R){const N=R.find(F=>F.name===E);N&&(_=_.replace(/{value}/g,N.value))}}return _}}},c=()=>{t.value=!1},{getGlobalModel:d,setGlobalModel:p}=a.inject(we,{getGlobalModel:E=>{},setGlobalModel:(E,w)=>{}}),{pageMode:u}=a.inject(ke,{pageMode:"normal"}),h=(E=[],w)=>{const{dataset:_}=pt(E,w);r.value=_},m=(E=[],w)=>{const _=pt(E,w);r.value=_.dataset};a.watch(()=>e.data,E=>{(e.dataType==="static"||a.unref(u)==="design")&&h(E)},{immediate:!0,deep:!0}),a.watch(()=>[e.legendShow,e.legendOrient,e.legendTop,e.legendLeft,e.legendTextStyleColor,e.labelFontSize,e.legendItemHeight,e.legendItemWidth,e.legendItemGap,e.legendFormatter],()=>{f()},{immediate:!0});const y=a.ref(!1),S=Re(e),C=async()=>{var E,w;if(e.dataType==="request")try{y.value=!0;const _=await S();h((w=(E=_==null?void 0:_.data)==null?void 0:E.data)==null?void 0:w.rows,e.valueTypeDataFieldNames)}catch(_){console.error(_)}finally{y.value=!1}},g=ye(e)("click",E=>{const w=d(e.id);p(e.id,{...w,RECORD:E==null?void 0:E.data})}),v=Ve(e),k=async()=>{var E;try{y.value=!0;const w=await v(),{data:_}=w.data||{};if(_){const{columns:R=[],rows:N=[]}=((E=w==null?void 0:w.data)==null?void 0:E.data)??{};let F=[];if(R.length>0){const D=R[0],M=R[1];F=N.map(H=>({name:H[D],value:H[M]}))}m(F)}}catch(w){console.error(w)}finally{y.value=!1}},x=()=>{switch(e.dataType){case"indicator":k();break;case"request":C();break}};Ce(e,{resetRecord:()=>{const E=e.id,w=d(E);p(E,{...w,RECORD:""})},refreshData:x,click:g}),n({refreshData:x});const{setRequest:T}=a.inject(Te,{setRequest:E=>{}});return typeof T=="function"&&T({id:e.id,requestFn:x,sortNum:e.requestSort}),{option:s,style:o,click:g,onClose:c,loading:y,ecanModal:i}}}),Yd="";function Rc(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 C0=se(ae(Dc,[["render",Rc]])),qo={...me,id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"}],titleText:"",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0},Ho=fe(qo),k0=["click","refreshData","resetRecord"];He.use([ct.CanvasRenderer,Ge.LineChart,he.ToolboxComponent,he.TitleComponent,he.LegendComponent]);const Ic=a.defineComponent({name:"EcanLine",props:{...Ho},components:{Spin:yt,Echarts:Qe,EcanModal:it},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?ft:12),c=a.ref({});let d;const p=a.ref([]),u=a.computed(()=>{const F=e.xAxisLabelFormatter,D=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Et(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 M;o.value=!0,(M=s.value)==null||M.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ne.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:M=>{var z;const H=M.length;let I="",O=e.tooltipFormatter;d=(z=M[0])==null?void 0:z.data,O===""&&(O="{marker} {a} {c}");for(let B=0;B<H;B++){const{marker:L,seriesName:P,name:q,value:G,data:Y}=M[B]||{};B===0&&(I+=`${q}<br/>`),I+=be(O,{textData:{marker:L,name:q,value:G,a:P,b:q,c:G,...Y}},{useNewline:!0,useSpace:!0}),I+="<br/>"}return I}},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:a.unref(l).map(M=>{let H={};return M&&typeof M=="object"?H={...M,textStyle:{fontSize:f.value}}:H={value:M,textStyle:{fontSize:f.value}},H}),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(M){return mt(F,M)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:f.value,color:e.yAxisLabelColor,formatter(M){return mt(D,M)}},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},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:a.unref(p).map(M=>({name:M.name,icon:e.legendType}))},series:a.unref(i)}}),h=()=>{o.value=!1},{getGlobalModel:m,setGlobalModel:y}=a.inject(we,{getGlobalModel:F=>{},setGlobalModel:(F,D)=>{}}),{pageMode:S}=a.inject(ke,{pageMode:"normal"}),C=(F=[],D=!1)=>{let M;if(e.dataFieldConfigType==="key"){const z=D?e.keyTypeDataFieldNames:null;M=rt(F,z)}else if(e.dataFieldConfigType==="value"){const z=D?e.valueTypeDataFieldNames:null;M=pt(F,z)}l.value=M.dimensions,p.value=M.dataset;const H=M.dataset,I=[],O=H.length;for(let z=0;z<O;z++){const B={};e.shadowColor&&(B.shadowColor=e.shadowColor,B.shadowBlur=e.shadowBlur,B.shadowOffsetY=e.shadowOffsetY,B.shadowOffsetX=e.shadowOffsetX),I.push({type:"line",...H[z],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[z]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[z],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...B}})}i.value=I},b=(F=[],D,M=!1)=>{const I=rt(F,M?D:null);l.value=I.dimensions,p.value=I.dataset;const O=I.dataset,z=[],B=O.length;for(let L=0;L<B;L++){const P={};e.shadowColor&&(P.shadowColor=e.shadowColor,P.shadowBlur=e.shadowBlur,P.shadowOffsetY=e.shadowOffsetY,P.shadowOffsetX=e.shadowOffsetX),z.push({type:"line",...O[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,...P}})}i.value=z};a.watch(()=>[e.data,e.symbolSize,e.smooth,e.lineStyleWidth,e.areaStyleOpacity,e.areaGradientShow,e.areaGradientColor,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX],([F])=>{(e.dataType==="static"||a.unref(S)==="design")&&C(F)},{immediate:!0,deep:!0});const g=a.ref(!1),v=Re(e),k=async()=>{var F,D;if(e.dataType==="request")try{g.value=!0;const M=await v();C((D=(F=M==null?void 0:M.data)==null?void 0:F.data)==null?void 0:D.rows,!0)}catch(M){console.error(M)}finally{g.value=!1}},A=ye(e)("click",F=>{const D=m(e.id);y(e.id,{...D,RECORD:e.tooltipShow?d:F.data})}),T=F=>{t.value.chart.containPixel("grid",[F.offsetX,F.offsetY])&&A()};e.tooltipShow?c.value["zr:click"]=T:c.value.click=A;const E=Ve(e),w=async()=>{var F;try{g.value=!0;const D=await E(),{columns:M=[],rows:H=[]}=((F=D==null?void 0:D.data)==null?void 0:F.data)??{};let I;M.length>0&&(I={name:M[0],types:M.slice(1).map(O=>({label:O,value:O}))}),b(H,I,!0)}catch(D){console.error(D)}finally{g.value=!1}},_=()=>{switch(e.dataType){case"indicator":w();break;case"request":k();break}};Ce(e,{refreshData:_,resetRecord:()=>{const F=e.id,D=m(F);y(F,{...D,RECORD:""})},click:A});const{setRequest:N}=a.inject(Te,{setRequest:F=>{}});return typeof N=="function"&&N({id:e.id,requestFn:_,sortNum:e.requestSort}),n({refreshData:_}),{option:u,style:r,click:A,loading:g,onClose:h,ecanModal:s,eventObj:c,echartRef:t}}}),Jd="";function Lc(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 _0=se(ae(Ic,[["render",Lc]])),$o={...me,id:"",name:"柱状图",keyName:"柱状图",type:"ecanBar",width:"400px",height:"400px",top:"",left:"",rotate:"",xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisLineAlwaysDisplay:!1,data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:310,type:"类型一"},{name:"名称三",value:310,type:"类型一"}],titleText:"",titleSubtext:"",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:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,barBorderRadius:"",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,showBarBackground:!1,legendType:""},jo=fe($o),A0=["refreshData","click","resetRecord"];He.use([ct.CanvasRenderer,Ge.BarChart,he.TitleComponent,he.LegendComponent,he.DatasetComponent,he.ToolboxComponent]);const Oc=a.defineComponent({name:"EcanBar",props:{...jo},components:{Spin:yt,Echarts:Qe,EcanModal:it,AModal:ne.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?ft:12),p=a.computed(()=>{const{gradientShow:I,gradientColors:O,gradientOffset:z,barBorderRadius:B}=e,L=a.unref(f),P=L.length,q=[];for(let G=0;G<P;G++){const Y={...L[G],type:"bar",barWidth:e.barWidth,showBackground:e.showBarBackground};if(e.isStack&&(Y.stack="stack"),Y.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor},Y.itemStyle={},I&&(Y.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[G]},{offset:z,color:O[G]},{offset:1,color:O[G]}]}}),B){const J=B.split(",");if(J!=null&&J.length){const W=[];for(const de of J){const ve=parseFloat(de);isNaN(ve)||W.push(ve)}Y.itemStyle.borderRadius=W}}q.push(Y)}return q}),u=a.ref([]),h=a.ref(!1),m=a.computed(()=>{const I=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 z=t.value.chart.getOption(),{xAxis:B}=z||{};B&&B.length&&(l.value=B[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(){Et(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 z;o.value=!0,(z=c.value)==null||z.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(){ne.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:z=>{const B=z.length;let L="",P=e.tooltipFormatter;P===""&&(P="{marker} {a} {c}");for(let q=0;q<B;q++){const{marker:G,seriesName:Y,name:J,value:W,data:de}=z[q]||{};q===0&&(L+=`${J}<br/>`),L+=be(P,{textData:{marker:G,name:J,value:W,a:Y,b:J,c:W,...de}},{useNewline:!0,useSpace:!0}),L+="<br/>"}return L},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},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:a.unref(f).map((z,B)=>({name:z.name,itemStyle:{color:e.colors[B]},icon:e.legendType}))},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:a.unref(g),inverse:e.isUseHorizontalAxis?e.xAxisInverse:e.axisInverse,minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor,type:e.xAxisSplitLineType},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(z){return mt(O,z)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?a.unref(u):null,inverse:e.isUseHorizontalAxis?e.axisInverse:e.yAxisInverse,minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:d.value,color:e.yAxisLabelColor,rotate:e.yAxisLabelRotate,width:e.yAxisLabelWidth,overflow:e.yAxisLabelOverflow,formatter(z){return mt(I,z)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},series:a.unref(p)}}),{pageMode:y}=a.inject(ke,{pageMode:"normal"}),S=()=>{o.value=!1},C=(I=[],O=!1)=>{let z={};if(e.dataFieldConfigType==="key"){const B=O?e.keyTypeDataFieldNames:null;z=rt(I,B)}else if(e.dataFieldConfigType==="value"){const B=O?e.valueTypeDataFieldNames:null;z=pt(I,B)}f.value=z.dataset,u.value=z.dimensions},b=(I=[],O,z=!1)=>{const L=rt(I,z?O:null);f.value=L.dataset,u.value=L.dimensions},g=a.computed(()=>a.unref(u).map(I=>{let O={};return I&&typeof I=="object"?O={...I,textStyle:{fontSize:d.value}}:O={value:I,textStyle:{fontSize:d.value}},O}));a.watch(()=>e.data,I=>{(e.dataType==="static"||a.unref(y)==="design")&&C(I)},{immediate:!0,deep:!0});const v=Re(e),k=async()=>{var I,O;try{h.value=!0;const z=await v();C((O=(I=z==null?void 0:z.data)==null?void 0:I.data)==null?void 0:O.rows,!0)}catch(z){console.error(z)}finally{h.value=!1}},x=Ve(e),A=async()=>{var I;try{h.value=!0;const O=await x(),{columns:z=[],rows:B=[]}=((I=O==null?void 0:O.data)==null?void 0:I.data)??{};let L;z.length>0&&(L={name:z[0],types:z.slice(1).map(P=>({label:P,value:P}))}),b(B,L,!0)}catch(O){console.error(O)}finally{h.value=!1}},T=()=>{switch(e.dataType){case"indicator":A();break;case"request":k();break}},E=(I,O)=>!!a.unref(l)[O.value].value.includes(I),w=async()=>{r.value=!1;const I=t.value.chart.getOption();for(let O=0;O<7;O++)await _(I,O)},_=(I,O)=>new Promise(z=>{setTimeout(()=>{const{series:B,color:L,xAxis:P}=I,q=t.value.chart,{splitArea:G={}}=P[0]||{};B.forEach((Y,J)=>{const W=Y.data;let de="";O%2?de=L[J]+"a8":de=L[J],W[i.value].itemStyle={color:de}}),O%2?(G.show=!0,G.areaStyle.color=a.unref(l).map((Y,J)=>J===i.value?"#ff003b26":"")):G.show=!1,q.setOption({series:B,xAxis:P}),z()},200)});n({refreshData:T});const R=ye(e),{getGlobalModel:N,setGlobalModel:F}=a.inject(we,{getGlobalModel:I=>{},setGlobalModel:(I,O)=>{}}),D=R("click",I=>{const O=N(e.id);F(e.id,{...O,RECORD:I.data})}),{setRequest:M}=a.inject(Te,{setRequest:I=>{}});return typeof M=="function"&&M({id:e.id,requestFn:T,sortNum:e.requestSort}),Ce(e,{refreshData:T,click:D,resetRecord:()=>{const I=e.id,O=N(I);F(I,{...O,RECORD:""})}}),{option:m,style:s,refreshData:T,click:D,loading:h,onClose:S,ecanModal:c,echartRef:t,handleLocationOk:w,onFilterOption:E,locationVisible:r,locationValue:i,locationNames:l}}}),e1="",t1="",Nc=e=>(a.pushScopeId("data-v-2c904b1c"),e=e(),a.popScopeId(),e),zc={class:"location-wrap"},Mc=Nc(()=>a.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function Pc(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",zc,[Mc,a.createVNode(d,{value:e.locationValue,"onUpdate:value":n[0]||(n[0]=u=>e.locationValue=u),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.locationNames,(u,h)=>(a.openBlock(),a.createBlock(c,{key:h,value:h},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(u.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const T0=se(ae(Oc,[["render",Pc],["__scopeId","data-v-2c904b1c"]])),Uo={...me,id:"",name:"散点图",keyName:"散点图",type:"ecanScatter",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:233,value:335},{name:556,value:310},{name:56,value:234}],titleText:"",titleSubtext:"",tooltipShow:!0,tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c}",legendShow:!1,legendOrient:"horizontal",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:10,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelColor:"#333",xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelFormatter:"{value}",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",dataFieldNames:{name:"name",value:"value"},gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",yAxisLabelShow:!0,yAxisSplitLineType:"solid"},Go=fe(Uo),E0=["click","refreshData","resetRecord"];He.use([ct.CanvasRenderer,Ge.ScatterChart,he.ToolboxComponent,he.TitleComponent,he.TooltipComponent,he.LegendComponent]);const Fc=a.defineComponent({name:"EcanScatter",props:{...Go},components:{Spin:yt,Echarts:Qe,EcanModal:it},setup(e){const n=a.ref(!1),t=ue(e),o=a.ref([]),r=a.ref(),i=a.computed(()=>n.value?ft:12),l=a.computed(()=>{const v=e.xAxisLabelFormatter,k=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Et(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 x;n.value=!0,(x=r.value)==null||x.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ne.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(x){return mt(v,x)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:i.value,color:e.yAxisLabelColor,formatter(x){return mt(k,x)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter(x){var R;const{marker:A,seriesName:T}=x,E=((R=x==null?void 0:x.data)==null?void 0:R.record)??{},{name:w,value:_}=E;return be(e.tooltipFormatter,{textData:{marker:A,seriesName:T,a:T,b:w,c:_,...E}})},axisPointer:{type:"cross"},textStyle:{fontSize:i.value}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{fontSize:i.value}},series:[{data:a.unref(o),type:"scatter",symbolSize:e.symbolSize}]}}),{getGlobalModel:s,setGlobalModel:f}=a.inject(we,{getGlobalModel:v=>{},setGlobalModel:(v,k)=>{}}),{pageMode:c}=a.inject(ke,{pageMode:"normal"}),d=(v=[],k)=>{const{name:x="name",value:A="value"}=k||{};o.value=v.map(T=>({value:[T[x],T[A]],record:T}))};a.watch(()=>e.data,v=>{(e.dataType==="static"||a.unref(c)==="design")&&d(v)},{immediate:!0,deep:!0});const p=a.ref(!1),u=Re(e),h=async()=>{var v,k;if(e.dataType==="request"){p.value=!0;try{const x=await u();d((k=(v=x==null?void 0:x.data)==null?void 0:v.data)==null?void 0:k.rows,e.dataFieldNames)}catch(x){console.error(x)}finally{p.value=!1}}},m=()=>{n.value=!1},S=ye(e)("click",v=>{const k=e.id,x=s(k);f(k,{...x,RECORD:v==null?void 0:v.data})});Ce(e,{refreshData:()=>{h()},click:S,resetRecord:()=>{const v=e.id,k=s(v);f(v,{...k,RECORD:""})}});const{setRequest:g}=a.inject(Te,{setRequest:v=>{}});return typeof g=="function"&&g({id:e.id,requestFn:h,sortNum:e.requestSort}),{option:l,style:t,click:S,loading:p,onClose:m,ecanModal:r}}}),o1="";function Vc(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 B0=se(ae(Fc,[["render",Vc]])),Wo={...me,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:""},Zo=fe(Wo),qc=a.defineComponent({name:"EcanCustomGraph",props:{...Zo},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:fi}}});function Hc(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 D0=se(ae(qc,[["render",Hc]])),Ko={...me,id:"",name:"组合图表",keyName:"组合图表",type:"ecanComboGraph",width:"400px",height:"400px",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:410,type:"类型一"},{name:"名称三",value:210,type:"类型一"},{name:"名称一",value:510,type:"类型二"},{name:"名称二",value:731,type:"类型二"},{name:"名称三",value:910,type:"类型二"}],titleText:"",titleSubtext:"",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,yAxisSplitLineType:"solid",gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,legendType:"",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0},Yo=fe(Ko),R0=["refreshData","click","resetRecord"];He.use([ct.CanvasRenderer,Ge.BarChart,Ge.LineChart,he.TitleComponent,he.LegendComponent,he.DatasetComponent,he.ToolboxComponent]);const $c=a.defineComponent({name:"EcanComboGraph",props:{...Yo},components:{Spin:yt,Echarts:Qe,EcanModal:it,AModal:ne.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.ref([]),u=a.computed(()=>o.value?ft:12),h=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 I=t.value.chart.getOption(),{xAxis:O}=I||{};O&&O.length&&(l.value=O[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(){Et(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var I;o.value=!0,(I=d.value)==null||I.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ne.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:u.value},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:a.unref(p).map((I,O)=>({name:I.name,itemStyle:{color:e.colors[O]},icon:e.legendType}))},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:I=>{const O=I.length;let z="",B=e.tooltipFormatter;B===""&&(B="{marker} {a} {c}");const L=e.seriesTypes;for(let P=0;P<O;P++){const q=L[P],{tooltipFormatter:G}=q||{},{marker:Y,seriesName:J,name:W,value:de,data:ve}=I[P]||{};P===0&&(z+=`${W}<br/>`),z+=be(G||B,{textData:{marker:Y,name:W,value:de,seriesName:J,a:J,b:W,c:de,...ve}},{useNewline:!0,useSpace:!0}),z+="<br/>"}return z},textStyle:{color:e.tooltipTextStyleColor,fontSize:u.value}},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:a.unref(c).map(I=>{let O={};return I&&typeof I=="object"?O={...I,textStyle:{fontSize:u.value}}:O={value:I,textStyle:{fontSize:u.value}},O}),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:a.unref(b),series:a.unref(f)})),{pageMode:m}=a.inject(ke,{pageMode:"normal"}),y=()=>{o.value=!1},S=(I=[],O=!1)=>{let z;if(e.dataFieldConfigType==="key"){const G=O?e.keyTypeDataFieldNames:null;z=rt(I,G)}else if(e.dataFieldConfigType==="value"){const G=O?e.valueTypeDataFieldNames:null;z=pt(I,G)}c.value=z.dimensions;const B=z.dataset;p.value=z.dataset;const L=[],P=B.length,q=e.seriesTypes;for(let G=0;G<P;G++){const Y=q[G],{type:J,axisIndex:W}=Y||{};let de={type:J,yAxisIndex:W,...B[G]};if(J==="line"){const ve={};e.shadowColor&&(ve.shadowColor=e.shadowColor,ve.shadowBlur=e.shadowBlur,ve.shadowOffsetY=e.shadowOffsetY,ve.shadowOffsetX=e.shadowOffsetX),de={...de,symbolSize:e.symbolSize,smooth:e.smooth,itemStyle:{color:e.colors[G]},areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[G]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[G],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...ve}}}if(J==="bar"){const{gradientShow:ve,gradientColors:st,gradientOffset:Ke}=e,Ae={};if(e.barBorderRadius){const Se=e.barBorderRadius.split(",");if(Se!=null&&Se.length){const je=[];for(const Ye of Se){const Xe=parseFloat(Ye);isNaN(Xe)||je.push(Xe)}Ae.borderRadius=je}}ve&&(Ae.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[G]},{offset:Ke,color:st[G]},{offset:1,color:st[G]}]}),de={...de,barWidth:e.barWidth,itemStyle:Ae}}L.push(de)}f.value=L},C=(I=[],O,z=!1)=>{const L=rt(I,z?O:null);c.value=L.dimensions;const P=L.dataset;p.value=L.dataset;const q=[],G=P.length,Y=e.seriesTypes;for(let J=0;J<G;J++){const W=Y[J];q.push({type:W==null?void 0:W.type,yAxisIndex:W==null?void 0:W.axisIndex,...P[J]})}f.value=q};a.watch(()=>[e.data,e.seriesTypes,e.symbolSize,e.smooth,e.areaStyleOpacity,e.lineStyleWidth,e.barWidth,e.barBorderRadius,e.areaGradientShow,e.areaGradientColor,e.gradientShow,e.gradientColors,e.gradientOffset,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX],([I])=>{(e.dataType==="static"||a.unref(m)==="design")&&S(I)},{immediate:!0,deep:!0});const b=a.computed(()=>{const I=e.yAxis;return I==null?void 0:I.map(O=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:u.value,color:e.yAxisLabelColor,formatter(z){return mt(O.axisLabelFormatter,z)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}}))}),g=a.ref(!1),v=Re(e),k=async()=>{var I,O;if(e.dataType==="request")try{g.value=!0;const z=await v();S((O=(I=z==null?void 0:z.data)==null?void 0:I.data)==null?void 0:O.rows,!0)}catch(z){console.error(z)}finally{g.value=!1}},x=Ve(e),A=async()=>{var I;try{g.value=!0;const O=await x(),{columns:z=[],rows:B=[]}=((I=O==null?void 0:O.data)==null?void 0:I.data)??{};let L;z.length>0&&(L={name:z[0],types:z.slice(1).map(P=>({label:P,value:P}))}),C(B,L,!0)}catch(O){console.error(O)}finally{g.value=!1}},T=()=>{switch(e.dataType){case"indicator":A();break;case"request":k();break}},E=(I,O)=>!!a.unref(l)[O.value].value.includes(I),w=async()=>{r.value=!1;const I=t.value.chart.getOption();for(let O=0;O<7;O++)await _(I,O)},_=(I,O)=>new Promise(z=>{setTimeout(()=>{const{series:B,color:L,xAxis:P}=I,q=t.value.chart,{splitArea:G={}}=P[0]||{};B.forEach((Y,J)=>{const W=Y.data;let de="";O%2?de=L[J]+"a8":de=L[J],W[i.value].itemStyle={color:de}}),O%2?(G.show=!0,G.areaStyle.color=a.unref(l).map((Y,J)=>J===i.value?"#ff003b26":"")):G.show=!1,q.setOption({series:B,xAxis:P}),z()},200)});n({refreshData:T});const R=ye(e),{getGlobalModel:N,setGlobalModel:F}=a.inject(we,{getGlobalModel:I=>{},setGlobalModel:(I,O)=>{}}),D=R("click",I=>{const O=N(e.id);F(e.id,{...O,RECORD:I==null?void 0:I.data})}),{setRequest:M}=a.inject(Te,{setRequest:I=>{}});return typeof M=="function"&&M({id:e.id,requestFn:T,sortNum:e.requestSort}),Ce(e,{resetRecord:()=>{const I=e.id,O=N(I);F(I,{...O,RECORD:""})},refreshData:T,click:D}),{style:s,option:h,click:D,loading:g,onClose:y,ecanModal:d,echartRef:t,handleLocationOk:w,onFilterOption:E,locationVisible:r,locationValue:i,locationNames:l}}}),i1="",s1="",jc=e=>(a.pushScopeId("data-v-470d5d84"),e=e(),a.popScopeId(),e),Uc={class:"location-wrap"},Gc=jc(()=>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",{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",Uc,[Gc,a.createVNode(d,{value:e.locationValue,"onUpdate:value":n[0]||(n[0]=u=>e.locationValue=u),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.locationNames,(u,h)=>(a.openBlock(),a.createBlock(c,{key:h,value:h},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(u.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const I0=se(ae($c,[["render",Wc],["__scopeId","data-v-470d5d84"]])),Xo={...me,id:"",name:"雷达图",keyName:"雷达图",type:"ecanRadar",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"},{name:"名称五",value:435,type:"类型一"},{name:"名称六",value:215,type:"类型一"}],titleText:"",titleSubtext:"",legendShow:!0,legendOrient:"horizontal",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",lineStyleWidth:2,symbolSize:4,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",axisNameColor:""},Jo=fe(Xo),L0=["refreshData","click","resetRecord"];He.use([ct.CanvasRenderer,Ge.RadarChart,he.ToolboxComponent,he.TitleComponent,he.LegendComponent]);const Zc=a.defineComponent({name:"EcanRadar",props:{...Jo},components:{Spin:yt,Echarts:Qe,EcanModal:it},setup(e,{expose:n}){const t=a.ref(),o=a.ref(!1),r=ue(e),i=a.ref([]),l=a.ref(),s=a.computed(()=>o.value?ft:12),f=a.ref({});let c;const d=a.ref([]),p=a.computed(()=>{const D=a.unref(d),M=D.length,H=[];for(let I=0;I<M;I++){const{name:O,data:z=[]}=D[I],B=[{name:O,value:z.map(P=>P.value)}],L={type:"radar",name:O,data:B,areaStyle:{color:e.colors[I],opacity:e.areaStyleOpacity},tooltip:{trigger:"item"},symbolSize:e.symbolSize,lineStyle:{width:e.lineStyleWidth},label:{show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor}};H.push(L)}return H}),u=a.computed(()=>{var O;const D=[],M={},H=a.unref(d),I=H.length;for(let z=0;z<I;z++){const{data:B=[]}=H[z];if(B!=null&&B.length)for(let L=0;L<B.length;L++)M[B[L].name]?M[B[L].name].push(B[L].value):M[B[L].name]=[B[L].value]}for(const z in M)D.push({name:z,max:(O=M[z])!=null&&O.length?Math.max(...M[z])*1.2:0});return D}),h=a.computed(()=>({toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Et(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var D;o.value=!0,(D=l.value)==null||D.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ne.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,left:"center"},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:s.value},show:e.tooltipShow,formatter:D=>{var I;let M="",H=e.tooltipFormatter;c=(I=D[0])==null?void 0:I.data,H===""&&(H="{marker} {a} {c}");for(let O=0;O<a.unref(u).length;O++){const z=a.unref(u)[O],{marker:B,seriesName:L,value:P}=D||{};O===0&&L&&(M+=`${L}<br/>`),M+=be(H,{textData:{marker:B,name:z.name,value:P[O],a:z.name,b:z.name,c:P[O],type:L}},{useNewline:!0,useSpace:!0}),M+="<br/>"}return M}},radar:{indicator:a.unref(u),axisName:{color:e.axisNameColor}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{fontSize:s.value},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:a.unref(d).map(D=>({name:D.name,icon:e.legendType}))},series:a.unref(p)})),m=()=>{o.value=!1},{getGlobalModel:y,setGlobalModel:S}=a.inject(we,{getGlobalModel:D=>{},setGlobalModel:(D,M)=>{}}),{pageMode:C}=a.inject(ke,{pageMode:"normal"}),b=(D=[],M=!1)=>{let H;if(e.dataFieldConfigType==="key"){const I=M?e.keyTypeDataFieldNames:null;H=rt(D,I)}else if(e.dataFieldConfigType==="value"){const I=M?e.valueTypeDataFieldNames:null;H=pt(D,I)}i.value=H.dimensions,d.value=H.dataset},g=(D=[],M,H=!1)=>{const O=rt(D,H?M:null);i.value=O.dimensions,d.value=O.dataset};a.watch(()=>[e.data,e.areaStyleOpacity],([D])=>{(e.dataType==="static"||a.unref(C)==="design")&&b(D)},{immediate:!0,deep:!0});const v=a.ref(!1),k=Re(e),x=async()=>{var D,M;if(e.dataType==="request")try{v.value=!0;const H=await k();b((M=(D=H==null?void 0:H.data)==null?void 0:D.data)==null?void 0:M.rows,!0)}catch(H){console.error(H)}finally{v.value=!1}},T=ye(e)("click",D=>{const M=y(e.id);S(e.id,{...M,RECORD:e.tooltipShow?c:D.data})}),E=D=>{t.value.chart.containPixel("grid",[D.offsetX,D.offsetY])&&T()};e.tooltipShow?f.value["zr:click"]=E:f.value.click=T;const w=Ve(e),_=async()=>{var D;try{v.value=!0;const M=await w(),{columns:H=[],rows:I=[]}=((D=M==null?void 0:M.data)==null?void 0:D.data)??{};let O;H.length>0&&(O={name:H[0],types:H.slice(1).map(z=>({label:z,value:z}))}),g(I,O,!0)}catch(M){console.error(M)}finally{v.value=!1}},R=()=>{switch(e.dataType){case"indicator":_();break;case"request":x();break}};Ce(e,{refreshData:R,resetRecord:()=>{const D=e.id,M=y(D);S(D,{...M,RECORD:""})},click:T});const{setRequest:F}=a.inject(Te,{setRequest:D=>{}});return typeof F=="function"&&F({id:e.id,requestFn:R,sortNum:e.requestSort}),n({refreshData:R}),{option:h,style:r,click:T,loading:v,onClose:m,ecanModal:l,eventObj:f,echartRef:t}}}),c1="";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,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 O0=se(ae(Zc,[["render",Kc]])),Qo={...me,name:"边框",keyName:"边框",type:"ecanBorder",width:"300px",height:"300px",zIndex:0,fontSize:"16px",fontFamily:"",fontWeight:700,title:"标题",mode:"no-title",borderColor:"#eee",borderRadius:"5",borderStyle:"solid",borderWidth:"2px",backgroundColor:"#ffffff",useBorderModify:!1,textShadow:"",data:{},gradientShow:!0,gradientColor:"",gradientOffset:1,gradientAngle:"180deg"},ea=fe(Qo),N0=["click"],Yc=a.defineComponent({name:"EcanBorder",props:{...ea},setup(e){const n=ue(e,["background"]),t=a.computed(()=>{const{gradientShow:d,gradientColor:p,gradientOffset:u,gradientAngle:h,backgroundColor:m}=e;return d&&p?{backgroundImage:`linear-gradient(${h}, ${m}, ${p} ${u*100}%)`}:{}}),{theme:o}=a.inject(ke,{theme:"light"}),r=a.computed(()=>({width:"100%",height:"100%"})),i=a.computed(()=>{const{borderRadius:d}=e,p=[],u={};if(d){const h=d.split(",");for(const m of h)(+m||+m==0)&&p.push(+m+"px")}return p!=null&&p.length&&(u.borderRadius=p.join(" ")),u}),s=ye(e)("click",()=>{}),f=a.ref([]);a.watch(()=>e.data,d=>{f.value=d},{immediate:!0,deep:!0}),Ce(e,{click:s});const{setGlobalModel:c}=a.inject(we,{setGlobalModel:(d,p)=>{}});return c(e.id,{type:e.type,value:f}),{style:n,gradientStyle:t,click:s,borderStyle:r,theme:o,borderRadiusStyle:i}}}),Xc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",Jc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",d1="",$e=e=>(a.pushScopeId("data-v-c1c9f52d"),e=e(),a.popScopeId(),e),Qc=$e(()=>a.createElementVNode("div",{class:"top-left border-item"},null,-1)),ef=$e(()=>a.createElementVNode("div",{class:"top-right border-item"},null,-1)),tf=$e(()=>a.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),nf=$e(()=>a.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),of={class:"title-item-wrapper"},af={class:"title-item"},rf=$e(()=>a.createElementVNode("img",{class:"title-decoration-left",src:Xc},null,-1)),sf={class:"title"},lf=$e(()=>a.createElementVNode("img",{class:"title-decoration-right",src:Jc},null,-1)),cf=$e(()=>a.createElementVNode("div",{class:"top-left border-item"},null,-1)),ff=$e(()=>a.createElementVNode("div",{class:"top-right border-item"},null,-1)),df=$e(()=>a.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),uf=$e(()=>a.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),hf={key:2,class:"left-title"},mf={class:"title"};function gf(e,n,t,o,r,i){return a.openBlock(),a.createElementBlock("div",{class:"ecan-border",style:a.normalizeStyle({...e.style,...e.gradientStyle,...e.borderRadiusStyle}),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},[Qc,ef,tf,nf],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",of,[a.createElementVNode("div",af,[rf,a.createElementVNode("div",sf,a.toDisplayString(e.title),1),lf])]),cf,ff,df,uf],4)):a.createCommentVNode("",!0),e.mode==="left-title"?(a.openBlock(),a.createElementBlock("div",hf,[a.createElementVNode("div",mf,[a.createElementVNode("span",null,a.toDisplayString(e.title),1)])])):a.createCommentVNode("",!0)],4)}const z0=se(ae(Yc,[["render",gf],["__scopeId","data-v-c1c9f52d"]])),ta={...me,tabHorizontalPadding:"0px",type:"ecanTabs",name:"标签页",keyName:"标签页",width:"500px",height:"400px",tabFontSize:"14px",backgroundColor:"#ffffff",activeTabColor:"#1890ff",tabBackgroundImage:"",activeTabBackgroundImage:"",tabColor:"#333",tabBarGutter:"24px",tabFontWeight:400,value:"",activeKey:0,autoSwitch:!1,autoSwitchInterval:5,contains:[],tabFlexDirection:"row",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}],tabAlignItems:"flex-start",tabJustifyContent:"flex-start"},na=fe(ta),M0=["tabChange"],xf=a.defineComponent({name:"EcanTabs",props:{...na},setup(e){const n=ue(e),t=a.ref(0);a.watch(()=>e.activeKey,h=>{t.value=h},{immediate:!0});const{pageMode:o}=a.inject(ke,{pageMode:"normal"});let r=null;const i=()=>{const h=Array.isArray(a.unref(l))?a.unref(l).length-1:0;e.autoSwitch&&h>0&&(r=setInterval(()=>{const m=a.unref(t)+1;m<=h?t.value=m: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,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}=a.inject(we,{setGlobalModel:(h,m)=>{}});d(e.id,{value:s,activeKey:t});const{emitRefreshPage:p}=a.inject(Ot,{emitRefreshPage:()=>{}}),u=c("tabChange",(h,m)=>{m!==a.unref(t)&&(s.value=h,t.value=m,p())});return Ce(e,{tabChange:u}),{style:n,activeKey:t,isActive:f,tabChange:u,myData:l,useImagePath:ht}}}),h1="",yf=["onClick"];function pf(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,yf))),128))],4)],4)}const P0=se(ae(xf,[["render",pf],["__scopeId","data-v-a2045b93"]])),oa={...me,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:""},aa=fe(oa),vf=a.defineComponent({name:"EcanImage",props:{...aa},setup(e){const n=ue(e),t=a.computed(()=>ht(e.imgUrl)),{pageMode:o}=a.inject(ke,{pageMode:"normal"});return{style:n,myImgUrl:t,onClick:()=>{if(!e.linkPage&&!e.href)return;const i=e.linkPage||"",l=qr(a.unref(o),i),s=e.href;let f=s||l;f=be(f);const c=e.target;c&&(c!=="event"?window.open(f,"_"+c):window.parent.postMessage({type:"openPage",url:s},"*"))}}}}),g1="",bf=["src"];function Sf(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,bf)):(a.openBlock(),a.createElementBlock("div",{key:1,class:"image-placeholder",style:a.normalizeStyle(e.style)}," 请上传图片 ",4))}const F0=se(ae(vf,[["render",Sf],["__scopeId","data-v-ef7a7bee"]])),ra={...me,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},ia=fe(ra),wf=a.defineComponent({name:"EcanIframe",props:{...ia},setup(e){const n=ue(e),{contextRequestUrl:t}=a.inject(ke,{contextRequestUrl:""}),o=a.computed(()=>{let r=be(e.link);if(e.linkType==="erd"&&r!=null){let i=a.unref(t);i[i.length-1]==="/"?i+="erdReport":i+="/erdReport",r=`${Rs||i}?_t=0&uid=${r}`}return r});return{style:n,myLink:o}}}),y1="",Cf=["src"];function kf(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,Cf)):(a.openBlock(),a.createElementBlock("div",{key:1,class:"iframe-placeholder",style:a.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const V0=se(ae(wf,[["render",kf],["__scopeId","data-v-19bc100c"]])),sa={...me,zIndex:2,name:"表格",keyName:"表格",type:"ecanTable",width:"400px",height:"240px",bordered:!1,headerFontSize:"14px",fontSize:"14px",isUseSeq:!1,size:"default",headerFontWeight:400,isUseExport:!1,fontWeight:400,columnsFixedNum:0,scrollX:0,paginationShow:!0,isReverse:!1,simple:!1,pageSizeShow:!1,cellBackgroundColor:"",headerBackgroundColor:"",borderColor:"",paginationPosition:"bottomRight",paginationPageSize:10,isUseAction:!1,clickHighlight:!1,filterDropdownHeight:"200px",actionList:[{title:"",href:"",target:"",color:""}],actionColumnWidth:100,columns:[{title:"姓名",dataIndex:"name"},{title:"年龄",dataIndex:"age"},{title:"住址",dataIndex:"address"}],data:[{name:"小明",age:32,address:"福州软件园"},{name:"小红",age:25,address:"福州软件园"}],graphicConfig:{},stripedShow:!1,stripedColor:"#fafafa"},la=fe(sa),q0=["click","refreshData","resetRecord","exportTableData"],ca=a.defineComponent({name:"EcanTable",components:{Skeleton:Vt,AButton:ne.Button,AInput:ne.Input,ACheckboxGroup:ne.CheckboxGroup,ATable:ne.Table,ATableSummary:ne.TableSummary,ATableSummaryRow:ne.TableSummaryRow,ATableSummaryCell:ne.TableSummaryCell},props:{...la},setup(e,{expose:n}){const{pageMode:t}=a.inject(ke,{pageMode:"normal"}),o=a.ref(),r=a.ref(!1),i=ue(e),l=a.ref([]),s=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}}),f=a.computed(()=>{switch(e.size){case"small":return 40;case"middle":return 47;default:return 55}}),c=a.computed(()=>e.scrollX),d=a.computed(()=>{let j=0;const U=parseFloat(e.height)-a.unref(s);return(a.unref(f)*a.unref(l).length>U||a.unref(t)==="design")&&(j=U),j}),p=a.ref([]),u=a.ref([]),h=a.ref([]),m=a.ref(0),y=a.ref(1),S=a.ref(e.paginationPageSize||10),C=a.reactive([]),b=(j=[])=>{if(Array.isArray(j)&&j.length>0){const U=j.length,K=e.columnsFixedNum;for(let X=0;X<U;X++){const Z=j[X];X<K?Z.fixed="left":Z.fixed=!1;const{cellAlign:re="center",cellColor:ie,dataIndex:le,title:ce,tableFilter:ge,headerCellAlign:qe,headerCellColor:De}=Z;ge&&(C.push(le),Z.filterOptionsInputValue="",Z.filterCheckboxGroupValue=[],Z.customFilterDropdown=!0,Z.onFilter=(Ee,Je)=>Je[le].toString().toLowerCase().includes(Ee.toLowerCase())),Z.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:qe||"center",color:De,borderBottomColor:e.borderColor}}),Z.customCell=(Ee,Je)=>({style:{textAlign:re,color:ie,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:a.unref(L)===Je&&e.clickHighlight},onClick:M("click",()=>{const en=e.id,tn=H(en);Ee={dataIndex:le,title:ce,...Ee},I(en,{...tn,RECORD:Ee})})}),Array.isArray(Z.children)&&b(Z.children)}}},g=(j=[])=>(e.isUseSeq&&j.unshift({title:"序号",dataIndex:"SEQ",align:"center"}),e.isUseAction&&j.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),b(j),j);a.watch(S,()=>{y.value=1,q(!1)}),a.watch(o,j=>{r.value=!!j}),a.watch(()=>[e.columns,e.isUseSeq,e.isUseAction,e.columnsFixedNum,e.actionColumnWidth,e.cellBackgroundColor,e.borderColor,e.stripedColor],()=>{p.value=g(Ue.cloneDeep(e.columns))},{immediate:!0,deep:!0}),a.watch(()=>[e.data,e.dataType],([j,U])=>{U==="static"&&(u.value=j)},{immediate:!0});const v=a.ref({}),k=j=>{if(Array.isArray(j)){const U=j.length,K=C,X=K.length,Z={};for(let ie=0;ie<U;ie++){const le=j[ie];for(let ce=0;ce<X;ce++){const ge=K[ce];if(Z[ge])Z[ge].add(le[ge]);else{const qe=new Set;qe.add(le[ge]),Z[ge]=qe}}}const re={};for(const ie in Z)if(Object.prototype.hasOwnProperty.call(Z,ie)){const le=Z[ie],ce=Array.from(le);re[ie]=ce.map(ge=>({label:ge,value:ge}))}v.value=re}};a.watch(()=>[e.isReverse,p.value,u.value],()=>{const j=a.unref(p),U=a.unref(u);if(k(U),e.isReverse){const{columns:K,dataSource:X}=x(Ue.cloneDeep(j),Ue.cloneDeep(U));h.value=K,l.value=X}else h.value=j,l.value=U},{immediate:!0});const x=(j,U)=>{const K=j[0],X=[{title:K.title,dataIndex:"col0",key:"col0",align:"center"}];for(let re=0;re<U.length;re++){const ie=U[re],le="col"+(re+1);X.push({title:ie[K.dataIndex],dataIndex:le,key:le,align:"center"})}const Z=[];for(let re=1;re<j.length;re++){const ie=j[re],le={col0:ie.title};for(let ce=0;ce<U.length;ce++){const ge=U[ce];le[`col${ce+1}`]=ge[ie.dataIndex]}Z.push(le)}return{columns:X,dataSource:Z}},A=a.ref(""),T=Re(e),E=a.ref(!1),w=async(j=!0,U={})=>{var K;try{j&&(E.value=!0),a.unref(A)&&(U.orderCondition=a.unref(A)),e.paginationShow&&(U={pageNum:a.unref(y),pageSize:a.unref(S)||"10",layer:"1",...U});const X=await T(U),{rows:Z=[],total:re=0}=((K=X==null?void 0:X.data)==null?void 0:K.data)||{};if(m.value=re,Array.isArray(Z)&&(u.value=Z),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:ie=[]}=e,le=ie.find(ce=>ce.key==="dataSqlId");if((le==null?void 0:le.value)==="xt_jxzebg"){const ce=Z.filter(ge=>!ge.绩效总额).map(ge=>ge.ORG_NAME);ce!=null&&ce.length&&a.nextTick(()=>{ne.notification.warning({message:"提示",description:`当前时段${ce.join("、")}绩效数据为空`,duration:3})})}}}catch(X){console.error(X)}finally{E.value=!1}},_=({current:j},U,K)=>{if(y.value=j,K&&Object.keys(K).length>0){const{field:X,order:Z}=K,ie={ascend:"asc",descend:"desc"}[Z];X!=null&&ie!=null&&(A.value=X+" "+ie,y.value=1)}q(!1)},R=a.computed(()=>{const j=e.simple,U=[e.paginationPosition];return e.paginationShow&&{simple:j,position:U,total:a.unref(m),current:a.unref(y),pageSize:a.unref(S)||"10",showSizeChanger:!1}}),N=j=>+j==1?"是":+j==0?"否":j,F=(j,U)=>U==null||U===""?j:{money:so,percentage:Xt,contrast:Xt,boolean:N}[U](j)||"",D=(j,U)=>{const K=parseFloat(j+"");if(U!=="contrast")return"";switch(!0){case K>=0:return"goUp";case K<0:return"goDown"}},M=ye(e),{getGlobalModel:H,setGlobalModel:I}=a.inject(we,{getGlobalModel:j=>{},setGlobalModel:(j,U)=>{}}),O=(j=[],U=[])=>{const K=j.map(X=>({title:X,dataIndex:X,key:X}));p.value=g(K),u.value=U},z=Ve(e),B=async()=>{var j,U,K,X;try{E.value=!0;const Z=await z();O((U=(j=Z==null?void 0:Z.data)==null?void 0:j.data)==null?void 0:U.columns,(X=(K=Z==null?void 0:Z.data)==null?void 0:K.data)==null?void 0:X.rows)}catch(Z){console.error(Z)}finally{E.value=!1}},L=a.ref(-1),P=(j,U)=>({onClick:M("rowClick",()=>{const K=e.id,X=H(K);I(K,{...X,RECORD:j}),L.value=U})}),q=(j=!0)=>{switch(e.dataType){case"request":w(j);break;case"indicator":B();break}},G=()=>{const j=e.id,U=H(j);I(j,{...U,RECORD:""})},Y=a.computed(()=>{const j=a.unref(h),U=[];let K=0;for(let Z=0;Z<j.length;Z++){const re=j[Z],{isCalcTotal:ie}=re;e.isUseSeq&&Z===0?U.push({...re,total:"小计"}):ie?(U.push({...re,index:Z,total:0}),K++):U.push({...re})}if(K===0)return[];const X=a.unref(l);for(let Z=0;Z<U.length;Z++){const re=U[Z];let ie=0;const{isCalcTotal:le,dataIndex:ce}=re;if(le===!0){for(let ge=0;ge<X.length;ge++){const De=+X[ge][ce];isNaN(De)||(ie=new li.Big(ie).add(De).toNumber())}re.total=ie}}return U}),{setRequest:J}=a.inject(Te,{setRequest:j=>{}});typeof J=="function"&&J({id:e.id,requestFn:q,sortNum:e.requestSort}),n({refreshData:q});const W=(j="",U)=>be(j,U),de=j=>{if(j!=="event")return{self:"_self",blank:"_blank"}[j]},ve=(j,U="")=>{j==="event"&&window.parent.postMessage({type:"openPage",url:U},"*")},st=(j,U)=>{j(U.filterCheckboxGroupValue)},Ke=(j,U)=>{j({confirm:!0}),U.filterOptionsInputValue="",U.filterCheckboxGroupValue=[]},Ae=()=>{},Se=j=>{const U=j.dataIndex;if(typeof U=="string"){let K=a.unref(v)[U];const X=a.unref(j.filterOptionsInputValue).trim();return Array.isArray(K)?(K=K.filter(Z=>typeof Z.label=="string"?Z.label.toLowerCase().includes(X.toLowerCase()):!0),K):[]}return[]},je=async()=>{var ge,qe;const j="EXPORT_KEY";ne.message.loading({key:j,content:"正在导出...",duration:0});let U=[];if(e.dataType==="static")U=e.data;else if(e.dataType==="request"){const De={layer:"1"};a.unref(A)&&(De.orderCondition=a.unref(A));const Ee=await T(De);U=((qe=(ge=Ee==null?void 0:Ee.data)==null?void 0:ge.data)==null?void 0:qe.rows)||{}}const K=a.unref(h),X=[],Z=[];K==null||K.forEach(De=>{X.push(De.dataIndex),Z.push(De.title)});const re=U.map(De=>Ue.pick(De,X)),ie=Dt.utils.book_new(),le=Dt.utils.aoa_to_sheet([Z]),ce=Dt.utils.sheet_add_json(le,re,{skipHeader:!0,origin:"A2"});Dt.utils.book_append_sheet(ie,ce,"sheet"),Dt.writeFile(ie,"表格数据.xlsx"),ne.message.success({key:j,content:"导出成功"})},Ye=(j,U=2)=>{const K=+j*100;return isNaN(K)||K<=0?0:K>=100?100:K.toFixed(U)};Ce(e,{resetRecord:G,refreshData:q,exportTableData:je});const Xe=a.computed(()=>e.headerBackgroundColor||"#fafafa");return{x:c,y:d,style:i,customRow:P,pagination:R,formatFn:F,contrastClass:D,tableChange:_,summaryList:Y,loading:E,onTouchHrefEvent:ve,handleHref:W,handleHrefTarget:de,useRowIndex:L,tableColumns:h,tableDataSource:l,useFilterOptions:Se,useSetSelectedKeys:st,onResetFilter:Ke,onSearchFilterOptions:Ae,exportTableData:je,handleProgressText:Ye,pageSizeVisible:r,pageSize:S,tableRef:o,headerBgColor:Xe,rowClassName:(j,U)=>{let K=null;return e.stripedShow&&(K=U%2===1?"table-striped":null),K}}}}),H0=()=>{a.useCssVars(e=>({a5e83da8:e.headerBgColor,"855e8b9e":e.stripedColor}))},$0=ca.setup;ca.setup=$0?(e,n)=>(H0(),$0(e,n)):H0;const v1="",b1="",_f=["id"],Af={key:0,class:"table-tool"},Tf=a.createTextVNode("导出数据"),Ef=a.createTextVNode(" 搜索 "),Bf=a.createTextVNode(" 重置 "),Df={key:0},Rf={key:1,class:"action-list"},If=["href","target","onClick"],Lf={key:2,class:"progress-cell"},Of={class:"ant-pagination-options-quick-jumper"},Nf=a.createTextVNode(" 条 / 页 ");function zf(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"),h=a.resolveComponent("skeleton");return a.openBlock(),a.createElementBlock("div",{class:"ecan-table",id:"ecanTable-"+e.id,style:a.normalizeStyle(e.style)},[a.createVNode(h,{loading:e.loading},{default:a.withCtx(()=>{var m;return[e.isUseExport?(a.openBlock(),a.createElementBlock("div",Af,[a.createVNode(l,{class:"export-button",onClick:e.exportTableData},{default:a.withCtx(()=>[Tf]),_: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:e.y?{x:e.x,y:e.y}:{},pagination:e.pagination,"row-class-name":e.rowClassName,onChange:e.tableChange},{customFilterDropdown:a.withCtx(({column:y,selectedKeys:S,setSelectedKeys:C,confirm:b,clearFilters:g})=>[a.createElementVNode("div",{class:"ecan-table-filter",style:a.normalizeStyle({height:e.filterDropdownHeight})},[a.createVNode(s,{value:y.filterOptionsInputValue,"onUpdate:value":v=>y.filterOptionsInputValue=v,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),a.createVNode(f,{value:y.filterCheckboxGroupValue,"onUpdate:value":v=>y.filterCheckboxGroupValue=v,class:"filter-checkbox",options:e.useFilterOptions(y),onChange:v=>e.useSetSelectedKeys(C,y)},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:()=>b()},{default:a.withCtx(()=>[Ef]),_:2},1032,["onClick"]),a.createVNode(l,{size:"small",style:{width:"90px"},onClick:a.withModifiers(v=>e.onResetFilter(g,y),["stop"])},{default:a.withCtx(()=>[Bf]),_:2},1032,["onClick"])])],4)]),bodyCell:a.withCtx(({column:y,index:S,text:C,record:b})=>[y.dataIndex==="SEQ"?(a.openBlock(),a.createElementBlock("span",Df,a.toDisplayString(S+1),1)):y.dataIndex==="ACTION"?(a.openBlock(),a.createElementBlock("div",Rf,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.actionList,(g,v)=>(a.openBlock(),a.createElementBlock("div",{class:"action",key:v},[a.createElementVNode("a",{href:e.handleHref(g.href,b),target:e.handleHrefTarget(g.target),style:a.normalizeStyle({color:g.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:k=>e.onTouchHrefEvent(g.target,e.handleHref(g.href,b))},a.toDisplayString(g.title),13,If)]))),128))])):y.format==="progress"?(a.openBlock(),a.createElementBlock("div",Lf,[a.createElementVNode("div",{class:"progress",style:a.normalizeStyle({background:y.progressColor||"#1890ff",height:y.progressWidth||"18px",width:`${e.handleProgressText(C,y.progressTextDecimalPlaces)}%`})},null,4),a.createElementVNode("div",{class:"progress-text",style:a.normalizeStyle({color:e.handleProgressText(C)<100?y.progressTextColor||"#333":y.progressFinishedTextColor||"#fff"})},a.toDisplayString(e.handleProgressText(C,y.progressTextDecimalPlaces))+"% ",5)])):(a.openBlock(),a.createElementBlock("div",{key:3,class:a.normalizeClass([e.contrastClass(C,y.format)]),style:a.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},a.toDisplayString(y.format!=null?e.formatFn(C,y.format):C),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,(y,S)=>(a.openBlock(),a.createBlock(c,{key:S,index:S,style:a.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:y.cellAlign||"center",color:y.cellColor,borderBottomColor:e.borderColor})},{default:a.withCtx(()=>[a.createElementVNode("div",{class:a.normalizeClass([e.contrastClass(y.total,y.format)]),style:a.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},a.toDisplayString((y.format!=null||y.format!=="")&&e.formatFn(y.total,y.format)),7)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1})):a.createCommentVNode("",!0)]),_:1},8,["columns","data-source","bordered","size","customRow","scroll","pagination","row-class-name","onChange"]),(m=e.tableDataSource)!=null&&m.length&&!e.simple&&e.pageSizeShow&&e.pageSizeVisible?(a.openBlock(),a.createBlock(a.Teleport,{key:1,to:"#ecanTable-"+e.id+" .ant-pagination"},[a.createElementVNode("div",Of,[a.withDirectives(a.createElementVNode("input",{type:"text","onUpdate:modelValue":n[0]||(n[0]=y=>e.pageSize=y)},null,512),[[a.vModelText,e.pageSize]]),Nf])],8,["to"])):a.createCommentVNode("",!0)]}),_:1},8,["loading"])],12,_f)}const j0=se(ae(ca,[["render",zf],["__scopeId","data-v-2e2c436b"]])),fa={...me,mapJson:null,data:[],name:"地图",keyName:"地图",type:"ecanMap",width:"400px",height:"400px",backgroundImage:"",backgroundImageRepeat:"no-repeat",geoBackgroundImage:"",geoBackgroundImageRepeat:"no-repeat",symbolImage:"",symbolWidth:10,symbolHeight:10,itemStyleColor:"#11BFDA",labelFontSize:14,labelShow:!0,geoLabelShow:!0,geoLabelColor:"#000",geoZoom:1,geoRoam:!1,geoCenter:"",geoLabelFontSize:12,labelColor:"",labelFormatter:"{b}",geoItemStyleAreaColor:"#eee",geoItemStyleBorderColor:"#000",geoItemStyleBorderWidth:1,geoItemStyleShadowColor:"",geoItemStyleShadowOffsetX:0,geoItemStyleShadowOffsetY:0,geoItemStyleShadowBlur:0,geoEmphasisDisabled:!1,geoEmphasisLabelColor:"#fff",geoEmphasisItemStyleAreaColor:"#f00",geoEmphasisItemStyleBorderColor:"#000",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{b}"},da=fe(fa);He.use([ct.CanvasRenderer,Ge.MapChart,Ge.ScatterChart,he.VisualMapComponent,he.TooltipComponent,he.GraphicComponent]);const Mf=a.defineComponent({name:"EcanMap",components:{Echarts:Qe},props:{...da},setup(e){const n=ue(e,["backgroundImage"]),t=a.ref(),o=a.computed(()=>ht(e.geoBackgroundImage)),r=a.computed(()=>ht(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://"+ht(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 at(((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 a.watch(()=>e.mapJson,()=>{c()},{immediate:!0,deep:!0}),{option:s,style:n,isLoadedData:f,geoBackgroundImageRef:t,myGeoBackgroundImage:o}}}),w1="",Pf=["src"];function Ff(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,Pf),[[a.vShow,!1]])],4)}const U0=se(ae(Mf,[["render",Ff],["__scopeId","data-v-1fb5cdee"]])),G0=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:T0,EcanBorder:z0,EcanButton:f0,EcanCheckbox:u0,EcanComboGraph:I0,EcanCustomGraph:D0,EcanDatePicker:i0,EcanIframe:V0,EcanImage:F0,EcanInput:a0,EcanLine:_0,EcanList:e0,EcanMap:U0,EcanModal:it,EcanPageConfig:Hr,EcanPie:C0,EcanProportion:n0,EcanProviderConfig:$r,EcanRadar:O0,EcanRadio:b0,EcanRangePicker:l0,EcanScatter:B0,EcanScrollText:Yr,EcanSelect:m0,EcanTable:j0,EcanTabs:P0,EcanText:Kr,EcanTimeDisplay:Jr,EcanTreeSelect:x0,barComponentProps:jo,barEvents:A0,barProps:$o,borderComponentProps:ea,borderEvents:N0,borderProps:Qo,buttonComponentProps:To,buttonEvents:c0,buttonProps:Ao,checkboxComponentProps:Bo,checkboxEvents:d0,checkboxProps:Eo,comboGraphComponentProps:Yo,comboGraphEvents:R0,comboGraphProps:Ko,customGraphComponentProps:Zo,customGraphProps:Wo,datePickerComponentProps:Co,datePickerEvents:r0,datePickerProps:wo,iframeComponentProps:ia,iframeProps:ra,imageComponentProps:aa,imageProps:oa,inputComponentProps:So,inputEvents:o0,inputProps:bo,lineComponentProps:Ho,lineEvents:k0,lineProps:qo,listComponentProps:yo,listEvents:Qr,listProps:xo,mapComponentProps:da,mapProps:fa,modalComponentProps:Vo,modalEvents:w0,modalProps:Fo,pageConfig:xn,pageConfigComponentProps:yn,pieComponentProps:Po,pieEvents:S0,pieProps:Mo,proportionComponentProps:vo,proportionEvents:t0,proportionProps:po,providerConfig:lo,providerConfigComponentProps:co,radarComponentProps:Jo,radarEvents:L0,radarProps:Xo,radioComponentProps:No,radioEvents:y0,radioProps:Oo,rangePickerComponentProps:_o,rangePickerEvents:s0,rangePickerProps:ko,scatterComponentProps:Go,scatterEvents:E0,scatterProps:Uo,selectComponentProps:Ro,selectEvents:h0,selectProps:Do,tableComponentProps:la,tableEvents:q0,tableProps:sa,tabsComponentProps:na,tabsEvents:M0,tabsProps:ta,textComponentProps:uo,textEvents:jr,textProps:fo,timeDisplayComponentProps:go,timeDisplayEvents:Xr,timeDisplayProps:mo,treeSelectComponentProps:Lo,treeSelectEvents:g0,treeSelectProps:Io},Symbol.toStringTag,{value:"Module"})),Vf={install:e=>{Object.keys(G0).forEach(n=>{const t=G0[n];t.install&&e.use(t)})}};V.EcanBar=T0,V.EcanBorder=z0,V.EcanButton=f0,V.EcanCheckbox=u0,V.EcanComboGraph=I0,V.EcanCustomGraph=D0,V.EcanDatePicker=i0,V.EcanIframe=V0,V.EcanImage=F0,V.EcanInput=a0,V.EcanLine=_0,V.EcanList=e0,V.EcanMap=U0,V.EcanModal=it,V.EcanPageConfig=Hr,V.EcanPie=C0,V.EcanProportion=n0,V.EcanProviderConfig=$r,V.EcanRadar=O0,V.EcanRadio=b0,V.EcanRangePicker=l0,V.EcanScatter=B0,V.EcanScrollText=Yr,V.EcanSelect=m0,V.EcanTable=j0,V.EcanTabs=P0,V.EcanText=Kr,V.EcanTimeDisplay=Jr,V.EcanTreeSelect=x0,V.barComponentProps=jo,V.barEvents=A0,V.barProps=$o,V.borderComponentProps=ea,V.borderEvents=N0,V.borderProps=Qo,V.buttonComponentProps=To,V.buttonEvents=c0,V.buttonProps=Ao,V.checkboxComponentProps=Bo,V.checkboxEvents=d0,V.checkboxProps=Eo,V.comboGraphComponentProps=Yo,V.comboGraphEvents=R0,V.comboGraphProps=Ko,V.customGraphComponentProps=Zo,V.customGraphProps=Wo,V.datePickerComponentProps=Co,V.datePickerEvents=r0,V.datePickerProps=wo,V.default=Vf,V.iframeComponentProps=ia,V.iframeProps=ra,V.imageComponentProps=aa,V.imageProps=oa,V.inputComponentProps=So,V.inputEvents=o0,V.inputProps=bo,V.lineComponentProps=Ho,V.lineEvents=k0,V.lineProps=qo,V.listComponentProps=yo,V.listEvents=Qr,V.listProps=xo,V.mapComponentProps=da,V.mapProps=fa,V.modalComponentProps=Vo,V.modalEvents=w0,V.modalProps=Fo,V.pageConfig=xn,V.pageConfigComponentProps=yn,V.pieComponentProps=Po,V.pieEvents=S0,V.pieProps=Mo,V.proportionComponentProps=vo,V.proportionEvents=t0,V.proportionProps=po,V.providerConfig=lo,V.providerConfigComponentProps=co,V.radarComponentProps=Jo,V.radarEvents=L0,V.radarProps=Xo,V.radioComponentProps=No,V.radioEvents=y0,V.radioProps=Oo,V.rangePickerComponentProps=_o,V.rangePickerEvents=s0,V.rangePickerProps=ko,V.scatterComponentProps=Go,V.scatterEvents=E0,V.scatterProps=Uo,V.selectComponentProps=Ro,V.selectEvents=h0,V.selectProps=Do,V.tableComponentProps=la,V.tableEvents=q0,V.tableProps=sa,V.tabsComponentProps=na,V.tabsEvents=M0,V.tabsProps=ta,V.textComponentProps=uo,V.textEvents=jr,V.textProps=fo,V.timeDisplayComponentProps=go,V.timeDisplayEvents=Xr,V.timeDisplayProps=mo,V.treeSelectComponentProps=Lo,V.treeSelectEvents=g0,V.treeSelectProps=Io,Object.defineProperties(V,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
118
118
|
//# sourceMappingURL=index.umd.js.map
|