@ecan-bi/datav 1.5.7 → 1.5.8
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 +5 -5
- 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.8 */
|
|
2
2
|
(function(Jr,gi){typeof exports=="object"&&typeof module<"u"?gi(exports,require("vue"),require("echarts/core"),require("resize-detector"),require("ant-design-vue"),require("ant-design-vue/es/spin/style"),require("ant-design-vue/es/skeleton/style"),require("lodash-es"),require("dayjs"),require("axios"),require("mitt"),require("ant-design-vue/es/progress/style"),require("ant-design-vue/es/input/style"),require("ant-design-vue/es/date-picker/style"),require("ant-design-vue/es/date-picker/locale/zh_CN"),require("ant-design-vue/es/button/style"),require("ant-design-vue/es/checkbox/style"),require("ant-design-vue/es/select/style"),require("ant-design-vue/es/tree-select/style"),require("echarts/renderers"),require("echarts/charts"),require("echarts/components"),require("ant-design-vue/es/modal/style"),require("echarts"),require("ant-design-vue/es/table/style"),require("ant-design-vue/es/notification/style"),require("xlsx"),require("big.js")):typeof define=="function"&&define.amd?define(["exports","vue","echarts/core","resize-detector","ant-design-vue","ant-design-vue/es/spin/style","ant-design-vue/es/skeleton/style","lodash-es","dayjs","axios","mitt","ant-design-vue/es/progress/style","ant-design-vue/es/input/style","ant-design-vue/es/date-picker/style","ant-design-vue/es/date-picker/locale/zh_CN","ant-design-vue/es/button/style","ant-design-vue/es/checkbox/style","ant-design-vue/es/select/style","ant-design-vue/es/tree-select/style","echarts/renderers","echarts/charts","echarts/components","ant-design-vue/es/modal/style","echarts","ant-design-vue/es/table/style","ant-design-vue/es/notification/style","xlsx","big.js"],gi):(Jr=typeof globalThis<"u"?globalThis:Jr||self,gi(Jr["@ecan/bi-datav"]={},Jr.Vue,Jr["echarts/core"],Jr.ResizeDetector,Jr.AntDesignVue,null,null,Jr.LodashEs,Jr.Dayjs,Jr.Axios,Jr.Mitt,null,null,null,Jr["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,Jr["echarts/renderers"],Jr["echarts/charts"],Jr["echarts/components"],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,style$3,style$4,style$5,locale,style$6,style$7,style$8,style$9,renderers,charts,components$1,style$a,echarts,style$b,style$c,xlsx,big_js){var Jr,gi,Bi,Fi;"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 h=Object.getOwnPropertyDescriptor(c,f);Object.defineProperty(u,f,h.get?h:{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(d){return(...p)=>{if(c.value||u(),!c.value)throw new Error("ECharts is not initialized yet.");return c.value[d].apply(c.value,p)}}function h(){const d=Object.create(null);return METHOD_NAMES.forEach(p=>{d[p]=f(p)}),d}return h()}function useAutoresize(c,u,f){let h=null;vue.watch([f,c,u],([d,p,v],m,g)=>{d&&p&&v&&(h=core$1.throttle(()=>{p.resize()},100),resizeDetector.addListener(d,h)),g(()=>{h&&d&&resizeDetector.removeListener(d,h)})})}const autoresizeProps={autoresize:Boolean},LOADING_OPTIONS_KEY="ecLoadingOptions";function useLoading(c,u,f){const h=vue.inject(LOADING_OPTIONS_KEY,{}),d=vue.computed(()=>({...vue.unref(h),...f==null?void 0:f.value}));vue.watchEffect(()=>{const p=c.value;p&&(u.value?p.showLoading(d.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 h=vue.shallowRef(),d=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)),re=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(d.value||!h.value)return;const Un=d.value=core$1.init(h.value,re.value,vn.value);c.group&&(Un.group=c.group);let Qn=f;Qn||(Qn={},Object.keys(u).filter(Zn=>Zn.indexOf("on")===0&&Zn.length>2).forEach(Zn=>{const nr=Zn.charAt(2).toLowerCase()+Zn.slice(3);Qn[nr]=u[Zn]})),Object.keys(Qn).forEach(Zn=>{const nr=Qn[Zn];nr&&(Zn.indexOf("zr:")===0?Un.getZr().on(Zn.slice(3).toLowerCase(),nr):Un.on(Zn.toLowerCase(),nr))});function Jn(){if(Un&&!Un.isDisposed())try{Un.resize()}catch(Zn){if(Zn.message==="Cannot read property 'get' of undefined")return;throw Zn}}function Yn(){Un.setOption(Kn||j.value,Fn.value)}y.value?vue.nextTick(()=>{Jn(),Yn()}):Yn()}function J(Kn,Un){c.manualUpdate&&(p.value=Kn),d.value?d.value.setOption(Kn,Un||{}):w(Kn)}function gn(){d.value&&(d.value.dispose(),d.value=void 0)}let Vn=null;vue.watch(x,Kn=>{typeof Vn=="function"&&(Vn(),Vn=null),Kn||(Vn=vue.watch(()=>c.option,Un=>{Un&&(d.value?d.value.setOption(Un,Fn.value):w())},{deep:!0}))},{immediate:!0}),vue.watch([re,vn],()=>{gn(),w()},{deep:!0}),vue.watchEffect(()=>{c.group&&d.value&&(d.value.group=c.group)});const zn=usePublicAPI(d,w);return useLoading(d,Pn,b),useAutoresize(d,y,h),vue.onMounted(()=>{c.option&&w()}),vue.onUnmounted(gn),{chart:d,root:h,setOption:J,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 h,d,p;if(c=bound01(c,360),u=bound01(u,100),f=bound01(f,100),u===0)d=f,p=f,h=f;else{var v=f<.5?f*(1+u):f+u-f*u,m=2*f-v;h=hue2rgb(m,v,c+1/3),d=hue2rgb(m,v,c),p=hue2rgb(m,v,c-1/3)}return{r:h*255,g:d*255,b:p*255}}function rgbToHsv(c,u,f){c=bound01(c,255),u=bound01(u,255),f=bound01(f,255);var h=Math.max(c,u,f),d=Math.min(c,u,f),p=0,v=h,m=h-d,g=h===0?0:m/h;if(h===d)p=0;else{switch(h){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 h=Math.floor(c),d=c-h,p=f*(1-u),v=f*(1-d*u),m=f*(1-(1-d)*u),g=h%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,h){var d=[pad2(Math.round(c).toString(16)),pad2(Math.round(u).toString(16)),pad2(Math.round(f).toString(16))];return h&&d[0].startsWith(d[0].charAt(1))&&d[1].startsWith(d[1].charAt(1))&&d[2].startsWith(d[2].charAt(1))?d[0].charAt(0)+d[1].charAt(0)+d[2].charAt(0):d.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,h=null,d=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)?(h=convertToPercentage(c.s),d=convertToPercentage(c.v),u=hsvToRgb(c.h,h,d),v=!0,m="hsv"):isValidCSSUnit(c.h)&&isValidCSSUnit(c.s)&&isValidCSSUnit(c.l)&&(h=convertToPercentage(c.s),p=convertToPercentage(c.l),u=hslToRgb(c.h,h,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,h=c.b,d=rgbToHsv(u,f,h);return{h:d.h*360,s:d.s,v:d.v}}function toHex(c){var u=c.r,f=c.g,h=c.b;return"#".concat(rgbToHex(u,f,h,!1))}function mix(c,u,f){var h=f/100,d={r:(u.r-c.r)*h+c.r,g:(u.g-c.g)*h+c.g,b:(u.b-c.b)*h+c.b};return d}function getHue(c,u,f){var h;return Math.round(c.h)>=60&&Math.round(c.h)<=240?h=f?Math.round(c.h)-hueStep*u:Math.round(c.h)+hueStep*u:h=f?Math.round(c.h)+hueStep*u:Math.round(c.h)-hueStep*u,h<0?h+=360:h>=360&&(h-=360),h}function getSaturation(c,u,f){if(c.h===0&&c.s===0)return c.s;var h;return f?h=c.s-saturationStep*u:u===darkColorCount?h=c.s+saturationStep:h=c.s+saturationStep2*u,h>1&&(h=1),f&&u===lightColorCount&&h>.1&&(h=.1),h<.06&&(h=.06),Number(h.toFixed(2))}function getValue(c,u,f){var h;return f?h=c.v+brightnessStep1*u:h=c.v-brightnessStep2*u,h>1&&(h=1),Number(h.toFixed(2))}function generate$1(c){for(var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=[],h=inputToRGB(c),d=lightColorCount;d>0;d-=1){var p=toHsv(h),v=toHex(inputToRGB({h:getHue(p,d,!0),s:getSaturation(p,d,!0),v:getValue(p,d,!0)}));f.push(v)}f.push(toHex(h));for(var m=1;m<=darkColorCount;m+=1){var g=toHsv(h),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",h=u.container!==void 0?u.container:document.querySelector("head"),d=containers.indexOf(h);d===-1&&(d=containers.push(h)-1,styleElements[d]={});var p;return styleElements[d]!==void 0&&styleElements[d][f]!==void 0?p=styleElements[d][f]:(p=styleElements[d][f]=createStyleElement(),f==="prepend"?h.insertBefore(p,h.childNodes[0]):h.appendChild(p)),c.charCodeAt(0)===65279&&(c=c.substr(1,c.length)),p.styleSheet?p.styleSheet.cssText+=c:p.textContent+=c,p}function _objectSpread$a(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},h=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(h=h.concat(Object.getOwnPropertySymbols(f).filter(function(d){return Object.getOwnPropertyDescriptor(f,d).enumerable}))),h.forEach(function(d){_defineProperty$a(c,d,f[d])})}return c}function _defineProperty$a(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$a({key:u},f,c.attrs),(c.children||[]).map(function(h,d){return generate(h,"".concat(u,"-").concat(c.tag,"-").concat(d))})):vue.h(c.tag,_objectSpread$a({key:u},c.attrs),(c.children||[]).map(function(h,d){return generate(h,"".concat(u,"-").concat(c.tag,"-").concat(d))}))}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,h){try{return hex2b64(this.getKey().sign(u,f,h))}catch{return!1}},c.prototype.verify=function(u,f,h){try{return this.getKey().verify(u,b64tohex(f),h)}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 h="";switch(typeof c){case"string":h=CryptoJS.enc.Utf8.parse(c);break;case"object":h=CryptoJS.enc.Utf8.parse(JSON.stringify(c));break;default:h=CryptoJS.enc.Utf8.parse(c.toString())}return CryptoJS.AES.encrypt(h,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),h=CryptoJS.AES.decrypt(c,f,{iv,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.ZeroPadding});return CryptoJS.enc.Utf8.stringify(h).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(h=>`^(.*?)${h}(/|$)`);for(const h of f)if(new RegExp(h).test(c))return!0;return!1}function EncryptConfigParam(c){const{paramType:u,data:f,params:h,method:d}=c;u==="form"?["get","delete"].includes(d)?c.params=getEncryptParam(h,"string"):c.data=getEncryptParam(f,"string"):["get","delete"].includes(d)?c.params=getEncryptParam(h,"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 d=rsaEncrypt(aesKey);return{c:aesEncrypt(f,aesKey),p:d}}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,h={};for(const p of u){const v=p[0],m=p[1];m instanceof Blob?f.append(v,m):h[v]=m}const d=getEncryptParam(h,"json");return typeof d=="object"&&(f.append("c",d.c),f.append("p",d.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 h=aesDecrypt(c.data.data.content,aesKey);c.data=JSON.parse(h)}}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,h;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)||((h=c==null?void 0:c.data)==null?void 0:h.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 h=parseFloat(f);return isNaN(h)?c:`${(h*100).toFixed(u)}%`},formatDecimals=(c,u=2)=>{const f=c+"",h=parseFloat(f);return isNaN(h)?c:h.toFixed(u)},formatCustom=(c,u)=>In(u,c),getFixedValueDatas=c=>{const{leftAxisList:u=[],rightAxisList:f=[],queryColumnList:h=[],indicators:d=[]}=c;return[...u,...f,...h,...d].filter(p=>(p==null?void 0:p.calcType)==="COMPONENT").map(p=>({keyName:p.builtInCalcWay,id:p.builtInValueSource}))},canRequestIndicator=(c,u)=>{let f=!0;const h=getFixedValueDatas(c);return h!=null&&h.length&&(f=h.map(d=>u[d.id]).every(d=>d)),f},getLegendFormat=(c,u)=>{var v;const f=c.match(/\{(.+?)\}/g),h=((v=c.split(`
|
|
101
101
|
`))==null?void 0:v.length)-1;let d="";if(h)for(let m=0;m<h;m++)d+=`
|
|
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`${d}{text|${p}}`}else return c},setDefaultRangeVal=(c,u)=>{const{props:f,componentList:h,getGlobalModel:d}=c,{graphicConfig:p={},startValue:v,endValue:m}=f,g=getdefCompleteData({graphicConfig:p,startValue:v,endValue:m,componentList:h,getGlobalModel:d}),{dimensions:y,dataset:x}=u,{classificationList:Pn=[]}=p,j=Pn.find(re=>re.show).label||"";for(const re of g)!y.find(vn=>+vn==+re)&&!isNaN(+re)&&y.push(+re);y.sort((re,vn)=>dayjs(re).isBefore(dayjs(vn))?-1:1);for(const re of x){const{data:vn}=re;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 J in w)J===j?w[J]=+Bn:w[J]=0;Fn.push(w)}re.data.push(...Fn),re.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:h,graphicConfig:d,getGlobalModel:p}=c,v=getVariableAndField(u),m=getVariableAndField(f),g=[];if(v&&m){const y=h.find(Pn=>Pn.keyName===v.keyName),x=h.find(Pn=>Pn.keyName===m.keyName);if(y&&x){const Pn=p(y.id),b=p(x.id),{classificationList:j=[]}=d,re=j.find(vn=>vn.show);if(re){let vn="YYYY-MM";switch(re.name){case"the_year":vn="YYYY";break;case"the_month":vn="MM";break;case"the_day":vn="DD";break;case"the_date":vn=(re==null?void 0:re.dateFormat)||vn;break}const Fn=getFormatStep(vn);if(vn){const Bn=vue.unref(Pn[v.field]),w=vue.unref(b[m.field]);let J=dayjs(Bn);const gn=dayjs(w);for(g.push(gn.format(vn));J.isBefore(gn);)g.push(J.format(vn)),J=J.add(1,Fn)}}}}return g}function getVariableAndField(c){let u=null;if(c){const f=c.match(/\{(.+?)\}/g);if(f!=null&&f.length){let h=f[0].slice(1,-1).trim();const d=h.match(/\[(.+?)\]/g);let p="";d!=null&&d.length&&(h=h.replace(d[0],""),p=d[0].slice(1,-1).trim()),u={keyName:h,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:h,getRecordValueByKeyName:d,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:h};if((Pn=c.transParams)!=null&&Pn.length){y.includes("?")?y+="&":y+="?";const j=[];for(const re of c.transParams){const vn=d(String(re.fieldName));j.push(`${re.keyName}=${vn}`),b[re.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,h;let u={};if(c){const d=(((f=window.config)==null?void 0:f.urlParams)||{})[c]||{};for(const p in d)p.includes("{")||(u[p]=d[p])}else u=((h=window.config)==null?void 0:h.requestParams)||{};return u}function getNewValueFromUrlParams(c,u,f){let h="";const{urlParams:d}=window.config;if(c&&d[c])for(const p in d[c]){const v=d[c][p];if(p===`{${u}[${f}]}`&&v){h=v;break}}return h}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 h=f.parentElement,d=200,p=h.getBoundingClientRect(),{width:v,left:m,top:g}=p,y=window.innerWidth,x=window.innerHeight,Pn=c.clientX,b=c.clientY,j=parseFloat(h.style.left)||0,re=parseFloat(h.style.top)||0,vn=-(m+v-d-j),Fn=y-m+j-d,Bn=-(g-re),w=x-g+re-d,J=Vn=>{Vn.preventDefault();const zn=Vn.clientX-Pn,Kn=Vn.clientY-b;let Un=j+zn,Qn=re+Kn;Un=Math.max(vn,Math.min(Un,Fn)),Qn=Math.max(Bn,Math.min(Qn,w)),h.style.left=`${Un}px`,h.style.top=`${Qn}px`},gn=()=>{f.style.cursor="",f.style.userSelect="",document.removeEventListener("mousemove",J),document.removeEventListener("mouseup",gn)};document.addEventListener("mousemove",J),document.addEventListener("mouseup",gn)},useRequestData=(c,u,f=()=>{})=>{var sr;const{requestUrl:h,requestMethod:d,requestHeaders:p,requestParams:v,requestInterval:m,isOpenRequestTimer:g,openCustomRequestData:y,projectRequestUrl:x="",getModel:Pn,requestParamsMode:b,customRequestParams:j,dataSetParam:re,requestType:vn,dataType:Fn,dataSetchecked:Bn}=c,{pageMode:w}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"})||{},{pageId:J}=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,Gn)=>{}}),Qn=Pn||zn;let Jn=hn(h),Yn=vue.unref(gn)||x||"";(Fn==="request"&&Bn||vn===1)&&(Yn="",Jn=((sr=window.config)==null?void 0:sr.dataSetUrl)||"/api/datav/dataset/data2");const Zn=async(ur={})=>{var ir;if(Fn!=="request"&&nr){clearInterval(nr);return}if(!Jn||!d||!p)return;let Gn={};for(const Xn of v){const{key:vr,value:cr}=Xn;if((cr==null?void 0:cr.id)==="PARENT"&&(cr!=null&&cr.prop)){const ar=(((ir=window.config)==null?void 0:ir.record)||{})[cr.prop];if(ar){const mr=ar[cr.propKey||"value"];mr&&(["date","range"].some(yr=>yn(ar==null?void 0:ar.type,yr))?Gn[vr]=vue.unref(mr).format(ar.format||"YYYY-MM-DD"):Gn[vr]=vue.unref(mr))}continue}if(typeof cr=="object"&&cr!=null&&cr.id){let or={};const{id:ar,prop:mr,propKey:fr,operate:yr}=cr;let dr=!1;try{JSON.parse(ar),dr=!0}catch{dr=!1}if(ar==="THIS"?or=Qn(vue.unref(Vn))||{}:or=Qn(ar)||{},(or==null?void 0:or.type)==="ecanSelect"&&vue.unref(Kn)&&!vue.unref(Kn)[ar]&&(or==null?void 0:or.dataType)!=="static")return;const pr=vue.unref(or[mr]);let Cr=null;if(["date","range"].some(xr=>yn(or==null?void 0:or.type,xr))){const{value:xr,type:br,mode:Er}=yr||{};if(xr&&br&&Er)switch(br){case"add":Cr=vue.unref(pr).add(xr,Er);break;case"minus":Cr=vue.unref(pr).subtract(xr,Er);break}Cr==null&&(Cr=vue.unref(pr)),Cr=Cr&&(Cr==null?void 0:Cr.format((fr==null?void 0:fr.trim())||or.format))||""}else if(Object.prototype.toString.call(pr)==="[object Object]")fr?Cr=pr[fr]:Cr=mr?pr[mr]:pr;else if(yn(or==null?void 0:or.type,"select")&&vue.unref(pr)&&mr&&Array.isArray(vue.unref(pr)))Cr=vue.unref(pr).map(xr=>Object.prototype.hasOwnProperty.call(xr,mr)?xr[mr]:xr);else if(dr){const xr=JSON.parse(ar);console.log(xr,"urlvalue"),Cr=xr.value}else Cr=pr;Gn[vr]=Cr}else typeof cr=="object"&&!cr.id&&vn===1?(console.log(cr.propKey,"value.propKey"),Gn[vr]=cr.propKey):typeof cr=="string"&&(Gn[vr]=hn(cr))}if(vn===1){console.log(Gn,"_params");const Xn=Object.entries(Gn);let vr=re;if(!re.param&&Array.isArray(re)){const cr={};for(const or of re)cr[or.key]=or.value;vr=cr}vr.param=vr.param.map((cr,or)=>({...cr,paramKey:Xn[or][0],defaultValue:Xn[or][1]||""})),Gn=vr}if(b==="2"&&j!=="{}"){const Xn=JSON.parse(j);Wn(Xn),Xn&&(Gn=Xn)}function Wn(Xn){const vr={...Gn,...getPageUrlParams(J)};if(Array.isArray(Xn))Xn.forEach((cr,or)=>{if(typeof cr=="string"){const ar=cr.match(/\${(.+?)\}/g);if(ar!=null&&ar.length){const mr=ar[0].slice(2,-1);mr&&vr[mr]?Xn[or]=vr[mr]:Xn[or]=""}}else Wn(cr)});else if(Object.prototype.toString.call(Xn)==="[object Object]")for(const cr in Xn)if(typeof Xn[cr]=="string"){const or=Xn[cr].match(/\${(.+?)\}/g);if(or!=null&&or.length){const ar=or[0].slice(2,-1);ar&&vr[ar]?Xn[cr]=vr[ar]:Xn[cr]=""}}else Wn(Xn[cr])}const Rn=getPageUrlParams(J);for(const Xn in Rn)Rn[Xn]&&(Rn[Xn]=decodeURIComponent(Rn[Xn]));Gn={...Rn,...ur,...Gn};let qn="";const er=Object.keys(Gn),Hn=er.length-1,tr=er.length;er.forEach((Xn,vr)=>{let cr=Gn[Xn];Object.prototype.toString.call(cr)==="[object Object]"&&(cr=JSON.stringify(cr)),vr===0?tr!==1?qn+=`?${Xn}=${cr}&`:qn+=`?${Xn}=${cr}`:vr===Hn?qn+=`${Xn}=${cr}`:qn+=`${Xn}=${cr}&`}),Jn.includes("?")&&(qn=qn.replace("?","&"));function lr(Xn){var vr;if(vn===1)return{Authentication:(vr=window==null?void 0:window.config)==null?void 0:vr.indicatorToken};if(typeof Xn=="string"){const cr=JSON.parse(Xn),or=getPageUrlParams(J);if(Object.prototype.toString.call(cr)==="[object Object]"){for(const ar in cr)if(typeof cr[ar]=="string"){const mr=cr[ar].match(/\${(.+?)\}/g);if(mr!=null&&mr.length){const fr=mr[0].slice(2,-1);fr&&or[fr]?cr[ar]=or[fr]:cr[ar]=""}}}return cr}else return Xn}try{const Xn=["get","head"].includes(d),vr={};let cr=Xn?Jn+qn:Jn;Gn.dataSqlId&&!cr.includes("dataSqlId")&&(cr+=`${cr.includes("?")?"&":"?"}dataSqlId=${Gn.dataSqlId}`),Object.prototype.hasOwnProperty.call(Gn,"signal")?vr.signal=Gn.signal:window.controller&&(vr.signal=window.controller.signal);const or=await request({baseURL:Yn,url:cr,method:d,headers:p?lr(p):{},data:Xn?{}:Gn,...vr});return f(or),Un.operateAction("SAVE_COMPONENT_RES_DATA",{id:c.id,data:(or==null?void 0:or.data)||{}}),or}catch(Xn){console.error(Xn)}},nr=vue.unref(w)!=="design"&&g&&(y||y===void 0)&&setInterval(Zn,m*1e3);return vue.onUnmounted(()=>{clearInterval(nr)}),Zn},useImagePath=(c,u=!1)=>{var h;if(!c)return c;let f="";return c!=null&&c.includes("://")?f=c:f=((h=window==null?void 0:window.config)==null?void 0:h.uploadPath)+c,u&&(f=`url(${f})`),f},usePageUrl=(c,u)=>{const f=`${BASE_URL}/preview?pageId=${u}`,h=`${BASE_URL}/${u}`;return c==="preview"?f:h},useIndicatorData=(c={},u=()=>{})=>{var x;const{pageMode:f}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),{requestToken:h}=vue.inject(GLOBAL_TOKEN,{requestToken:()=>{}}),{setLoadedData:d}=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"&&h();const g=async(Pn={})=>{var Bn,w,J;const b=p();d(c.id,!1);const j=Dn({...c,globalModel:b},Pn),{url:re,...vn}=j||{};let Fn=v||((Bn=window==null?void 0:window.config)==null?void 0:Bn.pageId);if(!Fn){const{pathname:gn}=window==null?void 0:window.location;if(gn){const Vn=gn.split("/");Vn!=null&&Vn.length&&(Fn=Vn[Vn.length-1])}}if(re&&vn)try{const gn=await request({url:`${INDICATOR_URL}${re}`,method:"post",headers:{Authentication:(w=window==null?void 0:window.config)==null?void 0:w.indicatorToken,operateContext:CONTEXT},data:{...vn,pageId:Fn},signal:((J=window.controller)==null?void 0:J.signal)||""});return Pn!=null&&Pn.isTimer&&u(gn),m.operateAction("SAVE_COMPONENT_RES_DATA",{id:c.id,data:(gn==null?void 0:gn.data)||{}}),gn}catch(gn){console.error(gn)}},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,h={};for(let d=0;d<f;d++){const p=u[d];if(p==null||p==="")continue;const v=p.split("=");if(Array.isArray(v)){const m=v[0];m.includes("{")||(h[m]=v[1])}}window.config.requestParams={...window.config.requestParams,...h},window.config={...window.config,...h}},_sfc_main$y=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:h}=vue.inject(GLOBAL_CONFIG,{width:null,height:null,isCompatible:null}),d=vue.inject("setPageHeight",Vn=>{}),p=vue.inject("isMobile",!1),v=vue.computed(()=>{const Vn={};return(!h.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 re=()=>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 re(),vn(),Bn(),window.addEventListener("resize",w),J()),Pn.value=!0},{immediate:!0});const Fn=vue.ref({});vue.provide("scaleValue",Fn);const Bn=()=>{if(h.value&&p){b.value.style.width="100%",b.value.style.height="auto",d("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 Jn=zn/Un;(m.value!==1920||g.value!==1080)&&(Jn=g.value/m.value*Vn/Un),Fn.value={widthScale:Qn,heightScale:Jn},b.value&&(b.value.style.transform=`scale(${Qn}, ${Jn})`),d(Jn)},w=lodashEs.debounce(async()=>{await re(),Bn()},100),J=()=>{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_212e9845_lang="",_hoisted_1$j=["id"],_hoisted_2$a=["id"];function _sfc_render$D(c,u,f,h,d,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$j)}const PageConfig=_export_sfc$1(_sfc_main$y,[["render",_sfc_render$D],["__scopeId","data-v-212e9845"]]),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 h=(2<<Math.log(c.length-1)/Math.LN2)-1,d=-~(1.6*h*u/c.length);return(p=u)=>{let v="";for(;;){let m=f(d),g=d;for(;g--;)if(v+=c[m[g]&h]||"",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$x=vue.defineComponent({name:"IndicatorDetailModal",setup(c,{expose:u}){const f=vue.ref(!1),h=vue.ref([]),d=vue.ref(!1),p=async({data:m,indicatorUrl:g,indicatorToken:y,context:x,pageId:Pn})=>{var re;d.value=!0,f.value=!0;let b=[];const{graphicConfig:j}=vue.unref(m)||{};if(j){const{leftAxisList:vn=[],rightAxisList:Fn=[],indicators:Bn=[]}=j,w=vn.concat(Fn).concat(Bn).filter(J=>J.show);w!=null&&w.length&&(b=w.map(J=>({calcType:J.calcType||"COLUMN",columnName:J.name,hrpIndexCode:J.indexCode,hrpIndexCodeNum:J.indexCodeNum,label:J.label,show:J.show,formula:J.formula})))}if(b!=null&&b.length)try{const vn=await request({url:`${vue.unref(g)}/diagram/obtainIndicatorInfo`,method:"post",headers:{Authentication:y,operateContext:x},data:{source:"INDICATOR_LIB",pageId:Pn,indicatorList:b}});h.value=((re=vn==null?void 0:vn.data)==null?void 0:re.data)||[]}catch{}finally{d.value=!1}},v=()=>document.querySelector("#ProviderConfig > #container")||document.body;return u({showModal:p}),{visible:f,dataList:h,isLoading:d,hasOwn:mn,getContainer:v}}}),IndicatorDetailModal_vue_vue_type_style_index_0_scoped_c710a331_lang="",_withScopeId$5=c=>(vue.pushScopeId("data-v-c710a331"),c=c(),vue.popScopeId(),c),_hoisted_1$i=_withScopeId$5(()=>vue.createElementVNode("div",{class:"modal-title"},"指标详情",-1)),_hoisted_2$9={key:0,class:"spin-container"},_hoisted_3$5={class:"index-name"},_hoisted_4$4={key:0,class:"card-row"},_hoisted_5$3=_withScopeId$5(()=>vue.createElementVNode("div",{class:"label"},"计量单位:",-1)),_hoisted_6$3={class:"content"},_hoisted_7$3={key:1,class:"card-row"},_hoisted_8$3=_withScopeId$5(()=>vue.createElementVNode("div",{class:"label"},"指标定义:",-1)),_hoisted_9$3={class:"content"},_hoisted_10$3={key:2,class:"card-row"},_hoisted_11$3=_withScopeId$5(()=>vue.createElementVNode("div",{class:"label"},"计算方法:",-1)),_hoisted_12$3={class:"content"},_hoisted_13$3={key:3,class:"card-row"},_hoisted_14$3=_withScopeId$5(()=>vue.createElementVNode("div",{class:"label"},"指标说明:",-1)),_hoisted_15$2={class:"content"};function _sfc_render$C(c,u,f,h,d,p){const v=vue.resolveComponent("a-spin"),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:"40%",getContainer:c.getContainer,footer:null,destroyOnClose:!0,bodyStyle:{maxHeight:"60vh",overflow:"auto",padding:"10px 24px 24px"}},{title:vue.withCtx(()=>[_hoisted_1$i]),default:vue.withCtx(()=>[c.isLoading?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$9,[vue.createVNode(v,{size:"large"})])):c.dataList.length?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:1},vue.renderList(c.dataList,(g,y)=>(vue.openBlock(),vue.createElementBlock("div",{class:"detail-wrap",key:y},[vue.createElementVNode("div",_hoisted_3$5,vue.toDisplayString(g.indexName||"--"),1),c.hasOwn(g,"theUnit")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$4,[_hoisted_5$3,vue.createElementVNode("div",_hoisted_6$3,vue.toDisplayString(g.theUnit||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(g,"meaning")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_7$3,[_hoisted_8$3,vue.createElementVNode("div",_hoisted_9$3,vue.toDisplayString(g.meaning||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(g,"theFormula")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_10$3,[_hoisted_11$3,vue.createElementVNode("div",_hoisted_12$3,vue.toDisplayString(g.theFormula||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(g,"theExplain")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_13$3,[_hoisted_14$3,vue.createElementVNode("div",_hoisted_15$2,vue.toDisplayString(g.theExplain||"--"),1)])):vue.createCommentVNode("",!0)]))),128)):vue.createCommentVNode("",!0)]),_:1},8,["visible","getContainer"])}const IndicatorDetailModal=_export_sfc$1(_sfc_main$x,[["render",_sfc_render$C],["__scopeId","data-v-c710a331"]]),_sfc_main$w=vue.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,components:{ATable:antDesignVue.Table,BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1,IndicatorDetailModal},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 h=.37,d=.4,p=.97,v=.9,m=vue.ref(),g=vue.computed(()=>INDICATOR_URL),y=vue.computed(()=>hn(c.contextRequestUrl)),x=vue.computed(()=>c.pageMode),Pn=vue.computed(()=>c.theme),b=vue.computed(()=>c.width),j=vue.computed(()=>c.height),re=vue.computed(()=>c.pageFontFamily),vn=vue.computed(()=>c.fixedHeight?parseFloat(c.fixedHeight):0),Fn=vue.computed(()=>c.isCompatible),Bn=vue.computed(()=>c.variableList),w=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)),J=vue.ref(),gn=vue.ref({}),Vn=vue.ref(),zn=vue.ref(!1),Kn=vue.ref(!1),Un=vue.ref([]),Qn=vue.ref([]),Jn=()=>{J.value.setAttribute("datav-theme",c.theme)},Yn=vue.ref({currentYmd:dayjs().format("YYYY-MM-DD"),currentYear:dayjs().format("YYYY"),currentMonth:dayjs().format("MM"),currentDay:dayjs().format("DD")}),Zn=vue.computed(()=>{const hr={};if(vue.unref(Bn))for(const Sr of vue.unref(Bn))hr[Sr.label]=Sr.value;return{$page:{...vue.unref(Yn),...hr}}}),nr=vue.computed(()=>{let hr="ind-detail-modal";return zn.value&&(hr+=" full"),vue.unref(Pn)==="darkBlue"&&(hr+=" darkBlue"),hr});vue.provide(GLOBAL_VARIABLE,{globalVariable:Zn});const sr=vue.inject("usedComponentList",[]),ur=vue.inject("componentList",[]);vue.watch(Zn,()=>{f("setGlobalVar",vue.unref(Yn))},{deep:!0,immediate:!0});const Gn=vue.computed(()=>{const hr=[];for(const gr of vue.unref(sr))gr.type==="ecanModal"?hr.push(...gr.componentList):hr.push(gr);return hr});vue.watch(()=>c.theme,()=>{Jn()}),vue.onMounted(()=>{Jn()});const Wn=vue.computed(()=>{const hr=[],gr=vue.unref(ur).filter(Sr=>Sr.type==="ecanModal");for(const Sr of gr)Sr!=null&&Sr.requestList&&hr.push(...Sr.requestList);return[...hr,...c.requestList]}),Rn=hr=>Object.prototype.toString.call(hr)==="[object Object]",qn=hr=>{const gr=hr.split(".");let Sr=vue.unref(Zn);for(const wr of gr)if(Sr&&Rn(Sr))Sr=Sr[wr];else{Sr="";break}return Sr},er=vue.ref("");vue.provide(GLOBAL_CONFIG,{contextRequestUrl:y,pageMode:x,theme:Pn,touchEventId:er,width:b,height:j,fontFamily:re,requestList:Wn,isCompatible:Fn,fixedHeight:vn,getGlobalVar:qn});const Hn=vue.ref({height:"100%",overflow:c.pageMode==="design"?"":"hidden"});vue.provide("setPageHeight",hr=>{let gr=hr;(!Fn.value||!w.value)&&(gr=parseFloat(j.value)*hr+"px"),Hn.value.height=gr}),vue.provide("isMobile",w.value),vue.provide("getContainerMap",()=>c.containerMap),vue.provide("getCombinationMap",()=>c.combinationMap),vue.provide("templateOperate",{pageId:c.pageId,templateEmit:f,setTemplateData:hr=>{var gr;if(hr!=null&&hr.pageId){const{componentId:Sr,...wr}=hr;(gr=window.config)!=null&&gr.urlParams||(window.config.urlParams={}),window.config.urlParams[hr.pageId]=wr,f("templateChange",hr)}}});const tr=vue.ref(),lr=new Map,ir=()=>lr,Xn=hr=>{let gr=lr.get(hr);if(!gr){const Sr=vue.unref(ur).find(wr=>wr.keyName===hr);Sr&&(gr=lr.get(Sr.id))}return gr},vr=(hr,gr)=>{var Sr;if(tr.value=gr,lr.set(hr,gr),!c.pageId){const wr=vue.unref(sr).find(kr=>kr.id===hr);wr&&((Sr=window.config)!=null&&Sr.record||(window.config.record={}),window.config.record[wr.keyName]=gr)}},cr=()=>{tr.value=null},or=hr=>{let gr=hr;if(gr){const Sr=hr.match(/\{(.+?)\}/g);if(Sr!=null&&Sr.length){let wr=Sr[0].slice(1,-1).trim();const kr=wr.match(/\[(.+?)\]/g);let Tr="";kr!=null&&kr.length&&(wr=wr.replace(kr[0],""),Tr=kr[0].slice(1,-1).trim());const Ar=vue.unref(Gn).find(Dr=>Dr.keyName===wr);if(Ar){const Dr=Xn(Ar.id),{type:Fr,value:Or,RECORD:Rr,recordData:$r}=Dr||{};yn(Fr,MODEL_KEY_LIST)?gr=Rr[Tr]:yn(Fr,"select")?$r[Tr]?gr=$r[Tr]:gr=vue.unref(Or):yn(Fr,["rangePicker","date"])?dayjs.isDayjs(vue.unref(Dr[Tr]))?gr=vue.unref(Dr[Tr]).format(Dr.format):gr=vue.unref(Dr[Tr]):gr=Or}else{const Dr=window.config.requestParams||{},Fr=window.location.search.slice(1).split("&"),Or={};for(const $r of Fr)if($r!=null&&$r.includes("=")){const Gr=$r.split("=");Or[Gr[0]]=Gr[1]||""}gr={...Or,...Dr}[wr]||""}}}return gr},ar=new Map,mr={},fr=async(hr,gr)=>{var Ar;const{requestName:Sr}=hr,wr=await useRequestData({...hr,projectRequestUrl:vue.unref(y),getModel:Xn})(),kr=((Ar=wr==null?void 0:wr.data)==null?void 0:Ar.data)||{};hr.requestKeyName&&(Yn.value[hr.requestKeyName]=kr);const Tr=ar.get(Sr);if(Tr!=null&&Tr.length&&(!gr||mr[Sr])){for(const Dr of Tr)Dr(kr);gr||ar.delete(Sr)}},yr=(hr,gr)=>{mr[hr]&&(clearInterval(mr[hr]),delete mr[hr],ar.delete(hr));const Sr=vue.unref(Gn).filter(kr=>kr.dataType==="request"&&!kr.openCustomRequestData&&kr.customRequestName===hr),wr=ar.get(hr)||[];if((Sr==null?void 0:Sr.length)>wr.length&&(wr.push(gr),ar.set(hr,wr),(Sr==null?void 0:Sr.length)===wr.length)){const kr=vue.unref(Wn).find(Tr=>Tr.requestName===hr);kr&&(kr!=null&&kr.isOpenRequestTimer&&(kr!=null&&kr.requestInterval)?(fr(kr,!0),mr[hr]=setInterval(()=>{fr(kr,!0)},kr.requestInterval*1e3)):fr(kr))}};vue.provide(GLOBAL_MODEL,{getGlobalModel:Xn,setGlobalModel:vr,getAllGlobalModel:ir,clearInteractiveData:cr,getRecordValueByKeyName:or,hanldePageRequestData:yr,interactiveData:tr});const dr=vue.ref({}),pr=(hr,gr)=>{dr.value[hr]=gr};vue.provide(LOADED_DATA,{loadedData:dr,setLoadedData:pr});const Cr=[],_r=()=>{Cr.pop()},xr=hr=>{Cr.push(hr)},br=new Map,Er=hr=>br.get(hr),Ir=(hr,gr)=>{br.set(hr,gr)};vue.provide(MODAL_MODEL,{popUseModalIds:_r,pushUseModalIds:xr,getModalModel:Er,setModalModel:Ir});const Pr=mitt(),Mr=new Set,Vr=(hr,gr)=>{Mr.add(hr),Pr.on(hr,Sr=>{const{eventName:wr,params:kr}=Sr;return typeof gr[wr]=="function"&&gr[wr](kr)}),vue.onBeforeUnmount(()=>{zr(hr)})},zr=hr=>{Mr.delete(hr),Pr.off(hr)},Lr=(hr,gr,Sr={})=>{if(hr==="PAGE"){const wr=Cr.length;let kr=[];if(wr===0)kr=[...Mr];else{const Tr=Cr[wr-1];kr=[...Er(Tr)]}kr.forEach(Tr=>{Pr.emit(Tr,{eventName:gr,params:Sr})})}else Pr.emit(hr,{eventName:gr,params:Sr})};vue.provide(EVENT_BUS,{onEvent:Vr,offEvent:zr,emitEvent:Lr});const Br=vue.ref(0),Nr=()=>{Br.value=vue.unref(Br)+1};vue.provide(GLOBAL_TOKEN,{requestToken:Nr});const jr=new Map,qr=new Map,Ur=({requestFn:hr=()=>{},sortNum:gr=0,id:Sr=""})=>{if(jr.has(gr)){const wr=jr.get(gr);wr==null||wr.push(hr)}else jr.set(gr,[hr]);qr.set(Sr,hr)},Wr=hr=>new Promise((gr,Sr)=>{const wr=hr.map(kr=>kr());Promise.all(wr).then(kr=>{gr(kr)}).catch(kr=>{Sr(kr)})}),Yr=hr=>new Promise(async(gr,Sr)=>{if(hr){if(typeof hr=="string"){const wr=qr.get(hr);if(typeof wr=="function"){const kr=request.interceptors.response.use(Tr=>(gr(Tr),Tr),Tr=>(Sr(Tr),Promise.reject(Tr)));wr(),request.interceptors.response.eject(kr)}}}else{const wr=Array.from(jr);wr.sort((Tr,Ar)=>Ar[0]-Tr[0]);const kr=wr.length;try{c.pageMode!=="design"&&vue.unref(Br)>0;for(let Tr=0;Tr<kr;Tr++){const Ar=wr[Tr][1];await Wr(Ar)}}catch(Tr){console.error(Tr)}finally{jr.clear(),gr(null)}}});vue.provide(REQUEST_MODEL,{setRequest:Ur,touchRequest:Yr});const ti=()=>{Pr.emit(REFRESH_PAGE)};vue.provide(REFRESH_PAGE,{emitRefreshPage:ti});const ni=hr=>{Pr.on(REFRESH_PAGE,()=>hr()),vue.onMounted(()=>{Pr.off(REFRESH_PAGE)})},ii=vue.ref({}),ai=vue.reactive({visible:!1,dataSource:[],columns:[],title:"",pagination:{current:1,pageSize:10,total:0,showSizeChanger:!1,showQuickJumper:!1,showTotal:hr=>`共 ${hr} 条数据`}});vue.provide(All_COMPONENT_RES_DATA,{allComponentResData:ii});const fi={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"},yi=async hr=>{var $r,Gr,Zr,Xr,Qr;if(w.value||c.drillingMode==="default")return;let gr=lodashEs.cloneDeep(hr).props;if(gr.parentId){const Hr=vue.unref(sr).find(Kr=>Kr.id===gr.parentId);if((Hr==null?void 0:Hr.dataType)==="indicator")gr=lodashEs.cloneDeep(Hr);else return}const Sr=(($r=window==null?void 0:window.config)==null?void 0:$r.indicatorToken)||"",wr=ki(),kr=(gr==null?void 0:gr.graphicConfig)||{},{leftAxisList:Tr=[],rightAxisList:Ar=[],indicators:Dr=[]}=kr,Fr=Tr.concat(Ar).concat(Dr);if(!(Fr!=null&&Fr.length))return;const Or=Fr.filter(Hr=>Hr.show).map(Hr=>Hr.label);Or!=null&&Or.length&&(ai.title=`下钻:${Or.join("、")}`);const Rr=Dn({...gr,globalModel:ir()});if(c.drillingMode==="pivotTable"){const Hr=await pi({cpntProps:gr,pageId:wr,formatParams:Rr,classifications:[],indicatorToken:Sr});Qn.value=((Gr=Hr==null?void 0:Hr.data)==null?void 0:Gr.data)||[];const Kr=nanoid(6);if(kr.queryColumnList||(kr.queryColumnList=[]),kr!=null&&kr.classificationList&&(kr.queryColumnList=kr.classificationList,delete kr.classificationList),kr!=null&&kr.seriesList&&(kr.queryColumnList=kr.queryColumnList.concat(kr.seriesList),delete kr.seriesList),kr.indicators=lodashEs.cloneDeep(Fr||[]),delete kr.leftAxisList,delete kr.rightAxisList,yn(gr.type,"indexPanel")){const li=vue.unref(Qn).slice(0,2).sort((mi,Ei)=>mi.typeGuid-Ei.typeGuid).map(mi=>({...mi,show:!0,edit:!1,dataTo:"0",dataSetParams:{}}));li!=null&&li.length&&(kr.queryColumnList=li)}(Zr=kr.queryColumnList)!=null&&Zr.length||(kr.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 si={...lodashEs.cloneDeep(pivotTableProps),id:Kr,keyName:`透视表_${Kr}`,position:"relative",top:0,left:0,width:parseFloat(c.width)*h+"px",height:parseFloat(c.height)*d+"px",pageId:wr,indicatorToken:Sr,context:CONTEXT,globalModel:ir(),graphicConfig:kr};vue.unref(Pn)==="darkBlue"&&(si.styleConfig=fi),gn.value=si,ai.visible=!0,vue.nextTick(()=>{vue.unref(Vn).refreshData()})}else if(c.drillingMode==="normalTable"){vi(Rr,lodashEs.cloneDeep(hr.props));let Hr=(Rr==null?void 0:Rr.classification)||(Rr==null?void 0:Rr.classifications)||[];Array.isArray(Hr)||(Hr=[Hr]);try{Kn.value=!0,ai.visible=!0;const Kr=await pi({cpntProps:gr,pageId:wr,formatParams:Rr,classifications:Hr,indicatorToken:Sr}),si=((Xr=Kr==null?void 0:Kr.data)==null?void 0:Xr.data)||[],li=Hr.map(oi=>({...oi,calcType:"COLUMN"}));for(const oi of si)li.push({calcType:"COLUMN",columnName:oi.name,label:oi.name,show:!0,typeGuid:oi.typeGuid});Rr.queryColumns=li,Rr.layer="1",Rr.plugin="1",delete Rr.classification,delete Rr.classifications;const{url:mi,...Ei}=Rr||{},Pi=await request({url:`${vue.unref(g)}${mi}`,method:"post",headers:{Authentication:Sr,operateContext:CONTEXT},data:{...Ei,pageId:wr}}),{columns:Oi=[],rows:_i=[]}=((Qr=Pi==null?void 0:Pi.data)==null?void 0:Qr.data)||{};ai.columns=Oi.filter(oi=>!!oi).map(oi=>{let Ri=oi;const Ii=si.find(Li=>Li.name===oi);return Ii&&(Ri=Ii.title||Ii.label),{title:Ri,dataIndex:oi,width:"120px"}}),ai.dataSource=(Array.isArray(_i)?_i:[_i]).map(oi=>({...oi,uuid:nanoid(6)})),ai.pagination.total=(_i==null?void 0:_i.length)||0,Kn.value=!1}catch(Kr){console.error(Kr)}}vue.nextTick(()=>{di(!0),ci(!0)})},di=hr=>{const gr=document.querySelector(".ind-detail-modal .ant-modal-header");gr&&(hr?gr.addEventListener("dblclick",hi):gr.removeEventListener("dblclick",hi))},ci=hr=>{const gr=document.querySelector(".ind-detail-modal .ant-modal-header");if(gr)if(hr)gr.addEventListener("mousedown",bi);else{const Sr=gr.parentElement;Sr&&(Sr.style.left="",Sr.style.top=""),gr.removeEventListener("mousedown",bi)}};function bi(hr){dragModalAction(hr,".ind-detail-modal .ant-modal-header")}const pi=async({cpntProps:hr,pageId:gr,formatParams:Sr,classifications:wr,indicatorToken:kr})=>{var Tr,Ar,Dr;return await request({url:`${vue.unref(g)}/diagram/obtainDrillAbleDimensionOptions`,method:"post",headers:{Authentication:kr,operateContext:CONTEXT},data:{source:((Tr=hr==null?void 0:hr.graphicConfig)==null?void 0:Tr.source)||"INDICATOR_LIB",pageId:gr,indicatorList:(Sr==null?void 0:Sr.indicatorList)||[],classifications:wr,dataSourceId:((Ar=hr==null?void 0:hr.graphicConfig)==null?void 0:Ar.dataSourceId)||""},signal:((Dr=window.controller)==null?void 0:Dr.signal)||""})},xi={IN:"属于",NOT_IN:"不属于",LIKE:"包含",NOT_LIKE:"不包含","LIKE%":"开头是","%LIKE":"结尾是",EQUAL:"等于",LESS:"小于",LESS_EQUAL:"小于等于",GREATER:"大于",GREATER_EQUAL:"大于等于",NOT_EQUAL:"不等于"};function ui(hr,gr,Sr){const wr=[];for(const kr of hr)kr[gr]?wr.push(...ui(kr[gr],gr,Sr)):kr.filter?wr.push({...kr.filter,label:kr.label}):(!Sr||kr.dataType!=="component"&&!(kr.fieldValue.startsWith("${")&&kr.fieldValue.endsWith("}")))&&wr.push(kr);return wr}const vi=(hr,gr)=>{const{leftAxisList:Sr=[],rightAxisList:wr=[],indicators:kr=[],classificationList:Tr=[],rowHeaderList:Ar=[],dimensionList:Dr=[],seriesList:Fr=[],queryColumns:Or=[],indexLibColumns:Rr=[]}=gr.graphicConfig,Gr=Sr.concat(wr).concat(kr).concat(Tr).concat(Ar).concat(Dr).concat(Fr).concat(Or).concat(Rr).filter(Qr=>Qr.conditions),Zr=ui(Gr,"conditions",!0),Xr=ui(hr.sqlConditions,"sqlConditions",!1);Un.value=Zr.concat(Xr).map(Qr=>{let Hr=Qr.fieldValue;if(Hr){const Kr=Hr.split(",");(Kr==null?void 0:Kr.length)>3&&(Hr=Kr.slice(0,3).join(",")+"等")}else Hr='""';return`${Qr.label} ${xi[Qr.rule]} ${Hr}`})||[]},hi=()=>{zn.value=!zn.value,vue.nextTick(()=>{zn.value?(vue.unref(gn).width=parseFloat(c.width)*p+"px",vue.unref(gn).height=parseFloat(c.height)*v+"px",ci(!1)):(vue.unref(gn).width=parseFloat(c.width)*h+"px",vue.unref(gn).height=parseFloat(c.height)*d+"px",ci(!0))})},Ai=()=>{zn.value=!1,di(!1),ci(!1)},Si=({type:hr,data:gr})=>{if(hr==="11"&&gr){const{indicatorList:Sr=[],queryColumns:wr=[]}=gr,Tr=Sr.concat(wr).filter(Fr=>Fr.conditions||Fr.filter),Ar=ui(Tr,"conditions",!0),Dr=ui(gr.sqlConditions,"sqlConditions",!1);Un.value=Ar.concat(Dr).map(Fr=>{const Or=vue.unref(Qn).find($r=>$r.label===Fr.label);let Rr=Fr.fieldValue;if(Rr){const $r=Rr.split(",");($r==null?void 0:$r.length)>3&&(Rr=$r.slice(0,3).join(",")+"等")}else Rr='""';return`${(Or==null?void 0:Or.title)||Fr.label} ${xi[Fr.rule]} ${Rr}`})||[]}},Ci=hr=>{const{id:gr,data:Sr}=hr;Sr.success&&(ii.value[gr]=(Sr==null?void 0:Sr.data)||{})},Ti=(hr,gr)=>{switch(hr){case"SHOW_INDICATOR_DETAIL_MODAL":yi(gr);break;case"SAVE_COMPONENT_RES_DATA":Ci(gr);break}};vue.provide(COMMON_OPERATE,{operateAction:Ti});const wi=()=>document.querySelector("#ProviderConfig > #container")||document.body,ei=hr=>{ai.pagination.current=hr.current};vue.watchEffect(()=>{var hr;if((hr=vue.unref(sr))!=null&&hr.length&&vue.unref(x)!=="design"){const{jumpType:gr,jumpTime:Sr,jumpPage:wr,jumpLink:kr}=c;if(Sr!=null&&Sr.value){let Tr=0;switch(Sr==null?void 0:Sr.suffix){case"hours":Tr=Sr.value*60*60*1e3;break;case"minute":Tr=Sr.value*60*1e3;break;case"seconds":Tr=Sr.value*1e3;break}setTimeout(()=>{let Ar="";gr==="page"&&wr?Ar=usePageUrl(vue.unref(x),wr):gr==="link"&&kr&&(Ar=kr),Ar=hn(Ar),window.open(Ar,"_self")},Tr)}}});const ri=hr=>{var gr;vue.unref(m).showModal({data:hr,indicatorUrl:vue.unref(g),indicatorToken:((gr=window==null?void 0:window.config)==null?void 0:gr.indicatorToken)||"",context:CONTEXT,pageId:ki()})};vue.provide("showIndDetail",ri);function ki(){var gr;let hr=((gr=window==null?void 0:window.config)==null?void 0:gr.pageId)||"";if(!hr){const{pathname:Sr}=window==null?void 0:window.location;if(Sr){const wr=Sr.split("/");wr!=null&&wr.length&&(hr=wr[wr.length-1])}}return hr}return vue.onBeforeUnmount(()=>{jr==null||jr.clear(),qr==null||qr.clear()}),u({touchRequest:Yr,getGlobalModel:Xn,onRefreshPage:ni,emitEvent:Lr,getRecordValueByKeyName:or,showIndDetail:ri,props:c,systemVariable:Yn}),{providerConfig:J,configStyle:Hn,indDetailInfo:ai,pivotTableConfig:gn,indicatorUrl:g,pivotTableRef:Vn,isIndFullScreen:zn,wrapClassName:nr,theme:Pn,detailLoading:Kn,conditionInfo:Un,indDetailModalRef:m,getContainer:wi,handleTableChange:ei,toggleFullScreen:hi,onDetailCancel:Ai,onPivotTableChange:Si}}}),ProviderConfig_vue_vue_type_style_index_0_scoped_fa01aa1f_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$B(c,u,f,h,d,p){const v=vue.resolveComponent("switcher-outlined"),m=vue.resolveComponent("border-outlined"),g=vue.resolveComponent("pivot-table"),y=vue.resolveComponent("a-spin"),x=vue.resolveComponent("a-table"),Pn=vue.resolveComponent("a-modal"),b=vue.resolveComponent("indicator-detail-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(Pn,{visible:c.indDetailInfo.visible,"onUpdate:visible":u[1]||(u[1]=j=>c.indDetailInfo.visible=j),width:"40%",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)]),default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"zoom-btn",onClick:u[0]||(u[0]=(...j)=>c.toggleFullScreen&&c.toggleFullScreen(...j))},[c.isIndFullScreen?(vue.openBlock(),vue.createBlock(v,{key:0,class:vue.normalizeClass(c.theme)},null,8,["class"])):(vue.openBlock(),vue.createBlock(m,{key:1,class:vue.normalizeClass(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(g,vue.mergeProps({ref:"pivotTableRef"},c.pivotTableConfig,{pageMode:c.pageMode,theme:c.theme,fullMode:!1,allowDrill:!0,showFullScreen:!1,indicatorUrl:c.indicatorUrl,enlargeContainer:"#norPageConfig",onTableChange:c.onPivotTableChange}),null,16,["pageMode","theme","indicatorUrl","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(y,{size:"large"})])):(vue.openBlock(),vue.createBlock(x,{key:1,scroll:{x:"max-content",y:c.isIndFullScreen?"100vh":"60vh"},"row-key":j=>j.uuid,columns:c.indDetailInfo.columns,"data-source":c.indDetailInfo.dataSource,pagination:c.indDetailInfo.pagination,onChange:c.handleTableChange},{headerCell:vue.withCtx(({title:j})=>[vue.createElementVNode("div",{class:"detail-table-header-cell",title:j},vue.toDisplayString(j),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(b,{ref:"indDetailModalRef"},null,512)],64)}const ProviderConfig=_export_sfc$1(_sfc_main$w,[["render",_sfc_render$B],["__scopeId","data-v-fa01aa1f"]]),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:(h,d)=>(d=d.source||d,d=d.replace(caret,"$1"),c=c.replace(h,d),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 h;try{h=decodeURIComponent(unescape$1(f)).replace(nonWordAndColonTest,"").toLowerCase()}catch{return null}if(h.indexOf("javascript:")===0||h.indexOf("vbscript:")===0||h.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,h;for(;u<arguments.length;u++){f=arguments[u];for(h in f)Object.prototype.hasOwnProperty.call(f,h)&&(c[h]=f[h])}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?"|":" |"}),h=f.split(/ \|/);let d=0;if(h[0].trim()||h.shift(),h[h.length-1].trim()||h.pop(),h.length>u)h.splice(u);else for(;h.length<u;)h.push("");for(;d<h.length;d++)h[d]=h[d].trim().replace(/\\\|/g,"|");return h}function rtrim$1(c,u,f){const h=c.length;if(h===0)return"";let d=0;for(;d<h;){const p=c.charAt(h-d-1);if(p===u&&!f)d++;else if(p!==u&&f)d++;else break}return c.substr(0,h-d)}function findClosingBracket$1(c,u){if(c.indexOf(u[1])===-1)return-1;const f=c.length;let h=0,d=0;for(;d<f;d++)if(c[d]==="\\")d++;else if(c[d]===u[0])h++;else if(c[d]===u[1]&&(h--,h<0))return d;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,h){const d=u.href,p=u.title?escape$2(u.title):null,v=c[1].replace(/\\([\[\]])/g,"$1");if(c[0].charAt(0)!=="!"){h.state.inLink=!0;const m={type:"link",raw:f,href:d,title:p,text:v,tokens:h.inlineTokens(v,[])};return h.state.inLink=!1,m}else return{type:"image",raw:f,href:d,title:p,text:escape$2(v)}}function indentCodeCompensation(c,u){const f=c.match(/^(\s+)(?:```)/);if(f===null)return u;const h=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`${d}{text|${p}}`}else return c},setDefaultRangeVal=(c,u)=>{const{props:f,componentList:h,getGlobalModel:d}=c,{graphicConfig:p={},startValue:v,endValue:m}=f,g=getdefCompleteData({graphicConfig:p,startValue:v,endValue:m,componentList:h,getGlobalModel:d}),{dimensions:y,dataset:x}=u,{classificationList:Pn=[]}=p,j=Pn.find(re=>re.show).label||"";for(const re of g)!y.find(vn=>+vn==+re)&&!isNaN(+re)&&y.push(+re);y.sort((re,vn)=>dayjs(re).isBefore(dayjs(vn))?-1:1);for(const re of x){const{data:vn}=re;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 J in w)J===j?w[J]=+Bn:w[J]=0;Fn.push(w)}re.data.push(...Fn),re.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:h,graphicConfig:d,getGlobalModel:p}=c,v=getVariableAndField(u),m=getVariableAndField(f),g=[];if(v&&m){const y=h.find(Pn=>Pn.keyName===v.keyName),x=h.find(Pn=>Pn.keyName===m.keyName);if(y&&x){const Pn=p(y.id),b=p(x.id),{classificationList:j=[]}=d,re=j.find(vn=>vn.show);if(re){let vn="YYYY-MM";switch(re.name){case"the_year":vn="YYYY";break;case"the_month":vn="MM";break;case"the_day":vn="DD";break;case"the_date":vn=(re==null?void 0:re.dateFormat)||vn;break}const Fn=getFormatStep(vn);if(vn){const Bn=vue.unref(Pn[v.field]),w=vue.unref(b[m.field]);let J=dayjs(Bn);const gn=dayjs(w);for(g.push(gn.format(vn));J.isBefore(gn);)g.push(J.format(vn)),J=J.add(1,Fn)}}}}return g}function getVariableAndField(c){let u=null;if(c){const f=c.match(/\{(.+?)\}/g);if(f!=null&&f.length){let h=f[0].slice(1,-1).trim();const d=h.match(/\[(.+?)\]/g);let p="";d!=null&&d.length&&(h=h.replace(d[0],""),p=d[0].slice(1,-1).trim()),u={keyName:h,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:h,getRecordValueByKeyName:d,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:h};if((Pn=c.transParams)!=null&&Pn.length){y.includes("?")?y+="&":y+="?";const j=[];for(const re of c.transParams){const vn=d(String(re.fieldName));j.push(`${re.keyName}=${vn}`),b[re.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,h;let u={};if(c){const d=(((f=window.config)==null?void 0:f.urlParams)||{})[c]||{};for(const p in d)p.includes("{")||(u[p]=d[p])}else u=((h=window.config)==null?void 0:h.requestParams)||{};return u}function getNewValueFromUrlParams(c,u,f){let h="";const{urlParams:d}=window.config;if(c&&d[c])for(const p in d[c]){const v=d[c][p];if(p===`{${u}[${f}]}`&&v){h=v;break}}return h}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 h=f.parentElement,d=200,p=h.getBoundingClientRect(),{width:v,left:m,top:g}=p,y=window.innerWidth,x=window.innerHeight,Pn=c.clientX,b=c.clientY,j=parseFloat(h.style.left)||0,re=parseFloat(h.style.top)||0,vn=-(m+v-d-j),Fn=y-m+j-d,Bn=-(g-re),w=x-g+re-d,J=Vn=>{Vn.preventDefault();const zn=Vn.clientX-Pn,Kn=Vn.clientY-b;let Un=j+zn,Qn=re+Kn;Un=Math.max(vn,Math.min(Un,Fn)),Qn=Math.max(Bn,Math.min(Qn,w)),h.style.left=`${Un}px`,h.style.top=`${Qn}px`},gn=()=>{f.style.cursor="",f.style.userSelect="",document.removeEventListener("mousemove",J),document.removeEventListener("mouseup",gn)};document.addEventListener("mousemove",J),document.addEventListener("mouseup",gn)},useRequestData=(c,u,f=()=>{})=>{var sr;const{requestUrl:h,requestMethod:d,requestHeaders:p,requestParams:v,requestInterval:m,isOpenRequestTimer:g,openCustomRequestData:y,projectRequestUrl:x="",getModel:Pn,requestParamsMode:b,customRequestParams:j,dataSetParam:re,requestType:vn,dataType:Fn,dataSetchecked:Bn}=c,{pageMode:w}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"})||{},{pageId:J}=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,Gn)=>{}}),Qn=Pn||zn;let Jn=hn(h),Yn=vue.unref(gn)||x||"";(Fn==="request"&&Bn||vn===1)&&(Yn="",Jn=((sr=window.config)==null?void 0:sr.dataSetUrl)||"/api/datav/dataset/data2");const Zn=async(ur={})=>{var ir;if(Fn!=="request"&&nr){clearInterval(nr);return}if(!Jn||!d||!p)return;let Gn={};for(const Xn of v){const{key:vr,value:cr}=Xn;if((cr==null?void 0:cr.id)==="PARENT"&&(cr!=null&&cr.prop)){const ar=(((ir=window.config)==null?void 0:ir.record)||{})[cr.prop];if(ar){const mr=ar[cr.propKey||"value"];mr&&(["date","range"].some(yr=>yn(ar==null?void 0:ar.type,yr))?Gn[vr]=vue.unref(mr).format(ar.format||"YYYY-MM-DD"):Gn[vr]=vue.unref(mr))}continue}if(typeof cr=="object"&&cr!=null&&cr.id){let or={};const{id:ar,prop:mr,propKey:fr,operate:yr}=cr;let dr=!1;try{JSON.parse(ar),dr=!0}catch{dr=!1}if(ar==="THIS"?or=Qn(vue.unref(Vn))||{}:or=Qn(ar)||{},(or==null?void 0:or.type)==="ecanSelect"&&vue.unref(Kn)&&!vue.unref(Kn)[ar]&&(or==null?void 0:or.dataType)!=="static")return;const pr=vue.unref(or[mr]);let Cr=null;if(["date","range"].some(xr=>yn(or==null?void 0:or.type,xr))){const{value:xr,type:br,mode:Er}=yr||{};if(xr&&br&&Er)switch(br){case"add":Cr=vue.unref(pr).add(xr,Er);break;case"minus":Cr=vue.unref(pr).subtract(xr,Er);break}Cr==null&&(Cr=vue.unref(pr)),Cr=Cr&&(Cr==null?void 0:Cr.format((fr==null?void 0:fr.trim())||or.format))||""}else if(Object.prototype.toString.call(pr)==="[object Object]")fr?Cr=pr[fr]:Cr=mr?pr[mr]:pr;else if(yn(or==null?void 0:or.type,"select")&&vue.unref(pr)&&mr&&Array.isArray(vue.unref(pr)))Cr=vue.unref(pr).map(xr=>Object.prototype.hasOwnProperty.call(xr,mr)?xr[mr]:xr);else if(dr){const xr=JSON.parse(ar);console.log(xr,"urlvalue"),Cr=xr.value}else Cr=pr;Gn[vr]=Cr}else typeof cr=="object"&&!cr.id&&vn===1?(console.log(cr.propKey,"value.propKey"),Gn[vr]=cr.propKey):typeof cr=="string"&&(Gn[vr]=hn(cr))}if(vn===1){console.log(Gn,"_params");const Xn=Object.entries(Gn);let vr=re;if(!re.param&&Array.isArray(re)){const cr={};for(const or of re)cr[or.key]=or.value;vr=cr}vr.param=vr.param.map((cr,or)=>({...cr,paramKey:Xn[or][0],defaultValue:Xn[or][1]||""})),Gn=vr}if(b==="2"&&j!=="{}"){const Xn=JSON.parse(j);Wn(Xn),Xn&&(Gn=Xn)}function Wn(Xn){const vr={...Gn,...getPageUrlParams(J)};if(Array.isArray(Xn))Xn.forEach((cr,or)=>{if(typeof cr=="string"){const ar=cr.match(/\${(.+?)\}/g);if(ar!=null&&ar.length){const mr=ar[0].slice(2,-1);mr&&vr[mr]?Xn[or]=vr[mr]:Xn[or]=""}}else Wn(cr)});else if(Object.prototype.toString.call(Xn)==="[object Object]")for(const cr in Xn)if(typeof Xn[cr]=="string"){const or=Xn[cr].match(/\${(.+?)\}/g);if(or!=null&&or.length){const ar=or[0].slice(2,-1);ar&&vr[ar]?Xn[cr]=vr[ar]:Xn[cr]=""}}else Wn(Xn[cr])}const Rn=getPageUrlParams(J);for(const Xn in Rn)Rn[Xn]&&(Rn[Xn]=decodeURIComponent(Rn[Xn]));Gn={...Rn,...ur,...Gn};let qn="";const er=Object.keys(Gn),Hn=er.length-1,tr=er.length;er.forEach((Xn,vr)=>{let cr=Gn[Xn];Object.prototype.toString.call(cr)==="[object Object]"&&(cr=JSON.stringify(cr)),vr===0?tr!==1?qn+=`?${Xn}=${cr}&`:qn+=`?${Xn}=${cr}`:vr===Hn?qn+=`${Xn}=${cr}`:qn+=`${Xn}=${cr}&`}),Jn.includes("?")&&(qn=qn.replace("?","&"));function lr(Xn){var vr;if(vn===1)return{Authentication:(vr=window==null?void 0:window.config)==null?void 0:vr.indicatorToken};if(typeof Xn=="string"){const cr=JSON.parse(Xn),or=getPageUrlParams(J);if(Object.prototype.toString.call(cr)==="[object Object]"){for(const ar in cr)if(typeof cr[ar]=="string"){const mr=cr[ar].match(/\${(.+?)\}/g);if(mr!=null&&mr.length){const fr=mr[0].slice(2,-1);fr&&or[fr]?cr[ar]=or[fr]:cr[ar]=""}}}return cr}else return Xn}try{const Xn=["get","head"].includes(d),vr={};let cr=Xn?Jn+qn:Jn;Gn.dataSqlId&&!cr.includes("dataSqlId")&&(cr+=`${cr.includes("?")?"&":"?"}dataSqlId=${Gn.dataSqlId}`),Object.prototype.hasOwnProperty.call(Gn,"signal")?vr.signal=Gn.signal:window.controller&&(vr.signal=window.controller.signal);const or=await request({baseURL:Yn,url:cr,method:d,headers:p?lr(p):{},data:Xn?{}:Gn,...vr});return f(or),Un.operateAction("SAVE_COMPONENT_RES_DATA",{id:c.id,data:(or==null?void 0:or.data)||{}}),or}catch(Xn){console.error(Xn)}},nr=vue.unref(w)!=="design"&&g&&(y||y===void 0)&&setInterval(Zn,m*1e3);return vue.onUnmounted(()=>{clearInterval(nr)}),Zn},useImagePath=(c,u=!1)=>{var h;if(!c)return c;let f="";return c!=null&&c.includes("://")?f=c:f=((h=window==null?void 0:window.config)==null?void 0:h.uploadPath)+c,u&&(f=`url(${f})`),f},usePageUrl=(c,u)=>{const f=`${BASE_URL}/preview?pageId=${u}`,h=`${BASE_URL}/${u}`;return c==="preview"?f:h},useIndicatorData=(c={},u=()=>{})=>{var x;const{pageMode:f}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),{requestToken:h}=vue.inject(GLOBAL_TOKEN,{requestToken:()=>{}}),{setLoadedData:d}=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"&&h();const g=async(Pn={})=>{var Bn,w,J;const b=p();d(c.id,!1);const j=Dn({...c,globalModel:b},Pn),{url:re,...vn}=j||{};let Fn=v||((Bn=window==null?void 0:window.config)==null?void 0:Bn.pageId);if(!Fn){const{pathname:gn}=window==null?void 0:window.location;if(gn){const Vn=gn.split("/");Vn!=null&&Vn.length&&(Fn=Vn[Vn.length-1])}}if(re&&vn)try{const gn=await request({url:`${INDICATOR_URL}${re}`,method:"post",headers:{Authentication:(w=window==null?void 0:window.config)==null?void 0:w.indicatorToken,operateContext:CONTEXT},data:{...vn,pageId:Fn},signal:((J=window.controller)==null?void 0:J.signal)||""});return Pn!=null&&Pn.isTimer&&u(gn),m.operateAction("SAVE_COMPONENT_RES_DATA",{id:c.id,data:(gn==null?void 0:gn.data)||{}}),gn}catch(gn){console.error(gn)}},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,h={};for(let d=0;d<f;d++){const p=u[d];if(p==null||p==="")continue;const v=p.split("=");if(Array.isArray(v)){const m=v[0];m.includes("{")||(h[m]=v[1])}}window.config.requestParams={...window.config.requestParams,...h},window.config={...window.config,...h}},_sfc_main$y=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:h}=vue.inject(GLOBAL_CONFIG,{width:null,height:null,isCompatible:null}),d=vue.inject("setPageHeight",Vn=>{}),p=vue.inject("isMobile",!1),v=vue.computed(()=>{const Vn={};return(!h.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 re=()=>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 re(),vn(),Bn(),window.addEventListener("resize",w),J()),Pn.value=!0},{immediate:!0});const Fn=vue.ref({});vue.provide("scaleValue",Fn);const Bn=()=>{if(h.value&&p){b.value.style.width="100%",b.value.style.height="auto",d("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 Jn=zn/Un;(m.value!==1920||g.value!==1080)&&(Jn=g.value/m.value*Vn/Un),Fn.value={widthScale:Qn,heightScale:Jn},b.value&&(b.value.style.transform=`scale(${Qn}, ${Jn})`),d(Jn)},w=lodashEs.debounce(async()=>{await re(),Bn()},100),J=()=>{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_212e9845_lang="",_hoisted_1$j=["id"],_hoisted_2$a=["id"];function _sfc_render$D(c,u,f,h,d,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$j)}const PageConfig=_export_sfc$1(_sfc_main$y,[["render",_sfc_render$D],["__scopeId","data-v-212e9845"]]),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 h=(2<<Math.log(c.length-1)/Math.LN2)-1,d=-~(1.6*h*u/c.length);return(p=u)=>{let v="";for(;;){let m=f(d),g=d;for(;g--;)if(v+=c[m[g]&h]||"",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$x=vue.defineComponent({name:"IndicatorDetailModal",setup(c,{expose:u}){const f=vue.ref(!1),h=vue.ref([]),d=vue.ref(!1),p=async({data:m,indicatorUrl:g,indicatorToken:y,context:x,pageId:Pn})=>{var re;d.value=!0,f.value=!0;let b=[];const{graphicConfig:j}=vue.unref(m)||{};if(j){const{leftAxisList:vn=[],rightAxisList:Fn=[],indicators:Bn=[]}=j,w=vn.concat(Fn).concat(Bn).filter(J=>J.show);w!=null&&w.length&&(b=w.map(J=>({calcType:J.calcType||"COLUMN",columnName:J.name,hrpIndexCode:J.indexCode,hrpIndexCodeNum:J.indexCodeNum,label:J.label,show:J.show,formula:J.formula})))}if(b!=null&&b.length)try{const vn=await request({url:`${vue.unref(g)}/diagram/obtainIndicatorInfo`,method:"post",headers:{Authentication:y,operateContext:x},data:{source:"INDICATOR_LIB",pageId:Pn,indicatorList:b}});h.value=((re=vn==null?void 0:vn.data)==null?void 0:re.data)||[]}catch{}finally{d.value=!1}},v=()=>document.querySelector("#ProviderConfig > #container")||document.body;return u({showModal:p}),{visible:f,dataList:h,isLoading:d,hasOwn:mn,getContainer:v}}}),IndicatorDetailModal_vue_vue_type_style_index_0_scoped_25352126_lang="",_withScopeId$5=c=>(vue.pushScopeId("data-v-25352126"),c=c(),vue.popScopeId(),c),_hoisted_1$i=_withScopeId$5(()=>vue.createElementVNode("div",{class:"modal-title"},"指标详情",-1)),_hoisted_2$9={key:0,class:"spin-container"},_hoisted_3$5={class:"index-name"},_hoisted_4$4={key:0,class:"card-row"},_hoisted_5$3=_withScopeId$5(()=>vue.createElementVNode("div",{class:"label"},"计量单位:",-1)),_hoisted_6$3={class:"content"},_hoisted_7$3={key:1,class:"card-row"},_hoisted_8$3=_withScopeId$5(()=>vue.createElementVNode("div",{class:"label"},"指标定义:",-1)),_hoisted_9$3={class:"content"},_hoisted_10$3={key:2,class:"card-row"},_hoisted_11$3=_withScopeId$5(()=>vue.createElementVNode("div",{class:"label"},"计算方法:",-1)),_hoisted_12$3={class:"content"},_hoisted_13$3={key:3,class:"card-row"},_hoisted_14$3=_withScopeId$5(()=>vue.createElementVNode("div",{class:"label"},"指标说明:",-1)),_hoisted_15$2={class:"content"};function _sfc_render$C(c,u,f,h,d,p){const v=vue.resolveComponent("a-spin"),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:"45%",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.isLoading?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$9,[vue.createVNode(v,{size:"large"})])):c.dataList.length?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:1},vue.renderList(c.dataList,(g,y)=>(vue.openBlock(),vue.createElementBlock("div",{class:"detail-wrap",key:y},[vue.createElementVNode("div",_hoisted_3$5,vue.toDisplayString(g.indexName||"--"),1),c.hasOwn(g,"theUnit")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$4,[_hoisted_5$3,vue.createElementVNode("div",_hoisted_6$3,vue.toDisplayString(g.theUnit||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(g,"meaning")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_7$3,[_hoisted_8$3,vue.createElementVNode("div",_hoisted_9$3,vue.toDisplayString(g.meaning||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(g,"theFormula")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_10$3,[_hoisted_11$3,vue.createElementVNode("div",_hoisted_12$3,vue.toDisplayString(g.theFormula||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(g,"theExplain")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_13$3,[_hoisted_14$3,vue.createElementVNode("div",_hoisted_15$2,vue.toDisplayString(g.theExplain||"--"),1)])):vue.createCommentVNode("",!0)]))),128)):vue.createCommentVNode("",!0)]),_:1},8,["visible","getContainer"])}const IndicatorDetailModal=_export_sfc$1(_sfc_main$x,[["render",_sfc_render$C],["__scopeId","data-v-25352126"]]),_sfc_main$w=vue.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,components:{ATable:antDesignVue.Table,BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1,IndicatorDetailModal},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 h=.37,d=.4,p=.97,v=.9,m=vue.ref(),g=vue.computed(()=>INDICATOR_URL),y=vue.computed(()=>hn(c.contextRequestUrl)),x=vue.computed(()=>c.pageMode),Pn=vue.computed(()=>c.theme),b=vue.computed(()=>c.width),j=vue.computed(()=>c.height),re=vue.computed(()=>c.pageFontFamily),vn=vue.computed(()=>c.fixedHeight?parseFloat(c.fixedHeight):0),Fn=vue.computed(()=>c.isCompatible),Bn=vue.computed(()=>c.variableList),w=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)),J=vue.ref(),gn=vue.ref({}),Vn=vue.ref(),zn=vue.ref(!1),Kn=vue.ref(!1),Un=vue.ref([]),Qn=vue.ref([]),Jn=()=>{J.value.setAttribute("datav-theme",c.theme)},Yn=vue.ref({currentYmd:dayjs().format("YYYY-MM-DD"),currentYear:dayjs().format("YYYY"),currentMonth:dayjs().format("MM"),currentDay:dayjs().format("DD")}),Zn=vue.computed(()=>{const hr={};if(vue.unref(Bn))for(const Sr of vue.unref(Bn))hr[Sr.label]=Sr.value;return{$page:{...vue.unref(Yn),...hr}}}),nr=vue.computed(()=>{let hr="ind-detail-modal";return zn.value&&(hr+=" full"),vue.unref(Pn)==="darkBlue"&&(hr+=" darkBlue"),hr});vue.provide(GLOBAL_VARIABLE,{globalVariable:Zn});const sr=vue.inject("usedComponentList",[]),ur=vue.inject("componentList",[]);vue.watch(Zn,()=>{f("setGlobalVar",vue.unref(Yn))},{deep:!0,immediate:!0});const Gn=vue.computed(()=>{const hr=[];for(const gr of vue.unref(sr))gr.type==="ecanModal"?hr.push(...gr.componentList):hr.push(gr);return hr});vue.watch(()=>c.theme,()=>{Jn()}),vue.onMounted(()=>{Jn()});const Wn=vue.computed(()=>{const hr=[],gr=vue.unref(ur).filter(Sr=>Sr.type==="ecanModal");for(const Sr of gr)Sr!=null&&Sr.requestList&&hr.push(...Sr.requestList);return[...hr,...c.requestList]}),Rn=hr=>Object.prototype.toString.call(hr)==="[object Object]",qn=hr=>{const gr=hr.split(".");let Sr=vue.unref(Zn);for(const wr of gr)if(Sr&&Rn(Sr))Sr=Sr[wr];else{Sr="";break}return Sr},er=vue.ref("");vue.provide(GLOBAL_CONFIG,{contextRequestUrl:y,pageMode:x,theme:Pn,touchEventId:er,width:b,height:j,fontFamily:re,requestList:Wn,isCompatible:Fn,fixedHeight:vn,getGlobalVar:qn});const Hn=vue.ref({height:"100%",overflow:c.pageMode==="design"?"":"hidden"});vue.provide("setPageHeight",hr=>{let gr=hr;(!Fn.value||!w.value)&&(gr=parseFloat(j.value)*hr+"px"),Hn.value.height=gr}),vue.provide("isMobile",w.value),vue.provide("getContainerMap",()=>c.containerMap),vue.provide("getCombinationMap",()=>c.combinationMap),vue.provide("templateOperate",{pageId:c.pageId,templateEmit:f,setTemplateData:hr=>{var gr;if(hr!=null&&hr.pageId){const{componentId:Sr,...wr}=hr;(gr=window.config)!=null&&gr.urlParams||(window.config.urlParams={}),window.config.urlParams[hr.pageId]=wr,f("templateChange",hr)}}});const tr=vue.ref(),lr=new Map,ir=()=>lr,Xn=hr=>{let gr=lr.get(hr);if(!gr){const Sr=vue.unref(ur).find(wr=>wr.keyName===hr);Sr&&(gr=lr.get(Sr.id))}return gr},vr=(hr,gr)=>{var Sr;if(tr.value=gr,lr.set(hr,gr),!c.pageId){const wr=vue.unref(sr).find(kr=>kr.id===hr);wr&&((Sr=window.config)!=null&&Sr.record||(window.config.record={}),window.config.record[wr.keyName]=gr)}},cr=()=>{tr.value=null},or=hr=>{let gr=hr;if(gr){const Sr=hr.match(/\{(.+?)\}/g);if(Sr!=null&&Sr.length){let wr=Sr[0].slice(1,-1).trim();const kr=wr.match(/\[(.+?)\]/g);let Tr="";kr!=null&&kr.length&&(wr=wr.replace(kr[0],""),Tr=kr[0].slice(1,-1).trim());const Ar=vue.unref(Gn).find(Dr=>Dr.keyName===wr);if(Ar){const Dr=Xn(Ar.id),{type:Fr,value:Or,RECORD:Rr,recordData:$r}=Dr||{};yn(Fr,MODEL_KEY_LIST)?gr=Rr[Tr]:yn(Fr,"select")?$r[Tr]?gr=$r[Tr]:gr=vue.unref(Or):yn(Fr,["rangePicker","date"])?dayjs.isDayjs(vue.unref(Dr[Tr]))?gr=vue.unref(Dr[Tr]).format(Dr.format):gr=vue.unref(Dr[Tr]):gr=Or}else{const Dr=window.config.requestParams||{},Fr=window.location.search.slice(1).split("&"),Or={};for(const $r of Fr)if($r!=null&&$r.includes("=")){const Gr=$r.split("=");Or[Gr[0]]=Gr[1]||""}gr={...Or,...Dr}[wr]||""}}}return gr},ar=new Map,mr={},fr=async(hr,gr)=>{var Ar;const{requestName:Sr}=hr,wr=await useRequestData({...hr,projectRequestUrl:vue.unref(y),getModel:Xn})(),kr=((Ar=wr==null?void 0:wr.data)==null?void 0:Ar.data)||{};hr.requestKeyName&&(Yn.value[hr.requestKeyName]=kr);const Tr=ar.get(Sr);if(Tr!=null&&Tr.length&&(!gr||mr[Sr])){for(const Dr of Tr)Dr(kr);gr||ar.delete(Sr)}},yr=(hr,gr)=>{mr[hr]&&(clearInterval(mr[hr]),delete mr[hr],ar.delete(hr));const Sr=vue.unref(Gn).filter(kr=>kr.dataType==="request"&&!kr.openCustomRequestData&&kr.customRequestName===hr),wr=ar.get(hr)||[];if((Sr==null?void 0:Sr.length)>wr.length&&(wr.push(gr),ar.set(hr,wr),(Sr==null?void 0:Sr.length)===wr.length)){const kr=vue.unref(Wn).find(Tr=>Tr.requestName===hr);kr&&(kr!=null&&kr.isOpenRequestTimer&&(kr!=null&&kr.requestInterval)?(fr(kr,!0),mr[hr]=setInterval(()=>{fr(kr,!0)},kr.requestInterval*1e3)):fr(kr))}};vue.provide(GLOBAL_MODEL,{getGlobalModel:Xn,setGlobalModel:vr,getAllGlobalModel:ir,clearInteractiveData:cr,getRecordValueByKeyName:or,hanldePageRequestData:yr,interactiveData:tr});const dr=vue.ref({}),pr=(hr,gr)=>{dr.value[hr]=gr};vue.provide(LOADED_DATA,{loadedData:dr,setLoadedData:pr});const Cr=[],_r=()=>{Cr.pop()},xr=hr=>{Cr.push(hr)},br=new Map,Er=hr=>br.get(hr),Ir=(hr,gr)=>{br.set(hr,gr)};vue.provide(MODAL_MODEL,{popUseModalIds:_r,pushUseModalIds:xr,getModalModel:Er,setModalModel:Ir});const Pr=mitt(),Mr=new Set,Vr=(hr,gr)=>{Mr.add(hr),Pr.on(hr,Sr=>{const{eventName:wr,params:kr}=Sr;return typeof gr[wr]=="function"&&gr[wr](kr)}),vue.onBeforeUnmount(()=>{zr(hr)})},zr=hr=>{Mr.delete(hr),Pr.off(hr)},Lr=(hr,gr,Sr={})=>{if(hr==="PAGE"){const wr=Cr.length;let kr=[];if(wr===0)kr=[...Mr];else{const Tr=Cr[wr-1];kr=[...Er(Tr)]}kr.forEach(Tr=>{Pr.emit(Tr,{eventName:gr,params:Sr})})}else Pr.emit(hr,{eventName:gr,params:Sr})};vue.provide(EVENT_BUS,{onEvent:Vr,offEvent:zr,emitEvent:Lr});const Br=vue.ref(0),Nr=()=>{Br.value=vue.unref(Br)+1};vue.provide(GLOBAL_TOKEN,{requestToken:Nr});const jr=new Map,qr=new Map,Ur=({requestFn:hr=()=>{},sortNum:gr=0,id:Sr=""})=>{if(jr.has(gr)){const wr=jr.get(gr);wr==null||wr.push(hr)}else jr.set(gr,[hr]);qr.set(Sr,hr)},Wr=hr=>new Promise((gr,Sr)=>{const wr=hr.map(kr=>kr());Promise.all(wr).then(kr=>{gr(kr)}).catch(kr=>{Sr(kr)})}),Yr=hr=>new Promise(async(gr,Sr)=>{if(hr){if(typeof hr=="string"){const wr=qr.get(hr);if(typeof wr=="function"){const kr=request.interceptors.response.use(Tr=>(gr(Tr),Tr),Tr=>(Sr(Tr),Promise.reject(Tr)));wr(),request.interceptors.response.eject(kr)}}}else{const wr=Array.from(jr);wr.sort((Tr,Ar)=>Ar[0]-Tr[0]);const kr=wr.length;try{c.pageMode!=="design"&&vue.unref(Br)>0;for(let Tr=0;Tr<kr;Tr++){const Ar=wr[Tr][1];await Wr(Ar)}}catch(Tr){console.error(Tr)}finally{jr.clear(),gr(null)}}});vue.provide(REQUEST_MODEL,{setRequest:Ur,touchRequest:Yr});const ti=()=>{Pr.emit(REFRESH_PAGE)};vue.provide(REFRESH_PAGE,{emitRefreshPage:ti});const ni=hr=>{Pr.on(REFRESH_PAGE,()=>hr()),vue.onMounted(()=>{Pr.off(REFRESH_PAGE)})},ii=vue.ref({}),ai=vue.reactive({visible:!1,dataSource:[],columns:[],title:"",pagination:{current:1,pageSize:10,total:0,showSizeChanger:!1,showQuickJumper:!1,showTotal:hr=>`共 ${hr} 条数据`}});vue.provide(All_COMPONENT_RES_DATA,{allComponentResData:ii});const fi={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"},yi=async hr=>{var $r,Gr,Zr,Xr,Qr;if(w.value||c.drillingMode==="default")return;let gr=lodashEs.cloneDeep(hr).props;if(gr.parentId){const Hr=vue.unref(sr).find(Kr=>Kr.id===gr.parentId);if((Hr==null?void 0:Hr.dataType)==="indicator")gr=lodashEs.cloneDeep(Hr);else return}const Sr=(($r=window==null?void 0:window.config)==null?void 0:$r.indicatorToken)||"",wr=ki(),kr=(gr==null?void 0:gr.graphicConfig)||{},{leftAxisList:Tr=[],rightAxisList:Ar=[],indicators:Dr=[]}=kr,Fr=Tr.concat(Ar).concat(Dr);if(!(Fr!=null&&Fr.length))return;const Or=Fr.filter(Hr=>Hr.show).map(Hr=>Hr.label);Or!=null&&Or.length&&(ai.title=`下钻:${Or.join("、")}`);const Rr=Dn({...gr,globalModel:ir()});if(c.drillingMode==="pivotTable"){const Hr=await pi({cpntProps:gr,pageId:wr,formatParams:Rr,classifications:[],indicatorToken:Sr});Qn.value=((Gr=Hr==null?void 0:Hr.data)==null?void 0:Gr.data)||[];const Kr=nanoid(6);if(kr.queryColumnList||(kr.queryColumnList=[]),kr!=null&&kr.classificationList&&(kr.queryColumnList=kr.classificationList,delete kr.classificationList),kr!=null&&kr.seriesList&&(kr.queryColumnList=kr.queryColumnList.concat(kr.seriesList),delete kr.seriesList),kr.indicators=lodashEs.cloneDeep(Fr||[]),delete kr.leftAxisList,delete kr.rightAxisList,yn(gr.type,"indexPanel")){const li=vue.unref(Qn).slice(0,2).sort((mi,Ei)=>mi.typeGuid-Ei.typeGuid).map(mi=>({...mi,show:!0,edit:!1,dataTo:"0",dataSetParams:{}}));li!=null&&li.length&&(kr.queryColumnList=li)}(Zr=kr.queryColumnList)!=null&&Zr.length||(kr.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 si={...lodashEs.cloneDeep(pivotTableProps),id:Kr,keyName:`透视表_${Kr}`,position:"relative",top:0,left:0,width:parseFloat(c.width)*h+"px",height:parseFloat(c.height)*d+"px",pageId:wr,indicatorToken:Sr,context:CONTEXT,globalModel:ir(),graphicConfig:kr};vue.unref(Pn)==="darkBlue"&&(si.styleConfig=fi),gn.value=si,ai.visible=!0,vue.nextTick(()=>{vue.unref(Vn).refreshData()})}else if(c.drillingMode==="normalTable"){vi(Rr,lodashEs.cloneDeep(hr.props));let Hr=(Rr==null?void 0:Rr.classification)||(Rr==null?void 0:Rr.classifications)||[];Array.isArray(Hr)||(Hr=[Hr]);try{Kn.value=!0,ai.visible=!0;const Kr=await pi({cpntProps:gr,pageId:wr,formatParams:Rr,classifications:Hr,indicatorToken:Sr}),si=((Xr=Kr==null?void 0:Kr.data)==null?void 0:Xr.data)||[],li=Hr.map(oi=>({...oi,calcType:"COLUMN"}));for(const oi of si)li.push({calcType:"COLUMN",columnName:oi.name,label:oi.name,show:!0,typeGuid:oi.typeGuid});Rr.queryColumns=li,Rr.layer="1",Rr.plugin="1",delete Rr.classification,delete Rr.classifications;const{url:mi,...Ei}=Rr||{},Pi=await request({url:`${vue.unref(g)}${mi}`,method:"post",headers:{Authentication:Sr,operateContext:CONTEXT},data:{...Ei,pageId:wr}}),{columns:Oi=[],rows:_i=[]}=((Qr=Pi==null?void 0:Pi.data)==null?void 0:Qr.data)||{};ai.columns=Oi.filter(oi=>!!oi).map(oi=>{let Ri=oi;const Ii=si.find(Li=>Li.name===oi);return Ii&&(Ri=Ii.title||Ii.label),{title:Ri,dataIndex:oi,width:"120px"}}),ai.dataSource=(Array.isArray(_i)?_i:[_i]).map(oi=>({...oi,uuid:nanoid(6)})),ai.pagination.total=(_i==null?void 0:_i.length)||0,Kn.value=!1}catch(Kr){console.error(Kr)}}vue.nextTick(()=>{di(!0),ci(!0)})},di=hr=>{const gr=document.querySelector(".ind-detail-modal .ant-modal-header");gr&&(hr?gr.addEventListener("dblclick",hi):gr.removeEventListener("dblclick",hi))},ci=hr=>{const gr=document.querySelector(".ind-detail-modal .ant-modal-header");if(gr)if(hr)gr.addEventListener("mousedown",bi);else{const Sr=gr.parentElement;Sr&&(Sr.style.left="",Sr.style.top=""),gr.removeEventListener("mousedown",bi)}};function bi(hr){dragModalAction(hr,".ind-detail-modal .ant-modal-header")}const pi=async({cpntProps:hr,pageId:gr,formatParams:Sr,classifications:wr,indicatorToken:kr})=>{var Tr,Ar,Dr;return await request({url:`${vue.unref(g)}/diagram/obtainDrillAbleDimensionOptions`,method:"post",headers:{Authentication:kr,operateContext:CONTEXT},data:{source:((Tr=hr==null?void 0:hr.graphicConfig)==null?void 0:Tr.source)||"INDICATOR_LIB",pageId:gr,indicatorList:(Sr==null?void 0:Sr.indicatorList)||[],classifications:wr,dataSourceId:((Ar=hr==null?void 0:hr.graphicConfig)==null?void 0:Ar.dataSourceId)||""},signal:((Dr=window.controller)==null?void 0:Dr.signal)||""})},xi={IN:"属于",NOT_IN:"不属于",LIKE:"包含",NOT_LIKE:"不包含","LIKE%":"开头是","%LIKE":"结尾是",EQUAL:"等于",LESS:"小于",LESS_EQUAL:"小于等于",GREATER:"大于",GREATER_EQUAL:"大于等于",NOT_EQUAL:"不等于"};function ui(hr,gr,Sr){const wr=[];for(const kr of hr)kr[gr]?wr.push(...ui(kr[gr],gr,Sr)):kr.filter?wr.push({...kr.filter,label:kr.label}):(!Sr||kr.dataType!=="component"&&!(kr.fieldValue.startsWith("${")&&kr.fieldValue.endsWith("}")))&&wr.push(kr);return wr}const vi=(hr,gr)=>{const{leftAxisList:Sr=[],rightAxisList:wr=[],indicators:kr=[],classificationList:Tr=[],rowHeaderList:Ar=[],dimensionList:Dr=[],seriesList:Fr=[],queryColumns:Or=[],indexLibColumns:Rr=[]}=gr.graphicConfig,Gr=Sr.concat(wr).concat(kr).concat(Tr).concat(Ar).concat(Dr).concat(Fr).concat(Or).concat(Rr).filter(Qr=>Qr.conditions),Zr=ui(Gr,"conditions",!0),Xr=ui(hr.sqlConditions,"sqlConditions",!1);Un.value=Zr.concat(Xr).map(Qr=>{let Hr=Qr.fieldValue;if(Hr){const Kr=Hr.split(",");(Kr==null?void 0:Kr.length)>3&&(Hr=Kr.slice(0,3).join(",")+"等")}else Hr='""';return`${Qr.label} ${xi[Qr.rule]} ${Hr}`})||[]},hi=()=>{zn.value=!zn.value,vue.nextTick(()=>{zn.value?(vue.unref(gn).width=parseFloat(c.width)*p+"px",vue.unref(gn).height=parseFloat(c.height)*v+"px",ci(!1)):(vue.unref(gn).width=parseFloat(c.width)*h+"px",vue.unref(gn).height=parseFloat(c.height)*d+"px",ci(!0))})},Ai=()=>{zn.value=!1,di(!1),ci(!1)},Si=({type:hr,data:gr})=>{if(hr==="11"&&gr){const{indicatorList:Sr=[],queryColumns:wr=[]}=gr,Tr=Sr.concat(wr).filter(Fr=>Fr.conditions||Fr.filter),Ar=ui(Tr,"conditions",!0),Dr=ui(gr.sqlConditions,"sqlConditions",!1);Un.value=Ar.concat(Dr).map(Fr=>{const Or=vue.unref(Qn).find($r=>$r.label===Fr.label);let Rr=Fr.fieldValue;if(Rr){const $r=Rr.split(",");($r==null?void 0:$r.length)>3&&(Rr=$r.slice(0,3).join(",")+"等")}else Rr='""';return`${(Or==null?void 0:Or.title)||Fr.label} ${xi[Fr.rule]} ${Rr}`})||[]}},Ci=hr=>{const{id:gr,data:Sr}=hr;Sr.success&&(ii.value[gr]=(Sr==null?void 0:Sr.data)||{})},Ti=(hr,gr)=>{switch(hr){case"SHOW_INDICATOR_DETAIL_MODAL":yi(gr);break;case"SAVE_COMPONENT_RES_DATA":Ci(gr);break}};vue.provide(COMMON_OPERATE,{operateAction:Ti});const wi=()=>document.querySelector("#ProviderConfig > #container")||document.body,ei=hr=>{ai.pagination.current=hr.current};vue.watchEffect(()=>{var hr;if((hr=vue.unref(sr))!=null&&hr.length&&vue.unref(x)!=="design"){const{jumpType:gr,jumpTime:Sr,jumpPage:wr,jumpLink:kr}=c;if(Sr!=null&&Sr.value){let Tr=0;switch(Sr==null?void 0:Sr.suffix){case"hours":Tr=Sr.value*60*60*1e3;break;case"minute":Tr=Sr.value*60*1e3;break;case"seconds":Tr=Sr.value*1e3;break}setTimeout(()=>{let Ar="";gr==="page"&&wr?Ar=usePageUrl(vue.unref(x),wr):gr==="link"&&kr&&(Ar=kr),Ar=hn(Ar),window.open(Ar,"_self")},Tr)}}});const ri=hr=>{var gr;vue.unref(m).showModal({data:hr,indicatorUrl:vue.unref(g),indicatorToken:((gr=window==null?void 0:window.config)==null?void 0:gr.indicatorToken)||"",context:CONTEXT,pageId:ki()})};vue.provide("showIndDetail",ri);function ki(){var gr;let hr=((gr=window==null?void 0:window.config)==null?void 0:gr.pageId)||"";if(!hr){const{pathname:Sr}=window==null?void 0:window.location;if(Sr){const wr=Sr.split("/");wr!=null&&wr.length&&(hr=wr[wr.length-1])}}return hr}return vue.onBeforeUnmount(()=>{jr==null||jr.clear(),qr==null||qr.clear()}),u({touchRequest:Yr,getGlobalModel:Xn,onRefreshPage:ni,emitEvent:Lr,getRecordValueByKeyName:or,showIndDetail:ri,props:c,systemVariable:Yn}),{providerConfig:J,configStyle:Hn,indDetailInfo:ai,pivotTableConfig:gn,indicatorUrl:g,pivotTableRef:Vn,isIndFullScreen:zn,wrapClassName:nr,theme:Pn,detailLoading:Kn,conditionInfo:Un,indDetailModalRef:m,getContainer:wi,handleTableChange:ei,toggleFullScreen:hi,onDetailCancel:Ai,onPivotTableChange:Si}}}),ProviderConfig_vue_vue_type_style_index_0_scoped_fa01aa1f_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$B(c,u,f,h,d,p){const v=vue.resolveComponent("switcher-outlined"),m=vue.resolveComponent("border-outlined"),g=vue.resolveComponent("pivot-table"),y=vue.resolveComponent("a-spin"),x=vue.resolveComponent("a-table"),Pn=vue.resolveComponent("a-modal"),b=vue.resolveComponent("indicator-detail-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(Pn,{visible:c.indDetailInfo.visible,"onUpdate:visible":u[1]||(u[1]=j=>c.indDetailInfo.visible=j),width:"40%",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)]),default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"zoom-btn",onClick:u[0]||(u[0]=(...j)=>c.toggleFullScreen&&c.toggleFullScreen(...j))},[c.isIndFullScreen?(vue.openBlock(),vue.createBlock(v,{key:0,class:vue.normalizeClass(c.theme)},null,8,["class"])):(vue.openBlock(),vue.createBlock(m,{key:1,class:vue.normalizeClass(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(g,vue.mergeProps({ref:"pivotTableRef"},c.pivotTableConfig,{pageMode:c.pageMode,theme:c.theme,fullMode:!1,allowDrill:!0,showFullScreen:!1,indicatorUrl:c.indicatorUrl,enlargeContainer:"#norPageConfig",onTableChange:c.onPivotTableChange}),null,16,["pageMode","theme","indicatorUrl","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(y,{size:"large"})])):(vue.openBlock(),vue.createBlock(x,{key:1,scroll:{x:"max-content",y:c.isIndFullScreen?"100vh":"60vh"},"row-key":j=>j.uuid,columns:c.indDetailInfo.columns,"data-source":c.indDetailInfo.dataSource,pagination:c.indDetailInfo.pagination,onChange:c.handleTableChange},{headerCell:vue.withCtx(({title:j})=>[vue.createElementVNode("div",{class:"detail-table-header-cell",title:j},vue.toDisplayString(j),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(b,{ref:"indDetailModalRef"},null,512)],64)}const ProviderConfig=_export_sfc$1(_sfc_main$w,[["render",_sfc_render$B],["__scopeId","data-v-fa01aa1f"]]),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:(h,d)=>(d=d.source||d,d=d.replace(caret,"$1"),c=c.replace(h,d),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 h;try{h=decodeURIComponent(unescape$1(f)).replace(nonWordAndColonTest,"").toLowerCase()}catch{return null}if(h.indexOf("javascript:")===0||h.indexOf("vbscript:")===0||h.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,h;for(;u<arguments.length;u++){f=arguments[u];for(h in f)Object.prototype.hasOwnProperty.call(f,h)&&(c[h]=f[h])}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?"|":" |"}),h=f.split(/ \|/);let d=0;if(h[0].trim()||h.shift(),h[h.length-1].trim()||h.pop(),h.length>u)h.splice(u);else for(;h.length<u;)h.push("");for(;d<h.length;d++)h[d]=h[d].trim().replace(/\\\|/g,"|");return h}function rtrim$1(c,u,f){const h=c.length;if(h===0)return"";let d=0;for(;d<h;){const p=c.charAt(h-d-1);if(p===u&&!f)d++;else if(p!==u&&f)d++;else break}return c.substr(0,h-d)}function findClosingBracket$1(c,u){if(c.indexOf(u[1])===-1)return-1;const f=c.length;let h=0,d=0;for(;d<f;d++)if(c[d]==="\\")d++;else if(c[d]===u[0])h++;else if(c[d]===u[1]&&(h--,h<0))return d;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,h){const d=u.href,p=u.title?escape$2(u.title):null,v=c[1].replace(/\\([\[\]])/g,"$1");if(c[0].charAt(0)!=="!"){h.state.inLink=!0;const m={type:"link",raw:f,href:d,title:p,text:v,tokens:h.inlineTokens(v,[])};return h.state.inLink=!1,m}else return{type:"image",raw:f,href:d,title:p,text:escape$2(v)}}function indentCodeCompensation(c,u){const f=c.match(/^(\s+)(?:```)/);if(f===null)return u;const h=f[1];return u.split(`
|
|
103
103
|
`).map(d=>{const p=d.match(/^\s+/);if(p===null)return d;const[v]=p;return v.length>=h.length?d.slice(h.length):d}).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 h=f[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:f[0],codeBlockStyle:"indented",text:this.options.pedantic?h:rtrim(h,`
|