@ecan-bi/datav 1.5.13 → 1.5.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @ecan-bi/datav@1.5.13 */
1
+ /*! @ecan-bi/datav@1.5.14 */
2
2
  (function(Zr,bi){typeof exports=="object"&&typeof module<"u"?bi(exports,require("vue"),require("echarts/core"),require("resize-detector"),require("ant-design-vue"),require("ant-design-vue/es/spin/style"),require("ant-design-vue/es/skeleton/style"),require("lodash-es"),require("dayjs"),require("axios"),require("mitt"),require("echarts/renderers"),require("echarts/charts"),require("echarts/components"),require("ant-design-vue/es/modal/style"),require("ant-design-vue/es/progress/style"),require("ant-design-vue/es/input/style"),require("ant-design-vue/es/date-picker/style"),require("ant-design-vue/es/date-picker/locale/zh_CN"),require("ant-design-vue/es/button/style"),require("ant-design-vue/es/checkbox/style"),require("ant-design-vue/es/select/style"),require("ant-design-vue/es/tree-select/style"),require("echarts"),require("ant-design-vue/es/table/style"),require("ant-design-vue/es/notification/style"),require("xlsx"),require("big.js")):typeof define=="function"&&define.amd?define(["exports","vue","echarts/core","resize-detector","ant-design-vue","ant-design-vue/es/spin/style","ant-design-vue/es/skeleton/style","lodash-es","dayjs","axios","mitt","echarts/renderers","echarts/charts","echarts/components","ant-design-vue/es/modal/style","ant-design-vue/es/progress/style","ant-design-vue/es/input/style","ant-design-vue/es/date-picker/style","ant-design-vue/es/date-picker/locale/zh_CN","ant-design-vue/es/button/style","ant-design-vue/es/checkbox/style","ant-design-vue/es/select/style","ant-design-vue/es/tree-select/style","echarts","ant-design-vue/es/table/style","ant-design-vue/es/notification/style","xlsx","big.js"],bi):(Zr=typeof globalThis<"u"?globalThis:Zr||self,bi(Zr["@ecan/bi-datav"]={},Zr.Vue,Zr["echarts/core"],Zr.ResizeDetector,Zr.AntDesignVue,null,null,Zr.LodashEs,Zr.Dayjs,Zr.Axios,Zr.Mitt,Zr["echarts/renderers"],Zr["echarts/charts"],Zr["echarts/components"],null,null,null,null,Zr["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,Zr.Echarts,null,null,Zr.Xlsx,Zr.big.js))})(this,function(exports,vue,core$1,resizeDetector,antDesignVue,style$1,style$2,lodashEs,dayjs,axios,mitt,renderers,charts,components$1,style$3,style$4,style$5,style$6,locale,style$7,style$8,style$9,style$a,echarts,style$b,style$c,xlsx,big_js){var Zr,bi,$i,Vi;"use strict";function _interopNamespaceDefault(c){const u=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(c){for(const f in c)if(f!=="default"){const d=Object.getOwnPropertyDescriptor(c,f);Object.defineProperty(u,f,d.get?d:{enumerable:!0,get:()=>c[f]})}}return u.default=c,Object.freeze(u)}const echarts__namespace=_interopNamespaceDefault(echarts),METHOD_NAMES=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function usePublicAPI(c,u){function f(h){return(...p)=>{if(c.value||u(),!c.value)throw new Error("ECharts is not initialized yet.");return c.value[h].apply(c.value,p)}}function d(){const h=Object.create(null);return METHOD_NAMES.forEach(p=>{h[p]=f(p)}),h}return d()}function useAutoresize(c,u,f){let d=null;vue.watch([f,c,u],([h,p,v],m,g)=>{h&&p&&v&&(d=core$1.throttle(()=>{p.resize()},100),resizeDetector.addListener(h,d)),g(()=>{d&&h&&resizeDetector.removeListener(h,d)})})}const autoresizeProps={autoresize:Boolean},LOADING_OPTIONS_KEY="ecLoadingOptions";function useLoading(c,u,f){const d=vue.inject(LOADING_OPTIONS_KEY,{}),h=vue.computed(()=>({...vue.unref(d),...f==null?void 0:f.value}));vue.watchEffect(()=>{const p=c.value;p&&(u.value?p.showLoading(h.value):p.hideLoading())})}const loadingProps$1={loading:Boolean,loadingOptions:Object},style="",onRE=/^on[^a-z]/,isOn=c=>onRE.test(c);function omitOn(c){const u={};for(const f in c)isOn(f)||(u[f]=c[f]);return u}const TAG_NAME="x-vue-echarts",THEME_KEY="ecTheme",INIT_OPTIONS_KEY="ecInitOptions",UPDATE_OPTIONS_KEY="ecUpdateOptions",Echarts=vue.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...autoresizeProps,...loadingProps$1},inheritAttrs:!1,setup(c,{attrs:u,listeners:f}){const d=vue.shallowRef(),h=vue.shallowRef(),p=vue.shallowRef(),v=vue.inject(THEME_KEY,null),m=vue.inject(INIT_OPTIONS_KEY,null),g=vue.inject(UPDATE_OPTIONS_KEY,null),{autoresize:y,manualUpdate:x,loading:Pn,loadingOptions:b}=vue.toRefs(c),j=vue.computed(()=>p.value||c.option||Object.create(null)),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(h.value||!d.value)return;const Un=h.value=core$1.init(d.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),h.value?h.value.setOption(Kn,Un||{}):w(Kn)}function gn(){h.value&&(h.value.dispose(),h.value=void 0)}let zn=null;vue.watch(x,Kn=>{typeof zn=="function"&&(zn(),zn=null),Kn||(zn=vue.watch(()=>c.option,Un=>{Un&&(h.value?h.value.setOption(Un,Fn.value):w())},{deep:!0}))},{immediate:!0}),vue.watch([re,vn],()=>{gn(),w()},{deep:!0}),vue.watchEffect(()=>{c.group&&h.value&&(h.value.group=c.group)});const Vn=usePublicAPI(h,w);return useLoading(h,Pn,b),useAutoresize(h,y,d),vue.onMounted(()=>{c.option&&w()}),vue.onUnmounted(gn),{chart:h,root:d,setOption:J,nonEventAttrs:Bn,...Vn}},render(){const c={...this.nonEventAttrs};return c.ref="root",c.class=c.class?["echarts"].concat(c.class):"echarts",vue.h(TAG_NAME,c)}});function bound01(c,u){isOnePointZero(c)&&(c="100%");var f=isPercentage(c);return c=u===360?c:Math.min(u,Math.max(0,parseFloat(c))),f&&(c=parseInt(String(c*u),10)/100),Math.abs(c-u)<1e-6?1:(u===360?c=(c<0?c%u+u:c%u)/parseFloat(String(u)):c=c%u/parseFloat(String(u)),c)}function isOnePointZero(c){return typeof c=="string"&&c.indexOf(".")!==-1&&parseFloat(c)===1}function isPercentage(c){return typeof c=="string"&&c.indexOf("%")!==-1}function boundAlpha(c){return c=parseFloat(c),(isNaN(c)||c<0||c>1)&&(c=1),c}function convertToPercentage(c){return c<=1?"".concat(Number(c)*100,"%"):c}function pad2(c){return c.length===1?"0"+c:String(c)}function rgbToRgb(c,u,f){return{r:bound01(c,255)*255,g:bound01(u,255)*255,b:bound01(f,255)*255}}function hue2rgb(c,u,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?c+(u-c)*(6*f):f<1/2?u:f<2/3?c+(u-c)*(2/3-f)*6:c}function hslToRgb(c,u,f){var d,h,p;if(c=bound01(c,360),u=bound01(u,100),f=bound01(f,100),u===0)h=f,p=f,d=f;else{var v=f<.5?f*(1+u):f+u-f*u,m=2*f-v;d=hue2rgb(m,v,c+1/3),h=hue2rgb(m,v,c),p=hue2rgb(m,v,c-1/3)}return{r:d*255,g:h*255,b:p*255}}function rgbToHsv(c,u,f){c=bound01(c,255),u=bound01(u,255),f=bound01(f,255);var d=Math.max(c,u,f),h=Math.min(c,u,f),p=0,v=d,m=d-h,g=d===0?0:m/d;if(d===h)p=0;else{switch(d){case c:p=(u-f)/m+(u<f?6:0);break;case u:p=(f-c)/m+2;break;case f:p=(c-u)/m+4;break}p/=6}return{h:p,s:g,v}}function hsvToRgb(c,u,f){c=bound01(c,360)*6,u=bound01(u,100),f=bound01(f,100);var d=Math.floor(c),h=c-d,p=f*(1-u),v=f*(1-h*u),m=f*(1-(1-h)*u),g=d%6,y=[f,v,p,p,m,f][g],x=[m,f,f,v,p,p][g],Pn=[p,p,m,f,f,v][g];return{r:y*255,g:x*255,b:Pn*255}}function rgbToHex(c,u,f,d){var h=[pad2(Math.round(c).toString(16)),pad2(Math.round(u).toString(16)),pad2(Math.round(f).toString(16))];return d&&h[0].startsWith(h[0].charAt(1))&&h[1].startsWith(h[1].charAt(1))&&h[2].startsWith(h[2].charAt(1))?h[0].charAt(0)+h[1].charAt(0)+h[2].charAt(0):h.join("")}function convertHexToDecimal(c){return parseIntFromHex(c)/255}function parseIntFromHex(c){return parseInt(c,16)}var names={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function inputToRGB(c){var u={r:0,g:0,b:0},f=1,d=null,h=null,p=null,v=!1,m=!1;return typeof c=="string"&&(c=stringInputToObject(c)),typeof c=="object"&&(isValidCSSUnit(c.r)&&isValidCSSUnit(c.g)&&isValidCSSUnit(c.b)?(u=rgbToRgb(c.r,c.g,c.b),v=!0,m=String(c.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(c.h)&&isValidCSSUnit(c.s)&&isValidCSSUnit(c.v)?(d=convertToPercentage(c.s),h=convertToPercentage(c.v),u=hsvToRgb(c.h,d,h),v=!0,m="hsv"):isValidCSSUnit(c.h)&&isValidCSSUnit(c.s)&&isValidCSSUnit(c.l)&&(d=convertToPercentage(c.s),p=convertToPercentage(c.l),u=hslToRgb(c.h,d,p),v=!0,m="hsl"),Object.prototype.hasOwnProperty.call(c,"a")&&(f=c.a)),f=boundAlpha(f),{ok:v,format:c.format||m,r:Math.min(255,Math.max(u.r,0)),g:Math.min(255,Math.max(u.g,0)),b:Math.min(255,Math.max(u.b,0)),a:f}}var CSS_INTEGER="[-\\+]?\\d+%?",CSS_NUMBER="[-\\+]?\\d*\\.\\d+%?",CSS_UNIT="(?:".concat(CSS_NUMBER,")|(?:").concat(CSS_INTEGER,")"),PERMISSIVE_MATCH3="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),PERMISSIVE_MATCH4="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),matchers={CSS_UNIT:new RegExp(CSS_UNIT),rgb:new RegExp("rgb"+PERMISSIVE_MATCH3),rgba:new RegExp("rgba"+PERMISSIVE_MATCH4),hsl:new RegExp("hsl"+PERMISSIVE_MATCH3),hsla:new RegExp("hsla"+PERMISSIVE_MATCH4),hsv:new RegExp("hsv"+PERMISSIVE_MATCH3),hsva:new RegExp("hsva"+PERMISSIVE_MATCH4),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function stringInputToObject(c){if(c=c.trim().toLowerCase(),c.length===0)return!1;var u=!1;if(names[c])c=names[c],u=!0;else if(c==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var f=matchers.rgb.exec(c);return f?{r:f[1],g:f[2],b:f[3]}:(f=matchers.rgba.exec(c),f?{r:f[1],g:f[2],b:f[3],a:f[4]}:(f=matchers.hsl.exec(c),f?{h:f[1],s:f[2],l:f[3]}:(f=matchers.hsla.exec(c),f?{h:f[1],s:f[2],l:f[3],a:f[4]}:(f=matchers.hsv.exec(c),f?{h:f[1],s:f[2],v:f[3]}:(f=matchers.hsva.exec(c),f?{h:f[1],s:f[2],v:f[3],a:f[4]}:(f=matchers.hex8.exec(c),f?{r:parseIntFromHex(f[1]),g:parseIntFromHex(f[2]),b:parseIntFromHex(f[3]),a:convertHexToDecimal(f[4]),format:u?"name":"hex8"}:(f=matchers.hex6.exec(c),f?{r:parseIntFromHex(f[1]),g:parseIntFromHex(f[2]),b:parseIntFromHex(f[3]),format:u?"name":"hex"}:(f=matchers.hex4.exec(c),f?{r:parseIntFromHex(f[1]+f[1]),g:parseIntFromHex(f[2]+f[2]),b:parseIntFromHex(f[3]+f[3]),a:convertHexToDecimal(f[4]+f[4]),format:u?"name":"hex8"}:(f=matchers.hex3.exec(c),f?{r:parseIntFromHex(f[1]+f[1]),g:parseIntFromHex(f[2]+f[2]),b:parseIntFromHex(f[3]+f[3]),format:u?"name":"hex"}:!1)))))))))}function isValidCSSUnit(c){return!!matchers.CSS_UNIT.exec(String(c))}var hueStep=2,saturationStep=.16,saturationStep2=.05,brightnessStep1=.05,brightnessStep2=.15,lightColorCount=5,darkColorCount=4,darkColorMap=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function toHsv(c){var u=c.r,f=c.g,d=c.b,h=rgbToHsv(u,f,d);return{h:h.h*360,s:h.s,v:h.v}}function toHex(c){var u=c.r,f=c.g,d=c.b;return"#".concat(rgbToHex(u,f,d,!1))}function mix(c,u,f){var d=f/100,h={r:(u.r-c.r)*d+c.r,g:(u.g-c.g)*d+c.g,b:(u.b-c.b)*d+c.b};return h}function getHue(c,u,f){var d;return Math.round(c.h)>=60&&Math.round(c.h)<=240?d=f?Math.round(c.h)-hueStep*u:Math.round(c.h)+hueStep*u:d=f?Math.round(c.h)+hueStep*u:Math.round(c.h)-hueStep*u,d<0?d+=360:d>=360&&(d-=360),d}function getSaturation(c,u,f){if(c.h===0&&c.s===0)return c.s;var d;return f?d=c.s-saturationStep*u:u===darkColorCount?d=c.s+saturationStep:d=c.s+saturationStep2*u,d>1&&(d=1),f&&u===lightColorCount&&d>.1&&(d=.1),d<.06&&(d=.06),Number(d.toFixed(2))}function getValue(c,u,f){var d;return f?d=c.v+brightnessStep1*u:d=c.v-brightnessStep2*u,d>1&&(d=1),Number(d.toFixed(2))}function generate$1(c){for(var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=[],d=inputToRGB(c),h=lightColorCount;h>0;h-=1){var p=toHsv(d),v=toHex(inputToRGB({h:getHue(p,h,!0),s:getSaturation(p,h,!0),v:getValue(p,h,!0)}));f.push(v)}f.push(toHex(d));for(var m=1;m<=darkColorCount;m+=1){var g=toHsv(d),y=toHex(inputToRGB({h:getHue(g,m),s:getSaturation(g,m),v:getValue(g,m)}));f.push(y)}return u.theme==="dark"?darkColorMap.map(function(x){var Pn=x.index,b=x.opacity,j=toHex(mix(inputToRGB(u.backgroundColor||"#141414"),inputToRGB(f[Pn]),b*100));return j}):f}var presetPrimaryColors={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},presetPalettes={},presetDarkPalettes={};Object.keys(presetPrimaryColors).forEach(function(c){presetPalettes[c]=generate$1(presetPrimaryColors[c]),presetPalettes[c].primary=presetPalettes[c][5],presetDarkPalettes[c]=generate$1(presetPrimaryColors[c],{theme:"dark",backgroundColor:"#141414"}),presetDarkPalettes[c].primary=presetDarkPalettes[c][5]});var containers=[],styleElements=[],usage="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function createStyleElement(){var c=document.createElement("style");return c.setAttribute("type","text/css"),c}function insertCss(c,u){if(u=u||{},c===void 0)throw new Error(usage);var f=u.prepend===!0?"prepend":"append",d=u.container!==void 0?u.container:document.querySelector("head"),h=containers.indexOf(d);h===-1&&(h=containers.push(d)-1,styleElements[h]={});var p;return styleElements[h]!==void 0&&styleElements[h][f]!==void 0?p=styleElements[h][f]:(p=styleElements[h][f]=createStyleElement(),f==="prepend"?d.insertBefore(p,d.childNodes[0]):d.appendChild(p)),c.charCodeAt(0)===65279&&(c=c.substr(1,c.length)),p.styleSheet?p.styleSheet.cssText+=c:p.textContent+=c,p}function _objectSpread$a(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},d=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(f).filter(function(h){return Object.getOwnPropertyDescriptor(f,h).enumerable}))),d.forEach(function(h){_defineProperty$a(c,h,f[h])})}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(d,h){return generate(d,"".concat(u,"-").concat(c.tag,"-").concat(h))})):vue.h(c.tag,_objectSpread$a({key:u},c.attrs),(c.children||[]).map(function(d,h){return generate(d,"".concat(u,"-").concat(c.tag,"-").concat(h))}))}function getSecondaryColor(c){return generate$1(c)[0]}function normalizeTwoToneColors(c){return c?Array.isArray(c)?c:[c]:[]}var iconStyles=`
3
3
  .anticon {
4
4
  display: inline-block;
@@ -58,7 +58,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
58
58
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(c,u){if(c){if(typeof c=="string")return _arrayLikeToArray(c,u);var f=Object.prototype.toString.call(c).slice(8,-1);if(f==="Object"&&c.constructor&&(f=c.constructor.name),f==="Map"||f==="Set")return Array.from(c);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return _arrayLikeToArray(c,u)}}function _arrayLikeToArray(c,u){(u==null||u>c.length)&&(u=c.length);for(var f=0,d=new Array(u);f<u;f++)d[f]=c[f];return d}function _iterableToArrayLimit(c,u){var f=c==null?null:typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(f!=null){var d=[],h=!0,p=!1,v,m;try{for(f=f.call(c);!(h=(v=f.next()).done)&&(d.push(v.value),!(u&&d.length===u));h=!0);}catch(g){p=!0,m=g}finally{try{!h&&f.return!=null&&f.return()}finally{if(p)throw m}}return d}}function _arrayWithHoles(c){if(Array.isArray(c))return c}function _objectSpread$8(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},d=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(f).filter(function(h){return Object.getOwnPropertyDescriptor(f,h).enumerable}))),d.forEach(function(h){_defineProperty$8(c,h,f[h])})}return c}function _defineProperty$8(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}function _objectWithoutProperties(c,u){if(c==null)return{};var f=_objectWithoutPropertiesLoose(c,u),d,h;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(c);for(h=0;h<p.length;h++)d=p[h],!(u.indexOf(d)>=0)&&Object.prototype.propertyIsEnumerable.call(c,d)&&(f[d]=c[d])}return f}function _objectWithoutPropertiesLoose(c,u){if(c==null)return{};var f={},d=Object.keys(c),h,p;for(p=0;p<d.length;p++)h=d[p],!(u.indexOf(h)>=0)&&(f[h]=c[h]);return f}setTwoToneColor("#1890ff");var Icon$1=function(u,f){var d,h=_objectSpread$8({},u,f.attrs),p=h.class,v=h.icon,m=h.spin,g=h.rotate,y=h.tabindex,x=h.twoToneColor,Pn=h.onClick,b=_objectWithoutProperties(h,_excluded),j=(d={anticon:!0},_defineProperty$8(d,"anticon-".concat(v.name),!!v.name),_defineProperty$8(d,p,p),d),re=m===""||m||v.name==="loading"?"anticon-spin":"",vn=y;vn===void 0&&Pn&&(vn=-1,b.tabindex=vn);var Fn=g?{msTransform:"rotate(".concat(g,"deg)"),transform:"rotate(".concat(g,"deg)")}:void 0,Bn=normalizeTwoToneColors(x),w=_slicedToArray(Bn,2),J=w[0],gn=w[1];return vue.createVNode("span",_objectSpread$8({role:"img","aria-label":v.name},b,{onClick:Pn,class:j}),[vue.createVNode(VueIcon,{class:re,icon:v,primaryColor:J,secondaryColor:gn,style:Fn},null)])};Icon$1.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Icon$1.displayName="AntdIcon",Icon$1.inheritAttrs=!1,Icon$1.getTwoToneColor=getTwoToneColor,Icon$1.setTwoToneColor=setTwoToneColor;const AntdIcon=Icon$1;var BorderOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"border",theme:"outlined"};const BorderOutlinedSvg=BorderOutlined$2;function _objectSpread$7(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},d=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(f).filter(function(h){return Object.getOwnPropertyDescriptor(f,h).enumerable}))),d.forEach(function(h){_defineProperty$7(c,h,f[h])})}return c}function _defineProperty$7(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}var BorderOutlined=function(u,f){var d=_objectSpread$7({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$7({},d,{icon:BorderOutlinedSvg}),null)};BorderOutlined.displayName="BorderOutlined",BorderOutlined.inheritAttrs=!1;const BorderOutlined$1=BorderOutlined;var CalendarOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};const CalendarOutlinedSvg=CalendarOutlined$2;function _objectSpread$6(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},d=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(f).filter(function(h){return Object.getOwnPropertyDescriptor(f,h).enumerable}))),d.forEach(function(h){_defineProperty$6(c,h,f[h])})}return c}function _defineProperty$6(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}var CalendarOutlined=function(u,f){var d=_objectSpread$6({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$6({},d,{icon:CalendarOutlinedSvg}),null)};CalendarOutlined.displayName="CalendarOutlined",CalendarOutlined.inheritAttrs=!1;const CalendarOutlined$1=CalendarOutlined;var CloseCircleFilled$2={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};const CloseCircleFilledSvg=CloseCircleFilled$2;function _objectSpread$5(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},d=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(f).filter(function(h){return Object.getOwnPropertyDescriptor(f,h).enumerable}))),d.forEach(function(h){_defineProperty$5(c,h,f[h])})}return c}function _defineProperty$5(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}var CloseCircleFilled=function(u,f){var d=_objectSpread$5({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$5({},d,{icon:CloseCircleFilledSvg}),null)};CloseCircleFilled.displayName="CloseCircleFilled",CloseCircleFilled.inheritAttrs=!1;const CloseCircleFilled$1=CloseCircleFilled;var CloseOutlined$2={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const CloseOutlinedSvg=CloseOutlined$2;function _objectSpread$4(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},d=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(f).filter(function(h){return Object.getOwnPropertyDescriptor(f,h).enumerable}))),d.forEach(function(h){_defineProperty$4(c,h,f[h])})}return c}function _defineProperty$4(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}var CloseOutlined=function(u,f){var d=_objectSpread$4({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$4({},d,{icon:CloseOutlinedSvg}),null)};CloseOutlined.displayName="CloseOutlined",CloseOutlined.inheritAttrs=!1;const CloseOutlined$1=CloseOutlined;var DownOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const DownOutlinedSvg=DownOutlined$2;function _objectSpread$3(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},d=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(f).filter(function(h){return Object.getOwnPropertyDescriptor(f,h).enumerable}))),d.forEach(function(h){_defineProperty$3(c,h,f[h])})}return c}function _defineProperty$3(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}var DownOutlined=function(u,f){var d=_objectSpread$3({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$3({},d,{icon:DownOutlinedSvg}),null)};DownOutlined.displayName="DownOutlined",DownOutlined.inheritAttrs=!1;const DownOutlined$1=DownOutlined;var LoadingOutlined$2={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const LoadingOutlinedSvg=LoadingOutlined$2;function _objectSpread$2(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},d=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(f).filter(function(h){return Object.getOwnPropertyDescriptor(f,h).enumerable}))),d.forEach(function(h){_defineProperty$2(c,h,f[h])})}return c}function _defineProperty$2(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}var LoadingOutlined=function(u,f){var d=_objectSpread$2({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$2({},d,{icon:LoadingOutlinedSvg}),null)};LoadingOutlined.displayName="LoadingOutlined",LoadingOutlined.inheritAttrs=!1;const LoadingOutlined$1=LoadingOutlined;var RightOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};const RightOutlinedSvg=RightOutlined$2;function _objectSpread$1(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},d=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(f).filter(function(h){return Object.getOwnPropertyDescriptor(f,h).enumerable}))),d.forEach(function(h){_defineProperty$1(c,h,f[h])})}return c}function _defineProperty$1(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}var RightOutlined=function(u,f){var d=_objectSpread$1({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$1({},d,{icon:RightOutlinedSvg}),null)};RightOutlined.displayName="RightOutlined",RightOutlined.inheritAttrs=!1;const RightOutlined$1=RightOutlined;var SwitcherOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M752 240H144c-17.7 0-32 14.3-32 32v608c0 17.7 14.3 32 32 32h608c17.7 0 32-14.3 32-32V272c0-17.7-14.3-32-32-32zm-40 600H184V312h528v528zm168-728H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h576v576c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V144c0-17.7-14.3-32-32-32zM300 550h296v64H300z"}}]},name:"switcher",theme:"outlined"};const SwitcherOutlinedSvg=SwitcherOutlined$2;function _objectSpread(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},d=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(f).filter(function(h){return Object.getOwnPropertyDescriptor(f,h).enumerable}))),d.forEach(function(h){_defineProperty(c,h,f[h])})}return c}function _defineProperty(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}var SwitcherOutlined=function(u,f){var d=_objectSpread({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread({},d,{icon:SwitcherOutlinedSvg}),null)};SwitcherOutlined.displayName="SwitcherOutlined",SwitcherOutlined.inheritAttrs=!1;const SwitcherOutlined$1=SwitcherOutlined,_sfc_main$D=vue.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:antDesignVue.Spin},setup(){return{indicator:vue.h(LoadingOutlined$1,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),Spin_vue_vue_type_style_index_0_lang="",_export_sfc$1=(c,u)=>{const f=c.__vccOpts||c;for(const[d,h]of u)f[d]=h;return f},_hoisted_1$m={class:"spin-wrapper"};function _sfc_render$I(c,u,f,d,h,p){const v=vue.resolveComponent("a-spin");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$m,[c.spinning?(vue.openBlock(),vue.createBlock(v,{key:0,class:"spin",spinning:c.spinning,indicator:c.indicator,tip:"加载中..."},null,8,["spinning","indicator"])):vue.renderSlot(c.$slots,"default",{key:1})])}const Spin=_export_sfc$1(_sfc_main$D,[["render",_sfc_render$I]]),_sfc_main$C=vue.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:antDesignVue.Skeleton}});function _sfc_render$H(c,u,f,d,h,p){const v=vue.resolveComponent("a-skeleton");return vue.openBlock(),vue.createBlock(v,{active:"",loading:c.loading},{default:vue.withCtx(()=>[vue.renderSlot(c.$slots,"default")]),_:3},8,["loading"])}const Skeleton=_export_sfc$1(_sfc_main$C,[["render",_sfc_render$H]]);(function(){try{if(typeof document<"u"){var c=document.createElement("style");c.appendChild(document.createTextNode('.vue3-marquee{display:flex!important;position:relative}.vue3-marquee.horizontal{overflow-x:hidden!important;flex-direction:row!important;width:100%;height:max-content}.vue3-marquee.vertical{overflow-y:hidden!important;flex-direction:column!important;height:100%;width:max-content}.vue3-marquee:hover>.marquee{animation-play-state:var(--pauseOnHover)}.vue3-marquee:active>.marquee{animation-play-state:var(--pauseOnClick)}.vue3-marquee>.marquee{flex:0 0 auto;min-width:var(--min-width);min-height:var(--min-height);z-index:1;animation:var(--orientation) var(--duration) linear var(--delay) var(--loops);animation-play-state:var(--pauseAnimation);animation-direction:var(--direction)}.vue3-marquee.horizontal>.marquee{display:flex;flex-direction:row;align-items:center}.vue3-marquee.vertical>.marquee{display:flex;flex-direction:column;align-items:center}@keyframes scrollX{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes scrollY{0%{transform:translateY(0)}to{transform:translateY(-100%)}}.vue3-marquee>.overlay{position:absolute;width:100%;height:100%}.vue3-marquee>.transparent-overlay{position:absolute;width:100%;height:100%}.vue3-marquee>.overlay:before,.vue3-marquee>.overlay:after{content:"";position:absolute;z-index:2}.vue3-marquee.horizontal>.overlay:before,.vue3-marquee.horizontal>.overlay:after{background:linear-gradient(to right,var(--gradient-color));height:100%;width:var(--gradient-length)}.vue3-marquee.vertical>.overlay:before,.vue3-marquee.vertical>.overlay:after{background:linear-gradient(to bottom,var(--gradient-color));height:var(--gradient-length);width:100%}.vue3-marquee.horizontal>.overlay:after{transform:rotate(180deg)}.vue3-marquee.vertical>.overlay:after{transform:rotate(-180deg)}.vue3-marquee>.overlay:before{left:0;top:0}.vue3-marquee.horizontal>.overlay:after{right:0;top:0}.vue3-marquee.vertical>.overlay:after{left:0;bottom:0}')),document.head.appendChild(c)}}catch(u){console.error("vite-plugin-css-injected-by-js",u)}})();var __defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(c,u,f)=>u in c?__defProp(c,u,{enumerable:!0,configurable:!0,writable:!0,value:f}):c[u]=f,__spreadValues=(c,u)=>{for(var f in u||(u={}))__hasOwnProp.call(u,f)&&__defNormalProp(c,f,u[f]);if(__getOwnPropSymbols)for(var f of __getOwnPropSymbols(u))__propIsEnum.call(u,f)&&__defNormalProp(c,f,u[f]);return c},_export_sfc=(c,u)=>{const f=c.__vccOpts||c;for(const[d,h]of u)f[d]=h;return f};const _sfc_main$B=vue.defineComponent({props:{vertical:{type:Boolean,default:!1},direction:{type:String,default:"normal"},duration:{type:Number,default:20},delay:{type:Number,default:0},loop:{type:Number,default:0},clone:{type:Boolean,default:!1},gradient:{type:Boolean,default:!1},gradientColor:{type:Array,default:[255,255,255]},gradientWidth:{type:String},gradientLength:{type:String},pauseOnHover:{type:Boolean,default:!1},pauseOnClick:{type:Boolean,default:!1},pause:{type:Boolean,default:!1},animateOnOverflowOnly:{type:Boolean,default:!1}},emits:["onComplete","onLoopComplete","onPause","onResume","onOverflowDetected","onOverflowCleared"],setup(c,{emit:u}){const f=vue.ref(0),d=vue.ref("100%"),h=vue.ref("100%"),p=vue.ref(0),v=vue.ref(!1),m=vue.ref(!1),g=vue.ref(0),y=vue.ref(0),x=vue.ref(0),Pn=vue.ref(0),b=vue.ref(!1),j=vue.ref(!1),re=vue.ref(0),vn=vue.ref(null),Fn=vue.ref("200px"),Bn=vue.ref(!1),w=vue.ref(null),J=vue.ref(null),gn=async()=>{await zn(),p.value++},zn=async()=>{c.vertical&&(v.value=!0),setInterval(()=>{if(d.value="0%",h.value="0%",w.value!==null&&J.value!==null&&w.value&&J.value)if(c.vertical&&"clientHeight"in w.value&&"clientHeight"in J.value){Pn.value=w.value.clientHeight,x.value=J.value.clientHeight;const Gn=Math.ceil(x.value/Pn.value);return f.value=isFinite(Gn)?Gn:0,v.value=!1,f.value}else if(!c.vertical&&"clientWidth"in w.value&&"clientWidth"in J.value){if(y.value=w.value.clientWidth,g.value=J.value.clientWidth,c.animateOnOverflowOnly)return y.value<g.value?(m.value=!0,u("onOverflowDetected")):(m.value=!1,u("onOverflowCleared")),0;const Gn=Math.ceil(g.value/y.value);return f.value=isFinite(Gn)?Gn:0,f.value}else return d.value="100%",h.value="100%",0;else return d.value="100%",h.value="100%",0},100)};vue.watch(y,async()=>{c.clone&&gn()}),vue.watch(g,async()=>{(c.clone||c.animateOnOverflowOnly)&&gn()}),vue.watch(()=>c.pause,(Gn,Wn)=>{Gn!==Wn&&u(Gn?"onResume":"onPause")});const Vn=()=>{c.pauseOnHover&&(u("onPause"),b.value=!0)},Kn=()=>{c.pauseOnHover&&(u("onResume"),b.value=!1)},Un=()=>{c.pauseOnClick&&(u("onPause"),j.value=!0)},Qn=()=>{c.pauseOnClick&&(u("onResume"),j.value=!1)},Jn=vue.computed(()=>c.pause||c.vertical&&v.value||c.animateOnOverflowOnly&&m.value?"paused":"running"),Yn=vue.computed(()=>c.pauseOnHover&&(b.value||j.value)||!c.pauseOnHover&&Jn.value==="paused"?"paused":"running"),Zn=vue.computed(()=>c.pauseOnHover&&b.value||c.pauseOnClick&&j.value||!c.pauseOnHover&&Jn.value==="paused"?"paused":"running"),nr=vue.computed(()=>{const Gn={"--duration":`${c.duration}s`,"--delay":`${c.delay}s`,"--direction":`${c.direction}`,"--pauseOnHover":`${Yn.value}`,"--pauseOnClick":`${Zn.value}`,"--pauseAnimation":`${Jn.value}`,"--loops":`${c.loop===0?"infinite":c.loop}`,"--gradient-color":`rgba(${c.gradientColor[0]}, ${c.gradientColor[1]}, ${c.gradientColor[2]}, 1), rgba(${c.gradientColor[0]}, ${c.gradientColor[1]}, ${c.gradientColor[2]}, 0)`,"--gradient-length":`${Fn.value}`,"--min-width":`${d.value}`,"--min-height":`${h.value}`},Wn={"--orientation":"scrollX",orientation:"horizontal"};return c.vertical&&(Wn["--orientation"]="scrollY"),__spreadValues(__spreadValues({},Gn),Wn)}),sr=vue.computed(()=>!!c.gradient),ur=async()=>{c.vertical?(h.value="100%",d.value="auto",c.animateOnOverflowOnly&&console.warn("The `animateOnOverflowOnly` prop is not supported for vertical marquees.")):(h.value="auto",c.animateOnOverflowOnly?d.value="auto":d.value="100%"),c.gradient&&(c.gradientWidth?(console.warn("The `gradientWidth` prop has been deprecated and will be removed in a future release. Please use `gradientLength` instead."),Fn.value=c.gradientWidth):c.gradientLength&&(Fn.value=c.gradientLength)),(c.clone||c.animateOnOverflowOnly)&&(await zn(),gn()),Bn.value=!0};return vue.onMounted(async()=>{ur(),vn.value=setInterval(()=>{re.value++,c.loop!==0&&re.value===c.loop&&(u("onComplete"),clearInterval(vn.value)),u("onLoopComplete")},c.duration*1e3)}),vue.onBeforeUnmount(()=>{clearInterval(vn.value)}),{ready:Bn,contentWidth:y,containerWidth:g,contentHeight:Pn,containerHeight:x,loopCounter:re,loopInterval:vn,mouseOverMarquee:b,mouseDownMarquee:j,minWidth:d,minHeight:h,animateOnOverflowPause:m,marqueeContent:w,marqueeOverlayContainer:J,componentKey:p,showGradient:sr,cloneAmount:f,ForcesUpdate:gn,checkForClone:zn,setupMarquee:ur,getCurrentStyle:nr,hoverStarted:Vn,hoverEnded:Kn,mouseDown:Un,mouseUp:Qn}}}),_hoisted_1$l={class:"transparent-overlay",ref:"marqueeOverlayContainer","aria-hidden":!0},_hoisted_2$b={class:"marquee",ref:"marqueeContent"},_hoisted_3$6={key:1,"aria-hidden":!0,class:"marquee"};function _sfc_render$G(c,u,f,d,h,p){return c.ready?(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vue3-marquee",{vertical:c.vertical,horizontal:!c.vertical}]),style:vue.normalizeStyle(c.getCurrentStyle),key:c.componentKey,onMouseenter:u[0]||(u[0]=(...v)=>c.hoverStarted&&c.hoverStarted(...v)),onMouseleave:u[1]||(u[1]=(...v)=>c.hoverEnded&&c.hoverEnded(...v)),onMousedown:u[2]||(u[2]=(...v)=>c.mouseDown&&c.mouseDown(...v)),onMouseup:u[3]||(u[3]=(...v)=>c.mouseUp&&c.mouseUp(...v))},[vue.createElementVNode("div",_hoisted_1$l,null,512),c.showGradient?(vue.openBlock(),vue.createElementBlock("div",{key:0,"aria-hidden":!0,class:vue.normalizeClass(["overlay",{vertical:c.vertical,horizontal:!c.vertical}])},null,2)):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_2$b,[vue.renderSlot(c.$slots,"default")],512),!c.animateOnOverflowOnly||c.animateOnOverflowOnly&&!c.animateOnOverflowPause?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$6,[vue.renderSlot(c.$slots,"default")])):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.cloneAmount,v=>(vue.openBlock(),vue.createElementBlock("div",{"aria-hidden":!0,class:"marquee cloned",key:v},[vue.renderSlot(c.$slots,"default")]))),128))],38)):vue.createCommentVNode("",!0)}var Vue3Marquee=_export_sfc(_sfc_main$B,[["render",_sfc_render$G]]);const _sfc_main$A=vue.defineComponent({name:"SeamScroll",components:{Vue3Marquee},props:{dataSource:{type:Object,default:()=>{}},visible:{type:Boolean,default:!1},vertical:{type:Boolean,default:!0},step:{type:Number,default:1},wrapStyle:{type:Object,default:()=>({})},marqueeStyle:{type:Object,default:()=>({})}},setup(c){return{isAutoScroll:vue.ref(c.visible)}}}),MarqueeScroll_vue_vue_type_style_index_0_lang="";function _sfc_render$F(c,u,f,d,h,p){const v=vue.resolveComponent("Vue3Marquee");return c.isAutoScroll?(vue.openBlock(),vue.createBlock(v,{key:0,class:"vue-marquee",style:vue.normalizeStyle({...c.marqueeStyle,width:"100%"}),duration:c.step,vertical:c.vertical,pauseOnHover:!0},{default:vue.withCtx(()=>[vue.renderSlot(c.$slots,"default")]),_:3},8,["style","duration","vertical"])):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"list-wrap",style:vue.normalizeStyle(c.wrapStyle)},[vue.renderSlot(c.$slots,"default")],4))}const MarqueeScroll=_export_sfc$1(_sfc_main$A,[["render",_sfc_render$F]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const withInstall$1=(c,u)=>{if(c.install=f=>{for(const d of[c,...Object.values(u??{})])f.component(d.name,d)},u)for(const[f,d]of Object.entries(u))c[f]=d;return c},props={id:"",name:"",keyName:"",type:"",width:"100px",height:"40px",position:"absolute",top:"0px",left:"0px",zIndex:1,rotate:"0deg",isShow:!0,isRender:!0,requestUrl:"",requestType:0,requestMethod:"get",dataSetParam:{},requestHeaders:"{}",isOpenRequestTimer:!1,isViewRedrawing:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static",scale:1,requestParamsMode:"1",customRequestParams:"{}",componentDoc:null,extendData:{},toolboxShow:!1,isShowIndDetail:!1,isShowTrend:!1,indDetailIconColor:"#333"},transformToComponentProps=c=>{const u={};if(typeof c=="object"&&c!=null)for(const f in c){const d=c[f];u[f]={type:d==null?void 0:d.constructor,default:d}}return u},pageConfig={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal",pageFontFamily:"",jumpType:"page",jumpTime:null,jumpPage:"",jumpLink:"",requestList:[],isCompatible:!0,variableList:[],drillingMode:"pivotTable"},pageConfigComponentProps=transformToComponentProps(pageConfig),EVENT_BUS="EVENT_BUS",GLOBAL_CONFIG="GLOBAL_CONFIG",GLOBAL_MODEL="GLOBAL_MODEL",REQUEST_MODEL="REQUEST_MODEL",GLOBAL_TOKEN="GLOBAL_TOKEN",REFRESH_PAGE="REFRESH_PAGE",MODAL_MODEL="MODAL_MODEL",LOADED_DATA="LOADED_DATA",COMMON_OPERATE="COMMON_OPERATE",All_COMPONENT_RES_DATA="All_COMPONENT_RES_DATA",GLOBAL_VARIABLE="GLOBAL_VARIABLE",ZOOM_FONT_SIZE=18,CONTEXT="ygt",INDICATOR_URL=((Zr=window==null?void 0:window.config)==null?void 0:Zr.indicatorURL)||"";(bi=window==null?void 0:window.config)!=null&&bi.uploadPath;const BASE_URL=(($i=window==null?void 0:window.config)==null?void 0:$i.routerBaseURL)||"./",ERD_URL=((Vi=window==null?void 0:window.config)==null?void 0:Vi.erdURL)||"",MODEL_KEY_LIST=["table","bar","combograph","line","pie","radar","scatter","list","circulate"];function e(c,u){var f={};for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&u.indexOf(d)<0&&(f[d]=c[d]);if(c!=null&&typeof Object.getOwnPropertySymbols=="function"){var h=0;for(d=Object.getOwnPropertySymbols(c);h<d.length;h++)u.indexOf(d[h])<0&&Object.prototype.propertyIsEnumerable.call(c,d[h])&&(f[d[h]]=c[d[h]])}return f}const n=()=>{},o=Object.assign,r=Array.isArray,i=c=>typeof c=="function",a=c=>typeof c=="symbol";let l;const s=()=>l||(l=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function S(c){const u=c&&c.__v_raw;return u?S(u):c}function A(c){return!(!c||c.__v_isRef!==!0)}function _(c){return A(c)?c.value:c}new Set(Object.getOwnPropertyNames(Symbol).filter(c=>c!=="arguments"&&c!=="caller").map(c=>Symbol[c]).filter(a));const O=[];function C(c,...u){if(process.env.NODE_ENV==="production")return;const f=O.length?O[O.length-1].component:null,d=f&&f.appContext.config.warnHandler,h=function(){let p=O[O.length-1];if(!p)return[];const v=[];for(;p;){const m=v[0];m&&m.vnode===p?m.recurseCount++:v.push({vnode:p,recurseCount:0});const g=p.component&&p.component.parent;p=g&&g.vnode}return v}();if(d)$(d,f,11,[c+u.join(""),f&&f.proxy,h.map(({vnode:p})=>`at <${oe(f,p.type)}>`).join(`
59
59
  `),h]);else{const p=[`[Vue warn]: ${c}`,...u];h.length&&p.push(`
60
60
  `,...function(v){const m=[];return v.forEach((g,y)=>{m.push(...y===0?[]:[`
61
- `],...function({vnode:x,recurseCount:Pn}){const b=Pn>0?`... (${Pn} recursive calls)`:"",j=!!x.component&&x.component.parent==null,re=` at <${oe(x.component,x.type,j)}`,vn=">"+b;return x.props?[re,...L(x.props),vn]:[re+vn]}(g))}),m}(h)),console.warn(...p)}}function L(c){const u=[],f=Object.keys(c);return f.slice(0,3).forEach(d=>{u.push(...T(d,c[d]))}),f.length>3&&u.push(" ..."),u}function T(c,u,f){return typeof u=="string"?(u=JSON.stringify(u),f?u:[`${c}=${u}`]):typeof u=="number"||typeof u=="boolean"||u==null?f?u:[`${c}=${u}`]:A(u)?(u=T(c,S(u.value),!0),f?u:[`${c}=Ref<`,u,">"]):i(u)?[`${c}=fn${u.name?`<${u.name}>`:""}`]:(u=S(u),f?u:[`${c}=`,u])}const N={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"};function $(c,u,f,d){let h;try{h=d?c(...d):c()}catch(p){(function(v,m,g,y=!0){const x=m?m.vnode:null;if(m){let Pn=m.parent;const b=m.proxy,j=process.env.NODE_ENV!=="production"?N[g]:g;for(;Pn;){const vn=Pn.ec;if(vn){for(let Fn=0;Fn<vn.length;Fn++)if(vn[Fn](v,b,j)===!1)return}Pn=Pn.parent}const re=m.appContext.config.errorHandler;if(re)return void $(re,null,10,[v,b,j])}(function(Pn,b,j,re=!0){if(process.env.NODE_ENV!=="production"){const Fn=N[b];if(j&&(vn=j,O.push(vn)),C("Unhandled error"+(Fn?` during execution of ${Fn}`:"")),j&&O.pop(),re)throw Pn;console.error(Pn)}else console.error(Pn);var vn})(v,g,x,y)})(p,u,f)}return h}let k=!1,D=!1;const M=[];let E=0;const I=[];let F=null,V=0;const z$1=Promise.resolve();function R(c){M.length&&M.includes(c,k&&c.allowRecurse?E+1:E)||(c.id==null?M.push(c):M.splice(function(u){let f=E+1,d=M.length;for(;f<d;){const h=f+d>>>1,p=M[h],v=P(p);v<u||v===u&&p.pre?f=h+1:d=h}return f}(c.id),0,c),U())}function U(){k||D||(D=!0,z$1.then(Y))}const P=c=>c.id==null?1/0:c.id,G=(c,u)=>{const f=P(c)-P(u);if(f===0){if(c.pre&&!u.pre)return-1;if(u.pre&&!c.pre)return 1}return f};function Y(c){D=!1,k=!0,process.env.NODE_ENV!=="production"&&(c=c||new Map),M.sort(G);const u=process.env.NODE_ENV!=="production"?f=>W(c,f):n;try{for(E=0;E<M.length;E++){const f=M[E];if(f&&f.active!==!1){if(process.env.NODE_ENV!=="production"&&u(f))continue;$(f,null,14)}}}finally{E=0,M.length=0,function(f){if(I.length){const d=[...new Set(I)];if(I.length=0,F)return void F.push(...d);for(F=d,process.env.NODE_ENV!=="production"&&(f=f||new Map),F.sort((h,p)=>P(h)-P(p)),V=0;V<F.length;V++)process.env.NODE_ENV!=="production"&&W(f,F[V])||F[V]();F=null,V=0}}(c),k=!1,(M.length||I.length)&&Y(c)}}function W(c,u){if(c.has(u)){const f=c.get(u);if(f>100){const d=u.ownerInstance,h=d&&ne(d.type);return C(`Maximum recursive updates exceeded${h?` in component <${h}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}c.set(u,f+1)}else c.set(u,1)}const H=new Set;process.env.NODE_ENV!=="production"&&(s().__VUE_HMR_RUNTIME__={createRecord:Q(function(c,u){return B.has(c)?!1:(B.set(c,{initialDef:K(u),instances:new Set}),!0)}),rerender:Q(function(c,u){const f=B.get(c);f&&(f.initialDef.render=u,[...f.instances].forEach(d=>{u&&(d.render=u,K(d.type).render=u),d.renderCache=[],d.update()}))}),reload:Q(function(c,u){const f=B.get(c);if(!f)return;u=K(u),q(f.initialDef,u);const d=[...f.instances];for(const p of d){const v=K(p.type);H.has(v)||(v!==f.initialDef&&q(v,u),H.add(v)),p.appContext.propsCache.delete(p.type),p.appContext.emitsCache.delete(p.type),p.appContext.optionsCache.delete(p.type),p.ceReload?(H.add(v),p.ceReload(u.styles),H.delete(v)):p.parent?R(p.parent.update):p.appContext.reload?p.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}h=()=>{for(const p of d)H.delete(K(p.type))},r(h)?I.push(...h):F&&F.includes(h,h.allowRecurse?V+1:V)||I.push(h),U();var h})});const B=new Map;function K(c){return i(u=c)&&"__vccOpts"in u?c.__vccOpts:c;var u}function q(c,u){o(c,u);for(const f in c)f==="__file"||f in u||delete c[f]}function Q(c){return(u,f)=>{try{return c(u,f)}catch(d){console.error(d),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let X;process.env.NODE_ENV;let Z="__VUE_INSTANCE_SETTERS__";(X=s()[Z])||(X=s()[Z]=[]),X.push(c=>c);const ee=/(?:^|[-_])(\w)/g,te=c=>c.replace(ee,u=>u.toUpperCase()).replace(/[-_]/g,"");function ne(c,u=!0){return i(c)?c.displayName||c.name:c.name||u&&c.__name}function oe(c,u,f=!1){let d=ne(u);if(!d&&u.__file){const h=u.__file.match(/([^/\\]+)\.\w+$/);h&&(d=h[1])}if(!d&&c&&c.parent){const h=p=>{for(const v in p)if(p[v]===u)return v};d=h(c.components||c.parent.type.components)||h(c.appContext.components)}return d?te(d):f?"App":"Anonymous"}function ie(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}var ae,le={exports:{}};function se(){return ae||(ae=1,le.exports=function(){var c=1e3,u=6e4,f=36e5,d="millisecond",h="second",p="minute",v="hour",m="day",g="week",y="month",x="quarter",Pn="year",b="date",j="Invalid Date",re=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,vn=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Fn={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Zn){var nr=["th","st","nd","rd"],sr=Zn%100;return"["+Zn+(nr[(sr-20)%10]||nr[sr]||nr[0])+"]"}},Bn=function(Zn,nr,sr){var ur=String(Zn);return!ur||ur.length>=nr?Zn:""+Array(nr+1-ur.length).join(sr)+Zn},w={s:Bn,z:function(Zn){var nr=-Zn.utcOffset(),sr=Math.abs(nr),ur=Math.floor(sr/60),Gn=sr%60;return(nr<=0?"+":"-")+Bn(ur,2,"0")+":"+Bn(Gn,2,"0")},m:function Zn(nr,sr){if(nr.date()<sr.date())return-Zn(sr,nr);var ur=12*(sr.year()-nr.year())+(sr.month()-nr.month()),Gn=nr.clone().add(ur,y),Wn=sr-Gn<0,Rn=nr.clone().add(ur+(Wn?-1:1),y);return+(-(ur+(sr-Gn)/(Wn?Gn-Rn:Rn-Gn))||0)},a:function(Zn){return Zn<0?Math.ceil(Zn)||0:Math.floor(Zn)},p:function(Zn){return{M:y,y:Pn,w:g,d:m,D:b,h:v,m:p,s:h,ms:d,Q:x}[Zn]||String(Zn||"").toLowerCase().replace(/s$/,"")},u:function(Zn){return Zn===void 0}},J="en",gn={};gn[J]=Fn;var zn="$isDayjsObject",Vn=function(Zn){return Zn instanceof Jn||!(!Zn||!Zn[zn])},Kn=function Zn(nr,sr,ur){var Gn;if(!nr)return J;if(typeof nr=="string"){var Wn=nr.toLowerCase();gn[Wn]&&(Gn=Wn),sr&&(gn[Wn]=sr,Gn=Wn);var Rn=nr.split("-");if(!Gn&&Rn.length>1)return Zn(Rn[0])}else{var qn=nr.name;gn[qn]=nr,Gn=qn}return!ur&&Gn&&(J=Gn),Gn||!ur&&J},Un=function(Zn,nr){if(Vn(Zn))return Zn.clone();var sr=typeof nr=="object"?nr:{};return sr.date=Zn,sr.args=arguments,new Jn(sr)},Qn=w;Qn.l=Kn,Qn.i=Vn,Qn.w=function(Zn,nr){return Un(Zn,{locale:nr.$L,utc:nr.$u,x:nr.$x,$offset:nr.$offset})};var Jn=function(){function Zn(sr){this.$L=Kn(sr.locale,null,!0),this.parse(sr),this.$x=this.$x||sr.x||{},this[zn]=!0}var nr=Zn.prototype;return nr.parse=function(sr){this.$d=function(ur){var Gn=ur.date,Wn=ur.utc;if(Gn===null)return new Date(NaN);if(Qn.u(Gn))return new Date;if(Gn instanceof Date)return new Date(Gn);if(typeof Gn=="string"&&!/Z$/i.test(Gn)){var Rn=Gn.match(re);if(Rn){var qn=Rn[2]-1||0,Xn=(Rn[7]||"0").substring(0,3);return Wn?new Date(Date.UTC(Rn[1],qn,Rn[3]||1,Rn[4]||0,Rn[5]||0,Rn[6]||0,Xn)):new Date(Rn[1],qn,Rn[3]||1,Rn[4]||0,Rn[5]||0,Rn[6]||0,Xn)}}return new Date(Gn)}(sr),this.init()},nr.init=function(){var sr=this.$d;this.$y=sr.getFullYear(),this.$M=sr.getMonth(),this.$D=sr.getDate(),this.$W=sr.getDay(),this.$H=sr.getHours(),this.$m=sr.getMinutes(),this.$s=sr.getSeconds(),this.$ms=sr.getMilliseconds()},nr.$utils=function(){return Qn},nr.isValid=function(){return this.$d.toString()!==j},nr.isSame=function(sr,ur){var Gn=Un(sr);return this.startOf(ur)<=Gn&&Gn<=this.endOf(ur)},nr.isAfter=function(sr,ur){return Un(sr)<this.startOf(ur)},nr.isBefore=function(sr,ur){return this.endOf(ur)<Un(sr)},nr.$g=function(sr,ur,Gn){return Qn.u(sr)?this[ur]:this.set(Gn,sr)},nr.unix=function(){return Math.floor(this.valueOf()/1e3)},nr.valueOf=function(){return this.$d.getTime()},nr.startOf=function(sr,ur){var Gn=this,Wn=!!Qn.u(ur)||ur,Rn=Qn.p(sr),qn=function(lr,or){var ar=Qn.w(Gn.$u?Date.UTC(Gn.$y,or,lr):new Date(Gn.$y,or,lr),Gn);return Wn?ar:ar.endOf(m)},Xn=function(lr,or){return Qn.w(Gn.toDate()[lr].apply(Gn.toDate("s"),(Wn?[0,0,0,0]:[23,59,59,999]).slice(or)),Gn)},Hn=this.$W,tr=this.$M,cr=this.$D,ir="set"+(this.$u?"UTC":"");switch(Rn){case Pn:return Wn?qn(1,0):qn(31,11);case y:return Wn?qn(1,tr):qn(0,tr+1);case g:var er=this.$locale().weekStart||0,pr=(Hn<er?Hn+7:Hn)-er;return qn(Wn?cr-pr:cr+(6-pr),tr);case m:case b:return Xn(ir+"Hours",0);case v:return Xn(ir+"Minutes",1);case p:return Xn(ir+"Seconds",2);case h:return Xn(ir+"Milliseconds",3);default:return this.clone()}},nr.endOf=function(sr){return this.startOf(sr,!1)},nr.$set=function(sr,ur){var Gn,Wn=Qn.p(sr),Rn="set"+(this.$u?"UTC":""),qn=(Gn={},Gn[m]=Rn+"Date",Gn[b]=Rn+"Date",Gn[y]=Rn+"Month",Gn[Pn]=Rn+"FullYear",Gn[v]=Rn+"Hours",Gn[p]=Rn+"Minutes",Gn[h]=Rn+"Seconds",Gn[d]=Rn+"Milliseconds",Gn)[Wn],Xn=Wn===m?this.$D+(ur-this.$W):ur;if(Wn===y||Wn===Pn){var Hn=this.clone().set(b,1);Hn.$d[qn](Xn),Hn.init(),this.$d=Hn.set(b,Math.min(this.$D,Hn.daysInMonth())).$d}else qn&&this.$d[qn](Xn);return this.init(),this},nr.set=function(sr,ur){return this.clone().$set(sr,ur)},nr.get=function(sr){return this[Qn.p(sr)]()},nr.add=function(sr,ur){var Gn,Wn=this;sr=Number(sr);var Rn=Qn.p(ur),qn=function(tr){var cr=Un(Wn);return Qn.w(cr.date(cr.date()+Math.round(tr*sr)),Wn)};if(Rn===y)return this.set(y,this.$M+sr);if(Rn===Pn)return this.set(Pn,this.$y+sr);if(Rn===m)return qn(1);if(Rn===g)return qn(7);var Xn=(Gn={},Gn[p]=u,Gn[v]=f,Gn[h]=c,Gn)[Rn]||1,Hn=this.$d.getTime()+sr*Xn;return Qn.w(Hn,this)},nr.subtract=function(sr,ur){return this.add(-1*sr,ur)},nr.format=function(sr){var ur=this,Gn=this.$locale();if(!this.isValid())return Gn.invalidDate||j;var Wn=sr||"YYYY-MM-DDTHH:mm:ssZ",Rn=Qn.z(this),qn=this.$H,Xn=this.$m,Hn=this.$M,tr=Gn.weekdays,cr=Gn.months,ir=Gn.meridiem,er=function(or,ar,vr,fr){return or&&(or[ar]||or(ur,Wn))||vr[ar].slice(0,fr)},pr=function(or){return Qn.s(qn%12||12,or,"0")},lr=ir||function(or,ar,vr){var fr=or<12?"AM":"PM";return vr?fr.toLowerCase():fr};return Wn.replace(vn,function(or,ar){return ar||function(vr){switch(vr){case"YY":return String(ur.$y).slice(-2);case"YYYY":return Qn.s(ur.$y,4,"0");case"M":return Hn+1;case"MM":return Qn.s(Hn+1,2,"0");case"MMM":return er(Gn.monthsShort,Hn,cr,3);case"MMMM":return er(cr,Hn);case"D":return ur.$D;case"DD":return Qn.s(ur.$D,2,"0");case"d":return String(ur.$W);case"dd":return er(Gn.weekdaysMin,ur.$W,tr,2);case"ddd":return er(Gn.weekdaysShort,ur.$W,tr,3);case"dddd":return tr[ur.$W];case"H":return String(qn);case"HH":return Qn.s(qn,2,"0");case"h":return pr(1);case"hh":return pr(2);case"a":return lr(qn,Xn,!0);case"A":return lr(qn,Xn,!1);case"m":return String(Xn);case"mm":return Qn.s(Xn,2,"0");case"s":return String(ur.$s);case"ss":return Qn.s(ur.$s,2,"0");case"SSS":return Qn.s(ur.$ms,3,"0");case"Z":return Rn}return null}(or)||Rn.replace(":","")})},nr.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},nr.diff=function(sr,ur,Gn){var Wn,Rn=this,qn=Qn.p(ur),Xn=Un(sr),Hn=(Xn.utcOffset()-this.utcOffset())*u,tr=this-Xn,cr=function(){return Qn.m(Rn,Xn)};switch(qn){case Pn:Wn=cr()/12;break;case y:Wn=cr();break;case x:Wn=cr()/3;break;case g:Wn=(tr-Hn)/6048e5;break;case m:Wn=(tr-Hn)/864e5;break;case v:Wn=tr/f;break;case p:Wn=tr/u;break;case h:Wn=tr/c;break;default:Wn=tr}return Gn?Wn:Qn.a(Wn)},nr.daysInMonth=function(){return this.endOf(y).$D},nr.$locale=function(){return gn[this.$L]},nr.locale=function(sr,ur){if(!sr)return this.$L;var Gn=this.clone(),Wn=Kn(sr,ur,!0);return Wn&&(Gn.$L=Wn),Gn},nr.clone=function(){return Qn.w(this.$d,this)},nr.toDate=function(){return new Date(this.valueOf())},nr.toJSON=function(){return this.isValid()?this.toISOString():null},nr.toISOString=function(){return this.$d.toISOString()},nr.toString=function(){return this.$d.toUTCString()},Zn}(),Yn=Jn.prototype;return Un.prototype=Yn,[["$ms",d],["$s",h],["$m",p],["$H",v],["$W",m],["$M",y],["$y",Pn],["$D",b]].forEach(function(Zn){Yn[Zn[1]]=function(nr){return this.$g(nr,Zn[0],Zn[1])}}),Un.extend=function(Zn,nr){return Zn.$i||(Zn(nr,Jn,Un),Zn.$i=!0),Un},Un.locale=Kn,Un.isDayjs=Vn,Un.unix=function(Zn){return Un(1e3*Zn)},Un.en=gn[J],Un.Ls=gn,Un.p={},Un}()),le.exports}var ce=ie(se()),ue=typeof global=="object"&&global&&global.Object===Object&&global,de=typeof self=="object"&&self&&self.Object===Object&&self,fe=ue||de||Function("return this")(),pe=fe.Symbol,he=Object.prototype,ye=he.hasOwnProperty,me=he.toString,be=pe?pe.toStringTag:void 0,ge=Object.prototype.toString,ve=pe?pe.toStringTag:void 0;function xe(c){return c==null?c===void 0?"[object Undefined]":"[object Null]":ve&&ve in Object(c)?function(u){var f=ye.call(u,be),d=u[be];try{u[be]=void 0;var h=!0}catch{}var p=me.call(u);return h&&(f?u[be]=d:delete u[be]),p}(c):function(u){return ge.call(u)}(c)}function we(c){return c!=null&&typeof c=="object"}var Se=Array.isArray;function Ae(c){var u=typeof c;return c!=null&&(u=="object"||u=="function")}function _e(c){if(!Ae(c))return!1;var u=xe(c);return u=="[object Function]"||u=="[object GeneratorFunction]"||u=="[object AsyncFunction]"||u=="[object Proxy]"}var je,Oe=fe["__core-js_shared__"],Ce=(je=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||""))?"Symbol(src)_1."+je:"",Le=Function.prototype.toString;function Te(c){if(c!=null){try{return Le.call(c)}catch{}try{return c+""}catch{}}return""}var Ne=/^\[object .+?Constructor\]$/,$e=Function.prototype,ke=Object.prototype,De=$e.toString,Me=ke.hasOwnProperty,Ee=RegExp("^"+De.call(Me).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ie(c){return!(!Ae(c)||(u=c,Ce&&Ce in u))&&(_e(c)?Ee:Ne).test(Te(c));var u}function Fe(c,u){var f=function(d,h){return d==null?void 0:d[h]}(c,u);return Ie(f)?f:void 0}var Ve=Fe(fe,"WeakMap"),ze=Object.create,Re=function(){function c(){}return function(u){if(!Ae(u))return{};if(ze)return ze(u);c.prototype=u;var f=new c;return c.prototype=void 0,f}}(),Ue=function(){try{var c=Fe(Object,"defineProperty");return c({},"",{}),c}catch{}}(),Pe=/^(?:0|[1-9]\d*)$/;function Ge(c,u){var f=typeof c;return!!(u=u??9007199254740991)&&(f=="number"||f!="symbol"&&Pe.test(c))&&c>-1&&c%1==0&&c<u}function Ye(c,u){return c===u||c!=c&&u!=u}var We=Object.prototype.hasOwnProperty;function He(c,u,f){var d=c[u];We.call(c,u)&&Ye(d,f)&&(f!==void 0||u in c)||function(h,p,v){p=="__proto__"&&Ue?Ue(h,p,{configurable:!0,enumerable:!0,value:v,writable:!0}):h[p]=v}(c,u,f)}function Be(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=9007199254740991}var Ke=Object.prototype;function qe(c){var u=c&&c.constructor;return c===(typeof u=="function"&&u.prototype||Ke)}function Qe(c){return we(c)&&xe(c)=="[object Arguments]"}var Je=Object.prototype,Xe=Je.hasOwnProperty,Ze=Je.propertyIsEnumerable,et=Qe(function(){return arguments}())?Qe:function(c){return we(c)&&Xe.call(c,"callee")&&!Ze.call(c,"callee")},tt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,nt=tt&&typeof module=="object"&&module&&!module.nodeType&&module,ot=nt&&nt.exports===tt?fe.Buffer:void 0,rt=(ot?ot.isBuffer:void 0)||function(){return!1},it={};function at(c){return function(u){return c(u)}}it["[object Float32Array]"]=it["[object Float64Array]"]=it["[object Int8Array]"]=it["[object Int16Array]"]=it["[object Int32Array]"]=it["[object Uint8Array]"]=it["[object Uint8ClampedArray]"]=it["[object Uint16Array]"]=it["[object Uint32Array]"]=!0,it["[object Arguments]"]=it["[object Array]"]=it["[object ArrayBuffer]"]=it["[object Boolean]"]=it["[object DataView]"]=it["[object Date]"]=it["[object Error]"]=it["[object Function]"]=it["[object Map]"]=it["[object Number]"]=it["[object Object]"]=it["[object RegExp]"]=it["[object Set]"]=it["[object String]"]=it["[object WeakMap]"]=!1;var lt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,st=lt&&typeof module=="object"&&module&&!module.nodeType&&module,ct=st&&st.exports===lt&&ue.process,ut=function(){try{var c=st&&st.require&&st.require("util").types;return c||ct&&ct.binding&&ct.binding("util")}catch{}}(),dt=ut&&ut.isTypedArray,ft=dt?at(dt):function(c){return we(c)&&Be(c.length)&&!!it[xe(c)]},pt=Object.prototype.hasOwnProperty;function ht(c,u){var f=Se(c),d=!f&&et(c),h=!f&&!d&&rt(c),p=!f&&!d&&!h&&ft(c),v=f||d||h||p,m=v?function(x,Pn){for(var b=-1,j=Array(x);++b<x;)j[b]=Pn(b);return j}(c.length,String):[],g=m.length;for(var y in c)!pt.call(c,y)||v&&(y=="length"||h&&(y=="offset"||y=="parent")||p&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||Ge(y,g))||m.push(y);return m}function yt(c,u){return function(f){return c(u(f))}}var mt=yt(Object.keys,Object),bt=Object.prototype.hasOwnProperty;function gt(c){return(u=c)!=null&&Be(u.length)&&!_e(u)?ht(c):function(f){if(!qe(f))return mt(f);var d=[];for(var h in Object(f))bt.call(f,h)&&h!="constructor"&&d.push(h);return d}(c);var u}var vt=Fe(Object,"create"),xt=Object.prototype.hasOwnProperty,wt=Object.prototype.hasOwnProperty;function St(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u<f;){var d=c[u];this.set(d[0],d[1])}}function At(c,u){for(var f=c.length;f--;)if(Ye(c[f][0],u))return f;return-1}St.prototype.clear=function(){this.__data__=vt?vt(null):{},this.size=0},St.prototype.delete=function(c){var u=this.has(c)&&delete this.__data__[c];return this.size-=u?1:0,u},St.prototype.get=function(c){var u=this.__data__;if(vt){var f=u[c];return f==="__lodash_hash_undefined__"?void 0:f}return xt.call(u,c)?u[c]:void 0},St.prototype.has=function(c){var u=this.__data__;return vt?u[c]!==void 0:wt.call(u,c)},St.prototype.set=function(c,u){var f=this.__data__;return this.size+=this.has(c)?0:1,f[c]=vt&&u===void 0?"__lodash_hash_undefined__":u,this};var _t=Array.prototype.splice;function jt(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u<f;){var d=c[u];this.set(d[0],d[1])}}jt.prototype.clear=function(){this.__data__=[],this.size=0},jt.prototype.delete=function(c){var u=this.__data__,f=At(u,c);return!(f<0)&&(f==u.length-1?u.pop():_t.call(u,f,1),--this.size,!0)},jt.prototype.get=function(c){var u=this.__data__,f=At(u,c);return f<0?void 0:u[f][1]},jt.prototype.has=function(c){return At(this.__data__,c)>-1},jt.prototype.set=function(c,u){var f=this.__data__,d=At(f,c);return d<0?(++this.size,f.push([c,u])):f[d][1]=u,this};var Ot=Fe(fe,"Map");function Ct(c,u){var f,d,h=c.__data__;return((d=typeof(f=u))=="string"||d=="number"||d=="symbol"||d=="boolean"?f!=="__proto__":f===null)?h[typeof u=="string"?"string":"hash"]:h.map}function Lt(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u<f;){var d=c[u];this.set(d[0],d[1])}}Lt.prototype.clear=function(){this.size=0,this.__data__={hash:new St,map:new(Ot||jt),string:new St}},Lt.prototype.delete=function(c){var u=Ct(this,c).delete(c);return this.size-=u?1:0,u},Lt.prototype.get=function(c){return Ct(this,c).get(c)},Lt.prototype.has=function(c){return Ct(this,c).has(c)},Lt.prototype.set=function(c,u){var f=Ct(this,c),d=f.size;return f.set(c,u),this.size+=f.size==d?0:1,this};var Tt=yt(Object.getPrototypeOf,Object);function Nt(c){var u=this.__data__=new jt(c);this.size=u.size}Nt.prototype.clear=function(){this.__data__=new jt,this.size=0},Nt.prototype.delete=function(c){var u=this.__data__,f=u.delete(c);return this.size=u.size,f},Nt.prototype.get=function(c){return this.__data__.get(c)},Nt.prototype.has=function(c){return this.__data__.has(c)},Nt.prototype.set=function(c,u){var f=this.__data__;if(f instanceof jt){var d=f.__data__;if(!Ot||d.length<199)return d.push([c,u]),this.size=++f.size,this;f=this.__data__=new Lt(d)}return f.set(c,u),this.size=f.size,this};var $t=Object.prototype.propertyIsEnumerable,kt=Object.getOwnPropertySymbols,Dt=kt?function(c){return c==null?[]:(c=Object(c),function(u,f){for(var d=-1,h=u==null?0:u.length,p=0,v=[];++d<h;){var m=u[d];f(m,d,u)&&(v[p++]=m)}return v}(kt(c),function(u){return $t.call(c,u)}))}:function(){return[]};function Mt(c){return function(u,f,d){var h=f(u);return Se(u)?h:function(p,v){for(var m=-1,g=v.length,y=p.length;++m<g;)p[y+m]=v[m];return p}(h,d(u))}(c,gt,Dt)}var Et=Fe(fe,"DataView"),It=Fe(fe,"Promise"),Ft=Fe(fe,"Set"),Vt="[object Map]",zt="[object Promise]",Rt="[object Set]",Ut="[object WeakMap]",Pt="[object DataView]",Gt=Te(Et),Yt=Te(Ot),Wt=Te(It),Ht=Te(Ft),Bt=Te(Ve),Kt=xe;(Et&&Kt(new Et(new ArrayBuffer(1)))!=Pt||Ot&&Kt(new Ot)!=Vt||It&&Kt(It.resolve())!=zt||Ft&&Kt(new Ft)!=Rt||Ve&&Kt(new Ve)!=Ut)&&(Kt=function(c){var u=xe(c),f=u=="[object Object]"?c.constructor:void 0,d=f?Te(f):"";if(d)switch(d){case Gt:return Pt;case Yt:return Vt;case Wt:return zt;case Ht:return Rt;case Bt:return Ut}return u});var qt=Object.prototype.hasOwnProperty,Qt=fe.Uint8Array;function Jt(c){var u=new c.constructor(c.byteLength);return new Qt(u).set(new Qt(c)),u}var Xt=/\w*$/,Zt=pe?pe.prototype:void 0,en=Zt?Zt.valueOf:void 0;function tn(c,u,f){var d,h,p,v,m,g=c.constructor;switch(u){case"[object ArrayBuffer]":return Jt(c);case"[object Boolean]":case"[object Date]":return new g(+c);case"[object DataView]":return m=Jt((v=c).buffer),new v.constructor(m,v.byteOffset,v.byteLength);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(y){var x=Jt(y.buffer);return new y.constructor(x,y.byteOffset,y.length)}(c);case"[object Map]":case"[object Set]":return new g;case"[object Number]":case"[object String]":return new g(c);case"[object RegExp]":return(p=new(h=c).constructor(h.source,Xt.exec(h))).lastIndex=h.lastIndex,p;case"[object Symbol]":return d=c,en?Object(en.call(d)):{}}}var nn=ut&&ut.isMap,on=nn?at(nn):function(c){return we(c)&&Kt(c)=="[object Map]"},rn=ut&&ut.isSet,an=rn?at(rn):function(c){return we(c)&&Kt(c)=="[object Set]"},ln="[object Arguments]",sn="[object Function]",cn="[object Object]",un={};function dn(c,u,f,d,h,p){var v;if(v!==void 0)return v;if(!Ae(c))return c;var m=Se(c);if(m)v=function(b){var j=b.length,re=new b.constructor(j);return j&&typeof b[0]=="string"&&qt.call(b,"index")&&(re.index=b.index,re.input=b.input),re}(c);else{var g=Kt(c),y=g==sn||g=="[object GeneratorFunction]";if(rt(c))return c.slice();if(g==cn||g==ln||y&&!h)v=y?{}:function(b){return typeof b.constructor!="function"||qe(b)?{}:Re(Tt(b))}(c);else{if(!un[g])return h?c:{};v=tn(c,g)}}p||(p=new Nt);var x=p.get(c);if(x)return x;p.set(c,v),an(c)?c.forEach(function(b){v.add(dn(b,u,f,b,c,p))}):on(c)&&c.forEach(function(b,j){v.set(j,dn(b,u,f,j,c,p))});var Pn=m?void 0:Mt(c);return function(b,j){for(var re=-1,vn=b==null?0:b.length;++re<vn&&j(b[re],re,b)!==!1;);}(Pn||c,function(b,j){Pn&&(b=c[j=b]),He(v,j,dn(b,u,f,j,c,p))}),v}un[ln]=un["[object Array]"]=un["[object ArrayBuffer]"]=un["[object DataView]"]=un["[object Boolean]"]=un["[object Date]"]=un["[object Float32Array]"]=un["[object Float64Array]"]=un["[object Int8Array]"]=un["[object Int16Array]"]=un["[object Int32Array]"]=un["[object Map]"]=un["[object Number]"]=un[cn]=un["[object RegExp]"]=un["[object Set]"]=un["[object String]"]=un["[object Symbol]"]=un["[object Uint8Array]"]=un["[object Uint8ClampedArray]"]=un["[object Uint16Array]"]=un["[object Uint32Array]"]=!0,un["[object Error]"]=un[sn]=un["[object WeakMap]"]=!1;function fn(c){return dn(c,5)}const pn=(c,u)=>{const f=Object.assign({dayjs:ce},u);let d="";const h=[];for(const m in f)d+=`${m},`,h.push(f[m]);d=d.replace(/,$/,"");const p=`function (${d}){return ${c}}`;let v;try{v=Function(`"use strict";return (${p})`)()(...h)}catch{return c}return v},hn=(c="",{textData:u,codeData:f}={},{useNewline:d=!1,useSpace:h=!1}={})=>{const p=window.config||{},v=Object.assign(Object.assign({},p),u),m=(c||"").match(/\{(.+?)\}/g);if(m==null||m.length===0)return c;for(let g=0;g<m.length;g++){const y=m[g];let x=y.slice(1,-1).trim();const Pn=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,b=x.match(Pn);for(let j=0;j<b.length;j++){const re=b[j],vn=v[re];vn!=null&&typeof vn!="function"&&(x=x.replace(re,vn))}(/\(.*\)/g.test(x)||/[+/\\*]/g.test(x))&&(x=pn(x,f)),c=c.replace(y,x)}return d&&(c=c==null?void 0:c.replace(/\n|\\n/g,"<br/>")),h&&(c=c==null?void 0:c.replace(/\s{2,}?/g,"&nbsp;&nbsp;")),c=c.replace(/Qfw\((.*?)\)/,(g,y)=>u!=null&&u.Qfw?u==null?void 0:u.Qfw(y):y)},yn=(c,u)=>{if(typeof c=="string"&&typeof u=="string")return c.toLocaleLowerCase().includes(u.toLocaleLowerCase());if(typeof c=="string"&&Array.isArray(u)){const f=u.length;for(let d=0;d<f;d++){const h=u[d];if(typeof h=="string"&&c.toLocaleLowerCase().includes(h.toLocaleLowerCase()))return!0}}return!1},mn=(c,u)=>Object.prototype.hasOwnProperty.call(c,u),bn=c=>{const u=[];for(const f of c)f.conditions?u.push(...bn(f.conditions)):(f==null?void 0:f.dataType)==="component"&&u.push(f);return u},xn=["table","bar","combograph","line","pie","radar","scatter","list","circulate"];let wn=new Map;const Sn=["keyValue","conditionKey","conditionLabel","conditionName","conditionValueType","customValue","id","keyName"],An=c=>wn.get(c),_n=(c,u)=>{if(u)mn(c,"indexCode")&&(c.hrpIndexCode=c.indexCode,delete c.indexCode),mn(c,"indexCodeNum")&&(c.hrpIndexCodeNum=c.indexCodeNum,delete c.indexCodeNum),mn(c,"dataType")&&delete c.dataType;else{const{calcWays:f=[],dateCalcTypes:d=[],activeKey:h,componentId:p=""}=c;if(h===5&&(f!=null&&f.length)&&(d!=null&&d.length)&&p){const v=f[0].split("-");(v==null?void 0:v.length)>1&&v[0]==="rangeValue"&&(c.calcWays=((m,g={})=>{const{around:y,unit:x,id:Pn}=m;let b="";const{pageMode:j="",componentList:re=[]}=(g==null?void 0:g.graphicConfig)||{};let vn=null,Fn=null;if(j==="design"){const Bn=re==null?void 0:re.find(Un=>Un.id===Pn);if(!Bn)return[];const{interval:w,intervalUnit:J,startTime:gn,endTime:zn,operate:Vn,useCurrentTime:Kn}=Bn||{};if(Kn&&(vn=ce().subtract(w,J),Fn=ce()),gn&&(vn=ce(gn)),zn&&(Fn=ce(zn)),Vn){const{type:Un,value:Qn,mode:Jn}=Vn;switch(Un){case"add":vn=vn&&vn.add(Qn,Jn),Fn=Fn&&Fn.add(Qn,Jn);break;case"minus":vn=vn&&vn.subtract(Qn,Jn),Fn=Fn&&Fn.subtract(Qn,Jn)}}}else{const Bn=An(Pn)||{};_(Bn.startTime)&&(vn=ce(_(Bn.startTime))),_(Bn.endTime)&&(Fn=ce(_(Bn.endTime)))}return vn&&Fn&&(b=`${y==="before"?"-":""}${Fn.diff(vn,x.toLowerCase())+1}`),b?[b]:[]})({around:v[1],unit:d[0],id:p})),delete c.radioValue}if(mn(c,"dataType")){if(c.fieldType==="DATE"&&(c.label=c.fieldName),c.dataType==="component")if(c.fieldValue==="PARENT"){let v=c.modelKey;v&&c.prop&&(v+=`-${c.prop}`),c.fieldValue="${"+v+"}"}else c.fieldValue="${"+c.fieldValue+"}";delete c.dataType}mn(c,"activeKey")&&delete c.activeKey,mn(c,"radioValue")&&delete c.radioValue,mn(c,"indexCode")&&(c.hrpIndexCode=c.indexCode,delete c.indexCode),mn(c,"indexCodeNum")&&(c.hrpIndexCodeNum=c.indexCodeNum,delete c.indexCodeNum),c.dataType!=="component"&&c.useCurrentTime&&(c.fieldValue=ce().format(c.dateFormat)),mn(c,"modelKey")&&delete c.modelKey,mn(c,"prop")&&delete c.prop,delete c.useCurrentTime}},jn=(c,u)=>{const f=[];return c!=null&&c.length&&fn(c).forEach(d=>{if(d.join&&d.conditions){const h=!d.conditions.some(p=>p.join&&p.conditions);d.conditions.forEach((p,v)=>{_n(p,u);const m={};if(v<d.conditions.length-1&&(m.join=d.join),h)f.push(Object.assign(Object.assign({},m),p));else if(p.join&&p.conditions){const g=u?"sqlConditions":"conditions";f.push(Object.assign({[g]:jn([p],u)},m))}else f.push(Object.assign(Object.assign({},m),p))})}else _n(d,u),f.push(d)}),f},On=(c={},u)=>{if(c!=null&&c.sortCpnts&&u){const gn=kn(c);gn&&(u.sort=gn)}const{label:f,name:d,location:h,show:p,indexCode:v,indexCodeNum:m,calcType:g="COLUMN",builtInFormula:y,builtInValueSource:x,builtInCalcWay:Pn,formula:b,conditions:j,aggregate:re,distinct:vn,dimByCount:Fn,dataTo:Bn}=c;let w;if(j&&(w=jn(j)),g==="COMPONENT"){const gn={};return Nn(gn,x),{label:f.trim(),columnName:d,show:p,calcType:g,componentAlias:Pn,componentValue:gn.fieldValue||null}}const J={label:f.trim(),columnName:d,location:h,show:p,calcType:Bn==="1"?"VIEW":g,hrpIndexCode:v,hrpIndexCodeNum:m,aggregate:re,builtInFormula:y,builtInValueSource:x,formula:b,conditions:w};if(y!=="DATE_OFFSET")return d==="the_count"&&(J.calcType="AGGREGATE",J.distinct=!!vn,J.typeGuid=Fn),Object.assign(Object.assign({},J),{builtInCalcWay:Pn});{const gn=Pn.split("-");if((gn==null?void 0:gn.length)===3){let zn=gn[0];return gn[2]==="before"&&gn[0]!=="0"&&(zn=`-${gn[0]}`),Object.assign(Object.assign({},J),{calcWays:[zn],dateCalcTypes:[gn[1]]})}}},Cn=c=>{if(!c)return[];const u=fn((c==null?void 0:c.controlList)||[]).filter(vn=>vn.conditionKey!=="parentCode"),{classificationList:f=[],rowHeaderList:d=[],dimensionList:h=[],seriesList:p=[],leftAxisList:v=[],rightAxisList:m=[],queryColumnList:g=[],indexLibColumns:y=[],indicators:x=[]}=c;Tn(u);const Pn=[...f,...d,...h,...p,...v,...m,...g,...y,...x],b=[];for(const vn of Pn){const Fn=bn((vn==null?void 0:vn.conditions)||[]);if(Fn!=null&&Fn.length){const Bn=Fn.filter(w=>(w==null?void 0:w.dataType)==="component").map(w=>{const J={};return w!=null&&w.dateFormat&&(J.format=w.dateFormat),w.fieldValue==="PARENT"&&(J.id="PARENT",J.keyName=w.modelKey,J.modelKey=w.modelKey,J.prop=w.prop),Object.assign({conditionKey:w.fieldName,conditionLabel:w.fieldName,conditionName:w.fieldName,conditionValueType:w.fieldType,id:w.componentId,keyName:w.fieldValue,rule:w.rule,notGlobal:!0,indexCode:w.indexCode,typeGuid:w.typeGuid,indexCodeNum:w.indexCodeNum},J)});if(Bn!=null&&Bn.length)for(const w of Bn)b.find(J=>J.keyName===w.keyName)||b.push(w)}}const j=b.length,re=u;for(let vn=0;vn<j;vn++){const Fn=b[vn];if((Fn==null?void 0:Fn.conditionKey)==="parentCode")continue;const{id:Bn,keyName:w,prop:J,format:gn,modelKey:zn,dataType:Vn="component",customValue:Kn}=Fn,Un=Ln(Fn);Nn(Un,Bn,{prop:J,dateFormat:gn,modelKey:zn,keyName:w}),Vn===""&&(Un.fieldValue=Kn||""),re.push(Un)}for(let vn=re.length-1;vn>=0;vn--){const Fn=re[vn];Fn.globalCondition||bn(re).find(Bn=>Bn.alias===Fn.alias&&Bn.globalCondition)&&re.splice(vn,1)}return re};function Ln(c){const{id:u,keyName:f,conditionLabel:d,conditionKey:h,conditionValueType:p,prop:v,rule:m="NONE",notGlobal:g=!1,indexCode:y,typeGuid:x,indexCodeNum:Pn,dataType:b="component"}=c;let j=f||u;j&&v&&(j+=`-${v}`);let re=m;return re==="NONE"&&(re=["startTime","endTime"].includes(v)?v==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":f!=null&&f.includes("startTime")?v==="GREATER_EQUAL":f!=null&&f.includes("endTime")?v==="LESS_EQUAL":"EQUAL"),u==="PARENT"&&(j=c.modelKey,j&&v&&(j+=`-${v}`),re=m),{rule:re,label:d,fieldName:h,fieldValue:"",valueType:p,alias:j,globalCondition:!g,indexCode:y,typeGuid:x,indexCodeNum:Pn,dataType:b}}function Tn(c){if(c!=null&&c.length)for(const u of c)if(u!=null&&u.conditions)Tn(u.conditions);else{const{id:f,keyName:d,prop:h,modelKey:p,format:v,dataType:m="component",customValue:g}=u,y=Ln(u);Nn(y,f,{prop:h,dateFormat:v,modelKey:p,keyName:d}),m===""&&(y.fieldValue=g||"");for(const x in y)u[x]=y[x];for(const x of Sn)delete u[x]}}function Nn(c,u,f){const{prop:d="",dateFormat:h="",modelKey:p="",keyName:v="",operateValue:m,operateMode:g,operateType:y}=f||{},x=p||v;if(u==="PARENT"&&x&&d){const w=window.config.record;let J=d,gn=h;const zn=d.match(/\{(.+?)\}/g);if(zn!=null&&zn.length){const Vn=zn[0].slice(1,-1).trim();J=d.replace(zn[0],""),gn=Vn,c.dateFormat=gn}if(w&&w[x]){const Vn=_(w[x][J]);ce.isDayjs(Vn)?c.fieldValue=Vn.format(gn||"YYYY-MM-DD"):c.fieldValue=Vn}return}const Pn=An(u)||{},{value:b,format:j="YYYY-MM-DD",type:re="",useCurrentTime:vn,RECORD:Fn}=Pn||{},Bn=h||j;if(yn(re,"date")){let w;if(w=vn?b?_(b):ce():_(b),typeof w=="string"&&(w=ce(w)),m&&g&&y)switch(y){case"add":w=w.add(m,g);break;case"minus":w=w.subtract(m,g)}c.fieldValue=w==null?void 0:w.format(Bn),c.dateFormat=Bn}else if(yn(re,"rangepicker")){let w=d;if(!d){const gn=v&&v.split("-");gn!=null&&gn.length&&(w=gn[gn.length-1])}if(!w)return;let J=null;if(_(Pn[w])&&(J=ce(_(Pn[w]))),m&&g&&y){if(m==="rangeValue"){if(Pn.startTime&&Pn.endTime){const gn=_(Pn.endTime).diff(_(Pn.startTime),g)+1;switch(y){case"add":J=J&&J.add(gn,g);break;case"minus":J=J&&J.subtract(gn,g)}}}else if(!isNaN(+m))switch(y){case"add":J=J&&J.add(m,g);break;case"minus":J=J&&J.subtract(m,g)}}if(J&&(c.fieldValue=J==null?void 0:J.format(Bn)),w==="rangeValue"&&Pn.startTime&&Pn.endTime){const gn=function(zn){const Vn=zn.split("-");let Kn="";if(Vn!=null&&Vn.length)switch(Vn[Vn.length-1]){case"YYYY":Kn="year";break;case"MM":Kn="month";break;case"DD":Kn="day"}return Kn}(Bn);gn&&(c.fieldValue=_(Pn.endTime).diff(_(Pn.startTime),gn)+1)}c.dateFormat=Bn}else yn(re,xn)?c.fieldValue=p&&Fn?Fn[p]:!p&&Fn?Fn.value:_(b):c.fieldValue=_(b)}const $n=c=>{var u;if(c){const f=Array.isArray(c)?fn(c):[fn(c)];let d="",h=[];const p=[],v=[],m=[];for(const g of f){if(g.defaultCode&&(g.label=g.columnName,delete g.defaultCode),g.type==="CUSTOM"&&(h=g.customOrderColumns),d=g.type,p.push(g.label),(u=g.columnName)===null||u===void 0?void 0:u.includes("_ecanrepeat_")){const y=g.columnName.split("_ecanrepeat_");v.push(y[0])}else v.push(g.columnName);m.push(g.order)}return d!=="CUSTOM"&&(p==null?void 0:p.length)>1&&(d="COMBINATION"),d==="CUSTOM"?{label:p.join(","),columnName:v.join(","),type:d,customOrderColumns:h}:{label:p.join(","),columnName:v.join(","),order:m.join(","),type:d}}return c},kn=c=>{const{sortCpnts:u=[]}=c;let f,d="";for(const h of u){const p=An(h)||{},{type:v,RECORD:m}=p;if(yn(v,"image")&&yn(m==null?void 0:m.value,["asc","desc"])){d=m.value.toUpperCase();break}}return d&&(f={label:c.label,columnName:c.name,order:d,type:"NORMAL"}),f},Dn=(c,u={})=>{var f,d,h,p,v,m,g,y;const{graphicConfig:x,type:Pn,globalModel:b,isGroupTable:j=!1}=c;b&&(wn=b);const re=yn(Pn,"pivottable");let vn,{source:Fn,dataViewId:Bn,plugin:w="1",layer:J,chartType:gn,classificationList:zn=[],rowHeaderList:Vn=[],dimensionList:Kn=[],seriesList:Un=[],leftAxisList:Qn=[],rightAxisList:Jn=[],queryColumnList:Yn=[],indexLibColumns:Zn=[],indicators:nr=[],controlList:sr=[],formFields:ur={},variableList:Gn=[],variableConditions:Wn=[],dataSourceId:Rn="",idxLibMode:qn,preview:Xn=!1,edvDataSetId:Hn,compositeIndicator:tr}=x||{},cr=[];if((x==null?void 0:x.pageMode)==="design"?(cr=((f=x.sqlConditions)!==null&&f!==void 0?f:[]).map(gr=>{const br={};if(mn(gr,"globalCondition")||gr.join||(br.globalCondition=!0),!gr.join){const Er=gr.rule||"EQUAL";br.rule=Er==="NONE"?"EQUAL":Er}return Object.assign(Object.assign({},gr),br)}),Wn!=null&&Wn.length&&(cr=cr.concat(Wn))):(cr=Cn(x),Gn!=null&&Gn.length&&(cr=cr.concat(function(gr){const br=[];if(gr!=null&&gr.length){for(const Er of gr)if(Er.variableName){const Mr={variateName:Er.variableName,globalCondition:!1,valueType:Er.variableType,alias:Er.keyName||""};Nn(Mr,Er.id,{dateFormat:Er.format,prop:Er.dateTypeValue,keyName:Er.keyName,operateType:Er.operateType,operateMode:Er.operateMode,operateValue:Er.operateValue}),Er.dataType===""&&(Mr.fieldValue=Er.variableValue),Er.format&&(Mr.dateFormat=Er.format),Er.label&&(Mr.label=Er.label),br.push(Mr)}}return br}(Gn)))),cr==null?void 0:cr.length){const gr=cr.filter(Er=>Er.globalCondition),br=cr.filter(Er=>!Er.globalCondition);(gr==null?void 0:gr.length)>1&&(cr=[{join:"&&",conditions:gr},...br])}cr!=null&&cr.length&&(cr=jn(cr,"1")),J==null&&(J=yn(Pn,["table","card"])||yn(Pn,["list","circulate"])&&(zn==null?void 0:zn.length)>1?"1":yn(Pn,["select","checkbox","radio"])?"3":yn(Pn,["indexPanel"])?"4":"2"),yn(Pn,["indexPanel"])&&(w="3");const ir=[];let er,pr="";if(Array.isArray(zn)&&zn.length>0&&(!["ecanList","ecanCirculate"].includes(Pn)||(zn==null?void 0:zn.length)===1)){const gr=zn.length;for(let br=0;br<gr;br++){const Er=zn[br]||{},{label:Mr="",name:Ir="",show:Fr=!1,sort:Or,customGroup:Nr,conditions:zr,dateFormat:Rr,typeGuid:Vr="",truncations:Hr=[]}=Er;if(Fr||gr===1){pr=Vr,vn={label:Mr.trim(),columnName:Ir,show:Fr,sort:kn(Er)||$n(Or)||Or,customGroup:Nr,conditions:jn(zr),typeGuid:Vr},Rr&&(vn.dateFormat=Rr),Ir!=="the_date"||vn.dateFormat||(vn.dateFormat="YYYY-MM-DD");const Gr={};if(Array.isArray(Hr)&&Hr.length>0){const Ur=Hr.length;for(let Yr=0;Yr<Ur;Yr++){const Qr=Hr[Yr]||{},{rule:ri="",num:ti=0,name:ai=""}=Qr;ri&&ti&&(Gr.num=ti,Gr.rule=ri,ai&&(Gr.otherGroupName=ai))}}if(!((d=Object.keys(Gr))===null||d===void 0)&&d.length&&(vn.truncation=Gr),!yn(Pn,["scatter","valueline"]))break;ir.push(vn)}}}if(Array.isArray(Un)&&Un.length>0){const gr=Un.length;for(let br=0;br<gr;br++){const Er=Un[br]||{},{label:Mr="",name:Ir="",show:Fr=!1,sort:Or,customGroup:Nr,conditions:zr,typeGuid:Rr,dateFormat:Vr=""}=Er;if(Fr||gr===1){er={label:Mr.trim(),columnName:Ir,show:Fr,sort:$n(Or),customGroup:Nr,conditions:jn(zr),typeGuid:Rr},Vr?er.dateFormat=Vr:Ir==="the_date"&&(er.dateFormat="YYYY-MM-DD");break}}}const lr=[];Qn==null||Qn.forEach(gr=>{gr.location="LEFT",lr.push(On(gr,vn))}),Jn==null||Jn.forEach(gr=>{gr.location="RIGHT",lr.push(On(gr,vn))});let or=nr;u!=null&&u.pivotTableCal&&(or=((h=u.pivotTableCal)===null||h===void 0?void 0:h.indicators)||[]),or==null||or.forEach(gr=>{gr.location="LEFT",lr.push(On(gr,vn))});const ar=[];["ecanList","ecanCirculate"].includes(Pn)&&(zn==null?void 0:zn.length)>1&&(Yn=zn),u!=null&&u.pivotTableCal&&(Yn=((p=u.pivotTableCal)===null||p===void 0?void 0:p.dimensions)||[]),Yn==null||Yn.forEach(gr=>{const{label:br,name:Er,location:Mr,show:Ir,indexCode:Fr,sort:Or,typeGuid:Nr,indexCodeNum:zr,dateFormat:Rr,conditions:Vr}=gr;let Hr=$n(Or);if(u.sort){const{field:Ur,order:Yr}=u.sort;let Qr=lr.find(ri=>ri.label===Ur);Qr||br!==Ur||(Qr=gr),Qr&&(Hr={columnName:Qr.columnName,label:u.sort.field,order:Yr.toUpperCase(),type:"NORMAL"})}const Gr={label:br,columnName:Er,location:Mr,show:Ir,sort:Hr,calcType:"COLUMN",hrpIndexCode:Fr,hrpIndexCodeNum:zr,conditions:jn(Vr),typeGuid:Nr};Rr&&(Gr.dateFormat=Rr),Er!=="the_date"||Gr.dateFormat||(Gr.dateFormat="YYYY-MM-DD"),ar.push(Gr)});const vr=[];["ecanTable"].includes(Pn)&&x.isIndexSet&&Zn.forEach(gr=>{const br={label:gr.label,calcType:gr.calcType,show:gr.show};gr.formula&&(br.formula=gr.formula),vr.push(br)});let fr=[],mr=[];if(Array.isArray(Vn)&&Vn.length>0?mr=Vn:Array.isArray(Kn)&&Kn.length>0&&(mr=Kn),mr==null?void 0:mr.length){const gr=mr.length;for(let br=0;br<gr;br++){const Er=mr[br]||{},{label:Mr="",name:Ir="",show:Fr=!1,sort:Or,customGroup:Nr,conditions:zr,truncations:Rr,typeGuid:Vr="",dateFormat:Hr}=Er;let Gr=$n(Or);if(u.sort){const{field:Qr,order:ri}=u.sort;let ti=lr.find(ai=>ai.label===Qr);ti||Er.label!==Qr||(ti=Er),ti&&(Gr={columnName:ti.columnName,label:u.sort.field,order:ri.toUpperCase(),type:"NORMAL"})}const Ur={label:Mr.trim(),columnName:Ir,show:Fr,sort:Gr,customGroup:Nr,conditions:jn(zr),typeGuid:Vr};Hr&&(Ur.dateFormat=Hr),Ir!=="the_date"||Ur.dateFormat||(Ur.dateFormat="YYYY-MM-DD");const Yr={};if(Array.isArray(Rr)&&Rr.length>0){const Qr=Rr.length;for(let ri=0;ri<Qr;ri++){const ti=Rr[ri]||{},{rule:ai="",num:vi=0,name:hi=""}=ti;ai&&vi&&(Yr.num=vi,Yr.rule=ai,hi&&(Yr.otherGroupName=hi))}}!((v=Object.keys(Yr))===null||v===void 0)&&v.length&&(Ur.truncation=Yr),fr.push(Ur)}}let dr,hr=[];const yr=[];if(u!=null&&u.pivotTableCal){let gr=[];const{calc:br=[],filter:Er=[],truncations:Mr=[],sorts:Ir=[],aggregateMethod:Fr=[],rowDimensionKeys:Or=[],colDimensionKeys:Nr=[]}=u.pivotTableCal;if(lr.push(...br),Er==null?void 0:Er.length){const zr=function Rr(Vr){const Hr=[];for(const Gr of Vr)Gr.conditions?Hr.push(...Rr(Gr.conditions)):Gr.conditionKey==="the_date"&&Hr.push(Gr);return Hr}(sr);for(const Rr of Er){const{type:Vr}=Rr,Hr=e(Rr,["type"]);Vr==="indicators"?gr=lr:Vr==="dimension"&&(gr=ar);const Gr=gr.find(Ur=>Ur.columnName===Rr.fieldName&&Ur.label===Rr.label);if(Gr){if(Vr==="indicators")Gr.filter={rule:Hr.rule,fieldValue:Hr.fieldValue};else if(Vr==="dimension"){let Ur=!0;Hr.fieldName==="the_date"&&(zr==null?void 0:zr.length)===2&&(Ur=!1,yr.push(Hr)),Ur&&(Gr.conditions||(Gr.conditions=[]),Gr.conditions.push(Hr))}}}}if(Mr!=null&&Mr.length)for(const zr of Mr){const Rr=ar.find(Vr=>Vr.label===zr.key);Rr&&(Rr.truncation={num:zr.num,rule:zr.rule})}if(Ir!=null&&Ir.length)for(const zr of Ir){const{fieldType:Rr,columnData:Vr}=zr,Hr=e(zr,["fieldType","columnData"]);Rr==="indicators"?(gr=lr,dr=Vr):Rr==="dimension"&&(gr=ar);const Gr=gr.find(Ur=>Ur.label===Hr.label);Gr&&(Gr.sort=Object.assign(Object.assign({},Hr),{columnName:Gr.columnName}))}if(!((m=Object.keys(Fr))===null||m===void 0)&&m.length)for(const zr in Fr){const Rr=ar.find(Vr=>Vr.label===zr);Rr&&(!((g=Fr[zr])===null||g===void 0)&&g.length)&&(Rr.aggregateMethod=Fr[zr])}fr=[],hr=[];for(const zr of ar)Or.includes(zr.columnName)?fr.push(zr):Nr.includes(zr.columnName)&&hr.push(zr)}if(yn(Pn,["text","proportion","counter"])?gn="zb":yn(Pn,["valueline"])?gn="valueline":yn(Pn,["indexPanel"])&&(gn="indexPanel"),j||Pn==="card"){if(fr.length===0||lr.length===0)return;gn="grouptable"}else if(J==="1"&&!ar.length&&!vr.length||["2","4"].includes(J)&&lr.length===0||!(J!=="3"||(pr||Fn==="EDV_DATA_SET")&&ur.labelField&&ur.valueField)||J==="3"&&Pn==="ecanDataSelect"&&lr.length===0)return;let _r;if(Kn!=null&&Kn.length&&(J="1",gn="grouptable"),!yn(Pn,["scatter","valueline"])&&((y=Object.keys(ur))===null||y===void 0?void 0:y.length)){const gr=bn(sr).find(Er=>Er.conditionKey==="parentCode"),br={};if(gr){const Er=An(gr.id)||{};if(!(Er!=null&&Er.itemCodes))return;br.parentItemCodes=Er.itemCodes}Pn==="ecanDataSelect"&&(br.indicatorList=lr.filter(Er=>Er.show)),Fn==="EDV_DATA_SET"&&(br.edvDataSetId=Hn),vn.sort&&(br.sort=vn.sort),_r=Object.assign({url:"/diagram/formData",source:Fn,dataViewId:Bn,plugin:"4",layer:J,chartType:"normalSelect",rangeIndexTypeGuid:pr,type:Pn==="ecanDataSelect"?"normalSelectData":"normalSelect",labelField:ur.labelField,valueField:ur.valueField,sqlConditions:cr,idxLibMode:"WITH_DATE_DIM_TABLE",dataSourceId:Rn,keyName:c.keyName},br)}else{let gr={};gr=yn(Pn,["scatter","valueline"])?{classifications:ir}:{classification:vn},vr!=null&&vr.length&&(gr.indexLibColumns=vr,gr.isIndexSet=!0),yn(Pn,"table")&&x.isIndexSet&&(gr.compositeIndicator=tr);const br=cr.map(Er=>{const{fieldValue:Mr}=Er,Ir={};return Mr&&Array.isArray(Mr)&&(Ir.fieldValue=JSON.stringify(Mr)),Object.assign(Object.assign({},Er),Ir)});yr!=null&&yr.length&&function Er(Mr){for(const Ir of Mr)if(Ir.sqlConditions)Er(Ir.sqlConditions);else if(Ir.fieldName==="the_date"){const Fr=yr.find(Or=>Or.prop===Ir.prop);Fr&&(Ir.fieldValue=Fr.fieldValue)}}(br),_r=Object.assign({url:"/diagram",source:Fn,dataViewId:Bn,plugin:re?"5":w,layer:J,chartType:re?"pivot-table":gn,series:er,indicatorList:lr,queryColumns:j?[]:ar,pageFlag:!0,edvDataSetId:Hn||"",sqlConditions:br,idxLibMode:qn,dataSourceId:Rn,preview:Xn,rowHeaders:fr,keyName:c.keyName,columnData:dr,columnHeaders:hr},gr)}return _r},Mn=(c=[],u,f=!1)=>{let{name:d="name",types:h=[]}=u||{};d=(d==null?void 0:d.trim())||d;const p=new Set,v=new Map,m=c.length,g=h.length;if(m!==1||f)for(let Pn=0;Pn<m;Pn++){const b=c[Pn],j=b[d];p.add(j);for(let re=0;re<g;re++){const vn=h[re],{label:Fn,value:Bn}=vn,w=Object.assign(Object.assign({},b),{value:b[Bn]});if(v.has(Fn)){const J=v.get(Fn);J.push(w),v.set(Fn,J)}else v.set(Fn,[w])}}else{const Pn=[];for(let j=0;j<g;j++){const re=h[j],{label:vn,value:Fn}=re,Bn=Object.assign(Object.assign({},c[0]),{value:c[0][Fn]});p.add(vn),Pn.push(Bn)}const b=c[0][d]||"";v.set(b,Pn)}const y=Array.from(p),x=[];for(const[Pn,b]of v)x.push({name:Pn,data:b});return{dimensions:y,dataset:x}},En=(c,u)=>{let{name:f="name",value:d="value",type:h="type"}=u||{};f=f==null?void 0:f.trim(),d=d==null?void 0:d.trim(),h=h==null?void 0:h.trim();const p=new Map,v=c.length;for(let y=0;y<v;y++){const x=c[y],Pn=x[f]||"",b=x[d]||"",j=x[h]||"";if(p.has(j)){const re=p.get(j);re.push(Object.assign({name:Pn,value:b},x)),p.set(j,re)}else p.set(j,[Object.assign({name:Pn,value:b},x)])}const m=[],g=[];for(const[y,x]of p)if(g.push({name:y,data:x}),x==null?void 0:x.length)if(m.length)for(const Pn of x)m.includes(Pn.name)||m.push(Pn.name);else m.push(...x.map(Pn=>Pn.name));return{dimensions:m,dataset:g}},In=(c,u)=>{var f;if(c==null)return u;const d=c.match(/\{.*\}/g);if(d==null||d.length===0)return u;const h=d.length;for(let p=0;p<h;p++){const v=d[p];if(v==null||v==="")break;let m=(f=v.slice(1,-1))===null||f===void 0?void 0:f.trim();m=m==null?void 0:m.replace(/value/g,u);try{let g=m;(/\(.*\)/g.test(m)||/[+/\\*]/g.test(m))&&(g=pn(m)),c=c.replace(v,g)}catch{c=c.replace(v,m)}}return c},styleList=["width","height","color","position","top","left","rotate","fontSize","fontFamily","fontWeight","textDecoration","textAlign","lineHeight","verticalAlign","overflow","backgroundColor","backgroundImage","backgroundSize","borderWidth","borderStyle","borderRadius","borderColor","textShadow","justifyContent","alignItems","zIndex","scale"],usePickComponentStyle=(c,u=[])=>{const{pageMode:f}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),d=lodashEs.without(styleList,...u);return vue.computed(()=>{var v,m;const h=lodashEs.pick(c,d),p=["width","height","top","left"];for(const g of p)mn(h,g)&&(["width","height"].includes(g)&&((v=c[g])==null?void 0:v.suffix)==="%"&&vue.unref(f)==="design"?h[g]="100%":(m=c[g])!=null&&m.suffix&&(h[g]=(c[g].value||0)+c[g].suffix));return h})},useOnEvent=(c,u)=>{vue.watch(()=>c.id,f=>{const d=vue.inject(EVENT_BUS,{onEvent:(h,p)=>{}});f!=null&&f!==""&&d.onEvent(f,u)},{immediate:!0})},ignoreClickType=["ecanTable"],useEmitEvent=c=>{const u=c.events,f=c.id,d=vue.inject(EVENT_BUS,{emitEvent:(v,m,g)=>{}}),h=vue.inject(COMMON_OPERATE,{operateAction:(v,m)=>{}}),{touchEventId:p}=vue.inject(GLOBAL_CONFIG,{touchEventId:vue.ref("")});return(v,m=()=>{},g)=>function(){m.call(this,...arguments);const{emitEvent:y}=d,{operateAction:x}=h;v==="click"&&!u.find(b=>b.on==="click")&&(!ignoreClickType.includes(c.type)&&c.dataType==="indicator"||c.parentId)&&x("SHOW_INDICATOR_DETAIL_MODAL",{props:c}),u.forEach(Pn=>{if(v===Pn.on)try{p.value=f,g?y(Pn.target,Pn.emit,g):y(Pn.target,Pn.emit)}catch(b){console.error(b)}})}};var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}function getAugmentedNamespace(c){if(c.__esModule)return c;var u=c.default;if(typeof u=="function"){var f=function d(){return this instanceof d?Reflect.construct(u,arguments,this.constructor):u.apply(this,arguments)};f.prototype=u.prototype}else f={};return Object.defineProperty(f,"__esModule",{value:!0}),Object.keys(c).forEach(function(d){var h=Object.getOwnPropertyDescriptor(c,d);Object.defineProperty(f,d,h.get?h:{enumerable:!0,get:function(){return c[d]}})}),f}var cryptoJs={exports:{}};function commonjsRequire(c){throw new Error('Could not dynamically require "'+c+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var core={exports:{}};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);var hasRequiredCore;function requireCore(){return hasRequiredCore||(hasRequiredCore=1,function(c,u){(function(f,d){c.exports=d()})(commonjsGlobal,function(){var f=f||function(d,h){var p;if(typeof window<"u"&&window.crypto&&(p=window.crypto),typeof self<"u"&&self.crypto&&(p=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(p=globalThis.crypto),!p&&typeof window<"u"&&window.msCrypto&&(p=window.msCrypto),!p&&typeof commonjsGlobal<"u"&&commonjsGlobal.crypto&&(p=commonjsGlobal.crypto),!p&&typeof commonjsRequire=="function")try{p=require$$0}catch{}var v=function(){if(p){if(typeof p.getRandomValues=="function")try{return p.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof p.randomBytes=="function")try{return p.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},m=Object.create||function(){function w(){}return function(J){var gn;return w.prototype=J,gn=new w,w.prototype=null,gn}}(),g={},y=g.lib={},x=y.Base=function(){return{extend:function(w){var J=m(this);return w&&J.mixIn(w),(!J.hasOwnProperty("init")||this.init===J.init)&&(J.init=function(){J.$super.init.apply(this,arguments)}),J.init.prototype=J,J.$super=this,J},create:function(){var w=this.extend();return w.init.apply(w,arguments),w},init:function(){},mixIn:function(w){for(var J in w)w.hasOwnProperty(J)&&(this[J]=w[J]);w.hasOwnProperty("toString")&&(this.toString=w.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),Pn=y.WordArray=x.extend({init:function(w,J){w=this.words=w||[],J!=h?this.sigBytes=J:this.sigBytes=w.length*4},toString:function(w){return(w||j).stringify(this)},concat:function(w){var J=this.words,gn=w.words,zn=this.sigBytes,Vn=w.sigBytes;if(this.clamp(),zn%4)for(var Kn=0;Kn<Vn;Kn++){var Un=gn[Kn>>>2]>>>24-Kn%4*8&255;J[zn+Kn>>>2]|=Un<<24-(zn+Kn)%4*8}else for(var Qn=0;Qn<Vn;Qn+=4)J[zn+Qn>>>2]=gn[Qn>>>2];return this.sigBytes+=Vn,this},clamp:function(){var w=this.words,J=this.sigBytes;w[J>>>2]&=4294967295<<32-J%4*8,w.length=d.ceil(J/4)},clone:function(){var w=x.clone.call(this);return w.words=this.words.slice(0),w},random:function(w){for(var J=[],gn=0;gn<w;gn+=4)J.push(v());return new Pn.init(J,w)}}),b=g.enc={},j=b.Hex={stringify:function(w){for(var J=w.words,gn=w.sigBytes,zn=[],Vn=0;Vn<gn;Vn++){var Kn=J[Vn>>>2]>>>24-Vn%4*8&255;zn.push((Kn>>>4).toString(16)),zn.push((Kn&15).toString(16))}return zn.join("")},parse:function(w){for(var J=w.length,gn=[],zn=0;zn<J;zn+=2)gn[zn>>>3]|=parseInt(w.substr(zn,2),16)<<24-zn%8*4;return new Pn.init(gn,J/2)}},re=b.Latin1={stringify:function(w){for(var J=w.words,gn=w.sigBytes,zn=[],Vn=0;Vn<gn;Vn++){var Kn=J[Vn>>>2]>>>24-Vn%4*8&255;zn.push(String.fromCharCode(Kn))}return zn.join("")},parse:function(w){for(var J=w.length,gn=[],zn=0;zn<J;zn++)gn[zn>>>2]|=(w.charCodeAt(zn)&255)<<24-zn%4*8;return new Pn.init(gn,J)}},vn=b.Utf8={stringify:function(w){try{return decodeURIComponent(escape(re.stringify(w)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(w){return re.parse(unescape(encodeURIComponent(w)))}},Fn=y.BufferedBlockAlgorithm=x.extend({reset:function(){this._data=new Pn.init,this._nDataBytes=0},_append:function(w){typeof w=="string"&&(w=vn.parse(w)),this._data.concat(w),this._nDataBytes+=w.sigBytes},_process:function(w){var J,gn=this._data,zn=gn.words,Vn=gn.sigBytes,Kn=this.blockSize,Un=Kn*4,Qn=Vn/Un;w?Qn=d.ceil(Qn):Qn=d.max((Qn|0)-this._minBufferSize,0);var Jn=Qn*Kn,Yn=d.min(Jn*4,Vn);if(Jn){for(var Zn=0;Zn<Jn;Zn+=Kn)this._doProcessBlock(zn,Zn);J=zn.splice(0,Jn),gn.sigBytes-=Yn}return new Pn.init(J,Yn)},clone:function(){var w=x.clone.call(this);return w._data=this._data.clone(),w},_minBufferSize:0});y.Hasher=Fn.extend({cfg:x.extend(),init:function(w){this.cfg=this.cfg.extend(w),this.reset()},reset:function(){Fn.reset.call(this),this._doReset()},update:function(w){return this._append(w),this._process(),this},finalize:function(w){w&&this._append(w);var J=this._doFinalize();return J},blockSize:16,_createHelper:function(w){return function(J,gn){return new w.init(gn).finalize(J)}},_createHmacHelper:function(w){return function(J,gn){return new Bn.HMAC.init(w,gn).finalize(J)}}});var Bn=g.algo={};return g}(Math);return f})}(core)),core.exports}var x64Core={exports:{}},hasRequiredX64Core;function requireX64Core(){return hasRequiredX64Core||(hasRequiredX64Core=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(d){var h=f,p=h.lib,v=p.Base,m=p.WordArray,g=h.x64={};g.Word=v.extend({init:function(y,x){this.high=y,this.low=x}}),g.WordArray=v.extend({init:function(y,x){y=this.words=y||[],x!=d?this.sigBytes=x:this.sigBytes=y.length*8},toX32:function(){for(var y=this.words,x=y.length,Pn=[],b=0;b<x;b++){var j=y[b];Pn.push(j.high),Pn.push(j.low)}return m.create(Pn,this.sigBytes)},clone:function(){for(var y=v.clone.call(this),x=y.words=this.words.slice(0),Pn=x.length,b=0;b<Pn;b++)x[b]=x[b].clone();return y}})}(),f})}(x64Core)),x64Core.exports}var libTypedarrays={exports:{}},hasRequiredLibTypedarrays;function requireLibTypedarrays(){return hasRequiredLibTypedarrays||(hasRequiredLibTypedarrays=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(){if(typeof ArrayBuffer=="function"){var d=f,h=d.lib,p=h.WordArray,v=p.init,m=p.init=function(g){if(g instanceof ArrayBuffer&&(g=new Uint8Array(g)),(g instanceof Int8Array||typeof Uint8ClampedArray<"u"&&g instanceof Uint8ClampedArray||g instanceof Int16Array||g instanceof Uint16Array||g instanceof Int32Array||g instanceof Uint32Array||g instanceof Float32Array||g instanceof Float64Array)&&(g=new Uint8Array(g.buffer,g.byteOffset,g.byteLength)),g instanceof Uint8Array){for(var y=g.byteLength,x=[],Pn=0;Pn<y;Pn++)x[Pn>>>2]|=g[Pn]<<24-Pn%4*8;v.call(this,x,y)}else v.apply(this,arguments)};m.prototype=p}}(),f.lib.WordArray})}(libTypedarrays)),libTypedarrays.exports}var encUtf16={exports:{}},hasRequiredEncUtf16;function requireEncUtf16(){return hasRequiredEncUtf16||(hasRequiredEncUtf16=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(){var d=f,h=d.lib,p=h.WordArray,v=d.enc;v.Utf16=v.Utf16BE={stringify:function(g){for(var y=g.words,x=g.sigBytes,Pn=[],b=0;b<x;b+=2){var j=y[b>>>2]>>>16-b%4*8&65535;Pn.push(String.fromCharCode(j))}return Pn.join("")},parse:function(g){for(var y=g.length,x=[],Pn=0;Pn<y;Pn++)x[Pn>>>1]|=g.charCodeAt(Pn)<<16-Pn%2*16;return p.create(x,y*2)}},v.Utf16LE={stringify:function(g){for(var y=g.words,x=g.sigBytes,Pn=[],b=0;b<x;b+=2){var j=m(y[b>>>2]>>>16-b%4*8&65535);Pn.push(String.fromCharCode(j))}return Pn.join("")},parse:function(g){for(var y=g.length,x=[],Pn=0;Pn<y;Pn++)x[Pn>>>1]|=m(g.charCodeAt(Pn)<<16-Pn%2*16);return p.create(x,y*2)}};function m(g){return g<<8&4278255360|g>>>8&16711935}}(),f.enc.Utf16})}(encUtf16)),encUtf16.exports}var encBase64={exports:{}},hasRequiredEncBase64;function requireEncBase64(){return hasRequiredEncBase64||(hasRequiredEncBase64=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(){var d=f,h=d.lib,p=h.WordArray,v=d.enc;v.Base64={stringify:function(g){var y=g.words,x=g.sigBytes,Pn=this._map;g.clamp();for(var b=[],j=0;j<x;j+=3)for(var re=y[j>>>2]>>>24-j%4*8&255,vn=y[j+1>>>2]>>>24-(j+1)%4*8&255,Fn=y[j+2>>>2]>>>24-(j+2)%4*8&255,Bn=re<<16|vn<<8|Fn,w=0;w<4&&j+w*.75<x;w++)b.push(Pn.charAt(Bn>>>6*(3-w)&63));var J=Pn.charAt(64);if(J)for(;b.length%4;)b.push(J);return b.join("")},parse:function(g){var y=g.length,x=this._map,Pn=this._reverseMap;if(!Pn){Pn=this._reverseMap=[];for(var b=0;b<x.length;b++)Pn[x.charCodeAt(b)]=b}var j=x.charAt(64);if(j){var re=g.indexOf(j);re!==-1&&(y=re)}return m(g,y,Pn)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function m(g,y,x){for(var Pn=[],b=0,j=0;j<y;j++)if(j%4){var re=x[g.charCodeAt(j-1)]<<j%4*2,vn=x[g.charCodeAt(j)]>>>6-j%4*2,Fn=re|vn;Pn[b>>>2]|=Fn<<24-b%4*8,b++}return p.create(Pn,b)}}(),f.enc.Base64})}(encBase64)),encBase64.exports}var encBase64url={exports:{}},hasRequiredEncBase64url;function requireEncBase64url(){return hasRequiredEncBase64url||(hasRequiredEncBase64url=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(){var d=f,h=d.lib,p=h.WordArray,v=d.enc;v.Base64url={stringify:function(g,y=!0){var x=g.words,Pn=g.sigBytes,b=y?this._safe_map:this._map;g.clamp();for(var j=[],re=0;re<Pn;re+=3)for(var vn=x[re>>>2]>>>24-re%4*8&255,Fn=x[re+1>>>2]>>>24-(re+1)%4*8&255,Bn=x[re+2>>>2]>>>24-(re+2)%4*8&255,w=vn<<16|Fn<<8|Bn,J=0;J<4&&re+J*.75<Pn;J++)j.push(b.charAt(w>>>6*(3-J)&63));var gn=b.charAt(64);if(gn)for(;j.length%4;)j.push(gn);return j.join("")},parse:function(g,y=!0){var x=g.length,Pn=y?this._safe_map:this._map,b=this._reverseMap;if(!b){b=this._reverseMap=[];for(var j=0;j<Pn.length;j++)b[Pn.charCodeAt(j)]=j}var re=Pn.charAt(64);if(re){var vn=g.indexOf(re);vn!==-1&&(x=vn)}return m(g,x,b)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function m(g,y,x){for(var Pn=[],b=0,j=0;j<y;j++)if(j%4){var re=x[g.charCodeAt(j-1)]<<j%4*2,vn=x[g.charCodeAt(j)]>>>6-j%4*2,Fn=re|vn;Pn[b>>>2]|=Fn<<24-b%4*8,b++}return p.create(Pn,b)}}(),f.enc.Base64url})}(encBase64url)),encBase64url.exports}var md5={exports:{}},hasRequiredMd5;function requireMd5(){return hasRequiredMd5||(hasRequiredMd5=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(d){var h=f,p=h.lib,v=p.WordArray,m=p.Hasher,g=h.algo,y=[];(function(){for(var vn=0;vn<64;vn++)y[vn]=d.abs(d.sin(vn+1))*4294967296|0})();var x=g.MD5=m.extend({_doReset:function(){this._hash=new v.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(vn,Fn){for(var Bn=0;Bn<16;Bn++){var w=Fn+Bn,J=vn[w];vn[w]=(J<<8|J>>>24)&16711935|(J<<24|J>>>8)&4278255360}var gn=this._hash.words,zn=vn[Fn+0],Vn=vn[Fn+1],Kn=vn[Fn+2],Un=vn[Fn+3],Qn=vn[Fn+4],Jn=vn[Fn+5],Yn=vn[Fn+6],Zn=vn[Fn+7],nr=vn[Fn+8],sr=vn[Fn+9],ur=vn[Fn+10],Gn=vn[Fn+11],Wn=vn[Fn+12],Rn=vn[Fn+13],qn=vn[Fn+14],Xn=vn[Fn+15],Hn=gn[0],tr=gn[1],cr=gn[2],ir=gn[3];Hn=Pn(Hn,tr,cr,ir,zn,7,y[0]),ir=Pn(ir,Hn,tr,cr,Vn,12,y[1]),cr=Pn(cr,ir,Hn,tr,Kn,17,y[2]),tr=Pn(tr,cr,ir,Hn,Un,22,y[3]),Hn=Pn(Hn,tr,cr,ir,Qn,7,y[4]),ir=Pn(ir,Hn,tr,cr,Jn,12,y[5]),cr=Pn(cr,ir,Hn,tr,Yn,17,y[6]),tr=Pn(tr,cr,ir,Hn,Zn,22,y[7]),Hn=Pn(Hn,tr,cr,ir,nr,7,y[8]),ir=Pn(ir,Hn,tr,cr,sr,12,y[9]),cr=Pn(cr,ir,Hn,tr,ur,17,y[10]),tr=Pn(tr,cr,ir,Hn,Gn,22,y[11]),Hn=Pn(Hn,tr,cr,ir,Wn,7,y[12]),ir=Pn(ir,Hn,tr,cr,Rn,12,y[13]),cr=Pn(cr,ir,Hn,tr,qn,17,y[14]),tr=Pn(tr,cr,ir,Hn,Xn,22,y[15]),Hn=b(Hn,tr,cr,ir,Vn,5,y[16]),ir=b(ir,Hn,tr,cr,Yn,9,y[17]),cr=b(cr,ir,Hn,tr,Gn,14,y[18]),tr=b(tr,cr,ir,Hn,zn,20,y[19]),Hn=b(Hn,tr,cr,ir,Jn,5,y[20]),ir=b(ir,Hn,tr,cr,ur,9,y[21]),cr=b(cr,ir,Hn,tr,Xn,14,y[22]),tr=b(tr,cr,ir,Hn,Qn,20,y[23]),Hn=b(Hn,tr,cr,ir,sr,5,y[24]),ir=b(ir,Hn,tr,cr,qn,9,y[25]),cr=b(cr,ir,Hn,tr,Un,14,y[26]),tr=b(tr,cr,ir,Hn,nr,20,y[27]),Hn=b(Hn,tr,cr,ir,Rn,5,y[28]),ir=b(ir,Hn,tr,cr,Kn,9,y[29]),cr=b(cr,ir,Hn,tr,Zn,14,y[30]),tr=b(tr,cr,ir,Hn,Wn,20,y[31]),Hn=j(Hn,tr,cr,ir,Jn,4,y[32]),ir=j(ir,Hn,tr,cr,nr,11,y[33]),cr=j(cr,ir,Hn,tr,Gn,16,y[34]),tr=j(tr,cr,ir,Hn,qn,23,y[35]),Hn=j(Hn,tr,cr,ir,Vn,4,y[36]),ir=j(ir,Hn,tr,cr,Qn,11,y[37]),cr=j(cr,ir,Hn,tr,Zn,16,y[38]),tr=j(tr,cr,ir,Hn,ur,23,y[39]),Hn=j(Hn,tr,cr,ir,Rn,4,y[40]),ir=j(ir,Hn,tr,cr,zn,11,y[41]),cr=j(cr,ir,Hn,tr,Un,16,y[42]),tr=j(tr,cr,ir,Hn,Yn,23,y[43]),Hn=j(Hn,tr,cr,ir,sr,4,y[44]),ir=j(ir,Hn,tr,cr,Wn,11,y[45]),cr=j(cr,ir,Hn,tr,Xn,16,y[46]),tr=j(tr,cr,ir,Hn,Kn,23,y[47]),Hn=re(Hn,tr,cr,ir,zn,6,y[48]),ir=re(ir,Hn,tr,cr,Zn,10,y[49]),cr=re(cr,ir,Hn,tr,qn,15,y[50]),tr=re(tr,cr,ir,Hn,Jn,21,y[51]),Hn=re(Hn,tr,cr,ir,Wn,6,y[52]),ir=re(ir,Hn,tr,cr,Un,10,y[53]),cr=re(cr,ir,Hn,tr,ur,15,y[54]),tr=re(tr,cr,ir,Hn,Vn,21,y[55]),Hn=re(Hn,tr,cr,ir,nr,6,y[56]),ir=re(ir,Hn,tr,cr,Xn,10,y[57]),cr=re(cr,ir,Hn,tr,Yn,15,y[58]),tr=re(tr,cr,ir,Hn,Rn,21,y[59]),Hn=re(Hn,tr,cr,ir,Qn,6,y[60]),ir=re(ir,Hn,tr,cr,Gn,10,y[61]),cr=re(cr,ir,Hn,tr,Kn,15,y[62]),tr=re(tr,cr,ir,Hn,sr,21,y[63]),gn[0]=gn[0]+Hn|0,gn[1]=gn[1]+tr|0,gn[2]=gn[2]+cr|0,gn[3]=gn[3]+ir|0},_doFinalize:function(){var vn=this._data,Fn=vn.words,Bn=this._nDataBytes*8,w=vn.sigBytes*8;Fn[w>>>5]|=128<<24-w%32;var J=d.floor(Bn/4294967296),gn=Bn;Fn[(w+64>>>9<<4)+15]=(J<<8|J>>>24)&16711935|(J<<24|J>>>8)&4278255360,Fn[(w+64>>>9<<4)+14]=(gn<<8|gn>>>24)&16711935|(gn<<24|gn>>>8)&4278255360,vn.sigBytes=(Fn.length+1)*4,this._process();for(var zn=this._hash,Vn=zn.words,Kn=0;Kn<4;Kn++){var Un=Vn[Kn];Vn[Kn]=(Un<<8|Un>>>24)&16711935|(Un<<24|Un>>>8)&4278255360}return zn},clone:function(){var vn=m.clone.call(this);return vn._hash=this._hash.clone(),vn}});function Pn(vn,Fn,Bn,w,J,gn,zn){var Vn=vn+(Fn&Bn|~Fn&w)+J+zn;return(Vn<<gn|Vn>>>32-gn)+Fn}function b(vn,Fn,Bn,w,J,gn,zn){var Vn=vn+(Fn&w|Bn&~w)+J+zn;return(Vn<<gn|Vn>>>32-gn)+Fn}function j(vn,Fn,Bn,w,J,gn,zn){var Vn=vn+(Fn^Bn^w)+J+zn;return(Vn<<gn|Vn>>>32-gn)+Fn}function re(vn,Fn,Bn,w,J,gn,zn){var Vn=vn+(Bn^(Fn|~w))+J+zn;return(Vn<<gn|Vn>>>32-gn)+Fn}h.MD5=m._createHelper(x),h.HmacMD5=m._createHmacHelper(x)}(Math),f.MD5})}(md5)),md5.exports}var sha1={exports:{}},hasRequiredSha1;function requireSha1(){return hasRequiredSha1||(hasRequiredSha1=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(){var d=f,h=d.lib,p=h.WordArray,v=h.Hasher,m=d.algo,g=[],y=m.SHA1=v.extend({_doReset:function(){this._hash=new p.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(x,Pn){for(var b=this._hash.words,j=b[0],re=b[1],vn=b[2],Fn=b[3],Bn=b[4],w=0;w<80;w++){if(w<16)g[w]=x[Pn+w]|0;else{var J=g[w-3]^g[w-8]^g[w-14]^g[w-16];g[w]=J<<1|J>>>31}var gn=(j<<5|j>>>27)+Bn+g[w];w<20?gn+=(re&vn|~re&Fn)+1518500249:w<40?gn+=(re^vn^Fn)+1859775393:w<60?gn+=(re&vn|re&Fn|vn&Fn)-1894007588:gn+=(re^vn^Fn)-899497514,Bn=Fn,Fn=vn,vn=re<<30|re>>>2,re=j,j=gn}b[0]=b[0]+j|0,b[1]=b[1]+re|0,b[2]=b[2]+vn|0,b[3]=b[3]+Fn|0,b[4]=b[4]+Bn|0},_doFinalize:function(){var x=this._data,Pn=x.words,b=this._nDataBytes*8,j=x.sigBytes*8;return Pn[j>>>5]|=128<<24-j%32,Pn[(j+64>>>9<<4)+14]=Math.floor(b/4294967296),Pn[(j+64>>>9<<4)+15]=b,x.sigBytes=Pn.length*4,this._process(),this._hash},clone:function(){var x=v.clone.call(this);return x._hash=this._hash.clone(),x}});d.SHA1=v._createHelper(y),d.HmacSHA1=v._createHmacHelper(y)}(),f.SHA1})}(sha1)),sha1.exports}var sha256={exports:{}},hasRequiredSha256;function requireSha256(){return hasRequiredSha256||(hasRequiredSha256=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(d){var h=f,p=h.lib,v=p.WordArray,m=p.Hasher,g=h.algo,y=[],x=[];(function(){function j(Bn){for(var w=d.sqrt(Bn),J=2;J<=w;J++)if(!(Bn%J))return!1;return!0}function re(Bn){return(Bn-(Bn|0))*4294967296|0}for(var vn=2,Fn=0;Fn<64;)j(vn)&&(Fn<8&&(y[Fn]=re(d.pow(vn,1/2))),x[Fn]=re(d.pow(vn,1/3)),Fn++),vn++})();var Pn=[],b=g.SHA256=m.extend({_doReset:function(){this._hash=new v.init(y.slice(0))},_doProcessBlock:function(j,re){for(var vn=this._hash.words,Fn=vn[0],Bn=vn[1],w=vn[2],J=vn[3],gn=vn[4],zn=vn[5],Vn=vn[6],Kn=vn[7],Un=0;Un<64;Un++){if(Un<16)Pn[Un]=j[re+Un]|0;else{var Qn=Pn[Un-15],Jn=(Qn<<25|Qn>>>7)^(Qn<<14|Qn>>>18)^Qn>>>3,Yn=Pn[Un-2],Zn=(Yn<<15|Yn>>>17)^(Yn<<13|Yn>>>19)^Yn>>>10;Pn[Un]=Jn+Pn[Un-7]+Zn+Pn[Un-16]}var nr=gn&zn^~gn&Vn,sr=Fn&Bn^Fn&w^Bn&w,ur=(Fn<<30|Fn>>>2)^(Fn<<19|Fn>>>13)^(Fn<<10|Fn>>>22),Gn=(gn<<26|gn>>>6)^(gn<<21|gn>>>11)^(gn<<7|gn>>>25),Wn=Kn+Gn+nr+x[Un]+Pn[Un],Rn=ur+sr;Kn=Vn,Vn=zn,zn=gn,gn=J+Wn|0,J=w,w=Bn,Bn=Fn,Fn=Wn+Rn|0}vn[0]=vn[0]+Fn|0,vn[1]=vn[1]+Bn|0,vn[2]=vn[2]+w|0,vn[3]=vn[3]+J|0,vn[4]=vn[4]+gn|0,vn[5]=vn[5]+zn|0,vn[6]=vn[6]+Vn|0,vn[7]=vn[7]+Kn|0},_doFinalize:function(){var j=this._data,re=j.words,vn=this._nDataBytes*8,Fn=j.sigBytes*8;return re[Fn>>>5]|=128<<24-Fn%32,re[(Fn+64>>>9<<4)+14]=d.floor(vn/4294967296),re[(Fn+64>>>9<<4)+15]=vn,j.sigBytes=re.length*4,this._process(),this._hash},clone:function(){var j=m.clone.call(this);return j._hash=this._hash.clone(),j}});h.SHA256=m._createHelper(b),h.HmacSHA256=m._createHmacHelper(b)}(Math),f.SHA256})}(sha256)),sha256.exports}var sha224={exports:{}},hasRequiredSha224;function requireSha224(){return hasRequiredSha224||(hasRequiredSha224=1,function(c,u){(function(f,d,h){c.exports=d(requireCore(),requireSha256())})(commonjsGlobal,function(f){return function(){var d=f,h=d.lib,p=h.WordArray,v=d.algo,m=v.SHA256,g=v.SHA224=m.extend({_doReset:function(){this._hash=new p.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var y=m._doFinalize.call(this);return y.sigBytes-=4,y}});d.SHA224=m._createHelper(g),d.HmacSHA224=m._createHmacHelper(g)}(),f.SHA224})}(sha224)),sha224.exports}var sha512={exports:{}},hasRequiredSha512;function requireSha512(){return hasRequiredSha512||(hasRequiredSha512=1,function(c,u){(function(f,d,h){c.exports=d(requireCore(),requireX64Core())})(commonjsGlobal,function(f){return function(){var d=f,h=d.lib,p=h.Hasher,v=d.x64,m=v.Word,g=v.WordArray,y=d.algo;function x(){return m.create.apply(m,arguments)}var Pn=[x(1116352408,3609767458),x(1899447441,602891725),x(3049323471,3964484399),x(3921009573,2173295548),x(961987163,4081628472),x(1508970993,3053834265),x(2453635748,2937671579),x(2870763221,3664609560),x(3624381080,2734883394),x(310598401,1164996542),x(607225278,1323610764),x(1426881987,3590304994),x(1925078388,4068182383),x(2162078206,991336113),x(2614888103,633803317),x(3248222580,3479774868),x(3835390401,2666613458),x(4022224774,944711139),x(264347078,2341262773),x(604807628,2007800933),x(770255983,1495990901),x(1249150122,1856431235),x(1555081692,3175218132),x(1996064986,2198950837),x(2554220882,3999719339),x(2821834349,766784016),x(2952996808,2566594879),x(3210313671,3203337956),x(3336571891,1034457026),x(3584528711,2466948901),x(113926993,3758326383),x(338241895,168717936),x(666307205,1188179964),x(773529912,1546045734),x(1294757372,1522805485),x(1396182291,2643833823),x(1695183700,2343527390),x(1986661051,1014477480),x(2177026350,1206759142),x(2456956037,344077627),x(2730485921,1290863460),x(2820302411,3158454273),x(3259730800,3505952657),x(3345764771,106217008),x(3516065817,3606008344),x(3600352804,1432725776),x(4094571909,1467031594),x(275423344,851169720),x(430227734,3100823752),x(506948616,1363258195),x(659060556,3750685593),x(883997877,3785050280),x(958139571,3318307427),x(1322822218,3812723403),x(1537002063,2003034995),x(1747873779,3602036899),x(1955562222,1575990012),x(2024104815,1125592928),x(2227730452,2716904306),x(2361852424,442776044),x(2428436474,593698344),x(2756734187,3733110249),x(3204031479,2999351573),x(3329325298,3815920427),x(3391569614,3928383900),x(3515267271,566280711),x(3940187606,3454069534),x(4118630271,4000239992),x(116418474,1914138554),x(174292421,2731055270),x(289380356,3203993006),x(460393269,320620315),x(685471733,587496836),x(852142971,1086792851),x(1017036298,365543100),x(1126000580,2618297676),x(1288033470,3409855158),x(1501505948,4234509866),x(1607167915,987167468),x(1816402316,1246189591)],b=[];(function(){for(var re=0;re<80;re++)b[re]=x()})();var j=y.SHA512=p.extend({_doReset:function(){this._hash=new g.init([new m.init(1779033703,4089235720),new m.init(3144134277,2227873595),new m.init(1013904242,4271175723),new m.init(2773480762,1595750129),new m.init(1359893119,2917565137),new m.init(2600822924,725511199),new m.init(528734635,4215389547),new m.init(1541459225,327033209)])},_doProcessBlock:function(re,vn){for(var Fn=this._hash.words,Bn=Fn[0],w=Fn[1],J=Fn[2],gn=Fn[3],zn=Fn[4],Vn=Fn[5],Kn=Fn[6],Un=Fn[7],Qn=Bn.high,Jn=Bn.low,Yn=w.high,Zn=w.low,nr=J.high,sr=J.low,ur=gn.high,Gn=gn.low,Wn=zn.high,Rn=zn.low,qn=Vn.high,Xn=Vn.low,Hn=Kn.high,tr=Kn.low,cr=Un.high,ir=Un.low,er=Qn,pr=Jn,lr=Yn,or=Zn,ar=nr,vr=sr,fr=ur,mr=Gn,dr=Wn,hr=Rn,yr=qn,_r=Xn,gr=Hn,br=tr,Er=cr,Mr=ir,Ir=0;Ir<80;Ir++){var Fr,Or,Nr=b[Ir];if(Ir<16)Or=Nr.high=re[vn+Ir*2]|0,Fr=Nr.low=re[vn+Ir*2+1]|0;else{var zr=b[Ir-15],Rr=zr.high,Vr=zr.low,Hr=(Rr>>>1|Vr<<31)^(Rr>>>8|Vr<<24)^Rr>>>7,Gr=(Vr>>>1|Rr<<31)^(Vr>>>8|Rr<<24)^(Vr>>>7|Rr<<25),Ur=b[Ir-2],Yr=Ur.high,Qr=Ur.low,ri=(Yr>>>19|Qr<<13)^(Yr<<3|Qr>>>29)^Yr>>>6,ti=(Qr>>>19|Yr<<13)^(Qr<<3|Yr>>>29)^(Qr>>>6|Yr<<26),ai=b[Ir-7],vi=ai.high,hi=ai.low,oi=b[Ir-16],xi=oi.high,Ci=oi.low;Fr=Gr+hi,Or=Hr+vi+(Fr>>>0<Gr>>>0?1:0),Fr=Fr+ti,Or=Or+ri+(Fr>>>0<ti>>>0?1:0),Fr=Fr+Ci,Or=Or+xi+(Fr>>>0<Ci>>>0?1:0),Nr.high=Or,Nr.low=Fr}var Si=dr&yr^~dr&gr,pi=hr&_r^~hr&br,wi=er&lr^er&ar^lr&ar,ki=pr&or^pr&vr^or&vr,mi=(er>>>28|pr<<4)^(er<<30|pr>>>2)^(er<<25|pr>>>7),di=(pr>>>28|er<<4)^(pr<<30|er>>>2)^(pr<<25|er>>>7),Pi=(dr>>>14|hr<<18)^(dr>>>18|hr<<14)^(dr<<23|hr>>>9),gi=(hr>>>14|dr<<18)^(hr>>>18|dr<<14)^(hr<<23|dr>>>9),Ei=Pn[Ir],Ii=Ei.high,_i=Ei.low,ni=Mr+gi,ii=Er+Pi+(ni>>>0<Mr>>>0?1:0),ni=ni+pi,ii=ii+Si+(ni>>>0<pi>>>0?1:0),ni=ni+_i,ii=ii+Ii+(ni>>>0<_i>>>0?1:0),ni=ni+Fr,ii=ii+Or+(ni>>>0<Fr>>>0?1:0),Di=di+ki,Sr=mi+wi+(Di>>>0<di>>>0?1:0);Er=gr,Mr=br,gr=yr,br=_r,yr=dr,_r=hr,hr=mr+ni|0,dr=fr+ii+(hr>>>0<mr>>>0?1:0)|0,fr=ar,mr=vr,ar=lr,vr=or,lr=er,or=pr,pr=ni+Di|0,er=ii+Sr+(pr>>>0<ni>>>0?1:0)|0}Jn=Bn.low=Jn+pr,Bn.high=Qn+er+(Jn>>>0<pr>>>0?1:0),Zn=w.low=Zn+or,w.high=Yn+lr+(Zn>>>0<or>>>0?1:0),sr=J.low=sr+vr,J.high=nr+ar+(sr>>>0<vr>>>0?1:0),Gn=gn.low=Gn+mr,gn.high=ur+fr+(Gn>>>0<mr>>>0?1:0),Rn=zn.low=Rn+hr,zn.high=Wn+dr+(Rn>>>0<hr>>>0?1:0),Xn=Vn.low=Xn+_r,Vn.high=qn+yr+(Xn>>>0<_r>>>0?1:0),tr=Kn.low=tr+br,Kn.high=Hn+gr+(tr>>>0<br>>>0?1:0),ir=Un.low=ir+Mr,Un.high=cr+Er+(ir>>>0<Mr>>>0?1:0)},_doFinalize:function(){var re=this._data,vn=re.words,Fn=this._nDataBytes*8,Bn=re.sigBytes*8;vn[Bn>>>5]|=128<<24-Bn%32,vn[(Bn+128>>>10<<5)+30]=Math.floor(Fn/4294967296),vn[(Bn+128>>>10<<5)+31]=Fn,re.sigBytes=vn.length*4,this._process();var w=this._hash.toX32();return w},clone:function(){var re=p.clone.call(this);return re._hash=this._hash.clone(),re},blockSize:1024/32});d.SHA512=p._createHelper(j),d.HmacSHA512=p._createHmacHelper(j)}(),f.SHA512})}(sha512)),sha512.exports}var sha384={exports:{}},hasRequiredSha384;function requireSha384(){return hasRequiredSha384||(hasRequiredSha384=1,function(c,u){(function(f,d,h){c.exports=d(requireCore(),requireX64Core(),requireSha512())})(commonjsGlobal,function(f){return function(){var d=f,h=d.x64,p=h.Word,v=h.WordArray,m=d.algo,g=m.SHA512,y=m.SHA384=g.extend({_doReset:function(){this._hash=new v.init([new p.init(3418070365,3238371032),new p.init(1654270250,914150663),new p.init(2438529370,812702999),new p.init(355462360,4144912697),new p.init(1731405415,4290775857),new p.init(2394180231,1750603025),new p.init(3675008525,1694076839),new p.init(1203062813,3204075428)])},_doFinalize:function(){var x=g._doFinalize.call(this);return x.sigBytes-=16,x}});d.SHA384=g._createHelper(y),d.HmacSHA384=g._createHmacHelper(y)}(),f.SHA384})}(sha384)),sha384.exports}var sha3={exports:{}},hasRequiredSha3;function requireSha3(){return hasRequiredSha3||(hasRequiredSha3=1,function(c,u){(function(f,d,h){c.exports=d(requireCore(),requireX64Core())})(commonjsGlobal,function(f){return function(d){var h=f,p=h.lib,v=p.WordArray,m=p.Hasher,g=h.x64,y=g.Word,x=h.algo,Pn=[],b=[],j=[];(function(){for(var Fn=1,Bn=0,w=0;w<24;w++){Pn[Fn+5*Bn]=(w+1)*(w+2)/2%64;var J=Bn%5,gn=(2*Fn+3*Bn)%5;Fn=J,Bn=gn}for(var Fn=0;Fn<5;Fn++)for(var Bn=0;Bn<5;Bn++)b[Fn+5*Bn]=Bn+(2*Fn+3*Bn)%5*5;for(var zn=1,Vn=0;Vn<24;Vn++){for(var Kn=0,Un=0,Qn=0;Qn<7;Qn++){if(zn&1){var Jn=(1<<Qn)-1;Jn<32?Un^=1<<Jn:Kn^=1<<Jn-32}zn&128?zn=zn<<1^113:zn<<=1}j[Vn]=y.create(Kn,Un)}})();var re=[];(function(){for(var Fn=0;Fn<25;Fn++)re[Fn]=y.create()})();var vn=x.SHA3=m.extend({cfg:m.cfg.extend({outputLength:512}),_doReset:function(){for(var Fn=this._state=[],Bn=0;Bn<25;Bn++)Fn[Bn]=new y.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(Fn,Bn){for(var w=this._state,J=this.blockSize/2,gn=0;gn<J;gn++){var zn=Fn[Bn+2*gn],Vn=Fn[Bn+2*gn+1];zn=(zn<<8|zn>>>24)&16711935|(zn<<24|zn>>>8)&4278255360,Vn=(Vn<<8|Vn>>>24)&16711935|(Vn<<24|Vn>>>8)&4278255360;var Kn=w[gn];Kn.high^=Vn,Kn.low^=zn}for(var Un=0;Un<24;Un++){for(var Qn=0;Qn<5;Qn++){for(var Jn=0,Yn=0,Zn=0;Zn<5;Zn++){var Kn=w[Qn+5*Zn];Jn^=Kn.high,Yn^=Kn.low}var nr=re[Qn];nr.high=Jn,nr.low=Yn}for(var Qn=0;Qn<5;Qn++)for(var sr=re[(Qn+4)%5],ur=re[(Qn+1)%5],Gn=ur.high,Wn=ur.low,Jn=sr.high^(Gn<<1|Wn>>>31),Yn=sr.low^(Wn<<1|Gn>>>31),Zn=0;Zn<5;Zn++){var Kn=w[Qn+5*Zn];Kn.high^=Jn,Kn.low^=Yn}for(var Rn=1;Rn<25;Rn++){var Jn,Yn,Kn=w[Rn],qn=Kn.high,Xn=Kn.low,Hn=Pn[Rn];Hn<32?(Jn=qn<<Hn|Xn>>>32-Hn,Yn=Xn<<Hn|qn>>>32-Hn):(Jn=Xn<<Hn-32|qn>>>64-Hn,Yn=qn<<Hn-32|Xn>>>64-Hn);var tr=re[b[Rn]];tr.high=Jn,tr.low=Yn}var cr=re[0],ir=w[0];cr.high=ir.high,cr.low=ir.low;for(var Qn=0;Qn<5;Qn++)for(var Zn=0;Zn<5;Zn++){var Rn=Qn+5*Zn,Kn=w[Rn],er=re[Rn],pr=re[(Qn+1)%5+5*Zn],lr=re[(Qn+2)%5+5*Zn];Kn.high=er.high^~pr.high&lr.high,Kn.low=er.low^~pr.low&lr.low}var Kn=w[0],or=j[Un];Kn.high^=or.high,Kn.low^=or.low}},_doFinalize:function(){var Fn=this._data,Bn=Fn.words;this._nDataBytes*8;var w=Fn.sigBytes*8,J=this.blockSize*32;Bn[w>>>5]|=1<<24-w%32,Bn[(d.ceil((w+1)/J)*J>>>5)-1]|=128,Fn.sigBytes=Bn.length*4,this._process();for(var gn=this._state,zn=this.cfg.outputLength/8,Vn=zn/8,Kn=[],Un=0;Un<Vn;Un++){var Qn=gn[Un],Jn=Qn.high,Yn=Qn.low;Jn=(Jn<<8|Jn>>>24)&16711935|(Jn<<24|Jn>>>8)&4278255360,Yn=(Yn<<8|Yn>>>24)&16711935|(Yn<<24|Yn>>>8)&4278255360,Kn.push(Yn),Kn.push(Jn)}return new v.init(Kn,zn)},clone:function(){for(var Fn=m.clone.call(this),Bn=Fn._state=this._state.slice(0),w=0;w<25;w++)Bn[w]=Bn[w].clone();return Fn}});h.SHA3=m._createHelper(vn),h.HmacSHA3=m._createHmacHelper(vn)}(Math),f.SHA3})}(sha3)),sha3.exports}var ripemd160={exports:{}},hasRequiredRipemd160;function requireRipemd160(){return hasRequiredRipemd160||(hasRequiredRipemd160=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){/** @preserve
61
+ `],...function({vnode:x,recurseCount:Pn}){const b=Pn>0?`... (${Pn} recursive calls)`:"",j=!!x.component&&x.component.parent==null,re=` at <${oe(x.component,x.type,j)}`,vn=">"+b;return x.props?[re,...L(x.props),vn]:[re+vn]}(g))}),m}(h)),console.warn(...p)}}function L(c){const u=[],f=Object.keys(c);return f.slice(0,3).forEach(d=>{u.push(...T(d,c[d]))}),f.length>3&&u.push(" ..."),u}function T(c,u,f){return typeof u=="string"?(u=JSON.stringify(u),f?u:[`${c}=${u}`]):typeof u=="number"||typeof u=="boolean"||u==null?f?u:[`${c}=${u}`]:A(u)?(u=T(c,S(u.value),!0),f?u:[`${c}=Ref<`,u,">"]):i(u)?[`${c}=fn${u.name?`<${u.name}>`:""}`]:(u=S(u),f?u:[`${c}=`,u])}const N={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"};function $(c,u,f,d){let h;try{h=d?c(...d):c()}catch(p){(function(v,m,g,y=!0){const x=m?m.vnode:null;if(m){let Pn=m.parent;const b=m.proxy,j=process.env.NODE_ENV!=="production"?N[g]:g;for(;Pn;){const vn=Pn.ec;if(vn){for(let Fn=0;Fn<vn.length;Fn++)if(vn[Fn](v,b,j)===!1)return}Pn=Pn.parent}const re=m.appContext.config.errorHandler;if(re)return void $(re,null,10,[v,b,j])}(function(Pn,b,j,re=!0){if(process.env.NODE_ENV!=="production"){const Fn=N[b];if(j&&(vn=j,O.push(vn)),C("Unhandled error"+(Fn?` during execution of ${Fn}`:"")),j&&O.pop(),re)throw Pn;console.error(Pn)}else console.error(Pn);var vn})(v,g,x,y)})(p,u,f)}return h}let k=!1,D=!1;const M=[];let E=0;const I=[];let F=null,V=0;const z$1=Promise.resolve();function R(c){M.length&&M.includes(c,k&&c.allowRecurse?E+1:E)||(c.id==null?M.push(c):M.splice(function(u){let f=E+1,d=M.length;for(;f<d;){const h=f+d>>>1,p=M[h],v=P(p);v<u||v===u&&p.pre?f=h+1:d=h}return f}(c.id),0,c),U())}function U(){k||D||(D=!0,z$1.then(Y))}const P=c=>c.id==null?1/0:c.id,G=(c,u)=>{const f=P(c)-P(u);if(f===0){if(c.pre&&!u.pre)return-1;if(u.pre&&!c.pre)return 1}return f};function Y(c){D=!1,k=!0,process.env.NODE_ENV!=="production"&&(c=c||new Map),M.sort(G);const u=process.env.NODE_ENV!=="production"?f=>W(c,f):n;try{for(E=0;E<M.length;E++){const f=M[E];if(f&&f.active!==!1){if(process.env.NODE_ENV!=="production"&&u(f))continue;$(f,null,14)}}}finally{E=0,M.length=0,function(f){if(I.length){const d=[...new Set(I)];if(I.length=0,F)return void F.push(...d);for(F=d,process.env.NODE_ENV!=="production"&&(f=f||new Map),F.sort((h,p)=>P(h)-P(p)),V=0;V<F.length;V++)process.env.NODE_ENV!=="production"&&W(f,F[V])||F[V]();F=null,V=0}}(c),k=!1,(M.length||I.length)&&Y(c)}}function W(c,u){if(c.has(u)){const f=c.get(u);if(f>100){const d=u.ownerInstance,h=d&&ne(d.type);return C(`Maximum recursive updates exceeded${h?` in component <${h}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}c.set(u,f+1)}else c.set(u,1)}const H=new Set;process.env.NODE_ENV!=="production"&&(s().__VUE_HMR_RUNTIME__={createRecord:Q(function(c,u){return B.has(c)?!1:(B.set(c,{initialDef:K(u),instances:new Set}),!0)}),rerender:Q(function(c,u){const f=B.get(c);f&&(f.initialDef.render=u,[...f.instances].forEach(d=>{u&&(d.render=u,K(d.type).render=u),d.renderCache=[],d.update()}))}),reload:Q(function(c,u){const f=B.get(c);if(!f)return;u=K(u),q(f.initialDef,u);const d=[...f.instances];for(const p of d){const v=K(p.type);H.has(v)||(v!==f.initialDef&&q(v,u),H.add(v)),p.appContext.propsCache.delete(p.type),p.appContext.emitsCache.delete(p.type),p.appContext.optionsCache.delete(p.type),p.ceReload?(H.add(v),p.ceReload(u.styles),H.delete(v)):p.parent?R(p.parent.update):p.appContext.reload?p.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}h=()=>{for(const p of d)H.delete(K(p.type))},r(h)?I.push(...h):F&&F.includes(h,h.allowRecurse?V+1:V)||I.push(h),U();var h})});const B=new Map;function K(c){return i(u=c)&&"__vccOpts"in u?c.__vccOpts:c;var u}function q(c,u){o(c,u);for(const f in c)f==="__file"||f in u||delete c[f]}function Q(c){return(u,f)=>{try{return c(u,f)}catch(d){console.error(d),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let X;process.env.NODE_ENV;let Z="__VUE_INSTANCE_SETTERS__";(X=s()[Z])||(X=s()[Z]=[]),X.push(c=>c);const ee=/(?:^|[-_])(\w)/g,te=c=>c.replace(ee,u=>u.toUpperCase()).replace(/[-_]/g,"");function ne(c,u=!0){return i(c)?c.displayName||c.name:c.name||u&&c.__name}function oe(c,u,f=!1){let d=ne(u);if(!d&&u.__file){const h=u.__file.match(/([^/\\]+)\.\w+$/);h&&(d=h[1])}if(!d&&c&&c.parent){const h=p=>{for(const v in p)if(p[v]===u)return v};d=h(c.components||c.parent.type.components)||h(c.appContext.components)}return d?te(d):f?"App":"Anonymous"}function ie(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}var ae,le={exports:{}};function se(){return ae||(ae=1,le.exports=function(){var c=1e3,u=6e4,f=36e5,d="millisecond",h="second",p="minute",v="hour",m="day",g="week",y="month",x="quarter",Pn="year",b="date",j="Invalid Date",re=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,vn=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Fn={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Zn){var nr=["th","st","nd","rd"],sr=Zn%100;return"["+Zn+(nr[(sr-20)%10]||nr[sr]||nr[0])+"]"}},Bn=function(Zn,nr,sr){var ur=String(Zn);return!ur||ur.length>=nr?Zn:""+Array(nr+1-ur.length).join(sr)+Zn},w={s:Bn,z:function(Zn){var nr=-Zn.utcOffset(),sr=Math.abs(nr),ur=Math.floor(sr/60),Gn=sr%60;return(nr<=0?"+":"-")+Bn(ur,2,"0")+":"+Bn(Gn,2,"0")},m:function Zn(nr,sr){if(nr.date()<sr.date())return-Zn(sr,nr);var ur=12*(sr.year()-nr.year())+(sr.month()-nr.month()),Gn=nr.clone().add(ur,y),Wn=sr-Gn<0,Rn=nr.clone().add(ur+(Wn?-1:1),y);return+(-(ur+(sr-Gn)/(Wn?Gn-Rn:Rn-Gn))||0)},a:function(Zn){return Zn<0?Math.ceil(Zn)||0:Math.floor(Zn)},p:function(Zn){return{M:y,y:Pn,w:g,d:m,D:b,h:v,m:p,s:h,ms:d,Q:x}[Zn]||String(Zn||"").toLowerCase().replace(/s$/,"")},u:function(Zn){return Zn===void 0}},J="en",gn={};gn[J]=Fn;var zn="$isDayjsObject",Vn=function(Zn){return Zn instanceof Jn||!(!Zn||!Zn[zn])},Kn=function Zn(nr,sr,ur){var Gn;if(!nr)return J;if(typeof nr=="string"){var Wn=nr.toLowerCase();gn[Wn]&&(Gn=Wn),sr&&(gn[Wn]=sr,Gn=Wn);var Rn=nr.split("-");if(!Gn&&Rn.length>1)return Zn(Rn[0])}else{var qn=nr.name;gn[qn]=nr,Gn=qn}return!ur&&Gn&&(J=Gn),Gn||!ur&&J},Un=function(Zn,nr){if(Vn(Zn))return Zn.clone();var sr=typeof nr=="object"?nr:{};return sr.date=Zn,sr.args=arguments,new Jn(sr)},Qn=w;Qn.l=Kn,Qn.i=Vn,Qn.w=function(Zn,nr){return Un(Zn,{locale:nr.$L,utc:nr.$u,x:nr.$x,$offset:nr.$offset})};var Jn=function(){function Zn(sr){this.$L=Kn(sr.locale,null,!0),this.parse(sr),this.$x=this.$x||sr.x||{},this[zn]=!0}var nr=Zn.prototype;return nr.parse=function(sr){this.$d=function(ur){var Gn=ur.date,Wn=ur.utc;if(Gn===null)return new Date(NaN);if(Qn.u(Gn))return new Date;if(Gn instanceof Date)return new Date(Gn);if(typeof Gn=="string"&&!/Z$/i.test(Gn)){var Rn=Gn.match(re);if(Rn){var qn=Rn[2]-1||0,Xn=(Rn[7]||"0").substring(0,3);return Wn?new Date(Date.UTC(Rn[1],qn,Rn[3]||1,Rn[4]||0,Rn[5]||0,Rn[6]||0,Xn)):new Date(Rn[1],qn,Rn[3]||1,Rn[4]||0,Rn[5]||0,Rn[6]||0,Xn)}}return new Date(Gn)}(sr),this.init()},nr.init=function(){var sr=this.$d;this.$y=sr.getFullYear(),this.$M=sr.getMonth(),this.$D=sr.getDate(),this.$W=sr.getDay(),this.$H=sr.getHours(),this.$m=sr.getMinutes(),this.$s=sr.getSeconds(),this.$ms=sr.getMilliseconds()},nr.$utils=function(){return Qn},nr.isValid=function(){return this.$d.toString()!==j},nr.isSame=function(sr,ur){var Gn=Un(sr);return this.startOf(ur)<=Gn&&Gn<=this.endOf(ur)},nr.isAfter=function(sr,ur){return Un(sr)<this.startOf(ur)},nr.isBefore=function(sr,ur){return this.endOf(ur)<Un(sr)},nr.$g=function(sr,ur,Gn){return Qn.u(sr)?this[ur]:this.set(Gn,sr)},nr.unix=function(){return Math.floor(this.valueOf()/1e3)},nr.valueOf=function(){return this.$d.getTime()},nr.startOf=function(sr,ur){var Gn=this,Wn=!!Qn.u(ur)||ur,Rn=Qn.p(sr),qn=function(lr,or){var ar=Qn.w(Gn.$u?Date.UTC(Gn.$y,or,lr):new Date(Gn.$y,or,lr),Gn);return Wn?ar:ar.endOf(m)},Xn=function(lr,or){return Qn.w(Gn.toDate()[lr].apply(Gn.toDate("s"),(Wn?[0,0,0,0]:[23,59,59,999]).slice(or)),Gn)},Hn=this.$W,tr=this.$M,cr=this.$D,ir="set"+(this.$u?"UTC":"");switch(Rn){case Pn:return Wn?qn(1,0):qn(31,11);case y:return Wn?qn(1,tr):qn(0,tr+1);case g:var er=this.$locale().weekStart||0,pr=(Hn<er?Hn+7:Hn)-er;return qn(Wn?cr-pr:cr+(6-pr),tr);case m:case b:return Xn(ir+"Hours",0);case v:return Xn(ir+"Minutes",1);case p:return Xn(ir+"Seconds",2);case h:return Xn(ir+"Milliseconds",3);default:return this.clone()}},nr.endOf=function(sr){return this.startOf(sr,!1)},nr.$set=function(sr,ur){var Gn,Wn=Qn.p(sr),Rn="set"+(this.$u?"UTC":""),qn=(Gn={},Gn[m]=Rn+"Date",Gn[b]=Rn+"Date",Gn[y]=Rn+"Month",Gn[Pn]=Rn+"FullYear",Gn[v]=Rn+"Hours",Gn[p]=Rn+"Minutes",Gn[h]=Rn+"Seconds",Gn[d]=Rn+"Milliseconds",Gn)[Wn],Xn=Wn===m?this.$D+(ur-this.$W):ur;if(Wn===y||Wn===Pn){var Hn=this.clone().set(b,1);Hn.$d[qn](Xn),Hn.init(),this.$d=Hn.set(b,Math.min(this.$D,Hn.daysInMonth())).$d}else qn&&this.$d[qn](Xn);return this.init(),this},nr.set=function(sr,ur){return this.clone().$set(sr,ur)},nr.get=function(sr){return this[Qn.p(sr)]()},nr.add=function(sr,ur){var Gn,Wn=this;sr=Number(sr);var Rn=Qn.p(ur),qn=function(tr){var cr=Un(Wn);return Qn.w(cr.date(cr.date()+Math.round(tr*sr)),Wn)};if(Rn===y)return this.set(y,this.$M+sr);if(Rn===Pn)return this.set(Pn,this.$y+sr);if(Rn===m)return qn(1);if(Rn===g)return qn(7);var Xn=(Gn={},Gn[p]=u,Gn[v]=f,Gn[h]=c,Gn)[Rn]||1,Hn=this.$d.getTime()+sr*Xn;return Qn.w(Hn,this)},nr.subtract=function(sr,ur){return this.add(-1*sr,ur)},nr.format=function(sr){var ur=this,Gn=this.$locale();if(!this.isValid())return Gn.invalidDate||j;var Wn=sr||"YYYY-MM-DDTHH:mm:ssZ",Rn=Qn.z(this),qn=this.$H,Xn=this.$m,Hn=this.$M,tr=Gn.weekdays,cr=Gn.months,ir=Gn.meridiem,er=function(or,ar,vr,fr){return or&&(or[ar]||or(ur,Wn))||vr[ar].slice(0,fr)},pr=function(or){return Qn.s(qn%12||12,or,"0")},lr=ir||function(or,ar,vr){var fr=or<12?"AM":"PM";return vr?fr.toLowerCase():fr};return Wn.replace(vn,function(or,ar){return ar||function(vr){switch(vr){case"YY":return String(ur.$y).slice(-2);case"YYYY":return Qn.s(ur.$y,4,"0");case"M":return Hn+1;case"MM":return Qn.s(Hn+1,2,"0");case"MMM":return er(Gn.monthsShort,Hn,cr,3);case"MMMM":return er(cr,Hn);case"D":return ur.$D;case"DD":return Qn.s(ur.$D,2,"0");case"d":return String(ur.$W);case"dd":return er(Gn.weekdaysMin,ur.$W,tr,2);case"ddd":return er(Gn.weekdaysShort,ur.$W,tr,3);case"dddd":return tr[ur.$W];case"H":return String(qn);case"HH":return Qn.s(qn,2,"0");case"h":return pr(1);case"hh":return pr(2);case"a":return lr(qn,Xn,!0);case"A":return lr(qn,Xn,!1);case"m":return String(Xn);case"mm":return Qn.s(Xn,2,"0");case"s":return String(ur.$s);case"ss":return Qn.s(ur.$s,2,"0");case"SSS":return Qn.s(ur.$ms,3,"0");case"Z":return Rn}return null}(or)||Rn.replace(":","")})},nr.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},nr.diff=function(sr,ur,Gn){var Wn,Rn=this,qn=Qn.p(ur),Xn=Un(sr),Hn=(Xn.utcOffset()-this.utcOffset())*u,tr=this-Xn,cr=function(){return Qn.m(Rn,Xn)};switch(qn){case Pn:Wn=cr()/12;break;case y:Wn=cr();break;case x:Wn=cr()/3;break;case g:Wn=(tr-Hn)/6048e5;break;case m:Wn=(tr-Hn)/864e5;break;case v:Wn=tr/f;break;case p:Wn=tr/u;break;case h:Wn=tr/c;break;default:Wn=tr}return Gn?Wn:Qn.a(Wn)},nr.daysInMonth=function(){return this.endOf(y).$D},nr.$locale=function(){return gn[this.$L]},nr.locale=function(sr,ur){if(!sr)return this.$L;var Gn=this.clone(),Wn=Kn(sr,ur,!0);return Wn&&(Gn.$L=Wn),Gn},nr.clone=function(){return Qn.w(this.$d,this)},nr.toDate=function(){return new Date(this.valueOf())},nr.toJSON=function(){return this.isValid()?this.toISOString():null},nr.toISOString=function(){return this.$d.toISOString()},nr.toString=function(){return this.$d.toUTCString()},Zn}(),Yn=Jn.prototype;return Un.prototype=Yn,[["$ms",d],["$s",h],["$m",p],["$H",v],["$W",m],["$M",y],["$y",Pn],["$D",b]].forEach(function(Zn){Yn[Zn[1]]=function(nr){return this.$g(nr,Zn[0],Zn[1])}}),Un.extend=function(Zn,nr){return Zn.$i||(Zn(nr,Jn,Un),Zn.$i=!0),Un},Un.locale=Kn,Un.isDayjs=Vn,Un.unix=function(Zn){return Un(1e3*Zn)},Un.en=gn[J],Un.Ls=gn,Un.p={},Un}()),le.exports}var ce=ie(se()),ue=typeof global=="object"&&global&&global.Object===Object&&global,de=typeof self=="object"&&self&&self.Object===Object&&self,fe=ue||de||Function("return this")(),pe=fe.Symbol,he=Object.prototype,ye=he.hasOwnProperty,me=he.toString,be=pe?pe.toStringTag:void 0,ge=Object.prototype.toString,ve=pe?pe.toStringTag:void 0;function xe(c){return c==null?c===void 0?"[object Undefined]":"[object Null]":ve&&ve in Object(c)?function(u){var f=ye.call(u,be),d=u[be];try{u[be]=void 0;var h=!0}catch{}var p=me.call(u);return h&&(f?u[be]=d:delete u[be]),p}(c):function(u){return ge.call(u)}(c)}function we(c){return c!=null&&typeof c=="object"}var Se=Array.isArray;function Ae(c){var u=typeof c;return c!=null&&(u=="object"||u=="function")}function _e(c){if(!Ae(c))return!1;var u=xe(c);return u=="[object Function]"||u=="[object GeneratorFunction]"||u=="[object AsyncFunction]"||u=="[object Proxy]"}var je,Oe=fe["__core-js_shared__"],Ce=(je=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||""))?"Symbol(src)_1."+je:"",Le=Function.prototype.toString;function Te(c){if(c!=null){try{return Le.call(c)}catch{}try{return c+""}catch{}}return""}var Ne=/^\[object .+?Constructor\]$/,$e=Function.prototype,ke=Object.prototype,De=$e.toString,Me=ke.hasOwnProperty,Ee=RegExp("^"+De.call(Me).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ie(c){return!(!Ae(c)||(u=c,Ce&&Ce in u))&&(_e(c)?Ee:Ne).test(Te(c));var u}function Fe(c,u){var f=function(d,h){return d==null?void 0:d[h]}(c,u);return Ie(f)?f:void 0}var Ve=Fe(fe,"WeakMap"),ze=Object.create,Re=function(){function c(){}return function(u){if(!Ae(u))return{};if(ze)return ze(u);c.prototype=u;var f=new c;return c.prototype=void 0,f}}(),Ue=function(){try{var c=Fe(Object,"defineProperty");return c({},"",{}),c}catch{}}(),Pe=/^(?:0|[1-9]\d*)$/;function Ge(c,u){var f=typeof c;return!!(u=u??9007199254740991)&&(f=="number"||f!="symbol"&&Pe.test(c))&&c>-1&&c%1==0&&c<u}function Ye(c,u){return c===u||c!=c&&u!=u}var We=Object.prototype.hasOwnProperty;function He(c,u,f){var d=c[u];We.call(c,u)&&Ye(d,f)&&(f!==void 0||u in c)||function(h,p,v){p=="__proto__"&&Ue?Ue(h,p,{configurable:!0,enumerable:!0,value:v,writable:!0}):h[p]=v}(c,u,f)}function Be(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=9007199254740991}var Ke=Object.prototype;function qe(c){var u=c&&c.constructor;return c===(typeof u=="function"&&u.prototype||Ke)}function Qe(c){return we(c)&&xe(c)=="[object Arguments]"}var Je=Object.prototype,Xe=Je.hasOwnProperty,Ze=Je.propertyIsEnumerable,et=Qe(function(){return arguments}())?Qe:function(c){return we(c)&&Xe.call(c,"callee")&&!Ze.call(c,"callee")},tt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,nt=tt&&typeof module=="object"&&module&&!module.nodeType&&module,ot=nt&&nt.exports===tt?fe.Buffer:void 0,rt=(ot?ot.isBuffer:void 0)||function(){return!1},it={};function at(c){return function(u){return c(u)}}it["[object Float32Array]"]=it["[object Float64Array]"]=it["[object Int8Array]"]=it["[object Int16Array]"]=it["[object Int32Array]"]=it["[object Uint8Array]"]=it["[object Uint8ClampedArray]"]=it["[object Uint16Array]"]=it["[object Uint32Array]"]=!0,it["[object Arguments]"]=it["[object Array]"]=it["[object ArrayBuffer]"]=it["[object Boolean]"]=it["[object DataView]"]=it["[object Date]"]=it["[object Error]"]=it["[object Function]"]=it["[object Map]"]=it["[object Number]"]=it["[object Object]"]=it["[object RegExp]"]=it["[object Set]"]=it["[object String]"]=it["[object WeakMap]"]=!1;var lt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,st=lt&&typeof module=="object"&&module&&!module.nodeType&&module,ct=st&&st.exports===lt&&ue.process,ut=function(){try{var c=st&&st.require&&st.require("util").types;return c||ct&&ct.binding&&ct.binding("util")}catch{}}(),dt=ut&&ut.isTypedArray,ft=dt?at(dt):function(c){return we(c)&&Be(c.length)&&!!it[xe(c)]},pt=Object.prototype.hasOwnProperty;function ht(c,u){var f=Se(c),d=!f&&et(c),h=!f&&!d&&rt(c),p=!f&&!d&&!h&&ft(c),v=f||d||h||p,m=v?function(x,Pn){for(var b=-1,j=Array(x);++b<x;)j[b]=Pn(b);return j}(c.length,String):[],g=m.length;for(var y in c)!pt.call(c,y)||v&&(y=="length"||h&&(y=="offset"||y=="parent")||p&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||Ge(y,g))||m.push(y);return m}function yt(c,u){return function(f){return c(u(f))}}var mt=yt(Object.keys,Object),bt=Object.prototype.hasOwnProperty;function gt(c){return(u=c)!=null&&Be(u.length)&&!_e(u)?ht(c):function(f){if(!qe(f))return mt(f);var d=[];for(var h in Object(f))bt.call(f,h)&&h!="constructor"&&d.push(h);return d}(c);var u}var vt=Fe(Object,"create"),xt=Object.prototype.hasOwnProperty,wt=Object.prototype.hasOwnProperty;function St(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u<f;){var d=c[u];this.set(d[0],d[1])}}function At(c,u){for(var f=c.length;f--;)if(Ye(c[f][0],u))return f;return-1}St.prototype.clear=function(){this.__data__=vt?vt(null):{},this.size=0},St.prototype.delete=function(c){var u=this.has(c)&&delete this.__data__[c];return this.size-=u?1:0,u},St.prototype.get=function(c){var u=this.__data__;if(vt){var f=u[c];return f==="__lodash_hash_undefined__"?void 0:f}return xt.call(u,c)?u[c]:void 0},St.prototype.has=function(c){var u=this.__data__;return vt?u[c]!==void 0:wt.call(u,c)},St.prototype.set=function(c,u){var f=this.__data__;return this.size+=this.has(c)?0:1,f[c]=vt&&u===void 0?"__lodash_hash_undefined__":u,this};var _t=Array.prototype.splice;function jt(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u<f;){var d=c[u];this.set(d[0],d[1])}}jt.prototype.clear=function(){this.__data__=[],this.size=0},jt.prototype.delete=function(c){var u=this.__data__,f=At(u,c);return!(f<0)&&(f==u.length-1?u.pop():_t.call(u,f,1),--this.size,!0)},jt.prototype.get=function(c){var u=this.__data__,f=At(u,c);return f<0?void 0:u[f][1]},jt.prototype.has=function(c){return At(this.__data__,c)>-1},jt.prototype.set=function(c,u){var f=this.__data__,d=At(f,c);return d<0?(++this.size,f.push([c,u])):f[d][1]=u,this};var Ot=Fe(fe,"Map");function Ct(c,u){var f,d,h=c.__data__;return((d=typeof(f=u))=="string"||d=="number"||d=="symbol"||d=="boolean"?f!=="__proto__":f===null)?h[typeof u=="string"?"string":"hash"]:h.map}function Lt(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u<f;){var d=c[u];this.set(d[0],d[1])}}Lt.prototype.clear=function(){this.size=0,this.__data__={hash:new St,map:new(Ot||jt),string:new St}},Lt.prototype.delete=function(c){var u=Ct(this,c).delete(c);return this.size-=u?1:0,u},Lt.prototype.get=function(c){return Ct(this,c).get(c)},Lt.prototype.has=function(c){return Ct(this,c).has(c)},Lt.prototype.set=function(c,u){var f=Ct(this,c),d=f.size;return f.set(c,u),this.size+=f.size==d?0:1,this};var Tt=yt(Object.getPrototypeOf,Object);function Nt(c){var u=this.__data__=new jt(c);this.size=u.size}Nt.prototype.clear=function(){this.__data__=new jt,this.size=0},Nt.prototype.delete=function(c){var u=this.__data__,f=u.delete(c);return this.size=u.size,f},Nt.prototype.get=function(c){return this.__data__.get(c)},Nt.prototype.has=function(c){return this.__data__.has(c)},Nt.prototype.set=function(c,u){var f=this.__data__;if(f instanceof jt){var d=f.__data__;if(!Ot||d.length<199)return d.push([c,u]),this.size=++f.size,this;f=this.__data__=new Lt(d)}return f.set(c,u),this.size=f.size,this};var $t=Object.prototype.propertyIsEnumerable,kt=Object.getOwnPropertySymbols,Dt=kt?function(c){return c==null?[]:(c=Object(c),function(u,f){for(var d=-1,h=u==null?0:u.length,p=0,v=[];++d<h;){var m=u[d];f(m,d,u)&&(v[p++]=m)}return v}(kt(c),function(u){return $t.call(c,u)}))}:function(){return[]};function Mt(c){return function(u,f,d){var h=f(u);return Se(u)?h:function(p,v){for(var m=-1,g=v.length,y=p.length;++m<g;)p[y+m]=v[m];return p}(h,d(u))}(c,gt,Dt)}var Et=Fe(fe,"DataView"),It=Fe(fe,"Promise"),Ft=Fe(fe,"Set"),Vt="[object Map]",zt="[object Promise]",Rt="[object Set]",Ut="[object WeakMap]",Pt="[object DataView]",Gt=Te(Et),Yt=Te(Ot),Wt=Te(It),Ht=Te(Ft),Bt=Te(Ve),Kt=xe;(Et&&Kt(new Et(new ArrayBuffer(1)))!=Pt||Ot&&Kt(new Ot)!=Vt||It&&Kt(It.resolve())!=zt||Ft&&Kt(new Ft)!=Rt||Ve&&Kt(new Ve)!=Ut)&&(Kt=function(c){var u=xe(c),f=u=="[object Object]"?c.constructor:void 0,d=f?Te(f):"";if(d)switch(d){case Gt:return Pt;case Yt:return Vt;case Wt:return zt;case Ht:return Rt;case Bt:return Ut}return u});var qt=Object.prototype.hasOwnProperty,Qt=fe.Uint8Array;function Jt(c){var u=new c.constructor(c.byteLength);return new Qt(u).set(new Qt(c)),u}var Xt=/\w*$/,Zt=pe?pe.prototype:void 0,en=Zt?Zt.valueOf:void 0;function tn(c,u,f){var d,h,p,v,m,g=c.constructor;switch(u){case"[object ArrayBuffer]":return Jt(c);case"[object Boolean]":case"[object Date]":return new g(+c);case"[object DataView]":return m=Jt((v=c).buffer),new v.constructor(m,v.byteOffset,v.byteLength);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(y){var x=Jt(y.buffer);return new y.constructor(x,y.byteOffset,y.length)}(c);case"[object Map]":case"[object Set]":return new g;case"[object Number]":case"[object String]":return new g(c);case"[object RegExp]":return(p=new(h=c).constructor(h.source,Xt.exec(h))).lastIndex=h.lastIndex,p;case"[object Symbol]":return d=c,en?Object(en.call(d)):{}}}var nn=ut&&ut.isMap,on=nn?at(nn):function(c){return we(c)&&Kt(c)=="[object Map]"},rn=ut&&ut.isSet,an=rn?at(rn):function(c){return we(c)&&Kt(c)=="[object Set]"},ln="[object Arguments]",sn="[object Function]",cn="[object Object]",un={};function dn(c,u,f,d,h,p){var v;if(v!==void 0)return v;if(!Ae(c))return c;var m=Se(c);if(m)v=function(b){var j=b.length,re=new b.constructor(j);return j&&typeof b[0]=="string"&&qt.call(b,"index")&&(re.index=b.index,re.input=b.input),re}(c);else{var g=Kt(c),y=g==sn||g=="[object GeneratorFunction]";if(rt(c))return c.slice();if(g==cn||g==ln||y&&!h)v=y?{}:function(b){return typeof b.constructor!="function"||qe(b)?{}:Re(Tt(b))}(c);else{if(!un[g])return h?c:{};v=tn(c,g)}}p||(p=new Nt);var x=p.get(c);if(x)return x;p.set(c,v),an(c)?c.forEach(function(b){v.add(dn(b,u,f,b,c,p))}):on(c)&&c.forEach(function(b,j){v.set(j,dn(b,u,f,j,c,p))});var Pn=m?void 0:Mt(c);return function(b,j){for(var re=-1,vn=b==null?0:b.length;++re<vn&&j(b[re],re,b)!==!1;);}(Pn||c,function(b,j){Pn&&(b=c[j=b]),He(v,j,dn(b,u,f,j,c,p))}),v}un[ln]=un["[object Array]"]=un["[object ArrayBuffer]"]=un["[object DataView]"]=un["[object Boolean]"]=un["[object Date]"]=un["[object Float32Array]"]=un["[object Float64Array]"]=un["[object Int8Array]"]=un["[object Int16Array]"]=un["[object Int32Array]"]=un["[object Map]"]=un["[object Number]"]=un[cn]=un["[object RegExp]"]=un["[object Set]"]=un["[object String]"]=un["[object Symbol]"]=un["[object Uint8Array]"]=un["[object Uint8ClampedArray]"]=un["[object Uint16Array]"]=un["[object Uint32Array]"]=!0,un["[object Error]"]=un[sn]=un["[object WeakMap]"]=!1;function fn(c){return dn(c,5)}const pn=(c,u)=>{const f=Object.assign({dayjs:ce},u);let d="";const h=[];for(const m in f)d+=`${m},`,h.push(f[m]);d=d.replace(/,$/,"");const p=`function (${d}){return ${c}}`;let v;try{v=Function(`"use strict";return (${p})`)()(...h)}catch{return c}return v},hn=(c="",{textData:u,codeData:f}={},{useNewline:d=!1,useSpace:h=!1}={})=>{const p=window.config||{},v=Object.assign(Object.assign({},p),u),m=(c||"").match(/\{(.+?)\}/g);if(m==null||m.length===0)return c;for(let g=0;g<m.length;g++){const y=m[g];let x=y.slice(1,-1).trim();const Pn=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,b=x.match(Pn);for(let j=0;j<b.length;j++){const re=b[j],vn=v[re];vn!=null&&typeof vn!="function"&&(x=x.replace(re,vn))}(/\(.*\)/g.test(x)||/[+/\\*]/g.test(x))&&(x=pn(x,f)),c=c.replace(y,x)}return d&&(c=c==null?void 0:c.replace(/\n|\\n/g,"<br/>")),h&&(c=c==null?void 0:c.replace(/\s{2,}?/g,"&nbsp;&nbsp;")),c=c.replace(/Qfw\((.*?)\)/,(g,y)=>u!=null&&u.Qfw?u==null?void 0:u.Qfw(y):y)},yn=(c,u)=>{if(typeof c=="string"&&typeof u=="string")return c.toLocaleLowerCase().includes(u.toLocaleLowerCase());if(typeof c=="string"&&Array.isArray(u)){const f=u.length;for(let d=0;d<f;d++){const h=u[d];if(typeof h=="string"&&c.toLocaleLowerCase().includes(h.toLocaleLowerCase()))return!0}}return!1},mn=(c,u)=>Object.prototype.hasOwnProperty.call(c,u),bn=c=>{const u=[];for(const f of c)f.conditions?u.push(...bn(f.conditions)):(f==null?void 0:f.dataType)==="component"&&u.push(f);return u},xn=["table","bar","combograph","line","pie","radar","scatter","list","circulate"];let wn=new Map;const Sn=["keyValue","conditionKey","conditionLabel","conditionName","conditionValueType","customValue","id","keyName"],An=c=>wn.get(c),_n=(c,u)=>{if(u)mn(c,"indexCode")&&(c.hrpIndexCode=c.indexCode,delete c.indexCode),mn(c,"indexCodeNum")&&(c.hrpIndexCodeNum=c.indexCodeNum,delete c.indexCodeNum),mn(c,"dataType")&&delete c.dataType,c.fieldValue||delete c.fieldValue;else{const{calcWays:f=[],dateCalcTypes:d=[],activeKey:h,componentId:p=""}=c;if(h===5&&(f!=null&&f.length)&&(d!=null&&d.length)&&p){const v=f[0].split("-");(v==null?void 0:v.length)>1&&v[0]==="rangeValue"&&(c.calcWays=((m,g={})=>{const{around:y,unit:x,id:Pn}=m;let b="";const{pageMode:j="",componentList:re=[]}=(g==null?void 0:g.graphicConfig)||{};let vn=null,Fn=null;if(j==="design"){const Bn=re==null?void 0:re.find(Un=>Un.id===Pn);if(!Bn)return[];const{interval:w,intervalUnit:J,startTime:gn,endTime:zn,operate:Vn,useCurrentTime:Kn}=Bn||{};if(Kn&&(vn=ce().subtract(w,J),Fn=ce()),gn&&(vn=ce(gn)),zn&&(Fn=ce(zn)),Vn){const{type:Un,value:Qn,mode:Jn}=Vn;switch(Un){case"add":vn=vn&&vn.add(Qn,Jn),Fn=Fn&&Fn.add(Qn,Jn);break;case"minus":vn=vn&&vn.subtract(Qn,Jn),Fn=Fn&&Fn.subtract(Qn,Jn)}}}else{const Bn=An(Pn)||{};_(Bn.startTime)&&(vn=ce(_(Bn.startTime))),_(Bn.endTime)&&(Fn=ce(_(Bn.endTime)))}return vn&&Fn&&(b=`${y==="before"?"-":""}${Fn.diff(vn,x.toLowerCase())+1}`),b?[b]:[]})({around:v[1],unit:d[0],id:p})),delete c.radioValue}if(mn(c,"dataType")){if(c.fieldType==="DATE"&&(c.label=c.fieldName),c.dataType==="component")if(c.fieldValue==="PARENT"){let v=c.modelKey;v&&c.prop&&(v+=`-${c.prop}`),c.fieldValue="${"+v+"}"}else c.fieldValue="${"+c.fieldValue+"}";delete c.dataType}mn(c,"activeKey")&&delete c.activeKey,mn(c,"radioValue")&&delete c.radioValue,mn(c,"indexCode")&&(c.hrpIndexCode=c.indexCode,delete c.indexCode),mn(c,"indexCodeNum")&&(c.hrpIndexCodeNum=c.indexCodeNum,delete c.indexCodeNum),c.dataType!=="component"&&c.useCurrentTime&&(c.fieldValue=ce().format(c.dateFormat)),mn(c,"modelKey")&&delete c.modelKey,mn(c,"prop")&&delete c.prop,delete c.useCurrentTime}},jn=(c,u)=>{const f=[];return c!=null&&c.length&&fn(c).forEach(d=>{if(d.join&&d.conditions){const h=!d.conditions.some(p=>p.join&&p.conditions);d.conditions.forEach((p,v)=>{_n(p,u);const m={};if(v<d.conditions.length-1&&(m.join=d.join),h)f.push(Object.assign(Object.assign({},m),p));else if(p.join&&p.conditions){const g=u?"sqlConditions":"conditions";f.push(Object.assign({[g]:jn([p],u)},m))}else f.push(Object.assign(Object.assign({},m),p))})}else _n(d,u),f.push(d)}),f},On=(c={},u)=>{if(c!=null&&c.sortCpnts&&u){const gn=kn(c);gn&&(u.sort=gn)}const{label:f,name:d,location:h,show:p,indexCode:v,indexCodeNum:m,calcType:g="COLUMN",builtInFormula:y,builtInValueSource:x,builtInCalcWay:Pn,formula:b,conditions:j,aggregate:re,distinct:vn,dimByCount:Fn,dataTo:Bn}=c;let w;if(j&&(w=jn(j)),g==="COMPONENT"){const gn={};return Nn(gn,x),{label:f.trim(),columnName:d,show:p,calcType:g,componentAlias:Pn,componentValue:gn.fieldValue||null}}const J={label:f.trim(),columnName:d,location:h,show:p,calcType:Bn==="1"?"VIEW":g,hrpIndexCode:v,hrpIndexCodeNum:m,aggregate:re,builtInFormula:y,builtInValueSource:x,formula:b,conditions:w};if(y!=="DATE_OFFSET")return d==="the_count"&&(J.calcType="AGGREGATE",J.distinct=!!vn,J.typeGuid=Fn),Object.assign(Object.assign({},J),{builtInCalcWay:Pn});{const gn=Pn.split("-");if((gn==null?void 0:gn.length)===3){let zn=gn[0];return gn[2]==="before"&&gn[0]!=="0"&&(zn=`-${gn[0]}`),Object.assign(Object.assign({},J),{calcWays:[zn],dateCalcTypes:[gn[1]]})}}},Cn=c=>{if(!c)return[];const u=fn((c==null?void 0:c.controlList)||[]).filter(vn=>vn.conditionKey!=="parentCode"),{classificationList:f=[],rowHeaderList:d=[],dimensionList:h=[],seriesList:p=[],leftAxisList:v=[],rightAxisList:m=[],queryColumnList:g=[],indexLibColumns:y=[],indicators:x=[]}=c;Tn(u);const Pn=[...f,...d,...h,...p,...v,...m,...g,...y,...x],b=[];for(const vn of Pn){const Fn=bn((vn==null?void 0:vn.conditions)||[]);if(Fn!=null&&Fn.length){const Bn=Fn.filter(w=>(w==null?void 0:w.dataType)==="component").map(w=>{const J={};return w!=null&&w.dateFormat&&(J.format=w.dateFormat),w.fieldValue==="PARENT"&&(J.id="PARENT",J.keyName=w.modelKey,J.modelKey=w.modelKey,J.prop=w.prop),Object.assign({conditionKey:w.fieldName,conditionLabel:w.fieldName,conditionName:w.fieldName,conditionValueType:w.fieldType,id:w.componentId,keyName:w.fieldValue,rule:w.rule,notGlobal:!0,indexCode:w.indexCode,typeGuid:w.typeGuid,indexCodeNum:w.indexCodeNum},J)});if(Bn!=null&&Bn.length)for(const w of Bn)b.find(J=>J.keyName===w.keyName)||b.push(w)}}const j=b.length,re=u;for(let vn=0;vn<j;vn++){const Fn=b[vn];if((Fn==null?void 0:Fn.conditionKey)==="parentCode")continue;const{id:Bn,keyName:w,prop:J,format:gn,modelKey:zn,dataType:Vn="component",customValue:Kn}=Fn,Un=Ln(Fn);Nn(Un,Bn,{prop:J,dateFormat:gn,modelKey:zn,keyName:w}),Vn===""&&(Un.fieldValue=Kn||""),re.push(Un)}for(let vn=re.length-1;vn>=0;vn--){const Fn=re[vn];Fn.globalCondition||bn(re).find(Bn=>Bn.alias===Fn.alias&&Bn.globalCondition)&&re.splice(vn,1)}return re};function Ln(c){const{id:u,keyName:f,conditionLabel:d,conditionKey:h,conditionValueType:p,prop:v,rule:m="NONE",notGlobal:g=!1,indexCode:y,typeGuid:x,indexCodeNum:Pn,dataType:b="component"}=c;let j=f||u;j&&v&&(j+=`-${v}`);let re=m;return re==="NONE"&&(re=["startTime","endTime"].includes(v)?v==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":f!=null&&f.includes("startTime")?v==="GREATER_EQUAL":f!=null&&f.includes("endTime")?v==="LESS_EQUAL":"EQUAL"),u==="PARENT"&&(j=c.modelKey,j&&v&&(j+=`-${v}`),re=m),{rule:re,label:d,fieldName:h,fieldValue:"",valueType:p,alias:j,globalCondition:!g,indexCode:y,typeGuid:x,indexCodeNum:Pn,dataType:b}}function Tn(c){if(c!=null&&c.length)for(const u of c)if(u!=null&&u.conditions)Tn(u.conditions);else{const{id:f,keyName:d,prop:h,modelKey:p,format:v,dataType:m="component",customValue:g}=u,y=Ln(u);Nn(y,f,{prop:h,dateFormat:v,modelKey:p,keyName:d}),m===""&&(y.fieldValue=g||"");for(const x in y)u[x]=y[x];for(const x of Sn)delete u[x]}}function Nn(c,u,f){const{prop:d="",dateFormat:h="",modelKey:p="",keyName:v="",operateValue:m,operateMode:g,operateType:y}=f||{},x=p||v;if(u==="PARENT"&&x&&d){const w=window.config.record;let J=d,gn=h;const zn=d.match(/\{(.+?)\}/g);if(zn!=null&&zn.length){const Vn=zn[0].slice(1,-1).trim();J=d.replace(zn[0],""),gn=Vn,c.dateFormat=gn}if(w&&w[x]){const Vn=_(w[x][J]);ce.isDayjs(Vn)?c.fieldValue=Vn.format(gn||"YYYY-MM-DD"):c.fieldValue=Vn}return}const Pn=An(u)||{},{value:b,format:j="YYYY-MM-DD",type:re="",useCurrentTime:vn,RECORD:Fn}=Pn||{},Bn=h||j;if(yn(re,"date")){let w;if(w=vn?b?_(b):ce():_(b),typeof w=="string"&&(w=ce(w)),m&&g&&y)switch(y){case"add":w=w.add(m,g);break;case"minus":w=w.subtract(m,g)}c.fieldValue=w==null?void 0:w.format(Bn),c.dateFormat=Bn}else if(yn(re,"rangepicker")){let w=d;if(!d){const gn=v&&v.split("-");gn!=null&&gn.length&&(w=gn[gn.length-1])}if(!w)return;let J=null;if(_(Pn[w])&&(J=ce(_(Pn[w]))),m&&g&&y){if(m==="rangeValue"){if(Pn.startTime&&Pn.endTime){const gn=_(Pn.endTime).diff(_(Pn.startTime),g)+1;switch(y){case"add":J=J&&J.add(gn,g);break;case"minus":J=J&&J.subtract(gn,g)}}}else if(!isNaN(+m))switch(y){case"add":J=J&&J.add(m,g);break;case"minus":J=J&&J.subtract(m,g)}}if(J&&(c.fieldValue=J==null?void 0:J.format(Bn)),w==="rangeValue"&&Pn.startTime&&Pn.endTime){const gn=function(zn){const Vn=zn.split("-");let Kn="";if(Vn!=null&&Vn.length)switch(Vn[Vn.length-1]){case"YYYY":Kn="year";break;case"MM":Kn="month";break;case"DD":Kn="day"}return Kn}(Bn);gn&&(c.fieldValue=_(Pn.endTime).diff(_(Pn.startTime),gn)+1)}c.dateFormat=Bn}else yn(re,xn)?c.fieldValue=p&&Fn?Fn[p]:!p&&Fn?Fn.value:_(b):c.fieldValue=_(b)}const $n=c=>{var u;if(c){const f=Array.isArray(c)?fn(c):[fn(c)];let d="",h=[];const p=[],v=[],m=[];for(const g of f){if(g.defaultCode&&(g.label=g.columnName,delete g.defaultCode),g.type==="CUSTOM"&&(h=g.customOrderColumns),d=g.type,p.push(g.label),(u=g.columnName)===null||u===void 0?void 0:u.includes("_ecanrepeat_")){const y=g.columnName.split("_ecanrepeat_");v.push(y[0])}else v.push(g.columnName);m.push(g.order)}return d!=="CUSTOM"&&(p==null?void 0:p.length)>1&&(d="COMBINATION"),d==="CUSTOM"?{label:p.join(","),columnName:v.join(","),type:d,customOrderColumns:h}:{label:p.join(","),columnName:v.join(","),order:m.join(","),type:d}}return c},kn=c=>{const{sortCpnts:u=[]}=c;let f,d="";for(const h of u){const p=An(h)||{},{type:v,RECORD:m}=p;if(yn(v,"image")&&yn(m==null?void 0:m.value,["asc","desc"])){d=m.value.toUpperCase();break}}return d&&(f={label:c.label,columnName:c.name,order:d,type:"NORMAL"}),f},Dn=(c,u={})=>{var f,d,h,p,v,m,g,y;const{graphicConfig:x,type:Pn,globalModel:b,isGroupTable:j=!1}=c;b&&(wn=b);const re=yn(Pn,"pivottable");let vn,{source:Fn,dataViewId:Bn,plugin:w="1",layer:J,chartType:gn,classificationList:zn=[],rowHeaderList:Vn=[],dimensionList:Kn=[],seriesList:Un=[],leftAxisList:Qn=[],rightAxisList:Jn=[],queryColumnList:Yn=[],indexLibColumns:Zn=[],indicators:nr=[],controlList:sr=[],formFields:ur={},variableList:Gn=[],variableConditions:Wn=[],dataSourceId:Rn="",idxLibMode:qn,preview:Xn=!1,edvDataSetId:Hn,compositeIndicator:tr}=x||{},cr=[];if((x==null?void 0:x.pageMode)==="design"?(cr=((f=x.sqlConditions)!==null&&f!==void 0?f:[]).map(gr=>{const br={};if(mn(gr,"globalCondition")||gr.join||(br.globalCondition=!0),!gr.join){const Er=gr.rule||"EQUAL";br.rule=Er==="NONE"?"EQUAL":Er}return Object.assign(Object.assign({},gr),br)}),Wn!=null&&Wn.length&&(cr=cr.concat(Wn))):(cr=Cn(x),Gn!=null&&Gn.length&&(cr=cr.concat(function(gr){const br=[];if(gr!=null&&gr.length){for(const Er of gr)if(Er.variableName){const Mr={variateName:Er.variableName,globalCondition:!1,valueType:Er.variableType,alias:Er.keyName||""};Nn(Mr,Er.id,{dateFormat:Er.format,prop:Er.dateTypeValue,keyName:Er.keyName,operateType:Er.operateType,operateMode:Er.operateMode,operateValue:Er.operateValue}),Er.dataType===""&&(Mr.fieldValue=Er.variableValue),Er.format&&(Mr.dateFormat=Er.format),Er.label&&(Mr.label=Er.label),br.push(Mr)}}return br}(Gn)))),cr==null?void 0:cr.length){const gr=cr.filter(Er=>Er.globalCondition),br=cr.filter(Er=>!Er.globalCondition);(gr==null?void 0:gr.length)>1&&(cr=[{join:"&&",conditions:gr},...br])}cr!=null&&cr.length&&(cr=jn(cr,"1")),J==null&&(J=yn(Pn,["table","card"])||yn(Pn,["list","circulate"])&&(zn==null?void 0:zn.length)>1?"1":yn(Pn,["select","checkbox","radio"])?"3":yn(Pn,["indexPanel"])?"4":"2"),yn(Pn,["indexPanel"])&&(w="3");const ir=[];let er,pr="";if(Array.isArray(zn)&&zn.length>0&&(!["ecanList","ecanCirculate"].includes(Pn)||(zn==null?void 0:zn.length)===1)){const gr=zn.length;for(let br=0;br<gr;br++){const Er=zn[br]||{},{label:Mr="",name:Ir="",show:Fr=!1,sort:Or,customGroup:Nr,conditions:zr,dateFormat:Rr,typeGuid:Vr="",truncations:Hr=[]}=Er;if(Fr||gr===1){pr=Vr,vn={label:Mr.trim(),columnName:Ir,show:Fr,sort:kn(Er)||$n(Or)||Or,customGroup:Nr,conditions:jn(zr),typeGuid:Vr},Rr&&(vn.dateFormat=Rr),Ir!=="the_date"||vn.dateFormat||(vn.dateFormat="YYYY-MM-DD");const Gr={};if(Array.isArray(Hr)&&Hr.length>0){const Ur=Hr.length;for(let Yr=0;Yr<Ur;Yr++){const Qr=Hr[Yr]||{},{rule:ri="",num:ti=0,name:ai=""}=Qr;ri&&ti&&(Gr.num=ti,Gr.rule=ri,ai&&(Gr.otherGroupName=ai))}}if(!((d=Object.keys(Gr))===null||d===void 0)&&d.length&&(vn.truncation=Gr),!yn(Pn,["scatter","valueline"]))break;ir.push(vn)}}}if(Array.isArray(Un)&&Un.length>0){const gr=Un.length;for(let br=0;br<gr;br++){const Er=Un[br]||{},{label:Mr="",name:Ir="",show:Fr=!1,sort:Or,customGroup:Nr,conditions:zr,typeGuid:Rr,dateFormat:Vr=""}=Er;if(Fr||gr===1){er={label:Mr.trim(),columnName:Ir,show:Fr,sort:$n(Or),customGroup:Nr,conditions:jn(zr),typeGuid:Rr},Vr?er.dateFormat=Vr:Ir==="the_date"&&(er.dateFormat="YYYY-MM-DD");break}}}const lr=[];Qn==null||Qn.forEach(gr=>{gr.location="LEFT",lr.push(On(gr,vn))}),Jn==null||Jn.forEach(gr=>{gr.location="RIGHT",lr.push(On(gr,vn))});let or=nr;u!=null&&u.pivotTableCal&&(or=((h=u.pivotTableCal)===null||h===void 0?void 0:h.indicators)||[]),or==null||or.forEach(gr=>{gr.location="LEFT",lr.push(On(gr,vn))});const ar=[];["ecanList","ecanCirculate"].includes(Pn)&&(zn==null?void 0:zn.length)>1&&(Yn=zn),u!=null&&u.pivotTableCal&&(Yn=((p=u.pivotTableCal)===null||p===void 0?void 0:p.dimensions)||[]),Yn==null||Yn.forEach(gr=>{const{label:br,name:Er,location:Mr,show:Ir,indexCode:Fr,sort:Or,typeGuid:Nr,indexCodeNum:zr,dateFormat:Rr,conditions:Vr}=gr;let Hr=$n(Or);if(u.sort){const{field:Ur,order:Yr}=u.sort;let Qr=lr.find(ri=>ri.label===Ur);Qr||br!==Ur||(Qr=gr),Qr&&(Hr={columnName:Qr.columnName,label:u.sort.field,order:Yr.toUpperCase(),type:"NORMAL"})}const Gr={label:br,columnName:Er,location:Mr,show:Ir,sort:Hr,calcType:"COLUMN",hrpIndexCode:Fr,hrpIndexCodeNum:zr,conditions:jn(Vr),typeGuid:Nr};Rr&&(Gr.dateFormat=Rr),Er!=="the_date"||Gr.dateFormat||(Gr.dateFormat="YYYY-MM-DD"),ar.push(Gr)});const vr=[];["ecanTable"].includes(Pn)&&x.isIndexSet&&Zn.forEach(gr=>{const br={label:gr.label,calcType:gr.calcType,show:gr.show};gr.formula&&(br.formula=gr.formula),vr.push(br)});let fr=[],mr=[];if(Array.isArray(Vn)&&Vn.length>0?mr=Vn:Array.isArray(Kn)&&Kn.length>0&&(mr=Kn),mr==null?void 0:mr.length){const gr=mr.length;for(let br=0;br<gr;br++){const Er=mr[br]||{},{label:Mr="",name:Ir="",show:Fr=!1,sort:Or,customGroup:Nr,conditions:zr,truncations:Rr,typeGuid:Vr="",dateFormat:Hr}=Er;let Gr=$n(Or);if(u.sort){const{field:Qr,order:ri}=u.sort;let ti=lr.find(ai=>ai.label===Qr);ti||Er.label!==Qr||(ti=Er),ti&&(Gr={columnName:ti.columnName,label:u.sort.field,order:ri.toUpperCase(),type:"NORMAL"})}const Ur={label:Mr.trim(),columnName:Ir,show:Fr,sort:Gr,customGroup:Nr,conditions:jn(zr),typeGuid:Vr};Hr&&(Ur.dateFormat=Hr),Ir!=="the_date"||Ur.dateFormat||(Ur.dateFormat="YYYY-MM-DD");const Yr={};if(Array.isArray(Rr)&&Rr.length>0){const Qr=Rr.length;for(let ri=0;ri<Qr;ri++){const ti=Rr[ri]||{},{rule:ai="",num:vi=0,name:hi=""}=ti;ai&&vi&&(Yr.num=vi,Yr.rule=ai,hi&&(Yr.otherGroupName=hi))}}!((v=Object.keys(Yr))===null||v===void 0)&&v.length&&(Ur.truncation=Yr),fr.push(Ur)}}let dr,hr=[];const yr=[];if(u!=null&&u.pivotTableCal){let gr=[];const{calc:br=[],filter:Er=[],truncations:Mr=[],sorts:Ir=[],aggregateMethod:Fr=[],rowDimensionKeys:Or=[],colDimensionKeys:Nr=[]}=u.pivotTableCal;if(lr.push(...br),Er==null?void 0:Er.length){const zr=function Rr(Vr){const Hr=[];for(const Gr of Vr)Gr.conditions?Hr.push(...Rr(Gr.conditions)):Gr.conditionKey==="the_date"&&Hr.push(Gr);return Hr}(sr);for(const Rr of Er){const{type:Vr}=Rr,Hr=e(Rr,["type"]);Vr==="indicators"?gr=lr:Vr==="dimension"&&(gr=ar);const Gr=gr.find(Ur=>Ur.columnName===Rr.fieldName&&Ur.label===Rr.label);if(Gr){if(Vr==="indicators")Gr.filter={rule:Hr.rule,fieldValue:Hr.fieldValue};else if(Vr==="dimension"){let Ur=!0;Hr.fieldName==="the_date"&&(zr==null?void 0:zr.length)===2&&(Ur=!1,yr.push(Hr)),Ur&&(Gr.conditions||(Gr.conditions=[]),Gr.conditions.push(Hr))}}}}if(Mr!=null&&Mr.length)for(const zr of Mr){const Rr=ar.find(Vr=>Vr.label===zr.key);Rr&&(Rr.truncation={num:zr.num,rule:zr.rule})}if(Ir!=null&&Ir.length)for(const zr of Ir){const{fieldType:Rr,columnData:Vr}=zr,Hr=e(zr,["fieldType","columnData"]);Rr==="indicators"?(gr=lr,dr=Vr):Rr==="dimension"&&(gr=ar);const Gr=gr.find(Ur=>Ur.label===Hr.label);Gr&&(Gr.sort=Object.assign(Object.assign({},Hr),{columnName:Gr.columnName}))}if(!((m=Object.keys(Fr))===null||m===void 0)&&m.length)for(const zr in Fr){const Rr=ar.find(Vr=>Vr.label===zr);Rr&&(!((g=Fr[zr])===null||g===void 0)&&g.length)&&(Rr.aggregateMethod=Fr[zr])}fr=[],hr=[];for(const zr of ar)Or.includes(zr.columnName)?fr.push(zr):Nr.includes(zr.columnName)&&hr.push(zr)}if(yn(Pn,["text","proportion","counter"])?gn="zb":yn(Pn,["valueline"])?gn="valueline":yn(Pn,["indexPanel"])&&(gn="indexPanel"),j||Pn==="card"){if(fr.length===0||lr.length===0)return;gn="grouptable"}else if(J==="1"&&!ar.length&&!vr.length||["2","4"].includes(J)&&lr.length===0||!(J!=="3"||(pr||Fn==="EDV_DATA_SET")&&ur.labelField&&ur.valueField)||J==="3"&&Pn==="ecanDataSelect"&&lr.length===0)return;let _r;if(Kn!=null&&Kn.length&&(J="1",gn="grouptable"),!yn(Pn,["scatter","valueline"])&&((y=Object.keys(ur))===null||y===void 0?void 0:y.length)){const gr=bn(sr).find(Er=>Er.conditionKey==="parentCode"),br={};if(gr){const Er=An(gr.id)||{};if(!(Er!=null&&Er.itemCodes))return;br.parentItemCodes=Er.itemCodes}Pn==="ecanDataSelect"&&(br.indicatorList=lr.filter(Er=>Er.show)),Fn==="EDV_DATA_SET"&&(br.edvDataSetId=Hn),vn.sort&&(br.sort=vn.sort),_r=Object.assign({url:"/diagram/formData",source:Fn,dataViewId:Bn,plugin:"4",layer:J,chartType:"normalSelect",rangeIndexTypeGuid:pr,type:Pn==="ecanDataSelect"?"normalSelectData":"normalSelect",labelField:ur.labelField,valueField:ur.valueField,sqlConditions:cr,idxLibMode:"WITH_DATE_DIM_TABLE",dataSourceId:Rn,keyName:c.keyName},br)}else{let gr={};gr=yn(Pn,["scatter","valueline"])?{classifications:ir}:{classification:vn},vr!=null&&vr.length&&(gr.indexLibColumns=vr,gr.isIndexSet=!0),yn(Pn,"table")&&x.isIndexSet&&(gr.compositeIndicator=tr);const br=cr.map(Er=>{const{fieldValue:Mr}=Er,Ir={};return Mr&&Array.isArray(Mr)&&(Ir.fieldValue=JSON.stringify(Mr)),Object.assign(Object.assign({},Er),Ir)});yr!=null&&yr.length&&function Er(Mr){for(const Ir of Mr)if(Ir.sqlConditions)Er(Ir.sqlConditions);else if(Ir.fieldName==="the_date"){const Fr=yr.find(Or=>Or.prop===Ir.prop);Fr&&(Ir.fieldValue=Fr.fieldValue)}}(br),_r=Object.assign({url:"/diagram",source:Fn,dataViewId:Bn,plugin:re?"5":w,layer:J,chartType:re?"pivot-table":gn,series:er,indicatorList:lr,queryColumns:j?[]:ar,pageFlag:!0,edvDataSetId:Hn||"",sqlConditions:br,idxLibMode:qn,dataSourceId:Rn,preview:Xn,rowHeaders:fr,keyName:c.keyName,columnData:dr,columnHeaders:hr},gr)}return _r},Mn=(c=[],u,f=!1)=>{let{name:d="name",types:h=[]}=u||{};d=(d==null?void 0:d.trim())||d;const p=new Set,v=new Map,m=c.length,g=h.length;if(m!==1||f)for(let Pn=0;Pn<m;Pn++){const b=c[Pn],j=b[d];p.add(j);for(let re=0;re<g;re++){const vn=h[re],{label:Fn,value:Bn}=vn,w=Object.assign(Object.assign({},b),{value:b[Bn]});if(v.has(Fn)){const J=v.get(Fn);J.push(w),v.set(Fn,J)}else v.set(Fn,[w])}}else{const Pn=[];for(let j=0;j<g;j++){const re=h[j],{label:vn,value:Fn}=re,Bn=Object.assign(Object.assign({},c[0]),{value:c[0][Fn]});p.add(vn),Pn.push(Bn)}const b=c[0][d]||"";v.set(b,Pn)}const y=Array.from(p),x=[];for(const[Pn,b]of v)x.push({name:Pn,data:b});return{dimensions:y,dataset:x}},En=(c,u)=>{let{name:f="name",value:d="value",type:h="type"}=u||{};f=f==null?void 0:f.trim(),d=d==null?void 0:d.trim(),h=h==null?void 0:h.trim();const p=new Map,v=c.length;for(let y=0;y<v;y++){const x=c[y],Pn=x[f]||"",b=x[d]||"",j=x[h]||"";if(p.has(j)){const re=p.get(j);re.push(Object.assign({name:Pn,value:b},x)),p.set(j,re)}else p.set(j,[Object.assign({name:Pn,value:b},x)])}const m=[],g=[];for(const[y,x]of p)if(g.push({name:y,data:x}),x==null?void 0:x.length)if(m.length)for(const Pn of x)m.includes(Pn.name)||m.push(Pn.name);else m.push(...x.map(Pn=>Pn.name));return{dimensions:m,dataset:g}},In=(c,u)=>{var f;if(c==null)return u;const d=c.match(/\{.*\}/g);if(d==null||d.length===0)return u;const h=d.length;for(let p=0;p<h;p++){const v=d[p];if(v==null||v==="")break;let m=(f=v.slice(1,-1))===null||f===void 0?void 0:f.trim();m=m==null?void 0:m.replace(/value/g,u);try{let g=m;(/\(.*\)/g.test(m)||/[+/\\*]/g.test(m))&&(g=pn(m)),c=c.replace(v,g)}catch{c=c.replace(v,m)}}return c},styleList=["width","height","color","position","top","left","rotate","fontSize","fontFamily","fontWeight","textDecoration","textAlign","lineHeight","verticalAlign","overflow","backgroundColor","backgroundImage","backgroundSize","borderWidth","borderStyle","borderRadius","borderColor","textShadow","justifyContent","alignItems","zIndex","scale"],usePickComponentStyle=(c,u=[])=>{const{pageMode:f}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),d=lodashEs.without(styleList,...u);return vue.computed(()=>{var v,m;const h=lodashEs.pick(c,d),p=["width","height","top","left"];for(const g of p)mn(h,g)&&(["width","height"].includes(g)&&((v=c[g])==null?void 0:v.suffix)==="%"&&vue.unref(f)==="design"?h[g]="100%":(m=c[g])!=null&&m.suffix&&(h[g]=(c[g].value||0)+c[g].suffix));return h})},useOnEvent=(c,u)=>{vue.watch(()=>c.id,f=>{const d=vue.inject(EVENT_BUS,{onEvent:(h,p)=>{}});f!=null&&f!==""&&d.onEvent(f,u)},{immediate:!0})},ignoreClickType=["ecanTable"],useEmitEvent=c=>{const u=c.events,f=c.id,d=vue.inject(EVENT_BUS,{emitEvent:(v,m,g)=>{}}),h=vue.inject(COMMON_OPERATE,{operateAction:(v,m)=>{}}),{touchEventId:p}=vue.inject(GLOBAL_CONFIG,{touchEventId:vue.ref("")});return(v,m=()=>{},g)=>function(){m.call(this,...arguments);const{emitEvent:y}=d,{operateAction:x}=h;v==="click"&&!u.find(b=>b.on==="click")&&(!ignoreClickType.includes(c.type)&&c.dataType==="indicator"||c.parentId)&&x("SHOW_INDICATOR_DETAIL_MODAL",{props:c}),u.forEach(Pn=>{if(v===Pn.on)try{p.value=f,g?y(Pn.target,Pn.emit,g):y(Pn.target,Pn.emit)}catch(b){console.error(b)}})}};var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}function getAugmentedNamespace(c){if(c.__esModule)return c;var u=c.default;if(typeof u=="function"){var f=function d(){return this instanceof d?Reflect.construct(u,arguments,this.constructor):u.apply(this,arguments)};f.prototype=u.prototype}else f={};return Object.defineProperty(f,"__esModule",{value:!0}),Object.keys(c).forEach(function(d){var h=Object.getOwnPropertyDescriptor(c,d);Object.defineProperty(f,d,h.get?h:{enumerable:!0,get:function(){return c[d]}})}),f}var cryptoJs={exports:{}};function commonjsRequire(c){throw new Error('Could not dynamically require "'+c+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var core={exports:{}};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);var hasRequiredCore;function requireCore(){return hasRequiredCore||(hasRequiredCore=1,function(c,u){(function(f,d){c.exports=d()})(commonjsGlobal,function(){var f=f||function(d,h){var p;if(typeof window<"u"&&window.crypto&&(p=window.crypto),typeof self<"u"&&self.crypto&&(p=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(p=globalThis.crypto),!p&&typeof window<"u"&&window.msCrypto&&(p=window.msCrypto),!p&&typeof commonjsGlobal<"u"&&commonjsGlobal.crypto&&(p=commonjsGlobal.crypto),!p&&typeof commonjsRequire=="function")try{p=require$$0}catch{}var v=function(){if(p){if(typeof p.getRandomValues=="function")try{return p.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof p.randomBytes=="function")try{return p.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},m=Object.create||function(){function w(){}return function(J){var gn;return w.prototype=J,gn=new w,w.prototype=null,gn}}(),g={},y=g.lib={},x=y.Base=function(){return{extend:function(w){var J=m(this);return w&&J.mixIn(w),(!J.hasOwnProperty("init")||this.init===J.init)&&(J.init=function(){J.$super.init.apply(this,arguments)}),J.init.prototype=J,J.$super=this,J},create:function(){var w=this.extend();return w.init.apply(w,arguments),w},init:function(){},mixIn:function(w){for(var J in w)w.hasOwnProperty(J)&&(this[J]=w[J]);w.hasOwnProperty("toString")&&(this.toString=w.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),Pn=y.WordArray=x.extend({init:function(w,J){w=this.words=w||[],J!=h?this.sigBytes=J:this.sigBytes=w.length*4},toString:function(w){return(w||j).stringify(this)},concat:function(w){var J=this.words,gn=w.words,zn=this.sigBytes,Vn=w.sigBytes;if(this.clamp(),zn%4)for(var Kn=0;Kn<Vn;Kn++){var Un=gn[Kn>>>2]>>>24-Kn%4*8&255;J[zn+Kn>>>2]|=Un<<24-(zn+Kn)%4*8}else for(var Qn=0;Qn<Vn;Qn+=4)J[zn+Qn>>>2]=gn[Qn>>>2];return this.sigBytes+=Vn,this},clamp:function(){var w=this.words,J=this.sigBytes;w[J>>>2]&=4294967295<<32-J%4*8,w.length=d.ceil(J/4)},clone:function(){var w=x.clone.call(this);return w.words=this.words.slice(0),w},random:function(w){for(var J=[],gn=0;gn<w;gn+=4)J.push(v());return new Pn.init(J,w)}}),b=g.enc={},j=b.Hex={stringify:function(w){for(var J=w.words,gn=w.sigBytes,zn=[],Vn=0;Vn<gn;Vn++){var Kn=J[Vn>>>2]>>>24-Vn%4*8&255;zn.push((Kn>>>4).toString(16)),zn.push((Kn&15).toString(16))}return zn.join("")},parse:function(w){for(var J=w.length,gn=[],zn=0;zn<J;zn+=2)gn[zn>>>3]|=parseInt(w.substr(zn,2),16)<<24-zn%8*4;return new Pn.init(gn,J/2)}},re=b.Latin1={stringify:function(w){for(var J=w.words,gn=w.sigBytes,zn=[],Vn=0;Vn<gn;Vn++){var Kn=J[Vn>>>2]>>>24-Vn%4*8&255;zn.push(String.fromCharCode(Kn))}return zn.join("")},parse:function(w){for(var J=w.length,gn=[],zn=0;zn<J;zn++)gn[zn>>>2]|=(w.charCodeAt(zn)&255)<<24-zn%4*8;return new Pn.init(gn,J)}},vn=b.Utf8={stringify:function(w){try{return decodeURIComponent(escape(re.stringify(w)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(w){return re.parse(unescape(encodeURIComponent(w)))}},Fn=y.BufferedBlockAlgorithm=x.extend({reset:function(){this._data=new Pn.init,this._nDataBytes=0},_append:function(w){typeof w=="string"&&(w=vn.parse(w)),this._data.concat(w),this._nDataBytes+=w.sigBytes},_process:function(w){var J,gn=this._data,zn=gn.words,Vn=gn.sigBytes,Kn=this.blockSize,Un=Kn*4,Qn=Vn/Un;w?Qn=d.ceil(Qn):Qn=d.max((Qn|0)-this._minBufferSize,0);var Jn=Qn*Kn,Yn=d.min(Jn*4,Vn);if(Jn){for(var Zn=0;Zn<Jn;Zn+=Kn)this._doProcessBlock(zn,Zn);J=zn.splice(0,Jn),gn.sigBytes-=Yn}return new Pn.init(J,Yn)},clone:function(){var w=x.clone.call(this);return w._data=this._data.clone(),w},_minBufferSize:0});y.Hasher=Fn.extend({cfg:x.extend(),init:function(w){this.cfg=this.cfg.extend(w),this.reset()},reset:function(){Fn.reset.call(this),this._doReset()},update:function(w){return this._append(w),this._process(),this},finalize:function(w){w&&this._append(w);var J=this._doFinalize();return J},blockSize:16,_createHelper:function(w){return function(J,gn){return new w.init(gn).finalize(J)}},_createHmacHelper:function(w){return function(J,gn){return new Bn.HMAC.init(w,gn).finalize(J)}}});var Bn=g.algo={};return g}(Math);return f})}(core)),core.exports}var x64Core={exports:{}},hasRequiredX64Core;function requireX64Core(){return hasRequiredX64Core||(hasRequiredX64Core=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(d){var h=f,p=h.lib,v=p.Base,m=p.WordArray,g=h.x64={};g.Word=v.extend({init:function(y,x){this.high=y,this.low=x}}),g.WordArray=v.extend({init:function(y,x){y=this.words=y||[],x!=d?this.sigBytes=x:this.sigBytes=y.length*8},toX32:function(){for(var y=this.words,x=y.length,Pn=[],b=0;b<x;b++){var j=y[b];Pn.push(j.high),Pn.push(j.low)}return m.create(Pn,this.sigBytes)},clone:function(){for(var y=v.clone.call(this),x=y.words=this.words.slice(0),Pn=x.length,b=0;b<Pn;b++)x[b]=x[b].clone();return y}})}(),f})}(x64Core)),x64Core.exports}var libTypedarrays={exports:{}},hasRequiredLibTypedarrays;function requireLibTypedarrays(){return hasRequiredLibTypedarrays||(hasRequiredLibTypedarrays=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(){if(typeof ArrayBuffer=="function"){var d=f,h=d.lib,p=h.WordArray,v=p.init,m=p.init=function(g){if(g instanceof ArrayBuffer&&(g=new Uint8Array(g)),(g instanceof Int8Array||typeof Uint8ClampedArray<"u"&&g instanceof Uint8ClampedArray||g instanceof Int16Array||g instanceof Uint16Array||g instanceof Int32Array||g instanceof Uint32Array||g instanceof Float32Array||g instanceof Float64Array)&&(g=new Uint8Array(g.buffer,g.byteOffset,g.byteLength)),g instanceof Uint8Array){for(var y=g.byteLength,x=[],Pn=0;Pn<y;Pn++)x[Pn>>>2]|=g[Pn]<<24-Pn%4*8;v.call(this,x,y)}else v.apply(this,arguments)};m.prototype=p}}(),f.lib.WordArray})}(libTypedarrays)),libTypedarrays.exports}var encUtf16={exports:{}},hasRequiredEncUtf16;function requireEncUtf16(){return hasRequiredEncUtf16||(hasRequiredEncUtf16=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(){var d=f,h=d.lib,p=h.WordArray,v=d.enc;v.Utf16=v.Utf16BE={stringify:function(g){for(var y=g.words,x=g.sigBytes,Pn=[],b=0;b<x;b+=2){var j=y[b>>>2]>>>16-b%4*8&65535;Pn.push(String.fromCharCode(j))}return Pn.join("")},parse:function(g){for(var y=g.length,x=[],Pn=0;Pn<y;Pn++)x[Pn>>>1]|=g.charCodeAt(Pn)<<16-Pn%2*16;return p.create(x,y*2)}},v.Utf16LE={stringify:function(g){for(var y=g.words,x=g.sigBytes,Pn=[],b=0;b<x;b+=2){var j=m(y[b>>>2]>>>16-b%4*8&65535);Pn.push(String.fromCharCode(j))}return Pn.join("")},parse:function(g){for(var y=g.length,x=[],Pn=0;Pn<y;Pn++)x[Pn>>>1]|=m(g.charCodeAt(Pn)<<16-Pn%2*16);return p.create(x,y*2)}};function m(g){return g<<8&4278255360|g>>>8&16711935}}(),f.enc.Utf16})}(encUtf16)),encUtf16.exports}var encBase64={exports:{}},hasRequiredEncBase64;function requireEncBase64(){return hasRequiredEncBase64||(hasRequiredEncBase64=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(){var d=f,h=d.lib,p=h.WordArray,v=d.enc;v.Base64={stringify:function(g){var y=g.words,x=g.sigBytes,Pn=this._map;g.clamp();for(var b=[],j=0;j<x;j+=3)for(var re=y[j>>>2]>>>24-j%4*8&255,vn=y[j+1>>>2]>>>24-(j+1)%4*8&255,Fn=y[j+2>>>2]>>>24-(j+2)%4*8&255,Bn=re<<16|vn<<8|Fn,w=0;w<4&&j+w*.75<x;w++)b.push(Pn.charAt(Bn>>>6*(3-w)&63));var J=Pn.charAt(64);if(J)for(;b.length%4;)b.push(J);return b.join("")},parse:function(g){var y=g.length,x=this._map,Pn=this._reverseMap;if(!Pn){Pn=this._reverseMap=[];for(var b=0;b<x.length;b++)Pn[x.charCodeAt(b)]=b}var j=x.charAt(64);if(j){var re=g.indexOf(j);re!==-1&&(y=re)}return m(g,y,Pn)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function m(g,y,x){for(var Pn=[],b=0,j=0;j<y;j++)if(j%4){var re=x[g.charCodeAt(j-1)]<<j%4*2,vn=x[g.charCodeAt(j)]>>>6-j%4*2,Fn=re|vn;Pn[b>>>2]|=Fn<<24-b%4*8,b++}return p.create(Pn,b)}}(),f.enc.Base64})}(encBase64)),encBase64.exports}var encBase64url={exports:{}},hasRequiredEncBase64url;function requireEncBase64url(){return hasRequiredEncBase64url||(hasRequiredEncBase64url=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(){var d=f,h=d.lib,p=h.WordArray,v=d.enc;v.Base64url={stringify:function(g,y=!0){var x=g.words,Pn=g.sigBytes,b=y?this._safe_map:this._map;g.clamp();for(var j=[],re=0;re<Pn;re+=3)for(var vn=x[re>>>2]>>>24-re%4*8&255,Fn=x[re+1>>>2]>>>24-(re+1)%4*8&255,Bn=x[re+2>>>2]>>>24-(re+2)%4*8&255,w=vn<<16|Fn<<8|Bn,J=0;J<4&&re+J*.75<Pn;J++)j.push(b.charAt(w>>>6*(3-J)&63));var gn=b.charAt(64);if(gn)for(;j.length%4;)j.push(gn);return j.join("")},parse:function(g,y=!0){var x=g.length,Pn=y?this._safe_map:this._map,b=this._reverseMap;if(!b){b=this._reverseMap=[];for(var j=0;j<Pn.length;j++)b[Pn.charCodeAt(j)]=j}var re=Pn.charAt(64);if(re){var vn=g.indexOf(re);vn!==-1&&(x=vn)}return m(g,x,b)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function m(g,y,x){for(var Pn=[],b=0,j=0;j<y;j++)if(j%4){var re=x[g.charCodeAt(j-1)]<<j%4*2,vn=x[g.charCodeAt(j)]>>>6-j%4*2,Fn=re|vn;Pn[b>>>2]|=Fn<<24-b%4*8,b++}return p.create(Pn,b)}}(),f.enc.Base64url})}(encBase64url)),encBase64url.exports}var md5={exports:{}},hasRequiredMd5;function requireMd5(){return hasRequiredMd5||(hasRequiredMd5=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(d){var h=f,p=h.lib,v=p.WordArray,m=p.Hasher,g=h.algo,y=[];(function(){for(var vn=0;vn<64;vn++)y[vn]=d.abs(d.sin(vn+1))*4294967296|0})();var x=g.MD5=m.extend({_doReset:function(){this._hash=new v.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(vn,Fn){for(var Bn=0;Bn<16;Bn++){var w=Fn+Bn,J=vn[w];vn[w]=(J<<8|J>>>24)&16711935|(J<<24|J>>>8)&4278255360}var gn=this._hash.words,zn=vn[Fn+0],Vn=vn[Fn+1],Kn=vn[Fn+2],Un=vn[Fn+3],Qn=vn[Fn+4],Jn=vn[Fn+5],Yn=vn[Fn+6],Zn=vn[Fn+7],nr=vn[Fn+8],sr=vn[Fn+9],ur=vn[Fn+10],Gn=vn[Fn+11],Wn=vn[Fn+12],Rn=vn[Fn+13],qn=vn[Fn+14],Xn=vn[Fn+15],Hn=gn[0],tr=gn[1],cr=gn[2],ir=gn[3];Hn=Pn(Hn,tr,cr,ir,zn,7,y[0]),ir=Pn(ir,Hn,tr,cr,Vn,12,y[1]),cr=Pn(cr,ir,Hn,tr,Kn,17,y[2]),tr=Pn(tr,cr,ir,Hn,Un,22,y[3]),Hn=Pn(Hn,tr,cr,ir,Qn,7,y[4]),ir=Pn(ir,Hn,tr,cr,Jn,12,y[5]),cr=Pn(cr,ir,Hn,tr,Yn,17,y[6]),tr=Pn(tr,cr,ir,Hn,Zn,22,y[7]),Hn=Pn(Hn,tr,cr,ir,nr,7,y[8]),ir=Pn(ir,Hn,tr,cr,sr,12,y[9]),cr=Pn(cr,ir,Hn,tr,ur,17,y[10]),tr=Pn(tr,cr,ir,Hn,Gn,22,y[11]),Hn=Pn(Hn,tr,cr,ir,Wn,7,y[12]),ir=Pn(ir,Hn,tr,cr,Rn,12,y[13]),cr=Pn(cr,ir,Hn,tr,qn,17,y[14]),tr=Pn(tr,cr,ir,Hn,Xn,22,y[15]),Hn=b(Hn,tr,cr,ir,Vn,5,y[16]),ir=b(ir,Hn,tr,cr,Yn,9,y[17]),cr=b(cr,ir,Hn,tr,Gn,14,y[18]),tr=b(tr,cr,ir,Hn,zn,20,y[19]),Hn=b(Hn,tr,cr,ir,Jn,5,y[20]),ir=b(ir,Hn,tr,cr,ur,9,y[21]),cr=b(cr,ir,Hn,tr,Xn,14,y[22]),tr=b(tr,cr,ir,Hn,Qn,20,y[23]),Hn=b(Hn,tr,cr,ir,sr,5,y[24]),ir=b(ir,Hn,tr,cr,qn,9,y[25]),cr=b(cr,ir,Hn,tr,Un,14,y[26]),tr=b(tr,cr,ir,Hn,nr,20,y[27]),Hn=b(Hn,tr,cr,ir,Rn,5,y[28]),ir=b(ir,Hn,tr,cr,Kn,9,y[29]),cr=b(cr,ir,Hn,tr,Zn,14,y[30]),tr=b(tr,cr,ir,Hn,Wn,20,y[31]),Hn=j(Hn,tr,cr,ir,Jn,4,y[32]),ir=j(ir,Hn,tr,cr,nr,11,y[33]),cr=j(cr,ir,Hn,tr,Gn,16,y[34]),tr=j(tr,cr,ir,Hn,qn,23,y[35]),Hn=j(Hn,tr,cr,ir,Vn,4,y[36]),ir=j(ir,Hn,tr,cr,Qn,11,y[37]),cr=j(cr,ir,Hn,tr,Zn,16,y[38]),tr=j(tr,cr,ir,Hn,ur,23,y[39]),Hn=j(Hn,tr,cr,ir,Rn,4,y[40]),ir=j(ir,Hn,tr,cr,zn,11,y[41]),cr=j(cr,ir,Hn,tr,Un,16,y[42]),tr=j(tr,cr,ir,Hn,Yn,23,y[43]),Hn=j(Hn,tr,cr,ir,sr,4,y[44]),ir=j(ir,Hn,tr,cr,Wn,11,y[45]),cr=j(cr,ir,Hn,tr,Xn,16,y[46]),tr=j(tr,cr,ir,Hn,Kn,23,y[47]),Hn=re(Hn,tr,cr,ir,zn,6,y[48]),ir=re(ir,Hn,tr,cr,Zn,10,y[49]),cr=re(cr,ir,Hn,tr,qn,15,y[50]),tr=re(tr,cr,ir,Hn,Jn,21,y[51]),Hn=re(Hn,tr,cr,ir,Wn,6,y[52]),ir=re(ir,Hn,tr,cr,Un,10,y[53]),cr=re(cr,ir,Hn,tr,ur,15,y[54]),tr=re(tr,cr,ir,Hn,Vn,21,y[55]),Hn=re(Hn,tr,cr,ir,nr,6,y[56]),ir=re(ir,Hn,tr,cr,Xn,10,y[57]),cr=re(cr,ir,Hn,tr,Yn,15,y[58]),tr=re(tr,cr,ir,Hn,Rn,21,y[59]),Hn=re(Hn,tr,cr,ir,Qn,6,y[60]),ir=re(ir,Hn,tr,cr,Gn,10,y[61]),cr=re(cr,ir,Hn,tr,Kn,15,y[62]),tr=re(tr,cr,ir,Hn,sr,21,y[63]),gn[0]=gn[0]+Hn|0,gn[1]=gn[1]+tr|0,gn[2]=gn[2]+cr|0,gn[3]=gn[3]+ir|0},_doFinalize:function(){var vn=this._data,Fn=vn.words,Bn=this._nDataBytes*8,w=vn.sigBytes*8;Fn[w>>>5]|=128<<24-w%32;var J=d.floor(Bn/4294967296),gn=Bn;Fn[(w+64>>>9<<4)+15]=(J<<8|J>>>24)&16711935|(J<<24|J>>>8)&4278255360,Fn[(w+64>>>9<<4)+14]=(gn<<8|gn>>>24)&16711935|(gn<<24|gn>>>8)&4278255360,vn.sigBytes=(Fn.length+1)*4,this._process();for(var zn=this._hash,Vn=zn.words,Kn=0;Kn<4;Kn++){var Un=Vn[Kn];Vn[Kn]=(Un<<8|Un>>>24)&16711935|(Un<<24|Un>>>8)&4278255360}return zn},clone:function(){var vn=m.clone.call(this);return vn._hash=this._hash.clone(),vn}});function Pn(vn,Fn,Bn,w,J,gn,zn){var Vn=vn+(Fn&Bn|~Fn&w)+J+zn;return(Vn<<gn|Vn>>>32-gn)+Fn}function b(vn,Fn,Bn,w,J,gn,zn){var Vn=vn+(Fn&w|Bn&~w)+J+zn;return(Vn<<gn|Vn>>>32-gn)+Fn}function j(vn,Fn,Bn,w,J,gn,zn){var Vn=vn+(Fn^Bn^w)+J+zn;return(Vn<<gn|Vn>>>32-gn)+Fn}function re(vn,Fn,Bn,w,J,gn,zn){var Vn=vn+(Bn^(Fn|~w))+J+zn;return(Vn<<gn|Vn>>>32-gn)+Fn}h.MD5=m._createHelper(x),h.HmacMD5=m._createHmacHelper(x)}(Math),f.MD5})}(md5)),md5.exports}var sha1={exports:{}},hasRequiredSha1;function requireSha1(){return hasRequiredSha1||(hasRequiredSha1=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(){var d=f,h=d.lib,p=h.WordArray,v=h.Hasher,m=d.algo,g=[],y=m.SHA1=v.extend({_doReset:function(){this._hash=new p.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(x,Pn){for(var b=this._hash.words,j=b[0],re=b[1],vn=b[2],Fn=b[3],Bn=b[4],w=0;w<80;w++){if(w<16)g[w]=x[Pn+w]|0;else{var J=g[w-3]^g[w-8]^g[w-14]^g[w-16];g[w]=J<<1|J>>>31}var gn=(j<<5|j>>>27)+Bn+g[w];w<20?gn+=(re&vn|~re&Fn)+1518500249:w<40?gn+=(re^vn^Fn)+1859775393:w<60?gn+=(re&vn|re&Fn|vn&Fn)-1894007588:gn+=(re^vn^Fn)-899497514,Bn=Fn,Fn=vn,vn=re<<30|re>>>2,re=j,j=gn}b[0]=b[0]+j|0,b[1]=b[1]+re|0,b[2]=b[2]+vn|0,b[3]=b[3]+Fn|0,b[4]=b[4]+Bn|0},_doFinalize:function(){var x=this._data,Pn=x.words,b=this._nDataBytes*8,j=x.sigBytes*8;return Pn[j>>>5]|=128<<24-j%32,Pn[(j+64>>>9<<4)+14]=Math.floor(b/4294967296),Pn[(j+64>>>9<<4)+15]=b,x.sigBytes=Pn.length*4,this._process(),this._hash},clone:function(){var x=v.clone.call(this);return x._hash=this._hash.clone(),x}});d.SHA1=v._createHelper(y),d.HmacSHA1=v._createHmacHelper(y)}(),f.SHA1})}(sha1)),sha1.exports}var sha256={exports:{}},hasRequiredSha256;function requireSha256(){return hasRequiredSha256||(hasRequiredSha256=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){return function(d){var h=f,p=h.lib,v=p.WordArray,m=p.Hasher,g=h.algo,y=[],x=[];(function(){function j(Bn){for(var w=d.sqrt(Bn),J=2;J<=w;J++)if(!(Bn%J))return!1;return!0}function re(Bn){return(Bn-(Bn|0))*4294967296|0}for(var vn=2,Fn=0;Fn<64;)j(vn)&&(Fn<8&&(y[Fn]=re(d.pow(vn,1/2))),x[Fn]=re(d.pow(vn,1/3)),Fn++),vn++})();var Pn=[],b=g.SHA256=m.extend({_doReset:function(){this._hash=new v.init(y.slice(0))},_doProcessBlock:function(j,re){for(var vn=this._hash.words,Fn=vn[0],Bn=vn[1],w=vn[2],J=vn[3],gn=vn[4],zn=vn[5],Vn=vn[6],Kn=vn[7],Un=0;Un<64;Un++){if(Un<16)Pn[Un]=j[re+Un]|0;else{var Qn=Pn[Un-15],Jn=(Qn<<25|Qn>>>7)^(Qn<<14|Qn>>>18)^Qn>>>3,Yn=Pn[Un-2],Zn=(Yn<<15|Yn>>>17)^(Yn<<13|Yn>>>19)^Yn>>>10;Pn[Un]=Jn+Pn[Un-7]+Zn+Pn[Un-16]}var nr=gn&zn^~gn&Vn,sr=Fn&Bn^Fn&w^Bn&w,ur=(Fn<<30|Fn>>>2)^(Fn<<19|Fn>>>13)^(Fn<<10|Fn>>>22),Gn=(gn<<26|gn>>>6)^(gn<<21|gn>>>11)^(gn<<7|gn>>>25),Wn=Kn+Gn+nr+x[Un]+Pn[Un],Rn=ur+sr;Kn=Vn,Vn=zn,zn=gn,gn=J+Wn|0,J=w,w=Bn,Bn=Fn,Fn=Wn+Rn|0}vn[0]=vn[0]+Fn|0,vn[1]=vn[1]+Bn|0,vn[2]=vn[2]+w|0,vn[3]=vn[3]+J|0,vn[4]=vn[4]+gn|0,vn[5]=vn[5]+zn|0,vn[6]=vn[6]+Vn|0,vn[7]=vn[7]+Kn|0},_doFinalize:function(){var j=this._data,re=j.words,vn=this._nDataBytes*8,Fn=j.sigBytes*8;return re[Fn>>>5]|=128<<24-Fn%32,re[(Fn+64>>>9<<4)+14]=d.floor(vn/4294967296),re[(Fn+64>>>9<<4)+15]=vn,j.sigBytes=re.length*4,this._process(),this._hash},clone:function(){var j=m.clone.call(this);return j._hash=this._hash.clone(),j}});h.SHA256=m._createHelper(b),h.HmacSHA256=m._createHmacHelper(b)}(Math),f.SHA256})}(sha256)),sha256.exports}var sha224={exports:{}},hasRequiredSha224;function requireSha224(){return hasRequiredSha224||(hasRequiredSha224=1,function(c,u){(function(f,d,h){c.exports=d(requireCore(),requireSha256())})(commonjsGlobal,function(f){return function(){var d=f,h=d.lib,p=h.WordArray,v=d.algo,m=v.SHA256,g=v.SHA224=m.extend({_doReset:function(){this._hash=new p.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var y=m._doFinalize.call(this);return y.sigBytes-=4,y}});d.SHA224=m._createHelper(g),d.HmacSHA224=m._createHmacHelper(g)}(),f.SHA224})}(sha224)),sha224.exports}var sha512={exports:{}},hasRequiredSha512;function requireSha512(){return hasRequiredSha512||(hasRequiredSha512=1,function(c,u){(function(f,d,h){c.exports=d(requireCore(),requireX64Core())})(commonjsGlobal,function(f){return function(){var d=f,h=d.lib,p=h.Hasher,v=d.x64,m=v.Word,g=v.WordArray,y=d.algo;function x(){return m.create.apply(m,arguments)}var Pn=[x(1116352408,3609767458),x(1899447441,602891725),x(3049323471,3964484399),x(3921009573,2173295548),x(961987163,4081628472),x(1508970993,3053834265),x(2453635748,2937671579),x(2870763221,3664609560),x(3624381080,2734883394),x(310598401,1164996542),x(607225278,1323610764),x(1426881987,3590304994),x(1925078388,4068182383),x(2162078206,991336113),x(2614888103,633803317),x(3248222580,3479774868),x(3835390401,2666613458),x(4022224774,944711139),x(264347078,2341262773),x(604807628,2007800933),x(770255983,1495990901),x(1249150122,1856431235),x(1555081692,3175218132),x(1996064986,2198950837),x(2554220882,3999719339),x(2821834349,766784016),x(2952996808,2566594879),x(3210313671,3203337956),x(3336571891,1034457026),x(3584528711,2466948901),x(113926993,3758326383),x(338241895,168717936),x(666307205,1188179964),x(773529912,1546045734),x(1294757372,1522805485),x(1396182291,2643833823),x(1695183700,2343527390),x(1986661051,1014477480),x(2177026350,1206759142),x(2456956037,344077627),x(2730485921,1290863460),x(2820302411,3158454273),x(3259730800,3505952657),x(3345764771,106217008),x(3516065817,3606008344),x(3600352804,1432725776),x(4094571909,1467031594),x(275423344,851169720),x(430227734,3100823752),x(506948616,1363258195),x(659060556,3750685593),x(883997877,3785050280),x(958139571,3318307427),x(1322822218,3812723403),x(1537002063,2003034995),x(1747873779,3602036899),x(1955562222,1575990012),x(2024104815,1125592928),x(2227730452,2716904306),x(2361852424,442776044),x(2428436474,593698344),x(2756734187,3733110249),x(3204031479,2999351573),x(3329325298,3815920427),x(3391569614,3928383900),x(3515267271,566280711),x(3940187606,3454069534),x(4118630271,4000239992),x(116418474,1914138554),x(174292421,2731055270),x(289380356,3203993006),x(460393269,320620315),x(685471733,587496836),x(852142971,1086792851),x(1017036298,365543100),x(1126000580,2618297676),x(1288033470,3409855158),x(1501505948,4234509866),x(1607167915,987167468),x(1816402316,1246189591)],b=[];(function(){for(var re=0;re<80;re++)b[re]=x()})();var j=y.SHA512=p.extend({_doReset:function(){this._hash=new g.init([new m.init(1779033703,4089235720),new m.init(3144134277,2227873595),new m.init(1013904242,4271175723),new m.init(2773480762,1595750129),new m.init(1359893119,2917565137),new m.init(2600822924,725511199),new m.init(528734635,4215389547),new m.init(1541459225,327033209)])},_doProcessBlock:function(re,vn){for(var Fn=this._hash.words,Bn=Fn[0],w=Fn[1],J=Fn[2],gn=Fn[3],zn=Fn[4],Vn=Fn[5],Kn=Fn[6],Un=Fn[7],Qn=Bn.high,Jn=Bn.low,Yn=w.high,Zn=w.low,nr=J.high,sr=J.low,ur=gn.high,Gn=gn.low,Wn=zn.high,Rn=zn.low,qn=Vn.high,Xn=Vn.low,Hn=Kn.high,tr=Kn.low,cr=Un.high,ir=Un.low,er=Qn,pr=Jn,lr=Yn,or=Zn,ar=nr,vr=sr,fr=ur,mr=Gn,dr=Wn,hr=Rn,yr=qn,_r=Xn,gr=Hn,br=tr,Er=cr,Mr=ir,Ir=0;Ir<80;Ir++){var Fr,Or,Nr=b[Ir];if(Ir<16)Or=Nr.high=re[vn+Ir*2]|0,Fr=Nr.low=re[vn+Ir*2+1]|0;else{var zr=b[Ir-15],Rr=zr.high,Vr=zr.low,Hr=(Rr>>>1|Vr<<31)^(Rr>>>8|Vr<<24)^Rr>>>7,Gr=(Vr>>>1|Rr<<31)^(Vr>>>8|Rr<<24)^(Vr>>>7|Rr<<25),Ur=b[Ir-2],Yr=Ur.high,Qr=Ur.low,ri=(Yr>>>19|Qr<<13)^(Yr<<3|Qr>>>29)^Yr>>>6,ti=(Qr>>>19|Yr<<13)^(Qr<<3|Yr>>>29)^(Qr>>>6|Yr<<26),ai=b[Ir-7],vi=ai.high,hi=ai.low,oi=b[Ir-16],xi=oi.high,Ci=oi.low;Fr=Gr+hi,Or=Hr+vi+(Fr>>>0<Gr>>>0?1:0),Fr=Fr+ti,Or=Or+ri+(Fr>>>0<ti>>>0?1:0),Fr=Fr+Ci,Or=Or+xi+(Fr>>>0<Ci>>>0?1:0),Nr.high=Or,Nr.low=Fr}var Si=dr&yr^~dr&gr,pi=hr&_r^~hr&br,wi=er&lr^er&ar^lr&ar,ki=pr&or^pr&vr^or&vr,mi=(er>>>28|pr<<4)^(er<<30|pr>>>2)^(er<<25|pr>>>7),di=(pr>>>28|er<<4)^(pr<<30|er>>>2)^(pr<<25|er>>>7),Pi=(dr>>>14|hr<<18)^(dr>>>18|hr<<14)^(dr<<23|hr>>>9),gi=(hr>>>14|dr<<18)^(hr>>>18|dr<<14)^(hr<<23|dr>>>9),Ei=Pn[Ir],Ii=Ei.high,_i=Ei.low,ni=Mr+gi,ii=Er+Pi+(ni>>>0<Mr>>>0?1:0),ni=ni+pi,ii=ii+Si+(ni>>>0<pi>>>0?1:0),ni=ni+_i,ii=ii+Ii+(ni>>>0<_i>>>0?1:0),ni=ni+Fr,ii=ii+Or+(ni>>>0<Fr>>>0?1:0),Di=di+ki,Sr=mi+wi+(Di>>>0<di>>>0?1:0);Er=gr,Mr=br,gr=yr,br=_r,yr=dr,_r=hr,hr=mr+ni|0,dr=fr+ii+(hr>>>0<mr>>>0?1:0)|0,fr=ar,mr=vr,ar=lr,vr=or,lr=er,or=pr,pr=ni+Di|0,er=ii+Sr+(pr>>>0<ni>>>0?1:0)|0}Jn=Bn.low=Jn+pr,Bn.high=Qn+er+(Jn>>>0<pr>>>0?1:0),Zn=w.low=Zn+or,w.high=Yn+lr+(Zn>>>0<or>>>0?1:0),sr=J.low=sr+vr,J.high=nr+ar+(sr>>>0<vr>>>0?1:0),Gn=gn.low=Gn+mr,gn.high=ur+fr+(Gn>>>0<mr>>>0?1:0),Rn=zn.low=Rn+hr,zn.high=Wn+dr+(Rn>>>0<hr>>>0?1:0),Xn=Vn.low=Xn+_r,Vn.high=qn+yr+(Xn>>>0<_r>>>0?1:0),tr=Kn.low=tr+br,Kn.high=Hn+gr+(tr>>>0<br>>>0?1:0),ir=Un.low=ir+Mr,Un.high=cr+Er+(ir>>>0<Mr>>>0?1:0)},_doFinalize:function(){var re=this._data,vn=re.words,Fn=this._nDataBytes*8,Bn=re.sigBytes*8;vn[Bn>>>5]|=128<<24-Bn%32,vn[(Bn+128>>>10<<5)+30]=Math.floor(Fn/4294967296),vn[(Bn+128>>>10<<5)+31]=Fn,re.sigBytes=vn.length*4,this._process();var w=this._hash.toX32();return w},clone:function(){var re=p.clone.call(this);return re._hash=this._hash.clone(),re},blockSize:1024/32});d.SHA512=p._createHelper(j),d.HmacSHA512=p._createHmacHelper(j)}(),f.SHA512})}(sha512)),sha512.exports}var sha384={exports:{}},hasRequiredSha384;function requireSha384(){return hasRequiredSha384||(hasRequiredSha384=1,function(c,u){(function(f,d,h){c.exports=d(requireCore(),requireX64Core(),requireSha512())})(commonjsGlobal,function(f){return function(){var d=f,h=d.x64,p=h.Word,v=h.WordArray,m=d.algo,g=m.SHA512,y=m.SHA384=g.extend({_doReset:function(){this._hash=new v.init([new p.init(3418070365,3238371032),new p.init(1654270250,914150663),new p.init(2438529370,812702999),new p.init(355462360,4144912697),new p.init(1731405415,4290775857),new p.init(2394180231,1750603025),new p.init(3675008525,1694076839),new p.init(1203062813,3204075428)])},_doFinalize:function(){var x=g._doFinalize.call(this);return x.sigBytes-=16,x}});d.SHA384=g._createHelper(y),d.HmacSHA384=g._createHmacHelper(y)}(),f.SHA384})}(sha384)),sha384.exports}var sha3={exports:{}},hasRequiredSha3;function requireSha3(){return hasRequiredSha3||(hasRequiredSha3=1,function(c,u){(function(f,d,h){c.exports=d(requireCore(),requireX64Core())})(commonjsGlobal,function(f){return function(d){var h=f,p=h.lib,v=p.WordArray,m=p.Hasher,g=h.x64,y=g.Word,x=h.algo,Pn=[],b=[],j=[];(function(){for(var Fn=1,Bn=0,w=0;w<24;w++){Pn[Fn+5*Bn]=(w+1)*(w+2)/2%64;var J=Bn%5,gn=(2*Fn+3*Bn)%5;Fn=J,Bn=gn}for(var Fn=0;Fn<5;Fn++)for(var Bn=0;Bn<5;Bn++)b[Fn+5*Bn]=Bn+(2*Fn+3*Bn)%5*5;for(var zn=1,Vn=0;Vn<24;Vn++){for(var Kn=0,Un=0,Qn=0;Qn<7;Qn++){if(zn&1){var Jn=(1<<Qn)-1;Jn<32?Un^=1<<Jn:Kn^=1<<Jn-32}zn&128?zn=zn<<1^113:zn<<=1}j[Vn]=y.create(Kn,Un)}})();var re=[];(function(){for(var Fn=0;Fn<25;Fn++)re[Fn]=y.create()})();var vn=x.SHA3=m.extend({cfg:m.cfg.extend({outputLength:512}),_doReset:function(){for(var Fn=this._state=[],Bn=0;Bn<25;Bn++)Fn[Bn]=new y.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(Fn,Bn){for(var w=this._state,J=this.blockSize/2,gn=0;gn<J;gn++){var zn=Fn[Bn+2*gn],Vn=Fn[Bn+2*gn+1];zn=(zn<<8|zn>>>24)&16711935|(zn<<24|zn>>>8)&4278255360,Vn=(Vn<<8|Vn>>>24)&16711935|(Vn<<24|Vn>>>8)&4278255360;var Kn=w[gn];Kn.high^=Vn,Kn.low^=zn}for(var Un=0;Un<24;Un++){for(var Qn=0;Qn<5;Qn++){for(var Jn=0,Yn=0,Zn=0;Zn<5;Zn++){var Kn=w[Qn+5*Zn];Jn^=Kn.high,Yn^=Kn.low}var nr=re[Qn];nr.high=Jn,nr.low=Yn}for(var Qn=0;Qn<5;Qn++)for(var sr=re[(Qn+4)%5],ur=re[(Qn+1)%5],Gn=ur.high,Wn=ur.low,Jn=sr.high^(Gn<<1|Wn>>>31),Yn=sr.low^(Wn<<1|Gn>>>31),Zn=0;Zn<5;Zn++){var Kn=w[Qn+5*Zn];Kn.high^=Jn,Kn.low^=Yn}for(var Rn=1;Rn<25;Rn++){var Jn,Yn,Kn=w[Rn],qn=Kn.high,Xn=Kn.low,Hn=Pn[Rn];Hn<32?(Jn=qn<<Hn|Xn>>>32-Hn,Yn=Xn<<Hn|qn>>>32-Hn):(Jn=Xn<<Hn-32|qn>>>64-Hn,Yn=qn<<Hn-32|Xn>>>64-Hn);var tr=re[b[Rn]];tr.high=Jn,tr.low=Yn}var cr=re[0],ir=w[0];cr.high=ir.high,cr.low=ir.low;for(var Qn=0;Qn<5;Qn++)for(var Zn=0;Zn<5;Zn++){var Rn=Qn+5*Zn,Kn=w[Rn],er=re[Rn],pr=re[(Qn+1)%5+5*Zn],lr=re[(Qn+2)%5+5*Zn];Kn.high=er.high^~pr.high&lr.high,Kn.low=er.low^~pr.low&lr.low}var Kn=w[0],or=j[Un];Kn.high^=or.high,Kn.low^=or.low}},_doFinalize:function(){var Fn=this._data,Bn=Fn.words;this._nDataBytes*8;var w=Fn.sigBytes*8,J=this.blockSize*32;Bn[w>>>5]|=1<<24-w%32,Bn[(d.ceil((w+1)/J)*J>>>5)-1]|=128,Fn.sigBytes=Bn.length*4,this._process();for(var gn=this._state,zn=this.cfg.outputLength/8,Vn=zn/8,Kn=[],Un=0;Un<Vn;Un++){var Qn=gn[Un],Jn=Qn.high,Yn=Qn.low;Jn=(Jn<<8|Jn>>>24)&16711935|(Jn<<24|Jn>>>8)&4278255360,Yn=(Yn<<8|Yn>>>24)&16711935|(Yn<<24|Yn>>>8)&4278255360,Kn.push(Yn),Kn.push(Jn)}return new v.init(Kn,zn)},clone:function(){for(var Fn=m.clone.call(this),Bn=Fn._state=this._state.slice(0),w=0;w<25;w++)Bn[w]=Bn[w].clone();return Fn}});h.SHA3=m._createHelper(vn),h.HmacSHA3=m._createHmacHelper(vn)}(Math),f.SHA3})}(sha3)),sha3.exports}var ripemd160={exports:{}},hasRequiredRipemd160;function requireRipemd160(){return hasRequiredRipemd160||(hasRequiredRipemd160=1,function(c,u){(function(f,d){c.exports=d(requireCore())})(commonjsGlobal,function(f){/** @preserve
62
62
  (c) 2012 by Cédric Mesnil. All rights reserved.
63
63
 
64
64
  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
@@ -99,7 +99,7 @@ version: 2.9.0
99
99
  `,f+="-----END PUBLIC KEY-----",f},u.hasPublicKeyProperty=function(f){return f=f||{},f.hasOwnProperty("n")&&f.hasOwnProperty("e")},u.hasPrivateKeyProperty=function(f){return f=f||{},f.hasOwnProperty("n")&&f.hasOwnProperty("e")&&f.hasOwnProperty("d")&&f.hasOwnProperty("p")&&f.hasOwnProperty("q")&&f.hasOwnProperty("dmp1")&&f.hasOwnProperty("dmq1")&&f.hasOwnProperty("coeff")},u.prototype.parsePropertiesFrom=function(f){this.n=f.n,this.e=f.e,f.hasOwnProperty("d")&&(this.d=f.d,this.p=f.p,this.q=f.q,this.dmp1=f.dmp1,this.dmq1=f.dmq1,this.coeff=f.coeff)},u}(RSAKey),_a,version=typeof process<"u"?(_a=process.env)===null||_a===void 0?void 0:_a.npm_package_version:void 0,JSEncrypt=function(){function c(u){u===void 0&&(u={}),u=u||{},this.default_key_size=u.default_key_size?parseInt(u.default_key_size,10):1024,this.default_public_exponent=u.default_public_exponent||"010001",this.log=u.log||!1,this.key=null}return c.prototype.setKey=function(u){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new JSEncryptRSAKey(u)},c.prototype.setPrivateKey=function(u){this.setKey(u)},c.prototype.setPublicKey=function(u){this.setKey(u)},c.prototype.decrypt=function(u){try{return this.getKey().decrypt(b64tohex(u))}catch{return!1}},c.prototype.encrypt=function(u){try{return hex2b64(this.getKey().encrypt(u))}catch{return!1}},c.prototype.sign=function(u,f,d){try{return hex2b64(this.getKey().sign(u,f,d))}catch{return!1}},c.prototype.verify=function(u,f,d){try{return this.getKey().verify(u,b64tohex(f),d)}catch{return!1}},c.prototype.getKey=function(u){if(!this.key){if(this.key=new JSEncryptRSAKey,u&&{}.toString.call(u)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,u);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},c.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},c.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},c.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},c.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},c.version=version,c}();const encryptor=new JSEncrypt,aesKey=createAesKey();function createAesKey(){let u=Math.random().toString(36).substr(2);for(;u.length<16;)u+=Math.random().toString(36).substr(2);return u=u.substr(0,16),u}const iv=CryptoJS.enc.Utf8.parse("ABCDEF1234123412");function aesEncrypt(c,u){u=u||aesKey;const f=CryptoJS.enc.Utf8.parse(u);let d="";switch(typeof c){case"string":d=CryptoJS.enc.Utf8.parse(c);break;case"object":d=CryptoJS.enc.Utf8.parse(JSON.stringify(c));break;default:d=CryptoJS.enc.Utf8.parse(c.toString())}return CryptoJS.AES.encrypt(d,f,{iv,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.ZeroPadding}).toString()}function aesDecrypt(c,u){u=u||aesKey;const f=CryptoJS.enc.Utf8.parse(u),d=CryptoJS.AES.decrypt(c,f,{iv,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.ZeroPadding});return CryptoJS.enc.Utf8.stringify(d).toString()}function setPublicKey(c){encryptor.setPublicKey(c)}function rsaEncrypt(c){return encryptor.encrypt(c)}function hasEncryptUrl(c=""){c.startsWith("/")||(c="/"+c),c=c.split("?")[0];const f=["/diagram","/dataview"].map(d=>`^(.*?)${d}(/|$)`);for(const d of f)if(new RegExp(d).test(c))return!0;return!1}function EncryptConfigParam(c){const{paramType:u,data:f,params:d,method:h}=c;u==="form"?["get","delete"].includes(h)?c.params=getEncryptParam(d,"string"):c.data=getEncryptParam(f,"string"):["get","delete"].includes(h)?c.params=getEncryptParam(d,"string"):c.data=getEncryptParam(f)}function getEncryptParam(c,u){let f=c||{};if(u==="string"){f="";for(const m in c)if(Object.hasOwnProperty.call(c,m)){const g=c[m];f+=`${m}=${encodeURIComponent(g)}&`}}setPublicKey("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMKaTbS1XHH7u/4dhao1n5Lcegpy6AHKX2TjmTP7IDW6N4wznqlL3Tt+U0/Il1TlNp1/EN+tffYYg4dPrrCUDwcCAwEAAQ==");const h=rsaEncrypt(aesKey);return{c:aesEncrypt(f,aesKey),p:h}}window.getEncryptParam=getEncryptParam;function encryptData(c,u){var f;(f=window==null?void 0:window.config)!=null&&f.encryptFlag&&hasEncryptUrl(c.url)&&(c.data instanceof FormData?c.data=getEncryptFileParam(c.data):EncryptConfigParam(c))}function getEncryptFileParam(c){const u=c.entries(),f=new FormData,d={};for(const p of u){const v=p[0],m=p[1];m instanceof Blob?f.append(v,m):d[v]=m}const h=getEncryptParam(d,"json");return typeof h=="object"&&(f.append("c",h.c),f.append("p",h.p)),f}window.xhaesKey=aesKey,window.xhaesDecrypt=aesDecrypt;function decryptData(c,u){var f;if((f=window==null?void 0:window.config)!=null&&f.encryptFlag&&hasEncryptUrl(c.config.url)&&!(c.data instanceof Blob)&&c.data.data!==void 0){const d=aesDecrypt(c.data.data.content,aesKey);c.data=JSON.parse(d)}}const requestErrorTip=window.config.requestErrorTip,request=axios.create({timeout:1e3*180});request.interceptors.request.use(c=>{const{requestParams:u={}}=window.config;return u!=null&&u.pltToken&&(c.headers["Plt-Token"]=u.pltToken),encryptData(c),c},c=>Promise.reject(c)),request.interceptors.response.use(c=>{var u,f,d;return requestErrorTip&&+((u=c==null?void 0:c.data)==null?void 0:u.code)==500&&antDesignVue.message.error({content:((f=c==null?void 0:c.data)==null?void 0:f.msg)||((d=c==null?void 0:c.data)==null?void 0:d.message)||"服务器异常",key:"SERVER_ERROR",duration:2}),decryptData(c),c},c=>{if(decryptData(c==null?void 0:c.response),requestErrorTip)if(c.message.includes("timeout"))antDesignVue.message.error({content:"网络连接超时,请重试!",key:"TIMEOUT",duration:2});else{const{status:u}=(c==null?void 0:c.response)||{};u>=400&&u<500&&antDesignVue.message.error({content:"请求异常",key:"REQUEST_ERROR",duration:2}),u>=500&&antDesignVue.message.error({content:"服务器异常",key:"REQUEST_ERROR",duration:2})}return Promise.reject(c)});const handleFormatter=c=>c.replace(/\\n/g,`
100
100
  `),formatMoney=(c,u=2)=>{const f=parseFloat(c+"");return isNaN(f)?c:f.toFixed(u).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},formatThousands=c=>{const u=parseFloat(c+"");return isNaN(u)?c:(u+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},formatPercentage=(c,u=2)=>{const f=c+"";if(f.includes("%"))return c;const d=parseFloat(f);return isNaN(d)?c:`${(d*100).toFixed(u)}%`},formatDecimals=(c,u=2)=>{const f=c+"",d=parseFloat(f);return isNaN(d)?c:d.toFixed(u)},formatCustom=(c,u)=>In(u,c),getFixedValueDatas=c=>{const{leftAxisList:u=[],rightAxisList:f=[],queryColumnList:d=[],indicators:h=[]}=c;return[...u,...f,...d,...h].filter(p=>(p==null?void 0:p.calcType)==="COMPONENT").map(p=>({keyName:p.builtInCalcWay,id:p.builtInValueSource}))},canRequestIndicator=(c,u)=>{let f=!0;const d=getFixedValueDatas(c);return d!=null&&d.length&&(f=d.map(h=>u[h.id]).every(h=>h)),f},getLegendFormat=(c,u)=>{var v;const f=c.match(/\{(.+?)\}/g),d=((v=c.split(`
101
101
  `))==null?void 0:v.length)-1;let h="";if(d)for(let m=0;m<d;m++)h+=`
102
- `;let p=c;if(f!=null&&f.length){for(const m of f){const g=hn(m,{textData:u},{useNewline:!1,useSpace:!1});g&&(p=p.replace(m,g))}return`${h}{text|${p}}`}else return c},setDefaultRangeVal=(c,u)=>{const{props:f,componentList:d,getGlobalModel:h}=c,{graphicConfig:p={},startValue:v,endValue:m}=f,g=getdefCompleteData({graphicConfig:p,startValue:v,endValue:m,componentList:d,getGlobalModel:h}),{dimensions:y,dataset:x}=u,{classificationList:Pn=[]}=p,j=Pn.find(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:d,graphicConfig:h,getGlobalModel:p}=c,v=getVariableAndField(u),m=getVariableAndField(f),g=[];if(v&&m){const y=d.find(Pn=>Pn.keyName===v.keyName),x=d.find(Pn=>Pn.keyName===m.keyName);if(y&&x){const Pn=p(y.id),b=p(x.id),{classificationList:j=[]}=h,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 d=f[0].slice(1,-1).trim();const h=d.match(/\[(.+?)\]/g);let p="";h!=null&&h.length&&(d=d.replace(h[0],""),p=h[0].slice(1,-1).trim()),u={keyName:d,field:p}}}return u}function getFormatStep(c){const u=c.split("-");let f="";if(u!=null&&u.length)switch(u[u.length-1]){case"YYYY":f="year";break;case"MM":f="month";break;case"DD":f="day";break}return f}function handleJumpLink(c,u){var Pn;const{pageMode:f,targetTemplate:d,getRecordValueByKeyName:h,setTemplateData:p}=u,v=c.linkPage||"",m=usePageUrl(f,v),g=c.href;let y=g||m;y=hn(y);const x=c.target;if(x)if(x==="event")window.parent.postMessage({type:"openPage",url:g},"*");else{const b={pageId:v,componentId:d};if((Pn=c.transParams)!=null&&Pn.length){y.includes("?")?y+="&":y+="?";const j=[];for(const re of c.transParams){const vn=h(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,d;let u={};if(c){const h=(((f=window.config)==null?void 0:f.urlParams)||{})[c]||{};for(const p in h)p.includes("{")||(u[p]=h[p])}else u=((d=window.config)==null?void 0:d.requestParams)||{};return u}function getNewValueFromUrlParams(c,u,f){let d="";const{urlParams:h}=window.config;if(c&&h[c])for(const p in h[c]){const v=h[c][p];if(p===`{${u}[${f}]}`&&v){d=v;break}}return d}function getFormatWh(c,u){return typeof c=="string"?parseFloat(c):c.suffix==="px"?+c.value:c.suffix==="%"?parseFloat(u)*(c.value/100):0}const hasChinese=c=>/[\u4e00-\u9fa5]/.test(c),dragModalAction=(c,u)=>{const f=document.querySelector(u);if(!f)return;f.style.cursor="move",f.style.userSelect="none";const d=f.parentElement,h=200,p=d.getBoundingClientRect(),{width:v,left:m,top:g}=p,y=window.innerWidth,x=window.innerHeight,Pn=c.clientX,b=c.clientY,j=parseFloat(d.style.left)||0,re=parseFloat(d.style.top)||0,vn=-(m+v-h-j),Fn=y-m+j-h,Bn=-(g-re),w=x-g+re-h,J=zn=>{zn.preventDefault();const Vn=zn.clientX-Pn,Kn=zn.clientY-b;let Un=j+Vn,Qn=re+Kn;Un=Math.max(vn,Math.min(Un,Fn)),Qn=Math.max(Bn,Math.min(Qn,w)),d.style.left=`${Un}px`,d.style.top=`${Qn}px`},gn=()=>{f.style.cursor="",f.style.userSelect="",document.removeEventListener("mousemove",J),document.removeEventListener("mouseup",gn)};document.addEventListener("mousemove",J),document.addEventListener("mouseup",gn)},useRequestData=(c,u,f=()=>{})=>{var sr;const{requestUrl:d,requestMethod:h,requestHeaders:p,requestParams:v,requestInterval:m,isOpenRequestTimer:g,openCustomRequestData:y,projectRequestUrl:x="",getModel:Pn,requestParamsMode:b,customRequestParams:j,dataSetParam: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:zn}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:"",touchEventId:""})||{},{getGlobalModel:Vn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:ur=>{}})||{},{loadedData:Kn}=vue.inject(LOADED_DATA,{loadedData:{}})||{},Un=vue.inject(COMMON_OPERATE,{operateAction:(ur,Gn)=>{}}),Qn=Pn||Vn;let Jn=hn(d),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||!h||!p)return;let Gn={};for(const er of v){const{key:pr,value:lr}=er;if((lr==null?void 0:lr.id)==="PARENT"&&(lr!=null&&lr.prop)){const ar=(((ir=window.config)==null?void 0:ir.record)||{})[lr.prop];if(ar){const vr=ar[lr.propKey||"value"];vr&&(["date","range"].some(mr=>yn(ar==null?void 0:ar.type,mr))?Gn[pr]=vue.unref(vr).format(ar.format||"YYYY-MM-DD"):Gn[pr]=vue.unref(vr))}continue}if(typeof lr=="object"&&lr!=null&&lr.id){let or={};const{id:ar,prop:vr,propKey:fr,operate:mr}=lr;let dr=!1;try{JSON.parse(ar),dr=!0}catch{dr=!1}if(ar==="THIS"?or=Qn(vue.unref(zn))||{}: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 hr=vue.unref(or[vr]);let yr=null;if(["date","range"].some(gr=>yn(or==null?void 0:or.type,gr))){const{value:gr,type:br,mode:Er}=mr||{};if(gr&&br&&Er)switch(br){case"add":yr=vue.unref(hr).add(gr,Er);break;case"minus":yr=vue.unref(hr).subtract(gr,Er);break}yr==null&&(yr=vue.unref(hr)),yr=yr&&(yr==null?void 0:yr.format((fr==null?void 0:fr.trim())||or.format))||""}else if(Object.prototype.toString.call(hr)==="[object Object]")fr?yr=hr[fr]:yr=vr?hr[vr]:hr;else if(yn(or==null?void 0:or.type,"select")&&vue.unref(hr)&&vr&&Array.isArray(vue.unref(hr)))yr=vue.unref(hr).map(gr=>Object.prototype.hasOwnProperty.call(gr,vr)?gr[vr]:gr);else if(dr){const gr=JSON.parse(ar);console.log(gr,"urlvalue"),yr=gr.value}else yr=hr;Gn[pr]=yr}else typeof lr=="object"&&!lr.id&&vn===1?(console.log(lr.propKey,"value.propKey"),Gn[pr]=lr.propKey):typeof lr=="string"&&(Gn[pr]=hn(lr))}if(vn===1){console.log(Gn,"_params");const er=Object.entries(Gn);let pr=re;if(!re.param&&Array.isArray(re)){const lr={};for(const or of re)lr[or.key]=or.value;pr=lr}pr.param=pr.param.map((lr,or)=>({...lr,paramKey:er[or][0],defaultValue:er[or][1]||""})),Gn=pr}if(b==="2"&&j!=="{}"){const er=JSON.parse(j);Wn(er),er&&(Gn=er)}function Wn(er){const pr={...Gn,...getPageUrlParams(J)};if(Array.isArray(er))er.forEach((lr,or)=>{if(typeof lr=="string"){const ar=lr.match(/\${(.+?)\}/g);if(ar!=null&&ar.length){const vr=ar[0].slice(2,-1);vr&&pr[vr]?er[or]=pr[vr]:er[or]=""}}else Wn(lr)});else if(Object.prototype.toString.call(er)==="[object Object]")for(const lr in er)if(typeof er[lr]=="string"){const or=er[lr].match(/\${(.+?)\}/g);if(or!=null&&or.length){const ar=or[0].slice(2,-1);ar&&pr[ar]?er[lr]=pr[ar]:er[lr]=""}}else Wn(er[lr])}const Rn=getPageUrlParams(J);for(const er in Rn)Rn[er]&&(Rn[er]=decodeURIComponent(Rn[er]));Gn={...Rn,...ur,...Gn};let qn="";const Xn=Object.keys(Gn),Hn=Xn.length-1,tr=Xn.length;Xn.forEach((er,pr)=>{let lr=Gn[er];Object.prototype.toString.call(lr)==="[object Object]"&&(lr=JSON.stringify(lr)),pr===0?tr!==1?qn+=`?${er}=${lr}&`:qn+=`?${er}=${lr}`:pr===Hn?qn+=`${er}=${lr}`:qn+=`${er}=${lr}&`}),Jn.includes("?")&&(qn=qn.replace("?","&"));function cr(er){var pr;if(vn===1)return{Authentication:(pr=window==null?void 0:window.config)==null?void 0:pr.indicatorToken};if(typeof er=="string"){const lr=JSON.parse(er),or=getPageUrlParams(J);if(Object.prototype.toString.call(lr)==="[object Object]"){for(const ar in lr)if(typeof lr[ar]=="string"){const vr=lr[ar].match(/\${(.+?)\}/g);if(vr!=null&&vr.length){const fr=vr[0].slice(2,-1);fr&&or[fr]?lr[ar]=or[fr]:lr[ar]=""}}}return lr}else return er}try{const er=["get","head"].includes(h),pr={};let lr=er?Jn+qn:Jn;Gn.dataSqlId&&!lr.includes("dataSqlId")&&(lr+=`${lr.includes("?")?"&":"?"}dataSqlId=${Gn.dataSqlId}`),Object.prototype.hasOwnProperty.call(Gn,"signal")?pr.signal=Gn.signal:window.controller&&(pr.signal=window.controller.signal);const or=await request({baseURL:Yn,url:lr,method:h,headers:p?cr(p):{},data:er?{}:Gn,...pr});return f(or),Un.operateAction("SAVE_COMPONENT_RES_DATA",{id:c.id,data:(or==null?void 0:or.data)||{}}),or}catch(er){console.error(er)}},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 d;if(!c)return c;let f="";return c!=null&&c.includes("://")?f=c:f=((d=window==null?void 0:window.config)==null?void 0:d.uploadPath)+c,u&&(f=`url(${f})`),f},usePageUrl=(c,u)=>{const f=`${BASE_URL}/preview?pageId=${u}`,d=`${BASE_URL}/${u}`;return c==="preview"?f:d},useIndicatorData=(c={},u=()=>{})=>{var x;const{pageMode:f}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),{requestToken:d}=vue.inject(GLOBAL_TOKEN,{requestToken:()=>{}}),{setLoadedData:h}=vue.inject(LOADED_DATA,{setLoadedData:(Pn,b)=>{}}),{getAllGlobalModel:p}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),{pageId:v}=vue.inject("templateOperate",{pageId:""})||{},m=vue.inject(COMMON_OPERATE,{operateAction:(Pn,b)=>{}});c.dataType==="indicator"&&d();const g=async(Pn={})=>{var J,gn,zn;const b=p();h(c.id,!1);const j=Dn({...c,globalModel:b},Pn),{url:re,...vn}=j||{},{pathname:Fn,search:Bn}=window==null?void 0:window.location;let w=v||((J=window==null?void 0:window.config)==null?void 0:J.pageId);if(!w&&Fn){const Vn=Fn.split("/");Vn!=null&&Vn.length&&(w=Vn[Vn.length-1])}if(re&&vn){let Vn,Kn;if(c.type==="ecanIndexPanel"&&(Vn=c.theFlag),re==="/diagram/formData"){Kn={};const Qn=Bn.slice(1,Bn.length).split("&");for(const Jn of Qn)if(Jn){const Yn=Jn.split("=");Yn[0]&&(Kn[Yn[0]]=Yn[1])}}try{const Un=await request({url:`${INDICATOR_URL}${re}`,method:"post",headers:{Authentication:(gn=window==null?void 0:window.config)==null?void 0:gn.indicatorToken,operateContext:CONTEXT},data:{...vn,pageId:w,theFlag:Vn,extParam:Kn},signal:((zn=window.controller)==null?void 0:zn.signal)||""});return Pn!=null&&Pn.isTimer&&u(Un),m.operateAction("SAVE_COMPONENT_RES_DATA",{id:c.id,data:(Un==null?void 0:Un.data)||{}}),Un}catch(Un){console.error(Un)}}},y=vue.unref(f)!=="design"&&((x=c==null?void 0:c.graphicConfig)==null?void 0:x.pageMode)!=="design"&&c.isOpenRequestTimer&&c.requestInterval&&setInterval(()=>{g({isTimer:!0})},c.requestInterval*1e3);return vue.onUnmounted(()=>{clearInterval(y)}),g},useHrefParamsToGlobalVariables=()=>{const u=window.location.search.slice(1).split("&"),f=u.length,d={};for(let h=0;h<f;h++){const p=u[h];if(p==null||p==="")continue;const v=p.split("=");if(Array.isArray(v)){const m=v[0];m.includes("{")||(d[m]=v[1])}}window.config.requestParams={...window.config.requestParams,...d},window.config={...window.config,...d}},_sfc_main$z=vue.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...pageConfigComponentProps,pageId:{type:String,default:""},customId:{type:String,default:"container"},portId:{type:String,default:"norPageConfig"}},setup(c){const{width:u,height:f,isCompatible:d}=vue.inject(GLOBAL_CONFIG,{width:null,height:null,isCompatible:null}),h=vue.inject("setPageHeight",zn=>{}),p=vue.inject("isMobile",!1),v=vue.computed(()=>{const zn={};return(!d.value||!p)&&(zn.width=u.value,zn.height=f.value),{...zn,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(zn=>{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),zn()})}),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(d.value&&p){b.value.style.width="100%",b.value.style.height="auto",h("auto");return}const zn=document.body.clientWidth,Vn=document.body.clientHeight,Kn=m.value||y.value,Un=g.value||x.value,Qn=zn/Kn;let Jn=Vn/Un;(m.value!==1920||g.value!==1080)&&(Jn=g.value/m.value*zn/Un),Fn.value={widthScale:Qn,heightScale:Jn},b.value&&(b.value.style.transform=`scale(${Qn}, ${Jn})`),h(Fn.value)},w=lodashEs.debounce(async()=>{await re(),Bn()},100),J=()=>{const zn=window.MutationObserver;j=new zn(w),j.observe(b.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},gn=()=>{j&&(j.disconnect(),j.takeRecords(),j=null)};return vue.onMounted(()=>{Pn.value=!1}),vue.onUnmounted(()=>{window.removeEventListener("resize",w),gn()}),{style:v,container:b,ready:Pn}}}),PageConfig_vue_vue_type_style_index_0_scoped_44a453d9_lang="",_hoisted_1$k=["id"],_hoisted_2$a=["id"];function _sfc_render$E(c,u,f,d,h,p){return vue.openBlock(),vue.createElementBlock("div",{class:"page-config-container",id:c.customId,ref:"container"},[c.ready||c.pageId?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"page-config",id:c.portId,style:vue.normalizeStyle(c.style)},[vue.renderSlot(c.$slots,"default",{},void 0,!0)],12,_hoisted_2$a)):vue.createCommentVNode("",!0)],8,_hoisted_1$k)}const PageConfig=_export_sfc$1(_sfc_main$z,[["render",_sfc_render$E],["__scopeId","data-v-44a453d9"]]),EcanPageConfig=withInstall$1(PageConfig),providerConfig={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px",pageFontFamily:"",jumpType:"page",jumpTime:null,jumpPage:"",jumpLink:"",requestList:[],events:[],isCompatible:!0,variableList:[],drillingMode:"pivotTable"},providerConfigComponentProps=transformToComponentProps(providerConfig);let random=c=>crypto.getRandomValues(new Uint8Array(c)),customRandom=(c,u,f)=>{let d=(2<<Math.log(c.length-1)/Math.LN2)-1,h=-~(1.6*d*u/c.length);return(p=u)=>{let v="";for(;;){let m=f(h),g=h;for(;g--;)if(v+=c[m[g]&d]||"",v.length===p)return v}}},customAlphabet=(c,u=21)=>customRandom(c,u,random),nanoid=(c=21)=>crypto.getRandomValues(new Uint8Array(c)).reduce((u,f)=>(f&=63,f<36?u+=f.toString(36):f<62?u+=(f-26).toString(36).toUpperCase():f>62?u+="-":u+="_",u),"");const pivotTableProps={...props,name:"透视表",keyName:"透视表",width:"800px",height:"400px",type:"ecanPivotTable",graphicConfig:{},dataType:"indicator",data:[],dimensionList:[],indicatorList:[],styleConfig:{borderColor:"#E3E3E3",headerBgColor:"#ECF1F5",headerColor:"#000000",bodyBgColor:"#FFFFFF",bodyColor:"#000000",indicatorsHeaderBgColor:"#ECF1F5",indicatorsHeaderColor:"#000000",indicatorsBodyBgColor:"#FFFFFF",indicatorsBodyColor:"#000000",aggregateBgColor:"#ECF1F5",aggregateColor:"#000000",sortNotActiveColor:"#CCCCCC",sortActiveColor:"#416EFF",dropDownMenuBgColor:"#FFFFFF",dropDownMenuColor:"#141414",dropDownMenuHightLightColor:"#2E68CF"},configMode:"halfMode"},pivotTableComponentProps=transformToComponentProps(pivotTableProps),pivotTableEvents=["refreshData"],_sfc_main$y=vue.defineComponent({name:"IndicatorDetailModal",setup(c,{expose:u}){const f=vue.ref(!1),d=vue.ref([]),h=vue.ref(!1),p=vue.ref(),v=async({data:g,indicatorUrl:y,indicatorToken:x,context:Pn,pageId:b})=>{var Fn,Bn;h.value=!0,f.value=!0;let j=[];const{graphicConfig:re,theFlag:vn}=vue.unref(g)||{};if(re){const{leftAxisList:w=[],rightAxisList:J=[],indicators:gn=[]}=re,zn=w.concat(J).concat(gn);zn!=null&&zn.length&&(j=zn.map(Vn=>({calcType:Vn.calcType||"COLUMN",columnName:Vn.name,hrpIndexCode:Vn.indexCode,hrpIndexCodeNum:Vn.indexCodeNum,label:Vn.label,show:Vn.show,formula:Vn.formula})))}if(j!=null&&j.length)try{const w=await request({url:`${vue.unref(y)}/diagram/obtainIndicatorInfo`,method:"post",headers:{Authentication:x,operateContext:Pn},data:{source:"INDICATOR_LIB",pageId:b,indicatorList:j,theFlag:vn}}),J=((Fn=w==null?void 0:w.data)==null?void 0:Fn.data)||[];(Bn=J[0])!=null&&Bn.remark?(p.value=J[0].remark,d.value=[]):(p.value=null,d.value=J)}catch{}finally{h.value=!1}},m=()=>document.querySelector("#ProviderConfig > #container")||document.body;return u({showModal:v}),{visible:f,dataList:d,isLoading:h,hasOwn:mn,remarkData:p,getContainer:m}}}),IndicatorDetailModal_vue_vue_type_style_index_0_scoped_be13fdbe_lang="",_withScopeId$6=c=>(vue.pushScopeId("data-v-be13fdbe"),c=c(),vue.popScopeId(),c),_hoisted_1$j=_withScopeId$6(()=>vue.createElementVNode("div",{class:"modal-title"},"指标详情",-1)),_hoisted_2$9={key:0,class:"spin-container"},_hoisted_3$5=["innerHTML"],_hoisted_4$4={class:"index-name"},_hoisted_5$3={key:0,class:"card-row"},_hoisted_6$3=_withScopeId$6(()=>vue.createElementVNode("div",{class:"label"},"计量单位:",-1)),_hoisted_7$3={class:"content"},_hoisted_8$3={key:1,class:"card-row"},_hoisted_9$3=_withScopeId$6(()=>vue.createElementVNode("div",{class:"label"},"指标定义:",-1)),_hoisted_10$3={class:"content"},_hoisted_11$3={key:2,class:"card-row"},_hoisted_12$3=_withScopeId$6(()=>vue.createElementVNode("div",{class:"label"},"计算方法:",-1)),_hoisted_13$3={class:"content"},_hoisted_14$3={key:3,class:"card-row"},_hoisted_15$2=_withScopeId$6(()=>vue.createElementVNode("div",{class:"label"},"指标说明:",-1)),_hoisted_16$1={class:"content"};function _sfc_render$D(c,u,f,d,h,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$j]),default:vue.withCtx(()=>[c.isLoading?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$9,[vue.createVNode(v,{size:"large"})])):c.remarkData?(vue.openBlock(),vue.createElementBlock("div",{key:1,innerHTML:c.remarkData},null,8,_hoisted_3$5)):c.dataList.length?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:2},vue.renderList(c.dataList,(g,y)=>(vue.openBlock(),vue.createElementBlock("div",{class:"detail-wrap",key:y},[vue.createElementVNode("div",_hoisted_4$4,vue.toDisplayString(g.indexName||"--"),1),c.hasOwn(g,"theUnit")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$3,[_hoisted_6$3,vue.createElementVNode("div",_hoisted_7$3,vue.toDisplayString(g.theUnit||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(g,"meaning")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_8$3,[_hoisted_9$3,vue.createElementVNode("div",_hoisted_10$3,vue.toDisplayString(g.meaning||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(g,"theFormula")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_11$3,[_hoisted_12$3,vue.createElementVNode("div",_hoisted_13$3,vue.toDisplayString(g.theFormula||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(g,"theExplain")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_14$3,[_hoisted_15$2,vue.createElementVNode("div",_hoisted_16$1,vue.toDisplayString(g.theExplain||"--"),1)])):vue.createCommentVNode("",!0)]))),128)):vue.createCommentVNode("",!0)]),_:1},8,["visible","getContainer"])}const IndicatorDetailModal=_export_sfc$1(_sfc_main$y,[["render",_sfc_render$D],["__scopeId","data-v-be13fdbe"]]),lineProps={...props,id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"}],titleText:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanLine",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,tooltipTextStyleColor:"",noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px",defaultRangeValue:!1,startValue:"",endValue:""},lineComponentProps=transformToComponentProps(lineProps),lineEvents=["click","refreshData","resetRecord"],useDownloadFile=async c=>{var g;const u=await request.post(c,{},{responseType:"blob"}),{data:f,headers:d}=u,h=d["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),p=new Blob([f]),v=document.createElement("a"),m=window.URL.createObjectURL(p);v.href=m,v.download=decodeURI(h),v.style.display="none",document.body.appendChild(v),v.click(),(g=v.parentNode)==null||g.removeChild(v),window.URL.revokeObjectURL(m)},modalProps={id:"",type:"ecanModal",title:"",titleFontSize:"14px",titleColor:"",width:"1000px",height:"800px",originalWidth:"1920px",originalHeight:"1080px",backgroundColor:"#fff",backgroundImage:"",backgroundSize:"100% 100%",keyName:"弹窗",componentList:[],fullModal:!1,destroyOnClose:!0,position:"default",closeBtnColor:"#333",isShowCloseBtn:!0,events:[],borderRadius:"0",borderWidth:"0px",borderColor:"",boxShadow:"0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05)",allComponentList:[],requestList:[],parentIframeId:"",banScale:!1},modalComponentProps=transformToComponentProps(modalProps),modalEvents=["showModal","hideModal"],containerType=["ecanBorder","ecanTabs","ecanCirculate"];function handleScrollCombinations(c){const{containerMap:u={},sourceList:f=[]}=c,d=lodashEs.cloneDeep(c.componentList),h=d.filter(p=>p.type==="ecanTabs"&&p.isAutoScroll);if(h!=null&&h.length)for(const p of h){const v=u[p.id],m=[];if((!mn(p,"componentList")||!(p!=null&&p.componentList))&&(p.componentList=[]),v){let g=0;for(const y in v){const x=v[y],Pn=[];if(x!=null&&x.length)for(const b of x){let j=d.find(re=>re.id===b);j||(j=f.find(re=>re.id===b)),j&&(Pn.push(j),containerType.includes(j.type)&&Pn.push(...getComponentByContainer(j.id,u,f)))}for(const b of Pn)mn(b,"scale")?parseFloat(y)>0&&(b.left=parseFloat(b.left)+g+"px"):(b.left=parseFloat(b.sourceLeft||b.left)-parseFloat(p.sourceLeft||p.left)+g+"px",b.top=parseFloat(b.sourceTop||b.top)-parseFloat(p.sourceTop||p.top)+"px"),m.includes(b.id)||m.push(b.id);p.componentList.push(...Pn),g=getMaxLeftInComponents(Pn)}}for(const g of m){const y=d.findIndex(x=>x.id===g);y!==-1&&d.splice(y,1)}}return d}function compatibleMobileList(c){var p,v;const{combinationMap:u={},sourceList:f=[]}=c,d=c.containerMap,h=lodashEs.cloneDeep([...c.componentList,...getTabsSomeComponentList(d,f)]);if(handleContainerMap(d,h),(p=Object.keys(d))!=null&&p.length||(v=Object.keys(u))!=null&&v.length){for(const b in d){const j=h.find(re=>re.id===b);if(j){mn(j,"parentId")||(j.parentId="",j.sourceLeft=j.left,j.sourceTop=j.top);for(const re in d[b])if(d[b][re])for(const vn of d[b][re]){const Fn=h.find(Bn=>Bn.id===vn);Fn&&(Fn.parentId=b,Fn.sourceLeft=Fn.left,Fn.sourceTop=Fn.top,Fn.left=parseFloat(Fn.left)-parseFloat(j.sourceLeft||j.left)+"px",Fn.top=parseFloat(Fn.top)-parseFloat(j.sourceTop||j.top)+"px")}}}const m=Array.from(new Set(h.filter(b=>(!mn(b,"parentId")||b.parentId==="")&&b.combinationId).map(b=>b.combinationId))),g=getCombinationList(m,{...c,componentList:h});g!=null&&g.length&&h.unshift(...g);const y=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],x=h.filter(b=>y.includes(b.type)&&!mn(b,"parentId")),Pn=[];for(const b of x)if(b){const j=b.id+"_vir";Pn.push({id:j,keyName:b.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:b.width,height:b.height,left:b.left,top:b.top,sourceLeft:b.left,sourceTop:b.top}),b.parentId=j,b.sourceLeft=b.left,b.sourceTop=b.top,b.left=0,b.top=0}Pn!=null&&Pn.length&&h.unshift(...Pn);for(const b of h){const j=document.body.clientWidth;if(b.parentId===""&&containerType.includes(b.type))b.sourceWidth=parseFloat(b.width),b.height=(j/(b.sourceWidth/parseFloat(b.height))).toFixed(2)+"px",b.width="100%",b.position="relative",b.top="auto",b.left="auto";else{const re=h.find(vn=>vn.id===b.parentId);if((re==null?void 0:re.parentId)===""){const vn=re.sourceWidth||parseFloat(re.width),Fn=j/vn;b.scale=Fn,b.top=parseFloat(b.top)*Fn-parseFloat(b.height)*(1-Fn)/2+"px",b.left=parseFloat(b.left)*Fn-parseFloat(b.width)*(1-Fn)/2+"px"}}b.type==="ecanModal"&&(b.parentId="",b.fullModal=!0)}return sortList(h)}return h}function handleContainerMap(c,u){const f=lodashEs.cloneDeep(c),d=u.filter(h=>h.type==="ecanTabs"&&h.isAutoScroll);if(d!=null&&d.length)for(const h of d){const p=f[h.id];for(const v in p)for(const m of p[v]){const g=u.find(y=>y.id===m);if(g&&containerType.includes(g.type)){const y=getComponentByContainer(g.id,f,u);for(const x of y)c[h.id][v].push(x.id),containerType.includes(x.type)&&delete c[x.id];delete c[g.id]}}}}function getTabsSomeComponentList(c,u){const f=[],d=u.filter(h=>h.type==="ecanTabs"&&h.isAutoScroll);if(d!=null&&d.length)for(const h of d){const p=c[h.id];for(const v in p)if(parseFloat(v)>0)for(const m of p[v]){const g=u.find(y=>y.id===m);g&&(f.push(g),containerType.includes(g.type)&&f.push(...getComponentByContainer(g.id,c,u)))}}return f}function getComponentByContainer(c,u,f){const d=[],h=u[c];for(const p in h)for(const v of h[p]){const m=f.find(g=>g.id===v);m&&(d.push(m),containerType.includes(m.type)&&d.push(...getComponentByContainer(m.id,u,f)))}return d}function getCombinationList(c,u,f){const{combinationMap:d={},componentList:h=[]}=u,p=[];for(const v of c){const m=d[v];if(m!=null&&m.length){const g=h.filter(y=>m.includes(y.id));if(g!=null&&g.length){const y=getCombinateRect(g);if(y){p.push({...y,id:v,keyName:v,parentId:f||"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:y.left,sourceTop:y.top});for(const x of g)x&&(x.parentId=v,x.sourceLeft=x.left,x.sourceTop=x.top,x.left=parseFloat(x.left)-parseFloat(y.left)+"px",x.top=parseFloat(x.top)-parseFloat(y.top)+"px")}}}}return p}function sortList(c){const f=c.filter(d=>d.parentId==="");if(f!=null&&f.length){const d=lodashEs.cloneDeep(f).map(h=>({...h,sourceTop:parseFloat(h.sourceTop),sourceLeft:parseFloat(h.sourceLeft)}));for(let h=0;h<d.length-1;h++)for(let p=0;p<d.length-h-1;p++){let v=!1;if((d[p].sourceTop-d[p+1].sourceTop>50||Math.abs(d[p+1].sourceTop-d[p].sourceTop)<=50&&d[p].sourceLeft>d[p+1].sourceLeft)&&(v=!0),v){const m=d[p];d[p]=d[p+1],d[p+1]=m}}for(const h of d){const p=c.findIndex(v=>v.id===h.id);p!==-1&&c.splice(p,1)}return[...d,...c]}return c}function getCombinateRect(c){const u=c.sort((p,v)=>parseFloat(p.top)-parseFloat(v.top))[0],f=c.sort((p,v)=>parseFloat(p.left)-parseFloat(v.left))[0],d=c.map(p=>({...p,computedTop:parseFloat(p.top)+parseFloat(p.height)})).sort((p,v)=>v.computedTop-p.computedTop)[0],h=c.map(p=>({...p,computedLeft:parseFloat(p.left)+parseFloat(p.width)})).sort((p,v)=>v.computedLeft-p.computedLeft)[0];return u&&f&&d&&h?{left:f.left,top:u.top,width:h.computedLeft-parseFloat(f.left)+"px",height:d.computedTop-parseFloat(u.top)+"px"}:null}function getMaxLeftInComponents(c){const u=c.map(f=>parseFloat(f.left)+parseFloat(f.width)).sort((f,d)=>d-f)[0];return u||0}function moveToComponentList(c,u,f){const d=c[f],h=[];if(d)for(const p in d){const v=d[p];for(const m of v){const g=u.find(y=>y.id===m);g&&(h.push(g),containerType.includes(g.type)&&h.push(...getComponentByContainer(g.id,c,u)))}}return h}const _sfc_main$x=vue.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(c,{emit:u}){u("ready",c.component.id)}});function _sfc_render$C(c,u,f,d,h,p){return c.component.parentId?(vue.openBlock(),vue.createBlock(vue.Teleport,{key:0,to:"#container_"+c.component.parentId},[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(c.component.type),vue.mergeProps({style:{scale:c.component.scale}},c.component),null,16,["style"]))],8,["to"])):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(c.component.type),vue.normalizeProps(vue.mergeProps({key:1},c.component)),null,16))}const Render=_export_sfc$1(_sfc_main$x,[["render",_sfc_render$C]]),EcanRender=withInstall$1(Render),_sfc_main$w=vue.defineComponent({name:"EcanModal",components:{AModal:antDesignVue.Modal,CloseOutlined:CloseOutlined$1,Render:EcanRender},props:{...modalComponentProps},setup(c,{emit:u}){const f=vue.ref([]),d=vue.inject("isMobile",!1),h=vue.computed(()=>c.fullModal),p=vue.inject("getContainerMap",()=>{}),v=vue.inject("getCombinationMap",()=>{}),{clearInteractiveData:m,interactiveData:g,setRequestData:y}=vue.inject(GLOBAL_MODEL,{setRequestData:(hr,yr)=>{},clearInteractiveData:()=>{},interactiveData:null}),x=()=>document.getElementById("ProviderConfig")||document.body,Pn=vue.computed(()=>{const hr=c.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[hr]}}),b=c.fullModal?"1920px":c.width,j=c.fullModal?"1080px":c.height,re=c.originalWidth,vn=c.originalHeight,Fn=vue.ref("80%"),Bn=vue.ref(0),w=vue.ref(),J=vue.ref(0),gn=vue.ref({}),zn=usePickComponentStyle(c),Vn=vue.ref({}),Kn=vue.ref(!1),Un=vue.ref();let Qn;const Jn=()=>{w.value=parseFloat(b)/parseFloat(re);const hr=parseFloat(j)/parseFloat(vn),yr=document.body.offsetWidth,_r=document.body.offsetHeight;if(Bn.value=yr*vue.unref(w),J.value=_r*hr,Fn.value=`${vue.unref(w)*100}%`,gn.value={width:`${vue.unref(Bn)}px`,height:`${vue.unref(J)}px`,border:`${c.borderWidth} solid ${c.borderColor}`,borderRadius:c.borderRadius+"px",boxShadow:c.boxShadow},Vn.value={...vue.unref(zn),backgroundImage:useImagePath(c.backgroundImage,!0)},d)Vn.value={...Vn.value,width:"100%",height:"100%"};else{const gr={...Vn.value,width:b,height:j};c.banScale&&vue.unref(h)?(gr.width="100%",gr.height="100%"):gr.transform=`scale(${vue.unref(Bn)/parseFloat(b)},${vue.unref(J)/parseFloat(j)})`,Vn.value=gr}},Yn=lodashEs.debounce(()=>{Jn()},100),Zn=()=>{const hr=window.MutationObserver;Qn=new hr(Yn),Qn.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},nr=()=>{Qn&&(Qn.disconnect(),Qn.takeRecords(),Qn=null)},sr=vue.ref(!1),{touchRequest:ur}=vue.inject(REQUEST_MODEL,{touchRequest:()=>{}}),Gn=vue.ref(""),Wn=()=>{var _r;const{title:hr}=c,yr=(_r=vue.unref(g))==null?void 0:_r.RECORD;return yr?hn(hr,{textData:yr},{useNewline:!1,useSpace:!1}):hr},Rn=useEmitEvent(c),qn=hr=>{const{changeIframeStyle:yr}=window.parent;yr&&typeof yr=="function"&&yr({iframeId:c.parentIframeId||"",action:hr})},Xn=()=>{vue.unref(h)&&qn("open"),d&&(document.documentElement.style.overflow="hidden"),Gn.value=Wn(),sr.value=!0},Hn=Rn("hideModal",()=>{vue.unref(h)&&qn("close"),u("close"),d&&(document.documentElement.style.overflow="hidden auto",f.value=[]),sr.value=!1}),tr=()=>{Hn()},cr=()=>{Hn(),m()},{setModalModel:ir,pushUseModalIds:er,popUseModalIds:pr}=vue.inject(MODAL_MODEL,{pushUseModalIds:hr=>{},popUseModalIds:()=>{},setModalModel:(hr,yr)=>{}}),lr=vue.computed(()=>{let hr=c.componentList;const yr=lodashEs.cloneDeep(c.componentList),_r=p(),gr=v(),br={containerMap:_r,combinationMap:gr};d&&(hr=compatibleMobileList({...br,componentList:yr,sourceList:c.allComponentList})),hr=handleScrollCombinations({...br,componentList:hr,sourceList:c.allComponentList});const Er=[];for(const Mr of hr)if(Mr.type==="ecanCirculate"){const Ir=moveToComponentList(_r,vue.unref(yr),Mr.id);Mr.componentList=Ir,Er.push(...Ir.map(Fr=>Fr.id))}if(Er!=null&&Er.length)for(const Mr of Er){const Ir=hr.findIndex(Fr=>Fr.id===Mr);Ir!==-1&&hr.splice(Ir,1)}return hr}),or=()=>{const hr=c.id;let yr=[];const _r=c.componentList;Array.isArray(_r)&&(yr=_r.map(gr=>gr.id),ir(hr,[...new Set(yr)]))},ar=vue.ref(!1),vr={};for(const hr of c.requestList)vr[hr.requestName]=useRequestData(hr);vue.watch(()=>sr.value,async hr=>{if(hr)Kn.value=!1,er(c.id),or(),await vue.nextTick(()=>{Jn(),window.addEventListener("resize",Yn),Zn(),Kn.value=!0}),ur();else{if(y)for(const yr in vr)y(yr,{});pr(),window.removeEventListener("resize",Yn),nr()}});const fr=vue.computed(()=>vue.unref(w)>=1),mr=vue.computed(()=>{let hr="ecan-modal";return vue.unref(fr)&&(hr+=" ecan-full-width-modal"),vue.unref(h)&&(hr+=" ecan-full-modal"),hr});return useOnEvent(c,{showModal:Xn,hideModal:Hn}),{modalRef:Un,containStyle:gn,contentStyle:Vn,getContainer:x,modalStyle:Pn,modalWith:Fn,isFullModal:h,style:zn,visible:sr,showModal:Xn,onOk:tr,onCancel:cr,isFullWidth:fr,wrapClassName:mr,ready:Kn,usedComponentList:lr,isMobile:d,readyIds:f,hasOwn:mn,onComponentReady:hr=>{f.value.push(hr)},formatTitle:Gn,requestLoaded:ar}}}),Modal_vue_vue_type_style_index_0_scoped_d34efac2_lang="",Modal_vue_vue_type_style_index_1_lang="";function _sfc_render$B(c,u,f,d,h,p){const v=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("render"),g=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(g,{getContainer:c.getContainer,wrapClassName:c.wrapClassName,centered:"",visible:c.visible,footer:null,width:c.isFullModal||c.isFullWidth?"100%":c.modalWith,destroyOnClose:c.destroyOnClose,style:vue.normalizeStyle(c.modalStyle),closable:!1,onOk:c.onOk,onCancel:c.onCancel,ref:"modalRef",id:"container_"+c.id},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"contain",ref:"containRef",style:vue.normalizeStyle(c.containStyle)},[c.ready?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"content",style:vue.normalizeStyle(c.contentStyle)},[vue.createElementVNode("div",{class:"header-bar",style:vue.normalizeStyle({backgroundColor:c.backgroundColor,padding:"20px 30px",height:c.isMobile?"62px":""})},[c.formatTitle?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"ant-modal-title",style:vue.normalizeStyle({fontSize:c.titleFontSize,color:c.titleColor})},vue.toDisplayString(c.formatTitle),5)):vue.createCommentVNode("",!0),c.isShowCloseBtn?(vue.openBlock(),vue.createBlock(v,{key:1,class:"close-icon",style:vue.normalizeStyle({color:c.closeBtnColor}),onClick:c.onCancel},null,8,["style","onClick"])):vue.createCommentVNode("",!0)],4),c.usedComponentList.length?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(c.isMobile?"mobile-wrap":"")},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.usedComponentList,(y,x)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:y.id+x},[c.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[c.hasOwn(y,"parentId")&&(c.readyIds.includes(y.parentId)||y.parentId==="")?(vue.openBlock(),vue.createBlock(m,{key:0,component:y,onReady:c.onComponentReady},null,8,["component","onReady"])):vue.createCommentVNode("",!0)],64)):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(y.type),vue.normalizeProps(vue.mergeProps({key:1},y)),null,16))],64))),128))],2)):vue.renderSlot(c.$slots,"default",{key:1},void 0,!0)],4)):vue.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel","id"])}const Modal=_export_sfc$1(_sfc_main$w,[["render",_sfc_render$B],["__scopeId","data-v-d34efac2"]]),EcanModal=withInstall$1(Modal);core$1.use([renderers.CanvasRenderer,charts.LineChart,components$1.ToolboxComponent,components$1.TitleComponent,components$1.LegendComponent,components$1.MarkLineComponent]);const _sfc_main$v=vue.defineComponent({name:"EcanLine",props:{...lineComponentProps},components:{Spin,Echarts,EcanModal},setup(c,{expose:u}){const f=vue.ref(!1),{pageMode:d,fontFamily:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),p=vue.inject("showIndDetail",Xn=>{}),v=vue.inject("usedComponentList",[]),m=vue.ref(),g=vue.ref(!1),y=usePickComponentStyle(c),x=vue.ref([]),Pn=vue.ref([]),b=vue.ref(),j=vue.computed(()=>g.value?ZOOM_FONT_SIZE:12),re=vue.ref({});let vn;const Fn=vue.ref([]),Bn=vue.computed(()=>{const Xn=c.xAxisLabelFormatter,Hn=c.yAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(h)},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,orient:c.toolboxOrient,feature:{myDownload:{show:c.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){useDownloadFile(c.toolboxDownloadUrl)}},myDataZoom:{show:g.value?!1:c.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var tr;g.value=!0,(tr=b.value)==null||tr.showModal()}},myInfo:{show:c.toolboxInfoShow,title:"详情",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){p(c)}}}},title:{text:c.titleText,subText:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},grid:{top:c.gridTop,bottom:c.gridBottom,left:c.gridLeft,right:c.gridRight,containLabel:c.gridContainLabel},color:c.colors,tooltip:{trigger:"axis",textStyle:{fontSize:j.value,color:c.tooltipTextStyleColor},show:c.tooltipShow,formatter:tr=>{var pr;const cr=tr.length;let ir="",er=c.tooltipFormatter;vn=(pr=tr[0])==null?void 0:pr.data,er===""&&(er="{marker} {a} {c}");for(let lr=0;lr<cr;lr++){const{marker:or,seriesName:ar,name:vr,value:fr,data:mr}=tr[lr]||{};if(lr===0){let dr=vr;typeof vr=="string"&&vr[0]==="0"&&!isNaN(+vr)&&(dr=(+vr).toString()),ir+=`${In(Xn,dr)}<br/>`}ir+=hn(er,{textData:{marker:or,name:vr,value:fr,a:ar,b:vr,c:fr||0,...mr}},{useNewline:!0,useSpace:!0}),ir+="<br/>"}return ir},position:c.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:c.isBoundaryGap,data:vue.unref(Pn).map(tr=>{let cr={};return tr&&typeof tr=="object"?cr={...tr}:cr={value:tr},cr}),minInterval:c.xAxisMinInterval,splitLine:{show:c.xAxisSplitLineShow,lineStyle:{color:c.xAxisSplitLineStyleColor},interval:c.xAxisSplitLineInterval},splitArea:{show:c.xAxisSplitAreaShow},axisLabel:{show:c.xAxisLabelShow,color:c.xAxisLabelColor,interval:c.xAxisLabelInterval||0,rotate:c.xAxisLabelRotate,width:c.xAxisLabelWidth,overflow:c.xAxisLabelOverflow,fontSize:c.xAxisLabelFontSize,formatter(tr){return typeof tr=="string"&&tr[0]==="0"&&!isNaN(+tr)&&(tr=(+tr).toString()),In(Xn,tr)}},axisLine:{show:c.xAxisLineShow,lineStyle:{color:c.xAxisLineStyleColor}},axisTick:{show:c.xAxisTickShow},name:c.xAxisName,nameTextStyle:{fontSize:c.xAxisLabelFontSize,color:c.xAxisLabelColor,align:"left"},max:c.xAxisMaxValue||null},yAxis:{type:"value",minInterval:c.yAxisMinInterval,splitLine:{show:c.yAxisSplitLineShow,lineStyle:{color:c.yAxisSplitLineStyleColor,type:c.yAxisSplitLineType}},splitArea:{show:c.yAxisSplitAreaShow},axisLabel:{show:c.yAxisLabelShow,fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,formatter(tr){return In(Hn,tr)}},axisLine:{show:c.yAxisLineAlwaysDisplay,lineStyle:{color:c.yAxisLineStyleColor}},name:c.yAxisName,nameTextStyle:{fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,align:"right"},max:c.yAxisMaxValue||null},legend:{type:c.legendScroll?"scroll":"plain",width:c.legendWidth,height:c.legendHeight,show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,textStyle:{lineHeight:(g.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:g.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:vue.unref(Fn).map(tr=>({name:tr.name,icon:c.legendType})),formatter:tr=>getLegendFormat(c.legendFormatter,{name:tr})},series:vue.unref(x)}}),w=()=>{g.value=!1},{getGlobalModel:J,setGlobalModel:gn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Xn=>{},setGlobalModel:(Xn,Hn)=>{}}),zn=vue.computed(()=>c.isShowMarkLine?{markLine:{data:[{type:c.markLineType}]}}:{}),Vn=(Xn=[],Hn=!1)=>{var pr;let tr;if(c.dataFieldConfigType==="key"){const lr=Hn?c.keyTypeDataFieldNames:null;tr=Mn(Xn,lr)}else if(c.dataFieldConfigType==="value"){const lr=Hn?c.valueTypeDataFieldNames:null;tr=En(Xn,lr)}Pn.value=tr.dimensions,Fn.value=tr.dataset;const cr=tr.dataset,ir=[],er=cr.length;for(let lr=0;lr<er;lr++){const or={};c.shadowColor&&(or.shadowColor=c.shadowColor,or.shadowBlur=c.shadowBlur,or.shadowOffsetY=c.shadowOffsetY,or.shadowOffsetX=c.shadowOffsetX),ir.push({type:"line",...cr[lr],symbolSize:c.symbolSize,smooth:c.smooth,areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:c.colors[lr]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[lr],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...or},...vue.unref(zn)})}x.value=ir,(pr=tr.dataset)!=null&&pr.length?f.value=!1:f.value=!0},Kn=(Xn=[],Hn,tr=!1)=>{var or,ar,vr;const ir=Mn(Xn,tr?Hn:null,!0);if(c.defaultRangeValue&&setDefaultRangeVal({props:c,componentList:vue.unref(v),getGlobalModel:J},ir),(or=ir.dataset)!=null&&or.length){for(const fr of ir.dataset)if((ar=fr.data)!=null&&ar.length)for(const mr of fr.data)(mr.value===null||mr.value===void 0)&&(mr.value=0)}Pn.value=ir.dimensions,Fn.value=ir.dataset;const er=ir.dataset,pr=[],lr=er.length;for(let fr=0;fr<lr;fr++){const mr={};c.shadowColor&&(mr.shadowColor=c.shadowColor,mr.shadowBlur=c.shadowBlur,mr.shadowOffsetY=c.shadowOffsetY,mr.shadowOffsetX=c.shadowOffsetX),pr.push({type:"line",...er[fr],symbolSize:c.symbolSize,smooth:c.smooth,areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:c.colors[fr]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[fr],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...mr},...vue.unref(zn)})}x.value=pr,(vr=ir.dataset)!=null&&vr.length?f.value=!1:f.value=!0};vue.watch(()=>[c.data,c.symbolSize,c.smooth,c.lineStyleWidth,c.areaStyleOpacity,c.areaGradientShow,c.areaGradientColor,c.shadowColor,c.shadowBlur,c.shadowOffsetY,c.shadowOffsetX,c.legendFontSize,c.isShowMarkLine,c.markLineType,c.legendFormatter,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll],([Xn])=>{(c.dataType==="static"||vue.unref(d)==="design")&&Vn(Xn)},{immediate:!0,deep:!0});const Un=vue.ref(!1),Qn=useRequestData(c),Jn=async()=>{var Xn,Hn;if(c.dataType==="request")try{Un.value=!0;const tr=await Qn();Vn((Hn=(Xn=tr==null?void 0:tr.data)==null?void 0:Xn.data)==null?void 0:Hn.rows,!0)}catch(tr){console.error(tr)}finally{Un.value=!1}},Yn=useEmitEvent(c);gn(c.id,{type:c.type,RECORD:""});const Zn=Yn("click",Xn=>{const Hn=J(c.id);gn(c.id,{...Hn,type:c.type,RECORD:c.tooltipShow?vn:Xn.data})}),nr=Xn=>{m.value.chart.containPixel("grid",[Xn.offsetX,Xn.offsetY])&&Zn()};c.tooltipShow?re.value["zr:click"]=nr:re.value.click=Zn;const sr=Xn=>{var pr;const{columns:Hn=[],rows:tr=[]}=((pr=Xn==null?void 0:Xn.data)==null?void 0:pr.data)??{};let cr;Hn.length>0&&(cr={name:Hn[0],types:Hn.slice(1).map(lr=>({label:lr,value:lr}))});const{leftAxisList:ir=[]}=c.graphicConfig,er=ir.filter(lr=>lr.show).map(lr=>lr.label);for(const lr of tr)if(lr)for(const or in lr)typeof lr[or]=="string"&&er.includes(or)&&!isNaN(parseFloat(lr[or]))&&(lr[or]=parseFloat(lr[or]));Kn(tr,cr,!0)},ur=useIndicatorData(c,Xn=>{c.isViewRedrawing&&m.value.clear(),sr(Xn)}),Gn=async()=>{try{Un.value=!0;const Xn=await ur();sr(Xn)}catch(Xn){console.error(Xn)}finally{Un.value=!1}},Wn=async()=>{switch(c.dataType){case"indicator":await Gn();break;case"request":await Jn();break}};useOnEvent(c,{refreshData:Wn,resetRecord:()=>{const Xn=c.id,Hn=J(Xn);gn(Xn,{...Hn,RECORD:""})},click:Zn});const{setRequest:qn}=vue.inject(REQUEST_MODEL,{setRequest:Xn=>{}});return typeof qn=="function"&&qn({id:c.id,requestFn:Wn,sortNum:c.requestSort}),u({refreshData:Wn}),{option:Bn,style:y,click:Zn,loading:Un,onClose:w,ecanModal:b,eventObj:re,echartRef:m,emptyData:f}}}),Line_vue_vue_type_style_index_0_lang="",Line_vue_vue_type_style_index_1_scoped_dd12eb06_lang="";function _sfc_render$A(c,u,f,d,h,p){const v=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[c.noDataTip&&c.emptyData?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"empty-wrap",style:vue.normalizeStyle({color:c.tipTextColor,fontSize:c.tipTextFontSize})},[vue.createElementVNode("span",null,vue.toDisplayString(c.tipText),1)],4)):(vue.openBlock(),vue.createBlock(v,vue.mergeProps({key:1,ref:"echartRef",option:c.option,autoresize:""},vue.toHandlers(c.eventObj)),null,16,["option"]))]),_:1},8,["spinning"]),vue.createVNode(g,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:c.onClose},{default:vue.withCtx(()=>[vue.createVNode(m,{class:"spin-wrap",spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(v,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Line=_export_sfc$1(_sfc_main$v,[["render",_sfc_render$A],["__scopeId","data-v-dd12eb06"]]),EcanLine=withInstall$1(Line),_sfc_main$u=vue.defineComponent({name:"TrendModal",components:{EcanLine},setup(c,{expose:u}){const f=vue.ref(!1),d=vue.ref(),h=vue.ref(),p=async({data:m,pageConfig:g,unitText:y})=>{var x;if(m){const Pn=nanoid(6),b={source:"INDICATOR_LIB",dataSourceId:"",idxLibMode:"",classificationList:[{id:"3f5bda70a08a442085857adb7fc547de",indexCode:null,indexCodeNum:null,title:"日期",name:"the_date",label:"日期",typeGuid:"the_date",genericType:"DATE",hrpIndexComplexid:"the_date",scope:"BUILT_IN_DIM",fromTable:"hrp_index_complex",parentId:"3f5bda70a08a442085857adb7fc547de",show:!0,edit:!1,dataTo:"0",dateFormat:"YYYY-MM",dataSetParams:{}}],leftAxisList:((x=m==null?void 0:m.graphicConfig)==null?void 0:x.indicators)||[]};d.value={...lodashEs.cloneDeep(lineProps),id:Pn,keyName:`折线图_${Pn}`,position:"relative",top:0,left:0,width:parseFloat(g.width)*.57+"px",height:parseFloat(g.height)*.4+"px",dataType:"indicator",tooltipFormatter:"{marker} {a} {c}"+y,graphicConfig:b},f.value=!0,vue.nextTick(()=>{vue.unref(h).refreshData()})}},v=()=>document.querySelector("#ProviderConfig > #container")||document.body;return u({showModal:p}),{visible:f,componentConfig:d,lineRef:h,getContainer:v}}}),TrendModal_vue_vue_type_style_index_0_scoped_eb1432d2_lang="",_withScopeId$5=c=>(vue.pushScopeId("data-v-eb1432d2"),c=c(),vue.popScopeId(),c),_hoisted_1$i=_withScopeId$5(()=>vue.createElementVNode("div",{class:"modal-title"},"趋势图",-1));function _sfc_render$z(c,u,f,d,h,p){const v=vue.resolveComponent("ecan-line"),m=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(m,{visible:c.visible,"onUpdate:visible":u[0]||(u[0]=g=>c.visible=g),width:"60%",getContainer:c.getContainer,footer:null,destroyOnClose:!0,bodyStyle:{maxHeight:"60vh",overflow:"auto",padding:"20px 24px 24px"}},{title:vue.withCtx(()=>[_hoisted_1$i]),default:vue.withCtx(()=>[c.componentConfig?(vue.openBlock(),vue.createBlock(v,vue.mergeProps({key:0},c.componentConfig,{ref:"lineRef"}),null,16)):vue.createCommentVNode("",!0)]),_:1},8,["visible","getContainer"])}const TrendModal=_export_sfc$1(_sfc_main$u,[["render",_sfc_render$z],["__scopeId","data-v-eb1432d2"]]),_sfc_main$t=vue.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,components:{ATable:antDesignVue.Table,BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1,CloseOutlined:CloseOutlined$1,IndicatorDetailModal,TrendModal},props:{...providerConfigComponentProps,pageId:{type:String,default:""},customId:{type:String,default:"ProviderConfig"},fixedHeight:{type:String,default:"0px"}},setup(c,{expose:u,emit:f}){c.pageId||useHrefParamsToGlobalVariables();const d=.57,h=.6,p=.97,v=.9,m=vue.ref(),g=vue.ref(),y=vue.computed(()=>INDICATOR_URL),x=vue.computed(()=>hn(c.contextRequestUrl)),Pn=vue.computed(()=>c.pageMode),b=vue.computed(()=>c.theme),j=vue.computed(()=>c.width),re=vue.computed(()=>c.height),vn=vue.computed(()=>c.pageFontFamily),Fn=vue.computed(()=>c.fixedHeight?parseFloat(c.fixedHeight):0),Bn=vue.computed(()=>c.isCompatible),w=vue.computed(()=>c.variableList),J=vue.computed(()=>!!navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)),gn=vue.ref(),zn=vue.ref({}),Vn=vue.ref(),Kn=vue.ref(!1),Un=vue.ref(!1),Qn=vue.ref([]),Jn=vue.ref([]),Yn=vue.ref({}),Zn=()=>{gn.value.setAttribute("datav-theme",c.theme)},nr=vue.ref({currentYmd:dayjs().format("YYYY-MM-DD"),currentYear:dayjs().format("YYYY"),currentMonth:dayjs().format("MM"),currentDay:dayjs().format("DD")}),sr=vue.computed(()=>{const xr={};if(vue.unref(w))for(const Cr of vue.unref(w))xr[Cr.label]=Cr.value;return{$page:{...vue.unref(nr),...xr}}}),ur=vue.computed(()=>{let xr="ind-detail-modal";return Kn.value&&(xr+=" full"),vue.unref(b)==="darkBlue"&&(xr+=" darkBlue"),xr});vue.provide(GLOBAL_VARIABLE,{globalVariable:sr});const Gn=vue.inject("usedComponentList",[]),Wn=vue.inject("componentList",[]);vue.watch(sr,()=>{f("setGlobalVar",vue.unref(nr))},{deep:!0,immediate:!0});const Rn=vue.computed(()=>{const xr=[];for(const wr of vue.unref(Gn))wr.type==="ecanModal"?xr.push(...wr.componentList):xr.push(wr);return xr});vue.watch(()=>c.theme,()=>{Zn()}),vue.onMounted(()=>{Zn()});const qn=vue.computed(()=>{const xr=[],wr=vue.unref(Wn).filter(Cr=>Cr.type==="ecanModal");for(const Cr of wr)Cr!=null&&Cr.requestList&&xr.push(...Cr.requestList);return[...xr,...c.requestList]}),Xn=xr=>Object.prototype.toString.call(xr)==="[object Object]",Hn=xr=>{const wr=xr.split(".");let Cr=vue.unref(sr);for(const Ar of wr)if(Cr&&Xn(Cr))Cr=Cr[Ar];else{Cr="";break}return Cr},tr=vue.ref("");vue.provide(GLOBAL_CONFIG,{contextRequestUrl:x,pageMode:Pn,theme:b,touchEventId:tr,width:j,height:re,fontFamily:vn,requestList:qn,isCompatible:Bn,fixedHeight:Fn,getGlobalVar:Hn});const cr=vue.ref({height:"100%",overflow:c.pageMode==="design"?"":"hidden"});vue.provide("setPageHeight",xr=>{let wr=0;xr==="auto"?wr=xr:(wr=xr.heightScale,Yn.value=xr),(!Bn.value||!J.value)&&(wr=parseFloat(re.value)*wr+"px"),cr.value.height=wr}),vue.provide("isMobile",J.value),vue.provide("getContainerMap",()=>c.containerMap),vue.provide("getCombinationMap",()=>c.combinationMap),vue.provide("templateOperate",{pageId:c.pageId,templateEmit:f,setTemplateData:xr=>{var wr;if(xr!=null&&xr.pageId){const{componentId:Cr,...Ar}=xr;(wr=window.config)!=null&&wr.urlParams||(window.config.urlParams={}),window.config.urlParams[xr.pageId]=Ar,f("templateChange",xr)}}});const ir=vue.ref(),er=new Map,pr=()=>er,lr=xr=>{let wr=er.get(xr);if(!wr){const Cr=vue.unref(Wn).find(Ar=>Ar.keyName===xr);Cr&&(wr=er.get(Cr.id))}return wr},or=(xr,wr)=>{var Cr;if(ir.value=wr,er.set(xr,wr),!c.pageId){const Ar=vue.unref(Gn).find(Tr=>Tr.id===xr);Ar&&((Cr=window.config)!=null&&Cr.record||(window.config.record={}),window.config.record[Ar.keyName]=wr)}},ar=()=>{ir.value=null},vr=xr=>{let wr=xr;if(wr){const Cr=xr.match(/\{(.+?)\}/g);if(Cr!=null&&Cr.length){let Ar=Cr[0].slice(1,-1).trim();const Tr=Ar.match(/\[(.+?)\]/g);let Dr="";Tr!=null&&Tr.length&&(Ar=Ar.replace(Tr[0],""),Dr=Tr[0].slice(1,-1).trim());const Lr=vue.unref(Rn).find($r=>$r.keyName===Ar);if(Lr){const $r=lr(Lr.id),{type:qr,value:Wr,RECORD:jr,recordData:Kr}=$r||{};yn(qr,MODEL_KEY_LIST)?wr=jr[Dr]:yn(qr,"select")?Kr[Dr]?wr=Kr[Dr]:wr=vue.unref(Wr):yn(qr,["rangePicker","date"])?dayjs.isDayjs(vue.unref($r[Dr]))?wr=vue.unref($r[Dr]).format($r.format):wr=vue.unref($r[Dr]):wr=Wr}else{const $r=window.config.requestParams||{},qr=window.location.search.slice(1).split("&"),Wr={};for(const Kr of qr)if(Kr!=null&&Kr.includes("=")){const Xr=Kr.split("=");Wr[Xr[0]]=Xr[1]||""}wr={...Wr,...$r}[Ar]||""}}}return wr},fr=new Map,mr={},dr=async(xr,wr)=>{var Lr;const{requestName:Cr}=xr,Ar=await useRequestData({...xr,projectRequestUrl:vue.unref(x),getModel:lr})(),Tr=((Lr=Ar==null?void 0:Ar.data)==null?void 0:Lr.data)||{};xr.requestKeyName&&(nr.value[xr.requestKeyName]=Tr);const Dr=fr.get(Cr);if(Dr!=null&&Dr.length&&(!wr||mr[Cr])){for(const $r of Dr)$r(Tr);wr||fr.delete(Cr)}},hr=(xr,wr)=>{mr[xr]&&(clearInterval(mr[xr]),delete mr[xr],fr.delete(xr));const Cr=vue.unref(Rn).filter(Tr=>Tr.dataType==="request"&&!Tr.openCustomRequestData&&Tr.customRequestName===xr),Ar=fr.get(xr)||[];if((Cr==null?void 0:Cr.length)>Ar.length&&(Ar.push(wr),fr.set(xr,Ar),(Cr==null?void 0:Cr.length)===Ar.length)){const Tr=vue.unref(qn).find(Dr=>Dr.requestName===xr);Tr&&(Tr!=null&&Tr.isOpenRequestTimer&&(Tr!=null&&Tr.requestInterval)?(dr(Tr,!0),mr[xr]=setInterval(()=>{dr(Tr,!0)},Tr.requestInterval*1e3)):dr(Tr))}};vue.provide(GLOBAL_MODEL,{getGlobalModel:lr,setGlobalModel:or,getAllGlobalModel:pr,clearInteractiveData:ar,getRecordValueByKeyName:vr,hanldePageRequestData:hr,interactiveData:ir});const yr=vue.ref({}),_r=(xr,wr)=>{yr.value[xr]=wr};vue.provide(LOADED_DATA,{loadedData:yr,setLoadedData:_r});const gr=[],br=()=>{gr.pop()},Er=xr=>{gr.push(xr)},Mr=new Map,Ir=xr=>Mr.get(xr),Fr=(xr,wr)=>{Mr.set(xr,wr)};vue.provide(MODAL_MODEL,{popUseModalIds:br,pushUseModalIds:Er,getModalModel:Ir,setModalModel:Fr});const Or=mitt(),Nr=new Set,zr=(xr,wr)=>{Nr.add(xr),Or.on(xr,Cr=>{const{eventName:Ar,params:Tr}=Cr;return typeof wr[Ar]=="function"&&wr[Ar](Tr)}),vue.onBeforeUnmount(()=>{Rr(xr)})},Rr=xr=>{Nr.delete(xr),Or.off(xr)},Vr=(xr,wr,Cr={})=>{if(xr==="PAGE"){const Ar=gr.length;let Tr=[];if(Ar===0)Tr=[...Nr];else{const Dr=gr[Ar-1];Tr=[...Ir(Dr)]}Tr.forEach(Dr=>{Or.emit(Dr,{eventName:wr,params:Cr})})}else Or.emit(xr,{eventName:wr,params:Cr})};vue.provide(EVENT_BUS,{onEvent:zr,offEvent:Rr,emitEvent:Vr});const Hr=vue.ref(0),Gr=()=>{Hr.value=vue.unref(Hr)+1};vue.provide(GLOBAL_TOKEN,{requestToken:Gr});const Ur=new Map,Yr=new Map,Qr=({requestFn:xr=()=>{},sortNum:wr=0,id:Cr=""})=>{if(Ur.has(wr)){const Ar=Ur.get(wr);Ar==null||Ar.push(xr)}else Ur.set(wr,[xr]);Yr.set(Cr,xr)},ri=xr=>new Promise((wr,Cr)=>{const Ar=[];for(const Tr of xr)Ar.push(new Promise(async Dr=>{await Tr(),Dr()}));Promise.all(Ar).then(Tr=>{wr(Tr)}).catch(Tr=>{Cr(Tr)})}),ti=xr=>new Promise(async(wr,Cr)=>{if(xr){if(typeof xr=="string"){const Ar=Yr.get(xr);if(typeof Ar=="function"){const Tr=request.interceptors.response.use(Dr=>(wr(Dr),Dr),Dr=>(Cr(Dr),Promise.reject(Dr)));Ar(),request.interceptors.response.eject(Tr)}}}else{const Ar=Array.from(Ur);Ar.sort((Dr,Lr)=>Lr[0]-Dr[0]);const Tr=Ar.length;try{c.pageMode!=="design"&&vue.unref(Hr)>0;for(let Dr=0;Dr<Tr;Dr++){const Lr=Ar[Dr][1];await ri(Lr)}}catch(Dr){console.error(Dr)}finally{Ur.clear(),wr(null)}}});vue.provide(REQUEST_MODEL,{setRequest:Qr,touchRequest:ti});const ai=()=>{Or.emit(REFRESH_PAGE)};vue.provide(REFRESH_PAGE,{emitRefreshPage:ai});const vi=xr=>{Or.on(REFRESH_PAGE,()=>xr()),vue.onMounted(()=>{Or.off(REFRESH_PAGE)})},hi=vue.ref({}),oi=vue.reactive({keyName:"",visible:!1,dataSource:[],columns:[],title:"",pagination:{current:1,pageSize:10,total:0,showSizeChanger:!1,showQuickJumper:!1,showTotal:xr=>`共 ${xr} 条数据`}});vue.provide(All_COMPONENT_RES_DATA,{allComponentResData:hi});const xi={borderColor:"#666E8D",headerBgColor:"#06347C",headerColor:"#DEE5EF",bodyBgColor:"#112861",bodyColor:"#B2CCE7",indicatorsHeaderBgColor:"#184273",indicatorsHeaderColor:"#FFFFFF",indicatorsBodyBgColor:"#184273",indicatorsBodyColor:"#FFFFFF",aggregateBgColor:"#0F4F9B",aggregateColor:"#FFFCFC",sortNotActiveColor:"#B0B0B0",sortActiveColor:"#00CCFF",dropDownMenuBgColor:"#08154F",dropDownMenuColor:"#B2C3DD",dropDownMenuHightLightColor:"#2E68CF"},Ci=async xr=>{var Kr,Xr,ci,ui,si;if(J.value||c.drillingMode==="default")return;let wr=lodashEs.cloneDeep(xr).props;if(wr.parentId){const Jr=vue.unref(Gn).find(ei=>ei.id===wr.parentId);if((Jr==null?void 0:Jr.dataType)==="indicator")wr=lodashEs.cloneDeep(Jr);else return}oi.keyName=wr==null?void 0:wr.keyName;const Cr=((Kr=window==null?void 0:window.config)==null?void 0:Kr.indicatorToken)||"",Ar=Br(),Tr=(wr==null?void 0:wr.graphicConfig)||{},{leftAxisList:Dr=[],rightAxisList:Lr=[],indicators:$r=[]}=Tr,qr=Dr.concat(Lr).concat($r);if(!(qr!=null&&qr.length))return;const Wr=qr.filter(Jr=>Jr.show).map(Jr=>Jr.label);Wr!=null&&Wr.length&&(oi.title=`下钻:${Wr.join("、")}`);const jr=Dn({...wr,globalModel:pr()});if(c.drillingMode==="pivotTable"){const Jr=await ki({cpntProps:wr,pageId:Ar,formatParams:jr,classifications:[],indicatorToken:Cr});Jn.value=((Xr=Jr==null?void 0:Jr.data)==null?void 0:Xr.data)||[];const ei=nanoid(6);Tr.queryColumnList||(Tr.queryColumnList=[]),Tr!=null&&Tr.classificationList&&(Tr.queryColumnList=Tr.classificationList,delete Tr.classificationList),Tr!=null&&Tr.seriesList&&(Tr.queryColumnList=Tr.queryColumnList.concat(Tr.seriesList),delete Tr.seriesList),Tr.indicators=lodashEs.cloneDeep(qr||[]),delete Tr.leftAxisList,delete Tr.rightAxisList;const Mi={};if(yn(wr.type,"indexPanel")){const Fi=Tr.indicators.find(fi=>fi.show),Ai=vue.unref(Jn).slice(0,2).sort((fi,yi)=>fi.typeGuid-yi.typeGuid).map(fi=>({...fi,show:!0,edit:!1,dataTo:"0",dataSetParams:{}}));Ai!=null&&Ai.length&&(Tr.queryColumnList=Ai);const Ti=Pr(wr);if(Ti&&Fi){const{label:fi}=Fi;Mi.defaultConfig={indexFormatConfig:{[fi]:{fieldName:fi,indicatorKey:fi,position:"right",unit:Ti}}}}}(ci=Tr.queryColumnList)!=null&&ci.length||(Tr.queryColumnList=[{id:"3f5bda70a08a442085857adb7fc547de",indexCode:null,indexCodeNum:null,title:"日期(内置)",name:"the_date",label:"日期(内置)",typeGuid:"the_date",genericType:"DATE",hrpIndexComplexid:"the_date",scope:"BUILT_IN_DIM",fromTable:"hrp_index_complex",parentId:"3f5bda70a08a442085857adb7fc547de",show:!0,edit:!1,dataTo:"0",dataSetParams:{}}]);const Bi={...lodashEs.cloneDeep(pivotTableProps),id:ei,keyName:`透视表_${ei}`,position:"relative",top:0,left:0,width:parseFloat(c.width)*d+"px",height:parseFloat(c.height)*h+"px",pageId:Ar,indicatorToken:Cr,context:CONTEXT,globalModel:pr(),graphicConfig:Tr,pageConfig:c,...Mi};vue.unref(b)==="darkBlue"&&(Bi.styleConfig=xi),zn.value=Bi,oi.visible=!0,vue.nextTick(()=>{vue.unref(Vn).refreshData()})}else if(c.drillingMode==="normalTable"){Pi(jr,lodashEs.cloneDeep(xr.props));let Jr=(jr==null?void 0:jr.classification)||(jr==null?void 0:jr.classifications)||[];Array.isArray(Jr)||(Jr=[Jr]);try{Un.value=!0,oi.visible=!0;const ei=await ki({cpntProps:wr,pageId:Ar,formatParams:jr,classifications:Jr,indicatorToken:Cr}),Mi=((ui=ei==null?void 0:ei.data)==null?void 0:ui.data)||[],Bi=Jr.map(li=>({...li,calcType:"COLUMN"}));for(const li of Mi)Bi.push({calcType:"COLUMN",columnName:li.name,label:li.name,show:!0,typeGuid:li.typeGuid});jr.queryColumns=Bi,jr.layer="1",jr.plugin="1",delete jr.classification,delete jr.classifications;const{url:Fi,...Ai}=jr||{},Ti=await request({url:`${vue.unref(y)}${Fi}`,method:"post",headers:{Authentication:Cr,operateContext:CONTEXT},data:{...Ai,pageId:Ar}}),{columns:fi=[],rows:yi=[]}=((si=Ti==null?void 0:Ti.data)==null?void 0:si.data)||{};oi.columns=fi.filter(li=>!!li).map(li=>{let Ni=li;const Ri=Mi.find(zi=>zi.name===li);return Ri&&(Ni=Ri.title||Ri.label),{title:Ni,dataIndex:li,width:"120px"}}),oi.dataSource=(Array.isArray(yi)?yi:[yi]).map(li=>({...li,uuid:nanoid(6)})),oi.pagination.total=(yi==null?void 0:yi.length)||0,Un.value=!1}catch(ei){console.error(ei)}}vue.nextTick(()=>{Si(!0),pi(!0)})},Si=xr=>{const wr=document.querySelector(".ind-detail-modal .ant-modal-header");wr&&(xr?wr.addEventListener("dblclick",gi):wr.removeEventListener("dblclick",gi))},pi=xr=>{const wr=document.querySelector(".ind-detail-modal .ant-modal-header");if(wr)if(xr)wr.addEventListener("mousedown",wi);else{const Cr=wr.parentElement;Cr&&(Cr.style.left="",Cr.style.top=""),wr.removeEventListener("mousedown",wi)}};function wi(xr){dragModalAction(xr,".ind-detail-modal .ant-modal-header")}const ki=async({cpntProps:xr,pageId:wr,formatParams:Cr,classifications:Ar,indicatorToken:Tr})=>{var Dr,Lr,$r;return await request({url:`${vue.unref(y)}/diagram/obtainDrillAbleDimensionOptions`,method:"post",headers:{Authentication:Tr,operateContext:CONTEXT},data:{source:((Dr=xr==null?void 0:xr.graphicConfig)==null?void 0:Dr.source)||"INDICATOR_LIB",pageId:wr,indicatorList:(Cr==null?void 0:Cr.indicatorList)||[],classifications:Ar,dataSourceId:((Lr=xr==null?void 0:xr.graphicConfig)==null?void 0:Lr.dataSourceId)||""},signal:(($r=window.controller)==null?void 0:$r.signal)||""})},mi={IN:"属于",NOT_IN:"不属于",LIKE:"包含",NOT_LIKE:"不包含","LIKE%":"开头是","%LIKE":"结尾是",EQUAL:"等于",LESS:"小于",LESS_EQUAL:"小于等于",GREATER:"大于",GREATER_EQUAL:"大于等于",NOT_EQUAL:"不等于"};function di(xr,wr,Cr){const Ar=[];for(const Tr of xr)Tr[wr]?Ar.push(...di(Tr[wr],wr,Cr)):Tr.filter?Ar.push({...Tr.filter,label:Tr.label}):(!Cr||Tr.dataType!=="component"&&!(Tr.fieldValue.startsWith("${")&&Tr.fieldValue.endsWith("}")))&&Ar.push(Tr);return Ar}const Pi=(xr,wr)=>{const{leftAxisList:Cr=[],rightAxisList:Ar=[],indicators:Tr=[],classificationList:Dr=[],rowHeaderList:Lr=[],dimensionList:$r=[],seriesList:qr=[],queryColumns:Wr=[],indexLibColumns:jr=[]}=wr.graphicConfig,Xr=Cr.concat(Ar).concat(Tr).concat(Dr).concat(Lr).concat($r).concat(qr).concat(Wr).concat(jr).filter(si=>si.conditions),ci=di(Xr,"conditions",!0),ui=di(xr.sqlConditions,"sqlConditions",!1);Qn.value=ci.concat(ui).filter(si=>si.label).map(si=>{let Jr=si.fieldValue;if(Jr){const ei=Jr.split(",");(ei==null?void 0:ei.length)>3&&(Jr=ei.slice(0,3).join(",")+"等")}else Jr='""';return`${si.label} ${mi[si.rule]} ${Jr}`})||[]},gi=()=>{Kn.value=!Kn.value,vue.nextTick(()=>{Kn.value?(vue.unref(zn).width=parseFloat(c.width)*p+"px",vue.unref(zn).height=parseFloat(c.height)*v+"px",pi(!1)):(vue.unref(zn).width=parseFloat(c.width)*d+"px",vue.unref(zn).height=parseFloat(c.height)*h+"px",pi(!0))})},Ei=()=>{Kn.value=!1,Si(!1),pi(!1)},Ii=({type:xr,data:wr})=>{if(xr==="11"&&wr){const{indicatorList:Cr=[],queryColumns:Ar=[]}=wr,Dr=Cr.concat(Ar).filter(qr=>qr.conditions||qr.filter),Lr=di(Dr,"conditions",!0),$r=di(wr.sqlConditions,"sqlConditions",!1);Qn.value=Lr.concat($r).filter(qr=>qr.label).map(qr=>{const Wr=vue.unref(Jn).find(Kr=>Kr.label===qr.label);let jr=qr.fieldValue;if(jr&&typeof jr=="string"){const Kr=jr.split(",");(Kr==null?void 0:Kr.length)>3&&(jr=Kr.slice(0,3).join(",")+"等")}else jr||(jr='""');return`${(Wr==null?void 0:Wr.title)||qr.label} ${mi[qr.rule]} ${jr}`})||[]}},_i=xr=>{const{id:wr,data:Cr}=xr;Cr.success&&(hi.value[wr]=(Cr==null?void 0:Cr.data)||{})},ni=(xr,wr)=>{switch(xr){case"SHOW_INDICATOR_DETAIL_MODAL":Ci(wr);break;case"SAVE_COMPONENT_RES_DATA":_i(wr);break}};vue.provide(COMMON_OPERATE,{operateAction:ni});const ii=()=>document.querySelector("#ProviderConfig > #container")||document.body,Di=xr=>{oi.pagination.current=xr.current};vue.watchEffect(()=>{var xr;if((xr=vue.unref(Gn))!=null&&xr.length&&vue.unref(Pn)!=="design"){const{jumpType:wr,jumpTime:Cr,jumpPage:Ar,jumpLink:Tr}=c;if(Cr!=null&&Cr.value){let Dr=0;switch(Cr==null?void 0:Cr.suffix){case"hours":Dr=Cr.value*60*60*1e3;break;case"minute":Dr=Cr.value*60*1e3;break;case"seconds":Dr=Cr.value*1e3;break}setTimeout(()=>{let Lr="";wr==="page"&&Ar?Lr=usePageUrl(vue.unref(Pn),Ar):wr==="link"&&Tr&&(Lr=Tr),Lr=hn(Lr),window.open(Lr,"_self")},Dr)}}});const Sr=xr=>{var wr;vue.unref(m).showModal({data:xr,indicatorUrl:vue.unref(y),indicatorToken:((wr=window==null?void 0:window.config)==null?void 0:wr.indicatorToken)||"",context:CONTEXT,pageId:Br()})},kr=xr=>{vue.unref(g).showModal({data:xr,pageConfig:c,unitText:Pr(xr)})},Pr=xr=>{let wr="",Cr="";const{componentConfig:Ar}=xr;for(const Dr in Ar)if(Ar[Dr].key==="currentValue"){Cr=Dr;break}const Tr=vue.unref(Wn).find(Dr=>Dr.id===Cr);return Tr!=null&&Tr.unitText&&(wr=Tr.unitText),wr};vue.provide("showIndDetail",Sr);function Br(){var wr;let xr=((wr=window==null?void 0:window.config)==null?void 0:wr.pageId)||"";if(!xr){const{pathname:Cr}=window==null?void 0:window.location;if(Cr){const Ar=Cr.split("/");Ar!=null&&Ar.length&&(xr=Ar[Ar.length-1])}}return xr}return vue.onBeforeUnmount(()=>{Ur==null||Ur.clear(),Yr==null||Yr.clear()}),u({touchRequest:ti,getGlobalModel:lr,onRefreshPage:vi,emitEvent:Vr,getRecordValueByKeyName:vr,showIndDetail:Sr,showTrend:kr,props:c,systemVariable:nr}),{providerConfig:gn,configStyle:cr,indDetailInfo:oi,pivotTableConfig:zn,indicatorUrl:y,pivotTableRef:Vn,isIndFullScreen:Kn,wrapClassName:ur,theme:b,detailLoading:Un,conditionInfo:Qn,indDetailModalRef:m,trendModalRef:g,allDimensions:Jn,scaleValue:Yn,getContainer:ii,handleTableChange:Di,toggleFullScreen:gi,onDetailCancel:Ei,onPivotTableChange:Ii}}}),ProviderConfig_vue_vue_type_style_index_0_scoped_616784c1_lang="",ProviderConfig_vue_vue_type_style_index_1_lang="",_hoisted_1$h=["id"],_hoisted_2$8=["title"],_hoisted_3$4={key:0,class:"spin-container"},_hoisted_4$3=["title"];function _sfc_render$y(c,u,f,d,h,p){const v=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("switcher-outlined"),g=vue.resolveComponent("border-outlined"),y=vue.resolveComponent("pivot-table"),x=vue.resolveComponent("a-spin"),Pn=vue.resolveComponent("a-table"),b=vue.resolveComponent("a-modal"),j=vue.resolveComponent("indicator-detail-modal"),re=vue.resolveComponent("trend-modal");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",{class:"provider-config-container",id:c.customId,ref:"providerConfig",style:vue.normalizeStyle({...c.configStyle,fontFamily:c.pageFontFamily})},[vue.renderSlot(c.$slots,"default",{},void 0,!0)],12,_hoisted_1$h),vue.createVNode(b,{visible:c.indDetailInfo.visible,"onUpdate:visible":u[1]||(u[1]=vn=>c.indDetailInfo.visible=vn),width:"60%",getContainer:c.getContainer,footer:null,destroyOnClose:!0,"wrap-class-name":c.wrapClassName,onCancel:c.onDetailCancel},{title:vue.withCtx(()=>[vue.createElementVNode("div",{class:"detail-modal-title",title:c.conditionInfo.join("、")},vue.toDisplayString(c.indDetailInfo.title)+" "+vue.toDisplayString(c.conditionInfo.join("、")),9,_hoisted_2$8)]),closeIcon:vue.withCtx(()=>[vue.createVNode(v,{class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"])]),default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"zoom-btn",onClick:u[0]||(u[0]=(...vn)=>c.toggleFullScreen&&c.toggleFullScreen(...vn))},[c.isIndFullScreen?(vue.openBlock(),vue.createBlock(m,{key:0,class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"])):(vue.openBlock(),vue.createBlock(g,{key:1,class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"]))]),c.drillingMode==="pivotTable"?(vue.openBlock(),vue.createElementBlock("div",{key:0,style:vue.normalizeStyle({position:"relative",width:c.pivotTableConfig.width,height:c.pivotTableConfig.height})},[vue.createVNode(y,vue.mergeProps({ref:"pivotTableRef"},c.pivotTableConfig,{pageMode:c.pageMode,theme:c.theme,fullMode:!1,allowDrill:!0,showFullScreen:!1,indicatorUrl:c.indicatorUrl,relateKeyName:c.indDetailInfo.keyName,allDimensions:c.allDimensions,scaleValue:c.scaleValue,enlargeContainer:"#norPageConfig",onTableChange:c.onPivotTableChange}),null,16,["pageMode","theme","indicatorUrl","relateKeyName","allDimensions","scaleValue","onTableChange"])],4)):c.drillingMode==="normalTable"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[c.detailLoading?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$4,[vue.createVNode(x,{size:"large"})])):(vue.openBlock(),vue.createBlock(Pn,{key:1,scroll:{x:"max-content",y:c.isIndFullScreen?"100vh":"60vh"},"row-key":vn=>vn.uuid,columns:c.indDetailInfo.columns,"data-source":c.indDetailInfo.dataSource,pagination:c.indDetailInfo.pagination,onChange:c.handleTableChange},{headerCell:vue.withCtx(({title:vn})=>[vue.createElementVNode("div",{class:"detail-table-header-cell",title:vn},vue.toDisplayString(vn),9,_hoisted_4$3)]),_:1},8,["scroll","row-key","columns","data-source","pagination","onChange"]))],64)):vue.createCommentVNode("",!0)]),_:1},8,["visible","getContainer","wrap-class-name","onCancel"]),vue.createVNode(j,{ref:"indDetailModalRef"},null,512),vue.createVNode(re,{ref:"trendModalRef"},null,512)],64)}const ProviderConfig=_export_sfc$1(_sfc_main$t,[["render",_sfc_render$y],["__scopeId","data-v-616784c1"]]),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={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},getEscapeReplacement=c=>escapeReplacements[c];function escape$3(c,u){if(u){if(escapeTest.test(c))return c.replace(escapeReplace,getEscapeReplacement)}else if(escapeTestNoEncode.test(c))return c.replace(escapeReplaceNoEncode,getEscapeReplacement);return c}const unescapeTest=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function unescape$1(c){return c.replace(unescapeTest,(u,f)=>(f=f.toLowerCase(),f==="colon"?":":f.charAt(0)==="#"?f.charAt(1)==="x"?String.fromCharCode(parseInt(f.substring(2),16)):String.fromCharCode(+f.substring(1)):""))}const caret=/(^|[^\[])\^/g;function edit$1(c,u){c=c.source||c,u=u||"";const f={replace:(d,h)=>(h=h.source||h,h=h.replace(caret,"$1"),c=c.replace(d,h),f),getRegex:()=>new RegExp(c,u)};return f}const nonWordAndColonTest=/[^\w:]/g,originIndependentUrl=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function cleanUrl$1(c,u,f){if(c){let d;try{d=decodeURIComponent(unescape$1(f)).replace(nonWordAndColonTest,"").toLowerCase()}catch{return null}if(d.indexOf("javascript:")===0||d.indexOf("vbscript:")===0||d.indexOf("data:")===0)return null}u&&!originIndependentUrl.test(f)&&(f=resolveUrl(u,f));try{f=encodeURI(f).replace(/%25/g,"%")}catch{return null}return f}const baseUrls={},justDomain=/^[^:]+:\/*[^/]*$/,protocol=/^([^:]+:)[\s\S]*$/,domain=/^([^:]+:\/*[^/]*)[\s\S]*$/;function resolveUrl(c,u){baseUrls[" "+c]||(justDomain.test(c)?baseUrls[" "+c]=c+"/":baseUrls[" "+c]=rtrim$1(c,"/",!0)),c=baseUrls[" "+c];const f=c.indexOf(":")===-1;return u.substring(0,2)==="//"?f?u:c.replace(protocol,"$1")+u:u.charAt(0)==="/"?f?u:c.replace(domain,"$1")+u:c+u}const noopTest$1={exec:function(){}};function merge$2(c){let u=1,f,d;for(;u<arguments.length;u++){f=arguments[u];for(d in f)Object.prototype.hasOwnProperty.call(f,d)&&(c[d]=f[d])}return c}function splitCells$1(c,u){const f=c.replace(/\|/g,(p,v,m)=>{let g=!1,y=v;for(;--y>=0&&m[y]==="\\";)g=!g;return g?"|":" |"}),d=f.split(/ \|/);let h=0;if(d[0].trim()||d.shift(),d[d.length-1].trim()||d.pop(),d.length>u)d.splice(u);else for(;d.length<u;)d.push("");for(;h<d.length;h++)d[h]=d[h].trim().replace(/\\\|/g,"|");return d}function rtrim$1(c,u,f){const d=c.length;if(d===0)return"";let h=0;for(;h<d;){const p=c.charAt(d-h-1);if(p===u&&!f)h++;else if(p!==u&&f)h++;else break}return c.substr(0,d-h)}function findClosingBracket$1(c,u){if(c.indexOf(u[1])===-1)return-1;const f=c.length;let d=0,h=0;for(;h<f;h++)if(c[h]==="\\")h++;else if(c[h]===u[0])d++;else if(c[h]===u[1]&&(d--,d<0))return h;return-1}function checkSanitizeDeprecation$1(c){c&&c.sanitize&&!c.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function repeatString$1(c,u){if(u<1)return"";let f="";for(;u>1;)u&1&&(f+=c),u>>=1,c+=c;return f+c}var helpers={escape:escape$3,unescape:unescape$1,edit:edit$1,cleanUrl:cleanUrl$1,resolveUrl,noopTest:noopTest$1,merge:merge$2,splitCells:splitCells$1,rtrim:rtrim$1,findClosingBracket:findClosingBracket$1,checkSanitizeDeprecation:checkSanitizeDeprecation$1,repeatString:repeatString$1};const{defaults:defaults$4}=defaults$5.exports,{rtrim,splitCells,escape:escape$2,findClosingBracket}=helpers;function outputLink(c,u,f,d){const h=u.href,p=u.title?escape$2(u.title):null,v=c[1].replace(/\\([\[\]])/g,"$1");if(c[0].charAt(0)!=="!"){d.state.inLink=!0;const m={type:"link",raw:f,href:h,title:p,text:v,tokens:d.inlineTokens(v,[])};return d.state.inLink=!1,m}else return{type:"image",raw:f,href:h,title:p,text:escape$2(v)}}function indentCodeCompensation(c,u){const f=c.match(/^(\s+)(?:```)/);if(f===null)return u;const d=f[1];return u.split(`
102
+ `;let p=c;if(f!=null&&f.length){for(const m of f){const g=hn(m,{textData:u},{useNewline:!1,useSpace:!1});g&&(p=p.replace(m,g))}return`${h}{text|${p}}`}else return c},setDefaultRangeVal=(c,u)=>{const{props:f,componentList:d,getGlobalModel:h}=c,{graphicConfig:p={},startValue:v,endValue:m}=f,g=getdefCompleteData({graphicConfig:p,startValue:v,endValue:m,componentList:d,getGlobalModel:h}),{dimensions:y,dataset:x}=u,{classificationList:Pn=[]}=p,j=Pn.find(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:d,graphicConfig:h,getGlobalModel:p}=c,v=getVariableAndField(u),m=getVariableAndField(f),g=[];if(v&&m){const y=d.find(Pn=>Pn.keyName===v.keyName),x=d.find(Pn=>Pn.keyName===m.keyName);if(y&&x){const Pn=p(y.id),b=p(x.id),{classificationList:j=[]}=h,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 d=f[0].slice(1,-1).trim();const h=d.match(/\[(.+?)\]/g);let p="";h!=null&&h.length&&(d=d.replace(h[0],""),p=h[0].slice(1,-1).trim()),u={keyName:d,field:p}}}return u}function getFormatStep(c){const u=c.split("-");let f="";if(u!=null&&u.length)switch(u[u.length-1]){case"YYYY":f="year";break;case"MM":f="month";break;case"DD":f="day";break}return f}function handleJumpLink(c,u){var Pn;const{pageMode:f,targetTemplate:d,getRecordValueByKeyName:h,setTemplateData:p}=u,v=c.linkPage||"",m=usePageUrl(f,v),g=c.href;let y=g||m;y=hn(y);const x=c.target;if(x)if(x==="event")window.parent.postMessage({type:"openPage",url:g},"*");else{const b={pageId:v,componentId:d};if((Pn=c.transParams)!=null&&Pn.length){y.includes("?")?y+="&":y+="?";const j=[];for(const re of c.transParams){const vn=h(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,d;let u={};if(c){const h=(((f=window.config)==null?void 0:f.urlParams)||{})[c]||{};for(const p in h)p.includes("{")||(u[p]=h[p])}else u=((d=window.config)==null?void 0:d.requestParams)||{};return u}function getNewValueFromUrlParams(c,u,f){let d="";const{urlParams:h}=window.config;if(c&&h[c])for(const p in h[c]){const v=h[c][p];if(p===`{${u}[${f}]}`&&v){d=v;break}}return d}function getFormatWh(c,u){return typeof c=="string"?parseFloat(c):c.suffix==="px"?+c.value:c.suffix==="%"?parseFloat(u)*(c.value/100):0}const hasChinese=c=>/[\u4e00-\u9fa5]/.test(c),dragModalAction=(c,u)=>{const f=document.querySelector(u);if(!f)return;f.style.cursor="move",f.style.userSelect="none";const d=f.parentElement,h=200,p=d.getBoundingClientRect(),{width:v,left:m,top:g}=p,y=window.innerWidth,x=window.innerHeight,Pn=c.clientX,b=c.clientY,j=parseFloat(d.style.left)||0,re=parseFloat(d.style.top)||0,vn=-(m+v-h-j),Fn=y-m+j-h,Bn=-(g-re),w=x-g+re-h,J=zn=>{zn.preventDefault();const Vn=zn.clientX-Pn,Kn=zn.clientY-b;let Un=j+Vn,Qn=re+Kn;Un=Math.max(vn,Math.min(Un,Fn)),Qn=Math.max(Bn,Math.min(Qn,w)),d.style.left=`${Un}px`,d.style.top=`${Qn}px`},gn=()=>{f.style.cursor="",f.style.userSelect="",document.removeEventListener("mousemove",J),document.removeEventListener("mouseup",gn)};document.addEventListener("mousemove",J),document.addEventListener("mouseup",gn)},useRequestData=(c,u,f=()=>{})=>{var sr;const{requestUrl:d,requestMethod:h,requestHeaders:p,requestParams:v,requestInterval:m,isOpenRequestTimer:g,openCustomRequestData:y,projectRequestUrl:x="",getModel:Pn,requestParamsMode:b,customRequestParams:j,dataSetParam: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:zn}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:"",touchEventId:""})||{},{getGlobalModel:Vn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:ur=>{}})||{},{loadedData:Kn}=vue.inject(LOADED_DATA,{loadedData:{}})||{},Un=vue.inject(COMMON_OPERATE,{operateAction:(ur,Gn)=>{}}),Qn=Pn||Vn;let Jn=hn(d),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||!h||!p)return;let Gn={};for(const er of v){const{key:pr,value:lr}=er;if((lr==null?void 0:lr.id)==="PARENT"&&(lr!=null&&lr.prop)){const ar=(((ir=window.config)==null?void 0:ir.record)||{})[lr.prop];if(ar){const vr=ar[lr.propKey||"value"];vr&&(["date","range"].some(mr=>yn(ar==null?void 0:ar.type,mr))?Gn[pr]=vue.unref(vr).format(ar.format||"YYYY-MM-DD"):Gn[pr]=vue.unref(vr))}continue}if(typeof lr=="object"&&lr!=null&&lr.id){let or={};const{id:ar,prop:vr,propKey:fr,operate:mr}=lr;let dr=!1;try{JSON.parse(ar),dr=!0}catch{dr=!1}if(ar==="THIS"?or=Qn(vue.unref(zn))||{}: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 hr=vue.unref(or[vr]);let yr=null;if(["date","range"].some(gr=>yn(or==null?void 0:or.type,gr))){const{value:gr,type:br,mode:Er}=mr||{};if(gr&&br&&Er)switch(br){case"add":yr=vue.unref(hr).add(gr,Er);break;case"minus":yr=vue.unref(hr).subtract(gr,Er);break}yr==null&&(yr=vue.unref(hr)),yr=yr&&(yr==null?void 0:yr.format((fr==null?void 0:fr.trim())||or.format))||""}else if(Object.prototype.toString.call(hr)==="[object Object]")fr?yr=hr[fr]:yr=vr?hr[vr]:hr;else if(yn(or==null?void 0:or.type,"select")&&vue.unref(hr)&&vr&&Array.isArray(vue.unref(hr)))yr=vue.unref(hr).map(gr=>Object.prototype.hasOwnProperty.call(gr,vr)?gr[vr]:gr);else if(dr){const gr=JSON.parse(ar);console.log(gr,"urlvalue"),yr=gr.value}else yr=hr;Gn[pr]=yr}else typeof lr=="object"&&!lr.id&&vn===1?(console.log(lr.propKey,"value.propKey"),Gn[pr]=lr.propKey):typeof lr=="string"&&(Gn[pr]=hn(lr))}if(vn===1){console.log(Gn,"_params");const er=Object.entries(Gn);let pr=re;if(!re.param&&Array.isArray(re)){const lr={};for(const or of re)lr[or.key]=or.value;pr=lr}pr.param=pr.param.map((lr,or)=>({...lr,paramKey:er[or][0],defaultValue:er[or][1]||""})),Gn=pr}if(b==="2"&&j!=="{}"){const er=JSON.parse(j);Wn(er),er&&(Gn=er)}function Wn(er){const pr={...Gn,...getPageUrlParams(J)};if(Array.isArray(er))er.forEach((lr,or)=>{if(typeof lr=="string"){const ar=lr.match(/\${(.+?)\}/g);if(ar!=null&&ar.length){const vr=ar[0].slice(2,-1);vr&&pr[vr]?er[or]=pr[vr]:er[or]=""}}else Wn(lr)});else if(Object.prototype.toString.call(er)==="[object Object]")for(const lr in er)if(typeof er[lr]=="string"){const or=er[lr].match(/\${(.+?)\}/g);if(or!=null&&or.length){const ar=or[0].slice(2,-1);ar&&pr[ar]?er[lr]=pr[ar]:er[lr]=""}}else Wn(er[lr])}const Rn=getPageUrlParams(J);for(const er in Rn)Rn[er]&&(Rn[er]=decodeURIComponent(Rn[er]));Gn={...Rn,...ur,...Gn};let qn="";const Xn=Object.keys(Gn),Hn=Xn.length-1,tr=Xn.length;Xn.forEach((er,pr)=>{let lr=Gn[er];Object.prototype.toString.call(lr)==="[object Object]"&&(lr=JSON.stringify(lr)),pr===0?tr!==1?qn+=`?${er}=${lr}&`:qn+=`?${er}=${lr}`:pr===Hn?qn+=`${er}=${lr}`:qn+=`${er}=${lr}&`}),Jn.includes("?")&&(qn=qn.replace("?","&"));function cr(er){var pr;if(vn===1)return{Authentication:(pr=window==null?void 0:window.config)==null?void 0:pr.indicatorToken};if(typeof er=="string"){const lr=JSON.parse(er),or=getPageUrlParams(J);if(Object.prototype.toString.call(lr)==="[object Object]"){for(const ar in lr)if(typeof lr[ar]=="string"){const vr=lr[ar].match(/\${(.+?)\}/g);if(vr!=null&&vr.length){const fr=vr[0].slice(2,-1);fr&&or[fr]?lr[ar]=or[fr]:lr[ar]=""}}}return lr}else return er}try{const er=["get","head"].includes(h),pr={};let lr=er?Jn+qn:Jn;Gn.dataSqlId&&!lr.includes("dataSqlId")&&(lr+=`${lr.includes("?")?"&":"?"}dataSqlId=${Gn.dataSqlId}`),Object.prototype.hasOwnProperty.call(Gn,"signal")?pr.signal=Gn.signal:window.controller&&(pr.signal=window.controller.signal);const or=await request({baseURL:Yn,url:lr,method:h,headers:p?cr(p):{},data:er?{}:Gn,...pr});return f(or),Un.operateAction("SAVE_COMPONENT_RES_DATA",{id:c.id,data:(or==null?void 0:or.data)||{}}),or}catch(er){console.error(er)}},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 d;if(!c)return c;let f="";return c!=null&&c.includes("://")?f=c:f=((d=window==null?void 0:window.config)==null?void 0:d.uploadPath)+c,u&&(f=`url(${f})`),f},usePageUrl=(c,u)=>{const f=`${BASE_URL}/preview?pageId=${u}`,d=`${BASE_URL}/${u}`;return c==="preview"?f:d},useIndicatorData=(c={},u=()=>{})=>{var x;const{pageMode:f}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),{requestToken:d}=vue.inject(GLOBAL_TOKEN,{requestToken:()=>{}}),{setLoadedData:h}=vue.inject(LOADED_DATA,{setLoadedData:(Pn,b)=>{}}),{getAllGlobalModel:p}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),{pageId:v}=vue.inject("templateOperate",{pageId:""})||{},m=vue.inject(COMMON_OPERATE,{operateAction:(Pn,b)=>{}});c.dataType==="indicator"&&d();const g=async(Pn={})=>{var J,gn,zn;const b=p();h(c.id,!1);const j=Dn({...c,globalModel:b},Pn),{url:re,...vn}=j||{},{pathname:Fn,search:Bn}=window==null?void 0:window.location;let w=v||((J=window==null?void 0:window.config)==null?void 0:J.pageId);if(!w&&Fn){const Vn=Fn.split("/");Vn!=null&&Vn.length&&(w=Vn[Vn.length-1])}if(re&&vn){let Vn,Kn;if(c.type==="ecanIndexPanel"&&(Vn=c.theFlag),re==="/diagram/formData"){Kn={};const Qn=Bn.slice(1,Bn.length).split("&");for(const Jn of Qn)if(Jn){const Yn=Jn.split("=");Yn[0]&&(Kn[Yn[0]]=Yn[1])}}try{const Un=await request({url:`${INDICATOR_URL}${re}`,method:"post",headers:{Authentication:(gn=window==null?void 0:window.config)==null?void 0:gn.indicatorToken,operateContext:CONTEXT},data:{...vn,pageId:w,theFlag:Vn,extParam:Kn},signal:((zn=window.controller)==null?void 0:zn.signal)||""});return Pn!=null&&Pn.isTimer&&u(Un),m.operateAction("SAVE_COMPONENT_RES_DATA",{id:c.id,data:(Un==null?void 0:Un.data)||{}}),Un}catch(Un){console.error(Un)}}},y=vue.unref(f)!=="design"&&((x=c==null?void 0:c.graphicConfig)==null?void 0:x.pageMode)!=="design"&&c.isOpenRequestTimer&&c.requestInterval&&setInterval(()=>{g({isTimer:!0})},c.requestInterval*1e3);return vue.onUnmounted(()=>{clearInterval(y)}),g},useHrefParamsToGlobalVariables=()=>{const u=window.location.search.slice(1).split("&"),f=u.length,d={};for(let h=0;h<f;h++){const p=u[h];if(p==null||p==="")continue;const v=p.split("=");if(Array.isArray(v)){const m=v[0];m.includes("{")||(d[m]=v[1])}}window.config.requestParams={...window.config.requestParams,...d},window.config={...window.config,...d}},_sfc_main$z=vue.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...pageConfigComponentProps,pageId:{type:String,default:""},customId:{type:String,default:"container"},portId:{type:String,default:"norPageConfig"}},setup(c){const{width:u,height:f,isCompatible:d}=vue.inject(GLOBAL_CONFIG,{width:null,height:null,isCompatible:null}),h=vue.inject("setPageHeight",zn=>{}),p=vue.inject("isMobile",!1),v=vue.computed(()=>{const zn={};return(!d.value||!p)&&(zn.width=u.value,zn.height=f.value),{...zn,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(zn=>{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),zn()})}),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(d.value&&p){b.value.style.width="100%",b.value.style.height="auto",h("auto");return}const zn=document.body.clientWidth,Vn=document.body.clientHeight,Kn=m.value||y.value,Un=g.value||x.value,Qn=zn/Kn;let Jn=Vn/Un;(m.value!==1920||g.value!==1080)&&(Jn=g.value/m.value*zn/Un),Fn.value={widthScale:Qn,heightScale:Jn},b.value&&(b.value.style.transform=`scale(${Qn}, ${Jn})`),h(Fn.value)},w=lodashEs.debounce(async()=>{await re(),Bn()},100),J=()=>{const zn=window.MutationObserver;j=new zn(w),j.observe(b.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},gn=()=>{j&&(j.disconnect(),j.takeRecords(),j=null)};return vue.onMounted(()=>{Pn.value=!1}),vue.onUnmounted(()=>{window.removeEventListener("resize",w),gn()}),{style:v,container:b,ready:Pn}}}),PageConfig_vue_vue_type_style_index_0_scoped_44a453d9_lang="",_hoisted_1$k=["id"],_hoisted_2$a=["id"];function _sfc_render$E(c,u,f,d,h,p){return vue.openBlock(),vue.createElementBlock("div",{class:"page-config-container",id:c.customId,ref:"container"},[c.ready||c.pageId?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"page-config",id:c.portId,style:vue.normalizeStyle(c.style)},[vue.renderSlot(c.$slots,"default",{},void 0,!0)],12,_hoisted_2$a)):vue.createCommentVNode("",!0)],8,_hoisted_1$k)}const PageConfig=_export_sfc$1(_sfc_main$z,[["render",_sfc_render$E],["__scopeId","data-v-44a453d9"]]),EcanPageConfig=withInstall$1(PageConfig),providerConfig={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px",pageFontFamily:"",jumpType:"page",jumpTime:null,jumpPage:"",jumpLink:"",requestList:[],events:[],isCompatible:!0,variableList:[],drillingMode:"pivotTable"},providerConfigComponentProps=transformToComponentProps(providerConfig);let random=c=>crypto.getRandomValues(new Uint8Array(c)),customRandom=(c,u,f)=>{let d=(2<<Math.log(c.length-1)/Math.LN2)-1,h=-~(1.6*d*u/c.length);return(p=u)=>{let v="";for(;;){let m=f(h),g=h;for(;g--;)if(v+=c[m[g]&d]||"",v.length===p)return v}}},customAlphabet=(c,u=21)=>customRandom(c,u,random),nanoid=(c=21)=>crypto.getRandomValues(new Uint8Array(c)).reduce((u,f)=>(f&=63,f<36?u+=f.toString(36):f<62?u+=(f-26).toString(36).toUpperCase():f>62?u+="-":u+="_",u),"");const pivotTableProps={...props,name:"透视表",keyName:"透视表",width:"800px",height:"400px",type:"ecanPivotTable",graphicConfig:{},dataType:"indicator",data:[],dimensionList:[],indicatorList:[],styleConfig:{borderColor:"#E3E3E3",headerBgColor:"#ECF1F5",headerColor:"#000000",bodyBgColor:"#FFFFFF",bodyColor:"#000000",indicatorsHeaderBgColor:"#ECF1F5",indicatorsHeaderColor:"#000000",indicatorsBodyBgColor:"#FFFFFF",indicatorsBodyColor:"#000000",aggregateBgColor:"#ECF1F5",aggregateColor:"#000000",sortNotActiveColor:"#CCCCCC",sortActiveColor:"#416EFF",dropDownMenuBgColor:"#FFFFFF",dropDownMenuColor:"#141414",dropDownMenuHightLightColor:"#2E68CF"},configMode:"halfMode"},pivotTableComponentProps=transformToComponentProps(pivotTableProps),pivotTableEvents=["refreshData"],_sfc_main$y=vue.defineComponent({name:"IndicatorDetailModal",setup(c,{expose:u}){const f=vue.ref(!1),d=vue.ref([]),h=vue.ref(!1),p=vue.ref(),v=async({data:g,indicatorUrl:y,indicatorToken:x,context:Pn,pageId:b})=>{var Fn,Bn;h.value=!0,f.value=!0;let j=[];const{graphicConfig:re,theFlag:vn}=vue.unref(g)||{};if(re){const{leftAxisList:w=[],rightAxisList:J=[],indicators:gn=[]}=re,zn=w.concat(J).concat(gn);zn!=null&&zn.length&&(j=zn.map(Vn=>({calcType:Vn.calcType||"COLUMN",columnName:Vn.name,hrpIndexCode:Vn.indexCode,hrpIndexCodeNum:Vn.indexCodeNum,label:Vn.label,show:Vn.show,formula:Vn.formula})))}if(j!=null&&j.length)try{const w=await request({url:`${vue.unref(y)}/diagram/obtainIndicatorInfo`,method:"post",headers:{Authentication:x,operateContext:Pn},data:{source:"INDICATOR_LIB",pageId:b,indicatorList:j,theFlag:vn}}),J=((Fn=w==null?void 0:w.data)==null?void 0:Fn.data)||[];(Bn=J[0])!=null&&Bn.remark?(p.value=J[0].remark,d.value=[]):(p.value=null,d.value=J)}catch{}finally{h.value=!1}},m=()=>document.querySelector("#ProviderConfig > #container")||document.body;return u({showModal:v}),{visible:f,dataList:d,isLoading:h,hasOwn:mn,remarkData:p,getContainer:m}}}),IndicatorDetailModal_vue_vue_type_style_index_0_scoped_be13fdbe_lang="",_withScopeId$6=c=>(vue.pushScopeId("data-v-be13fdbe"),c=c(),vue.popScopeId(),c),_hoisted_1$j=_withScopeId$6(()=>vue.createElementVNode("div",{class:"modal-title"},"指标详情",-1)),_hoisted_2$9={key:0,class:"spin-container"},_hoisted_3$5=["innerHTML"],_hoisted_4$4={class:"index-name"},_hoisted_5$3={key:0,class:"card-row"},_hoisted_6$3=_withScopeId$6(()=>vue.createElementVNode("div",{class:"label"},"计量单位:",-1)),_hoisted_7$3={class:"content"},_hoisted_8$3={key:1,class:"card-row"},_hoisted_9$3=_withScopeId$6(()=>vue.createElementVNode("div",{class:"label"},"指标定义:",-1)),_hoisted_10$3={class:"content"},_hoisted_11$3={key:2,class:"card-row"},_hoisted_12$3=_withScopeId$6(()=>vue.createElementVNode("div",{class:"label"},"计算方法:",-1)),_hoisted_13$3={class:"content"},_hoisted_14$3={key:3,class:"card-row"},_hoisted_15$2=_withScopeId$6(()=>vue.createElementVNode("div",{class:"label"},"指标说明:",-1)),_hoisted_16$1={class:"content"};function _sfc_render$D(c,u,f,d,h,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$j]),default:vue.withCtx(()=>[c.isLoading?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$9,[vue.createVNode(v,{size:"large"})])):c.remarkData?(vue.openBlock(),vue.createElementBlock("div",{key:1,innerHTML:c.remarkData},null,8,_hoisted_3$5)):c.dataList.length?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:2},vue.renderList(c.dataList,(g,y)=>(vue.openBlock(),vue.createElementBlock("div",{class:"detail-wrap",key:y},[vue.createElementVNode("div",_hoisted_4$4,vue.toDisplayString(g.indexName||"--"),1),c.hasOwn(g,"theUnit")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$3,[_hoisted_6$3,vue.createElementVNode("div",_hoisted_7$3,vue.toDisplayString(g.theUnit||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(g,"meaning")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_8$3,[_hoisted_9$3,vue.createElementVNode("div",_hoisted_10$3,vue.toDisplayString(g.meaning||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(g,"theFormula")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_11$3,[_hoisted_12$3,vue.createElementVNode("div",_hoisted_13$3,vue.toDisplayString(g.theFormula||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(g,"theExplain")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_14$3,[_hoisted_15$2,vue.createElementVNode("div",_hoisted_16$1,vue.toDisplayString(g.theExplain||"--"),1)])):vue.createCommentVNode("",!0)]))),128)):vue.createCommentVNode("",!0)]),_:1},8,["visible","getContainer"])}const IndicatorDetailModal=_export_sfc$1(_sfc_main$y,[["render",_sfc_render$D],["__scopeId","data-v-be13fdbe"]]),lineProps={...props,id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"}],titleText:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanLine",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,tooltipTextStyleColor:"",noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px",defaultRangeValue:!1,startValue:"",endValue:""},lineComponentProps=transformToComponentProps(lineProps),lineEvents=["click","refreshData","resetRecord"],useDownloadFile=async c=>{var g;const u=await request.post(c,{},{responseType:"blob"}),{data:f,headers:d}=u,h=d["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),p=new Blob([f]),v=document.createElement("a"),m=window.URL.createObjectURL(p);v.href=m,v.download=decodeURI(h),v.style.display="none",document.body.appendChild(v),v.click(),(g=v.parentNode)==null||g.removeChild(v),window.URL.revokeObjectURL(m)},modalProps={id:"",type:"ecanModal",title:"",titleFontSize:"14px",titleColor:"",width:"1000px",height:"800px",originalWidth:"1920px",originalHeight:"1080px",backgroundColor:"#fff",backgroundImage:"",backgroundSize:"100% 100%",keyName:"弹窗",componentList:[],fullModal:!1,destroyOnClose:!0,position:"default",closeBtnColor:"#333",isShowCloseBtn:!0,events:[],borderRadius:"0",borderWidth:"0px",borderColor:"",boxShadow:"0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05)",allComponentList:[],requestList:[],parentIframeId:"",banScale:!1},modalComponentProps=transformToComponentProps(modalProps),modalEvents=["showModal","hideModal"],containerType=["ecanBorder","ecanTabs","ecanCirculate"];function handleScrollCombinations(c){const{containerMap:u={},sourceList:f=[]}=c,d=lodashEs.cloneDeep(c.componentList),h=d.filter(p=>p.type==="ecanTabs"&&p.isAutoScroll);if(h!=null&&h.length)for(const p of h){const v=u[p.id],m=[];if((!mn(p,"componentList")||!(p!=null&&p.componentList))&&(p.componentList=[]),v){let g=0;for(const y in v){const x=v[y],Pn=[];if(x!=null&&x.length)for(const b of x){let j=d.find(re=>re.id===b);j||(j=f.find(re=>re.id===b)),j&&(Pn.push(j),containerType.includes(j.type)&&Pn.push(...getComponentByContainer(j.id,u,f)))}for(const b of Pn)mn(b,"scale")?parseFloat(y)>0&&(b.left=parseFloat(b.left)+g+"px"):(b.left=parseFloat(b.sourceLeft||b.left)-parseFloat(p.sourceLeft||p.left)+g+"px",b.top=parseFloat(b.sourceTop||b.top)-parseFloat(p.sourceTop||p.top)+"px"),m.includes(b.id)||m.push(b.id);p.componentList.push(...Pn),g=getMaxLeftInComponents(Pn)}}for(const g of m){const y=d.findIndex(x=>x.id===g);y!==-1&&d.splice(y,1)}}return d}function compatibleMobileList(c){var p,v;const{combinationMap:u={},sourceList:f=[]}=c,d=c.containerMap,h=lodashEs.cloneDeep([...c.componentList,...getTabsSomeComponentList(d,f)]);if(handleContainerMap(d,h),(p=Object.keys(d))!=null&&p.length||(v=Object.keys(u))!=null&&v.length){for(const b in d){const j=h.find(re=>re.id===b);if(j){mn(j,"parentId")||(j.parentId="",j.sourceLeft=j.left,j.sourceTop=j.top);for(const re in d[b])if(d[b][re])for(const vn of d[b][re]){const Fn=h.find(Bn=>Bn.id===vn);Fn&&(Fn.parentId=b,Fn.sourceLeft=Fn.left,Fn.sourceTop=Fn.top,Fn.left=parseFloat(Fn.left)-parseFloat(j.sourceLeft||j.left)+"px",Fn.top=parseFloat(Fn.top)-parseFloat(j.sourceTop||j.top)+"px")}}}const m=Array.from(new Set(h.filter(b=>(!mn(b,"parentId")||b.parentId==="")&&b.combinationId).map(b=>b.combinationId))),g=getCombinationList(m,{...c,componentList:h});g!=null&&g.length&&h.unshift(...g);const y=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],x=h.filter(b=>y.includes(b.type)&&!mn(b,"parentId")),Pn=[];for(const b of x)if(b){const j=b.id+"_vir";Pn.push({id:j,keyName:b.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:b.width,height:b.height,left:b.left,top:b.top,sourceLeft:b.left,sourceTop:b.top}),b.parentId=j,b.sourceLeft=b.left,b.sourceTop=b.top,b.left=0,b.top=0}Pn!=null&&Pn.length&&h.unshift(...Pn);for(const b of h){const j=document.body.clientWidth;if(b.parentId===""&&containerType.includes(b.type))b.sourceWidth=parseFloat(b.width),b.height=(j/(b.sourceWidth/parseFloat(b.height))).toFixed(2)+"px",b.width="100%",b.position="relative",b.top="auto",b.left="auto";else{const re=h.find(vn=>vn.id===b.parentId);if((re==null?void 0:re.parentId)===""){const vn=re.sourceWidth||parseFloat(re.width),Fn=j/vn;b.scale=Fn,b.top=parseFloat(b.top)*Fn-parseFloat(b.height)*(1-Fn)/2+"px",b.left=parseFloat(b.left)*Fn-parseFloat(b.width)*(1-Fn)/2+"px"}}b.type==="ecanModal"&&(b.parentId="",b.fullModal=!0)}return sortList(h)}return h}function handleContainerMap(c,u){const f=lodashEs.cloneDeep(c),d=u.filter(h=>h.type==="ecanTabs"&&h.isAutoScroll);if(d!=null&&d.length)for(const h of d){const p=f[h.id];for(const v in p)for(const m of p[v]){const g=u.find(y=>y.id===m);if(g&&containerType.includes(g.type)){const y=getComponentByContainer(g.id,f,u);for(const x of y)c[h.id][v].push(x.id),containerType.includes(x.type)&&delete c[x.id];delete c[g.id]}}}}function getTabsSomeComponentList(c,u){const f=[],d=u.filter(h=>h.type==="ecanTabs"&&h.isAutoScroll);if(d!=null&&d.length)for(const h of d){const p=c[h.id];for(const v in p)if(parseFloat(v)>0)for(const m of p[v]){const g=u.find(y=>y.id===m);g&&(f.push(g),containerType.includes(g.type)&&f.push(...getComponentByContainer(g.id,c,u)))}}return f}function getComponentByContainer(c,u,f){const d=[],h=u[c];for(const p in h)for(const v of h[p]){const m=f.find(g=>g.id===v);m&&(d.push(m),containerType.includes(m.type)&&d.push(...getComponentByContainer(m.id,u,f)))}return d}function getCombinationList(c,u,f){const{combinationMap:d={},componentList:h=[]}=u,p=[];for(const v of c){const m=d[v];if(m!=null&&m.length){const g=h.filter(y=>m.includes(y.id));if(g!=null&&g.length){const y=getCombinateRect(g);if(y){p.push({...y,id:v,keyName:v,parentId:f||"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:y.left,sourceTop:y.top});for(const x of g)x&&(x.parentId=v,x.sourceLeft=x.left,x.sourceTop=x.top,x.left=parseFloat(x.left)-parseFloat(y.left)+"px",x.top=parseFloat(x.top)-parseFloat(y.top)+"px")}}}}return p}function sortList(c){const f=c.filter(d=>d.parentId==="");if(f!=null&&f.length){const d=lodashEs.cloneDeep(f).map(h=>({...h,sourceTop:parseFloat(h.sourceTop),sourceLeft:parseFloat(h.sourceLeft)}));for(let h=0;h<d.length-1;h++)for(let p=0;p<d.length-h-1;p++){let v=!1;if((d[p].sourceTop-d[p+1].sourceTop>50||Math.abs(d[p+1].sourceTop-d[p].sourceTop)<=50&&d[p].sourceLeft>d[p+1].sourceLeft)&&(v=!0),v){const m=d[p];d[p]=d[p+1],d[p+1]=m}}for(const h of d){const p=c.findIndex(v=>v.id===h.id);p!==-1&&c.splice(p,1)}return[...d,...c]}return c}function getCombinateRect(c){const u=c.sort((p,v)=>parseFloat(p.top)-parseFloat(v.top))[0],f=c.sort((p,v)=>parseFloat(p.left)-parseFloat(v.left))[0],d=c.map(p=>({...p,computedTop:parseFloat(p.top)+parseFloat(p.height)})).sort((p,v)=>v.computedTop-p.computedTop)[0],h=c.map(p=>({...p,computedLeft:parseFloat(p.left)+parseFloat(p.width)})).sort((p,v)=>v.computedLeft-p.computedLeft)[0];return u&&f&&d&&h?{left:f.left,top:u.top,width:h.computedLeft-parseFloat(f.left)+"px",height:d.computedTop-parseFloat(u.top)+"px"}:null}function getMaxLeftInComponents(c){const u=c.map(f=>parseFloat(f.left)+parseFloat(f.width)).sort((f,d)=>d-f)[0];return u||0}function moveToComponentList(c,u,f){const d=c[f],h=[];if(d)for(const p in d){const v=d[p];for(const m of v){const g=u.find(y=>y.id===m);g&&(h.push(g),containerType.includes(g.type)&&h.push(...getComponentByContainer(g.id,c,u)))}}return h}const _sfc_main$x=vue.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(c,{emit:u}){u("ready",c.component.id)}});function _sfc_render$C(c,u,f,d,h,p){return c.component.parentId?(vue.openBlock(),vue.createBlock(vue.Teleport,{key:0,to:"#container_"+c.component.parentId},[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(c.component.type),vue.mergeProps({style:{scale:c.component.scale}},c.component),null,16,["style"]))],8,["to"])):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(c.component.type),vue.normalizeProps(vue.mergeProps({key:1},c.component)),null,16))}const Render=_export_sfc$1(_sfc_main$x,[["render",_sfc_render$C]]),EcanRender=withInstall$1(Render),_sfc_main$w=vue.defineComponent({name:"EcanModal",components:{AModal:antDesignVue.Modal,CloseOutlined:CloseOutlined$1,Render:EcanRender},props:{...modalComponentProps},setup(c,{emit:u}){const f=vue.ref([]),d=vue.inject("isMobile",!1),h=vue.computed(()=>c.fullModal),p=vue.inject("getContainerMap",()=>{}),v=vue.inject("getCombinationMap",()=>{}),{clearInteractiveData:m,interactiveData:g,setRequestData:y}=vue.inject(GLOBAL_MODEL,{setRequestData:(hr,yr)=>{},clearInteractiveData:()=>{},interactiveData:null}),x=()=>document.getElementById("ProviderConfig")||document.body,Pn=vue.computed(()=>{const hr=c.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[hr]}}),b=c.fullModal?"1920px":c.width,j=c.fullModal?"1080px":c.height,re=c.originalWidth,vn=c.originalHeight,Fn=vue.ref("80%"),Bn=vue.ref(0),w=vue.ref(),J=vue.ref(0),gn=vue.ref({}),zn=usePickComponentStyle(c),Vn=vue.ref({}),Kn=vue.ref(!1),Un=vue.ref();let Qn;const Jn=()=>{w.value=parseFloat(b)/parseFloat(re);const hr=parseFloat(j)/parseFloat(vn),yr=document.body.offsetWidth,_r=document.body.offsetHeight;if(Bn.value=yr*vue.unref(w),J.value=_r*hr,Fn.value=`${vue.unref(w)*100}%`,gn.value={width:`${vue.unref(Bn)}px`,height:`${vue.unref(J)}px`,border:`${c.borderWidth} solid ${c.borderColor}`,borderRadius:c.borderRadius+"px",boxShadow:c.boxShadow},Vn.value={...vue.unref(zn),backgroundImage:useImagePath(c.backgroundImage,!0)},d)Vn.value={...Vn.value,width:"100%",height:"100%"};else{const gr={...Vn.value,width:b,height:j};c.banScale&&vue.unref(h)?(gr.width="100%",gr.height="100%"):gr.transform=`scale(${vue.unref(Bn)/parseFloat(b)},${vue.unref(J)/parseFloat(j)})`,Vn.value=gr}},Yn=lodashEs.debounce(()=>{Jn()},100),Zn=()=>{const hr=window.MutationObserver;Qn=new hr(Yn),Qn.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},nr=()=>{Qn&&(Qn.disconnect(),Qn.takeRecords(),Qn=null)},sr=vue.ref(!1),{touchRequest:ur}=vue.inject(REQUEST_MODEL,{touchRequest:()=>{}}),Gn=vue.ref(""),Wn=()=>{var _r;const{title:hr}=c,yr=(_r=vue.unref(g))==null?void 0:_r.RECORD;return yr?hn(hr,{textData:yr},{useNewline:!1,useSpace:!1}):hr},Rn=useEmitEvent(c),qn=hr=>{const{changeIframeStyle:yr}=window.parent;yr&&typeof yr=="function"&&yr({iframeId:c.parentIframeId||"",action:hr})},Xn=()=>{vue.unref(h)&&qn("open"),d&&(document.documentElement.style.overflow="hidden"),Gn.value=Wn(),sr.value=!0},Hn=Rn("hideModal",()=>{vue.unref(h)&&qn("close"),u("close"),d&&(document.documentElement.style.overflow="hidden auto",f.value=[]),sr.value=!1}),tr=()=>{Hn()},cr=()=>{Hn(),m()},{setModalModel:ir,pushUseModalIds:er,popUseModalIds:pr}=vue.inject(MODAL_MODEL,{pushUseModalIds:hr=>{},popUseModalIds:()=>{},setModalModel:(hr,yr)=>{}}),lr=vue.computed(()=>{let hr=c.componentList;const yr=lodashEs.cloneDeep(c.componentList),_r=p(),gr=v(),br={containerMap:_r,combinationMap:gr};d&&(hr=compatibleMobileList({...br,componentList:yr,sourceList:c.allComponentList})),hr=handleScrollCombinations({...br,componentList:hr,sourceList:c.allComponentList});const Er=[];for(const Mr of hr)if(Mr.type==="ecanCirculate"){const Ir=moveToComponentList(_r,vue.unref(yr),Mr.id);Mr.componentList=Ir,Er.push(...Ir.map(Fr=>Fr.id))}if(Er!=null&&Er.length)for(const Mr of Er){const Ir=hr.findIndex(Fr=>Fr.id===Mr);Ir!==-1&&hr.splice(Ir,1)}return hr}),or=()=>{const hr=c.id;let yr=[];const _r=c.componentList;Array.isArray(_r)&&(yr=_r.map(gr=>gr.id),ir(hr,[...new Set(yr)]))},ar=vue.ref(!1),vr={};for(const hr of c.requestList)vr[hr.requestName]=useRequestData(hr);vue.watch(()=>sr.value,async hr=>{if(hr)Kn.value=!1,er(c.id),or(),await vue.nextTick(()=>{Jn(),window.addEventListener("resize",Yn),Zn(),Kn.value=!0}),ur();else{if(y)for(const yr in vr)y(yr,{});pr(),window.removeEventListener("resize",Yn),nr()}});const fr=vue.computed(()=>vue.unref(w)>=1),mr=vue.computed(()=>{let hr="ecan-modal";return vue.unref(fr)&&(hr+=" ecan-full-width-modal"),vue.unref(h)&&(hr+=" ecan-full-modal"),hr});return useOnEvent(c,{showModal:Xn,hideModal:Hn}),{modalRef:Un,containStyle:gn,contentStyle:Vn,getContainer:x,modalStyle:Pn,modalWith:Fn,isFullModal:h,style:zn,visible:sr,showModal:Xn,onOk:tr,onCancel:cr,isFullWidth:fr,wrapClassName:mr,ready:Kn,usedComponentList:lr,isMobile:d,readyIds:f,hasOwn:mn,onComponentReady:hr=>{f.value.push(hr)},formatTitle:Gn,requestLoaded:ar}}}),Modal_vue_vue_type_style_index_0_scoped_d34efac2_lang="",Modal_vue_vue_type_style_index_1_lang="";function _sfc_render$B(c,u,f,d,h,p){const v=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("render"),g=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(g,{getContainer:c.getContainer,wrapClassName:c.wrapClassName,centered:"",visible:c.visible,footer:null,width:c.isFullModal||c.isFullWidth?"100%":c.modalWith,destroyOnClose:c.destroyOnClose,style:vue.normalizeStyle(c.modalStyle),closable:!1,onOk:c.onOk,onCancel:c.onCancel,ref:"modalRef",id:"container_"+c.id},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"contain",ref:"containRef",style:vue.normalizeStyle(c.containStyle)},[c.ready?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"content",style:vue.normalizeStyle(c.contentStyle)},[vue.createElementVNode("div",{class:"header-bar",style:vue.normalizeStyle({backgroundColor:c.backgroundColor,padding:"20px 30px",height:c.isMobile?"62px":""})},[c.formatTitle?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"ant-modal-title",style:vue.normalizeStyle({fontSize:c.titleFontSize,color:c.titleColor})},vue.toDisplayString(c.formatTitle),5)):vue.createCommentVNode("",!0),c.isShowCloseBtn?(vue.openBlock(),vue.createBlock(v,{key:1,class:"close-icon",style:vue.normalizeStyle({color:c.closeBtnColor}),onClick:c.onCancel},null,8,["style","onClick"])):vue.createCommentVNode("",!0)],4),c.usedComponentList.length?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(c.isMobile?"mobile-wrap":"")},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.usedComponentList,(y,x)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:y.id+x},[c.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[c.hasOwn(y,"parentId")&&(c.readyIds.includes(y.parentId)||y.parentId==="")?(vue.openBlock(),vue.createBlock(m,{key:0,component:y,onReady:c.onComponentReady},null,8,["component","onReady"])):vue.createCommentVNode("",!0)],64)):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(y.type),vue.normalizeProps(vue.mergeProps({key:1},y)),null,16))],64))),128))],2)):vue.renderSlot(c.$slots,"default",{key:1},void 0,!0)],4)):vue.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel","id"])}const Modal=_export_sfc$1(_sfc_main$w,[["render",_sfc_render$B],["__scopeId","data-v-d34efac2"]]),EcanModal=withInstall$1(Modal);core$1.use([renderers.CanvasRenderer,charts.LineChart,components$1.ToolboxComponent,components$1.TitleComponent,components$1.LegendComponent,components$1.MarkLineComponent]);const _sfc_main$v=vue.defineComponent({name:"EcanLine",props:{...lineComponentProps},components:{Spin,Echarts,EcanModal},setup(c,{expose:u}){const f=vue.ref(!1),{pageMode:d,fontFamily:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),p=vue.inject("showIndDetail",Xn=>{}),v=vue.inject("usedComponentList",[]),m=vue.ref(),g=vue.ref(!1),y=usePickComponentStyle(c),x=vue.ref([]),Pn=vue.ref([]),b=vue.ref(),j=vue.computed(()=>g.value?ZOOM_FONT_SIZE:12),re=vue.ref({});let vn;const Fn=vue.ref([]),Bn=vue.computed(()=>{const Xn=c.xAxisLabelFormatter,Hn=c.yAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(h)},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,orient:c.toolboxOrient,feature:{myDownload:{show:c.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){useDownloadFile(c.toolboxDownloadUrl)}},myDataZoom:{show:g.value?!1:c.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var tr;g.value=!0,(tr=b.value)==null||tr.showModal()}},myInfo:{show:c.toolboxInfoShow,title:"详情",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){p(c)}}}},title:{text:c.titleText,subText:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},grid:{top:c.gridTop,bottom:c.gridBottom,left:c.gridLeft,right:c.gridRight,containLabel:c.gridContainLabel},color:c.colors,tooltip:{trigger:"axis",textStyle:{fontSize:j.value,color:c.tooltipTextStyleColor},show:c.tooltipShow,formatter:tr=>{var pr;const cr=tr.length;let ir="",er=c.tooltipFormatter;vn=(pr=tr[0])==null?void 0:pr.data,er===""&&(er="{marker} {a} {c}");for(let lr=0;lr<cr;lr++){const{marker:or,seriesName:ar,name:vr,value:fr,data:mr}=tr[lr]||{};if(lr===0){let dr=vr;typeof vr=="string"&&vr[0]==="0"&&!isNaN(+vr)&&(dr=(+vr).toString()),ir+=`${In(Xn,dr)}<br/>`}ir+=hn(er,{textData:{marker:or,name:vr,value:fr,a:ar,b:vr,c:fr||0,...mr}},{useNewline:!0,useSpace:!0}),ir+="<br/>"}return ir},position:c.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:c.isBoundaryGap,data:vue.unref(Pn).map(tr=>{let cr={};return tr&&typeof tr=="object"?cr={...tr}:cr={value:tr},cr}),minInterval:c.xAxisMinInterval,splitLine:{show:c.xAxisSplitLineShow,lineStyle:{color:c.xAxisSplitLineStyleColor},interval:c.xAxisSplitLineInterval},splitArea:{show:c.xAxisSplitAreaShow},axisLabel:{show:c.xAxisLabelShow,color:c.xAxisLabelColor,interval:c.xAxisLabelInterval||0,rotate:c.xAxisLabelRotate,width:c.xAxisLabelWidth,overflow:c.xAxisLabelOverflow,fontSize:c.xAxisLabelFontSize,formatter(tr){return typeof tr=="string"&&tr[0]==="0"&&!isNaN(+tr)&&(tr=(+tr).toString()),In(Xn,tr)}},axisLine:{show:c.xAxisLineShow,lineStyle:{color:c.xAxisLineStyleColor}},axisTick:{show:c.xAxisTickShow},name:c.xAxisName,nameTextStyle:{fontSize:c.xAxisLabelFontSize,color:c.xAxisLabelColor,align:"left"},max:c.xAxisMaxValue||null},yAxis:{type:"value",minInterval:c.yAxisMinInterval,splitLine:{show:c.yAxisSplitLineShow,lineStyle:{color:c.yAxisSplitLineStyleColor,type:c.yAxisSplitLineType}},splitArea:{show:c.yAxisSplitAreaShow},axisLabel:{show:c.yAxisLabelShow,fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,formatter(tr){return In(Hn,tr)}},axisLine:{show:c.yAxisLineAlwaysDisplay,lineStyle:{color:c.yAxisLineStyleColor}},name:c.yAxisName,nameTextStyle:{fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,align:"right"},max:c.yAxisMaxValue||null},legend:{type:c.legendScroll?"scroll":"plain",width:c.legendWidth,height:c.legendHeight,show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,textStyle:{lineHeight:(g.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:g.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:vue.unref(Fn).map(tr=>({name:tr.name,icon:c.legendType})),formatter:tr=>getLegendFormat(c.legendFormatter,{name:tr})},series:vue.unref(x)}}),w=()=>{g.value=!1},{getGlobalModel:J,setGlobalModel:gn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Xn=>{},setGlobalModel:(Xn,Hn)=>{}}),zn=vue.computed(()=>c.isShowMarkLine?{markLine:{data:[{type:c.markLineType}]}}:{}),Vn=(Xn=[],Hn=!1)=>{var pr;let tr;if(c.dataFieldConfigType==="key"){const lr=Hn?c.keyTypeDataFieldNames:null;tr=Mn(Xn,lr)}else if(c.dataFieldConfigType==="value"){const lr=Hn?c.valueTypeDataFieldNames:null;tr=En(Xn,lr)}Pn.value=tr.dimensions,Fn.value=tr.dataset;const cr=tr.dataset,ir=[],er=cr.length;for(let lr=0;lr<er;lr++){const or={};c.shadowColor&&(or.shadowColor=c.shadowColor,or.shadowBlur=c.shadowBlur,or.shadowOffsetY=c.shadowOffsetY,or.shadowOffsetX=c.shadowOffsetX),ir.push({type:"line",...cr[lr],symbolSize:c.symbolSize,smooth:c.smooth,areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:c.colors[lr]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[lr],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...or},...vue.unref(zn)})}x.value=ir,(pr=tr.dataset)!=null&&pr.length?f.value=!1:f.value=!0},Kn=(Xn=[],Hn,tr=!1)=>{var or,ar,vr;const ir=Mn(Xn,tr?Hn:null,!0);if(c.defaultRangeValue&&setDefaultRangeVal({props:c,componentList:vue.unref(v),getGlobalModel:J},ir),(or=ir.dataset)!=null&&or.length){for(const fr of ir.dataset)if((ar=fr.data)!=null&&ar.length)for(const mr of fr.data)(mr.value===null||mr.value===void 0)&&(mr.value=0)}Pn.value=ir.dimensions,Fn.value=ir.dataset;const er=ir.dataset,pr=[],lr=er.length;for(let fr=0;fr<lr;fr++){const mr={};c.shadowColor&&(mr.shadowColor=c.shadowColor,mr.shadowBlur=c.shadowBlur,mr.shadowOffsetY=c.shadowOffsetY,mr.shadowOffsetX=c.shadowOffsetX),pr.push({type:"line",...er[fr],symbolSize:c.symbolSize,smooth:c.smooth,areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:c.colors[fr]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[fr],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...mr},...vue.unref(zn)})}x.value=pr,(vr=ir.dataset)!=null&&vr.length?f.value=!1:f.value=!0};vue.watch(()=>[c.data,c.symbolSize,c.smooth,c.lineStyleWidth,c.areaStyleOpacity,c.areaGradientShow,c.areaGradientColor,c.shadowColor,c.shadowBlur,c.shadowOffsetY,c.shadowOffsetX,c.legendFontSize,c.isShowMarkLine,c.markLineType,c.legendFormatter,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll],([Xn])=>{(c.dataType==="static"||vue.unref(d)==="design")&&Vn(Xn)},{immediate:!0,deep:!0});const Un=vue.ref(!1),Qn=useRequestData(c),Jn=async()=>{var Xn,Hn;if(c.dataType==="request")try{Un.value=!0;const tr=await Qn();Vn((Hn=(Xn=tr==null?void 0:tr.data)==null?void 0:Xn.data)==null?void 0:Hn.rows,!0)}catch(tr){console.error(tr)}finally{Un.value=!1}},Yn=useEmitEvent(c);gn(c.id,{type:c.type,RECORD:""});const Zn=Yn("click",Xn=>{const Hn=J(c.id);gn(c.id,{...Hn,type:c.type,RECORD:c.tooltipShow?vn:Xn.data})}),nr=Xn=>{m.value.chart.containPixel("grid",[Xn.offsetX,Xn.offsetY])&&Zn()};c.tooltipShow?re.value["zr:click"]=nr:re.value.click=Zn;const sr=Xn=>{var pr;const{columns:Hn=[],rows:tr=[]}=((pr=Xn==null?void 0:Xn.data)==null?void 0:pr.data)??{};let cr;Hn.length>0&&(cr={name:Hn[0],types:Hn.slice(1).map(lr=>({label:lr,value:lr}))});const{leftAxisList:ir=[]}=c.graphicConfig,er=ir.filter(lr=>lr.show).map(lr=>lr.label);for(const lr of tr)if(lr)for(const or in lr)typeof lr[or]=="string"&&er.includes(or)&&!isNaN(parseFloat(lr[or]))&&(lr[or]=parseFloat(lr[or]));Kn(tr,cr,!0)},ur=useIndicatorData(c,Xn=>{c.isViewRedrawing&&m.value.clear(),sr(Xn)}),Gn=async()=>{try{Un.value=!0;const Xn=await ur();sr(Xn)}catch(Xn){console.error(Xn)}finally{Un.value=!1}},Wn=async()=>{switch(c.dataType){case"indicator":await Gn();break;case"request":await Jn();break}};useOnEvent(c,{refreshData:Wn,resetRecord:()=>{const Xn=c.id,Hn=J(Xn);gn(Xn,{...Hn,RECORD:""})},click:Zn});const{setRequest:qn}=vue.inject(REQUEST_MODEL,{setRequest:Xn=>{}});return typeof qn=="function"&&qn({id:c.id,requestFn:Wn,sortNum:c.requestSort}),u({refreshData:Wn}),{option:Bn,style:y,click:Zn,loading:Un,onClose:w,ecanModal:b,eventObj:re,echartRef:m,emptyData:f}}}),Line_vue_vue_type_style_index_0_lang="",Line_vue_vue_type_style_index_1_scoped_dd12eb06_lang="";function _sfc_render$A(c,u,f,d,h,p){const v=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[c.noDataTip&&c.emptyData?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"empty-wrap",style:vue.normalizeStyle({color:c.tipTextColor,fontSize:c.tipTextFontSize})},[vue.createElementVNode("span",null,vue.toDisplayString(c.tipText),1)],4)):(vue.openBlock(),vue.createBlock(v,vue.mergeProps({key:1,ref:"echartRef",option:c.option,autoresize:""},vue.toHandlers(c.eventObj)),null,16,["option"]))]),_:1},8,["spinning"]),vue.createVNode(g,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:c.onClose},{default:vue.withCtx(()=>[vue.createVNode(m,{class:"spin-wrap",spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(v,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Line=_export_sfc$1(_sfc_main$v,[["render",_sfc_render$A],["__scopeId","data-v-dd12eb06"]]),EcanLine=withInstall$1(Line),_sfc_main$u=vue.defineComponent({name:"TrendModal",components:{EcanLine},setup(c,{expose:u}){const f=vue.ref(!1),d=vue.ref(),h=vue.ref(),p=async({data:m,pageConfig:g,unitText:y})=>{var x;if(m){const Pn=nanoid(6),b={source:"INDICATOR_LIB",dataSourceId:"",idxLibMode:"",classificationList:[{id:"3f5bda70a08a442085857adb7fc547de",indexCode:null,indexCodeNum:null,title:"日期",name:"the_date",label:"日期",typeGuid:"the_date",genericType:"DATE",hrpIndexComplexid:"the_date",scope:"BUILT_IN_DIM",fromTable:"hrp_index_complex",parentId:"3f5bda70a08a442085857adb7fc547de",show:!0,edit:!1,dataTo:"0",dateFormat:"YYYY-MM",dataSetParams:{}}],leftAxisList:((x=m==null?void 0:m.graphicConfig)==null?void 0:x.indicators)||[]};d.value={...lodashEs.cloneDeep(lineProps),id:Pn,keyName:`折线图_${Pn}`,position:"relative",top:0,left:0,width:parseFloat(g.width)*.57+"px",height:parseFloat(g.height)*.4+"px",dataType:"indicator",tooltipFormatter:"{marker} {a} {c}"+y,graphicConfig:b},f.value=!0,vue.nextTick(()=>{vue.unref(h).refreshData()})}},v=()=>document.querySelector("#ProviderConfig > #container")||document.body;return u({showModal:p}),{visible:f,componentConfig:d,lineRef:h,getContainer:v}}}),TrendModal_vue_vue_type_style_index_0_scoped_eb1432d2_lang="",_withScopeId$5=c=>(vue.pushScopeId("data-v-eb1432d2"),c=c(),vue.popScopeId(),c),_hoisted_1$i=_withScopeId$5(()=>vue.createElementVNode("div",{class:"modal-title"},"趋势图",-1));function _sfc_render$z(c,u,f,d,h,p){const v=vue.resolveComponent("ecan-line"),m=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(m,{visible:c.visible,"onUpdate:visible":u[0]||(u[0]=g=>c.visible=g),width:"60%",getContainer:c.getContainer,footer:null,destroyOnClose:!0,bodyStyle:{maxHeight:"60vh",overflow:"auto",padding:"20px 24px 24px"}},{title:vue.withCtx(()=>[_hoisted_1$i]),default:vue.withCtx(()=>[c.componentConfig?(vue.openBlock(),vue.createBlock(v,vue.mergeProps({key:0},c.componentConfig,{ref:"lineRef"}),null,16)):vue.createCommentVNode("",!0)]),_:1},8,["visible","getContainer"])}const TrendModal=_export_sfc$1(_sfc_main$u,[["render",_sfc_render$z],["__scopeId","data-v-eb1432d2"]]),_sfc_main$t=vue.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,components:{ATable:antDesignVue.Table,BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1,CloseOutlined:CloseOutlined$1,IndicatorDetailModal,TrendModal},props:{...providerConfigComponentProps,pageId:{type:String,default:""},customId:{type:String,default:"ProviderConfig"},fixedHeight:{type:String,default:"0px"}},setup(c,{expose:u,emit:f}){c.pageId||useHrefParamsToGlobalVariables();const d=.57,h=.6,p=.97,v=.9,m=vue.ref(),g=vue.ref(),y=vue.computed(()=>INDICATOR_URL),x=vue.computed(()=>hn(c.contextRequestUrl)),Pn=vue.computed(()=>c.pageMode),b=vue.computed(()=>c.theme),j=vue.computed(()=>c.width),re=vue.computed(()=>c.height),vn=vue.computed(()=>c.pageFontFamily),Fn=vue.computed(()=>c.fixedHeight?parseFloat(c.fixedHeight):0),Bn=vue.computed(()=>c.isCompatible),w=vue.computed(()=>c.variableList),J=vue.computed(()=>!!navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)),gn=vue.ref(),zn=vue.ref({}),Vn=vue.ref(),Kn=vue.ref(!1),Un=vue.ref(!1),Qn=vue.ref([]),Jn=vue.ref([]),Yn=vue.ref({}),Zn=()=>{gn.value.setAttribute("datav-theme",c.theme)},nr=vue.ref({currentYmd:dayjs().format("YYYY-MM-DD"),currentYear:dayjs().format("YYYY"),currentMonth:dayjs().format("MM"),currentDay:dayjs().format("DD")}),sr=vue.computed(()=>{const xr={};if(vue.unref(w))for(const Cr of vue.unref(w))xr[Cr.label]=Cr.value;return{$page:{...vue.unref(nr),...xr}}}),ur=vue.computed(()=>{let xr="ind-detail-modal";return Kn.value&&(xr+=" full"),vue.unref(b)==="darkBlue"&&(xr+=" darkBlue"),xr});vue.provide(GLOBAL_VARIABLE,{globalVariable:sr});const Gn=vue.inject("usedComponentList",[]),Wn=vue.inject("componentList",[]);vue.watch(sr,()=>{f("setGlobalVar",vue.unref(nr))},{deep:!0,immediate:!0});const Rn=vue.computed(()=>{const xr=[];for(const wr of vue.unref(Gn))wr.type==="ecanModal"?xr.push(...wr.componentList):xr.push(wr);return xr});vue.watch(()=>c.theme,()=>{Zn()}),vue.onMounted(()=>{Zn()});const qn=vue.computed(()=>{const xr=[],wr=vue.unref(Wn).filter(Cr=>Cr.type==="ecanModal");for(const Cr of wr)Cr!=null&&Cr.requestList&&xr.push(...Cr.requestList);return[...xr,...c.requestList]}),Xn=xr=>Object.prototype.toString.call(xr)==="[object Object]",Hn=xr=>{const wr=xr.split(".");let Cr=vue.unref(sr);for(const Ar of wr)if(Cr&&Xn(Cr))Cr=Cr[Ar];else{Cr="";break}return Cr},tr=vue.ref("");vue.provide(GLOBAL_CONFIG,{contextRequestUrl:x,pageMode:Pn,theme:b,touchEventId:tr,width:j,height:re,fontFamily:vn,requestList:qn,isCompatible:Bn,fixedHeight:Fn,getGlobalVar:Hn});const cr=vue.ref({height:"100%",overflow:c.pageMode==="design"?"":"hidden"});vue.provide("setPageHeight",xr=>{let wr=0;xr==="auto"?wr=xr:(wr=xr.heightScale,Yn.value=xr),(!Bn.value||!J.value)&&(wr=parseFloat(re.value)*wr+"px"),cr.value.height=wr}),vue.provide("isMobile",J.value),vue.provide("getContainerMap",()=>c.containerMap),vue.provide("getCombinationMap",()=>c.combinationMap),vue.provide("templateOperate",{pageId:c.pageId,templateEmit:f,setTemplateData:xr=>{var wr;if(xr!=null&&xr.pageId){const{componentId:Cr,...Ar}=xr;(wr=window.config)!=null&&wr.urlParams||(window.config.urlParams={}),window.config.urlParams[xr.pageId]=Ar,f("templateChange",xr)}}});const ir=vue.ref(),er=new Map,pr=()=>er,lr=xr=>{let wr=er.get(xr);if(!wr){const Cr=vue.unref(Wn).find(Ar=>Ar.keyName===xr);Cr&&(wr=er.get(Cr.id))}return wr},or=(xr,wr)=>{var Cr;if(ir.value=wr,er.set(xr,wr),!c.pageId){const Ar=vue.unref(Gn).find(Tr=>Tr.id===xr);Ar&&((Cr=window.config)!=null&&Cr.record||(window.config.record={}),window.config.record[Ar.keyName]=wr)}},ar=()=>{ir.value=null},vr=xr=>{let wr=xr;if(wr){const Cr=xr.match(/\{(.+?)\}/g);if(Cr!=null&&Cr.length){let Ar=Cr[0].slice(1,-1).trim();const Tr=Ar.match(/\[(.+?)\]/g);let Dr="";Tr!=null&&Tr.length&&(Ar=Ar.replace(Tr[0],""),Dr=Tr[0].slice(1,-1).trim());const Lr=vue.unref(Rn).find($r=>$r.keyName===Ar);if(Lr){const $r=lr(Lr.id),{type:qr,value:Wr,RECORD:jr,recordData:Kr}=$r||{};yn(qr,MODEL_KEY_LIST)?wr=jr[Dr]:yn(qr,"select")?Kr[Dr]?wr=Kr[Dr]:wr=vue.unref(Wr):yn(qr,["rangePicker","date"])?dayjs.isDayjs(vue.unref($r[Dr]))?wr=vue.unref($r[Dr]).format($r.format):wr=vue.unref($r[Dr]):wr=Wr}else{const $r=window.config.requestParams||{},qr=window.location.search.slice(1).split("&"),Wr={};for(const Kr of qr)if(Kr!=null&&Kr.includes("=")){const Xr=Kr.split("=");Wr[Xr[0]]=Xr[1]||""}wr={...Wr,...$r}[Ar]||""}}}return wr},fr=new Map,mr={},dr=async(xr,wr)=>{var Lr;const{requestName:Cr}=xr,Ar=await useRequestData({...xr,projectRequestUrl:vue.unref(x),getModel:lr})(),Tr=((Lr=Ar==null?void 0:Ar.data)==null?void 0:Lr.data)||{};xr.requestKeyName&&(nr.value[xr.requestKeyName]=Tr);const Dr=fr.get(Cr);if(Dr!=null&&Dr.length&&(!wr||mr[Cr])){for(const $r of Dr)$r(Tr);wr||fr.delete(Cr)}},hr=(xr,wr)=>{mr[xr]&&(clearInterval(mr[xr]),delete mr[xr],fr.delete(xr));const Cr=vue.unref(Rn).filter(Tr=>Tr.dataType==="request"&&!Tr.openCustomRequestData&&Tr.customRequestName===xr),Ar=fr.get(xr)||[];if((Cr==null?void 0:Cr.length)>Ar.length&&(Ar.push(wr),fr.set(xr,Ar),(Cr==null?void 0:Cr.length)===Ar.length)){const Tr=vue.unref(qn).find(Dr=>Dr.requestName===xr);Tr&&(Tr!=null&&Tr.isOpenRequestTimer&&(Tr!=null&&Tr.requestInterval)?(dr(Tr,!0),mr[xr]=setInterval(()=>{dr(Tr,!0)},Tr.requestInterval*1e3)):dr(Tr))}};vue.provide(GLOBAL_MODEL,{getGlobalModel:lr,setGlobalModel:or,getAllGlobalModel:pr,clearInteractiveData:ar,getRecordValueByKeyName:vr,hanldePageRequestData:hr,interactiveData:ir});const yr=vue.ref({}),_r=(xr,wr)=>{yr.value[xr]=wr};vue.provide(LOADED_DATA,{loadedData:yr,setLoadedData:_r});const gr=[],br=()=>{gr.pop()},Er=xr=>{gr.push(xr)},Mr=new Map,Ir=xr=>Mr.get(xr),Fr=(xr,wr)=>{Mr.set(xr,wr)};vue.provide(MODAL_MODEL,{popUseModalIds:br,pushUseModalIds:Er,getModalModel:Ir,setModalModel:Fr});const Or=mitt(),Nr=new Set,zr=(xr,wr)=>{Nr.add(xr),Or.on(xr,Cr=>{const{eventName:Ar,params:Tr}=Cr;return typeof wr[Ar]=="function"&&wr[Ar](Tr)}),vue.onBeforeUnmount(()=>{Rr(xr)})},Rr=xr=>{Nr.delete(xr),Or.off(xr)},Vr=(xr,wr,Cr={})=>{if(xr==="PAGE"){const Ar=gr.length;let Tr=[];if(Ar===0)Tr=[...Nr];else{const Dr=gr[Ar-1];Tr=[...Ir(Dr)]}Tr.forEach(Dr=>{Or.emit(Dr,{eventName:wr,params:Cr})})}else Or.emit(xr,{eventName:wr,params:Cr})};vue.provide(EVENT_BUS,{onEvent:zr,offEvent:Rr,emitEvent:Vr});const Hr=vue.ref(0),Gr=()=>{Hr.value=vue.unref(Hr)+1};vue.provide(GLOBAL_TOKEN,{requestToken:Gr});const Ur=new Map,Yr=new Map,Qr=({requestFn:xr=()=>{},sortNum:wr=0,id:Cr=""})=>{if(Ur.has(wr)){const Ar=Ur.get(wr);Ar==null||Ar.push(xr)}else Ur.set(wr,[xr]);Yr.set(Cr,xr)},ri=xr=>new Promise((wr,Cr)=>{const Ar=[];for(const Tr of xr)Ar.push(new Promise(async Dr=>{await Tr(),Dr()}));Promise.all(Ar).then(Tr=>{wr(Tr)}).catch(Tr=>{Cr(Tr)})}),ti=xr=>new Promise(async(wr,Cr)=>{if(xr){if(typeof xr=="string"){const Ar=Yr.get(xr);if(typeof Ar=="function"){const Tr=request.interceptors.response.use(Dr=>(wr(Dr),Dr),Dr=>(Cr(Dr),Promise.reject(Dr)));Ar(),request.interceptors.response.eject(Tr)}}}else{const Ar=Array.from(Ur);Ar.sort((Dr,Lr)=>Lr[0]-Dr[0]);const Tr=Ar.length;try{c.pageMode!=="design"&&vue.unref(Hr)>0;for(let Dr=0;Dr<Tr;Dr++){const Lr=Ar[Dr][1];await ri(Lr)}}catch(Dr){console.error(Dr)}finally{Ur.clear(),wr(null)}}});vue.provide(REQUEST_MODEL,{setRequest:Qr,touchRequest:ti});const ai=()=>{Or.emit(REFRESH_PAGE)};vue.provide(REFRESH_PAGE,{emitRefreshPage:ai});const vi=xr=>{Or.on(REFRESH_PAGE,()=>xr()),vue.onMounted(()=>{Or.off(REFRESH_PAGE)})},hi=vue.ref({}),oi=vue.reactive({keyName:"",visible:!1,dataSource:[],columns:[],title:"",pagination:{current:1,pageSize:10,total:0,showSizeChanger:!1,showQuickJumper:!1,showTotal:xr=>`共 ${xr} 条数据`}});vue.provide(All_COMPONENT_RES_DATA,{allComponentResData:hi});const xi={borderColor:"#666E8D",headerBgColor:"#06347C",headerColor:"#DEE5EF",bodyBgColor:"#112861",bodyColor:"#B2CCE7",indicatorsHeaderBgColor:"#184273",indicatorsHeaderColor:"#FFFFFF",indicatorsBodyBgColor:"#184273",indicatorsBodyColor:"#FFFFFF",aggregateBgColor:"#0F4F9B",aggregateColor:"#FFFCFC",sortNotActiveColor:"#B0B0B0",sortActiveColor:"#00CCFF",dropDownMenuBgColor:"#08154F",dropDownMenuColor:"#B2C3DD",dropDownMenuHightLightColor:"#2E68CF"},Ci=async xr=>{var Kr,Xr,ci,ui,si;if(J.value||c.drillingMode==="default")return;let wr=lodashEs.cloneDeep(xr).props;if(wr.parentId){const Jr=vue.unref(Gn).find(ei=>ei.id===wr.parentId);if((Jr==null?void 0:Jr.dataType)==="indicator")wr=lodashEs.cloneDeep(Jr);else return}oi.keyName=wr==null?void 0:wr.keyName;const Cr=((Kr=window==null?void 0:window.config)==null?void 0:Kr.indicatorToken)||"",Ar=Br(),Tr=(wr==null?void 0:wr.graphicConfig)||{},{leftAxisList:Dr=[],rightAxisList:Lr=[],indicators:$r=[]}=Tr,qr=Dr.concat(Lr).concat($r);if(!(qr!=null&&qr.length))return;const Wr=qr.filter(Jr=>Jr.show).map(Jr=>Jr.label);Wr!=null&&Wr.length&&(oi.title=`下钻:${Wr.join("、")}`);const jr=Dn({...wr,globalModel:pr()});if(c.drillingMode==="pivotTable"){const Jr=await ki({cpntProps:wr,pageId:Ar,formatParams:jr,classifications:[],indicatorToken:Cr});Jn.value=((Xr=Jr==null?void 0:Jr.data)==null?void 0:Xr.data)||[];const ei=nanoid(6);Tr.queryColumnList||(Tr.queryColumnList=[]),Tr!=null&&Tr.classificationList&&(Tr.queryColumnList=Tr.classificationList,delete Tr.classificationList),Tr!=null&&Tr.seriesList&&(Tr.queryColumnList=Tr.queryColumnList.concat(Tr.seriesList),delete Tr.seriesList),Tr.indicators=lodashEs.cloneDeep(qr||[]),delete Tr.leftAxisList,delete Tr.rightAxisList;const Mi={};if(yn(wr.type,"indexPanel")){const Fi=Tr.indicators.find(fi=>fi.show),Ai=vue.unref(Jn).slice(0,2).sort((fi,yi)=>fi.typeGuid-yi.typeGuid).map(fi=>({...fi,show:!0,edit:!1,dataTo:"0",dataSetParams:{}}));Ai!=null&&Ai.length&&(Tr.queryColumnList=Ai);const Ti=Pr(wr);if(Ti&&Fi){const{label:fi}=Fi;Mi.defaultConfig={indexFormatConfig:{[fi]:{fieldName:fi,indicatorKey:fi,position:"right",unit:Ti}}}}}(ci=Tr.queryColumnList)!=null&&ci.length||(Tr.queryColumnList=[{id:"3f5bda70a08a442085857adb7fc547de",indexCode:null,indexCodeNum:null,title:"日期(内置)",name:"the_date",label:"日期(内置)",typeGuid:"the_date",genericType:"DATE",hrpIndexComplexid:"the_date",scope:"BUILT_IN_DIM",fromTable:"hrp_index_complex",parentId:"3f5bda70a08a442085857adb7fc547de",show:!0,edit:!1,dataTo:"0",dataSetParams:{}}]);const Bi={...lodashEs.cloneDeep(pivotTableProps),id:ei,keyName:`透视表_${ei}`,position:"relative",top:0,left:0,width:parseFloat(c.width)*d+"px",height:document.body.clientHeight*h+"px",pageId:Ar,indicatorToken:Cr,context:CONTEXT,globalModel:pr(),graphicConfig:Tr,pageConfig:c,...Mi};vue.unref(b)==="darkBlue"&&(Bi.styleConfig=xi),zn.value=Bi,oi.visible=!0,vue.nextTick(()=>{vue.unref(Vn).refreshData()})}else if(c.drillingMode==="normalTable"){Pi(jr,lodashEs.cloneDeep(xr.props));let Jr=(jr==null?void 0:jr.classification)||(jr==null?void 0:jr.classifications)||[];Array.isArray(Jr)||(Jr=[Jr]);try{Un.value=!0,oi.visible=!0;const ei=await ki({cpntProps:wr,pageId:Ar,formatParams:jr,classifications:Jr,indicatorToken:Cr}),Mi=((ui=ei==null?void 0:ei.data)==null?void 0:ui.data)||[],Bi=Jr.map(li=>({...li,calcType:"COLUMN"}));for(const li of Mi)Bi.push({calcType:"COLUMN",columnName:li.name,label:li.name,show:!0,typeGuid:li.typeGuid});jr.queryColumns=Bi,jr.layer="1",jr.plugin="1",delete jr.classification,delete jr.classifications;const{url:Fi,...Ai}=jr||{},Ti=await request({url:`${vue.unref(y)}${Fi}`,method:"post",headers:{Authentication:Cr,operateContext:CONTEXT},data:{...Ai,pageId:Ar}}),{columns:fi=[],rows:yi=[]}=((si=Ti==null?void 0:Ti.data)==null?void 0:si.data)||{};oi.columns=fi.filter(li=>!!li).map(li=>{let Ni=li;const Ri=Mi.find(zi=>zi.name===li);return Ri&&(Ni=Ri.title||Ri.label),{title:Ni,dataIndex:li,width:"120px"}}),oi.dataSource=(Array.isArray(yi)?yi:[yi]).map(li=>({...li,uuid:nanoid(6)})),oi.pagination.total=(yi==null?void 0:yi.length)||0,Un.value=!1}catch(ei){console.error(ei)}}vue.nextTick(()=>{Si(!0),pi(!0)})},Si=xr=>{const wr=document.querySelector(".ind-detail-modal .ant-modal-header");wr&&(xr?wr.addEventListener("dblclick",gi):wr.removeEventListener("dblclick",gi))},pi=xr=>{const wr=document.querySelector(".ind-detail-modal .ant-modal-header");if(wr)if(xr)wr.addEventListener("mousedown",wi);else{const Cr=wr.parentElement;Cr&&(Cr.style.left="",Cr.style.top=""),wr.removeEventListener("mousedown",wi)}};function wi(xr){dragModalAction(xr,".ind-detail-modal .ant-modal-header")}const ki=async({cpntProps:xr,pageId:wr,formatParams:Cr,classifications:Ar,indicatorToken:Tr})=>{var Dr,Lr,$r;return await request({url:`${vue.unref(y)}/diagram/obtainDrillAbleDimensionOptions`,method:"post",headers:{Authentication:Tr,operateContext:CONTEXT},data:{source:((Dr=xr==null?void 0:xr.graphicConfig)==null?void 0:Dr.source)||"INDICATOR_LIB",pageId:wr,indicatorList:(Cr==null?void 0:Cr.indicatorList)||[],classifications:Ar,dataSourceId:((Lr=xr==null?void 0:xr.graphicConfig)==null?void 0:Lr.dataSourceId)||""},signal:(($r=window.controller)==null?void 0:$r.signal)||""})},mi={IN:"属于",NOT_IN:"不属于",LIKE:"包含",NOT_LIKE:"不包含","LIKE%":"开头是","%LIKE":"结尾是",EQUAL:"等于",LESS:"小于",LESS_EQUAL:"小于等于",GREATER:"大于",GREATER_EQUAL:"大于等于",NOT_EQUAL:"不等于"};function di(xr,wr,Cr){const Ar=[];for(const Tr of xr)Tr[wr]?Ar.push(...di(Tr[wr],wr,Cr)):Tr.filter?Ar.push({...Tr.filter,label:Tr.label}):(!Cr||Tr.dataType!=="component"&&!(Tr.fieldValue.startsWith("${")&&Tr.fieldValue.endsWith("}")))&&Ar.push(Tr);return Ar}const Pi=(xr,wr)=>{const{leftAxisList:Cr=[],rightAxisList:Ar=[],indicators:Tr=[],classificationList:Dr=[],rowHeaderList:Lr=[],dimensionList:$r=[],seriesList:qr=[],queryColumns:Wr=[],indexLibColumns:jr=[]}=wr.graphicConfig,Xr=Cr.concat(Ar).concat(Tr).concat(Dr).concat(Lr).concat($r).concat(qr).concat(Wr).concat(jr).filter(si=>si.conditions),ci=di(Xr,"conditions",!0),ui=di(xr.sqlConditions,"sqlConditions",!1);Qn.value=ci.concat(ui).filter(si=>si.label).map(si=>{let Jr=si.fieldValue;if(Jr){const ei=Jr.split(",");(ei==null?void 0:ei.length)>3&&(Jr=ei.slice(0,3).join(",")+"等")}else Jr='""';return`${si.label} ${mi[si.rule]} ${Jr}`})||[]},gi=()=>{Kn.value=!Kn.value,vue.nextTick(()=>{Kn.value?(vue.unref(zn).width=parseFloat(c.width)*p+"px",vue.unref(zn).height=document.body.clientHeight*v+"px",pi(!1)):(vue.unref(zn).width=parseFloat(c.width)*d+"px",vue.unref(zn).height=document.body.clientHeight*h+"px",pi(!0))})},Ei=()=>{Kn.value=!1,Si(!1),pi(!1)},Ii=({type:xr,data:wr})=>{if(xr==="11"&&wr){const{indicatorList:Cr=[],queryColumns:Ar=[]}=wr,Dr=Cr.concat(Ar).filter(qr=>qr.conditions||qr.filter),Lr=di(Dr,"conditions",!0),$r=di(wr.sqlConditions,"sqlConditions",!1);Qn.value=Lr.concat($r).filter(qr=>qr.label).map(qr=>{const Wr=vue.unref(Jn).find(Kr=>Kr.label===qr.label);let jr=qr.fieldValue;if(jr&&typeof jr=="string"){const Kr=jr.split(",");(Kr==null?void 0:Kr.length)>3&&(jr=Kr.slice(0,3).join(",")+"等")}else jr||(jr='""');return`${(Wr==null?void 0:Wr.title)||qr.label} ${mi[qr.rule]} ${jr}`})||[]}},_i=xr=>{const{id:wr,data:Cr}=xr;Cr.success&&(hi.value[wr]=(Cr==null?void 0:Cr.data)||{})},ni=(xr,wr)=>{switch(xr){case"SHOW_INDICATOR_DETAIL_MODAL":Ci(wr);break;case"SAVE_COMPONENT_RES_DATA":_i(wr);break}};vue.provide(COMMON_OPERATE,{operateAction:ni});const ii=()=>document.querySelector("#ProviderConfig > #container")||document.body,Di=xr=>{oi.pagination.current=xr.current};vue.watchEffect(()=>{var xr;if((xr=vue.unref(Gn))!=null&&xr.length&&vue.unref(Pn)!=="design"){const{jumpType:wr,jumpTime:Cr,jumpPage:Ar,jumpLink:Tr}=c;if(Cr!=null&&Cr.value){let Dr=0;switch(Cr==null?void 0:Cr.suffix){case"hours":Dr=Cr.value*60*60*1e3;break;case"minute":Dr=Cr.value*60*1e3;break;case"seconds":Dr=Cr.value*1e3;break}setTimeout(()=>{let Lr="";wr==="page"&&Ar?Lr=usePageUrl(vue.unref(Pn),Ar):wr==="link"&&Tr&&(Lr=Tr),Lr=hn(Lr),window.open(Lr,"_self")},Dr)}}});const Sr=xr=>{var wr;vue.unref(m).showModal({data:xr,indicatorUrl:vue.unref(y),indicatorToken:((wr=window==null?void 0:window.config)==null?void 0:wr.indicatorToken)||"",context:CONTEXT,pageId:Br()})},kr=xr=>{vue.unref(g).showModal({data:xr,pageConfig:c,unitText:Pr(xr)})},Pr=xr=>{let wr="",Cr="";const{componentConfig:Ar}=xr;for(const Dr in Ar)if(Ar[Dr].key==="currentValue"){Cr=Dr;break}const Tr=vue.unref(Wn).find(Dr=>Dr.id===Cr);return Tr!=null&&Tr.unitText&&(wr=Tr.unitText),wr};vue.provide("showIndDetail",Sr);function Br(){var wr;let xr=((wr=window==null?void 0:window.config)==null?void 0:wr.pageId)||"";if(!xr){const{pathname:Cr}=window==null?void 0:window.location;if(Cr){const Ar=Cr.split("/");Ar!=null&&Ar.length&&(xr=Ar[Ar.length-1])}}return xr}return vue.onBeforeUnmount(()=>{Ur==null||Ur.clear(),Yr==null||Yr.clear()}),u({touchRequest:ti,getGlobalModel:lr,onRefreshPage:vi,emitEvent:Vr,getRecordValueByKeyName:vr,showIndDetail:Sr,showTrend:kr,props:c,systemVariable:nr}),{providerConfig:gn,configStyle:cr,indDetailInfo:oi,pivotTableConfig:zn,indicatorUrl:y,pivotTableRef:Vn,isIndFullScreen:Kn,wrapClassName:ur,theme:b,detailLoading:Un,conditionInfo:Qn,indDetailModalRef:m,trendModalRef:g,allDimensions:Jn,scaleValue:Yn,getContainer:ii,handleTableChange:Di,toggleFullScreen:gi,onDetailCancel:Ei,onPivotTableChange:Ii}}}),ProviderConfig_vue_vue_type_style_index_0_scoped_32a2af6a_lang="",ProviderConfig_vue_vue_type_style_index_1_lang="",_hoisted_1$h=["id"],_hoisted_2$8=["title"],_hoisted_3$4={key:0,class:"spin-container"},_hoisted_4$3=["title"];function _sfc_render$y(c,u,f,d,h,p){const v=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("switcher-outlined"),g=vue.resolveComponent("border-outlined"),y=vue.resolveComponent("pivot-table"),x=vue.resolveComponent("a-spin"),Pn=vue.resolveComponent("a-table"),b=vue.resolveComponent("a-modal"),j=vue.resolveComponent("indicator-detail-modal"),re=vue.resolveComponent("trend-modal");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",{class:"provider-config-container",id:c.customId,ref:"providerConfig",style:vue.normalizeStyle({...c.configStyle,fontFamily:c.pageFontFamily})},[vue.renderSlot(c.$slots,"default",{},void 0,!0)],12,_hoisted_1$h),vue.createVNode(b,{visible:c.indDetailInfo.visible,"onUpdate:visible":u[1]||(u[1]=vn=>c.indDetailInfo.visible=vn),width:"60%",getContainer:c.getContainer,footer:null,destroyOnClose:!0,"wrap-class-name":c.wrapClassName,onCancel:c.onDetailCancel},{title:vue.withCtx(()=>[vue.createElementVNode("div",{class:"detail-modal-title",title:c.conditionInfo.join("、")},vue.toDisplayString(c.indDetailInfo.title)+" "+vue.toDisplayString(c.conditionInfo.join("、")),9,_hoisted_2$8)]),closeIcon:vue.withCtx(()=>[vue.createVNode(v,{class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"])]),default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"zoom-btn",onClick:u[0]||(u[0]=(...vn)=>c.toggleFullScreen&&c.toggleFullScreen(...vn))},[c.isIndFullScreen?(vue.openBlock(),vue.createBlock(m,{key:0,class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"])):(vue.openBlock(),vue.createBlock(g,{key:1,class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"]))]),c.drillingMode==="pivotTable"?(vue.openBlock(),vue.createElementBlock("div",{key:0,style:vue.normalizeStyle({position:"relative",width:c.pivotTableConfig.width,height:c.pivotTableConfig.height})},[vue.createVNode(y,vue.mergeProps({ref:"pivotTableRef"},c.pivotTableConfig,{pageMode:c.pageMode,theme:c.theme,fullMode:!1,allowDrill:!0,showFullScreen:!1,indicatorUrl:c.indicatorUrl,relateKeyName:c.indDetailInfo.keyName,allDimensions:c.allDimensions,scaleValue:c.scaleValue,enlargeContainer:"#norPageConfig",onTableChange:c.onPivotTableChange}),null,16,["pageMode","theme","indicatorUrl","relateKeyName","allDimensions","scaleValue","onTableChange"])],4)):c.drillingMode==="normalTable"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[c.detailLoading?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$4,[vue.createVNode(x,{size:"large"})])):(vue.openBlock(),vue.createBlock(Pn,{key:1,scroll:{x:"max-content",y:c.isIndFullScreen?"100vh":"60vh"},"row-key":vn=>vn.uuid,columns:c.indDetailInfo.columns,"data-source":c.indDetailInfo.dataSource,pagination:c.indDetailInfo.pagination,onChange:c.handleTableChange},{headerCell:vue.withCtx(({title:vn})=>[vue.createElementVNode("div",{class:"detail-table-header-cell",title:vn},vue.toDisplayString(vn),9,_hoisted_4$3)]),_:1},8,["scroll","row-key","columns","data-source","pagination","onChange"]))],64)):vue.createCommentVNode("",!0)]),_:1},8,["visible","getContainer","wrap-class-name","onCancel"]),vue.createVNode(j,{ref:"indDetailModalRef"},null,512),vue.createVNode(re,{ref:"trendModalRef"},null,512)],64)}const ProviderConfig=_export_sfc$1(_sfc_main$t,[["render",_sfc_render$y],["__scopeId","data-v-32a2af6a"]]),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={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},getEscapeReplacement=c=>escapeReplacements[c];function escape$3(c,u){if(u){if(escapeTest.test(c))return c.replace(escapeReplace,getEscapeReplacement)}else if(escapeTestNoEncode.test(c))return c.replace(escapeReplaceNoEncode,getEscapeReplacement);return c}const unescapeTest=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function unescape$1(c){return c.replace(unescapeTest,(u,f)=>(f=f.toLowerCase(),f==="colon"?":":f.charAt(0)==="#"?f.charAt(1)==="x"?String.fromCharCode(parseInt(f.substring(2),16)):String.fromCharCode(+f.substring(1)):""))}const caret=/(^|[^\[])\^/g;function edit$1(c,u){c=c.source||c,u=u||"";const f={replace:(d,h)=>(h=h.source||h,h=h.replace(caret,"$1"),c=c.replace(d,h),f),getRegex:()=>new RegExp(c,u)};return f}const nonWordAndColonTest=/[^\w:]/g,originIndependentUrl=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function cleanUrl$1(c,u,f){if(c){let d;try{d=decodeURIComponent(unescape$1(f)).replace(nonWordAndColonTest,"").toLowerCase()}catch{return null}if(d.indexOf("javascript:")===0||d.indexOf("vbscript:")===0||d.indexOf("data:")===0)return null}u&&!originIndependentUrl.test(f)&&(f=resolveUrl(u,f));try{f=encodeURI(f).replace(/%25/g,"%")}catch{return null}return f}const baseUrls={},justDomain=/^[^:]+:\/*[^/]*$/,protocol=/^([^:]+:)[\s\S]*$/,domain=/^([^:]+:\/*[^/]*)[\s\S]*$/;function resolveUrl(c,u){baseUrls[" "+c]||(justDomain.test(c)?baseUrls[" "+c]=c+"/":baseUrls[" "+c]=rtrim$1(c,"/",!0)),c=baseUrls[" "+c];const f=c.indexOf(":")===-1;return u.substring(0,2)==="//"?f?u:c.replace(protocol,"$1")+u:u.charAt(0)==="/"?f?u:c.replace(domain,"$1")+u:c+u}const noopTest$1={exec:function(){}};function merge$2(c){let u=1,f,d;for(;u<arguments.length;u++){f=arguments[u];for(d in f)Object.prototype.hasOwnProperty.call(f,d)&&(c[d]=f[d])}return c}function splitCells$1(c,u){const f=c.replace(/\|/g,(p,v,m)=>{let g=!1,y=v;for(;--y>=0&&m[y]==="\\";)g=!g;return g?"|":" |"}),d=f.split(/ \|/);let h=0;if(d[0].trim()||d.shift(),d[d.length-1].trim()||d.pop(),d.length>u)d.splice(u);else for(;d.length<u;)d.push("");for(;h<d.length;h++)d[h]=d[h].trim().replace(/\\\|/g,"|");return d}function rtrim$1(c,u,f){const d=c.length;if(d===0)return"";let h=0;for(;h<d;){const p=c.charAt(d-h-1);if(p===u&&!f)h++;else if(p!==u&&f)h++;else break}return c.substr(0,d-h)}function findClosingBracket$1(c,u){if(c.indexOf(u[1])===-1)return-1;const f=c.length;let d=0,h=0;for(;h<f;h++)if(c[h]==="\\")h++;else if(c[h]===u[0])d++;else if(c[h]===u[1]&&(d--,d<0))return h;return-1}function checkSanitizeDeprecation$1(c){c&&c.sanitize&&!c.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function repeatString$1(c,u){if(u<1)return"";let f="";for(;u>1;)u&1&&(f+=c),u>>=1,c+=c;return f+c}var helpers={escape:escape$3,unescape:unescape$1,edit:edit$1,cleanUrl:cleanUrl$1,resolveUrl,noopTest:noopTest$1,merge:merge$2,splitCells:splitCells$1,rtrim:rtrim$1,findClosingBracket:findClosingBracket$1,checkSanitizeDeprecation:checkSanitizeDeprecation$1,repeatString:repeatString$1};const{defaults:defaults$4}=defaults$5.exports,{rtrim,splitCells,escape:escape$2,findClosingBracket}=helpers;function outputLink(c,u,f,d){const h=u.href,p=u.title?escape$2(u.title):null,v=c[1].replace(/\\([\[\]])/g,"$1");if(c[0].charAt(0)!=="!"){d.state.inLink=!0;const m={type:"link",raw:f,href:h,title:p,text:v,tokens:d.inlineTokens(v,[])};return d.state.inLink=!1,m}else return{type:"image",raw:f,href:h,title:p,text:escape$2(v)}}function indentCodeCompensation(c,u){const f=c.match(/^(\s+)(?:```)/);if(f===null)return u;const d=f[1];return u.split(`
103
103
  `).map(h=>{const p=h.match(/^\s+/);if(p===null)return h;const[v]=p;return v.length>=d.length?h.slice(d.length):h}).join(`
104
104
  `)}var Tokenizer_1$1=class{constructor(u){this.options=u||defaults$4}space(u){const f=this.rules.block.newline.exec(u);if(f)return f[0].length>1?{type:"space",raw:f[0]}:{raw:`
105
105
  `}}code(u){const f=this.rules.block.code.exec(u);if(f){const d=f[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:f[0],codeBlockStyle:"indented",text:this.options.pedantic?d:rtrim(d,`