@ecan-bi/datav 1.5.15 → 1.5.16
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 +9 -4
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.5.
|
|
1
|
+
/*! @ecan-bi/datav@1.5.16 */
|
|
2
2
|
(function(Jr,bi){typeof exports=="object"&&typeof module<"u"?bi(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("echarts/renderers"),require("echarts/charts"),require("echarts/components"),require("ant-design-vue/es/modal/style"),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"),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","echarts/renderers","echarts/charts","echarts/components","ant-design-vue/es/modal/style","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","ant-design-vue/es/table/style","ant-design-vue/es/notification/style","xlsx","big.js"],bi):(Jr=typeof globalThis<"u"?globalThis:Jr||self,bi(Jr["@ecan/bi-datav"]={},Jr.Vue,Jr["echarts/core"],Jr.ResizeDetector,Jr.AntDesignVue,null,null,Jr.LodashEs,Jr.Dayjs,Jr.Axios,Jr.Mitt,Jr["echarts/renderers"],Jr["echarts/charts"],Jr["echarts/components"],null,null,null,null,Jr["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,Jr.Echarts,null,null,Jr.Xlsx,Jr.big.js))})(this,function(exports,vue,core$1,resizeDetector,antDesignVue,style$1,style$2,lodashEs,dayjs,axios,mitt,renderers,charts,components$1,style$3,style$4,style$5,style$6,locale,style$7,style$8,style$9,style$a,echarts,style$b,style$c,xlsx,big_js){var Jr,bi,$i,Vi;"use strict";function _interopNamespaceDefault(c){const u=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(c){for(const f in c)if(f!=="default"){const d=Object.getOwnPropertyDescriptor(c,f);Object.defineProperty(u,f,d.get?d:{enumerable:!0,get:()=>c[f]})}}return u.default=c,Object.freeze(u)}const echarts__namespace=_interopNamespaceDefault(echarts),METHOD_NAMES=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function usePublicAPI(c,u){function f(h){return(...p)=>{if(c.value||u(),!c.value)throw new Error("ECharts is not initialized yet.");return c.value[h].apply(c.value,p)}}function d(){const h=Object.create(null);return METHOD_NAMES.forEach(p=>{h[p]=f(p)}),h}return d()}function useAutoresize(c,u,f){let d=null;vue.watch([f,c,u],([h,p,v],m,g)=>{h&&p&&v&&(d=core$1.throttle(()=>{p.resize()},100),resizeDetector.addListener(h,d)),g(()=>{d&&h&&resizeDetector.removeListener(h,d)})})}const autoresizeProps={autoresize:Boolean},LOADING_OPTIONS_KEY="ecLoadingOptions";function useLoading(c,u,f){const d=vue.inject(LOADING_OPTIONS_KEY,{}),h=vue.computed(()=>({...vue.unref(d),...f==null?void 0:f.value}));vue.watchEffect(()=>{const p=c.value;p&&(u.value?p.showLoading(h.value):p.hideLoading())})}const loadingProps$1={loading:Boolean,loadingOptions:Object},style="",onRE=/^on[^a-z]/,isOn=c=>onRE.test(c);function omitOn(c){const u={};for(const f in c)isOn(f)||(u[f]=c[f]);return u}const TAG_NAME="x-vue-echarts",THEME_KEY="ecTheme",INIT_OPTIONS_KEY="ecInitOptions",UPDATE_OPTIONS_KEY="ecUpdateOptions",Echarts=vue.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...autoresizeProps,...loadingProps$1},inheritAttrs:!1,setup(c,{attrs:u,listeners:f}){const d=vue.shallowRef(),h=vue.shallowRef(),p=vue.shallowRef(),v=vue.inject(THEME_KEY,null),m=vue.inject(INIT_OPTIONS_KEY,null),g=vue.inject(UPDATE_OPTIONS_KEY,null),{autoresize:y,manualUpdate:x,loading:Pn,loadingOptions:b}=vue.toRefs(c),J=vue.computed(()=>p.value||c.option||Object.create(null)),j=vue.computed(()=>c.theme||vue.unref(v)||{}),vn=vue.computed(()=>c.initOptions||vue.unref(m)||{}),Fn=vue.computed(()=>c.updateOptions||vue.unref(g)||{}),Bn=vue.computed(()=>omitOn(u));function w(Kn){if(h.value||!d.value)return;const Un=h.value=core$1.init(d.value,j.value,vn.value);c.group&&(Un.group=c.group);let Qn=f;Qn||(Qn={},Object.keys(u).filter(Jn=>Jn.indexOf("on")===0&&Jn.length>2).forEach(Jn=>{const nr=Jn.charAt(2).toLowerCase()+Jn.slice(3);Qn[nr]=u[Jn]})),Object.keys(Qn).forEach(Jn=>{const nr=Qn[Jn];nr&&(Jn.indexOf("zr:")===0?Un.getZr().on(Jn.slice(3).toLowerCase(),nr):Un.on(Jn.toLowerCase(),nr))});function Yn(){if(Un&&!Un.isDisposed())try{Un.resize()}catch(Jn){if(Jn.message==="Cannot read property 'get' of undefined")return;throw Jn}}function Zn(){Un.setOption(Kn||J.value,Fn.value)}y.value?vue.nextTick(()=>{Yn(),Zn()}):Zn()}function re(Kn,Un){c.manualUpdate&&(p.value=Kn),h.value?h.value.setOption(Kn,Un||{}):w(Kn)}function gn(){h.value&&(h.value.dispose(),h.value=void 0)}let Vn=null;vue.watch(x,Kn=>{typeof Vn=="function"&&(Vn(),Vn=null),Kn||(Vn=vue.watch(()=>c.option,Un=>{Un&&(h.value?h.value.setOption(Un,Fn.value):w())},{deep:!0}))},{immediate:!0}),vue.watch([j,vn],()=>{gn(),w()},{deep:!0}),vue.watchEffect(()=>{c.group&&h.value&&(h.value.group=c.group)});const zn=usePublicAPI(h,w);return useLoading(h,Pn,b),useAutoresize(h,y,d),vue.onMounted(()=>{c.option&&w()}),vue.onUnmounted(gn),{chart:h,root:d,setOption:re,nonEventAttrs:Bn,...zn}},render(){const c={...this.nonEventAttrs};return c.ref="root",c.class=c.class?["echarts"].concat(c.class):"echarts",vue.h(TAG_NAME,c)}});function bound01(c,u){isOnePointZero(c)&&(c="100%");var f=isPercentage(c);return c=u===360?c:Math.min(u,Math.max(0,parseFloat(c))),f&&(c=parseInt(String(c*u),10)/100),Math.abs(c-u)<1e-6?1:(u===360?c=(c<0?c%u+u:c%u)/parseFloat(String(u)):c=c%u/parseFloat(String(u)),c)}function isOnePointZero(c){return typeof c=="string"&&c.indexOf(".")!==-1&&parseFloat(c)===1}function isPercentage(c){return typeof c=="string"&&c.indexOf("%")!==-1}function boundAlpha(c){return c=parseFloat(c),(isNaN(c)||c<0||c>1)&&(c=1),c}function convertToPercentage(c){return c<=1?"".concat(Number(c)*100,"%"):c}function pad2(c){return c.length===1?"0"+c:String(c)}function rgbToRgb(c,u,f){return{r:bound01(c,255)*255,g:bound01(u,255)*255,b:bound01(f,255)*255}}function hue2rgb(c,u,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?c+(u-c)*(6*f):f<1/2?u:f<2/3?c+(u-c)*(2/3-f)*6:c}function hslToRgb(c,u,f){var d,h,p;if(c=bound01(c,360),u=bound01(u,100),f=bound01(f,100),u===0)h=f,p=f,d=f;else{var v=f<.5?f*(1+u):f+u-f*u,m=2*f-v;d=hue2rgb(m,v,c+1/3),h=hue2rgb(m,v,c),p=hue2rgb(m,v,c-1/3)}return{r:d*255,g:h*255,b:p*255}}function rgbToHsv(c,u,f){c=bound01(c,255),u=bound01(u,255),f=bound01(f,255);var d=Math.max(c,u,f),h=Math.min(c,u,f),p=0,v=d,m=d-h,g=d===0?0:m/d;if(d===h)p=0;else{switch(d){case c:p=(u-f)/m+(u<f?6:0);break;case u:p=(f-c)/m+2;break;case f:p=(c-u)/m+4;break}p/=6}return{h:p,s:g,v}}function hsvToRgb(c,u,f){c=bound01(c,360)*6,u=bound01(u,100),f=bound01(f,100);var d=Math.floor(c),h=c-d,p=f*(1-u),v=f*(1-h*u),m=f*(1-(1-h)*u),g=d%6,y=[f,v,p,p,m,f][g],x=[m,f,f,v,p,p][g],Pn=[p,p,m,f,f,v][g];return{r:y*255,g:x*255,b:Pn*255}}function rgbToHex(c,u,f,d){var h=[pad2(Math.round(c).toString(16)),pad2(Math.round(u).toString(16)),pad2(Math.round(f).toString(16))];return d&&h[0].startsWith(h[0].charAt(1))&&h[1].startsWith(h[1].charAt(1))&&h[2].startsWith(h[2].charAt(1))?h[0].charAt(0)+h[1].charAt(0)+h[2].charAt(0):h.join("")}function convertHexToDecimal(c){return parseIntFromHex(c)/255}function parseIntFromHex(c){return parseInt(c,16)}var names={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 inputToRGB(c){var u={r:0,g:0,b:0},f=1,d=null,h=null,p=null,v=!1,m=!1;return typeof c=="string"&&(c=stringInputToObject(c)),typeof c=="object"&&(isValidCSSUnit(c.r)&&isValidCSSUnit(c.g)&&isValidCSSUnit(c.b)?(u=rgbToRgb(c.r,c.g,c.b),v=!0,m=String(c.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(c.h)&&isValidCSSUnit(c.s)&&isValidCSSUnit(c.v)?(d=convertToPercentage(c.s),h=convertToPercentage(c.v),u=hsvToRgb(c.h,d,h),v=!0,m="hsv"):isValidCSSUnit(c.h)&&isValidCSSUnit(c.s)&&isValidCSSUnit(c.l)&&(d=convertToPercentage(c.s),p=convertToPercentage(c.l),u=hslToRgb(c.h,d,p),v=!0,m="hsl"),Object.prototype.hasOwnProperty.call(c,"a")&&(f=c.a)),f=boundAlpha(f),{ok:v,format:c.format||m,r:Math.min(255,Math.max(u.r,0)),g:Math.min(255,Math.max(u.g,0)),b:Math.min(255,Math.max(u.b,0)),a:f}}var CSS_INTEGER="[-\\+]?\\d+%?",CSS_NUMBER="[-\\+]?\\d*\\.\\d+%?",CSS_UNIT="(?:".concat(CSS_NUMBER,")|(?:").concat(CSS_INTEGER,")"),PERMISSIVE_MATCH3="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),PERMISSIVE_MATCH4="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),matchers={CSS_UNIT:new RegExp(CSS_UNIT),rgb:new RegExp("rgb"+PERMISSIVE_MATCH3),rgba:new RegExp("rgba"+PERMISSIVE_MATCH4),hsl:new RegExp("hsl"+PERMISSIVE_MATCH3),hsla:new RegExp("hsla"+PERMISSIVE_MATCH4),hsv:new RegExp("hsv"+PERMISSIVE_MATCH3),hsva:new RegExp("hsva"+PERMISSIVE_MATCH4),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 stringInputToObject(c){if(c=c.trim().toLowerCase(),c.length===0)return!1;var u=!1;if(names[c])c=names[c],u=!0;else if(c==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var f=matchers.rgb.exec(c);return f?{r:f[1],g:f[2],b:f[3]}:(f=matchers.rgba.exec(c),f?{r:f[1],g:f[2],b:f[3],a:f[4]}:(f=matchers.hsl.exec(c),f?{h:f[1],s:f[2],l:f[3]}:(f=matchers.hsla.exec(c),f?{h:f[1],s:f[2],l:f[3],a:f[4]}:(f=matchers.hsv.exec(c),f?{h:f[1],s:f[2],v:f[3]}:(f=matchers.hsva.exec(c),f?{h:f[1],s:f[2],v:f[3],a:f[4]}:(f=matchers.hex8.exec(c),f?{r:parseIntFromHex(f[1]),g:parseIntFromHex(f[2]),b:parseIntFromHex(f[3]),a:convertHexToDecimal(f[4]),format:u?"name":"hex8"}:(f=matchers.hex6.exec(c),f?{r:parseIntFromHex(f[1]),g:parseIntFromHex(f[2]),b:parseIntFromHex(f[3]),format:u?"name":"hex"}:(f=matchers.hex4.exec(c),f?{r:parseIntFromHex(f[1]+f[1]),g:parseIntFromHex(f[2]+f[2]),b:parseIntFromHex(f[3]+f[3]),a:convertHexToDecimal(f[4]+f[4]),format:u?"name":"hex8"}:(f=matchers.hex3.exec(c),f?{r:parseIntFromHex(f[1]+f[1]),g:parseIntFromHex(f[2]+f[2]),b:parseIntFromHex(f[3]+f[3]),format:u?"name":"hex"}:!1)))))))))}function isValidCSSUnit(c){return!!matchers.CSS_UNIT.exec(String(c))}var hueStep=2,saturationStep=.16,saturationStep2=.05,brightnessStep1=.05,brightnessStep2=.15,lightColorCount=5,darkColorCount=4,darkColorMap=[{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 toHsv(c){var u=c.r,f=c.g,d=c.b,h=rgbToHsv(u,f,d);return{h:h.h*360,s:h.s,v:h.v}}function toHex(c){var u=c.r,f=c.g,d=c.b;return"#".concat(rgbToHex(u,f,d,!1))}function mix(c,u,f){var d=f/100,h={r:(u.r-c.r)*d+c.r,g:(u.g-c.g)*d+c.g,b:(u.b-c.b)*d+c.b};return h}function getHue(c,u,f){var d;return Math.round(c.h)>=60&&Math.round(c.h)<=240?d=f?Math.round(c.h)-hueStep*u:Math.round(c.h)+hueStep*u:d=f?Math.round(c.h)+hueStep*u:Math.round(c.h)-hueStep*u,d<0?d+=360:d>=360&&(d-=360),d}function getSaturation(c,u,f){if(c.h===0&&c.s===0)return c.s;var d;return f?d=c.s-saturationStep*u:u===darkColorCount?d=c.s+saturationStep:d=c.s+saturationStep2*u,d>1&&(d=1),f&&u===lightColorCount&&d>.1&&(d=.1),d<.06&&(d=.06),Number(d.toFixed(2))}function getValue(c,u,f){var d;return f?d=c.v+brightnessStep1*u:d=c.v-brightnessStep2*u,d>1&&(d=1),Number(d.toFixed(2))}function generate$1(c){for(var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=[],d=inputToRGB(c),h=lightColorCount;h>0;h-=1){var p=toHsv(d),v=toHex(inputToRGB({h:getHue(p,h,!0),s:getSaturation(p,h,!0),v:getValue(p,h,!0)}));f.push(v)}f.push(toHex(d));for(var m=1;m<=darkColorCount;m+=1){var g=toHsv(d),y=toHex(inputToRGB({h:getHue(g,m),s:getSaturation(g,m),v:getValue(g,m)}));f.push(y)}return u.theme==="dark"?darkColorMap.map(function(x){var Pn=x.index,b=x.opacity,J=toHex(mix(inputToRGB(u.backgroundColor||"#141414"),inputToRGB(f[Pn]),b*100));return J}):f}var presetPrimaryColors={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"},presetPalettes={},presetDarkPalettes={};Object.keys(presetPrimaryColors).forEach(function(c){presetPalettes[c]=generate$1(presetPrimaryColors[c]),presetPalettes[c].primary=presetPalettes[c][5],presetDarkPalettes[c]=generate$1(presetPrimaryColors[c],{theme:"dark",backgroundColor:"#141414"}),presetDarkPalettes[c].primary=presetDarkPalettes[c][5]});var containers=[],styleElements=[],usage="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function createStyleElement(){var c=document.createElement("style");return c.setAttribute("type","text/css"),c}function insertCss(c,u){if(u=u||{},c===void 0)throw new Error(usage);var f=u.prepend===!0?"prepend":"append",d=u.container!==void 0?u.container:document.querySelector("head"),h=containers.indexOf(d);h===-1&&(h=containers.push(d)-1,styleElements[h]={});var p;return styleElements[h]!==void 0&&styleElements[h][f]!==void 0?p=styleElements[h][f]:(p=styleElements[h][f]=createStyleElement(),f==="prepend"?d.insertBefore(p,d.childNodes[0]):d.appendChild(p)),c.charCodeAt(0)===65279&&(c=c.substr(1,c.length)),p.styleSheet?p.styleSheet.cssText+=c:p.textContent+=c,p}function _objectSpread$d(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},d=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(f).filter(function(h){return Object.getOwnPropertyDescriptor(f,h).enumerable}))),d.forEach(function(h){_defineProperty$d(c,h,f[h])})}return c}function _defineProperty$d(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}function warn(c,u){process.env.NODE_ENV!=="production"&&!c&&console!==void 0&&console.error("Warning: ".concat(u))}function warning(c,u){warn(c,"[@ant-design/icons-vue] ".concat(u))}function isIconDefinition(c){return typeof c=="object"&&typeof c.name=="string"&&typeof c.theme=="string"&&(typeof c.icon=="object"||typeof c.icon=="function")}function generate(c,u,f){return f?vue.h(c.tag,_objectSpread$d({key:u},f,c.attrs),(c.children||[]).map(function(d,h){return generate(d,"".concat(u,"-").concat(c.tag,"-").concat(h))})):vue.h(c.tag,_objectSpread$d({key:u},c.attrs),(c.children||[]).map(function(d,h){return generate(d,"".concat(u,"-").concat(c.tag,"-").concat(h))}))}function getSecondaryColor(c){return generate$1(c)[0]}function normalizeTwoToneColors(c){return c?Array.isArray(c)?c:[c]:[]}var iconStyles=`
|
|
3
3
|
.anticon {
|
|
4
4
|
display: inline-block;
|
|
@@ -99,7 +99,7 @@ version: 2.9.0
|
|
|
99
99
|
`,f+="-----END PUBLIC KEY-----",f},u.hasPublicKeyProperty=function(f){return f=f||{},f.hasOwnProperty("n")&&f.hasOwnProperty("e")},u.hasPrivateKeyProperty=function(f){return f=f||{},f.hasOwnProperty("n")&&f.hasOwnProperty("e")&&f.hasOwnProperty("d")&&f.hasOwnProperty("p")&&f.hasOwnProperty("q")&&f.hasOwnProperty("dmp1")&&f.hasOwnProperty("dmq1")&&f.hasOwnProperty("coeff")},u.prototype.parsePropertiesFrom=function(f){this.n=f.n,this.e=f.e,f.hasOwnProperty("d")&&(this.d=f.d,this.p=f.p,this.q=f.q,this.dmp1=f.dmp1,this.dmq1=f.dmq1,this.coeff=f.coeff)},u}(RSAKey),_a,version=typeof process<"u"?(_a=process.env)===null||_a===void 0?void 0:_a.npm_package_version:void 0,JSEncrypt=function(){function c(u){u===void 0&&(u={}),u=u||{},this.default_key_size=u.default_key_size?parseInt(u.default_key_size,10):1024,this.default_public_exponent=u.default_public_exponent||"010001",this.log=u.log||!1,this.key=null}return c.prototype.setKey=function(u){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new JSEncryptRSAKey(u)},c.prototype.setPrivateKey=function(u){this.setKey(u)},c.prototype.setPublicKey=function(u){this.setKey(u)},c.prototype.decrypt=function(u){try{return this.getKey().decrypt(b64tohex(u))}catch{return!1}},c.prototype.encrypt=function(u){try{return hex2b64(this.getKey().encrypt(u))}catch{return!1}},c.prototype.sign=function(u,f,d){try{return hex2b64(this.getKey().sign(u,f,d))}catch{return!1}},c.prototype.verify=function(u,f,d){try{return this.getKey().verify(u,b64tohex(f),d)}catch{return!1}},c.prototype.getKey=function(u){if(!this.key){if(this.key=new JSEncryptRSAKey,u&&{}.toString.call(u)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,u);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},c.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},c.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},c.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},c.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},c.version=version,c}();const encryptor=new JSEncrypt,aesKey=createAesKey();function createAesKey(){let u=Math.random().toString(36).substr(2);for(;u.length<16;)u+=Math.random().toString(36).substr(2);return u=u.substr(0,16),u}const iv=CryptoJS.enc.Utf8.parse("ABCDEF1234123412");function aesEncrypt(c,u){u=u||aesKey;const f=CryptoJS.enc.Utf8.parse(u);let d="";switch(typeof c){case"string":d=CryptoJS.enc.Utf8.parse(c);break;case"object":d=CryptoJS.enc.Utf8.parse(JSON.stringify(c));break;default:d=CryptoJS.enc.Utf8.parse(c.toString())}return CryptoJS.AES.encrypt(d,f,{iv,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.ZeroPadding}).toString()}function aesDecrypt(c,u){u=u||aesKey;const f=CryptoJS.enc.Utf8.parse(u),d=CryptoJS.AES.decrypt(c,f,{iv,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.ZeroPadding});return CryptoJS.enc.Utf8.stringify(d).toString()}function setPublicKey(c){encryptor.setPublicKey(c)}function rsaEncrypt(c){return encryptor.encrypt(c)}function hasEncryptUrl(c=""){c.startsWith("/")||(c="/"+c),c=c.split("?")[0];const f=["/diagram","/dataview"].map(d=>`^(.*?)${d}(/|$)`);for(const d of f)if(new RegExp(d).test(c))return!0;return!1}function EncryptConfigParam(c){const{paramType:u,data:f,params:d,method:h}=c;u==="form"?["get","delete"].includes(h)?c.params=getEncryptParam(d,"string"):c.data=getEncryptParam(f,"string"):["get","delete"].includes(h)?c.params=getEncryptParam(d,"string"):c.data=getEncryptParam(f)}function getEncryptParam(c,u){let f=c||{};if(u==="string"){f="";for(const m in c)if(Object.hasOwnProperty.call(c,m)){const g=c[m];f+=`${m}=${encodeURIComponent(g)}&`}}setPublicKey("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMKaTbS1XHH7u/4dhao1n5Lcegpy6AHKX2TjmTP7IDW6N4wznqlL3Tt+U0/Il1TlNp1/EN+tffYYg4dPrrCUDwcCAwEAAQ==");const h=rsaEncrypt(aesKey);return{c:aesEncrypt(f,aesKey),p:h}}window.getEncryptParam=getEncryptParam;function encryptData(c,u){var f;(f=window==null?void 0:window.config)!=null&&f.encryptFlag&&hasEncryptUrl(c.url)&&(c.data instanceof FormData?c.data=getEncryptFileParam(c.data):EncryptConfigParam(c))}function getEncryptFileParam(c){const u=c.entries(),f=new FormData,d={};for(const p of u){const v=p[0],m=p[1];m instanceof Blob?f.append(v,m):d[v]=m}const h=getEncryptParam(d,"json");return typeof h=="object"&&(f.append("c",h.c),f.append("p",h.p)),f}window.xhaesKey=aesKey,window.xhaesDecrypt=aesDecrypt;function decryptData(c,u){var f;if((f=window==null?void 0:window.config)!=null&&f.encryptFlag&&hasEncryptUrl(c.config.url)&&!(c.data instanceof Blob)&&c.data.data!==void 0){const d=aesDecrypt(c.data.data.content,aesKey);c.data=JSON.parse(d)}}const requestErrorTip=window.config.requestErrorTip,request=axios.create({timeout:1e3*180});request.interceptors.request.use(c=>{const{requestParams:u={}}=window.config;return u!=null&&u.pltToken&&(c.headers["Plt-Token"]=u.pltToken),encryptData(c),c},c=>Promise.reject(c)),request.interceptors.response.use(c=>{var u,f,d;return requestErrorTip&&+((u=c==null?void 0:c.data)==null?void 0:u.code)==500&&antDesignVue.message.error({content:((f=c==null?void 0:c.data)==null?void 0:f.msg)||((d=c==null?void 0:c.data)==null?void 0:d.message)||"服务器异常",key:"SERVER_ERROR",duration:2}),decryptData(c),c},c=>{if(decryptData(c==null?void 0:c.response),requestErrorTip)if(c.message.includes("timeout"))antDesignVue.message.error({content:"网络连接超时,请重试!",key:"TIMEOUT",duration:2});else{const{status:u}=(c==null?void 0:c.response)||{};u>=400&&u<500&&antDesignVue.message.error({content:"请求异常",key:"REQUEST_ERROR",duration:2}),u>=500&&antDesignVue.message.error({content:"服务器异常",key:"REQUEST_ERROR",duration:2})}return Promise.reject(c)});const handleFormatter=c=>c.replace(/\\n/g,`
|
|
100
100
|
`),formatMoney=(c,u=2)=>{const f=parseFloat(c+"");return isNaN(f)?c:f.toFixed(u).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},formatThousands=c=>{const u=parseFloat(c+"");return isNaN(u)?c:(u+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},formatPercentage=(c,u=2)=>{const f=c+"";if(f.includes("%"))return c;const d=parseFloat(f);return isNaN(d)?c:`${(d*100).toFixed(u)}%`},formatDecimals=(c,u=2)=>{const f=c+"",d=parseFloat(f);return isNaN(d)?c:d.toFixed(u)},formatCustom=(c,u)=>In(u,c),getFixedValueDatas=c=>{const{leftAxisList:u=[],rightAxisList:f=[],queryColumnList:d=[],indicators:h=[]}=c;return[...u,...f,...d,...h].filter(p=>(p==null?void 0:p.calcType)==="COMPONENT").map(p=>({keyName:p.builtInCalcWay,id:p.builtInValueSource}))},canRequestIndicator=(c,u)=>{let f=!0;const d=getFixedValueDatas(c);return d!=null&&d.length&&(f=d.map(h=>u[h.id]).every(h=>h)),f},getLegendFormat=(c,u)=>{var v;const f=c.match(/\{(.+?)\}/g),d=((v=c.split(`
|
|
101
101
|
`))==null?void 0:v.length)-1;let h="";if(d)for(let m=0;m<d;m++)h+=`
|
|
102
|
-
`;let p=c;if(f!=null&&f.length){for(const m of f){const g=hn(m,{textData:u},{useNewline:!1,useSpace:!1});g&&(p=p.replace(m,g))}return`${h}{text|${p}}`}else return c},setDefaultRangeVal=(c,u)=>{const{props:f,componentList:d,getGlobalModel:h}=c,{graphicConfig:p={},startValue:v,endValue:m}=f,g=getdefCompleteData({graphicConfig:p,startValue:v,endValue:m,componentList:d,getGlobalModel:h}),{dimensions:y,dataset:x}=u,{classificationList:Pn=[]}=p,J=Pn.find(j=>j.show).label||"";for(const j of g)!y.find(vn=>+vn==+j)&&!isNaN(+j)&&y.push(+j);y.sort((j,vn)=>dayjs(j).isBefore(dayjs(vn))?-1:1);for(const j of x){const{data:vn}=j;if(vn!=null&&vn.length){const Fn=[];for(const Bn of g)if(!vn.find(w=>+w[J]==+Bn)&&!isNaN(+Bn)){const w=lodashEs.cloneDeep(vn[0]);for(const re in w)re===J?w[re]=+Bn:w[re]=0;Fn.push(w)}j.data.push(...Fn),j.data.sort((Bn,w)=>dayjs(Bn[J]).isBefore(dayjs(w[J]))?-1:1)}}},getConditions=c=>{const u=[];for(const f of c)f.conditions?u.push(...getConditions(f.conditions)):(f==null?void 0:f.dataType)==="component"&&u.push(f);return u};function getdefCompleteData(c){const{startValue:u,endValue:f,componentList:d,graphicConfig:h,getGlobalModel:p}=c,v=getVariableAndField(u),m=getVariableAndField(f),g=[];if(v&&m){const y=d.find(Pn=>Pn.keyName===v.keyName),x=d.find(Pn=>Pn.keyName===m.keyName);if(y&&x){const Pn=p(y.id),b=p(x.id),{classificationList:J=[]}=h,j=J.find(vn=>vn.show);if(j){let vn="YYYY-MM";switch(j.name){case"the_year":vn="YYYY";break;case"the_month":vn="MM";break;case"the_day":vn="DD";break;case"the_date":vn=(j==null?void 0:j.dateFormat)||vn;break}const Fn=getFormatStep(vn);if(vn){const Bn=vue.unref(Pn[v.field]),w=vue.unref(b[m.field]);let re=dayjs(Bn);const gn=dayjs(w);for(g.push(gn.format(vn));re.isBefore(gn);)g.push(re.format(vn)),re=re.add(1,Fn)}}}}return g}function getVariableAndField(c){let u=null;if(c){const f=c.match(/\{(.+?)\}/g);if(f!=null&&f.length){let d=f[0].slice(1,-1).trim();const h=d.match(/\[(.+?)\]/g);let p="";h!=null&&h.length&&(d=d.replace(h[0],""),p=h[0].slice(1,-1).trim()),u={keyName:d,field:p}}}return u}function getFormatStep(c){const u=c.split("-");let f="";if(u!=null&&u.length)switch(u[u.length-1]){case"YYYY":f="year";break;case"MM":f="month";break;case"DD":f="day";break}return f}function handleJumpLink(c,u){var Pn;const{pageMode:f,targetTemplate:d,getRecordValueByKeyName:h,setTemplateData:p}=u,v=c.linkPage||"",m=usePageUrl(f,v),g=c.href;let y=g||m;y=hn(y);const x=c.target;if(x)if(x==="event")window.parent.postMessage({type:"openPage",url:g},"*");else{const b={pageId:v,componentId:d};if((Pn=c.transParams)!=null&&Pn.length){y.includes("?")?y+="&":y+="?";const J=[];for(const j of c.transParams){const vn=h(String(j.fieldName));J.push(`${j.keyName}=${vn}`),b[j.keyName]=vn}y+=J.join("&")}x==="template"?(Object.prototype.hasOwnProperty.call(window,"oldPageId")||(window.oldPageId=""),window.oldPageId&&(window.controller.abort(),window.controller=new AbortController),window.oldPageId=v,p(b)):(x==="blank"&&(y+=`${y.includes("?")?"&":"?"}drillFlag=1`),window.open(y,"_"+x))}}function getPageUrlParams(c){var f,d;let u={};if(c){const h=(((f=window.config)==null?void 0:f.urlParams)||{})[c]||{};for(const p in h)p.includes("{")||(u[p]=h[p])}else u=((d=window.config)==null?void 0:d.requestParams)||{};return u}function getNewValueFromUrlParams(c,u,f){let d="";const{urlParams:h}=window.config;if(c&&h[c])for(const p in h[c]){const v=h[c][p];if(p===`{${u}[${f}]}`&&v){d=v;break}}return d}function getFormatWh(c,u){return typeof c=="string"?parseFloat(c):c.suffix==="px"?+c.value:c.suffix==="%"?parseFloat(u)*(c.value/100):0}const hasChinese=c=>/[\u4e00-\u9fa5]/.test(c),dragModalAction=(c,u)=>{const f=document.querySelector(u);if(!f)return;f.style.cursor="move",f.style.userSelect="none";const d=f.parentElement,h=200,p=d.getBoundingClientRect(),{width:v,left:m,top:g}=p,y=window.innerWidth,x=window.innerHeight,Pn=c.clientX,b=c.clientY,J=parseFloat(d.style.left)||0,j=parseFloat(d.style.top)||0,vn=-(m+v-h-J),Fn=y-m+J-h,Bn=-(g-j),w=x-g+j-h,re=Vn=>{Vn.preventDefault();const zn=Vn.clientX-Pn,Kn=Vn.clientY-b;let Un=J+zn,Qn=j+Kn;Un=Math.max(vn,Math.min(Un,Fn)),Qn=Math.max(Bn,Math.min(Qn,w)),d.style.left=`${Un}px`,d.style.top=`${Qn}px`},gn=()=>{f.style.cursor="",f.style.userSelect="",document.removeEventListener("mousemove",re),document.removeEventListener("mouseup",gn)};document.addEventListener("mousemove",re),document.addEventListener("mouseup",gn)},useRequestData=(c,u,f=()=>{})=>{var sr;const{requestUrl:d,requestMethod:h,requestHeaders:p,requestParams:v,requestInterval:m,isOpenRequestTimer:g,openCustomRequestData:y,projectRequestUrl:x="",getModel:Pn,requestParamsMode:b,customRequestParams:J,dataSetParam:j,requestType:vn,dataType:Fn,dataSetchecked:Bn}=c,{pageMode:w}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"})||{},{pageId:re}=vue.inject("templateOperate",{pageId:""})||{},{contextRequestUrl:gn,touchEventId:Vn}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:"",touchEventId:""})||{},{getGlobalModel:zn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:ur=>{}})||{},{loadedData:Kn}=vue.inject(LOADED_DATA,{loadedData:{}})||{},Un=vue.inject(COMMON_OPERATE,{operateAction:(ur,Hn)=>{}}),Qn=Pn||zn;let Yn=hn(d),Zn=vue.unref(gn)||x||"";(Fn==="request"&&Bn||vn===1)&&(Zn="",Yn=((sr=window.config)==null?void 0:sr.dataSetUrl)||"/api/datav/dataset/data2");const Jn=async(ur={})=>{var ir;if(Fn!=="request"&&nr){clearInterval(nr);return}if(!Yn||!h||!p)return;let Hn={};for(const er of v){const{key:pr,value:lr}=er;if((lr==null?void 0:lr.id)==="PARENT"&&(lr!=null&&lr.prop)){const or=(((ir=window.config)==null?void 0:ir.record)||{})[lr.prop];if(or){const vr=or[lr.propKey||"value"];vr&&(["date","range"].some(mr=>yn(or==null?void 0:or.type,mr))?Hn[pr]=vue.unref(vr).format(or.format||"YYYY-MM-DD"):Hn[pr]=vue.unref(vr))}continue}if(typeof lr=="object"&&lr!=null&&lr.id){let ar={};const{id:or,prop:vr,propKey:fr,operate:mr}=lr;let dr=!1;try{JSON.parse(or),dr=!0}catch{dr=!1}if(or==="THIS"?ar=Qn(vue.unref(Vn))||{}:ar=Qn(or)||{},(ar==null?void 0:ar.type)==="ecanSelect"&&vue.unref(Kn)&&!vue.unref(Kn)[or]&&(ar==null?void 0:ar.dataType)!=="static")return;const hr=vue.unref(ar[vr]);let yr=null;if(["date","range"].some(gr=>yn(ar==null?void 0:ar.type,gr))){const{value:gr,type:br,mode:Er}=mr||{};if(gr&&br&&Er)switch(br){case"add":yr=vue.unref(hr).add(gr,Er);break;case"minus":yr=vue.unref(hr).subtract(gr,Er);break}yr==null&&(yr=vue.unref(hr)),yr=yr&&(yr==null?void 0:yr.format((fr==null?void 0:fr.trim())||ar.format))||""}else if(Object.prototype.toString.call(hr)==="[object Object]")fr?yr=hr[fr]:yr=vr?hr[vr]:hr;else if(yn(ar==null?void 0:ar.type,"select")&&vue.unref(hr)&&vr&&Array.isArray(vue.unref(hr)))yr=vue.unref(hr).map(gr=>Object.prototype.hasOwnProperty.call(gr,vr)?gr[vr]:gr);else if(dr){const gr=JSON.parse(or);console.log(gr,"urlvalue"),yr=gr.value}else yr=hr;Hn[pr]=yr}else typeof lr=="object"&&!lr.id&&vn===1?(console.log(lr.propKey,"value.propKey"),Hn[pr]=lr.propKey):typeof lr=="string"&&(Hn[pr]=hn(lr))}if(vn===1){console.log(Hn,"_params");const er=Object.entries(Hn);let pr=j;if(!j.param&&Array.isArray(j)){const lr={};for(const ar of j)lr[ar.key]=ar.value;pr=lr}pr.param=pr.param.map((lr,ar)=>({...lr,paramKey:er[ar][0],defaultValue:er[ar][1]||""})),Hn=pr}if(b==="2"&&J!=="{}"){const er=JSON.parse(J);Wn(er),er&&(Hn=er)}function Wn(er){const pr={...Hn,...getPageUrlParams(re)};if(Array.isArray(er))er.forEach((lr,ar)=>{if(typeof lr=="string"){const or=lr.match(/\${(.+?)\}/g);if(or!=null&&or.length){const vr=or[0].slice(2,-1);vr&&pr[vr]?er[ar]=pr[vr]:er[ar]=""}}else Wn(lr)});else if(Object.prototype.toString.call(er)==="[object Object]")for(const lr in er)if(typeof er[lr]=="string"){const ar=er[lr].match(/\${(.+?)\}/g);if(ar!=null&&ar.length){const or=ar[0].slice(2,-1);or&&pr[or]?er[lr]=pr[or]:er[lr]=""}}else Wn(er[lr])}const Rn=getPageUrlParams(re);for(const er in Rn)Rn[er]&&(Rn[er]=decodeURIComponent(Rn[er]));Hn={...Rn,...ur,...Hn};let qn="";const Xn=Object.keys(Hn),Gn=Xn.length-1,tr=Xn.length;Xn.forEach((er,pr)=>{let lr=Hn[er];Object.prototype.toString.call(lr)==="[object Object]"&&(lr=JSON.stringify(lr)),pr===0?tr!==1?qn+=`?${er}=${lr}&`:qn+=`?${er}=${lr}`:pr===Gn?qn+=`${er}=${lr}`:qn+=`${er}=${lr}&`}),Yn.includes("?")&&(qn=qn.replace("?","&"));function cr(er){var pr;if(vn===1)return{Authentication:(pr=window==null?void 0:window.config)==null?void 0:pr.indicatorToken};if(typeof er=="string"){const lr=JSON.parse(er),ar=getPageUrlParams(re);if(Object.prototype.toString.call(lr)==="[object Object]"){for(const or in lr)if(typeof lr[or]=="string"){const vr=lr[or].match(/\${(.+?)\}/g);if(vr!=null&&vr.length){const fr=vr[0].slice(2,-1);fr&&ar[fr]?lr[or]=ar[fr]:lr[or]=""}}}return lr}else return er}try{const er=["get","head"].includes(h),pr={};let lr=er?Yn+qn:Yn;Hn.dataSqlId&&!lr.includes("dataSqlId")&&(lr+=`${lr.includes("?")?"&":"?"}dataSqlId=${Hn.dataSqlId}`),Object.prototype.hasOwnProperty.call(Hn,"signal")?pr.signal=Hn.signal:window.controller&&(pr.signal=window.controller.signal);const ar=await request({baseURL:Zn,url:lr,method:h,headers:p?cr(p):{},data:er?{}:Hn,...pr});return f(ar),Un.operateAction("SAVE_COMPONENT_RES_DATA",{id:c.id,data:(ar==null?void 0:ar.data)||{}}),ar}catch(er){console.error(er)}},nr=vue.unref(w)!=="design"&&g&&(y||y===void 0)&&setInterval(Jn,m*1e3);return vue.onUnmounted(()=>{clearInterval(nr)}),Jn},useImagePath=(c,u=!1)=>{var d;if(!c)return c;let f="";return c!=null&&c.includes("://")?f=c:f=((d=window==null?void 0:window.config)==null?void 0:d.uploadPath)+c,u&&(f=`url(${f})`),f},usePageUrl=(c,u)=>{const f=`${BASE_URL}/preview?pageId=${u}`,d=`${BASE_URL}/${u}`;return c==="preview"?f:d},useIndicatorData=(c={},u=()=>{})=>{var x;const{pageMode:f}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),{requestToken:d}=vue.inject(GLOBAL_TOKEN,{requestToken:()=>{}}),{setLoadedData:h}=vue.inject(LOADED_DATA,{setLoadedData:(Pn,b)=>{}}),{getAllGlobalModel:p}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),{pageId:v}=vue.inject("templateOperate",{pageId:""})||{},m=vue.inject(COMMON_OPERATE,{operateAction:(Pn,b)=>{}});c.dataType==="indicator"&&d();const g=async(Pn={})=>{var re,gn,Vn;const b=p();h(c.id,!1);const J=Dn({...c,globalModel:b},Pn),{url:j,...vn}=J||{},{pathname:Fn,search:Bn}=window==null?void 0:window.location;let w=v||((re=window==null?void 0:window.config)==null?void 0:re.pageId);if(!w&&Fn){const zn=Fn.split("/");zn!=null&&zn.length&&(w=zn[zn.length-1])}if(j&&vn){let zn,Kn;if(c.type==="ecanIndexPanel"&&(zn=c.theFlag),j==="/diagram/formData"){Kn={};const Qn=Bn.slice(1,Bn.length).split("&");for(const Yn of Qn)if(Yn){const Zn=Yn.split("=");Zn[0]&&(Kn[Zn[0]]=Zn[1])}}try{const Un=await request({url:`${INDICATOR_URL}${j}`,method:"post",headers:{Authentication:(gn=window==null?void 0:window.config)==null?void 0:gn.indicatorToken,operateContext:CONTEXT},data:{...vn,pageId:w,theFlag:zn,extParam:Kn},signal:((Vn=window.controller)==null?void 0:Vn.signal)||""});return Pn!=null&&Pn.isTimer&&u(Un),m.operateAction("SAVE_COMPONENT_RES_DATA",{id:c.id,data:(Un==null?void 0:Un.data)||{}}),Un}catch(Un){console.error(Un)}}},y=vue.unref(f)!=="design"&&((x=c==null?void 0:c.graphicConfig)==null?void 0:x.pageMode)!=="design"&&c.isOpenRequestTimer&&c.requestInterval&&setInterval(()=>{g({isTimer:!0})},c.requestInterval*1e3);return vue.onUnmounted(()=>{clearInterval(y)}),g},useHrefParamsToGlobalVariables=()=>{const u=window.location.search.slice(1).split("&"),f=u.length,d={};for(let h=0;h<f;h++){const p=u[h];if(p==null||p==="")continue;const v=p.split("=");if(Array.isArray(v)){const m=v[0];m.includes("{")||(d[m]=v[1])}}window.config.requestParams={...window.config.requestParams,...d},window.config={...window.config,...d}},_sfc_main$z=vue.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...pageConfigComponentProps,pageId:{type:String,default:""},customId:{type:String,default:"container"},portId:{type:String,default:"norPageConfig"}},setup(c){const{width:u,height:f,isCompatible:d}=vue.inject(GLOBAL_CONFIG,{width:null,height:null,isCompatible:null}),h=vue.inject("setPageHeight",Vn=>{}),p=vue.inject("isMobile",!1),v=vue.computed(()=>{const Vn={};return(!d.value||!p)&&(Vn.width=u.value,Vn.height=f.value),{...Vn,backgroundColor:c.pageId?"transparent":c.backgroundColor,backgroundImage:useImagePath(c.backgroundImage,!0),backgroundSize:c.backgroundSize}}),m=vue.ref(0),g=vue.ref(0),y=vue.ref(0),x=vue.ref(0),Pn=vue.ref(!1),b=vue.ref();let J;const j=()=>new Promise(Vn=>{vue.nextTick(()=>{u.value&&f.value?(m.value=parseFloat(u.value),g.value=parseFloat(f.value)):(m.value=b.value.clientWidth,g.value=b.value.clientHeight),(!y.value||!x.value)&&(y.value=window.screen.width,x.value=window.screen.height),Vn()})}),vn=()=>{m.value&&g.value?(b.value.style.width=`${m.value}px`,b.value.style.height=`${g.value}px`):(b.value.style.width=`${y.value}px`,b.value.style.height=`${x.value}px`)};vue.watch([u,f],async()=>{c.pageId||(await j(),vn(),Bn(),window.addEventListener("resize",w),re()),Pn.value=!0},{immediate:!0});const Fn=vue.ref({});vue.provide("scaleValue",Fn);const Bn=()=>{if(d.value&&p){b.value.style.width="100%",b.value.style.height="auto",h("auto");return}const Vn=document.body.clientWidth,zn=document.body.clientHeight,Kn=m.value||y.value,Un=g.value||x.value,Qn=Vn/Kn;let Yn=zn/Un;(m.value!==1920||g.value!==1080)&&(Yn=g.value/m.value*Vn/Un),Fn.value={widthScale:Qn,heightScale:Yn},b.value&&(b.value.style.transform=`scale(${Qn}, ${Yn})`),h(Fn.value)},w=lodashEs.debounce(async()=>{await j(),Bn()},100),re=()=>{const Vn=window.MutationObserver;J=new Vn(w),J.observe(b.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},gn=()=>{J&&(J.disconnect(),J.takeRecords(),J=null)};return vue.onMounted(()=>{Pn.value=!1}),vue.onUnmounted(()=>{window.removeEventListener("resize",w),gn()}),{style:v,container:b,ready:Pn}}}),PageConfig_vue_vue_type_style_index_0_scoped_44a453d9_lang="",_hoisted_1$k=["id"],_hoisted_2$a=["id"];function _sfc_render$E(c,u,f,d,h,p){return vue.openBlock(),vue.createElementBlock("div",{class:"page-config-container",id:c.customId,ref:"container"},[c.ready||c.pageId?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"page-config",id:c.portId,style:vue.normalizeStyle(c.style)},[vue.renderSlot(c.$slots,"default",{},void 0,!0)],12,_hoisted_2$a)):vue.createCommentVNode("",!0)],8,_hoisted_1$k)}const PageConfig=_export_sfc$1(_sfc_main$z,[["render",_sfc_render$E],["__scopeId","data-v-44a453d9"]]),EcanPageConfig=withInstall$1(PageConfig),providerConfig={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px",pageFontFamily:"",jumpType:"page",jumpTime:null,jumpPage:"",jumpLink:"",requestList:[],events:[],isCompatible:!0,variableList:[],drillingMode:"pivotTable"},providerConfigComponentProps=transformToComponentProps(providerConfig);let random=c=>crypto.getRandomValues(new Uint8Array(c)),customRandom=(c,u,f)=>{let d=(2<<Math.log(c.length-1)/Math.LN2)-1,h=-~(1.6*d*u/c.length);return(p=u)=>{let v="";for(;;){let m=f(h),g=h;for(;g--;)if(v+=c[m[g]&d]||"",v.length===p)return v}}},customAlphabet=(c,u=21)=>customRandom(c,u,random),nanoid=(c=21)=>crypto.getRandomValues(new Uint8Array(c)).reduce((u,f)=>(f&=63,f<36?u+=f.toString(36):f<62?u+=(f-26).toString(36).toUpperCase():f>62?u+="-":u+="_",u),"");const pivotTableProps={...props,name:"透视表",keyName:"透视表",width:"800px",height:"400px",type:"ecanPivotTable",graphicConfig:{},dataType:"indicator",data:[],dimensionList:[],indicatorList:[],styleConfig:{borderColor:"#E3E3E3",headerBgColor:"#ECF1F5",headerColor:"#000000",bodyBgColor:"#FFFFFF",bodyColor:"#000000",indicatorsHeaderBgColor:"#ECF1F5",indicatorsHeaderColor:"#000000",indicatorsBodyBgColor:"#FFFFFF",indicatorsBodyColor:"#000000",aggregateBgColor:"#ECF1F5",aggregateColor:"#000000",sortNotActiveColor:"#CCCCCC",sortActiveColor:"#416EFF",dropDownMenuBgColor:"#FFFFFF",dropDownMenuColor:"#141414",dropDownMenuHightLightColor:"#2E68CF"},configMode:"halfMode"},pivotTableComponentProps=transformToComponentProps(pivotTableProps),pivotTableEvents=["refreshData"],_sfc_main$y=vue.defineComponent({name:"IndicatorDetailModal",components:{BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1,CloseOutlined:CloseOutlined$1,ZoomInOutlined:ZoomInOutlined$1,ZoomOutOutlined:ZoomOutOutlined$1,RedoOutlined:RedoOutlined$1},props:{theme:{type:String,default:"light"}},setup(c,{expose:u}){const f=vue.ref(!1),d=vue.ref([]),h=vue.ref(!1),p=vue.ref(),v=vue.ref(!1),m=vue.ref(1),g=vue.computed(()=>c.theme),y=vue.computed(()=>m.value!==1?{transform:`scale(${m.value})`,transformOrigin:"left top"}:{}),x=async({data:Vn,indicatorUrl:zn,indicatorToken:Kn,context:Un,pageId:Qn})=>{var nr,sr;h.value=!0,f.value=!0;let Yn=[];const{graphicConfig:Zn,theFlag:Jn}=vue.unref(Vn)||{};if(Zn){const{leftAxisList:ur=[],rightAxisList:Hn=[],indicators:Wn=[]}=Zn,Rn=ur.concat(Hn).concat(Wn);Rn!=null&&Rn.length&&(Yn=Rn.map(qn=>({calcType:qn.calcType||"COLUMN",columnName:qn.name,hrpIndexCode:qn.indexCode,hrpIndexCodeNum:qn.indexCodeNum,label:qn.label,show:qn.show,formula:qn.formula})))}if(Yn!=null&&Yn.length)try{const ur=await request({url:`${vue.unref(zn)}/diagram/obtainIndicatorInfo`,method:"post",headers:{Authentication:Kn,operateContext:Un},data:{source:"INDICATOR_LIB",pageId:Qn,indicatorList:Yn,theFlag:Jn}}),Hn=((nr=ur==null?void 0:ur.data)==null?void 0:nr.data)||[];(sr=Hn[0])!=null&&sr.remark?(p.value=Hn[0].remark,d.value=[]):(p.value=null,d.value=Hn)}catch{}finally{h.value=!1}vue.nextTick(()=>{J(!0),j(!0)})},Pn=()=>document.querySelector("#ProviderConfig > #container")||document.body,b=vue.computed(()=>{let Vn="detail-modal";return v.value&&(Vn+=" full"),vue.unref(g)==="darkBlue"&&(Vn+=" darkBlue"),Vn}),J=Vn=>{const zn=document.querySelector(".detail-modal .ant-modal-header");zn&&(Vn?zn.addEventListener("dblclick",Fn):zn.removeEventListener("dblclick",Fn))},j=Vn=>{const zn=document.querySelector(".detail-modal .ant-modal-header");if(zn)if(Vn)zn.addEventListener("mousedown",vn);else{const Kn=zn.parentElement;Kn&&(Kn.style.left="",Kn.style.top=""),zn.removeEventListener("mousedown",vn)}};function vn(Vn){dragModalAction(Vn,".detail-modal .ant-modal-header")}const Fn=()=>{v.value=!v.value,vue.nextTick(()=>{v.value?j(!1):j(!0)})},Bn=()=>{v.value=!1,J(!1),j(!1)},w=()=>{m.value+=.5},re=()=>{vue.unref(m)>1&&(m.value-=.5)},gn=()=>{m.value=1};return u({showModal:x}),{visible:f,dataList:d,isLoading:h,hasOwn:mn,remarkData:p,wrapClassName:b,isIndFullScreen:v,infoStyle:y,indDetailZoom:m,getContainer:Pn,toggleFullScreen:Fn,onDetailCancel:Bn,handleZoomIn:w,handleZoomOut:re,handleResetZoom:gn}}}),IndicatorDetailModal_vue_vue_type_style_index_0_scoped_4fddc6ef_lang="",IndicatorDetailModal_vue_vue_type_style_index_1_lang="",_withScopeId$6=c=>(vue.pushScopeId("data-v-4fddc6ef"),c=c(),vue.popScopeId(),c),_hoisted_1$j=_withScopeId$6(()=>vue.createElementVNode("div",{class:"modal-title"},"指标详情",-1)),_hoisted_2$9={class:"zoom-btn"},_hoisted_3$5={key:0,class:"spin-container"},_hoisted_4$4=["innerHTML"],_hoisted_5$3={class:"index-name"},_hoisted_6$3={key:0,class:"card-row"},_hoisted_7$3=_withScopeId$6(()=>vue.createElementVNode("div",{class:"label"},"计量单位:",-1)),_hoisted_8$3={class:"content"},_hoisted_9$3={key:1,class:"card-row"},_hoisted_10$3=_withScopeId$6(()=>vue.createElementVNode("div",{class:"label"},"指标定义:",-1)),_hoisted_11$3={class:"content"},_hoisted_12$3={key:2,class:"card-row"},_hoisted_13$3=_withScopeId$6(()=>vue.createElementVNode("div",{class:"label"},"计算方法:",-1)),_hoisted_14$3={class:"content"},_hoisted_15$2={key:3,class:"card-row"},_hoisted_16$1=_withScopeId$6(()=>vue.createElementVNode("div",{class:"label"},"指标说明:",-1)),_hoisted_17$1={class:"content"};function _sfc_render$D(c,u,f,d,h,p){const v=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("redo-outlined"),g=vue.resolveComponent("zoom-out-outlined"),y=vue.resolveComponent("zoom-in-outlined"),x=vue.resolveComponent("switcher-outlined"),Pn=vue.resolveComponent("border-outlined"),b=vue.resolveComponent("a-spin"),J=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(J,{visible:c.visible,"onUpdate:visible":u[0]||(u[0]=j=>c.visible=j),width:"55%",getContainer:c.getContainer,footer:null,destroyOnClose:!0,bodyStyle:{maxHeight:c.isIndFullScreen?"":"70vh",height:c.isIndFullScreen?"100vh":"",overflow:"auto",padding:"20px 24px 24px"},"wrap-class-name":c.wrapClassName,onCancel:c.onDetailCancel},{title:vue.withCtx(()=>[_hoisted_1$j]),closeIcon:vue.withCtx(()=>[vue.createVNode(v,{class:vue.normalizeClass(["close-icon",c.theme])},null,8,["class"])]),default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$9,[c.indDetailZoom>1?(vue.openBlock(),vue.createBlock(m,{key:0,class:"modal-icon",title:"还原",onClick:c.handleResetZoom},null,8,["onClick"])):vue.createCommentVNode("",!0),c.indDetailZoom>1?(vue.openBlock(),vue.createBlock(g,{key:1,class:"modal-icon",title:"缩小内容",onClick:c.handleZoomOut},null,8,["onClick"])):vue.createCommentVNode("",!0),vue.createVNode(y,{class:"modal-icon",title:"放大内容",onClick:vue.withModifiers(c.handleZoomIn,["stop","prevent"])},null,8,["onClick"]),c.isIndFullScreen?(vue.openBlock(),vue.createBlock(x,{key:2,class:vue.normalizeClass(["modal-icon",c.theme]),title:"取消全屏",onClick:c.toggleFullScreen},null,8,["class","onClick"])):(vue.openBlock(),vue.createBlock(Pn,{key:3,class:vue.normalizeClass(["modal-icon",c.theme]),title:"全屏",onClick:c.toggleFullScreen},null,8,["class","onClick"]))]),c.isLoading?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$5,[vue.createVNode(b,{size:"large"})])):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"info-container",style:vue.normalizeStyle(c.infoStyle)},[c.remarkData?(vue.openBlock(),vue.createElementBlock("div",{key:0,innerHTML:c.remarkData},null,8,_hoisted_4$4)):c.dataList.length?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:1},vue.renderList(c.dataList,(j,vn)=>(vue.openBlock(),vue.createElementBlock("div",{class:"detail-wrap",key:vn},[vue.createElementVNode("div",_hoisted_5$3,vue.toDisplayString(j.indexName||"--"),1),c.hasOwn(j,"theUnit")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$3,[_hoisted_7$3,vue.createElementVNode("div",_hoisted_8$3,vue.toDisplayString(j.theUnit||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(j,"meaning")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_9$3,[_hoisted_10$3,vue.createElementVNode("div",_hoisted_11$3,vue.toDisplayString(j.meaning||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(j,"theFormula")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_12$3,[_hoisted_13$3,vue.createElementVNode("div",_hoisted_14$3,vue.toDisplayString(j.theFormula||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(j,"theExplain")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_15$2,[_hoisted_16$1,vue.createElementVNode("div",_hoisted_17$1,vue.toDisplayString(j.theExplain||"--"),1)])):vue.createCommentVNode("",!0)]))),128)):vue.createCommentVNode("",!0)],4))]),_:1},8,["visible","getContainer","bodyStyle","wrap-class-name","onCancel"])}const IndicatorDetailModal=_export_sfc$1(_sfc_main$y,[["render",_sfc_render$D],["__scopeId","data-v-4fddc6ef"]]),lineProps={...props,id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"}],titleText:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanLine",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,tooltipTextStyleColor:"",noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px",defaultRangeValue:!1,startValue:"",endValue:""},lineComponentProps=transformToComponentProps(lineProps),lineEvents=["click","refreshData","resetRecord"],useDownloadFile=async c=>{var g;const u=await request.post(c,{},{responseType:"blob"}),{data:f,headers:d}=u,h=d["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),p=new Blob([f]),v=document.createElement("a"),m=window.URL.createObjectURL(p);v.href=m,v.download=decodeURI(h),v.style.display="none",document.body.appendChild(v),v.click(),(g=v.parentNode)==null||g.removeChild(v),window.URL.revokeObjectURL(m)},modalProps={id:"",type:"ecanModal",title:"",titleFontSize:"14px",titleColor:"",width:"1000px",height:"800px",originalWidth:"1920px",originalHeight:"1080px",backgroundColor:"#fff",backgroundImage:"",backgroundSize:"100% 100%",keyName:"弹窗",componentList:[],fullModal:!1,destroyOnClose:!0,position:"default",closeBtnColor:"#333",isShowCloseBtn:!0,events:[],borderRadius:"0",borderWidth:"0px",borderColor:"",boxShadow:"0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05)",allComponentList:[],requestList:[],parentIframeId:"",banScale:!1},modalComponentProps=transformToComponentProps(modalProps),modalEvents=["showModal","hideModal"],containerType=["ecanBorder","ecanTabs","ecanCirculate"];function handleScrollCombinations(c){const{containerMap:u={},sourceList:f=[]}=c,d=lodashEs.cloneDeep(c.componentList),h=d.filter(p=>p.type==="ecanTabs"&&p.isAutoScroll);if(h!=null&&h.length)for(const p of h){const v=u[p.id],m=[];if((!mn(p,"componentList")||!(p!=null&&p.componentList))&&(p.componentList=[]),v){let g=0;for(const y in v){const x=v[y],Pn=[];if(x!=null&&x.length)for(const b of x){let J=d.find(j=>j.id===b);J||(J=f.find(j=>j.id===b)),J&&(Pn.push(J),containerType.includes(J.type)&&Pn.push(...getComponentByContainer(J.id,u,f)))}for(const b of Pn)mn(b,"scale")?parseFloat(y)>0&&(b.left=parseFloat(b.left)+g+"px"):(b.left=parseFloat(b.sourceLeft||b.left)-parseFloat(p.sourceLeft||p.left)+g+"px",b.top=parseFloat(b.sourceTop||b.top)-parseFloat(p.sourceTop||p.top)+"px"),m.includes(b.id)||m.push(b.id);p.componentList.push(...Pn),g=getMaxLeftInComponents(Pn)}}for(const g of m){const y=d.findIndex(x=>x.id===g);y!==-1&&d.splice(y,1)}}return d}function compatibleMobileList(c){var p,v;const{combinationMap:u={},sourceList:f=[]}=c,d=c.containerMap,h=lodashEs.cloneDeep([...c.componentList,...getTabsSomeComponentList(d,f)]);if(handleContainerMap(d,h),(p=Object.keys(d))!=null&&p.length||(v=Object.keys(u))!=null&&v.length){for(const b in d){const J=h.find(j=>j.id===b);if(J){mn(J,"parentId")||(J.parentId="",J.sourceLeft=J.left,J.sourceTop=J.top);for(const j in d[b])if(d[b][j])for(const vn of d[b][j]){const Fn=h.find(Bn=>Bn.id===vn);Fn&&(Fn.parentId=b,Fn.sourceLeft=Fn.left,Fn.sourceTop=Fn.top,Fn.left=parseFloat(Fn.left)-parseFloat(J.sourceLeft||J.left)+"px",Fn.top=parseFloat(Fn.top)-parseFloat(J.sourceTop||J.top)+"px")}}}const m=Array.from(new Set(h.filter(b=>(!mn(b,"parentId")||b.parentId==="")&&b.combinationId).map(b=>b.combinationId))),g=getCombinationList(m,{...c,componentList:h});g!=null&&g.length&&h.unshift(...g);const y=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],x=h.filter(b=>y.includes(b.type)&&!mn(b,"parentId")),Pn=[];for(const b of x)if(b){const J=b.id+"_vir";Pn.push({id:J,keyName:b.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:b.width,height:b.height,left:b.left,top:b.top,sourceLeft:b.left,sourceTop:b.top}),b.parentId=J,b.sourceLeft=b.left,b.sourceTop=b.top,b.left=0,b.top=0}Pn!=null&&Pn.length&&h.unshift(...Pn);for(const b of h){const J=document.body.clientWidth;if(b.parentId===""&&containerType.includes(b.type))b.sourceWidth=parseFloat(b.width),b.height=(J/(b.sourceWidth/parseFloat(b.height))).toFixed(2)+"px",b.width="100%",b.position="relative",b.top="auto",b.left="auto";else{const j=h.find(vn=>vn.id===b.parentId);if((j==null?void 0:j.parentId)===""){const vn=j.sourceWidth||parseFloat(j.width),Fn=J/vn;b.scale=Fn,b.top=parseFloat(b.top)*Fn-parseFloat(b.height)*(1-Fn)/2+"px",b.left=parseFloat(b.left)*Fn-parseFloat(b.width)*(1-Fn)/2+"px"}}b.type==="ecanModal"&&(b.parentId="",b.fullModal=!0)}return sortList(h)}return h}function handleContainerMap(c,u){const f=lodashEs.cloneDeep(c),d=u.filter(h=>h.type==="ecanTabs"&&h.isAutoScroll);if(d!=null&&d.length)for(const h of d){const p=f[h.id];for(const v in p)for(const m of p[v]){const g=u.find(y=>y.id===m);if(g&&containerType.includes(g.type)){const y=getComponentByContainer(g.id,f,u);for(const x of y)c[h.id][v].push(x.id),containerType.includes(x.type)&&delete c[x.id];delete c[g.id]}}}}function getTabsSomeComponentList(c,u){const f=[],d=u.filter(h=>h.type==="ecanTabs"&&h.isAutoScroll);if(d!=null&&d.length)for(const h of d){const p=c[h.id];for(const v in p)if(parseFloat(v)>0)for(const m of p[v]){const g=u.find(y=>y.id===m);g&&(f.push(g),containerType.includes(g.type)&&f.push(...getComponentByContainer(g.id,c,u)))}}return f}function getComponentByContainer(c,u,f){const d=[],h=u[c];for(const p in h)for(const v of h[p]){const m=f.find(g=>g.id===v);m&&(d.push(m),containerType.includes(m.type)&&d.push(...getComponentByContainer(m.id,u,f)))}return d}function getCombinationList(c,u,f){const{combinationMap:d={},componentList:h=[]}=u,p=[];for(const v of c){const m=d[v];if(m!=null&&m.length){const g=h.filter(y=>m.includes(y.id));if(g!=null&&g.length){const y=getCombinateRect(g);if(y){p.push({...y,id:v,keyName:v,parentId:f||"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:y.left,sourceTop:y.top});for(const x of g)x&&(x.parentId=v,x.sourceLeft=x.left,x.sourceTop=x.top,x.left=parseFloat(x.left)-parseFloat(y.left)+"px",x.top=parseFloat(x.top)-parseFloat(y.top)+"px")}}}}return p}function sortList(c){const f=c.filter(d=>d.parentId==="");if(f!=null&&f.length){const d=lodashEs.cloneDeep(f).map(h=>({...h,sourceTop:parseFloat(h.sourceTop),sourceLeft:parseFloat(h.sourceLeft)}));for(let h=0;h<d.length-1;h++)for(let p=0;p<d.length-h-1;p++){let v=!1;if((d[p].sourceTop-d[p+1].sourceTop>50||Math.abs(d[p+1].sourceTop-d[p].sourceTop)<=50&&d[p].sourceLeft>d[p+1].sourceLeft)&&(v=!0),v){const m=d[p];d[p]=d[p+1],d[p+1]=m}}for(const h of d){const p=c.findIndex(v=>v.id===h.id);p!==-1&&c.splice(p,1)}return[...d,...c]}return c}function getCombinateRect(c){const u=c.sort((p,v)=>parseFloat(p.top)-parseFloat(v.top))[0],f=c.sort((p,v)=>parseFloat(p.left)-parseFloat(v.left))[0],d=c.map(p=>({...p,computedTop:parseFloat(p.top)+parseFloat(p.height)})).sort((p,v)=>v.computedTop-p.computedTop)[0],h=c.map(p=>({...p,computedLeft:parseFloat(p.left)+parseFloat(p.width)})).sort((p,v)=>v.computedLeft-p.computedLeft)[0];return u&&f&&d&&h?{left:f.left,top:u.top,width:h.computedLeft-parseFloat(f.left)+"px",height:d.computedTop-parseFloat(u.top)+"px"}:null}function getMaxLeftInComponents(c){const u=c.map(f=>parseFloat(f.left)+parseFloat(f.width)).sort((f,d)=>d-f)[0];return u||0}function moveToComponentList(c,u,f){const d=c[f],h=[];if(d)for(const p in d){const v=d[p];for(const m of v){const g=u.find(y=>y.id===m);g&&(h.push(g),containerType.includes(g.type)&&h.push(...getComponentByContainer(g.id,c,u)))}}return h}const _sfc_main$x=vue.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(c,{emit:u}){u("ready",c.component.id)}});function _sfc_render$C(c,u,f,d,h,p){return c.component.parentId?(vue.openBlock(),vue.createBlock(vue.Teleport,{key:0,to:"#container_"+c.component.parentId},[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(c.component.type),vue.mergeProps({style:{scale:c.component.scale}},c.component),null,16,["style"]))],8,["to"])):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(c.component.type),vue.normalizeProps(vue.mergeProps({key:1},c.component)),null,16))}const Render=_export_sfc$1(_sfc_main$x,[["render",_sfc_render$C]]),EcanRender=withInstall$1(Render),_sfc_main$w=vue.defineComponent({name:"EcanModal",components:{AModal:antDesignVue.Modal,CloseOutlined:CloseOutlined$1,Render:EcanRender},props:{...modalComponentProps},setup(c,{emit:u}){const f=vue.ref([]),d=vue.inject("isMobile",!1),h=vue.computed(()=>c.fullModal),p=vue.inject("getContainerMap",()=>{}),v=vue.inject("getCombinationMap",()=>{}),{clearInteractiveData:m,interactiveData:g,setRequestData:y}=vue.inject(GLOBAL_MODEL,{setRequestData:(hr,yr)=>{},clearInteractiveData:()=>{},interactiveData:null}),x=()=>document.getElementById("ProviderConfig")||document.body,Pn=vue.computed(()=>{const hr=c.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[hr]}}),b=c.fullModal?"1920px":c.width,J=c.fullModal?"1080px":c.height,j=c.originalWidth,vn=c.originalHeight,Fn=vue.ref("80%"),Bn=vue.ref(0),w=vue.ref(),re=vue.ref(0),gn=vue.ref({}),Vn=usePickComponentStyle(c),zn=vue.ref({}),Kn=vue.ref(!1),Un=vue.ref();let Qn;const Yn=()=>{w.value=parseFloat(b)/parseFloat(j);const hr=parseFloat(J)/parseFloat(vn),yr=document.body.offsetWidth,_r=document.body.offsetHeight;if(Bn.value=yr*vue.unref(w),re.value=_r*hr,Fn.value=`${vue.unref(w)*100}%`,gn.value={width:`${vue.unref(Bn)}px`,height:`${vue.unref(re)}px`,border:`${c.borderWidth} solid ${c.borderColor}`,borderRadius:c.borderRadius+"px",boxShadow:c.boxShadow},zn.value={...vue.unref(Vn),backgroundImage:useImagePath(c.backgroundImage,!0)},d)zn.value={...zn.value,width:"100%",height:"100%"};else{const gr={...zn.value,width:b,height:J};c.banScale&&vue.unref(h)?(gr.width="100%",gr.height="100%"):gr.transform=`scale(${vue.unref(Bn)/parseFloat(b)},${vue.unref(re)/parseFloat(J)})`,zn.value=gr}},Zn=lodashEs.debounce(()=>{Yn()},100),Jn=()=>{const hr=window.MutationObserver;Qn=new hr(Zn),Qn.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},nr=()=>{Qn&&(Qn.disconnect(),Qn.takeRecords(),Qn=null)},sr=vue.ref(!1),{touchRequest:ur}=vue.inject(REQUEST_MODEL,{touchRequest:()=>{}}),Hn=vue.ref(""),Wn=()=>{var _r;const{title:hr}=c,yr=(_r=vue.unref(g))==null?void 0:_r.RECORD;return yr?hn(hr,{textData:yr},{useNewline:!1,useSpace:!1}):hr},Rn=useEmitEvent(c),qn=hr=>{const{changeIframeStyle:yr}=window.parent;yr&&typeof yr=="function"&&yr({iframeId:c.parentIframeId||"",action:hr})},Xn=()=>{vue.unref(h)&&qn("open"),d&&(document.documentElement.style.overflow="hidden"),Hn.value=Wn(),sr.value=!0},Gn=Rn("hideModal",()=>{vue.unref(h)&&qn("close"),u("close"),d&&(document.documentElement.style.overflow="hidden auto",f.value=[]),sr.value=!1}),tr=()=>{Gn()},cr=()=>{Gn(),m()},{setModalModel:ir,pushUseModalIds:er,popUseModalIds:pr}=vue.inject(MODAL_MODEL,{pushUseModalIds:hr=>{},popUseModalIds:()=>{},setModalModel:(hr,yr)=>{}}),lr=vue.computed(()=>{let hr=c.componentList;const yr=lodashEs.cloneDeep(c.componentList),_r=p(),gr=v(),br={containerMap:_r,combinationMap:gr};d&&(hr=compatibleMobileList({...br,componentList:yr,sourceList:c.allComponentList})),hr=handleScrollCombinations({...br,componentList:hr,sourceList:c.allComponentList});const Er=[];for(const Mr of hr)if(Mr.type==="ecanCirculate"){const Ir=moveToComponentList(_r,vue.unref(yr),Mr.id);Mr.componentList=Ir,Er.push(...Ir.map(Or=>Or.id))}if(Er!=null&&Er.length)for(const Mr of Er){const Ir=hr.findIndex(Or=>Or.id===Mr);Ir!==-1&&hr.splice(Ir,1)}return hr}),ar=()=>{const hr=c.id;let yr=[];const _r=c.componentList;Array.isArray(_r)&&(yr=_r.map(gr=>gr.id),ir(hr,[...new Set(yr)]))},or=vue.ref(!1),vr={};for(const hr of c.requestList)vr[hr.requestName]=useRequestData(hr);vue.watch(()=>sr.value,async hr=>{if(hr)Kn.value=!1,er(c.id),ar(),await vue.nextTick(()=>{Yn(),window.addEventListener("resize",Zn),Jn(),Kn.value=!0}),ur();else{if(y)for(const yr in vr)y(yr,{});pr(),window.removeEventListener("resize",Zn),nr()}});const fr=vue.computed(()=>vue.unref(w)>=1),mr=vue.computed(()=>{let hr="ecan-modal";return vue.unref(fr)&&(hr+=" ecan-full-width-modal"),vue.unref(h)&&(hr+=" ecan-full-modal"),hr});return useOnEvent(c,{showModal:Xn,hideModal:Gn}),{modalRef:Un,containStyle:gn,contentStyle:zn,getContainer:x,modalStyle:Pn,modalWith:Fn,isFullModal:h,style:Vn,visible:sr,showModal:Xn,onOk:tr,onCancel:cr,isFullWidth:fr,wrapClassName:mr,ready:Kn,usedComponentList:lr,isMobile:d,readyIds:f,hasOwn:mn,onComponentReady:hr=>{f.value.push(hr)},formatTitle:Hn,requestLoaded:or}}}),Modal_vue_vue_type_style_index_0_scoped_d34efac2_lang="",Modal_vue_vue_type_style_index_1_lang="";function _sfc_render$B(c,u,f,d,h,p){const v=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("render"),g=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(g,{getContainer:c.getContainer,wrapClassName:c.wrapClassName,centered:"",visible:c.visible,footer:null,width:c.isFullModal||c.isFullWidth?"100%":c.modalWith,destroyOnClose:c.destroyOnClose,style:vue.normalizeStyle(c.modalStyle),closable:!1,onOk:c.onOk,onCancel:c.onCancel,ref:"modalRef",id:"container_"+c.id},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"contain",ref:"containRef",style:vue.normalizeStyle(c.containStyle)},[c.ready?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"content",style:vue.normalizeStyle(c.contentStyle)},[vue.createElementVNode("div",{class:"header-bar",style:vue.normalizeStyle({backgroundColor:c.backgroundColor,padding:"20px 30px",height:c.isMobile?"62px":""})},[c.formatTitle?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"ant-modal-title",style:vue.normalizeStyle({fontSize:c.titleFontSize,color:c.titleColor})},vue.toDisplayString(c.formatTitle),5)):vue.createCommentVNode("",!0),c.isShowCloseBtn?(vue.openBlock(),vue.createBlock(v,{key:1,class:"close-icon",style:vue.normalizeStyle({color:c.closeBtnColor}),onClick:c.onCancel},null,8,["style","onClick"])):vue.createCommentVNode("",!0)],4),c.usedComponentList.length?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(c.isMobile?"mobile-wrap":"")},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.usedComponentList,(y,x)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:y.id+x},[c.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[c.hasOwn(y,"parentId")&&(c.readyIds.includes(y.parentId)||y.parentId==="")?(vue.openBlock(),vue.createBlock(m,{key:0,component:y,onReady:c.onComponentReady},null,8,["component","onReady"])):vue.createCommentVNode("",!0)],64)):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(y.type),vue.normalizeProps(vue.mergeProps({key:1},y)),null,16))],64))),128))],2)):vue.renderSlot(c.$slots,"default",{key:1},void 0,!0)],4)):vue.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel","id"])}const Modal=_export_sfc$1(_sfc_main$w,[["render",_sfc_render$B],["__scopeId","data-v-d34efac2"]]),EcanModal=withInstall$1(Modal);core$1.use([renderers.CanvasRenderer,charts.LineChart,components$1.ToolboxComponent,components$1.TitleComponent,components$1.LegendComponent,components$1.MarkLineComponent]);const _sfc_main$v=vue.defineComponent({name:"EcanLine",props:{...lineComponentProps},components:{Spin,Echarts,EcanModal},setup(c,{expose:u}){const f=vue.ref(!1),{pageMode:d,fontFamily:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),p=vue.inject("showIndDetail",Xn=>{}),v=vue.inject("usedComponentList",[]),m=vue.ref(),g=vue.ref(!1),y=usePickComponentStyle(c),x=vue.ref([]),Pn=vue.ref([]),b=vue.ref(),J=vue.computed(()=>g.value?ZOOM_FONT_SIZE:12),j=vue.ref({});let vn;const Fn=vue.ref([]),Bn=vue.computed(()=>{const Xn=c.xAxisLabelFormatter,Gn=c.yAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(h)},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,orient:c.toolboxOrient,feature:{myDownload:{show:c.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(){useDownloadFile(c.toolboxDownloadUrl)}},myDataZoom:{show:g.value?!1:c.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 tr;g.value=!0,(tr=b.value)==null||tr.showModal()}},myInfo:{show:c.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(){p(c)}}}},title:{text:c.titleText,subText:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},grid:{top:c.gridTop,bottom:c.gridBottom,left:c.gridLeft,right:c.gridRight,containLabel:c.gridContainLabel},color:c.colors,tooltip:{trigger:"axis",textStyle:{fontSize:J.value,color:c.tooltipTextStyleColor},show:c.tooltipShow,formatter:tr=>{var pr;const cr=tr.length;let ir="",er=c.tooltipFormatter;vn=(pr=tr[0])==null?void 0:pr.data,er===""&&(er="{marker} {a} {c}");for(let lr=0;lr<cr;lr++){const{marker:ar,seriesName:or,name:vr,value:fr,data:mr}=tr[lr]||{};if(lr===0){let dr=vr;typeof vr=="string"&&vr[0]==="0"&&!isNaN(+vr)&&(dr=(+vr).toString()),ir+=`${In(Xn,dr)}<br/>`}ir+=hn(er,{textData:{marker:ar,name:vr,value:fr,a:or,b:vr,c:fr||0,...mr}},{useNewline:!0,useSpace:!0}),ir+="<br/>"}return ir},position:c.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:c.isBoundaryGap,data:vue.unref(Pn).map(tr=>{let cr={};return tr&&typeof tr=="object"?cr={...tr}:cr={value:tr},cr}),minInterval:c.xAxisMinInterval,splitLine:{show:c.xAxisSplitLineShow,lineStyle:{color:c.xAxisSplitLineStyleColor},interval:c.xAxisSplitLineInterval},splitArea:{show:c.xAxisSplitAreaShow},axisLabel:{show:c.xAxisLabelShow,color:c.xAxisLabelColor,interval:c.xAxisLabelInterval||0,rotate:c.xAxisLabelRotate,width:c.xAxisLabelWidth,overflow:c.xAxisLabelOverflow,fontSize:c.xAxisLabelFontSize,formatter(tr){return typeof tr=="string"&&tr[0]==="0"&&!isNaN(+tr)&&(tr=(+tr).toString()),In(Xn,tr)}},axisLine:{show:c.xAxisLineShow,lineStyle:{color:c.xAxisLineStyleColor}},axisTick:{show:c.xAxisTickShow},name:c.xAxisName,nameTextStyle:{fontSize:c.xAxisLabelFontSize,color:c.xAxisLabelColor,align:"left"},max:c.xAxisMaxValue||null},yAxis:{type:"value",minInterval:c.yAxisMinInterval,splitLine:{show:c.yAxisSplitLineShow,lineStyle:{color:c.yAxisSplitLineStyleColor,type:c.yAxisSplitLineType}},splitArea:{show:c.yAxisSplitAreaShow},axisLabel:{show:c.yAxisLabelShow,fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,formatter(tr){return In(Gn,tr)}},axisLine:{show:c.yAxisLineAlwaysDisplay,lineStyle:{color:c.yAxisLineStyleColor}},name:c.yAxisName,nameTextStyle:{fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,align:"right"},max:c.yAxisMaxValue||null},legend:{type:c.legendScroll?"scroll":"plain",width:c.legendWidth,height:c.legendHeight,show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,textStyle:{lineHeight:(g.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:g.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:vue.unref(Fn).map(tr=>({name:tr.name,icon:c.legendType})),formatter:tr=>getLegendFormat(c.legendFormatter,{name:tr})},series:vue.unref(x)}}),w=()=>{g.value=!1},{getGlobalModel:re,setGlobalModel:gn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Xn=>{},setGlobalModel:(Xn,Gn)=>{}}),Vn=vue.computed(()=>c.isShowMarkLine?{markLine:{data:[{type:c.markLineType}]}}:{}),zn=(Xn=[],Gn=!1)=>{var pr;let tr;if(c.dataFieldConfigType==="key"){const lr=Gn?c.keyTypeDataFieldNames:null;tr=Mn(Xn,lr)}else if(c.dataFieldConfigType==="value"){const lr=Gn?c.valueTypeDataFieldNames:null;tr=En(Xn,lr)}Pn.value=tr.dimensions,Fn.value=tr.dataset;const cr=tr.dataset,ir=[],er=cr.length;for(let lr=0;lr<er;lr++){const ar={};c.shadowColor&&(ar.shadowColor=c.shadowColor,ar.shadowBlur=c.shadowBlur,ar.shadowOffsetY=c.shadowOffsetY,ar.shadowOffsetX=c.shadowOffsetX),ir.push({type:"line",...cr[lr],symbolSize:c.symbolSize,smooth:c.smooth,areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:c.colors[lr]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[lr],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...ar},...vue.unref(Vn)})}x.value=ir,(pr=tr.dataset)!=null&&pr.length?f.value=!1:f.value=!0},Kn=(Xn=[],Gn,tr=!1)=>{var ar,or,vr;const ir=Mn(Xn,tr?Gn:null,!0);if(c.defaultRangeValue&&setDefaultRangeVal({props:c,componentList:vue.unref(v),getGlobalModel:re},ir),(ar=ir.dataset)!=null&&ar.length){for(const fr of ir.dataset)if((or=fr.data)!=null&&or.length)for(const mr of fr.data)(mr.value===null||mr.value===void 0)&&(mr.value=0)}Pn.value=ir.dimensions,Fn.value=ir.dataset;const er=ir.dataset,pr=[],lr=er.length;for(let fr=0;fr<lr;fr++){const mr={};c.shadowColor&&(mr.shadowColor=c.shadowColor,mr.shadowBlur=c.shadowBlur,mr.shadowOffsetY=c.shadowOffsetY,mr.shadowOffsetX=c.shadowOffsetX),pr.push({type:"line",...er[fr],symbolSize:c.symbolSize,smooth:c.smooth,areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:c.colors[fr]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[fr],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...mr},...vue.unref(Vn)})}x.value=pr,(vr=ir.dataset)!=null&&vr.length?f.value=!1:f.value=!0};vue.watch(()=>[c.data,c.symbolSize,c.smooth,c.lineStyleWidth,c.areaStyleOpacity,c.areaGradientShow,c.areaGradientColor,c.shadowColor,c.shadowBlur,c.shadowOffsetY,c.shadowOffsetX,c.legendFontSize,c.isShowMarkLine,c.markLineType,c.legendFormatter,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll],([Xn])=>{(c.dataType==="static"||vue.unref(d)==="design")&&zn(Xn)},{immediate:!0,deep:!0});const Un=vue.ref(!1),Qn=useRequestData(c),Yn=async()=>{var Xn,Gn;if(c.dataType==="request")try{Un.value=!0;const tr=await Qn();zn((Gn=(Xn=tr==null?void 0:tr.data)==null?void 0:Xn.data)==null?void 0:Gn.rows,!0)}catch(tr){console.error(tr)}finally{Un.value=!1}},Zn=useEmitEvent(c);gn(c.id,{type:c.type,RECORD:""});const Jn=Zn("click",Xn=>{const Gn=re(c.id);gn(c.id,{...Gn,type:c.type,RECORD:c.tooltipShow?vn:Xn.data})}),nr=Xn=>{m.value.chart.containPixel("grid",[Xn.offsetX,Xn.offsetY])&&Jn()};c.tooltipShow?j.value["zr:click"]=nr:j.value.click=Jn;const sr=Xn=>{var pr;const{columns:Gn=[],rows:tr=[]}=((pr=Xn==null?void 0:Xn.data)==null?void 0:pr.data)??{};let cr;Gn.length>0&&(cr={name:Gn[0],types:Gn.slice(1).map(lr=>({label:lr,value:lr}))});const{leftAxisList:ir=[]}=c.graphicConfig,er=ir.filter(lr=>lr.show).map(lr=>lr.label);for(const lr of tr)if(lr)for(const ar in lr)typeof lr[ar]=="string"&&er.includes(ar)&&!isNaN(parseFloat(lr[ar]))&&(lr[ar]=parseFloat(lr[ar]));Kn(tr,cr,!0)},ur=useIndicatorData(c,Xn=>{c.isViewRedrawing&&m.value.clear(),sr(Xn)}),Hn=async()=>{try{Un.value=!0;const Xn=await ur();sr(Xn)}catch(Xn){console.error(Xn)}finally{Un.value=!1}},Wn=async()=>{switch(c.dataType){case"indicator":await Hn();break;case"request":await Yn();break}};useOnEvent(c,{refreshData:Wn,resetRecord:()=>{const Xn=c.id,Gn=re(Xn);gn(Xn,{...Gn,RECORD:""})},click:Jn});const{setRequest:qn}=vue.inject(REQUEST_MODEL,{setRequest:Xn=>{}});return typeof qn=="function"&&qn({id:c.id,requestFn:Wn,sortNum:c.requestSort}),u({refreshData:Wn}),{option:Bn,style:y,click:Jn,loading:Un,onClose:w,ecanModal:b,eventObj:j,echartRef:m,emptyData:f}}}),Line_vue_vue_type_style_index_0_lang="",Line_vue_vue_type_style_index_1_scoped_dd12eb06_lang="";function _sfc_render$A(c,u,f,d,h,p){const v=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[c.noDataTip&&c.emptyData?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"empty-wrap",style:vue.normalizeStyle({color:c.tipTextColor,fontSize:c.tipTextFontSize})},[vue.createElementVNode("span",null,vue.toDisplayString(c.tipText),1)],4)):(vue.openBlock(),vue.createBlock(v,vue.mergeProps({key:1,ref:"echartRef",option:c.option,autoresize:""},vue.toHandlers(c.eventObj)),null,16,["option"]))]),_:1},8,["spinning"]),vue.createVNode(g,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:c.onClose},{default:vue.withCtx(()=>[vue.createVNode(m,{class:"spin-wrap",spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(v,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Line=_export_sfc$1(_sfc_main$v,[["render",_sfc_render$A],["__scopeId","data-v-dd12eb06"]]),EcanLine=withInstall$1(Line),_sfc_main$u=vue.defineComponent({name:"TrendModal",components:{EcanLine},setup(c,{expose:u}){const f=vue.ref(!1),d=vue.ref(),h=vue.ref(),p=async({data:m,pageConfig:g,unitText:y})=>{var x,Pn;if(m){const b=nanoid(6),J={source:"INDICATOR_LIB",dataSourceId:"",idxLibMode:"",classificationList:[{id:"3f5bda70a08a442085857adb7fc547de",indexCode:null,indexCodeNum:null,title:"日期",name:"the_date",label:"日期",typeGuid:"the_date",genericType:"DATE",hrpIndexComplexid:"the_date",scope:"BUILT_IN_DIM",fromTable:"hrp_index_complex",parentId:"3f5bda70a08a442085857adb7fc547de",show:!0,edit:!1,dataTo:"0",dateFormat:"YYYY-MM",dataSetParams:{}}],leftAxisList:((x=m==null?void 0:m.graphicConfig)==null?void 0:x.indicators)||[],controlList:((Pn=m==null?void 0:m.graphicConfig)==null?void 0:Pn.controlList)||[]};d.value={...lodashEs.cloneDeep(lineProps),id:b,keyName:`折线图_${b}`,position:"relative",top:0,left:0,width:parseFloat(g.width)*.57+"px",height:parseFloat(g.height)*.4+"px",dataType:"indicator",tooltipFormatter:"{marker} {a} {c}"+y,xAxisLabelRotate:45,graphicConfig:J},f.value=!0,vue.nextTick(()=>{vue.unref(h).refreshData()})}},v=()=>document.querySelector("#ProviderConfig > #container")||document.body;return u({showModal:p}),{visible:f,componentConfig:d,lineRef:h,getContainer:v}}}),TrendModal_vue_vue_type_style_index_0_scoped_d11ce019_lang="",_withScopeId$5=c=>(vue.pushScopeId("data-v-d11ce019"),c=c(),vue.popScopeId(),c),_hoisted_1$i=_withScopeId$5(()=>vue.createElementVNode("div",{class:"modal-title"},"趋势图",-1));function _sfc_render$z(c,u,f,d,h,p){const v=vue.resolveComponent("ecan-line"),m=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(m,{visible:c.visible,"onUpdate:visible":u[0]||(u[0]=g=>c.visible=g),width:"60%",getContainer:c.getContainer,footer:null,destroyOnClose:!0,bodyStyle:{maxHeight:"60vh",overflow:"auto",padding:"20px 24px 24px"}},{title:vue.withCtx(()=>[_hoisted_1$i]),default:vue.withCtx(()=>[c.componentConfig?(vue.openBlock(),vue.createBlock(v,vue.mergeProps({key:0},c.componentConfig,{ref:"lineRef"}),null,16)):vue.createCommentVNode("",!0)]),_:1},8,["visible","getContainer"])}const TrendModal=_export_sfc$1(_sfc_main$u,[["render",_sfc_render$z],["__scopeId","data-v-d11ce019"]]),_sfc_main$t=vue.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,components:{ATable:antDesignVue.Table,BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1,CloseOutlined:CloseOutlined$1,IndicatorDetailModal,TrendModal},props:{...providerConfigComponentProps,pageId:{type:String,default:""},customId:{type:String,default:"ProviderConfig"},fixedHeight:{type:String,default:"0px"}},setup(c,{expose:u,emit:f}){c.pageId||useHrefParamsToGlobalVariables();const d=.57,h=.6,p=.97,v=.9,m=vue.ref(),g=vue.ref(),y=vue.computed(()=>INDICATOR_URL),x=vue.computed(()=>hn(c.contextRequestUrl)),Pn=vue.computed(()=>c.pageMode),b=vue.computed(()=>c.theme),J=vue.computed(()=>c.width),j=vue.computed(()=>c.height),vn=vue.computed(()=>c.pageFontFamily),Fn=vue.computed(()=>c.fixedHeight?parseFloat(c.fixedHeight):0),Bn=vue.computed(()=>c.isCompatible),w=vue.computed(()=>c.variableList),re=vue.computed(()=>!!navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)),gn=vue.ref(),Vn=vue.ref({}),zn=vue.ref(),Kn=vue.ref(!1),Un=vue.ref(!1),Qn=vue.ref([]),Yn=vue.ref([]),Zn=vue.ref({}),Jn=()=>{gn.value.setAttribute("datav-theme",c.theme)},nr=vue.ref({currentYmd:dayjs().format("YYYY-MM-DD"),currentYear:dayjs().format("YYYY"),currentMonth:dayjs().format("MM"),currentDay:dayjs().format("DD")}),sr=vue.computed(()=>{const xr={};if(vue.unref(w))for(const Cr of vue.unref(w))xr[Cr.label]=Cr.value;return{$page:{...vue.unref(nr),...xr}}}),ur=vue.computed(()=>{let xr="ind-detail-modal";return Kn.value&&(xr+=" full"),vue.unref(b)==="darkBlue"&&(xr+=" darkBlue"),xr});vue.provide(GLOBAL_VARIABLE,{globalVariable:sr});const Hn=vue.inject("usedComponentList",[]),Wn=vue.inject("componentList",[]);vue.watch(sr,()=>{f("setGlobalVar",vue.unref(nr))},{deep:!0,immediate:!0});const Rn=vue.computed(()=>{const xr=[];for(const wr of vue.unref(Hn))wr.type==="ecanModal"?xr.push(...wr.componentList):xr.push(wr);return xr});vue.watch(()=>c.theme,()=>{Jn()}),vue.onMounted(()=>{Jn()});const qn=vue.computed(()=>{const xr=[],wr=vue.unref(Wn).filter(Cr=>Cr.type==="ecanModal");for(const Cr of wr)Cr!=null&&Cr.requestList&&xr.push(...Cr.requestList);return[...xr,...c.requestList]}),Xn=xr=>Object.prototype.toString.call(xr)==="[object Object]",Gn=xr=>{const wr=xr.split(".");let Cr=vue.unref(sr);for(const Ar of wr)if(Cr&&Xn(Cr))Cr=Cr[Ar];else{Cr="";break}return Cr},tr=vue.ref("");vue.provide(GLOBAL_CONFIG,{contextRequestUrl:x,pageMode:Pn,theme:b,touchEventId:tr,width:J,height:j,fontFamily:vn,requestList:qn,isCompatible:Bn,fixedHeight:Fn,getGlobalVar:Gn});const cr=vue.ref({height:"100%",overflow:c.pageMode==="design"?"":"hidden"});vue.provide("setPageHeight",xr=>{let wr=0;xr==="auto"?wr=xr:(wr=xr.heightScale,Zn.value=xr),(!Bn.value||!re.value)&&(wr=parseFloat(j.value)*wr+"px"),cr.value.height=wr}),vue.provide("isMobile",re.value),vue.provide("getContainerMap",()=>c.containerMap),vue.provide("getCombinationMap",()=>c.combinationMap),vue.provide("templateOperate",{pageId:c.pageId,templateEmit:f,setTemplateData:xr=>{var wr;if(xr!=null&&xr.pageId){const{componentId:Cr,...Ar}=xr;(wr=window.config)!=null&&wr.urlParams||(window.config.urlParams={}),window.config.urlParams[xr.pageId]=Ar,f("templateChange",xr)}}});const ir=vue.ref(),er=new Map,pr=()=>er,lr=xr=>{let wr=er.get(xr);if(!wr){const Cr=vue.unref(Wn).find(Ar=>Ar.keyName===xr);Cr&&(wr=er.get(Cr.id))}return wr},ar=(xr,wr)=>{var Cr;if(ir.value=wr,er.set(xr,wr),!c.pageId){const Ar=vue.unref(Hn).find(Tr=>Tr.id===xr);Ar&&((Cr=window.config)!=null&&Cr.record||(window.config.record={}),window.config.record[Ar.keyName]=wr)}},or=()=>{ir.value=null},vr=xr=>{let wr=xr;if(wr){const Cr=xr.match(/\{(.+?)\}/g);if(Cr!=null&&Cr.length){let Ar=Cr[0].slice(1,-1).trim();const Tr=Ar.match(/\[(.+?)\]/g);let Dr="";Tr!=null&&Tr.length&&(Ar=Ar.replace(Tr[0],""),Dr=Tr[0].slice(1,-1).trim());const Lr=vue.unref(Rn).find($r=>$r.keyName===Ar);if(Lr){const $r=lr(Lr.id),{type:qr,value:Wr,RECORD:jr,recordData:Kr}=$r||{};yn(qr,MODEL_KEY_LIST)?wr=jr[Dr]:yn(qr,"select")?Kr[Dr]?wr=Kr[Dr]:wr=vue.unref(Wr):yn(qr,["rangePicker","date"])?dayjs.isDayjs(vue.unref($r[Dr]))?wr=vue.unref($r[Dr]).format($r.format):wr=vue.unref($r[Dr]):wr=Wr}else{const $r=window.config.requestParams||{},qr=window.location.search.slice(1).split("&"),Wr={};for(const Kr of qr)if(Kr!=null&&Kr.includes("=")){const Xr=Kr.split("=");Wr[Xr[0]]=Xr[1]||""}wr={...Wr,...$r}[Ar]||""}}}return wr},fr=new Map,mr={},dr=async(xr,wr)=>{var Lr;const{requestName:Cr}=xr,Ar=await useRequestData({...xr,projectRequestUrl:vue.unref(x),getModel:lr})(),Tr=((Lr=Ar==null?void 0:Ar.data)==null?void 0:Lr.data)||{};xr.requestKeyName&&(nr.value[xr.requestKeyName]=Tr);const Dr=fr.get(Cr);if(Dr!=null&&Dr.length&&(!wr||mr[Cr])){for(const $r of Dr)$r(Tr);wr||fr.delete(Cr)}},hr=(xr,wr)=>{mr[xr]&&(clearInterval(mr[xr]),delete mr[xr],fr.delete(xr));const Cr=vue.unref(Rn).filter(Tr=>Tr.dataType==="request"&&!Tr.openCustomRequestData&&Tr.customRequestName===xr),Ar=fr.get(xr)||[];if((Cr==null?void 0:Cr.length)>Ar.length&&(Ar.push(wr),fr.set(xr,Ar),(Cr==null?void 0:Cr.length)===Ar.length)){const Tr=vue.unref(qn).find(Dr=>Dr.requestName===xr);Tr&&(Tr!=null&&Tr.isOpenRequestTimer&&(Tr!=null&&Tr.requestInterval)?(dr(Tr,!0),mr[xr]=setInterval(()=>{dr(Tr,!0)},Tr.requestInterval*1e3)):dr(Tr))}};vue.provide(GLOBAL_MODEL,{getGlobalModel:lr,setGlobalModel:ar,getAllGlobalModel:pr,clearInteractiveData:or,getRecordValueByKeyName:vr,hanldePageRequestData:hr,interactiveData:ir});const yr=vue.ref({}),_r=(xr,wr)=>{yr.value[xr]=wr};vue.provide(LOADED_DATA,{loadedData:yr,setLoadedData:_r});const gr=[],br=()=>{gr.pop()},Er=xr=>{gr.push(xr)},Mr=new Map,Ir=xr=>Mr.get(xr),Or=(xr,wr)=>{Mr.set(xr,wr)};vue.provide(MODAL_MODEL,{popUseModalIds:br,pushUseModalIds:Er,getModalModel:Ir,setModalModel:Or});const Rr=mitt(),Nr=new Set,zr=(xr,wr)=>{Nr.add(xr),Rr.on(xr,Cr=>{const{eventName:Ar,params:Tr}=Cr;return typeof wr[Ar]=="function"&&wr[Ar](Tr)}),vue.onBeforeUnmount(()=>{Fr(xr)})},Fr=xr=>{Nr.delete(xr),Rr.off(xr)},Vr=(xr,wr,Cr={})=>{if(xr==="PAGE"){const Ar=gr.length;let Tr=[];if(Ar===0)Tr=[...Nr];else{const Dr=gr[Ar-1];Tr=[...Ir(Dr)]}Tr.forEach(Dr=>{Rr.emit(Dr,{eventName:wr,params:Cr})})}else Rr.emit(xr,{eventName:wr,params:Cr})};vue.provide(EVENT_BUS,{onEvent:zr,offEvent:Fr,emitEvent:Vr});const Gr=vue.ref(0),Hr=()=>{Gr.value=vue.unref(Gr)+1};vue.provide(GLOBAL_TOKEN,{requestToken:Hr});const Ur=new Map,Yr=new Map,Qr=({requestFn:xr=()=>{},sortNum:wr=0,id:Cr=""})=>{if(Ur.has(wr)){const Ar=Ur.get(wr);Ar==null||Ar.push(xr)}else Ur.set(wr,[xr]);Yr.set(Cr,xr)},ri=xr=>new Promise((wr,Cr)=>{const Ar=[];for(const Tr of xr)Ar.push(new Promise(async Dr=>{await Tr(),Dr()}));Promise.all(Ar).then(Tr=>{wr(Tr)}).catch(Tr=>{Cr(Tr)})}),ti=xr=>new Promise(async(wr,Cr)=>{if(xr){if(typeof xr=="string"){const Ar=Yr.get(xr);if(typeof Ar=="function"){const Tr=request.interceptors.response.use(Dr=>(wr(Dr),Dr),Dr=>(Cr(Dr),Promise.reject(Dr)));Ar(),request.interceptors.response.eject(Tr)}}}else{const Ar=Array.from(Ur);Ar.sort((Dr,Lr)=>Lr[0]-Dr[0]);const Tr=Ar.length;try{c.pageMode!=="design"&&vue.unref(Gr)>0;for(let Dr=0;Dr<Tr;Dr++){const Lr=Ar[Dr][1];await ri(Lr)}}catch(Dr){console.error(Dr)}finally{Ur.clear(),wr(null)}}});vue.provide(REQUEST_MODEL,{setRequest:Qr,touchRequest:ti});const oi=()=>{Rr.emit(REFRESH_PAGE)};vue.provide(REFRESH_PAGE,{emitRefreshPage:oi});const vi=xr=>{Rr.on(REFRESH_PAGE,()=>xr()),vue.onMounted(()=>{Rr.off(REFRESH_PAGE)})},hi=vue.ref({}),ai=vue.reactive({keyName:"",visible:!1,dataSource:[],columns:[],title:"",pagination:{current:1,pageSize:10,total:0,showSizeChanger:!1,showQuickJumper:!1,showTotal:xr=>`共 ${xr} 条数据`}});vue.provide(All_COMPONENT_RES_DATA,{allComponentResData:hi});const xi={borderColor:"#666E8D",headerBgColor:"#06347C",headerColor:"#DEE5EF",bodyBgColor:"#112861",bodyColor:"#B2CCE7",indicatorsHeaderBgColor:"#184273",indicatorsHeaderColor:"#FFFFFF",indicatorsBodyBgColor:"#184273",indicatorsBodyColor:"#FFFFFF",aggregateBgColor:"#0F4F9B",aggregateColor:"#FFFCFC",sortNotActiveColor:"#B0B0B0",sortActiveColor:"#00CCFF",dropDownMenuBgColor:"#08154F",dropDownMenuColor:"#B2C3DD",dropDownMenuHightLightColor:"#2E68CF"},Ci=async xr=>{var Kr,Xr,ci,ui,si;if(re.value||c.drillingMode==="default")return;let wr=lodashEs.cloneDeep(xr).props;if(wr.parentId){const Zr=vue.unref(Hn).find(ei=>ei.id===wr.parentId);if((Zr==null?void 0:Zr.dataType)==="indicator")wr=lodashEs.cloneDeep(Zr);else return}ai.keyName=wr==null?void 0:wr.keyName;const Cr=((Kr=window==null?void 0:window.config)==null?void 0:Kr.indicatorToken)||"",Ar=Br(),Tr=(wr==null?void 0:wr.graphicConfig)||{},{leftAxisList:Dr=[],rightAxisList:Lr=[],indicators:$r=[]}=Tr,qr=Dr.concat(Lr).concat($r);if(!(qr!=null&&qr.length))return;const Wr=qr.filter(Zr=>Zr.show).map(Zr=>Zr.label);Wr!=null&&Wr.length&&(ai.title=`下钻:${Wr.join("、")}`);const jr=Dn({...wr,globalModel:pr()});if(c.drillingMode==="pivotTable"){const Zr=await ki({cpntProps:wr,pageId:Ar,formatParams:jr,classifications:[],indicatorToken:Cr});Yn.value=((Xr=Zr==null?void 0:Zr.data)==null?void 0:Xr.data)||[];const ei=nanoid(6);Tr.queryColumnList||(Tr.queryColumnList=[]),Tr!=null&&Tr.classificationList&&(Tr.queryColumnList=Tr.classificationList,delete Tr.classificationList),Tr!=null&&Tr.seriesList&&(Tr.queryColumnList=Tr.queryColumnList.concat(Tr.seriesList),delete Tr.seriesList),Tr.indicators=lodashEs.cloneDeep(qr||[]),delete Tr.leftAxisList,delete Tr.rightAxisList;const Mi={};if(yn(wr.type,"indexPanel")){const Oi=Tr.indicators.find(fi=>fi.show),Ai=vue.unref(Yn).slice(0,2).sort((fi,yi)=>fi.typeGuid-yi.typeGuid).map(fi=>({...fi,show:!0,edit:!1,dataTo:"0",dataSetParams:{}}));Ai!=null&&Ai.length&&(Tr.queryColumnList=Ai);const Ti=Pr(wr);if(Ti&&Oi){const{label:fi}=Oi;Mi.defaultConfig={indexFormatConfig:{[fi]:{fieldName:fi,indicatorKey:fi,position:"right",unit:Ti}}}}}(ci=Tr.queryColumnList)!=null&&ci.length||(Tr.queryColumnList=[{id:"3f5bda70a08a442085857adb7fc547de",indexCode:null,indexCodeNum:null,title:"日期(内置)",name:"the_date",label:"日期(内置)",typeGuid:"the_date",genericType:"DATE",hrpIndexComplexid:"the_date",scope:"BUILT_IN_DIM",fromTable:"hrp_index_complex",parentId:"3f5bda70a08a442085857adb7fc547de",show:!0,edit:!1,dataTo:"0",dataSetParams:{}}]);const Bi={...lodashEs.cloneDeep(pivotTableProps),id:ei,keyName:`透视表_${ei}`,position:"relative",top:0,left:0,width:parseFloat(c.width)*d+"px",height:document.body.clientHeight*h+"px",pageId:Ar,indicatorToken:Cr,context:CONTEXT,globalModel:pr(),graphicConfig:Tr,pageConfig:c,...Mi};vue.unref(b)==="darkBlue"&&(Bi.styleConfig=xi),Vn.value=Bi,ai.visible=!0,vue.nextTick(()=>{vue.unref(zn).refreshData()})}else if(c.drillingMode==="normalTable"){Pi(jr,lodashEs.cloneDeep(xr.props));let Zr=(jr==null?void 0:jr.classification)||(jr==null?void 0:jr.classifications)||[];Array.isArray(Zr)||(Zr=[Zr]);try{Un.value=!0,ai.visible=!0;const ei=await ki({cpntProps:wr,pageId:Ar,formatParams:jr,classifications:Zr,indicatorToken:Cr}),Mi=((ui=ei==null?void 0:ei.data)==null?void 0:ui.data)||[],Bi=Zr.map(li=>({...li,calcType:"COLUMN"}));for(const li of Mi)Bi.push({calcType:"COLUMN",columnName:li.name,label:li.name,show:!0,typeGuid:li.typeGuid});jr.queryColumns=Bi,jr.layer="1",jr.plugin="1",delete jr.classification,delete jr.classifications;const{url:Oi,...Ai}=jr||{},Ti=await request({url:`${vue.unref(y)}${Oi}`,method:"post",headers:{Authentication:Cr,operateContext:CONTEXT},data:{...Ai,pageId:Ar}}),{columns:fi=[],rows:yi=[]}=((si=Ti==null?void 0:Ti.data)==null?void 0:si.data)||{};ai.columns=fi.filter(li=>!!li).map(li=>{let Ni=li;const Fi=Mi.find(zi=>zi.name===li);return Fi&&(Ni=Fi.title||Fi.label),{title:Ni,dataIndex:li,width:"120px"}}),ai.dataSource=(Array.isArray(yi)?yi:[yi]).map(li=>({...li,uuid:nanoid(6)})),ai.pagination.total=(yi==null?void 0:yi.length)||0,Un.value=!1}catch(ei){console.error(ei)}}vue.nextTick(()=>{Si(!0),pi(!0)})},Si=xr=>{const wr=document.querySelector(".ind-detail-modal .ant-modal-header");wr&&(xr?wr.addEventListener("dblclick",gi):wr.removeEventListener("dblclick",gi))},pi=xr=>{const wr=document.querySelector(".ind-detail-modal .ant-modal-header");if(wr)if(xr)wr.addEventListener("mousedown",wi);else{const Cr=wr.parentElement;Cr&&(Cr.style.left="",Cr.style.top=""),wr.removeEventListener("mousedown",wi)}};function wi(xr){dragModalAction(xr,".ind-detail-modal .ant-modal-header")}const ki=async({cpntProps:xr,pageId:wr,formatParams:Cr,classifications:Ar,indicatorToken:Tr})=>{var Dr,Lr,$r;return await request({url:`${vue.unref(y)}/diagram/obtainDrillAbleDimensionOptions`,method:"post",headers:{Authentication:Tr,operateContext:CONTEXT},data:{source:((Dr=xr==null?void 0:xr.graphicConfig)==null?void 0:Dr.source)||"INDICATOR_LIB",pageId:wr,indicatorList:(Cr==null?void 0:Cr.indicatorList)||[],classifications:Ar,dataSourceId:((Lr=xr==null?void 0:xr.graphicConfig)==null?void 0:Lr.dataSourceId)||""},signal:(($r=window.controller)==null?void 0:$r.signal)||""})},mi={IN:"属于",NOT_IN:"不属于",LIKE:"包含",NOT_LIKE:"不包含","LIKE%":"开头是","%LIKE":"结尾是",EQUAL:"等于",LESS:"小于",LESS_EQUAL:"小于等于",GREATER:"大于",GREATER_EQUAL:"大于等于",NOT_EQUAL:"不等于"};function di(xr,wr,Cr){const Ar=[];for(const Tr of xr)Tr[wr]?Ar.push(...di(Tr[wr],wr,Cr)):Tr.filter?Ar.push({...Tr.filter,label:Tr.label}):(!Cr||Tr.dataType!=="component"&&!(Tr.fieldValue.startsWith("${")&&Tr.fieldValue.endsWith("}")))&&Ar.push(Tr);return Ar}const Pi=(xr,wr)=>{const{leftAxisList:Cr=[],rightAxisList:Ar=[],indicators:Tr=[],classificationList:Dr=[],rowHeaderList:Lr=[],dimensionList:$r=[],seriesList:qr=[],queryColumns:Wr=[],indexLibColumns:jr=[]}=wr.graphicConfig,Xr=Cr.concat(Ar).concat(Tr).concat(Dr).concat(Lr).concat($r).concat(qr).concat(Wr).concat(jr).filter(si=>si.conditions),ci=di(Xr,"conditions",!0),ui=di(xr.sqlConditions,"sqlConditions",!1);Qn.value=ci.concat(ui).filter(si=>si.label).map(si=>{let Zr=si.fieldValue;if(Zr){const ei=Zr.split(",");(ei==null?void 0:ei.length)>3&&(Zr=ei.slice(0,3).join(",")+"等")}else Zr='""';return`${si.label} ${mi[si.rule]} ${Zr}`})||[]},gi=()=>{Kn.value=!Kn.value,vue.nextTick(()=>{Kn.value?(vue.unref(Vn).width=parseFloat(c.width)*p+"px",vue.unref(Vn).height=document.body.clientHeight*v+"px",pi(!1)):(vue.unref(Vn).width=parseFloat(c.width)*d+"px",vue.unref(Vn).height=document.body.clientHeight*h+"px",pi(!0))})},Ei=()=>{Kn.value=!1,Si(!1),pi(!1)},Ii=({type:xr,data:wr})=>{if(xr==="11"&&wr){const{indicatorList:Cr=[],queryColumns:Ar=[]}=wr,Dr=Cr.concat(Ar).filter(qr=>qr.conditions||qr.filter),Lr=di(Dr,"conditions",!0),$r=di(wr.sqlConditions,"sqlConditions",!1);Qn.value=Lr.concat($r).filter(qr=>qr.label).map(qr=>{const Wr=vue.unref(Yn).find(Kr=>Kr.label===qr.label);let jr=qr.fieldValue;if(jr&&typeof jr=="string"){const Kr=jr.split(",");(Kr==null?void 0:Kr.length)>3&&(jr=Kr.slice(0,3).join(",")+"等")}else jr||(jr='""');return`${(Wr==null?void 0:Wr.title)||qr.label} ${mi[qr.rule]} ${jr}`})||[]}},_i=xr=>{const{id:wr,data:Cr}=xr;Cr.success&&(hi.value[wr]=(Cr==null?void 0:Cr.data)||{})},ni=(xr,wr)=>{switch(xr){case"SHOW_INDICATOR_DETAIL_MODAL":Ci(wr);break;case"SAVE_COMPONENT_RES_DATA":_i(wr);break}};vue.provide(COMMON_OPERATE,{operateAction:ni});const ii=()=>document.querySelector("#ProviderConfig > #container")||document.body,Di=xr=>{ai.pagination.current=xr.current};vue.watchEffect(()=>{var xr;if((xr=vue.unref(Hn))!=null&&xr.length&&vue.unref(Pn)!=="design"){const{jumpType:wr,jumpTime:Cr,jumpPage:Ar,jumpLink:Tr}=c;if(Cr!=null&&Cr.value){let Dr=0;switch(Cr==null?void 0:Cr.suffix){case"hours":Dr=Cr.value*60*60*1e3;break;case"minute":Dr=Cr.value*60*1e3;break;case"seconds":Dr=Cr.value*1e3;break}setTimeout(()=>{let Lr="";wr==="page"&&Ar?Lr=usePageUrl(vue.unref(Pn),Ar):wr==="link"&&Tr&&(Lr=Tr),Lr=hn(Lr),window.open(Lr,"_self")},Dr)}}});const Sr=xr=>{var wr;vue.unref(m).showModal({data:xr,indicatorUrl:vue.unref(y),indicatorToken:((wr=window==null?void 0:window.config)==null?void 0:wr.indicatorToken)||"",context:CONTEXT,pageId:Br()})},kr=xr=>{vue.unref(g).showModal({data:xr,pageConfig:c,unitText:Pr(xr)})},Pr=xr=>{let wr="",Cr="";const{componentConfig:Ar}=xr;for(const Dr in Ar)if(Ar[Dr].key==="currentValue"){Cr=Dr;break}const Tr=vue.unref(Wn).find(Dr=>Dr.id===Cr);return Tr!=null&&Tr.unitText&&(wr=Tr.unitText),wr};vue.provide("showIndDetail",Sr);function Br(){var wr;let xr=((wr=window==null?void 0:window.config)==null?void 0:wr.pageId)||"";if(!xr){const{pathname:Cr}=window==null?void 0:window.location;if(Cr){const Ar=Cr.split("/");Ar!=null&&Ar.length&&(xr=Ar[Ar.length-1])}}return xr}return vue.onBeforeUnmount(()=>{Ur==null||Ur.clear(),Yr==null||Yr.clear()}),u({touchRequest:ti,getGlobalModel:lr,onRefreshPage:vi,emitEvent:Vr,getRecordValueByKeyName:vr,showIndDetail:Sr,showTrend:kr,props:c,systemVariable:nr}),{providerConfig:gn,configStyle:cr,indDetailInfo:ai,pivotTableConfig:Vn,indicatorUrl:y,pivotTableRef:zn,isIndFullScreen:Kn,wrapClassName:ur,theme:b,detailLoading:Un,conditionInfo:Qn,indDetailModalRef:m,trendModalRef:g,allDimensions:Yn,scaleValue:Zn,getContainer:ii,handleTableChange:Di,toggleFullScreen:gi,onDetailCancel:Ei,onPivotTableChange:Ii}}}),ProviderConfig_vue_vue_type_style_index_0_scoped_298a0f60_lang="",ProviderConfig_vue_vue_type_style_index_1_lang="",_hoisted_1$h=["id"],_hoisted_2$8=["title"],_hoisted_3$4={key:0,class:"spin-container"},_hoisted_4$3=["title"];function _sfc_render$y(c,u,f,d,h,p){const v=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("switcher-outlined"),g=vue.resolveComponent("border-outlined"),y=vue.resolveComponent("pivot-table"),x=vue.resolveComponent("a-spin"),Pn=vue.resolveComponent("a-table"),b=vue.resolveComponent("a-modal"),J=vue.resolveComponent("indicator-detail-modal"),j=vue.resolveComponent("trend-modal");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",{class:"provider-config-container",id:c.customId,ref:"providerConfig",style:vue.normalizeStyle({...c.configStyle,fontFamily:c.pageFontFamily})},[vue.renderSlot(c.$slots,"default",{},void 0,!0)],12,_hoisted_1$h),vue.createVNode(b,{visible:c.indDetailInfo.visible,"onUpdate:visible":u[1]||(u[1]=vn=>c.indDetailInfo.visible=vn),width:"60%",getContainer:c.getContainer,footer:null,destroyOnClose:!0,"wrap-class-name":c.wrapClassName,onCancel:c.onDetailCancel},{title:vue.withCtx(()=>[vue.createElementVNode("div",{class:"detail-modal-title",title:c.conditionInfo.join("、")},vue.toDisplayString(c.indDetailInfo.title)+" "+vue.toDisplayString(c.conditionInfo.join("、")),9,_hoisted_2$8)]),closeIcon:vue.withCtx(()=>[vue.createVNode(v,{class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"])]),default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"zoom-btn",onClick:u[0]||(u[0]=(...vn)=>c.toggleFullScreen&&c.toggleFullScreen(...vn))},[c.isIndFullScreen?(vue.openBlock(),vue.createBlock(m,{key:0,class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"])):(vue.openBlock(),vue.createBlock(g,{key:1,class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"]))]),c.drillingMode==="pivotTable"?(vue.openBlock(),vue.createElementBlock("div",{key:0,style:vue.normalizeStyle({position:"relative",width:c.pivotTableConfig.width,height:c.pivotTableConfig.height})},[vue.createVNode(y,vue.mergeProps({ref:"pivotTableRef"},c.pivotTableConfig,{pageMode:c.pageMode,theme:c.theme,fullMode:!1,allowDrill:!0,showFullScreen:!1,indicatorUrl:c.indicatorUrl,relateKeyName:c.indDetailInfo.keyName,allDimensions:c.allDimensions,scaleValue:c.scaleValue,enlargeContainer:"#norPageConfig",onTableChange:c.onPivotTableChange}),null,16,["pageMode","theme","indicatorUrl","relateKeyName","allDimensions","scaleValue","onTableChange"])],4)):c.drillingMode==="normalTable"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[c.detailLoading?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$4,[vue.createVNode(x,{size:"large"})])):(vue.openBlock(),vue.createBlock(Pn,{key:1,scroll:{x:"max-content",y:c.isIndFullScreen?"100vh":"60vh"},"row-key":vn=>vn.uuid,columns:c.indDetailInfo.columns,"data-source":c.indDetailInfo.dataSource,pagination:c.indDetailInfo.pagination,onChange:c.handleTableChange},{headerCell:vue.withCtx(({title:vn})=>[vue.createElementVNode("div",{class:"detail-table-header-cell",title:vn},vue.toDisplayString(vn),9,_hoisted_4$3)]),_:1},8,["scroll","row-key","columns","data-source","pagination","onChange"]))],64)):vue.createCommentVNode("",!0)]),_:1},8,["visible","getContainer","wrap-class-name","onCancel"]),vue.createVNode(J,{ref:"indDetailModalRef",theme:c.theme},null,8,["theme"]),vue.createVNode(j,{ref:"trendModalRef"},null,512)],64)}const ProviderConfig=_export_sfc$1(_sfc_main$t,[["render",_sfc_render$y],["__scopeId","data-v-298a0f60"]]),EcanProviderConfig=withInstall$1(ProviderConfig),textProps={...props,name:"文本",keyName:"文本",type:"ecanText",width:"100px",height:"40px",text:"文字",lineHeight:"18px",color:"#333",variableColor:"#f00",fontSize:"14px",fontFamily:"",fontWeight:400,textShadow:"",justifyContent:"center",alignItems:"center",variableFontSize:"14px",variableDefaultValue:"0",format:"",target:"self",href:"",linkPage:"",data:{},percentageSide:"left",increaseColor:"",declineColor:"",minusSignShow:!0,unitShow:!0,unitText:"",unitFontSize:"14px",unitFontWeight:400,unitColor:"#333",unitTop:"",unitLeft:"",graphicConfig:{},targetShow:!1,targetRule:"",targetValue:"",notExpectColor:"",gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",openCustomRequestData:!0,customRequestName:"",customRequestField:"",showEllipsis:!1,showAnimation:!1,transParams:[],exceedConfig:"",targetTemplate:"",dataSetchecked:!1,titleContent:"",titleBackgroundColor:"#ffffff",titleFontColor:"#000000",isMarkDown:!1,isContentMarkDown:!1,parentId:""},textComponentProps=transformToComponentProps(textProps),textEvents=["refreshData","click","valueChange"],goUp="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=",goDown="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==";var esmEntry$1={exports:{}},defaults$5={exports:{}};function getDefaults$1(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function changeDefaults$1(c){defaults$5.exports.defaults=c}defaults$5.exports={defaults:getDefaults$1(),getDefaults:getDefaults$1,changeDefaults:changeDefaults$1};const escapeTest=/[&<>"']/,escapeReplace=/[&<>"']/g,escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g,escapeReplacements={"&":"&","<":"<",">":">",'"':""","'":"'"},getEscapeReplacement=c=>escapeReplacements[c];function escape$3(c,u){if(u){if(escapeTest.test(c))return c.replace(escapeReplace,getEscapeReplacement)}else if(escapeTestNoEncode.test(c))return c.replace(escapeReplaceNoEncode,getEscapeReplacement);return c}const unescapeTest=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function unescape$1(c){return c.replace(unescapeTest,(u,f)=>(f=f.toLowerCase(),f==="colon"?":":f.charAt(0)==="#"?f.charAt(1)==="x"?String.fromCharCode(parseInt(f.substring(2),16)):String.fromCharCode(+f.substring(1)):""))}const caret=/(^|[^\[])\^/g;function edit$1(c,u){c=c.source||c,u=u||"";const f={replace:(d,h)=>(h=h.source||h,h=h.replace(caret,"$1"),c=c.replace(d,h),f),getRegex:()=>new RegExp(c,u)};return f}const nonWordAndColonTest=/[^\w:]/g,originIndependentUrl=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function cleanUrl$1(c,u,f){if(c){let d;try{d=decodeURIComponent(unescape$1(f)).replace(nonWordAndColonTest,"").toLowerCase()}catch{return null}if(d.indexOf("javascript:")===0||d.indexOf("vbscript:")===0||d.indexOf("data:")===0)return null}u&&!originIndependentUrl.test(f)&&(f=resolveUrl(u,f));try{f=encodeURI(f).replace(/%25/g,"%")}catch{return null}return f}const baseUrls={},justDomain=/^[^:]+:\/*[^/]*$/,protocol=/^([^:]+:)[\s\S]*$/,domain=/^([^:]+:\/*[^/]*)[\s\S]*$/;function resolveUrl(c,u){baseUrls[" "+c]||(justDomain.test(c)?baseUrls[" "+c]=c+"/":baseUrls[" "+c]=rtrim$1(c,"/",!0)),c=baseUrls[" "+c];const f=c.indexOf(":")===-1;return u.substring(0,2)==="//"?f?u:c.replace(protocol,"$1")+u:u.charAt(0)==="/"?f?u:c.replace(domain,"$1")+u:c+u}const noopTest$1={exec:function(){}};function merge$2(c){let u=1,f,d;for(;u<arguments.length;u++){f=arguments[u];for(d in f)Object.prototype.hasOwnProperty.call(f,d)&&(c[d]=f[d])}return c}function splitCells$1(c,u){const f=c.replace(/\|/g,(p,v,m)=>{let g=!1,y=v;for(;--y>=0&&m[y]==="\\";)g=!g;return g?"|":" |"}),d=f.split(/ \|/);let h=0;if(d[0].trim()||d.shift(),d[d.length-1].trim()||d.pop(),d.length>u)d.splice(u);else for(;d.length<u;)d.push("");for(;h<d.length;h++)d[h]=d[h].trim().replace(/\\\|/g,"|");return d}function rtrim$1(c,u,f){const d=c.length;if(d===0)return"";let h=0;for(;h<d;){const p=c.charAt(d-h-1);if(p===u&&!f)h++;else if(p!==u&&f)h++;else break}return c.substr(0,d-h)}function findClosingBracket$1(c,u){if(c.indexOf(u[1])===-1)return-1;const f=c.length;let d=0,h=0;for(;h<f;h++)if(c[h]==="\\")h++;else if(c[h]===u[0])d++;else if(c[h]===u[1]&&(d--,d<0))return h;return-1}function checkSanitizeDeprecation$1(c){c&&c.sanitize&&!c.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function repeatString$1(c,u){if(u<1)return"";let f="";for(;u>1;)u&1&&(f+=c),u>>=1,c+=c;return f+c}var helpers={escape:escape$3,unescape:unescape$1,edit:edit$1,cleanUrl:cleanUrl$1,resolveUrl,noopTest:noopTest$1,merge:merge$2,splitCells:splitCells$1,rtrim:rtrim$1,findClosingBracket:findClosingBracket$1,checkSanitizeDeprecation:checkSanitizeDeprecation$1,repeatString:repeatString$1};const{defaults:defaults$4}=defaults$5.exports,{rtrim,splitCells,escape:escape$2,findClosingBracket}=helpers;function outputLink(c,u,f,d){const h=u.href,p=u.title?escape$2(u.title):null,v=c[1].replace(/\\([\[\]])/g,"$1");if(c[0].charAt(0)!=="!"){d.state.inLink=!0;const m={type:"link",raw:f,href:h,title:p,text:v,tokens:d.inlineTokens(v,[])};return d.state.inLink=!1,m}else return{type:"image",raw:f,href:h,title:p,text:escape$2(v)}}function indentCodeCompensation(c,u){const f=c.match(/^(\s+)(?:```)/);if(f===null)return u;const d=f[1];return u.split(`
|
|
102
|
+
`;let p=c;if(f!=null&&f.length){for(const m of f){const g=hn(m,{textData:u},{useNewline:!1,useSpace:!1});g&&(p=p.replace(m,g))}return`${h}{text|${p}}`}else return c},setDefaultRangeVal=(c,u)=>{const{props:f,componentList:d,getGlobalModel:h}=c,{graphicConfig:p={},startValue:v,endValue:m}=f,g=getdefCompleteData({graphicConfig:p,startValue:v,endValue:m,componentList:d,getGlobalModel:h}),{dimensions:y,dataset:x}=u,{classificationList:Pn=[]}=p,J=Pn.find(j=>j.show).label||"";for(const j of g)!y.find(vn=>+vn==+j)&&!isNaN(+j)&&y.push(+j);y.sort((j,vn)=>dayjs(j).isBefore(dayjs(vn))?-1:1);for(const j of x){const{data:vn}=j;if(vn!=null&&vn.length){const Fn=[];for(const Bn of g)if(!vn.find(w=>+w[J]==+Bn)&&!isNaN(+Bn)){const w=lodashEs.cloneDeep(vn[0]);for(const re in w)re===J?w[re]=+Bn:w[re]=0;Fn.push(w)}j.data.push(...Fn),j.data.sort((Bn,w)=>dayjs(Bn[J]).isBefore(dayjs(w[J]))?-1:1)}}},getConditions=c=>{const u=[];for(const f of c)f.conditions?u.push(...getConditions(f.conditions)):(f==null?void 0:f.dataType)==="component"&&u.push(f);return u};function getdefCompleteData(c){const{startValue:u,endValue:f,componentList:d,graphicConfig:h,getGlobalModel:p}=c,v=getVariableAndField(u),m=getVariableAndField(f),g=[];if(v&&m){const y=d.find(Pn=>Pn.keyName===v.keyName),x=d.find(Pn=>Pn.keyName===m.keyName);if(y&&x){const Pn=p(y.id),b=p(x.id),{classificationList:J=[]}=h,j=J.find(vn=>vn.show);if(j){let vn="YYYY-MM";switch(j.name){case"the_year":vn="YYYY";break;case"the_month":vn="MM";break;case"the_day":vn="DD";break;case"the_date":vn=(j==null?void 0:j.dateFormat)||vn;break}const Fn=getFormatStep(vn);if(vn){const Bn=vue.unref(Pn[v.field]),w=vue.unref(b[m.field]);let re=dayjs(Bn);const gn=dayjs(w);for(g.push(gn.format(vn));re.isBefore(gn);)g.push(re.format(vn)),re=re.add(1,Fn)}}}}return g}function getVariableAndField(c){let u=null;if(c){const f=c.match(/\{(.+?)\}/g);if(f!=null&&f.length){let d=f[0].slice(1,-1).trim();const h=d.match(/\[(.+?)\]/g);let p="";h!=null&&h.length&&(d=d.replace(h[0],""),p=h[0].slice(1,-1).trim()),u={keyName:d,field:p}}}return u}function getFormatStep(c){const u=c.split("-");let f="";if(u!=null&&u.length)switch(u[u.length-1]){case"YYYY":f="year";break;case"MM":f="month";break;case"DD":f="day";break}return f}function handleJumpLink(c,u){var Pn;const{pageMode:f,targetTemplate:d,getRecordValueByKeyName:h,setTemplateData:p}=u,v=c.linkPage||"",m=usePageUrl(f,v),g=c.href;let y=g||m;y=hn(y);const x=c.target;if(x)if(x==="event")window.parent.postMessage({type:"openPage",url:g},"*");else{const b={pageId:v,componentId:d};if((Pn=c.transParams)!=null&&Pn.length){y.includes("?")?y+="&":y+="?";const J=[];for(const j of c.transParams){const vn=h(String(j.fieldName));J.push(`${j.keyName}=${vn}`),b[j.keyName]=vn}y+=J.join("&")}x==="template"?(Object.prototype.hasOwnProperty.call(window,"oldPageId")||(window.oldPageId=""),window.oldPageId&&(window.controller.abort(),window.controller=new AbortController),window.oldPageId=v,p(b)):(x==="blank"&&(y+=`${y.includes("?")?"&":"?"}drillFlag=1`),window.open(y,"_"+x))}}function getPageUrlParams(c){var f,d;let u={};if(c){const h=(((f=window.config)==null?void 0:f.urlParams)||{})[c]||{};for(const p in h)p.includes("{")||(u[p]=h[p])}else u=((d=window.config)==null?void 0:d.requestParams)||{};return u}function getNewValueFromUrlParams(c,u,f){let d="";const{urlParams:h}=window.config;if(c&&h[c])for(const p in h[c]){const v=h[c][p];if(p===`{${u}[${f}]}`&&v){d=v;break}}return d}function getFormatWh(c,u){return typeof c=="string"?parseFloat(c):c.suffix==="px"?+c.value:c.suffix==="%"?parseFloat(u)*(c.value/100):0}const hasChinese=c=>/[\u4e00-\u9fa5]/.test(c),dragModalAction=(c,u)=>{const f=document.querySelector(u);if(!f)return;f.style.cursor="move",f.style.userSelect="none";const d=f.parentElement,h=200,p=d.getBoundingClientRect(),{width:v,left:m,top:g}=p,y=window.innerWidth,x=window.innerHeight,Pn=c.clientX,b=c.clientY,J=parseFloat(d.style.left)||0,j=parseFloat(d.style.top)||0,vn=-(m+v-h-J),Fn=y-m+J-h,Bn=-(g-j),w=x-g+j-h,re=Vn=>{Vn.preventDefault();const zn=Vn.clientX-Pn,Kn=Vn.clientY-b;let Un=J+zn,Qn=j+Kn;Un=Math.max(vn,Math.min(Un,Fn)),Qn=Math.max(Bn,Math.min(Qn,w)),d.style.left=`${Un}px`,d.style.top=`${Qn}px`},gn=()=>{f.style.cursor="",f.style.userSelect="",document.removeEventListener("mousemove",re),document.removeEventListener("mouseup",gn)};document.addEventListener("mousemove",re),document.addEventListener("mouseup",gn)},useRequestData=(c,u,f=()=>{})=>{var sr;const{requestUrl:d,requestMethod:h,requestHeaders:p,requestParams:v,requestInterval:m,isOpenRequestTimer:g,openCustomRequestData:y,projectRequestUrl:x="",getModel:Pn,requestParamsMode:b,customRequestParams:J,dataSetParam:j,requestType:vn,dataType:Fn,dataSetchecked:Bn}=c,{pageMode:w}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"})||{},{pageId:re}=vue.inject("templateOperate",{pageId:""})||{},{contextRequestUrl:gn,touchEventId:Vn}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:"",touchEventId:""})||{},{getGlobalModel:zn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:ur=>{}})||{},{loadedData:Kn}=vue.inject(LOADED_DATA,{loadedData:{}})||{},Un=vue.inject(COMMON_OPERATE,{operateAction:(ur,Hn)=>{}}),Qn=Pn||zn;let Yn=hn(d),Zn=vue.unref(gn)||x||"";(Fn==="request"&&Bn||vn===1)&&(Zn="",Yn=((sr=window.config)==null?void 0:sr.dataSetUrl)||"/api/datav/dataset/data2");const Jn=async(ur={})=>{var ir;if(Fn!=="request"&&nr){clearInterval(nr);return}if(!Yn||!h||!p)return;let Hn={};for(const er of v){const{key:pr,value:lr}=er;if((lr==null?void 0:lr.id)==="PARENT"&&(lr!=null&&lr.prop)){const or=(((ir=window.config)==null?void 0:ir.record)||{})[lr.prop];if(or){const vr=or[lr.propKey||"value"];vr&&(["date","range"].some(mr=>yn(or==null?void 0:or.type,mr))?Hn[pr]=vue.unref(vr).format(or.format||"YYYY-MM-DD"):Hn[pr]=vue.unref(vr))}continue}if(typeof lr=="object"&&lr!=null&&lr.id){let ar={};const{id:or,prop:vr,propKey:fr,operate:mr}=lr;let dr=!1;try{JSON.parse(or),dr=!0}catch{dr=!1}if(or==="THIS"?ar=Qn(vue.unref(Vn))||{}:ar=Qn(or)||{},(ar==null?void 0:ar.type)==="ecanSelect"&&vue.unref(Kn)&&!vue.unref(Kn)[or]&&(ar==null?void 0:ar.dataType)!=="static")return;const hr=vue.unref(ar[vr]);let yr=null;if(["date","range"].some(gr=>yn(ar==null?void 0:ar.type,gr))){const{value:gr,type:br,mode:Er}=mr||{};if(gr&&br&&Er)switch(br){case"add":yr=vue.unref(hr).add(gr,Er);break;case"minus":yr=vue.unref(hr).subtract(gr,Er);break}yr==null&&(yr=vue.unref(hr)),yr=yr&&(yr==null?void 0:yr.format((fr==null?void 0:fr.trim())||ar.format))||""}else if(Object.prototype.toString.call(hr)==="[object Object]")fr?yr=hr[fr]:yr=vr?hr[vr]:hr;else if(yn(ar==null?void 0:ar.type,"select")&&vue.unref(hr)&&vr&&Array.isArray(vue.unref(hr)))yr=vue.unref(hr).map(gr=>Object.prototype.hasOwnProperty.call(gr,vr)?gr[vr]:gr);else if(dr){const gr=JSON.parse(or);console.log(gr,"urlvalue"),yr=gr.value}else yr=hr;Hn[pr]=yr}else typeof lr=="object"&&!lr.id&&vn===1?(console.log(lr.propKey,"value.propKey"),Hn[pr]=lr.propKey):typeof lr=="string"&&(Hn[pr]=hn(lr))}if(vn===1){console.log(Hn,"_params");const er=Object.entries(Hn);let pr=j;if(!j.param&&Array.isArray(j)){const lr={};for(const ar of j)lr[ar.key]=ar.value;pr=lr}pr.param=pr.param.map((lr,ar)=>({...lr,paramKey:er[ar][0],defaultValue:er[ar][1]||""})),Hn=pr}if(b==="2"&&J!=="{}"){const er=JSON.parse(J);Wn(er),er&&(Hn=er)}function Wn(er){const pr={...Hn,...getPageUrlParams(re)};if(Array.isArray(er))er.forEach((lr,ar)=>{if(typeof lr=="string"){const or=lr.match(/\${(.+?)\}/g);if(or!=null&&or.length){const vr=or[0].slice(2,-1);vr&&pr[vr]?er[ar]=pr[vr]:er[ar]=""}}else Wn(lr)});else if(Object.prototype.toString.call(er)==="[object Object]")for(const lr in er)if(typeof er[lr]=="string"){const ar=er[lr].match(/\${(.+?)\}/g);if(ar!=null&&ar.length){const or=ar[0].slice(2,-1);or&&pr[or]?er[lr]=pr[or]:er[lr]=""}}else Wn(er[lr])}const Rn=getPageUrlParams(re);for(const er in Rn)Rn[er]&&(Rn[er]=decodeURIComponent(Rn[er]));Hn={...Rn,...ur,...Hn};let qn="";const Xn=Object.keys(Hn),Gn=Xn.length-1,tr=Xn.length;Xn.forEach((er,pr)=>{let lr=Hn[er];Object.prototype.toString.call(lr)==="[object Object]"&&(lr=JSON.stringify(lr)),pr===0?tr!==1?qn+=`?${er}=${lr}&`:qn+=`?${er}=${lr}`:pr===Gn?qn+=`${er}=${lr}`:qn+=`${er}=${lr}&`}),Yn.includes("?")&&(qn=qn.replace("?","&"));function cr(er){var pr;if(vn===1)return{Authentication:(pr=window==null?void 0:window.config)==null?void 0:pr.indicatorToken};if(typeof er=="string"){const lr=JSON.parse(er),ar=getPageUrlParams(re);if(Object.prototype.toString.call(lr)==="[object Object]"){for(const or in lr)if(typeof lr[or]=="string"){const vr=lr[or].match(/\${(.+?)\}/g);if(vr!=null&&vr.length){const fr=vr[0].slice(2,-1);fr&&ar[fr]?lr[or]=ar[fr]:lr[or]=""}}}return lr}else return er}try{const er=["get","head"].includes(h),pr={};let lr=er?Yn+qn:Yn;Hn.dataSqlId&&!lr.includes("dataSqlId")&&(lr+=`${lr.includes("?")?"&":"?"}dataSqlId=${Hn.dataSqlId}`),Object.prototype.hasOwnProperty.call(Hn,"signal")?pr.signal=Hn.signal:window.controller&&(pr.signal=window.controller.signal);const ar=await request({baseURL:Zn,url:lr,method:h,headers:p?cr(p):{},data:er?{}:Hn,...pr});return f(ar),Un.operateAction("SAVE_COMPONENT_RES_DATA",{id:c.id,data:(ar==null?void 0:ar.data)||{}}),ar}catch(er){console.error(er)}},nr=vue.unref(w)!=="design"&&g&&(y||y===void 0)&&setInterval(Jn,m*1e3);return vue.onUnmounted(()=>{clearInterval(nr)}),Jn},useImagePath=(c,u=!1)=>{var d;if(!c)return c;let f="";return c!=null&&c.includes("://")?f=c:f=((d=window==null?void 0:window.config)==null?void 0:d.uploadPath)+c,u&&(f=`url(${f})`),f},usePageUrl=(c,u)=>{const f=`${BASE_URL}/preview?pageId=${u}`,d=`${BASE_URL}/${u}`;return c==="preview"?f:d},useIndicatorData=(c={},u=()=>{})=>{var x;const{pageMode:f}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),{requestToken:d}=vue.inject(GLOBAL_TOKEN,{requestToken:()=>{}}),{setLoadedData:h}=vue.inject(LOADED_DATA,{setLoadedData:(Pn,b)=>{}}),{getAllGlobalModel:p}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),{pageId:v}=vue.inject("templateOperate",{pageId:""})||{},m=vue.inject(COMMON_OPERATE,{operateAction:(Pn,b)=>{}});c.dataType==="indicator"&&d();const g=async(Pn={})=>{var re,gn,Vn;const b=p();h(c.id,!1);const J=Dn({...c,globalModel:b},Pn),{url:j,...vn}=J||{},{pathname:Fn,search:Bn}=window==null?void 0:window.location;let w=v||((re=window==null?void 0:window.config)==null?void 0:re.pageId);if(!w&&Fn){const zn=Fn.split("/");zn!=null&&zn.length&&(w=zn[zn.length-1])}if(j&&vn){let zn,Kn;if(c.type==="ecanIndexPanel"&&(zn=c.theFlag),j==="/diagram/formData"){Kn={};const Qn=Bn.slice(1,Bn.length).split("&");for(const Yn of Qn)if(Yn){const Zn=Yn.split("=");Zn[0]&&(Kn[Zn[0]]=Zn[1])}}try{const Un=await request({url:`${INDICATOR_URL}${j}`,method:"post",headers:{Authentication:(gn=window==null?void 0:window.config)==null?void 0:gn.indicatorToken,operateContext:CONTEXT},data:{...vn,pageId:w,theFlag:zn,extParam:Kn},signal:((Vn=window.controller)==null?void 0:Vn.signal)||""});return Pn!=null&&Pn.isTimer&&u(Un),m.operateAction("SAVE_COMPONENT_RES_DATA",{id:c.id,data:(Un==null?void 0:Un.data)||{}}),Un}catch(Un){console.error(Un)}}},y=vue.unref(f)!=="design"&&((x=c==null?void 0:c.graphicConfig)==null?void 0:x.pageMode)!=="design"&&c.isOpenRequestTimer&&c.requestInterval&&setInterval(()=>{g({isTimer:!0})},c.requestInterval*1e3);return vue.onUnmounted(()=>{clearInterval(y)}),g},useHrefParamsToGlobalVariables=()=>{const u=window.location.search.slice(1).split("&"),f=u.length,d={};for(let h=0;h<f;h++){const p=u[h];if(p==null||p==="")continue;const v=p.split("=");if(Array.isArray(v)){const m=v[0];m.includes("{")||(d[m]=v[1])}}window.config.requestParams={...window.config.requestParams,...d},window.config={...window.config,...d}},_sfc_main$z=vue.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...pageConfigComponentProps,pageId:{type:String,default:""},customId:{type:String,default:"container"},portId:{type:String,default:"norPageConfig"}},setup(c){const{width:u,height:f,isCompatible:d}=vue.inject(GLOBAL_CONFIG,{width:null,height:null,isCompatible:null}),h=vue.inject("setPageHeight",Vn=>{}),p=vue.inject("isMobile",!1),v=vue.computed(()=>{const Vn={};return(!d.value||!p)&&(Vn.width=u.value,Vn.height=f.value),{...Vn,backgroundColor:c.pageId?"transparent":c.backgroundColor,backgroundImage:useImagePath(c.backgroundImage,!0),backgroundSize:c.backgroundSize}}),m=vue.ref(0),g=vue.ref(0),y=vue.ref(0),x=vue.ref(0),Pn=vue.ref(!1),b=vue.ref();let J;const j=()=>new Promise(Vn=>{vue.nextTick(()=>{u.value&&f.value?(m.value=parseFloat(u.value),g.value=parseFloat(f.value)):(m.value=b.value.clientWidth,g.value=b.value.clientHeight),(!y.value||!x.value)&&(y.value=window.screen.width,x.value=window.screen.height),Vn()})}),vn=()=>{m.value&&g.value?(b.value.style.width=`${m.value}px`,b.value.style.height=`${g.value}px`):(b.value.style.width=`${y.value}px`,b.value.style.height=`${x.value}px`)};vue.watch([u,f],async()=>{c.pageId||(await j(),vn(),Bn(),window.addEventListener("resize",w),re()),Pn.value=!0},{immediate:!0});const Fn=vue.ref({});vue.provide("scaleValue",Fn);const Bn=()=>{if(d.value&&p){b.value.style.width="100%",b.value.style.height="auto",h("auto");return}const Vn=document.body.clientWidth,zn=document.body.clientHeight,Kn=m.value||y.value,Un=g.value||x.value,Qn=Vn/Kn;let Yn=zn/Un;(m.value!==1920||g.value!==1080)&&(Yn=g.value/m.value*Vn/Un),Fn.value={widthScale:Qn,heightScale:Yn},b.value&&(b.value.style.transform=`scale(${Qn}, ${Yn})`),h(Fn.value)},w=lodashEs.debounce(async()=>{await j(),Bn()},100),re=()=>{const Vn=window.MutationObserver;J=new Vn(w),J.observe(b.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},gn=()=>{J&&(J.disconnect(),J.takeRecords(),J=null)};return vue.onMounted(()=>{Pn.value=!1}),vue.onUnmounted(()=>{window.removeEventListener("resize",w),gn()}),{style:v,container:b,ready:Pn}}}),PageConfig_vue_vue_type_style_index_0_scoped_44a453d9_lang="",_hoisted_1$k=["id"],_hoisted_2$a=["id"];function _sfc_render$E(c,u,f,d,h,p){return vue.openBlock(),vue.createElementBlock("div",{class:"page-config-container",id:c.customId,ref:"container"},[c.ready||c.pageId?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"page-config",id:c.portId,style:vue.normalizeStyle(c.style)},[vue.renderSlot(c.$slots,"default",{},void 0,!0)],12,_hoisted_2$a)):vue.createCommentVNode("",!0)],8,_hoisted_1$k)}const PageConfig=_export_sfc$1(_sfc_main$z,[["render",_sfc_render$E],["__scopeId","data-v-44a453d9"]]),EcanPageConfig=withInstall$1(PageConfig),providerConfig={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px",pageFontFamily:"",jumpType:"page",jumpTime:null,jumpPage:"",jumpLink:"",requestList:[],events:[],isCompatible:!0,variableList:[],drillingMode:"pivotTable"},providerConfigComponentProps=transformToComponentProps(providerConfig);let random=c=>crypto.getRandomValues(new Uint8Array(c)),customRandom=(c,u,f)=>{let d=(2<<Math.log(c.length-1)/Math.LN2)-1,h=-~(1.6*d*u/c.length);return(p=u)=>{let v="";for(;;){let m=f(h),g=h;for(;g--;)if(v+=c[m[g]&d]||"",v.length===p)return v}}},customAlphabet=(c,u=21)=>customRandom(c,u,random),nanoid=(c=21)=>crypto.getRandomValues(new Uint8Array(c)).reduce((u,f)=>(f&=63,f<36?u+=f.toString(36):f<62?u+=(f-26).toString(36).toUpperCase():f>62?u+="-":u+="_",u),"");const pivotTableProps={...props,name:"透视表",keyName:"透视表",width:"800px",height:"400px",type:"ecanPivotTable",graphicConfig:{},dataType:"indicator",data:[],dimensionList:[],indicatorList:[],styleConfig:{borderColor:"#E3E3E3",headerBgColor:"#ECF1F5",headerColor:"#000000",bodyBgColor:"#FFFFFF",bodyColor:"#000000",indicatorsHeaderBgColor:"#ECF1F5",indicatorsHeaderColor:"#000000",indicatorsBodyBgColor:"#FFFFFF",indicatorsBodyColor:"#000000",aggregateBgColor:"#ECF1F5",aggregateColor:"#000000",sortNotActiveColor:"#CCCCCC",sortActiveColor:"#416EFF",dropDownMenuBgColor:"#FFFFFF",dropDownMenuColor:"#141414",dropDownMenuHightLightColor:"#2E68CF"},configMode:"halfMode"},pivotTableComponentProps=transformToComponentProps(pivotTableProps),pivotTableEvents=["refreshData"],_sfc_main$y=vue.defineComponent({name:"IndicatorDetailModal",components:{BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1,CloseOutlined:CloseOutlined$1,ZoomInOutlined:ZoomInOutlined$1,ZoomOutOutlined:ZoomOutOutlined$1,RedoOutlined:RedoOutlined$1},props:{theme:{type:String,default:"light"}},setup(c,{expose:u}){const f=vue.ref(!1),d=vue.ref([]),h=vue.ref(!1),p=vue.ref(),v=vue.ref(!1),m=vue.ref(1),g=vue.computed(()=>c.theme),y=vue.computed(()=>m.value!==1?{transform:`scale(${m.value})`,transformOrigin:"left top"}:{}),x=async({data:Vn,indicatorUrl:zn,indicatorToken:Kn,context:Un,pageId:Qn})=>{var nr,sr;h.value=!0,f.value=!0;let Yn=[];const{graphicConfig:Zn,theFlag:Jn}=vue.unref(Vn)||{};if(Zn){const{leftAxisList:ur=[],rightAxisList:Hn=[],indicators:Wn=[]}=Zn,Rn=ur.concat(Hn).concat(Wn);Rn!=null&&Rn.length&&(Yn=Rn.map(qn=>({calcType:qn.calcType||"COLUMN",columnName:qn.name,hrpIndexCode:qn.indexCode,hrpIndexCodeNum:qn.indexCodeNum,label:qn.label,show:qn.show,formula:qn.formula})))}if(Yn!=null&&Yn.length)try{const ur=await request({url:`${vue.unref(zn)}/diagram/obtainIndicatorInfo`,method:"post",headers:{Authentication:Kn,operateContext:Un},data:{source:"INDICATOR_LIB",pageId:Qn,indicatorList:Yn,theFlag:Jn}}),Hn=((nr=ur==null?void 0:ur.data)==null?void 0:nr.data)||[];(sr=Hn[0])!=null&&sr.remark?(p.value=Hn[0].remark,d.value=[]):(p.value=null,d.value=Hn)}catch{}finally{h.value=!1}vue.nextTick(()=>{J(!0),j(!0)})},Pn=()=>document.querySelector("#ProviderConfig > #container")||document.body,b=vue.computed(()=>{let Vn="detail-modal";return v.value&&(Vn+=" full"),vue.unref(g)==="darkBlue"&&(Vn+=" darkBlue"),Vn}),J=Vn=>{const zn=document.querySelector(".detail-modal .ant-modal-header");zn&&(Vn?zn.addEventListener("dblclick",Fn):zn.removeEventListener("dblclick",Fn))},j=Vn=>{const zn=document.querySelector(".detail-modal .ant-modal-header");if(zn)if(Vn)zn.addEventListener("mousedown",vn);else{const Kn=zn.parentElement;Kn&&(Kn.style.left="",Kn.style.top=""),zn.removeEventListener("mousedown",vn)}};function vn(Vn){dragModalAction(Vn,".detail-modal .ant-modal-header")}const Fn=()=>{v.value=!v.value,vue.nextTick(()=>{v.value?j(!1):j(!0)})},Bn=()=>{v.value=!1,J(!1),j(!1)},w=()=>{m.value+=.5},re=()=>{vue.unref(m)>1&&(m.value-=.5)},gn=()=>{m.value=1};return vue.watch(m,Vn=>{localStorage.setItem("indDetailZoom",String(Vn))}),vue.onMounted(()=>{const Vn=localStorage.getItem("indDetailZoom");Vn&&(m.value=+Vn)}),u({showModal:x}),{visible:f,dataList:d,isLoading:h,hasOwn:mn,remarkData:p,wrapClassName:b,isIndFullScreen:v,infoStyle:y,indDetailZoom:m,getContainer:Pn,toggleFullScreen:Fn,onDetailCancel:Bn,handleZoomIn:w,handleZoomOut:re,handleResetZoom:gn}}}),IndicatorDetailModal_vue_vue_type_style_index_0_scoped_d01553d0_lang="",IndicatorDetailModal_vue_vue_type_style_index_1_lang="",_withScopeId$6=c=>(vue.pushScopeId("data-v-d01553d0"),c=c(),vue.popScopeId(),c),_hoisted_1$j=_withScopeId$6(()=>vue.createElementVNode("div",{class:"modal-title"},"指标详情",-1)),_hoisted_2$9={class:"zoom-btn"},_hoisted_3$5={key:0,class:"spin-container"},_hoisted_4$4=["innerHTML"],_hoisted_5$3={class:"index-name"},_hoisted_6$3={key:0,class:"card-row"},_hoisted_7$3=_withScopeId$6(()=>vue.createElementVNode("div",{class:"label"},"计量单位:",-1)),_hoisted_8$3={class:"content"},_hoisted_9$3={key:1,class:"card-row"},_hoisted_10$3=_withScopeId$6(()=>vue.createElementVNode("div",{class:"label"},"指标定义:",-1)),_hoisted_11$3={class:"content"},_hoisted_12$3={key:2,class:"card-row"},_hoisted_13$3=_withScopeId$6(()=>vue.createElementVNode("div",{class:"label"},"计算方法:",-1)),_hoisted_14$3={class:"content"},_hoisted_15$2={key:3,class:"card-row"},_hoisted_16$1=_withScopeId$6(()=>vue.createElementVNode("div",{class:"label"},"指标说明:",-1)),_hoisted_17$1={class:"content"};function _sfc_render$D(c,u,f,d,h,p){const v=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("redo-outlined"),g=vue.resolveComponent("zoom-out-outlined"),y=vue.resolveComponent("zoom-in-outlined"),x=vue.resolveComponent("switcher-outlined"),Pn=vue.resolveComponent("border-outlined"),b=vue.resolveComponent("a-spin"),J=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(J,{visible:c.visible,"onUpdate:visible":u[0]||(u[0]=j=>c.visible=j),width:"55%",getContainer:c.getContainer,footer:null,destroyOnClose:!0,bodyStyle:{maxHeight:c.isIndFullScreen?"":"70vh",height:c.isIndFullScreen?"100vh":"",overflow:"auto",padding:"20px 24px 24px"},"wrap-class-name":c.wrapClassName,onCancel:c.onDetailCancel},{title:vue.withCtx(()=>[_hoisted_1$j]),closeIcon:vue.withCtx(()=>[vue.createVNode(v,{class:vue.normalizeClass(["close-icon",c.theme])},null,8,["class"])]),default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$9,[c.indDetailZoom>1?(vue.openBlock(),vue.createBlock(m,{key:0,class:"modal-icon",title:"还原",onClick:c.handleResetZoom},null,8,["onClick"])):vue.createCommentVNode("",!0),c.indDetailZoom>1?(vue.openBlock(),vue.createBlock(g,{key:1,class:"modal-icon",title:"缩小内容",onClick:c.handleZoomOut},null,8,["onClick"])):vue.createCommentVNode("",!0),vue.createVNode(y,{class:"modal-icon",title:"放大内容",onClick:vue.withModifiers(c.handleZoomIn,["stop","prevent"])},null,8,["onClick"]),c.isIndFullScreen?(vue.openBlock(),vue.createBlock(x,{key:2,class:vue.normalizeClass(["modal-icon",c.theme]),title:"取消全屏",onClick:c.toggleFullScreen},null,8,["class","onClick"])):(vue.openBlock(),vue.createBlock(Pn,{key:3,class:vue.normalizeClass(["modal-icon",c.theme]),title:"全屏",onClick:c.toggleFullScreen},null,8,["class","onClick"]))]),c.isLoading?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$5,[vue.createVNode(b,{size:"large"})])):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"info-container",style:vue.normalizeStyle(c.infoStyle)},[c.remarkData?(vue.openBlock(),vue.createElementBlock("div",{key:0,innerHTML:c.remarkData},null,8,_hoisted_4$4)):c.dataList.length?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:1},vue.renderList(c.dataList,(j,vn)=>(vue.openBlock(),vue.createElementBlock("div",{class:"detail-wrap",key:vn},[vue.createElementVNode("div",_hoisted_5$3,vue.toDisplayString(j.indexName||"--"),1),c.hasOwn(j,"theUnit")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$3,[_hoisted_7$3,vue.createElementVNode("div",_hoisted_8$3,vue.toDisplayString(j.theUnit||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(j,"meaning")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_9$3,[_hoisted_10$3,vue.createElementVNode("div",_hoisted_11$3,vue.toDisplayString(j.meaning||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(j,"theFormula")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_12$3,[_hoisted_13$3,vue.createElementVNode("div",_hoisted_14$3,vue.toDisplayString(j.theFormula||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(j,"theExplain")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_15$2,[_hoisted_16$1,vue.createElementVNode("div",_hoisted_17$1,vue.toDisplayString(j.theExplain||"--"),1)])):vue.createCommentVNode("",!0)]))),128)):vue.createCommentVNode("",!0)],4))]),_:1},8,["visible","getContainer","bodyStyle","wrap-class-name","onCancel"])}const IndicatorDetailModal=_export_sfc$1(_sfc_main$y,[["render",_sfc_render$D],["__scopeId","data-v-d01553d0"]]),lineProps={...props,id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"}],titleText:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanLine",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,tooltipTextStyleColor:"",noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px",defaultRangeValue:!1,startValue:"",endValue:""},lineComponentProps=transformToComponentProps(lineProps),lineEvents=["click","refreshData","resetRecord"],useDownloadFile=async c=>{var g;const u=await request.post(c,{},{responseType:"blob"}),{data:f,headers:d}=u,h=d["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),p=new Blob([f]),v=document.createElement("a"),m=window.URL.createObjectURL(p);v.href=m,v.download=decodeURI(h),v.style.display="none",document.body.appendChild(v),v.click(),(g=v.parentNode)==null||g.removeChild(v),window.URL.revokeObjectURL(m)},modalProps={id:"",type:"ecanModal",title:"",titleFontSize:"14px",titleColor:"",width:"1000px",height:"800px",originalWidth:"1920px",originalHeight:"1080px",backgroundColor:"#fff",backgroundImage:"",backgroundSize:"100% 100%",keyName:"弹窗",componentList:[],fullModal:!1,destroyOnClose:!0,position:"default",closeBtnColor:"#333",isShowCloseBtn:!0,events:[],borderRadius:"0",borderWidth:"0px",borderColor:"",boxShadow:"0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05)",allComponentList:[],requestList:[],parentIframeId:"",banScale:!1},modalComponentProps=transformToComponentProps(modalProps),modalEvents=["showModal","hideModal"],containerType=["ecanBorder","ecanTabs","ecanCirculate"];function handleScrollCombinations(c){const{containerMap:u={},sourceList:f=[]}=c,d=lodashEs.cloneDeep(c.componentList),h=d.filter(p=>p.type==="ecanTabs"&&p.isAutoScroll);if(h!=null&&h.length)for(const p of h){const v=u[p.id],m=[];if((!mn(p,"componentList")||!(p!=null&&p.componentList))&&(p.componentList=[]),v){let g=0;for(const y in v){const x=v[y],Pn=[];if(x!=null&&x.length)for(const b of x){let J=d.find(j=>j.id===b);J||(J=f.find(j=>j.id===b)),J&&(Pn.push(J),containerType.includes(J.type)&&Pn.push(...getComponentByContainer(J.id,u,f)))}for(const b of Pn)mn(b,"scale")?parseFloat(y)>0&&(b.left=parseFloat(b.left)+g+"px"):(b.left=parseFloat(b.sourceLeft||b.left)-parseFloat(p.sourceLeft||p.left)+g+"px",b.top=parseFloat(b.sourceTop||b.top)-parseFloat(p.sourceTop||p.top)+"px"),m.includes(b.id)||m.push(b.id);p.componentList.push(...Pn),g=getMaxLeftInComponents(Pn)}}for(const g of m){const y=d.findIndex(x=>x.id===g);y!==-1&&d.splice(y,1)}}return d}function compatibleMobileList(c){var p,v;const{combinationMap:u={},sourceList:f=[]}=c,d=c.containerMap,h=lodashEs.cloneDeep([...c.componentList,...getTabsSomeComponentList(d,f)]);if(handleContainerMap(d,h),(p=Object.keys(d))!=null&&p.length||(v=Object.keys(u))!=null&&v.length){for(const b in d){const J=h.find(j=>j.id===b);if(J){mn(J,"parentId")||(J.parentId="",J.sourceLeft=J.left,J.sourceTop=J.top);for(const j in d[b])if(d[b][j])for(const vn of d[b][j]){const Fn=h.find(Bn=>Bn.id===vn);Fn&&(Fn.parentId=b,Fn.sourceLeft=Fn.left,Fn.sourceTop=Fn.top,Fn.left=parseFloat(Fn.left)-parseFloat(J.sourceLeft||J.left)+"px",Fn.top=parseFloat(Fn.top)-parseFloat(J.sourceTop||J.top)+"px")}}}const m=Array.from(new Set(h.filter(b=>(!mn(b,"parentId")||b.parentId==="")&&b.combinationId).map(b=>b.combinationId))),g=getCombinationList(m,{...c,componentList:h});g!=null&&g.length&&h.unshift(...g);const y=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],x=h.filter(b=>y.includes(b.type)&&!mn(b,"parentId")),Pn=[];for(const b of x)if(b){const J=b.id+"_vir";Pn.push({id:J,keyName:b.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:b.width,height:b.height,left:b.left,top:b.top,sourceLeft:b.left,sourceTop:b.top}),b.parentId=J,b.sourceLeft=b.left,b.sourceTop=b.top,b.left=0,b.top=0}Pn!=null&&Pn.length&&h.unshift(...Pn);for(const b of h){const J=document.body.clientWidth;if(b.parentId===""&&containerType.includes(b.type))b.sourceWidth=parseFloat(b.width),b.height=(J/(b.sourceWidth/parseFloat(b.height))).toFixed(2)+"px",b.width="100%",b.position="relative",b.top="auto",b.left="auto";else{const j=h.find(vn=>vn.id===b.parentId);if((j==null?void 0:j.parentId)===""){const vn=j.sourceWidth||parseFloat(j.width),Fn=J/vn;b.scale=Fn,b.top=parseFloat(b.top)*Fn-parseFloat(b.height)*(1-Fn)/2+"px",b.left=parseFloat(b.left)*Fn-parseFloat(b.width)*(1-Fn)/2+"px"}}b.type==="ecanModal"&&(b.parentId="",b.fullModal=!0)}return sortList(h)}return h}function handleContainerMap(c,u){const f=lodashEs.cloneDeep(c),d=u.filter(h=>h.type==="ecanTabs"&&h.isAutoScroll);if(d!=null&&d.length)for(const h of d){const p=f[h.id];for(const v in p)for(const m of p[v]){const g=u.find(y=>y.id===m);if(g&&containerType.includes(g.type)){const y=getComponentByContainer(g.id,f,u);for(const x of y)c[h.id][v].push(x.id),containerType.includes(x.type)&&delete c[x.id];delete c[g.id]}}}}function getTabsSomeComponentList(c,u){const f=[],d=u.filter(h=>h.type==="ecanTabs"&&h.isAutoScroll);if(d!=null&&d.length)for(const h of d){const p=c[h.id];for(const v in p)if(parseFloat(v)>0)for(const m of p[v]){const g=u.find(y=>y.id===m);g&&(f.push(g),containerType.includes(g.type)&&f.push(...getComponentByContainer(g.id,c,u)))}}return f}function getComponentByContainer(c,u,f){const d=[],h=u[c];for(const p in h)for(const v of h[p]){const m=f.find(g=>g.id===v);m&&(d.push(m),containerType.includes(m.type)&&d.push(...getComponentByContainer(m.id,u,f)))}return d}function getCombinationList(c,u,f){const{combinationMap:d={},componentList:h=[]}=u,p=[];for(const v of c){const m=d[v];if(m!=null&&m.length){const g=h.filter(y=>m.includes(y.id));if(g!=null&&g.length){const y=getCombinateRect(g);if(y){p.push({...y,id:v,keyName:v,parentId:f||"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:y.left,sourceTop:y.top});for(const x of g)x&&(x.parentId=v,x.sourceLeft=x.left,x.sourceTop=x.top,x.left=parseFloat(x.left)-parseFloat(y.left)+"px",x.top=parseFloat(x.top)-parseFloat(y.top)+"px")}}}}return p}function sortList(c){const f=c.filter(d=>d.parentId==="");if(f!=null&&f.length){const d=lodashEs.cloneDeep(f).map(h=>({...h,sourceTop:parseFloat(h.sourceTop),sourceLeft:parseFloat(h.sourceLeft)}));for(let h=0;h<d.length-1;h++)for(let p=0;p<d.length-h-1;p++){let v=!1;if((d[p].sourceTop-d[p+1].sourceTop>50||Math.abs(d[p+1].sourceTop-d[p].sourceTop)<=50&&d[p].sourceLeft>d[p+1].sourceLeft)&&(v=!0),v){const m=d[p];d[p]=d[p+1],d[p+1]=m}}for(const h of d){const p=c.findIndex(v=>v.id===h.id);p!==-1&&c.splice(p,1)}return[...d,...c]}return c}function getCombinateRect(c){const u=c.sort((p,v)=>parseFloat(p.top)-parseFloat(v.top))[0],f=c.sort((p,v)=>parseFloat(p.left)-parseFloat(v.left))[0],d=c.map(p=>({...p,computedTop:parseFloat(p.top)+parseFloat(p.height)})).sort((p,v)=>v.computedTop-p.computedTop)[0],h=c.map(p=>({...p,computedLeft:parseFloat(p.left)+parseFloat(p.width)})).sort((p,v)=>v.computedLeft-p.computedLeft)[0];return u&&f&&d&&h?{left:f.left,top:u.top,width:h.computedLeft-parseFloat(f.left)+"px",height:d.computedTop-parseFloat(u.top)+"px"}:null}function getMaxLeftInComponents(c){const u=c.map(f=>parseFloat(f.left)+parseFloat(f.width)).sort((f,d)=>d-f)[0];return u||0}function moveToComponentList(c,u,f){const d=c[f],h=[];if(d)for(const p in d){const v=d[p];for(const m of v){const g=u.find(y=>y.id===m);g&&(h.push(g),containerType.includes(g.type)&&h.push(...getComponentByContainer(g.id,c,u)))}}return h}const _sfc_main$x=vue.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(c,{emit:u}){u("ready",c.component.id)}});function _sfc_render$C(c,u,f,d,h,p){return c.component.parentId?(vue.openBlock(),vue.createBlock(vue.Teleport,{key:0,to:"#container_"+c.component.parentId},[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(c.component.type),vue.mergeProps({style:{scale:c.component.scale}},c.component),null,16,["style"]))],8,["to"])):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(c.component.type),vue.normalizeProps(vue.mergeProps({key:1},c.component)),null,16))}const Render=_export_sfc$1(_sfc_main$x,[["render",_sfc_render$C]]),EcanRender=withInstall$1(Render),_sfc_main$w=vue.defineComponent({name:"EcanModal",components:{AModal:antDesignVue.Modal,CloseOutlined:CloseOutlined$1,Render:EcanRender},props:{...modalComponentProps},setup(c,{emit:u}){const f=vue.ref([]),d=vue.inject("isMobile",!1),h=vue.computed(()=>c.fullModal),p=vue.inject("getContainerMap",()=>{}),v=vue.inject("getCombinationMap",()=>{}),{clearInteractiveData:m,interactiveData:g,setRequestData:y}=vue.inject(GLOBAL_MODEL,{setRequestData:(hr,yr)=>{},clearInteractiveData:()=>{},interactiveData:null}),x=()=>document.getElementById("ProviderConfig")||document.body,Pn=vue.computed(()=>{const hr=c.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[hr]}}),b=c.fullModal?"1920px":c.width,J=c.fullModal?"1080px":c.height,j=c.originalWidth,vn=c.originalHeight,Fn=vue.ref("80%"),Bn=vue.ref(0),w=vue.ref(),re=vue.ref(0),gn=vue.ref({}),Vn=usePickComponentStyle(c),zn=vue.ref({}),Kn=vue.ref(!1),Un=vue.ref();let Qn;const Yn=()=>{w.value=parseFloat(b)/parseFloat(j);const hr=parseFloat(J)/parseFloat(vn),yr=document.body.offsetWidth,_r=document.body.offsetHeight;if(Bn.value=yr*vue.unref(w),re.value=_r*hr,Fn.value=`${vue.unref(w)*100}%`,gn.value={width:`${vue.unref(Bn)}px`,height:`${vue.unref(re)}px`,border:`${c.borderWidth} solid ${c.borderColor}`,borderRadius:c.borderRadius+"px",boxShadow:c.boxShadow},zn.value={...vue.unref(Vn),backgroundImage:useImagePath(c.backgroundImage,!0)},d)zn.value={...zn.value,width:"100%",height:"100%"};else{const gr={...zn.value,width:b,height:J};c.banScale&&vue.unref(h)?(gr.width="100%",gr.height="100%"):gr.transform=`scale(${vue.unref(Bn)/parseFloat(b)},${vue.unref(re)/parseFloat(J)})`,zn.value=gr}},Zn=lodashEs.debounce(()=>{Yn()},100),Jn=()=>{const hr=window.MutationObserver;Qn=new hr(Zn),Qn.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},nr=()=>{Qn&&(Qn.disconnect(),Qn.takeRecords(),Qn=null)},sr=vue.ref(!1),{touchRequest:ur}=vue.inject(REQUEST_MODEL,{touchRequest:()=>{}}),Hn=vue.ref(""),Wn=()=>{var _r;const{title:hr}=c,yr=(_r=vue.unref(g))==null?void 0:_r.RECORD;return yr?hn(hr,{textData:yr},{useNewline:!1,useSpace:!1}):hr},Rn=useEmitEvent(c),qn=hr=>{const{changeIframeStyle:yr}=window.parent;yr&&typeof yr=="function"&&yr({iframeId:c.parentIframeId||"",action:hr})},Xn=()=>{vue.unref(h)&&qn("open"),d&&(document.documentElement.style.overflow="hidden"),Hn.value=Wn(),sr.value=!0},Gn=Rn("hideModal",()=>{vue.unref(h)&&qn("close"),u("close"),d&&(document.documentElement.style.overflow="hidden auto",f.value=[]),sr.value=!1}),tr=()=>{Gn()},cr=()=>{Gn(),m()},{setModalModel:ir,pushUseModalIds:er,popUseModalIds:pr}=vue.inject(MODAL_MODEL,{pushUseModalIds:hr=>{},popUseModalIds:()=>{},setModalModel:(hr,yr)=>{}}),lr=vue.computed(()=>{let hr=c.componentList;const yr=lodashEs.cloneDeep(c.componentList),_r=p(),gr=v(),br={containerMap:_r,combinationMap:gr};d&&(hr=compatibleMobileList({...br,componentList:yr,sourceList:c.allComponentList})),hr=handleScrollCombinations({...br,componentList:hr,sourceList:c.allComponentList});const Er=[];for(const Mr of hr)if(Mr.type==="ecanCirculate"){const Ir=moveToComponentList(_r,vue.unref(yr),Mr.id);Mr.componentList=Ir,Er.push(...Ir.map(Or=>Or.id))}if(Er!=null&&Er.length)for(const Mr of Er){const Ir=hr.findIndex(Or=>Or.id===Mr);Ir!==-1&&hr.splice(Ir,1)}return hr}),ar=()=>{const hr=c.id;let yr=[];const _r=c.componentList;Array.isArray(_r)&&(yr=_r.map(gr=>gr.id),ir(hr,[...new Set(yr)]))},or=vue.ref(!1),vr={};for(const hr of c.requestList)vr[hr.requestName]=useRequestData(hr);vue.watch(()=>sr.value,async hr=>{if(hr)Kn.value=!1,er(c.id),ar(),await vue.nextTick(()=>{Yn(),window.addEventListener("resize",Zn),Jn(),Kn.value=!0}),ur();else{if(y)for(const yr in vr)y(yr,{});pr(),window.removeEventListener("resize",Zn),nr()}});const fr=vue.computed(()=>vue.unref(w)>=1),mr=vue.computed(()=>{let hr="ecan-modal";return vue.unref(fr)&&(hr+=" ecan-full-width-modal"),vue.unref(h)&&(hr+=" ecan-full-modal"),hr});return useOnEvent(c,{showModal:Xn,hideModal:Gn}),{modalRef:Un,containStyle:gn,contentStyle:zn,getContainer:x,modalStyle:Pn,modalWith:Fn,isFullModal:h,style:Vn,visible:sr,showModal:Xn,onOk:tr,onCancel:cr,isFullWidth:fr,wrapClassName:mr,ready:Kn,usedComponentList:lr,isMobile:d,readyIds:f,hasOwn:mn,onComponentReady:hr=>{f.value.push(hr)},formatTitle:Hn,requestLoaded:or}}}),Modal_vue_vue_type_style_index_0_scoped_d34efac2_lang="",Modal_vue_vue_type_style_index_1_lang="";function _sfc_render$B(c,u,f,d,h,p){const v=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("render"),g=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(g,{getContainer:c.getContainer,wrapClassName:c.wrapClassName,centered:"",visible:c.visible,footer:null,width:c.isFullModal||c.isFullWidth?"100%":c.modalWith,destroyOnClose:c.destroyOnClose,style:vue.normalizeStyle(c.modalStyle),closable:!1,onOk:c.onOk,onCancel:c.onCancel,ref:"modalRef",id:"container_"+c.id},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"contain",ref:"containRef",style:vue.normalizeStyle(c.containStyle)},[c.ready?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"content",style:vue.normalizeStyle(c.contentStyle)},[vue.createElementVNode("div",{class:"header-bar",style:vue.normalizeStyle({backgroundColor:c.backgroundColor,padding:"20px 30px",height:c.isMobile?"62px":""})},[c.formatTitle?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"ant-modal-title",style:vue.normalizeStyle({fontSize:c.titleFontSize,color:c.titleColor})},vue.toDisplayString(c.formatTitle),5)):vue.createCommentVNode("",!0),c.isShowCloseBtn?(vue.openBlock(),vue.createBlock(v,{key:1,class:"close-icon",style:vue.normalizeStyle({color:c.closeBtnColor}),onClick:c.onCancel},null,8,["style","onClick"])):vue.createCommentVNode("",!0)],4),c.usedComponentList.length?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(c.isMobile?"mobile-wrap":"")},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.usedComponentList,(y,x)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:y.id+x},[c.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[c.hasOwn(y,"parentId")&&(c.readyIds.includes(y.parentId)||y.parentId==="")?(vue.openBlock(),vue.createBlock(m,{key:0,component:y,onReady:c.onComponentReady},null,8,["component","onReady"])):vue.createCommentVNode("",!0)],64)):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(y.type),vue.normalizeProps(vue.mergeProps({key:1},y)),null,16))],64))),128))],2)):vue.renderSlot(c.$slots,"default",{key:1},void 0,!0)],4)):vue.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel","id"])}const Modal=_export_sfc$1(_sfc_main$w,[["render",_sfc_render$B],["__scopeId","data-v-d34efac2"]]),EcanModal=withInstall$1(Modal);core$1.use([renderers.CanvasRenderer,charts.LineChart,components$1.ToolboxComponent,components$1.TitleComponent,components$1.LegendComponent,components$1.MarkLineComponent]);const _sfc_main$v=vue.defineComponent({name:"EcanLine",props:{...lineComponentProps},components:{Spin,Echarts,EcanModal},setup(c,{expose:u}){const f=vue.ref(!1),{pageMode:d,fontFamily:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),p=vue.inject("showIndDetail",Xn=>{}),v=vue.inject("usedComponentList",[]),m=vue.ref(),g=vue.ref(!1),y=usePickComponentStyle(c),x=vue.ref([]),Pn=vue.ref([]),b=vue.ref(),J=vue.computed(()=>g.value?ZOOM_FONT_SIZE:12),j=vue.ref({});let vn;const Fn=vue.ref([]),Bn=vue.computed(()=>{const Xn=c.xAxisLabelFormatter,Gn=c.yAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(h)},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,orient:c.toolboxOrient,feature:{myDownload:{show:c.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(){useDownloadFile(c.toolboxDownloadUrl)}},myDataZoom:{show:g.value?!1:c.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 tr;g.value=!0,(tr=b.value)==null||tr.showModal()}},myInfo:{show:c.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(){p(c)}}}},title:{text:c.titleText,subText:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},grid:{top:c.gridTop,bottom:c.gridBottom,left:c.gridLeft,right:c.gridRight,containLabel:c.gridContainLabel},color:c.colors,tooltip:{trigger:"axis",textStyle:{fontSize:J.value,color:c.tooltipTextStyleColor},show:c.tooltipShow,formatter:tr=>{var pr;const cr=tr.length;let ir="",er=c.tooltipFormatter;vn=(pr=tr[0])==null?void 0:pr.data,er===""&&(er="{marker} {a} {c}");for(let lr=0;lr<cr;lr++){const{marker:ar,seriesName:or,name:vr,value:fr,data:mr}=tr[lr]||{};if(lr===0){let dr=vr;typeof vr=="string"&&vr[0]==="0"&&!isNaN(+vr)&&(dr=(+vr).toString()),ir+=`${In(Xn,dr)}<br/>`}ir+=hn(er,{textData:{marker:ar,name:vr,value:fr,a:or,b:vr,c:fr||0,...mr}},{useNewline:!0,useSpace:!0}),ir+="<br/>"}return ir},position:c.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:c.isBoundaryGap,data:vue.unref(Pn).map(tr=>{let cr={};return tr&&typeof tr=="object"?cr={...tr}:cr={value:tr},cr}),minInterval:c.xAxisMinInterval,splitLine:{show:c.xAxisSplitLineShow,lineStyle:{color:c.xAxisSplitLineStyleColor},interval:c.xAxisSplitLineInterval},splitArea:{show:c.xAxisSplitAreaShow},axisLabel:{show:c.xAxisLabelShow,color:c.xAxisLabelColor,interval:c.xAxisLabelInterval||0,rotate:c.xAxisLabelRotate,width:c.xAxisLabelWidth,overflow:c.xAxisLabelOverflow,fontSize:c.xAxisLabelFontSize,formatter(tr){return typeof tr=="string"&&tr[0]==="0"&&!isNaN(+tr)&&(tr=(+tr).toString()),In(Xn,tr)}},axisLine:{show:c.xAxisLineShow,lineStyle:{color:c.xAxisLineStyleColor}},axisTick:{show:c.xAxisTickShow},name:c.xAxisName,nameTextStyle:{fontSize:c.xAxisLabelFontSize,color:c.xAxisLabelColor,align:"left"},max:c.xAxisMaxValue||null},yAxis:{type:"value",minInterval:c.yAxisMinInterval,splitLine:{show:c.yAxisSplitLineShow,lineStyle:{color:c.yAxisSplitLineStyleColor,type:c.yAxisSplitLineType}},splitArea:{show:c.yAxisSplitAreaShow},axisLabel:{show:c.yAxisLabelShow,fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,formatter(tr){return In(Gn,tr)}},axisLine:{show:c.yAxisLineAlwaysDisplay,lineStyle:{color:c.yAxisLineStyleColor}},name:c.yAxisName,nameTextStyle:{fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,align:"right"},max:c.yAxisMaxValue||null},legend:{type:c.legendScroll?"scroll":"plain",width:c.legendWidth,height:c.legendHeight,show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,textStyle:{lineHeight:(g.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:g.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:vue.unref(Fn).map(tr=>({name:tr.name,icon:c.legendType})),formatter:tr=>getLegendFormat(c.legendFormatter,{name:tr})},series:vue.unref(x)}}),w=()=>{g.value=!1},{getGlobalModel:re,setGlobalModel:gn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Xn=>{},setGlobalModel:(Xn,Gn)=>{}}),Vn=vue.computed(()=>c.isShowMarkLine?{markLine:{data:[{type:c.markLineType}]}}:{}),zn=(Xn=[],Gn=!1)=>{var pr;let tr;if(c.dataFieldConfigType==="key"){const lr=Gn?c.keyTypeDataFieldNames:null;tr=Mn(Xn,lr)}else if(c.dataFieldConfigType==="value"){const lr=Gn?c.valueTypeDataFieldNames:null;tr=En(Xn,lr)}Pn.value=tr.dimensions,Fn.value=tr.dataset;const cr=tr.dataset,ir=[],er=cr.length;for(let lr=0;lr<er;lr++){const ar={};c.shadowColor&&(ar.shadowColor=c.shadowColor,ar.shadowBlur=c.shadowBlur,ar.shadowOffsetY=c.shadowOffsetY,ar.shadowOffsetX=c.shadowOffsetX),ir.push({type:"line",...cr[lr],symbolSize:c.symbolSize,smooth:c.smooth,areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:c.colors[lr]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[lr],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...ar},...vue.unref(Vn)})}x.value=ir,(pr=tr.dataset)!=null&&pr.length?f.value=!1:f.value=!0},Kn=(Xn=[],Gn,tr=!1)=>{var ar,or,vr;const ir=Mn(Xn,tr?Gn:null,!0);if(c.defaultRangeValue&&setDefaultRangeVal({props:c,componentList:vue.unref(v),getGlobalModel:re},ir),(ar=ir.dataset)!=null&&ar.length){for(const fr of ir.dataset)if((or=fr.data)!=null&&or.length)for(const mr of fr.data)(mr.value===null||mr.value===void 0)&&(mr.value=0)}Pn.value=ir.dimensions,Fn.value=ir.dataset;const er=ir.dataset,pr=[],lr=er.length;for(let fr=0;fr<lr;fr++){const mr={};c.shadowColor&&(mr.shadowColor=c.shadowColor,mr.shadowBlur=c.shadowBlur,mr.shadowOffsetY=c.shadowOffsetY,mr.shadowOffsetX=c.shadowOffsetX),pr.push({type:"line",...er[fr],symbolSize:c.symbolSize,smooth:c.smooth,areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:c.colors[fr]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[fr],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...mr},...vue.unref(Vn)})}x.value=pr,(vr=ir.dataset)!=null&&vr.length?f.value=!1:f.value=!0};vue.watch(()=>[c.data,c.symbolSize,c.smooth,c.lineStyleWidth,c.areaStyleOpacity,c.areaGradientShow,c.areaGradientColor,c.shadowColor,c.shadowBlur,c.shadowOffsetY,c.shadowOffsetX,c.legendFontSize,c.isShowMarkLine,c.markLineType,c.legendFormatter,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll],([Xn])=>{(c.dataType==="static"||vue.unref(d)==="design")&&zn(Xn)},{immediate:!0,deep:!0});const Un=vue.ref(!1),Qn=useRequestData(c),Yn=async()=>{var Xn,Gn;if(c.dataType==="request")try{Un.value=!0;const tr=await Qn();zn((Gn=(Xn=tr==null?void 0:tr.data)==null?void 0:Xn.data)==null?void 0:Gn.rows,!0)}catch(tr){console.error(tr)}finally{Un.value=!1}},Zn=useEmitEvent(c);gn(c.id,{type:c.type,RECORD:""});const Jn=Zn("click",Xn=>{const Gn=re(c.id);gn(c.id,{...Gn,type:c.type,RECORD:c.tooltipShow?vn:Xn.data})}),nr=Xn=>{m.value.chart.containPixel("grid",[Xn.offsetX,Xn.offsetY])&&Jn()};c.tooltipShow?j.value["zr:click"]=nr:j.value.click=Jn;const sr=Xn=>{var pr;const{columns:Gn=[],rows:tr=[]}=((pr=Xn==null?void 0:Xn.data)==null?void 0:pr.data)??{};let cr;Gn.length>0&&(cr={name:Gn[0],types:Gn.slice(1).map(lr=>({label:lr,value:lr}))});const{leftAxisList:ir=[]}=c.graphicConfig,er=ir.filter(lr=>lr.show).map(lr=>lr.label);for(const lr of tr)if(lr)for(const ar in lr)typeof lr[ar]=="string"&&er.includes(ar)&&!isNaN(parseFloat(lr[ar]))&&(lr[ar]=parseFloat(lr[ar]));Kn(tr,cr,!0)},ur=useIndicatorData(c,Xn=>{c.isViewRedrawing&&m.value.clear(),sr(Xn)}),Hn=async()=>{try{Un.value=!0;const Xn=await ur();sr(Xn)}catch(Xn){console.error(Xn)}finally{Un.value=!1}},Wn=async()=>{switch(c.dataType){case"indicator":await Hn();break;case"request":await Yn();break}};useOnEvent(c,{refreshData:Wn,resetRecord:()=>{const Xn=c.id,Gn=re(Xn);gn(Xn,{...Gn,RECORD:""})},click:Jn});const{setRequest:qn}=vue.inject(REQUEST_MODEL,{setRequest:Xn=>{}});return typeof qn=="function"&&qn({id:c.id,requestFn:Wn,sortNum:c.requestSort}),u({refreshData:Wn}),{option:Bn,style:y,click:Jn,loading:Un,onClose:w,ecanModal:b,eventObj:j,echartRef:m,emptyData:f}}}),Line_vue_vue_type_style_index_0_lang="",Line_vue_vue_type_style_index_1_scoped_dd12eb06_lang="";function _sfc_render$A(c,u,f,d,h,p){const v=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[c.noDataTip&&c.emptyData?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"empty-wrap",style:vue.normalizeStyle({color:c.tipTextColor,fontSize:c.tipTextFontSize})},[vue.createElementVNode("span",null,vue.toDisplayString(c.tipText),1)],4)):(vue.openBlock(),vue.createBlock(v,vue.mergeProps({key:1,ref:"echartRef",option:c.option,autoresize:""},vue.toHandlers(c.eventObj)),null,16,["option"]))]),_:1},8,["spinning"]),vue.createVNode(g,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:c.onClose},{default:vue.withCtx(()=>[vue.createVNode(m,{class:"spin-wrap",spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(v,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Line=_export_sfc$1(_sfc_main$v,[["render",_sfc_render$A],["__scopeId","data-v-dd12eb06"]]),EcanLine=withInstall$1(Line),_sfc_main$u=vue.defineComponent({name:"TrendModal",components:{EcanLine},setup(c,{expose:u}){const f=vue.ref(!1),d=vue.ref(),h=vue.ref(),p=async({data:m,pageConfig:g,unitText:y})=>{var x,Pn;if(m){const b=nanoid(6),J={source:"INDICATOR_LIB",dataSourceId:"",idxLibMode:"",classificationList:[{id:"3f5bda70a08a442085857adb7fc547de",indexCode:null,indexCodeNum:null,title:"日期",name:"the_date",label:"日期",typeGuid:"the_date",genericType:"DATE",hrpIndexComplexid:"the_date",scope:"BUILT_IN_DIM",fromTable:"hrp_index_complex",parentId:"3f5bda70a08a442085857adb7fc547de",show:!0,edit:!1,dataTo:"0",dateFormat:"YYYY-MM",dataSetParams:{}}],leftAxisList:((x=m==null?void 0:m.graphicConfig)==null?void 0:x.indicators)||[],controlList:((Pn=m==null?void 0:m.graphicConfig)==null?void 0:Pn.controlList)||[]};d.value={...lodashEs.cloneDeep(lineProps),id:b,keyName:`折线图_${b}`,position:"relative",top:0,left:0,width:parseFloat(g.width)*.57+"px",height:parseFloat(g.height)*.4+"px",dataType:"indicator",tooltipFormatter:"{marker} {a} {c}"+y,xAxisLabelRotate:45,graphicConfig:J},f.value=!0,vue.nextTick(()=>{vue.unref(h).refreshData()})}},v=()=>document.querySelector("#ProviderConfig > #container")||document.body;return u({showModal:p}),{visible:f,componentConfig:d,lineRef:h,getContainer:v}}}),TrendModal_vue_vue_type_style_index_0_scoped_d11ce019_lang="",_withScopeId$5=c=>(vue.pushScopeId("data-v-d11ce019"),c=c(),vue.popScopeId(),c),_hoisted_1$i=_withScopeId$5(()=>vue.createElementVNode("div",{class:"modal-title"},"趋势图",-1));function _sfc_render$z(c,u,f,d,h,p){const v=vue.resolveComponent("ecan-line"),m=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(m,{visible:c.visible,"onUpdate:visible":u[0]||(u[0]=g=>c.visible=g),width:"60%",getContainer:c.getContainer,footer:null,destroyOnClose:!0,bodyStyle:{maxHeight:"60vh",overflow:"auto",padding:"20px 24px 24px"}},{title:vue.withCtx(()=>[_hoisted_1$i]),default:vue.withCtx(()=>[c.componentConfig?(vue.openBlock(),vue.createBlock(v,vue.mergeProps({key:0},c.componentConfig,{ref:"lineRef"}),null,16)):vue.createCommentVNode("",!0)]),_:1},8,["visible","getContainer"])}const TrendModal=_export_sfc$1(_sfc_main$u,[["render",_sfc_render$z],["__scopeId","data-v-d11ce019"]]),_sfc_main$t=vue.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,components:{ATable:antDesignVue.Table,BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1,CloseOutlined:CloseOutlined$1,IndicatorDetailModal,TrendModal},props:{...providerConfigComponentProps,pageId:{type:String,default:""},customId:{type:String,default:"ProviderConfig"},fixedHeight:{type:String,default:"0px"}},setup(c,{expose:u,emit:f}){c.pageId||useHrefParamsToGlobalVariables();const d=.57,h=.6,p=.97,v=.9,m=vue.ref(),g=vue.ref(),y=vue.computed(()=>INDICATOR_URL),x=vue.computed(()=>hn(c.contextRequestUrl)),Pn=vue.computed(()=>c.pageMode),b=vue.computed(()=>c.theme),J=vue.computed(()=>c.width),j=vue.computed(()=>c.height),vn=vue.computed(()=>c.pageFontFamily),Fn=vue.computed(()=>c.fixedHeight?parseFloat(c.fixedHeight):0),Bn=vue.computed(()=>c.isCompatible),w=vue.computed(()=>c.variableList),re=vue.computed(()=>!!navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)),gn=vue.ref(),Vn=vue.ref({}),zn=vue.ref(),Kn=vue.ref(!1),Un=vue.ref(!1),Qn=vue.ref([]),Yn=vue.ref([]),Zn=vue.ref({}),Jn=()=>{gn.value.setAttribute("datav-theme",c.theme)},nr=vue.ref({currentYmd:dayjs().format("YYYY-MM-DD"),currentYear:dayjs().format("YYYY"),currentMonth:dayjs().format("MM"),currentDay:dayjs().format("DD")}),sr=vue.computed(()=>{const xr={};if(vue.unref(w))for(const Cr of vue.unref(w))xr[Cr.label]=Cr.value;return{$page:{...vue.unref(nr),...xr}}}),ur=vue.computed(()=>{let xr="ind-detail-modal";return Kn.value&&(xr+=" full"),vue.unref(b)==="darkBlue"&&(xr+=" darkBlue"),xr});vue.provide(GLOBAL_VARIABLE,{globalVariable:sr});const Hn=vue.inject("usedComponentList",[]),Wn=vue.inject("componentList",[]);vue.watch(sr,()=>{f("setGlobalVar",vue.unref(nr))},{deep:!0,immediate:!0});const Rn=vue.computed(()=>{const xr=[];for(const wr of vue.unref(Hn))wr.type==="ecanModal"?xr.push(...wr.componentList):xr.push(wr);return xr});vue.watch(()=>c.theme,()=>{Jn()}),vue.onMounted(()=>{Jn()});const qn=vue.computed(()=>{const xr=[],wr=vue.unref(Wn).filter(Cr=>Cr.type==="ecanModal");for(const Cr of wr)Cr!=null&&Cr.requestList&&xr.push(...Cr.requestList);return[...xr,...c.requestList]}),Xn=xr=>Object.prototype.toString.call(xr)==="[object Object]",Gn=xr=>{const wr=xr.split(".");let Cr=vue.unref(sr);for(const Ar of wr)if(Cr&&Xn(Cr))Cr=Cr[Ar];else{Cr="";break}return Cr},tr=vue.ref("");vue.provide(GLOBAL_CONFIG,{contextRequestUrl:x,pageMode:Pn,theme:b,touchEventId:tr,width:J,height:j,fontFamily:vn,requestList:qn,isCompatible:Bn,fixedHeight:Fn,getGlobalVar:Gn});const cr=vue.ref({height:"100%",overflow:c.pageMode==="design"?"":"hidden"});vue.provide("setPageHeight",xr=>{let wr=0;xr==="auto"?wr=xr:(wr=xr.heightScale,Zn.value=xr),(!Bn.value||!re.value)&&(wr=parseFloat(j.value)*wr+"px"),cr.value.height=wr}),vue.provide("isMobile",re.value),vue.provide("getContainerMap",()=>c.containerMap),vue.provide("getCombinationMap",()=>c.combinationMap),vue.provide("templateOperate",{pageId:c.pageId,templateEmit:f,setTemplateData:xr=>{var wr;if(xr!=null&&xr.pageId){const{componentId:Cr,...Ar}=xr;(wr=window.config)!=null&&wr.urlParams||(window.config.urlParams={}),window.config.urlParams[xr.pageId]=Ar,f("templateChange",xr)}}});const ir=vue.ref(),er=new Map,pr=()=>er,lr=xr=>{let wr=er.get(xr);if(!wr){const Cr=vue.unref(Wn).find(Ar=>Ar.keyName===xr);Cr&&(wr=er.get(Cr.id))}return wr},ar=(xr,wr)=>{var Cr;if(ir.value=wr,er.set(xr,wr),!c.pageId){const Ar=vue.unref(Hn).find(Tr=>Tr.id===xr);Ar&&((Cr=window.config)!=null&&Cr.record||(window.config.record={}),window.config.record[Ar.keyName]=wr)}},or=()=>{ir.value=null},vr=xr=>{let wr=xr;if(wr){const Cr=xr.match(/\{(.+?)\}/g);if(Cr!=null&&Cr.length){let Ar=Cr[0].slice(1,-1).trim();const Tr=Ar.match(/\[(.+?)\]/g);let Dr="";Tr!=null&&Tr.length&&(Ar=Ar.replace(Tr[0],""),Dr=Tr[0].slice(1,-1).trim());const Lr=vue.unref(Rn).find($r=>$r.keyName===Ar);if(Lr){const $r=lr(Lr.id),{type:qr,value:Wr,RECORD:jr,recordData:Kr}=$r||{};yn(qr,MODEL_KEY_LIST)?wr=jr[Dr]:yn(qr,"select")?Kr[Dr]?wr=Kr[Dr]:wr=vue.unref(Wr):yn(qr,["rangePicker","date"])?dayjs.isDayjs(vue.unref($r[Dr]))?wr=vue.unref($r[Dr]).format($r.format):wr=vue.unref($r[Dr]):wr=Wr}else{const $r=window.config.requestParams||{},qr=window.location.search.slice(1).split("&"),Wr={};for(const Kr of qr)if(Kr!=null&&Kr.includes("=")){const Xr=Kr.split("=");Wr[Xr[0]]=Xr[1]||""}wr={...Wr,...$r}[Ar]||""}}}return wr},fr=new Map,mr={},dr=async(xr,wr)=>{var Lr;const{requestName:Cr}=xr,Ar=await useRequestData({...xr,projectRequestUrl:vue.unref(x),getModel:lr})(),Tr=((Lr=Ar==null?void 0:Ar.data)==null?void 0:Lr.data)||{};xr.requestKeyName&&(nr.value[xr.requestKeyName]=Tr);const Dr=fr.get(Cr);if(Dr!=null&&Dr.length&&(!wr||mr[Cr])){for(const $r of Dr)$r(Tr);wr||fr.delete(Cr)}},hr=(xr,wr)=>{mr[xr]&&(clearInterval(mr[xr]),delete mr[xr],fr.delete(xr));const Cr=vue.unref(Rn).filter(Tr=>Tr.dataType==="request"&&!Tr.openCustomRequestData&&Tr.customRequestName===xr),Ar=fr.get(xr)||[];if((Cr==null?void 0:Cr.length)>Ar.length&&(Ar.push(wr),fr.set(xr,Ar),(Cr==null?void 0:Cr.length)===Ar.length)){const Tr=vue.unref(qn).find(Dr=>Dr.requestName===xr);Tr&&(Tr!=null&&Tr.isOpenRequestTimer&&(Tr!=null&&Tr.requestInterval)?(dr(Tr,!0),mr[xr]=setInterval(()=>{dr(Tr,!0)},Tr.requestInterval*1e3)):dr(Tr))}};vue.provide(GLOBAL_MODEL,{getGlobalModel:lr,setGlobalModel:ar,getAllGlobalModel:pr,clearInteractiveData:or,getRecordValueByKeyName:vr,hanldePageRequestData:hr,interactiveData:ir});const yr=vue.ref({}),_r=(xr,wr)=>{yr.value[xr]=wr};vue.provide(LOADED_DATA,{loadedData:yr,setLoadedData:_r});const gr=[],br=()=>{gr.pop()},Er=xr=>{gr.push(xr)},Mr=new Map,Ir=xr=>Mr.get(xr),Or=(xr,wr)=>{Mr.set(xr,wr)};vue.provide(MODAL_MODEL,{popUseModalIds:br,pushUseModalIds:Er,getModalModel:Ir,setModalModel:Or});const Rr=mitt(),Nr=new Set,zr=(xr,wr)=>{Nr.add(xr),Rr.on(xr,Cr=>{const{eventName:Ar,params:Tr}=Cr;return typeof wr[Ar]=="function"&&wr[Ar](Tr)}),vue.onBeforeUnmount(()=>{Fr(xr)})},Fr=xr=>{Nr.delete(xr),Rr.off(xr)},Vr=(xr,wr,Cr={})=>{if(xr==="PAGE"){const Ar=gr.length;let Tr=[];if(Ar===0)Tr=[...Nr];else{const Dr=gr[Ar-1];Tr=[...Ir(Dr)]}Tr.forEach(Dr=>{Rr.emit(Dr,{eventName:wr,params:Cr})})}else Rr.emit(xr,{eventName:wr,params:Cr})};vue.provide(EVENT_BUS,{onEvent:zr,offEvent:Fr,emitEvent:Vr});const Gr=vue.ref(0),Hr=()=>{Gr.value=vue.unref(Gr)+1};vue.provide(GLOBAL_TOKEN,{requestToken:Hr});const Ur=new Map,Yr=new Map,Qr=({requestFn:xr=()=>{},sortNum:wr=0,id:Cr=""})=>{if(Ur.has(wr)){const Ar=Ur.get(wr);Ar==null||Ar.push(xr)}else Ur.set(wr,[xr]);Yr.set(Cr,xr)},ri=xr=>new Promise((wr,Cr)=>{const Ar=[];for(const Tr of xr)Ar.push(new Promise(async Dr=>{await Tr(),Dr()}));Promise.all(Ar).then(Tr=>{wr(Tr)}).catch(Tr=>{Cr(Tr)})}),ti=xr=>new Promise(async(wr,Cr)=>{if(xr){if(typeof xr=="string"){const Ar=Yr.get(xr);if(typeof Ar=="function"){const Tr=request.interceptors.response.use(Dr=>(wr(Dr),Dr),Dr=>(Cr(Dr),Promise.reject(Dr)));Ar(),request.interceptors.response.eject(Tr)}}}else{const Ar=Array.from(Ur);Ar.sort((Dr,Lr)=>Lr[0]-Dr[0]);const Tr=Ar.length;try{c.pageMode!=="design"&&vue.unref(Gr)>0;for(let Dr=0;Dr<Tr;Dr++){const Lr=Ar[Dr][1];await ri(Lr)}}catch(Dr){console.error(Dr)}finally{Ur.clear(),wr(null)}}});vue.provide(REQUEST_MODEL,{setRequest:Qr,touchRequest:ti});const oi=()=>{Rr.emit(REFRESH_PAGE)};vue.provide(REFRESH_PAGE,{emitRefreshPage:oi});const vi=xr=>{Rr.on(REFRESH_PAGE,()=>xr()),vue.onMounted(()=>{Rr.off(REFRESH_PAGE)})},hi=vue.ref({}),ai=vue.reactive({keyName:"",visible:!1,dataSource:[],columns:[],title:"",pagination:{current:1,pageSize:10,total:0,showSizeChanger:!1,showQuickJumper:!1,showTotal:xr=>`共 ${xr} 条数据`}});vue.provide(All_COMPONENT_RES_DATA,{allComponentResData:hi});const xi={borderColor:"#666E8D",headerBgColor:"#06347C",headerColor:"#DEE5EF",bodyBgColor:"#112861",bodyColor:"#B2CCE7",indicatorsHeaderBgColor:"#184273",indicatorsHeaderColor:"#FFFFFF",indicatorsBodyBgColor:"#184273",indicatorsBodyColor:"#FFFFFF",aggregateBgColor:"#0F4F9B",aggregateColor:"#FFFCFC",sortNotActiveColor:"#B0B0B0",sortActiveColor:"#00CCFF",dropDownMenuBgColor:"#08154F",dropDownMenuColor:"#B2C3DD",dropDownMenuHightLightColor:"#2E68CF"},Ci=async xr=>{var Kr,Xr,ci,ui,si;if(re.value||c.drillingMode==="default")return;let wr=lodashEs.cloneDeep(xr).props;if(wr.parentId){const Zr=vue.unref(Hn).find(ei=>ei.id===wr.parentId);if((Zr==null?void 0:Zr.dataType)==="indicator")wr=lodashEs.cloneDeep(Zr);else return}ai.keyName=wr==null?void 0:wr.keyName;const Cr=((Kr=window==null?void 0:window.config)==null?void 0:Kr.indicatorToken)||"",Ar=Br(),Tr=(wr==null?void 0:wr.graphicConfig)||{},{leftAxisList:Dr=[],rightAxisList:Lr=[],indicators:$r=[]}=Tr,qr=Dr.concat(Lr).concat($r);if(!(qr!=null&&qr.length))return;const Wr=qr.filter(Zr=>Zr.show).map(Zr=>Zr.label);Wr!=null&&Wr.length&&(ai.title=`下钻:${Wr.join("、")}`);const jr=Dn({...wr,globalModel:pr()});if(c.drillingMode==="pivotTable"){const Zr=await ki({cpntProps:wr,pageId:Ar,formatParams:jr,classifications:[],indicatorToken:Cr});Yn.value=((Xr=Zr==null?void 0:Zr.data)==null?void 0:Xr.data)||[];const ei=nanoid(6);Tr.queryColumnList||(Tr.queryColumnList=[]),Tr!=null&&Tr.classificationList&&(Tr.queryColumnList=Tr.classificationList,delete Tr.classificationList),Tr!=null&&Tr.seriesList&&(Tr.queryColumnList=Tr.queryColumnList.concat(Tr.seriesList),delete Tr.seriesList),Tr.indicators=lodashEs.cloneDeep(qr||[]),delete Tr.leftAxisList,delete Tr.rightAxisList;const Mi={};if(yn(wr.type,"indexPanel")){const Oi=Tr.indicators.find(fi=>fi.show),Ai=vue.unref(Yn).slice(0,2).sort((fi,yi)=>fi.typeGuid-yi.typeGuid).map(fi=>({...fi,show:!0,edit:!1,dataTo:"0",dataSetParams:{}}));Ai!=null&&Ai.length&&(Tr.queryColumnList=Ai);const Ti=Pr(wr);if(Ti&&Oi){const{label:fi}=Oi;Mi.defaultConfig={indexFormatConfig:{[fi]:{fieldName:fi,indicatorKey:fi,position:"right",unit:Ti}}}}}(ci=Tr.queryColumnList)!=null&&ci.length||(Tr.queryColumnList=[{id:"3f5bda70a08a442085857adb7fc547de",indexCode:null,indexCodeNum:null,title:"日期(内置)",name:"the_date",label:"日期(内置)",typeGuid:"the_date",genericType:"DATE",hrpIndexComplexid:"the_date",scope:"BUILT_IN_DIM",fromTable:"hrp_index_complex",parentId:"3f5bda70a08a442085857adb7fc547de",show:!0,edit:!1,dataTo:"0",dataSetParams:{}}]);const Bi={...lodashEs.cloneDeep(pivotTableProps),id:ei,keyName:`透视表_${ei}`,position:"relative",top:0,left:0,width:parseFloat(c.width)*d+"px",height:document.body.clientHeight*h+"px",pageId:Ar,indicatorToken:Cr,context:CONTEXT,globalModel:pr(),graphicConfig:Tr,pageConfig:c,...Mi};vue.unref(b)==="darkBlue"&&(Bi.styleConfig=xi),Vn.value=Bi,ai.visible=!0,vue.nextTick(()=>{vue.unref(zn).refreshData()})}else if(c.drillingMode==="normalTable"){Pi(jr,lodashEs.cloneDeep(xr.props));let Zr=(jr==null?void 0:jr.classification)||(jr==null?void 0:jr.classifications)||[];Array.isArray(Zr)||(Zr=[Zr]);try{Un.value=!0,ai.visible=!0;const ei=await ki({cpntProps:wr,pageId:Ar,formatParams:jr,classifications:Zr,indicatorToken:Cr}),Mi=((ui=ei==null?void 0:ei.data)==null?void 0:ui.data)||[],Bi=Zr.map(li=>({...li,calcType:"COLUMN"}));for(const li of Mi)Bi.push({calcType:"COLUMN",columnName:li.name,label:li.name,show:!0,typeGuid:li.typeGuid});jr.queryColumns=Bi,jr.layer="1",jr.plugin="1",delete jr.classification,delete jr.classifications;const{url:Oi,...Ai}=jr||{},Ti=await request({url:`${vue.unref(y)}${Oi}`,method:"post",headers:{Authentication:Cr,operateContext:CONTEXT},data:{...Ai,pageId:Ar}}),{columns:fi=[],rows:yi=[]}=((si=Ti==null?void 0:Ti.data)==null?void 0:si.data)||{};ai.columns=fi.filter(li=>!!li).map(li=>{let Ni=li;const Fi=Mi.find(zi=>zi.name===li);return Fi&&(Ni=Fi.title||Fi.label),{title:Ni,dataIndex:li,width:"120px"}}),ai.dataSource=(Array.isArray(yi)?yi:[yi]).map(li=>({...li,uuid:nanoid(6)})),ai.pagination.total=(yi==null?void 0:yi.length)||0,Un.value=!1}catch(ei){console.error(ei)}}vue.nextTick(()=>{Si(!0),pi(!0)})},Si=xr=>{const wr=document.querySelector(".ind-detail-modal .ant-modal-header");wr&&(xr?wr.addEventListener("dblclick",gi):wr.removeEventListener("dblclick",gi))},pi=xr=>{const wr=document.querySelector(".ind-detail-modal .ant-modal-header");if(wr)if(xr)wr.addEventListener("mousedown",wi);else{const Cr=wr.parentElement;Cr&&(Cr.style.left="",Cr.style.top=""),wr.removeEventListener("mousedown",wi)}};function wi(xr){dragModalAction(xr,".ind-detail-modal .ant-modal-header")}const ki=async({cpntProps:xr,pageId:wr,formatParams:Cr,classifications:Ar,indicatorToken:Tr})=>{var Dr,Lr,$r;return await request({url:`${vue.unref(y)}/diagram/obtainDrillAbleDimensionOptions`,method:"post",headers:{Authentication:Tr,operateContext:CONTEXT},data:{source:((Dr=xr==null?void 0:xr.graphicConfig)==null?void 0:Dr.source)||"INDICATOR_LIB",pageId:wr,indicatorList:(Cr==null?void 0:Cr.indicatorList)||[],classifications:Ar,dataSourceId:((Lr=xr==null?void 0:xr.graphicConfig)==null?void 0:Lr.dataSourceId)||""},signal:(($r=window.controller)==null?void 0:$r.signal)||""})},mi={IN:"属于",NOT_IN:"不属于",LIKE:"包含",NOT_LIKE:"不包含","LIKE%":"开头是","%LIKE":"结尾是",EQUAL:"等于",LESS:"小于",LESS_EQUAL:"小于等于",GREATER:"大于",GREATER_EQUAL:"大于等于",NOT_EQUAL:"不等于"};function di(xr,wr,Cr){const Ar=[];for(const Tr of xr)Tr[wr]?Ar.push(...di(Tr[wr],wr,Cr)):Tr.filter?Ar.push({...Tr.filter,label:Tr.label}):(!Cr||Tr.dataType!=="component"&&!(Tr.fieldValue.startsWith("${")&&Tr.fieldValue.endsWith("}")))&&Ar.push(Tr);return Ar}const Pi=(xr,wr)=>{const{leftAxisList:Cr=[],rightAxisList:Ar=[],indicators:Tr=[],classificationList:Dr=[],rowHeaderList:Lr=[],dimensionList:$r=[],seriesList:qr=[],queryColumns:Wr=[],indexLibColumns:jr=[]}=wr.graphicConfig,Xr=Cr.concat(Ar).concat(Tr).concat(Dr).concat(Lr).concat($r).concat(qr).concat(Wr).concat(jr).filter(si=>si.conditions),ci=di(Xr,"conditions",!0),ui=di(xr.sqlConditions,"sqlConditions",!1);Qn.value=ci.concat(ui).filter(si=>si.label).map(si=>{let Zr=si.fieldValue;if(Zr){const ei=Zr.split(",");(ei==null?void 0:ei.length)>3&&(Zr=ei.slice(0,3).join(",")+"等")}else Zr='""';return`${si.label} ${mi[si.rule]} ${Zr}`})||[]},gi=()=>{Kn.value=!Kn.value,vue.nextTick(()=>{Kn.value?(vue.unref(Vn).width=parseFloat(c.width)*p+"px",vue.unref(Vn).height=document.body.clientHeight*v+"px",pi(!1)):(vue.unref(Vn).width=parseFloat(c.width)*d+"px",vue.unref(Vn).height=document.body.clientHeight*h+"px",pi(!0))})},Ei=()=>{Kn.value=!1,Si(!1),pi(!1)},Ii=({type:xr,data:wr})=>{if(xr==="11"&&wr){const{indicatorList:Cr=[],queryColumns:Ar=[]}=wr,Dr=Cr.concat(Ar).filter(qr=>qr.conditions||qr.filter),Lr=di(Dr,"conditions",!0),$r=di(wr.sqlConditions,"sqlConditions",!1);Qn.value=Lr.concat($r).filter(qr=>qr.label).map(qr=>{const Wr=vue.unref(Yn).find(Kr=>Kr.label===qr.label);let jr=qr.fieldValue;if(jr&&typeof jr=="string"){const Kr=jr.split(",");(Kr==null?void 0:Kr.length)>3&&(jr=Kr.slice(0,3).join(",")+"等")}else jr||(jr='""');return`${(Wr==null?void 0:Wr.title)||qr.label} ${mi[qr.rule]} ${jr}`})||[]}},_i=xr=>{const{id:wr,data:Cr}=xr;Cr.success&&(hi.value[wr]=(Cr==null?void 0:Cr.data)||{})},ni=(xr,wr)=>{switch(xr){case"SHOW_INDICATOR_DETAIL_MODAL":Ci(wr);break;case"SAVE_COMPONENT_RES_DATA":_i(wr);break}};vue.provide(COMMON_OPERATE,{operateAction:ni});const ii=()=>document.querySelector("#ProviderConfig > #container")||document.body,Di=xr=>{ai.pagination.current=xr.current};vue.watchEffect(()=>{var xr;if((xr=vue.unref(Hn))!=null&&xr.length&&vue.unref(Pn)!=="design"){const{jumpType:wr,jumpTime:Cr,jumpPage:Ar,jumpLink:Tr}=c;if(Cr!=null&&Cr.value){let Dr=0;switch(Cr==null?void 0:Cr.suffix){case"hours":Dr=Cr.value*60*60*1e3;break;case"minute":Dr=Cr.value*60*1e3;break;case"seconds":Dr=Cr.value*1e3;break}setTimeout(()=>{let Lr="";wr==="page"&&Ar?Lr=usePageUrl(vue.unref(Pn),Ar):wr==="link"&&Tr&&(Lr=Tr),Lr=hn(Lr),window.open(Lr,"_self")},Dr)}}});const Sr=xr=>{var wr;vue.unref(m).showModal({data:xr,indicatorUrl:vue.unref(y),indicatorToken:((wr=window==null?void 0:window.config)==null?void 0:wr.indicatorToken)||"",context:CONTEXT,pageId:Br()})},kr=xr=>{vue.unref(g).showModal({data:xr,pageConfig:c,unitText:Pr(xr)})},Pr=xr=>{let wr="",Cr="";const{componentConfig:Ar}=xr;for(const Dr in Ar)if(Ar[Dr].key==="currentValue"){Cr=Dr;break}const Tr=vue.unref(Wn).find(Dr=>Dr.id===Cr);return Tr!=null&&Tr.unitText&&(wr=Tr.unitText),wr};vue.provide("showIndDetail",Sr);function Br(){var wr;let xr=((wr=window==null?void 0:window.config)==null?void 0:wr.pageId)||"";if(!xr){const{pathname:Cr}=window==null?void 0:window.location;if(Cr){const Ar=Cr.split("/");Ar!=null&&Ar.length&&(xr=Ar[Ar.length-1])}}return xr}return vue.onBeforeUnmount(()=>{Ur==null||Ur.clear(),Yr==null||Yr.clear()}),u({touchRequest:ti,getGlobalModel:lr,onRefreshPage:vi,emitEvent:Vr,getRecordValueByKeyName:vr,showIndDetail:Sr,showTrend:kr,props:c,systemVariable:nr}),{providerConfig:gn,configStyle:cr,indDetailInfo:ai,pivotTableConfig:Vn,indicatorUrl:y,pivotTableRef:zn,isIndFullScreen:Kn,wrapClassName:ur,theme:b,detailLoading:Un,conditionInfo:Qn,indDetailModalRef:m,trendModalRef:g,allDimensions:Yn,scaleValue:Zn,getContainer:ii,handleTableChange:Di,toggleFullScreen:gi,onDetailCancel:Ei,onPivotTableChange:Ii}}}),ProviderConfig_vue_vue_type_style_index_0_scoped_298a0f60_lang="",ProviderConfig_vue_vue_type_style_index_1_lang="",_hoisted_1$h=["id"],_hoisted_2$8=["title"],_hoisted_3$4={key:0,class:"spin-container"},_hoisted_4$3=["title"];function _sfc_render$y(c,u,f,d,h,p){const v=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("switcher-outlined"),g=vue.resolveComponent("border-outlined"),y=vue.resolveComponent("pivot-table"),x=vue.resolveComponent("a-spin"),Pn=vue.resolveComponent("a-table"),b=vue.resolveComponent("a-modal"),J=vue.resolveComponent("indicator-detail-modal"),j=vue.resolveComponent("trend-modal");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",{class:"provider-config-container",id:c.customId,ref:"providerConfig",style:vue.normalizeStyle({...c.configStyle,fontFamily:c.pageFontFamily})},[vue.renderSlot(c.$slots,"default",{},void 0,!0)],12,_hoisted_1$h),vue.createVNode(b,{visible:c.indDetailInfo.visible,"onUpdate:visible":u[1]||(u[1]=vn=>c.indDetailInfo.visible=vn),width:"60%",getContainer:c.getContainer,footer:null,destroyOnClose:!0,"wrap-class-name":c.wrapClassName,onCancel:c.onDetailCancel},{title:vue.withCtx(()=>[vue.createElementVNode("div",{class:"detail-modal-title",title:c.conditionInfo.join("、")},vue.toDisplayString(c.indDetailInfo.title)+" "+vue.toDisplayString(c.conditionInfo.join("、")),9,_hoisted_2$8)]),closeIcon:vue.withCtx(()=>[vue.createVNode(v,{class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"])]),default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"zoom-btn",onClick:u[0]||(u[0]=(...vn)=>c.toggleFullScreen&&c.toggleFullScreen(...vn))},[c.isIndFullScreen?(vue.openBlock(),vue.createBlock(m,{key:0,class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"])):(vue.openBlock(),vue.createBlock(g,{key:1,class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"]))]),c.drillingMode==="pivotTable"?(vue.openBlock(),vue.createElementBlock("div",{key:0,style:vue.normalizeStyle({position:"relative",width:c.pivotTableConfig.width,height:c.pivotTableConfig.height})},[vue.createVNode(y,vue.mergeProps({ref:"pivotTableRef"},c.pivotTableConfig,{pageMode:c.pageMode,theme:c.theme,fullMode:!1,allowDrill:!0,showFullScreen:!1,indicatorUrl:c.indicatorUrl,relateKeyName:c.indDetailInfo.keyName,allDimensions:c.allDimensions,scaleValue:c.scaleValue,enlargeContainer:"#norPageConfig",onTableChange:c.onPivotTableChange}),null,16,["pageMode","theme","indicatorUrl","relateKeyName","allDimensions","scaleValue","onTableChange"])],4)):c.drillingMode==="normalTable"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[c.detailLoading?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$4,[vue.createVNode(x,{size:"large"})])):(vue.openBlock(),vue.createBlock(Pn,{key:1,scroll:{x:"max-content",y:c.isIndFullScreen?"100vh":"60vh"},"row-key":vn=>vn.uuid,columns:c.indDetailInfo.columns,"data-source":c.indDetailInfo.dataSource,pagination:c.indDetailInfo.pagination,onChange:c.handleTableChange},{headerCell:vue.withCtx(({title:vn})=>[vue.createElementVNode("div",{class:"detail-table-header-cell",title:vn},vue.toDisplayString(vn),9,_hoisted_4$3)]),_:1},8,["scroll","row-key","columns","data-source","pagination","onChange"]))],64)):vue.createCommentVNode("",!0)]),_:1},8,["visible","getContainer","wrap-class-name","onCancel"]),vue.createVNode(J,{ref:"indDetailModalRef",theme:c.theme},null,8,["theme"]),vue.createVNode(j,{ref:"trendModalRef"},null,512)],64)}const ProviderConfig=_export_sfc$1(_sfc_main$t,[["render",_sfc_render$y],["__scopeId","data-v-298a0f60"]]),EcanProviderConfig=withInstall$1(ProviderConfig),textProps={...props,name:"文本",keyName:"文本",type:"ecanText",width:"100px",height:"40px",text:"文字",lineHeight:"18px",color:"#333",variableColor:"#f00",fontSize:"14px",fontFamily:"",fontWeight:400,textShadow:"",justifyContent:"center",alignItems:"center",variableFontSize:"14px",variableDefaultValue:"0",format:"",target:"self",href:"",linkPage:"",data:{},percentageSide:"left",increaseColor:"",declineColor:"",minusSignShow:!0,unitShow:!0,unitText:"",unitFontSize:"14px",unitFontWeight:400,unitColor:"#333",unitTop:"",unitLeft:"",graphicConfig:{},targetShow:!1,targetRule:"",targetValue:"",notExpectColor:"",gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",openCustomRequestData:!0,customRequestName:"",customRequestField:"",showEllipsis:!1,showAnimation:!1,transParams:[],exceedConfig:"",targetTemplate:"",dataSetchecked:!1,titleContent:"",titleBackgroundColor:"#ffffff",titleFontColor:"#000000",isMarkDown:!1,isContentMarkDown:!1,parentId:""},textComponentProps=transformToComponentProps(textProps),textEvents=["refreshData","click","valueChange"],goUp="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=",goDown="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==";var esmEntry$1={exports:{}},defaults$5={exports:{}};function getDefaults$1(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function changeDefaults$1(c){defaults$5.exports.defaults=c}defaults$5.exports={defaults:getDefaults$1(),getDefaults:getDefaults$1,changeDefaults:changeDefaults$1};const escapeTest=/[&<>"']/,escapeReplace=/[&<>"']/g,escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g,escapeReplacements={"&":"&","<":"<",">":">",'"':""","'":"'"},getEscapeReplacement=c=>escapeReplacements[c];function escape$3(c,u){if(u){if(escapeTest.test(c))return c.replace(escapeReplace,getEscapeReplacement)}else if(escapeTestNoEncode.test(c))return c.replace(escapeReplaceNoEncode,getEscapeReplacement);return c}const unescapeTest=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function unescape$1(c){return c.replace(unescapeTest,(u,f)=>(f=f.toLowerCase(),f==="colon"?":":f.charAt(0)==="#"?f.charAt(1)==="x"?String.fromCharCode(parseInt(f.substring(2),16)):String.fromCharCode(+f.substring(1)):""))}const caret=/(^|[^\[])\^/g;function edit$1(c,u){c=c.source||c,u=u||"";const f={replace:(d,h)=>(h=h.source||h,h=h.replace(caret,"$1"),c=c.replace(d,h),f),getRegex:()=>new RegExp(c,u)};return f}const nonWordAndColonTest=/[^\w:]/g,originIndependentUrl=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function cleanUrl$1(c,u,f){if(c){let d;try{d=decodeURIComponent(unescape$1(f)).replace(nonWordAndColonTest,"").toLowerCase()}catch{return null}if(d.indexOf("javascript:")===0||d.indexOf("vbscript:")===0||d.indexOf("data:")===0)return null}u&&!originIndependentUrl.test(f)&&(f=resolveUrl(u,f));try{f=encodeURI(f).replace(/%25/g,"%")}catch{return null}return f}const baseUrls={},justDomain=/^[^:]+:\/*[^/]*$/,protocol=/^([^:]+:)[\s\S]*$/,domain=/^([^:]+:\/*[^/]*)[\s\S]*$/;function resolveUrl(c,u){baseUrls[" "+c]||(justDomain.test(c)?baseUrls[" "+c]=c+"/":baseUrls[" "+c]=rtrim$1(c,"/",!0)),c=baseUrls[" "+c];const f=c.indexOf(":")===-1;return u.substring(0,2)==="//"?f?u:c.replace(protocol,"$1")+u:u.charAt(0)==="/"?f?u:c.replace(domain,"$1")+u:c+u}const noopTest$1={exec:function(){}};function merge$2(c){let u=1,f,d;for(;u<arguments.length;u++){f=arguments[u];for(d in f)Object.prototype.hasOwnProperty.call(f,d)&&(c[d]=f[d])}return c}function splitCells$1(c,u){const f=c.replace(/\|/g,(p,v,m)=>{let g=!1,y=v;for(;--y>=0&&m[y]==="\\";)g=!g;return g?"|":" |"}),d=f.split(/ \|/);let h=0;if(d[0].trim()||d.shift(),d[d.length-1].trim()||d.pop(),d.length>u)d.splice(u);else for(;d.length<u;)d.push("");for(;h<d.length;h++)d[h]=d[h].trim().replace(/\\\|/g,"|");return d}function rtrim$1(c,u,f){const d=c.length;if(d===0)return"";let h=0;for(;h<d;){const p=c.charAt(d-h-1);if(p===u&&!f)h++;else if(p!==u&&f)h++;else break}return c.substr(0,d-h)}function findClosingBracket$1(c,u){if(c.indexOf(u[1])===-1)return-1;const f=c.length;let d=0,h=0;for(;h<f;h++)if(c[h]==="\\")h++;else if(c[h]===u[0])d++;else if(c[h]===u[1]&&(d--,d<0))return h;return-1}function checkSanitizeDeprecation$1(c){c&&c.sanitize&&!c.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function repeatString$1(c,u){if(u<1)return"";let f="";for(;u>1;)u&1&&(f+=c),u>>=1,c+=c;return f+c}var helpers={escape:escape$3,unescape:unescape$1,edit:edit$1,cleanUrl:cleanUrl$1,resolveUrl,noopTest:noopTest$1,merge:merge$2,splitCells:splitCells$1,rtrim:rtrim$1,findClosingBracket:findClosingBracket$1,checkSanitizeDeprecation:checkSanitizeDeprecation$1,repeatString:repeatString$1};const{defaults:defaults$4}=defaults$5.exports,{rtrim,splitCells,escape:escape$2,findClosingBracket}=helpers;function outputLink(c,u,f,d){const h=u.href,p=u.title?escape$2(u.title):null,v=c[1].replace(/\\([\[\]])/g,"$1");if(c[0].charAt(0)!=="!"){d.state.inLink=!0;const m={type:"link",raw:f,href:h,title:p,text:v,tokens:d.inlineTokens(v,[])};return d.state.inLink=!1,m}else return{type:"image",raw:f,href:h,title:p,text:escape$2(v)}}function indentCodeCompensation(c,u){const f=c.match(/^(\s+)(?:```)/);if(f===null)return u;const d=f[1];return u.split(`
|
|
103
103
|
`).map(h=>{const p=h.match(/^\s+/);if(p===null)return h;const[v]=p;return v.length>=d.length?h.slice(d.length):h}).join(`
|
|
104
104
|
`)}var Tokenizer_1$1=class{constructor(u){this.options=u||defaults$4}space(u){const f=this.rules.block.newline.exec(u);if(f)return f[0].length>1?{type:"space",raw:f[0]}:{raw:`
|
|
105
105
|
`}}code(u){const f=this.rules.block.code.exec(u);if(f){const d=f[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:f[0],codeBlockStyle:"indented",text:this.options.pedantic?d:rtrim(d,`
|