@ecan-bi/datav 1.5.49 → 1.5.51

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.49 */
1
+ /*! @ecan-bi/datav@1.5.51 */
2
2
  (function(ii,gi){typeof exports=="object"&&typeof module<"u"?gi(exports,require("vue"),require("echarts/core"),require("resize-detector"),require("ant-design-vue"),require("ant-design-vue/es/spin/style"),require("ant-design-vue/es/skeleton/style"),require("lodash-es"),require("dayjs"),require("axios"),require("mitt"),require("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"],gi):(ii=typeof globalThis<"u"?globalThis:ii||self,gi(ii["@ecan/bi-datav"]={},ii.Vue,ii["echarts/core"],ii.ResizeDetector,ii.AntDesignVue,null,null,ii.LodashEs,ii.Dayjs,ii.Axios,ii.Mitt,ii["echarts/renderers"],ii["echarts/charts"],ii["echarts/components"],null,null,null,null,ii["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,ii.Echarts,null,null,ii.Xlsx,ii.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 ii,gi,Ai,Ti;"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(...v)=>{if(c.value||u(),!c.value)throw new Error("ECharts is not initialized yet.");return c.value[h].apply(c.value,v)}}function d(){const h=Object.create(null);return METHOD_NAMES.forEach(v=>{h[v]=f(v)}),h}return d()}function useAutoresize(c,u,f){let d=null;vue.watch([f,c,u],([h,v,p],m,g)=>{h&&v&&p&&(d=core$1.throttle(()=>{v.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 v=c.value;v&&(u.value?v.showLoading(h.value):v.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(),v=vue.shallowRef(),p=vue.inject(THEME_KEY,null),m=vue.inject(INIT_OPTIONS_KEY,null),g=vue.inject(UPDATE_OPTIONS_KEY,null),{autoresize:y,manualUpdate:b,loading:gn,loadingOptions:x}=vue.toRefs(c),vn=vue.computed(()=>v.value||c.option||Object.create(null)),J=vue.computed(()=>c.theme||vue.unref(p)||{}),j=vue.computed(()=>c.initOptions||vue.unref(m)||{}),Fn=vue.computed(()=>c.updateOptions||vue.unref(g)||{}),Bn=vue.computed(()=>omitOn(u));function w(Wn){if(h.value||!d.value)return;const Gn=h.value=core$1.init(d.value,J.value,j.value);c.group&&(Gn.group=c.group);let Zn=f;Zn||(Zn={},Object.keys(u).filter(Jn=>Jn.indexOf("on")===0&&Jn.length>2).forEach(Jn=>{const ir=Jn.charAt(2).toLowerCase()+Jn.slice(3);Zn[ir]=u[Jn]})),Object.keys(Zn).forEach(Jn=>{const ir=Zn[Jn];ir&&(Jn.indexOf("zr:")===0?Gn.getZr().on(Jn.slice(3).toLowerCase(),ir):Gn.on(Jn.toLowerCase(),ir))});function Xn(){if(Gn&&!Gn.isDisposed())try{Gn.resize()}catch(Jn){if(Jn.message==="Cannot read property 'get' of undefined")return;throw Jn}}function er(){Gn.setOption(Wn||vn.value,Fn.value)}y.value?vue.nextTick(()=>{Xn(),er()}):er()}function re(Wn,Gn){c.manualUpdate&&(v.value=Wn),h.value?h.value.setOption(Wn,Gn||{}):w(Wn)}function Pn(){h.value&&(h.value.dispose(),h.value=void 0)}let Rn=null;vue.watch(b,Wn=>{typeof Rn=="function"&&(Rn(),Rn=null),Wn||(Rn=vue.watch(()=>c.option,Gn=>{Gn&&(h.value?h.value.setOption(Gn,Fn.value):w())},{deep:!0}))},{immediate:!0}),vue.watch([J,j],()=>{Pn(),w()},{deep:!0}),vue.watchEffect(()=>{c.group&&h.value&&(h.value.group=c.group)});const Vn=usePublicAPI(h,w);return useLoading(h,gn,x),useAutoresize(h,y,d),vue.onMounted(()=>{c.option&&w()}),vue.onUnmounted(Pn),{chart:h,root:d,setOption:re,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,v;if(c=bound01(c,360),u=bound01(u,100),f=bound01(f,100),u===0)h=f,v=f,d=f;else{var p=f<.5?f*(1+u):f+u-f*u,m=2*f-p;d=hue2rgb(m,p,c+1/3),h=hue2rgb(m,p,c),v=hue2rgb(m,p,c-1/3)}return{r:d*255,g:h*255,b:v*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),v=0,p=d,m=d-h,g=d===0?0:m/d;if(d===h)v=0;else{switch(d){case c:v=(u-f)/m+(u<f?6:0);break;case u:v=(f-c)/m+2;break;case f:v=(c-u)/m+4;break}v/=6}return{h:v,s:g,v:p}}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,v=f*(1-u),p=f*(1-h*u),m=f*(1-(1-h)*u),g=d%6,y=[f,p,v,v,m,f][g],b=[m,f,f,p,v,v][g],gn=[v,v,m,f,f,p][g];return{r:y*255,g:b*255,b:gn*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,v=null,p=!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),p=!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),p=!0,m="hsv"):isValidCSSUnit(c.h)&&isValidCSSUnit(c.s)&&isValidCSSUnit(c.l)&&(d=convertToPercentage(c.s),v=convertToPercentage(c.l),u=hslToRgb(c.h,d,v),p=!0,m="hsl"),Object.prototype.hasOwnProperty.call(c,"a")&&(f=c.a)),f=boundAlpha(f),{ok:p,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 v=toHsv(d),p=toHex(inputToRGB({h:getHue(v,h,!0),s:getSaturation(v,h,!0),v:getValue(v,h,!0)}));f.push(p)}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(b){var gn=b.index,x=b.opacity,vn=toHex(mix(inputToRGB(u.backgroundColor||"#141414"),inputToRGB(f[gn]),x*100));return vn}):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 v;return styleElements[h]!==void 0&&styleElements[h][f]!==void 0?v=styleElements[h][f]:(v=styleElements[h][f]=createStyleElement(),f==="prepend"?d.insertBefore(v,d.childNodes[0]):d.appendChild(v)),c.charCodeAt(0)===65279&&(c=c.substr(1,c.length)),v.styleSheet?v.styleSheet.cssText+=c:v.textContent+=c,v}function _objectSpread$d(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},d=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(f).filter(function(h){return Object.getOwnPropertyDescriptor(f,h).enumerable}))),d.forEach(function(h){_defineProperty$e(c,h,f[h])})}return c}function _defineProperty$e(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}function warn(c,u){process.env.NODE_ENV!=="production"&&!c&&console!==void 0&&console.error("Warning: ".concat(u))}function warning(c,u){warn(c,"[@ant-design/icons-vue] ".concat(u))}function isIconDefinition(c){return typeof c=="object"&&typeof c.name=="string"&&typeof c.theme=="string"&&(typeof c.icon=="object"||typeof c.icon=="function")}function generate(c,u,f){return f?vue.h(c.tag,_objectSpread$d({key:u},f,c.attrs),(c.children||[]).map(function(d,h){return generate(d,"".concat(u,"-").concat(c.tag,"-").concat(h))})):vue.h(c.tag,_objectSpread$d({key:u},c.attrs),(c.children||[]).map(function(d,h){return generate(d,"".concat(u,"-").concat(c.tag,"-").concat(h))}))}function getSecondaryColor(c){return generate$1(c)[0]}function normalizeTwoToneColors(c){return c?Array.isArray(c)?c:[c]:[]}var iconStyles=`
3
3
  .anticon {
4
4
  display: inline-block;
@@ -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$1(c,u){if(c){if(typeof c=="string")return _arrayLikeToArray$1(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$1(c,u)}}function _arrayLikeToArray$1(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,v=!1,p,m;try{for(f=f.call(c);!(h=(p=f.next()).done)&&(d.push(p.value),!(u&&d.length===u));h=!0);}catch(g){v=!0,m=g}finally{try{!h&&f.return!=null&&f.return()}finally{if(v)throw m}}return d}}function _arrayWithHoles(c){if(Array.isArray(c))return c}function _objectSpread$b(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(c,h,f[h])})}return c}function _defineProperty$c(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 v=Object.getOwnPropertySymbols(c);for(h=0;h<v.length;h++)d=v[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,v;for(v=0;v<d.length;v++)h=d[v],!(u.indexOf(h)>=0)&&(f[h]=c[h]);return f}setTwoToneColor("#1890ff");var Icon$1=function(u,f){var d,h=_objectSpread$b({},u,f.attrs),v=h.class,p=h.icon,m=h.spin,g=h.rotate,y=h.tabindex,b=h.twoToneColor,gn=h.onClick,x=_objectWithoutProperties(h,_excluded),vn=(d={anticon:!0},_defineProperty$c(d,"anticon-".concat(p.name),!!p.name),_defineProperty$c(d,v,v),d),J=m===""||m||p.name==="loading"?"anticon-spin":"",j=y;j===void 0&&gn&&(j=-1,x.tabindex=j);var Fn=g?{msTransform:"rotate(".concat(g,"deg)"),transform:"rotate(".concat(g,"deg)")}:void 0,Bn=normalizeTwoToneColors(b),w=_slicedToArray(Bn,2),re=w[0],Pn=w[1];return vue.createVNode("span",_objectSpread$b({role:"img","aria-label":p.name},x,{onClick:gn,class:vn}),[vue.createVNode(VueIcon,{class:J,icon:p,primaryColor:re,secondaryColor:Pn,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$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$b(c,h,f[h])})}return c}function _defineProperty$b(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$a({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$a({},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$9(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}var CalendarOutlined=function(u,f){var d=_objectSpread$9({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$9({},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$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$9(c,h,f[h])})}return c}function _defineProperty$9(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$8({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$8({},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$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$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}var CloseOutlined=function(u,f){var d=_objectSpread$7({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$7({},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$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$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 DownOutlined=function(u,f){var d=_objectSpread$6({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$6({},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$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$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 LoadingOutlined=function(u,f){var d=_objectSpread$5({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$5({},d,{icon:LoadingOutlinedSvg}),null)};LoadingOutlined.displayName="LoadingOutlined",LoadingOutlined.inheritAttrs=!1;const LoadingOutlined$1=LoadingOutlined;var RedoOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 00-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z"}}]},name:"redo",theme:"outlined"};const RedoOutlinedSvg=RedoOutlined$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$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 RedoOutlined=function(u,f){var d=_objectSpread$4({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$4({},d,{icon:RedoOutlinedSvg}),null)};RedoOutlined.displayName="RedoOutlined",RedoOutlined.inheritAttrs=!1;const RedoOutlined$1=RedoOutlined;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$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$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 RightOutlined=function(u,f){var d=_objectSpread$3({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$3({},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$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$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 SwitcherOutlined=function(u,f){var d=_objectSpread$2({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$2({},d,{icon:SwitcherOutlinedSvg}),null)};SwitcherOutlined.displayName="SwitcherOutlined",SwitcherOutlined.inheritAttrs=!1;const SwitcherOutlined$1=SwitcherOutlined;var ZoomInOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"};const ZoomInOutlinedSvg=ZoomInOutlined$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$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 ZoomInOutlined=function(u,f){var d=_objectSpread$1({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread$1({},d,{icon:ZoomInOutlinedSvg}),null)};ZoomInOutlined.displayName="ZoomInOutlined",ZoomInOutlined.inheritAttrs=!1;const ZoomInOutlined$1=ZoomInOutlined;var ZoomOutOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"};const ZoomOutOutlinedSvg=ZoomOutOutlined$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$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 ZoomOutOutlined=function(u,f){var d=_objectSpread({},u,f.attrs);return vue.createVNode(AntdIcon,_objectSpread({},d,{icon:ZoomOutOutlinedSvg}),null)};ZoomOutOutlined.displayName="ZoomOutOutlined",ZoomOutOutlined.inheritAttrs=!1;const ZoomOutOutlined$1=ZoomOutOutlined,_sfc_main$F=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$r={class:"spin-wrapper"};function _sfc_render$K(c,u,f,d,h,v){const p=vue.resolveComponent("a-spin");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$r,[c.spinning?(vue.openBlock(),vue.createBlock(p,{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$F,[["render",_sfc_render$K]]),_sfc_main$E=vue.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:antDesignVue.Skeleton}});function _sfc_render$J(c,u,f,d,h,v){const p=vue.resolveComponent("a-skeleton");return vue.openBlock(),vue.createBlock(p,{active:"",loading:c.loading},{default:vue.withCtx(()=>[vue.renderSlot(c.$slots,"default")]),_:3},8,["loading"])}const Skeleton=_export_sfc$1(_sfc_main$E,[["render",_sfc_render$J]]);(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$D=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%"),v=vue.ref(0),p=vue.ref(!1),m=vue.ref(!1),g=vue.ref(0),y=vue.ref(0),b=vue.ref(0),gn=vue.ref(0),x=vue.ref(!1),vn=vue.ref(!1),J=vue.ref(0),j=vue.ref(null),Fn=vue.ref("200px"),Bn=vue.ref(!1),w=vue.ref(null),re=vue.ref(null),Pn=async()=>{await Rn(),v.value++},Rn=async()=>{c.vertical&&(p.value=!0),setInterval(()=>{if(d.value="0%",h.value="0%",w.value!==null&&re.value!==null&&w.value&&re.value)if(c.vertical&&"clientHeight"in w.value&&"clientHeight"in re.value){gn.value=w.value.clientHeight,b.value=re.value.clientHeight;const Hn=Math.ceil(b.value/gn.value);return f.value=isFinite(Hn)?Hn:0,p.value=!1,f.value}else if(!c.vertical&&"clientWidth"in w.value&&"clientWidth"in re.value){if(y.value=w.value.clientWidth,g.value=re.value.clientWidth,c.animateOnOverflowOnly)return y.value<g.value?(m.value=!0,u("onOverflowDetected")):(m.value=!1,u("onOverflowCleared")),0;const Hn=Math.ceil(g.value/y.value);return f.value=isFinite(Hn)?Hn: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&&Pn()}),vue.watch(g,async()=>{(c.clone||c.animateOnOverflowOnly)&&Pn()}),vue.watch(()=>c.pause,(Hn,Kn)=>{Hn!==Kn&&u(Hn?"onResume":"onPause")});const Vn=()=>{c.pauseOnHover&&(u("onPause"),x.value=!0)},Wn=()=>{c.pauseOnHover&&(u("onResume"),x.value=!1)},Gn=()=>{c.pauseOnClick&&(u("onPause"),vn.value=!0)},Zn=()=>{c.pauseOnClick&&(u("onResume"),vn.value=!1)},Xn=vue.computed(()=>c.pause||c.vertical&&p.value||c.animateOnOverflowOnly&&m.value?"paused":"running"),er=vue.computed(()=>c.pauseOnHover&&(x.value||vn.value)||!c.pauseOnHover&&Xn.value==="paused"?"paused":"running"),Jn=vue.computed(()=>c.pauseOnHover&&x.value||c.pauseOnClick&&vn.value||!c.pauseOnHover&&Xn.value==="paused"?"paused":"running"),ir=vue.computed(()=>{const Hn={"--duration":`${c.duration}s`,"--delay":`${c.delay}s`,"--direction":`${c.direction}`,"--pauseOnHover":`${er.value}`,"--pauseOnClick":`${Jn.value}`,"--pauseAnimation":`${Xn.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}`},Kn={"--orientation":"scrollX",orientation:"horizontal"};return c.vertical&&(Kn["--orientation"]="scrollY"),__spreadValues(__spreadValues({},Hn),Kn)}),or=vue.computed(()=>!!c.gradient),sr=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 Rn(),Pn()),Bn.value=!0};return vue.onMounted(async()=>{sr(),j.value=setInterval(()=>{J.value++,c.loop!==0&&J.value===c.loop&&(u("onComplete"),clearInterval(j.value)),u("onLoopComplete")},c.duration*1e3)}),vue.onBeforeUnmount(()=>{clearInterval(j.value)}),{ready:Bn,contentWidth:y,containerWidth:g,contentHeight:gn,containerHeight:b,loopCounter:J,loopInterval:j,mouseOverMarquee:x,mouseDownMarquee:vn,minWidth:d,minHeight:h,animateOnOverflowPause:m,marqueeContent:w,marqueeOverlayContainer:re,componentKey:v,showGradient:or,cloneAmount:f,ForcesUpdate:Pn,checkForClone:Rn,setupMarquee:sr,getCurrentStyle:ir,hoverStarted:Vn,hoverEnded:Wn,mouseDown:Gn,mouseUp:Zn}}}),_hoisted_1$q={class:"transparent-overlay",ref:"marqueeOverlayContainer","aria-hidden":!0},_hoisted_2$f={class:"marquee",ref:"marqueeContent"},_hoisted_3$8={key:1,"aria-hidden":!0,class:"marquee"};function _sfc_render$I(c,u,f,d,h,v){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]=(...p)=>c.hoverStarted&&c.hoverStarted(...p)),onMouseleave:u[1]||(u[1]=(...p)=>c.hoverEnded&&c.hoverEnded(...p)),onMousedown:u[2]||(u[2]=(...p)=>c.mouseDown&&c.mouseDown(...p)),onMouseup:u[3]||(u[3]=(...p)=>c.mouseUp&&c.mouseUp(...p))},[vue.createElementVNode("div",_hoisted_1$q,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$f,[vue.renderSlot(c.$slots,"default")],512),!c.animateOnOverflowOnly||c.animateOnOverflowOnly&&!c.animateOnOverflowPause?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$8,[vue.renderSlot(c.$slots,"default")])):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.cloneAmount,p=>(vue.openBlock(),vue.createElementBlock("div",{"aria-hidden":!0,class:"marquee cloned",key:p},[vue.renderSlot(c.$slots,"default")]))),128))],38)):vue.createCommentVNode("",!0)}var Vue3Marquee=_export_sfc(_sfc_main$D,[["render",_sfc_render$I]]);const _sfc_main$C=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$H(c,u,f,d,h,v){const p=vue.resolveComponent("Vue3Marquee");return c.isAutoScroll?(vue.openBlock(),vue.createBlock(p,{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$C,[["render",_sfc_render$H]]);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$1={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",indDetailIconFontSize:"16px"},transformToComponentProps=c=>{const u={};if(typeof c=="object"&&c!=null)for(const f in c){const d=c[f];let h=d==null?void 0:d.constructor;["width","height","requestHeaders"].includes(f)?h=[d==null?void 0:d.constructor,Object]:["left","top"].includes(f)&&(h=[d==null?void 0:d.constructor,Number]),u[f]={type:h,default:d}}return u},pageConfig={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal",pageFontFamily:"",textColor:"",jumpType:"page",jumpTime:null,jumpPage:"",jumpLink:"",requestList:[],isCompatible:!0,variableList:[],drillingMode:"pivotTable",pivotTableFontSize:"16px",drillDetailUrl:""},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=((ii=window==null?void 0:window.config)==null?void 0:ii.indicatorURL)||"";(gi=window==null?void 0:window.config)!=null&&gi.uploadPath;const BASE_URL=((Ai=window==null?void 0:window.config)==null?void 0:Ai.routerBaseURL)||"./",ERD_URL=((Ti=window==null?void 0:window.config)==null?void 0:Ti.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 v=O[O.length-1];if(!v)return[];const p=[];for(;v;){const m=p[0];m&&m.vnode===v?m.recurseCount++:p.push({vnode:v,recurseCount:0});const g=v.component&&v.component.parent;v=g&&g.vnode}return p}();if(d)$(d,f,11,[c+u.join(""),f&&f.proxy,h.map(({vnode:v})=>`at <${oe(f,v.type)}>`).join(`
59
59
  `),h]);else{const v=[`[Vue warn]: ${c}`,...u];h.length&&v.push(`
60
60
  `,...function(p){const m=[];return p.forEach((g,y)=>{m.push(...y===0?[]:[`
61
- `],...function({vnode:b,recurseCount:gn}){const x=gn>0?`... (${gn} recursive calls)`:"",vn=!!b.component&&b.component.parent==null,J=` at <${oe(b.component,b.type,vn)}`,j=">"+x;return b.props?[J,...L(b.props),j]:[J+j]}(g))}),m}(h)),console.warn(...v)}}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(v){(function(p,m,g,y=!0){const b=m?m.vnode:null;if(m){let gn=m.parent;const x=m.proxy,vn=process.env.NODE_ENV!=="production"?N[g]:g;for(;gn;){const j=gn.ec;if(j){for(let Fn=0;Fn<j.length;Fn++)if(j[Fn](p,x,vn)===!1)return}gn=gn.parent}const J=m.appContext.config.errorHandler;if(J)return void $(J,null,10,[p,x,vn])}(function(gn,x,vn,J=!0){if(process.env.NODE_ENV!=="production"){const Fn=N[x];if(vn&&(j=vn,O.push(j)),C("Unhandled error"+(Fn?` during execution of ${Fn}`:"")),vn&&O.pop(),J)throw gn;console.error(gn)}else console.error(gn);var j})(p,g,b,y)})(v,u,f)}return h}let k=!1,D=!1;const M=[];let E=0;const I=[];let V=null,F=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,v=M[h],p=P(v);p<u||p===u&&v.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,V)return void V.push(...d);for(V=d,process.env.NODE_ENV!=="production"&&(f=f||new Map),V.sort((h,v)=>P(h)-P(v)),F=0;F<V.length;F++)process.env.NODE_ENV!=="production"&&W(f,V[F])||V[F]();V=null,F=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 v of d){const p=K(v.type);H.has(p)||(p!==f.initialDef&&q(p,u),H.add(p)),v.appContext.propsCache.delete(v.type),v.appContext.emitsCache.delete(v.type),v.appContext.optionsCache.delete(v.type),v.ceReload?(H.add(p),v.ceReload(u.styles),H.delete(p)):v.parent?R(v.parent.update):v.appContext.reload?v.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}h=()=>{for(const v of d)H.delete(K(v.type))},r(h)?I.push(...h):V&&V.includes(h,h.allowRecurse?F+1:F)||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=v=>{for(const p in v)if(v[p]===u)return p};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",v="minute",p="hour",m="day",g="week",y="month",b="quarter",gn="year",x="date",vn="Invalid Date",J=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,j=/\[([^\]]+)]|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(Jn){var ir=["th","st","nd","rd"],or=Jn%100;return"["+Jn+(ir[(or-20)%10]||ir[or]||ir[0])+"]"}},Bn=function(Jn,ir,or){var sr=String(Jn);return!sr||sr.length>=ir?Jn:""+Array(ir+1-sr.length).join(or)+Jn},w={s:Bn,z:function(Jn){var ir=-Jn.utcOffset(),or=Math.abs(ir),sr=Math.floor(or/60),Hn=or%60;return(ir<=0?"+":"-")+Bn(sr,2,"0")+":"+Bn(Hn,2,"0")},m:function Jn(ir,or){if(ir.date()<or.date())return-Jn(or,ir);var sr=12*(or.year()-ir.year())+(or.month()-ir.month()),Hn=ir.clone().add(sr,y),Kn=or-Hn<0,zn=ir.clone().add(sr+(Kn?-1:1),y);return+(-(sr+(or-Hn)/(Kn?Hn-zn:zn-Hn))||0)},a:function(Jn){return Jn<0?Math.ceil(Jn)||0:Math.floor(Jn)},p:function(Jn){return{M:y,y:gn,w:g,d:m,D:x,h:p,m:v,s:h,ms:d,Q:b}[Jn]||String(Jn||"").toLowerCase().replace(/s$/,"")},u:function(Jn){return Jn===void 0}},re="en",Pn={};Pn[re]=Fn;var Rn="$isDayjsObject",Vn=function(Jn){return Jn instanceof Xn||!(!Jn||!Jn[Rn])},Wn=function Jn(ir,or,sr){var Hn;if(!ir)return re;if(typeof ir=="string"){var Kn=ir.toLowerCase();Pn[Kn]&&(Hn=Kn),or&&(Pn[Kn]=or,Hn=Kn);var zn=ir.split("-");if(!Hn&&zn.length>1)return Jn(zn[0])}else{var qn=ir.name;Pn[qn]=ir,Hn=qn}return!sr&&Hn&&(re=Hn),Hn||!sr&&re},Gn=function(Jn,ir){if(Vn(Jn))return Jn.clone();var or=typeof ir=="object"?ir:{};return or.date=Jn,or.args=arguments,new Xn(or)},Zn=w;Zn.l=Wn,Zn.i=Vn,Zn.w=function(Jn,ir){return Gn(Jn,{locale:ir.$L,utc:ir.$u,x:ir.$x,$offset:ir.$offset})};var Xn=function(){function Jn(or){this.$L=Wn(or.locale,null,!0),this.parse(or),this.$x=this.$x||or.x||{},this[Rn]=!0}var ir=Jn.prototype;return ir.parse=function(or){this.$d=function(sr){var Hn=sr.date,Kn=sr.utc;if(Hn===null)return new Date(NaN);if(Zn.u(Hn))return new Date;if(Hn instanceof Date)return new Date(Hn);if(typeof Hn=="string"&&!/Z$/i.test(Hn)){var zn=Hn.match(J);if(zn){var qn=zn[2]-1||0,tr=(zn[7]||"0").substring(0,3);return Kn?new Date(Date.UTC(zn[1],qn,zn[3]||1,zn[4]||0,zn[5]||0,zn[6]||0,tr)):new Date(zn[1],qn,zn[3]||1,zn[4]||0,zn[5]||0,zn[6]||0,tr)}}return new Date(Hn)}(or),this.init()},ir.init=function(){var or=this.$d;this.$y=or.getFullYear(),this.$M=or.getMonth(),this.$D=or.getDate(),this.$W=or.getDay(),this.$H=or.getHours(),this.$m=or.getMinutes(),this.$s=or.getSeconds(),this.$ms=or.getMilliseconds()},ir.$utils=function(){return Zn},ir.isValid=function(){return this.$d.toString()!==vn},ir.isSame=function(or,sr){var Hn=Gn(or);return this.startOf(sr)<=Hn&&Hn<=this.endOf(sr)},ir.isAfter=function(or,sr){return Gn(or)<this.startOf(sr)},ir.isBefore=function(or,sr){return this.endOf(sr)<Gn(or)},ir.$g=function(or,sr,Hn){return Zn.u(or)?this[sr]:this.set(Hn,or)},ir.unix=function(){return Math.floor(this.valueOf()/1e3)},ir.valueOf=function(){return this.$d.getTime()},ir.startOf=function(or,sr){var Hn=this,Kn=!!Zn.u(sr)||sr,zn=Zn.p(or),qn=function(Yn,ar){var ur=Zn.w(Hn.$u?Date.UTC(Hn.$y,ar,Yn):new Date(Hn.$y,ar,Yn),Hn);return Kn?ur:ur.endOf(m)},tr=function(Yn,ar){return Zn.w(Hn.toDate()[Yn].apply(Hn.toDate("s"),(Kn?[0,0,0,0]:[23,59,59,999]).slice(ar)),Hn)},Un=this.$W,nr=this.$M,cr=this.$D,Qn="set"+(this.$u?"UTC":"");switch(zn){case gn:return Kn?qn(1,0):qn(31,11);case y:return Kn?qn(1,nr):qn(0,nr+1);case g:var fr=this.$locale().weekStart||0,vr=(Un<fr?Un+7:Un)-fr;return qn(Kn?cr-vr:cr+(6-vr),nr);case m:case x:return tr(Qn+"Hours",0);case p:return tr(Qn+"Minutes",1);case v:return tr(Qn+"Seconds",2);case h:return tr(Qn+"Milliseconds",3);default:return this.clone()}},ir.endOf=function(or){return this.startOf(or,!1)},ir.$set=function(or,sr){var Hn,Kn=Zn.p(or),zn="set"+(this.$u?"UTC":""),qn=(Hn={},Hn[m]=zn+"Date",Hn[x]=zn+"Date",Hn[y]=zn+"Month",Hn[gn]=zn+"FullYear",Hn[p]=zn+"Hours",Hn[v]=zn+"Minutes",Hn[h]=zn+"Seconds",Hn[d]=zn+"Milliseconds",Hn)[Kn],tr=Kn===m?this.$D+(sr-this.$W):sr;if(Kn===y||Kn===gn){var Un=this.clone().set(x,1);Un.$d[qn](tr),Un.init(),this.$d=Un.set(x,Math.min(this.$D,Un.daysInMonth())).$d}else qn&&this.$d[qn](tr);return this.init(),this},ir.set=function(or,sr){return this.clone().$set(or,sr)},ir.get=function(or){return this[Zn.p(or)]()},ir.add=function(or,sr){var Hn,Kn=this;or=Number(or);var zn=Zn.p(sr),qn=function(nr){var cr=Gn(Kn);return Zn.w(cr.date(cr.date()+Math.round(nr*or)),Kn)};if(zn===y)return this.set(y,this.$M+or);if(zn===gn)return this.set(gn,this.$y+or);if(zn===m)return qn(1);if(zn===g)return qn(7);var tr=(Hn={},Hn[v]=u,Hn[p]=f,Hn[h]=c,Hn)[zn]||1,Un=this.$d.getTime()+or*tr;return Zn.w(Un,this)},ir.subtract=function(or,sr){return this.add(-1*or,sr)},ir.format=function(or){var sr=this,Hn=this.$locale();if(!this.isValid())return Hn.invalidDate||vn;var Kn=or||"YYYY-MM-DDTHH:mm:ssZ",zn=Zn.z(this),qn=this.$H,tr=this.$m,Un=this.$M,nr=Hn.weekdays,cr=Hn.months,Qn=Hn.meridiem,fr=function(ar,ur,mr,dr){return ar&&(ar[ur]||ar(sr,Kn))||mr[ur].slice(0,dr)},vr=function(ar){return Zn.s(qn%12||12,ar,"0")},Yn=Qn||function(ar,ur,mr){var dr=ar<12?"AM":"PM";return mr?dr.toLowerCase():dr};return Kn.replace(j,function(ar,ur){return ur||function(mr){switch(mr){case"YY":return String(sr.$y).slice(-2);case"YYYY":return Zn.s(sr.$y,4,"0");case"M":return Un+1;case"MM":return Zn.s(Un+1,2,"0");case"MMM":return fr(Hn.monthsShort,Un,cr,3);case"MMMM":return fr(cr,Un);case"D":return sr.$D;case"DD":return Zn.s(sr.$D,2,"0");case"d":return String(sr.$W);case"dd":return fr(Hn.weekdaysMin,sr.$W,nr,2);case"ddd":return fr(Hn.weekdaysShort,sr.$W,nr,3);case"dddd":return nr[sr.$W];case"H":return String(qn);case"HH":return Zn.s(qn,2,"0");case"h":return vr(1);case"hh":return vr(2);case"a":return Yn(qn,tr,!0);case"A":return Yn(qn,tr,!1);case"m":return String(tr);case"mm":return Zn.s(tr,2,"0");case"s":return String(sr.$s);case"ss":return Zn.s(sr.$s,2,"0");case"SSS":return Zn.s(sr.$ms,3,"0");case"Z":return zn}return null}(ar)||zn.replace(":","")})},ir.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ir.diff=function(or,sr,Hn){var Kn,zn=this,qn=Zn.p(sr),tr=Gn(or),Un=(tr.utcOffset()-this.utcOffset())*u,nr=this-tr,cr=function(){return Zn.m(zn,tr)};switch(qn){case gn:Kn=cr()/12;break;case y:Kn=cr();break;case b:Kn=cr()/3;break;case g:Kn=(nr-Un)/6048e5;break;case m:Kn=(nr-Un)/864e5;break;case p:Kn=nr/f;break;case v:Kn=nr/u;break;case h:Kn=nr/c;break;default:Kn=nr}return Hn?Kn:Zn.a(Kn)},ir.daysInMonth=function(){return this.endOf(y).$D},ir.$locale=function(){return Pn[this.$L]},ir.locale=function(or,sr){if(!or)return this.$L;var Hn=this.clone(),Kn=Wn(or,sr,!0);return Kn&&(Hn.$L=Kn),Hn},ir.clone=function(){return Zn.w(this.$d,this)},ir.toDate=function(){return new Date(this.valueOf())},ir.toJSON=function(){return this.isValid()?this.toISOString():null},ir.toISOString=function(){return this.$d.toISOString()},ir.toString=function(){return this.$d.toUTCString()},Jn}(),er=Xn.prototype;return Gn.prototype=er,[["$ms",d],["$s",h],["$m",v],["$H",p],["$W",m],["$M",y],["$y",gn],["$D",x]].forEach(function(Jn){er[Jn[1]]=function(ir){return this.$g(ir,Jn[0],Jn[1])}}),Gn.extend=function(Jn,ir){return Jn.$i||(Jn(ir,Xn,Gn),Jn.$i=!0),Gn},Gn.locale=Wn,Gn.isDayjs=Vn,Gn.unix=function(Jn){return Gn(1e3*Jn)},Gn.en=Pn[re],Gn.Ls=Pn,Gn.p={},Gn}()),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 v=me.call(u);return h&&(f?u[be]=d:delete u[be]),v}(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 Ve(c,u){var f=function(d,h){return d==null?void 0:d[h]}(c,u);return Ie(f)?f:void 0}var Fe=Ve(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=Ve(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,v,p){v=="__proto__"&&Ue?Ue(h,v,{configurable:!0,enumerable:!0,value:p,writable:!0}):h[v]=p}(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),v=!f&&!d&&!h&&ft(c),p=f||d||h||v,m=p?function(b,gn){for(var x=-1,vn=Array(b);++x<b;)vn[x]=gn(x);return vn}(c.length,String):[],g=m.length;for(var y in c)!pt.call(c,y)||p&&(y=="length"||h&&(y=="offset"||y=="parent")||v&&(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=Ve(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=Ve(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,v=0,p=[];++d<h;){var m=u[d];f(m,d,u)&&(p[v++]=m)}return p}(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(v,p){for(var m=-1,g=p.length,y=v.length;++m<g;)v[y+m]=p[m];return v}(h,d(u))}(c,gt,Dt)}var Et=Ve(fe,"DataView"),It=Ve(fe,"Promise"),Vt=Ve(fe,"Set"),Ft="[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(Vt),Bt=Te(Fe),Kt=xe;(Et&&Kt(new Et(new ArrayBuffer(1)))!=Pt||Ot&&Kt(new Ot)!=Ft||It&&Kt(It.resolve())!=zt||Vt&&Kt(new Vt)!=Rt||Fe&&Kt(new Fe)!=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 Ft;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,v,p,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((p=c).buffer),new p.constructor(m,p.byteOffset,p.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 b=Jt(y.buffer);return new y.constructor(b,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(v=new(h=c).constructor(h.source,Xt.exec(h))).lastIndex=h.lastIndex,v;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,v){var p;if(p!==void 0)return p;if(!Ae(c))return c;var m=Se(c);if(m)p=function(x){var vn=x.length,J=new x.constructor(vn);return vn&&typeof x[0]=="string"&&qt.call(x,"index")&&(J.index=x.index,J.input=x.input),J}(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)p=y?{}:function(x){return typeof x.constructor!="function"||qe(x)?{}:Re(Tt(x))}(c);else{if(!un[g])return h?c:{};p=tn(c,g)}}v||(v=new Nt);var b=v.get(c);if(b)return b;v.set(c,p),an(c)?c.forEach(function(x){p.add(dn(x,u,f,x,c,v))}):on(c)&&c.forEach(function(x,vn){p.set(vn,dn(x,u,f,vn,c,v))});var gn=m?void 0:Mt(c);return function(x,vn){for(var J=-1,j=x==null?0:x.length;++J<j&&vn(x[J],J,x)!==!1;);}(gn||c,function(x,vn){gn&&(x=c[vn=x]),He(p,vn,dn(x,u,f,vn,c,v))}),p}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 v=`function (${d}){return ${c}}`;let p;try{p=Function(`"use strict";return (${v})`)()(...h)}catch{return c}return p},hn=(c="",{textData:u,codeData:f}={},{useNewline:d=!1,useSpace:h=!1}={})=>{const v=window.config||{},p=Object.assign(Object.assign({},v),u),m=String(c||"").match(/\{(.+?)\}/g);if(m==null||m.length===0)return c;for(let g=0;g<m.length;g++){const y=m[g];let b=y.slice(1,-1).trim();const gn=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,x=b.match(gn);for(let vn=0;vn<x.length;vn++){const J=x[vn],j=p[J];j!=null&&typeof j!="function"&&(b=b.replace(J,j))}(/\(.*\)/g.test(b)||/[+/\\*]/g.test(b))&&(b=pn(b,f)),c=c.replace(y,b)}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:v=""}=c;if(h===5&&(f!=null&&f.length)&&(d!=null&&d.length)&&v){const p=f[0].split("-");(p==null?void 0:p.length)>1&&p[0]==="rangeValue"&&(c.calcWays=((m,g={})=>{const{around:y,unit:b,id:gn}=m;let x="";const{pageMode:vn="",componentList:J=[]}=(g==null?void 0:g.graphicConfig)||{};let j=null,Fn=null;if(vn==="design"){const Bn=J==null?void 0:J.find(Gn=>Gn.id===gn);if(!Bn)return[];const{interval:w,intervalUnit:re,startTime:Pn,endTime:Rn,operate:Vn,useCurrentTime:Wn}=Bn||{};if(Wn&&(j=ce().subtract(w,re),Fn=ce()),Pn&&(j=ce(Pn)),Rn&&(Fn=ce(Rn)),Vn){const{type:Gn,value:Zn,mode:Xn}=Vn;switch(Gn){case"add":j=j&&j.add(Zn,Xn),Fn=Fn&&Fn.add(Zn,Xn);break;case"minus":j=j&&j.subtract(Zn,Xn),Fn=Fn&&Fn.subtract(Zn,Xn)}}}else{const Bn=An(gn)||{};_(Bn.startTime)&&(j=ce(_(Bn.startTime))),_(Bn.endTime)&&(Fn=ce(_(Bn.endTime)))}return j&&Fn&&(x=`${y==="before"?"-":""}${Fn.diff(j,b.toLowerCase())+1}`),x?[x]:[]})({around:p[1],unit:d[0],id:v})),delete c.radioValue}if(mn(c,"dataType")){if(c.fieldType==="DATE"&&(c.label=c.fieldName),c.dataType==="component")if(c.fieldValue==="PARENT"){let p=c.modelKey;p&&c.prop&&(p+=`-${c.prop}`),c.fieldValue="${"+p+"}"}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(v=>v.join&&v.conditions);d.conditions.forEach((v,p)=>{_n(v,u);const m={};if(p<d.conditions.length-1&&(m.join=d.join),h)f.push(Object.assign(Object.assign({},m),v));else if(v.join&&v.conditions){const g=u?"sqlConditions":"conditions";f.push(Object.assign({[g]:jn([v],u)},m))}else f.push(Object.assign(Object.assign({},m),v))})}else _n(d,u),f.push(d)}),f},On=(c={},u)=>{if(c!=null&&c.sortCpnts&&u){const Rn=kn(c);Rn&&(u.sort=Rn)}const{label:f,name:d,location:h,show:v,indexCode:p,indexCodeNum:m,calcType:g="COLUMN",builtInFormula:y,builtInValueSource:b,builtInCalcWay:gn,formula:x,conditions:vn,aggregate:J,distinct:j,dimByCount:Fn,dataTo:Bn,sort:w}=c;let re;if(vn&&(re=jn(vn)),g==="COMPONENT"){const Rn={};return Nn(Rn,b),{label:f.trim(),columnName:d,show:v,calcType:g,componentAlias:gn,componentValue:Rn.fieldValue||null}}const Pn={label:f.trim(),columnName:d,location:h,show:v,calcType:Bn==="1"?"VIEW":g,hrpIndexCode:p,hrpIndexCodeNum:m,aggregate:J,builtInFormula:y,builtInValueSource:b,formula:x,conditions:re};if(w&&(Pn.sort={columnName:d,label:Pn.label,order:w,type:"NORMAL"}),y!=="DATE_OFFSET")return d==="the_count"&&(Pn.calcType="AGGREGATE",Pn.distinct=!!j,Pn.typeGuid=Fn),Object.assign(Object.assign({},Pn),{builtInCalcWay:gn});{const Rn=gn.split("-");if((Rn==null?void 0:Rn.length)===3){let Vn=Rn[0];return Rn[2]==="before"&&Rn[0]!=="0"&&(Vn=`-${Rn[0]}`),Object.assign(Object.assign({},Pn),{calcWays:[Vn],dateCalcTypes:[Rn[1]]})}}},Cn=c=>{if(!c)return[];const u=fn((c==null?void 0:c.controlList)||[]).filter(j=>j.conditionKey!=="parentCode"),{classificationList:f=[],rowHeaderList:d=[],dimensionList:h=[],seriesList:v=[],leftAxisList:p=[],rightAxisList:m=[],queryColumnList:g=[],indexLibColumns:y=[],indicators:b=[]}=c;Tn(u);const gn=[...f,...d,...h,...v,...p,...m,...g,...y,...b],x=[];for(const j of gn){const Fn=bn((j==null?void 0:j.conditions)||[]);if(Fn!=null&&Fn.length){const Bn=Fn.filter(w=>(w==null?void 0:w.dataType)==="component").map(w=>{const re={};return w!=null&&w.dateFormat&&(re.format=w.dateFormat),w.fieldValue==="PARENT"&&(re.id="PARENT",re.keyName=w.modelKey,re.modelKey=w.modelKey,re.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},re)});if(Bn!=null&&Bn.length)for(const w of Bn)x.find(re=>re.keyName===w.keyName)||x.push(w)}}const vn=x.length,J=u;for(let j=0;j<vn;j++){const Fn=x[j];if((Fn==null?void 0:Fn.conditionKey)==="parentCode")continue;const{id:Bn,keyName:w,prop:re,format:Pn,modelKey:Rn,dataType:Vn="component",customValue:Wn}=Fn,Gn=Ln(Fn);Nn(Gn,Bn,{prop:re,dateFormat:Pn,modelKey:Rn,keyName:w}),Vn===""&&(Gn.fieldValue=Wn||""),J.push(Gn)}for(let j=J.length-1;j>=0;j--){const Fn=J[j];Fn.globalCondition||bn(J).find(Bn=>Bn.alias===Fn.alias&&Bn.globalCondition)&&J.splice(j,1)}return J};function Ln(c){const{id:u,keyName:f,conditionLabel:d,conditionKey:h,conditionValueType:v,prop:p,rule:m="NONE",notGlobal:g=!1,indexCode:y,typeGuid:b,indexCodeNum:gn,dataType:x="component"}=c;let vn=f||u;vn&&p&&(vn+=`-${p}`);let J=m;return J==="NONE"&&(J=["startTime","endTime"].includes(p)?p==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":f!=null&&f.includes("startTime")?p==="GREATER_EQUAL":f!=null&&f.includes("endTime")?p==="LESS_EQUAL":"EQUAL"),u==="PARENT"&&(vn=c.modelKey,vn&&p&&(vn+=`-${p}`),J=m),{rule:J,label:d,fieldName:h,fieldValue:"",valueType:v,alias:vn,globalCondition:!g,indexCode:y,typeGuid:b,indexCodeNum:gn,dataType:x}}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:v,format:p,dataType:m="component",customValue:g}=u,y=Ln(u);Nn(y,f,{prop:h,dateFormat:p,modelKey:v,keyName:d}),m===""&&(y.fieldValue=g||"");for(const b in y)u[b]=y[b];for(const b of Sn)delete u[b]}}function Nn(c,u,f){const{prop:d="",dateFormat:h="",modelKey:v="",keyName:p="",operateValue:m,operateMode:g,operateType:y}=f||{},b=v||p;if(u==="PARENT"&&b&&d){const w=window.config.record;let re=d,Pn=h;const Rn=d.match(/\{(.+?)\}/g);if(Rn!=null&&Rn.length){const Vn=Rn[0].slice(1,-1).trim();re=d.replace(Rn[0],""),Pn=Vn,c.dateFormat=Pn}if(w&&w[b]){const Vn=_(w[b][re]);ce.isDayjs(Vn)?c.fieldValue=Vn.format(Pn||"YYYY-MM-DD"):c.fieldValue=Vn}return}const gn=An(u)||{},{value:x,format:vn="YYYY-MM-DD",type:J="",useCurrentTime:j,RECORD:Fn}=gn||{},Bn=h||vn;if(yn(J,"date")){let w;if(w=j?x?_(x):ce():_(x),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(J,"rangepicker")){let w=d;if(!d){const Pn=p&&p.split("-");Pn!=null&&Pn.length&&(w=Pn[Pn.length-1])}if(!w)return;let re=null;if(_(gn[w])&&(re=ce(_(gn[w]))),m&&g&&y){if(m==="rangeValue"){if(gn.startTime&&gn.endTime){const Pn=_(gn.endTime).diff(_(gn.startTime),g)+1;switch(y){case"add":re=re&&re.add(Pn,g);break;case"minus":re=re&&re.subtract(Pn,g)}}}else if(!isNaN(+m))switch(y){case"add":re=re&&re.add(m,g);break;case"minus":re=re&&re.subtract(m,g)}}if(re&&(c.fieldValue=re==null?void 0:re.format(Bn)),w==="rangeValue"&&gn.startTime&&gn.endTime){const Pn=function(Rn){const Vn=Rn.split("-");let Wn="";if(Vn!=null&&Vn.length)switch(Vn[Vn.length-1]){case"YYYY":Wn="year";break;case"MM":Wn="month";break;case"DD":Wn="day"}return Wn}(Bn);Pn&&(c.fieldValue=_(gn.endTime).diff(_(gn.startTime),Pn)+1)}c.dateFormat=Bn}else yn(J,xn)?c.fieldValue=v&&Fn?Fn[v]:!v&&Fn?Fn.value:_(x):yn(J,"select")&&Array.isArray(_(x))?c.fieldValue=_(x).join(","):c.fieldValue=_(x)}const $n=c=>{var u;if(c){const f=Array.isArray(c)?fn(c):[fn(c)];let d="",h=[];const v=[],p=[],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,v.push(g.label),(u=g.columnName)===null||u===void 0?void 0:u.includes("_ecanrepeat_")){const y=g.columnName.split("_ecanrepeat_");p.push(y[0])}else p.push(g.columnName);m.push(g.order)}return d!=="CUSTOM"&&(v==null?void 0:v.length)>1&&(d="COMBINATION"),d==="CUSTOM"?{label:v.join(","),columnName:p.join(","),type:d,customOrderColumns:h}:{label:v.join(","),columnName:p.join(","),order:m.join(","),type:d}}return c},kn=c=>{const{sortCpnts:u=[]}=c;let f,d="";for(const h of u){const v=An(h)||{},{type:p,RECORD:m}=v;if(yn(p,"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,v,p,m,g,y;const{graphicConfig:b,type:gn,globalModel:x,isGroupTable:vn=!1}=c;x&&(wn=x);const J=yn(gn,"pivottable");let j,{source:Fn,dataViewId:Bn,plugin:w="1",layer:re,chartType:Pn,classificationList:Rn=[],rowHeaderList:Vn=[],dimensionList:Wn=[],seriesList:Gn=[],leftAxisList:Zn=[],rightAxisList:Xn=[],queryColumnList:er=[],indexLibColumns:Jn=[],indicators:ir=[],controlList:or=[],formFields:sr={},variableList:Hn=[],variableConditions:Kn=[],dataSourceId:zn="",idxLibMode:qn,preview:tr=!1,edvDataSetId:Un,compositeIndicator:nr}=b||{},cr=[];if((b==null?void 0:b.pageMode)==="design"?(cr=((f=b.sqlConditions)!==null&&f!==void 0?f:[]).map(yr=>{const pr={};if(mn(yr,"globalCondition")||yr.join||(pr.globalCondition=!0),!yr.join){const br=yr.rule||"EQUAL";pr.rule=br==="NONE"?"EQUAL":br}return Object.assign(Object.assign({},yr),pr)}),Kn!=null&&Kn.length&&(cr=cr.concat(Kn))):(cr=Cn(b),Hn!=null&&Hn.length&&(cr=cr.concat(function(yr){const pr=[];if(yr!=null&&yr.length){for(const br of yr)if(br.variableName){const kr={variateName:br.variableName,globalCondition:!1,valueType:br.variableType,alias:br.keyName||""};Nn(kr,br.id,{dateFormat:br.format,prop:br.dateTypeValue,keyName:br.keyName,operateType:br.operateType,operateMode:br.operateMode,operateValue:br.operateValue}),br.dataType===""&&(kr.fieldValue=br.variableValue),br.format&&(kr.dateFormat=br.format),br.label&&(kr.label=br.label),pr.push(kr)}}return pr}(Hn)))),cr==null?void 0:cr.length){const yr=cr.filter(br=>br.globalCondition),pr=cr.filter(br=>!br.globalCondition);(yr==null?void 0:yr.length)>1&&(cr=[{join:"&&",conditions:yr},...pr])}cr!=null&&cr.length&&(cr=jn(cr,"1")),re==null&&(re=yn(gn,["table","card"])||yn(gn,["list","circulate"])&&(Rn==null?void 0:Rn.length)>1?"1":yn(gn,["select","checkbox","radio"])?"3":yn(gn,["indexPanel"])?"4":"2"),yn(gn,["indexPanel"])&&(w="3");const Qn=[];let fr,vr="";if(Array.isArray(Rn)&&Rn.length>0&&(!["ecanList","ecanCirculate"].includes(gn)||(Rn==null?void 0:Rn.length)===1)){const yr=Rn.length;for(let pr=0;pr<yr;pr++){const br=Rn[pr]||{},{label:kr="",name:wr="",show:Er=!1,sort:Pr,customGroup:Dr,conditions:qr,dateFormat:Rr,typeGuid:Fr="",truncations:jr=[]}=br;if(Er||yr===1){vr=Fr,j={label:kr.trim(),columnName:wr,show:Er,sort:kn(br)||$n(Pr)||Pr,customGroup:Dr,conditions:jn(qr),typeGuid:Fr},Rr&&(j.dateFormat=Rr),wr!=="the_date"||j.dateFormat||(j.dateFormat="YYYY-MM-DD");const Nr={};if(Array.isArray(jr)&&jr.length>0){const Ur=jr.length;for(let Qr=0;Qr<Ur;Qr++){const Wr=jr[Qr]||{},{rule:ri="",num:ei=0,name:Tr=""}=Wr;ri&&ei&&(Nr.num=ei,Nr.rule=ri,Tr&&(Nr.otherGroupName=Tr))}}if(!((d=Object.keys(Nr))===null||d===void 0)&&d.length&&(j.truncation=Nr),!yn(gn,["scatter","valueline"]))break;Qn.push(j)}}}if(Array.isArray(Gn)&&Gn.length>0){const yr=Gn.length;for(let pr=0;pr<yr;pr++){const br=Gn[pr]||{},{label:kr="",name:wr="",show:Er=!1,sort:Pr,customGroup:Dr,conditions:qr,typeGuid:Rr,dateFormat:Fr=""}=br;if(Er||yr===1){fr={label:kr.trim(),columnName:wr,show:Er,sort:$n(Pr),customGroup:Dr,conditions:jn(qr),typeGuid:Rr},Fr?fr.dateFormat=Fr:wr==="the_date"&&(fr.dateFormat="YYYY-MM-DD");break}}}const Yn=[];Zn==null||Zn.forEach(yr=>{yr.location="LEFT",Yn.push(On(yr,j))}),Xn==null||Xn.forEach(yr=>{yr.location="RIGHT",Yn.push(On(yr,j))});let ar=ir;u!=null&&u.pivotTableCal&&(ar=((h=u.pivotTableCal)===null||h===void 0?void 0:h.indicators)||[]),ar==null||ar.forEach(yr=>{yr.location="LEFT",Yn.push(On(yr,j))});const ur=[];["ecanList","ecanCirculate"].includes(gn)&&(Rn==null?void 0:Rn.length)>1&&(er=Rn),u!=null&&u.pivotTableCal&&(er=((v=u.pivotTableCal)===null||v===void 0?void 0:v.dimensions)||[]),er==null||er.forEach(yr=>{const{label:pr,name:br,location:kr,show:wr,indexCode:Er,sort:Pr,typeGuid:Dr,indexCodeNum:qr,dateFormat:Rr,conditions:Fr}=yr;let jr=$n(Pr);if(u.sort){const{field:Ur,order:Qr}=u.sort;let Wr=Yn.find(ri=>ri.label===Ur);Wr||pr!==Ur||(Wr=yr),Wr&&(jr={columnName:Wr.columnName,label:u.sort.field,order:Qr.toUpperCase(),type:"NORMAL"})}const Nr={label:pr,columnName:br,location:kr,show:wr,sort:jr,calcType:"COLUMN",hrpIndexCode:Er,hrpIndexCodeNum:qr,conditions:jn(Fr),typeGuid:Dr};Rr&&(Nr.dateFormat=Rr),br!=="the_date"||Nr.dateFormat||(Nr.dateFormat="YYYY-MM-DD"),ur.push(Nr)});const mr=[];["ecanTable"].includes(gn)&&b.isIndexSet&&Jn.forEach(yr=>{const pr={label:yr.label,calcType:yr.calcType,show:yr.show};yr.formula&&(pr.formula=yr.formula),mr.push(pr)});let dr=[],gr=[];if(Array.isArray(Vn)&&Vn.length>0?gr=Vn:Array.isArray(Wn)&&Wn.length>0&&(gr=Wn),gr==null?void 0:gr.length){const yr=gr.length;for(let pr=0;pr<yr;pr++){const br=gr[pr]||{},{label:kr="",name:wr="",show:Er=!1,sort:Pr,customGroup:Dr,conditions:qr,truncations:Rr,typeGuid:Fr="",dateFormat:jr}=br;let Nr=$n(Pr);if(u.sort){const{field:Wr,order:ri}=u.sort;let ei=Yn.find(Tr=>Tr.label===Wr);ei||br.label!==Wr||(ei=br),ei&&(Nr={columnName:ei.columnName,label:u.sort.field,order:ri.toUpperCase(),type:"NORMAL"})}const Ur={label:kr.trim(),columnName:wr,show:Er,sort:Nr,customGroup:Dr,conditions:jn(qr),typeGuid:Fr};jr&&(Ur.dateFormat=jr),wr!=="the_date"||Ur.dateFormat||(Ur.dateFormat="YYYY-MM-DD");const Qr={};if(Array.isArray(Rr)&&Rr.length>0){const Wr=Rr.length;for(let ri=0;ri<Wr;ri++){const ei=Rr[ri]||{},{rule:Tr="",num:Br=0,name:Lr=""}=ei;Tr&&Br&&(Qr.num=Br,Qr.rule=Tr,Lr&&(Qr.otherGroupName=Lr))}}!((p=Object.keys(Qr))===null||p===void 0)&&p.length&&(Ur.truncation=Qr),dr.push(Ur)}}let lr,hr=[];const xr=[];if(u!=null&&u.pivotTableCal){let yr=[];const{calc:pr=[],filter:br=[],truncations:kr=[],sorts:wr=[],aggregateMethod:Er=[],rowDimensionKeys:Pr=[],colDimensionKeys:Dr=[]}=u.pivotTableCal;if(Yn.push(...pr),br==null?void 0:br.length){const qr=function Rr(Fr){const jr=[];for(const Nr of Fr)Nr.conditions?jr.push(...Rr(Nr.conditions)):Nr.conditionKey==="the_date"&&jr.push(Nr);return jr}(or);for(const Rr of br){const{type:Fr}=Rr,jr=e(Rr,["type"]);Fr==="indicators"?yr=Yn:Fr==="dimension"&&(yr=ur);const Nr=yr.find(Ur=>Ur.columnName===Rr.fieldName&&Ur.label===Rr.label);if(Nr){if(Fr==="indicators")Nr.filter={rule:jr.rule,fieldValue:jr.fieldValue};else if(Fr==="dimension"){let Ur=!0;jr.fieldName==="the_date"&&(qr==null?void 0:qr.length)===2&&(Ur=!1,xr.push(jr)),Ur&&(Nr.conditions||(Nr.conditions=[]),Nr.conditions.push(jr))}}}}if(kr!=null&&kr.length)for(const qr of kr){const Rr=ur.find(Fr=>Fr.label===qr.key);Rr&&(Rr.truncation={num:qr.num,rule:qr.rule})}if(wr!=null&&wr.length)for(const qr of wr){const{fieldType:Rr,columnData:Fr}=qr,jr=e(qr,["fieldType","columnData"]);Rr==="indicators"?(yr=Yn,lr=Fr):Rr==="dimension"&&(yr=ur);const Nr=yr.find(Ur=>Ur.label===jr.label);Nr&&(Nr.sort=Object.assign(Object.assign({},jr),{columnName:Nr.columnName}))}if(!((m=Object.keys(Er))===null||m===void 0)&&m.length)for(const qr in Er){const Rr=ur.find(Fr=>Fr.label===qr);Rr&&(!((g=Er[qr])===null||g===void 0)&&g.length)&&(Rr.aggregateMethod=Er[qr])}dr=[],hr=[];for(const qr of ur)Pr.includes(qr.columnName)?dr.push(qr):Dr.includes(qr.columnName)&&hr.push(qr)}if(yn(gn,["text","proportion","counter"])?Pn="zb":yn(gn,["valueline"])?Pn="valueline":yn(gn,["indexPanel"])&&(Pn="indexPanel"),vn||gn==="card"){if(dr.length===0||Yn.length===0)return;Pn="grouptable"}else if(re==="1"&&!ur.length&&!mr.length||["2","4"].includes(re)&&Yn.length===0||!(re!=="3"||(vr||Fn==="EDV_DATA_SET")&&sr.labelField&&sr.valueField)||re==="3"&&gn==="ecanDataSelect"&&Yn.length===0)return;let Sr;if(Wn!=null&&Wn.length&&(re="1",Pn="grouptable"),!yn(gn,["scatter","valueline"])&&((y=Object.keys(sr))===null||y===void 0?void 0:y.length)){const yr=bn(or).find(br=>br.conditionKey==="parentCode"),pr={};if(yr){const br=An(yr.id)||{};if(!(br!=null&&br.itemCodes))return;pr.parentItemCodes=br.itemCodes}gn==="ecanDataSelect"&&(pr.indicatorList=Yn.filter(br=>br.show)),Fn==="EDV_DATA_SET"&&(pr.edvDataSetId=Un),j.sort&&(pr.sort=j.sort),Sr=Object.assign({url:"/diagram/formData",source:Fn,dataViewId:Bn,plugin:"4",layer:re,chartType:"normalSelect",rangeIndexTypeGuid:vr,type:gn==="ecanDataSelect"?"normalSelectData":"normalSelect",labelField:sr.labelField,valueField:sr.valueField,sqlConditions:cr,idxLibMode:"WITH_DATE_DIM_TABLE",dataSourceId:zn,keyName:c.keyName},pr)}else{let yr={};yr=yn(gn,["scatter","valueline"])?{classifications:Qn}:{classification:j},mr!=null&&mr.length&&(yr.indexLibColumns=mr,yr.isIndexSet=!0),yn(gn,"table")&&b.isIndexSet&&(yr.compositeIndicator=nr);const pr=cr.map(br=>{const{fieldValue:kr}=br,wr={};return kr&&Array.isArray(kr)&&(wr.fieldValue=JSON.stringify(kr)),Object.assign(Object.assign({},br),wr)});xr!=null&&xr.length&&function br(kr){for(const wr of kr)if(wr.sqlConditions)br(wr.sqlConditions);else if(wr.fieldName==="the_date"){const Er=xr.find(Pr=>Pr.prop===wr.prop);Er&&(wr.fieldValue=Er.fieldValue)}}(pr),Sr=Object.assign({url:"/diagram",source:Fn,dataViewId:Bn,plugin:J?"5":w,layer:re,chartType:J?"pivot-table":Pn,series:fr,indicatorList:Yn,queryColumns:vn?[]:ur,pageFlag:!0,edvDataSetId:Un||"",sqlConditions:pr,idxLibMode:qn,dataSourceId:zn,preview:tr,rowHeaders:dr,keyName:c.keyName,columnData:lr,columnHeaders:hr},yr)}return Sr},Mn=(c=[],u,f=!1)=>{let{name:d="name",types:h=[]}=u||{};d=(d==null?void 0:d.trim())||d;const v=new Set,p=new Map,m=c.length,g=h.length;if(m!==1||f)for(let gn=0;gn<m;gn++){const x=c[gn],vn=x[d];v.add(vn);for(let J=0;J<g;J++){const j=h[J],{label:Fn,value:Bn}=j,w=Object.assign(Object.assign({},x),{value:x[Bn]});if(p.has(Fn)){const re=p.get(Fn);re.push(w),p.set(Fn,re)}else p.set(Fn,[w])}}else{const gn=[];for(let vn=0;vn<g;vn++){const J=h[vn],{label:j,value:Fn}=J,Bn=Object.assign(Object.assign({},c[0]),{value:c[0][Fn]});v.add(j),gn.push(Bn)}const x=c[0][d]||"";p.set(x,gn)}const y=Array.from(v),b=[];for(const[gn,x]of p)b.push({name:gn,data:x});return{dimensions:y,dataset:b}},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 v=new Map,p=c.length;for(let y=0;y<p;y++){const b=c[y],gn=b[f]||"",x=b[d]||"",vn=b[h]||"";if(v.has(vn)){const J=v.get(vn);J.push(Object.assign({name:gn,value:x},b)),v.set(vn,J)}else v.set(vn,[Object.assign({name:gn,value:x},b)])}const m=[],g=[];for(const[y,b]of v)if(g.push({name:y,data:b}),b==null?void 0:b.length)if(m.length)for(const gn of b)m.includes(gn.name)||m.push(gn.name);else m.push(...b.map(gn=>gn.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 v=0;v<h;v++){const p=d[v];if(p==null||p==="")break;let m=(f=p.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(p,g)}catch{c=c.replace(p,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 p,m;const h=lodashEs.pick(c,d),v=["width","height","top","left"];for(const g of v)mn(h,g)&&(["width","height"].includes(g)&&((p=c[g])==null?void 0:p.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,v)=>{}});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:(p,m,g)=>{}}),h=vue.inject(COMMON_OPERATE,{operateAction:(p,m)=>{}}),{touchEventId:v}=vue.inject(GLOBAL_CONFIG,{touchEventId:vue.ref("")});return(p,m=()=>{},g)=>function(){m.call(this,...arguments);const{emitEvent:y}=d,{operateAction:b}=h;p==="click"&&!u.find(x=>x.on==="click")&&(!ignoreClickType.includes(c.type)&&c.dataType==="indicator"||c.parentId)&&b("SHOW_INDICATOR_DETAIL_MODAL",{props:c}),u.forEach(gn=>{if(p===gn.on)try{v.value=f,g?y(gn.target,gn.emit,g):y(gn.target,gn.emit)}catch(x){console.error(x)}})}};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 v;if(typeof window<"u"&&window.crypto&&(v=window.crypto),typeof self<"u"&&self.crypto&&(v=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(v=globalThis.crypto),!v&&typeof window<"u"&&window.msCrypto&&(v=window.msCrypto),!v&&typeof commonjsGlobal<"u"&&commonjsGlobal.crypto&&(v=commonjsGlobal.crypto),!v&&typeof commonjsRequire=="function")try{v=require$$0}catch{}var p=function(){if(v){if(typeof v.getRandomValues=="function")try{return v.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof v.randomBytes=="function")try{return v.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(re){var Pn;return w.prototype=re,Pn=new w,w.prototype=null,Pn}}(),g={},y=g.lib={},b=y.Base=function(){return{extend:function(w){var re=m(this);return w&&re.mixIn(w),(!re.hasOwnProperty("init")||this.init===re.init)&&(re.init=function(){re.$super.init.apply(this,arguments)}),re.init.prototype=re,re.$super=this,re},create:function(){var w=this.extend();return w.init.apply(w,arguments),w},init:function(){},mixIn:function(w){for(var re in w)w.hasOwnProperty(re)&&(this[re]=w[re]);w.hasOwnProperty("toString")&&(this.toString=w.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),gn=y.WordArray=b.extend({init:function(w,re){w=this.words=w||[],re!=h?this.sigBytes=re:this.sigBytes=w.length*4},toString:function(w){return(w||vn).stringify(this)},concat:function(w){var re=this.words,Pn=w.words,Rn=this.sigBytes,Vn=w.sigBytes;if(this.clamp(),Rn%4)for(var Wn=0;Wn<Vn;Wn++){var Gn=Pn[Wn>>>2]>>>24-Wn%4*8&255;re[Rn+Wn>>>2]|=Gn<<24-(Rn+Wn)%4*8}else for(var Zn=0;Zn<Vn;Zn+=4)re[Rn+Zn>>>2]=Pn[Zn>>>2];return this.sigBytes+=Vn,this},clamp:function(){var w=this.words,re=this.sigBytes;w[re>>>2]&=4294967295<<32-re%4*8,w.length=d.ceil(re/4)},clone:function(){var w=b.clone.call(this);return w.words=this.words.slice(0),w},random:function(w){for(var re=[],Pn=0;Pn<w;Pn+=4)re.push(p());return new gn.init(re,w)}}),x=g.enc={},vn=x.Hex={stringify:function(w){for(var re=w.words,Pn=w.sigBytes,Rn=[],Vn=0;Vn<Pn;Vn++){var Wn=re[Vn>>>2]>>>24-Vn%4*8&255;Rn.push((Wn>>>4).toString(16)),Rn.push((Wn&15).toString(16))}return Rn.join("")},parse:function(w){for(var re=w.length,Pn=[],Rn=0;Rn<re;Rn+=2)Pn[Rn>>>3]|=parseInt(w.substr(Rn,2),16)<<24-Rn%8*4;return new gn.init(Pn,re/2)}},J=x.Latin1={stringify:function(w){for(var re=w.words,Pn=w.sigBytes,Rn=[],Vn=0;Vn<Pn;Vn++){var Wn=re[Vn>>>2]>>>24-Vn%4*8&255;Rn.push(String.fromCharCode(Wn))}return Rn.join("")},parse:function(w){for(var re=w.length,Pn=[],Rn=0;Rn<re;Rn++)Pn[Rn>>>2]|=(w.charCodeAt(Rn)&255)<<24-Rn%4*8;return new gn.init(Pn,re)}},j=x.Utf8={stringify:function(w){try{return decodeURIComponent(escape(J.stringify(w)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(w){return J.parse(unescape(encodeURIComponent(w)))}},Fn=y.BufferedBlockAlgorithm=b.extend({reset:function(){this._data=new gn.init,this._nDataBytes=0},_append:function(w){typeof w=="string"&&(w=j.parse(w)),this._data.concat(w),this._nDataBytes+=w.sigBytes},_process:function(w){var re,Pn=this._data,Rn=Pn.words,Vn=Pn.sigBytes,Wn=this.blockSize,Gn=Wn*4,Zn=Vn/Gn;w?Zn=d.ceil(Zn):Zn=d.max((Zn|0)-this._minBufferSize,0);var Xn=Zn*Wn,er=d.min(Xn*4,Vn);if(Xn){for(var Jn=0;Jn<Xn;Jn+=Wn)this._doProcessBlock(Rn,Jn);re=Rn.splice(0,Xn),Pn.sigBytes-=er}return new gn.init(re,er)},clone:function(){var w=b.clone.call(this);return w._data=this._data.clone(),w},_minBufferSize:0});y.Hasher=Fn.extend({cfg:b.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 re=this._doFinalize();return re},blockSize:16,_createHelper:function(w){return function(re,Pn){return new w.init(Pn).finalize(re)}},_createHmacHelper:function(w){return function(re,Pn){return new Bn.HMAC.init(w,Pn).finalize(re)}}});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,v=h.lib,p=v.Base,m=v.WordArray,g=h.x64={};g.Word=p.extend({init:function(y,b){this.high=y,this.low=b}}),g.WordArray=p.extend({init:function(y,b){y=this.words=y||[],b!=d?this.sigBytes=b:this.sigBytes=y.length*8},toX32:function(){for(var y=this.words,b=y.length,gn=[],x=0;x<b;x++){var vn=y[x];gn.push(vn.high),gn.push(vn.low)}return m.create(gn,this.sigBytes)},clone:function(){for(var y=p.clone.call(this),b=y.words=this.words.slice(0),gn=b.length,x=0;x<gn;x++)b[x]=b[x].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,v=h.WordArray,p=v.init,m=v.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,b=[],gn=0;gn<y;gn++)b[gn>>>2]|=g[gn]<<24-gn%4*8;p.call(this,b,y)}else p.apply(this,arguments)};m.prototype=v}}(),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,v=h.WordArray,p=d.enc;p.Utf16=p.Utf16BE={stringify:function(g){for(var y=g.words,b=g.sigBytes,gn=[],x=0;x<b;x+=2){var vn=y[x>>>2]>>>16-x%4*8&65535;gn.push(String.fromCharCode(vn))}return gn.join("")},parse:function(g){for(var y=g.length,b=[],gn=0;gn<y;gn++)b[gn>>>1]|=g.charCodeAt(gn)<<16-gn%2*16;return v.create(b,y*2)}},p.Utf16LE={stringify:function(g){for(var y=g.words,b=g.sigBytes,gn=[],x=0;x<b;x+=2){var vn=m(y[x>>>2]>>>16-x%4*8&65535);gn.push(String.fromCharCode(vn))}return gn.join("")},parse:function(g){for(var y=g.length,b=[],gn=0;gn<y;gn++)b[gn>>>1]|=m(g.charCodeAt(gn)<<16-gn%2*16);return v.create(b,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,v=h.WordArray,p=d.enc;p.Base64={stringify:function(g){var y=g.words,b=g.sigBytes,gn=this._map;g.clamp();for(var x=[],vn=0;vn<b;vn+=3)for(var J=y[vn>>>2]>>>24-vn%4*8&255,j=y[vn+1>>>2]>>>24-(vn+1)%4*8&255,Fn=y[vn+2>>>2]>>>24-(vn+2)%4*8&255,Bn=J<<16|j<<8|Fn,w=0;w<4&&vn+w*.75<b;w++)x.push(gn.charAt(Bn>>>6*(3-w)&63));var re=gn.charAt(64);if(re)for(;x.length%4;)x.push(re);return x.join("")},parse:function(g){var y=g.length,b=this._map,gn=this._reverseMap;if(!gn){gn=this._reverseMap=[];for(var x=0;x<b.length;x++)gn[b.charCodeAt(x)]=x}var vn=b.charAt(64);if(vn){var J=g.indexOf(vn);J!==-1&&(y=J)}return m(g,y,gn)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function m(g,y,b){for(var gn=[],x=0,vn=0;vn<y;vn++)if(vn%4){var J=b[g.charCodeAt(vn-1)]<<vn%4*2,j=b[g.charCodeAt(vn)]>>>6-vn%4*2,Fn=J|j;gn[x>>>2]|=Fn<<24-x%4*8,x++}return v.create(gn,x)}}(),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,v=h.WordArray,p=d.enc;p.Base64url={stringify:function(g,y=!0){var b=g.words,gn=g.sigBytes,x=y?this._safe_map:this._map;g.clamp();for(var vn=[],J=0;J<gn;J+=3)for(var j=b[J>>>2]>>>24-J%4*8&255,Fn=b[J+1>>>2]>>>24-(J+1)%4*8&255,Bn=b[J+2>>>2]>>>24-(J+2)%4*8&255,w=j<<16|Fn<<8|Bn,re=0;re<4&&J+re*.75<gn;re++)vn.push(x.charAt(w>>>6*(3-re)&63));var Pn=x.charAt(64);if(Pn)for(;vn.length%4;)vn.push(Pn);return vn.join("")},parse:function(g,y=!0){var b=g.length,gn=y?this._safe_map:this._map,x=this._reverseMap;if(!x){x=this._reverseMap=[];for(var vn=0;vn<gn.length;vn++)x[gn.charCodeAt(vn)]=vn}var J=gn.charAt(64);if(J){var j=g.indexOf(J);j!==-1&&(b=j)}return m(g,b,x)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function m(g,y,b){for(var gn=[],x=0,vn=0;vn<y;vn++)if(vn%4){var J=b[g.charCodeAt(vn-1)]<<vn%4*2,j=b[g.charCodeAt(vn)]>>>6-vn%4*2,Fn=J|j;gn[x>>>2]|=Fn<<24-x%4*8,x++}return v.create(gn,x)}}(),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,v=h.lib,p=v.WordArray,m=v.Hasher,g=h.algo,y=[];(function(){for(var j=0;j<64;j++)y[j]=d.abs(d.sin(j+1))*4294967296|0})();var b=g.MD5=m.extend({_doReset:function(){this._hash=new p.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(j,Fn){for(var Bn=0;Bn<16;Bn++){var w=Fn+Bn,re=j[w];j[w]=(re<<8|re>>>24)&16711935|(re<<24|re>>>8)&4278255360}var Pn=this._hash.words,Rn=j[Fn+0],Vn=j[Fn+1],Wn=j[Fn+2],Gn=j[Fn+3],Zn=j[Fn+4],Xn=j[Fn+5],er=j[Fn+6],Jn=j[Fn+7],ir=j[Fn+8],or=j[Fn+9],sr=j[Fn+10],Hn=j[Fn+11],Kn=j[Fn+12],zn=j[Fn+13],qn=j[Fn+14],tr=j[Fn+15],Un=Pn[0],nr=Pn[1],cr=Pn[2],Qn=Pn[3];Un=gn(Un,nr,cr,Qn,Rn,7,y[0]),Qn=gn(Qn,Un,nr,cr,Vn,12,y[1]),cr=gn(cr,Qn,Un,nr,Wn,17,y[2]),nr=gn(nr,cr,Qn,Un,Gn,22,y[3]),Un=gn(Un,nr,cr,Qn,Zn,7,y[4]),Qn=gn(Qn,Un,nr,cr,Xn,12,y[5]),cr=gn(cr,Qn,Un,nr,er,17,y[6]),nr=gn(nr,cr,Qn,Un,Jn,22,y[7]),Un=gn(Un,nr,cr,Qn,ir,7,y[8]),Qn=gn(Qn,Un,nr,cr,or,12,y[9]),cr=gn(cr,Qn,Un,nr,sr,17,y[10]),nr=gn(nr,cr,Qn,Un,Hn,22,y[11]),Un=gn(Un,nr,cr,Qn,Kn,7,y[12]),Qn=gn(Qn,Un,nr,cr,zn,12,y[13]),cr=gn(cr,Qn,Un,nr,qn,17,y[14]),nr=gn(nr,cr,Qn,Un,tr,22,y[15]),Un=x(Un,nr,cr,Qn,Vn,5,y[16]),Qn=x(Qn,Un,nr,cr,er,9,y[17]),cr=x(cr,Qn,Un,nr,Hn,14,y[18]),nr=x(nr,cr,Qn,Un,Rn,20,y[19]),Un=x(Un,nr,cr,Qn,Xn,5,y[20]),Qn=x(Qn,Un,nr,cr,sr,9,y[21]),cr=x(cr,Qn,Un,nr,tr,14,y[22]),nr=x(nr,cr,Qn,Un,Zn,20,y[23]),Un=x(Un,nr,cr,Qn,or,5,y[24]),Qn=x(Qn,Un,nr,cr,qn,9,y[25]),cr=x(cr,Qn,Un,nr,Gn,14,y[26]),nr=x(nr,cr,Qn,Un,ir,20,y[27]),Un=x(Un,nr,cr,Qn,zn,5,y[28]),Qn=x(Qn,Un,nr,cr,Wn,9,y[29]),cr=x(cr,Qn,Un,nr,Jn,14,y[30]),nr=x(nr,cr,Qn,Un,Kn,20,y[31]),Un=vn(Un,nr,cr,Qn,Xn,4,y[32]),Qn=vn(Qn,Un,nr,cr,ir,11,y[33]),cr=vn(cr,Qn,Un,nr,Hn,16,y[34]),nr=vn(nr,cr,Qn,Un,qn,23,y[35]),Un=vn(Un,nr,cr,Qn,Vn,4,y[36]),Qn=vn(Qn,Un,nr,cr,Zn,11,y[37]),cr=vn(cr,Qn,Un,nr,Jn,16,y[38]),nr=vn(nr,cr,Qn,Un,sr,23,y[39]),Un=vn(Un,nr,cr,Qn,zn,4,y[40]),Qn=vn(Qn,Un,nr,cr,Rn,11,y[41]),cr=vn(cr,Qn,Un,nr,Gn,16,y[42]),nr=vn(nr,cr,Qn,Un,er,23,y[43]),Un=vn(Un,nr,cr,Qn,or,4,y[44]),Qn=vn(Qn,Un,nr,cr,Kn,11,y[45]),cr=vn(cr,Qn,Un,nr,tr,16,y[46]),nr=vn(nr,cr,Qn,Un,Wn,23,y[47]),Un=J(Un,nr,cr,Qn,Rn,6,y[48]),Qn=J(Qn,Un,nr,cr,Jn,10,y[49]),cr=J(cr,Qn,Un,nr,qn,15,y[50]),nr=J(nr,cr,Qn,Un,Xn,21,y[51]),Un=J(Un,nr,cr,Qn,Kn,6,y[52]),Qn=J(Qn,Un,nr,cr,Gn,10,y[53]),cr=J(cr,Qn,Un,nr,sr,15,y[54]),nr=J(nr,cr,Qn,Un,Vn,21,y[55]),Un=J(Un,nr,cr,Qn,ir,6,y[56]),Qn=J(Qn,Un,nr,cr,tr,10,y[57]),cr=J(cr,Qn,Un,nr,er,15,y[58]),nr=J(nr,cr,Qn,Un,zn,21,y[59]),Un=J(Un,nr,cr,Qn,Zn,6,y[60]),Qn=J(Qn,Un,nr,cr,Hn,10,y[61]),cr=J(cr,Qn,Un,nr,Wn,15,y[62]),nr=J(nr,cr,Qn,Un,or,21,y[63]),Pn[0]=Pn[0]+Un|0,Pn[1]=Pn[1]+nr|0,Pn[2]=Pn[2]+cr|0,Pn[3]=Pn[3]+Qn|0},_doFinalize:function(){var j=this._data,Fn=j.words,Bn=this._nDataBytes*8,w=j.sigBytes*8;Fn[w>>>5]|=128<<24-w%32;var re=d.floor(Bn/4294967296),Pn=Bn;Fn[(w+64>>>9<<4)+15]=(re<<8|re>>>24)&16711935|(re<<24|re>>>8)&4278255360,Fn[(w+64>>>9<<4)+14]=(Pn<<8|Pn>>>24)&16711935|(Pn<<24|Pn>>>8)&4278255360,j.sigBytes=(Fn.length+1)*4,this._process();for(var Rn=this._hash,Vn=Rn.words,Wn=0;Wn<4;Wn++){var Gn=Vn[Wn];Vn[Wn]=(Gn<<8|Gn>>>24)&16711935|(Gn<<24|Gn>>>8)&4278255360}return Rn},clone:function(){var j=m.clone.call(this);return j._hash=this._hash.clone(),j}});function gn(j,Fn,Bn,w,re,Pn,Rn){var Vn=j+(Fn&Bn|~Fn&w)+re+Rn;return(Vn<<Pn|Vn>>>32-Pn)+Fn}function x(j,Fn,Bn,w,re,Pn,Rn){var Vn=j+(Fn&w|Bn&~w)+re+Rn;return(Vn<<Pn|Vn>>>32-Pn)+Fn}function vn(j,Fn,Bn,w,re,Pn,Rn){var Vn=j+(Fn^Bn^w)+re+Rn;return(Vn<<Pn|Vn>>>32-Pn)+Fn}function J(j,Fn,Bn,w,re,Pn,Rn){var Vn=j+(Bn^(Fn|~w))+re+Rn;return(Vn<<Pn|Vn>>>32-Pn)+Fn}h.MD5=m._createHelper(b),h.HmacMD5=m._createHmacHelper(b)}(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,v=h.WordArray,p=h.Hasher,m=d.algo,g=[],y=m.SHA1=p.extend({_doReset:function(){this._hash=new v.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(b,gn){for(var x=this._hash.words,vn=x[0],J=x[1],j=x[2],Fn=x[3],Bn=x[4],w=0;w<80;w++){if(w<16)g[w]=b[gn+w]|0;else{var re=g[w-3]^g[w-8]^g[w-14]^g[w-16];g[w]=re<<1|re>>>31}var Pn=(vn<<5|vn>>>27)+Bn+g[w];w<20?Pn+=(J&j|~J&Fn)+1518500249:w<40?Pn+=(J^j^Fn)+1859775393:w<60?Pn+=(J&j|J&Fn|j&Fn)-1894007588:Pn+=(J^j^Fn)-899497514,Bn=Fn,Fn=j,j=J<<30|J>>>2,J=vn,vn=Pn}x[0]=x[0]+vn|0,x[1]=x[1]+J|0,x[2]=x[2]+j|0,x[3]=x[3]+Fn|0,x[4]=x[4]+Bn|0},_doFinalize:function(){var b=this._data,gn=b.words,x=this._nDataBytes*8,vn=b.sigBytes*8;return gn[vn>>>5]|=128<<24-vn%32,gn[(vn+64>>>9<<4)+14]=Math.floor(x/4294967296),gn[(vn+64>>>9<<4)+15]=x,b.sigBytes=gn.length*4,this._process(),this._hash},clone:function(){var b=p.clone.call(this);return b._hash=this._hash.clone(),b}});d.SHA1=p._createHelper(y),d.HmacSHA1=p._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,v=h.lib,p=v.WordArray,m=v.Hasher,g=h.algo,y=[],b=[];(function(){function vn(Bn){for(var w=d.sqrt(Bn),re=2;re<=w;re++)if(!(Bn%re))return!1;return!0}function J(Bn){return(Bn-(Bn|0))*4294967296|0}for(var j=2,Fn=0;Fn<64;)vn(j)&&(Fn<8&&(y[Fn]=J(d.pow(j,1/2))),b[Fn]=J(d.pow(j,1/3)),Fn++),j++})();var gn=[],x=g.SHA256=m.extend({_doReset:function(){this._hash=new p.init(y.slice(0))},_doProcessBlock:function(vn,J){for(var j=this._hash.words,Fn=j[0],Bn=j[1],w=j[2],re=j[3],Pn=j[4],Rn=j[5],Vn=j[6],Wn=j[7],Gn=0;Gn<64;Gn++){if(Gn<16)gn[Gn]=vn[J+Gn]|0;else{var Zn=gn[Gn-15],Xn=(Zn<<25|Zn>>>7)^(Zn<<14|Zn>>>18)^Zn>>>3,er=gn[Gn-2],Jn=(er<<15|er>>>17)^(er<<13|er>>>19)^er>>>10;gn[Gn]=Xn+gn[Gn-7]+Jn+gn[Gn-16]}var ir=Pn&Rn^~Pn&Vn,or=Fn&Bn^Fn&w^Bn&w,sr=(Fn<<30|Fn>>>2)^(Fn<<19|Fn>>>13)^(Fn<<10|Fn>>>22),Hn=(Pn<<26|Pn>>>6)^(Pn<<21|Pn>>>11)^(Pn<<7|Pn>>>25),Kn=Wn+Hn+ir+b[Gn]+gn[Gn],zn=sr+or;Wn=Vn,Vn=Rn,Rn=Pn,Pn=re+Kn|0,re=w,w=Bn,Bn=Fn,Fn=Kn+zn|0}j[0]=j[0]+Fn|0,j[1]=j[1]+Bn|0,j[2]=j[2]+w|0,j[3]=j[3]+re|0,j[4]=j[4]+Pn|0,j[5]=j[5]+Rn|0,j[6]=j[6]+Vn|0,j[7]=j[7]+Wn|0},_doFinalize:function(){var vn=this._data,J=vn.words,j=this._nDataBytes*8,Fn=vn.sigBytes*8;return J[Fn>>>5]|=128<<24-Fn%32,J[(Fn+64>>>9<<4)+14]=d.floor(j/4294967296),J[(Fn+64>>>9<<4)+15]=j,vn.sigBytes=J.length*4,this._process(),this._hash},clone:function(){var vn=m.clone.call(this);return vn._hash=this._hash.clone(),vn}});h.SHA256=m._createHelper(x),h.HmacSHA256=m._createHmacHelper(x)}(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,v=h.WordArray,p=d.algo,m=p.SHA256,g=p.SHA224=m.extend({_doReset:function(){this._hash=new v.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,v=h.Hasher,p=d.x64,m=p.Word,g=p.WordArray,y=d.algo;function b(){return m.create.apply(m,arguments)}var gn=[b(1116352408,3609767458),b(1899447441,602891725),b(3049323471,3964484399),b(3921009573,2173295548),b(961987163,4081628472),b(1508970993,3053834265),b(2453635748,2937671579),b(2870763221,3664609560),b(3624381080,2734883394),b(310598401,1164996542),b(607225278,1323610764),b(1426881987,3590304994),b(1925078388,4068182383),b(2162078206,991336113),b(2614888103,633803317),b(3248222580,3479774868),b(3835390401,2666613458),b(4022224774,944711139),b(264347078,2341262773),b(604807628,2007800933),b(770255983,1495990901),b(1249150122,1856431235),b(1555081692,3175218132),b(1996064986,2198950837),b(2554220882,3999719339),b(2821834349,766784016),b(2952996808,2566594879),b(3210313671,3203337956),b(3336571891,1034457026),b(3584528711,2466948901),b(113926993,3758326383),b(338241895,168717936),b(666307205,1188179964),b(773529912,1546045734),b(1294757372,1522805485),b(1396182291,2643833823),b(1695183700,2343527390),b(1986661051,1014477480),b(2177026350,1206759142),b(2456956037,344077627),b(2730485921,1290863460),b(2820302411,3158454273),b(3259730800,3505952657),b(3345764771,106217008),b(3516065817,3606008344),b(3600352804,1432725776),b(4094571909,1467031594),b(275423344,851169720),b(430227734,3100823752),b(506948616,1363258195),b(659060556,3750685593),b(883997877,3785050280),b(958139571,3318307427),b(1322822218,3812723403),b(1537002063,2003034995),b(1747873779,3602036899),b(1955562222,1575990012),b(2024104815,1125592928),b(2227730452,2716904306),b(2361852424,442776044),b(2428436474,593698344),b(2756734187,3733110249),b(3204031479,2999351573),b(3329325298,3815920427),b(3391569614,3928383900),b(3515267271,566280711),b(3940187606,3454069534),b(4118630271,4000239992),b(116418474,1914138554),b(174292421,2731055270),b(289380356,3203993006),b(460393269,320620315),b(685471733,587496836),b(852142971,1086792851),b(1017036298,365543100),b(1126000580,2618297676),b(1288033470,3409855158),b(1501505948,4234509866),b(1607167915,987167468),b(1816402316,1246189591)],x=[];(function(){for(var J=0;J<80;J++)x[J]=b()})();var vn=y.SHA512=v.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(J,j){for(var Fn=this._hash.words,Bn=Fn[0],w=Fn[1],re=Fn[2],Pn=Fn[3],Rn=Fn[4],Vn=Fn[5],Wn=Fn[6],Gn=Fn[7],Zn=Bn.high,Xn=Bn.low,er=w.high,Jn=w.low,ir=re.high,or=re.low,sr=Pn.high,Hn=Pn.low,Kn=Rn.high,zn=Rn.low,qn=Vn.high,tr=Vn.low,Un=Wn.high,nr=Wn.low,cr=Gn.high,Qn=Gn.low,fr=Zn,vr=Xn,Yn=er,ar=Jn,ur=ir,mr=or,dr=sr,gr=Hn,lr=Kn,hr=zn,xr=qn,Sr=tr,yr=Un,pr=nr,br=cr,kr=Qn,wr=0;wr<80;wr++){var Er,Pr,Dr=x[wr];if(wr<16)Pr=Dr.high=J[j+wr*2]|0,Er=Dr.low=J[j+wr*2+1]|0;else{var qr=x[wr-15],Rr=qr.high,Fr=qr.low,jr=(Rr>>>1|Fr<<31)^(Rr>>>8|Fr<<24)^Rr>>>7,Nr=(Fr>>>1|Rr<<31)^(Fr>>>8|Rr<<24)^(Fr>>>7|Rr<<25),Ur=x[wr-2],Qr=Ur.high,Wr=Ur.low,ri=(Qr>>>19|Wr<<13)^(Qr<<3|Wr>>>29)^Qr>>>6,ei=(Wr>>>19|Qr<<13)^(Wr<<3|Qr>>>29)^(Wr>>>6|Qr<<26),Tr=x[wr-7],Br=Tr.high,Lr=Tr.low,Hr=x[wr-16],Or=Hr.high,Gr=Hr.low;Er=Nr+Lr,Pr=jr+Br+(Er>>>0<Nr>>>0?1:0),Er=Er+ei,Pr=Pr+ri+(Er>>>0<ei>>>0?1:0),Er=Er+Gr,Pr=Pr+Or+(Er>>>0<Gr>>>0?1:0),Dr.high=Pr,Dr.low=Er}var Zr=lr&xr^~lr&yr,ni=hr&Sr^~hr&pr,ci=fr&Yn^fr&ur^Yn&ur,ai=vr&ar^vr&mr^ar&mr,vi=(fr>>>28|vr<<4)^(fr<<30|vr>>>2)^(fr<<25|vr>>>7),ui=(vr>>>28|fr<<4)^(vr<<30|fr>>>2)^(vr<<25|fr>>>7),pi=(lr>>>14|hr<<18)^(lr>>>18|hr<<14)^(lr<<23|hr>>>9),ki=(hr>>>14|lr<<18)^(hr>>>18|lr<<14)^(hr<<23|lr>>>9),xi=gn[wr],Si=xi.high,Ci=xi.low,si=kr+ki,di=br+pi+(si>>>0<kr>>>0?1:0),si=si+ni,di=di+Zr+(si>>>0<ni>>>0?1:0),si=si+Ci,di=di+Si+(si>>>0<Ci>>>0?1:0),si=si+Er,di=di+Pr+(si>>>0<Er>>>0?1:0),wi=ui+ai,yi=vi+ci+(wi>>>0<ui>>>0?1:0);br=yr,kr=pr,yr=xr,pr=Sr,xr=lr,Sr=hr,hr=gr+si|0,lr=dr+di+(hr>>>0<gr>>>0?1:0)|0,dr=ur,gr=mr,ur=Yn,mr=ar,Yn=fr,ar=vr,vr=si+wi|0,fr=di+yi+(vr>>>0<si>>>0?1:0)|0}Xn=Bn.low=Xn+vr,Bn.high=Zn+fr+(Xn>>>0<vr>>>0?1:0),Jn=w.low=Jn+ar,w.high=er+Yn+(Jn>>>0<ar>>>0?1:0),or=re.low=or+mr,re.high=ir+ur+(or>>>0<mr>>>0?1:0),Hn=Pn.low=Hn+gr,Pn.high=sr+dr+(Hn>>>0<gr>>>0?1:0),zn=Rn.low=zn+hr,Rn.high=Kn+lr+(zn>>>0<hr>>>0?1:0),tr=Vn.low=tr+Sr,Vn.high=qn+xr+(tr>>>0<Sr>>>0?1:0),nr=Wn.low=nr+pr,Wn.high=Un+yr+(nr>>>0<pr>>>0?1:0),Qn=Gn.low=Qn+kr,Gn.high=cr+br+(Qn>>>0<kr>>>0?1:0)},_doFinalize:function(){var J=this._data,j=J.words,Fn=this._nDataBytes*8,Bn=J.sigBytes*8;j[Bn>>>5]|=128<<24-Bn%32,j[(Bn+128>>>10<<5)+30]=Math.floor(Fn/4294967296),j[(Bn+128>>>10<<5)+31]=Fn,J.sigBytes=j.length*4,this._process();var w=this._hash.toX32();return w},clone:function(){var J=v.clone.call(this);return J._hash=this._hash.clone(),J},blockSize:1024/32});d.SHA512=v._createHelper(vn),d.HmacSHA512=v._createHmacHelper(vn)}(),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,v=h.Word,p=h.WordArray,m=d.algo,g=m.SHA512,y=m.SHA384=g.extend({_doReset:function(){this._hash=new p.init([new v.init(3418070365,3238371032),new v.init(1654270250,914150663),new v.init(2438529370,812702999),new v.init(355462360,4144912697),new v.init(1731405415,4290775857),new v.init(2394180231,1750603025),new v.init(3675008525,1694076839),new v.init(1203062813,3204075428)])},_doFinalize:function(){var b=g._doFinalize.call(this);return b.sigBytes-=16,b}});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,v=h.lib,p=v.WordArray,m=v.Hasher,g=h.x64,y=g.Word,b=h.algo,gn=[],x=[],vn=[];(function(){for(var Fn=1,Bn=0,w=0;w<24;w++){gn[Fn+5*Bn]=(w+1)*(w+2)/2%64;var re=Bn%5,Pn=(2*Fn+3*Bn)%5;Fn=re,Bn=Pn}for(var Fn=0;Fn<5;Fn++)for(var Bn=0;Bn<5;Bn++)x[Fn+5*Bn]=Bn+(2*Fn+3*Bn)%5*5;for(var Rn=1,Vn=0;Vn<24;Vn++){for(var Wn=0,Gn=0,Zn=0;Zn<7;Zn++){if(Rn&1){var Xn=(1<<Zn)-1;Xn<32?Gn^=1<<Xn:Wn^=1<<Xn-32}Rn&128?Rn=Rn<<1^113:Rn<<=1}vn[Vn]=y.create(Wn,Gn)}})();var J=[];(function(){for(var Fn=0;Fn<25;Fn++)J[Fn]=y.create()})();var j=b.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,re=this.blockSize/2,Pn=0;Pn<re;Pn++){var Rn=Fn[Bn+2*Pn],Vn=Fn[Bn+2*Pn+1];Rn=(Rn<<8|Rn>>>24)&16711935|(Rn<<24|Rn>>>8)&4278255360,Vn=(Vn<<8|Vn>>>24)&16711935|(Vn<<24|Vn>>>8)&4278255360;var Wn=w[Pn];Wn.high^=Vn,Wn.low^=Rn}for(var Gn=0;Gn<24;Gn++){for(var Zn=0;Zn<5;Zn++){for(var Xn=0,er=0,Jn=0;Jn<5;Jn++){var Wn=w[Zn+5*Jn];Xn^=Wn.high,er^=Wn.low}var ir=J[Zn];ir.high=Xn,ir.low=er}for(var Zn=0;Zn<5;Zn++)for(var or=J[(Zn+4)%5],sr=J[(Zn+1)%5],Hn=sr.high,Kn=sr.low,Xn=or.high^(Hn<<1|Kn>>>31),er=or.low^(Kn<<1|Hn>>>31),Jn=0;Jn<5;Jn++){var Wn=w[Zn+5*Jn];Wn.high^=Xn,Wn.low^=er}for(var zn=1;zn<25;zn++){var Xn,er,Wn=w[zn],qn=Wn.high,tr=Wn.low,Un=gn[zn];Un<32?(Xn=qn<<Un|tr>>>32-Un,er=tr<<Un|qn>>>32-Un):(Xn=tr<<Un-32|qn>>>64-Un,er=qn<<Un-32|tr>>>64-Un);var nr=J[x[zn]];nr.high=Xn,nr.low=er}var cr=J[0],Qn=w[0];cr.high=Qn.high,cr.low=Qn.low;for(var Zn=0;Zn<5;Zn++)for(var Jn=0;Jn<5;Jn++){var zn=Zn+5*Jn,Wn=w[zn],fr=J[zn],vr=J[(Zn+1)%5+5*Jn],Yn=J[(Zn+2)%5+5*Jn];Wn.high=fr.high^~vr.high&Yn.high,Wn.low=fr.low^~vr.low&Yn.low}var Wn=w[0],ar=vn[Gn];Wn.high^=ar.high,Wn.low^=ar.low}},_doFinalize:function(){var Fn=this._data,Bn=Fn.words;this._nDataBytes*8;var w=Fn.sigBytes*8,re=this.blockSize*32;Bn[w>>>5]|=1<<24-w%32,Bn[(d.ceil((w+1)/re)*re>>>5)-1]|=128,Fn.sigBytes=Bn.length*4,this._process();for(var Pn=this._state,Rn=this.cfg.outputLength/8,Vn=Rn/8,Wn=[],Gn=0;Gn<Vn;Gn++){var Zn=Pn[Gn],Xn=Zn.high,er=Zn.low;Xn=(Xn<<8|Xn>>>24)&16711935|(Xn<<24|Xn>>>8)&4278255360,er=(er<<8|er>>>24)&16711935|(er<<24|er>>>8)&4278255360,Wn.push(er),Wn.push(Xn)}return new p.init(Wn,Rn)},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(j),h.HmacSHA3=m._createHmacHelper(j)}(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:b,recurseCount:gn}){const x=gn>0?`... (${gn} recursive calls)`:"",vn=!!b.component&&b.component.parent==null,J=` at <${oe(b.component,b.type,vn)}`,j=">"+x;return b.props?[J,...L(b.props),j]:[J+j]}(g))}),m}(h)),console.warn(...v)}}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(v){(function(p,m,g,y=!0){const b=m?m.vnode:null;if(m){let gn=m.parent;const x=m.proxy,vn=process.env.NODE_ENV!=="production"?N[g]:g;for(;gn;){const j=gn.ec;if(j){for(let Fn=0;Fn<j.length;Fn++)if(j[Fn](p,x,vn)===!1)return}gn=gn.parent}const J=m.appContext.config.errorHandler;if(J)return void $(J,null,10,[p,x,vn])}(function(gn,x,vn,J=!0){if(process.env.NODE_ENV!=="production"){const Fn=N[x];if(vn&&(j=vn,O.push(j)),C("Unhandled error"+(Fn?` during execution of ${Fn}`:"")),vn&&O.pop(),J)throw gn;console.error(gn)}else console.error(gn);var j})(p,g,b,y)})(v,u,f)}return h}let k=!1,D=!1;const M=[];let E=0;const I=[];let V=null,F=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,v=M[h],p=P(v);p<u||p===u&&v.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,V)return void V.push(...d);for(V=d,process.env.NODE_ENV!=="production"&&(f=f||new Map),V.sort((h,v)=>P(h)-P(v)),F=0;F<V.length;F++)process.env.NODE_ENV!=="production"&&W(f,V[F])||V[F]();V=null,F=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 v of d){const p=K(v.type);H.has(p)||(p!==f.initialDef&&q(p,u),H.add(p)),v.appContext.propsCache.delete(v.type),v.appContext.emitsCache.delete(v.type),v.appContext.optionsCache.delete(v.type),v.ceReload?(H.add(p),v.ceReload(u.styles),H.delete(p)):v.parent?R(v.parent.update):v.appContext.reload?v.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}h=()=>{for(const v of d)H.delete(K(v.type))},r(h)?I.push(...h):V&&V.includes(h,h.allowRecurse?F+1:F)||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=v=>{for(const p in v)if(v[p]===u)return p};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",v="minute",p="hour",m="day",g="week",y="month",b="quarter",gn="year",x="date",vn="Invalid Date",J=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,j=/\[([^\]]+)]|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(Jn){var ir=["th","st","nd","rd"],or=Jn%100;return"["+Jn+(ir[(or-20)%10]||ir[or]||ir[0])+"]"}},Bn=function(Jn,ir,or){var sr=String(Jn);return!sr||sr.length>=ir?Jn:""+Array(ir+1-sr.length).join(or)+Jn},w={s:Bn,z:function(Jn){var ir=-Jn.utcOffset(),or=Math.abs(ir),sr=Math.floor(or/60),Hn=or%60;return(ir<=0?"+":"-")+Bn(sr,2,"0")+":"+Bn(Hn,2,"0")},m:function Jn(ir,or){if(ir.date()<or.date())return-Jn(or,ir);var sr=12*(or.year()-ir.year())+(or.month()-ir.month()),Hn=ir.clone().add(sr,y),Kn=or-Hn<0,zn=ir.clone().add(sr+(Kn?-1:1),y);return+(-(sr+(or-Hn)/(Kn?Hn-zn:zn-Hn))||0)},a:function(Jn){return Jn<0?Math.ceil(Jn)||0:Math.floor(Jn)},p:function(Jn){return{M:y,y:gn,w:g,d:m,D:x,h:p,m:v,s:h,ms:d,Q:b}[Jn]||String(Jn||"").toLowerCase().replace(/s$/,"")},u:function(Jn){return Jn===void 0}},re="en",Pn={};Pn[re]=Fn;var Rn="$isDayjsObject",Vn=function(Jn){return Jn instanceof Xn||!(!Jn||!Jn[Rn])},Wn=function Jn(ir,or,sr){var Hn;if(!ir)return re;if(typeof ir=="string"){var Kn=ir.toLowerCase();Pn[Kn]&&(Hn=Kn),or&&(Pn[Kn]=or,Hn=Kn);var zn=ir.split("-");if(!Hn&&zn.length>1)return Jn(zn[0])}else{var qn=ir.name;Pn[qn]=ir,Hn=qn}return!sr&&Hn&&(re=Hn),Hn||!sr&&re},Gn=function(Jn,ir){if(Vn(Jn))return Jn.clone();var or=typeof ir=="object"?ir:{};return or.date=Jn,or.args=arguments,new Xn(or)},Zn=w;Zn.l=Wn,Zn.i=Vn,Zn.w=function(Jn,ir){return Gn(Jn,{locale:ir.$L,utc:ir.$u,x:ir.$x,$offset:ir.$offset})};var Xn=function(){function Jn(or){this.$L=Wn(or.locale,null,!0),this.parse(or),this.$x=this.$x||or.x||{},this[Rn]=!0}var ir=Jn.prototype;return ir.parse=function(or){this.$d=function(sr){var Hn=sr.date,Kn=sr.utc;if(Hn===null)return new Date(NaN);if(Zn.u(Hn))return new Date;if(Hn instanceof Date)return new Date(Hn);if(typeof Hn=="string"&&!/Z$/i.test(Hn)){var zn=Hn.match(J);if(zn){var qn=zn[2]-1||0,tr=(zn[7]||"0").substring(0,3);return Kn?new Date(Date.UTC(zn[1],qn,zn[3]||1,zn[4]||0,zn[5]||0,zn[6]||0,tr)):new Date(zn[1],qn,zn[3]||1,zn[4]||0,zn[5]||0,zn[6]||0,tr)}}return new Date(Hn)}(or),this.init()},ir.init=function(){var or=this.$d;this.$y=or.getFullYear(),this.$M=or.getMonth(),this.$D=or.getDate(),this.$W=or.getDay(),this.$H=or.getHours(),this.$m=or.getMinutes(),this.$s=or.getSeconds(),this.$ms=or.getMilliseconds()},ir.$utils=function(){return Zn},ir.isValid=function(){return this.$d.toString()!==vn},ir.isSame=function(or,sr){var Hn=Gn(or);return this.startOf(sr)<=Hn&&Hn<=this.endOf(sr)},ir.isAfter=function(or,sr){return Gn(or)<this.startOf(sr)},ir.isBefore=function(or,sr){return this.endOf(sr)<Gn(or)},ir.$g=function(or,sr,Hn){return Zn.u(or)?this[sr]:this.set(Hn,or)},ir.unix=function(){return Math.floor(this.valueOf()/1e3)},ir.valueOf=function(){return this.$d.getTime()},ir.startOf=function(or,sr){var Hn=this,Kn=!!Zn.u(sr)||sr,zn=Zn.p(or),qn=function(Yn,ar){var ur=Zn.w(Hn.$u?Date.UTC(Hn.$y,ar,Yn):new Date(Hn.$y,ar,Yn),Hn);return Kn?ur:ur.endOf(m)},tr=function(Yn,ar){return Zn.w(Hn.toDate()[Yn].apply(Hn.toDate("s"),(Kn?[0,0,0,0]:[23,59,59,999]).slice(ar)),Hn)},Un=this.$W,nr=this.$M,cr=this.$D,Qn="set"+(this.$u?"UTC":"");switch(zn){case gn:return Kn?qn(1,0):qn(31,11);case y:return Kn?qn(1,nr):qn(0,nr+1);case g:var fr=this.$locale().weekStart||0,vr=(Un<fr?Un+7:Un)-fr;return qn(Kn?cr-vr:cr+(6-vr),nr);case m:case x:return tr(Qn+"Hours",0);case p:return tr(Qn+"Minutes",1);case v:return tr(Qn+"Seconds",2);case h:return tr(Qn+"Milliseconds",3);default:return this.clone()}},ir.endOf=function(or){return this.startOf(or,!1)},ir.$set=function(or,sr){var Hn,Kn=Zn.p(or),zn="set"+(this.$u?"UTC":""),qn=(Hn={},Hn[m]=zn+"Date",Hn[x]=zn+"Date",Hn[y]=zn+"Month",Hn[gn]=zn+"FullYear",Hn[p]=zn+"Hours",Hn[v]=zn+"Minutes",Hn[h]=zn+"Seconds",Hn[d]=zn+"Milliseconds",Hn)[Kn],tr=Kn===m?this.$D+(sr-this.$W):sr;if(Kn===y||Kn===gn){var Un=this.clone().set(x,1);Un.$d[qn](tr),Un.init(),this.$d=Un.set(x,Math.min(this.$D,Un.daysInMonth())).$d}else qn&&this.$d[qn](tr);return this.init(),this},ir.set=function(or,sr){return this.clone().$set(or,sr)},ir.get=function(or){return this[Zn.p(or)]()},ir.add=function(or,sr){var Hn,Kn=this;or=Number(or);var zn=Zn.p(sr),qn=function(nr){var cr=Gn(Kn);return Zn.w(cr.date(cr.date()+Math.round(nr*or)),Kn)};if(zn===y)return this.set(y,this.$M+or);if(zn===gn)return this.set(gn,this.$y+or);if(zn===m)return qn(1);if(zn===g)return qn(7);var tr=(Hn={},Hn[v]=u,Hn[p]=f,Hn[h]=c,Hn)[zn]||1,Un=this.$d.getTime()+or*tr;return Zn.w(Un,this)},ir.subtract=function(or,sr){return this.add(-1*or,sr)},ir.format=function(or){var sr=this,Hn=this.$locale();if(!this.isValid())return Hn.invalidDate||vn;var Kn=or||"YYYY-MM-DDTHH:mm:ssZ",zn=Zn.z(this),qn=this.$H,tr=this.$m,Un=this.$M,nr=Hn.weekdays,cr=Hn.months,Qn=Hn.meridiem,fr=function(ar,ur,mr,dr){return ar&&(ar[ur]||ar(sr,Kn))||mr[ur].slice(0,dr)},vr=function(ar){return Zn.s(qn%12||12,ar,"0")},Yn=Qn||function(ar,ur,mr){var dr=ar<12?"AM":"PM";return mr?dr.toLowerCase():dr};return Kn.replace(j,function(ar,ur){return ur||function(mr){switch(mr){case"YY":return String(sr.$y).slice(-2);case"YYYY":return Zn.s(sr.$y,4,"0");case"M":return Un+1;case"MM":return Zn.s(Un+1,2,"0");case"MMM":return fr(Hn.monthsShort,Un,cr,3);case"MMMM":return fr(cr,Un);case"D":return sr.$D;case"DD":return Zn.s(sr.$D,2,"0");case"d":return String(sr.$W);case"dd":return fr(Hn.weekdaysMin,sr.$W,nr,2);case"ddd":return fr(Hn.weekdaysShort,sr.$W,nr,3);case"dddd":return nr[sr.$W];case"H":return String(qn);case"HH":return Zn.s(qn,2,"0");case"h":return vr(1);case"hh":return vr(2);case"a":return Yn(qn,tr,!0);case"A":return Yn(qn,tr,!1);case"m":return String(tr);case"mm":return Zn.s(tr,2,"0");case"s":return String(sr.$s);case"ss":return Zn.s(sr.$s,2,"0");case"SSS":return Zn.s(sr.$ms,3,"0");case"Z":return zn}return null}(ar)||zn.replace(":","")})},ir.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ir.diff=function(or,sr,Hn){var Kn,zn=this,qn=Zn.p(sr),tr=Gn(or),Un=(tr.utcOffset()-this.utcOffset())*u,nr=this-tr,cr=function(){return Zn.m(zn,tr)};switch(qn){case gn:Kn=cr()/12;break;case y:Kn=cr();break;case b:Kn=cr()/3;break;case g:Kn=(nr-Un)/6048e5;break;case m:Kn=(nr-Un)/864e5;break;case p:Kn=nr/f;break;case v:Kn=nr/u;break;case h:Kn=nr/c;break;default:Kn=nr}return Hn?Kn:Zn.a(Kn)},ir.daysInMonth=function(){return this.endOf(y).$D},ir.$locale=function(){return Pn[this.$L]},ir.locale=function(or,sr){if(!or)return this.$L;var Hn=this.clone(),Kn=Wn(or,sr,!0);return Kn&&(Hn.$L=Kn),Hn},ir.clone=function(){return Zn.w(this.$d,this)},ir.toDate=function(){return new Date(this.valueOf())},ir.toJSON=function(){return this.isValid()?this.toISOString():null},ir.toISOString=function(){return this.$d.toISOString()},ir.toString=function(){return this.$d.toUTCString()},Jn}(),er=Xn.prototype;return Gn.prototype=er,[["$ms",d],["$s",h],["$m",v],["$H",p],["$W",m],["$M",y],["$y",gn],["$D",x]].forEach(function(Jn){er[Jn[1]]=function(ir){return this.$g(ir,Jn[0],Jn[1])}}),Gn.extend=function(Jn,ir){return Jn.$i||(Jn(ir,Xn,Gn),Jn.$i=!0),Gn},Gn.locale=Wn,Gn.isDayjs=Vn,Gn.unix=function(Jn){return Gn(1e3*Jn)},Gn.en=Pn[re],Gn.Ls=Pn,Gn.p={},Gn}()),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 v=me.call(u);return h&&(f?u[be]=d:delete u[be]),v}(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 Ve(c,u){var f=function(d,h){return d==null?void 0:d[h]}(c,u);return Ie(f)?f:void 0}var Fe=Ve(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=Ve(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,v,p){v=="__proto__"&&Ue?Ue(h,v,{configurable:!0,enumerable:!0,value:p,writable:!0}):h[v]=p}(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),v=!f&&!d&&!h&&ft(c),p=f||d||h||v,m=p?function(b,gn){for(var x=-1,vn=Array(b);++x<b;)vn[x]=gn(x);return vn}(c.length,String):[],g=m.length;for(var y in c)!pt.call(c,y)||p&&(y=="length"||h&&(y=="offset"||y=="parent")||v&&(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=Ve(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=Ve(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,v=0,p=[];++d<h;){var m=u[d];f(m,d,u)&&(p[v++]=m)}return p}(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(v,p){for(var m=-1,g=p.length,y=v.length;++m<g;)v[y+m]=p[m];return v}(h,d(u))}(c,gt,Dt)}var Et=Ve(fe,"DataView"),It=Ve(fe,"Promise"),Vt=Ve(fe,"Set"),Ft="[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(Vt),Bt=Te(Fe),Kt=xe;(Et&&Kt(new Et(new ArrayBuffer(1)))!=Pt||Ot&&Kt(new Ot)!=Ft||It&&Kt(It.resolve())!=zt||Vt&&Kt(new Vt)!=Rt||Fe&&Kt(new Fe)!=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 Ft;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,v,p,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((p=c).buffer),new p.constructor(m,p.byteOffset,p.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 b=Jt(y.buffer);return new y.constructor(b,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(v=new(h=c).constructor(h.source,Xt.exec(h))).lastIndex=h.lastIndex,v;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,v){var p;if(p!==void 0)return p;if(!Ae(c))return c;var m=Se(c);if(m)p=function(x){var vn=x.length,J=new x.constructor(vn);return vn&&typeof x[0]=="string"&&qt.call(x,"index")&&(J.index=x.index,J.input=x.input),J}(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)p=y?{}:function(x){return typeof x.constructor!="function"||qe(x)?{}:Re(Tt(x))}(c);else{if(!un[g])return h?c:{};p=tn(c,g)}}v||(v=new Nt);var b=v.get(c);if(b)return b;v.set(c,p),an(c)?c.forEach(function(x){p.add(dn(x,u,f,x,c,v))}):on(c)&&c.forEach(function(x,vn){p.set(vn,dn(x,u,f,vn,c,v))});var gn=m?void 0:Mt(c);return function(x,vn){for(var J=-1,j=x==null?0:x.length;++J<j&&vn(x[J],J,x)!==!1;);}(gn||c,function(x,vn){gn&&(x=c[vn=x]),He(p,vn,dn(x,u,f,vn,c,v))}),p}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 v=`function (${d}){return ${c}}`;let p;try{p=Function(`"use strict";return (${v})`)()(...h)}catch{return c}return p},hn=(c="",{textData:u,codeData:f}={},{useNewline:d=!1,useSpace:h=!1}={})=>{const v=window.config||{},p=Object.assign(Object.assign({},v),u),m=String(c||"").match(/\{(.+?)\}/g);if(m==null||m.length===0)return c;for(let g=0;g<m.length;g++){const y=m[g];let b=y.slice(1,-1).trim();const gn=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,x=b.match(gn);for(let vn=0;vn<x.length;vn++){const J=x[vn],j=p[J];j!=null&&typeof j!="function"&&(b=b.replace(J,j))}(/\(.*\)/g.test(b)||/[+/\\*]/g.test(b))&&(b=pn(b,f)),c=c.replace(y,b)}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:v=""}=c;if(h===5&&(f!=null&&f.length)&&(d!=null&&d.length)&&v){const p=f[0].split("-");(p==null?void 0:p.length)>1&&p[0]==="rangeValue"&&(c.calcWays=((m,g={})=>{const{around:y,unit:b,id:gn}=m;let x="";const{pageMode:vn="",componentList:J=[]}=(g==null?void 0:g.graphicConfig)||{};let j=null,Fn=null;if(vn==="design"){const Bn=J==null?void 0:J.find(Gn=>Gn.id===gn);if(!Bn)return[];const{interval:w,intervalUnit:re,startTime:Pn,endTime:Rn,operate:Vn,useCurrentTime:Wn}=Bn||{};if(Wn&&(j=ce().subtract(w,re),Fn=ce()),Pn&&(j=ce(Pn)),Rn&&(Fn=ce(Rn)),Vn){const{type:Gn,value:Zn,mode:Xn}=Vn;switch(Gn){case"add":j=j&&j.add(Zn,Xn),Fn=Fn&&Fn.add(Zn,Xn);break;case"minus":j=j&&j.subtract(Zn,Xn),Fn=Fn&&Fn.subtract(Zn,Xn)}}}else{const Bn=An(gn)||{};_(Bn.startTime)&&(j=ce(_(Bn.startTime))),_(Bn.endTime)&&(Fn=ce(_(Bn.endTime)))}return j&&Fn&&(x=`${y==="before"?"-":""}${Fn.diff(j,b.toLowerCase())+1}`),x?[x]:[]})({around:p[1],unit:d[0],id:v})),delete c.radioValue}if(mn(c,"dataType")){if(c.fieldType==="DATE"&&(c.label=c.fieldName),c.dataType==="component")if(c.fieldValue==="PARENT"){let p=c.modelKey;p&&c.prop&&(p+=`-${c.prop}`),c.fieldValue="${"+p+"}"}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(v=>v.join&&v.conditions);d.conditions.forEach((v,p)=>{_n(v,u);const m={};if(p<d.conditions.length-1&&(m.join=d.join),h)f.push(Object.assign(Object.assign({},m),v));else if(v.join&&v.conditions){const g=u?"sqlConditions":"conditions";f.push(Object.assign({[g]:jn([v],u)},m))}else f.push(Object.assign(Object.assign({},m),v))})}else _n(d,u),f.push(d)}),f},On=(c={},u)=>{if(c!=null&&c.sortCpnts&&u){const Rn=kn(c);Rn&&(u.sort=Rn)}const{label:f,name:d,location:h,show:v,indexCode:p,indexCodeNum:m,calcType:g="COLUMN",builtInFormula:y,builtInValueSource:b,builtInCalcWay:gn,formula:x,conditions:vn,aggregate:J,distinct:j,dimByCount:Fn,dataTo:Bn,sort:w}=c;let re;if(vn&&(re=jn(vn)),g==="COMPONENT"){const Rn={};return Nn(Rn,b),{label:f.trim(),columnName:d,show:v,calcType:g,componentAlias:gn,componentValue:Rn.fieldValue||null}}const Pn={label:f.trim(),columnName:d,location:h,show:v,calcType:Bn==="1"?"VIEW":g,hrpIndexCode:p,hrpIndexCodeNum:m,aggregate:J,builtInFormula:y,builtInValueSource:b,formula:x,conditions:re};if(w&&(Pn.sort={columnName:d,label:Pn.label,order:w,type:"NORMAL"}),y!=="DATE_OFFSET")return d==="the_count"&&(Pn.calcType="AGGREGATE",Pn.distinct=!!j,Pn.typeGuid=Fn),Object.assign(Object.assign({},Pn),{builtInCalcWay:gn});{const Rn=gn.split("-");if((Rn==null?void 0:Rn.length)===3){let Vn=Rn[0];return Rn[2]==="before"&&Rn[0]!=="0"&&(Vn=`-${Rn[0]}`),Object.assign(Object.assign({},Pn),{calcWays:[Vn],dateCalcTypes:[Rn[1]]})}}},Cn=c=>{if(!c)return[];const u=fn((c==null?void 0:c.controlList)||[]).filter(j=>j.conditionKey!=="parentCode"),{classificationList:f=[],rowHeaderList:d=[],dimensionList:h=[],seriesList:v=[],leftAxisList:p=[],rightAxisList:m=[],queryColumnList:g=[],indexLibColumns:y=[],indicators:b=[]}=c;Tn(u);const gn=[...f,...d,...h,...v,...p,...m,...g,...y,...b],x=[];for(const j of gn){const Fn=bn((j==null?void 0:j.conditions)||[]);if(Fn!=null&&Fn.length){const Bn=Fn.filter(w=>(w==null?void 0:w.dataType)==="component").map(w=>{const re={};return w!=null&&w.dateFormat&&(re.format=w.dateFormat),w.fieldValue==="PARENT"&&(re.id="PARENT",re.keyName=w.modelKey,re.modelKey=w.modelKey,re.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},re)});if(Bn!=null&&Bn.length)for(const w of Bn)x.find(re=>re.keyName===w.keyName)||x.push(w)}}const vn=x.length,J=u;for(let j=0;j<vn;j++){const Fn=x[j];if((Fn==null?void 0:Fn.conditionKey)==="parentCode")continue;const{id:Bn,keyName:w,prop:re,format:Pn,modelKey:Rn,dataType:Vn="component",customValue:Wn}=Fn,Gn=Ln(Fn);Nn(Gn,Bn,{prop:re,dateFormat:Pn,modelKey:Rn,keyName:w}),Vn===""&&(Gn.fieldValue=Wn||""),J.push(Gn)}for(let j=J.length-1;j>=0;j--){const Fn=J[j];Fn.globalCondition||bn(J).find(Bn=>Bn.alias===Fn.alias&&Bn.globalCondition)&&J.splice(j,1)}return J};function Ln(c){const{id:u,keyName:f,conditionLabel:d,conditionKey:h,conditionValueType:v,prop:p,rule:m="NONE",notGlobal:g=!1,indexCode:y,typeGuid:b,indexCodeNum:gn,dataType:x="component"}=c;let vn=f||u;vn&&p&&(vn+=`-${p}`);let J=m;return J==="NONE"&&(J=["startTime","endTime"].includes(p)?p==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":f!=null&&f.includes("startTime")?p==="GREATER_EQUAL":f!=null&&f.includes("endTime")?p==="LESS_EQUAL":"EQUAL"),u==="PARENT"&&(vn=c.modelKey,vn&&p&&(vn+=`-${p}`),J=m),{rule:J,label:d,fieldName:h,fieldValue:"",valueType:v,alias:vn,globalCondition:!g,indexCode:y,typeGuid:b,indexCodeNum:gn,dataType:x}}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:v,format:p,dataType:m="component",customValue:g}=u,y=Ln(u);Nn(y,f,{prop:h,dateFormat:p,modelKey:v,keyName:d}),m===""&&(y.fieldValue=g||"");for(const b in y)u[b]=y[b];for(const b of Sn)delete u[b]}}function Nn(c,u,f){const{prop:d="",dateFormat:h="",modelKey:v="",keyName:p="",operateValue:m,operateMode:g,operateType:y}=f||{},b=v||p;if(u==="PARENT"&&b&&d){const w=window.config.record;let re=d,Pn=h;const Rn=d.match(/\{(.+?)\}/g);if(Rn!=null&&Rn.length){const Vn=Rn[0].slice(1,-1).trim();re=d.replace(Rn[0],""),Pn=Vn,c.dateFormat=Pn}if(w&&w[b]){const Vn=_(w[b][re]);ce.isDayjs(Vn)?c.fieldValue=Vn.format(Pn||"YYYY-MM-DD"):c.fieldValue=Vn}return}const gn=An(u)||{},{value:x,format:vn="YYYY-MM-DD",type:J="",useCurrentTime:j,RECORD:Fn}=gn||{},Bn=h||vn;if(yn(J,"date")){let w;if(w=j?x?_(x):ce():_(x),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(J,"rangepicker")){let w=d;if(!d){const Pn=p&&p.split("-");Pn!=null&&Pn.length&&(w=Pn[Pn.length-1])}if(!w)return;let re=null;if(_(gn[w])&&(re=ce(_(gn[w]))),m&&g&&y){if(m==="rangeValue"){if(gn.startTime&&gn.endTime){const Pn=_(gn.endTime).diff(_(gn.startTime),g)+1;switch(y){case"add":re=re&&re.add(Pn,g);break;case"minus":re=re&&re.subtract(Pn,g)}}}else if(!isNaN(+m))switch(y){case"add":re=re&&re.add(m,g);break;case"minus":re=re&&re.subtract(m,g)}}if(re&&(c.fieldValue=re==null?void 0:re.format(Bn)),w==="rangeValue"&&gn.startTime&&gn.endTime){const Pn=function(Rn){const Vn=Rn.split("-");let Wn="";if(Vn!=null&&Vn.length)switch(Vn[Vn.length-1]){case"YYYY":Wn="year";break;case"MM":Wn="month";break;case"DD":Wn="day"}return Wn}(Bn);Pn&&(c.fieldValue=_(gn.endTime).diff(_(gn.startTime),Pn)+1)}c.dateFormat=Bn}else yn(J,xn)?c.fieldValue=v&&Fn?Fn[v]:!v&&Fn?Fn.value:_(x):yn(J,"select")&&Array.isArray(_(x))?c.fieldValue=_(x).join(","):c.fieldValue=_(x)}const $n=c=>{var u;if(c){const f=Array.isArray(c)?fn(c):[fn(c)];let d="",h=[];const v=[],p=[],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,v.push(g.label),(u=g.columnName)===null||u===void 0?void 0:u.includes("_ecanrepeat_")){const y=g.columnName.split("_ecanrepeat_");p.push(y[0])}else p.push(g.columnName);m.push(g.order)}return d!=="CUSTOM"&&(v==null?void 0:v.length)>1&&(d="COMBINATION"),d==="CUSTOM"?{label:v.join(","),columnName:p.join(","),type:d,customOrderColumns:h}:{label:v.join(","),columnName:p.join(","),order:m.join(","),type:d}}return c},kn=c=>{const{sortCpnts:u=[]}=c;let f,d="";for(const h of u){const v=An(h)||{},{type:p,RECORD:m}=v;if(yn(p,"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,v,p,m,g,y;const{graphicConfig:b,type:gn,globalModel:x,isGroupTable:vn=!1}=c;x&&(wn=x);const J=yn(gn,"pivottable");let j,{source:Fn,dataViewId:Bn,plugin:w="1",layer:re,chartType:Pn,classificationList:Rn=[],rowHeaderList:Vn=[],dimensionList:Wn=[],seriesList:Gn=[],leftAxisList:Zn=[],rightAxisList:Xn=[],queryColumnList:er=[],indexLibColumns:Jn=[],indicators:ir=[],controlList:or=[],formFields:sr={},variableList:Hn=[],variableConditions:Kn=[],dataSourceId:zn="",idxLibMode:qn,preview:tr=!1,edvDataSetId:Un,compositeIndicator:nr}=b||{},cr=[];if((b==null?void 0:b.pageMode)==="design"?(cr=((f=b.sqlConditions)!==null&&f!==void 0?f:[]).map(yr=>{const pr={};if(mn(yr,"globalCondition")||yr.join||(pr.globalCondition=!0),!yr.join){const br=yr.rule||"EQUAL";pr.rule=br==="NONE"?"EQUAL":br}return Object.assign(Object.assign({},yr),pr)}),Kn!=null&&Kn.length&&(cr=cr.concat(Kn))):(cr=Cn(b),Hn!=null&&Hn.length&&(cr=cr.concat(function(yr){const pr=[];if(yr!=null&&yr.length){for(const br of yr)if(br.variableName){const wr={variateName:br.variableName,globalCondition:!1,valueType:br.variableType,alias:br.keyName||""};Nn(wr,br.id,{dateFormat:br.format,prop:br.dateTypeValue,keyName:br.keyName,operateType:br.operateType,operateMode:br.operateMode,operateValue:br.operateValue}),br.dataType===""&&(wr.fieldValue=br.variableValue),br.format&&(wr.dateFormat=br.format),br.label&&(wr.label=br.label),pr.push(wr)}}return pr}(Hn)))),cr==null?void 0:cr.length){const yr=cr.filter(br=>br.globalCondition),pr=cr.filter(br=>!br.globalCondition);(yr==null?void 0:yr.length)>1&&(cr=[{join:"&&",conditions:yr},...pr])}cr!=null&&cr.length&&(cr=jn(cr,"1")),re==null&&(re=yn(gn,["table","card"])||yn(gn,["list","circulate"])&&(Rn==null?void 0:Rn.length)>1?"1":yn(gn,["select","checkbox","radio"])?"3":yn(gn,["indexPanel"])?"4":"2"),yn(gn,["indexPanel"])&&(w="3");const Qn=[];let fr,vr="";if(Array.isArray(Rn)&&Rn.length>0&&(!["ecanList","ecanCirculate"].includes(gn)||(Rn==null?void 0:Rn.length)===1)){const yr=Rn.length;for(let pr=0;pr<yr;pr++){const br=Rn[pr]||{},{label:wr="",name:kr="",show:Er=!1,sort:Ir,customGroup:Dr,conditions:qr,dateFormat:Rr,typeGuid:Fr="",truncations:jr=[]}=br;if(Er||yr===1){vr=Fr,j={label:wr.trim(),columnName:kr,show:Er,sort:kn(br)||$n(Ir)||Ir,customGroup:Dr,conditions:jn(qr),typeGuid:Fr},Rr&&(j.dateFormat=Rr),kr!=="the_date"||j.dateFormat||(j.dateFormat="YYYY-MM-DD");const Nr={};if(Array.isArray(jr)&&jr.length>0){const Ur=jr.length;for(let Qr=0;Qr<Ur;Qr++){const Wr=jr[Qr]||{},{rule:ri="",num:ei=0,name:Tr=""}=Wr;ri&&ei&&(Nr.num=ei,Nr.rule=ri,Tr&&(Nr.otherGroupName=Tr))}}if(!((d=Object.keys(Nr))===null||d===void 0)&&d.length&&(j.truncation=Nr),!yn(gn,["scatter","valueline"]))break;Qn.push(j)}}}if(Array.isArray(Gn)&&Gn.length>0){const yr=Gn.length;for(let pr=0;pr<yr;pr++){const br=Gn[pr]||{},{label:wr="",name:kr="",show:Er=!1,sort:Ir,customGroup:Dr,conditions:qr,typeGuid:Rr,dateFormat:Fr=""}=br;if(Er||yr===1){fr={label:wr.trim(),columnName:kr,show:Er,sort:$n(Ir),customGroup:Dr,conditions:jn(qr),typeGuid:Rr},Fr?fr.dateFormat=Fr:kr==="the_date"&&(fr.dateFormat="YYYY-MM-DD");break}}}const Yn=[];Zn==null||Zn.forEach(yr=>{yr.location="LEFT",Yn.push(On(yr,j))}),Xn==null||Xn.forEach(yr=>{yr.location="RIGHT",Yn.push(On(yr,j))});let ar=ir;u!=null&&u.pivotTableCal&&(ar=((h=u.pivotTableCal)===null||h===void 0?void 0:h.indicators)||[]),ar==null||ar.forEach(yr=>{yr.location="LEFT",Yn.push(On(yr,j))});const ur=[];["ecanList","ecanCirculate"].includes(gn)&&(Rn==null?void 0:Rn.length)>1&&(er=Rn),u!=null&&u.pivotTableCal&&(er=((v=u.pivotTableCal)===null||v===void 0?void 0:v.dimensions)||[]),er==null||er.forEach(yr=>{const{label:pr,name:br,location:wr,show:kr,indexCode:Er,sort:Ir,typeGuid:Dr,indexCodeNum:qr,dateFormat:Rr,conditions:Fr}=yr;let jr=$n(Ir);if(u.sort){const{field:Ur,order:Qr}=u.sort;let Wr=Yn.find(ri=>ri.label===Ur);Wr||pr!==Ur||(Wr=yr),Wr&&(jr={columnName:Wr.columnName,label:u.sort.field,order:Qr.toUpperCase(),type:"NORMAL"})}const Nr={label:pr,columnName:br,location:wr,show:kr,sort:jr,calcType:"COLUMN",hrpIndexCode:Er,hrpIndexCodeNum:qr,conditions:jn(Fr),typeGuid:Dr};Rr&&(Nr.dateFormat=Rr),br!=="the_date"||Nr.dateFormat||(Nr.dateFormat="YYYY-MM-DD"),ur.push(Nr)});const mr=[];["ecanTable"].includes(gn)&&b.isIndexSet&&Jn.forEach(yr=>{const pr={label:yr.label,calcType:yr.calcType,show:yr.show};yr.formula&&(pr.formula=yr.formula),mr.push(pr)});let dr=[],gr=[];if(Array.isArray(Vn)&&Vn.length>0?gr=Vn:Array.isArray(Wn)&&Wn.length>0&&(gr=Wn),gr==null?void 0:gr.length){const yr=gr.length;for(let pr=0;pr<yr;pr++){const br=gr[pr]||{},{label:wr="",name:kr="",show:Er=!1,sort:Ir,customGroup:Dr,conditions:qr,truncations:Rr,typeGuid:Fr="",dateFormat:jr}=br;let Nr=$n(Ir);if(u.sort){const{field:Wr,order:ri}=u.sort;let ei=Yn.find(Tr=>Tr.label===Wr);ei||br.label!==Wr||(ei=br),ei&&(Nr={columnName:ei.columnName,label:u.sort.field,order:ri.toUpperCase(),type:"NORMAL"})}const Ur={label:wr.trim(),columnName:kr,show:Er,sort:Nr,customGroup:Dr,conditions:jn(qr),typeGuid:Fr};jr&&(Ur.dateFormat=jr),kr!=="the_date"||Ur.dateFormat||(Ur.dateFormat="YYYY-MM-DD");const Qr={};if(Array.isArray(Rr)&&Rr.length>0){const Wr=Rr.length;for(let ri=0;ri<Wr;ri++){const ei=Rr[ri]||{},{rule:Tr="",num:Br=0,name:Lr=""}=ei;Tr&&Br&&(Qr.num=Br,Qr.rule=Tr,Lr&&(Qr.otherGroupName=Lr))}}!((p=Object.keys(Qr))===null||p===void 0)&&p.length&&(Ur.truncation=Qr),dr.push(Ur)}}let lr,hr=[];const xr=[];if(u!=null&&u.pivotTableCal){let yr=[];const{calc:pr=[],filter:br=[],truncations:wr=[],sorts:kr=[],aggregateMethod:Er=[],rowDimensionKeys:Ir=[],colDimensionKeys:Dr=[]}=u.pivotTableCal;if(Yn.push(...pr),br==null?void 0:br.length){const qr=function Rr(Fr){const jr=[];for(const Nr of Fr)Nr.conditions?jr.push(...Rr(Nr.conditions)):Nr.conditionKey==="the_date"&&jr.push(Nr);return jr}(or);for(const Rr of br){const{type:Fr}=Rr,jr=e(Rr,["type"]);Fr==="indicators"?yr=Yn:Fr==="dimension"&&(yr=ur);const Nr=yr.find(Ur=>Ur.columnName===Rr.fieldName&&Ur.label===Rr.label);if(Nr){if(Fr==="indicators")Nr.filter={rule:jr.rule,fieldValue:jr.fieldValue};else if(Fr==="dimension"){let Ur=!0;jr.fieldName==="the_date"&&(qr==null?void 0:qr.length)===2&&(Ur=!1,xr.push(jr)),Ur&&(Nr.conditions||(Nr.conditions=[]),Nr.conditions.push(jr))}}}}if(wr!=null&&wr.length)for(const qr of wr){const Rr=ur.find(Fr=>Fr.label===qr.key);Rr&&(Rr.truncation={num:qr.num,rule:qr.rule})}if(kr!=null&&kr.length)for(const qr of kr){const{fieldType:Rr,columnData:Fr}=qr,jr=e(qr,["fieldType","columnData"]);Rr==="indicators"?(yr=Yn,lr=Fr):Rr==="dimension"&&(yr=ur);const Nr=yr.find(Ur=>Ur.label===jr.label);Nr&&(Nr.sort=Object.assign(Object.assign({},jr),{columnName:Nr.columnName}))}if(!((m=Object.keys(Er))===null||m===void 0)&&m.length)for(const qr in Er){const Rr=ur.find(Fr=>Fr.label===qr);Rr&&(!((g=Er[qr])===null||g===void 0)&&g.length)&&(Rr.aggregateMethod=Er[qr])}dr=[],hr=[];for(const qr of ur)Ir.includes(qr.columnName)?dr.push(qr):Dr.includes(qr.columnName)&&hr.push(qr)}if(yn(gn,["text","proportion","counter"])?Pn="zb":yn(gn,["valueline"])?Pn="valueline":yn(gn,["indexPanel"])&&(Pn="indexPanel"),vn||gn==="card"){if(dr.length===0||Yn.length===0)return;Pn="grouptable"}else if(re==="1"&&!ur.length&&!mr.length||["2","4"].includes(re)&&Yn.length===0||!(re!=="3"||(vr||Fn==="EDV_DATA_SET")&&sr.labelField&&sr.valueField)||re==="3"&&gn==="ecanDataSelect"&&Yn.length===0)return;let Sr;if(Wn!=null&&Wn.length&&(re="1",Pn="grouptable"),!yn(gn,["scatter","valueline"])&&((y=Object.keys(sr))===null||y===void 0?void 0:y.length)){const yr=bn(or).find(br=>br.conditionKey==="parentCode"),pr={};if(yr){const br=An(yr.id)||{};if(!(br!=null&&br.itemCodes))return;pr.parentItemCodes=br.itemCodes}gn==="ecanDataSelect"&&(pr.indicatorList=Yn.filter(br=>br.show)),Fn==="EDV_DATA_SET"&&(pr.edvDataSetId=Un),j.sort&&(pr.sort=j.sort),Sr=Object.assign({url:"/diagram/formData",source:Fn,dataViewId:Bn,plugin:"4",layer:re,chartType:"normalSelect",rangeIndexTypeGuid:vr,type:gn==="ecanDataSelect"?"normalSelectData":"normalSelect",labelField:sr.labelField,valueField:sr.valueField,sqlConditions:cr,idxLibMode:"WITH_DATE_DIM_TABLE",dataSourceId:zn,keyName:c.keyName},pr)}else{let yr={};yr=yn(gn,["scatter","valueline"])?{classifications:Qn}:{classification:j},mr!=null&&mr.length&&(yr.indexLibColumns=mr,yr.isIndexSet=!0),yn(gn,"table")&&b.isIndexSet&&(yr.compositeIndicator=nr);const pr=cr.map(br=>{const{fieldValue:wr}=br,kr={};return wr&&Array.isArray(wr)&&(kr.fieldValue=JSON.stringify(wr)),Object.assign(Object.assign({},br),kr)});xr!=null&&xr.length&&function br(wr){for(const kr of wr)if(kr.sqlConditions)br(kr.sqlConditions);else if(kr.fieldName==="the_date"){const Er=xr.find(Ir=>Ir.prop===kr.prop);Er&&(kr.fieldValue=Er.fieldValue)}}(pr),Sr=Object.assign({url:"/diagram",source:Fn,dataViewId:Bn,plugin:J?"5":w,layer:re,chartType:J?"pivot-table":Pn,series:fr,indicatorList:Yn,queryColumns:vn?[]:ur,pageFlag:!0,edvDataSetId:Un||"",sqlConditions:pr,idxLibMode:qn,dataSourceId:zn,preview:tr,rowHeaders:dr,keyName:c.keyName,columnData:lr,columnHeaders:hr},yr)}return Sr},Mn=(c=[],u,f=!1)=>{let{name:d="name",types:h=[]}=u||{};d=(d==null?void 0:d.trim())||d;const v=new Set,p=new Map,m=c.length,g=h.length;if(m!==1||f)for(let gn=0;gn<m;gn++){const x=c[gn],vn=x[d];v.add(vn);for(let J=0;J<g;J++){const j=h[J],{label:Fn,value:Bn}=j,w=Object.assign(Object.assign({},x),{value:x[Bn]});if(p.has(Fn)){const re=p.get(Fn);re.push(w),p.set(Fn,re)}else p.set(Fn,[w])}}else{const gn=[];for(let vn=0;vn<g;vn++){const J=h[vn],{label:j,value:Fn}=J,Bn=Object.assign(Object.assign({},c[0]),{value:c[0][Fn]});v.add(j),gn.push(Bn)}const x=c[0][d]||"";p.set(x,gn)}const y=Array.from(v),b=[];for(const[gn,x]of p)b.push({name:gn,data:x});return{dimensions:y,dataset:b}},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 v=new Map,p=c.length;for(let y=0;y<p;y++){const b=c[y],gn=b[f]||"",x=b[d]||"",vn=b[h]||"";if(v.has(vn)){const J=v.get(vn);J.push(Object.assign({name:gn,value:x},b)),v.set(vn,J)}else v.set(vn,[Object.assign({name:gn,value:x},b)])}const m=[],g=[];for(const[y,b]of v)if(g.push({name:y,data:b}),b==null?void 0:b.length)if(m.length)for(const gn of b)m.includes(gn.name)||m.push(gn.name);else m.push(...b.map(gn=>gn.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 v=0;v<h;v++){const p=d[v];if(p==null||p==="")break;let m=(f=p.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(p,g)}catch{c=c.replace(p,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 p,m;const h=lodashEs.pick(c,d),v=["width","height","top","left"];for(const g of v)mn(h,g)&&(["width","height"].includes(g)&&((p=c[g])==null?void 0:p.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,v)=>{}});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:(p,m,g)=>{}}),h=vue.inject(COMMON_OPERATE,{operateAction:(p,m)=>{}}),{touchEventId:v}=vue.inject(GLOBAL_CONFIG,{touchEventId:vue.ref("")});return(p,m=()=>{},g)=>function(){m.call(this,...arguments);const{emitEvent:y}=d,{operateAction:b}=h;p==="click"&&!u.find(x=>x.on==="click")&&(!ignoreClickType.includes(c.type)&&c.dataType==="indicator"||c.parentId)&&b("SHOW_INDICATOR_DETAIL_MODAL",{props:c}),u.forEach(gn=>{if(p===gn.on)try{v.value=f,g?y(gn.target,gn.emit,g):y(gn.target,gn.emit)}catch(x){console.error(x)}})}};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 v;if(typeof window<"u"&&window.crypto&&(v=window.crypto),typeof self<"u"&&self.crypto&&(v=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(v=globalThis.crypto),!v&&typeof window<"u"&&window.msCrypto&&(v=window.msCrypto),!v&&typeof commonjsGlobal<"u"&&commonjsGlobal.crypto&&(v=commonjsGlobal.crypto),!v&&typeof commonjsRequire=="function")try{v=require$$0}catch{}var p=function(){if(v){if(typeof v.getRandomValues=="function")try{return v.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof v.randomBytes=="function")try{return v.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(re){var Pn;return w.prototype=re,Pn=new w,w.prototype=null,Pn}}(),g={},y=g.lib={},b=y.Base=function(){return{extend:function(w){var re=m(this);return w&&re.mixIn(w),(!re.hasOwnProperty("init")||this.init===re.init)&&(re.init=function(){re.$super.init.apply(this,arguments)}),re.init.prototype=re,re.$super=this,re},create:function(){var w=this.extend();return w.init.apply(w,arguments),w},init:function(){},mixIn:function(w){for(var re in w)w.hasOwnProperty(re)&&(this[re]=w[re]);w.hasOwnProperty("toString")&&(this.toString=w.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),gn=y.WordArray=b.extend({init:function(w,re){w=this.words=w||[],re!=h?this.sigBytes=re:this.sigBytes=w.length*4},toString:function(w){return(w||vn).stringify(this)},concat:function(w){var re=this.words,Pn=w.words,Rn=this.sigBytes,Vn=w.sigBytes;if(this.clamp(),Rn%4)for(var Wn=0;Wn<Vn;Wn++){var Gn=Pn[Wn>>>2]>>>24-Wn%4*8&255;re[Rn+Wn>>>2]|=Gn<<24-(Rn+Wn)%4*8}else for(var Zn=0;Zn<Vn;Zn+=4)re[Rn+Zn>>>2]=Pn[Zn>>>2];return this.sigBytes+=Vn,this},clamp:function(){var w=this.words,re=this.sigBytes;w[re>>>2]&=4294967295<<32-re%4*8,w.length=d.ceil(re/4)},clone:function(){var w=b.clone.call(this);return w.words=this.words.slice(0),w},random:function(w){for(var re=[],Pn=0;Pn<w;Pn+=4)re.push(p());return new gn.init(re,w)}}),x=g.enc={},vn=x.Hex={stringify:function(w){for(var re=w.words,Pn=w.sigBytes,Rn=[],Vn=0;Vn<Pn;Vn++){var Wn=re[Vn>>>2]>>>24-Vn%4*8&255;Rn.push((Wn>>>4).toString(16)),Rn.push((Wn&15).toString(16))}return Rn.join("")},parse:function(w){for(var re=w.length,Pn=[],Rn=0;Rn<re;Rn+=2)Pn[Rn>>>3]|=parseInt(w.substr(Rn,2),16)<<24-Rn%8*4;return new gn.init(Pn,re/2)}},J=x.Latin1={stringify:function(w){for(var re=w.words,Pn=w.sigBytes,Rn=[],Vn=0;Vn<Pn;Vn++){var Wn=re[Vn>>>2]>>>24-Vn%4*8&255;Rn.push(String.fromCharCode(Wn))}return Rn.join("")},parse:function(w){for(var re=w.length,Pn=[],Rn=0;Rn<re;Rn++)Pn[Rn>>>2]|=(w.charCodeAt(Rn)&255)<<24-Rn%4*8;return new gn.init(Pn,re)}},j=x.Utf8={stringify:function(w){try{return decodeURIComponent(escape(J.stringify(w)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(w){return J.parse(unescape(encodeURIComponent(w)))}},Fn=y.BufferedBlockAlgorithm=b.extend({reset:function(){this._data=new gn.init,this._nDataBytes=0},_append:function(w){typeof w=="string"&&(w=j.parse(w)),this._data.concat(w),this._nDataBytes+=w.sigBytes},_process:function(w){var re,Pn=this._data,Rn=Pn.words,Vn=Pn.sigBytes,Wn=this.blockSize,Gn=Wn*4,Zn=Vn/Gn;w?Zn=d.ceil(Zn):Zn=d.max((Zn|0)-this._minBufferSize,0);var Xn=Zn*Wn,er=d.min(Xn*4,Vn);if(Xn){for(var Jn=0;Jn<Xn;Jn+=Wn)this._doProcessBlock(Rn,Jn);re=Rn.splice(0,Xn),Pn.sigBytes-=er}return new gn.init(re,er)},clone:function(){var w=b.clone.call(this);return w._data=this._data.clone(),w},_minBufferSize:0});y.Hasher=Fn.extend({cfg:b.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 re=this._doFinalize();return re},blockSize:16,_createHelper:function(w){return function(re,Pn){return new w.init(Pn).finalize(re)}},_createHmacHelper:function(w){return function(re,Pn){return new Bn.HMAC.init(w,Pn).finalize(re)}}});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,v=h.lib,p=v.Base,m=v.WordArray,g=h.x64={};g.Word=p.extend({init:function(y,b){this.high=y,this.low=b}}),g.WordArray=p.extend({init:function(y,b){y=this.words=y||[],b!=d?this.sigBytes=b:this.sigBytes=y.length*8},toX32:function(){for(var y=this.words,b=y.length,gn=[],x=0;x<b;x++){var vn=y[x];gn.push(vn.high),gn.push(vn.low)}return m.create(gn,this.sigBytes)},clone:function(){for(var y=p.clone.call(this),b=y.words=this.words.slice(0),gn=b.length,x=0;x<gn;x++)b[x]=b[x].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,v=h.WordArray,p=v.init,m=v.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,b=[],gn=0;gn<y;gn++)b[gn>>>2]|=g[gn]<<24-gn%4*8;p.call(this,b,y)}else p.apply(this,arguments)};m.prototype=v}}(),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,v=h.WordArray,p=d.enc;p.Utf16=p.Utf16BE={stringify:function(g){for(var y=g.words,b=g.sigBytes,gn=[],x=0;x<b;x+=2){var vn=y[x>>>2]>>>16-x%4*8&65535;gn.push(String.fromCharCode(vn))}return gn.join("")},parse:function(g){for(var y=g.length,b=[],gn=0;gn<y;gn++)b[gn>>>1]|=g.charCodeAt(gn)<<16-gn%2*16;return v.create(b,y*2)}},p.Utf16LE={stringify:function(g){for(var y=g.words,b=g.sigBytes,gn=[],x=0;x<b;x+=2){var vn=m(y[x>>>2]>>>16-x%4*8&65535);gn.push(String.fromCharCode(vn))}return gn.join("")},parse:function(g){for(var y=g.length,b=[],gn=0;gn<y;gn++)b[gn>>>1]|=m(g.charCodeAt(gn)<<16-gn%2*16);return v.create(b,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,v=h.WordArray,p=d.enc;p.Base64={stringify:function(g){var y=g.words,b=g.sigBytes,gn=this._map;g.clamp();for(var x=[],vn=0;vn<b;vn+=3)for(var J=y[vn>>>2]>>>24-vn%4*8&255,j=y[vn+1>>>2]>>>24-(vn+1)%4*8&255,Fn=y[vn+2>>>2]>>>24-(vn+2)%4*8&255,Bn=J<<16|j<<8|Fn,w=0;w<4&&vn+w*.75<b;w++)x.push(gn.charAt(Bn>>>6*(3-w)&63));var re=gn.charAt(64);if(re)for(;x.length%4;)x.push(re);return x.join("")},parse:function(g){var y=g.length,b=this._map,gn=this._reverseMap;if(!gn){gn=this._reverseMap=[];for(var x=0;x<b.length;x++)gn[b.charCodeAt(x)]=x}var vn=b.charAt(64);if(vn){var J=g.indexOf(vn);J!==-1&&(y=J)}return m(g,y,gn)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function m(g,y,b){for(var gn=[],x=0,vn=0;vn<y;vn++)if(vn%4){var J=b[g.charCodeAt(vn-1)]<<vn%4*2,j=b[g.charCodeAt(vn)]>>>6-vn%4*2,Fn=J|j;gn[x>>>2]|=Fn<<24-x%4*8,x++}return v.create(gn,x)}}(),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,v=h.WordArray,p=d.enc;p.Base64url={stringify:function(g,y=!0){var b=g.words,gn=g.sigBytes,x=y?this._safe_map:this._map;g.clamp();for(var vn=[],J=0;J<gn;J+=3)for(var j=b[J>>>2]>>>24-J%4*8&255,Fn=b[J+1>>>2]>>>24-(J+1)%4*8&255,Bn=b[J+2>>>2]>>>24-(J+2)%4*8&255,w=j<<16|Fn<<8|Bn,re=0;re<4&&J+re*.75<gn;re++)vn.push(x.charAt(w>>>6*(3-re)&63));var Pn=x.charAt(64);if(Pn)for(;vn.length%4;)vn.push(Pn);return vn.join("")},parse:function(g,y=!0){var b=g.length,gn=y?this._safe_map:this._map,x=this._reverseMap;if(!x){x=this._reverseMap=[];for(var vn=0;vn<gn.length;vn++)x[gn.charCodeAt(vn)]=vn}var J=gn.charAt(64);if(J){var j=g.indexOf(J);j!==-1&&(b=j)}return m(g,b,x)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function m(g,y,b){for(var gn=[],x=0,vn=0;vn<y;vn++)if(vn%4){var J=b[g.charCodeAt(vn-1)]<<vn%4*2,j=b[g.charCodeAt(vn)]>>>6-vn%4*2,Fn=J|j;gn[x>>>2]|=Fn<<24-x%4*8,x++}return v.create(gn,x)}}(),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,v=h.lib,p=v.WordArray,m=v.Hasher,g=h.algo,y=[];(function(){for(var j=0;j<64;j++)y[j]=d.abs(d.sin(j+1))*4294967296|0})();var b=g.MD5=m.extend({_doReset:function(){this._hash=new p.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(j,Fn){for(var Bn=0;Bn<16;Bn++){var w=Fn+Bn,re=j[w];j[w]=(re<<8|re>>>24)&16711935|(re<<24|re>>>8)&4278255360}var Pn=this._hash.words,Rn=j[Fn+0],Vn=j[Fn+1],Wn=j[Fn+2],Gn=j[Fn+3],Zn=j[Fn+4],Xn=j[Fn+5],er=j[Fn+6],Jn=j[Fn+7],ir=j[Fn+8],or=j[Fn+9],sr=j[Fn+10],Hn=j[Fn+11],Kn=j[Fn+12],zn=j[Fn+13],qn=j[Fn+14],tr=j[Fn+15],Un=Pn[0],nr=Pn[1],cr=Pn[2],Qn=Pn[3];Un=gn(Un,nr,cr,Qn,Rn,7,y[0]),Qn=gn(Qn,Un,nr,cr,Vn,12,y[1]),cr=gn(cr,Qn,Un,nr,Wn,17,y[2]),nr=gn(nr,cr,Qn,Un,Gn,22,y[3]),Un=gn(Un,nr,cr,Qn,Zn,7,y[4]),Qn=gn(Qn,Un,nr,cr,Xn,12,y[5]),cr=gn(cr,Qn,Un,nr,er,17,y[6]),nr=gn(nr,cr,Qn,Un,Jn,22,y[7]),Un=gn(Un,nr,cr,Qn,ir,7,y[8]),Qn=gn(Qn,Un,nr,cr,or,12,y[9]),cr=gn(cr,Qn,Un,nr,sr,17,y[10]),nr=gn(nr,cr,Qn,Un,Hn,22,y[11]),Un=gn(Un,nr,cr,Qn,Kn,7,y[12]),Qn=gn(Qn,Un,nr,cr,zn,12,y[13]),cr=gn(cr,Qn,Un,nr,qn,17,y[14]),nr=gn(nr,cr,Qn,Un,tr,22,y[15]),Un=x(Un,nr,cr,Qn,Vn,5,y[16]),Qn=x(Qn,Un,nr,cr,er,9,y[17]),cr=x(cr,Qn,Un,nr,Hn,14,y[18]),nr=x(nr,cr,Qn,Un,Rn,20,y[19]),Un=x(Un,nr,cr,Qn,Xn,5,y[20]),Qn=x(Qn,Un,nr,cr,sr,9,y[21]),cr=x(cr,Qn,Un,nr,tr,14,y[22]),nr=x(nr,cr,Qn,Un,Zn,20,y[23]),Un=x(Un,nr,cr,Qn,or,5,y[24]),Qn=x(Qn,Un,nr,cr,qn,9,y[25]),cr=x(cr,Qn,Un,nr,Gn,14,y[26]),nr=x(nr,cr,Qn,Un,ir,20,y[27]),Un=x(Un,nr,cr,Qn,zn,5,y[28]),Qn=x(Qn,Un,nr,cr,Wn,9,y[29]),cr=x(cr,Qn,Un,nr,Jn,14,y[30]),nr=x(nr,cr,Qn,Un,Kn,20,y[31]),Un=vn(Un,nr,cr,Qn,Xn,4,y[32]),Qn=vn(Qn,Un,nr,cr,ir,11,y[33]),cr=vn(cr,Qn,Un,nr,Hn,16,y[34]),nr=vn(nr,cr,Qn,Un,qn,23,y[35]),Un=vn(Un,nr,cr,Qn,Vn,4,y[36]),Qn=vn(Qn,Un,nr,cr,Zn,11,y[37]),cr=vn(cr,Qn,Un,nr,Jn,16,y[38]),nr=vn(nr,cr,Qn,Un,sr,23,y[39]),Un=vn(Un,nr,cr,Qn,zn,4,y[40]),Qn=vn(Qn,Un,nr,cr,Rn,11,y[41]),cr=vn(cr,Qn,Un,nr,Gn,16,y[42]),nr=vn(nr,cr,Qn,Un,er,23,y[43]),Un=vn(Un,nr,cr,Qn,or,4,y[44]),Qn=vn(Qn,Un,nr,cr,Kn,11,y[45]),cr=vn(cr,Qn,Un,nr,tr,16,y[46]),nr=vn(nr,cr,Qn,Un,Wn,23,y[47]),Un=J(Un,nr,cr,Qn,Rn,6,y[48]),Qn=J(Qn,Un,nr,cr,Jn,10,y[49]),cr=J(cr,Qn,Un,nr,qn,15,y[50]),nr=J(nr,cr,Qn,Un,Xn,21,y[51]),Un=J(Un,nr,cr,Qn,Kn,6,y[52]),Qn=J(Qn,Un,nr,cr,Gn,10,y[53]),cr=J(cr,Qn,Un,nr,sr,15,y[54]),nr=J(nr,cr,Qn,Un,Vn,21,y[55]),Un=J(Un,nr,cr,Qn,ir,6,y[56]),Qn=J(Qn,Un,nr,cr,tr,10,y[57]),cr=J(cr,Qn,Un,nr,er,15,y[58]),nr=J(nr,cr,Qn,Un,zn,21,y[59]),Un=J(Un,nr,cr,Qn,Zn,6,y[60]),Qn=J(Qn,Un,nr,cr,Hn,10,y[61]),cr=J(cr,Qn,Un,nr,Wn,15,y[62]),nr=J(nr,cr,Qn,Un,or,21,y[63]),Pn[0]=Pn[0]+Un|0,Pn[1]=Pn[1]+nr|0,Pn[2]=Pn[2]+cr|0,Pn[3]=Pn[3]+Qn|0},_doFinalize:function(){var j=this._data,Fn=j.words,Bn=this._nDataBytes*8,w=j.sigBytes*8;Fn[w>>>5]|=128<<24-w%32;var re=d.floor(Bn/4294967296),Pn=Bn;Fn[(w+64>>>9<<4)+15]=(re<<8|re>>>24)&16711935|(re<<24|re>>>8)&4278255360,Fn[(w+64>>>9<<4)+14]=(Pn<<8|Pn>>>24)&16711935|(Pn<<24|Pn>>>8)&4278255360,j.sigBytes=(Fn.length+1)*4,this._process();for(var Rn=this._hash,Vn=Rn.words,Wn=0;Wn<4;Wn++){var Gn=Vn[Wn];Vn[Wn]=(Gn<<8|Gn>>>24)&16711935|(Gn<<24|Gn>>>8)&4278255360}return Rn},clone:function(){var j=m.clone.call(this);return j._hash=this._hash.clone(),j}});function gn(j,Fn,Bn,w,re,Pn,Rn){var Vn=j+(Fn&Bn|~Fn&w)+re+Rn;return(Vn<<Pn|Vn>>>32-Pn)+Fn}function x(j,Fn,Bn,w,re,Pn,Rn){var Vn=j+(Fn&w|Bn&~w)+re+Rn;return(Vn<<Pn|Vn>>>32-Pn)+Fn}function vn(j,Fn,Bn,w,re,Pn,Rn){var Vn=j+(Fn^Bn^w)+re+Rn;return(Vn<<Pn|Vn>>>32-Pn)+Fn}function J(j,Fn,Bn,w,re,Pn,Rn){var Vn=j+(Bn^(Fn|~w))+re+Rn;return(Vn<<Pn|Vn>>>32-Pn)+Fn}h.MD5=m._createHelper(b),h.HmacMD5=m._createHmacHelper(b)}(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,v=h.WordArray,p=h.Hasher,m=d.algo,g=[],y=m.SHA1=p.extend({_doReset:function(){this._hash=new v.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(b,gn){for(var x=this._hash.words,vn=x[0],J=x[1],j=x[2],Fn=x[3],Bn=x[4],w=0;w<80;w++){if(w<16)g[w]=b[gn+w]|0;else{var re=g[w-3]^g[w-8]^g[w-14]^g[w-16];g[w]=re<<1|re>>>31}var Pn=(vn<<5|vn>>>27)+Bn+g[w];w<20?Pn+=(J&j|~J&Fn)+1518500249:w<40?Pn+=(J^j^Fn)+1859775393:w<60?Pn+=(J&j|J&Fn|j&Fn)-1894007588:Pn+=(J^j^Fn)-899497514,Bn=Fn,Fn=j,j=J<<30|J>>>2,J=vn,vn=Pn}x[0]=x[0]+vn|0,x[1]=x[1]+J|0,x[2]=x[2]+j|0,x[3]=x[3]+Fn|0,x[4]=x[4]+Bn|0},_doFinalize:function(){var b=this._data,gn=b.words,x=this._nDataBytes*8,vn=b.sigBytes*8;return gn[vn>>>5]|=128<<24-vn%32,gn[(vn+64>>>9<<4)+14]=Math.floor(x/4294967296),gn[(vn+64>>>9<<4)+15]=x,b.sigBytes=gn.length*4,this._process(),this._hash},clone:function(){var b=p.clone.call(this);return b._hash=this._hash.clone(),b}});d.SHA1=p._createHelper(y),d.HmacSHA1=p._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,v=h.lib,p=v.WordArray,m=v.Hasher,g=h.algo,y=[],b=[];(function(){function vn(Bn){for(var w=d.sqrt(Bn),re=2;re<=w;re++)if(!(Bn%re))return!1;return!0}function J(Bn){return(Bn-(Bn|0))*4294967296|0}for(var j=2,Fn=0;Fn<64;)vn(j)&&(Fn<8&&(y[Fn]=J(d.pow(j,1/2))),b[Fn]=J(d.pow(j,1/3)),Fn++),j++})();var gn=[],x=g.SHA256=m.extend({_doReset:function(){this._hash=new p.init(y.slice(0))},_doProcessBlock:function(vn,J){for(var j=this._hash.words,Fn=j[0],Bn=j[1],w=j[2],re=j[3],Pn=j[4],Rn=j[5],Vn=j[6],Wn=j[7],Gn=0;Gn<64;Gn++){if(Gn<16)gn[Gn]=vn[J+Gn]|0;else{var Zn=gn[Gn-15],Xn=(Zn<<25|Zn>>>7)^(Zn<<14|Zn>>>18)^Zn>>>3,er=gn[Gn-2],Jn=(er<<15|er>>>17)^(er<<13|er>>>19)^er>>>10;gn[Gn]=Xn+gn[Gn-7]+Jn+gn[Gn-16]}var ir=Pn&Rn^~Pn&Vn,or=Fn&Bn^Fn&w^Bn&w,sr=(Fn<<30|Fn>>>2)^(Fn<<19|Fn>>>13)^(Fn<<10|Fn>>>22),Hn=(Pn<<26|Pn>>>6)^(Pn<<21|Pn>>>11)^(Pn<<7|Pn>>>25),Kn=Wn+Hn+ir+b[Gn]+gn[Gn],zn=sr+or;Wn=Vn,Vn=Rn,Rn=Pn,Pn=re+Kn|0,re=w,w=Bn,Bn=Fn,Fn=Kn+zn|0}j[0]=j[0]+Fn|0,j[1]=j[1]+Bn|0,j[2]=j[2]+w|0,j[3]=j[3]+re|0,j[4]=j[4]+Pn|0,j[5]=j[5]+Rn|0,j[6]=j[6]+Vn|0,j[7]=j[7]+Wn|0},_doFinalize:function(){var vn=this._data,J=vn.words,j=this._nDataBytes*8,Fn=vn.sigBytes*8;return J[Fn>>>5]|=128<<24-Fn%32,J[(Fn+64>>>9<<4)+14]=d.floor(j/4294967296),J[(Fn+64>>>9<<4)+15]=j,vn.sigBytes=J.length*4,this._process(),this._hash},clone:function(){var vn=m.clone.call(this);return vn._hash=this._hash.clone(),vn}});h.SHA256=m._createHelper(x),h.HmacSHA256=m._createHmacHelper(x)}(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,v=h.WordArray,p=d.algo,m=p.SHA256,g=p.SHA224=m.extend({_doReset:function(){this._hash=new v.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,v=h.Hasher,p=d.x64,m=p.Word,g=p.WordArray,y=d.algo;function b(){return m.create.apply(m,arguments)}var gn=[b(1116352408,3609767458),b(1899447441,602891725),b(3049323471,3964484399),b(3921009573,2173295548),b(961987163,4081628472),b(1508970993,3053834265),b(2453635748,2937671579),b(2870763221,3664609560),b(3624381080,2734883394),b(310598401,1164996542),b(607225278,1323610764),b(1426881987,3590304994),b(1925078388,4068182383),b(2162078206,991336113),b(2614888103,633803317),b(3248222580,3479774868),b(3835390401,2666613458),b(4022224774,944711139),b(264347078,2341262773),b(604807628,2007800933),b(770255983,1495990901),b(1249150122,1856431235),b(1555081692,3175218132),b(1996064986,2198950837),b(2554220882,3999719339),b(2821834349,766784016),b(2952996808,2566594879),b(3210313671,3203337956),b(3336571891,1034457026),b(3584528711,2466948901),b(113926993,3758326383),b(338241895,168717936),b(666307205,1188179964),b(773529912,1546045734),b(1294757372,1522805485),b(1396182291,2643833823),b(1695183700,2343527390),b(1986661051,1014477480),b(2177026350,1206759142),b(2456956037,344077627),b(2730485921,1290863460),b(2820302411,3158454273),b(3259730800,3505952657),b(3345764771,106217008),b(3516065817,3606008344),b(3600352804,1432725776),b(4094571909,1467031594),b(275423344,851169720),b(430227734,3100823752),b(506948616,1363258195),b(659060556,3750685593),b(883997877,3785050280),b(958139571,3318307427),b(1322822218,3812723403),b(1537002063,2003034995),b(1747873779,3602036899),b(1955562222,1575990012),b(2024104815,1125592928),b(2227730452,2716904306),b(2361852424,442776044),b(2428436474,593698344),b(2756734187,3733110249),b(3204031479,2999351573),b(3329325298,3815920427),b(3391569614,3928383900),b(3515267271,566280711),b(3940187606,3454069534),b(4118630271,4000239992),b(116418474,1914138554),b(174292421,2731055270),b(289380356,3203993006),b(460393269,320620315),b(685471733,587496836),b(852142971,1086792851),b(1017036298,365543100),b(1126000580,2618297676),b(1288033470,3409855158),b(1501505948,4234509866),b(1607167915,987167468),b(1816402316,1246189591)],x=[];(function(){for(var J=0;J<80;J++)x[J]=b()})();var vn=y.SHA512=v.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(J,j){for(var Fn=this._hash.words,Bn=Fn[0],w=Fn[1],re=Fn[2],Pn=Fn[3],Rn=Fn[4],Vn=Fn[5],Wn=Fn[6],Gn=Fn[7],Zn=Bn.high,Xn=Bn.low,er=w.high,Jn=w.low,ir=re.high,or=re.low,sr=Pn.high,Hn=Pn.low,Kn=Rn.high,zn=Rn.low,qn=Vn.high,tr=Vn.low,Un=Wn.high,nr=Wn.low,cr=Gn.high,Qn=Gn.low,fr=Zn,vr=Xn,Yn=er,ar=Jn,ur=ir,mr=or,dr=sr,gr=Hn,lr=Kn,hr=zn,xr=qn,Sr=tr,yr=Un,pr=nr,br=cr,wr=Qn,kr=0;kr<80;kr++){var Er,Ir,Dr=x[kr];if(kr<16)Ir=Dr.high=J[j+kr*2]|0,Er=Dr.low=J[j+kr*2+1]|0;else{var qr=x[kr-15],Rr=qr.high,Fr=qr.low,jr=(Rr>>>1|Fr<<31)^(Rr>>>8|Fr<<24)^Rr>>>7,Nr=(Fr>>>1|Rr<<31)^(Fr>>>8|Rr<<24)^(Fr>>>7|Rr<<25),Ur=x[kr-2],Qr=Ur.high,Wr=Ur.low,ri=(Qr>>>19|Wr<<13)^(Qr<<3|Wr>>>29)^Qr>>>6,ei=(Wr>>>19|Qr<<13)^(Wr<<3|Qr>>>29)^(Wr>>>6|Qr<<26),Tr=x[kr-7],Br=Tr.high,Lr=Tr.low,Hr=x[kr-16],Or=Hr.high,Gr=Hr.low;Er=Nr+Lr,Ir=jr+Br+(Er>>>0<Nr>>>0?1:0),Er=Er+ei,Ir=Ir+ri+(Er>>>0<ei>>>0?1:0),Er=Er+Gr,Ir=Ir+Or+(Er>>>0<Gr>>>0?1:0),Dr.high=Ir,Dr.low=Er}var Zr=lr&xr^~lr&yr,ni=hr&Sr^~hr&pr,ci=fr&Yn^fr&ur^Yn&ur,ai=vr&ar^vr&mr^ar&mr,vi=(fr>>>28|vr<<4)^(fr<<30|vr>>>2)^(fr<<25|vr>>>7),ui=(vr>>>28|fr<<4)^(vr<<30|fr>>>2)^(vr<<25|fr>>>7),pi=(lr>>>14|hr<<18)^(lr>>>18|hr<<14)^(lr<<23|hr>>>9),ki=(hr>>>14|lr<<18)^(hr>>>18|lr<<14)^(hr<<23|lr>>>9),xi=gn[kr],Si=xi.high,Ci=xi.low,si=wr+ki,di=br+pi+(si>>>0<wr>>>0?1:0),si=si+ni,di=di+Zr+(si>>>0<ni>>>0?1:0),si=si+Ci,di=di+Si+(si>>>0<Ci>>>0?1:0),si=si+Er,di=di+Ir+(si>>>0<Er>>>0?1:0),wi=ui+ai,yi=vi+ci+(wi>>>0<ui>>>0?1:0);br=yr,wr=pr,yr=xr,pr=Sr,xr=lr,Sr=hr,hr=gr+si|0,lr=dr+di+(hr>>>0<gr>>>0?1:0)|0,dr=ur,gr=mr,ur=Yn,mr=ar,Yn=fr,ar=vr,vr=si+wi|0,fr=di+yi+(vr>>>0<si>>>0?1:0)|0}Xn=Bn.low=Xn+vr,Bn.high=Zn+fr+(Xn>>>0<vr>>>0?1:0),Jn=w.low=Jn+ar,w.high=er+Yn+(Jn>>>0<ar>>>0?1:0),or=re.low=or+mr,re.high=ir+ur+(or>>>0<mr>>>0?1:0),Hn=Pn.low=Hn+gr,Pn.high=sr+dr+(Hn>>>0<gr>>>0?1:0),zn=Rn.low=zn+hr,Rn.high=Kn+lr+(zn>>>0<hr>>>0?1:0),tr=Vn.low=tr+Sr,Vn.high=qn+xr+(tr>>>0<Sr>>>0?1:0),nr=Wn.low=nr+pr,Wn.high=Un+yr+(nr>>>0<pr>>>0?1:0),Qn=Gn.low=Qn+wr,Gn.high=cr+br+(Qn>>>0<wr>>>0?1:0)},_doFinalize:function(){var J=this._data,j=J.words,Fn=this._nDataBytes*8,Bn=J.sigBytes*8;j[Bn>>>5]|=128<<24-Bn%32,j[(Bn+128>>>10<<5)+30]=Math.floor(Fn/4294967296),j[(Bn+128>>>10<<5)+31]=Fn,J.sigBytes=j.length*4,this._process();var w=this._hash.toX32();return w},clone:function(){var J=v.clone.call(this);return J._hash=this._hash.clone(),J},blockSize:1024/32});d.SHA512=v._createHelper(vn),d.HmacSHA512=v._createHmacHelper(vn)}(),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,v=h.Word,p=h.WordArray,m=d.algo,g=m.SHA512,y=m.SHA384=g.extend({_doReset:function(){this._hash=new p.init([new v.init(3418070365,3238371032),new v.init(1654270250,914150663),new v.init(2438529370,812702999),new v.init(355462360,4144912697),new v.init(1731405415,4290775857),new v.init(2394180231,1750603025),new v.init(3675008525,1694076839),new v.init(1203062813,3204075428)])},_doFinalize:function(){var b=g._doFinalize.call(this);return b.sigBytes-=16,b}});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,v=h.lib,p=v.WordArray,m=v.Hasher,g=h.x64,y=g.Word,b=h.algo,gn=[],x=[],vn=[];(function(){for(var Fn=1,Bn=0,w=0;w<24;w++){gn[Fn+5*Bn]=(w+1)*(w+2)/2%64;var re=Bn%5,Pn=(2*Fn+3*Bn)%5;Fn=re,Bn=Pn}for(var Fn=0;Fn<5;Fn++)for(var Bn=0;Bn<5;Bn++)x[Fn+5*Bn]=Bn+(2*Fn+3*Bn)%5*5;for(var Rn=1,Vn=0;Vn<24;Vn++){for(var Wn=0,Gn=0,Zn=0;Zn<7;Zn++){if(Rn&1){var Xn=(1<<Zn)-1;Xn<32?Gn^=1<<Xn:Wn^=1<<Xn-32}Rn&128?Rn=Rn<<1^113:Rn<<=1}vn[Vn]=y.create(Wn,Gn)}})();var J=[];(function(){for(var Fn=0;Fn<25;Fn++)J[Fn]=y.create()})();var j=b.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,re=this.blockSize/2,Pn=0;Pn<re;Pn++){var Rn=Fn[Bn+2*Pn],Vn=Fn[Bn+2*Pn+1];Rn=(Rn<<8|Rn>>>24)&16711935|(Rn<<24|Rn>>>8)&4278255360,Vn=(Vn<<8|Vn>>>24)&16711935|(Vn<<24|Vn>>>8)&4278255360;var Wn=w[Pn];Wn.high^=Vn,Wn.low^=Rn}for(var Gn=0;Gn<24;Gn++){for(var Zn=0;Zn<5;Zn++){for(var Xn=0,er=0,Jn=0;Jn<5;Jn++){var Wn=w[Zn+5*Jn];Xn^=Wn.high,er^=Wn.low}var ir=J[Zn];ir.high=Xn,ir.low=er}for(var Zn=0;Zn<5;Zn++)for(var or=J[(Zn+4)%5],sr=J[(Zn+1)%5],Hn=sr.high,Kn=sr.low,Xn=or.high^(Hn<<1|Kn>>>31),er=or.low^(Kn<<1|Hn>>>31),Jn=0;Jn<5;Jn++){var Wn=w[Zn+5*Jn];Wn.high^=Xn,Wn.low^=er}for(var zn=1;zn<25;zn++){var Xn,er,Wn=w[zn],qn=Wn.high,tr=Wn.low,Un=gn[zn];Un<32?(Xn=qn<<Un|tr>>>32-Un,er=tr<<Un|qn>>>32-Un):(Xn=tr<<Un-32|qn>>>64-Un,er=qn<<Un-32|tr>>>64-Un);var nr=J[x[zn]];nr.high=Xn,nr.low=er}var cr=J[0],Qn=w[0];cr.high=Qn.high,cr.low=Qn.low;for(var Zn=0;Zn<5;Zn++)for(var Jn=0;Jn<5;Jn++){var zn=Zn+5*Jn,Wn=w[zn],fr=J[zn],vr=J[(Zn+1)%5+5*Jn],Yn=J[(Zn+2)%5+5*Jn];Wn.high=fr.high^~vr.high&Yn.high,Wn.low=fr.low^~vr.low&Yn.low}var Wn=w[0],ar=vn[Gn];Wn.high^=ar.high,Wn.low^=ar.low}},_doFinalize:function(){var Fn=this._data,Bn=Fn.words;this._nDataBytes*8;var w=Fn.sigBytes*8,re=this.blockSize*32;Bn[w>>>5]|=1<<24-w%32,Bn[(d.ceil((w+1)/re)*re>>>5)-1]|=128,Fn.sigBytes=Bn.length*4,this._process();for(var Pn=this._state,Rn=this.cfg.outputLength/8,Vn=Rn/8,Wn=[],Gn=0;Gn<Vn;Gn++){var Zn=Pn[Gn],Xn=Zn.high,er=Zn.low;Xn=(Xn<<8|Xn>>>24)&16711935|(Xn<<24|Xn>>>8)&4278255360,er=(er<<8|er>>>24)&16711935|(er<<24|er>>>8)&4278255360,Wn.push(er),Wn.push(Xn)}return new p.init(Wn,Rn)},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(j),h.HmacSHA3=m._createHmacHelper(j)}(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,8 +99,8 @@ 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 v of u){const p=v[0],m=v[1];m instanceof Blob?f.append(p,m):d[p]=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(v=>(v==null?void 0:v.calcType)==="COMPONENT").map(v=>({keyName:v.builtInCalcWay,id:v.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 p;const f=c.match(/\{(.+?)\}/g),d=((p=c.split(`
101
101
  `))==null?void 0:p.length)-1;let h="";if(d)for(let m=0;m<d;m++)h+=`
102
- `;let v=c;if(f!=null&&f.length){for(const m of f){const g=hn(m,{textData:u},{useNewline:!1,useSpace:!1});g&&(v=v.replace(m,g))}return`${h}{text|${v}}`}else return c},setDefaultRangeVal=(c,u)=>{const{props:f,componentList:d,getGlobalModel:h}=c,{graphicConfig:v={},startValue:p,endValue:m}=f,g=getdefCompleteData({graphicConfig:v,startValue:p,endValue:m,componentList:d,getGlobalModel:h}),{dimensions:y,dataset:b}=u,{classificationList:gn=[]}=v,vn=gn.find(J=>J.show).label||"";for(const J of g)!y.find(j=>+j==+J)&&!isNaN(+J)&&y.push(+J);y.sort((J,j)=>dayjs(J).isBefore(dayjs(j))?-1:1);for(const J of b){const{data:j}=J;if(j!=null&&j.length){const Fn=[];for(const Bn of g)if(!j.find(w=>+w[vn]==+Bn)&&!isNaN(+Bn)){const w=lodashEs.cloneDeep(j[0]);for(const re in w)re===vn?w[re]=+Bn:w[re]=0;Fn.push(w)}J.data.push(...Fn),J.data.sort((Bn,w)=>dayjs(Bn[vn]).isBefore(dayjs(w[vn]))?-1:1)}}};function getdefCompleteData(c){const{startValue:u,endValue:f,componentList:d,graphicConfig:h,getGlobalModel:v}=c,p=getVariableAndField(u),m=getVariableAndField(f),g=[];if(p&&m){const y=d.find(gn=>gn.keyName===p.keyName),b=d.find(gn=>gn.keyName===m.keyName);if(y&&b){const gn=v(y.id),x=v(b.id),{classificationList:vn=[]}=h,J=vn.find(j=>j.show);if(J){let j="YYYY-MM";switch(J.name){case"the_year":j="YYYY";break;case"the_month":j="MM";break;case"the_day":j="DD";break;case"the_date":j=(J==null?void 0:J.dateFormat)||j;break}const Fn=getFormatStep(j);if(j){const Bn=vue.unref(gn[p.field]),w=vue.unref(x[m.field]);let re=dayjs(Bn);const Pn=dayjs(w);for(g.push(Pn.format(j));re.isBefore(Pn);)g.push(re.format(j)),re=re.add(1,Fn)}}}}return g}function getVariableAndField(c){let u=null;if(c){const f=c.match(/\{(.+?)\}/g);if(f!=null&&f.length){let d=f[0].slice(1,-1).trim();const h=d.match(/\[(.+?)\]/g);let v="";h!=null&&h.length&&(d=d.replace(h[0],""),v=h[0].slice(1,-1).trim()),u={keyName:d,field:v}}}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 gn;const{pageMode:f,targetTemplate:d,getRecordValueByKeyName:h,setTemplateData:v}=u,p=c.linkPage||"",m=usePageUrl(f,p),g=c.href;let y=g||m;y=hn(y);const b=c.target;if(b)if(b==="event")window.parent.postMessage({type:"openPage",url:g},"*");else{const x={pageId:p,componentId:d};if((gn=c.transParams)!=null&&gn.length){y.includes("?")?y+="&":y+="?";const vn=[];for(const J of c.transParams){const j=h(String(J.fieldName));vn.push(`${J.keyName}=${j}`),x[J.keyName]=j}y+=vn.join("&")}b==="template"?(Object.prototype.hasOwnProperty.call(window,"oldPageId")||(window.oldPageId=""),window.oldPageId&&(window.controller.abort(),window.controller=new AbortController),window.oldPageId=p,v(x)):(b==="blank"&&(y+=`${y.includes("?")?"&":"?"}drillFlag=1`),window.open(y,"_"+b))}}function getPageUrlParams(c){var f,d;let u={};if(c){const h=(((f=window.config)==null?void 0:f.urlParams)||{})[c]||{};for(const v in h)v.includes("{")||(u[v]=h[v])}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 v in h[c]){const p=h[c][v];if(v===`{${u}[${f}]}`&&p){d=p;break}}return d}function getFormatWh(c,u){return typeof c=="number"?c: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,v=d.getBoundingClientRect(),{width:p,left:m,top:g}=v,y=window.innerWidth,b=window.innerHeight,gn=c.clientX,x=c.clientY,vn=parseFloat(d.style.left)||0,J=parseFloat(d.style.top)||0,j=-(m+p-h-vn),Fn=y-m+vn-h,Bn=-(g-J),w=b-g+J-h,re=Rn=>{Rn.preventDefault();const Vn=Rn.clientX-gn,Wn=Rn.clientY-x;let Gn=vn+Vn,Zn=J+Wn;Gn=Math.max(j,Math.min(Gn,Fn)),Zn=Math.max(Bn,Math.min(Zn,w)),d.style.left=`${Gn}px`,d.style.top=`${Zn}px`},Pn=()=>{f.style.cursor="",f.style.userSelect="",document.removeEventListener("mousemove",re),document.removeEventListener("mouseup",Pn)};document.addEventListener("mousemove",re),document.addEventListener("mouseup",Pn)},getPageId=()=>{var u;let c=((u=window==null?void 0:window.config)==null?void 0:u.pageId)||"";if(!c){const{pathname:f}=window==null?void 0:window.location;if(f){const d=f.split("/");d!=null&&d.length&&(c=d[d.length-1])}}return c},useRequestData=(c,u,f=()=>{})=>{var ir;const{requestUrl:d,requestMethod:h,requestHeaders:v,requestParams:p,requestInterval:m,isOpenRequestTimer:g,openCustomRequestData:y,projectRequestUrl:b="",getModel:gn,requestParamsMode:x,customRequestParams:vn,dataSetParam:J,requestType:j,dataType:Fn,dataSetchecked:Bn}=c,{pageMode:w}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"})||{},{pageId:re}=vue.inject("templateOperate",{pageId:""})||{},{contextRequestUrl:Pn,touchEventId:Rn}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:"",touchEventId:""})||{},{getGlobalModel:Vn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:or=>{}})||{},Wn=vue.inject(COMMON_OPERATE,{operateAction:(or,sr)=>{}}),Gn=gn||Vn;let Zn=hn(d),Xn=vue.unref(Pn)||b||"";(Fn==="request"&&Bn||j===1)&&(Xn="",Zn=((ir=window.config)==null?void 0:ir.dataSetUrl)||"/api/datav/dataset/data2");const er=async(or={})=>{var cr;if(vue.unref(w)==="design")return;if(Fn!=="request"&&Jn){clearInterval(Jn);return}if(!Zn||!h||!v)return;let sr={};for(const Qn of p){const{key:fr,value:vr}=Qn;if((vr==null?void 0:vr.id)==="PARENT"&&(vr!=null&&vr.prop)){const ar=(((cr=window.config)==null?void 0:cr.record)||{})[vr.prop];if(ar){const ur=ar[vr.propKey||"value"];ur&&(["date","range"].some(dr=>yn(ar==null?void 0:ar.type,dr))?sr[fr]=vue.unref(ur).format(ar.format||"YYYY-MM-DD"):sr[fr]=vue.unref(ur))}continue}if(typeof vr=="object"&&vr!=null&&vr.id){let Yn={};const{id:ar,prop:ur,propKey:mr,operate:dr}=vr;let gr=!1;try{JSON.parse(ar),gr=!0}catch{gr=!1}ar==="THIS"?Yn=Gn(vue.unref(Rn))||{}:Yn=Gn(ar)||{};const lr=vue.unref(Yn[ur]);let hr=null;if(["date","range"].some(Sr=>yn(Yn==null?void 0:Yn.type,Sr))){const{value:Sr,type:yr,mode:pr}=dr||{};if(Sr&&yr&&pr)switch(yr){case"add":hr=vue.unref(lr).add(Sr,pr);break;case"minus":hr=vue.unref(lr).subtract(Sr,pr);break}hr==null&&(hr=vue.unref(lr)),hr=hr&&(hr==null?void 0:hr.format((mr==null?void 0:mr.trim())||Yn.format))||""}else if(Object.prototype.toString.call(lr)==="[object Object]")mr?hr=lr[mr]:hr=ur?lr[ur]:lr;else if(yn(Yn==null?void 0:Yn.type,"select")&&vue.unref(lr)&&ur&&Array.isArray(vue.unref(lr)))hr=vue.unref(lr).map(Sr=>Object.prototype.hasOwnProperty.call(Sr,ur)?Sr[ur]:Sr);else if(gr){const Sr=JSON.parse(ar);console.log(Sr,"urlvalue"),hr=Sr.value}else hr=lr;sr[fr]=hr}else typeof vr=="object"&&!vr.id&&j===1?(console.log(vr.propKey,"value.propKey"),sr[fr]=vr.propKey):typeof vr=="string"&&(sr[fr]=hn(vr))}if(j===1){console.log(sr,"_params");const Qn=Object.entries(sr);let fr=J;if(!J.param&&Array.isArray(J)){const vr={};for(const Yn of J)vr[Yn.key]=Yn.value;fr=vr}fr.param=fr.param.map((vr,Yn)=>({...vr,paramKey:Qn[Yn][0],defaultValue:Qn[Yn][1]||""})),sr=fr}if(x==="2"&&vn!=="{}"){const Qn=JSON.parse(vn);Hn(Qn),Qn&&(sr=Qn)}function Hn(Qn){const fr={...sr,...getPageUrlParams(re)};if(Array.isArray(Qn))Qn.forEach((vr,Yn)=>{if(typeof vr=="string"){const ar=vr.match(/\${(.+?)\}/g);if(ar!=null&&ar.length){const ur=ar[0].slice(2,-1);ur&&fr[ur]?Qn[Yn]=fr[ur]:Qn[Yn]=""}}else Hn(vr)});else if(Object.prototype.toString.call(Qn)==="[object Object]")for(const vr in Qn)if(typeof Qn[vr]=="string"){const Yn=Qn[vr].match(/\${(.+?)\}/g);if(Yn!=null&&Yn.length){const ar=Yn[0].slice(2,-1);ar&&fr[ar]?Qn[vr]=fr[ar]:Qn[vr]=""}}else Hn(Qn[vr])}const Kn=getPageUrlParams(re);for(const Qn in Kn)Kn[Qn]&&(Kn[Qn]=decodeURIComponent(Kn[Qn]));sr={...Kn,...or,...sr};let zn="";const qn=Object.keys(sr),tr=qn.length-1,Un=qn.length;qn.forEach((Qn,fr)=>{let vr=sr[Qn];Object.prototype.toString.call(vr)==="[object Object]"&&(vr=JSON.stringify(vr)),fr===0?Un!==1?zn+=`?${Qn}=${vr}&`:zn+=`?${Qn}=${vr}`:fr===tr?zn+=`${Qn}=${vr}`:zn+=`${Qn}=${vr}&`}),Zn.includes("?")&&(zn=zn.replace("?","&"));function nr(Qn){var fr;if(j===1)return{Authentication:(fr=window==null?void 0:window.config)==null?void 0:fr.indicatorToken};if(typeof Qn=="string"){const vr=JSON.parse(Qn),Yn=getPageUrlParams(re);if(Object.prototype.toString.call(vr)==="[object Object]"){for(const ar in vr)if(typeof vr[ar]=="string"){const ur=vr[ar].match(/\${(.+?)\}/g);if(ur!=null&&ur.length){const mr=ur[0].slice(2,-1);mr&&Yn[mr]?vr[ar]=Yn[mr]:vr[ar]=""}}}return vr}else return Qn}try{const Qn=["get","head"].includes(h),fr={};let vr=Qn?Zn+zn:Zn;sr.dataSqlId&&!vr.includes("dataSqlId")&&(vr+=`${vr.includes("?")?"&":"?"}dataSqlId=${sr.dataSqlId}`),Object.prototype.hasOwnProperty.call(sr,"signal")?fr.signal=sr.signal:window.controller&&(fr.signal=window.controller.signal);const Yn=await request({baseURL:Xn,url:vr,method:h,headers:v?nr(v):{},data:Qn?{}:sr,...fr});return f(Yn),Wn.operateAction("SAVE_COMPONENT_RES_DATA",{id:c.id,data:(Yn==null?void 0:Yn.data)||{}}),Yn}catch(Qn){console.error(Qn)}},Jn=vue.unref(w)!=="design"&&g&&(y||y===void 0)&&setInterval(er,m*1e3);return vue.onUnmounted(()=>{clearInterval(Jn)}),er},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 b;const{pageMode:f}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),{requestToken:d}=vue.inject(GLOBAL_TOKEN,{requestToken:()=>{}}),{setLoadedData:h}=vue.inject(LOADED_DATA,{setLoadedData:(gn,x)=>{}}),{getAllGlobalModel:v}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),{pageId:p}=vue.inject("templateOperate",{pageId:""})||{},m=vue.inject(COMMON_OPERATE,{operateAction:(gn,x)=>{}});c.dataType==="indicator"&&d();const g=async(gn={})=>{var re,Pn,Rn,Vn,Wn;if(vue.unref(f)==="design")return;const x=v();h(c.id,!1);const vn=Dn({...c,globalModel:x},gn),{url:J,...j}=vn||{},{pathname:Fn,search:Bn}=window==null?void 0:window.location;let w=p||((re=window==null?void 0:window.config)==null?void 0:re.pageId);if(!w&&Fn){const Gn=Fn.split("/");Gn!=null&&Gn.length&&(w=Gn[Gn.length-1])}if(J&&j){let Gn,Zn;if(c.type==="ecanIndexPanel"&&(Gn=c.theFlag),["/diagram/formData","/diagram"].includes(J)){Zn={};const er=Bn.slice(1,Bn.length).split("&");for(const Jn of er)if(Jn){const ir=Jn.split("=");if(ir[0])if(ir[0]==="userInfo")try{Zn.token=(Rn=(Pn=JSON.parse(decodeURIComponent(ir[1])))==null?void 0:Pn.baseInfo)==null?void 0:Rn.hrpToken}catch(or){console.log(or)}else Zn[ir[0]]=ir[1]}}try{const Xn=await request({url:`${INDICATOR_URL}${J}`,method:"post",headers:{Authentication:(Vn=window==null?void 0:window.config)==null?void 0:Vn.indicatorToken,operateContext:CONTEXT},data:{...j,pageId:w,theFlag:Gn,extParam:Zn},signal:((Wn=window.controller)==null?void 0:Wn.signal)||""});return gn!=null&&gn.isTimer&&u(Xn),m.operateAction("SAVE_COMPONENT_RES_DATA",{id:c.id,data:(Xn==null?void 0:Xn.data)||{}}),Xn}catch(Xn){console.error(Xn)}}},y=vue.unref(f)!=="design"&&((b=c==null?void 0:c.graphicConfig)==null?void 0:b.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 v=u[h];if(v==null||v==="")continue;const p=v.split("=");if(Array.isArray(p)){const m=p[0];m.includes("{")||(d[m]=p[1])}}window.config.requestParams={...window.config.requestParams,...d},window.config={...window.config,...d}},_sfc_main$B=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",Rn=>{}),v=vue.inject("isMobile",!1),p=vue.computed(()=>{const Rn={};return(!d.value||!v)&&(Rn.width=u.value,Rn.height=f.value),{...Rn,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),b=vue.ref(0),gn=vue.ref(!1),x=vue.ref();let vn;const J=()=>new Promise(Rn=>{vue.nextTick(()=>{u.value&&f.value?(m.value=parseFloat(u.value),g.value=parseFloat(f.value)):(m.value=x.value.clientWidth,g.value=x.value.clientHeight),(!y.value||!b.value)&&(y.value=window.screen.width,b.value=window.screen.height),Rn()})}),j=()=>{m.value&&g.value?(x.value.style.width=`${m.value}px`,x.value.style.height=`${g.value}px`):(x.value.style.width=`${y.value}px`,x.value.style.height=`${b.value}px`)};vue.watch([u,f],async()=>{c.pageId||(await J(),j(),Bn(),window.addEventListener("resize",w),re()),gn.value=!0},{immediate:!0});const Fn=vue.ref({});vue.provide("scaleValue",Fn);const Bn=()=>{if(d.value&&v){x.value.style.width="100%",x.value.style.height="auto",h("auto");return}const Rn=document.body.clientWidth,Vn=document.body.clientHeight,Wn=m.value||y.value,Gn=g.value||b.value,Zn=Rn/Wn;let Xn=Vn/Gn;(m.value!==1920||g.value!==1080)&&(Xn=g.value/m.value*Rn/Gn),Fn.value={widthScale:Zn,heightScale:Xn},x.value&&(x.value.style.transform=`scale(${Zn}, ${Xn})`),h(Fn.value)},w=lodashEs.debounce(async()=>{await J(),Bn()},100),re=()=>{const Rn=window.MutationObserver;vn=new Rn(w),vn.observe(x.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},Pn=()=>{vn&&(vn.disconnect(),vn.takeRecords(),vn=null)};return vue.onMounted(()=>{gn.value=!1}),vue.onUnmounted(()=>{window.removeEventListener("resize",w),Pn()}),{style:p,container:x,ready:gn}}}),PageConfig_vue_vue_type_style_index_0_scoped_44a453d9_lang="",_hoisted_1$p=["id"],_hoisted_2$e=["id"];function _sfc_render$G(c,u,f,d,h,v){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$e)):vue.createCommentVNode("",!0)],8,_hoisted_1$p)}const PageConfig=_export_sfc$1(_sfc_main$B,[["render",_sfc_render$G],["__scopeId","data-v-44a453d9"]]),EcanPageConfig=withInstall$1(PageConfig),providerConfig={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px",pageFontFamily:"",textColor:"",jumpType:"page",jumpTime:null,jumpPage:"",jumpLink:"",requestList:[],events:[],isCompatible:!0,variableList:[],drillingMode:"pivotTable",pivotTableFontSize:"16px",drillDetailUrl:""},providerConfigComponentProps=transformToComponentProps(providerConfig),_sfc_main$A=vue.defineComponent({name:"IndicatorDetailModal",components:{BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1,CloseOutlined:CloseOutlined$1,ZoomInOutlined:ZoomInOutlined$1,ZoomOutOutlined:ZoomOutOutlined$1,RedoOutlined:RedoOutlined$1},props:{theme:{type:String,default:"light"}},setup(c,{expose:u}){const f=vue.ref(!1),d=vue.ref([]),h=vue.ref(!1),v=vue.ref(),p=vue.ref(!1),m=vue.ref(1),g=vue.inject("isMobile",!1),y=vue.computed(()=>c.theme),b=vue.computed(()=>m.value!==1?{transform:`scale(${m.value})`,transformOrigin:"left top"}:{}),gn=async({data:Vn,indicatorUrl:Wn,indicatorToken:Gn,context:Zn,pageId:Xn})=>{var or,sr;h.value=!0,f.value=!0;let er=[];const{graphicConfig:Jn,theFlag:ir}=vue.unref(Vn)||{};if(Jn){const{leftAxisList:Hn=[],rightAxisList:Kn=[],indicators:zn=[]}=Jn,qn=Hn.concat(Kn).concat(zn);qn!=null&&qn.length&&(er=qn.map(tr=>({calcType:tr.calcType||"COLUMN",columnName:tr.name,hrpIndexCode:tr.indexCode,hrpIndexCodeNum:tr.indexCodeNum,label:tr.label,show:tr.show,formula:tr.formula})))}if(er!=null&&er.length)try{const Hn=await request({url:`${vue.unref(Wn)}/diagram/obtainIndicatorInfo`,method:"post",headers:{Authentication:Gn,operateContext:Zn},data:{source:"INDICATOR_LIB",pageId:Xn,indicatorList:er,theFlag:ir}}),Kn=((or=Hn==null?void 0:Hn.data)==null?void 0:or.data)||[];(sr=Kn[0])!=null&&sr.remark?(v.value=Kn[0].remark,d.value=[]):(v.value=null,d.value=Kn)}catch{}finally{h.value=!1}vue.nextTick(()=>{J(!0),j(!0)})},x=()=>document.querySelector("#ProviderConfig > #container")||document.body,vn=vue.computed(()=>{let Vn="detail-modal";return(p.value||vue.unref(g))&&(Vn+=" full",vue.unref(g)&&(Vn+=" mobile")),vue.unref(y)==="darkBlue"&&(Vn+=" darkBlue"),Vn}),J=Vn=>{const Wn=document.querySelector(".detail-modal .ant-modal-header");Wn&&(Vn?Wn.addEventListener("dblclick",Bn):Wn.removeEventListener("dblclick",Bn))},j=Vn=>{const Wn=document.querySelector(".detail-modal .ant-modal-header");if(Wn)if(Vn)Wn.addEventListener("mousedown",Fn);else{const Gn=Wn.parentElement;Gn&&(Gn.style.left="",Gn.style.top=""),Wn.removeEventListener("mousedown",Fn)}};function Fn(Vn){dragModalAction(Vn,".detail-modal .ant-modal-header")}const Bn=()=>{p.value=!p.value,vue.nextTick(()=>{p.value?j(!1):j(!0)})},w=()=>{vue.unref(g)||(p.value=!1),J(!1),j(!1)},re=()=>{m.value+=.5},Pn=()=>{vue.unref(m)>1&&(m.value-=.5)},Rn=()=>{m.value=1};return vue.watch(m,Vn=>{localStorage.setItem("indDetailZoom",String(Vn))}),vue.watch(f,Vn=>{Vn?document.documentElement.style.overflow="hidden":document.documentElement.style.overflow="hidden auto"}),vue.onMounted(()=>{var Wn,Gn;const Vn=localStorage.getItem("indDetailZoom");if(Vn&&(m.value=+Vn),vue.unref(g)){const Zn=document.querySelector("#ProviderConfig > #container");p.value=!0,(Wn=Zn==null?void 0:Zn.style)==null||Wn.setProperty("--window-screen-width",document.body.clientWidth+"px"),(Gn=Zn==null?void 0:Zn.style)==null||Gn.setProperty("--window-screen-height",document.body.clientHeight+"px")}}),u({showModal:gn}),{visible:f,dataList:d,isLoading:h,hasOwn:mn,remarkData:v,wrapClassName:vn,isIndFullScreen:p,infoStyle:b,indDetailZoom:m,isMobile:g,getContainer:x,toggleFullScreen:Bn,onDetailCancel:w,handleZoomIn:re,handleZoomOut:Pn,handleResetZoom:Rn}}}),IndicatorDetailModal_vue_vue_type_style_index_0_scoped_321c1810_lang="",IndicatorDetailModal_vue_vue_type_style_index_1_lang="",_withScopeId$7=c=>(vue.pushScopeId("data-v-321c1810"),c=c(),vue.popScopeId(),c),_hoisted_1$o=_withScopeId$7(()=>vue.createElementVNode("div",{class:"modal-title"},"指标详情",-1)),_hoisted_2$d={class:"zoom-btn"},_hoisted_3$7={key:0,class:"spin-container"},_hoisted_4$5=["innerHTML"],_hoisted_5$4={class:"index-name"},_hoisted_6$4={key:0,class:"card-row"},_hoisted_7$4=_withScopeId$7(()=>vue.createElementVNode("div",{class:"label"},"计量单位:",-1)),_hoisted_8$4={class:"content"},_hoisted_9$3={key:1,class:"card-row"},_hoisted_10$3=_withScopeId$7(()=>vue.createElementVNode("div",{class:"label"},"指标定义:",-1)),_hoisted_11$3={class:"content"},_hoisted_12$3={key:2,class:"card-row"},_hoisted_13$3=_withScopeId$7(()=>vue.createElementVNode("div",{class:"label"},"计算方法:",-1)),_hoisted_14$3={class:"content"},_hoisted_15$2={key:3,class:"card-row"},_hoisted_16$1=_withScopeId$7(()=>vue.createElementVNode("div",{class:"label"},"指标说明:",-1)),_hoisted_17$1={class:"content"};function _sfc_render$F(c,u,f,d,h,v){const p=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("redo-outlined"),g=vue.resolveComponent("zoom-out-outlined"),y=vue.resolveComponent("zoom-in-outlined"),b=vue.resolveComponent("switcher-outlined"),gn=vue.resolveComponent("border-outlined"),x=vue.resolveComponent("a-spin"),vn=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(vn,{visible:c.visible,"onUpdate:visible":u[0]||(u[0]=J=>c.visible=J),width:"55%",getContainer:c.getContainer,footer:null,destroyOnClose:!0,bodyStyle:{maxHeight:c.isIndFullScreen?"":"70vh",height:c.isIndFullScreen?"100vh":"",overflow:"auto",padding:"20px 24px 24px"},"wrap-class-name":c.wrapClassName,onCancel:c.onDetailCancel},{title:vue.withCtx(()=>[_hoisted_1$o]),closeIcon:vue.withCtx(()=>[vue.createVNode(p,{class:vue.normalizeClass(["close-icon",c.theme])},null,8,["class"])]),default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$d,[c.indDetailZoom>1?(vue.openBlock(),vue.createBlock(m,{key:0,class:"modal-icon",title:"还原",onClick:c.handleResetZoom},null,8,["onClick"])):vue.createCommentVNode("",!0),c.indDetailZoom>1?(vue.openBlock(),vue.createBlock(g,{key:1,class:"modal-icon",title:"缩小内容",onClick:c.handleZoomOut},null,8,["onClick"])):vue.createCommentVNode("",!0),vue.createVNode(y,{class:"modal-icon",title:"放大内容",onClick:vue.withModifiers(c.handleZoomIn,["stop","prevent"])},null,8,["onClick"]),!c.isMobile&&c.isIndFullScreen?(vue.openBlock(),vue.createBlock(b,{key:2,class:vue.normalizeClass(["modal-icon",c.theme]),title:"取消全屏",onClick:c.toggleFullScreen},null,8,["class","onClick"])):c.isMobile?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(gn,{key:3,class:vue.normalizeClass(["modal-icon",c.theme]),title:"全屏",onClick:c.toggleFullScreen},null,8,["class","onClick"]))]),c.isLoading?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$7,[vue.createVNode(x,{size:"large"})])):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"info-container",style:vue.normalizeStyle(c.infoStyle)},[c.remarkData?(vue.openBlock(),vue.createElementBlock("div",{key:0,innerHTML:c.remarkData},null,8,_hoisted_4$5)):c.dataList.length?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:1},vue.renderList(c.dataList,(J,j)=>(vue.openBlock(),vue.createElementBlock("div",{class:"detail-wrap",key:j},[vue.createElementVNode("div",_hoisted_5$4,vue.toDisplayString(J.indexName||"--"),1),c.hasOwn(J,"theUnit")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$4,[_hoisted_7$4,vue.createElementVNode("div",_hoisted_8$4,vue.toDisplayString(J.theUnit||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(J,"meaning")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_9$3,[_hoisted_10$3,vue.createElementVNode("div",_hoisted_11$3,vue.toDisplayString(J.meaning||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(J,"theFormula")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_12$3,[_hoisted_13$3,vue.createElementVNode("div",_hoisted_14$3,vue.toDisplayString(J.theFormula||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(J,"theExplain")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_15$2,[_hoisted_16$1,vue.createElementVNode("div",_hoisted_17$1,vue.toDisplayString(J.theExplain||"--"),1)])):vue.createCommentVNode("",!0)]))),128)):vue.createCommentVNode("",!0)],4))]),_:1},8,["visible","getContainer","bodyStyle","wrap-class-name","onCancel"])}const IndicatorDetailModal=_export_sfc$1(_sfc_main$A,[["render",_sfc_render$F],["__scopeId","data-v-321c1810"]]),lineProps={...props$1,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:"",isForbidClick:!1},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"),v=new Blob([f]),p=document.createElement("a"),m=window.URL.createObjectURL(v);p.href=m,p.download=decodeURI(h),p.style.display="none",document.body.appendChild(p),p.click(),(g=p.parentNode)==null||g.removeChild(p),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=[],pageConfig:d={}}=c,h=lodashEs.cloneDeep(c.componentList),v=h.filter(p=>p.type==="ecanTabs"&&p.isAutoScroll);if(v!=null&&v.length)for(const p of v){const m=u[p.id],g=[];if((!mn(p,"componentList")||!(p!=null&&p.componentList))&&(p.componentList=[]),m){let y=0;for(const b in m){const gn=m[b],x=[];if(gn!=null&&gn.length)for(const vn of gn){let J=h.find(j=>j.id===vn);J||(J=f.find(j=>j.id===vn)),J&&(x.push(J),containerType.includes(J.type)&&x.push(...getComponentByContainer(J.id,u,f)))}for(const vn of x)mn(vn,"scale")?parseFloat(b)>0&&(vn.left=parseFloat(vn.left)+y+"px"):(vn.left=parseFloat(vn.sourceLeft||vn.left)-parseFloat(p.sourceLeft||p.left)+y+"px",vn.top=parseFloat(vn.sourceTop||vn.top)-parseFloat(p.sourceTop||p.top)+"px"),g.includes(vn.id)||g.push(vn.id);p.componentList.push(...x),y=getMaxLeftInComponents(x,d)}}for(const y of g){const b=h.findIndex(gn=>gn.id===y);b!==-1&&h.splice(b,1)}}return h}function compatibleMobileList(c){var m,g,y;const u=document.body.clientWidth,{combinationMap:f={},sourceList:d=[],pageConfig:h={}}=c,v=c.containerMap,p=lodashEs.cloneDeep([...c.componentList,...getTabsSomeComponentList(v,d)]);if(handleContainerMap(v,p),(m=Object.keys(v))!=null&&m.length||(g=Object.keys(f))!=null&&g.length){for(const j in v){const Fn=p.find(Bn=>Bn.id===j);if(Fn){if(Fn!=null&&Fn.isFlowGrid){Fn.sourceLeft=Fn.left,Fn.sourceTop=Fn.top;continue}mn(Fn,"parentId")||(Fn.parentId="",Fn.sourceLeft=Fn.left,Fn.sourceTop=Fn.top);for(const Bn in v[j])if(v[j][Bn])for(const w of v[j][Bn]){const re=p.find(Pn=>Pn.id===w);if(re&&(re.parentId=j,re.sourceLeft=re.left,re.sourceTop=re.top,re.left=parseFloat(re.left)-parseFloat(Fn.sourceLeft||Fn.left)+"px",re.top=parseFloat(re.top)-parseFloat(Fn.sourceTop||Fn.top)+"px",re.type==="ecanIndexPanel")){const{componentIds:Pn}=re;for(const Rn of Pn){const Vn=p.find(Wn=>Wn.id===Rn);Vn&&(Vn.left=parseFloat(Vn.left)-parseFloat(re.sourceLeft)+"px",Vn.top=parseFloat(Vn.top)-parseFloat(re.sourceTop)+"px")}}}}}const b=Array.from(new Set(p.filter(j=>(!mn(j,"parentId")||j.parentId==="")&&j.combinationId).map(j=>j.combinationId))),gn=getCombinationList(b,{...c,componentList:p,pageConfig:h});gn!=null&&gn.length&&p.unshift(...gn);const x=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap","ecanTable"],vn=p.filter(j=>x.includes(j.type)&&!mn(j,"parentId")),J=[];for(const j of vn)if(j){const Fn=j.id+"_vir";if(J.push({id:Fn,keyName:j.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:u,height:getFormatWh(j.height,h==null?void 0:h.height),left:j.left,top:j.top,sourceLeft:j.left,sourceTop:j.top}),j.parentId=Fn,j.sourceLeft=j.left,j.sourceTop=j.top,j.left=10,j.top=0,j.width=u-20+"px",j.type==="ecanTable"){const{columns:Bn=[]}=j;j.scrollX="max-content";for(const w of Bn)(y=w==null?void 0:w.width)!=null&&y.includes("%")&&(w.width=parseFloat(w.width)/100*u+"px")}}J!=null&&J.length&&p.unshift(...J);for(const j of p){if(j.parentId===""&&containerType.includes(j.type))j.sourceWidth=getFormatWh(j.width,h==null?void 0:h.width),j.height=(u/(j.sourceWidth/getFormatWh(j.height,h==null?void 0:h.height))).toFixed(2)+"px",j.width="100%",j.position="relative",j.top="auto",j.left="auto";else{const Fn=p.find(Bn=>Bn.id===j.parentId);if((Fn==null?void 0:Fn.parentId)===""){const Bn=Fn.sourceWidth||getFormatWh(Fn.width,h==null?void 0:h.width),w=u/Bn;j.scale=w,j.top=parseFloat(j.top)*w-getFormatWh(j.height,h==null?void 0:h.height)*(1-w)/2+"px",j.left=parseFloat(j.left)*w-getFormatWh(j.width,h==null?void 0:h.width)*(1-w)/2+"px"}}j.type==="ecanModal"&&(j.parentId="",j.fullModal=!0)}return sortList(p)}return p}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 v=f[h.id];for(const p in v)for(const m of v[p]){const g=u.find(y=>y.id===m);if(g&&containerType.includes(g.type)){const y=getComponentByContainer(g.id,f,u);for(const b of y)c[h.id][p].push(b.id),containerType.includes(b.type)&&delete c[b.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 v=c[h.id];for(const p in v)if(parseFloat(p)>0)for(const m of v[p]){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 v in h)for(const p of h[v]){const m=f.find(g=>g.id===p);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=[],pageConfig:v={}}=u,p=[];for(const m of c){const g=d[m];if(g!=null&&g.length){const y=h.filter(b=>g.includes(b.id));if(y!=null&&y.length){const b=getCombinateRect(y,v);if(b){p.push({...b,id:m,keyName:m,parentId:f||"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:b.left,sourceTop:b.top});for(const gn of y)gn&&(gn.parentId=m,gn.sourceLeft=gn.left,gn.sourceTop=gn.top,gn.left=parseFloat(gn.left)-parseFloat(b.left)+"px",gn.top=parseFloat(gn.top)-parseFloat(b.top)+"px")}}}}return p}function sortList(c){const f=c.filter(d=>d.parentId===""||(d==null?void 0:d.isFlowGrid));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 v=0;v<d.length-h-1;v++){let p=!1;if((d[v].sourceTop-d[v+1].sourceTop>40||Math.abs(d[v+1].sourceTop-d[v].sourceTop)<=40&&d[v].sourceLeft>d[v+1].sourceLeft)&&(p=!0),p){const m=d[v];d[v]=d[v+1],d[v+1]=m}}for(const h of d){const v=c.findIndex(p=>p.id===h.id);v!==-1&&c.splice(v,1)}return[...d,...c]}return c}function getCombinateRect(c,u){const f=c.sort((p,m)=>parseFloat(p.top)-parseFloat(m.top))[0],d=c.sort((p,m)=>parseFloat(p.left)-parseFloat(m.left))[0],h=c.map(p=>({...p,computedTop:parseFloat(p.top)+getFormatWh(p.height,u==null?void 0:u.height)})).sort((p,m)=>m.computedTop-p.computedTop)[0],v=c.map(p=>({...p,computedLeft:parseFloat(p.left)+getFormatWh(p.width,u==null?void 0:u.width)})).sort((p,m)=>m.computedLeft-p.computedLeft)[0];return f&&d&&h&&v?{left:d.left,top:f.top,width:v.computedLeft-parseFloat(d.left)+"px",height:h.computedTop-parseFloat(f.top)+"px"}:null}function getMaxLeftInComponents(c,u){const f=c.map(d=>parseFloat(d.left)+getFormatWh(d.width,u==null?void 0:u.width)).sort((d,h)=>h-d)[0];return f||0}function moveToComponentList(c,u,f){const d=c[f],h=[];if(d)for(const v in d){const p=d[v];for(const m of p){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$z=vue.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(c,{emit:u}){u("ready",c.component.id)}});function _sfc_render$E(c,u,f,d,h,v){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$z,[["render",_sfc_render$E]]),EcanRender=withInstall$1(Render),_sfc_main$y=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),{width:h,height:v}=vue.inject(GLOBAL_CONFIG,{width:null,height:null}),p=vue.computed(()=>c.fullModal),m=vue.inject("getContainerMap",()=>{}),g=vue.inject("getCombinationMap",()=>{}),{clearInteractiveData:y,interactiveData:b,setRequestData:gn}=vue.inject(GLOBAL_MODEL,{setRequestData:(Sr,yr)=>{},clearInteractiveData:()=>{},interactiveData:null}),x=()=>document.getElementById("ProviderConfig")||document.body,vn=vue.computed(()=>{const Sr=c.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[Sr]}}),J=c.fullModal?"1920px":c.width,j=c.fullModal?"1080px":c.height,Fn=c.originalWidth,Bn=c.originalHeight,w=vue.ref("80%"),re=vue.ref(0),Pn=vue.ref(),Rn=vue.ref(0),Vn=vue.ref({}),Wn=usePickComponentStyle(c),Gn=vue.ref({}),Zn=vue.ref(!1),Xn=vue.ref();let er;const Jn=()=>{Pn.value=parseFloat(J)/parseFloat(Fn);const Sr=parseFloat(j)/parseFloat(Bn),yr=document.body.offsetWidth,pr=document.body.offsetHeight;if(re.value=yr*vue.unref(Pn),Rn.value=pr*Sr,w.value=`${vue.unref(Pn)*100}%`,Vn.value={width:`${vue.unref(re)}px`,height:`${vue.unref(Rn)}px`,border:`${c.borderWidth} solid ${c.borderColor}`,borderRadius:c.borderRadius+"px",boxShadow:c.boxShadow},Gn.value={...vue.unref(Wn),backgroundImage:useImagePath(c.backgroundImage,!0)},d)Gn.value={...Gn.value,width:"100%",height:"100%"};else{const br={...Gn.value,width:J,height:j};c.banScale&&vue.unref(p)?(br.width="100%",br.height="100%"):br.transform=`scale(${vue.unref(re)/parseFloat(J)},${vue.unref(Rn)/parseFloat(j)})`,Gn.value=br}},ir=lodashEs.debounce(()=>{Jn()},100),or=()=>{const Sr=window.MutationObserver;er=new Sr(ir),er.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},sr=()=>{er&&(er.disconnect(),er.takeRecords(),er=null)},Hn=vue.ref(!1),{touchRequest:Kn}=vue.inject(REQUEST_MODEL,{touchRequest:()=>{}}),zn=vue.ref(""),qn=()=>{var pr;const{title:Sr}=c,yr=(pr=vue.unref(b))==null?void 0:pr.RECORD;return yr?hn(Sr,{textData:yr},{useNewline:!1,useSpace:!1}):Sr},tr=useEmitEvent(c),Un=Sr=>{const{changeIframeStyle:yr}=window.parent;yr&&typeof yr=="function"&&yr({iframeId:c.parentIframeId||"",action:Sr})},nr=()=>{vue.unref(p)&&Un("open"),d&&(document.documentElement.style.overflow="hidden"),zn.value=qn(),Hn.value=!0},cr=tr("hideModal",()=>{vue.unref(p)&&Un("close"),u("close"),d&&(document.documentElement.style.overflow="hidden auto",f.value=[]),Hn.value=!1}),Qn=()=>{cr()},fr=()=>{cr(),y()},{setModalModel:vr,pushUseModalIds:Yn,popUseModalIds:ar}=vue.inject(MODAL_MODEL,{pushUseModalIds:Sr=>{},popUseModalIds:()=>{},setModalModel:(Sr,yr)=>{}}),ur=vue.computed(()=>{let Sr=c.componentList;const yr=lodashEs.cloneDeep(c.componentList),pr=m(),br=g(),kr={containerMap:pr,combinationMap:br};d&&(Sr=compatibleMobileList({...kr,componentList:yr,sourceList:c.allComponentList,pageConfig:{width:vue.unref(h),height:vue.unref(v)}})),Sr=handleScrollCombinations({...kr,componentList:Sr,sourceList:c.allComponentList,pageConfig:{width:vue.unref(h),height:vue.unref(v)}});const wr=[];for(const Er of Sr)if(Er.type==="ecanCirculate"){const Pr=moveToComponentList(pr,vue.unref(yr),Er.id);Er.componentList=Pr,wr.push(...Pr.map(Dr=>Dr.id))}else if(Er.type==="ecanTable"){const{headerFontSize:Pr,fontSize:Dr,size:qr,bodyRowHeight:Rr,headRowHeight:Fr}=Er;if(!Rr||!Fr)if(Er.size){let jr=0;switch(qr){case"default":jr=16;break;case"middle":jr=12;break;case"small":jr=8;break}Rr||(Er.bodyRowHeight=(jr*2+parseFloat(Dr)*1.5715).toFixed(0)+"px"),Fr||(Er.headRowHeight=(jr*2+parseFloat(Pr)*1.5715).toFixed(0)+"px")}else Rr||(Er.bodyRowHeight="54px"),Fr||(Er.headRowHeight="54px")}if(wr!=null&&wr.length)for(const Er of wr){const Pr=Sr.findIndex(Dr=>Dr.id===Er);Pr!==-1&&Sr.splice(Pr,1)}return Sr}),mr=()=>{const Sr=c.id;let yr=[];const pr=c.componentList;Array.isArray(pr)&&(yr=pr.map(br=>br.id),vr(Sr,[...new Set(yr)]))},dr=vue.ref(!1),gr={};for(const Sr of c.requestList)gr[Sr.requestName]=useRequestData(Sr);vue.watch(()=>Hn.value,async Sr=>{if(Sr)Zn.value=!1,Yn(c.id),mr(),await vue.nextTick(()=>{Jn(),window.addEventListener("resize",ir),or(),Zn.value=!0}),Kn();else{if(gn)for(const yr in gr)gn(yr,{});ar(),window.removeEventListener("resize",ir),sr()}});const lr=vue.computed(()=>vue.unref(Pn)>=1),hr=vue.computed(()=>{let Sr="ecan-modal";return vue.unref(lr)&&(Sr+=" ecan-full-width-modal"),vue.unref(p)&&(Sr+=" ecan-full-modal"),Sr});return useOnEvent(c,{showModal:nr,hideModal:cr}),{modalRef:Xn,containStyle:Vn,contentStyle:Gn,getContainer:x,modalStyle:vn,modalWith:w,isFullModal:p,style:Wn,visible:Hn,showModal:nr,onOk:Qn,onCancel:fr,isFullWidth:lr,wrapClassName:hr,ready:Zn,usedComponentList:ur,isMobile:d,readyIds:f,hasOwn:mn,onComponentReady:Sr=>{f.value.push(Sr)},formatTitle:zn,requestLoaded:dr}}}),Modal_vue_vue_type_style_index_0_scoped_cb5d6923_lang="",Modal_vue_vue_type_style_index_1_lang="";function _sfc_render$D(c,u,f,d,h,v){const p=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(p,{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,b)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:y.id+b},[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$y,[["render",_sfc_render$D],["__scopeId","data-v-cb5d6923"]]),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$x=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:""}),v=vue.inject("showIndDetail",tr=>{}),p=vue.inject("usedComponentList",[]),m=vue.ref(),g=vue.ref(!1),y=usePickComponentStyle(c),b=vue.ref([]),gn=vue.ref([]),x=vue.ref(),vn=vue.computed(()=>g.value?ZOOM_FONT_SIZE:12),J=vue.ref({});let j;const Fn=vue.ref([]),Bn=vue.computed(()=>{const tr=c.xAxisLabelFormatter,Un=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 nr;g.value=!0,(nr=x.value)==null||nr.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(){v(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:vn.value,color:c.tooltipTextStyleColor},show:c.tooltipShow,formatter:nr=>{var vr;const cr=nr.length;let Qn="",fr=c.tooltipFormatter;j=(vr=nr[0])==null?void 0:vr.data,fr===""&&(fr="{marker} {a} {c}");for(let Yn=0;Yn<cr;Yn++){const{marker:ar,seriesName:ur,name:mr,value:dr,data:gr}=nr[Yn]||{};if(Yn===0){let lr=mr;typeof mr=="string"&&mr[0]==="0"&&!isNaN(+mr)&&(lr=(+mr).toString()),Qn+=`${In(tr,lr)}<br/>`}Qn+=hn(fr,{textData:{marker:ar,name:mr,value:dr,a:ur,b:mr,c:dr||0,...gr}},{useNewline:!0,useSpace:!0}),Qn+="<br/>"}return Qn},position:c.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:c.isBoundaryGap,data:vue.unref(gn).map(nr=>{let cr={};return nr&&typeof nr=="object"?cr={...nr}:cr={value:nr},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(nr){return typeof nr=="string"&&nr[0]==="0"&&!isNaN(+nr)&&(nr=(+nr).toString()),In(tr,nr)}},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(nr){return In(Un,nr)}},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(nr=>({name:nr.name,icon:c.legendType})),formatter:nr=>getLegendFormat(c.legendFormatter,{name:nr})},series:vue.unref(b)}}),w=()=>{g.value=!1},{getGlobalModel:re,setGlobalModel:Pn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:tr=>{},setGlobalModel:(tr,Un)=>{}}),Rn=vue.computed(()=>c.isShowMarkLine?{markLine:{data:[{type:c.markLineType}]}}:{}),Vn=(tr=[],Un=!1)=>{var vr;let nr;if(c.dataFieldConfigType==="key"){const Yn=Un?c.keyTypeDataFieldNames:null;nr=Mn(tr,Yn)}else if(c.dataFieldConfigType==="value"){const Yn=Un?c.valueTypeDataFieldNames:null;nr=En(tr,Yn)}gn.value=nr.dimensions,Fn.value=nr.dataset;const cr=nr.dataset,Qn=[],fr=cr.length;for(let Yn=0;Yn<fr;Yn++){const ar={};c.shadowColor&&(ar.shadowColor=c.shadowColor,ar.shadowBlur=c.shadowBlur,ar.shadowOffsetY=c.shadowOffsetY,ar.shadowOffsetX=c.shadowOffsetX);let ur=c.colors[Yn];if(!ur&&c.colors.length){const mr=(Yn+1)%c.colors.length-1;ur=mr>0?c.colors[mr]:c.colors[0]}ur||(ur="#5470C6"),Qn.push({type:"line",...cr[Yn],symbolSize:c.symbolSize,smooth:c.smooth,areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:ur},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:ur,opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...ar},...vue.unref(Rn)})}b.value=Qn,(vr=nr.dataset)!=null&&vr.length?f.value=!1:f.value=!0},Wn=(tr=[],Un,nr=!1)=>{var ar,ur,mr;const Qn=Mn(tr,nr?Un:null,!0);if(c.defaultRangeValue&&setDefaultRangeVal({props:c,componentList:vue.unref(p),getGlobalModel:re},Qn),(ar=Qn.dataset)!=null&&ar.length){for(const dr of Qn.dataset)if((ur=dr.data)!=null&&ur.length)for(const gr of dr.data)(gr.value===null||gr.value===void 0)&&(gr.value=0)}gn.value=Qn.dimensions,Fn.value=Qn.dataset;const fr=Qn.dataset,vr=[],Yn=fr.length;for(let dr=0;dr<Yn;dr++){const gr={};c.shadowColor&&(gr.shadowColor=c.shadowColor,gr.shadowBlur=c.shadowBlur,gr.shadowOffsetY=c.shadowOffsetY,gr.shadowOffsetX=c.shadowOffsetX);let lr=c.colors[dr];if(!lr&&c.colors.length){const hr=(dr+1)%c.colors.length-1;lr=hr>0?c.colors[hr]:c.colors[0]}lr||(lr="#5470C6"),vr.push({type:"line",...fr[dr],symbolSize:c.symbolSize,smooth:c.smooth,areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:lr||dr%(c.colors.length||1)},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:lr,opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...gr},...vue.unref(Rn)})}b.value=vr,(mr=Qn.dataset)!=null&&mr.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],([tr])=>{(c.dataType==="static"||vue.unref(d)==="design")&&Vn(tr)},{immediate:!0,deep:!0});const Gn=vue.ref(!1),Zn=useRequestData(c),Xn=async()=>{var tr,Un;if(c.dataType==="request")try{Gn.value=!0;const nr=await Zn();Vn((Un=(tr=nr==null?void 0:nr.data)==null?void 0:tr.data)==null?void 0:Un.rows,!0)}catch(nr){console.error(nr)}finally{Gn.value=!1}},er=useEmitEvent(c);Pn(c.id,{type:c.type,RECORD:""});const Jn=er("click",tr=>{const Un=re(c.id);Pn(c.id,{...Un,type:c.type,RECORD:c.tooltipShow?j:tr.data})}),ir=tr=>{m.value.chart.containPixel("grid",[tr.offsetX,tr.offsetY])&&Jn()};c.isForbidClick||(c.tooltipShow?J.value["zr:click"]=ir:J.value.click=Jn);const or=tr=>{var vr;const{columns:Un=[],rows:nr=[]}=((vr=tr==null?void 0:tr.data)==null?void 0:vr.data)??{};let cr;Un.length>0&&(cr={name:Un[0],types:Un.slice(1).map(Yn=>({label:Yn,value:Yn}))});const{leftAxisList:Qn=[]}=c.graphicConfig,fr=Qn.filter(Yn=>Yn.show).map(Yn=>Yn.label);for(const Yn of nr)if(Yn)for(const ar in Yn)typeof Yn[ar]=="string"&&fr.includes(ar)&&!isNaN(parseFloat(Yn[ar]))&&(Yn[ar]=parseFloat(Yn[ar]));Wn(nr,cr,!0)},sr=useIndicatorData(c,tr=>{c.isViewRedrawing&&m.value.clear(),or(tr)}),Hn=async()=>{try{Gn.value=!0;const tr=await sr();or(tr)}catch(tr){console.error(tr)}finally{Gn.value=!1}},Kn=async()=>{switch(c.dataType){case"indicator":await Hn();break;case"request":await Xn();break}};useOnEvent(c,{refreshData:Kn,resetRecord:()=>{const tr=c.id,Un=re(tr);Pn(tr,{...Un,RECORD:""})},click:Jn});const{setRequest:qn}=vue.inject(REQUEST_MODEL,{setRequest:tr=>{}});return typeof qn=="function"&&qn({id:c.id,requestFn:Kn,sortNum:c.requestSort}),u({refreshData:Kn}),{option:Bn,style:y,click:Jn,loading:Gn,onClose:w,ecanModal:x,eventObj:J,echartRef:m,emptyData:f}}}),Line_vue_vue_type_style_index_0_lang="",Line_vue_vue_type_style_index_1_scoped_fadf491b_lang="";function _sfc_render$C(c,u,f,d,h,v){const p=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(p,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(p,{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$x,[["render",_sfc_render$C],["__scopeId","data-v-fadf491b"]]),EcanLine=withInstall$1(Line);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(v=u)=>{let p="";for(;;){let m=f(h),g=h;for(;g--;)if(p+=c[m[g]&d]||"",p.length===v)return p}}},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 _sfc_main$w=vue.defineComponent({name:"TrendModal",components:{EcanLine},props:{theme:{type:String,default:"light"}},setup(c,{expose:u}){const f=vue.ref(!1),d=vue.ref(),h=vue.ref(),v=vue.inject("isMobile",!1),p=async({data:y,pageConfig:b,unitText:gn})=>{if(y){const{graphicConfig:x}=y,vn=nanoid(6),J={source:"INDICATOR_LIB",dataSourceId:"",idxLibMode:"",classificationList:[{id:"3f5bda70a08a442085857adb7fc547de",indexCode:null,indexCodeNum:null,title:"日期",name:"the_date",label:"日期",typeGuid:"the_date",genericType:"DATE",hrpIndexComplexid:"the_date",scope:"BUILT_IN_DIM",fromTable:"hrp_index_complex",parentId:"3f5bda70a08a442085857adb7fc547de",show:!0,edit:!1,dataTo:"0",dateFormat:"YYYY-MM",dataSetParams:{}}],leftAxisList:(x==null?void 0:x.indicators)||[],controlList:(x==null?void 0:x.controlList)||[],variableList:(x==null?void 0:x.variableList)||[],variableConditions:(x==null?void 0:x.variableConditions)||[]};d.value={...lodashEs.cloneDeep(lineProps),id:vn,keyName:`折线图_${vn}`,position:"relative",top:0,left:0,width:vue.unref(v)?"100%":parseFloat(b.width)*.57+"px",height:vue.unref(v)?"100%":parseFloat(b.height)*.4+"px",dataType:"indicator",tooltipFormatter:"{marker} {a} {c}"+gn,xAxisLabelRotate:45,yAxisLabelFormatter:gn?`{value}${gn}`:"{value}",isForbidClick:!0,graphicConfig:J},f.value=!0,vue.nextTick(()=>{vue.unref(h).refreshData()})}},m=()=>document.querySelector("#ProviderConfig > #container")||document.body,g=vue.computed(()=>{let y="trend-modal";return vue.unref(v)&&(y+=" full"),c.theme==="darkBlue"&&(y+=" darkBlue"),y});return vue.watch(f,y=>{y?document.documentElement.style.overflow="hidden":document.documentElement.style.overflow="hidden auto"}),vue.onMounted(()=>{var y,b;if(vue.unref(v)){const gn=document.querySelector("#ProviderConfig > #container");(y=gn==null?void 0:gn.style)==null||y.setProperty("--window-screen-width",document.body.clientWidth+"px"),(b=gn==null?void 0:gn.style)==null||b.setProperty("--window-screen-height",document.body.clientHeight+"px")}}),u({showModal:p}),{visible:f,componentConfig:d,lineRef:h,wrapClassName:g,isMobile:v,getContainer:m}}}),TrendModal_vue_vue_type_style_index_0_scoped_b4c3b51c_lang="",TrendModal_vue_vue_type_style_index_1_lang="",_withScopeId$6=c=>(vue.pushScopeId("data-v-b4c3b51c"),c=c(),vue.popScopeId(),c),_hoisted_1$n=_withScopeId$6(()=>vue.createElementVNode("div",{class:"modal-title"},"趋势图",-1));function _sfc_render$B(c,u,f,d,h,v){const p=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:c.isMobile?"":"60vh",height:c.isMobile?"100vh":"",overflow:"auto",padding:"20px 24px 24px"},"wrap-class-name":c.wrapClassName},{title:vue.withCtx(()=>[_hoisted_1$n]),default:vue.withCtx(()=>[c.componentConfig?(vue.openBlock(),vue.createBlock(p,vue.mergeProps({key:0},c.componentConfig,{ref:"lineRef"}),null,16)):vue.createCommentVNode("",!0)]),_:1},8,["visible","getContainer","bodyStyle","wrap-class-name"])}const TrendModal=_export_sfc$1(_sfc_main$w,[["render",_sfc_render$B],["__scopeId","data-v-b4c3b51c"]]),pivotTableProps={...props$1,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"];var zhCn={exports:{}};(function(c,u){(function(f,d){c.exports=d(dayjs)})(commonjsGlobal,function(f){function d(p){return p&&typeof p=="object"&&"default"in p?p:{default:p}}var h=d(f),v={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(p,m){return m==="W"?p+"周":p+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(p,m){var g=100*p+m;return g<600?"凌晨":g<900?"早上":g<1100?"上午":g<1300?"中午":g<1800?"下午":"晚上"}};return h.default.locale(v,null,!0),v})})(zhCn);const LastDetail_vue_vue_type_style_index_0_scoped_71ff7b3d_lang="",LastDetail_vue_vue_type_style_index_1_lang="";dayjs.locale("zh-cn");const _sfc_main$v=vue.defineComponent({name:"LastDetail",components:{ATable:antDesignVue.Table,BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1,CloseOutlined:CloseOutlined$1},props:{theme:{type:String,default:"light"},theDateInfo:{type:Object,default:()=>({})},scaleValue:{type:Object,default:()=>({})}},setup(c,{emit:u,expose:f}){const d=`dtmodal_${nanoid(6)}`,h=vue.ref(!1),v=vue.ref(!1),p=vue.ref(!1),m=vue.ref([]),g=vue.ref([]),y=vue.ref({current:1,pageSize:10,total:0,showSizeChanger:!1,showQuickJumper:!1,showLessItems:!0,showTotal:Gn=>`共 ${Gn} 条数据`}),b=vue.ref(""),gn=vue.ref(""),x=vue.inject("isMobile",!1),vn=vue.computed(()=>INDICATOR_URL),J=()=>document.querySelector("#ProviderConfig > #container")||document.body,j=Gn=>{const Zn=document.querySelector(`.${d} .ant-modal-header`);if(Zn)if(Gn)Zn.addEventListener("mousedown",Bn);else{const Xn=Zn.parentElement;Xn&&(Xn.style.left="",Xn.style.top=""),Zn.removeEventListener("mousedown",Bn)}},Fn=Gn=>{const Zn=document.querySelector(`.${d} .ant-modal-header`);Zn&&(Gn?Zn.addEventListener("dblclick",w):Zn.removeEventListener("dblclick",w))},Bn=Gn=>{dragModalAction(Gn,`.${d} .ant-modal-header`)},w=()=>{h.value=!h.value,vue.nextTick(()=>{h.value?j(!1):j(!0)})},re=()=>{h.value=!1,Fn(!1),j(!1)};async function Pn(Gn){var nr,cr;p.value=!0,v.value=!0;const Zn=((nr=window==null?void 0:window.config)==null?void 0:nr.indicatorToken)||"",{record:Xn,dimOpts:er,column:Jn,formatParams:ir,cpntProps:or={},drillDetailUrl:sr}=Gn,{indicatorList:Hn=[]}=ir,Kn=Hn.find(Qn=>Qn.label===Jn.dataIndex),zn={};for(const Qn in Xn){const fr=er.find(vr=>vr.name===Qn);fr&&(zn[fr.typeGuid]=Xn[Qn])}const{startTime:qn,endTime:tr,rangeFormat:Un}=c.theDateInfo;if(qn&&tr&&(zn.startTime=dayjs(qn).format(Un),zn.endTime=dayjs(tr).format(Un)),sr)h.value=!0,b.value=sr,gn.value=encodeURIComponent(JSON.stringify({indexCode:(Kn==null?void 0:Kn.hrpIndexCode)||"",indexName:Kn.label,theFlag:or.theFlag,param:zn,conditions:drillConditions})),p.value=!1;else{const Qn=await request.post(`${vue.unref(vn)}/diagram/obtainDataSetData`,{pageId:getPageId(),indexCode:(Kn==null?void 0:Kn.hrpIndexCode)||"",indexName:Kn.label,theFlag:or.theFlag,param:zn},{headers:{Authentication:Zn,operateContext:CONTEXT}}),{columns:fr=[],data:vr=[]}=((cr=Qn==null?void 0:Qn.data)==null?void 0:cr.data)||{};m.value=fr.filter(Yn=>Yn).map(Yn=>({title:Yn,dataIndex:Yn,width:"120px"})),g.value=vr.map(Yn=>({...Yn,uid:nanoid(6)})),p.value=!1}vue.nextTick(()=>{Fn(!0),j(!0)})}const Rn=Gn=>{vue.unref(y).current=Gn.current},Vn=vue.computed(()=>{let Gn=`last-detail-modal ${d}`;return(vue.unref(x)||h.value)&&(Gn+=" full"),c.theme==="darkBlue"&&(Gn+=" darkBlue"),vue.unref(b)||(Gn+=" table"),Gn});vue.watch(()=>c.scaleValue,()=>{var Zn;const Gn=document.getElementById("ProviderConfig");Gn&&((Zn=Gn==null?void 0:Gn.style)==null||Zn.setProperty("--drill-modal-height",window.screen.height-20+"px"))},{immediate:!0,deep:!0});const Wn=vue.computed(()=>vue.unref(x)?{padding:"10px 0"}:{maxHeight:vue.unref(b)||h.value?"":"50vh",height:vue.unref(b)?"50vh":"",overflow:vue.unref(b)?"hidden":"auto"});return f({showModal:Pn}),{visible:v,loading:p,pagination:y,columns:m,dataSource:g,wrapClassName:Vn,detailBodyStyle:Wn,isMobile:x,urlJsonStr:gn,drillDetailUrl:b,isIndFullScreen:h,handleTableChange:Rn,getContainer:J,onDetailCancel:re,toggleFullScreen:w}}}),_hoisted_1$m=["src"],_hoisted_2$c={key:0,class:"spin-container"};function _sfc_render$A(c,u,f,d,h,v){const p=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("switcher-outlined"),g=vue.resolveComponent("border-outlined"),y=vue.resolveComponent("a-spin"),b=vue.resolveComponent("a-table"),gn=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(gn,{wrapClassName:c.wrapClassName,visible:c.visible,"onUpdate:visible":u[1]||(u[1]=x=>c.visible=x),width:"40%",title:"指标明细",destroyOnClose:!0,footer:null,bodyStyle:c.detailBodyStyle,getContainer:c.getContainer,onCancel:c.onDetailCancel},{closeIcon:vue.withCtx(()=>[vue.createVNode(p,{class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"])]),default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"zoom-btn",onClick:u[0]||(u[0]=(...x)=>c.toggleFullScreen&&c.toggleFullScreen(...x))},[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.drillDetailUrl&&c.urlJsonStr?(vue.openBlock(),vue.createElementBlock("iframe",{key:0,src:`${c.drillDetailUrl}${c.drillDetailUrl.includes("?")?"&":"?"}params=${c.urlJsonStr}`,frameborder:"0",width:"100%",height:"100%"},`\r
103
- `,8,_hoisted_1$m)):c.drillDetailUrl?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[c.loading?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$c,[vue.createVNode(y,{size:"large"})])):vue.createCommentVNode("",!0),c.loading?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(b,{key:1,"row-key":x=>x.uid,columns:c.columns,"data-source":c.dataSource,pagination:c.pagination,scroll:{x:"max-content",y:c.isMobile?"70vh":""},onChange:c.handleTableChange},null,8,["row-key","columns","data-source","pagination","scroll","onChange"]))],64))]),_:1},8,["wrapClassName","visible","bodyStyle","getContainer","onCancel"])}const LastDetail=_export_sfc$1(_sfc_main$v,[["render",_sfc_render$A],["__scopeId","data-v-71ff7b3d"]]),_sfc_main$u=vue.defineComponent({name:"DrillModal",components:{ATable:antDesignVue.Table,BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1,CloseOutlined:CloseOutlined$1,LastDetail},props:{theme:{type:String,default:"light"},drillingMode:{type:String,default:"default"},pageMode:{type:String,default:"normal"},scaleValue:{type:Object,default:()=>({})},pivotTableFontSize:{type:Number,default:16},width:{type:String,default:""},drillDetailUrl:{type:String,default:""}},setup(c,{expose:u,emit:f}){const m={IN:"属于",NOT_IN:"不属于",LIKE:"包含",NOT_LIKE:"不包含","LIKE%":"开头是","%LIKE":"结尾是",EQUAL:"等于",LESS:"小于",LESS_EQUAL:"小于等于",GREATER:"大于",GREATER_EQUAL:"大于等于",NOT_EQUAL:"不等于"},g={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"},y=vue.ref(!1),b=vue.ref(),gn=vue.ref(),x=vue.ref(),vn=vue.ref(!1),J=vue.ref({}),j=vue.ref([]),Fn=vue.ref([]),Bn=vue.ref([]),w=vue.ref(!1),re=vue.ref({dateFormat:"YYYY-MM-DD"}),Pn=vue.reactive({keyName:"",visible:!1,dataSource:[],columns:[],title:"",pagination:{current:1,pageSize:10,total:0,showSizeChanger:!1,showQuickJumper:!1,showLessItems:!0,showTotal:dr=>`共 ${dr} 条数据`}}),Rn=vue.ref({}),Vn=vue.inject("isMobile",!1),Wn=vue.inject("usedComponentList",[]),Gn=vue.inject("componentList",[]),{getAllGlobalModel:Zn}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),Xn=vue.computed(()=>INDICATOR_URL);vue.watch(()=>Pn.visible,dr=>{dr?document.documentElement.style.overflow="hidden":document.documentElement.style.overflow="hidden auto"});const er=vue.computed(()=>({width:vue.unref(J).width,height:vue.unref(J).height})),Jn=vue.computed(()=>vue.unref(Vn)?{padding:"10px 0"}:{}),ir=vue.computed(()=>{let dr="ind-detail-modal";return(vn.value||vue.unref(Vn))&&(dr+=" full"),c.theme==="darkBlue"&&(dr+=" darkBlue"),dr}),or=(dr,gr)=>{const{leftAxisList:lr=[],rightAxisList:hr=[],indicators:xr=[],classificationList:Sr=[],rowHeaderList:yr=[],dimensionList:pr=[],seriesList:br=[],queryColumns:kr=[],indexLibColumns:wr=[]}=gr.graphicConfig,Pr=lr.concat(hr).concat(xr).concat(Sr).concat(yr).concat(pr).concat(br).concat(kr).concat(wr).filter(Rr=>Rr.conditions),Dr=Hn(Pr,"conditions",!0),qr=Hn(dr.sqlConditions,"sqlConditions",!1);Fn.value=Dr.concat(qr).filter(Rr=>Rr.label)||[]},sr=()=>document.querySelector("#ProviderConfig > #container")||document.body;function Hn(dr,gr,lr){const hr=[];for(const xr of dr)xr[gr]?hr.push(...Hn(xr[gr],gr,lr)):xr.filter?hr.push({...xr.filter,label:xr.label}):(!lr||xr.dataType!=="component"&&!(xr.fieldValue.startsWith("${")&&xr.fieldValue.endsWith("}")))&&hr.push(xr);return hr}const Kn=async({cpntProps:dr,pageId:gr,formatParams:lr,classifications:hr,indicatorToken:xr})=>{var Sr,yr,pr;return await request({url:`${vue.unref(Xn)}/diagram/obtainDrillAbleDimensionOptions`,method:"post",headers:{Authentication:xr,operateContext:CONTEXT},data:{source:((Sr=dr==null?void 0:dr.graphicConfig)==null?void 0:Sr.source)||"INDICATOR_LIB",pageId:gr,indicatorList:(lr==null?void 0:lr.indicatorList)||[],classifications:hr,dataSourceId:((yr=dr==null?void 0:dr.graphicConfig)==null?void 0:yr.dataSourceId)||""},signal:((pr=window.controller)==null?void 0:pr.signal)||""})},zn=dr=>{let gr="",lr="";const{componentConfig:hr}=dr;for(const Sr in hr)if(hr[Sr].key==="currentValue"){lr=Sr;break}const xr=vue.unref(Gn).find(Sr=>Sr.id===lr);return xr!=null&&xr.unitText&&(gr=xr.unitText),gr};function qn(dr){const gr=[];for(const lr of dr)lr.sqlConditions?gr.push(...qn(lr.sqlConditions)):lr.fieldName==="the_date"&&gr.push(lr);return gr}const tr=dr=>{var Sr;const{sqlConditions:gr=[],queryColumns:lr=[]}=dr||{},hr=qn(gr),xr=lr.find(yr=>yr.typeGuid==="the_date");if(xr&&(re.value={dateFormat:xr.dateFormat||"YYYY-MM-DD"}),hr!=null&&hr.length)for(const yr of hr)["startTime","endTime"].includes(yr.prop)&&(vue.unref(re)[yr.prop]=yr.fieldValue||"",(Sr=vue.unref(re))!=null&&Sr.rangeFormat||(vue.unref(re).rangeFormat=yr.dateFormat||"YYYY-MM-DD"))},Un=async dr=>{var Er,Pr,Dr,qr,Rr;if(c.drillingMode==="default")return;let gr=lodashEs.cloneDeep(dr).props;if(gr.parentId){const Fr=vue.unref(Wn).find(jr=>jr.id===gr.parentId);if((Fr==null?void 0:Fr.dataType)==="indicator")gr=lodashEs.cloneDeep(Fr);else return}Pn.keyName=gr==null?void 0:gr.keyName;const lr=((Er=window==null?void 0:window.config)==null?void 0:Er.indicatorToken)||"",hr=getPageId(),xr=(gr==null?void 0:gr.graphicConfig)||{},{leftAxisList:Sr=[],rightAxisList:yr=[],indicators:pr=[]}=xr,br=Sr.concat(yr).concat(pr);if(!(br!=null&&br.length))return;const kr=br.filter(Fr=>Fr.show).map(Fr=>Fr.label);kr!=null&&kr.length&&(Pn.title=`下钻:${kr.join("、")}`);const wr=Dn({...gr,globalModel:Zn()});if(c.drillingMode==="normalTable"||vue.unref(Vn)){Pn.pagination.current=1;let Fr=(wr==null?void 0:wr.classification)||(wr==null?void 0:wr.classifications)||[];Array.isArray(Fr)||(Fr=[Fr]);try{w.value=!0,Pn.visible=!0;const jr=await Kn({cpntProps:gr,pageId:hr,formatParams:wr,classifications:Fr,indicatorToken:lr}),Nr=((Pr=jr==null?void 0:jr.data)==null?void 0:Pr.data)||[];let Ur=[],Qr=[];const{usedDimensions:Wr=[],params:ri={}}=dr;if(Wr!=null&&Wr.length){for(const Zr of Nr)if(!Wr.find(ni=>ni.label===Zr.name)){Qr.push(Zr);break}wr.sqlConditions=lodashEs.cloneDeep(ri.sqlConditions);const{sqlConditions:Or=[]}=wr,{record:Gr={}}=dr;Wr.forEach((Zr,ni)=>{if(mn(Gr,Zr.label)){const ci=Nr.find(vi=>vi.name===Zr.label),ai={fieldName:Zr.label,fieldValue:Gr[Zr.label],globalCondition:!0,hrpIndexCode:null,hrpIndexCodeNum:null,label:Zr.label,rule:"EQUAL",typeGuid:Zr.typeGuid,valueType:(ci==null?void 0:ci.genericType)||"TEXT"};ni!==Wr.length-1&&(ai.join="&&"),ni===0&&(Or!=null&&Or.length)&&(Or[Or.length-1].join="&&"),Or.push(ai)}})}else Ur=Fr.map(Or=>({...Or,calcType:"COLUMN"})),Qr=Nr.slice(0,2).sort((Or,Gr)=>Or.typeGuid-Gr.typeGuid);or(wr,lodashEs.cloneDeep(dr.props));for(const Or of Qr)Ur.push({calcType:"COLUMN",columnName:Or.name,label:Or.name,show:!0,typeGuid:Or.typeGuid});wr.queryColumns=Ur,wr.layer="1",wr.plugin="1",delete wr.classification,delete wr.classifications;const{url:ei,...Tr}=wr||{};tr(wr);const Br=await request({url:`${vue.unref(Xn)}${ei}`,method:"post",headers:{Authentication:lr,operateContext:CONTEXT},data:{...Tr,pageId:hr}}),{columns:Lr=[],rows:Hr=[]}=((Dr=Br==null?void 0:Br.data)==null?void 0:Dr.data)||{};if(yn(gr.type,"indexPanel")){const Or=xr.indicators.find(Zr=>Zr.show),Gr=zn(gr);Gr&&Or&&(Rn.value={[Or.label]:Gr})}Pn.columns=Lr.filter(Or=>!!Or).map(Or=>{let Gr=Or;const Zr=Nr.find(ni=>ni.name===Or);return Zr&&(Gr=Zr.title||Zr.label),{title:Gr,dataIndex:Or,width:"120px",customCell:(ni,ci,ai)=>({[vue.unref(Vn)?"onClick":"onDblclick"]:()=>{Nr.find(ui=>ai.dataIndex===ui.name)?(!(Wr!=null&&Wr.length)||Nr.length-1>Wr.length)&&(y.value=!0,vue.nextTick(()=>{vue.unref(b).showModal({...dr,record:ni,usedDimensions:[...Wr,...Ur],params:wr})})):vue.unref(gn).showModal({record:ni,dimOpts:Nr,column:ai,formatParams:wr,cpntProps:gr,drillDetailUrl:c.drillDetailUrl,drillConditions:vue.unref(ur)})}})}}),Pn.dataSource=(Array.isArray(Hr)?Hr:[Hr]).map(Or=>({...Or,uuid:nanoid(6)})),Pn.pagination.total=(Hr==null?void 0:Hr.length)||0,w.value=!1}catch(jr){console.error(jr)}}else if(c.drillingMode==="pivotTable"){const Fr=await Kn({cpntProps:gr,pageId:hr,formatParams:wr,classifications:[],indicatorToken:lr});Bn.value=((qr=Fr==null?void 0:Fr.data)==null?void 0:qr.data)||[];const jr=nanoid(6);xr.queryColumnList||(xr.queryColumnList=[]),xr!=null&&xr.classificationList&&(xr.queryColumnList=xr.classificationList,delete xr.classificationList),xr!=null&&xr.seriesList&&(xr.queryColumnList=xr.queryColumnList.concat(xr.seriesList),delete xr.seriesList),xr.indicators=lodashEs.cloneDeep(br||[]),delete xr.leftAxisList,delete xr.rightAxisList;const Nr={};if(yn(gr.type,"indexPanel")){const Qr=xr.indicators.find(ei=>ei.show),Wr=vue.unref(Bn).slice(0,2).sort((ei,Tr)=>ei.typeGuid-Tr.typeGuid).map(ei=>({...ei,show:!0,edit:!1,dataTo:"0",width:ei.name==="the_date"?15:0,dataSetParams:{}}));Wr!=null&&Wr.length&&(xr.queryColumnList=Wr);const ri=zn(gr);if(ri&&Qr){const{label:ei}=Qr;Nr.defaultConfig={indexFormatConfig:{[ei]:{fieldName:ei,indicatorKey:ei,position:"right",unit:ri}}}}}gr!=null&&gr.theFlag&&(Nr.theFlag=gr.theFlag),(Rr=xr.queryColumnList)!=null&&Rr.length||(xr.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 Ur={...lodashEs.cloneDeep(pivotTableProps),id:jr,keyName:`透视表_${jr}`,position:"relative",top:0,left:0,width:parseFloat(c.width)*.57+"px",height:window.screen.height*.6+"px",pageId:hr,indicatorToken:lr,context:CONTEXT,globalModel:Zn(),graphicConfig:xr,pageConfig:c,...Nr};c.theme==="darkBlue"&&(Ur.styleConfig=g),J.value=Ur,Pn.visible=!0,vue.nextTick(()=>{vue.unref(x).refreshData()})}vue.nextTick(()=>{cr(!0),Qn(!0)})},nr=dr=>{Pn.pagination.current=dr.current},cr=dr=>{const gr=document.querySelector(".ind-detail-modal .ant-modal-header");gr&&(dr?gr.addEventListener("dblclick",vr):gr.removeEventListener("dblclick",vr))},Qn=dr=>{const gr=document.querySelector(".ind-detail-modal .ant-modal-header");if(gr)if(dr)gr.addEventListener("mousedown",fr);else{const lr=gr.parentElement;lr&&(lr.style.left="",lr.style.top=""),gr.removeEventListener("mousedown",fr)}};function fr(dr){dragModalAction(dr,".ind-detail-modal .ant-modal-header")}const vr=()=>{vn.value=!vn.value,vue.nextTick(()=>{vn.value?(vue.unref(J).width=parseFloat(c.width)*.97+"px",vue.unref(J).height=window.screen.height*.9+"px",Qn(!1)):(vue.unref(J).width=parseFloat(c.width)*.57+"px",vue.unref(J).height=window.screen.height*.6+"px",Qn(!0))})},Yn=()=>{vn.value=!1,cr(!1),Qn(!1),f("close")},ar=({type:dr,data:gr})=>{if(dr==="11"&&gr){const{indicatorList:lr=[],queryColumns:hr=[]}=gr,Sr=lr.concat(hr).filter(br=>br.conditions||br.filter),yr=Hn(Sr,"conditions",!0),pr=Hn(gr.sqlConditions,"sqlConditions",!1);Fn.value=yr.concat(pr).filter(br=>br.label)||[]}};vue.watch(Fn,(dr=[])=>{j.value=dr.map(gr=>{let lr=gr.fieldValue;if(lr&&typeof lr=="string"){const hr=lr.split(",");(hr==null?void 0:hr.length)>3&&(lr=hr.slice(0,3).join(",")+"等")}else lr||(lr='""');if(c.drillingMode==="normalTable")return`${gr.label} ${m[gr.rule]} ${lr}`;{const hr=vue.unref(Bn).find(xr=>xr.label===gr.label);return`${(hr==null?void 0:hr.title)||gr.label} ${m[gr.rule]} ${lr}`}})||[]},{deep:!0});const ur=vue.computed(()=>vue.unref(Fn).map(dr=>({label:dr.title||dr.label,typeGuid:dr.typeGuid,rule:dr.rule,value:dr.fieldValue}))),mr=()=>{y.value=!1};return u({showModal:Un}),{indDetailInfo:Pn,pivotTableConfig:J,pivotTableStyle:er,detailBodyStyle:Jn,wrapClassName:ir,isIndFullScreen:vn,isMobile:Vn,conditionInfo:j,indicatorUrl:Xn,allDimensions:Bn,detailLoading:w,pivotTableRef:x,lastDetailRef:gn,subDrillModalRef:b,theDateInfo:re,isShowSubDrillModal:y,normalTableUnits:Rn,drillConditions:ur,getContainer:sr,toggleFullScreen:vr,onDetailCancel:Yn,onPivotTableChange:ar,handleTableChange:nr,onCloseModal:mr}}}),DrillModal_vue_vue_type_style_index_0_scoped_2526a993_lang="",DrillModal_vue_vue_type_style_index_1_lang="",_hoisted_1$l=["title"],_hoisted_2$b={key:0,class:"spin-container"},_hoisted_3$6=["title"],_hoisted_4$4=["title"];function _sfc_render$z(c,u,f,d,h,v){const p=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("switcher-outlined"),g=vue.resolveComponent("border-outlined"),y=vue.resolveComponent("a-spin"),b=vue.resolveComponent("a-table"),gn=vue.resolveComponent("pivot-table"),x=vue.resolveComponent("a-modal"),vn=vue.resolveComponent("last-detail"),J=vue.resolveComponent("drill-modal",!0);return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(x,{visible:c.indDetailInfo.visible,"onUpdate:visible":u[1]||(u[1]=j=>c.indDetailInfo.visible=j),width:"60%",getContainer:c.getContainer,footer:null,destroyOnClose:!0,"wrap-class-name":c.wrapClassName,bodyStyle:c.detailBodyStyle,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_1$l)]),closeIcon:vue.withCtx(()=>[vue.createVNode(p,{class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"])]),default:vue.withCtx(()=>[c.isMobile?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"zoom-btn",onClick:u[0]||(u[0]=(...j)=>c.toggleFullScreen&&c.toggleFullScreen(...j))},[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==="normalTable"||c.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[c.detailLoading?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$b,[vue.createVNode(y,{size:"large"})])):(vue.openBlock(),vue.createBlock(b,{key:1,scroll:{x:"max-content",y:c.isIndFullScreen?"100vh":"70vh"},"row-key":j=>j.uuid,columns:c.indDetailInfo.columns,"data-source":c.indDetailInfo.dataSource,pagination:c.indDetailInfo.pagination,onChange:c.handleTableChange},{headerCell:vue.withCtx(({title:j})=>[vue.createElementVNode("div",{class:"detail-table-header-cell",title:j},vue.toDisplayString(j),9,_hoisted_3$6)]),bodyCell:vue.withCtx(({text:j,column:Fn})=>[vue.createElementVNode("div",{title:j},vue.toDisplayString(j)+vue.toDisplayString(c.normalTableUnits[Fn.title]),9,_hoisted_4$4)]),_:1},8,["scroll","row-key","columns","data-source","pagination","onChange"]))],64)):c.drillingMode==="pivotTable"?(vue.openBlock(),vue.createElementBlock("div",{key:2,style:vue.normalizeStyle({position:"relative",...c.pivotTableStyle})},[vue.createVNode(gn,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,defaultFontSize:c.pivotTableFontSize,drillDetailUrl:c.drillDetailUrl,drillConditions:c.drillConditions,isMobile:c.isMobile,isNeedEmptyRow:!1,enlargeContainer:"#norPageConfig",onTableChange:c.onPivotTableChange}),null,16,["pageMode","theme","indicatorUrl","relateKeyName","allDimensions","scaleValue","defaultFontSize","drillDetailUrl","drillConditions","isMobile","onTableChange"])],4)):vue.createCommentVNode("",!0)]),_:1},8,["visible","getContainer","wrap-class-name","bodyStyle","onCancel"]),vue.createVNode(vn,{ref:"lastDetailRef",theme:c.theme,theDateInfo:c.theDateInfo,scaleValue:c.scaleValue},null,8,["theme","theDateInfo","scaleValue"]),c.isShowSubDrillModal?(vue.openBlock(),vue.createBlock(J,{key:0,ref:"subDrillModalRef",width:c.width,theme:c.theme,drillingMode:c.drillingMode,pageMode:c.pageMode,scaleValue:c.scaleValue,pivotTableFontSize:c.pivotTableFontSize,drillDetailUrl:c.drillDetailUrl,onClose:c.onCloseModal},null,8,["width","theme","drillingMode","pageMode","scaleValue","pivotTableFontSize","drillDetailUrl","onClose"])):vue.createCommentVNode("",!0)],64)}const DrillModal=_export_sfc$1(_sfc_main$u,[["render",_sfc_render$z],["__scopeId","data-v-2526a993"]]),_sfc_main$t=vue.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,components:{IndicatorDetailModal,TrendModal,DrillModal},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=vue.ref(),h=vue.ref(),v=vue.ref(),p=vue.computed(()=>INDICATOR_URL),m=vue.computed(()=>hn(c.contextRequestUrl)),g=vue.computed(()=>c.pageMode),y=vue.computed(()=>c.theme),b=vue.computed(()=>c.width),gn=vue.computed(()=>c.height),x=vue.computed(()=>c.pageFontFamily),vn=vue.computed(()=>c.textColor),J=vue.computed(()=>c.fixedHeight?parseFloat(c.fixedHeight):0),j=vue.computed(()=>c.isCompatible),Fn=vue.computed(()=>c.variableList),Bn=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)),w=vue.computed(()=>parseFloat(c.pivotTableFontSize)),re=vue.ref(),Pn=vue.ref({}),Rn=()=>{re.value.setAttribute("datav-theme",c.theme)},Vn=vue.ref({currentYmd:dayjs().format("YYYY-MM-DD"),currentYear:dayjs().format("YYYY"),currentMonth:dayjs().format("MM"),currentDay:dayjs().format("DD")}),Wn=vue.computed(()=>{const Tr={};if(vue.unref(Fn))for(const Lr of vue.unref(Fn))Tr[Lr.label]=Lr.value;return{$page:{...vue.unref(Vn),...Tr}}});vue.provide(GLOBAL_VARIABLE,{globalVariable:Wn});const Gn=vue.inject("usedComponentList",[]),Zn=vue.inject("componentList",[]);vue.watch(Wn,()=>{f("setGlobalVar",vue.unref(Vn))},{deep:!0,immediate:!0});const Xn=vue.computed(()=>{const Tr=[];for(const Br of vue.unref(Gn))Br.type==="ecanModal"?Tr.push(...Br.componentList):Tr.push(Br);return Tr});vue.watch(()=>c.theme,()=>{Rn()}),vue.onMounted(()=>{Rn()});const er=vue.computed(()=>{const Tr=[],Br=vue.unref(Zn).filter(Lr=>Lr.type==="ecanModal");for(const Lr of Br)Lr!=null&&Lr.requestList&&Tr.push(...Lr.requestList);return[...Tr,...c.requestList]}),Jn=Tr=>Object.prototype.toString.call(Tr)==="[object Object]",ir=Tr=>{const Br=Tr.split(".");let Lr=vue.unref(Wn);for(const Hr of Br)if(Lr&&Jn(Lr))Lr=Lr[Hr];else{Lr="";break}return Lr},or=vue.ref("");vue.provide(GLOBAL_CONFIG,{contextRequestUrl:m,pageMode:g,theme:y,touchEventId:or,width:b,height:gn,fontFamily:x,textColor:vn,requestList:er,isCompatible:j,fixedHeight:J,getGlobalVar:ir});const sr=vue.ref({height:"100%",overflow:c.pageMode==="design"?"":"hidden"});vue.provide("setPageHeight",Tr=>{let Br=0;Tr==="auto"?(Br=Tr,Pn.value={widthScale:1,heightScale:1}):(Br=Tr.heightScale,Pn.value=Tr),(!j.value||!Bn.value)&&(Br=parseFloat(gn.value)*Br+"px"),sr.value.height=Br}),vue.provide("isMobile",Bn.value),vue.provide("getContainerMap",()=>c.containerMap),vue.provide("getCombinationMap",()=>c.combinationMap),vue.provide("templateOperate",{pageId:c.pageId,templateEmit:f,setTemplateData:Tr=>{var Br;if(Tr!=null&&Tr.pageId){const{componentId:Lr,...Hr}=Tr;(Br=window.config)!=null&&Br.urlParams||(window.config.urlParams={}),window.config.urlParams[Tr.pageId]=Hr,f("templateChange",Tr)}}});const Hn=vue.ref(),Kn=new Map,zn=()=>Kn,qn=Tr=>{let Br=Kn.get(Tr);if(!Br){const Lr=vue.unref(Zn).find(Hr=>Hr.keyName===Tr);Lr&&(Br=Kn.get(Lr.id))}return Br},tr=(Tr,Br)=>{var Lr;if(Hn.value=Br,Kn.set(Tr,Br),!c.pageId){const Hr=vue.unref(Gn).find(Or=>Or.id===Tr);Hr&&((Lr=window.config)!=null&&Lr.record||(window.config.record={}),window.config.record[Hr.keyName]=Br)}},Un=()=>{Hn.value=null},nr=Tr=>{let Br=Tr;if(Br){const Lr=Tr.match(/\{(.+?)\}/g);if(Lr!=null&&Lr.length){let Hr=Lr[0].slice(1,-1).trim();const Or=Hr.match(/\[(.+?)\]/g);let Gr="";Or!=null&&Or.length&&(Hr=Hr.replace(Or[0],""),Gr=Or[0].slice(1,-1).trim());const Zr=vue.unref(Xn).find(ni=>ni.keyName===Hr);if(Zr){const ni=qn(Zr.id),{type:ci,value:ai,RECORD:vi,recordData:ui}=ni||{};yn(ci,MODEL_KEY_LIST)?Br=vi[Gr]:yn(ci,"select")?ui[Gr]?Br=ui[Gr]:Br=vue.unref(ai):yn(ci,["rangePicker","date"])?dayjs.isDayjs(vue.unref(ni[Gr]))?Br=vue.unref(ni[Gr]).format(ni.format):Br=vue.unref(ni[Gr]):Br=ai}else{const ni=window.config.requestParams||{},ci=window.location.search.slice(1).split("&"),ai={};for(const ui of ci)if(ui!=null&&ui.includes("=")){const pi=ui.split("=");ai[pi[0]]=pi[1]||""}Br={...ai,...ni}[Hr]||""}}}return Br},cr=new Map,Qn={},fr=async(Tr,Br)=>{var Zr;const{requestName:Lr}=Tr,Hr=await useRequestData({...Tr,projectRequestUrl:vue.unref(m),getModel:qn})(),Or=((Zr=Hr==null?void 0:Hr.data)==null?void 0:Zr.data)||{};Tr.requestKeyName&&(Vn.value[Tr.requestKeyName]=Or);const Gr=cr.get(Lr);if(Gr!=null&&Gr.length&&(!Br||Qn[Lr])){for(const ni of Gr)ni(Or);Br||cr.delete(Lr)}},vr=(Tr,Br)=>{Qn[Tr]&&(clearInterval(Qn[Tr]),delete Qn[Tr],cr.delete(Tr));const Lr=vue.unref(Xn).filter(Or=>Or.dataType==="request"&&!Or.openCustomRequestData&&Or.customRequestName===Tr),Hr=cr.get(Tr)||[];if((Lr==null?void 0:Lr.length)>Hr.length&&(Hr.push(Br),cr.set(Tr,Hr),(Lr==null?void 0:Lr.length)===Hr.length)){const Or=vue.unref(er).find(Gr=>Gr.requestName===Tr);Or&&(Or!=null&&Or.isOpenRequestTimer&&(Or!=null&&Or.requestInterval)?(fr(Or,!0),Qn[Tr]=setInterval(()=>{fr(Or,!0)},Or.requestInterval*1e3)):fr(Or))}};vue.provide(GLOBAL_MODEL,{getGlobalModel:qn,setGlobalModel:tr,getAllGlobalModel:zn,clearInteractiveData:Un,getRecordValueByKeyName:nr,hanldePageRequestData:vr,interactiveData:Hn});const Yn=vue.ref({}),ar=(Tr,Br)=>{Yn.value[Tr]=Br};vue.provide(LOADED_DATA,{loadedData:Yn,setLoadedData:ar});const ur=[],mr=()=>{ur.pop()},dr=Tr=>{ur.push(Tr)},gr=new Map,lr=Tr=>gr.get(Tr),hr=(Tr,Br)=>{gr.set(Tr,Br)};vue.provide(MODAL_MODEL,{popUseModalIds:mr,pushUseModalIds:dr,getModalModel:lr,setModalModel:hr});const xr=mitt(),Sr=new Set,yr=(Tr,Br)=>{Sr.add(Tr),xr.on(Tr,Lr=>{const{eventName:Hr,params:Or}=Lr;return typeof Br[Hr]=="function"&&Br[Hr](Or)}),vue.onBeforeUnmount(()=>{pr(Tr)})},pr=Tr=>{Sr.delete(Tr),xr.off(Tr)},br=(Tr,Br,Lr={})=>{if(Tr==="PAGE"){const Hr=ur.length;let Or=[];if(Hr===0)Or=[...Sr];else{const Gr=ur[Hr-1];Or=[...lr(Gr)]}Or.forEach(Gr=>{xr.emit(Gr,{eventName:Br,params:Lr})})}else xr.emit(Tr,{eventName:Br,params:Lr})};vue.provide(EVENT_BUS,{onEvent:yr,offEvent:pr,emitEvent:br});const kr=vue.ref(0),wr=()=>{kr.value=vue.unref(kr)+1};vue.provide(GLOBAL_TOKEN,{requestToken:wr});const Er=new Map,Pr=new Map,Dr=({requestFn:Tr=()=>{},sortNum:Br=0,id:Lr=""})=>{if(Er.has(Br)){const Hr=Er.get(Br);Hr==null||Hr.push(Tr)}else Er.set(Br,[Tr]);Pr.set(Lr,Tr)},qr=Tr=>new Promise((Br,Lr)=>{const Hr=[];for(const Or of Tr)Hr.push(new Promise(async Gr=>{await Or(),Gr()}));Promise.all(Hr).then(Or=>{Br(Or)}).catch(Or=>{Lr(Or)})}),Rr=Tr=>new Promise(async(Br,Lr)=>{if(Tr){if(typeof Tr=="string"){const Hr=Pr.get(Tr);if(typeof Hr=="function"){const Or=request.interceptors.response.use(Gr=>(Br(Gr),Gr),Gr=>(Lr(Gr),Promise.reject(Gr)));Hr(),request.interceptors.response.eject(Or)}}}else{const Hr=Array.from(Er);Hr.sort((Gr,Zr)=>Zr[0]-Gr[0]);const Or=Hr.length;try{c.pageMode!=="design"&&vue.unref(kr)>0;for(let Gr=0;Gr<Or;Gr++){const Zr=Hr[Gr][1];await qr(Zr)}}catch(Gr){console.error(Gr)}finally{Er.clear(),Br(null)}}});vue.provide(REQUEST_MODEL,{setRequest:Dr,touchRequest:Rr});const Fr=()=>{xr.emit(REFRESH_PAGE)};vue.provide(REFRESH_PAGE,{emitRefreshPage:Fr});const jr=Tr=>{xr.on(REFRESH_PAGE,()=>Tr()),vue.onMounted(()=>{xr.off(REFRESH_PAGE)})},Nr=vue.ref({});vue.provide(All_COMPONENT_RES_DATA,{allComponentResData:Nr});const Ur=Tr=>{const{id:Br,data:Lr}=Tr;Lr.success&&(Nr.value[Br]=(Lr==null?void 0:Lr.data)||{})},Qr=(Tr,Br)=>{switch(Tr){case"SHOW_INDICATOR_DETAIL_MODAL":vue.unref(d).showModal(Br);break;case"SAVE_COMPONENT_RES_DATA":Ur(Br);break}};vue.provide(COMMON_OPERATE,{operateAction:lodashEs.debounce((Tr,Br)=>{Qr(Tr,Br)},100)}),vue.watchEffect(()=>{var Tr;if((Tr=vue.unref(Gn))!=null&&Tr.length&&vue.unref(g)!=="design"){const{jumpType:Br,jumpTime:Lr,jumpPage:Hr,jumpLink:Or}=c;if(Lr!=null&&Lr.value){let Gr=0;switch(Lr==null?void 0:Lr.suffix){case"hours":Gr=Lr.value*60*60*1e3;break;case"minute":Gr=Lr.value*60*1e3;break;case"seconds":Gr=Lr.value*1e3;break}setTimeout(()=>{let Zr="";Br==="page"&&Hr?Zr=usePageUrl(vue.unref(g),Hr):Br==="link"&&Or&&(Zr=Or),Zr=hn(Zr),window.open(Zr,"_self")},Gr)}}});const Wr=Tr=>{var Br;vue.unref(h).showModal({data:Tr,indicatorUrl:vue.unref(p),indicatorToken:((Br=window==null?void 0:window.config)==null?void 0:Br.indicatorToken)||"",context:CONTEXT,pageId:getPageId()})},ri=Tr=>{vue.unref(v).showModal({data:Tr,pageConfig:c,unitText:ei(Tr)})},ei=Tr=>{let Br="",Lr="";const{componentConfig:Hr}=Tr;for(const Gr in Hr)if(Hr[Gr].key==="currentValue"){Lr=Gr;break}const Or=vue.unref(Zn).find(Gr=>Gr.id===Lr);return Or!=null&&Or.unitText&&(Br=Or.unitText),Br};return vue.provide("showIndDetail",Wr),vue.onBeforeUnmount(()=>{Er==null||Er.clear(),Pr==null||Pr.clear()}),u({touchRequest:Rr,getGlobalModel:qn,onRefreshPage:jr,emitEvent:br,getRecordValueByKeyName:nr,showIndDetail:Wr,showTrend:ri,props:c,systemVariable:Vn}),{providerConfig:re,configStyle:sr,indicatorUrl:p,theme:y,drillModalRef:d,indDetailModalRef:h,trendModalRef:v,scaleValue:Pn,defaultPivotTableFontSize:w,isMobile:Bn}}}),ProviderConfig_vue_vue_type_style_index_0_scoped_152b6b48_lang="",ProviderConfig_vue_vue_type_style_index_1_lang="",_hoisted_1$k=["id"];function _sfc_render$y(c,u,f,d,h,v){const p=vue.resolveComponent("drill-modal"),m=vue.resolveComponent("indicator-detail-modal"),g=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$k),vue.createVNode(p,{ref:"drillModalRef",width:c.width,theme:c.theme,drillingMode:c.drillingMode,pageMode:c.pageMode,scaleValue:c.scaleValue,pivotTableFontSize:c.defaultPivotTableFontSize,drillDetailUrl:c.drillDetailUrl},null,8,["width","theme","drillingMode","pageMode","scaleValue","pivotTableFontSize","drillDetailUrl"]),vue.createVNode(m,{ref:"indDetailModalRef",theme:c.theme},null,8,["theme"]),vue.createVNode(g,{ref:"trendModalRef",theme:c.theme},null,8,["theme"])],64)}const ProviderConfig=_export_sfc$1(_sfc_main$t,[["render",_sfc_render$y],["__scopeId","data-v-152b6b48"]]),EcanProviderConfig=withInstall$1(ProviderConfig),textProps={...props$1,name:"文本",keyName:"文本",type:"ecanText",width:"100px",height:"40px",text:"文字",lineHeight:"18px",color:"",variableColor:"",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,(v,p,m)=>{let g=!1,y=p;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 v=c.charAt(d-h-1);if(v===u&&!f)h++;else if(v!==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,v=u.title?escape$2(u.title):null,p=c[1].replace(/\\([\[\]])/g,"$1");if(c[0].charAt(0)!=="!"){d.state.inLink=!0;const m={type:"link",raw:f,href:h,title:v,text:p,tokens:d.inlineTokens(p,[])};return d.state.inLink=!1,m}else return{type:"image",raw:f,href:h,title:v,text:escape$2(p)}}function indentCodeCompensation(c,u){const f=c.match(/^(\s+)(?:```)/);if(f===null)return u;const d=f[1];return u.split(`
102
+ `;let v=c;if(f!=null&&f.length){for(const m of f){const g=hn(m,{textData:u},{useNewline:!1,useSpace:!1});g&&(v=v.replace(m,g))}return`${h}{text|${v}}`}else return c},setDefaultRangeVal=(c,u)=>{const{props:f,componentList:d,getGlobalModel:h}=c,{graphicConfig:v={},startValue:p,endValue:m}=f,g=getdefCompleteData({graphicConfig:v,startValue:p,endValue:m,componentList:d,getGlobalModel:h}),{dimensions:y,dataset:b}=u,{classificationList:gn=[]}=v,vn=gn.find(J=>J.show).label||"";for(const J of g)!y.find(j=>+j==+J)&&!isNaN(+J)&&y.push(+J);y.sort((J,j)=>dayjs(J).isBefore(dayjs(j))?-1:1);for(const J of b){const{data:j}=J;if(j!=null&&j.length){const Fn=[];for(const Bn of g)if(!j.find(w=>+w[vn]==+Bn)&&!isNaN(+Bn)){const w=lodashEs.cloneDeep(j[0]);for(const re in w)re===vn?w[re]=+Bn:w[re]=0;Fn.push(w)}J.data.push(...Fn),J.data.sort((Bn,w)=>dayjs(Bn[vn]).isBefore(dayjs(w[vn]))?-1:1)}}};function getdefCompleteData(c){const{startValue:u,endValue:f,componentList:d,graphicConfig:h,getGlobalModel:v}=c,p=getVariableAndField(u),m=getVariableAndField(f),g=[];if(p&&m){const y=d.find(gn=>gn.keyName===p.keyName),b=d.find(gn=>gn.keyName===m.keyName);if(y&&b){const gn=v(y.id),x=v(b.id),{classificationList:vn=[]}=h,J=vn.find(j=>j.show);if(J){let j="YYYY-MM";switch(J.name){case"the_year":j="YYYY";break;case"the_month":j="MM";break;case"the_day":j="DD";break;case"the_date":j=(J==null?void 0:J.dateFormat)||j;break}const Fn=getFormatStep(j);if(j){const Bn=vue.unref(gn[p.field]),w=vue.unref(x[m.field]);let re=dayjs(Bn);const Pn=dayjs(w);for(g.push(Pn.format(j));re.isBefore(Pn);)g.push(re.format(j)),re=re.add(1,Fn)}}}}return g}function getVariableAndField(c){let u=null;if(c){const f=c.match(/\{(.+?)\}/g);if(f!=null&&f.length){let d=f[0].slice(1,-1).trim();const h=d.match(/\[(.+?)\]/g);let v="";h!=null&&h.length&&(d=d.replace(h[0],""),v=h[0].slice(1,-1).trim()),u={keyName:d,field:v}}}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 gn;const{pageMode:f,targetTemplate:d,getRecordValueByKeyName:h,setTemplateData:v}=u,p=c.linkPage||"",m=usePageUrl(f,p),g=c.href;let y=g||m;y=hn(y);const b=c.target;if(b)if(b==="event")window.parent.postMessage({type:"openPage",url:g},"*");else{const x={pageId:p,componentId:d};if((gn=c.transParams)!=null&&gn.length){y.includes("?")?y+="&":y+="?";const vn=[];for(const J of c.transParams){const j=h(String(J.fieldName));vn.push(`${J.keyName}=${j}`),x[J.keyName]=j}y+=vn.join("&")}b==="template"?(Object.prototype.hasOwnProperty.call(window,"oldPageId")||(window.oldPageId=""),window.oldPageId&&(window.controller.abort(),window.controller=new AbortController),window.oldPageId=p,v(x)):(b==="blank"&&(y+=`${y.includes("?")?"&":"?"}drillFlag=1`),window.open(y,"_"+b))}}function getPageUrlParams(c){var f,d;let u={};if(c){const h=(((f=window.config)==null?void 0:f.urlParams)||{})[c]||{};for(const v in h)v.includes("{")||(u[v]=h[v])}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 v in h[c]){const p=h[c][v];if(v===`{${u}[${f}]}`&&p){d=p;break}}return d}function getFormatWh(c,u){return typeof c=="number"?c: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,v=d.getBoundingClientRect(),{width:p,left:m,top:g}=v,y=window.innerWidth,b=window.innerHeight,gn=c.clientX,x=c.clientY,vn=parseFloat(d.style.left)||0,J=parseFloat(d.style.top)||0,j=-(m+p-h-vn),Fn=y-m+vn-h,Bn=-(g-J),w=b-g+J-h,re=Rn=>{Rn.preventDefault();const Vn=Rn.clientX-gn,Wn=Rn.clientY-x;let Gn=vn+Vn,Zn=J+Wn;Gn=Math.max(j,Math.min(Gn,Fn)),Zn=Math.max(Bn,Math.min(Zn,w)),d.style.left=`${Gn}px`,d.style.top=`${Zn}px`},Pn=()=>{f.style.cursor="",f.style.userSelect="",document.removeEventListener("mousemove",re),document.removeEventListener("mouseup",Pn)};document.addEventListener("mousemove",re),document.addEventListener("mouseup",Pn)},getPageId=()=>{var u;let c=((u=window==null?void 0:window.config)==null?void 0:u.pageId)||"";if(!c){const{pathname:f}=window==null?void 0:window.location;if(f){const d=f.split("/");d!=null&&d.length&&(c=d[d.length-1])}}return c},useRequestData=(c,u,f=()=>{})=>{var ir;const{requestUrl:d,requestMethod:h,requestHeaders:v,requestParams:p,requestInterval:m,isOpenRequestTimer:g,openCustomRequestData:y,projectRequestUrl:b="",getModel:gn,requestParamsMode:x,customRequestParams:vn,dataSetParam:J,requestType:j,dataType:Fn,dataSetchecked:Bn}=c,{pageMode:w}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"})||{},{pageId:re}=vue.inject("templateOperate",{pageId:""})||{},{contextRequestUrl:Pn,touchEventId:Rn}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:"",touchEventId:""})||{},{getGlobalModel:Vn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:or=>{}})||{},Wn=vue.inject(COMMON_OPERATE,{operateAction:(or,sr)=>{}}),Gn=gn||Vn;let Zn=hn(d),Xn=vue.unref(Pn)||b||"";(Fn==="request"&&Bn||j===1)&&(Xn="",Zn=((ir=window.config)==null?void 0:ir.dataSetUrl)||"/api/datav/dataset/data2");const er=async(or={})=>{var cr;if(vue.unref(w)==="design")return;if(Fn!=="request"&&Jn){clearInterval(Jn);return}if(!Zn||!h||!v)return;let sr={};for(const Qn of p){const{key:fr,value:vr}=Qn;if((vr==null?void 0:vr.id)==="PARENT"&&(vr!=null&&vr.prop)){const ar=(((cr=window.config)==null?void 0:cr.record)||{})[vr.prop];if(ar){const ur=ar[vr.propKey||"value"];ur&&(["date","range"].some(dr=>yn(ar==null?void 0:ar.type,dr))?sr[fr]=vue.unref(ur).format(ar.format||"YYYY-MM-DD"):sr[fr]=vue.unref(ur))}continue}if(typeof vr=="object"&&vr!=null&&vr.id){let Yn={};const{id:ar,prop:ur,propKey:mr,operate:dr}=vr;let gr=!1;try{JSON.parse(ar),gr=!0}catch{gr=!1}ar==="THIS"?Yn=Gn(vue.unref(Rn))||{}:Yn=Gn(ar)||{};const lr=vue.unref(Yn[ur]);let hr=null;if(["date","range"].some(Sr=>yn(Yn==null?void 0:Yn.type,Sr))){const{value:Sr,type:yr,mode:pr}=dr||{};if(Sr&&yr&&pr)switch(yr){case"add":hr=vue.unref(lr).add(Sr,pr);break;case"minus":hr=vue.unref(lr).subtract(Sr,pr);break}hr==null&&(hr=vue.unref(lr)),hr=hr&&(hr==null?void 0:hr.format((mr==null?void 0:mr.trim())||Yn.format))||""}else if(Object.prototype.toString.call(lr)==="[object Object]")mr?hr=lr[mr]:hr=ur?lr[ur]:lr;else if(yn(Yn==null?void 0:Yn.type,"select")&&vue.unref(lr)&&ur&&Array.isArray(vue.unref(lr)))hr=vue.unref(lr).map(Sr=>Object.prototype.hasOwnProperty.call(Sr,ur)?Sr[ur]:Sr);else if(gr){const Sr=JSON.parse(ar);console.log(Sr,"urlvalue"),hr=Sr.value}else hr=lr;sr[fr]=hr}else typeof vr=="object"&&!vr.id&&j===1?(console.log(vr.propKey,"value.propKey"),sr[fr]=vr.propKey):typeof vr=="string"&&(sr[fr]=hn(vr))}if(j===1){console.log(sr,"_params");const Qn=Object.entries(sr);let fr=J;if(!J.param&&Array.isArray(J)){const vr={};for(const Yn of J)vr[Yn.key]=Yn.value;fr=vr}fr.param=fr.param.map((vr,Yn)=>({...vr,paramKey:Qn[Yn][0],defaultValue:Qn[Yn][1]||""})),sr=fr}if(x==="2"&&vn!=="{}"){const Qn=JSON.parse(vn);Hn(Qn),Qn&&(sr=Qn)}function Hn(Qn){const fr={...sr,...getPageUrlParams(re)};if(Array.isArray(Qn))Qn.forEach((vr,Yn)=>{if(typeof vr=="string"){const ar=vr.match(/\${(.+?)\}/g);if(ar!=null&&ar.length){const ur=ar[0].slice(2,-1);ur&&fr[ur]?Qn[Yn]=fr[ur]:Qn[Yn]=""}}else Hn(vr)});else if(Object.prototype.toString.call(Qn)==="[object Object]")for(const vr in Qn)if(typeof Qn[vr]=="string"){const Yn=Qn[vr].match(/\${(.+?)\}/g);if(Yn!=null&&Yn.length){const ar=Yn[0].slice(2,-1);ar&&fr[ar]?Qn[vr]=fr[ar]:Qn[vr]=""}}else Hn(Qn[vr])}const Kn=getPageUrlParams(re);for(const Qn in Kn)Kn[Qn]&&(Kn[Qn]=decodeURIComponent(Kn[Qn]));sr={...Kn,...or,...sr};let zn="";const qn=Object.keys(sr),tr=qn.length-1,Un=qn.length;qn.forEach((Qn,fr)=>{let vr=sr[Qn];Object.prototype.toString.call(vr)==="[object Object]"&&(vr=JSON.stringify(vr)),fr===0?Un!==1?zn+=`?${Qn}=${vr}&`:zn+=`?${Qn}=${vr}`:fr===tr?zn+=`${Qn}=${vr}`:zn+=`${Qn}=${vr}&`}),Zn.includes("?")&&(zn=zn.replace("?","&"));function nr(Qn){var fr;if(j===1)return{Authentication:(fr=window==null?void 0:window.config)==null?void 0:fr.indicatorToken};if(typeof Qn=="string"){const vr=JSON.parse(Qn),Yn=getPageUrlParams(re);if(Object.prototype.toString.call(vr)==="[object Object]"){for(const ar in vr)if(typeof vr[ar]=="string"){const ur=vr[ar].match(/\${(.+?)\}/g);if(ur!=null&&ur.length){const mr=ur[0].slice(2,-1);mr&&Yn[mr]?vr[ar]=Yn[mr]:vr[ar]=""}}}return vr}else return Qn}try{const Qn=["get","head"].includes(h),fr={};let vr=Qn?Zn+zn:Zn;sr.dataSqlId&&!vr.includes("dataSqlId")&&(vr+=`${vr.includes("?")?"&":"?"}dataSqlId=${sr.dataSqlId}`),Object.prototype.hasOwnProperty.call(sr,"signal")?fr.signal=sr.signal:window.controller&&(fr.signal=window.controller.signal);const Yn=await request({baseURL:Xn,url:vr,method:h,headers:v?nr(v):{},data:Qn?{}:sr,...fr});return f(Yn),Wn.operateAction("SAVE_COMPONENT_RES_DATA",{id:c.id,data:(Yn==null?void 0:Yn.data)||{}}),Yn}catch(Qn){console.error(Qn)}},Jn=vue.unref(w)!=="design"&&g&&(y||y===void 0)&&setInterval(er,m*1e3);return vue.onUnmounted(()=>{clearInterval(Jn)}),er},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 b;const{pageMode:f}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),{requestToken:d}=vue.inject(GLOBAL_TOKEN,{requestToken:()=>{}}),{setLoadedData:h}=vue.inject(LOADED_DATA,{setLoadedData:(gn,x)=>{}}),{getAllGlobalModel:v}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),{pageId:p}=vue.inject("templateOperate",{pageId:""})||{},m=vue.inject(COMMON_OPERATE,{operateAction:(gn,x)=>{}});c.dataType==="indicator"&&d();const g=async(gn={})=>{var re,Pn,Rn,Vn,Wn;if(vue.unref(f)==="design")return;const x=v();h(c.id,!1);const vn=Dn({...c,globalModel:x},gn),{url:J,...j}=vn||{},{pathname:Fn,search:Bn}=window==null?void 0:window.location;let w=p||((re=window==null?void 0:window.config)==null?void 0:re.pageId);if(!w&&Fn){const Gn=Fn.split("/");Gn!=null&&Gn.length&&(w=Gn[Gn.length-1])}if(J&&j){let Gn,Zn;if(c.type==="ecanIndexPanel"&&(Gn=c.theFlag),["/diagram/formData","/diagram"].includes(J)){Zn={};const er=Bn.slice(1,Bn.length).split("&");for(const Jn of er)if(Jn){const ir=Jn.split("=");if(ir[0])if(ir[0]==="userInfo")try{Zn.token=(Rn=(Pn=JSON.parse(decodeURIComponent(ir[1])))==null?void 0:Pn.baseInfo)==null?void 0:Rn.hrpToken}catch(or){console.log(or)}else Zn[ir[0]]=ir[1]}}try{const Xn=await request({url:`${INDICATOR_URL}${J}`,method:"post",headers:{Authentication:(Vn=window==null?void 0:window.config)==null?void 0:Vn.indicatorToken,operateContext:CONTEXT},data:{...j,pageId:w,theFlag:Gn,extParam:Zn},signal:((Wn=window.controller)==null?void 0:Wn.signal)||""});return gn!=null&&gn.isTimer&&u(Xn),m.operateAction("SAVE_COMPONENT_RES_DATA",{id:c.id,data:(Xn==null?void 0:Xn.data)||{}}),Xn}catch(Xn){console.error(Xn)}}},y=vue.unref(f)!=="design"&&((b=c==null?void 0:c.graphicConfig)==null?void 0:b.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 v=u[h];if(v==null||v==="")continue;const p=v.split("=");if(Array.isArray(p)){const m=p[0];m.includes("{")||(d[m]=p[1])}}window.config.requestParams={...window.config.requestParams,...d},window.config={...window.config,...d}},_sfc_main$B=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",Rn=>{}),v=vue.inject("isMobile",!1),p=vue.computed(()=>{const Rn={};return(!d.value||!v)&&(Rn.width=u.value,Rn.height=f.value),{...Rn,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),b=vue.ref(0),gn=vue.ref(!1),x=vue.ref();let vn;const J=()=>new Promise(Rn=>{vue.nextTick(()=>{u.value&&f.value?(m.value=parseFloat(u.value),g.value=parseFloat(f.value)):(m.value=x.value.clientWidth,g.value=x.value.clientHeight),(!y.value||!b.value)&&(y.value=window.screen.width,b.value=window.screen.height),Rn()})}),j=()=>{m.value&&g.value?(x.value.style.width=`${m.value}px`,x.value.style.height=`${g.value}px`):(x.value.style.width=`${y.value}px`,x.value.style.height=`${b.value}px`)};vue.watch([u,f],async()=>{c.pageId||(await J(),j(),Bn(),window.addEventListener("resize",w),re()),gn.value=!0},{immediate:!0});const Fn=vue.ref({});vue.provide("scaleValue",Fn);const Bn=()=>{if(d.value&&v){x.value.style.width="100%",x.value.style.height="auto",h("auto");return}const Rn=document.body.clientWidth,Vn=document.body.clientHeight,Wn=m.value||y.value,Gn=g.value||b.value,Zn=Rn/Wn;let Xn=Vn/Gn;(m.value!==1920||g.value!==1080)&&(Xn=g.value/m.value*Rn/Gn),Fn.value={widthScale:Zn,heightScale:Xn},x.value&&(x.value.style.transform=`scale(${Zn}, ${Xn})`),h(Fn.value)},w=lodashEs.debounce(async()=>{await J(),Bn()},100),re=()=>{const Rn=window.MutationObserver;vn=new Rn(w),vn.observe(x.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},Pn=()=>{vn&&(vn.disconnect(),vn.takeRecords(),vn=null)};return vue.onMounted(()=>{gn.value=!1}),vue.onUnmounted(()=>{window.removeEventListener("resize",w),Pn()}),{style:p,container:x,ready:gn}}}),PageConfig_vue_vue_type_style_index_0_scoped_44a453d9_lang="",_hoisted_1$p=["id"],_hoisted_2$e=["id"];function _sfc_render$G(c,u,f,d,h,v){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$e)):vue.createCommentVNode("",!0)],8,_hoisted_1$p)}const PageConfig=_export_sfc$1(_sfc_main$B,[["render",_sfc_render$G],["__scopeId","data-v-44a453d9"]]),EcanPageConfig=withInstall$1(PageConfig),providerConfig={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px",pageFontFamily:"",textColor:"",jumpType:"page",jumpTime:null,jumpPage:"",jumpLink:"",requestList:[],events:[],isCompatible:!0,variableList:[],drillingMode:"pivotTable",pivotTableFontSize:"16px",drillDetailUrl:""},providerConfigComponentProps=transformToComponentProps(providerConfig),_sfc_main$A=vue.defineComponent({name:"IndicatorDetailModal",components:{BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1,CloseOutlined:CloseOutlined$1,ZoomInOutlined:ZoomInOutlined$1,ZoomOutOutlined:ZoomOutOutlined$1,RedoOutlined:RedoOutlined$1},props:{theme:{type:String,default:"light"}},setup(c,{expose:u}){const f=vue.ref(!1),d=vue.ref([]),h=vue.ref(!1),v=vue.ref(),p=vue.ref(!1),m=vue.ref(1),g=vue.inject("isMobile",!1),y=vue.computed(()=>c.theme),b=vue.computed(()=>m.value!==1?{transform:`scale(${m.value})`,transformOrigin:"left top"}:{}),gn=async({data:Vn,indicatorUrl:Wn,indicatorToken:Gn,context:Zn,pageId:Xn})=>{var or,sr;h.value=!0,f.value=!0;let er=[];const{graphicConfig:Jn,theFlag:ir}=vue.unref(Vn)||{};if(Jn){const{leftAxisList:Hn=[],rightAxisList:Kn=[],indicators:zn=[]}=Jn,qn=Hn.concat(Kn).concat(zn);qn!=null&&qn.length&&(er=qn.map(tr=>({calcType:tr.calcType||"COLUMN",columnName:tr.name,hrpIndexCode:tr.indexCode,hrpIndexCodeNum:tr.indexCodeNum,label:tr.label,show:tr.show,formula:tr.formula})))}if(er!=null&&er.length)try{const Hn=await request({url:`${vue.unref(Wn)}/diagram/obtainIndicatorInfo`,method:"post",headers:{Authentication:Gn,operateContext:Zn},data:{source:"INDICATOR_LIB",pageId:Xn,indicatorList:er,theFlag:ir}}),Kn=((or=Hn==null?void 0:Hn.data)==null?void 0:or.data)||[];(sr=Kn[0])!=null&&sr.remark?(v.value=Kn[0].remark,d.value=[]):(v.value=null,d.value=Kn)}catch{}finally{h.value=!1}vue.nextTick(()=>{J(!0),j(!0)})},x=()=>document.querySelector("#ProviderConfig > #container")||document.body,vn=vue.computed(()=>{let Vn="detail-modal";return(p.value||vue.unref(g))&&(Vn+=" full",vue.unref(g)&&(Vn+=" mobile")),vue.unref(y)==="darkBlue"&&(Vn+=" darkBlue"),Vn}),J=Vn=>{const Wn=document.querySelector(".detail-modal .ant-modal-header");Wn&&(Vn?Wn.addEventListener("dblclick",Bn):Wn.removeEventListener("dblclick",Bn))},j=Vn=>{const Wn=document.querySelector(".detail-modal .ant-modal-header");if(Wn)if(Vn)Wn.addEventListener("mousedown",Fn);else{const Gn=Wn.parentElement;Gn&&(Gn.style.left="",Gn.style.top=""),Wn.removeEventListener("mousedown",Fn)}};function Fn(Vn){dragModalAction(Vn,".detail-modal .ant-modal-header")}const Bn=()=>{p.value=!p.value,vue.nextTick(()=>{p.value?j(!1):j(!0)})},w=()=>{vue.unref(g)||(p.value=!1),J(!1),j(!1)},re=()=>{m.value+=.5},Pn=()=>{vue.unref(m)>1&&(m.value-=.5)},Rn=()=>{m.value=1};return vue.watch(m,Vn=>{localStorage.setItem("indDetailZoom",String(Vn))}),vue.watch(f,Vn=>{Vn?document.documentElement.style.overflow="hidden":document.documentElement.style.overflow="hidden auto"}),vue.onMounted(()=>{var Wn,Gn;const Vn=localStorage.getItem("indDetailZoom");if(Vn&&(m.value=+Vn),vue.unref(g)){const Zn=document.querySelector("#ProviderConfig > #container");p.value=!0,(Wn=Zn==null?void 0:Zn.style)==null||Wn.setProperty("--window-screen-width",document.body.clientWidth+"px"),(Gn=Zn==null?void 0:Zn.style)==null||Gn.setProperty("--window-screen-height",document.body.clientHeight+"px")}}),u({showModal:gn}),{visible:f,dataList:d,isLoading:h,hasOwn:mn,remarkData:v,wrapClassName:vn,isIndFullScreen:p,infoStyle:b,indDetailZoom:m,isMobile:g,getContainer:x,toggleFullScreen:Bn,onDetailCancel:w,handleZoomIn:re,handleZoomOut:Pn,handleResetZoom:Rn}}}),IndicatorDetailModal_vue_vue_type_style_index_0_scoped_321c1810_lang="",IndicatorDetailModal_vue_vue_type_style_index_1_lang="",_withScopeId$7=c=>(vue.pushScopeId("data-v-321c1810"),c=c(),vue.popScopeId(),c),_hoisted_1$o=_withScopeId$7(()=>vue.createElementVNode("div",{class:"modal-title"},"指标详情",-1)),_hoisted_2$d={class:"zoom-btn"},_hoisted_3$7={key:0,class:"spin-container"},_hoisted_4$5=["innerHTML"],_hoisted_5$4={class:"index-name"},_hoisted_6$4={key:0,class:"card-row"},_hoisted_7$4=_withScopeId$7(()=>vue.createElementVNode("div",{class:"label"},"计量单位:",-1)),_hoisted_8$4={class:"content"},_hoisted_9$3={key:1,class:"card-row"},_hoisted_10$3=_withScopeId$7(()=>vue.createElementVNode("div",{class:"label"},"指标定义:",-1)),_hoisted_11$3={class:"content"},_hoisted_12$3={key:2,class:"card-row"},_hoisted_13$3=_withScopeId$7(()=>vue.createElementVNode("div",{class:"label"},"计算方法:",-1)),_hoisted_14$3={class:"content"},_hoisted_15$2={key:3,class:"card-row"},_hoisted_16$1=_withScopeId$7(()=>vue.createElementVNode("div",{class:"label"},"指标说明:",-1)),_hoisted_17$1={class:"content"};function _sfc_render$F(c,u,f,d,h,v){const p=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("redo-outlined"),g=vue.resolveComponent("zoom-out-outlined"),y=vue.resolveComponent("zoom-in-outlined"),b=vue.resolveComponent("switcher-outlined"),gn=vue.resolveComponent("border-outlined"),x=vue.resolveComponent("a-spin"),vn=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(vn,{visible:c.visible,"onUpdate:visible":u[0]||(u[0]=J=>c.visible=J),width:"55%",getContainer:c.getContainer,footer:null,destroyOnClose:!0,bodyStyle:{maxHeight:c.isIndFullScreen?"":"70vh",height:c.isIndFullScreen?"100vh":"",overflow:"auto",padding:"20px 24px 24px"},"wrap-class-name":c.wrapClassName,onCancel:c.onDetailCancel},{title:vue.withCtx(()=>[_hoisted_1$o]),closeIcon:vue.withCtx(()=>[vue.createVNode(p,{class:vue.normalizeClass(["close-icon",c.theme])},null,8,["class"])]),default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$d,[c.indDetailZoom>1?(vue.openBlock(),vue.createBlock(m,{key:0,class:"modal-icon",title:"还原",onClick:c.handleResetZoom},null,8,["onClick"])):vue.createCommentVNode("",!0),c.indDetailZoom>1?(vue.openBlock(),vue.createBlock(g,{key:1,class:"modal-icon",title:"缩小内容",onClick:c.handleZoomOut},null,8,["onClick"])):vue.createCommentVNode("",!0),vue.createVNode(y,{class:"modal-icon",title:"放大内容",onClick:vue.withModifiers(c.handleZoomIn,["stop","prevent"])},null,8,["onClick"]),!c.isMobile&&c.isIndFullScreen?(vue.openBlock(),vue.createBlock(b,{key:2,class:vue.normalizeClass(["modal-icon",c.theme]),title:"取消全屏",onClick:c.toggleFullScreen},null,8,["class","onClick"])):c.isMobile?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(gn,{key:3,class:vue.normalizeClass(["modal-icon",c.theme]),title:"全屏",onClick:c.toggleFullScreen},null,8,["class","onClick"]))]),c.isLoading?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$7,[vue.createVNode(x,{size:"large"})])):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"info-container",style:vue.normalizeStyle(c.infoStyle)},[c.remarkData?(vue.openBlock(),vue.createElementBlock("div",{key:0,innerHTML:c.remarkData},null,8,_hoisted_4$5)):c.dataList.length?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:1},vue.renderList(c.dataList,(J,j)=>(vue.openBlock(),vue.createElementBlock("div",{class:"detail-wrap",key:j},[vue.createElementVNode("div",_hoisted_5$4,vue.toDisplayString(J.indexName||"--"),1),c.hasOwn(J,"theUnit")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$4,[_hoisted_7$4,vue.createElementVNode("div",_hoisted_8$4,vue.toDisplayString(J.theUnit||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(J,"meaning")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_9$3,[_hoisted_10$3,vue.createElementVNode("div",_hoisted_11$3,vue.toDisplayString(J.meaning||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(J,"theFormula")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_12$3,[_hoisted_13$3,vue.createElementVNode("div",_hoisted_14$3,vue.toDisplayString(J.theFormula||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(J,"theExplain")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_15$2,[_hoisted_16$1,vue.createElementVNode("div",_hoisted_17$1,vue.toDisplayString(J.theExplain||"--"),1)])):vue.createCommentVNode("",!0)]))),128)):vue.createCommentVNode("",!0)],4))]),_:1},8,["visible","getContainer","bodyStyle","wrap-class-name","onCancel"])}const IndicatorDetailModal=_export_sfc$1(_sfc_main$A,[["render",_sfc_render$F],["__scopeId","data-v-321c1810"]]),lineProps={...props$1,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:"",isForbidClick:!1},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"),v=new Blob([f]),p=document.createElement("a"),m=window.URL.createObjectURL(v);p.href=m,p.download=decodeURI(h),p.style.display="none",document.body.appendChild(p),p.click(),(g=p.parentNode)==null||g.removeChild(p),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=[],pageConfig:d={}}=c,h=lodashEs.cloneDeep(c.componentList),v=h.filter(p=>p.type==="ecanTabs"&&p.isAutoScroll);if(v!=null&&v.length)for(const p of v){const m=u[p.id],g=[];if((!mn(p,"componentList")||!(p!=null&&p.componentList))&&(p.componentList=[]),m){let y=0;for(const b in m){const gn=m[b],x=[];if(gn!=null&&gn.length)for(const vn of gn){let J=h.find(j=>j.id===vn);J||(J=f.find(j=>j.id===vn)),J&&(x.push(J),containerType.includes(J.type)&&x.push(...getComponentByContainer(J.id,u,f)))}for(const vn of x)mn(vn,"scale")?parseFloat(b)>0&&(vn.left=parseFloat(vn.left)+y+"px"):(vn.left=parseFloat(vn.sourceLeft||vn.left)-parseFloat(p.sourceLeft||p.left)+y+"px",vn.top=parseFloat(vn.sourceTop||vn.top)-parseFloat(p.sourceTop||p.top)+"px"),g.includes(vn.id)||g.push(vn.id);p.componentList.push(...x),y=getMaxLeftInComponents(x,d)}}for(const y of g){const b=h.findIndex(gn=>gn.id===y);b!==-1&&h.splice(b,1)}}return h}function compatibleMobileList(c){var m,g,y;const u=document.body.clientWidth,{combinationMap:f={},sourceList:d=[],pageConfig:h={}}=c,v=c.containerMap,p=lodashEs.cloneDeep([...c.componentList,...getTabsSomeComponentList(v,d)]);if(handleContainerMap(v,p),(m=Object.keys(v))!=null&&m.length||(g=Object.keys(f))!=null&&g.length){for(const j in v){const Fn=p.find(Bn=>Bn.id===j);if(Fn){if(Fn!=null&&Fn.isFlowGrid){Fn.sourceLeft=Fn.left,Fn.sourceTop=Fn.top;continue}mn(Fn,"parentId")||(Fn.parentId="",Fn.sourceLeft=Fn.left,Fn.sourceTop=Fn.top);for(const Bn in v[j])if(v[j][Bn])for(const w of v[j][Bn]){const re=p.find(Pn=>Pn.id===w);if(re&&(re.parentId=j,re.sourceLeft=re.left,re.sourceTop=re.top,re.left=parseFloat(re.left)-parseFloat(Fn.sourceLeft||Fn.left)+"px",re.top=parseFloat(re.top)-parseFloat(Fn.sourceTop||Fn.top)+"px",re.type==="ecanIndexPanel")){const{componentIds:Pn}=re;for(const Rn of Pn){const Vn=p.find(Wn=>Wn.id===Rn);Vn&&(Vn.left=parseFloat(Vn.left)-parseFloat(re.sourceLeft)+"px",Vn.top=parseFloat(Vn.top)-parseFloat(re.sourceTop)+"px")}}}}}const b=Array.from(new Set(p.filter(j=>(!mn(j,"parentId")||j.parentId==="")&&j.combinationId).map(j=>j.combinationId))),gn=getCombinationList(b,{...c,componentList:p,pageConfig:h});gn!=null&&gn.length&&p.unshift(...gn);const x=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap","ecanTable"],vn=p.filter(j=>x.includes(j.type)&&!mn(j,"parentId")),J=[];for(const j of vn)if(j){const Fn=j.id+"_vir";if(J.push({id:Fn,keyName:j.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:u,height:getFormatWh(j.height,h==null?void 0:h.height),left:j.left,top:j.top,sourceLeft:j.left,sourceTop:j.top}),j.parentId=Fn,j.sourceLeft=j.left,j.sourceTop=j.top,j.left=10,j.top=0,j.width=u-20+"px",j.type==="ecanTable"){const{columns:Bn=[]}=j;j.scrollX="max-content";for(const w of Bn)(y=w==null?void 0:w.width)!=null&&y.includes("%")&&(w.width=parseFloat(w.width)/100*u+"px")}}J!=null&&J.length&&p.unshift(...J);for(const j of p){if(j.parentId===""&&containerType.includes(j.type))j.sourceWidth=getFormatWh(j.width,h==null?void 0:h.width),j.height=(u/(j.sourceWidth/getFormatWh(j.height,h==null?void 0:h.height))).toFixed(2)+"px",j.width="100%",j.position="relative",j.top="auto",j.left="auto";else{const Fn=p.find(Bn=>Bn.id===j.parentId);if((Fn==null?void 0:Fn.parentId)===""){const Bn=Fn.sourceWidth||getFormatWh(Fn.width,h==null?void 0:h.width),w=u/Bn;j.scale=w,j.top=parseFloat(j.top)*w-getFormatWh(j.height,h==null?void 0:h.height)*(1-w)/2+"px",j.left=parseFloat(j.left)*w-getFormatWh(j.width,h==null?void 0:h.width)*(1-w)/2+"px"}}j.type==="ecanModal"&&(j.parentId="",j.fullModal=!0)}return sortList(p)}return p}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 v=f[h.id];for(const p in v)for(const m of v[p]){const g=u.find(y=>y.id===m);if(g&&containerType.includes(g.type)){const y=getComponentByContainer(g.id,f,u);for(const b of y)c[h.id][p].push(b.id),containerType.includes(b.type)&&delete c[b.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 v=c[h.id];for(const p in v)if(parseFloat(p)>0)for(const m of v[p]){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 v in h)for(const p of h[v]){const m=f.find(g=>g.id===p);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=[],pageConfig:v={}}=u,p=[];for(const m of c){const g=d[m];if(g!=null&&g.length){const y=h.filter(b=>g.includes(b.id));if(y!=null&&y.length){const b=getCombinateRect(y,v);if(b){p.push({...b,id:m,keyName:m,parentId:f||"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:b.left,sourceTop:b.top});for(const gn of y)gn&&(gn.parentId=m,gn.sourceLeft=gn.left,gn.sourceTop=gn.top,gn.left=parseFloat(gn.left)-parseFloat(b.left)+"px",gn.top=parseFloat(gn.top)-parseFloat(b.top)+"px")}}}}return p}function sortList(c){const f=c.filter(d=>d.parentId===""||(d==null?void 0:d.isFlowGrid));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 v=0;v<d.length-h-1;v++){let p=!1;if((d[v].sourceTop-d[v+1].sourceTop>40||Math.abs(d[v+1].sourceTop-d[v].sourceTop)<=40&&d[v].sourceLeft>d[v+1].sourceLeft)&&(p=!0),p){const m=d[v];d[v]=d[v+1],d[v+1]=m}}for(const h of d){const v=c.findIndex(p=>p.id===h.id);v!==-1&&c.splice(v,1)}return[...d,...c]}return c}function getCombinateRect(c,u){const f=c.sort((p,m)=>parseFloat(p.top)-parseFloat(m.top))[0],d=c.sort((p,m)=>parseFloat(p.left)-parseFloat(m.left))[0],h=c.map(p=>({...p,computedTop:parseFloat(p.top)+getFormatWh(p.height,u==null?void 0:u.height)})).sort((p,m)=>m.computedTop-p.computedTop)[0],v=c.map(p=>({...p,computedLeft:parseFloat(p.left)+getFormatWh(p.width,u==null?void 0:u.width)})).sort((p,m)=>m.computedLeft-p.computedLeft)[0];return f&&d&&h&&v?{left:d.left,top:f.top,width:v.computedLeft-parseFloat(d.left)+"px",height:h.computedTop-parseFloat(f.top)+"px"}:null}function getMaxLeftInComponents(c,u){const f=c.map(d=>parseFloat(d.left)+getFormatWh(d.width,u==null?void 0:u.width)).sort((d,h)=>h-d)[0];return f||0}function moveToComponentList(c,u,f){const d=c[f],h=[];if(d)for(const v in d){const p=d[v];for(const m of p){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$z=vue.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(c,{emit:u}){u("ready",c.component.id)}});function _sfc_render$E(c,u,f,d,h,v){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$z,[["render",_sfc_render$E]]),EcanRender=withInstall$1(Render),_sfc_main$y=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),{width:h,height:v}=vue.inject(GLOBAL_CONFIG,{width:null,height:null}),p=vue.computed(()=>c.fullModal),m=vue.inject("getContainerMap",()=>{}),g=vue.inject("getCombinationMap",()=>{}),{clearInteractiveData:y,interactiveData:b,setRequestData:gn}=vue.inject(GLOBAL_MODEL,{setRequestData:(Sr,yr)=>{},clearInteractiveData:()=>{},interactiveData:null}),x=()=>document.getElementById("ProviderConfig")||document.body,vn=vue.computed(()=>{const Sr=c.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[Sr]}}),J=c.fullModal?"1920px":c.width,j=c.fullModal?"1080px":c.height,Fn=c.originalWidth,Bn=c.originalHeight,w=vue.ref("80%"),re=vue.ref(0),Pn=vue.ref(),Rn=vue.ref(0),Vn=vue.ref({}),Wn=usePickComponentStyle(c),Gn=vue.ref({}),Zn=vue.ref(!1),Xn=vue.ref();let er;const Jn=()=>{Pn.value=parseFloat(J)/parseFloat(Fn);const Sr=parseFloat(j)/parseFloat(Bn),yr=document.body.offsetWidth,pr=document.body.offsetHeight;if(re.value=yr*vue.unref(Pn),Rn.value=pr*Sr,w.value=`${vue.unref(Pn)*100}%`,Vn.value={width:`${vue.unref(re)}px`,height:`${vue.unref(Rn)}px`,border:`${c.borderWidth} solid ${c.borderColor}`,borderRadius:c.borderRadius+"px",boxShadow:c.boxShadow},Gn.value={...vue.unref(Wn),backgroundImage:useImagePath(c.backgroundImage,!0)},d)Gn.value={...Gn.value,width:"100%",height:"100%"};else{const br={...Gn.value,width:J,height:j};c.banScale&&vue.unref(p)?(br.width="100%",br.height="100%"):br.transform=`scale(${vue.unref(re)/parseFloat(J)},${vue.unref(Rn)/parseFloat(j)})`,Gn.value=br}},ir=lodashEs.debounce(()=>{Jn()},100),or=()=>{const Sr=window.MutationObserver;er=new Sr(ir),er.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},sr=()=>{er&&(er.disconnect(),er.takeRecords(),er=null)},Hn=vue.ref(!1),{touchRequest:Kn}=vue.inject(REQUEST_MODEL,{touchRequest:()=>{}}),zn=vue.ref(""),qn=()=>{var pr;const{title:Sr}=c,yr=(pr=vue.unref(b))==null?void 0:pr.RECORD;return yr?hn(Sr,{textData:yr},{useNewline:!1,useSpace:!1}):Sr},tr=useEmitEvent(c),Un=Sr=>{const{changeIframeStyle:yr}=window.parent;yr&&typeof yr=="function"&&yr({iframeId:c.parentIframeId||"",action:Sr})},nr=()=>{vue.unref(p)&&Un("open"),d&&(document.documentElement.style.overflow="hidden"),zn.value=qn(),Hn.value=!0},cr=tr("hideModal",()=>{vue.unref(p)&&Un("close"),u("close"),d&&(document.documentElement.style.overflow="hidden auto",f.value=[]),Hn.value=!1}),Qn=()=>{cr()},fr=()=>{cr(),y()},{setModalModel:vr,pushUseModalIds:Yn,popUseModalIds:ar}=vue.inject(MODAL_MODEL,{pushUseModalIds:Sr=>{},popUseModalIds:()=>{},setModalModel:(Sr,yr)=>{}}),ur=vue.computed(()=>{let Sr=c.componentList;const yr=lodashEs.cloneDeep(c.componentList),pr=m(),br=g(),wr={containerMap:pr,combinationMap:br};d&&(Sr=compatibleMobileList({...wr,componentList:yr,sourceList:c.allComponentList,pageConfig:{width:vue.unref(h),height:vue.unref(v)}})),Sr=handleScrollCombinations({...wr,componentList:Sr,sourceList:c.allComponentList,pageConfig:{width:vue.unref(h),height:vue.unref(v)}});const kr=[];for(const Er of Sr)if(Er.type==="ecanCirculate"){const Ir=moveToComponentList(pr,vue.unref(yr),Er.id);Er.componentList=Ir,kr.push(...Ir.map(Dr=>Dr.id))}else if(Er.type==="ecanTable"){const{headerFontSize:Ir,fontSize:Dr,size:qr,bodyRowHeight:Rr,headRowHeight:Fr}=Er;if(!Rr||!Fr)if(Er.size){let jr=0;switch(qr){case"default":jr=16;break;case"middle":jr=12;break;case"small":jr=8;break}Rr||(Er.bodyRowHeight=(jr*2+parseFloat(Dr)*1.5715).toFixed(0)+"px"),Fr||(Er.headRowHeight=(jr*2+parseFloat(Ir)*1.5715).toFixed(0)+"px")}else Rr||(Er.bodyRowHeight="54px"),Fr||(Er.headRowHeight="54px")}if(kr!=null&&kr.length)for(const Er of kr){const Ir=Sr.findIndex(Dr=>Dr.id===Er);Ir!==-1&&Sr.splice(Ir,1)}return Sr}),mr=()=>{const Sr=c.id;let yr=[];const pr=c.componentList;Array.isArray(pr)&&(yr=pr.map(br=>br.id),vr(Sr,[...new Set(yr)]))},dr=vue.ref(!1),gr={};for(const Sr of c.requestList)gr[Sr.requestName]=useRequestData(Sr);vue.watch(()=>Hn.value,async Sr=>{if(Sr)Zn.value=!1,Yn(c.id),mr(),await vue.nextTick(()=>{Jn(),window.addEventListener("resize",ir),or(),Zn.value=!0}),Kn();else{if(gn)for(const yr in gr)gn(yr,{});ar(),window.removeEventListener("resize",ir),sr()}});const lr=vue.computed(()=>vue.unref(Pn)>=1),hr=vue.computed(()=>{let Sr="ecan-modal";return vue.unref(lr)&&(Sr+=" ecan-full-width-modal"),vue.unref(p)&&(Sr+=" ecan-full-modal"),Sr});return useOnEvent(c,{showModal:nr,hideModal:cr}),{modalRef:Xn,containStyle:Vn,contentStyle:Gn,getContainer:x,modalStyle:vn,modalWith:w,isFullModal:p,style:Wn,visible:Hn,showModal:nr,onOk:Qn,onCancel:fr,isFullWidth:lr,wrapClassName:hr,ready:Zn,usedComponentList:ur,isMobile:d,readyIds:f,hasOwn:mn,onComponentReady:Sr=>{f.value.push(Sr)},formatTitle:zn,requestLoaded:dr}}}),Modal_vue_vue_type_style_index_0_scoped_cb5d6923_lang="",Modal_vue_vue_type_style_index_1_lang="";function _sfc_render$D(c,u,f,d,h,v){const p=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(p,{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,b)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:y.id+b},[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$y,[["render",_sfc_render$D],["__scopeId","data-v-cb5d6923"]]),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$x=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:""}),v=vue.inject("showIndDetail",tr=>{}),p=vue.inject("usedComponentList",[]),m=vue.ref(),g=vue.ref(!1),y=usePickComponentStyle(c),b=vue.ref([]),gn=vue.ref([]),x=vue.ref(),vn=vue.computed(()=>g.value?ZOOM_FONT_SIZE:12),J=vue.ref({});let j;const Fn=vue.ref([]),Bn=vue.computed(()=>{const tr=c.xAxisLabelFormatter,Un=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 nr;g.value=!0,(nr=x.value)==null||nr.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(){v(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:vn.value,color:c.tooltipTextStyleColor},show:c.tooltipShow,formatter:nr=>{var vr;const cr=nr.length;let Qn="",fr=c.tooltipFormatter;j=(vr=nr[0])==null?void 0:vr.data,fr===""&&(fr="{marker} {a} {c}");for(let Yn=0;Yn<cr;Yn++){const{marker:ar,seriesName:ur,name:mr,value:dr,data:gr}=nr[Yn]||{};if(Yn===0){let lr=mr;typeof mr=="string"&&mr[0]==="0"&&!isNaN(+mr)&&(lr=(+mr).toString()),Qn+=`${In(tr,lr)}<br/>`}Qn+=hn(fr,{textData:{marker:ar,name:mr,value:dr,a:ur,b:mr,c:dr||0,...gr}},{useNewline:!0,useSpace:!0}),Qn+="<br/>"}return Qn},position:c.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:c.isBoundaryGap,data:vue.unref(gn).map(nr=>{let cr={};return nr&&typeof nr=="object"?cr={...nr}:cr={value:nr},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(nr){return typeof nr=="string"&&nr[0]==="0"&&!isNaN(+nr)&&(nr=(+nr).toString()),In(tr,nr)}},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(nr){return In(Un,nr)}},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(nr=>({name:nr.name,icon:c.legendType})),formatter:nr=>getLegendFormat(c.legendFormatter,{name:nr})},series:vue.unref(b)}}),w=()=>{g.value=!1},{getGlobalModel:re,setGlobalModel:Pn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:tr=>{},setGlobalModel:(tr,Un)=>{}}),Rn=vue.computed(()=>c.isShowMarkLine?{markLine:{data:[{type:c.markLineType}]}}:{}),Vn=(tr=[],Un=!1)=>{var vr;let nr;if(c.dataFieldConfigType==="key"){const Yn=Un?c.keyTypeDataFieldNames:null;nr=Mn(tr,Yn)}else if(c.dataFieldConfigType==="value"){const Yn=Un?c.valueTypeDataFieldNames:null;nr=En(tr,Yn)}gn.value=nr.dimensions,Fn.value=nr.dataset;const cr=nr.dataset,Qn=[],fr=cr.length;for(let Yn=0;Yn<fr;Yn++){const ar={};c.shadowColor&&(ar.shadowColor=c.shadowColor,ar.shadowBlur=c.shadowBlur,ar.shadowOffsetY=c.shadowOffsetY,ar.shadowOffsetX=c.shadowOffsetX);let ur=c.colors[Yn];if(!ur&&c.colors.length){const mr=(Yn+1)%c.colors.length-1;ur=mr>0?c.colors[mr]:c.colors[0]}ur||(ur="#5470C6"),Qn.push({type:"line",...cr[Yn],symbolSize:c.symbolSize,smooth:c.smooth,areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:ur},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:ur,opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...ar},...vue.unref(Rn)})}b.value=Qn,(vr=nr.dataset)!=null&&vr.length?f.value=!1:f.value=!0},Wn=(tr=[],Un,nr=!1)=>{var ar,ur,mr;const Qn=Mn(tr,nr?Un:null,!0);if(c.defaultRangeValue&&setDefaultRangeVal({props:c,componentList:vue.unref(p),getGlobalModel:re},Qn),(ar=Qn.dataset)!=null&&ar.length){for(const dr of Qn.dataset)if((ur=dr.data)!=null&&ur.length)for(const gr of dr.data)(gr.value===null||gr.value===void 0)&&(gr.value=0)}gn.value=Qn.dimensions,Fn.value=Qn.dataset;const fr=Qn.dataset,vr=[],Yn=fr.length;for(let dr=0;dr<Yn;dr++){const gr={};c.shadowColor&&(gr.shadowColor=c.shadowColor,gr.shadowBlur=c.shadowBlur,gr.shadowOffsetY=c.shadowOffsetY,gr.shadowOffsetX=c.shadowOffsetX);let lr=c.colors[dr];if(!lr&&c.colors.length){const hr=(dr+1)%c.colors.length-1;lr=hr>0?c.colors[hr]:c.colors[0]}lr||(lr="#5470C6"),vr.push({type:"line",...fr[dr],symbolSize:c.symbolSize,smooth:c.smooth,areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:lr||dr%(c.colors.length||1)},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:lr,opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...gr},...vue.unref(Rn)})}b.value=vr,(mr=Qn.dataset)!=null&&mr.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],([tr])=>{(c.dataType==="static"||vue.unref(d)==="design")&&Vn(tr)},{immediate:!0,deep:!0});const Gn=vue.ref(!1),Zn=useRequestData(c),Xn=async()=>{var tr,Un;if(c.dataType==="request")try{Gn.value=!0;const nr=await Zn();Vn((Un=(tr=nr==null?void 0:nr.data)==null?void 0:tr.data)==null?void 0:Un.rows,!0)}catch(nr){console.error(nr)}finally{Gn.value=!1}},er=useEmitEvent(c);Pn(c.id,{type:c.type,RECORD:""});const Jn=er("click",tr=>{const Un=re(c.id);Pn(c.id,{...Un,type:c.type,RECORD:c.tooltipShow?j:tr.data})}),ir=tr=>{m.value.chart.containPixel("grid",[tr.offsetX,tr.offsetY])&&Jn()};c.isForbidClick||(c.tooltipShow?J.value["zr:click"]=ir:J.value.click=Jn);const or=tr=>{var vr;const{columns:Un=[],rows:nr=[]}=((vr=tr==null?void 0:tr.data)==null?void 0:vr.data)??{};let cr;Un.length>0&&(cr={name:Un[0],types:Un.slice(1).map(Yn=>({label:Yn,value:Yn}))});const{leftAxisList:Qn=[]}=c.graphicConfig,fr=Qn.filter(Yn=>Yn.show).map(Yn=>Yn.label);for(const Yn of nr)if(Yn)for(const ar in Yn)typeof Yn[ar]=="string"&&fr.includes(ar)&&!isNaN(parseFloat(Yn[ar]))&&(Yn[ar]=parseFloat(Yn[ar]));Wn(nr,cr,!0)},sr=useIndicatorData(c,tr=>{c.isViewRedrawing&&m.value.clear(),or(tr)}),Hn=async()=>{try{Gn.value=!0;const tr=await sr();or(tr)}catch(tr){console.error(tr)}finally{Gn.value=!1}},Kn=async()=>{switch(c.dataType){case"indicator":await Hn();break;case"request":await Xn();break}};useOnEvent(c,{refreshData:Kn,resetRecord:()=>{const tr=c.id,Un=re(tr);Pn(tr,{...Un,RECORD:""})},click:Jn});const{setRequest:qn}=vue.inject(REQUEST_MODEL,{setRequest:tr=>{}});return typeof qn=="function"&&qn({id:c.id,requestFn:Kn,sortNum:c.requestSort}),u({refreshData:Kn}),{option:Bn,style:y,click:Jn,loading:Gn,onClose:w,ecanModal:x,eventObj:J,echartRef:m,emptyData:f}}}),Line_vue_vue_type_style_index_0_lang="",Line_vue_vue_type_style_index_1_scoped_fadf491b_lang="";function _sfc_render$C(c,u,f,d,h,v){const p=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(p,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(p,{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$x,[["render",_sfc_render$C],["__scopeId","data-v-fadf491b"]]),EcanLine=withInstall$1(Line);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(v=u)=>{let p="";for(;;){let m=f(h),g=h;for(;g--;)if(p+=c[m[g]&d]||"",p.length===v)return p}}},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 _sfc_main$w=vue.defineComponent({name:"TrendModal",components:{EcanLine},props:{theme:{type:String,default:"light"}},setup(c,{expose:u}){const f=vue.ref(!1),d=vue.ref(),h=vue.ref(),v=vue.inject("isMobile",!1),p=async({data:y,pageConfig:b,unitText:gn})=>{if(y){const{graphicConfig:x}=y,vn=nanoid(6),J={source:"INDICATOR_LIB",dataSourceId:"",idxLibMode:"",classificationList:[{id:"3f5bda70a08a442085857adb7fc547de",indexCode:null,indexCodeNum:null,title:"日期",name:"the_date",label:"日期",typeGuid:"the_date",genericType:"DATE",hrpIndexComplexid:"the_date",scope:"BUILT_IN_DIM",fromTable:"hrp_index_complex",parentId:"3f5bda70a08a442085857adb7fc547de",show:!0,edit:!1,dataTo:"0",dateFormat:"YYYY-MM",dataSetParams:{}}],leftAxisList:(x==null?void 0:x.indicators)||[],controlList:(x==null?void 0:x.controlList)||[],variableList:(x==null?void 0:x.variableList)||[],variableConditions:(x==null?void 0:x.variableConditions)||[]};d.value={...lodashEs.cloneDeep(lineProps),id:vn,keyName:`折线图_${vn}`,position:"relative",top:0,left:0,width:vue.unref(v)?"100%":parseFloat(b.width)*.57+"px",height:vue.unref(v)?"100%":parseFloat(b.height)*.4+"px",dataType:"indicator",tooltipFormatter:"{marker} {a} {c}"+gn,xAxisLabelRotate:45,yAxisLabelFormatter:gn?`{value}${gn}`:"{value}",isForbidClick:!0,graphicConfig:J},f.value=!0,vue.nextTick(()=>{vue.unref(h).refreshData()})}},m=()=>document.querySelector("#ProviderConfig > #container")||document.body,g=vue.computed(()=>{let y="trend-modal";return vue.unref(v)&&(y+=" full"),c.theme==="darkBlue"&&(y+=" darkBlue"),y});return vue.watch(f,y=>{y?document.documentElement.style.overflow="hidden":document.documentElement.style.overflow="hidden auto"}),vue.onMounted(()=>{var y,b;if(vue.unref(v)){const gn=document.querySelector("#ProviderConfig > #container");(y=gn==null?void 0:gn.style)==null||y.setProperty("--window-screen-width",document.body.clientWidth+"px"),(b=gn==null?void 0:gn.style)==null||b.setProperty("--window-screen-height",document.body.clientHeight+"px")}}),u({showModal:p}),{visible:f,componentConfig:d,lineRef:h,wrapClassName:g,isMobile:v,getContainer:m}}}),TrendModal_vue_vue_type_style_index_0_scoped_b4c3b51c_lang="",TrendModal_vue_vue_type_style_index_1_lang="",_withScopeId$6=c=>(vue.pushScopeId("data-v-b4c3b51c"),c=c(),vue.popScopeId(),c),_hoisted_1$n=_withScopeId$6(()=>vue.createElementVNode("div",{class:"modal-title"},"趋势图",-1));function _sfc_render$B(c,u,f,d,h,v){const p=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:c.isMobile?"":"60vh",height:c.isMobile?"100vh":"",overflow:"auto",padding:"20px 24px 24px"},"wrap-class-name":c.wrapClassName},{title:vue.withCtx(()=>[_hoisted_1$n]),default:vue.withCtx(()=>[c.componentConfig?(vue.openBlock(),vue.createBlock(p,vue.mergeProps({key:0},c.componentConfig,{ref:"lineRef"}),null,16)):vue.createCommentVNode("",!0)]),_:1},8,["visible","getContainer","bodyStyle","wrap-class-name"])}const TrendModal=_export_sfc$1(_sfc_main$w,[["render",_sfc_render$B],["__scopeId","data-v-b4c3b51c"]]),pivotTableProps={...props$1,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"];var zhCn={exports:{}};(function(c,u){(function(f,d){c.exports=d(dayjs)})(commonjsGlobal,function(f){function d(p){return p&&typeof p=="object"&&"default"in p?p:{default:p}}var h=d(f),v={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(p,m){return m==="W"?p+"周":p+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(p,m){var g=100*p+m;return g<600?"凌晨":g<900?"早上":g<1100?"上午":g<1300?"中午":g<1800?"下午":"晚上"}};return h.default.locale(v,null,!0),v})})(zhCn);const LastDetail_vue_vue_type_style_index_0_scoped_71ff7b3d_lang="",LastDetail_vue_vue_type_style_index_1_lang="";dayjs.locale("zh-cn");const _sfc_main$v=vue.defineComponent({name:"LastDetail",components:{ATable:antDesignVue.Table,BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1,CloseOutlined:CloseOutlined$1},props:{theme:{type:String,default:"light"},theDateInfo:{type:Object,default:()=>({})},scaleValue:{type:Object,default:()=>({})}},setup(c,{emit:u,expose:f}){const d=`dtmodal_${nanoid(6)}`,h=vue.ref(!1),v=vue.ref(!1),p=vue.ref(!1),m=vue.ref([]),g=vue.ref([]),y=vue.ref({current:1,pageSize:10,total:0,showSizeChanger:!1,showQuickJumper:!1,showLessItems:!0,showTotal:Gn=>`共 ${Gn} 条数据`}),b=vue.ref(""),gn=vue.ref(""),x=vue.inject("isMobile",!1),vn=vue.computed(()=>INDICATOR_URL),J=()=>document.querySelector("#ProviderConfig > #container")||document.body,j=Gn=>{const Zn=document.querySelector(`.${d} .ant-modal-header`);if(Zn)if(Gn)Zn.addEventListener("mousedown",Bn);else{const Xn=Zn.parentElement;Xn&&(Xn.style.left="",Xn.style.top=""),Zn.removeEventListener("mousedown",Bn)}},Fn=Gn=>{const Zn=document.querySelector(`.${d} .ant-modal-header`);Zn&&(Gn?Zn.addEventListener("dblclick",w):Zn.removeEventListener("dblclick",w))},Bn=Gn=>{dragModalAction(Gn,`.${d} .ant-modal-header`)},w=()=>{h.value=!h.value,vue.nextTick(()=>{h.value?j(!1):j(!0)})},re=()=>{h.value=!1,Fn(!1),j(!1)};async function Pn(Gn){var nr,cr;p.value=!0,v.value=!0;const Zn=((nr=window==null?void 0:window.config)==null?void 0:nr.indicatorToken)||"",{record:Xn,dimOpts:er,column:Jn,formatParams:ir,cpntProps:or={},drillDetailUrl:sr}=Gn,{indicatorList:Hn=[]}=ir,Kn=Hn.find(Qn=>Qn.label===Jn.dataIndex),zn={};for(const Qn in Xn){const fr=er.find(vr=>vr.name===Qn);fr&&(zn[fr.typeGuid]=Xn[Qn])}const{startTime:qn,endTime:tr,rangeFormat:Un}=c.theDateInfo;if(qn&&tr&&(zn.startTime=dayjs(qn).format(Un),zn.endTime=dayjs(tr).format(Un)),sr)h.value=!0,b.value=sr,gn.value=encodeURIComponent(JSON.stringify({indexCode:(Kn==null?void 0:Kn.hrpIndexCode)||"",indexName:Kn.label,theFlag:or.theFlag,param:zn,conditions:drillConditions})),p.value=!1;else{const Qn=await request.post(`${vue.unref(vn)}/diagram/obtainDataSetData`,{pageId:getPageId(),indexCode:(Kn==null?void 0:Kn.hrpIndexCode)||"",indexName:Kn.label,theFlag:or.theFlag,param:zn},{headers:{Authentication:Zn,operateContext:CONTEXT}}),{columns:fr=[],data:vr=[]}=((cr=Qn==null?void 0:Qn.data)==null?void 0:cr.data)||{};m.value=fr.filter(Yn=>Yn).map(Yn=>({title:Yn,dataIndex:Yn,width:"120px"})),g.value=vr.map(Yn=>({...Yn,uid:nanoid(6)})),p.value=!1}vue.nextTick(()=>{Fn(!0),j(!0)})}const Rn=Gn=>{vue.unref(y).current=Gn.current},Vn=vue.computed(()=>{let Gn=`last-detail-modal ${d}`;return(vue.unref(x)||h.value)&&(Gn+=" full"),c.theme==="darkBlue"&&(Gn+=" darkBlue"),vue.unref(b)||(Gn+=" table"),Gn});vue.watch(()=>c.scaleValue,()=>{var Zn;const Gn=document.getElementById("ProviderConfig");Gn&&((Zn=Gn==null?void 0:Gn.style)==null||Zn.setProperty("--drill-modal-height",window.screen.height-20+"px"))},{immediate:!0,deep:!0});const Wn=vue.computed(()=>vue.unref(x)?{padding:"10px 0"}:{maxHeight:vue.unref(b)||h.value?"":"50vh",height:vue.unref(b)?"50vh":"",overflow:vue.unref(b)?"hidden":"auto"});return f({showModal:Pn}),{visible:v,loading:p,pagination:y,columns:m,dataSource:g,wrapClassName:Vn,detailBodyStyle:Wn,isMobile:x,urlJsonStr:gn,drillDetailUrl:b,isIndFullScreen:h,handleTableChange:Rn,getContainer:J,onDetailCancel:re,toggleFullScreen:w}}}),_hoisted_1$m=["src"],_hoisted_2$c={key:0,class:"spin-container"};function _sfc_render$A(c,u,f,d,h,v){const p=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("switcher-outlined"),g=vue.resolveComponent("border-outlined"),y=vue.resolveComponent("a-spin"),b=vue.resolveComponent("a-table"),gn=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(gn,{wrapClassName:c.wrapClassName,visible:c.visible,"onUpdate:visible":u[1]||(u[1]=x=>c.visible=x),width:"40%",title:"指标明细",destroyOnClose:!0,footer:null,bodyStyle:c.detailBodyStyle,getContainer:c.getContainer,onCancel:c.onDetailCancel},{closeIcon:vue.withCtx(()=>[vue.createVNode(p,{class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"])]),default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"zoom-btn",onClick:u[0]||(u[0]=(...x)=>c.toggleFullScreen&&c.toggleFullScreen(...x))},[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.drillDetailUrl&&c.urlJsonStr?(vue.openBlock(),vue.createElementBlock("iframe",{key:0,src:`${c.drillDetailUrl}${c.drillDetailUrl.includes("?")?"&":"?"}params=${c.urlJsonStr}`,frameborder:"0",width:"100%",height:"100%"},`\r
103
+ `,8,_hoisted_1$m)):c.drillDetailUrl?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[c.loading?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$c,[vue.createVNode(y,{size:"large"})])):vue.createCommentVNode("",!0),c.loading?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(b,{key:1,"row-key":x=>x.uid,columns:c.columns,"data-source":c.dataSource,pagination:c.pagination,scroll:{x:"max-content",y:c.isMobile?"70vh":""},onChange:c.handleTableChange},null,8,["row-key","columns","data-source","pagination","scroll","onChange"]))],64))]),_:1},8,["wrapClassName","visible","bodyStyle","getContainer","onCancel"])}const LastDetail=_export_sfc$1(_sfc_main$v,[["render",_sfc_render$A],["__scopeId","data-v-71ff7b3d"]]),_sfc_main$u=vue.defineComponent({name:"DrillModal",components:{ATable:antDesignVue.Table,BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1,CloseOutlined:CloseOutlined$1,LastDetail},props:{theme:{type:String,default:"light"},drillingMode:{type:String,default:"default"},pageMode:{type:String,default:"normal"},scaleValue:{type:Object,default:()=>({})},pivotTableFontSize:{type:Number,default:16},width:{type:String,default:""},drillDetailUrl:{type:String,default:""}},setup(c,{expose:u,emit:f}){const m={IN:"属于",NOT_IN:"不属于",LIKE:"包含",NOT_LIKE:"不包含","LIKE%":"开头是","%LIKE":"结尾是",EQUAL:"等于",LESS:"小于",LESS_EQUAL:"小于等于",GREATER:"大于",GREATER_EQUAL:"大于等于",NOT_EQUAL:"不等于"},g={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"},y=vue.ref(!1),b=vue.ref(),gn=vue.ref(),x=vue.ref(),vn=vue.ref(!1),J=vue.ref({}),j=vue.ref([]),Fn=vue.ref([]),Bn=vue.ref([]),w=vue.ref(!1),re=vue.ref({dateFormat:"YYYY-MM-DD"}),Pn=vue.reactive({keyName:"",visible:!1,dataSource:[],columns:[],title:"",pagination:{current:1,pageSize:10,total:0,showSizeChanger:!1,showQuickJumper:!1,showLessItems:!0,showTotal:dr=>`共 ${dr} 条数据`}}),Rn=vue.ref({}),Vn=vue.inject("isMobile",!1),Wn=vue.inject("usedComponentList",[]),Gn=vue.inject("componentList",[]),{getAllGlobalModel:Zn}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),Xn=vue.computed(()=>INDICATOR_URL);vue.watch(()=>Pn.visible,dr=>{dr?document.documentElement.style.overflow="hidden":document.documentElement.style.overflow="hidden auto"});const er=vue.computed(()=>({width:vue.unref(J).width,height:vue.unref(J).height})),Jn=vue.computed(()=>vue.unref(Vn)?{padding:"10px 0"}:{}),ir=vue.computed(()=>{let dr="ind-detail-modal";return(vn.value||vue.unref(Vn))&&(dr+=" full"),c.theme==="darkBlue"&&(dr+=" darkBlue"),dr}),or=(dr,gr)=>{const{leftAxisList:lr=[],rightAxisList:hr=[],indicators:xr=[],classificationList:Sr=[],rowHeaderList:yr=[],dimensionList:pr=[],seriesList:br=[],queryColumns:wr=[],indexLibColumns:kr=[]}=gr.graphicConfig,Ir=lr.concat(hr).concat(xr).concat(Sr).concat(yr).concat(pr).concat(br).concat(wr).concat(kr).filter(Rr=>Rr.conditions),Dr=Hn(Ir,"conditions",!0),qr=Hn(dr.sqlConditions,"sqlConditions",!1);Fn.value=Dr.concat(qr).filter(Rr=>Rr.label)||[]},sr=()=>document.querySelector("#ProviderConfig > #container")||document.body;function Hn(dr,gr,lr){const hr=[];for(const xr of dr)xr[gr]?hr.push(...Hn(xr[gr],gr,lr)):xr.filter?hr.push({...xr.filter,label:xr.label}):(!lr||xr.dataType!=="component"&&!(xr.fieldValue.startsWith("${")&&xr.fieldValue.endsWith("}")))&&hr.push(xr);return hr}const Kn=async({cpntProps:dr,pageId:gr,formatParams:lr,classifications:hr,indicatorToken:xr})=>{var Sr,yr,pr;return await request({url:`${vue.unref(Xn)}/diagram/obtainDrillAbleDimensionOptions`,method:"post",headers:{Authentication:xr,operateContext:CONTEXT},data:{source:((Sr=dr==null?void 0:dr.graphicConfig)==null?void 0:Sr.source)||"INDICATOR_LIB",pageId:gr,indicatorList:(lr==null?void 0:lr.indicatorList)||[],classifications:hr,dataSourceId:((yr=dr==null?void 0:dr.graphicConfig)==null?void 0:yr.dataSourceId)||""},signal:((pr=window.controller)==null?void 0:pr.signal)||""})},zn=dr=>{let gr="",lr="";const{componentConfig:hr}=dr;for(const Sr in hr)if(hr[Sr].key==="currentValue"){lr=Sr;break}const xr=vue.unref(Gn).find(Sr=>Sr.id===lr);return xr!=null&&xr.unitText&&(gr=xr.unitText),gr};function qn(dr){const gr=[];for(const lr of dr)lr.sqlConditions?gr.push(...qn(lr.sqlConditions)):lr.fieldName==="the_date"&&gr.push(lr);return gr}const tr=dr=>{var Sr;const{sqlConditions:gr=[],queryColumns:lr=[]}=dr||{},hr=qn(gr),xr=lr.find(yr=>yr.typeGuid==="the_date");if(xr&&(re.value={dateFormat:xr.dateFormat||"YYYY-MM-DD"}),hr!=null&&hr.length)for(const yr of hr)["startTime","endTime"].includes(yr.prop)&&(vue.unref(re)[yr.prop]=yr.fieldValue||"",(Sr=vue.unref(re))!=null&&Sr.rangeFormat||(vue.unref(re).rangeFormat=yr.dateFormat||"YYYY-MM-DD"))},Un=async dr=>{var Er,Ir,Dr,qr,Rr;if(c.drillingMode==="default")return;let gr=lodashEs.cloneDeep(dr).props;if(gr.parentId){const Fr=vue.unref(Wn).find(jr=>jr.id===gr.parentId);if((Fr==null?void 0:Fr.dataType)==="indicator")gr=lodashEs.cloneDeep(Fr);else return}Pn.keyName=gr==null?void 0:gr.keyName;const lr=((Er=window==null?void 0:window.config)==null?void 0:Er.indicatorToken)||"",hr=getPageId(),xr=(gr==null?void 0:gr.graphicConfig)||{},{leftAxisList:Sr=[],rightAxisList:yr=[],indicators:pr=[]}=xr,br=Sr.concat(yr).concat(pr);if(!(br!=null&&br.length))return;const wr=br.filter(Fr=>Fr.show).map(Fr=>Fr.label);wr!=null&&wr.length&&(Pn.title=`下钻:${wr.join("、")}`);const kr=Dn({...gr,globalModel:Zn()});if(c.drillingMode==="normalTable"||vue.unref(Vn)){Pn.pagination.current=1;let Fr=(kr==null?void 0:kr.classification)||(kr==null?void 0:kr.classifications)||[];Array.isArray(Fr)||(Fr=[Fr]);try{w.value=!0,Pn.visible=!0;const jr=await Kn({cpntProps:gr,pageId:hr,formatParams:kr,classifications:Fr,indicatorToken:lr}),Nr=((Ir=jr==null?void 0:jr.data)==null?void 0:Ir.data)||[];let Ur=[],Qr=[];const{usedDimensions:Wr=[],params:ri={}}=dr;if(Wr!=null&&Wr.length){for(const Zr of Nr)if(!Wr.find(ni=>ni.label===Zr.name)){Qr.push(Zr);break}kr.sqlConditions=lodashEs.cloneDeep(ri.sqlConditions);const{sqlConditions:Or=[]}=kr,{record:Gr={}}=dr;Wr.forEach((Zr,ni)=>{if(mn(Gr,Zr.label)){const ci=Nr.find(vi=>vi.name===Zr.label),ai={fieldName:Zr.label,fieldValue:Gr[Zr.label],globalCondition:!0,hrpIndexCode:null,hrpIndexCodeNum:null,label:Zr.label,rule:"EQUAL",typeGuid:Zr.typeGuid,valueType:(ci==null?void 0:ci.genericType)||"TEXT"};ni!==Wr.length-1&&(ai.join="&&"),ni===0&&(Or!=null&&Or.length)&&(Or[Or.length-1].join="&&"),Or.push(ai)}})}else Ur=Fr.map(Or=>({...Or,calcType:"COLUMN"})),Qr=Nr.slice(0,2).sort((Or,Gr)=>Or.typeGuid-Gr.typeGuid);or(kr,lodashEs.cloneDeep(dr.props));for(const Or of Qr)Ur.push({calcType:"COLUMN",columnName:Or.name,label:Or.name,show:!0,typeGuid:Or.typeGuid});kr.queryColumns=Ur,kr.layer="1",kr.plugin="1",delete kr.classification,delete kr.classifications;const{url:ei,...Tr}=kr||{};tr(kr);const Br=await request({url:`${vue.unref(Xn)}${ei}`,method:"post",headers:{Authentication:lr,operateContext:CONTEXT},data:{...Tr,pageId:hr}}),{columns:Lr=[],rows:Hr=[]}=((Dr=Br==null?void 0:Br.data)==null?void 0:Dr.data)||{};if(yn(gr.type,"indexPanel")){const Or=xr.indicators.find(Zr=>Zr.show),Gr=zn(gr);Gr&&Or&&(Rn.value={[Or.label]:Gr})}Pn.columns=Lr.filter(Or=>!!Or).map(Or=>{let Gr=Or;const Zr=Nr.find(ni=>ni.name===Or);return Zr&&(Gr=Zr.title||Zr.label),{title:Gr,dataIndex:Or,width:"120px",customCell:(ni,ci,ai)=>({[vue.unref(Vn)?"onClick":"onDblclick"]:()=>{Nr.find(ui=>ai.dataIndex===ui.name)?(!(Wr!=null&&Wr.length)||Nr.length-1>Wr.length)&&(y.value=!0,vue.nextTick(()=>{vue.unref(b).showModal({...dr,record:ni,usedDimensions:[...Wr,...Ur],params:kr})})):vue.unref(gn).showModal({record:ni,dimOpts:Nr,column:ai,formatParams:kr,cpntProps:gr,drillDetailUrl:c.drillDetailUrl,drillConditions:vue.unref(ur)})}})}}),Pn.dataSource=(Array.isArray(Hr)?Hr:[Hr]).map(Or=>({...Or,uuid:nanoid(6)})),Pn.pagination.total=(Hr==null?void 0:Hr.length)||0,w.value=!1}catch(jr){console.error(jr)}}else if(c.drillingMode==="pivotTable"){const Fr=await Kn({cpntProps:gr,pageId:hr,formatParams:kr,classifications:[],indicatorToken:lr});Bn.value=((qr=Fr==null?void 0:Fr.data)==null?void 0:qr.data)||[];const jr=nanoid(6);xr.queryColumnList||(xr.queryColumnList=[]),xr!=null&&xr.classificationList&&(xr.queryColumnList=xr.classificationList,delete xr.classificationList),xr!=null&&xr.seriesList&&(xr.queryColumnList=xr.queryColumnList.concat(xr.seriesList),delete xr.seriesList),xr.indicators=lodashEs.cloneDeep(br||[]),delete xr.leftAxisList,delete xr.rightAxisList;const Nr={};if(yn(gr.type,"indexPanel")){const Qr=xr.indicators.find(ei=>ei.show),Wr=vue.unref(Bn).slice(0,2).sort((ei,Tr)=>ei.typeGuid-Tr.typeGuid).map(ei=>({...ei,show:!0,edit:!1,dataTo:"0",width:ei.name==="the_date"?15:0,dataSetParams:{}}));Wr!=null&&Wr.length&&(xr.queryColumnList=Wr);const ri=zn(gr);if(ri&&Qr){const{label:ei}=Qr;Nr.defaultConfig={indexFormatConfig:{[ei]:{fieldName:ei,indicatorKey:ei,position:"right",unit:ri}}}}}gr!=null&&gr.theFlag&&(Nr.theFlag=gr.theFlag),(Rr=xr.queryColumnList)!=null&&Rr.length||(xr.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 Ur={...lodashEs.cloneDeep(pivotTableProps),id:jr,keyName:`透视表_${jr}`,position:"relative",top:0,left:0,width:parseFloat(c.width)*.57+"px",height:window.screen.height*.6+"px",pageId:hr,indicatorToken:lr,context:CONTEXT,globalModel:Zn(),graphicConfig:xr,pageConfig:c,...Nr};c.theme==="darkBlue"&&(Ur.styleConfig=g),J.value=Ur,Pn.visible=!0,vue.nextTick(()=>{vue.unref(x).refreshData()})}vue.nextTick(()=>{cr(!0),Qn(!0)})},nr=dr=>{Pn.pagination.current=dr.current},cr=dr=>{const gr=document.querySelector(".ind-detail-modal .ant-modal-header");gr&&(dr?gr.addEventListener("dblclick",vr):gr.removeEventListener("dblclick",vr))},Qn=dr=>{const gr=document.querySelector(".ind-detail-modal .ant-modal-header");if(gr)if(dr)gr.addEventListener("mousedown",fr);else{const lr=gr.parentElement;lr&&(lr.style.left="",lr.style.top=""),gr.removeEventListener("mousedown",fr)}};function fr(dr){dragModalAction(dr,".ind-detail-modal .ant-modal-header")}const vr=()=>{vn.value=!vn.value,vue.nextTick(()=>{vn.value?(vue.unref(J).width=parseFloat(c.width)*.97+"px",vue.unref(J).height=window.screen.height*.9+"px",Qn(!1)):(vue.unref(J).width=parseFloat(c.width)*.57+"px",vue.unref(J).height=window.screen.height*.6+"px",Qn(!0))})},Yn=()=>{vn.value=!1,cr(!1),Qn(!1),f("close")},ar=({type:dr,data:gr})=>{if(dr==="11"&&gr){const{indicatorList:lr=[],queryColumns:hr=[]}=gr,Sr=lr.concat(hr).filter(br=>br.conditions||br.filter),yr=Hn(Sr,"conditions",!0),pr=Hn(gr.sqlConditions,"sqlConditions",!1);Fn.value=yr.concat(pr).filter(br=>br.label)||[]}};vue.watch(Fn,(dr=[])=>{j.value=dr.map(gr=>{let lr=gr.fieldValue;if(lr&&typeof lr=="string"){const hr=lr.split(",");(hr==null?void 0:hr.length)>3&&(lr=hr.slice(0,3).join(",")+"等")}else lr||(lr='""');if(c.drillingMode==="normalTable")return`${gr.label} ${m[gr.rule]} ${lr}`;{const hr=vue.unref(Bn).find(xr=>xr.label===gr.label);return`${(hr==null?void 0:hr.title)||gr.label} ${m[gr.rule]} ${lr}`}})||[]},{deep:!0});const ur=vue.computed(()=>vue.unref(Fn).map(dr=>({label:dr.title||dr.label,typeGuid:dr.typeGuid,rule:dr.rule,value:dr.fieldValue}))),mr=()=>{y.value=!1};return u({showModal:Un}),{indDetailInfo:Pn,pivotTableConfig:J,pivotTableStyle:er,detailBodyStyle:Jn,wrapClassName:ir,isIndFullScreen:vn,isMobile:Vn,conditionInfo:j,indicatorUrl:Xn,allDimensions:Bn,detailLoading:w,pivotTableRef:x,lastDetailRef:gn,subDrillModalRef:b,theDateInfo:re,isShowSubDrillModal:y,normalTableUnits:Rn,drillConditions:ur,getContainer:sr,toggleFullScreen:vr,onDetailCancel:Yn,onPivotTableChange:ar,handleTableChange:nr,onCloseModal:mr}}}),DrillModal_vue_vue_type_style_index_0_scoped_2526a993_lang="",DrillModal_vue_vue_type_style_index_1_lang="",_hoisted_1$l=["title"],_hoisted_2$b={key:0,class:"spin-container"},_hoisted_3$6=["title"],_hoisted_4$4=["title"];function _sfc_render$z(c,u,f,d,h,v){const p=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("switcher-outlined"),g=vue.resolveComponent("border-outlined"),y=vue.resolveComponent("a-spin"),b=vue.resolveComponent("a-table"),gn=vue.resolveComponent("pivot-table"),x=vue.resolveComponent("a-modal"),vn=vue.resolveComponent("last-detail"),J=vue.resolveComponent("drill-modal",!0);return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(x,{visible:c.indDetailInfo.visible,"onUpdate:visible":u[1]||(u[1]=j=>c.indDetailInfo.visible=j),width:"60%",getContainer:c.getContainer,footer:null,destroyOnClose:!0,"wrap-class-name":c.wrapClassName,bodyStyle:c.detailBodyStyle,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_1$l)]),closeIcon:vue.withCtx(()=>[vue.createVNode(p,{class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"])]),default:vue.withCtx(()=>[c.isMobile?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"zoom-btn",onClick:u[0]||(u[0]=(...j)=>c.toggleFullScreen&&c.toggleFullScreen(...j))},[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==="normalTable"||c.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[c.detailLoading?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$b,[vue.createVNode(y,{size:"large"})])):(vue.openBlock(),vue.createBlock(b,{key:1,scroll:{x:"max-content",y:c.isIndFullScreen?"100vh":"70vh"},"row-key":j=>j.uuid,columns:c.indDetailInfo.columns,"data-source":c.indDetailInfo.dataSource,pagination:c.indDetailInfo.pagination,onChange:c.handleTableChange},{headerCell:vue.withCtx(({title:j})=>[vue.createElementVNode("div",{class:"detail-table-header-cell",title:j},vue.toDisplayString(j),9,_hoisted_3$6)]),bodyCell:vue.withCtx(({text:j,column:Fn})=>[vue.createElementVNode("div",{title:j},vue.toDisplayString(j)+vue.toDisplayString(c.normalTableUnits[Fn.title]),9,_hoisted_4$4)]),_:1},8,["scroll","row-key","columns","data-source","pagination","onChange"]))],64)):c.drillingMode==="pivotTable"?(vue.openBlock(),vue.createElementBlock("div",{key:2,style:vue.normalizeStyle({position:"relative",...c.pivotTableStyle})},[vue.createVNode(gn,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,defaultFontSize:c.pivotTableFontSize,drillDetailUrl:c.drillDetailUrl,drillConditions:c.drillConditions,isMobile:c.isMobile,isNeedEmptyRow:!1,enlargeContainer:"#norPageConfig",onTableChange:c.onPivotTableChange}),null,16,["pageMode","theme","indicatorUrl","relateKeyName","allDimensions","scaleValue","defaultFontSize","drillDetailUrl","drillConditions","isMobile","onTableChange"])],4)):vue.createCommentVNode("",!0)]),_:1},8,["visible","getContainer","wrap-class-name","bodyStyle","onCancel"]),vue.createVNode(vn,{ref:"lastDetailRef",theme:c.theme,theDateInfo:c.theDateInfo,scaleValue:c.scaleValue},null,8,["theme","theDateInfo","scaleValue"]),c.isShowSubDrillModal?(vue.openBlock(),vue.createBlock(J,{key:0,ref:"subDrillModalRef",width:c.width,theme:c.theme,drillingMode:c.drillingMode,pageMode:c.pageMode,scaleValue:c.scaleValue,pivotTableFontSize:c.pivotTableFontSize,drillDetailUrl:c.drillDetailUrl,onClose:c.onCloseModal},null,8,["width","theme","drillingMode","pageMode","scaleValue","pivotTableFontSize","drillDetailUrl","onClose"])):vue.createCommentVNode("",!0)],64)}const DrillModal=_export_sfc$1(_sfc_main$u,[["render",_sfc_render$z],["__scopeId","data-v-2526a993"]]),_sfc_main$t=vue.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,components:{IndicatorDetailModal,TrendModal,DrillModal},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=vue.ref(),h=vue.ref(),v=vue.ref(),p=vue.computed(()=>INDICATOR_URL),m=vue.computed(()=>hn(c.contextRequestUrl)),g=vue.computed(()=>c.pageMode),y=vue.computed(()=>c.theme),b=vue.computed(()=>c.width),gn=vue.computed(()=>c.height),x=vue.computed(()=>c.pageFontFamily),vn=vue.computed(()=>c.textColor),J=vue.computed(()=>c.fixedHeight?parseFloat(c.fixedHeight):0),j=vue.computed(()=>c.isCompatible),Fn=vue.computed(()=>c.variableList),Bn=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)),w=vue.computed(()=>parseFloat(c.pivotTableFontSize)),re=vue.ref(),Pn=vue.ref({}),Rn=()=>{re.value.setAttribute("datav-theme",c.theme)},Vn=vue.ref({currentYmd:dayjs().format("YYYY-MM-DD"),currentYear:dayjs().format("YYYY"),currentMonth:dayjs().format("MM"),currentDay:dayjs().format("DD")}),Wn=vue.computed(()=>{const Tr={};if(vue.unref(Fn))for(const Lr of vue.unref(Fn))Tr[Lr.label]=Lr.value;return{$page:{...vue.unref(Vn),...Tr}}});vue.provide(GLOBAL_VARIABLE,{globalVariable:Wn});const Gn=vue.inject("usedComponentList",[]),Zn=vue.inject("componentList",[]);vue.watch(Wn,()=>{f("setGlobalVar",vue.unref(Vn))},{deep:!0,immediate:!0});const Xn=vue.computed(()=>{const Tr=[];for(const Br of vue.unref(Gn))Br.type==="ecanModal"?Tr.push(...Br.componentList):Tr.push(Br);return Tr});vue.watch(()=>c.theme,()=>{Rn()}),vue.onMounted(()=>{Rn()});const er=vue.computed(()=>{const Tr=[],Br=vue.unref(Zn).filter(Lr=>Lr.type==="ecanModal");for(const Lr of Br)Lr!=null&&Lr.requestList&&Tr.push(...Lr.requestList);return[...Tr,...c.requestList]}),Jn=Tr=>Object.prototype.toString.call(Tr)==="[object Object]",ir=Tr=>{const Br=Tr.split(".");let Lr=vue.unref(Wn);for(const Hr of Br)if(Lr&&Jn(Lr))Lr=Lr[Hr];else{Lr="";break}return Lr},or=vue.ref("");vue.provide(GLOBAL_CONFIG,{contextRequestUrl:m,pageMode:g,theme:y,touchEventId:or,width:b,height:gn,fontFamily:x,textColor:vn,requestList:er,isCompatible:j,fixedHeight:J,getGlobalVar:ir});const sr=vue.ref({height:"100%",overflow:c.pageMode==="design"?"":"hidden"});vue.provide("setPageHeight",Tr=>{let Br=0;Tr==="auto"?(Br=Tr,Pn.value={widthScale:1,heightScale:1}):(Br=Tr.heightScale,Pn.value=Tr),(!j.value||!Bn.value)&&(Br=parseFloat(gn.value)*Br+"px"),sr.value.height=Br}),vue.provide("isMobile",Bn.value),vue.provide("getContainerMap",()=>c.containerMap),vue.provide("getCombinationMap",()=>c.combinationMap),vue.provide("templateOperate",{pageId:c.pageId,templateEmit:f,setTemplateData:Tr=>{var Br;if(Tr!=null&&Tr.pageId){const{componentId:Lr,...Hr}=Tr;(Br=window.config)!=null&&Br.urlParams||(window.config.urlParams={}),window.config.urlParams[Tr.pageId]=Hr,f("templateChange",Tr)}}});const Hn=vue.ref(),Kn=new Map,zn=()=>Kn,qn=Tr=>{let Br=Kn.get(Tr);if(!Br){const Lr=vue.unref(Zn).find(Hr=>Hr.keyName===Tr);Lr&&(Br=Kn.get(Lr.id))}return Br},tr=(Tr,Br)=>{var Lr;if(Hn.value=Br,Kn.set(Tr,Br),!c.pageId){const Hr=vue.unref(Gn).find(Or=>Or.id===Tr);Hr&&((Lr=window.config)!=null&&Lr.record||(window.config.record={}),window.config.record[Hr.keyName]=Br)}},Un=()=>{Hn.value=null},nr=Tr=>{let Br=Tr;if(Br){const Lr=Tr.match(/\{(.+?)\}/g);if(Lr!=null&&Lr.length){let Hr=Lr[0].slice(1,-1).trim();const Or=Hr.match(/\[(.+?)\]/g);let Gr="";Or!=null&&Or.length&&(Hr=Hr.replace(Or[0],""),Gr=Or[0].slice(1,-1).trim());const Zr=vue.unref(Xn).find(ni=>ni.keyName===Hr);if(Zr){const ni=qn(Zr.id),{type:ci,value:ai,RECORD:vi,recordData:ui}=ni||{};yn(ci,MODEL_KEY_LIST)?Br=vi[Gr]:yn(ci,"select")?ui[Gr]?Br=ui[Gr]:Br=vue.unref(ai):yn(ci,["rangePicker","date"])?dayjs.isDayjs(vue.unref(ni[Gr]))?Br=vue.unref(ni[Gr]).format(ni.format):Br=vue.unref(ni[Gr]):Br=ai}else{const ni=window.config.requestParams||{},ci=window.location.search.slice(1).split("&"),ai={};for(const ui of ci)if(ui!=null&&ui.includes("=")){const pi=ui.split("=");ai[pi[0]]=pi[1]||""}Br={...ai,...ni}[Hr]||""}}}return Br},cr=new Map,Qn={},fr=async(Tr,Br)=>{var Zr;const{requestName:Lr}=Tr,Hr=await useRequestData({...Tr,projectRequestUrl:vue.unref(m),getModel:qn})(),Or=((Zr=Hr==null?void 0:Hr.data)==null?void 0:Zr.data)||{};Tr.requestKeyName&&(Vn.value[Tr.requestKeyName]=Or);const Gr=cr.get(Lr);if(Gr!=null&&Gr.length&&(!Br||Qn[Lr])){for(const ni of Gr)ni(Or);Br||cr.delete(Lr)}},vr=(Tr,Br)=>{Qn[Tr]&&(clearInterval(Qn[Tr]),delete Qn[Tr],cr.delete(Tr));const Lr=vue.unref(Xn).filter(Or=>Or.dataType==="request"&&!Or.openCustomRequestData&&Or.customRequestName===Tr),Hr=cr.get(Tr)||[];if((Lr==null?void 0:Lr.length)>Hr.length&&(Hr.push(Br),cr.set(Tr,Hr),(Lr==null?void 0:Lr.length)===Hr.length)){const Or=vue.unref(er).find(Gr=>Gr.requestName===Tr);Or&&(Or!=null&&Or.isOpenRequestTimer&&(Or!=null&&Or.requestInterval)?(fr(Or,!0),Qn[Tr]=setInterval(()=>{fr(Or,!0)},Or.requestInterval*1e3)):fr(Or))}};vue.provide(GLOBAL_MODEL,{getGlobalModel:qn,setGlobalModel:tr,getAllGlobalModel:zn,clearInteractiveData:Un,getRecordValueByKeyName:nr,hanldePageRequestData:vr,interactiveData:Hn});const Yn=vue.ref({}),ar=(Tr,Br)=>{Yn.value[Tr]=Br};vue.provide(LOADED_DATA,{loadedData:Yn,setLoadedData:ar});const ur=[],mr=()=>{ur.pop()},dr=Tr=>{ur.push(Tr)},gr=new Map,lr=Tr=>gr.get(Tr),hr=(Tr,Br)=>{gr.set(Tr,Br)};vue.provide(MODAL_MODEL,{popUseModalIds:mr,pushUseModalIds:dr,getModalModel:lr,setModalModel:hr});const xr=mitt(),Sr=new Set,yr=(Tr,Br)=>{Sr.add(Tr),xr.on(Tr,Lr=>{const{eventName:Hr,params:Or}=Lr;return typeof Br[Hr]=="function"&&Br[Hr](Or)}),vue.onBeforeUnmount(()=>{pr(Tr)})},pr=Tr=>{Sr.delete(Tr),xr.off(Tr)},br=(Tr,Br,Lr={})=>{if(Tr==="PAGE"){const Hr=ur.length;let Or=[];if(Hr===0)Or=[...Sr];else{const Gr=ur[Hr-1];Or=[...lr(Gr)]}Or.forEach(Gr=>{xr.emit(Gr,{eventName:Br,params:Lr})})}else xr.emit(Tr,{eventName:Br,params:Lr})};vue.provide(EVENT_BUS,{onEvent:yr,offEvent:pr,emitEvent:br});const wr=vue.ref(0),kr=()=>{wr.value=vue.unref(wr)+1};vue.provide(GLOBAL_TOKEN,{requestToken:kr});const Er=new Map,Ir=new Map,Dr=({requestFn:Tr=()=>{},sortNum:Br=0,id:Lr=""})=>{if(Er.has(Br)){const Hr=Er.get(Br);Hr==null||Hr.push(Tr)}else Er.set(Br,[Tr]);Ir.set(Lr,Tr)},qr=Tr=>new Promise((Br,Lr)=>{const Hr=[];for(const Or of Tr)Hr.push(new Promise(async Gr=>{await Or(),Gr()}));Promise.all(Hr).then(Or=>{Br(Or)}).catch(Or=>{Lr(Or)})}),Rr=Tr=>new Promise(async(Br,Lr)=>{if(Tr){if(typeof Tr=="string"){const Hr=Ir.get(Tr);if(typeof Hr=="function"){const Or=request.interceptors.response.use(Gr=>(Br(Gr),Gr),Gr=>(Lr(Gr),Promise.reject(Gr)));Hr(),request.interceptors.response.eject(Or)}}}else{const Hr=Array.from(Er);Hr.sort((Gr,Zr)=>Zr[0]-Gr[0]);const Or=Hr.length;try{c.pageMode!=="design"&&vue.unref(wr)>0;for(let Gr=0;Gr<Or;Gr++){const Zr=Hr[Gr][1];await qr(Zr)}}catch(Gr){console.error(Gr)}finally{Er.clear(),Br(null)}}});vue.provide(REQUEST_MODEL,{setRequest:Dr,touchRequest:Rr});const Fr=()=>{xr.emit(REFRESH_PAGE)};vue.provide(REFRESH_PAGE,{emitRefreshPage:Fr});const jr=Tr=>{xr.on(REFRESH_PAGE,()=>Tr()),vue.onMounted(()=>{xr.off(REFRESH_PAGE)})},Nr=vue.ref({});vue.provide(All_COMPONENT_RES_DATA,{allComponentResData:Nr});const Ur=Tr=>{const{id:Br,data:Lr}=Tr;Lr.success&&(Nr.value[Br]=(Lr==null?void 0:Lr.data)||{})},Qr=(Tr,Br)=>{switch(Tr){case"SHOW_INDICATOR_DETAIL_MODAL":vue.unref(d).showModal(Br);break;case"SAVE_COMPONENT_RES_DATA":Ur(Br);break}};vue.provide(COMMON_OPERATE,{operateAction:lodashEs.debounce((Tr,Br)=>{Qr(Tr,Br)},100)}),vue.watchEffect(()=>{var Tr;if((Tr=vue.unref(Gn))!=null&&Tr.length&&vue.unref(g)!=="design"){const{jumpType:Br,jumpTime:Lr,jumpPage:Hr,jumpLink:Or}=c;if(Lr!=null&&Lr.value){let Gr=0;switch(Lr==null?void 0:Lr.suffix){case"hours":Gr=Lr.value*60*60*1e3;break;case"minute":Gr=Lr.value*60*1e3;break;case"seconds":Gr=Lr.value*1e3;break}setTimeout(()=>{let Zr="";Br==="page"&&Hr?Zr=usePageUrl(vue.unref(g),Hr):Br==="link"&&Or&&(Zr=Or),Zr=hn(Zr),window.open(Zr,"_self")},Gr)}}});const Wr=Tr=>{var Br;vue.unref(h).showModal({data:Tr,indicatorUrl:vue.unref(p),indicatorToken:((Br=window==null?void 0:window.config)==null?void 0:Br.indicatorToken)||"",context:CONTEXT,pageId:getPageId()})},ri=Tr=>{vue.unref(v).showModal({data:Tr,pageConfig:c,unitText:ei(Tr)})},ei=Tr=>{let Br="",Lr="";const{componentConfig:Hr}=Tr;for(const Gr in Hr)if(Hr[Gr].key==="currentValue"){Lr=Gr;break}const Or=vue.unref(Zn).find(Gr=>Gr.id===Lr);return Or!=null&&Or.unitText&&(Br=Or.unitText),Br};return vue.provide("showIndDetail",Wr),vue.onBeforeUnmount(()=>{Er==null||Er.clear(),Ir==null||Ir.clear()}),u({touchRequest:Rr,getGlobalModel:qn,onRefreshPage:jr,emitEvent:br,getRecordValueByKeyName:nr,showIndDetail:Wr,showTrend:ri,props:c,systemVariable:Vn}),{providerConfig:re,configStyle:sr,indicatorUrl:p,theme:y,drillModalRef:d,indDetailModalRef:h,trendModalRef:v,scaleValue:Pn,defaultPivotTableFontSize:w,isMobile:Bn}}}),ProviderConfig_vue_vue_type_style_index_0_scoped_152b6b48_lang="",ProviderConfig_vue_vue_type_style_index_1_lang="",_hoisted_1$k=["id"];function _sfc_render$y(c,u,f,d,h,v){const p=vue.resolveComponent("drill-modal"),m=vue.resolveComponent("indicator-detail-modal"),g=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$k),vue.createVNode(p,{ref:"drillModalRef",width:c.width,theme:c.theme,drillingMode:c.drillingMode,pageMode:c.pageMode,scaleValue:c.scaleValue,pivotTableFontSize:c.defaultPivotTableFontSize,drillDetailUrl:c.drillDetailUrl},null,8,["width","theme","drillingMode","pageMode","scaleValue","pivotTableFontSize","drillDetailUrl"]),vue.createVNode(m,{ref:"indDetailModalRef",theme:c.theme},null,8,["theme"]),vue.createVNode(g,{ref:"trendModalRef",theme:c.theme},null,8,["theme"])],64)}const ProviderConfig=_export_sfc$1(_sfc_main$t,[["render",_sfc_render$y],["__scopeId","data-v-152b6b48"]]),EcanProviderConfig=withInstall$1(ProviderConfig),textProps={...props$1,name:"文本",keyName:"文本",type:"ecanText",width:"100px",height:"40px",text:"文字",lineHeight:"18px",color:"",variableColor:"",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,(v,p,m)=>{let g=!1,y=p;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 v=c.charAt(d-h-1);if(v===u&&!f)h++;else if(v!==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,v=u.title?escape$2(u.title):null,p=c[1].replace(/\\([\[\]])/g,"$1");if(c[0].charAt(0)!=="!"){d.state.inLink=!0;const m={type:"link",raw:f,href:h,title:v,text:p,tokens:d.inlineTokens(p,[])};return d.state.inLink=!1,m}else return{type:"image",raw:f,href:h,title:v,text:escape$2(p)}}function indentCodeCompensation(c,u){const f=c.match(/^(\s+)(?:```)/);if(f===null)return u;const d=f[1];return u.split(`
104
104
  `).map(h=>{const v=h.match(/^\s+/);if(v===null)return h;const[p]=v;return p.length>=d.length?h.slice(d.length):h}).join(`
105
105
  `)}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:`
106
106
  `}}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,`
@@ -149,7 +149,7 @@ version: 2.9.0
149
149
  `}strong(u){return"<strong>"+u+"</strong>"}em(u){return"<em>"+u+"</em>"}codespan(u){return"<code>"+u+"</code>"}br(){return this.options.xhtml?"<br/>":"<br>"}del(u){return"<del>"+u+"</del>"}link(u,f,d){if(u=cleanUrl(this.options.sanitize,this.options.baseUrl,u),u===null)return d;let h='<a href="'+escape$1(u)+'"';return f&&(h+=' title="'+f+'"'),h+=">"+d+"</a>",h}image(u,f,d){if(u=cleanUrl(this.options.sanitize,this.options.baseUrl,u),u===null)return d;let h='<img src="'+u+'" alt="'+d+'"';return f&&(h+=' title="'+f+'"'),h+=this.options.xhtml?"/>":">",h}text(u){return u}},TextRenderer_1$1=class{strong(u){return u}em(u){return u}codespan(u){return u}del(u){return u}html(u){return u}text(u){return u}link(u,f,d){return""+d}image(u,f,d){return""+d}br(){return""}},Slugger_1$1=class{constructor(){this.seen={}}serialize(u){return u.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(u,f){let d=u,h=0;if(this.seen.hasOwnProperty(d)){h=this.seen[u];do h++,d=u+"-"+h;while(this.seen.hasOwnProperty(d))}return f||(this.seen[u]=h,this.seen[d]=0),d}slug(u,f={}){const d=this.serialize(u);return this.getNextSafeSlug(d,f.dryrun)}};const Renderer$2=Renderer_1$1,TextRenderer$2=TextRenderer_1$1,Slugger$2=Slugger_1$1,{defaults:defaults$1}=defaults$5.exports,{unescape:unescape$2}=helpers;var Parser_1$1=class Ei{constructor(u){this.options=u||defaults$1,this.options.renderer=this.options.renderer||new Renderer$2,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new TextRenderer$2,this.slugger=new Slugger$2}static parse(u,f){return new Ei(f).parse(u)}static parseInline(u,f){return new Ei(f).parseInline(u)}parse(u,f=!0){let d="",h,v,p,m,g,y,b,gn,x,vn,J,j,Fn,Bn,w,re,Pn,Rn,Vn;const Wn=u.length;for(h=0;h<Wn;h++){if(vn=u[h],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[vn.type]&&(Vn=this.options.extensions.renderers[vn.type].call({parser:this},vn),Vn!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(vn.type))){d+=Vn||"";continue}switch(vn.type){case"space":continue;case"hr":{d+=this.renderer.hr();continue}case"heading":{d+=this.renderer.heading(this.parseInline(vn.tokens),vn.depth,unescape$2(this.parseInline(vn.tokens,this.textRenderer)),this.slugger);continue}case"code":{d+=this.renderer.code(vn.text,vn.lang,vn.escaped);continue}case"table":{for(gn="",b="",m=vn.header.length,v=0;v<m;v++)b+=this.renderer.tablecell(this.parseInline(vn.header[v].tokens),{header:!0,align:vn.align[v]});for(gn+=this.renderer.tablerow(b),x="",m=vn.rows.length,v=0;v<m;v++){for(y=vn.rows[v],b="",g=y.length,p=0;p<g;p++)b+=this.renderer.tablecell(this.parseInline(y[p].tokens),{header:!1,align:vn.align[p]});x+=this.renderer.tablerow(b)}d+=this.renderer.table(gn,x);continue}case"blockquote":{x=this.parse(vn.tokens),d+=this.renderer.blockquote(x);continue}case"list":{for(J=vn.ordered,j=vn.start,Fn=vn.loose,m=vn.items.length,x="",v=0;v<m;v++)w=vn.items[v],re=w.checked,Pn=w.task,Bn="",w.task&&(Rn=this.renderer.checkbox(re),Fn?w.tokens.length>0&&w.tokens[0].type==="paragraph"?(w.tokens[0].text=Rn+" "+w.tokens[0].text,w.tokens[0].tokens&&w.tokens[0].tokens.length>0&&w.tokens[0].tokens[0].type==="text"&&(w.tokens[0].tokens[0].text=Rn+" "+w.tokens[0].tokens[0].text)):w.tokens.unshift({type:"text",text:Rn}):Bn+=Rn),Bn+=this.parse(w.tokens,Fn),x+=this.renderer.listitem(Bn,Pn,re);d+=this.renderer.list(x,J,j);continue}case"html":{d+=this.renderer.html(vn.text);continue}case"paragraph":{d+=this.renderer.paragraph(this.parseInline(vn.tokens));continue}case"text":{for(x=vn.tokens?this.parseInline(vn.tokens):vn.text;h+1<Wn&&u[h+1].type==="text";)vn=u[++h],x+=`
150
150
  `+(vn.tokens?this.parseInline(vn.tokens):vn.text);d+=f?this.renderer.paragraph(x):x;continue}default:{const Gn='Token with "'+vn.type+'" type was not found.';if(this.options.silent){console.error(Gn);return}else throw new Error(Gn)}}}return d}parseInline(u,f){f=f||this.renderer;let d="",h,v,p;const m=u.length;for(h=0;h<m;h++){if(v=u[h],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[v.type]&&(p=this.options.extensions.renderers[v.type].call({parser:this},v),p!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(v.type))){d+=p||"";continue}switch(v.type){case"escape":{d+=f.text(v.text);break}case"html":{d+=f.html(v.text);break}case"link":{d+=f.link(v.href,v.title,this.parseInline(v.tokens,f));break}case"image":{d+=f.image(v.href,v.title,v.text);break}case"strong":{d+=f.strong(this.parseInline(v.tokens,f));break}case"em":{d+=f.em(this.parseInline(v.tokens,f));break}case"codespan":{d+=f.codespan(v.text);break}case"br":{d+=f.br();break}case"del":{d+=f.del(this.parseInline(v.tokens,f));break}case"text":{d+=f.text(v.text);break}default:{const g='Token with "'+v.type+'" type was not found.';if(this.options.silent){console.error(g);return}else throw new Error(g)}}}return d}};const Lexer$1=Lexer_1$1,Parser$1=Parser_1$1,Tokenizer$1=Tokenizer_1$1,Renderer$1=Renderer_1$1,TextRenderer$1=TextRenderer_1$1,Slugger$1=Slugger_1$1,{merge,checkSanitizeDeprecation,escape:escape$4}=helpers,{getDefaults,changeDefaults,defaults}=defaults$5.exports;function marked$1(c,u,f){if(typeof c>"u"||c===null)throw new Error("marked(): input parameter is undefined or null");if(typeof c!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(c)+", string expected");if(typeof u=="function"&&(f=u,u=null),u=merge({},marked$1.defaults,u||{}),checkSanitizeDeprecation(u),f){const d=u.highlight;let h;try{h=Lexer$1.lex(c,u)}catch(m){return f(m)}const v=function(m){let g;if(!m)try{u.walkTokens&&marked$1.walkTokens(h,u.walkTokens),g=Parser$1.parse(h,u)}catch(y){m=y}return u.highlight=d,m?f(m):f(null,g)};if(!d||d.length<3||(delete u.highlight,!h.length))return v();let p=0;marked$1.walkTokens(h,function(m){m.type==="code"&&(p++,setTimeout(()=>{d(m.text,m.lang,function(g,y){if(g)return v(g);y!=null&&y!==m.text&&(m.text=y,m.escaped=!0),p--,p===0&&v()})},0))}),p===0&&v();return}try{const d=Lexer$1.lex(c,u);return u.walkTokens&&marked$1.walkTokens(d,u.walkTokens),Parser$1.parse(d,u)}catch(d){if(d.message+=`
151
151
  Please report this to https://github.com/markedjs/marked.`,u.silent)return"<p>An error occurred:</p><pre>"+escape$4(d.message+"",!0)+"</pre>";throw d}}marked$1.options=marked$1.setOptions=function(c){return merge(marked$1.defaults,c),changeDefaults(marked$1.defaults),marked$1},marked$1.getDefaults=getDefaults,marked$1.defaults=defaults,marked$1.use=function(...c){const u=merge({},...c),f=marked$1.defaults.extensions||{renderers:{},childTokens:{}};let d;c.forEach(h=>{if(h.extensions&&(d=!0,h.extensions.forEach(v=>{if(!v.name)throw new Error("extension name required");if(v.renderer){const p=f.renderers?f.renderers[v.name]:null;p?f.renderers[v.name]=function(...m){let g=v.renderer.apply(this,m);return g===!1&&(g=p.apply(this,m)),g}:f.renderers[v.name]=v.renderer}if(v.tokenizer){if(!v.level||v.level!=="block"&&v.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");f[v.level]?f[v.level].unshift(v.tokenizer):f[v.level]=[v.tokenizer],v.start&&(v.level==="block"?f.startBlock?f.startBlock.push(v.start):f.startBlock=[v.start]:v.level==="inline"&&(f.startInline?f.startInline.push(v.start):f.startInline=[v.start]))}v.childTokens&&(f.childTokens[v.name]=v.childTokens)})),h.renderer){const v=marked$1.defaults.renderer||new Renderer$1;for(const p in h.renderer){const m=v[p];v[p]=(...g)=>{let y=h.renderer[p].apply(v,g);return y===!1&&(y=m.apply(v,g)),y}}u.renderer=v}if(h.tokenizer){const v=marked$1.defaults.tokenizer||new Tokenizer$1;for(const p in h.tokenizer){const m=v[p];v[p]=(...g)=>{let y=h.tokenizer[p].apply(v,g);return y===!1&&(y=m.apply(v,g)),y}}u.tokenizer=v}if(h.walkTokens){const v=marked$1.defaults.walkTokens;u.walkTokens=function(p){h.walkTokens.call(this,p),v&&v.call(this,p)}}d&&(u.extensions=f),marked$1.setOptions(u)})},marked$1.walkTokens=function(c,u){for(const f of c)switch(u.call(marked$1,f),f.type){case"table":{for(const d of f.header)marked$1.walkTokens(d.tokens,u);for(const d of f.rows)for(const h of d)marked$1.walkTokens(h.tokens,u);break}case"list":{marked$1.walkTokens(f.items,u);break}default:marked$1.defaults.extensions&&marked$1.defaults.extensions.childTokens&&marked$1.defaults.extensions.childTokens[f.type]?marked$1.defaults.extensions.childTokens[f.type].forEach(function(d){marked$1.walkTokens(f[d],u)}):f.tokens&&marked$1.walkTokens(f.tokens,u)}},marked$1.parseInline=function(c,u){if(typeof c>"u"||c===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof c!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(c)+", string expected");u=merge({},marked$1.defaults,u||{}),checkSanitizeDeprecation(u);try{const f=Lexer$1.lexInline(c,u);return u.walkTokens&&marked$1.walkTokens(f,u.walkTokens),Parser$1.parseInline(f,u)}catch(f){if(f.message+=`
152
- Please report this to https://github.com/markedjs/marked.`,u.silent)return"<p>An error occurred:</p><pre>"+escape$4(f.message+"",!0)+"</pre>";throw f}},marked$1.Parser=Parser$1,marked$1.parser=Parser$1.parse,marked$1.Renderer=Renderer$1,marked$1.TextRenderer=TextRenderer$1,marked$1.Lexer=Lexer$1,marked$1.lexer=Lexer$1.lex,marked$1.Tokenizer=Tokenizer$1,marked$1.Slugger=Slugger$1,marked$1.parse=marked$1;var marked_1=marked$1;const marked=marked_1,Lexer=Lexer_1$1,Parser=Parser_1$1,Tokenizer=Tokenizer_1$1,Renderer=Renderer_1$1,TextRenderer=TextRenderer_1$1,Slugger=Slugger_1$1;esmEntry$1.exports=marked,esmEntry$1.exports.parse=marked,esmEntry$1.exports.Parser=Parser,esmEntry$1.exports.parser=Parser.parse,esmEntry$1.exports.Renderer=Renderer,esmEntry$1.exports.TextRenderer=TextRenderer,esmEntry$1.exports.Lexer=Lexer,esmEntry$1.exports.lexer=Lexer.lex,esmEntry$1.exports.Tokenizer=Tokenizer,esmEntry$1.exports.Slugger=Slugger;var esmEntry=esmEntry$1.exports;const __default__$4=vue.defineComponent({name:"EcanText",components:{Skeleton},props:{...textComponentProps},setup(c,{expose:u}){const f=vue.ref(!1),d=usePickComponentStyle(c),h=vue.ref({}),v=vue.computed(()=>c.variableFontSize||"14px"),p=vue.computed(()=>"-"+vue.unref(v)),m=vue.ref(),g=vue.ref(),{pageMode:y,textColor:b,getGlobalVar:gn}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",textColor:"",getGlobalVar:Yn=>{}}),{getGlobalModel:x,setGlobalModel:vn,getRecordValueByKeyName:J,hanldePageRequestData:j}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Yn=>{},setGlobalModel:(Yn,ar)=>{},getRecordValueByKeyName:Yn=>{},hanldePageRequestData:(Yn,ar)=>{}}),{setLoadedData:Fn,loadedData:Bn}=vue.inject(LOADED_DATA,{setLoadedData:(Yn,ar)=>{},loadedData:{}}),{setTemplateData:w}=vue.inject("templateOperate",{setTemplateData:Yn=>{}}),re=Yn=>{const ar=c.id,ur=x(ar);vn(ar,{...ur,value:Yn||"",RECORD:Yn||""})},Pn=Yn=>{var ar,ur,mr;if(mn(Yn,"value")&&re(Yn.value),c.titleContent){const dr=c.titleContent.match(/\{(.+?)\}/g)||[];let gr="";if(dr!=null&&dr.length){const lr=(ar=dr[0].slice(1,-1))==null?void 0:ar.trim();lr.includes("$page")?gr=gn(lr):gr=Yn&&Yn[lr]?Yn[lr]:c.titleContent}else gr=c.titleContent;m.value=c!=null&&c.isMarkDown?esmEntry(gr):gr}if(c.showAnimation){const dr=c.text.match(/\{(.+?)\}/g)||[];if(dr!=null&&dr.length){const gr=(ur=dr[0].slice(1,-1))==null?void 0:ur.trim();if(vue.unref(h)[gr]===Yn){h.value=Yn;return}const lr=+Yn[gr];let hr=0;if(isNaN(lr))h.value=Yn;else{String(lr).includes(".")&&(hr=((mr=String(lr).split(".")[1])==null?void 0:mr.length)||0);const xr=Math.abs(lr)*Math.pow(10,hr),Sr=String(xr).length;let yr=[];for(let br=0;br<5;br++){const kr=Math.ceil(Math.random()*(xr+1)-1);yr.includes(kr)||yr.push(kr)}yr.sort((br,kr)=>br-kr),yr=yr.map(br=>{const kr=String(br).split("").reverse(),wr=[];for(let Er=0;Er<Sr;Er++)kr&&kr[Er]?wr.push(kr[Er]):wr.push("0");return hr&&wr.splice(hr,0,"."),(lr<0?"-":"")+wr.reverse().join("")}),yr.push(lr);let pr=0;for(const br of yr)setTimeout(()=>{h.value={...vue.unref(h),[gr]:br}},pr*1e3),pr+=.1}}else h.value=Yn}else h.value=Yn};vue.watch(()=>[c.data,c.dataType],([Yn,ar])=>{ar==="static"&&Pn(Yn)},{immediate:!0});const Rn=vue.computed(()=>{var ar;let Yn="";if(c.gradientShow){const{gradientColor:ur,gradientOffset:mr,gradientAngle:dr,color:gr}=c,lr=ur||"transparent";let hr="";(ar=vue.unref(g))!=null&&ar.textContent&&(hr=`background: linear-gradient(${dr}, ${gr}, ${lr} ${mr*100}%);`),Yn+=`${hr}-webkit-background-clip: text;color: transparent;`}return Yn}),Vn=vue.computed(()=>{var ar;const Yn={};if(c.gradientShow){const{gradientColor:ur,gradientOffset:mr,gradientAngle:dr,color:gr}=c,lr=ur||"transparent";(ar=vue.unref(g))!=null&&ar.textContent&&(Yn.background=`linear-gradient(${dr}, ${gr}, ${lr} ${mr*100}%)`),Yn["-webkit-background-clip"]="text",Yn.color="transparent"}return Yn}),Wn=vue.computed(()=>{const Yn={};return c.linkPage&&(Yn.cursor="pointer",Yn.userSelect="none"),Yn}),Gn=vue.computed(()=>{let Yn={};return(c.isContentMarkDown||c.exceedConfig)&&(Yn={display:"flex",width:"100%",height:"100%",overflow:"auto",whiteSpace:"normal"},c.isContentMarkDown||(Yn.alignItems=c.alignItems,Yn.justifyContent=c.justifyContent)),Yn}),Zn=vue.ref(1),Xn=vue.computed(()=>{let Yn="";return!c.color&&!c.variableColor&&vue.unref(b)&&(Yn=vue.unref(b)),Yn}),er=vue.computed(()=>{var xr;if(vue.unref(f))return`<span style="color:${c.variableColor};font-size:${vue.unref(v)};${vue.unref(Rn)}">${c.variableDefaultValue}</span>`;if(!Zn.value)return;const Yn=vue.unref(h),ar=c.increaseColor||c.color||"#000000a6",ur=c.declineColor||c.color||"#000000a6";let mr=c.text;mr=mr==null?void 0:mr.replace(/\n|\\n/g,"<br/>"),mr=mr==null?void 0:mr.replace(/\s(?!\{) | (?!\})\s/g,"&nbsp;");const dr=mr.match(/\{(.+?)\}/g)||[];let gr="",lr="";if(c.isContentMarkDown||(c.exceedConfig==="wrap"?lr="show-wrap "+c.justifyContent:c.exceedConfig==="ellipsis"&&(lr="show-ellipsis "+c.justifyContent)),dr==null||dr.length===0){if(mr&&c.format==="percentage"&&!isNaN(+mr)){const Sr=parseFloat(mr),yr=Sr*100,pr=Jn(yr.toFixed(2));Sr>=0?mr=`<span class="${lr}" style="color: ${pr||ar||"#ED6643"};font-size:${vue.unref(v)};display: inline-block;${vue.unref(Rn)}">
152
+ Please report this to https://github.com/markedjs/marked.`,u.silent)return"<p>An error occurred:</p><pre>"+escape$4(f.message+"",!0)+"</pre>";throw f}},marked$1.Parser=Parser$1,marked$1.parser=Parser$1.parse,marked$1.Renderer=Renderer$1,marked$1.TextRenderer=TextRenderer$1,marked$1.Lexer=Lexer$1,marked$1.lexer=Lexer$1.lex,marked$1.Tokenizer=Tokenizer$1,marked$1.Slugger=Slugger$1,marked$1.parse=marked$1;var marked_1=marked$1;const marked=marked_1,Lexer=Lexer_1$1,Parser=Parser_1$1,Tokenizer=Tokenizer_1$1,Renderer=Renderer_1$1,TextRenderer=TextRenderer_1$1,Slugger=Slugger_1$1;esmEntry$1.exports=marked,esmEntry$1.exports.parse=marked,esmEntry$1.exports.Parser=Parser,esmEntry$1.exports.parser=Parser.parse,esmEntry$1.exports.Renderer=Renderer,esmEntry$1.exports.TextRenderer=TextRenderer,esmEntry$1.exports.Lexer=Lexer,esmEntry$1.exports.lexer=Lexer.lex,esmEntry$1.exports.Tokenizer=Tokenizer,esmEntry$1.exports.Slugger=Slugger;var esmEntry=esmEntry$1.exports;const __default__$4=vue.defineComponent({name:"EcanText",components:{Skeleton},props:{...textComponentProps},setup(c,{expose:u}){const f=vue.ref(!1),d=usePickComponentStyle(c),h=vue.ref({}),v=vue.computed(()=>c.variableFontSize||"14px"),p=vue.computed(()=>"-"+vue.unref(v)),m=vue.ref(),g=vue.ref(),{pageMode:y,textColor:b,getGlobalVar:gn}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",textColor:"",getGlobalVar:Yn=>{}}),{getGlobalModel:x,setGlobalModel:vn,getRecordValueByKeyName:J,hanldePageRequestData:j}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Yn=>{},setGlobalModel:(Yn,ar)=>{},getRecordValueByKeyName:Yn=>{},hanldePageRequestData:(Yn,ar)=>{}}),{setLoadedData:Fn,loadedData:Bn}=vue.inject(LOADED_DATA,{setLoadedData:(Yn,ar)=>{},loadedData:{}}),{setTemplateData:w}=vue.inject("templateOperate",{setTemplateData:Yn=>{}}),re=Yn=>{const ar=c.id,ur=x(ar);vn(ar,{...ur,value:Yn||"",RECORD:Yn||""})},Pn=Yn=>{var ar,ur,mr;if(mn(Yn,"value")&&re(Yn.value),c.titleContent){const dr=c.titleContent.match(/\{(.+?)\}/g)||[];let gr="";if(dr!=null&&dr.length){const lr=(ar=dr[0].slice(1,-1))==null?void 0:ar.trim();lr.includes("$page")?gr=gn(lr):gr=Yn&&Yn[lr]?Yn[lr]:c.titleContent}else gr=c.titleContent;m.value=c!=null&&c.isMarkDown?esmEntry(gr):gr}if(c.showAnimation){const dr=c.text.match(/\{(.+?)\}/g)||[];if(dr!=null&&dr.length){const gr=(ur=dr[0].slice(1,-1))==null?void 0:ur.trim();if(vue.unref(h)[gr]===Yn){h.value=Yn;return}const lr=+Yn[gr];let hr=0;if(isNaN(lr))h.value=Yn;else{String(lr).includes(".")&&(hr=((mr=String(lr).split(".")[1])==null?void 0:mr.length)||0);const xr=Math.abs(lr)*Math.pow(10,hr),Sr=String(xr).length;let yr=[];for(let br=0;br<5;br++){const wr=Math.ceil(Math.random()*(xr+1)-1);yr.includes(wr)||yr.push(wr)}yr.sort((br,wr)=>br-wr),yr=yr.map(br=>{const wr=String(br).split("").reverse(),kr=[];for(let Er=0;Er<Sr;Er++)wr&&wr[Er]?kr.push(wr[Er]):kr.push("0");return hr&&kr.splice(hr,0,"."),(lr<0?"-":"")+kr.reverse().join("")}),yr.push(lr);let pr=0;for(const br of yr)setTimeout(()=>{h.value={...vue.unref(h),[gr]:br}},pr*1e3),pr+=.1}}else h.value=Yn}else h.value=Yn};vue.watch(()=>[c.data,c.dataType],([Yn,ar])=>{ar==="static"&&Pn(Yn)},{immediate:!0});const Rn=vue.computed(()=>{var ar;let Yn="";if(c.gradientShow){const{gradientColor:ur,gradientOffset:mr,gradientAngle:dr,color:gr}=c,lr=ur||"transparent";let hr="";(ar=vue.unref(g))!=null&&ar.textContent&&(hr=`background: linear-gradient(${dr}, ${gr}, ${lr} ${mr*100}%);`),Yn+=`${hr}-webkit-background-clip: text;color: transparent;`}return Yn}),Vn=vue.computed(()=>{var ar;const Yn={};if(c.gradientShow){const{gradientColor:ur,gradientOffset:mr,gradientAngle:dr,color:gr}=c,lr=ur||"transparent";(ar=vue.unref(g))!=null&&ar.textContent&&(Yn.background=`linear-gradient(${dr}, ${gr}, ${lr} ${mr*100}%)`),Yn["-webkit-background-clip"]="text",Yn.color="transparent"}return Yn}),Wn=vue.computed(()=>{const Yn={};return c.linkPage&&(Yn.cursor="pointer",Yn.userSelect="none"),Yn}),Gn=vue.computed(()=>{let Yn={};return(c.isContentMarkDown||c.exceedConfig)&&(Yn={display:"flex",width:"100%",height:"100%",overflow:"auto",whiteSpace:"normal"},c.isContentMarkDown||(Yn.alignItems=c.alignItems,Yn.justifyContent=c.justifyContent)),Yn}),Zn=vue.ref(1),Xn=vue.computed(()=>{let Yn="";return!c.color&&!c.variableColor&&vue.unref(b)&&(Yn=vue.unref(b)),Yn}),er=vue.computed(()=>{var xr;if(vue.unref(f))return`<span style="color:${c.variableColor};font-size:${vue.unref(v)};${vue.unref(Rn)}">${c.variableDefaultValue}</span>`;if(!Zn.value)return;const Yn=vue.unref(h),ar=c.increaseColor||c.color||"#000000a6",ur=c.declineColor||c.color||"#000000a6";let mr=c.text;mr=mr==null?void 0:mr.replace(/\n|\\n/g,"<br/>"),mr=mr==null?void 0:mr.replace(/\s(?!\{) | (?!\})\s/g,"&nbsp;");const dr=mr.match(/\{(.+?)\}/g)||[];let gr="",lr="";if(c.isContentMarkDown||(c.exceedConfig==="wrap"?lr="show-wrap "+c.justifyContent:c.exceedConfig==="ellipsis"&&(lr="show-ellipsis "+c.justifyContent)),dr==null||dr.length===0){if(mr&&c.format==="percentage"&&!isNaN(+mr)){const Sr=parseFloat(mr),yr=Sr*100,pr=Jn(yr.toFixed(2));Sr>=0?mr=`<span class="${lr}" style="color: ${pr||ar||"#ED6643"};font-size:${vue.unref(v)};display: inline-block;${vue.unref(Rn)}">
153
153
  <div class="percentage-img-box">
154
154
  <img style="width: ${vue.unref(v)};filter: ${`drop-shadow(${pr||ar||"#ED6643"} ${vue.unref(v)} 0px)`};" src="${goUp}"/>
155
155
  </div>
@@ -159,18 +159,18 @@ Please report this to https://github.com/markedjs/marked.`,u.silent)return"<p>An
159
159
  <img style="width: ${vue.unref(v)};filter: ${`drop-shadow(${pr||ur||"#6ACB97"} ${vue.unref(v)} 0px)`};" src="${goDown}"/>
160
160
  </div>
161
161
  <span style="color: ${pr||c.color};${vue.unref(Rn)}">${c.minusSignShow?"-":""}${Math.abs(+yr).toFixed(2)}%</span>
162
- </span>`}gr=mr}let hr="";for(let Sr=0;Sr<dr.length;Sr++){hr="";const yr=dr[Sr],pr=(xr=yr==null?void 0:yr.slice(1,yr.length-1))==null?void 0:xr.trim();let br=pr;if(pr.includes("$page"))br=gn(pr)||c.variableDefaultValue;else{const wr={},Er=getPageUrlParams(ir);for(const Dr in Yn)wr[Dr]=typeof Yn[Dr]=="number"?Yn[Dr]:J(String(Yn[Dr]))||Yn[Dr];for(const Dr in Er)wr[Dr]=decodeURIComponent(Er[Dr]);const Pr=pn(br,wr);Pr&&["null","undefined"].includes(Pr)?br=c.variableDefaultValue:br=Pr}let kr=c.isContentMarkDown&&br&&vue.unref(y)!=="design"?esmEntry(br):br;if(kr===pr&&(kr=c.variableDefaultValue),kr!=null){const wr=c.format;wr==="percentage"?(kr=+kr,isNaN(kr)?c.variableDefaultValue?mr=mr.replace(yr,`<span class="${lr}" style="color:${Jn("0.00")||c.variableColor};font-size:${vue.unref(v)};${vue.unref(Rn)}">${c.variableDefaultValue}</span>`):mr=mr.replace(yr,`<span class="${lr}" style="color:${Jn("0.00")||c.variableColor};font-size:${vue.unref(v)};${vue.unref(Rn)}">0%</span>`):kr>=0?(kr=kr*100,hr=Jn(kr.toFixed(2)),mr=mr.replace(yr,`<span class="${lr}" style="color: ${hr||ar||"#ED6643"};font-size:${vue.unref(v)};display: inline-block;${vue.unref(Rn)}">
162
+ </span>`}gr=mr}let hr="";for(let Sr=0;Sr<dr.length;Sr++){hr="";const yr=dr[Sr],pr=(xr=yr==null?void 0:yr.slice(1,yr.length-1))==null?void 0:xr.trim();let br=pr;if(pr.includes("$page"))br=gn(pr)||c.variableDefaultValue;else{const kr={},Er=getPageUrlParams(ir);for(const Dr in Yn)kr[Dr]=typeof Yn[Dr]=="number"?Yn[Dr]:J(String(Yn[Dr]))||Yn[Dr];for(const Dr in Er)kr[Dr]=decodeURIComponent(Er[Dr]);const Ir=pn(br,kr);Ir&&["null","undefined"].includes(Ir)?br=c.variableDefaultValue:br=Ir}let wr=c.isContentMarkDown&&br&&vue.unref(y)!=="design"?esmEntry(br):br;if(wr===pr&&(wr=c.variableDefaultValue),wr&&re(wr),wr!=null){const kr=c.format;kr==="percentage"?(wr=+wr,isNaN(wr)?c.variableDefaultValue?mr=mr.replace(yr,`<span class="${lr}" style="color:${Jn("0.00")||c.variableColor};font-size:${vue.unref(v)};${vue.unref(Rn)}">${c.variableDefaultValue}</span>`):mr=mr.replace(yr,`<span class="${lr}" style="color:${Jn("0.00")||c.variableColor};font-size:${vue.unref(v)};${vue.unref(Rn)}">0%</span>`):wr>=0?(wr=wr*100,hr=Jn(wr.toFixed(2)),mr=mr.replace(yr,`<span class="${lr}" style="color: ${hr||ar||"#ED6643"};font-size:${vue.unref(v)};display: inline-block;${vue.unref(Rn)}">
163
163
  <div class="percentage-img-box">
164
164
  <img style="width: ${vue.unref(v)};filter: ${`drop-shadow(${hr||ar||"#ED6643"} ${vue.unref(v)} 0px)`};" src="${goUp}"/>
165
165
  </div>
166
- <span style="color: ${hr||c.color};${vue.unref(Rn)}">${Math.abs(+kr).toFixed(2)}%</span>
167
- </span>`)):(kr=kr*100,hr=Jn(kr.toFixed(2)),mr=mr.replace(yr,`<span class="${lr}" style="color: ${hr||ur||"#6ACB97"};font-size:${vue.unref(v)};display: inline-block;${vue.unref(Rn)}">
166
+ <span style="color: ${hr||c.color};${vue.unref(Rn)}">${Math.abs(+wr).toFixed(2)}%</span>
167
+ </span>`)):(wr=wr*100,hr=Jn(wr.toFixed(2)),mr=mr.replace(yr,`<span class="${lr}" style="color: ${hr||ur||"#6ACB97"};font-size:${vue.unref(v)};display: inline-block;${vue.unref(Rn)}">
168
168
  <div class="percentage-img-box">
169
169
  <img style="width: ${vue.unref(v)};filter: ${`drop-shadow(${hr||ur||"#6ACB97"} ${vue.unref(v)} 0px)`};" src="${goDown}"/>
170
170
  </div>
171
- <span style="color: ${hr||c.color};${vue.unref(Rn)}">${c.minusSignShow?"-":""}${Math.abs(+kr).toFixed(2)}%</span>
172
- </span>`))):c.format==="percent"?(isNaN(+kr)||(kr=(+kr*100).toFixed(2)+"%"),mr=mr.replace(yr,`<span class="${lr}" style="color:${Jn(kr)||c.variableColor};font-size:${vue.unref(v)};${vue.unref(Rn)}">${kr}</span>`)):c.format==="money"?(isNaN(+kr)||(kr=formatMoney(+kr)),mr=mr.replace(yr,`<span class="${lr}" style="color:${Jn(kr)||c.variableColor};font-size:${vue.unref(v)};${vue.unref(Rn)}">${kr}</span>`)):wr==="thousands"?(isNaN(+kr)||(kr=formatThousands(+kr)),mr=mr.replace(yr,`<span class="${lr}" style="color:${Jn(kr)||c.variableColor};font-size:${vue.unref(v)};${vue.unref(Rn)}">${kr}</span>`)):mr=mr.replace(yr,`<span class="${lr}" style="color:${Jn(kr)||c.variableColor};font-size:${vue.unref(v)};${vue.unref(Rn)}">${kr}</span>`)}}if(gr||(gr=`<span class="${lr}" style="color: ${hr};${vue.unref(Rn)}">${mr}</span>`),c.unitShow&&c.unitText){const{unitTop:Sr,unitLeft:yr}=c;let pr="position:relative;";Sr&&(pr+=`top:${Sr};`),yr&&(pr+=`margin-left:${yr};`),gr+=`<span style='color:${c.unitColor};font-size:${c.unitFontSize};font-weight:${c.unitFontWeight};${pr};${vue.unref(Rn)}'>${c.unitText}</span>`}return c.exceedConfig&&(gr=`<span class="${lr}" style="display: inline-block;color: ${Jn(gr)};">${gr}</span>`),gr.includes("span")||(gr=`<span class="${lr}" style="color: ${Jn(gr)};">${gr}</span>`),gr});function Jn(Yn){let ar="",ur=!1;const{targetValue:mr,targetShow:dr,notExpectColor:gr}=c;if(dr){switch(c.targetRule){case"equal":Yn!==mr&&(ur=!0);break;case"greater":Yn<=mr&&(ur=!0);break;case"greater_equal":Yn<mr&&(ur=!0);break;case"less":Yn>=mr&&(ur=!0);break;case"less_equal":Yn>mr&&(ur=!0);break}ur&&(ar=gr)}return ar}const{pageId:ir}=vue.inject("templateOperate",{pageId:""})||{},or=useRequestData(c),sr=vue.ref(!1),Hn=async()=>{var Yn,ar,ur;try{sr.value=!0;const mr=await or();(Yn=mr==null?void 0:mr.data)!=null&&Yn.data.rowsToData?Pn(((ar=mr==null?void 0:mr.data)==null?void 0:ar.data.rowsToData)||{}):Pn(((ur=mr==null?void 0:mr.data)==null?void 0:ur.data)||{})}catch(mr){console.error(mr)}finally{sr.value=!1}},Kn=()=>{re("")},zn=Yn=>{var ur,mr;const{data:ar}=(Yn==null?void 0:Yn.data)||{};if(ar){f.value=!1;const{columns:dr=[],rows:gr=[]}=((ur=Yn==null?void 0:Yn.data)==null?void 0:ur.data)??{},{graphicConfig:lr}=c;let hr={};if(dr.length>0)if((mr=lr==null?void 0:lr.dimensionList)!=null&&mr.length){const xr=dr[0];xr&&(gr!=null&&gr.length)&&(hr={value:gr[0][xr]})}else{const xr=dr.find(Sr=>!!Sr);xr&&(hr={value:isNaN(gr[xr])?0:gr[xr]||0})}re(hr==null?void 0:hr.value),Pn(hr)}else f.value=!0,re(c.variableDefaultValue),Pn({value:c.variableDefaultValue})},qn=useIndicatorData(c,zn),tr=async()=>{try{sr.value=!0;const Yn=await qn();zn(Yn)}catch(Yn){console.error(Yn)}finally{sr.value=!1,Fn(c.id,!0)}},Un=vue.ref(!1);vue.watch(Bn,Yn=>{if(c.dataType==="indicator"){const ar=getFixedValueDatas(c.graphicConfig);ar!=null&&ar.length&&(!vue.unref(Un)&&canRequestIndicator(c.graphicConfig,Yn)?(Un.value=!0,nr()):canRequestIndicator(c.graphicConfig,Yn)||(Un.value=!1))}},{deep:!0});const nr=async()=>{switch(c.dataType){case"indicator":await tr();break;case"request":{const{openCustomRequestData:Yn,customRequestName:ar}=c;Yn||Yn===void 0?await Hn():(sr.value=!0,j(ar,ur=>{ur&&(ur.rowsToData?Pn(ur.rowsToData):Pn(ur)),sr.value=!1}));break}}},{setRequest:cr}=vue.inject(REQUEST_MODEL,{setRequest:({id:Yn,sortNum:ar,requestFn:ur})=>{}});typeof cr=="function"&&cr({id:c.id,requestFn:nr,sortNum:c.requestSort}),u({refreshData:nr});const Qn=useEmitEvent(c),fr=Qn("click",()=>{const Yn=document.getElementsByClassName(`ecan-text_${c.id}`);Yn!=null&&Yn.length&&re(Yn[0].innerText),setTimeout(()=>{re("")},0),!(!c.linkPage&&!c.href)&&handleJumpLink(c,{pageMode:vue.unref(y),targetTemplate:c.targetTemplate,getRecordValueByKeyName:J,setTemplateData:w})}),vr=Qn("valueChange",()=>{Zn.value++});return useOnEvent(c,{refreshData:nr,resetRecord:Kn,click:fr,valueChange:vr}),vue.watch(()=>er.value,(Yn,ar)=>{Yn!==ar&&vr()}),{style:d,myText:er,loading:sr,click:fr,textIndent:p,vFontSize:v,gradientStyle:Vn,cursorStyle:Wn,myTitle:m,wrapStyle:Gn,textRef:g,globalColor:Xn}}}),__injectCSSVars__$4=()=>{vue.useCssVars(c=>({"0843cfd4":c.vFontSize,"2804f5a9":c.textIndent,"6e394efe":c.percentageSide,"306ac368":c.titleFontColor,f0da8a52:c.variableColor}))},__setup__$4=__default__$4.setup;__default__$4.setup=__setup__$4?(c,u)=>(__injectCSSVars__$4(),__setup__$4(c,u)):__injectCSSVars__$4;const Text_vue_vue_type_style_index_0_scoped_d2db85e6_lang="",Text_vue_vue_type_style_index_1_lang="",_hoisted_1$j=["innerHTML"],_hoisted_2$a=["innerHTML"],_hoisted_3$5=["innerHTML"];function _sfc_render$x(c,u,f,d,h,v){const p=vue.resolveComponent("skeleton"),m=vue.resolveComponent("a-tooltip");return c.loading?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:vue.normalizeStyle(c.style)},[vue.createVNode(p,{loading:c.loading},null,8,["loading"])],4)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"ecan-text",style:vue.normalizeStyle(c.style),onClick:u[0]||(u[0]=(...g)=>c.click&&c.click(...g))},[c.myTitle?(vue.openBlock(),vue.createBlock(m,{key:0,overlayClassName:"ecan-text-tooltip",color:c.titleBackgroundColor||"#ffffff"},{title:vue.withCtx(()=>[vue.createElementVNode("div",{style:vue.normalizeStyle({padding:"10px",maxHeight:"500px",overflow:"auto",color:c.titleFontColor||"#000000"}),innerHTML:c.myTitle},null,12,_hoisted_1$j)]),default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass("ecan-text_"+c.id),style:vue.normalizeStyle({...c.gradientStyle,...c.cursorStyle}),innerHTML:c.myText},null,14,_hoisted_2$a)]),_:1},8,["color"])):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:vue.normalizeClass(["ecantext_"+c.id,c.isContentMarkDown?"markdown-content-tenxt":""]),style:vue.normalizeStyle({...c.gradientStyle,...c.cursorStyle,...c.wrapStyle,color:c.globalColor}),ref:"textRef",innerHTML:c.myText},null,14,_hoisted_3$5)),vue.renderSlot(c.$slots,"toolbox",{},void 0,!0)],4))}const Text=_export_sfc$1(__default__$4,[["render",_sfc_render$x],["__scopeId","data-v-d2db85e6"]]),EcanText=withInstall$1(Text),_sfc_main$s=vue.defineComponent({name:"EcanScrollText",setup(){return{text:vue.ref("基础文本")}}}),ScrollText_vue_vue_type_style_index_0_scoped_4dd9c03e_lang="",_hoisted_1$i={class:"red"};function _sfc_render$w(c,u,f,d,h,v){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$i,vue.toDisplayString(c.text),1)}const ScrollText=_export_sfc$1(_sfc_main$s,[["render",_sfc_render$w],["__scopeId","data-v-4dd9c03e"]]),EcanScrollText=withInstall$1(ScrollText),timeDisplayProps={...props$1,name:"时间展示",keyName:"时间展示",type:"ecanTimeDisplay",format:"YYYY-MM-DD dddd HH:mm:ss",fontSize:"16px",color:"#333",width:"240px",height:"40px",fontFamily:"",fontWeight:400,textShadow:"",alignItems:"center",justifyContent:"center",operate:null,updateInterval:{value:1,mode:"second"}},timeDisplayComponentProps=transformToComponentProps(timeDisplayProps),timeDisplayEvents=["timeChange"],_sfc_main$r=vue.defineComponent({name:"EcanTimeDisplay",props:{...timeDisplayComponentProps},setup(c){const{pageMode:u}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),f=usePickComponentStyle(c),d=()=>{const{format:b,operate:gn}=c;let x=dayjs();if(gn){const{type:vn,value:J,mode:j}=gn;switch(vn){case"add":x=x.add(J,j);break;case"minus":x=x.subtract(J,j)}}return x.format(b)},h=vue.ref();vue.watch(()=>[c.operate,c.format],()=>{h.value=d()},{immediate:!0,deep:!0}),vue.watch(()=>c.updateInterval,()=>{y()},{deep:!0});let v=null;const p=()=>{clearInterval(v),v=null},g=useEmitEvent(c)("timeChange",()=>{}),y=()=>{v&&p();let b=1e3;const{value:gn,mode:x}=c.updateInterval||{};gn&&(b=b*gn);const vn={second:1,minute:60,hour:60*60,day:24*60*60};x&&(b=b*vn[x]),v=setInterval(()=>{h.value=d(),vue.unref(u)!=="design"&&g()},b)};return useOnEvent(c,{timeChange:g}),vue.onMounted(()=>{y()}),vue.onUnmounted(()=>{p()}),{style:f,time:h}}}),TimeDisplay_vue_vue_type_style_index_0_scoped_b9216314_lang="";function _sfc_render$v(c,u,f,d,h,v){return vue.openBlock(),vue.createElementBlock("div",{class:"time-display",style:vue.normalizeStyle(c.style)},vue.toDisplayString(c.time),5)}const TimeDisplay=_export_sfc$1(_sfc_main$r,[["render",_sfc_render$v],["__scopeId","data-v-b9216314"]]),EcanTimeDisplay=withInstall$1(TimeDisplay),listProps={...props$1,type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#0d215e",itemColSpan:"0px",itemRowSpan:"10px",itemPadding:"20px",useRanking:!1,useTitle:!1,sliceCount:6,columnCount:1,itemHeight:"32px",data:[{name:"a",age:12},{name:"b",age:14}],columns:[{key:"name"},{key:"age"}],seqIcon:!1,isUseSeq:!1,seqWidth:"10%",seqName:"序号",seqFontSize:"14px",isAutoScroll:!1,scrollSpeed:10,graphicConfig:{},seqIconWidth:"",seqIconHeight:"",seqIconConfig:[],seqIconOffsetX:0,seqIconOffsetY:0,seqIndexFormatter:"{index}",itemWidth:"100%"},listComponentProps=transformToComponentProps(listProps),listEvents=["refreshData","click","resetRecord"],seqIcon4="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAWhJREFUSEvNlz9Lw0AYxp/3iJ2TgqN+ia5ihbb0A/hnEXG3QxHEyUkQVwcHwU3cgoI4hHKXUnQS3Z0VQVBwbTVtXrlciyKmLo2XmxI47v3x3HPvPUdcKk3B85og2gYwjUkOIoD5CcAeSXk0bmniSqWJQuEA/f4kEb7WMjD6f42kPE0rQlyrPYJoZjg5O5g4voDnrZDvf/xWRIMkuJkOo8odXHeefL9rG+QWrlvOA8gNomiBOp2ePUVM5S7iuE5heG0bBNBeieMdKLWvv74D/Y9Zf0rAfEZKLdkHEUIrcw8h5qjVetNAdhRJKidH+nnY6EJ7IKN9YY4ANPIAou+WDXsgZmtewLxKSik7ICOzOk6ZguDVplnPScpFe8c3Jw2th8GgTu32lb0Wb4yZg0vPgOQmBvwRjKrVBwgxm3lUZL6E4yxTELyneaQBxznMPDwzr5NSJ+nhWT8nisVNAFuZPSeYd0mp43G5+BNp2sfxEUU29gAAAABJRU5ErkJggg==",seqIcon5="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAbVJREFUSEvNl7tKA1EQhmfOyd6ClikVLHwCWzHb5QHUbWIStVRQBLGyEEFsLSwUq6idKIiFjZdNUgTR3k7wAoqC2GU3mz0ju5uIRaKN68l5gDMfM//M/IO0PaS4yd55ErTEEFMEf/cYIvgknjjgmpq3t376GZ2iOa8l+Ybn+CD+kqIZlSFA+C1CTpuw9zvBYK2YfuCM9QmKgaIZNcEQGj4da0bKQuug3g4G3T2TYmQIYwYlIqIbVXdH0KrW2oI4u2Z8qfgqT6AVutZ1Ny0VhAelEXSl+2DilO1IywhCKNgaR8oouVJFGkikk0grvqBl9c5cx5UV8R0I/0MjbTJwqOftMekgmsLA9fxbTa8Po1V9D8eMpIyAwhE8n55JYM6YvDyXBhIN21DEHgHNdgNIg4BmpIEEpak3xGsCMKsU7DMpIC2xeg2R7p2uvMkTK9GRXiiNSmnfrhhoYXcQODzBMkr2oixtxLeW3osP5oDMpRdZxl9sQNcYo1oxfc8Z64/dKgo6efwwxgfnTt1OGpnVDL4Zp3mOAouCmivvdjTPwTlRN3oWBMFiHOeEIPFEAKtGvrTz0znxCSDl9ZPnj4lKAAAAAElFTkSuQmCC",seqIcon6="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAZhJREFUSEvNl79LY0EUhb87L6uwkHSieRjBwm7/ApHVbcwzrT8ake21EGHZympBbLewEOxk2xVEBAVttBLtrRWTiLtaiTHue3NlsgiKRiwSJ1NOMffjzLl3zghH+oHL81ms/Y4xHajSsGUMJMkZIgtE4fJr5wqbpVnS6Z9UrmkoxENVMYCC6BTD4a96MMJW8RQT5LC2YUI8OygInDLrdGcn+CR3LxUStsvaFCUeV3NXpPaIdPKZ/lzlZZCtUgNNUUdUB2LtIZlksBVADmivDvGl99afIiLOsBWUPFG47w/EVXbdU7uieJ7h7CIiT7pDeA+PPJfgN1E49njbD0hbO9xVj8kkA/TnrmqCeVIEUimI4zJqphjp2vUHUpPBmZh/JDrjH0Q1xjLtDyRIQRJfQDBJ1LnjB+TBrFYGKWT/+DTrGlE46qd9W2Kgue5QvUXIkw/3/I34/69vCzx6b4oBrROMiieYoKfpUTGON9CbcQp91ToeKc7wMbPU9PCsfCXKrtYPz+478fd8DtVvGGnOd0LlB4Vw5bV0fg/E2Mcb2D1RagAAAABJRU5ErkJggg==",seqIcon7="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAapJREFUSEvNl88rBGEYx7/P7K6yO2VGOfJPuAqF/AGYi7Q7y8mWTcnJQUquDg4kVnITJQdpZyVOsndXtKUoM4vyY3feR7OLiN0cjHff05ze7+d95vs+7/chtC6FGvRQkgiTBGrCXy4igEVOgGbzaXOx2takdaWSSl39PBefAPBfYpT3KsF4H2LITsc3KgmQ3pO6BFEz2AeId1VSwELsOHrEwKbx8hMM6T1r7EslPqsReefMqlq4PbdpPFYASflYijfJEgifqlqkQzKIArB7YheoE4emZ8Zvy/OI/xUpyz5CoNfOmMeSQah8gwRP2db5HDAtvtjoHyvyocuMLccy+6WDkBICi+KZq4Tb7vaN21K7kVGRcqMLeAa+EqChfDqWkQfy9l+YUWAgUQMgXGTQqDwQCoDZvWZWBvNW1JIC8m7WQlB0POzFb6SZlYFtJ232Sbq+tdPQnth1e52DkSN5LZ5q5dH7XQz4r2AksqqmVglG3asXUJQWv6MiWOzawfsB7I09V/DISoKCkQW/wzMzoo4VW68YnkvjRGNonEATBPgzTjDP5K3h5Wojwitkj93H9BVpxQAAAABJRU5ErkJggg==",_sfc_main$q=vue.defineComponent({name:"EcanList",components:{Skeleton,ATooltip:antDesignVue.Tooltip,MarqueeScroll},props:{...listComponentProps},setup(c,{expose:u}){const f=vue.ref(),d=usePickComponentStyle(c,["backgroundColor"]),h=(Kn,zn)=>{const{format:qn,customFormatter:tr}=zn;if(qn==null||qn==="")return Kn;const Un={money:formatMoney,percentage:formatPercentage,contrast:formatPercentage,custom:formatCustom};return Un[qn]?qn==="custom"?Un[qn](Kn,tr)||"":Un[qn](Kn)||"":""},v=(Kn,zn)=>{const qn=parseFloat(Kn+"");if(zn!=="contrast")return"";switch(!0){case qn>=0:return"goUp";case qn<0:return"goDown"}},p=useRequestData(c),m=vue.ref(!1),g=async()=>{var Kn;if(c.dataType==="request")try{m.value=!0;const zn=await p();f.value=((Kn=zn==null?void 0:zn.data)==null?void 0:Kn.data.rows)||[]}catch(zn){console.error(zn)}finally{m.value=!1}};vue.watch(()=>c.data,()=>{(c.dataType==="static"||!vue.unref(f))&&(f.value=c.data)},{immediate:!0,deep:!0});const y=vue.computed(()=>({key:"SEQ",width:c.seqWidth,title:c.seqName,align:"center",fontSize:c.seqFontSize})),b=vue.computed(()=>{const{columns:Kn,isUseSeq:zn}=c;return zn?[vue.unref(y),...Kn]:Kn}),gn=Kn=>{var tr;const{columns:zn=[],rows:qn=[]}=((tr=Kn==null?void 0:Kn.data)==null?void 0:tr.data)??{};c.isUseSeq&&zn.unshift(c.seqName),b.value.forEach((Un,nr)=>{(!c.isUseSeq||nr!==0)&&(Un.title=zn[nr],Un.key=zn[nr])}),f.value=qn},x=useIndicatorData(c,gn),vn=async()=>{try{m.value=!0;const Kn=await x();gn(Kn)}catch(Kn){console.error(Kn)}finally{m.value=!1}},J=async()=>{switch(c.dataType){case"indicator":await vn();break;case"request":await g();break}},j=useEmitEvent(c),{getGlobalModel:Fn,setGlobalModel:Bn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Kn=>{},setGlobalModel:(Kn,zn)=>{}}),w=Kn=>{j("click",()=>{const zn=Fn(c.id);Bn(c.id,{...zn,type:c.type,RECORD:Kn})})()};useOnEvent(c,{refreshData:J,resetRecord:()=>{const Kn=c.id,zn=Fn(Kn);Bn(Kn,{...zn,type:c.type,RECORD:""})}});const{setRequest:Pn}=vue.inject(REQUEST_MODEL,{setRequest:({id:Kn,sortNum:zn,requestFn:qn})=>{}});typeof Pn=="function"&&Pn({id:c.id,requestFn:J,sortNum:c.requestSort}),u({refreshData:J});const Rn=(Kn,zn)=>({flex:Kn.width?"none":"1",width:Kn.width,height:c.itemHeight,lineHeight:c.itemHeight,textAlign:(zn?Kn.cellAlign:Kn.align)||"left",backgroundColor:Kn.cellColor}),Vn=(Kn,zn)=>{let qn=0;const tr=vue.unref(f).map(nr=>nr[zn]),Un=Math.max(...tr);return Un&&(qn=Kn[zn]/Un*100),qn},Wn=Kn=>{const{progressColor:zn="#1890ff",progressGradientColor:qn=""}=Kn;return qn?{background:`linear-gradient(to right, ${zn} 0%, ${qn} 100%)`}:{backgroundColor:zn||"#1890ff"}},Gn=vue.computed(()=>{const Kn=parseFloat(c.seqFontSize)+5;return{width:Kn+10,height:Kn}}),{pageMode:Zn}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),Xn=vue.computed(()=>vue.unref(Zn)!=="design"&&c.isAutoScroll),er=Kn=>{const{seqIconConfig:zn}=c;let qn=zn.find(tr=>tr.key===Kn+1);return qn||(qn=zn.find(tr=>tr.key==="other")),!!(qn!=null&&qn.icon)},Jn=(Kn,zn)=>{const{seqIconConfig:qn}=c;let tr=qn.find(Un=>Un.key===Kn+1);return tr||(tr=qn.find(Un=>Un.key==="other")),zn===1?tr!=null&&tr.icon?useImagePath(tr.icon):"":zn===2?(tr==null?void 0:tr.color)||"#fff":""},ir=Kn=>{const{seqIndexFormatter:zn}=c,qn=Kn+1;return zn?hn(zn,{textData:{index:qn}},{useNewline:!1,useSpace:!0}):qn},or=vue.computed(()=>parseFloat(c.itemWidth)!==100?{height:"100%"}:{}),sr=vue.computed(()=>!c.itemWidth||c.itemWidth==="100%"?"0":c.itemColSpan);return{style:d,formatFn:h,contrastClass:v,dataSource:f,loading:m,myColumns:b,click:w,getColumnStyle:Rn,getPercentage:Vn,getBackgroundColor:Wn,isShowSeqIcon:er,getSeqIconData:Jn,seqIcon4,seqIcon5,seqIcon6,seqIcon7,iconSize:Gn,isScroll:Xn,formatSeq:ir,wrapStyle:or,colSpan:sr,getText:(Kn,zn)=>(Kn.format!=null||Kn.format!=="")&&h(zn[Kn.key],Kn)}}}),List_vue_vue_type_style_index_0_scoped_8233109f_lang="",List_vue_vue_type_style_index_1_lang="",_withScopeId$5=c=>(vue.pushScopeId("data-v-8233109f"),c=c(),vue.popScopeId(),c),_hoisted_1$h={key:0,class:"title"},_hoisted_2$9={key:0,class:"ranking"},_hoisted_3$4=["onClick"],_hoisted_4$3={key:0,class:"ranking"},_hoisted_5$3=_withScopeId$5(()=>vue.createElementVNode("div",{class:"icon"},null,-1)),_hoisted_6$3={class:"sort"},_hoisted_7$3=["src"],_hoisted_8$3={key:1},_hoisted_9$2=["src","width","height"],_hoisted_10$2=["src","width","height"],_hoisted_11$2=["src","width","height"],_hoisted_12$2=["src","width","height"],_hoisted_13$2={key:1},_hoisted_14$2=["title"],_hoisted_15$1={key:2,class:"empty"};function _sfc_render$u(c,u,f,d,h,v){const p=vue.resolveComponent("a-tooltip"),m=vue.resolveComponent("marquee-scroll"),g=vue.resolveComponent("skeleton");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-list",style:vue.normalizeStyle(c.style)},[vue.createVNode(g,{loading:c.loading},{default:vue.withCtx(()=>[c.useTitle?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$h,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.columnCount,y=>(vue.openBlock(),vue.createElementBlock("div",{class:"title-inner",style:vue.normalizeStyle({backgroundColor:c.backgroundColor,height:c.itemHeight,width:`calc(100% / ${c.columnCount} - ${c.itemColSpan} * ${c.columnCount-1}/ ${c.columnCount})`,marginRight:y%c.columnCount!==0?c.itemColSpan:"",padding:`0 ${c.itemPadding}`}),key:y},[c.useRanking?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$9)):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.myColumns,(b,gn)=>(vue.openBlock(),vue.createElementBlock("div",{class:"column",key:b.key||gn,style:vue.normalizeStyle({color:b.titleColor,fontSize:b.fontSize,...c.getColumnStyle(b)})},vue.toDisplayString(b.title),5))),128))],4))),128))])):vue.createCommentVNode("",!0),c.dataSource.length>0?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"ecan-list-content",style:vue.normalizeStyle({paddingTop:c.useTitle?c.itemRowSpan:0,height:c.useTitle?"calc(100% - 40px)":"100%"})},[vue.createVNode(m,{visible:c.isScroll,step:c.scrollSpeed,wrapStyle:{display:"flex",flexDirection:"column",flexWrap:"wrap",...c.wrapStyle}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.dataSource.slice(0,c.sliceCount),(y,b)=>(vue.openBlock(),vue.createElementBlock("div",{class:"item",style:vue.normalizeStyle({backgroundColor:c.backgroundColor,height:c.itemHeight,width:`calc(${c.itemWidth} - ${c.colSpan})`,marginRight:c.colSpan,marginBottom:c.itemRowSpan,padding:`0 ${c.itemPadding}`}),key:y.id||b,onClick:gn=>c.click(y)},[c.useRanking?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$3,[_hoisted_5$3,vue.createElementVNode("div",_hoisted_6$3," Top "+vue.toDisplayString(b+1),1)])):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.myColumns,gn=>{var x;return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["column",c.contrastClass(y[gn.key],gn.format),gn.key==="SEQ"?"seq-column":""]),key:gn.key,style:vue.normalizeStyle({fontSize:gn.fontSize,color:c.contrastClass(y[gn.key],gn.format)===""?gn.color:"",fontWeight:gn.fontWeight,...c.getColumnStyle(gn,"cell")})},[gn.key==="SEQ"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[c.seqIcon?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[(x=c.seqIconConfig)!=null&&x.length?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"icon-box",style:vue.normalizeStyle({width:c.seqIconWidth||"",height:c.seqIconHeight||""})},[c.seqIconWidth&&c.seqIconHeight&&c.isShowSeqIcon(b)?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"custom-seq-icon",src:c.getSeqIconData(b,1),style:vue.normalizeStyle({width:c.seqIconWidth,height:c.seqIconHeight})},null,12,_hoisted_7$3)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:"custom-seq-text",style:vue.normalizeStyle({fontSize:c.seqFontSize,color:c.getSeqIconData(b,2),lineHeight:c.seqIconHeight||"",left:c.seqIconOffsetX,top:c.seqIconOffsetY})},vue.toDisplayString(c.formatSeq(b)),5)],4)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_8$3,[b===0?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"seq-icon",src:c.seqIcon4,width:c.iconSize.width,height:c.iconSize.height},null,8,_hoisted_9$2)):b===1?(vue.openBlock(),vue.createElementBlock("img",{key:1,class:"seq-icon",src:c.seqIcon5,width:c.iconSize.width,height:c.iconSize.height},null,8,_hoisted_10$2)):b===2?(vue.openBlock(),vue.createElementBlock("img",{key:2,class:"seq-icon",src:c.seqIcon6,width:c.iconSize.width,height:c.iconSize.height},null,8,_hoisted_11$2)):b>=3?(vue.openBlock(),vue.createElementBlock("img",{key:3,class:"seq-icon",src:c.seqIcon7,width:c.iconSize.width,height:c.iconSize.height},null,8,_hoisted_12$2)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:"seq-icon seq-text",style:vue.normalizeStyle({fontSize:c.seqFontSize})},vue.toDisplayString(c.formatSeq(b)),5)]))],64)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_13$2,vue.toDisplayString(c.formatSeq(b)),1))],64)):gn.format==="progress"?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"progress-cell",style:vue.normalizeStyle({height:c.itemHeight})},[vue.createElementVNode("div",{class:"progress",style:vue.normalizeStyle({height:gn.progressWidth||"14px",backgroundColor:gn.progressBaseColor})},[vue.createVNode(p,{title:y[gn.key],overlayClassName:"ecan-list-tooltip",color:"#fff"},{default:vue.withCtx(()=>[vue.createElementVNode("div",{style:vue.normalizeStyle({borderRadius:"10px",height:gn.progressWidth||"14px",width:`${c.getPercentage(y,gn.key)}%`,...c.getBackgroundColor(gn)})},null,4)]),_:2},1032,["title"])],4)],4)):(vue.openBlock(),vue.createElementBlock("span",{key:2,title:c.getText(gn,y)},vue.toDisplayString(c.getText(gn,y)),9,_hoisted_14$2))],6)}),128))],12,_hoisted_3$4))),128))]),_:1},8,["visible","step","wrapStyle"])],4)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_15$1," 暂无数据 "))]),_:1},8,["loading"]),vue.renderSlot(c.$slots,"toolbox",{},void 0,!0)],4)}const List=_export_sfc$1(_sfc_main$q,[["render",_sfc_render$u],["__scopeId","data-v-8233109f"]]),EcanList=withInstall$1(List),proportionProps={...props$1,name:"占比图",keyName:"占比图",type:"ecanProportion",strokeType:"circle",width:"200px",height:"200px",strokeColor:"#4091f7",strokeLinecap:"round",trailColor:"#f5f5f5",data:{percent:.3},text:"{percent}{%}",fontSize:"26px",color:"#4091f7",variableColor:"#4091f7",strokeWidth:6,fontWeight:400,strokeTextWidth:"100%",lineHeight:"26px",decimalFormat:!0,variableDefaultValue:"0",strokeTextShow:!0,gradientShow:!0,gradientColor:"",gradientOffset:1,graphicConfig:{},lineTextPosition:"right"},proportionComponentProps=transformToComponentProps(proportionProps),proportionEvents=["refreshData","click"],_sfc_main$p=vue.defineComponent({name:"EcanProportion",components:{AProgress:antDesignVue.Progress,Skeleton},props:{...proportionComponentProps},setup(c,{expose:u}){const{setLoadedData:f,loadedData:d}=vue.inject(LOADED_DATA,{setLoadedData:(Zn,Xn)=>{},loadedData:{}}),h=vue.ref(!1),{pageMode:v}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),p=usePickComponentStyle(c),m=vue.computed(()=>{const Zn=c.width;return parseFloat(Zn)}),g=vue.ref({});vue.watch(()=>c.data,()=>{(c.dataType==="static"||vue.unref(v)==="design")&&(g.value=c.data)},{immediate:!0,deep:!0});const y=vue.computed(()=>{const Zn=vue.unref(g),Xn=+c.variableDefaultValue;if(Zn==null)return isNaN(Xn)?0:Xn;const er=c.text.match(/\{(.+?)\}/g)||[];let Jn;const ir=new Set(Object.keys(Zn));for(let or=0;or<er.length;or++){const sr=er[or],Hn=sr.slice(1,sr.length-1);if(ir.has(Hn)){Jn=Zn[Hn];break}}return typeof Jn=="number"?Jn=Jn*100:typeof Jn=="string"?isNaN(+Jn)?isNaN(parseFloat(Jn))||(Jn=parseFloat(Jn)):Jn=+Jn*100:isNaN(Xn)?Jn=0:Jn=Xn*100,c.decimalFormat&&(Jn=+Jn.toFixed(2)),Jn}),b=vue.computed(()=>{var ir;let Zn=c.text;if(Zn==="")return vue.unref(y);const Xn=c.variableDefaultValue,er=vue.unref(g),Jn=Zn.match(/\{(.+?)\}/g)||[];for(let or=0;or<Jn.length;or++){const sr=Jn[or];let Hn=sr.slice(1,sr.length-1);const Kn=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,zn=sr.match(Kn);for(let tr=0;tr<(zn==null?void 0:zn.length);tr++){const Un=(ir=zn[tr])==null?void 0:ir.trim();er[Un]!=null&&(Hn=Hn.replace(Un,er[Un]))}let qn=Hn;try{(/\(.*\)/g.test(Hn)||/[+/\\*]/g.test(Hn))&&(qn=pn(Hn))}catch(tr){console.error(tr)}typeof+qn=="number"&&!isNaN(+qn)?(qn=+qn*100,c.decimalFormat&&(qn=qn.toFixed(2))):typeof qn!="string"&&(qn=Xn),qn==="percent"&&(qn=Xn),Zn=Zn.replace(sr,`<span style="color: ${c.variableColor};">${qn+""}</span>`)}return Zn=Zn==null?void 0:Zn.replace(/\n|\\n/g,"<br/>"),vue.unref(h)?"NaN":Zn}),gn=useRequestData(c),x=vue.ref(!1),vn=async()=>{var Zn,Xn,er,Jn,ir;if(c.dataType==="request")try{x.value=!0;const or=await gn();g.value=((Zn=or==null?void 0:or.data)==null?void 0:Zn.data)||{},(er=(Xn=or==null?void 0:or.data)==null?void 0:Xn.data)!=null&&er.rowsToData&&(g.value=((ir=(Jn=or==null?void 0:or.data)==null?void 0:Jn.data)==null?void 0:ir.rowsToData)||{})}catch(or){console.error(or)}finally{x.value=!1}},J=(Zn={})=>{g.value=Zn},j=Zn=>{var er;const{data:Xn}=(Zn==null?void 0:Zn.data)||{};if(Xn){h.value=!1;const{columns:Jn=[],rows:ir=[]}=((er=Zn==null?void 0:Zn.data)==null?void 0:er.data)??{};let or={};if(Jn.length>0){const sr=Jn.find(Hn=>!!Hn);sr&&(or={percent:ir[sr]})}J(or)}else h.value=!0,J({percent:"NaN"})},Fn=useIndicatorData(c,j),Bn=async()=>{try{x.value=!0;const Zn=await Fn();j(Zn)}catch(Zn){console.error(Zn)}finally{x.value=!1,f(c.id,!0)}},w=async()=>{switch(c.dataType){case"indicator":await Bn();break;case"request":await vn();break}},re=vue.ref(!1);vue.watch(d,Zn=>{if(c.dataType==="indicator"){const Xn=getFixedValueDatas(c.graphicConfig);Xn!=null&&Xn.length&&(!vue.unref(re)&&canRequestIndicator(c.graphicConfig,Zn)?(re.value=!0,w()):canRequestIndicator(c.graphicConfig,Zn)||(re.value=!1))}},{deep:!0}),useOnEvent(c,{refreshData:w}),u({refreshData:w});const Rn=useEmitEvent(c)("click",()=>{}),{setRequest:Vn}=vue.inject(REQUEST_MODEL,{setRequest:({id:Zn,sortNum:Xn,requestFn:er})=>{}});typeof Vn=="function"&&Vn({id:c.id,requestFn:w,sortNum:c.requestSort});const Wn=vue.computed(()=>{const{gradientShow:Zn,gradientColor:Xn,gradientOffset:er,strokeColor:Jn}=c;let ir=Jn;return Zn&&(c.strokeType==="line"?ir=`linear-gradient(90deg, ${Jn||"transparent"}, ${Xn||"transparent"} ${er*100}%)`:ir={"0%":Jn||"transparent",[`${er*100}%`]:Xn||"transparent"}),ir}),Gn=vue.computed(()=>{let Zn={};if(c.lineTextPosition==="shadow"){const Xn=parseFloat(c.height)/2-c.strokeWidth/2-parseFloat(c.fontSize)*1.5715+"px",er=vue.unref(y)-8;Zn={position:"absolute",left:er>0?er+"%":"0",top:Xn}}return Zn});return{style:p,myWidth:m,text:b,myValue:y,loading:x,click:Rn,customStrokeColor:Wn,shaDowStyle:Gn}}}),Proportion_vue_vue_type_style_index_0_scoped_def32a64_lang="",_hoisted_1$g={key:0,class:"progress",style:{"line-height":"1.5715"}},_hoisted_2$8=["innerHTML"],_hoisted_3$3=["innerHTML"];function _sfc_render$t(c,u,f,d,h,v){const p=vue.resolveComponent("skeleton"),m=vue.resolveComponent("a-progress");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-proportion",style:vue.normalizeStyle(c.style)},[c.strokeType==="line"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$g,[vue.createElementVNode("div",{class:"progress-main",style:vue.normalizeStyle({backgroundColor:c.trailColor||"transparent",height:c.strokeWidth+"px",flex:c.lineTextPosition==="right"?1:"",marginRight:c.strokeTextShow&&c.lineTextPosition==="right"?"10px":""})},[vue.createElementVNode("div",{class:"progress-active",style:vue.normalizeStyle({background:c.customStrokeColor,width:c.myValue+"%"})},null,4)],4),c.strokeTextShow?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"format",style:vue.normalizeStyle({fontSize:c.fontSize,color:c.color,fontWeight:c.fontWeight,...c.shaDowStyle})},[vue.createElementVNode("span",{style:{"white-space":"nowrap"},innerHTML:c.text},null,8,_hoisted_2$8)],4)):vue.createCommentVNode("",!0)])):(vue.openBlock(),vue.createBlock(m,{key:1,class:vue.normalizeClass(["progress",c.gradientShow?"gradient":""]),percent:c.myValue,width:c.myWidth,type:c.strokeType,strokeColor:c.customStrokeColor,strokeLinecap:c.strokeLinecap,trailColor:c.trailColor||"transparent",strokeWidth:c.strokeWidth,showInfo:c.strokeTextShow,gapDegree:c.strokeType==="dashboard"?75:0,onClick:c.click},{format:vue.withCtx(()=>[c.loading?(vue.openBlock(),vue.createBlock(p,{key:0,loading:c.loading},null,8,["loading"])):c.strokeTextShow?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"format",style:vue.normalizeStyle({width:c.strokeTextWidth,fontSize:c.fontSize,color:c.color,fontWeight:c.fontWeight,lineHeight:c.lineHeight})},[vue.createElementVNode("span",{style:{"white-space":"nowrap"},innerHTML:c.text},null,8,_hoisted_3$3)],4)):vue.createCommentVNode("",!0)]),_:1},8,["class","percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","showInfo","gapDegree","onClick"])),vue.renderSlot(c.$slots,"toolbox",{},void 0,!0)],4)}const Proportion=_export_sfc$1(_sfc_main$p,[["render",_sfc_render$t],["__scopeId","data-v-def32a64"]]),EcanProportion=withInstall$1(Proportion),counterProps={...props$1,name:"计数器",type:"ecanCounter",keyName:"计数器",width:"400px",height:"80px",zIndex:0,digits:5,counterBackgroundImage:"",color:"#333",unitInterval:15,fontSize:"20px",fontWeight:700,fontStyle:"normal",unitWidth:"65px",unitHeight:"72px",data:"",graphicConfig:{}},counterComponentProps=transformToComponentProps(counterProps),counterEvents=["refreshData","click","resetRecord"],_sfc_main$o=vue.defineComponent({name:"EcanCounter",components:{Skeleton},props:{...counterComponentProps},setup(c,{expose:u}){const f=vue.ref(),d=usePickComponentStyle(c),h=vue.computed(()=>({width:c.unitWidth,height:c.unitHeight,marginRight:c.unitInterval+"px"})),v=vue.computed(()=>({color:c.color,fontSize:c.fontSize,fontWeight:c.fontWeight,fontStyle:c.fontStyle}));vue.watch(()=>[c.data,c.dataType],([Pn,Rn])=>{Rn==="static"&&(f.value=Pn)},{immediate:!0});const{getGlobalModel:p,setGlobalModel:m}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Pn=>{},setGlobalModel:(Pn,Rn)=>{}}),y=useEmitEvent(c)("click",()=>{const Pn=p(c.id);m(c.id,{...Pn,type:c.type,value:vue.unref(f)})}),b=()=>{const Pn=c.id,Rn=p(Pn);m(Pn,{...Rn,type:c.type,value:""})},gn=useRequestData(c),x=vue.ref(!1),vn=async()=>{var Pn,Rn;try{x.value=!0;const Vn=await gn();f.value=((Rn=(Pn=Vn==null?void 0:Vn.data)==null?void 0:Pn.data)==null?void 0:Rn.value)||""}catch(Vn){console.error(Vn)}finally{x.value=!1}},J=Pn=>{var Wn;const{data:Rn}=(Pn==null?void 0:Pn.data)||{};let Vn="";if(Rn){const{columns:Gn=[],rows:Zn=[]}=((Wn=Pn==null?void 0:Pn.data)==null?void 0:Wn.data)??{};if(Gn.length>0){const Xn=Gn.find(er=>!!er);Xn&&(Vn=Zn[Xn]||"")}}f.value=String(Vn)},j=useIndicatorData(c,J),Fn=async()=>{try{x.value=!0;const Pn=await j();J(Pn)}catch(Pn){console.error(Pn)}finally{x.value=!1}},Bn=async()=>{switch(c.dataType){case"indicator":await Fn();break;case"request":await vn();break}},w=vue.computed(()=>{const Pn=[],{digits:Rn}=c,Vn=vue.unref(f)?vue.unref(f).split("").reverse().join(""):"";for(let Wn=0;Wn<Rn;Wn++)Vn&&Vn[Wn]?Pn.push(Vn[Wn]):Pn.push("0");return Pn.reverse()});useOnEvent(c,{refreshData:Bn,resetRecord:b});const{setRequest:re}=vue.inject(REQUEST_MODEL,{setRequest:({id:Pn,sortNum:Rn,requestFn:Vn})=>{}});return typeof re=="function"&&re({id:c.id,requestFn:Bn,sortNum:c.requestSort}),u({refreshData:Bn}),{style:d,valueList:w,digitsStyle:h,fontStyle:v,loading:x,useImagePath,click:y}}}),Counter_vue_vue_type_style_index_0_scoped_2e9eb036_lang="",_hoisted_1$f=["src"];function _sfc_render$s(c,u,f,d,h,v){var m;const p=vue.resolveComponent("skeleton");return c.loading?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:vue.normalizeStyle(c.style)},[vue.createVNode(p,{loading:c.loading},null,8,["loading"])],4)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"ecan-counter",style:vue.normalizeStyle(c.style),onClick:u[0]||(u[0]=(...g)=>c.click&&c.click(...g))},[(m=c.valueList)!=null&&m.length?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:0},vue.renderList(c.valueList,(g,y)=>(vue.openBlock(),vue.createElementBlock("div",{class:"digits-item",style:vue.normalizeStyle(c.digitsStyle),key:y},[c.counterBackgroundImage?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"item-image",src:c.useImagePath(c.counterBackgroundImage)},null,8,_hoisted_1$f)):vue.createCommentVNode("",!0),vue.createElementVNode("div",{class:"item-text",style:vue.normalizeStyle(c.fontStyle)},vue.toDisplayString(g),5)],4))),128)):vue.createCommentVNode("",!0),vue.renderSlot(c.$slots,"toolbox",{},void 0,!0)],4))}const Counter=_export_sfc$1(_sfc_main$o,[["render",_sfc_render$s],["__scopeId","data-v-2e9eb036"]]),EcanCounter=withInstall$1(Counter),rectangleProps={...props$1,name:"矩形",keyName:"矩形",type:"ecanRectangle",width:"100px",height:"100px",zIndex:0,borderColor:"#eee",borderRadius:"5",borderStyle:"solid",borderWidth:"2px",backgroundColor:"#ffffff",textShadow:"",gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",isTransparent:!1},rectangleComponentProps=transformToComponentProps(rectangleProps),rectangleEvents=[],_sfc_main$n=vue.defineComponent({name:"EcanRectangle",props:{...rectangleComponentProps},setup(c){const u=usePickComponentStyle(c,["background"]),f=vue.computed(()=>{const{isTransparent:p,gradientShow:m,gradientColor:g,gradientOffset:y,gradientAngle:b,backgroundColor:gn}=c;if(m){let x=g;return p&&(x="transparent"),x?{background:`linear-gradient(${b}, ${gn}, ${x} ${y*100}%)`}:{}}else return{}}),{theme:d}=vue.inject(GLOBAL_CONFIG,{theme:"light"}),h=vue.computed(()=>({width:"100%",height:"100%"})),v=vue.computed(()=>{const{borderRadius:p}=c,m=[],g={};if(p){const y=p.split(",");for(const b of y)(+b||+b==0)&&m.push(+b+"px")}return m!=null&&m.length&&(g.borderRadius=m.join(" ")),g});return{style:u,gradientStyle:f,borderStyle:h,theme:d,borderRadiusStyle:v}}}),Rectangle_vue_vue_type_style_index_0_scoped_c6c46783_lang="";function _sfc_render$r(c,u,f,d,h,v){return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-rectangle",style:vue.normalizeStyle({...c.style,...c.gradientStyle,...c.borderRadiusStyle})},[vue.createElementVNode("div",{class:"no-title",style:vue.normalizeStyle(c.borderStyle)},null,4)],4)}const Rectangle=_export_sfc$1(_sfc_main$n,[["render",_sfc_render$r],["__scopeId","data-v-c6c46783"]]),EcanRectangle=withInstall$1(Rectangle),inputProps={...props$1,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px"},inputComponentProps=transformToComponentProps(inputProps),inputEvents=["inputChange","inputBlur"],_sfc_main$m=vue.defineComponent({name:"EcanInput",components:{AInput:antDesignVue.Input},props:{...inputComponentProps},setup(c){const u=usePickComponentStyle(c),f=vue.ref(""),{getGlobalModel:d,setGlobalModel:h,getRecordValueByKeyName:v}=vue.inject(GLOBAL_MODEL,{getGlobalModel:b=>{},setGlobalModel:(b,gn)=>{},getRecordValueByKeyName:b=>{}});vue.watch(()=>c.value,b=>{f.value=v(b)},{immediate:!0}),h(c.id,{type:c.type,value:f});const p=()=>{const b=d(c.id);h(c.id,{...b,RECORD:f})},m=useEmitEvent(c),g=lodashEs.debounce(m("inputChange",()=>{p()}),300),y=m("inputBlur",()=>{});return{style:u,myValue:f,inputBlur:y,inputChange:g}}}),Input_vue_vue_type_style_index_0_lang="";function _sfc_render$q(c,u,f,d,h,v){const p=vue.resolveComponent("a-input");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-input",style:vue.normalizeStyle(c.style)},[vue.createVNode(p,{class:"input",value:c.myValue,"onUpdate:value":u[0]||(u[0]=m=>c.myValue=m),placeholder:c.placeholder,onChange:c.inputChange,onBlur:c.inputBlur,style:vue.normalizeStyle({fontSize:c.optionFontSize})},null,8,["value","placeholder","onChange","onBlur","style"])],4)}const Input=_export_sfc$1(_sfc_main$m,[["render",_sfc_render$q]]),EcanInput=withInstall$1(Input),datePickerProps$1={...props$1,height:"33px",width:"130px",id:"",left:"0px",top:"0px",name:"日期选择器",keyName:"日期选择器",rotate:"",type:"ecanDatePicker",value:"",picker:"date",format:"YYYY-MM-DD",showTime:!1,useCurrentTime:!0,operate:null,optionFontSize:"14px",limitStartTime:"",limitEndTime:"",data:""},datePickerComponentProps=transformToComponentProps(datePickerProps$1),datePickerEvents=["dateChange","refreshData"],__default__$3=vue.defineComponent({name:"EcanDatePicker",props:{...datePickerComponentProps},components:{ADatePicker:antDesignVue.DatePicker,AInput:antDesignVue.Input,CalendarOutlined:CalendarOutlined$1,CloseCircleFilled:CloseCircleFilled$1},setup(c){const u=vue.inject("isMobile",!1),f=vue.inject("scaleValue",{widthScale:"1",heightScale:"1"}),d=usePickComponentStyle(c),h=()=>document.getElementById("ProviderConfig")||document.body,v=vue.ref(null),p=vue.ref(null),m=vue.ref(""),g=vue.ref(!1),y=vue.ref([]),b=vue.ref(""),gn=vue.computed(()=>{let Un=["year","month","day"];switch(c.picker){case"year":Un=["year"];break;case"month":Un=["year","month"];break}return Un}),{setGlobalModel:x,getGlobalModel:vn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Un=>{},setGlobalModel:(Un,nr)=>{}}),{pageId:J}=vue.inject("templateOperate",{pageId:""})||{};x(c.id,{type:c.type,format:c.format,useCurrentTime:c.useCurrentTime,value:v,RECORD:v});const{getGlobalVar:j}=vue.inject(GLOBAL_CONFIG,{getGlobalVar:Un=>{}}),Fn=useEmitEvent(c),Bn=Un=>{const nr=c.id,cr=vn(nr);x(nr,{...cr,value:Un||"",RECORD:Un||""})},w=Fn("refreshData",Un=>{Bn(Un)});vue.watch(()=>[c.value,c.useCurrentTime,c.operate,b.value],([Un,nr,cr,Qn])=>{let fr=null,vr=Un;if(c.dataType==="request"&&(vr=Qn),vr){const Yn=vr.match(/\{(.+?)\}/g);if(Yn){const ar={};for(let ur of Yn){const mr=ur.slice(1,-1).trim(),dr=vn(mr);if(dr)ar[mr]=dr.value.format(dr.format);else if(mr.includes("$page")){const gr=mr.replace(/[$.]/g,""),lr=mr.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");vr=vr.replace(new RegExp(lr,"g"),gr),ar[gr]=j(mr)}}fr=dayjs(hn(vr,{textData:ar}))}else fr=dayjs(hn(vr))}else nr&&(fr=dayjs());if(cr&&fr){const{type:Yn,value:ar,mode:ur}=cr;switch(Yn){case"add":fr=fr.add(ar,ur);break;case"minus":fr=fr.subtract(ar,ur)}}v.value=fr,p.value=fr,vue.unref(u)&&Jn(fr),w(fr)},{deep:!0,immediate:!0});const re=Fn("dateChange",()=>{const Un=getNewValueFromUrlParams(J,c.keyName,"value");Un&&(v.value=dayjs(Un)),Bn(vue.unref(v))}),Pn=()=>{vue.unref(v)&&re()};useOnEvent(c,{dateChange:re});const Rn=vue.ref({}),Vn=vue.ref({}),Wn=Un=>{Un?setTimeout(()=>{Vn.value=vue.unref(Rn)},300):Vn.value={}};vue.onMounted(()=>{setTimeout(()=>{const Un=document.querySelector(`#ecan-date-picker-${c.id}`);if(Un){const nr=Un.getBoundingClientRect(),cr=parseFloat(vue.unref(f).widthScale)*280;document.body.clientWidth-nr.left<cr&&(Rn.value.marginLeft=-1*(cr-nr.width)+"px")}},0)});const Gn=()=>{Jn(vue.unref(v)),g.value=!0},Zn=()=>{Jn(),v.value=null},Xn=()=>{const Un=dayjs(vue.unref(y).join("-"));v.value=Un,Jn(Un),g.value=!1,Pn()},er=()=>{v.value=dayjs(),Jn(),m.value=dayjs().format(c.format),g.value=!1};function Jn(Un){y.value=ir(Un||dayjs()),m.value=(Un==null?void 0:Un.format(c.format))||""}function ir(Un){const nr=[];for(const cr of vue.unref(gn))cr==="day"?nr.push(Un.date()):nr.push(Un[cr]()+(cr==="month"?1:0));return nr}const or=Un=>{let nr=!1,{limitStartTime:cr,limitEndTime:Qn}=c,fr=c.picker;const vr={current:vue.unref(p)};return c.picker==="date"&&(fr="day"),cr=hn(cr,{textData:vr}),Qn=hn(Qn,{textData:vr}),cr&&Qn?nr=!(dayjs(cr).isBefore(Un,fr)&&Un.isBefore(dayjs(Qn),fr)):cr?nr=Un.isBefore(dayjs(cr),fr):Qn&&(nr=dayjs(Qn).isBefore(Un,fr)),nr},sr=(Un={})=>{var nr;if((nr=Object.keys(Un))!=null&&nr.length)for(const cr in Un)b.value=Un[cr]},Hn=useRequestData(c),Kn=vue.ref(!1),zn=async()=>{var Un,nr,cr;try{Kn.value=!0;const Qn=await Hn();(Un=Qn==null?void 0:Qn.data)!=null&&Un.data.rowsToData?sr(((nr=Qn==null?void 0:Qn.data)==null?void 0:nr.data.rowsToData)||{}):sr(((cr=Qn==null?void 0:Qn.data)==null?void 0:cr.data)||{})}catch(Qn){console.error(Qn)}finally{Kn.value=!1}},qn=async()=>{switch(c.dataType){case"request":{await zn();break}}},{setRequest:tr}=vue.inject(REQUEST_MODEL,{setRequest:({id:Un,sortNum:nr,requestFn:cr})=>{}});return typeof tr=="function"&&tr({id:c.id,requestFn:qn,sortNum:c.requestSort}),{style:d,getPopupContainer:h,myValue:v,locale,change:Pn,scaleValue:f,popupStyle:Rn,customStyle:Vn,openChange:Wn,isMobile:u,mobileDateStr:m,handleClearDate:Zn,openDatePick:Gn,datePickVisible:g,columnsType:gn,mobileDate:y,onConfirmDate:Xn,onCancelDate:er,disabledDate:or}}}),__injectCSSVars__$3=()=>{vue.useCssVars(c=>({"2cf259c6":c.optionFontSize}))},__setup__$3=__default__$3.setup;__default__$3.setup=__setup__$3?(c,u)=>(__injectCSSVars__$3(),__setup__$3(c,u)):__injectCSSVars__$3;const DatePicker_vue_vue_type_style_index_0_scoped_96f5bc53_lang="",DatePicker_vue_vue_type_style_index_1_lang="",_hoisted_1$e=["id"];function _sfc_render$p(c,u,f,d,h,v){const p=vue.resolveComponent("calendar-outlined"),m=vue.resolveComponent("close-circle-filled"),g=vue.resolveComponent("a-input"),y=vue.resolveComponent("van-date-picker"),b=vue.resolveComponent("van-popup"),gn=vue.resolveComponent("a-date-picker");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-date-picker",style:vue.normalizeStyle(c.style),id:"ecan-date-picker-"+c.id},[c.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(g,{value:c.mobileDateStr,placeholder:"请选择日期",readonly:"",onClick:c.openDatePick},vue.createSlots({prefix:vue.withCtx(()=>[vue.createVNode(p,{style:{color:"#b0b0b0","padding-right":"5px"}})]),_:2},[c.mobileDateStr?{name:"suffix",fn:vue.withCtx(()=>[vue.createVNode(m,{style:{color:"#b0b0b0"},onClick:vue.withModifiers(c.handleClearDate,["stop"])},null,8,["onClick"])])}:void 0]),1032,["value","onClick"]),vue.createVNode(b,{show:c.datePickVisible,"onUpdate:show":u[1]||(u[1]=x=>c.datePickVisible=x),style:{"z-index":"999999"},"overlay-style":{background:"rgba(0, 0, 0, .3)",zIndex:999999},position:"bottom",teleport:"#app"},{default:vue.withCtx(()=>[c.datePickVisible?(vue.openBlock(),vue.createBlock(y,{key:0,modelValue:c.mobileDate,"onUpdate:modelValue":u[0]||(u[0]=x=>c.mobileDate=x),"columns-type":c.columnsType,"cancel-button-text":"此刻",onConfirm:c.onConfirmDate,onCancel:c.onCancelDate},null,8,["modelValue","columns-type","onConfirm","onCancel"])):vue.createCommentVNode("",!0)]),_:1},8,["show","overlay-style"])],64)):(vue.openBlock(),vue.createBlock(gn,{key:1,class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:c.myValue,"onUpdate:value":u[2]||(u[2]=x=>c.myValue=x),format:c.format,picker:c.picker,showTime:c.showTime,locale:c.locale,onChange:c.change,onOpenChange:c.openChange,"disabled-date":c.disabledDate,getPopupContainer:c.getPopupContainer,popupStyle:{fontSize:c.optionFontSize,transform:`scale(${c.scaleValue.widthScale}, ${c.scaleValue.heightScale})`}},null,8,["value","format","picker","showTime","locale","onChange","onOpenChange","disabled-date","getPopupContainer","popupStyle"]))],12,_hoisted_1$e)}const DatePicker$1=_export_sfc$1(__default__$3,[["render",_sfc_render$p],["__scopeId","data-v-96f5bc53"]]),EcanDatePicker=withInstall$1(DatePicker$1),rangePickerProps={...props$1,name:"日期范围选择器",keyName:"日期范围选择器",type:"ecanRangePicker",width:"250px",height:"35px",picker:"date",format:"YYYY-MM-DD",startTime:"",endTime:"",useCurrentTime:!0,interval:1,intervalUnit:"year",operate:null,limitStartTime:"",limitEndTime:"",associated:"",optionFontSize:"14px",isAllowSpanYear:!0,limitInterval:null},rangePickerComponentProps=transformToComponentProps(rangePickerProps),rangePickerEvents=["dateChange"];var quarterOfYear$1={exports:{}};(function(c,u){(function(f,d){c.exports=d()})(commonjsGlobal,function(){var f="month",d="quarter";return function(h,v){var p=v.prototype;p.quarter=function(y){return this.$utils().u(y)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(y-1))};var m=p.add;p.add=function(y,b){return y=Number(y),this.$utils().p(b)===d?this.add(3*y,f):m.bind(this)(y,b)};var g=p.startOf;p.startOf=function(y,b){var gn=this.$utils(),x=!!gn.u(b)||b;if(gn.p(y)===d){var vn=this.quarter()-1;return x?this.month(3*vn).startOf(f).startOf("day"):this.month(3*vn+2).endOf(f).endOf("day")}return g.bind(this)(y,b)}}})})(quarterOfYear$1);var quarterOfYearExports=quarterOfYear$1.exports;const quarterOfYear=getDefaultExportFromCjs(quarterOfYearExports);dayjs.extend(quarterOfYear);const __default__$2=vue.defineComponent({name:"EcanRangePicker",components:{ARangePicker:antDesignVue.RangePicker,AInput:antDesignVue.Input,CalendarOutlined:CalendarOutlined$1,CloseCircleFilled:CloseCircleFilled$1},props:{...rangePickerComponentProps},setup(c){const u=vue.inject("isMobile",!1),{pageMode:f,getGlobalVar:d}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",getGlobalVar:dr=>{}}),{getGlobalModel:h,setGlobalModel:v}=vue.inject(GLOBAL_MODEL,{getGlobalModel:dr=>{},setGlobalModel:(dr,gr)=>{}}),p=usePickComponentStyle(c),m=()=>document.getElementById("ProviderConfig")||document.body,g=vue.ref([null,null]),y=vue.ref(!1),b=vue.ref([]),gn=vue.ref([]),x=vue.ref(),vn=vue.ref(),J=vue.ref(),j=vue.ref(),Fn=vue.ref(0),Bn=vue.ref({}),w=vue.ref(""),re=vue.computed(()=>{let dr=["year","month","day"];switch(c.picker){case"year":dr=["year"];break;case"month":dr=["year","month"];break}return dr}),Pn=dr=>{const gr=dr?String(dr).match(/\{(.+?)\}/g):"";let lr;if(gr){const hr={};for(let xr of gr){const Sr=xr.slice(1,-1).trim(),yr=h(Sr);if(yr)hr[Sr]=yr.value.format(yr.format);else if(Sr.includes("$page")){const pr=Sr.replace(/[$.]/g,""),br=Sr.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");dr=dr.replace(new RegExp(br,"g"),pr),hr[pr]=d(Sr)}}lr=dayjs(hn(dr,{textData:hr}))}else lr=dayjs(hn(dr));return lr};vue.watch(()=>[c.startTime,c.endTime,c.useCurrentTime,c.interval,c.intervalUnit,c.operate],([dr,gr,lr,hr,xr,Sr])=>{if(vue.unref(g).every(yr=>!yr)||vue.unref(f)==="design"){let yr=null,pr=null;if(lr&&(yr=dayjs().subtract(hr,xr),pr=dayjs()),dr&&(yr=Pn(dr)),gr&&(pr=Pn(gr)),Sr){const{type:br,value:kr,mode:wr}=Sr;switch(br){case"add":yr=yr&&yr.add(kr,wr),pr=pr&&pr.add(kr,wr);break;case"minus":yr=yr&&yr.subtract(kr,wr),pr=pr&&pr.subtract(kr,wr)}}g.value=[yr,pr],vue.unref(u)&&ur()}},{immediate:!0});let Rn=vue.unref(g)[0],Vn=vue.unref(g)[1],Wn="";const Gn=(dr,gr,lr)=>{Array.isArray(dr)?(Rn=dr[0],Vn=dr[1],Wn=lr.range):(Rn=null,Vn=null)},Zn=dr=>{let gr=!1,{limitStartTime:lr,limitEndTime:hr}=c;const xr={startTime:`${Rn||""}`,endTime:`${Vn||""}`};if(lr=hn(lr,{codeData:xr}),hr=hn(hr,{codeData:xr}),lr&&hr?gr=!(dayjs(lr)<dr&&dr<dayjs(hr)):lr?gr=dayjs(lr)>dr:hr&&(gr=dayjs(hr)<dr),!c.isAllowSpanYear&&Wn){let Sr=null;if(Wn==="start"?Sr=Rn:Wn==="end"&&(Sr=Vn),Sr){const yr=Sr.startOf("year"),pr=Sr.endOf("year");gr=!(yr<=dr&&dr<pr)}}if(!gr){const{value:Sr=0,mode:yr="year"}=c.limitInterval||{};Sr&&(Wn==="start"?gr=Rn.add(Sr,yr)<dr:Wn==="end"&&(gr=Vn.subtract(Sr,yr)>dr))}return gr},Xn=vue.computed(()=>Array.isArray(vue.unref(g))?vue.unref(g)[0]:null),er=vue.computed(()=>Array.isArray(vue.unref(g))?vue.unref(g)[1]:null);vue.watch(()=>[Xn.value,er.value],([dr,gr])=>{dr&&gr&&(w.value=`${dayjs(dr).format(c.format)} 至 ${dayjs(gr).format(c.format)}`)});const{pageId:Jn}=vue.inject("templateOperate",{pageId:""})||{};v(c.id,{type:c.type,format:c.format,startTime:Xn,endTime:er,interval:c.interval,intervalUnit:c.intervalUnit,useCurrentTime:c.useCurrentTime,operate:c.operate});const ir=useEmitEvent(c);let or=!1;const sr=ir("dateChange",()=>{var lr;const dr=getNewValueFromUrlParams(Jn,c.keyName,"startTime"),gr=getNewValueFromUrlParams(Jn,c.keyName,"endTime");(lr=g.value)!=null&&lr.length||(g.value=[null,null]),dr&&(g.value[0]=dayjs(dr)),gr&&(g.value[1]=dayjs(gr))}),Hn=dr=>{const gr=vue.unref(g),lr=gr&&gr[0]&&gr[1];dr===!1&&or===!0&&lr&&(sr(),or=!1),dr||(Wn="")},Kn=()=>{or=!0},zn=()=>{const{associated:dr}=c;if(dr){const gr=h(dr)||{};if(gr){const{value:lr}=gr;if(lr)switch(vue.unref(lr)){case"day":g.value=[dayjs().startOf("day"),dayjs().endOf("day")];break;case"month":g.value=[dayjs().startOf("month"),dayjs().endOf("month")];break;case"monthStartToToday":g.value=[dayjs().startOf("month"),dayjs().endOf("day")];break;case"quarter":g.value=[dayjs().startOf("quarter"),dayjs().endOf("quarter")];break;case"year":g.value=[dayjs().startOf("year"),dayjs().endOf("year")];break;case"yesterday":g.value=[dayjs().startOf("day").subtract(1,"days"),dayjs().endOf("day").subtract(1,"days")];break;case"week":g.value=[dayjs().startOf("week"),dayjs().endOf("week")];break}}}sr()},qn=()=>{Yn(vue.unref(g)),y.value=!0},tr=()=>{Yn(),w.value="",g.value=[null,null]},Un=()=>{g.value=[dayjs(vue.unref(b).join("-")),dayjs(vue.unref(gn).join("-"))],Yn(vue.unref(g)),ar(),fr(),y.value=!1,sr()},nr=()=>{vr(),y.value=!1},cr=()=>{var dr,gr;(dr=vue.unref(b))!=null&&dr.length&&c.format&&(J.value=new Date(vue.unref(b).join("-")),(gr=vue.unref(gn))!=null&&gr.length&&dayjs(vue.unref(gn).join("-")).isBefore(dayjs(vue.unref(b).join("-")))&&(gn.value=lodashEs.cloneDeep(vue.unref(b))))},Qn=()=>{var dr,gr;(dr=vue.unref(gn))!=null&&dr.length&&c.format&&(vn.value=new Date(vue.unref(gn).join("-")),(gr=vue.unref(b))!=null&&gr.length&&dayjs(vue.unref(b).join("-")).isAfter(dayjs(vue.unref(gn).join("-")))&&(b.value=lodashEs.cloneDeep(vue.unref(gn))))};function fr(){Bn.value={startMinDate:lodashEs.cloneDeep(vue.unref(x)),startMaxDate:lodashEs.cloneDeep(vue.unref(vn)),endMinDate:lodashEs.cloneDeep(vue.unref(J)),endMaxDate:lodashEs.cloneDeep(vue.unref(j))}}function vr(){x.value=vue.unref(Bn).startMinDate,vn.value=vue.unref(Bn).startMaxDate,J.value=vue.unref(Bn).endMinDate,j.value=vue.unref(Bn).endMaxDate}function Yn(dr=[]){b.value=mr(dr[0]||dayjs()),gn.value=mr(dr[1]||dayjs())}function ar(){var lr,hr;const dr=(lr=vue.unref(b))!=null&&lr.length?dayjs(vue.unref(b).join("-")):"",gr=(hr=vue.unref(gn))!=null&&hr.length?dayjs(vue.unref(gn).join("-")):"";w.value=dr&&gr&&`${dr.format(c.format)} 至 ${gr.format(c.format)}`}function ur(){const{limitStartTime:dr,limitEndTime:gr,limitInterval:lr,isAllowSpanYear:hr}=c;Yn(vue.unref(g)),dr&&(x.value=new Date(dr),J.value=new Date(dr),vue.unref(g)[0].isBefore(dayjs(dr))&&(vue.unref(g)[0]=dayjs(dr),b.value=mr(vue.unref(g)[0]))),gr&&(vn.value=new Date(gr),j.value=new Date(gr),vue.unref(g)[1].isAfter(dayjs(gr))&&(vue.unref(g)[1]=dayjs(gr),gn.value=mr(vue.unref(g)[1]))),vue.unref(g).every(xr=>xr)&&(lr!=null&&lr.value)&&vue.unref(g)[1].diff(vue.unref(g)[0],lr.mode)>lr.value&&(vue.unref(g)[0]=vue.unref(g)[1].subtract(lr.value,lr.mode),b.value=mr(vue.unref(g)[0])),vue.unref(g).every(xr=>xr)&&!hr&&vue.unref(g)[0].year()!==vue.unref(g)[1].year()&&(vue.unref(g)[0]=dayjs(`${vue.unref(g)[1].year()}-01-01`),b.value=mr(vue.unref(g)[0])),fr(),ar()}function mr(dr){const gr=[];for(const lr of vue.unref(re))lr==="day"?gr.push(dr.date()):gr.push(dr[lr]()+(lr==="month"?1:0));return gr}return useOnEvent(c,{dateChange:zn}),{style:p,getPopupContainer:m,locale,dateChange:sr,myValue:g,disabledDate:Zn,calendarChange:Gn,openChange:Hn,change:Kn,isMobile:u,mobileDateStr:w,datePickVisible:y,columnsType:re,openDatePick:qn,handleClearDate:tr,onConfirmDate:Un,onCancelDate:nr,mobileStartDate:b,mobileEndDate:gn,startMinDate:x,startMaxDate:vn,endMinDate:J,endMaxDate:j,pickerTabKey:Fn,onStartDateChange:cr,onEndDateChange:Qn}}}),__injectCSSVars__$2=()=>{vue.useCssVars(c=>({"87f5b4e2":c.optionFontSize}))},__setup__$2=__default__$2.setup;__default__$2.setup=__setup__$2?(c,u)=>(__injectCSSVars__$2(),__setup__$2(c,u)):__injectCSSVars__$2;const RangePicker_vue_vue_type_style_index_0_scoped_55b94f8c_lang="",RangePicker_vue_vue_type_style_index_1_lang="";function _sfc_render$o(c,u,f,d,h,v){const p=vue.resolveComponent("calendar-outlined"),m=vue.resolveComponent("close-circle-filled"),g=vue.resolveComponent("a-input"),y=vue.resolveComponent("van-date-picker"),b=vue.resolveComponent("van-picker-group"),gn=vue.resolveComponent("van-popup"),x=vue.resolveComponent("a-range-picker");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-range-picker",style:vue.normalizeStyle(c.style)},[c.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(g,{value:c.mobileDateStr,placeholder:"请选择日期范围",readonly:"",onClick:c.openDatePick},vue.createSlots({prefix:vue.withCtx(()=>[vue.createVNode(p,{style:{color:"#b0b0b0","padding-right":"5px"}})]),_:2},[c.mobileDateStr?{name:"suffix",fn:vue.withCtx(()=>[vue.createVNode(m,{style:{color:"#b0b0b0"},onClick:vue.withModifiers(c.handleClearDate,["stop"])},null,8,["onClick"])])}:void 0]),1032,["value","onClick"]),vue.createVNode(gn,{show:c.datePickVisible,"onUpdate:show":u[3]||(u[3]=vn=>c.datePickVisible=vn),style:{"z-index":"999999"},"overlay-style":{background:"rgba(0, 0, 0, .3)",zIndex:999999},position:"bottom",teleport:"#app"},{default:vue.withCtx(()=>[c.datePickVisible?(vue.openBlock(),vue.createBlock(b,{key:0,"active-tab":c.pickerTabKey,"onUpdate:active-tab":u[2]||(u[2]=vn=>c.pickerTabKey=vn),tabs:["开始日期","结束日期"],onConfirm:c.onConfirmDate,onCancel:c.onCancelDate},{default:vue.withCtx(()=>[vue.createVNode(y,{modelValue:c.mobileStartDate,"onUpdate:modelValue":u[0]||(u[0]=vn=>c.mobileStartDate=vn),"min-date":c.startMinDate,"max-date":c.startMaxDate,"columns-type":c.columnsType,onChange:c.onStartDateChange},null,8,["modelValue","min-date","max-date","columns-type","onChange"]),vue.createVNode(y,{modelValue:c.mobileEndDate,"onUpdate:modelValue":u[1]||(u[1]=vn=>c.mobileEndDate=vn),"min-date":c.endMinDate,"max-date":c.endMaxDate,"columns-type":c.columnsType,onChange:c.onEndDateChange},null,8,["modelValue","min-date","max-date","columns-type","onChange"])]),_:1},8,["active-tab","onConfirm","onCancel"])):vue.createCommentVNode("",!0)]),_:1},8,["show","overlay-style"])],64)):(vue.openBlock(),vue.createBlock(x,{key:1,class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:c.myValue,"onUpdate:value":u[4]||(u[4]=vn=>c.myValue=vn),format:c.format,picker:c.picker,locale:c.locale,getPopupContainer:c.getPopupContainer,"disabled-date":c.disabledDate,onChange:c.change,onCalendarChange:c.calendarChange,onOpenChange:c.openChange,popupStyle:{fontSize:c.optionFontSize}},null,8,["value","format","picker","locale","getPopupContainer","disabled-date","onChange","onCalendarChange","onOpenChange","popupStyle"]))],4)}const RangePicker=_export_sfc$1(__default__$2,[["render",_sfc_render$o],["__scopeId","data-v-55b94f8c"]]),EcanRangePicker=withInstall$1(RangePicker),buttonProps={...props$1,width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton",text:"按钮",mode:"default",danger:!1,shape:"default",href:"",target:"self",fontSize:"14px",fontWeight:400,tooltipTextStyleColor:"",buttonBackgroundColor:"#FFFFFF",borderColor:"#d9d9d9"},buttonComponentProps=transformToComponentProps(buttonProps),buttonEvents=["click"],_sfc_main$l=vue.defineComponent({name:"EcanButton",components:{AButton:antDesignVue.Button},props:{...buttonComponentProps},setup(c){const u=usePickComponentStyle(c),d=useEmitEvent(c)("click",()=>{const g=vue.unref(p);g&&c.target==="event"&&window.parent.postMessage({type:"openPage",url:g},"*")}),h=vue.computed(()=>{const g={};return c.mode!=="primary"&&(g.backgroundColor=c.buttonBackgroundColor||"transparent",g.color=c.tooltipTextStyleColor,g.borderColor=c.borderColor||"transparent"),{height:c.height,...g}}),v=vue.computed(()=>hn(c.text)),p=vue.computed(()=>hn(c.href)||null),m=vue.computed(()=>{const g=c.target;if(!(g==="event"||vue.unref(p)==null))return{self:"_self",blank:"_blank"}[g]});return useOnEvent(c,{click:d}),{style:u,click:d,myText:v,myHref:p,myTarget:m,buttonStyle:h}}}),Button_vue_vue_type_style_index_0_lang="";function _sfc_render$n(c,u,f,d,h,v){const p=vue.resolveComponent("a-button");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-button",style:vue.normalizeStyle(c.style)},[vue.createVNode(p,{block:"",onClick:c.click,type:c.mode,danger:c.danger,shape:c.shape,href:c.myHref,target:c.myTarget,style:vue.normalizeStyle(c.buttonStyle),class:vue.normalizeClass(c.tooltipTextStyleColor?"custom-color":"")},{default:vue.withCtx(()=>[vue.createElementVNode("span",{style:vue.normalizeStyle({fontSize:c.fontSize,fontWeight:c.fontWeight})},vue.toDisplayString(c.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target","style","class"])],4)}const Button=_export_sfc$1(_sfc_main$l,[["render",_sfc_render$n]]),EcanButton=withInstall$1(Button),checkboxProps$1={...props$1,width:"240px",id:"",left:"0px",top:"0px",name:"复选框",keyName:"复选框",rotate:"",type:"ecanCheckbox",value:[],data:[{label:"选项一",value:"1",checked:!0},{label:"选项二",value:"2",checked:!0},{label:"选项三",value:"3"}],graphicConfig:{}},checkboxComponentProps=transformToComponentProps(checkboxProps$1),checkboxEvents=["checkboxChange"],_sfc_main$k=vue.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:antDesignVue.CheckboxGroup},props:{...checkboxComponentProps},setup(c,{expose:u}){const f=usePickComponentStyle(c),d=vue.ref([]),h=vue.ref([]),v=Bn=>{const w=c.value;let re=[];Bn.forEach(Pn=>{Pn.checked&&re.push(Pn.value)}),typeof w=="string"&&w!==""?re=re.concat(w.split(",")):Array.isArray(w)&&(re=re.concat(w)),d.value=Bn,h.value=re};vue.watch(()=>[c.data,c.value],([Bn])=>{v(Bn)},{immediate:!0,deep:!0});const p=useRequestData(c),m=async()=>{var re,Pn;if(c.dataType!=="request")return;const Bn=await p(),w=((Pn=(re=Bn==null?void 0:Bn.data)==null?void 0:re.data)==null?void 0:Pn.rows)||[];v(w)},{getGlobalModel:g,setGlobalModel:y}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Bn=>{},setGlobalModel:(Bn,w)=>{}});y(c.id,{type:c.type,value:h});const gn=useEmitEvent(c)("checkboxChange",()=>{const Bn=g(c.id);y(c.id,{...Bn,RECORD:h})}),x=Bn=>{var re;const{data:w}=(Bn==null?void 0:Bn.data)||{};if(w){const Rn=(((re=Bn==null?void 0:Bn.data)==null?void 0:re.data)??[]).map(Vn=>({label:Vn.label,value:Vn.value}));v(Rn)}else v([])},vn=useIndicatorData(c,x),J=async()=>{try{const Bn=await vn();x(Bn)}catch(Bn){console.error(Bn)}},j=async()=>{switch(c.dataType){case"indicator":await J();break;case"request":await m();break}},{setRequest:Fn}=vue.inject(REQUEST_MODEL,{setRequest:({id:Bn,sortNum:w,requestFn:re})=>{}});return typeof Fn=="function"&&Fn({id:c.id,requestFn:j,sortNum:c.requestSort}),u({refreshData:j}),{myOption:d,style:f,myValue:h,checkboxChange:gn}}}),Checkbox_vue_vue_type_style_index_0_lang="";function _sfc_render$m(c,u,f,d,h,v){const p=vue.resolveComponent("a-checkbox-group");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-checkbox",style:vue.normalizeStyle(c.style)},[vue.createVNode(p,{options:c.myOption,value:c.myValue,"onUpdate:value":u[0]||(u[0]=m=>c.myValue=m),onChange:c.checkboxChange},null,8,["options","value","onChange"]),vue.renderSlot(c.$slots,"toolbox")],4)}const Checkbox$1=_export_sfc$1(_sfc_main$k,[["render",_sfc_render$m]]),EcanCheckbox=withInstall$1(Checkbox$1),selectProps={...props$1,name:"下拉框选择器",keyName:"下拉框选择器",width:"120px",height:"33px",type:"ecanSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,selectAllOption:!1,graphicConfig:{},valueType:"value",isAllowClear:!0,optionFontSize:"14px",hasAllCheck:!1,minTagCount:null},selectComponentProps=transformToComponentProps(selectProps),selectEvents=["selectChange","refreshData","clearValue"];function getInternetExplorerVersion(){const c=window.navigator.userAgent,u=c.indexOf("MSIE ");if(u>0)return parseInt(c.substring(u+5,c.indexOf(".",u)),10);if(c.indexOf("Trident/")>0){const h=c.indexOf("rv:");return parseInt(c.substring(h+3,c.indexOf(".",h)),10)}const d=c.indexOf("Edge/");return d>0?parseInt(c.substring(d+5,c.indexOf(".",d)),10):-1}let isIE;function initCompat(){initCompat.init||(initCompat.init=!0,isIE=getInternetExplorerVersion()!==-1)}var script$1={name:"ResizeObserver",props:{showTrigger:{type:Boolean,default:!1}},emits:["notify"],setup(c,{emit:u}){let f=0,d=0;const h=vue.ref(null);let v=null;const p=()=>{(f!==h.value.offsetWidth||d!==h.value.offsetHeight)&&(f=h.value.offsetWidth,d=h.value.offsetHeight,u("notify",{width:f,height:d}))},m=()=>{v.contentDocument.defaultView.addEventListener("resize",p),p()},g=()=>{v&&v.onload&&(!isIE&&v.contentDocument&&v.contentDocument.defaultView.removeEventListener("resize",p),h.value.removeChild(v),v.onload=null,v=null)};return vue.onMounted(()=>{initCompat(),f=h.value.offsetWidth,d=h.value.offsetHeight;const y=document.createElement("object");v=y,y.setAttribute("aria-hidden","true"),y.setAttribute("tabindex","-1"),y.onload=m,y.type="text/html",isIE&&h.value.appendChild(y),y.data="about:blank",isIE||h.value.appendChild(y),c.showTrigger&&p()}),vue.onBeforeUnmount(()=>{g()}),{elRef:h}}};const _hoisted_1$d={ref:"elRef",class:"vue3-resize-observer",tabindex:"-1"};function render$1(c,u,f,d,h,v){return vue.openBlock(),vue.createBlock("div",_hoisted_1$d,null,512)}script$1.render=render$1,script$1.__file="src/package/ResizeObserver/ResizeObserver.vue",script$1.install=function(c){c.component(script$1.name,script$1)};var config={itemsLimit:1e3};function _typeof(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(u){return typeof u}:_typeof=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},_typeof(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}function ownKeys(c,u){var f=Object.keys(c);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(c);u&&(d=d.filter(function(h){return Object.getOwnPropertyDescriptor(c,h).enumerable})),f.push.apply(f,d)}return f}function _objectSpread2(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?arguments[u]:{};u%2?ownKeys(Object(f),!0).forEach(function(d){_defineProperty(c,d,f[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(f)):ownKeys(Object(f)).forEach(function(d){Object.defineProperty(c,d,Object.getOwnPropertyDescriptor(f,d))})}return c}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(f);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 _createForOfIteratorHelper(c){if(typeof Symbol>"u"||c[Symbol.iterator]==null){if(Array.isArray(c)||(c=_unsupportedIterableToArray(c))){var u=0,f=function(){};return{s:f,n:function(){return u>=c.length?{done:!0}:{done:!1,value:c[u++]}},e:function(m){throw m},f}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
173
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d,h=!0,v=!1,p;return{s:function(){d=c[Symbol.iterator]()},n:function(){var m=d.next();return h=m.done,m},e:function(m){v=!0,p=m},f:function(){try{!h&&d.return!=null&&d.return()}finally{if(v)throw p}}}}function _typeof$1(c){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(u){return typeof u}:_typeof$1=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},_typeof$1(c)}function _classCallCheck(c,u){if(!(c instanceof u))throw new TypeError("Cannot call a class as a function")}function _defineProperties(c,u){for(var f=0;f<u.length;f++){var d=u[f];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(c,d.key,d)}}function _createClass(c,u,f){return u&&_defineProperties(c.prototype,u),f&&_defineProperties(c,f),c}function _toConsumableArray(c){return _arrayWithoutHoles(c)||_iterableToArray(c)||_nonIterableSpread()}function _arrayWithoutHoles(c){if(Array.isArray(c)){for(var u=0,f=new Array(c.length);u<c.length;u++)f[u]=c[u];return f}}function _iterableToArray(c){if(Symbol.iterator in Object(c)||Object.prototype.toString.call(c)==="[object Arguments]")return Array.from(c)}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function processOptions(c){var u;return typeof c=="function"?u={callback:c}:u=c,u}function throttle(c,u){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},d,h,v,p=function(g){for(var y=arguments.length,b=new Array(y>1?y-1:0),gn=1;gn<y;gn++)b[gn-1]=arguments[gn];if(v=b,!(d&&g===h)){var x=f.leading;typeof x=="function"&&(x=x(g,h)),(!d||g!==h)&&x&&c.apply(void 0,[g].concat(_toConsumableArray(v))),h=g,clearTimeout(d),d=setTimeout(function(){c.apply(void 0,[g].concat(_toConsumableArray(v))),d=0},u)}};return p._clear=function(){clearTimeout(d),d=null},p}function deepEqual(c,u){if(c===u)return!0;if(_typeof$1(c)==="object"){for(var f in c)if(!deepEqual(c[f],u[f]))return!1;return!0}return!1}var VisibilityState=function(){function c(u,f,d){_classCallCheck(this,c),this.el=u,this.observer=null,this.frozen=!1,this.createObserver(f,d)}return _createClass(c,[{key:"createObserver",value:function(f){var d=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=processOptions(f),this.callback=function(p,m){d.options.callback(p,m),p&&d.options.once&&(d.frozen=!0,d.destroyObserver())},this.callback&&this.options.throttle){var h=this.options.throttleOptions||{},v=h.leading;this.callback=throttle(this.callback,this.options.throttle,{leading:function(m){return v==="both"||v==="visible"&&m||v==="hidden"&&!m}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(p){var m=p[0];if(p.length>1){var g=p.find(function(b){return b.isIntersecting});g&&(m=g)}if(d.callback){var y=m.isIntersecting&&m.intersectionRatio>=d.threshold;if(y===d.oldResult)return;d.oldResult=y,d.callback(y,m)}},this.options.intersection),setTimeout(function(){d.observer&&d.observer.observe(d.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&this.options.intersection.threshold||0}}]),c}();function mounted(c,u,f){var d=u.value;if(d)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var h=new VisibilityState(c,d,f);c._vue_visibilityState=h}}function unmounted(c){var u=c._vue_visibilityState;u&&(u.destroyObserver(),delete c._vue_visibilityState)}function componentUpdated(c,u,f){var d=u.value,h=u.oldValue;if(!deepEqual(d,h)){var v=c._vue_visibilityState;if(!d){unmounted(c);return}v?v.createObserver(d,f):mounted(c,{value:d},f)}}var ObserveVisibility={mounted,componentUpdated,unmounted},props={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(u){return["vertical","horizontal"].includes(u)}}},scrollParent=function(u){var f=/(auto|scroll)/;function d(g,y){return g.parentNode===null?y:d(g.parentNode,y.concat([g]))}function h(g,y){return getComputedStyle(g,null).getPropertyValue(y)}function v(g){return h(g,"overflow")+h(g,"overflow-y")+h(g,"overflow-x")}function p(g){return f.test(v(g))}function m(g){if(g instanceof HTMLElement||g instanceof SVGElement){for(var y=d(g.parentNode,[]),b=0;b<y.length;b+=1)if(p(y[b]))return y[b];return document.scrollingElement||document.documentElement}}return m(u)};function simpleArray(){return this.items.length&&_typeof(this.items[0])!=="object"}var supportsPassive=!1;if(typeof window<"u"){supportsPassive=!1;try{var opts=Object.defineProperty({},"passive",{get:function(){supportsPassive=!0}});window.addEventListener("test",null,opts)}catch{}}var uid=0,script=vue.defineComponent({name:"RecycleScroller",components:{ResizeObserver:script$1},directives:{ObserveVisibility},props:_objectSpread2({},props,{itemSize:{type:Number,default:null},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1}}),emits:["visible","hidden","resize","update"],data:function(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes:function(){if(this.itemSize===null){for(var u={"-1":{accumulator:0}},f=this.items,d=this.sizeField,h=this.minItemSize,v=1e4,p=0,m,g=0,y=f.length;g<y;g++)m=f[g][d]||h,m<v&&(v=m),p+=m,u[g]={accumulator:p,size:m};return this.$_computedMinItemSize=v,u}return[]},simpleArray},watch:{items:function(){this.updateVisibleItems(!0)},pageMode:function(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler:function(){this.updateVisibleItems(!1)},deep:!0}},created:function(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1))},mounted:function(){var u=this;this.applyPageMode(),this.$nextTick(function(){u.$_prerender=!1,u.updateVisibleItems(!0),u.ready=!0})},beforeUnmount:function(){this.removeListeners()},methods:{addView:function(u,f,d,h,v){var p={item:d,position:0};return p.nr={id:uid++,index:f,used:!0,key:h,type:v},u.push(p),p},unuseView:function(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=this.$_unusedViews,h=u.nr.type,v=d.get(h);v||(v=[],d.set(h,v)),v.push(u),f||(u.nr.used=!1,u.position=-9999,this.$_views.delete(u.nr.key))},handleResize:function(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll:function(u){var f=this;this.$_scrollDirty||(this.$_scrollDirty=!0,requestAnimationFrame(function(){f.$_scrollDirty=!1;var d=f.updateVisibleItems(!1,!0),h=d.continuous;h||(clearTimeout(f.$_refreshTimout),f.$_refreshTimout=setTimeout(f.handleScroll,100))}))},handleVisibilityChange:function(u,f){var d=this;this.ready&&(u||f.boundingClientRect.width!==0||f.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(function(){d.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems:function(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=this.itemSize,h=this.$_computedMinItemSize,v=this.typeField,p=this.simpleArray?null:this.keyField,m=this.items,g=m.length,y=this.sizes,b=this.$_views,gn=this.$_unusedViews,x=this.pool,vn,J,j;if(!g)vn=J=j=0;else if(this.$_prerender)vn=0,J=this.prerender,j=null;else{var Fn=this.getScroll();if(f){var Bn=Fn.start-this.$_lastUpdateScrollPosition;if(Bn<0&&(Bn=-Bn),d===null&&Bn<h||Bn<d)return{continuous:!0}}this.$_lastUpdateScrollPosition=Fn.start;var w=this.buffer;if(Fn.start-=w,Fn.end+=w,d===null){var re,Pn=0,Rn=g-1,Vn=~~(g/2),Wn;do Wn=Vn,re=y[Vn].accumulator,re<Fn.start?Pn=Vn:Vn<g-1&&y[Vn+1].accumulator>Fn.start&&(Rn=Vn),Vn=~~((Pn+Rn)/2);while(Vn!==Wn);for(Vn<0&&(Vn=0),vn=Vn,j=y[g-1].accumulator,J=Vn;J<g&&y[J].accumulator<Fn.end;J++);J===-1?J=m.length-1:(J++,J>g&&(J=g))}else vn=~~(Fn.start/d),J=Math.ceil(Fn.end/d),vn<0&&(vn=0),J>g&&(J=g),j=g*d}J-vn>config.itemsLimit&&this.itemsLimitError(),this.totalSize=j;var Gn,Zn=vn<=this.$_endIndex&&J>=this.$_startIndex;if(this.$_continuous!==Zn){if(Zn){b.clear(),gn.clear();for(var Xn=0,er=x.length;Xn<er;Xn++)Gn=x[Xn],this.unuseView(Gn)}this.$_continuous=Zn}else if(Zn)for(var Jn=0,ir=x.length;Jn<ir;Jn++)Gn=x[Jn],Gn.nr.used&&(u&&(Gn.nr.index=m.findIndex(function(Un){return p?Un[p]===Gn.item[p]:Un===Gn.item})),(Gn.nr.index===-1||Gn.nr.index<vn||Gn.nr.index>=J)&&this.unuseView(Gn));for(var or=Zn?null:new Map,sr,Hn,Kn,zn,qn=vn;qn<J;qn++){sr=m[qn];var tr=p?sr[p]:sr;if(tr==null)throw new Error("Key is ".concat(tr," on item (keyField is '").concat(p,"')"));if(Gn=b.get(tr),!d&&!y[qn].size){Gn&&this.unuseView(Gn);continue}Gn?(Gn.nr.used=!0,Gn.item=sr):(Hn=sr[v],Kn=gn.get(Hn),Zn?Kn&&Kn.length?(Gn=Kn.pop(),Gn.item=sr,Gn.nr.used=!0,Gn.nr.index=qn,Gn.nr.key=tr,Gn.nr.type=Hn):Gn=this.addView(x,qn,sr,tr,Hn):(zn=or.get(Hn)||0,(!Kn||zn>=Kn.length)&&(Gn=this.addView(x,qn,sr,tr,Hn),this.unuseView(Gn,!0),Kn=gn.get(Hn)),Gn=Kn[zn],Gn.item=sr,Gn.nr.used=!0,Gn.nr.index=qn,Gn.nr.key=tr,Gn.nr.type=Hn,or.set(Hn,zn+1),zn++),b.set(tr,Gn)),d===null?Gn.position=y[qn-1].accumulator:Gn.position=qn*d}return this.$_startIndex=vn,this.$_endIndex=J,this.emitUpdate&&this.$emit("update",vn,J),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,300),{continuous:Zn}},getListenerTarget:function(){var u=scrollParent(this.$el);return window.document&&(u===window.document.documentElement||u===window.document.body)&&(u=window),u},getScroll:function(){var u=this.$el,f=this.direction,d=f==="vertical",h;if(this.pageMode){var v=u.getBoundingClientRect(),p=d?v.height:v.width,m=-(d?v.top:v.left),g=d?window.innerHeight:window.innerWidth;m<0&&(g+=m,m=0),m+g>p&&(g=p-m),h={start:m,end:m+g}}else d?h={start:u.scrollTop,end:u.scrollTop+u.clientHeight}:h={start:u.scrollLeft,end:u.scrollLeft+u.clientWidth};return h},applyPageMode:function(){this.pageMode?this.addListeners():this.removeListeners()},addListeners:function(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,supportsPassive?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners:function(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem:function(u){var f;this.itemSize===null?f=u>0?this.sizes[u-1].accumulator:0:f=u*this.itemSize,this.scrollToPosition(f)},scrollToPosition:function(u){this.direction==="vertical"?this.$el.scrollTop=u:this.$el.scrollLeft=u},itemsLimitError:function(){var u=this;throw setTimeout(function(){console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",u.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews:function(){this.pool.sort(function(u,f){return u.nr.index-f.nr.index})}}}),_hoisted_1$c={key:0,class:"vue-recycle-scroller__slot"},_hoisted_2$7={key:1,class:"vue-recycle-scroller__slot"};function render(c,u,f,d,h,v){var p=vue.resolveComponent("ResizeObserver"),m=vue.resolveDirective("observe-visibility");return vue.withDirectives((vue.openBlock(),vue.createBlock("div",{class:["vue-recycle-scroller",_defineProperty({ready:c.ready,"page-mode":c.pageMode},"direction-".concat(c.direction),!0)],onScrollPassive:u[2]||(u[2]=function(){return c.handleScroll.apply(c,arguments)})},[c.$slots.before?(vue.openBlock(),vue.createBlock("div",_hoisted_1$c,[vue.renderSlot(c.$slots,"before")])):vue.createCommentVNode("v-if",!0),vue.createVNode("div",{ref:"wrapper",style:_defineProperty({},c.direction==="vertical"?"minHeight":"minWidth",c.totalSize+"px"),class:"vue-recycle-scroller__item-wrapper"},[(vue.openBlock(!0),vue.createBlock(vue.Fragment,null,vue.renderList(c.pool,function(g){return vue.openBlock(),vue.createBlock("div",{key:g.nr.id,style:c.ready?{transform:"translate".concat(c.direction==="vertical"?"Y":"X","(").concat(g.position,"px)")}:null,class:["vue-recycle-scroller__item-view",{hover:c.hoverKey===g.nr.key}],onMouseenter:function(b){return c.hoverKey=g.nr.key},onMouseleave:u[1]||(u[1]=function(y){return c.hoverKey=null})},[vue.renderSlot(c.$slots,"default",{item:g.item,index:g.nr.index,active:g.nr.used})],46,["onMouseenter"])}),128))],4),c.$slots.after?(vue.openBlock(),vue.createBlock("div",_hoisted_2$7,[vue.renderSlot(c.$slots,"after")])):vue.createCommentVNode("v-if",!0),vue.createVNode(p,{onNotify:c.handleResize},null,8,["onNotify"])],34)),[[m,c.handleVisibilityChange]])}script.render=render,script.__file="src/components/RecycleScroller.vue",_objectSpread2({},props,{minItemSize:{type:[Number,String],required:!0}});const vue3VirtualScroller="",_sfc_main$j=vue.defineComponent({name:"EcanSelect",components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption,AInput:antDesignVue.Input,ADivider:antDesignVue.Divider,ACheckbox:antDesignVue.Checkbox,DownOutlined:DownOutlined$1,CloseOutlined:CloseOutlined$1,RecycleScroller:script,VNodes:(c,{attrs:u})=>u.vnodes},props:{...selectComponentProps},setup(c,{expose:u}){var xr,Sr,yr;const f=vue.inject("isMobile",!1),d=vue.ref(!1),h={text:((xr=c.dataFieldNames)==null?void 0:xr.label)||"label",value:((Sr=c.dataFieldNames)==null?void 0:Sr.value)||"value"},v=vue.ref([]),p=usePickComponentStyle(c),m=()=>document.getElementById("ProviderConfig")||document.body,g=vue.ref(c.data||[]),y=vue.ref(),b=vue.ref(!1),gn=vue.ref(!1),x=vue.ref(),vn=vue.ref(!1),J=vue.computed({get:()=>{var br;const{mode:pr}=c;return(br=vue.unref(g))!=null&&br.length?y.value:pr==="multiple"||pr==="tags"||pr==="combobox"?[]:""},set:pr=>{y.value=pr}}),j=vue.computed(()=>{const{value:pr,label:br}=c.dataFieldNames,kr=[];if(Array.isArray(vue.unref(J)))for(const wr of vue.unref(J)){const Er=vue.unref(g).find(Pr=>Pr[pr]===wr);Er&&kr.push(Er[br])}else{const wr=vue.unref(g).find(Er=>Er[pr]===vue.unref(J));wr&&kr.push(wr[br])}return kr.join(",")}),Fn=vue.computed(()=>vue.unref(x)?vue.unref(g).filter(pr=>pr[Pn.label].includes(vue.unref(x))):vue.unref(g)),{getGlobalModel:Bn,setGlobalModel:w,getRecordValueByKeyName:re}=vue.inject(GLOBAL_MODEL,{getGlobalModel:pr=>{},setGlobalModel:(pr,br)=>{},getRecordValueByKeyName:pr=>{}}),Pn=c.dataFieldNames;vue.watch(()=>[c.value,c.mode,c.selectFirstOption,c.selectAllOption,c.valueType,g.value],()=>{const{mode:pr,selectFirstOption:br,selectAllOption:kr,value:wr}=c,Er=re(wr),Pr=Pn.value;if(pr==="multiple"||pr==="tags"||pr==="combobox"){if(Er)y.value=vue.unref(Er).split(",");else if(br){const Dr=vue.unref(g)[0];y.value=Dr?[Dr[Pr]]:[]}kr&&(y.value=vue.unref(g).map(Dr=>Dr[Pr]),b.value=!0,gn.value=!1)}else if(Er)y.value=vue.unref(Er);else if(br){const Dr=vue.unref(g)[0];y.value=Dr?Dr[Pr]:""}},{immediate:!0});const Rn=(pr,br)=>{var qr;const kr=Pn.label,wr=Pn.value;let Er;const Pr=br[kr],Dr=br[wr];return Pr!=null?Er=Pr:Dr!=null&&(Er=Dr),Er?(Er==null?void 0:Er.toLowerCase().indexOf(pr==null?void 0:pr.toLowerCase()))>=0:((qr=br.label)==null?void 0:qr.toLowerCase().indexOf(pr==null?void 0:pr.toLowerCase()))>=0},Vn=pr=>{const{label:br,value:kr,options:wr}=c.dataFieldNames;if(wr&&Array.isArray(pr))if(pr.some(Er=>wr in Er)){const Er={},Pr=[];pr.forEach(Dr=>{Er[Dr[wr]]||(Er[Dr[wr]]=[]),Er[Dr[wr]].push({[br]:Dr[br],[kr]:Dr[kr]})});for(const Dr in Er)Pr.push({[br]:Dr,[wr]:Er[Dr]});return Pr}else return pr;else{if(!wr&&Array.isArray(pr))return pr=pr.map(Er=>({label:Er[br],value:Er[kr]})),pr;if(!wr&&!Array.isArray(pr))return pr}},Wn=vue.ref(!1),Gn=pr=>{var br,kr;if(g.value=Vn(((kr=(br=pr==null?void 0:pr.data)==null?void 0:br.data)==null?void 0:kr.rows)||[]),c.selectFirstOption){let wr=vue.unref(g)[0];if(Pn.options){const Er=wr[Pn.options];Er&&Er.length&&(wr=Er[0])}y.value=wr[Pn.value]}c.mode==="multiple"&&c.selectAllOption&&(y.value=vue.unref(g).map(wr=>wr[Pn.value])),vue.nextTick(()=>{c.dataType!=="static"&&Kn()})},Zn=useRequestData(c),Xn=async()=>{if(c.dataType==="request"){Wn.value=!0;try{const pr=await Zn();Gn(pr)}catch(pr){console.error(pr)}finally{Wn.value=!1}}},er=vue.computed(()=>{let pr=y.value;if(c.valueType==="label"&&vue.unref(y)&&vue.unref(g)){const br=Pn.label,kr=Pn.value;if(c.mode==="multiple")pr=vue.unref(g).filter(wr=>vue.unref(y).includes(wr[kr])).map(wr=>wr[br]);else{const wr=vue.unref(g).find(Er=>vue.unref(y)===Er[kr]);wr&&(pr=wr[br])}}return pr}),Jn=vue.ref([]),ir=vue.computed(()=>{const pr={};if(c.mode!=="multiple"){const br=vue.unref(Jn).find(kr=>kr.value===vue.unref(y));br&&(pr.itemCodes=br[Pn.value])}return pr}),or=vue.computed(()=>{const{value:pr,label:br}=Pn,kr=vue.unref(g).find(wr=>wr[pr]===vue.unref(J));return kr?{label:kr[br],value:kr[pr]}:{}}),{pageId:sr}=vue.inject("templateOperate",{pageId:""})||{};w(c.id,{type:c.type,dataType:c.dataType,value:er,label:(yr=vue.unref(or))==null?void 0:yr.label,...vue.unref(ir),recordData:vue.unref(or)});const Hn=useEmitEvent(c),Kn=Hn("selectChange",()=>{const pr=c.id,br=Bn(pr);w(pr,{...br,...vue.unref(ir),RECORD:er,recordData:vue.unref(or),dataType:c.dataType});const kr=getNewValueFromUrlParams(sr,c.keyName,"value");kr&&(J.value=kr)}),zn=Hn("clearValue",()=>{["multiple","tags","combobox"].includes(c.mode)?y.value=[]:y.value=null;const pr=c.id;w(pr,{RECORD:"",recordData:vue.unref(or),dataType:c.dataType})}),qn=Hn("refreshData",(pr=[])=>{var kr,wr;const br=Vn(pr);if((wr=(kr=c==null?void 0:c.graphicConfig)==null?void 0:kr.formFields)!=null&&wr.hasAllOption){const Er=Pn.label,Pr=Pn.value;br.unshift({[Er]:"全部",[Pr]:""})}if(g.value=br,c.selectFirstOption){let Er=vue.unref(g)[0]||{};if(Pn.options){const Pr=Er[Pn.options];Pr&&Pr.length&&(Er=Pr[0])}y.value=Er[Pn.value]}c.mode==="multiple"&&c.selectAllOption&&(y.value=vue.unref(g).map(Er=>Er[Pn.value])),w(c.id,{type:c.type,value:er,...vue.unref(ir),recordData:vue.unref(or),dataType:c.dataType})}),tr=pr=>{var Er;const{data:br}=(pr==null?void 0:pr.data)||{},kr=Pn.label,wr=Pn.value;if(br){const{rows:Pr=[]}=((Er=pr==null?void 0:pr.data)==null?void 0:Er.data)||{};Jn.value=Pr;const Dr=Pr.map(Fr=>({[kr]:Fr.label,[wr]:Fr.value})),{id:qr}=c,Rr=Bn(qr);w(qr,{...Rr,...vue.unref(ir),dataType:c.dataType}),qn(Dr)}else qn([])},Un=useIndicatorData(c,tr),nr=async()=>{try{Wn.value=!0;const pr=await Un();tr(pr)}catch(pr){console.error(pr)}finally{Wn.value=!1}},cr=async()=>{switch(c.dataType){case"indicator":{await nr();break}case"request":await Xn();break}};useOnEvent(c,{selectChange:Kn,refreshData:cr,clearValue:zn});const{setRequest:Qn}=vue.inject(REQUEST_MODEL,{setRequest:({id:pr,sortNum:br,requestFn:kr})=>{}});typeof Qn=="function"&&Qn({id:c.id,requestFn:cr,sortNum:c.requestSort}),u({refreshData:cr});const fr=()=>{c.mode==="multiple"?J.value=vue.unref(v):J.value=vue.unref(v)[0],Kn(),ar()},vr=()=>{var pr;if((pr=vue.unref(g))!=null&&pr.length&&c.dataFieldNames.value){let br;Array.isArray(vue.unref(J))?br=vue.unref(J):vue.unref(J)&&(br=[vue.unref(J)]),v.value=br||[vue.unref(g)[0][c.dataFieldNames.value]]}lr(),d.value=!0},Yn=pr=>{const br=vue.unref(v).findIndex(kr=>kr===pr);br===-1?vue.unref(v).push(pr):vue.unref(v).splice(br,1)},ar=()=>{d.value=!1,vue.nextTick(()=>{lr()})},ur=pr=>{pr?v.value=vue.unref(g).map(br=>br[Pn.value]):v.value=[]};vue.watch(()=>J.value,(pr,br)=>{var kr;c.mode==="multiple"&&((pr==null?void 0:pr.length)===((kr=vue.unref(g))==null?void 0:kr.length)?(gn.value=!1,b.value=!0):pr!=null&&pr.length?(gn.value=!0,b.value=!1):br!=null&&br.length&&c.minTagCount?J.value=br.slice(0,c.minTagCount):(gn.value=!1,b.value=!1))}),vue.watch(()=>v.value,pr=>{var br;c.mode==="multiple"&&((pr==null?void 0:pr.length)===((br=vue.unref(g))==null?void 0:br.length)?(gn.value=!1,b.value=!0):pr!=null&&pr.length?(gn.value=!0,b.value=!1):(gn.value=!1,b.value=!1))},{deep:!0});const mr=pr=>{pr.target.checked?J.value=vue.unref(g).map(br=>br[Pn.value]):J.value=[]},dr=(pr,br)=>{var kr;if(c.mode==="multiple"&&c.minTagCount){const{label:wr,value:Er}=Pn;((kr=vue.unref(J))==null?void 0:kr.length)<c.minTagCount&&vue.unref(J).push({[Er]:br[Er],[wr]:br[wr]})}},gr=pr=>{x.value=pr},lr=()=>{c.autoClearSearchValue&&(x.value="")},hr=pr=>{pr||(x.value="")};return vue.watch(x,pr=>{vn.value=!!pr}),vue.onMounted(()=>{Kn()}),{searchValue:x,style:p,getPopupContainer:m,myValue:y,selectChange:Kn,options:g,filterOption:Rn,loading:Wn,resultValue:J,isMobile:f,customFieldName:h,pickVisible:d,onConfirmPicker:fr,mobileValue:j,openPicker:vr,mobileSelectValue:v,isCheckAll:b,indeterminate:gn,hideCheckAll:vn,onSearch:gr,onSelect:lr,onOptionAll:mr,onDeselect:dr,onDropdownVisibleChange:hr,onCheckClick:Yn,onCancelPicker:ar,onCheckAll:ur,mobileMultOptions:Fn}}}),Select_vue_vue_type_style_index_0_scoped_b555c48b_lang="",Select_vue_vue_type_style_index_1_lang="",_withScopeId$4=c=>(vue.pushScopeId("data-v-b555c48b"),c=c(),vue.popScopeId(),c),_hoisted_1$b={class:"popup-toolbar"},_hoisted_2$6={class:"operate"},_hoisted_3$2={key:0,class:"cancel-tool"},_hoisted_4$2=vue.createTextVNode(" 全选 "),_hoisted_5$2=_withScopeId$4(()=>vue.createElementVNode("div",{class:"title-tool"},null,-1)),_hoisted_6$2={style:{flex:"1",overflow:"auto"}},_hoisted_7$2={style:{padding:"4px 10px",cursor:"pointer"}},_hoisted_8$2=vue.createTextVNode(" 全选 ");function _sfc_render$l(c,u,f,d,h,v){var Vn;const p=vue.resolveComponent("down-outlined"),m=vue.resolveComponent("a-input"),g=vue.resolveComponent("van-checkbox"),y=vue.resolveComponent("van-search"),b=vue.resolveComponent("van-cell"),gn=vue.resolveComponent("van-cell-group"),x=vue.resolveComponent("recycle-scroller"),vn=vue.resolveComponent("van-checkbox-group"),J=vue.resolveComponent("van-picker"),j=vue.resolveComponent("van-popup"),Fn=vue.resolveComponent("a-select-option"),Bn=vue.resolveComponent("v-nodes"),w=vue.resolveComponent("a-divider"),re=vue.resolveComponent("a-checkbox"),Pn=vue.resolveComponent("close-outlined"),Rn=vue.resolveComponent("a-select");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-select",style:vue.normalizeStyle(c.style)},[c.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(m,{value:c.mobileValue,placeholder:c.placeholder,readonly:"",onClick:c.openPicker},{suffix:vue.withCtx(()=>[vue.createVNode(p,{onClick:c.openPicker},null,8,["onClick"])]),_:1},8,["value","placeholder","onClick"]),vue.createVNode(j,{show:c.pickVisible,"onUpdate:show":u[5]||(u[5]=Wn=>c.pickVisible=Wn),style:vue.normalizeStyle({zIndex:999999,height:c.mode==="multiple"?"50%":"",display:c.mode==="multiple"?"flex":"",flexDirection:c.mode==="multiple"?"column":""}),"overlay-style":{background:"rgba(0, 0, 0, .3)",zIndex:999999},position:"bottom",teleport:"#app"},{default:vue.withCtx(()=>[c.pickVisible?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[c.mode==="multiple"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createElementVNode("div",_hoisted_1$b,[vue.createElementVNode("div",_hoisted_2$6,[!c.hideCheckAll&&c.hasAllCheck?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$2,[vue.createVNode(g,{modelValue:c.isCheckAll,"onUpdate:modelValue":u[0]||(u[0]=Wn=>c.isCheckAll=Wn),indeterminate:c.indeterminate,shape:"square",onChange:c.onCheckAll},{default:vue.withCtx(()=>[_hoisted_4$2]),_:1},8,["modelValue","indeterminate","onChange"])])):vue.createCommentVNode("",!0),_hoisted_5$2,vue.createElementVNode("div",{class:"confirm-tool",onClick:u[1]||(u[1]=(...Wn)=>c.onConfirmPicker&&c.onConfirmPicker(...Wn))},"确认")]),vue.createVNode(y,{class:"search-wrap",modelValue:c.searchValue,"onUpdate:modelValue":u[2]||(u[2]=Wn=>c.searchValue=Wn),placeholder:"请输入搜索关键词"},null,8,["modelValue"])]),vue.createElementVNode("div",_hoisted_6$2,[c.mobileMultOptions.length?(vue.openBlock(),vue.createBlock(vn,{key:0,modelValue:c.mobileSelectValue,"onUpdate:modelValue":u[3]||(u[3]=Wn=>c.mobileSelectValue=Wn),style:{height:"100%"},shape:"square"},{default:vue.withCtx(()=>[vue.withDirectives(vue.createVNode(x,{class:"scroller",items:c.mobileMultOptions,"item-size":44,"key-field":c.customFieldName.value},{default:vue.withCtx(({item:Wn})=>[vue.createVNode(gn,null,{default:vue.withCtx(()=>[vue.createVNode(b,{title:Wn[c.customFieldName.text],clickable:"",onClick:Gn=>c.onCheckClick(Wn[c.customFieldName.value])},{"right-icon":vue.withCtx(()=>[vue.createVNode(g,{name:Wn[c.customFieldName.value],onClick:Gn=>c.onCheckClick(Wn[c.customFieldName.value])},null,8,["name","onClick"])]),_:2},1032,["title","onClick"])]),_:2},1024)]),_:1},8,["items","key-field"]),[[vue.vShow,c.mobileMultOptions.length]])]),_:1},8,["modelValue"])):vue.createCommentVNode("",!0)])],64)):(vue.openBlock(),vue.createBlock(J,{key:1,modelValue:c.mobileSelectValue,"onUpdate:modelValue":u[4]||(u[4]=Wn=>c.mobileSelectValue=Wn),"columns-field-names":c.customFieldName,columns:c.options,"cancel-button-text":" ",onConfirm:c.onConfirmPicker},null,8,["modelValue","columns-field-names","columns","onConfirm"]))],64)):vue.createCommentVNode("",!0)]),_:1},8,["show","style","overlay-style"])],64)):(vue.openBlock(),vue.createBlock(Rn,{key:1,class:"select",value:c.resultValue,"onUpdate:value":u[8]||(u[8]=Wn=>c.resultValue=Wn),placeholder:c.placeholder,showSearch:"",allowClear:c.isAllowClear&&(c.mode!=="multiple"||!c.minTagCount||((Vn=c.resultValue)==null?void 0:Vn.length)>c.minTagCount),mode:c.mode,getPopupContainer:c.getPopupContainer,maxTagCount:c.maxTagCount,filterOption:c.filterOption,loading:c.loading,autoClearSearchValue:c.autoClearSearchValue,maxTagTextLength:4,onSearch:c.onSearch,onSelect:c.onSelect,onChange:c.selectChange,onDeselect:c.onDeselect,onDropdownVisibleChange:c.onDropdownVisibleChange,style:vue.normalizeStyle({fontSize:c.optionFontSize})},vue.createSlots({removeIcon:vue.withCtx(()=>{var Wn;return[c.mode==="multiple"&&(!c.minTagCount||((Wn=c.resultValue)==null?void 0:Wn.length)>c.minTagCount)?(vue.openBlock(),vue.createBlock(Pn,{key:0})):vue.createCommentVNode("",!0)]}),default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.options,(Wn,Gn)=>(vue.openBlock(),vue.createBlock(Fn,{key:Gn,value:Wn.value,style:vue.normalizeStyle({fontSize:c.optionFontSize}),label:Wn.label},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Wn.label),1)]),_:2},1032,["value","style","label"]))),128))]),_:2},[c.mode==="multiple"&&!c.hideCheckAll&&c.hasAllCheck?{name:"dropdownRender",fn:vue.withCtx(({menuNode:Wn})=>[vue.createVNode(Bn,{vnodes:Wn},null,8,["vnodes"]),vue.createVNode(w,{style:{margin:"4px 0"}}),vue.createElementVNode("div",{class:"check-box",onMousedown:u[7]||(u[7]=Gn=>Gn.preventDefault())},[vue.createElementVNode("div",_hoisted_7$2,[_hoisted_8$2,vue.createVNode(re,{checked:c.isCheckAll,"onUpdate:checked":u[6]||(u[6]=Gn=>c.isCheckAll=Gn),indeterminate:c.indeterminate,onChange:c.onOptionAll},null,8,["checked","indeterminate","onChange"])])],32)])}:void 0]),1032,["value","placeholder","allowClear","mode","getPopupContainer","maxTagCount","filterOption","loading","autoClearSearchValue","onSearch","onSelect","onChange","onDeselect","onDropdownVisibleChange","style"])),vue.renderSlot(c.$slots,"toolbox",{},void 0,!0)],4)}const Select=_export_sfc$1(_sfc_main$j,[["render",_sfc_render$l],["__scopeId","data-v-b555c48b"]]),EcanSelect=withInstall$1(Select),treeSelectProps={...props$1,name:"树形下拉框选择器",keyName:"树形下拉框选择器",width:"120px",height:"33px",type:"ecanTreeSelect",multiple:!1,data:[{label:"选项一",value:"1",children:[{label:"子选项一",value:"1-1"},{label:"子选项二",value:"1-2"}]},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:"",dataFieldNames:{label:"label",value:"value",children:"children"},maxTagCount:3,placeholder:"请选择",treeCheckable:!1,treeCheckStrictly:!1,selectFirstOption:!1},treeSelectComponentProps=transformToComponentProps(treeSelectProps),treeSelectEvents=["selectChange","refreshData"],_sfc_main$i={name:"EcanTreeSelect",components:{ATreeSelect:antDesignVue.TreeSelect},props:{...treeSelectComponentProps},setup(c){const u=usePickComponentStyle(c),f=vue.ref(c.data),d=(J,j)=>{const Fn=c.dataFieldNames,Bn=Fn.label,w=Fn.value;let re;const Pn=j[Bn],Rn=j[w];return Pn!=null?re=Pn:Rn!=null&&(re=Rn),(re==null?void 0:re.toLowerCase().indexOf(J==null?void 0:J.toLowerCase()))>=0},h=vue.ref();vue.watch(()=>[c.multiple,c.value,c.treeCheckable,c.selectFirstOption],()=>{const{multiple:J,value:j,selectFirstOption:Fn}=c;J?j?h.value=j.split(","):Fn&&(h.value=[vue.unref(f)[0]]):j?h.value=j:Fn&&(h.value=vue.unref(f)[0])},{immediate:!0});const v=vue.ref(!1),p=J=>{var Fn,Bn;f.value=((Bn=(Fn=J==null?void 0:J.data)==null?void 0:Fn.data)==null?void 0:Bn.rows)||[];const j=vue.unref(f)[0];c.value===""&&j!=null&&(h.value=j[c.dataFieldNames.value])},m=useRequestData(c),g=async()=>{if(c.dataType==="request"){v.value=!0;try{const J=await m();p(J)}catch(J){console.error(J)}finally{v.value=!1}}},{getGlobalModel:y,setGlobalModel:b}=vue.inject(GLOBAL_MODEL,{getGlobalModel:J=>{},setGlobalModel:(J,j)=>{}});b(c.id,{type:c.type,value:h});const x=useEmitEvent(c)("selectChange",()=>{const J=c.id,j=y(J);b(J,{...j,RECORD:h})});useOnEvent(c,{selectChange:x,refreshData:g});const{setRequest:vn}=vue.inject(REQUEST_MODEL,{setRequest:({id:J,sortNum:j,requestFn:Fn})=>{}});return vn({id:c.id,requestFn:g,sortNum:c.requestSort}),{style:u,treeData:f,filterTreeNode:d,myValue:h,loading:v,selectChange:x}}},TreeSelect_vue_vue_type_style_index_0_scoped_09e7f364_lang="",TreeSelect_vue_vue_type_style_index_1_lang="";function _sfc_render$k(c,u,f,d,h,v){const p=vue.resolveComponent("a-tree-select");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-tree-select",style:vue.normalizeStyle(d.style)},[vue.createVNode(p,{class:"tree-select",value:d.myValue,"onUpdate:value":u[0]||(u[0]=m=>d.myValue=m),allowClear:"",showSearch:"",loading:d.loading,fieldNames:c.dataFieldNames,treeData:d.treeData,maxTagCount:c.maxTagCount,multiple:c.multiple,treeCheckable:c.treeCheckable,filterTreeNode:d.filterTreeNode,placeholder:c.placeholder,onChange:d.selectChange},null,8,["value","loading","fieldNames","treeData","maxTagCount","multiple","treeCheckable","filterTreeNode","placeholder","onChange"])],4)}const TreeSelect=_export_sfc$1(_sfc_main$i,[["render",_sfc_render$k],["__scopeId","data-v-09e7f364"]]),EcanTreeSelect=withInstall$1(TreeSelect),radioProps={...props$1,width:"260px",height:"32px",id:"",left:"0px",top:"0px",name:"单选框",keyName:"单选框",rotate:"",type:"ecanRadio",value:"",data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],optionType:"default",tabBackgroundImage:"",activeTabBackgroundImage:"",activeTabColor:"#1890ff",tabColor:"#333",tabFontSize:"14px",tabHorizontalPadding:"0px",tabVerticalPadding:"5px",tabBarGutter:"24px",tabFlexDirection:"row",graphicConfig:{},tabTextAlign:"",selectFirstOption:!1,radioMode:"native"},radioComponentProps=transformToComponentProps(radioProps),radioEvents=["checkboxChange","click","resetRecord"],_sfc_main$h=vue.defineComponent({name:"EcanRadio",components:{ARadioGroup:antDesignVue.RadioGroup,ARadioButton:antDesignVue.RadioButton,ARadio:antDesignVue.Radio},props:{...radioComponentProps},setup(c,{expose:u}){const{pageMode:f}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),d=usePickComponentStyle(c),h=vue.ref([]),v=vue.ref(""),p=(Vn=[])=>{var Zn;const Wn=c.value;let Gn=[];typeof Wn=="string"&&Wn!==""?Gn=Gn.concat(Wn.split(",")):Array.isArray(Wn)&&(Gn=Gn.concat(Wn)),h.value=Vn,c.selectFirstOption?v.value=((Zn=Vn[0])==null?void 0:Zn.value)||"":v.value=Gn[0]||""};vue.watch(()=>[c.data,c.value,c.selectFirstOption],([Vn])=>{vue.unref(f)==="design"&&p(Vn)},{immediate:!0,deep:!0});const m=useRequestData(c),g=async()=>{var Gn,Zn;if(c.dataType!=="request")return;const Vn=await m(),Wn=((Zn=(Gn=Vn==null?void 0:Vn.data)==null?void 0:Gn.data)==null?void 0:Zn.rows)||[];p(Wn)},{getGlobalModel:y,setGlobalModel:b}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Vn=>{},setGlobalModel:(Vn,Wn)=>{}});b(c.id,{type:c.type,value:v});const gn=useEmitEvent(c),x=()=>{const Vn=vue.unref(h).find(Wn=>Wn.value===vue.unref(v))||{};gn("checkboxChange",()=>{const Wn=y(c.id);b(c.id,{...Wn,RECORD:v})},Vn)()},vn=Vn=>{v.value=Vn,gn("click",()=>{const Wn=y(c.id);b(c.id,{...Wn,RECORD:v,value:v})})()};vue.watch(v,()=>{x()});const J=Vn=>{var Gn;const{data:Wn}=(Vn==null?void 0:Vn.data)||{};if(Wn){const Xn=(((Gn=Vn==null?void 0:Vn.data)==null?void 0:Gn.data)??[]).map(er=>({label:er.label,value:er.value}));p(Xn)}else p([])},j=useIndicatorData(c,J),Fn=async()=>{try{const Vn=await j();J(Vn)}catch(Vn){console.error(Vn)}},Bn=async()=>{switch(c.dataType){case"indicator":await Fn();break;case"request":await g();break}},{setRequest:w}=vue.inject(REQUEST_MODEL,{setRequest:({id:Vn,sortNum:Wn,requestFn:Gn})=>{}});typeof w=="function"&&w({id:c.id,requestFn:Bn,sortNum:c.requestSort});const re=Vn=>{v.value=Vn.value,vn(Vn.value)},Pn=vue.computed(()=>c.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px",fontSize:c.tabFontSize}:{fontSize:c.tabFontSize});return vue.onMounted(()=>{p(c.data)}),useOnEvent(c,{resetRecord:()=>{const Vn=c.id,Wn=y(Vn);b(Vn,{...Wn,RECORD:"",value:""})}}),u({refreshData:Bn}),{myOption:h,style:d,myValue:v,radioStyle:Pn,onClickButton:vn,useImagePath,tabChange:re}}}),Radio_vue_vue_type_style_index_0_lang="",Radio_vue_vue_type_style_index_1_scoped_6f149196_lang="",_hoisted_1$a=["onClick"];function _sfc_render$j(c,u,f,d,h,v){const p=vue.resolveComponent("a-radio"),m=vue.resolveComponent("a-radio-button"),g=vue.resolveComponent("a-radio-group");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["ecan-radio",c.optionType]),style:vue.normalizeStyle(c.style)},[c.radioMode==="custom"?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"tabs-header",style:vue.normalizeStyle({fontSize:c.tabFontSize,flexDirection:c.tabFlexDirection,alignItems:c.tabTextAlign})},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.myOption,(y,b)=>(vue.openBlock(),vue.createElementBlock("div",{class:"tab",style:vue.normalizeStyle({padding:`${c.tabVerticalPadding} ${c.tabHorizontalPadding}`,color:c.myValue===y.value?c.activeTabColor:c.tabColor,backgroundImage:c.myValue===y.value?c.useImagePath(c.activeTabBackgroundImage,!0):c.useImagePath(c.tabBackgroundImage,!0),marginRight:c.tabFlexDirection==="row"?c.tabBarGutter:"0",marginBottom:c.tabFlexDirection==="column"?c.tabBarGutter:"0"}),key:b,onClick:vue.withModifiers(gn=>c.tabChange(y),["prevent","stop"])},[vue.createElementVNode("div",{class:"tab-inner",style:vue.normalizeStyle({borderBottom:!c.activeTabBackgroundImage&&!c.tabBackgroundImage?`1px solid ${c.myValue===y.value?c.activeTabColor:"transparent"}`:""})},vue.toDisplayString(y.label),5)],12,_hoisted_1$a))),128))],4)):c.radioMode==="native"?(vue.openBlock(),vue.createBlock(g,{key:1,value:c.myValue,"onUpdate:value":u[0]||(u[0]=y=>c.myValue=y)},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.myOption,y=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:y.value},[c.optionType==="default"?(vue.openBlock(),vue.createBlock(p,{key:0,value:y.value,style:vue.normalizeStyle(c.radioStyle)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(y.label),1)]),_:2},1032,["value","style"])):c.optionType==="button"?(vue.openBlock(),vue.createBlock(m,{key:1,value:y.value,style:vue.normalizeStyle({fontSize:c.tabFontSize}),onClick:b=>c.onClickButton(y.value)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(y.label),1)]),_:2},1032,["value","style","onClick"])):vue.createCommentVNode("",!0)],64))),128))]),_:1},8,["value"])):vue.createCommentVNode("",!0),vue.renderSlot(c.$slots,"toolbox",{},void 0,!0)],6)}const Radio=_export_sfc$1(_sfc_main$h,[["render",_sfc_render$j],["__scopeId","data-v-6f149196"]]),EcanRadio=withInstall$1(Radio),navTabProps={...props$1,type:"ecanNavTab",name:"导航标签",keyName:"导航标签",width:"300px",height:"40px",tabFontSize:"14px",activeTabColor:"#1890ff",tabColor:"#333",tabFontWeight:400,activeKey:0,data:[{title:"标签1",key:"1"},{title:"标签2",key:"2"},{title:"标签3",key:"3"}],isShrink:!1,tabLineWidth:"40px",tabLineHeight:"3px",backgroundColor:"",isScrollspy:!1,scrollspyConfig:[]},navTabComponentProps=transformToComponentProps(navTabProps),navTabEvents=["tabChange"],_sfc_main$g=vue.defineComponent({name:"EcanNavTab",props:{...navTabComponentProps},components:{},setup(c){const u=usePickComponentStyle(c),f=vue.ref(0),d=vue.ref("nav-tab"),h=vue.ref([]),v=vue.ref(!1),p=vue.inject("usedComponentList",[]);vue.watch(()=>c.activeKey,re=>{f.value=re},{immediate:!0}),vue.watch(()=>[c.isShrink,c.data],()=>{d.value=nanoid(8)});const{pageMode:m,fixedHeight:g,height:y}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fixedHeight:0,height:null});let b=!1,gn=null;const x=()=>{gn&&clearTimeout(gn),gn=setTimeout(()=>{v.value=!1},200),!vue.unref(v)&&(b||(requestAnimationFrame(()=>{let re=-1;const Pn=window.scrollY;for(const Rn of vue.unref(h)){const Vn=Rn[2];if(Rn[1]==="max"&&Pn>=Rn[0]-Vn||Rn[1]!=="max"&&Pn>=Rn[0]-Vn&&Pn<Rn[1]-Vn){re=c.data.findIndex(Wn=>Wn.key===Rn[3]);break}}re>-1&&(f.value=re),b=!1}),b=!0))},vn=vue.computed(()=>{var re;return((re=c.scrollspyConfig)==null?void 0:re.filter(Pn=>c.data.find(Rn=>Pn.key&&Rn.key===Pn.key)))||[]}),J=vue.computed(()=>!!(c.isScrollspy&&vue.unref(vn).length)),j=()=>{const re=[];for(const Pn of vue.unref(vn)){const Rn=vue.unref(p).find(Vn=>Vn.id===Pn.anchor);if(Rn){const Vn=getFormatWh(Rn.height,vue.unref(y)),Wn=parseFloat(Rn.top)-vue.unref(g);re.push([Wn,Wn+Vn,Vn/2,Pn.key])}}if(re!=null&&re.length){const Pn=re.map(Gn=>Gn[0]),Rn=re.map(Gn=>Gn[1]),Vn=Pn.indexOf(Math.min(...Pn)),Wn=Rn.indexOf(Math.max(...Rn));re[Vn][0]=0,re[Wn][1]="max"}h.value=re};vue.onMounted(()=>{vue.unref(J)&&(j(),window.addEventListener("scroll",x))}),vue.onBeforeUnmount(()=>{vue.unref(J)&&window.removeEventListener("scroll",x)});const Fn=useEmitEvent(c),{setGlobalModel:Bn}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(re,Pn)=>{}});Bn(c.id,{RECORD:vue.unref(f),value:vue.unref(f)});const w=re=>{Fn("tabChange",()=>{if(Bn(c.id,{RECORD:vue.unref(f),value:vue.unref(f)}),vue.unref(J)){const Pn=c.data[re].key;if(Pn){const Rn=vue.unref(vn).find(Vn=>Vn.key===Pn);if(Rn){const Wn=document.querySelector(`[cpntid="${Rn.anchor}"]`).getBoundingClientRect();v.value=!0,window.scrollTo({top:Wn.top+window.scrollY-vue.unref(g),behavior:"smooth"})}}}})()};return useOnEvent(c,{tabChange:w}),{style:u,active:f,pageMode:m,renderKey:d,tabChange:w}}}),NavTab_vue_vue_type_style_index_0_scoped_26cab677_lang="",_hoisted_1$9=["id"];function _sfc_render$i(c,u,f,d,h,v){const p=vue.resolveComponent("van-tab"),m=vue.resolveComponent("van-tabs");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-nav-tabs",style:vue.normalizeStyle(c.style),id:"container_"+c.id},[(vue.openBlock(),vue.createBlock(m,{active:c.active,"onUpdate:active":u[0]||(u[0]=g=>c.active=g),key:c.renderKey,shrink:c.isShrink,"title-inactive-color":c.tabColor,"title-active-color":c.activeTabColor,"line-width":c.tabLineWidth,"line-height":c.tabLineHeight,background:c.backgroundColor||"transparent",onChange:c.tabChange},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.data,(g,y)=>(vue.openBlock(),vue.createBlock(p,{key:y},{title:vue.withCtx(()=>[vue.createElementVNode("div",{style:vue.normalizeStyle({fontSize:c.tabFontSize,fontWeight:c.tabFontWeight})},vue.toDisplayString(g.title),5)]),_:2},1024))),128))]),_:1},8,["active","shrink","title-inactive-color","title-active-color","line-width","line-height","background","onChange"]))],12,_hoisted_1$9)}const NavTab=_export_sfc$1(_sfc_main$g,[["render",_sfc_render$i],["__scopeId","data-v-26cab677"]]),EcanNavTab=withInstall$1(NavTab),pieProps={...props$1,id:"",name:"饼图",keyName:"饼图",type:"ecanPie",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleLeft:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],backgroundColor:"",tooltipShow:!0,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c} ({d}%)",legendShow:!0,legendTextStyleColor:"#333",legendOrient:"vertical",legendTop:"top",legendLeft:"left",innerRadius:"0%",outerRadius:"60%",centerLeft:"50%",centerTop:"50%",minAngle:0,labelShow:!0,labelColor:"#333",labelWidth:100,labelOverflow:"none",isUseLabelColors:!1,labelFontSize:12,labelPosition:"outside",labelFormatter:"{b}\\n{d}%",labelLineShow:!0,labelLineLength:10,labelLineLength2:15,roseType:"",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},dataFieldConfigType:"value",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendFormatter:"{name}",legendFontSize:"12px",tooltipPosition:"",graphicType:"ecanPie",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,legendType:"",noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px"},pieComponentProps=transformToComponentProps(pieProps),pieEvents=["click","refreshData","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.PieChart,components$1.TitleComponent,components$1.ToolboxComponent,components$1.TooltipComponent,components$1.LegendComponent]);const _sfc_main$f=vue.defineComponent({name:"EcanPie",props:{...pieComponentProps},components:{Spin,Echarts,EcanModal},setup(c,{expose:u}){const f=vue.ref(!1),{pageMode:d,fontFamily:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),v=vue.inject("showIndDetail",Hn=>{}),p=vue.ref(),m=vue.ref(!1),g=usePickComponentStyle(c),y=vue.ref([]),b=vue.ref(),gn=vue.ref({}),x=vue.computed(()=>{let{data:Hn=[]}=vue.unref(y)[0]||{};if(Array.isArray(c.colors)){const Kn=c.isUseLabelColors,zn=c.colors;Hn=Hn.map((qn,tr)=>({label:Kn?{color:zn[tr]}:{},...qn}))}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:m.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 Kn;m.value=!0,(Kn=b.value)==null||Kn.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(){v(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},tooltip:{show:c.tooltipShow,trigger:c.tooltipTrigger,formatter:Kn=>{const{marker:zn,seriesName:qn,name:tr,value:Un,percent:nr,data:cr}=Kn||{};return hn(c.tooltipFormatter,{textData:{marker:zn,name:tr,value:Un,percent:nr,a:qn,b:tr,c:Un,d:nr,...cr}},{useNewline:!0,useSpace:!0})},textStyle:{color:c.tooltipTextStyleColor},position:c.tooltipPosition||void 0},legend:vue.unref(gn),color:c.colors,series:[{data:Hn,type:"pie",radius:[c.innerRadius,c.outerRadius],center:[c.centerLeft,c.centerTop],roseType:c.roseType,avoidLabelOverlap:!0,minAngle:c.minAngle,label:{show:c.labelPosition!=="center"&&c.labelShow,color:c.labelColor,fontSize:m.value?ZOOM_FONT_SIZE:c.labelFontSize,position:c.labelPosition,formatter:handleFormatter(c.labelFormatter),width:c.labelWidth,overflow:c.labelOverflow},labelLine:{show:c.labelLineShow,length:c.labelLineLength,length2:c.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}}),vn=()=>{var Kn,zn;const Hn=m.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize);gn.value={type:c.legendScroll?"scroll":"plain",width:c.legendWidth,height:c.legendHeight,show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,align:"left",textStyle:{lineHeight:Hn+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:Hn}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:(zn=(Kn=vue.unref(y)[0])==null?void 0:Kn.data)==null?void 0:zn.map(qn=>({name:qn.name,icon:c.legendType})),formatter:qn=>{const{data:tr}=y.value[0]||{};let Un=0,nr,cr="0%";if(tr)for(const Qn of tr)Qn.name===qn&&(nr=+Qn.value),Un+=+Qn.value;return Un&&(cr=`${(nr/Un*100).toFixed(2)}%`),getLegendFormat(c.legendFormatter,{name:qn,value:nr,percent:cr})}}},J=()=>{m.value=!1},{getGlobalModel:j,setGlobalModel:Fn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Hn=>{},setGlobalModel:(Hn,Kn)=>{}}),Bn=(Hn=[],Kn)=>{const{dataset:zn}=En(Hn,Kn);y.value=zn,zn!=null&&zn.length?f.value=!1:f.value=!0},w=(Hn=[],Kn)=>{var qn;const zn=En(Hn,Kn);y.value=zn.dataset,(qn=zn.dataset)!=null&&qn.length?f.value=!1:f.value=!0};vue.watch(()=>c.data,Hn=>{(c.dataType==="static"||vue.unref(d)==="design")&&Bn(Hn)},{immediate:!0,deep:!0}),vue.watch(()=>[c.legendShow,c.legendOrient,c.legendTop,c.legendLeft,c.legendTextStyleColor,c.labelFontSize,c.legendItemHeight,c.legendItemWidth,c.legendItemGap,c.legendFormatter,c.legendFontSize,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll,c.legendType],()=>{vn()},{immediate:!0});const re=vue.ref(!1),Pn=useRequestData(c),Rn=async()=>{var Hn,Kn;if(c.dataType==="request")try{re.value=!0;const zn=await Pn();Bn((Kn=(Hn=zn==null?void 0:zn.data)==null?void 0:Hn.data)==null?void 0:Kn.rows,c.valueTypeDataFieldNames)}catch(zn){console.error(zn)}finally{re.value=!1}},Vn=useEmitEvent(c);Fn(c.id,{type:c.type,RECORD:""});const Wn=Vn("click",Hn=>{const Kn=j(c.id);Fn(c.id,{...Kn,type:c.type,RECORD:Hn==null?void 0:Hn.data})}),Gn=Hn=>{var zn;const{data:Kn}=(Hn==null?void 0:Hn.data)||{};if(Kn){const{columns:qn=[],rows:tr=[]}=((zn=Hn==null?void 0:Hn.data)==null?void 0:zn.data)??{};let Un=[];if(qn.length>0){const nr=qn[0],cr=qn[1];Un=tr.filter(Qn=>!!Qn).map(Qn=>({name:Qn[nr],value:isNaN(Qn[cr])?0:Qn[cr]||0}))}w(Un)}},Zn=useIndicatorData(c,Hn=>{c.isViewRedrawing&&p.value.clear(),Gn(Hn)}),Xn=async()=>{try{re.value=!0;const Hn=await Zn();Gn(Hn)}catch(Hn){console.error(Hn)}finally{re.value=!1}},{loadedData:er}=vue.inject(LOADED_DATA,{loadedData:{}}),Jn=vue.ref(!1);vue.watch(er,Hn=>{if(c.dataType==="indicator"){const Kn=getFixedValueDatas(c.graphicConfig);Kn!=null&&Kn.length&&(!vue.unref(Jn)&&canRequestIndicator(c.graphicConfig,Hn)?(Jn.value=!0,ir()):canRequestIndicator(c.graphicConfig,Hn)||(Jn.value=!1))}},{deep:!0});const ir=async()=>{switch(c.dataType){case"indicator":canRequestIndicator(c.graphicConfig,vue.unref(er))&&await Xn();break;case"request":await Rn();break}};useOnEvent(c,{resetRecord:()=>{const Hn=c.id,Kn=j(Hn);Fn(Hn,{...Kn,RECORD:""})},refreshData:ir,click:Wn}),u({refreshData:ir});const{setRequest:sr}=vue.inject(REQUEST_MODEL,{setRequest:Hn=>{}});return typeof sr=="function"&&sr({id:c.id,requestFn:ir,sortNum:c.requestSort}),{option:x,style:g,click:Wn,onClose:J,loading:re,ecanModal:b,echartRef:p,emptyData:f}}}),Pie_vue_vue_type_style_index_0_lang="",Pie_vue_vue_type_style_index_1_scoped_c849b4bc_lang="";function _sfc_render$h(c,u,f,d,h,v){const p=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(p,{key:1,option:c.option,ref:"echartRef",autoresize:"",onClick:c.click},null,8,["option","onClick"]))]),_: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(p,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Pie=_export_sfc$1(_sfc_main$f,[["render",_sfc_render$h],["__scopeId","data-v-c849b4bc"]]),EcanPie=withInstall$1(Pie),barProps={...props$1,id:"",name:"柱状图",keyName:"柱状图",type:"ecanBar",width:"400px",height:"400px",top:"",left:"",rotate:"",xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisLineAlwaysDisplay:!1,data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:310,type:"类型一"},{name:"名称三",value:310,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{marker} {a} {c}",xAxisSplitLineShow:!0,xAxisSplitLineInterval:0,xAxisSplitAreaShow:!1,xAxisSplitLineStyleColor:"#333",xAxisLabelInterval:0,xAxisLabelColor:"#333",xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,yAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisLabelWidth:void 0,yAxisLabelRotate:0,yAxisLabelOverflow:"none",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",barWidth:"40%",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",isUseHorizontalAxis:!1,axisInverse:!1,xAxisInverse:!1,yAxisInverse:!1,isStack:!1,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{c}",toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,barBorderRadius:"",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,showBarBackground:!1,legendType:"",legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanBar",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",defaultRangeValue:!1,startValue:"",endValue:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px"},barComponentProps=transformToComponentProps(barProps),barEvents=["refreshData","click","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.BarChart,components$1.TitleComponent,components$1.LegendComponent,components$1.DatasetComponent,components$1.ToolboxComponent,components$1.MarkLineComponent]);const _sfc_main$e=vue.defineComponent({name:"EcanBar",props:{...barComponentProps},components:{Spin,Echarts,EcanModal,AModal:antDesignVue.Modal},setup(c,{expose:u}){const f=vue.ref(!1),{pageMode:d,fontFamily:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),v=vue.inject("showIndDetail",ar=>{}),p=vue.inject("usedComponentList",[]),m=vue.ref(),g=vue.ref(!1),y=vue.ref(!1),b=vue.ref(null),gn=vue.ref([]),x=usePickComponentStyle(c),vn=vue.ref([]),J=vue.ref(),j=vue.ref({});let Fn;const Bn=vue.computed(()=>g.value?ZOOM_FONT_SIZE:12),w=vue.computed(()=>{const{gradientShow:ar,gradientColors:ur,gradientOffset:mr,barBorderRadius:dr}=c,gr=vue.unref(vn),lr=gr.length,hr=[];for(let xr=0;xr<lr;xr++){const Sr={...gr[xr],type:"bar",barWidth:c.barWidth.value+c.barWidth.suffix,showBackground:c.showBarBackground};if(c.isStack&&(Sr.stack="stack"),Sr.label={show:c.labelShow,fontSize:c.labelFontSize,position:c.labelPosition,color:c.labelColor,width:c.labelWidth,overflow:c.labelOverflow,formatter:yr=>{let pr="",br=c.labelFormatter;br===""&&(br="{c}");const{seriesName:kr,name:wr,value:Er,data:Pr}=yr||{};return pr+=hn(br,{textData:{name:wr,value:Er,a:kr,b:wr,c:Er||0,...Pr}},{useNewline:!0,useSpace:!0}),pr}},Sr.itemStyle={},ar){let yr=c.colors[xr];if(!yr&&c.colors.length){const pr=(xr+1)%c.colors.length-1;yr=pr>0?c.colors[pr]:c.colors[0]}yr||(yr="#5470C6"),Sr.itemStyle={color:{x:c.isUseHorizontalAxis?1:0,y:0,x2:0,y2:c.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:yr},{offset:mr,color:ur[xr]},{offset:1,color:ur[xr]}]}}}if(dr){const yr=dr.split(",");if(yr!=null&&yr.length){const pr=[];for(const br of yr){const kr=parseFloat(br);isNaN(kr)||pr.push(kr)}Sr.itemStyle.borderRadius=pr}}c.isShowMarkLine&&(Sr.markLine={data:[{type:c.markLineType}]}),hr.push(Sr)}return hr}),re=vue.ref([]),Pn=vue.ref(!1),Rn=vue.computed(()=>{const ar=c.yAxisLabelFormatter,ur=c.xAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(h)},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,feature:{myLocation:{show:g.value?!1:c.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){y.value=!0;const mr=m.value.chart.getOption(),{xAxis:dr}=mr||{};dr&&dr.length&&(gn.value=dr[0].data)}},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 mr;g.value=!0,(mr=J.value)==null||mr.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(){v(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",show:c.tooltipShow,formatter:mr=>{var hr;const dr=mr.length;let gr="",lr=c.tooltipFormatter;Fn=(hr=mr[0])==null?void 0:hr.data,lr===""&&(lr="{marker} {a} {c}");for(let xr=0;xr<dr;xr++){const{marker:Sr,seriesName:yr,name:pr,value:br,data:kr}=mr[xr]||{};if(xr===0){let wr=pr;typeof pr=="string"&&pr[0]==="0"&&!isNaN(+pr)&&(wr=(+pr).toString()),gr+=`${In(ur,wr)}<br/>`}gr+=hn(lr,{textData:{marker:Sr,name:pr,value:br,a:yr,b:pr,c:kr.sourceValue||br||0,...kr}},{useNewline:!0,useSpace:!0}),gr+="<br/>"}return gr},textStyle:{color:c.tooltipTextStyleColor,fontSize:Bn.value},position:c.tooltipPosition||void 0},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(vn).map((mr,dr)=>({name:mr.name,itemStyle:{color:c.colors[dr]},icon:c.legendType})),formatter:mr=>getLegendFormat(c.legendFormatter,{name:mr})},xAxis:{type:c.isUseHorizontalAxis?"value":"category",data:c.isUseHorizontalAxis?null:vue.unref(Zn),inverse:c.isUseHorizontalAxis?c.xAxisInverse:c.axisInverse,minInterval:c.xAxisMinInterval,splitLine:{show:c.xAxisSplitLineShow,lineStyle:{color:c.xAxisSplitLineStyleColor,type:c.xAxisSplitLineType},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(mr){return typeof mr=="string"&&mr[0]==="0"&&!isNaN(+mr)&&(mr=(+mr).toString()),In(ur,mr)}},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:c.isUseHorizontalAxis?"category":"value",data:c.isUseHorizontalAxis?vue.unref(re):null,inverse:c.isUseHorizontalAxis?c.axisInverse:c.yAxisInverse,minInterval:c.yAxisMinInterval,splitLine:{show:c.yAxisSplitLineShow,lineStyle:{color:c.yAxisSplitLineStyleColor,type:c.yAxisSplitLineType}},splitArea:{show:c.yAxisSplitAreaShow},axisTick:{show:c.yAxisTickShow},axisLabel:{show:c.yAxisLabelShow,fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,rotate:c.yAxisLabelRotate,width:c.yAxisLabelWidth,overflow:c.yAxisLabelOverflow,formatter(mr){return In(ar,mr)}},axisLine:{show:c.yAxisLineAlwaysDisplay,lineStyle:{color:c.yAxisLineStyleColor}},name:c.yAxisName,nameTextStyle:{fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,align:"right"},max:c.yAxisMaxValue||null},series:vue.unref(w)}}),Vn=()=>{g.value=!1},Wn=(ar=[],ur=!1)=>{var dr,gr,lr;let mr={};if(c.dataFieldConfigType==="key"){const hr=ur?c.keyTypeDataFieldNames:null;mr=Mn(ar,hr)}else if(c.dataFieldConfigType==="value"){const hr=ur?c.valueTypeDataFieldNames:null;mr=En(ar,hr)}if(vn.value=mr.dataset,(dr=vue.unref(vn))!=null&&dr.length){for(const hr of vue.unref(vn))if((gr=hr==null?void 0:hr.data)!=null&&gr.length)for(const xr of hr.data)xr.sourceValue=xr.value,xr.value=parseFloat(xr.value)}re.value=mr.dimensions,(lr=mr.dataset)!=null&&lr.length?f.value=!1:f.value=!0},Gn=(ar=[],ur,mr=!1)=>{var lr;const gr=Mn(ar,mr?ur:null,!0);c.defaultRangeValue&&setDefaultRangeVal({props:c,componentList:vue.unref(p),getGlobalModel:nr},gr),vn.value=gr.dataset,re.value=gr.dimensions,(lr=gr.dataset)!=null&&lr.length?f.value=!1:f.value=!0},Zn=vue.computed(()=>vue.unref(re).map(ar=>{let ur={};return ar&&typeof ar=="object"?ur={...ar}:ur={value:ar},ur}));vue.watch(()=>[c.data,c.labelFormatter,c.legendFormatter,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll],([ar])=>{(c.dataType==="static"||vue.unref(d)==="design")&&Wn(ar)},{immediate:!0,deep:!0});const Xn=useRequestData(c),er=async()=>{var ar,ur;try{Pn.value=!0;const mr=await Xn();Wn((ur=(ar=mr==null?void 0:mr.data)==null?void 0:ar.data)==null?void 0:ur.rows,!0)}catch(mr){console.error(mr)}finally{Pn.value=!1}},Jn=ar=>{var hr;const{columns:ur=[],rows:mr=[]}=((hr=ar==null?void 0:ar.data)==null?void 0:hr.data)??{};let dr;ur.length>0&&(dr={name:ur[0],types:ur.slice(1).map(xr=>({label:xr,value:xr}))});const{leftAxisList:gr=[]}=c.graphicConfig,lr=gr.filter(xr=>xr.show).map(xr=>xr.label);for(const xr of mr)if(xr)for(const Sr in xr)typeof xr[Sr]=="string"&&lr.includes(Sr)&&!isNaN(parseFloat(xr[Sr]))&&(xr[Sr]=parseFloat(xr[Sr]));Gn(mr,dr,!0)},ir=useIndicatorData(c,ar=>{c.isViewRedrawing&&m.value.clear(),Jn(ar)}),or=async()=>{try{Pn.value=!0;const ar=await ir();Jn(ar)}catch(ar){console.error(ar)}finally{Pn.value=!1}},{loadedData:sr}=vue.inject(LOADED_DATA,{loadedData:{}}),Hn=vue.ref(!1);vue.watch(sr,ar=>{if(c.dataType==="indicator"){const ur=getFixedValueDatas(c.graphicConfig);ur!=null&&ur.length&&(!vue.unref(Hn)&&canRequestIndicator(c.graphicConfig,ar)?(Hn.value=!0,Kn()):canRequestIndicator(c.graphicConfig,ar)||(Hn.value=!1))}},{deep:!0});const Kn=async()=>{switch(c.dataType){case"indicator":canRequestIndicator(c.graphicConfig,vue.unref(sr))&&await or();break;case"request":await er();break}},zn=(ar,ur)=>!!vue.unref(gn)[ur.value].value.includes(ar),qn=async()=>{y.value=!1;const ar=m.value.chart.getOption();for(let ur=0;ur<7;ur++)await tr(ar,ur)},tr=(ar,ur)=>new Promise(mr=>{setTimeout(()=>{const{series:dr,color:gr,xAxis:lr}=ar,hr=m.value.chart,{splitArea:xr={}}=lr[0]||{};dr.forEach((Sr,yr)=>{const pr=Sr.data;let br="";ur%2?br=gr[yr]+"a8":br=gr[yr],pr[b.value].itemStyle={color:br}}),ur%2?(xr.show=!0,xr.areaStyle.color=vue.unref(gn).map((Sr,yr)=>yr===b.value?"#ff003b26":"")):xr.show=!1,hr.setOption({series:dr,xAxis:lr}),mr()},200)});u({refreshData:Kn});const Un=useEmitEvent(c),{getGlobalModel:nr,setGlobalModel:cr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:ar=>{},setGlobalModel:(ar,ur)=>{}});cr(c.id,{type:c.type,RECORD:""});const Qn=Un("click",ar=>{const ur=nr(c.id);cr(c.id,{...ur,type:c.type,RECORD:c.tooltipShow?Fn:ar.data})}),{setRequest:fr}=vue.inject(REQUEST_MODEL,{setRequest:ar=>{}});typeof fr=="function"&&fr({id:c.id,requestFn:Kn,sortNum:c.requestSort});const vr=()=>{const ar=c.id,ur=nr(ar);cr(ar,{...ur,RECORD:""})},Yn=ar=>{m.value.chart.containPixel("grid",[ar.offsetX,ar.offsetY])&&Qn()};return c.tooltipShow?j.value["zr:click"]=Yn:j.value.click=Qn,useOnEvent(c,{refreshData:Kn,click:Qn,resetRecord:vr}),{option:Rn,style:x,refreshData:Kn,click:Qn,loading:Pn,onClose:Vn,ecanModal:J,echartRef:m,handleLocationOk:qn,onFilterOption:zn,locationVisible:y,locationValue:b,locationNames:gn,eventObj:j,emptyData:f}}}),Bar_vue_vue_type_style_index_0_lang="",Bar_vue_vue_type_style_index_1_scoped_1e0be510_lang="",_withScopeId$3=c=>(vue.pushScopeId("data-v-1e0be510"),c=c(),vue.popScopeId(),c),_hoisted_1$8={class:"location-wrap"},_hoisted_2$5=_withScopeId$3(()=>vue.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function _sfc_render$g(c,u,f,d,h,v){const p=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal"),y=vue.resolveComponent("a-select-option"),b=vue.resolveComponent("a-select"),gn=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-bar",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(p,vue.mergeProps({key:1,ref:"echartRef",option:c.option,"update-options":{notMerge:!0},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(p,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),vue.createVNode(gn,{visible:c.locationVisible,"onUpdate:visible":u[1]||(u[1]=x=>c.locationVisible=x),title:"快速定位",onOk:c.handleLocationOk},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$8,[_hoisted_2$5,vue.createVNode(b,{value:c.locationValue,"onUpdate:value":u[0]||(u[0]=x=>c.locationValue=x),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":c.onFilterOption},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.locationNames,(x,vn)=>(vue.openBlock(),vue.createBlock(y,{key:vn,value:vn},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(x.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const Bar=_export_sfc$1(_sfc_main$e,[["render",_sfc_render$g],["__scopeId","data-v-1e0be510"]]),EcanBar=withInstall$1(Bar),scatterProps={...props$1,id:"",name:"散点图",keyName:"散点图",type:"ecanScatter",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:233,value:335},{name:556,value:310},{name:56,value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",tooltipShow:!0,tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c}",legendShow:!1,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:10,symbolColor:"",xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelColor:"#333",xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelFormatter:"{value}",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",dataFieldNames:{name:"name",value:"value"},gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanScatter",tooltipPosition:"",yAxisName:"",xAxisName:"",showXAxisLineArrow:!1,showYAxisLineArrow:!1,xAxisLineInverse:!1,yAxisLineInverse:!1,yAxisTickShow:!0,xAxisMarkLineValue:[],yAxisMarkLineValue:[],axisMarkArea:[],xAxisMax:null,xAxisMin:null,yAxisMax:null,yAxisMin:null,xAxisLabelShow:!0,crossShow:!0,noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px"},scatterComponentProps=transformToComponentProps(scatterProps),scatterEvents=["click","refreshData","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.ScatterChart,components$1.ToolboxComponent,components$1.TitleComponent,components$1.TooltipComponent,components$1.LegendComponent,components$1.MarkLineComponent,components$1.MarkAreaComponent]);const _sfc_main$d=vue.defineComponent({name:"EcanScatter",props:{...scatterComponentProps},components:{Spin,Echarts,EcanModal},setup(c,{expose:u}){const f=vue.ref(!1),{pageMode:d,fontFamily:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),v=vue.inject("showIndDetail",Yn=>{}),p=vue.ref(),m=vue.ref(!1),g=usePickComponentStyle(c),y=vue.ref([]),b=vue.ref(),gn=vue.computed(()=>m.value?ZOOM_FONT_SIZE:12),x=vue.ref(),vn=vue.ref(),J=vue.ref(),j=vue.ref(),Fn=vue.inject("componentList",[]),Bn=vue.ref({}),{loadedData:w}=vue.inject(LOADED_DATA,{loadedData:{}}),re=vue.ref({}),Pn=vue.computed(()=>{const{xAxisMarkLineValue:Yn=[],yAxisMarkLineValue:ar=[]}=c,ur=Yn.concat(ar),mr=[];for(const dr of ur){let gr=dr.value;const lr=gr.match(/\{(.+?)\}/g);if(lr!=null&&lr.length){for(const xr of lr)gr=gr.replace(xr,xr.slice(1,-1));const hr=vue.unref(Fn).find(xr=>xr.keyName===gr);hr!=null&&hr.id&&!mr.find(xr=>xr.keyName===gr)&&mr.push({componentId:hr.id,keyName:hr.keyName})}}return mr});vue.watch(w,Yn=>{var ar;if((ar=vue.unref(Pn))!=null&&ar.length)for(const ur of vue.unref(Pn)){const{componentId:mr,keyName:dr}=ur;if(Yn[mr]){const gr=Zn(mr);re.value[dr]=gr.value}else delete re.value[dr]}},{deep:!0});const Rn=vue.computed(()=>{const{xAxisMarkLineValue:Yn=[],yAxisMarkLineValue:ar=[]}=c,ur=Yn.map(gr=>({...gr,x:!0})),mr=ar.map(gr=>({...gr,y:!0})),dr=ur.concat(mr);if(dr!=null&&dr.length){const gr=[];for(const lr of dr){const hr={label:{show:!0,formatter:"",rich:{ft:{}}}},xr={};let Sr=lr.value;const yr=Sr.match(/\{(.+?)\}/g);let pr="";if(hr.label.formatter=lr.label?`{ft|${lr.label}}`:"",(lr.offsetHorizontal||lr.offsetVertical)&&(lr.x?hr.label.rich.ft.padding=[0,lr.offsetHorizontal||0,lr.offsetVertical||0,0]:lr.y&&(hr.label.rich.ft.padding=[lr.offsetVertical||0,0,0,lr.offsetHorizontal||0])),lr.labelColor&&(hr.label.rich.ft.color=lr.labelColor),lr.lineColor&&(xr.color=lr.lineColor),lr.x?pr="xAxis":lr.y&&(pr="yAxis"),yr!=null&&yr.length){for(const br of yr)Sr=Sr.replace(br,br.slice(1,-1));if(Sr){let br;re.value[Sr]?br=vue.unref(re)[Sr]:br=pn(Sr,{max:lr.x?vue.unref(x):lr.y?vue.unref(J):0,min:lr.x?vue.unref(vn):lr.y?vue.unref(j):0}),isNaN(+br)||gr.push({[pr]:+br,lineStyle:xr,...hr})}}else isNaN(+lr.value)||gr.push({[pr]:lr.value,lineStyle:xr,...hr})}return{symbol:["none","none"],data:gr}}else return{data:[]}});function Vn(Yn,ar,ur){switch(ar){case"startX":Yn[0].coord[0]=+ur;break;case"startY":Yn[0].coord[1]=+ur;break;case"endX":Yn[1].coord[0]=+ur;break;case"endY":Yn[1].coord[1]=+ur;break}}const Wn=vue.computed(()=>{const{axisMarkArea:Yn=[]}=c;if(Yn!=null&&Yn.length){const ar=[];for(const ur of Yn){const mr=[{name:"",coord:[],itemStyle:{color:ur.color}},{coord:[]}];for(const dr in ur)if(dr!=="color"){let gr=ur[dr];const lr=gr.match(/\{(.+?)\}/g);if(lr!=null&&lr.length){for(const hr of lr)gr=gr.replace(hr,hr.slice(1,-1));if(gr){const hr=pn(gr,{xMax:vue.unref(x),xMin:vue.unref(vn),yMax:vue.unref(J),yMin:vue.unref(j)});isNaN(+hr)||Vn(mr,dr,hr)}}else isNaN(+ur[dr])||Vn(mr,dr,ur[dr])}mr.every(dr=>{var gr;return(gr=dr.coord)==null?void 0:gr.length})&&ar.push(mr)}return{data:ar}}else return{data:[]}}),Gn=vue.computed(()=>{const Yn=c.xAxisLabelFormatter,ar=c.yAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(h)},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,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:m.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 ur;m.value=!0,(ur=b.value)==null||ur.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(){v(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,xAxis:{z:5,splitLine:{show:c.xAxisSplitLineShow,lineStyle:{color:c.xAxisSplitLineStyleColor},interval:c.xAxisSplitLineInterval},splitArea:{show:c.xAxisSplitAreaShow},axisLabel:{show:c.xAxisLabelShow,fontSize:c.xAxisLabelFontSize,color:c.xAxisLabelColor,interval:c.xAxisLabelInterval||0,rotate:c.xAxisLabelRotate,width:c.xAxisLabelWidth,overflow:c.xAxisLabelOverflow,formatter(ur){return typeof ur=="string"&&ur[0]==="0"&&!isNaN(+ur)&&(ur=(+ur).toString()),In(Yn,ur)}},axisLine:{lineStyle:{color:c.xAxisLineStyleColor},symbol:["none",c.showXAxisLineArrow?"arrow":"none"],symbolSize:[8,12],onZero:!1},axisTick:{show:c.xAxisTickShow},name:c.xAxisName,nameLocation:c.xAxisLineInverse?"start":"end",nameTextStyle:{fontSize:c.xAxisLabelFontSize,color:c.xAxisLabelColor,align:"left"},inverse:c.xAxisLineInverse,max:c.xAxisMax,min:c.xAxisMin},yAxis:{z:5,splitLine:{show:c.yAxisSplitLineShow,lineStyle:{color:c.yAxisSplitLineStyleColor,type:c.yAxisSplitLineType}},axisTick:{show:c.yAxisTickShow},splitArea:{show:c.yAxisSplitAreaShow},axisLabel:{show:c.yAxisLabelShow,fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,formatter(ur){return In(ar,ur)}},axisLine:{show:c.yAxisLineAlwaysDisplay,lineStyle:{color:c.yAxisLineStyleColor},symbol:["none",c.showYAxisLineArrow?"arrow":"none"],symbolSize:[8,12],onZero:!1},name:c.yAxisName,nameLocation:c.yAxisLineInverse?"start":"end",nameTextStyle:{fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,align:"right"},inverse:c.yAxisLineInverse,max:c.yAxisMax,min:c.yAxisMin},tooltip:{show:c.tooltipShow,trigger:c.tooltipTrigger,formatter(ur){var Sr;const{marker:mr,seriesName:dr,componentType:gr}=ur,lr=((Sr=ur==null?void 0:ur.data)==null?void 0:Sr.record)??{},hr=lr[vue.unref(Jn).name],xr=lr[vue.unref(Jn).value];return["markLine","markArea"].includes(gr)?"":hn(c.tooltipFormatter,{textData:{marker:mr,seriesName:dr,a:dr,b:hr,c:xr,...lr}},{useNewline:!0,useSpace:!0})},axisPointer:{type:c.crossShow||c.crossShow===void 0?"cross":""},textStyle:{fontSize:gn.value},position:c.tooltipPosition||void 0},legend:{show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,textStyle:{color:c.legendTextStyleColor,fontSize:gn.value}},series:[{data:vue.unref(y),type:"scatter",symbolSize:c.symbolSize,itemStyle:{color:c.symbolColor},markLine:Rn.value,markArea:Wn.value}]}}),{getGlobalModel:Zn,setGlobalModel:Xn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Yn=>{},setGlobalModel:(Yn,ar)=>{}}),er=()=>{var ur,mr;const Yn=(ur=vue.unref(p))==null?void 0:ur.chart.getModel().getComponent("yAxis").axis.scale._extent,ar=(mr=vue.unref(p))==null?void 0:mr.chart.getModel().getComponent("xAxis").axis.scale._extent;ar&&Yn&&(vn.value=ar[0],x.value=ar[1],j.value=Yn[0],J.value=Yn[1])},Jn=vue.computed(()=>{let Yn=c.dataFieldNames;if(c.dataType==="indicator"){const{formFields:ar={}}=c.graphicConfig;ar!=null&&ar.labelField&&(ar!=null&&ar.valueField)&&(Yn={name:ar.labelField,value:ar.valueField})}return Yn}),ir=(Yn=[])=>{var mr;const{name:ar="name",value:ur="value"}=vue.unref(Jn)||{};y.value=Yn.map(dr=>({value:[dr[ar],dr[ur]],record:dr})),setTimeout(()=>{er()},0),(mr=y.value)!=null&&mr.length?f.value=!1:f.value=!0};vue.watch(()=>c.data,Yn=>{(c.dataType==="static"||vue.unref(d)==="design")&&ir(Yn)},{immediate:!0,deep:!0});const or=vue.ref(!1),sr=useRequestData(c),Hn=async()=>{var Yn,ar;if(c.dataType==="request"){or.value=!0;try{const ur=await sr();ir((ar=(Yn=ur==null?void 0:ur.data)==null?void 0:Yn.data)==null?void 0:ar.rows)}catch(ur){console.error(ur)}finally{or.value=!1}}},Kn=()=>{m.value=!1},zn=useEmitEvent(c);Xn(c.id,{type:c.type,RECORD:""});const qn=zn("click",Yn=>{const ar=c.id,ur=Zn(ar);Xn(ar,{...ur,type:c.type,RECORD:Yn==null?void 0:Yn.data})}),tr=Yn=>{p.value.chart.containPixel("grid",[Yn.offsetX,Yn.offsetY])&&qn()};c.tooltipShow?Bn.value["zr:click"]=tr:Bn.value.click=qn;const Un=Yn=>{var ar,ur;ir((ur=(ar=Yn==null?void 0:Yn.data)==null?void 0:ar.data)==null?void 0:ur.rows)},nr=useIndicatorData(c,Yn=>{c.isViewRedrawing&&p.value.clear(),Un(Yn)}),cr=async()=>{try{or.value=!0;const Yn=await nr();Un(Yn)}catch(Yn){console.error(Yn)}finally{or.value=!1}},Qn=async()=>{switch(c.dataType){case"indicator":await cr();break;case"request":await Hn();break}};useOnEvent(c,{refreshData:Qn,click:qn,resetRecord:()=>{const Yn=c.id,ar=Zn(Yn);Xn(Yn,{...ar,RECORD:""})}});const{setRequest:vr}=vue.inject(REQUEST_MODEL,{setRequest:Yn=>{}});return typeof vr=="function"&&vr({id:c.id,requestFn:Qn,sortNum:c.requestSort}),u({refreshData:Qn}),{option:Gn,style:g,click:qn,loading:or,onClose:Kn,ecanModal:b,echartRef:p,emptyData:f,eventObj:Bn}}}),Scatter_vue_vue_type_style_index_0_lang="",Scatter_vue_vue_type_style_index_1_scoped_821a4358_lang="";function _sfc_render$f(c,u,f,d,h,v){const p=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(p,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(p,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Scatter=_export_sfc$1(_sfc_main$d,[["render",_sfc_render$f],["__scopeId","data-v-821a4358"]]),EcanScatter=withInstall$1(Scatter),customGraphProps={...props$1,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},customGraphComponentProps=transformToComponentProps(customGraphProps),_sfc_main$c=vue.defineComponent({name:"EcanCustomGraph",props:{...customGraphComponentProps},components:{Echarts},setup(c){const u=usePickComponentStyle(c),f=vue.ref();return vue.watch(()=>c.optionCode,d=>{try{const h=eval;f.value=h(d)}catch(h){console.error(h)}},{immediate:!0}),{style:u,myOption:f,echarts:echarts__namespace}}});function _sfc_render$e(c,u,f,d,h,v){const p=vue.resolveComponent("echarts");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(c.style)},[vue.createVNode(p,{option:c.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const CustomGraph=_export_sfc$1(_sfc_main$c,[["render",_sfc_render$e]]),EcanCustomGraph=withInstall$1(CustomGraph),comboGraphProps={...props$1,id:"",name:"组合图表",keyName:"组合图表",type:"ecanComboGraph",width:"400px",height:"400px",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:410,type:"类型一"},{name:"名称三",value:210,type:"类型一"},{name:"名称一",value:510,type:"类型二"},{name:"名称二",value:731,type:"类型二"},{name:"名称三",value:910,type:"类型二"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {a} {c}",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelWidth:void 0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisMinInterval:0,yAxisLeftSplitLineShow:!0,yAxisRightSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",seriesTypes:[{type:"bar",axisIndex:0},{type:"line",axisIndex:0}],yAxis:[{axisLabelFormatter:"{value}"},{axisLabelFormatter:"{value}"}],gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,symbolSize:4,lineStyleWidth:2,smooth:!1,barWidth:"40%",barBorderRadius:"",areaGradientShow:!1,areaGradientColor:"",yAxisLabelShow:!0,yAxisLeftSplitLineType:"solid",yAxisRightSplitLineType:"solid",gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,legendType:"",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanComboGraph",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisLeftName:"",yAxisRightName:"",xAxisName:"",defaultRangeValue:!1,startValue:"",endValue:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,yAxisLeftUnitAdapt:!1,yAxisRightUnitAdapt:!1,noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px",labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{c}"},comboGraphComponentProps=transformToComponentProps(comboGraphProps),comboGraphEvents=["refreshData","click","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.BarChart,charts.LineChart,components$1.TitleComponent,components$1.LegendComponent,components$1.DatasetComponent,components$1.ToolboxComponent,components$1.MarkLineComponent]);const _sfc_main$b=vue.defineComponent({name:"EcanComboGraph",props:{...comboGraphComponentProps},components:{Spin,Echarts,EcanModal,AModal:antDesignVue.Modal},setup(c,{expose:u}){const f=vue.ref(!1),{pageMode:d,fontFamily:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),v=vue.inject("showIndDetail",lr=>{}),p=vue.inject("usedComponentList",[]),{getGlobalModel:m,setGlobalModel:g}=vue.inject(GLOBAL_MODEL,{getGlobalModel:lr=>{},setGlobalModel:(lr,hr)=>{}}),y=vue.ref(),b=vue.ref(!1),gn=vue.ref(!1),x=vue.ref(null),vn=vue.ref([]),J=vue.ref({});let j;const Fn=usePickComponentStyle(c),Bn=vue.ref([]),w=vue.ref([]),re=vue.ref(),Pn=vue.ref([]),Rn=vue.ref([0,0]),Vn=vue.computed(()=>b.value?ZOOM_FONT_SIZE:12),Wn=vue.computed(()=>({textStyle:{fontFamily:vue.unref(h)},title:{text:c.titleText,subtext:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,feature:{myLocation:{show:b.value?!1:c.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){gn.value=!0;const lr=y.value.chart.getOption(),{xAxis:hr}=lr||{};hr&&hr.length&&(vn.value=hr[0].data)}},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:b.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 lr;b.value=!0,(lr=re.value)==null||lr.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(){v(c)}}}},grid:{top:c.gridTop,bottom:c.gridBottom,left:c.gridLeft,right:c.gridRight,containLabel:c.gridContainLabel},color:c.colors,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:(b.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:b.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:vue.unref(Pn).map((lr,hr)=>({name:lr.name,itemStyle:{color:c.colors[hr]},icon:c.legendType})),formatter:lr=>getLegendFormat(c.legendFormatter,{name:lr})},tooltip:{trigger:"axis",show:c.tooltipShow,formatter:lr=>{var pr;const hr=lr.length;let xr="",Sr=c.tooltipFormatter;j=(pr=lr[0])==null?void 0:pr.data,Sr===""&&(Sr="{marker} {a} {c}");const yr=c.seriesTypes;for(let br=0;br<hr;br++){const kr=yr[br],{tooltipFormatter:wr}=kr||{},{marker:Er,seriesName:Pr,name:Dr,value:qr,data:Rr}=lr[br]||{};if(br===0){let Fr=Dr;typeof Dr=="string"&&Dr[0]==="0"&&!isNaN(+Dr)&&(Fr=(+Dr).toString()),xr+=`${In(c.xAxisLabelFormatter,Fr)}<br/>`}xr+=hn(wr||Sr,{textData:{marker:Er,name:Dr,value:qr,seriesName:Pr,a:Pr,b:Dr,c:qr||0,...Rr}},{useNewline:!0,useSpace:!0}),xr+="<br/>"}return xr},textStyle:{color:c.tooltipTextStyleColor,fontSize:Vn.value},position:c.tooltipPosition||void 0},xAxis:{minInterval:c.xAxisMinInterval,type:"category",data:vue.unref(w).map(lr=>{let hr={};return lr&&typeof lr=="object"?hr={...lr}:hr={value:lr},hr}),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(lr){return typeof lr=="string"&&lr[0]==="0"&&!isNaN(+lr)&&(lr=(+lr).toString()),In(c.xAxisLabelFormatter,lr)}},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:vue.unref(or),series:vue.unref(Bn)})),Gn=()=>{b.value=!1},Zn=lr=>{const hr=[];let xr=0;return c.seriesTypes.forEach((Sr,yr)=>{var pr,br;Sr.axisIndex===lr&&((br=(pr=vue.unref(Pn)[yr])==null?void 0:pr.data)!=null&&br.length)&&hr.push(...vue.unref(Pn)[yr].data.map(kr=>+kr.value))}),hr.some(Sr=>Sr>=1e7)?xr=4:hr.some(Sr=>Sr>=1e6)?xr=3:hr.some(Sr=>Sr>=1e4)&&(xr=1),xr},Xn=()=>{Rn.value[0]=c.yAxisLeftUnitAdapt?Zn(0):0,Rn.value[1]=c.yAxisRightUnitAdapt?Zn(1):0},er=(lr=[],hr=!1)=>{var yr;let xr;if(c.dataFieldConfigType==="key"){const pr=hr?c.keyTypeDataFieldNames:null;xr=Mn(lr,pr,!0)}else if(c.dataFieldConfigType==="value"){const pr=hr?c.valueTypeDataFieldNames:null;xr=En(lr,pr)}w.value=xr.dimensions;const Sr=xr.dataset;Pn.value=xr.dataset,Bn.value=ir(Sr),Xn(),(yr=xr.dataset)!=null&&yr.length?f.value=!1:f.value=!0},Jn=(lr=[],hr,xr=!1)=>{var br;const yr=Mn(lr,xr?hr:null,!0);c.defaultRangeValue&&setDefaultRangeVal({props:c,componentList:vue.unref(p),getGlobalModel:m},yr),w.value=yr.dimensions;const pr=yr.dataset;Pn.value=yr.dataset,Bn.value=ir(pr),Xn(),(br=yr.dataset)!=null&&br.length?f.value=!1:f.value=!0};function ir(lr){const hr=[],xr=lr.length,Sr=c.seriesTypes;for(let yr=0;yr<xr;yr++){const pr=Sr[yr],{type:br,axisIndex:kr}=pr||{};let wr={type:br,yAxisIndex:kr,...lr[yr]},Er=c.colors[yr];if(!Er&&c.colors.length){const Pr=(yr+1)%c.colors.length-1;Er=Pr>0?c.colors[Pr]:c.colors[0]}if(Er||(Er="#5470C6"),br==="line"){const Pr={};c.shadowColor&&(Pr.shadowColor=c.shadowColor,Pr.shadowBlur=c.shadowBlur,Pr.shadowOffsetY=c.shadowOffsetY,Pr.shadowOffsetX=c.shadowOffsetX),wr={...wr,symbolSize:c.symbolSize,smooth:c.smooth,itemStyle:{color:Er},areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:Er},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:Er,opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...Pr}}}if(br==="bar"){const{gradientShow:Pr,gradientColors:Dr,gradientOffset:qr}=c,Rr={color:Er};if(c.barBorderRadius){const Fr=c.barBorderRadius.split(",");if(Fr!=null&&Fr.length){const jr=[];for(const Nr of Fr){const Ur=parseFloat(Nr);isNaN(Ur)||jr.push(Ur)}Rr.borderRadius=jr}}Pr&&(Rr.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:Er},{offset:qr,color:Dr[yr]},{offset:1,color:Dr[yr]}]}),wr={...wr,barWidth:c.barWidth.value+c.barWidth.suffix,itemStyle:Rr,label:{show:c.labelShow,fontSize:c.labelFontSize,position:c.labelPosition,color:c.labelColor,width:c.labelWidth,overflow:c.labelOverflow,formatter:Fr=>{let jr="",Nr=c.labelFormatter;Nr===""&&(Nr="{c}");const{seriesName:Ur,name:Qr,value:Wr,data:ri}=Fr||{};return jr+=hn(Nr,{textData:{name:Qr,value:Wr,a:Ur,b:Qr,c:Wr||0,...ri}},{useNewline:!0,useSpace:!0}),jr}}}}c.isShowMarkLine&&(wr.markLine={data:[{type:c.markLineType}]}),hr.push(wr)}return hr}vue.watch(()=>[c.data,c.seriesTypes,c.symbolSize,c.smooth,c.areaStyleOpacity,c.lineStyleWidth,c.barWidth,c.barBorderRadius,c.areaGradientShow,c.areaGradientColor,c.gradientShow,c.gradientColors,c.gradientOffset,c.shadowColor,c.shadowBlur,c.shadowOffsetY,c.shadowOffsetX,c.legendFontSize,c.xAxisLabelFormatter,c.isShowMarkLine,c.markLineType,c.legendFormatter,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll,c.yAxisLeftUnitAdapt,c.yAxisRightUnitAdapt,c.labelFormatter,c.labelPosition,c.labelShow,c.labelFontSize,c.labelColor,c.labelWidth,c.labelOverflow],([lr])=>{(c.dataType==="static"||vue.unref(d)==="design")&&er(lr)},{immediate:!0,deep:!0});const or=vue.computed(()=>{const lr=c.yAxis;return lr==null?void 0:lr.map((hr,xr)=>{const Sr=Rn.value[xr];let yr;return Sr&&(yr=1e4*Math.pow(10,Sr-1)),{type:"value",minInterval:c.yAxisMinInterval,splitLine:{show:xr===0?c.yAxisLeftSplitLineShow:c.yAxisRightSplitLineShow,lineStyle:{color:c.yAxisSplitLineStyleColor,type:xr===0?c.yAxisLeftSplitLineType:c.yAxisRightSplitLineType}},splitArea:{show:c.yAxisSplitAreaShow},axisLabel:{show:c.yAxisLabelShow,fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,formatter(pr){let br=pr;return yr&&(br=(+pr/yr).toString()),In(hr.axisLabelFormatter,br)}},axisLine:{show:c.yAxisLineAlwaysDisplay,lineStyle:{color:c.yAxisLineStyleColor}},name:sr(Sr)+(xr===0?c.yAxisLeftName:c.yAxisRightName),nameTextStyle:{fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,align:xr===0?"right":"left"},max:c.yAxisMaxValue||null}})});function sr(lr){let hr="";switch(lr){case 1:hr="万";break;case 3:hr="百万";break;case 4:hr="千万";break}return hr}const Hn=vue.ref(!1),Kn=useRequestData(c),zn=async()=>{var lr,hr;if(c.dataType==="request")try{Hn.value=!0;const xr=await Kn();er((hr=(lr=xr==null?void 0:xr.data)==null?void 0:lr.data)==null?void 0:hr.rows,!0)}catch(xr){console.error(xr)}finally{Hn.value=!1}},qn=lr=>{var yr;const{columns:hr=[],rows:xr=[]}=((yr=lr==null?void 0:lr.data)==null?void 0:yr.data)??{};let Sr;hr.length>0&&(Sr={name:hr[0],types:hr.slice(1).map(pr=>({label:pr,value:pr}))}),Jn(xr,Sr,!0)},tr=useIndicatorData(c,lr=>{c.isViewRedrawing&&y.value.clear(),qn(lr)}),Un=async()=>{try{Hn.value=!0;const lr=await tr();qn(lr)}catch(lr){console.error(lr)}finally{Hn.value=!1}},{loadedData:nr}=vue.inject(LOADED_DATA,{loadedData:{}}),cr=vue.ref(!1);vue.watch(nr,lr=>{if(c.dataType==="indicator"){const hr=getFixedValueDatas(c.graphicConfig);hr!=null&&hr.length&&(!vue.unref(cr)&&canRequestIndicator(c.graphicConfig,lr)?(cr.value=!0,Qn()):canRequestIndicator(c.graphicConfig,lr)||(cr.value=!1))}},{deep:!0});const Qn=async()=>{switch(c.dataType){case"indicator":canRequestIndicator(c.graphicConfig,vue.unref(nr))&&await Un();break;case"request":await zn();break}},fr=(lr,hr)=>!!vue.unref(vn)[hr.value].value.includes(lr),vr=async()=>{gn.value=!1;const lr=y.value.chart.getOption();for(let hr=0;hr<7;hr++)await Yn(lr,hr)},Yn=(lr,hr)=>new Promise(xr=>{setTimeout(()=>{const{series:Sr,color:yr,xAxis:pr}=lr,br=y.value.chart,{splitArea:kr={}}=pr[0]||{};Sr.forEach((wr,Er)=>{const Pr=wr.data;let Dr="";hr%2?Dr=yr[Er]+"a8":Dr=yr[Er],Pr[x.value].itemStyle={color:Dr}}),hr%2?(kr.show=!0,kr.areaStyle.color=vue.unref(vn).map((wr,Er)=>Er===x.value?"#ff003b26":"")):kr.show=!1,br.setOption({series:Sr,xAxis:pr}),xr()},200)});u({refreshData:Qn});const ar=useEmitEvent(c);g(c.id,{type:c.type,RECORD:""});const ur=ar("click",lr=>{const hr=m(c.id);g(c.id,{...hr,type:c.type,RECORD:c.tooltipShow?j:lr==null?void 0:lr.data})}),mr=lr=>{y.value.chart.containPixel("grid",[lr.offsetX,lr.offsetY])&&ur()};c.tooltipShow?J.value["zr:click"]=mr:J.value.click=ur;const{setRequest:dr}=vue.inject(REQUEST_MODEL,{setRequest:lr=>{}});return typeof dr=="function"&&dr({id:c.id,requestFn:Qn,sortNum:c.requestSort}),useOnEvent(c,{resetRecord:()=>{const lr=c.id,hr=m(lr);g(lr,{...hr,RECORD:""})},refreshData:Qn,click:ur}),{style:Fn,option:Wn,click:ur,loading:Hn,onClose:Gn,ecanModal:re,echartRef:y,handleLocationOk:vr,onFilterOption:fr,locationVisible:gn,locationValue:x,locationNames:vn,eventObj:J,emptyData:f}}}),ComboGraph_vue_vue_type_style_index_0_lang="",ComboGraph_vue_vue_type_style_index_1_scoped_0a7bf640_lang="",_withScopeId$2=c=>(vue.pushScopeId("data-v-0a7bf640"),c=c(),vue.popScopeId(),c),_hoisted_1$7={class:"location-wrap"},_hoisted_2$4=_withScopeId$2(()=>vue.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function _sfc_render$d(c,u,f,d,h,v){const p=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal"),y=vue.resolveComponent("a-select-option"),b=vue.resolveComponent("a-select"),gn=vue.resolveComponent("a-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(p,vue.mergeProps({key:1,ref:"echartRef",option:c.option,"update-options":{notMerge:!0},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(p,{option:c.option,"update-options":{notMerge:!0},autoresize:"",onClick:c.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),vue.createVNode(gn,{visible:c.locationVisible,"onUpdate:visible":u[1]||(u[1]=x=>c.locationVisible=x),title:"快速定位",onOk:c.handleLocationOk},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$7,[_hoisted_2$4,vue.createVNode(b,{value:c.locationValue,"onUpdate:value":u[0]||(u[0]=x=>c.locationValue=x),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":c.onFilterOption},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.locationNames,(x,vn)=>(vue.openBlock(),vue.createBlock(y,{key:vn,value:vn},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(x.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const ComboGraph=_export_sfc$1(_sfc_main$b,[["render",_sfc_render$d],["__scopeId","data-v-0a7bf640"]]),EcanComboGraph=withInstall$1(ComboGraph),radarProps={...props$1,id:"",name:"雷达图",keyName:"雷达图",type:"ecanRadar",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"},{name:"名称五",value:435,type:"类型一"},{name:"名称六",value:215,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",lineStyleWidth:2,symbolSize:4,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{value}",axisNameColor:"",legendFontSize:"12px",graphicConfig:{},graphicType:"ecanRadar",tooltipPosition:"",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px"},radarComponentProps=transformToComponentProps(radarProps),radarEvents=["refreshData","click","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.RadarChart,components$1.ToolboxComponent,components$1.TitleComponent,components$1.LegendComponent]);const _sfc_main$a=vue.defineComponent({name:"EcanRadar",props:{...radarComponentProps},components:{Spin,Echarts,EcanModal},setup(c,{expose:u}){const f=vue.ref(!1),{pageMode:d,fontFamily:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),v=vue.inject("showIndDetail",Kn=>{}),p=vue.ref(),m=vue.ref(!1),g=usePickComponentStyle(c),y=vue.ref([]),b=vue.ref(),gn=vue.computed(()=>m.value?ZOOM_FONT_SIZE:12),x=vue.ref([]),vn=vue.ref(c.valueTypeDataFieldNames.name),J=vue.computed(()=>{const Kn=vue.unref(x),zn=Kn.length,qn=[];for(let tr=0;tr<zn;tr++){const{name:Un,data:nr=[]}=Kn[tr],cr=[{name:Un,value:nr.map(Yn=>Yn.value)}];let Qn=c.colors[tr];if(!Qn&&c.colors.length){const Yn=(tr+1)%c.colors.length-1;Qn=Yn>0?c.colors[Yn]:c.colors[0]}Qn||(Qn="#5470C6");let fr=Qn;if(c.gradientShow){const{gradientOffset:Yn,gradientColors:ar}=c;fr={x:.7,y:0,x2:0,y2:0,colorStops:[{offset:0,color:Qn},{offset:Yn,color:ar[tr]},{offset:1,color:ar[tr]}]}}const vr={type:"radar",name:Un,data:cr,areaStyle:{color:fr,opacity:c.areaStyleOpacity},tooltip:{trigger:"item"},symbolSize:c.symbolSize,lineStyle:{width:c.lineStyleWidth},label:{show:c.labelShow,fontSize:c.labelFontSize,position:c.labelPosition,color:c.labelColor,width:c.labelWidth,overflow:c.labelOverflow,formatter:Yn=>{const{data:ar,value:ur}=Yn;let mr=0,dr="0%";if(ar)for(const gr of ar.value)mr+=+gr;return mr&&(dr=`${(ur/mr*100).toFixed(2)}%`),hn(c.labelFormatter,{textData:{value:ur,percent:dr}},{useNewline:!1,useSpace:!1})}}};qn.push(vr)}return qn}),j=vue.computed(()=>{var Un;const Kn=[],zn=[],qn=vue.unref(x),tr=qn.length;for(let nr=0;nr<tr;nr++){const{data:cr=[]}=qn[nr];for(let Qn=0;Qn<cr.length;Qn++)zn.push(cr[Qn].value)}if((Un=y.value)!=null&&Un.length){const nr=zn!=null&&zn.length?Math.max(...zn)*1.2:0;for(const cr of y.value)Kn.push({name:cr,max:nr})}return Kn}),Fn=vue.computed(()=>({textStyle:{fontFamily:vue.unref(h)},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,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:m.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 Kn;m.value=!0,(Kn=b.value)==null||Kn.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(){v(c)}}}},title:{text:c.titleText,subText:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},color:c.colors,tooltip:{trigger:"axis",textStyle:{fontSize:gn.value},show:c.tooltipShow,formatter:Kn=>{let zn="",qn=c.tooltipFormatter;qn===""&&(qn="{marker} {a} {c}");for(let tr=0;tr<vue.unref(j).length;tr++){const Un=vue.unref(j)[tr],{marker:nr,seriesName:cr,value:Qn}=Kn||{};tr===0&&cr&&(zn+=`${cr}<br/>`),zn+=hn(qn,{textData:{marker:nr,name:Un.name,value:Qn[tr],a:Un.name,b:Un.name,c:Qn[tr]||0,type:cr}},{useNewline:!0,useSpace:!0}),zn+="<br/>"}return zn},position:c.tooltipPosition||void 0},radar:{indicator:vue.unref(j),axisName:{color:c.axisNameColor}},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:(m.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:m.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:vue.unref(x).map(Kn=>({name:Kn.name,icon:c.legendType})),formatter:Kn=>getLegendFormat(c.legendFormatter,{name:Kn})},series:vue.unref(J)})),Bn=()=>{m.value=!1},{getGlobalModel:w,setGlobalModel:re}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Kn=>{},setGlobalModel:(Kn,zn)=>{}}),Pn=(Kn=[],zn=!1)=>{var tr;let qn;if(c.dataFieldConfigType==="key"){const Un=zn?c.keyTypeDataFieldNames:null;qn=Mn(Kn,Un)}else if(c.dataFieldConfigType==="value"){const Un=zn?c.valueTypeDataFieldNames:null;qn=En(Kn,Un)}y.value=qn.dimensions,x.value=qn.dataset,(tr=qn.dataset)!=null&&tr.length?f.value=!1:f.value=!0},Rn=(Kn=[],zn,qn=!1)=>{var nr;const Un=Mn(Kn,qn?zn:null,!0);y.value=Un.dimensions,x.value=Un.dataset,(nr=Un.dataset)!=null&&nr.length?f.value=!1:f.value=!0};vue.watch(()=>[c.data,c.areaStyleOpacity,c.legendFontSize,c.legendFormatter,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll,c.labelFormatter],([Kn])=>{(c.dataType==="static"||vue.unref(d)==="design")&&Pn(Kn)},{immediate:!0,deep:!0});const Vn=vue.ref(!1),Wn=useRequestData(c),Gn=async()=>{var Kn,zn;if(c.dataType==="request")try{Vn.value=!0;const qn=await Wn();Pn((zn=(Kn=qn==null?void 0:qn.data)==null?void 0:Kn.data)==null?void 0:zn.rows,!0)}catch(qn){console.error(qn)}finally{Vn.value=!1}},Zn=useEmitEvent(c);re(c.id,{type:c.type,RECORD:""});const Xn=Kn=>{const zn=Kn.event.topTarget.__dimIdx;zn!==void 0&&Zn("click",()=>{var nr;const{value:qn,name:tr}=Kn.data||{},Un=w(c.id);re(c.id,{...Un,type:c.type,RECORD:{[vue.unref(vn)]:((nr=vue.unref(j)[zn])==null?void 0:nr.name)||"",[tr]:qn[zn],seriesName:tr}})})()},er=Kn=>{var Un;const{columns:zn=[],rows:qn=[]}=((Un=Kn==null?void 0:Kn.data)==null?void 0:Un.data)??{};let tr;zn.length>0&&(vn.value=zn[0],tr={name:zn[0],types:zn.slice(1).map(nr=>({label:nr,value:nr}))}),Rn(qn,tr,!0)},Jn=useIndicatorData(c,Kn=>{c.isViewRedrawing&&p.value.clear(),er(Kn)}),ir=async()=>{try{Vn.value=!0;const Kn=await Jn();er(Kn)}catch(Kn){console.error(Kn)}finally{Vn.value=!1}},or=async()=>{switch(c.dataType){case"indicator":await ir();break;case"request":await Gn();break}};useOnEvent(c,{refreshData:or,resetRecord:()=>{const Kn=c.id,zn=w(Kn);re(Kn,{...zn,RECORD:""})},click:Xn});const{setRequest:Hn}=vue.inject(REQUEST_MODEL,{setRequest:Kn=>{}});return typeof Hn=="function"&&Hn({id:c.id,requestFn:or,sortNum:c.requestSort}),u({refreshData:or}),{option:Fn,style:g,click:Xn,loading:Vn,onClose:Bn,ecanModal:b,echartRef:p,emptyData:f}}}),Radar_vue_vue_type_style_index_0_lang="",Radar_vue_vue_type_style_index_1_scoped_0852bdec_lang="";function _sfc_render$c(c,u,f,d,h,v){const p=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(p,{key:1,ref:"echartRef",option:c.option,autoresize:"",onClick:c.click},null,8,["option","onClick"]))]),_: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(p,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Radar=_export_sfc$1(_sfc_main$a,[["render",_sfc_render$c],["__scopeId","data-v-0852bdec"]]),EcanRadar=withInstall$1(Radar),__vite_glob_0_0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",__vite_glob_0_1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWoAAAAuCAYAAAABZlMtAAAAAXNSR0IArs4c6QAAEnVJREFUeF7tXU2MHNdxrqrumd0luRJNi4jIXUeEbcBAfIiM+KLk4BUs2GEOkexA+ZHE5c4yjmAISeSDASc5ZAMESAQkiJPAECKJnP2R8sfAjqEgTgIbpi5RDgogIxAQAbFAWbsrShQoUvxZ7kz3q6jqve7p7pnZmdkf8MBqQezt9+rVq/peT3V1T381CLYZAoaAIWAI3FIEjj52+lNIdKbdTr787t995Z2qMXhLrbPJDQFDwBC4zRGYmj19HyJ9jxnuBIb/SSC6752V2etFWCxQ3+YniblvCBgCtw6BqRPNhwHhH4sWsONfWH9+/j8tUN+6dbGZDQFDwBBQBKZOnvkaMP05AGcJ8yVi98W3Vk69Yo8+7CQxBAwBQ+CWIsA4Ndv8FgB+NTODmd+MiD7/1tLcj3uZZo8+bumC2eSGgCFwOyHwyd/+q7EbVyb/AQEeLPj9ahrxFy405y/2w8IC9e10lpivhoAhcMsQmD713CFu078A4H0dI/j7PN5+cP2Zx29sZZgF6lu2bDaxIWAI3C4IHHnkuXsojn4AAJ/IfUY4u3Zj/2/A2V9NB+FggXoQQtZvCBgChsAOEJiaa97LDv4DAQ7nz6QBnlpfbnxjWLUWqIdFyuQMAUPAEBgRgenZpeMM7p8AYF8YyoD8xNrS/NOjqLJAPQpaJmsIGAKGwJAIfGy2OZ8CP4uAJEMQYdMx/9r68vx3B6k4cqL5JDO8euH5xjkdO2iA9RsChoAhYAiMhsDUyTN/DIx/kI9CuAJMx9eWT748SNPR2TOLCHgSAC6nBJ+5sNg4b4F6EGrWbwgYAobAkAj83G/9Te2dzXqTGR7tDMFVdukD68+fen0rNQfnmgf3p/AdQJjJ5Bjg1fXlxmcsUA+5ACZmCBgChsBWCNw1f3pyLKEXAeBzBbnXawQz5xcbF7Yae/dc8xg5+A4C3FuSY2isrTQWLVDbuWcIGAKGwA4RODbXvDtx8H0G+HQhk355bHzz+BvPPH5lK/VTjzTvhRh+CAAHcznmK5DizNrfNl6VtlED9YfyCwjwGsLMRYSrV/34jY8jtK4hJBsIySaCayEcOQrQ3kRIWghpGyG9A8G18SMA8L5L8M7J/XjFJTiZJgguRYBJYJcgcIo8kSK4MWSWdgBwDpnHvNy4b2NXR2AX/q8h1J1v17Yayhjtr8faXmfGTXZY59i3x5m8HDMCR7rnmm+HTE71xchBXuWEm69jHMaxHIt8GB/JeP+3byevN5Jj/7e2R/7vCBgTJoylPfbyrDJBNhLh8LfqyXRIB2NEjCmT6vHjIgDKxostYiehNKsdmS4i7YuAQMflY8ry8hWI76/KZ3aIPAb9Xkb+069OmJEye0RGbCHZBz/lGEO79xmIsnNSv3/p3qjaPqxcpirIF3ZO5u2aqSzX6a5I5ocD7KrIyaGTlc3N6uNH9SPa5X9vv/rZK57qvF3T9fCrt2DR6qIDfZYrzFf1t4q4Tt8Lg2HxDtNXHMv97Zq/gv8O+xngN6V8RwGEb68tN36l90ncaZ060ZwDhGZJjvlHkOJcFqSlb5RAjQsLC7iwcI7gZw6TBObpwwdo9Y3X6fBHD+HF1gYdPHCELl96Dyf3jdHVpEUH9k3gtQ9atG+sRjc4xYl6TBvXExofq0vwpno9ps0Nh1CLiF1C9XoNWzdTqsVELWaUfbvlsBZF1OaUJCi2naNahMRtxniMKGk7iqMIE04pojolSRvjqEaJcxRFhGnSpqgWEySAFCGl7CgiQtkTxeTSFAmRUiCMyPeTBKXEEcVIzrH2O2aRxzT17ZBKYNU9AWlgJq8nk1f96NKERLMEKcz1ROj1ITofZQkcqn1yrO0SUUU+6BP9iIQsUdfrQUIS++RYgqDYrfZKP8t40iDr+0v6SKIziQYAR/KtNEtk1XGZPu0kVrtJ/c/mAf8tdkVergBYsA/EXGK1TwO47EU/onx6FCZAtZ/IzxP0SowHb5BcRPzeTwictefHvl+3ME73IO16EaqMD+2V/ny+6rgB82X2+Ol3YG8+T7C3OC+I/2V/ivN52HqMy+2hML6DX3l8Ae8unAO+fgF0XTy+O/S3Or4nzh27O/OKAZm/g9a37O+goLl7/fj02vLJJwBQjO27HZ1tStb7h9UgfT3CmcuLjcvF9pECtWbTM+cI3n2XoHUPws3LBIcmSbLmQ60JupRskGbK7Zt0IKmTZsdjLbqe1mhCMuK0RVxPCNgHanYxaSbsEmIXkWbCtZTAEdViyRAloDhsu4jiKCXNVJ3TDzlHEhzlb/k/wihCSrgYtDUYSbbnZaIINcFT+XJQTpk1qPs+DVYIFHtZjT+OJKqlxBhJv3wyQnBU/ZKNSrtEImCU2E6oZxOC7NkHcwmCKp8FXwlseb98qkQvk4+BPpj5jFjaO/rED4maEvykXWJfZx6vR8f7rNbbGvRJqutQgFU/ZP1lDjEXdW6G4Jt++v38/goh/gV5vYj4oJzJe/06D3vQvH2qozC/SPg2xUdk9ZYh86cTBcJ5WggKIbPIgnYxaIRIXUg9iqe2tybrzMfnnwRBJTsoz5e3ZheDTDA/Lo/Lzdfg2jE4v5j0G1/Rn1+cNAT7oJj7mLtS9tFHT/9P8EKPdXwpJ+v2N7N7aH+r9gZ/81je5Wcl1HT5q5caHTXM+pTtLY8r+VtZ190Lxj01yW3h760uN57aah750nBfCn+BCHNFOQZeWl+eL7VVzq6hzEf4MKOGhfDY49y7BJ+8Rx93TB85jHlmnbbxUHoH5kH7/QQnDySoGTZP4DWX4v6JMbyetn3wdtcQxuvI1xMCybT1cUUN+UZCsgfewDrX/GOLWkSt8PhCM+5IMm+HNYixzZuaect4lscW4BAiImgz+iDtMI4kA2d9XJGwwygiStsse0wgwVgywOJjB/KBMuIINVPWjNvLp4k8dtCUzT+OSPS23strxq6RWzPs/Fj6JRMPjxE05dOoSpJZhsxe9hE6SJFAH8tkFwUdx5LxM6KTSKeZt2by/rGCf0whGbzvR5FzYrbq95m1XDS8vMpJphweb2h4L86n8pIOix61Lx+vOKE+BtL5y/rloqefupBJS1CXWEMILvgjuAW79c5ArjY+GnWiiJqpI8MJ6h8YEBE4J7fvCM5fWfztPIp6vUqExwrhtrnz6S8Eu46gXl7B+WtZr0yxEIS8QHY7HhTnE4ZMPpeX08P5zD4EyzwxDRmkNyg8CJHbdu9IFq58r/qlt0TBr8xfCP52Hi+EAT31qN1d9vTK4EOw7GOPvwZ31sXjFvws3QlkeuRjXYAte8TRtb7e7846Vh6byHrrumfrm91Jeb+61qXnnZk/MfM7reyOK7/z2kE/0bOrS3MvDAzSDn5Y/dLQMXzt7ZXGN/uNHSWjHiqam5AhYAgYAoZANwLypSHH+mbHsbxXvjQEfFLe7NgKMwvUdkYZAoaAIbDHCBx9rPkQkn5p2PfNDgvUe7wIpt4QMAQMgX4I9HuzI43wIWEdDoOcZdTDoGQyhoAhYAhsA4ECHbwzmvml6xE+VH2zwzLqbQBsQwwBQ8AQ2AkCSmSJ+Bwg3lnUkzq4Pyu2NKx+y6iHRcrkDAFDwBAYEQFfv0OD9c+WhgZq+LDqLFAPi5TJGQKGgCGwDQRCsP5nQCzWAJFXNhfWlxt/NIzKUQN15Q37BVA6+cMAcPZip+ZTkVqeWSEUc9mEZq77TQSYBoBVgJ+6C+FtALhL2sIm1HP5QYR0He+Cj8J7AHAobeMlAPiIa+P78vXpHQdQ6DvyNerltK33F0pDDxun+/zfoY33JwhXAWDyAIBQ11U+0NSLcjzux40XdAklHSZASDy5jWEsy/vfGwAw5vvGAeAmOxyHcbjpUhwDgE3plv6bwmev+bnlnfFsU/1joLR5GaD2eLninH5MXQxH2SlVPnfY0+Vr7LAl09Rr0HIORcy/b64O+/Gy5TT6QIPP+4NcrVa2UenzmQ4ZX1N9wnxv5/rlfW5pERZ+sM0V9Mv77RD0ejHPt/GAlM/HOAZIEgDZFzY5SmT6rn3c1e79LAj2bijp7z4I83fpqUoOFAi4Z/aU/epnRAwRJJCC3xfcKcCTtXcmGOBSEQfFOSjuOWxv/OqxMN6qHn558/qsb5fNwd6iX1X/9uD4Zt3993tnTkmE6bn1el7NDIvrK43GoNUaJVCL7IfMxJmezERoTRBUmInXOMX9YzGxsBAlAKVxH2aip5ALM7FeS6klzERmbMWyF+ZiRJwzE4WdkHaYiUJqCQxEIYPkdHInr8UHEkqVmShMicBSFL62MhO1BoYTMggpB4Q8S1FZFZ5k4skrQrNWZqISTISMkrMHlWyipJEykzBjGCpzkZGc/KOswyozUcggWqxAGCI5SzEwJgJtG8gzH3szE4WH7mnggRHo2RRKIVeGYSChBCalrGmBPVhgGnr2QGAV+vYiM9GzDYvyHQZimZkY1iFjRm7FTMzJNh2acrnKQcYwlNM6IztUTuE+DMKcQlLtz/VkH5WyXj+uF2Muk+s9LrOvP1Ov4IP+mfnh935cZd4CfTv/YI/MaKx+5Pv4W2U0DmBiensCH7XIhCyN68GIrOCfMyh7MjEr616ksw/N4BwUErffzwCv1Qke2KpS3tRsU0gtv1uaheHc9Qi+tNWXiyMF6v61Pj6FF1s/2btaH+MRtVt7WesjohRgQK0PqUhBw9f60JogUutDmIE+mCNG5DglomqtD6Ha8fZrfURKWRPz+tT60AJKhdoh26/1obTxHdX6kKImQtULtT58DZP+tT5CuNqTWh85g7BY6yIw7rpqbZRrW2TRdEe1PooXm61qfRRrdgQGXSeay8Dt1b4o1SbpqrUR/A01RDK6/o78LdUKqdRiGbbWhxowqLZJd22Y7YffEUcyr0ZEv/iTpbnX+o3s9bqe1J2+QXB/v2A9UqD2aczDCHARs8JMecW8UPMjq5R3MNmgyy7BOyb34wdpgnntD3lcoDVAaj7LdmP+uK61NTyF3IVjrYAnNHKHLI8LNOv21ewk4wbJsjmSmhO++p3UAYk1o/QV7FxKEPs+X1WPwjFjrFXqfA0Qf8vts2jNpkWftMv4UAlPaeZS0IkZfQGnrDZIqEiXHWfV6rL6H6EqXZTPF6rThYzU1+MQ9rKnf0eAnn5epJmrfXKWEzJKpp/1B0q31NgItHAteZT5g5q2k5NbANVfpJD76nbZHYGnbxcp5DktXYOoz+CLFPLQH+bL9Wc1SXzdD1/vQ+s6FefzfRJzCpl5qKRXoJCXMs3stK9WtfOnsG8tZmyVqmv9MsJKVbs8P+6bQXZmy7LIggGdTD9XlFtW7uvS39uv7szZt+RFBvNPcNFfLUQYtuodR7VCXSeDL9+9jGZPRr/vJMiVecPTrcz6fn517pTK6537mzcP51dxPbeqkJTdcfULroP6izWoGeADYv7l1ZX5l/rpUwIM8mLxjRAGOI8JfKlYNa/PKo549TBxQ8AQMAQMAZg+ceZzTPgiMEx6OLgNjI+urTTO9oOnz+t7lyGB+6vBepSM2pbDEDAEDAFDoA8CP31y8dOOWX484G4fq7VS2u+vrjT+dECwlsx6y9f3LFDbaWcIGAKGwC4hMPXos9MYxf9W/KUXBDiz+vE3vwILC1IbsWvr9661A3jy7eXGX8oAC9S7tECmxhAwBAwBQUB+O3E8oRe59NuJ+L0a8ZfPLzbkBd2ewXqf42+GXx/P+7PX9yxQ27llCBgChsAuIyC/Rn5hs/4CsLJMdEPAV5LI/dKF5vzFvo9Cqq/vMb+0tjI/Y4F6lxfI1BkChoAhkCFwdLb5JwjwjQIibxLi599amvtx32Cd/Y4i84+yn+WyQG3nlCFgCBgCe4jA0dnmPAI/m/8EDcIl59wX31459Uq/ae9+rDkDMZzPyqBaoN7DBTLVhoAhYAgIAtOzS8cZ3LdDhQlpusnAv76+PP/dYRCyQD0MSiZjCBgChsAOEfjYidOfTZH+1Rcx0qfWDOieWFuaf3qQagvUgxCyfkPAEDAEdgmBI488dw/F0Q8A4BOZSgT8s9Xlua9vNYUF6l1aAFNjCBgChsAwCEyfeu6Qa9O/I+Bnc3mGsxMHr574v7/+HSm02bVZoB4GWZMxBAwBQ2AXETg21xxPHPw9AzzYUcsvj423j7/xzONXqlNZoN5F8E2VIWAIGALDI8A4Ndv8FgB+tZNZ8+vg6g+svfDYalGPBerhUTVJQ8AQMAR2HYGjs82vf/irJE+F8o/vM/HPry82/tcC9a5DbQoNAUPAENg+AlMnmg8DwWlA+MLaYuO/7NHH9rG0kYaAIWAI7BkCx+aaB88vNuTXBbu2/wfAQwC29PHqBQAAAABJRU5ErkJggg==",__vite_glob_1_0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",__vite_glob_1_1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWoAAAAuCAYAAAABZlMtAAAAAXNSR0IArs4c6QAAEthJREFUeF7tXV2IXdd1Xmufc+/8SKpkIyXWzDQ2Soqhfaghfgl9qENMgkPBdqgI2JE0M6ltQv8cSil9CJ2WpA+BkqQlBNvx/Ehxiq0SbFJqEhzivCQQHHAfGggkRsIaRYlkRX/zd+85a9Vr7b3PPefM/ZNGGYnMOi/nnr3XXnvt75yz9rr77m9dhNoxdfilMR5feQWJv3DmxOwP6vV2bQgYAoaAIbC9CGClu7k5N/nW3d8GgI8jQJsZHl8+MXNye02y3gwBQ8AQMATKCFQc9cSRpfcB5D9GxPcWQsifW16a/bzBZggYAoaAIXBrEKhG1AAw+fhzU5CkrwHAvdEkBJg/c+j0EzA3R7fGTOvVEDAEDIGdi8AmRy1QHHrymb3r643XEPD+DjT8asPhJ04tzqzvXLhs5IaAIWAIbD8CXR21mHHP9MJom/hbAPhQNIsB36CEPn5uYfb89ptqPRoChoAhsDMR6OmoFY65OTfx1t3PIcBs4ayZTyfOfeTtpelf7EzIbNSGgCFgCGwvAv0ddbBl8ujC5wDgX0qmXXRMH3v7xKff2F5zrTdDwBAwBHYeAkM5aoFl6lOLj7ODJQBOAkzrCO4TZ44fe3XnwWYjNgQMAUNg+xAY2lGLSRNH5x9EQNlnPRpMJED+q+Wl2a9tn8nWkyFgCBgCOwsBddR3TS/ck+Twt8snZj47aPgHjzx/v3PuO8BwZ5RFxC+eWZr+h0Ftrd4QMAQMAUPg+hHAfdML+8YJvo8A9wHD6ysJPHppceZSP1W/f2zx/cT8PQC4u5BDOHnXSOvxnzz7VPv6zbAWhoAhYAgYAr0QwIkj8y8j4sNRgAHeJAePnlucOdUPtrtm5g8khN8FhvuKyBrgB83R1sNvPfvUZYPcEDAEDAFD4OYggJOPLdwHCb8OiHtLKi9BBh9e/ubMm/26mXjymXFcH3kFgB8syf0M8uzB5ReeOHNzTDQthoAhYAjsbAR0jTo460VA/OMKHAwzyydmFvtCdPilZHJ85T+B4XARWSOcywAfPLc0/X87G14bvSFgCBgCW0eg2PUha9W7co2sK86aAebOHp/550FdTR1d+CID/H1HDq8Bw5cROY9lkijElRTdrGuCWgoSveyWlqRUVqnuIbup2BdEu4kAnAMg+dD1COXD9NXV5Kpe7U/7H3ZsPezqau+7d7p+BLlivEV9t3F1G8CQcoWZtfGG56UYbw+5jlkFQLWRXN/zEYbNgMwAyMDMKGfBHYGBQrnUIzLlOchZZJFDHeQAhB0dUk+kIFPUS8QY2qlulSfVqf12kZc6b0vUr3YxoPNn/+yr3hyQEyTORa9/clU35qEP7ScHyKVfr0ftERsygAyRU2kv/Um5tJMjyhbtMtD+vT7GPH6WcuQMHEOed8YlysWOTOQyb7va31I92A7tMbYR8YxB5R23MOMRdLwBACOI3GoFHS7q2QAUfS25bpf0rwOKzHrC4BJG3GCQax2SlG0wuoRhNWF0KQNcBZG7mqS816V8+eoK7wOAS1LnGgzJFYakwZA2PS4X3mFwTYZ0hCEdY2ju9uVjbzHs2cPw+gEG+CNxqfFl6/LSdfckm7bnTRydX0TAY2VxZlg8e2JmZpCznjy2+Bkm/ioiXNe2v0F6+9XLe4EI8i6BdMtMgCjnUK7PZKgP5apP36fYrlovxjOIPl8ej+Laf5DbW+0vyFf6k7feF2h/vl3sP7RXPeVxxP59fWgYmnm54fsv9StmFHhEszrjrOLYsScYPHi8AY84XjFTfFphr+BPtfuj962Mfxhv/f7o/Qg41e5P3e4yzh1cw3g3PQ+d/qIebw6L0yL2BrO4TUAmJvDlQCQOk4jIyzE7B1IvClmQBvF4rM7Pn9UDSr1IA7lQLnJh/mfpr5u87x+JmNipXiZ0pf6JGR2SGOSknJkcIOf+mqRB6E/tlvaqjyiUcygntUvkQfTl0l4fG19OeSEv/WQ5h/5ycpgSUcYJOmmv/YsC6UcfhETaMyUyuRGTEzlSR6rYyuQk7aR9nhMnKRJlOblEHhumRMajdjuSSQNTpLzNlKTIec6UOkdZ3uI0bVJOLUqxwVneDvI5Y8NRO2dq+EmHsJlQO8u44eRM1Gwit9eImqMJtVptHnEptdpthrGUsJWROO31VkZju1KC9RZj0qDVjTbt2p3wynqL9qT76eq1c7xv/whdurZG+5P38oVLpwgO3Uvwy/P8h+MH6Kc/PU9w+ADDyZPhORnO+3V1qBNHF+befaf/qeKsAd5cdfDhQTtCJo7OP4wALwLgyHAmbFVK3omow38ov5z+nYm+rjaR1dpFJ+qdtIROUXf/dn6S6NigPiZMAuVJwdtZmkSD0+5MCp36OFn0atNxnqXJpjChbm901lWcNo23mJQ221j0Vx+DoFSoL01CJTzq+G+6Pz3truEV7keBV7/xem9dmhQ7k+Sm+1PIxf6YQVwzinvRmZLRO1j9LE4WfZ2MXEJhdTIM4uyA/CwvLl0+azjecY7BUYvT1mlTHzJxwl5WZube8kGfxN7q02L/3vlrrK9OUSNR1Sd2qh1+jtZ2Yfb0fYoWZD85+Fk1yHtb5FrKHcrMJG31W4LKez0lfdqPTiWUJDqHeSesGOo3E5KpOif2TlimNf2mEZyvfsOQz0He16sedd7yjSA6ahkqoZeVSL/hSCSln4yYUpGXiDxPCDBMtrmcQ5+YEOp1xu0soeYIUTtDBkcE7YRgVCJ7mWTaDO2U0KUErs3gMsJWSoAJY5IRJm1aWUt4d9Kka2mLfi9J+crKBt2ZjtFFibhHdhFcvEoaZY//muA97yEfWb/kMRny6Bn5Th5ZmAbgL5d/ZGSAU5jBowN/ZDy2+CdI9IVOZBsjRu/8isioiHy3Vt+JoMovp+Dgwrvl3x5dNiiWK8J1/HrNBE7eMgkk/FtTiXyLSDgsfGigpepDRFjMBTESlffAhXekE0F39ITZQ2Is1SPy5Tkl6onxdIw85dl1IdKOjkUND+siXm8x3mJccdkkjFsDJvU24VGp2qNAhYWW+uRX/cYRJ6Vof7i/NXs6TtPfF33fKpFxLcJX3yWhXFzOKGbbrvdFAlm9vwJDcR/jfRcvI99y/TKVk9A3Lv90vHYJBx9Ru+ANw2pF+OrunZn3p15OnbV/sP1yhX+cY2QrhosPF+fml028Xq33ztHXx2UWdfohYvZ2yGMW6oN8R79G2OqEfT8aWTNIJOsjVA6PKekZmSUylf6L/mLE7GeOUJ8H+wVR72T1rF8KNJL3zlPOib9Wp6zLNWHZJnXiDHW8GiE3QqQcrtNU2ucdeWmvc03KWU7sna30I+1zTjGhDHNOxRnnOSOKEw7LI5mcE9IlEmxyO8t9pAwZN9GxRM5Nl5Asm8i1RsxjKbV0eUSWSdqM4ynJWa83Wowhcga3m9dwg8ed49X1jHbvSfja6hrvkWWR1RHae4dfFrnDpfybxhodSBp8/p0mT0yN8Nl3xEmPMfz8NMMHxxh+cohg7t3ljzld/ti6o5antteOkJzg0XPfmHl9yMnAxAwBQ8AQMAS2gMDAtWTPWuSXb2hHyBYMs6aGgCFgCBgCHoGBjlqEwo4QcdZ/WgZu2B8ZDWxDwBAwBAyBG0dgKEcd1XfbETIs7fzGTbSWhoAhYAjsbASuy1HrmnUK35cgu4CN+TLk+MCgHxh3Nsw2ekPAEDAEbhyBoR21OekbB9laGgKGgCGwFQSGctS6VQ9hodIR8//mCT4yKHnTVoyztoaAIWAIGAJD/Jh48MjC0w7hS3UnvZLgA/3IL1OfWngA0lKrDOC3ch31ZsWHrve1XCtmZZCpOeXmaQogamK5V9Rf76bONivo8ZwN0LupWgqGOXzDYnwyntq4/PhySCHR81DHbTIufz8235aB9zc8fpthLQFUBkLp0KEj2VerrGehG0sWX0871sPJPmAApUMX8sgi1UDHxV0TCrUKBjnZ/xsO1dtud+pKchjlCv2eZi36dT+wnAGgJfuIlQod9WclG2WfcOxbPpTlEi8nZA45NgKdWj4EenVFPshtrAt9O1Ea96gw9mC9av9GwjAGgButkh2hL6Frw5qnc8djXSjb0vc6A+wCgBUApXGL2tAuketr3v4VXxdlAK4Aar3IpyzpO/clDZZ8zUr7vnKN7wCA37gGSyL9iwCwP2nwBWmQjDDAeSio4FJ2YYThIAD86gIDTAHAGVDSihyyLzoeZZq4lAlVXA7ZvKwMRLlQ2nhsUSYuFGoGfegbUXelkwMvnT0+O91Lsc+o1/iv8r+XDzJia/U9mImV3eR1hqH02L+dchCK21HDtl7elWEY+tBTj3tTK+/N8AvtC85HVV9kRnaqu9lb3lvvP5fbdcOjBEAHrxINvsqo7Dbe7jjHff5Djddb6h+RglbuU24MPd76/SmRk4Lijv5Y4G+/MunkSakzEwPzMDATA2OxGzPRUwaFeO5p5YGBqNQXz0uSYQQKeWD6KaPRMx19nZAHPYXdk2HC5xoz0TMmI8NQ+hRmYmQGCrcm0NbVpGCLWCB2KD3e08w9eabDTBR6j8gUtPAezETVr6QaTWei5JWuzEQh3QiPMLIElYHoWY9lZmLu6eYdhmMk1SgOwkxU1pkwDxlyR7kjUjIMCXNSyj0JRujiIceJMApDOREqazHjtkuomRG1EbnpiFrCTMS25PsoMRM9hRxcoJMXzMQGwdoGY42ZCOkYaS6QnszEm0Ah1z8TyGEBER4pO1Ee4KQ1R3WO3wX5E4JtOq4/10ePXBIl2nc910ekk2/O9dElR0g5Z0fIbVHkvpC3PeSa8E6nT64P1dMj10fB6BuQayRQ5Arm5s3K9RHcZCdHRzXXSpHbpORci/H+1nJ9xFQq1Zwq/vnolfulbHclt0mPXB/Kj1ZatjIHUdyRDqiU6yMw+LYj14f073OReLtirg8/i6hzCrk/Krk+CqZhj1wfkX5+y3N96KQxINdHyB0yMNcHCpOxk+sjy4kaW8j1sbbe4vEhc31MHbqXztzsXB+Vf3ypeum+KU+nphf+gAnESd9TavZD8N8Vy5kXurrwEvn7OupLkWYl8ood1rPHeXmlE5dp4iX6cSXCipaUEjP5onJWuFJkF20ogtda/5v0BMFaVrgyzT7aU8FHA63qzSmbVWWmSkqGChm803BIe4oGXSJTP+QO/b2CX2FmOZqXYK02/VdSsdRkS3BvYtz2uC8+DUA5f2J3nCvjKgBWWaViS3gXc2iIrw/JXzz9W5ygjzp9VO2/gknjQD+XhEMaIUfauOTZkJhXadxKjmfJhBd0SO6Mjj7NoaFxdL0+ZNjTHB7hs4TOwJ5+rZFjzNkR2opizdWh0TNX62NWv0jfZsm65xNSebq7fvX0OUAC/V0TImmWPdb8G6h2+OuCQh5yeMicVmQDDDR0oYVL5CsRc8y4p0tCIVeHxvRKV/f1nj6OnMVoWOniEn2H6FhydIT+1a5QL3k7JAGVLAtpwqUQQcdsfT6XR8iw5xxrDg9Z2gnZ/DQRU8yqp2fHuJ7Rikt4t0TUbo2xMUJXJKueS1mz6jXGfSQtGfUkm15zj6eQyxKJZNETCjmc1OfkhinksrODU1jQv+XqOKnLAPh0v7zUk0eXPgScv9rJCyLfOfjJs8dn5rt6XSs0BAwBQ8AQGBqBYo36Rrff+Wx5+KKkhg29rjLww2ePz742tBUmaAgYAoaAIdATAXXUYfud7OwoiCzMfBpzfKQfkWXy2OJnmfjfivzTCOcB4aPLi/3/wsvuhyFgCBgChsDwCGCvPdL9t98xTh5d+ioAf6bU1c8oyz/2y2/+xenhuzdJQ8AQMAQMgUEIYH0LnuzsWHX4dK890h/4638fWb+850UGKP65HAB/NDK68ZD9+/gguK3eEDAEDIHrR0CXPiaOzL+MiOJ4v7J8fObpXmqmPv31O7md/jcAfyjKIMAro3uvfvLn//E3svfdDkPAEDAEDIGbjIA6at2Sl8EDZ78x83Iv/Qcf+/rdSSP9HjO/v5BB/NLy0rG/u56/lLnJ9ps6Q8AQMAR+5xEYKtfHwSPP3+/Q/Q8AHFBEZEepw79cXpr+2u88QjZAQ8AQMARuMQIDHfXU0ecfAnDfYoBRbytvMMAnzx6ffeUW227dGwKGgCGwIxAYkOtjYRYBngv/ciqAXARwf7Z8/NiPdgQ6NkhDwBAwBG4DBPr8C/n8vwLiP0YbZV914txH3l6a/sVtYLeZYAgYAobAjkFgk6P+4JPPNM5tNF8AhsMlFN7ME/7ouYXZ8zsGGRuoIWAIGAK3CQIVR71/9vk9Ixl+G6D8J7b8Ko+2//zss0+t3iY2mxmGgCFgCOwoBCqO+n2PvXBHnrZ/DMAfEBQQYP7ModNPwNxcPV3bjgLJBmsIGAKGwK1EYNPSh+yXdmn6BiB9ZXlp9vO30jjr2xAwBAwBQ6DHX3HdM72w79TijPyLjR2GgCFgCBgCtxiB/weD2jMQWbgYrgAAAABJRU5ErkJggg==",borderProps={...props$1,name:"边框",keyName:"边框",type:"ecanBorder",width:"300px",height:"300px",zIndex:0,fontSize:"16px",fontFamily:"",fontWeight:400,color:"",title:"标题",mode:"no-title",borderColor:"#a8a8a8",borderRadius:"5",borderStyle:"solid",borderWidth:"1px",backgroundColor:"#ffffff",useBorderModify:!1,textShadow:"",data:{},gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",isTransparent:!1,titleMode:"type-1",isFixed:!1,isFlowGrid:!1,gridInterval:20},borderComponentProps=transformToComponentProps(borderProps),borderEvents=["click"],_sfc_main$9=vue.defineComponent({name:"EcanBorder",props:{...borderComponentProps},setup(c){const u=usePickComponentStyle(c,["background"]),f=vue.computed(()=>{const{isTransparent:J,gradientShow:j,gradientColor:Fn,gradientOffset:Bn,gradientAngle:w,backgroundColor:re}=c;if(j){let Pn=Fn;return J&&(Pn="transparent"),Pn?{background:`linear-gradient(${w}, ${re}, ${Pn} ${Bn*100}%)`}:{}}else return{}}),d=vue.computed(()=>{const{events:J}=c;let j={};return J!=null&&J.length&&J.find(Bn=>Bn.emit==="showModal")&&(j={cursor:"pointer"}),j}),{theme:h}=vue.inject(GLOBAL_CONFIG,{theme:"light"}),v=vue.computed(()=>{let J="";switch(c.titleMode){case"type-2":J="2";break}return J}),p=vue.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-left.png":__vite_glob_0_0,"../../assets/border-title-decoration-left2.png":__vite_glob_0_1})[`../../assets/border-title-decoration-left${v.value}.png`],self.location).href),m=vue.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-right.png":__vite_glob_1_0,"../../assets/border-title-decoration-right2.png":__vite_glob_1_1})[`../../assets/border-title-decoration-right${v.value}.png`],self.location).href),g=vue.computed(()=>({width:"100%",height:"100%"})),y=vue.computed(()=>{const{borderRadius:J}=c,j=[],Fn={};if(J){const Bn=J.split(",");for(const w of Bn)(+w||+w==0)&&j.push(+w+"px")}return j!=null&&j.length&&(Fn.borderRadius=j.join(" ")),Fn}),gn=useEmitEvent(c)("click",()=>{}),x=vue.ref([]);vue.watch(()=>c.data,J=>{x.value=J},{immediate:!0,deep:!0}),useOnEvent(c,{click:gn});const{setGlobalModel:vn}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(J,j)=>{}});return vn(c.id,{type:c.type,value:x}),{style:u,gradientStyle:f,click:gn,borderStyle:g,theme:h,borderRadiusStyle:y,titleLeftIcon:p,titleRightIcon:m,cursorStyle:d}}}),Border_vue_vue_type_style_index_0_scoped_c202e88a_lang="",_withScopeId$1=c=>(vue.pushScopeId("data-v-c202e88a"),c=c(),vue.popScopeId(),c),_hoisted_1$6=["id"],_hoisted_2$3=_withScopeId$1(()=>vue.createElementVNode("div",{class:"top-left border-item"},null,-1)),_hoisted_3$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"top-right border-item"},null,-1)),_hoisted_4$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),_hoisted_5$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),_hoisted_6$1={class:"title-item"},_hoisted_7$1=["src"],_hoisted_8$1=["src"],_hoisted_9$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"top-left border-item"},null,-1)),_hoisted_10$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"top-right border-item"},null,-1)),_hoisted_11$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),_hoisted_12$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),_hoisted_13$1={key:2,class:"left-title"},_hoisted_14$1={class:"title"};function _sfc_render$b(c,u,f,d,h,v){return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-border",style:vue.normalizeStyle({...c.style,...c.gradientStyle,...c.borderRadiusStyle,...c.cursorStyle}),onClick:u[0]||(u[0]=(...p)=>c.click&&c.click(...p)),id:"container_"+c.id},[c.mode==="no-title"?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"no-title",style:vue.normalizeStyle(c.borderStyle)},[c.useBorderModify?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[_hoisted_2$3,_hoisted_3$1,_hoisted_4$1,_hoisted_5$1],64)):vue.createCommentVNode("",!0),vue.renderSlot(c.$slots,"children",{},void 0,!0)],4)):vue.createCommentVNode("",!0),c.mode==="top-title"?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"top-title",style:vue.normalizeStyle(c.borderStyle)},[vue.createElementVNode("div",{class:vue.normalizeClass(["title-item-wrapper",c.titleMode])},[vue.createElementVNode("div",_hoisted_6$1,[vue.createElementVNode("img",{class:vue.normalizeClass(["title-decoration",c.titleMode]),src:c.titleLeftIcon},null,10,_hoisted_7$1),vue.createElementVNode("div",{class:vue.normalizeClass(["title",c.color?"":"gradient"]),style:vue.normalizeStyle({color:c.color||""})},vue.toDisplayString(c.title),7),vue.createElementVNode("img",{class:vue.normalizeClass(["title-decoration",c.titleMode]),src:c.titleRightIcon},null,10,_hoisted_8$1)])],2),_hoisted_9$1,_hoisted_10$1,_hoisted_11$1,_hoisted_12$1],4)):vue.createCommentVNode("",!0),c.mode==="left-title"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_13$1,[vue.createElementVNode("div",_hoisted_14$1,[vue.createElementVNode("span",null,vue.toDisplayString(c.title),1)])])):vue.createCommentVNode("",!0)],12,_hoisted_1$6)}const Border=_export_sfc$1(_sfc_main$9,[["render",_sfc_render$b],["__scopeId","data-v-c202e88a"]]),EcanBorder=withInstall$1(Border),tabsProps$1={...props$1,tabHorizontalPadding:"0px",tabVerticalPadding:"5px",type:"ecanTabs",name:"标签页",keyName:"标签页",width:"500px",height:"400px",tabFontSize:"14px",backgroundColor:"#ffffff",activeTabColor:"#1890ff",tabBackgroundImage:"",activeTabBackgroundImage:"",tabColor:"#333",tabBarGutter:"24px",tabFontWeight:400,value:"",activeKey:0,autoSwitch:!1,autoSwitchInterval:5,containIds:[],tabFlexDirection:"row",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}],tabAlignItems:"flex-start",tabJustifyContent:"flex-start",tabType:"tabs",tabWidth:"120px",isAutoScroll:!1,scrollSpeed:10,componentList:[],hideTabs:!1,gridTopPx:"0",gridBottomPx:"0",gridLeftPx:"0",gridRightPx:"0"},tabsComponentProps=transformToComponentProps(tabsProps$1),tabsEvents=["tabChange"],_sfc_main$8=vue.defineComponent({name:"EcanTabs",props:{...tabsComponentProps},components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption,MarqueeScroll},setup(c){const u=usePickComponentStyle(c),f=vue.ref(0);vue.watch(()=>c.activeKey,Gn=>{f.value=Gn},{immediate:!0});const{pageMode:d}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),h=vue.inject("getContainerMap",()=>{}),v=vue.inject("componentList",[]),p=["ecanBorder","ecanTabs","ecanCirculate"],m=vue.computed(()=>h()||{}),g=Gn=>{const Zn=vue.unref(m)[Gn],Xn=[];if(Zn)for(const er in Zn)for(const Jn of Zn[er]){const ir=vue.unref(v).find(or=>or.id===Jn);Xn.push(Jn),p.includes(ir==null?void 0:ir.type)&&Xn.push(...g(Jn))}return Xn},y=vue.computed(()=>g(c.id));let b=null;const gn=()=>{const Gn=Array.isArray(vue.unref(vn))?vue.unref(vn).length-1:0;vue.unref(d)!=="design"&&!c.isAutoScroll&&c.autoSwitch&&Gn>0&&(b=setInterval(()=>{const Zn=vue.unref(f)+1;Zn<=Gn?f.value=Zn:f.value=0,J.value=vue.unref(vn)[vue.unref(f)],w()},c.autoSwitchInterval*1e3))},x=()=>{clearInterval(b)};vue.onMounted(()=>{vue.unref(d)!=="design"&&gn()}),vue.onBeforeUnmount(()=>{Bn(c.id,{activeKey:c.activeKey}),w(),x()});const vn=vue.ref([]),J=vue.ref({});vue.watch(()=>c.data,Gn=>{vn.value=Gn,J.value=Array.isArray(Gn)&&Gn.length>0?Gn[0]:{}},{immediate:!0,deep:!0});const j=Gn=>f.value===Gn,Fn=useEmitEvent(c),{setGlobalModel:Bn}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(Gn,Zn)=>{}});Bn(c.id,{RECORD:vue.unref(J),value:vue.unref(J),activeKey:f});const{emitRefreshPage:w}=vue.inject(REFRESH_PAGE,{emitRefreshPage:()=>{}}),re=Gn=>{let{tab:Zn,index:Xn}=Gn||{};if(Gn.label){const er=vue.unref(vn).findIndex(Jn=>Jn.title===Gn.label);er!==-1&&(Xn=er,Zn=vue.unref(vn)[er])}Fn("tabChange",()=>{!isNaN(+Xn)&&Xn!==vue.unref(f)&&(J.value=Zn,f.value=Xn,Bn(c.id,{RECORD:Zn,value:Zn,activeKey:Xn}),w())})()},Pn=vue.computed(()=>{const Gn=c.componentList.map(Zn=>parseFloat(Zn.left)+parseFloat(Zn.width)).sort((Zn,Xn)=>Xn-Zn)[0];return{width:Gn?Gn+"px":"100%"}}),Rn=()=>{vue.unref(d)!=="design"&&x()},Vn=Gn=>{var Zn,Xn;return Gn?(Xn=(Zn=Gn==null?void 0:Gn.parentNode)==null?void 0:Zn.className)!=null&&Xn.includes("ecan-")?Gn.parentNode.getAttribute("cpntid"):Vn(Gn.parentNode):""},Wn=Gn=>{var Zn;if(vue.unref(d)!=="design"){const Xn=(Gn==null?void 0:Gn.toElement)||{};if((Zn=Xn==null?void 0:Xn.className)!=null&&Zn.includes("ecan-"))vue.unref(y).includes(Xn.getAttribute("cpntid"))||gn();else if((Xn==null?void 0:Xn.className)==="page-config")gn();else{const er=Vn(Xn);vue.unref(y).includes(er)||gn()}}};return useOnEvent(c,{tabChange:re}),{style:u,activeKey:f,isActive:j,tabChange:re,myData:vn,useImagePath,pageMode:d,scrollWrapStyle:Pn,onMouseEnter:Rn,onMouseLeave:Wn}}}),Tabs_vue_vue_type_style_index_0_scoped_ff19bf9f_lang="",_hoisted_1$5=["id"],_hoisted_2$2=["onClick"];function _sfc_render$a(c,u,f,d,h,v){const p=vue.resolveComponent("a-select-option"),m=vue.resolveComponent("a-select"),g=vue.resolveComponent("marquee-scroll");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-tabs",style:vue.normalizeStyle(c.style),id:"container_"+c.id,onMouseenter:u[0]||(u[0]=(...y)=>c.onMouseEnter&&c.onMouseEnter(...y)),onMouseleave:u[1]||(u[1]=(...y)=>c.onMouseLeave&&c.onMouseLeave(...y))},[c.pageMode==="design"||!c.isAutoScroll?vue.withDirectives((vue.openBlock(),vue.createElementBlock("div",{key:0,class:"tabs-header",style:vue.normalizeStyle({fontSize:c.tabFontSize,alignItems:c.tabAlignItems,justifyContent:c.tabJustifyContent,flexDirection:c.tabFlexDirection,margin:`${c.gridTopPx||0} ${c.gridRightPx||0} ${c.gridBottomPx||0} ${c.gridLeftPx||0}`})},[c.tabType==="tabs"?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:0},vue.renderList(c.myData,(y,b)=>(vue.openBlock(),vue.createElementBlock("div",{class:"tab",style:vue.normalizeStyle({padding:`${c.tabVerticalPadding} ${c.tabHorizontalPadding}`,color:c.isActive(b)?c.activeTabColor:c.tabColor,backgroundImage:c.isActive(b)?c.useImagePath(c.activeTabBackgroundImage,!0):c.useImagePath(c.tabBackgroundImage,!0),marginRight:c.tabFlexDirection==="row"?c.tabBarGutter:null,marginBottom:c.tabFlexDirection==="column"?c.tabBarGutter:null,fontWeight:c.tabFontWeight}),key:b,onClick:vue.withModifiers(gn=>c.tabChange({tab:y,index:b}),["prevent","stop"])},[vue.createElementVNode("div",{class:"tab-inner",style:vue.normalizeStyle({borderBottom:!c.activeTabBackgroundImage&&!c.tabBackgroundImage?`1px solid ${c.isActive(b)?c.activeTabColor:"transparent"}`:""})},vue.toDisplayString(y.title),5)],12,_hoisted_2$2))),128)):c.tabType==="select"?(vue.openBlock(),vue.createBlock(m,{key:1,value:c.activeKey,style:vue.normalizeStyle({width:c.tabWidth})},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.myData,(y,b)=>(vue.openBlock(),vue.createBlock(p,{key:b,value:b,onClick:gn=>c.tabChange({tab:y,index:b})},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(y.title),1)]),_:2},1032,["value","onClick"]))),128))]),_:1},8,["value","style"])):vue.createCommentVNode("",!0)],4)),[[vue.vShow,c.pageMode==="design"||!c.hideTabs]]):vue.createCommentVNode("",!0),c.pageMode!=="design"&&c.isAutoScroll?(vue.openBlock(),vue.createBlock(g,{key:1,visible:c.isAutoScroll,step:c.scrollSpeed,vertical:!1,style:vue.normalizeStyle({height:c.height})},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"scroll-wrap",style:vue.normalizeStyle(c.scrollWrapStyle)},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.componentList,y=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(y.type),vue.normalizeProps(vue.mergeProps({key:y.id},y)),null,16))),128))],4)]),_:1},8,["visible","step","style"])):vue.createCommentVNode("",!0)],44,_hoisted_1$5)}const Tabs$1=_export_sfc$1(_sfc_main$8,[["render",_sfc_render$a],["__scopeId","data-v-ff19bf9f"]]),EcanTabs=withInstall$1(Tabs$1),circulateProps={...props$1,name:"循环列表",type:"ecanCirculate",keyName:"循环列表",width:"300px",height:"300px",zIndex:0,borderColor:"#eee",borderStyle:"solid",borderWidth:"2px",graphicConfig:{},isAutoScroll:!1,scrollSpeed:10,componentList:[],data:[],dataType:"indicator",keyFieldMap:[],unitInterval:15,backgroundColor:"#ffffff",colNum:null,scrollDirection:"horizontal",associatId:""},circulateComponentProps=transformToComponentProps(circulateProps),circulateEvents=["click","refreshData","resetRecord"],_sfc_main$7=vue.defineComponent({name:"EcanCirculate",props:{...circulateComponentProps,sourceLeft:String,sourceTop:String,sourceWidth:Number},components:{MarqueeScroll,Skeleton},setup(c,{expose:u}){const f="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",d=vue.ref(!1),h=usePickComponentStyle(c,["background"]),{allComponentResData:v}=vue.inject(All_COMPONENT_RES_DATA,{allComponentResData:{}}),{globalVariable:p}=vue.inject(GLOBAL_VARIABLE,{globalVariable:{}}),m=vue.inject("usedComponentList",[]),g=vue.inject("isMobile",!1),{getGlobalModel:y,setGlobalModel:b}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Hn=>{},setGlobalModel:(Hn,Kn)=>{}}),gn=vue.ref([]),x=vue.ref({}),{pageMode:vn,width:J,height:j}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",width:null,height:null}),Fn=vue.computed(()=>{if(vue.unref(g)){const Hn=document.body.clientWidth,Kn=c.sourceWidth||getFormatWh(c.width,vue.unref(J));return Hn/Kn||1}else return 1});function Bn(Hn){for(const Kn of Hn)Kn.left=parseFloat(Kn.left)-parseFloat(c.sourceLeft||c.left)+"px",Kn.top=parseFloat(Kn.top)-parseFloat(c.sourceTop||c.top)+"px"}const w=Hn=>{const Kn=Hn.sort((Un,nr)=>parseFloat(Un.top)-parseFloat(nr.top))[0],zn=Hn.sort((Un,nr)=>parseFloat(Un.left)-parseFloat(nr.left))[0],qn=Hn.map(Un=>parseFloat(Un.left)+getFormatWh(Un.width,vue.unref(J))).sort((Un,nr)=>nr-Un)[0],tr=Hn.map(Un=>parseFloat(Un.top)+getFormatWh(Un.height,vue.unref(j))).sort((Un,nr)=>nr-Un)[0];if(zn&&qn&&Kn&&tr){const Un=parseFloat(zn.left),nr=parseFloat(Kn.top);return{width:qn-Un,height:tr-nr,left:Un}}else return{width:0,height:0,left:0}},re=vue.ref({}),Pn=Hn=>{var Yn,ar;const Kn=[],{graphicConfig:zn,id:qn,componentList:tr,keyFieldMap:Un,unitInterval:nr,colNum:cr}=c;let Qn=lodashEs.cloneDeep(tr),fr=[];if((Yn=vue.unref(m))!=null&&Yn.length)for(const ur of vue.unref(m))fr.push(ur),(ar=ur==null?void 0:ur.componentList)!=null&&ar.length&&fr.push(...ur.componentList);if(zn.pageMode==="design"&&zn.preview){const{containerMap:ur}=zn.pageConfig||{};fr=vue.unref(zn.componentList)||[],Qn=moveToComponentList(ur,lodashEs.cloneDeep(fr),qn)}Bn(Qn);const vr=w(Qn);if(Hn!=null&&Hn.length){const{width:ur,left:mr,height:dr}=vr;let gr=0,lr=0;Hn.forEach((hr,xr)=>{hr.index=xr+1;const Sr=nanoid(),yr=lodashEs.cloneDeep(Qn);for(const pr of yr){const br=Un.find(wr=>wr.keyName===pr.keyName),kr=nanoid();if(pr.left=(parseFloat(pr.left)+gr)*vue.unref(Fn)+"px",pr.top=(parseFloat(pr.top)+lr)*vue.unref(Fn)+"px",pr.scale=vue.unref(Fn),pr.id=kr,pr.keyName=pr.name+"_"+kr,pr.unitId=Sr,pr.extendData={[c.keyName]:{index:hr.index}},br!=null&&br.fieldName){const wr=pr.text.match(/\{(.+?)\}/g);switch(pr.type){case"ecanText":{pr.data={value:String(hr[br.fieldName])},wr!=null&&wr.length||(pr.text="{value}");break}case"ecanProportion":{pr.data={percent:String(hr[br.fieldName])},wr!=null&&wr.length||(pr.text="{percent}");break}}}for(const wr in pr){const Er=pr[wr];if(typeof Er=="string"&&Er.includes("$page")){const Pr=lodashEs.cloneDeep(pr.extendData);let Dr=Er.replace(/[{}]/g,"");const qr=Object.keys(Pr);for(const Rr of qr)if(hasChinese(Rr)){const jr="n_"+customAlphabet(f,6)();Dr=Dr.replace(new RegExp(Rr,"g"),jr),Pr[jr]=Pr[Rr]}pr[wr]=pn(Dr,{...vue.unref(p),...Pr})}}}cr&&hr.index%cr===0?(gr=0,lr+=nr+dr):gr+=nr+ur,Kn.push(...yr),re.value[Sr]=hr}),x.value={width:((cr||Hn.length)*(ur+nr)+mr)*vue.unref(Fn)+"px",height:(cr?Math.ceil(Hn.length/cr)*(nr+dr):nr+dr)*vue.unref(Fn)+"px"}}gn.value=Kn},Rn=Hn=>{var zn;const{rows:Kn=[]}=((zn=Hn==null?void 0:Hn.data)==null?void 0:zn.data)??{};Pn(Kn)},Vn=useIndicatorData(c,Rn),Wn=async()=>{try{d.value=!0;const Hn=await Vn();Rn(Hn)}catch(Hn){console.error(Hn)}finally{d.value=!1}},Gn=useRequestData(c),Zn=async()=>{try{d.value=!0;const Hn=await Gn();Rn(Hn)}catch(Hn){console.error(Hn)}finally{d.value=!1}},Xn=vue.computed(()=>{if(c.dataType!=="component")return{};const{associatId:Hn}=c,Kn=vue.unref(m).find(zn=>zn.id===Hn);return(Kn==null?void 0:Kn.dataType)==="static"?{rows:(Kn==null?void 0:Kn.data)||[]}:Hn?vue.unref(v)[Hn]:{}});vue.watch(()=>Xn.value,Hn=>{c.dataType==="component"&&Pn((Hn==null?void 0:Hn.rows)||[])},{deep:!0});const er=async()=>{var Hn;switch(c.dataType){case"indicator":await Wn();break;case"request":await Zn();break;case"component":Pn(((Hn=vue.unref(Xn))==null?void 0:Hn.rows)||[]);break}};useOnEvent(c,{refreshData:er,resetRecord:()=>{const Hn=c.id,Kn=y(Hn);b(Hn,{...Kn,RECORD:""})}}),u({refreshData:er}),b(c.id,{type:c.type,RECORD:""});const{setRequest:ir}=vue.inject(REQUEST_MODEL,{setRequest:Hn=>{}});typeof ir=="function"&&ir({id:c.id,requestFn:er,sortNum:c.requestSort});const or=useEmitEvent(c);return{loading:d,style:h,myComponentList:gn,scrollWrapStyle:x,pageMode:vn,click:Hn=>{let Kn=Hn.target;if(Kn){let zn=Kn.getAttribute("unitId");for(;!zn&&!Kn.className.includes("ecan-");)Kn=Kn.parentElement,zn=Kn.getAttribute("unitId");zn&&or("click",()=>{const qn=y(c.id);b(c.id,{...qn,type:c.type,RECORD:vue.unref(re)[zn]})})()}}}}}),Circulate_vue_vue_type_style_index_0_scoped_86a0142f_lang="",_hoisted_1$4=["id"];function _sfc_render$9(c,u,f,d,h,v){const p=vue.resolveComponent("marquee-scroll"),m=vue.resolveComponent("skeleton");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-circulate",style:vue.normalizeStyle(c.style),id:"container_"+c.id,onClick:u[0]||(u[0]=(...g)=>c.click&&c.click(...g))},[vue.createVNode(m,{loading:c.loading},{default:vue.withCtx(()=>{var g;return[(g=c.myComponentList)!=null&&g.length?(vue.openBlock(),vue.createBlock(p,{key:0,visible:c.pageMode!=="design"&&c.isAutoScroll,step:c.scrollSpeed,vertical:c.scrollDirection==="vertical",marqueeStyle:{height:"100%"},wrapStyle:{height:"100%",overflow:"auto"}},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"scroll-wrap",style:vue.normalizeStyle(c.scrollWrapStyle)},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.myComponentList,y=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(y.type),vue.normalizeProps(vue.mergeProps({key:y.id},y)),null,16))),128))],4)]),_:1},8,["visible","step","vertical"])):vue.createCommentVNode("",!0)]}),_:1},8,["loading"]),vue.renderSlot(c.$slots,"toolbox",{},void 0,!0)],12,_hoisted_1$4)}const Circulate=_export_sfc$1(_sfc_main$7,[["render",_sfc_render$9],["__scopeId","data-v-86a0142f"]]),EcanCirculate=withInstall$1(Circulate),templateProps={...props$1,name:"模板",type:"ecanTemplate",keyName:"模板",width:"300px",height:"300px",borderColor:"#eee",borderRadius:"5",borderWidth:"2px",borderStyle:"solid",pageId:""},templateComponentProps=transformToComponentProps(templateProps),templateEvents=["refreshData"],_sfc_main$6=vue.defineComponent({name:"EcanTemplate",props:{...templateComponentProps},components:{},setup(c){const u=usePickComponentStyle(c,["background"]),{templateEmit:f}=vue.inject("templateOperate",{templateEmit:(h,v)=>{}})||{};return useOnEvent(c,{refreshData:()=>{f("refreshTemplate",c.pageId)}}),{style:u}}});function _sfc_render$8(c,u,f,d,h,v){return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-template",style:vue.normalizeStyle(c.style)},[vue.renderSlot(c.$slots,"default")],4)}const Template=_export_sfc$1(_sfc_main$6,[["render",_sfc_render$8]]),EcanTemplate=withInstall$1(Template),imageProps={...props$1,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{},isHoverStyle:!1,borderRadius:"",isAnimation:!1,animationSource:{name:"",directory:""},actionType:"link",isDrillShow:!1,targetTemplate:"",transParams:[]},imageComponentProps=transformToComponentProps(imageProps),imageEvents=["click"];var lottie$1={exports:{}};(function(module,exports){typeof navigator<"u"&&function(c,u){module.exports=u()}(commonjsGlobal,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(u){_useWebWorker=!!u},getWebWorker=function(){return _useWebWorker},setLocationHref=function(u){locationHref=u},getLocationHref=function(){return locationHref};function createTag(c){return document.createElement(c)}function extendPrototype(c,u){var f,d=c.length,h;for(f=0;f<d;f+=1){h=c[f].prototype;for(var v in h)Object.prototype.hasOwnProperty.call(h,v)&&(u.prototype[v]=h[v])}}function getDescriptor(c,u){return Object.getOwnPropertyDescriptor(c,u)}function createProxyFunction(c){function u(){}return u.prototype=c,u}var audioControllerFactory=function(){function c(u){this.audios=[],this.audioFactory=u,this._volume=1,this._isMuted=!1}return c.prototype={addAudio:function(f){this.audios.push(f)},pause:function(){var f,d=this.audios.length;for(f=0;f<d;f+=1)this.audios[f].pause()},resume:function(){var f,d=this.audios.length;for(f=0;f<d;f+=1)this.audios[f].resume()},setRate:function(f){var d,h=this.audios.length;for(d=0;d<h;d+=1)this.audios[d].setRate(f)},createAudio:function(f){return this.audioFactory?this.audioFactory(f):window.Howl?new window.Howl({src:[f]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(f){this.audioFactory=f},setVolume:function(f){this._volume=f,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var f,d=this.audios.length;for(f=0;f<d;f+=1)this.audios[f].volume(this._volume*(this._isMuted?0:1))}},function(){return new c}}(),createTypedArray=function(){function c(f,d){var h=0,v=[],p;switch(f){case"int16":case"uint8c":p=1;break;default:p=1.1;break}for(h=0;h<d;h+=1)v.push(p);return v}function u(f,d){return f==="float32"?new Float32Array(d):f==="int16"?new Int16Array(d):f==="uint8c"?new Uint8ClampedArray(d):c(f,d)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?u:c}();function createSizedArray(c){return Array.apply(null,{length:c})}function _typeof$6(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$6=function(f){return typeof f}:_typeof$6=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},_typeof$6(c)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var c=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],u,f=c.length;for(u=0;u<f;u+=1)BMMath[c[u]]=Math[c[u]]})(),BMMath.random=Math.random,BMMath.abs=function(c){var u=_typeof$6(c);if(u==="object"&&c.length){var f=createSizedArray(c.length),d,h=c.length;for(d=0;d<h;d+=1)f[d]=Math.abs(c[d]);return f}return Math.abs(c)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(c){c.style.position="absolute",c.style.top=0,c.style.left=0,c.style.display="block",c.style.transformOrigin="0 0",c.style.webkitTransformOrigin="0 0",c.style.backfaceVisibility="visible",c.style.webkitBackfaceVisibility="visible",c.style.transformStyle="preserve-3d",c.style.webkitTransformStyle="preserve-3d",c.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(c,u,f,d){this.type=c,this.currentTime=u,this.totalTime=f,this.direction=d<0?-1:1}function BMCompleteEvent(c,u){this.type=c,this.direction=u<0?-1:1}function BMCompleteLoopEvent(c,u,f,d){this.type=c,this.currentLoop=f,this.totalLoops=u,this.direction=d<0?-1:1}function BMSegmentStartEvent(c,u,f){this.type=c,this.firstFrame=u,this.totalFrames=f}function BMDestroyEvent(c,u){this.type=c,this.target=u}function BMRenderFrameErrorEvent(c,u){this.type="renderFrameError",this.nativeError=c,this.currentTime=u}function BMConfigErrorEvent(c){this.type="configError",this.nativeError=c}var createElementID=function(){var c=0;return function(){return c+=1,idPrefix$1+"__lottie_element_"+c}}();function HSVtoRGB(c,u,f){var d,h,v,p,m,g,y,b;switch(p=Math.floor(c*6),m=c*6-p,g=f*(1-u),y=f*(1-m*u),b=f*(1-(1-m)*u),p%6){case 0:d=f,h=b,v=g;break;case 1:d=y,h=f,v=g;break;case 2:d=g,h=f,v=b;break;case 3:d=g,h=y,v=f;break;case 4:d=b,h=g,v=f;break;case 5:d=f,h=g,v=y;break}return[d,h,v]}function RGBtoHSV(c,u,f){var d=Math.max(c,u,f),h=Math.min(c,u,f),v=d-h,p,m=d===0?0:v/d,g=d/255;switch(d){case h:p=0;break;case c:p=u-f+v*(u<f?6:0),p/=6*v;break;case u:p=f-c+v*2,p/=6*v;break;case f:p=c-u+v*4,p/=6*v;break}return[p,m,g]}function addSaturationToRGB(c,u){var f=RGBtoHSV(c[0]*255,c[1]*255,c[2]*255);return f[1]+=u,f[1]>1?f[1]=1:f[1]<=0&&(f[1]=0),HSVtoRGB(f[0],f[1],f[2])}function addBrightnessToRGB(c,u){var f=RGBtoHSV(c[0]*255,c[1]*255,c[2]*255);return f[2]+=u,f[2]>1?f[2]=1:f[2]<0&&(f[2]=0),HSVtoRGB(f[0],f[1],f[2])}function addHueToRGB(c,u){var f=RGBtoHSV(c[0]*255,c[1]*255,c[2]*255);return f[0]+=u/360,f[0]>1?f[0]-=1:f[0]<0&&(f[0]+=1),HSVtoRGB(f[0],f[1],f[2])}var rgbToHex=function(){var c=[],u,f;for(u=0;u<256;u+=1)f=u.toString(16),c[u]=f.length===1?"0"+f:f;return function(d,h,v){return d<0&&(d=0),h<0&&(h=0),v<0&&(v=0),"#"+c[d]+c[h]+c[v]}}(),setSubframeEnabled=function(u){subframeEnabled=!!u},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(u){expressionsPlugin=u},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(u){expressionsInterfaces=u},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(u){defaultCurveSegments=u},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(u){idPrefix$1=u};function createNS(c){return document.createElementNS(svgNS,c)}function _typeof$5(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(f){return typeof f}:_typeof$5=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},_typeof$5(c)}var dataManager=function(){var c=1,u=[],f,d,h={onmessage:function(){},postMessage:function(vn){f({data:vn})}},v={postMessage:function(vn){h.onmessage({data:vn})}};function p(x){if(window.Worker&&window.Blob&&getWebWorker()){var vn=new Blob(["var _workerSelf = self; self.onmessage = ",x.toString()],{type:"text/javascript"}),J=URL.createObjectURL(vn);return new Worker(J)}return f=x,h}function m(){d||(d=p(function(vn){function J(){function Fn(sr,Hn){var Kn,zn,qn=sr.length,tr,Un,nr,cr;for(zn=0;zn<qn;zn+=1)if(Kn=sr[zn],"ks"in Kn&&!Kn.completed){if(Kn.completed=!0,Kn.hasMask){var Qn=Kn.masksProperties;for(Un=Qn.length,tr=0;tr<Un;tr+=1)if(Qn[tr].pt.k.i)Rn(Qn[tr].pt.k);else for(cr=Qn[tr].pt.k.length,nr=0;nr<cr;nr+=1)Qn[tr].pt.k[nr].s&&Rn(Qn[tr].pt.k[nr].s[0]),Qn[tr].pt.k[nr].e&&Rn(Qn[tr].pt.k[nr].e[0])}Kn.ty===0?(Kn.layers=re(Kn.refId,Hn),Fn(Kn.layers,Hn)):Kn.ty===4?Pn(Kn.shapes):Kn.ty===5&&ir(Kn)}}function Bn(sr,Hn){if(sr){var Kn=0,zn=sr.length;for(Kn=0;Kn<zn;Kn+=1)sr[Kn].t===1&&(sr[Kn].data.layers=re(sr[Kn].data.refId,Hn),Fn(sr[Kn].data.layers,Hn))}}function w(sr,Hn){for(var Kn=0,zn=Hn.length;Kn<zn;){if(Hn[Kn].id===sr)return Hn[Kn];Kn+=1}return null}function re(sr,Hn){var Kn=w(sr,Hn);return Kn?Kn.layers.__used?JSON.parse(JSON.stringify(Kn.layers)):(Kn.layers.__used=!0,Kn.layers):null}function Pn(sr){var Hn,Kn=sr.length,zn,qn;for(Hn=Kn-1;Hn>=0;Hn-=1)if(sr[Hn].ty==="sh")if(sr[Hn].ks.k.i)Rn(sr[Hn].ks.k);else for(qn=sr[Hn].ks.k.length,zn=0;zn<qn;zn+=1)sr[Hn].ks.k[zn].s&&Rn(sr[Hn].ks.k[zn].s[0]),sr[Hn].ks.k[zn].e&&Rn(sr[Hn].ks.k[zn].e[0]);else sr[Hn].ty==="gr"&&Pn(sr[Hn].it)}function Rn(sr){var Hn,Kn=sr.i.length;for(Hn=0;Hn<Kn;Hn+=1)sr.i[Hn][0]+=sr.v[Hn][0],sr.i[Hn][1]+=sr.v[Hn][1],sr.o[Hn][0]+=sr.v[Hn][0],sr.o[Hn][1]+=sr.v[Hn][1]}function Vn(sr,Hn){var Kn=Hn?Hn.split("."):[100,100,100];return sr[0]>Kn[0]?!0:Kn[0]>sr[0]?!1:sr[1]>Kn[1]?!0:Kn[1]>sr[1]?!1:sr[2]>Kn[2]?!0:Kn[2]>sr[2]?!1:null}var Wn=function(){var sr=[4,4,14];function Hn(zn){var qn=zn.t.d;zn.t.d={k:[{s:qn,t:0}]}}function Kn(zn){var qn,tr=zn.length;for(qn=0;qn<tr;qn+=1)zn[qn].ty===5&&Hn(zn[qn])}return function(zn){if(Vn(sr,zn.v)&&(Kn(zn.layers),zn.assets)){var qn,tr=zn.assets.length;for(qn=0;qn<tr;qn+=1)zn.assets[qn].layers&&Kn(zn.assets[qn].layers)}}}(),Gn=function(){var sr=[4,7,99];return function(Hn){if(Hn.chars&&!Vn(sr,Hn.v)){var Kn,zn=Hn.chars.length;for(Kn=0;Kn<zn;Kn+=1){var qn=Hn.chars[Kn];qn.data&&qn.data.shapes&&(Pn(qn.data.shapes),qn.data.ip=0,qn.data.op=99999,qn.data.st=0,qn.data.sr=1,qn.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},Hn.chars[Kn].t||(qn.data.shapes.push({ty:"no"}),qn.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),Zn=function(){var sr=[5,7,15];function Hn(zn){var qn=zn.t.p;typeof qn.a=="number"&&(qn.a={a:0,k:qn.a}),typeof qn.p=="number"&&(qn.p={a:0,k:qn.p}),typeof qn.r=="number"&&(qn.r={a:0,k:qn.r})}function Kn(zn){var qn,tr=zn.length;for(qn=0;qn<tr;qn+=1)zn[qn].ty===5&&Hn(zn[qn])}return function(zn){if(Vn(sr,zn.v)&&(Kn(zn.layers),zn.assets)){var qn,tr=zn.assets.length;for(qn=0;qn<tr;qn+=1)zn.assets[qn].layers&&Kn(zn.assets[qn].layers)}}}(),Xn=function(){var sr=[4,1,9];function Hn(zn){var qn,tr=zn.length,Un,nr;for(qn=0;qn<tr;qn+=1)if(zn[qn].ty==="gr")Hn(zn[qn].it);else if(zn[qn].ty==="fl"||zn[qn].ty==="st")if(zn[qn].c.k&&zn[qn].c.k[0].i)for(nr=zn[qn].c.k.length,Un=0;Un<nr;Un+=1)zn[qn].c.k[Un].s&&(zn[qn].c.k[Un].s[0]/=255,zn[qn].c.k[Un].s[1]/=255,zn[qn].c.k[Un].s[2]/=255,zn[qn].c.k[Un].s[3]/=255),zn[qn].c.k[Un].e&&(zn[qn].c.k[Un].e[0]/=255,zn[qn].c.k[Un].e[1]/=255,zn[qn].c.k[Un].e[2]/=255,zn[qn].c.k[Un].e[3]/=255);else zn[qn].c.k[0]/=255,zn[qn].c.k[1]/=255,zn[qn].c.k[2]/=255,zn[qn].c.k[3]/=255}function Kn(zn){var qn,tr=zn.length;for(qn=0;qn<tr;qn+=1)zn[qn].ty===4&&Hn(zn[qn].shapes)}return function(zn){if(Vn(sr,zn.v)&&(Kn(zn.layers),zn.assets)){var qn,tr=zn.assets.length;for(qn=0;qn<tr;qn+=1)zn.assets[qn].layers&&Kn(zn.assets[qn].layers)}}}(),er=function(){var sr=[4,4,18];function Hn(zn){var qn,tr=zn.length,Un,nr;for(qn=tr-1;qn>=0;qn-=1)if(zn[qn].ty==="sh")if(zn[qn].ks.k.i)zn[qn].ks.k.c=zn[qn].closed;else for(nr=zn[qn].ks.k.length,Un=0;Un<nr;Un+=1)zn[qn].ks.k[Un].s&&(zn[qn].ks.k[Un].s[0].c=zn[qn].closed),zn[qn].ks.k[Un].e&&(zn[qn].ks.k[Un].e[0].c=zn[qn].closed);else zn[qn].ty==="gr"&&Hn(zn[qn].it)}function Kn(zn){var qn,tr,Un=zn.length,nr,cr,Qn,fr;for(tr=0;tr<Un;tr+=1){if(qn=zn[tr],qn.hasMask){var vr=qn.masksProperties;for(cr=vr.length,nr=0;nr<cr;nr+=1)if(vr[nr].pt.k.i)vr[nr].pt.k.c=vr[nr].cl;else for(fr=vr[nr].pt.k.length,Qn=0;Qn<fr;Qn+=1)vr[nr].pt.k[Qn].s&&(vr[nr].pt.k[Qn].s[0].c=vr[nr].cl),vr[nr].pt.k[Qn].e&&(vr[nr].pt.k[Qn].e[0].c=vr[nr].cl)}qn.ty===4&&Hn(qn.shapes)}}return function(zn){if(Vn(sr,zn.v)&&(Kn(zn.layers),zn.assets)){var qn,tr=zn.assets.length;for(qn=0;qn<tr;qn+=1)zn.assets[qn].layers&&Kn(zn.assets[qn].layers)}}}();function Jn(sr){sr.__complete||(Xn(sr),Wn(sr),Gn(sr),Zn(sr),er(sr),Fn(sr.layers,sr.assets),Bn(sr.chars,sr.assets),sr.__complete=!0)}function ir(sr){sr.t.a.length===0&&"m"in sr.t.p}var or={};return or.completeData=Jn,or.checkColors=Xn,or.checkChars=Gn,or.checkPathProperties=Zn,or.checkShapes=er,or.completeLayers=Fn,or}if(v.dataManager||(v.dataManager=J()),v.assetLoader||(v.assetLoader=function(){function Fn(w){var re=w.getResponseHeader("content-type");return re&&w.responseType==="json"&&re.indexOf("json")!==-1||w.response&&_typeof$5(w.response)==="object"?w.response:w.response&&typeof w.response=="string"?JSON.parse(w.response):w.responseText?JSON.parse(w.responseText):null}function Bn(w,re,Pn,Rn){var Vn,Wn=new XMLHttpRequest;try{Wn.responseType="json"}catch{}Wn.onreadystatechange=function(){if(Wn.readyState===4)if(Wn.status===200)Vn=Fn(Wn),Pn(Vn);else try{Vn=Fn(Wn),Pn(Vn)}catch(Gn){Rn&&Rn(Gn)}};try{Wn.open(["G","E","T"].join(""),w,!0)}catch{Wn.open(["G","E","T"].join(""),re+"/"+w,!0)}Wn.send()}return{load:Bn}}()),vn.data.type==="loadAnimation")v.assetLoader.load(vn.data.path,vn.data.fullPath,function(Fn){v.dataManager.completeData(Fn),v.postMessage({id:vn.data.id,payload:Fn,status:"success"})},function(){v.postMessage({id:vn.data.id,status:"error"})});else if(vn.data.type==="complete"){var j=vn.data.animation;v.dataManager.completeData(j),v.postMessage({id:vn.data.id,payload:j,status:"success"})}else vn.data.type==="loadData"&&v.assetLoader.load(vn.data.path,vn.data.fullPath,function(Fn){v.postMessage({id:vn.data.id,payload:Fn,status:"success"})},function(){v.postMessage({id:vn.data.id,status:"error"})})}),d.onmessage=function(x){var vn=x.data,J=vn.id,j=u[J];u[J]=null,vn.status==="success"?j.onComplete(vn.payload):j.onError&&j.onError()})}function g(x,vn){c+=1;var J="processId_"+c;return u[J]={onComplete:x,onError:vn},J}function y(x,vn,J){m();var j=g(vn,J);d.postMessage({type:"loadAnimation",path:x,fullPath:window.location.origin+window.location.pathname,id:j})}function b(x,vn,J){m();var j=g(vn,J);d.postMessage({type:"loadData",path:x,fullPath:window.location.origin+window.location.pathname,id:j})}function gn(x,vn,J){m();var j=g(vn,J);d.postMessage({type:"complete",animation:x,id:j})}return{loadAnimation:y,loadData:b,completeAnimation:gn}}(),ImagePreloader=function(){var c=function(){var Bn=createTag("canvas");Bn.width=1,Bn.height=1;var w=Bn.getContext("2d");return w.fillStyle="rgba(0,0,0,0)",w.fillRect(0,0,1,1),Bn}();function u(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function f(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function d(Bn,w,re){var Pn="";if(Bn.e)Pn=Bn.p;else if(w){var Rn=Bn.p;Rn.indexOf("images/")!==-1&&(Rn=Rn.split("/")[1]),Pn=w+Rn}else Pn=re,Pn+=Bn.u?Bn.u:"",Pn+=Bn.p;return Pn}function h(Bn){var w=0,re=setInterval((function(){var Pn=Bn.getBBox();(Pn.width||w>500)&&(this._imageLoaded(),clearInterval(re)),w+=1}).bind(this),50)}function v(Bn){var w=d(Bn,this.assetsPath,this.path),re=createNS("image");isSafari?this.testImageLoaded(re):re.addEventListener("load",this._imageLoaded,!1),re.addEventListener("error",(function(){Pn.img=c,this._imageLoaded()}).bind(this),!1),re.setAttributeNS("http://www.w3.org/1999/xlink","href",w),this._elementHelper.append?this._elementHelper.append(re):this._elementHelper.appendChild(re);var Pn={img:re,assetData:Bn};return Pn}function p(Bn){var w=d(Bn,this.assetsPath,this.path),re=createTag("img");re.crossOrigin="anonymous",re.addEventListener("load",this._imageLoaded,!1),re.addEventListener("error",(function(){Pn.img=c,this._imageLoaded()}).bind(this),!1),re.src=w;var Pn={img:re,assetData:Bn};return Pn}function m(Bn){var w={assetData:Bn},re=d(Bn,this.assetsPath,this.path);return dataManager.loadData(re,(function(Pn){w.img=Pn,this._footageLoaded()}).bind(this),(function(){w.img={},this._footageLoaded()}).bind(this)),w}function g(Bn,w){this.imagesLoadedCb=w;var re,Pn=Bn.length;for(re=0;re<Pn;re+=1)Bn[re].layers||(!Bn[re].t||Bn[re].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(Bn[re]))):Bn[re].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(Bn[re]))))}function y(Bn){this.path=Bn||""}function b(Bn){this.assetsPath=Bn||""}function gn(Bn){for(var w=0,re=this.images.length;w<re;){if(this.images[w].assetData===Bn)return this.images[w].img;w+=1}return null}function x(){this.imagesLoadedCb=null,this.images.length=0}function vn(){return this.totalImages===this.loadedAssets}function J(){return this.totalFootages===this.loadedFootagesCount}function j(Bn,w){Bn==="svg"?(this._elementHelper=w,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function Fn(){this._imageLoaded=u.bind(this),this._footageLoaded=f.bind(this),this.testImageLoaded=h.bind(this),this.createFootageData=m.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return Fn.prototype={loadAssets:g,setAssetsPath:b,setPath:y,loadedImages:vn,loadedFootages:J,destroy:x,getAsset:gn,createImgData:p,createImageData:v,imageLoaded:u,footageLoaded:f,setCacheType:j},Fn}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(u,f){if(this._cbs[u])for(var d=this._cbs[u],h=0;h<d.length;h+=1)d[h](f)},addEventListener:function(u,f){return this._cbs[u]||(this._cbs[u]=[]),this._cbs[u].push(f),(function(){this.removeEventListener(u,f)}).bind(this)},removeEventListener:function(u,f){if(!f)this._cbs[u]=null;else if(this._cbs[u]){for(var d=0,h=this._cbs[u].length;d<h;)this._cbs[u][d]===f&&(this._cbs[u].splice(d,1),d-=1,h-=1),d+=1;this._cbs[u].length||(this._cbs[u]=null)}}};var markerParser=function(){function c(u){for(var f=u.split(`\r
171
+ <span style="color: ${hr||c.color};${vue.unref(Rn)}">${c.minusSignShow?"-":""}${Math.abs(+wr).toFixed(2)}%</span>
172
+ </span>`))):c.format==="percent"?(isNaN(+wr)||(wr=(+wr*100).toFixed(2)+"%"),mr=mr.replace(yr,`<span class="${lr}" style="color:${Jn(wr)||c.variableColor};font-size:${vue.unref(v)};${vue.unref(Rn)}">${wr}</span>`)):c.format==="money"?(isNaN(+wr)||(wr=formatMoney(+wr)),mr=mr.replace(yr,`<span class="${lr}" style="color:${Jn(wr)||c.variableColor};font-size:${vue.unref(v)};${vue.unref(Rn)}">${wr}</span>`)):kr==="thousands"?(isNaN(+wr)||(wr=formatThousands(+wr)),mr=mr.replace(yr,`<span class="${lr}" style="color:${Jn(wr)||c.variableColor};font-size:${vue.unref(v)};${vue.unref(Rn)}">${wr}</span>`)):mr=mr.replace(yr,`<span class="${lr}" style="color:${Jn(wr)||c.variableColor};font-size:${vue.unref(v)};${vue.unref(Rn)}">${wr}</span>`)}}if(gr||(gr=`<span class="${lr}" style="color: ${hr};${vue.unref(Rn)}">${mr}</span>`),c.unitShow&&c.unitText){const{unitTop:Sr,unitLeft:yr}=c;let pr="position:relative;";Sr&&(pr+=`top:${Sr};`),yr&&(pr+=`margin-left:${yr};`),gr+=`<span style='color:${c.unitColor};font-size:${c.unitFontSize};font-weight:${c.unitFontWeight};${pr};${vue.unref(Rn)}'>${c.unitText}</span>`}return c.exceedConfig&&(gr=`<span class="${lr}" style="display: inline-block;color: ${Jn(gr)};">${gr}</span>`),gr.includes("span")||(gr=`<span class="${lr}" style="color: ${Jn(gr)};">${gr}</span>`),gr});function Jn(Yn){let ar="",ur=!1;const{targetValue:mr,targetShow:dr,notExpectColor:gr}=c;if(dr){switch(c.targetRule){case"equal":Yn!==mr&&(ur=!0);break;case"greater":Yn<=mr&&(ur=!0);break;case"greater_equal":Yn<mr&&(ur=!0);break;case"less":Yn>=mr&&(ur=!0);break;case"less_equal":Yn>mr&&(ur=!0);break}ur&&(ar=gr)}return ar}const{pageId:ir}=vue.inject("templateOperate",{pageId:""})||{},or=useRequestData(c),sr=vue.ref(!1),Hn=async()=>{var Yn,ar,ur;try{sr.value=!0;const mr=await or();(Yn=mr==null?void 0:mr.data)!=null&&Yn.data.rowsToData?Pn(((ar=mr==null?void 0:mr.data)==null?void 0:ar.data.rowsToData)||{}):Pn(((ur=mr==null?void 0:mr.data)==null?void 0:ur.data)||{})}catch(mr){console.error(mr)}finally{sr.value=!1}},Kn=()=>{re("")},zn=Yn=>{var ur,mr;const{data:ar}=(Yn==null?void 0:Yn.data)||{};if(ar){f.value=!1;const{columns:dr=[],rows:gr=[]}=((ur=Yn==null?void 0:Yn.data)==null?void 0:ur.data)??{},{graphicConfig:lr}=c;let hr={};if(dr.length>0)if((mr=lr==null?void 0:lr.dimensionList)!=null&&mr.length){const xr=dr[0];xr&&(gr!=null&&gr.length)&&(hr={value:gr[0][xr]})}else{const xr=dr.find(Sr=>!!Sr);xr&&(hr={value:isNaN(gr[xr])?0:gr[xr]||0})}re(hr==null?void 0:hr.value),Pn(hr)}else f.value=!0,re(c.variableDefaultValue),Pn({value:c.variableDefaultValue})},qn=useIndicatorData(c,zn),tr=async()=>{try{sr.value=!0;const Yn=await qn();zn(Yn)}catch(Yn){console.error(Yn)}finally{sr.value=!1,Fn(c.id,!0)}},Un=vue.ref(!1);vue.watch(Bn,Yn=>{if(c.dataType==="indicator"){const ar=getFixedValueDatas(c.graphicConfig);ar!=null&&ar.length&&(!vue.unref(Un)&&canRequestIndicator(c.graphicConfig,Yn)?(Un.value=!0,nr()):canRequestIndicator(c.graphicConfig,Yn)||(Un.value=!1))}},{deep:!0});const nr=async()=>{switch(c.dataType){case"indicator":await tr();break;case"request":{const{openCustomRequestData:Yn,customRequestName:ar}=c;Yn||Yn===void 0?await Hn():(sr.value=!0,j(ar,ur=>{ur&&(ur.rowsToData?Pn(ur.rowsToData):Pn(ur)),sr.value=!1}));break}}},{setRequest:cr}=vue.inject(REQUEST_MODEL,{setRequest:({id:Yn,sortNum:ar,requestFn:ur})=>{}});typeof cr=="function"&&cr({id:c.id,requestFn:nr,sortNum:c.requestSort}),u({refreshData:nr});const Qn=useEmitEvent(c),fr=Qn("click",()=>{const Yn=document.getElementsByClassName(`ecan-text_${c.id}`);Yn!=null&&Yn.length&&re(Yn[0].innerText),setTimeout(()=>{re("")},0),!(!c.linkPage&&!c.href)&&handleJumpLink(c,{pageMode:vue.unref(y),targetTemplate:c.targetTemplate,getRecordValueByKeyName:J,setTemplateData:w})}),vr=Qn("valueChange",()=>{Zn.value++});return useOnEvent(c,{refreshData:nr,resetRecord:Kn,click:fr,valueChange:vr}),vue.watch(()=>er.value,(Yn,ar)=>{Yn!==ar&&vr()}),{style:d,myText:er,loading:sr,click:fr,textIndent:p,vFontSize:v,gradientStyle:Vn,cursorStyle:Wn,myTitle:m,wrapStyle:Gn,textRef:g,globalColor:Xn}}}),__injectCSSVars__$4=()=>{vue.useCssVars(c=>({"5e44cf23":c.vFontSize,"1275203c":c.textIndent,53460194:c.percentageSide,"722d475f":c.titleFontColor,"5a7d2364":c.variableColor}))},__setup__$4=__default__$4.setup;__default__$4.setup=__setup__$4?(c,u)=>(__injectCSSVars__$4(),__setup__$4(c,u)):__injectCSSVars__$4;const Text_vue_vue_type_style_index_0_scoped_61aa55f8_lang="",Text_vue_vue_type_style_index_1_lang="",_hoisted_1$j=["innerHTML"],_hoisted_2$a=["innerHTML"],_hoisted_3$5=["innerHTML"];function _sfc_render$x(c,u,f,d,h,v){const p=vue.resolveComponent("skeleton"),m=vue.resolveComponent("a-tooltip");return c.loading?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:vue.normalizeStyle(c.style)},[vue.createVNode(p,{loading:c.loading},null,8,["loading"])],4)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"ecan-text",style:vue.normalizeStyle(c.style),onClick:u[0]||(u[0]=(...g)=>c.click&&c.click(...g))},[c.myTitle?(vue.openBlock(),vue.createBlock(m,{key:0,overlayClassName:"ecan-text-tooltip",color:c.titleBackgroundColor||"#ffffff"},{title:vue.withCtx(()=>[vue.createElementVNode("div",{style:vue.normalizeStyle({padding:"10px",maxHeight:"500px",overflow:"auto",color:c.titleFontColor||"#000000"}),innerHTML:c.myTitle},null,12,_hoisted_1$j)]),default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass("ecan-text_"+c.id),style:vue.normalizeStyle({...c.gradientStyle,...c.cursorStyle}),innerHTML:c.myText},null,14,_hoisted_2$a)]),_:1},8,["color"])):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:vue.normalizeClass(["ecantext_"+c.id,c.isContentMarkDown?"markdown-content-tenxt":""]),style:vue.normalizeStyle({...c.gradientStyle,...c.cursorStyle,...c.wrapStyle,color:c.globalColor}),ref:"textRef",innerHTML:c.myText},null,14,_hoisted_3$5)),vue.renderSlot(c.$slots,"toolbox",{},void 0,!0)],4))}const Text=_export_sfc$1(__default__$4,[["render",_sfc_render$x],["__scopeId","data-v-61aa55f8"]]),EcanText=withInstall$1(Text),_sfc_main$s=vue.defineComponent({name:"EcanScrollText",setup(){return{text:vue.ref("基础文本")}}}),ScrollText_vue_vue_type_style_index_0_scoped_4dd9c03e_lang="",_hoisted_1$i={class:"red"};function _sfc_render$w(c,u,f,d,h,v){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$i,vue.toDisplayString(c.text),1)}const ScrollText=_export_sfc$1(_sfc_main$s,[["render",_sfc_render$w],["__scopeId","data-v-4dd9c03e"]]),EcanScrollText=withInstall$1(ScrollText),timeDisplayProps={...props$1,name:"时间展示",keyName:"时间展示",type:"ecanTimeDisplay",format:"YYYY-MM-DD dddd HH:mm:ss",fontSize:"16px",color:"#333",width:"240px",height:"40px",fontFamily:"",fontWeight:400,textShadow:"",alignItems:"center",justifyContent:"center",operate:null,updateInterval:{value:1,mode:"second"}},timeDisplayComponentProps=transformToComponentProps(timeDisplayProps),timeDisplayEvents=["timeChange"],_sfc_main$r=vue.defineComponent({name:"EcanTimeDisplay",props:{...timeDisplayComponentProps},setup(c){const{pageMode:u}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),f=usePickComponentStyle(c),d=()=>{const{format:b,operate:gn}=c;let x=dayjs();if(gn){const{type:vn,value:J,mode:j}=gn;switch(vn){case"add":x=x.add(J,j);break;case"minus":x=x.subtract(J,j)}}return x.format(b)},h=vue.ref();vue.watch(()=>[c.operate,c.format],()=>{h.value=d()},{immediate:!0,deep:!0}),vue.watch(()=>c.updateInterval,()=>{y()},{deep:!0});let v=null;const p=()=>{clearInterval(v),v=null},g=useEmitEvent(c)("timeChange",()=>{}),y=()=>{v&&p();let b=1e3;const{value:gn,mode:x}=c.updateInterval||{};gn&&(b=b*gn);const vn={second:1,minute:60,hour:60*60,day:24*60*60};x&&(b=b*vn[x]),v=setInterval(()=>{h.value=d(),vue.unref(u)!=="design"&&g()},b)};return useOnEvent(c,{timeChange:g}),vue.onMounted(()=>{y()}),vue.onUnmounted(()=>{p()}),{style:f,time:h}}}),TimeDisplay_vue_vue_type_style_index_0_scoped_b9216314_lang="";function _sfc_render$v(c,u,f,d,h,v){return vue.openBlock(),vue.createElementBlock("div",{class:"time-display",style:vue.normalizeStyle(c.style)},vue.toDisplayString(c.time),5)}const TimeDisplay=_export_sfc$1(_sfc_main$r,[["render",_sfc_render$v],["__scopeId","data-v-b9216314"]]),EcanTimeDisplay=withInstall$1(TimeDisplay),listProps={...props$1,type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#0d215e",itemColSpan:"0px",itemRowSpan:"10px",itemPadding:"20px",useRanking:!1,useTitle:!1,sliceCount:6,columnCount:1,itemHeight:"32px",data:[{name:"a",age:12},{name:"b",age:14}],columns:[{key:"name"},{key:"age"}],seqIcon:!1,isUseSeq:!1,seqWidth:"10%",seqName:"序号",seqFontSize:"14px",isAutoScroll:!1,scrollSpeed:10,graphicConfig:{},seqIconWidth:"",seqIconHeight:"",seqIconConfig:[],seqIconOffsetX:0,seqIconOffsetY:0,seqIndexFormatter:"{index}",itemWidth:"100%"},listComponentProps=transformToComponentProps(listProps),listEvents=["refreshData","click","resetRecord"],seqIcon4="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAWhJREFUSEvNlz9Lw0AYxp/3iJ2TgqN+ia5ihbb0A/hnEXG3QxHEyUkQVwcHwU3cgoI4hHKXUnQS3Z0VQVBwbTVtXrlciyKmLo2XmxI47v3x3HPvPUdcKk3B85og2gYwjUkOIoD5CcAeSXk0bmniSqWJQuEA/f4kEb7WMjD6f42kPE0rQlyrPYJoZjg5O5g4voDnrZDvf/xWRIMkuJkOo8odXHeefL9rG+QWrlvOA8gNomiBOp2ePUVM5S7iuE5heG0bBNBeieMdKLWvv74D/Y9Zf0rAfEZKLdkHEUIrcw8h5qjVetNAdhRJKidH+nnY6EJ7IKN9YY4ANPIAou+WDXsgZmtewLxKSik7ICOzOk6ZguDVplnPScpFe8c3Jw2th8GgTu32lb0Wb4yZg0vPgOQmBvwRjKrVBwgxm3lUZL6E4yxTELyneaQBxznMPDwzr5NSJ+nhWT8nisVNAFuZPSeYd0mp43G5+BNp2sfxEUU29gAAAABJRU5ErkJggg==",seqIcon5="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAbVJREFUSEvNl7tKA1EQhmfOyd6ClikVLHwCWzHb5QHUbWIStVRQBLGyEEFsLSwUq6idKIiFjZdNUgTR3k7wAoqC2GU3mz0ju5uIRaKN68l5gDMfM//M/IO0PaS4yd55ErTEEFMEf/cYIvgknjjgmpq3t376GZ2iOa8l+Ybn+CD+kqIZlSFA+C1CTpuw9zvBYK2YfuCM9QmKgaIZNcEQGj4da0bKQuug3g4G3T2TYmQIYwYlIqIbVXdH0KrW2oI4u2Z8qfgqT6AVutZ1Ny0VhAelEXSl+2DilO1IywhCKNgaR8oouVJFGkikk0grvqBl9c5cx5UV8R0I/0MjbTJwqOftMekgmsLA9fxbTa8Po1V9D8eMpIyAwhE8n55JYM6YvDyXBhIN21DEHgHNdgNIg4BmpIEEpak3xGsCMKsU7DMpIC2xeg2R7p2uvMkTK9GRXiiNSmnfrhhoYXcQODzBMkr2oixtxLeW3osP5oDMpRdZxl9sQNcYo1oxfc8Z64/dKgo6efwwxgfnTt1OGpnVDL4Zp3mOAouCmivvdjTPwTlRN3oWBMFiHOeEIPFEAKtGvrTz0znxCSDl9ZPnj4lKAAAAAElFTkSuQmCC",seqIcon6="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAZhJREFUSEvNl79LY0EUhb87L6uwkHSieRjBwm7/ApHVbcwzrT8ake21EGHZympBbLewEOxk2xVEBAVttBLtrRWTiLtaiTHue3NlsgiKRiwSJ1NOMffjzLl3zghH+oHL81ms/Y4xHajSsGUMJMkZIgtE4fJr5wqbpVnS6Z9UrmkoxENVMYCC6BTD4a96MMJW8RQT5LC2YUI8OygInDLrdGcn+CR3LxUStsvaFCUeV3NXpPaIdPKZ/lzlZZCtUgNNUUdUB2LtIZlksBVADmivDvGl99afIiLOsBWUPFG47w/EVXbdU7uieJ7h7CIiT7pDeA+PPJfgN1E49njbD0hbO9xVj8kkA/TnrmqCeVIEUimI4zJqphjp2vUHUpPBmZh/JDrjH0Q1xjLtDyRIQRJfQDBJ1LnjB+TBrFYGKWT/+DTrGlE46qd9W2Kgue5QvUXIkw/3/I34/69vCzx6b4oBrROMiieYoKfpUTGON9CbcQp91ToeKc7wMbPU9PCsfCXKrtYPz+478fd8DtVvGGnOd0LlB4Vw5bV0fg/E2Mcb2D1RagAAAABJRU5ErkJggg==",seqIcon7="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAapJREFUSEvNl88rBGEYx7/P7K6yO2VGOfJPuAqF/AGYi7Q7y8mWTcnJQUquDg4kVnITJQdpZyVOsndXtKUoM4vyY3feR7OLiN0cjHff05ze7+d95vs+7/chtC6FGvRQkgiTBGrCXy4igEVOgGbzaXOx2takdaWSSl39PBefAPBfYpT3KsF4H2LITsc3KgmQ3pO6BFEz2AeId1VSwELsOHrEwKbx8hMM6T1r7EslPqsReefMqlq4PbdpPFYASflYijfJEgifqlqkQzKIArB7YheoE4emZ8Zvy/OI/xUpyz5CoNfOmMeSQah8gwRP2db5HDAtvtjoHyvyocuMLccy+6WDkBICi+KZq4Tb7vaN21K7kVGRcqMLeAa+EqChfDqWkQfy9l+YUWAgUQMgXGTQqDwQCoDZvWZWBvNW1JIC8m7WQlB0POzFb6SZlYFtJ232Sbq+tdPQnth1e52DkSN5LZ5q5dH7XQz4r2AksqqmVglG3asXUJQWv6MiWOzawfsB7I09V/DISoKCkQW/wzMzoo4VW68YnkvjRGNonEATBPgzTjDP5K3h5Wojwitkj93H9BVpxQAAAABJRU5ErkJggg==",_sfc_main$q=vue.defineComponent({name:"EcanList",components:{Skeleton,ATooltip:antDesignVue.Tooltip,MarqueeScroll},props:{...listComponentProps},setup(c,{expose:u}){const f=vue.ref(),d=usePickComponentStyle(c,["backgroundColor"]),h=(Kn,zn)=>{const{format:qn,customFormatter:tr}=zn;if(qn==null||qn==="")return Kn;const Un={money:formatMoney,percentage:formatPercentage,contrast:formatPercentage,custom:formatCustom};return Un[qn]?qn==="custom"?Un[qn](Kn,tr)||"":Un[qn](Kn)||"":""},v=(Kn,zn)=>{const qn=parseFloat(Kn+"");if(zn!=="contrast")return"";switch(!0){case qn>=0:return"goUp";case qn<0:return"goDown"}},p=useRequestData(c),m=vue.ref(!1),g=async()=>{var Kn;if(c.dataType==="request")try{m.value=!0;const zn=await p();f.value=((Kn=zn==null?void 0:zn.data)==null?void 0:Kn.data.rows)||[]}catch(zn){console.error(zn)}finally{m.value=!1}};vue.watch(()=>c.data,()=>{(c.dataType==="static"||!vue.unref(f))&&(f.value=c.data)},{immediate:!0,deep:!0});const y=vue.computed(()=>({key:"SEQ",width:c.seqWidth,title:c.seqName,align:"center",fontSize:c.seqFontSize})),b=vue.computed(()=>{const{columns:Kn,isUseSeq:zn}=c;return zn?[vue.unref(y),...Kn]:Kn}),gn=Kn=>{var tr;const{columns:zn=[],rows:qn=[]}=((tr=Kn==null?void 0:Kn.data)==null?void 0:tr.data)??{};c.isUseSeq&&zn.unshift(c.seqName),b.value.forEach((Un,nr)=>{(!c.isUseSeq||nr!==0)&&(Un.title=zn[nr],Un.key=zn[nr])}),f.value=qn},x=useIndicatorData(c,gn),vn=async()=>{try{m.value=!0;const Kn=await x();gn(Kn)}catch(Kn){console.error(Kn)}finally{m.value=!1}},J=async()=>{switch(c.dataType){case"indicator":await vn();break;case"request":await g();break}},j=useEmitEvent(c),{getGlobalModel:Fn,setGlobalModel:Bn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Kn=>{},setGlobalModel:(Kn,zn)=>{}}),w=Kn=>{j("click",()=>{const zn=Fn(c.id);Bn(c.id,{...zn,type:c.type,RECORD:Kn})})()};useOnEvent(c,{refreshData:J,resetRecord:()=>{const Kn=c.id,zn=Fn(Kn);Bn(Kn,{...zn,type:c.type,RECORD:""})}});const{setRequest:Pn}=vue.inject(REQUEST_MODEL,{setRequest:({id:Kn,sortNum:zn,requestFn:qn})=>{}});typeof Pn=="function"&&Pn({id:c.id,requestFn:J,sortNum:c.requestSort}),u({refreshData:J});const Rn=(Kn,zn)=>({flex:Kn.width?"none":"1",width:Kn.width,height:c.itemHeight,lineHeight:c.itemHeight,textAlign:(zn?Kn.cellAlign:Kn.align)||"left",backgroundColor:Kn.cellColor}),Vn=(Kn,zn)=>{let qn=0;const tr=vue.unref(f).map(nr=>nr[zn]),Un=Math.max(...tr);return Un&&(qn=Kn[zn]/Un*100),qn},Wn=Kn=>{const{progressColor:zn="#1890ff",progressGradientColor:qn=""}=Kn;return qn?{background:`linear-gradient(to right, ${zn} 0%, ${qn} 100%)`}:{backgroundColor:zn||"#1890ff"}},Gn=vue.computed(()=>{const Kn=parseFloat(c.seqFontSize)+5;return{width:Kn+10,height:Kn}}),{pageMode:Zn}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),Xn=vue.computed(()=>vue.unref(Zn)!=="design"&&c.isAutoScroll),er=Kn=>{const{seqIconConfig:zn}=c;let qn=zn.find(tr=>tr.key===Kn+1);return qn||(qn=zn.find(tr=>tr.key==="other")),!!(qn!=null&&qn.icon)},Jn=(Kn,zn)=>{const{seqIconConfig:qn}=c;let tr=qn.find(Un=>Un.key===Kn+1);return tr||(tr=qn.find(Un=>Un.key==="other")),zn===1?tr!=null&&tr.icon?useImagePath(tr.icon):"":zn===2?(tr==null?void 0:tr.color)||"#fff":""},ir=Kn=>{const{seqIndexFormatter:zn}=c,qn=Kn+1;return zn?hn(zn,{textData:{index:qn}},{useNewline:!1,useSpace:!0}):qn},or=vue.computed(()=>parseFloat(c.itemWidth)!==100?{height:"100%"}:{}),sr=vue.computed(()=>!c.itemWidth||c.itemWidth==="100%"?"0":c.itemColSpan);return{style:d,formatFn:h,contrastClass:v,dataSource:f,loading:m,myColumns:b,click:w,getColumnStyle:Rn,getPercentage:Vn,getBackgroundColor:Wn,isShowSeqIcon:er,getSeqIconData:Jn,seqIcon4,seqIcon5,seqIcon6,seqIcon7,iconSize:Gn,isScroll:Xn,formatSeq:ir,wrapStyle:or,colSpan:sr,getText:(Kn,zn)=>(Kn.format!=null||Kn.format!=="")&&h(zn[Kn.key],Kn)}}}),List_vue_vue_type_style_index_0_scoped_8233109f_lang="",List_vue_vue_type_style_index_1_lang="",_withScopeId$5=c=>(vue.pushScopeId("data-v-8233109f"),c=c(),vue.popScopeId(),c),_hoisted_1$h={key:0,class:"title"},_hoisted_2$9={key:0,class:"ranking"},_hoisted_3$4=["onClick"],_hoisted_4$3={key:0,class:"ranking"},_hoisted_5$3=_withScopeId$5(()=>vue.createElementVNode("div",{class:"icon"},null,-1)),_hoisted_6$3={class:"sort"},_hoisted_7$3=["src"],_hoisted_8$3={key:1},_hoisted_9$2=["src","width","height"],_hoisted_10$2=["src","width","height"],_hoisted_11$2=["src","width","height"],_hoisted_12$2=["src","width","height"],_hoisted_13$2={key:1},_hoisted_14$2=["title"],_hoisted_15$1={key:2,class:"empty"};function _sfc_render$u(c,u,f,d,h,v){const p=vue.resolveComponent("a-tooltip"),m=vue.resolveComponent("marquee-scroll"),g=vue.resolveComponent("skeleton");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-list",style:vue.normalizeStyle(c.style)},[vue.createVNode(g,{loading:c.loading},{default:vue.withCtx(()=>[c.useTitle?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$h,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.columnCount,y=>(vue.openBlock(),vue.createElementBlock("div",{class:"title-inner",style:vue.normalizeStyle({backgroundColor:c.backgroundColor,height:c.itemHeight,width:`calc(100% / ${c.columnCount} - ${c.itemColSpan} * ${c.columnCount-1}/ ${c.columnCount})`,marginRight:y%c.columnCount!==0?c.itemColSpan:"",padding:`0 ${c.itemPadding}`}),key:y},[c.useRanking?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$9)):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.myColumns,(b,gn)=>(vue.openBlock(),vue.createElementBlock("div",{class:"column",key:b.key||gn,style:vue.normalizeStyle({color:b.titleColor,fontSize:b.fontSize,...c.getColumnStyle(b)})},vue.toDisplayString(b.title),5))),128))],4))),128))])):vue.createCommentVNode("",!0),c.dataSource.length>0?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"ecan-list-content",style:vue.normalizeStyle({paddingTop:c.useTitle?c.itemRowSpan:0,height:c.useTitle?"calc(100% - 40px)":"100%"})},[vue.createVNode(m,{visible:c.isScroll,step:c.scrollSpeed,wrapStyle:{display:"flex",flexDirection:"column",flexWrap:"wrap",...c.wrapStyle}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.dataSource.slice(0,c.sliceCount),(y,b)=>(vue.openBlock(),vue.createElementBlock("div",{class:"item",style:vue.normalizeStyle({backgroundColor:c.backgroundColor,height:c.itemHeight,width:`calc(${c.itemWidth} - ${c.colSpan})`,marginRight:c.colSpan,marginBottom:c.itemRowSpan,padding:`0 ${c.itemPadding}`}),key:y.id||b,onClick:gn=>c.click(y)},[c.useRanking?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$3,[_hoisted_5$3,vue.createElementVNode("div",_hoisted_6$3," Top "+vue.toDisplayString(b+1),1)])):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.myColumns,gn=>{var x;return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["column",c.contrastClass(y[gn.key],gn.format),gn.key==="SEQ"?"seq-column":""]),key:gn.key,style:vue.normalizeStyle({fontSize:gn.fontSize,color:c.contrastClass(y[gn.key],gn.format)===""?gn.color:"",fontWeight:gn.fontWeight,...c.getColumnStyle(gn,"cell")})},[gn.key==="SEQ"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[c.seqIcon?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[(x=c.seqIconConfig)!=null&&x.length?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"icon-box",style:vue.normalizeStyle({width:c.seqIconWidth||"",height:c.seqIconHeight||""})},[c.seqIconWidth&&c.seqIconHeight&&c.isShowSeqIcon(b)?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"custom-seq-icon",src:c.getSeqIconData(b,1),style:vue.normalizeStyle({width:c.seqIconWidth,height:c.seqIconHeight})},null,12,_hoisted_7$3)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:"custom-seq-text",style:vue.normalizeStyle({fontSize:c.seqFontSize,color:c.getSeqIconData(b,2),lineHeight:c.seqIconHeight||"",left:c.seqIconOffsetX,top:c.seqIconOffsetY})},vue.toDisplayString(c.formatSeq(b)),5)],4)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_8$3,[b===0?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"seq-icon",src:c.seqIcon4,width:c.iconSize.width,height:c.iconSize.height},null,8,_hoisted_9$2)):b===1?(vue.openBlock(),vue.createElementBlock("img",{key:1,class:"seq-icon",src:c.seqIcon5,width:c.iconSize.width,height:c.iconSize.height},null,8,_hoisted_10$2)):b===2?(vue.openBlock(),vue.createElementBlock("img",{key:2,class:"seq-icon",src:c.seqIcon6,width:c.iconSize.width,height:c.iconSize.height},null,8,_hoisted_11$2)):b>=3?(vue.openBlock(),vue.createElementBlock("img",{key:3,class:"seq-icon",src:c.seqIcon7,width:c.iconSize.width,height:c.iconSize.height},null,8,_hoisted_12$2)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:"seq-icon seq-text",style:vue.normalizeStyle({fontSize:c.seqFontSize})},vue.toDisplayString(c.formatSeq(b)),5)]))],64)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_13$2,vue.toDisplayString(c.formatSeq(b)),1))],64)):gn.format==="progress"?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"progress-cell",style:vue.normalizeStyle({height:c.itemHeight})},[vue.createElementVNode("div",{class:"progress",style:vue.normalizeStyle({height:gn.progressWidth||"14px",backgroundColor:gn.progressBaseColor})},[vue.createVNode(p,{title:y[gn.key],overlayClassName:"ecan-list-tooltip",color:"#fff"},{default:vue.withCtx(()=>[vue.createElementVNode("div",{style:vue.normalizeStyle({borderRadius:"10px",height:gn.progressWidth||"14px",width:`${c.getPercentage(y,gn.key)}%`,...c.getBackgroundColor(gn)})},null,4)]),_:2},1032,["title"])],4)],4)):(vue.openBlock(),vue.createElementBlock("span",{key:2,title:c.getText(gn,y)},vue.toDisplayString(c.getText(gn,y)),9,_hoisted_14$2))],6)}),128))],12,_hoisted_3$4))),128))]),_:1},8,["visible","step","wrapStyle"])],4)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_15$1," 暂无数据 "))]),_:1},8,["loading"]),vue.renderSlot(c.$slots,"toolbox",{},void 0,!0)],4)}const List=_export_sfc$1(_sfc_main$q,[["render",_sfc_render$u],["__scopeId","data-v-8233109f"]]),EcanList=withInstall$1(List),proportionProps={...props$1,name:"占比图",keyName:"占比图",type:"ecanProportion",strokeType:"circle",width:"200px",height:"200px",strokeColor:"#4091f7",strokeLinecap:"round",trailColor:"#f5f5f5",data:{percent:.3},text:"{percent}{%}",fontSize:"26px",color:"#4091f7",variableColor:"#4091f7",strokeWidth:6,fontWeight:400,strokeTextWidth:"100%",lineHeight:"26px",decimalFormat:!0,variableDefaultValue:"0",strokeTextShow:!0,gradientShow:!0,gradientColor:"",gradientOffset:1,graphicConfig:{},lineTextPosition:"right"},proportionComponentProps=transformToComponentProps(proportionProps),proportionEvents=["refreshData","click"],_sfc_main$p=vue.defineComponent({name:"EcanProportion",components:{AProgress:antDesignVue.Progress,Skeleton},props:{...proportionComponentProps},setup(c,{expose:u}){const{setLoadedData:f,loadedData:d}=vue.inject(LOADED_DATA,{setLoadedData:(Zn,Xn)=>{},loadedData:{}}),h=vue.ref(!1),{pageMode:v}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),p=usePickComponentStyle(c),m=vue.computed(()=>{const Zn=c.width;return parseFloat(Zn)}),g=vue.ref({});vue.watch(()=>c.data,()=>{(c.dataType==="static"||vue.unref(v)==="design")&&(g.value=c.data)},{immediate:!0,deep:!0});const y=vue.computed(()=>{const Zn=vue.unref(g),Xn=+c.variableDefaultValue;if(Zn==null)return isNaN(Xn)?0:Xn;const er=c.text.match(/\{(.+?)\}/g)||[];let Jn;const ir=new Set(Object.keys(Zn));for(let or=0;or<er.length;or++){const sr=er[or],Hn=sr.slice(1,sr.length-1);if(ir.has(Hn)){Jn=Zn[Hn];break}}return typeof Jn=="number"?Jn=Jn*100:typeof Jn=="string"?isNaN(+Jn)?isNaN(parseFloat(Jn))||(Jn=parseFloat(Jn)):Jn=+Jn*100:isNaN(Xn)?Jn=0:Jn=Xn*100,c.decimalFormat&&(Jn=+Jn.toFixed(2)),Jn}),b=vue.computed(()=>{var ir;let Zn=c.text;if(Zn==="")return vue.unref(y);const Xn=c.variableDefaultValue,er=vue.unref(g),Jn=Zn.match(/\{(.+?)\}/g)||[];for(let or=0;or<Jn.length;or++){const sr=Jn[or];let Hn=sr.slice(1,sr.length-1);const Kn=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,zn=sr.match(Kn);for(let tr=0;tr<(zn==null?void 0:zn.length);tr++){const Un=(ir=zn[tr])==null?void 0:ir.trim();er[Un]!=null&&(Hn=Hn.replace(Un,er[Un]))}let qn=Hn;try{(/\(.*\)/g.test(Hn)||/[+/\\*]/g.test(Hn))&&(qn=pn(Hn))}catch(tr){console.error(tr)}typeof+qn=="number"&&!isNaN(+qn)?(qn=+qn*100,c.decimalFormat&&(qn=qn.toFixed(2))):typeof qn!="string"&&(qn=Xn),qn==="percent"&&(qn=Xn),Zn=Zn.replace(sr,`<span style="color: ${c.variableColor};">${qn+""}</span>`)}return Zn=Zn==null?void 0:Zn.replace(/\n|\\n/g,"<br/>"),vue.unref(h)?"NaN":Zn}),gn=useRequestData(c),x=vue.ref(!1),vn=async()=>{var Zn,Xn,er,Jn,ir;if(c.dataType==="request")try{x.value=!0;const or=await gn();g.value=((Zn=or==null?void 0:or.data)==null?void 0:Zn.data)||{},(er=(Xn=or==null?void 0:or.data)==null?void 0:Xn.data)!=null&&er.rowsToData&&(g.value=((ir=(Jn=or==null?void 0:or.data)==null?void 0:Jn.data)==null?void 0:ir.rowsToData)||{})}catch(or){console.error(or)}finally{x.value=!1}},J=(Zn={})=>{g.value=Zn},j=Zn=>{var er;const{data:Xn}=(Zn==null?void 0:Zn.data)||{};if(Xn){h.value=!1;const{columns:Jn=[],rows:ir=[]}=((er=Zn==null?void 0:Zn.data)==null?void 0:er.data)??{};let or={};if(Jn.length>0){const sr=Jn.find(Hn=>!!Hn);sr&&(or={percent:ir[sr]})}J(or)}else h.value=!0,J({percent:"NaN"})},Fn=useIndicatorData(c,j),Bn=async()=>{try{x.value=!0;const Zn=await Fn();j(Zn)}catch(Zn){console.error(Zn)}finally{x.value=!1,f(c.id,!0)}},w=async()=>{switch(c.dataType){case"indicator":await Bn();break;case"request":await vn();break}},re=vue.ref(!1);vue.watch(d,Zn=>{if(c.dataType==="indicator"){const Xn=getFixedValueDatas(c.graphicConfig);Xn!=null&&Xn.length&&(!vue.unref(re)&&canRequestIndicator(c.graphicConfig,Zn)?(re.value=!0,w()):canRequestIndicator(c.graphicConfig,Zn)||(re.value=!1))}},{deep:!0}),useOnEvent(c,{refreshData:w}),u({refreshData:w});const Rn=useEmitEvent(c)("click",()=>{}),{setRequest:Vn}=vue.inject(REQUEST_MODEL,{setRequest:({id:Zn,sortNum:Xn,requestFn:er})=>{}});typeof Vn=="function"&&Vn({id:c.id,requestFn:w,sortNum:c.requestSort});const Wn=vue.computed(()=>{const{gradientShow:Zn,gradientColor:Xn,gradientOffset:er,strokeColor:Jn}=c;let ir=Jn;return Zn&&(c.strokeType==="line"?ir=`linear-gradient(90deg, ${Jn||"transparent"}, ${Xn||"transparent"} ${er*100}%)`:ir={"0%":Jn||"transparent",[`${er*100}%`]:Xn||"transparent"}),ir}),Gn=vue.computed(()=>{let Zn={};if(c.lineTextPosition==="shadow"){const Xn=parseFloat(c.height)/2-c.strokeWidth/2-parseFloat(c.fontSize)*1.5715+"px",er=vue.unref(y)-8;Zn={position:"absolute",left:er>0?er+"%":"0",top:Xn}}return Zn});return{style:p,myWidth:m,text:b,myValue:y,loading:x,click:Rn,customStrokeColor:Wn,shaDowStyle:Gn}}}),Proportion_vue_vue_type_style_index_0_scoped_def32a64_lang="",_hoisted_1$g={key:0,class:"progress",style:{"line-height":"1.5715"}},_hoisted_2$8=["innerHTML"],_hoisted_3$3=["innerHTML"];function _sfc_render$t(c,u,f,d,h,v){const p=vue.resolveComponent("skeleton"),m=vue.resolveComponent("a-progress");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-proportion",style:vue.normalizeStyle(c.style)},[c.strokeType==="line"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$g,[vue.createElementVNode("div",{class:"progress-main",style:vue.normalizeStyle({backgroundColor:c.trailColor||"transparent",height:c.strokeWidth+"px",flex:c.lineTextPosition==="right"?1:"",marginRight:c.strokeTextShow&&c.lineTextPosition==="right"?"10px":""})},[vue.createElementVNode("div",{class:"progress-active",style:vue.normalizeStyle({background:c.customStrokeColor,width:c.myValue+"%"})},null,4)],4),c.strokeTextShow?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"format",style:vue.normalizeStyle({fontSize:c.fontSize,color:c.color,fontWeight:c.fontWeight,...c.shaDowStyle})},[vue.createElementVNode("span",{style:{"white-space":"nowrap"},innerHTML:c.text},null,8,_hoisted_2$8)],4)):vue.createCommentVNode("",!0)])):(vue.openBlock(),vue.createBlock(m,{key:1,class:vue.normalizeClass(["progress",c.gradientShow?"gradient":""]),percent:c.myValue,width:c.myWidth,type:c.strokeType,strokeColor:c.customStrokeColor,strokeLinecap:c.strokeLinecap,trailColor:c.trailColor||"transparent",strokeWidth:c.strokeWidth,showInfo:c.strokeTextShow,gapDegree:c.strokeType==="dashboard"?75:0,onClick:c.click},{format:vue.withCtx(()=>[c.loading?(vue.openBlock(),vue.createBlock(p,{key:0,loading:c.loading},null,8,["loading"])):c.strokeTextShow?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"format",style:vue.normalizeStyle({width:c.strokeTextWidth,fontSize:c.fontSize,color:c.color,fontWeight:c.fontWeight,lineHeight:c.lineHeight})},[vue.createElementVNode("span",{style:{"white-space":"nowrap"},innerHTML:c.text},null,8,_hoisted_3$3)],4)):vue.createCommentVNode("",!0)]),_:1},8,["class","percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","showInfo","gapDegree","onClick"])),vue.renderSlot(c.$slots,"toolbox",{},void 0,!0)],4)}const Proportion=_export_sfc$1(_sfc_main$p,[["render",_sfc_render$t],["__scopeId","data-v-def32a64"]]),EcanProportion=withInstall$1(Proportion),counterProps={...props$1,name:"计数器",type:"ecanCounter",keyName:"计数器",width:"400px",height:"80px",zIndex:0,digits:5,counterBackgroundImage:"",color:"#333",unitInterval:15,fontSize:"20px",fontWeight:700,fontStyle:"normal",unitWidth:"65px",unitHeight:"72px",data:"",graphicConfig:{}},counterComponentProps=transformToComponentProps(counterProps),counterEvents=["refreshData","click","resetRecord"],_sfc_main$o=vue.defineComponent({name:"EcanCounter",components:{Skeleton},props:{...counterComponentProps},setup(c,{expose:u}){const f=vue.ref(),d=usePickComponentStyle(c),h=vue.computed(()=>({width:c.unitWidth,height:c.unitHeight,marginRight:c.unitInterval+"px"})),v=vue.computed(()=>({color:c.color,fontSize:c.fontSize,fontWeight:c.fontWeight,fontStyle:c.fontStyle}));vue.watch(()=>[c.data,c.dataType],([Pn,Rn])=>{Rn==="static"&&(f.value=Pn)},{immediate:!0});const{getGlobalModel:p,setGlobalModel:m}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Pn=>{},setGlobalModel:(Pn,Rn)=>{}}),y=useEmitEvent(c)("click",()=>{const Pn=p(c.id);m(c.id,{...Pn,type:c.type,value:vue.unref(f)})}),b=()=>{const Pn=c.id,Rn=p(Pn);m(Pn,{...Rn,type:c.type,value:""})},gn=useRequestData(c),x=vue.ref(!1),vn=async()=>{var Pn,Rn;try{x.value=!0;const Vn=await gn();f.value=((Rn=(Pn=Vn==null?void 0:Vn.data)==null?void 0:Pn.data)==null?void 0:Rn.value)||""}catch(Vn){console.error(Vn)}finally{x.value=!1}},J=Pn=>{var Wn;const{data:Rn}=(Pn==null?void 0:Pn.data)||{};let Vn="";if(Rn){const{columns:Gn=[],rows:Zn=[]}=((Wn=Pn==null?void 0:Pn.data)==null?void 0:Wn.data)??{};if(Gn.length>0){const Xn=Gn.find(er=>!!er);Xn&&(Vn=Zn[Xn]||"")}}f.value=String(Vn)},j=useIndicatorData(c,J),Fn=async()=>{try{x.value=!0;const Pn=await j();J(Pn)}catch(Pn){console.error(Pn)}finally{x.value=!1}},Bn=async()=>{switch(c.dataType){case"indicator":await Fn();break;case"request":await vn();break}},w=vue.computed(()=>{const Pn=[],{digits:Rn}=c,Vn=vue.unref(f)?vue.unref(f).split("").reverse().join(""):"";for(let Wn=0;Wn<Rn;Wn++)Vn&&Vn[Wn]?Pn.push(Vn[Wn]):Pn.push("0");return Pn.reverse()});useOnEvent(c,{refreshData:Bn,resetRecord:b});const{setRequest:re}=vue.inject(REQUEST_MODEL,{setRequest:({id:Pn,sortNum:Rn,requestFn:Vn})=>{}});return typeof re=="function"&&re({id:c.id,requestFn:Bn,sortNum:c.requestSort}),u({refreshData:Bn}),{style:d,valueList:w,digitsStyle:h,fontStyle:v,loading:x,useImagePath,click:y}}}),Counter_vue_vue_type_style_index_0_scoped_2e9eb036_lang="",_hoisted_1$f=["src"];function _sfc_render$s(c,u,f,d,h,v){var m;const p=vue.resolveComponent("skeleton");return c.loading?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:vue.normalizeStyle(c.style)},[vue.createVNode(p,{loading:c.loading},null,8,["loading"])],4)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"ecan-counter",style:vue.normalizeStyle(c.style),onClick:u[0]||(u[0]=(...g)=>c.click&&c.click(...g))},[(m=c.valueList)!=null&&m.length?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:0},vue.renderList(c.valueList,(g,y)=>(vue.openBlock(),vue.createElementBlock("div",{class:"digits-item",style:vue.normalizeStyle(c.digitsStyle),key:y},[c.counterBackgroundImage?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"item-image",src:c.useImagePath(c.counterBackgroundImage)},null,8,_hoisted_1$f)):vue.createCommentVNode("",!0),vue.createElementVNode("div",{class:"item-text",style:vue.normalizeStyle(c.fontStyle)},vue.toDisplayString(g),5)],4))),128)):vue.createCommentVNode("",!0),vue.renderSlot(c.$slots,"toolbox",{},void 0,!0)],4))}const Counter=_export_sfc$1(_sfc_main$o,[["render",_sfc_render$s],["__scopeId","data-v-2e9eb036"]]),EcanCounter=withInstall$1(Counter),rectangleProps={...props$1,name:"矩形",keyName:"矩形",type:"ecanRectangle",width:"100px",height:"100px",zIndex:0,borderColor:"#eee",borderRadius:"5",borderStyle:"solid",borderWidth:"2px",backgroundColor:"#ffffff",textShadow:"",gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",isTransparent:!1},rectangleComponentProps=transformToComponentProps(rectangleProps),rectangleEvents=[],_sfc_main$n=vue.defineComponent({name:"EcanRectangle",props:{...rectangleComponentProps},setup(c){const u=usePickComponentStyle(c,["background"]),f=vue.computed(()=>{const{isTransparent:p,gradientShow:m,gradientColor:g,gradientOffset:y,gradientAngle:b,backgroundColor:gn}=c;if(m){let x=g;return p&&(x="transparent"),x?{background:`linear-gradient(${b}, ${gn}, ${x} ${y*100}%)`}:{}}else return{}}),{theme:d}=vue.inject(GLOBAL_CONFIG,{theme:"light"}),h=vue.computed(()=>({width:"100%",height:"100%"})),v=vue.computed(()=>{const{borderRadius:p}=c,m=[],g={};if(p){const y=p.split(",");for(const b of y)(+b||+b==0)&&m.push(+b+"px")}return m!=null&&m.length&&(g.borderRadius=m.join(" ")),g});return{style:u,gradientStyle:f,borderStyle:h,theme:d,borderRadiusStyle:v}}}),Rectangle_vue_vue_type_style_index_0_scoped_c6c46783_lang="";function _sfc_render$r(c,u,f,d,h,v){return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-rectangle",style:vue.normalizeStyle({...c.style,...c.gradientStyle,...c.borderRadiusStyle})},[vue.createElementVNode("div",{class:"no-title",style:vue.normalizeStyle(c.borderStyle)},null,4)],4)}const Rectangle=_export_sfc$1(_sfc_main$n,[["render",_sfc_render$r],["__scopeId","data-v-c6c46783"]]),EcanRectangle=withInstall$1(Rectangle),inputProps={...props$1,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px"},inputComponentProps=transformToComponentProps(inputProps),inputEvents=["inputChange","inputBlur"],_sfc_main$m=vue.defineComponent({name:"EcanInput",components:{AInput:antDesignVue.Input},props:{...inputComponentProps},setup(c){const u=usePickComponentStyle(c),f=vue.ref(""),{getGlobalModel:d,setGlobalModel:h,getRecordValueByKeyName:v}=vue.inject(GLOBAL_MODEL,{getGlobalModel:b=>{},setGlobalModel:(b,gn)=>{},getRecordValueByKeyName:b=>{}});vue.watch(()=>c.value,b=>{f.value=v(b)},{immediate:!0}),h(c.id,{type:c.type,value:f});const p=()=>{const b=d(c.id);h(c.id,{...b,RECORD:f})},m=useEmitEvent(c),g=lodashEs.debounce(m("inputChange",()=>{p()}),300),y=m("inputBlur",()=>{});return{style:u,myValue:f,inputBlur:y,inputChange:g}}}),Input_vue_vue_type_style_index_0_lang="";function _sfc_render$q(c,u,f,d,h,v){const p=vue.resolveComponent("a-input");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-input",style:vue.normalizeStyle(c.style)},[vue.createVNode(p,{class:"input",value:c.myValue,"onUpdate:value":u[0]||(u[0]=m=>c.myValue=m),placeholder:c.placeholder,onChange:c.inputChange,onBlur:c.inputBlur,style:vue.normalizeStyle({fontSize:c.optionFontSize})},null,8,["value","placeholder","onChange","onBlur","style"])],4)}const Input=_export_sfc$1(_sfc_main$m,[["render",_sfc_render$q]]),EcanInput=withInstall$1(Input),datePickerProps$1={...props$1,height:"33px",width:"130px",id:"",left:"0px",top:"0px",name:"日期选择器",keyName:"日期选择器",rotate:"",type:"ecanDatePicker",value:"",picker:"date",format:"YYYY-MM-DD",showTime:!1,useCurrentTime:!0,operate:null,optionFontSize:"14px",limitStartTime:"",limitEndTime:"",data:""},datePickerComponentProps=transformToComponentProps(datePickerProps$1),datePickerEvents=["dateChange","refreshData"],__default__$3=vue.defineComponent({name:"EcanDatePicker",props:{...datePickerComponentProps},components:{ADatePicker:antDesignVue.DatePicker,AInput:antDesignVue.Input,CalendarOutlined:CalendarOutlined$1,CloseCircleFilled:CloseCircleFilled$1},setup(c){const u=vue.inject("isMobile",!1),f=vue.inject("scaleValue",{widthScale:"1",heightScale:"1"}),d=usePickComponentStyle(c),h=()=>document.getElementById("ProviderConfig")||document.body,v=vue.ref(null),p=vue.ref(null),m=vue.ref(""),g=vue.ref(!1),y=vue.ref([]),b=vue.ref(""),gn=vue.computed(()=>{let Un=["year","month","day"];switch(c.picker){case"year":Un=["year"];break;case"month":Un=["year","month"];break}return Un}),{setGlobalModel:x,getGlobalModel:vn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Un=>{},setGlobalModel:(Un,nr)=>{}}),{pageId:J}=vue.inject("templateOperate",{pageId:""})||{};x(c.id,{type:c.type,format:c.format,useCurrentTime:c.useCurrentTime,value:v,RECORD:v});const{getGlobalVar:j}=vue.inject(GLOBAL_CONFIG,{getGlobalVar:Un=>{}}),Fn=useEmitEvent(c),Bn=Un=>{const nr=c.id,cr=vn(nr);x(nr,{...cr,value:Un||"",RECORD:Un||""})},w=Fn("refreshData",Un=>{Bn(Un)});vue.watch(()=>[c.value,c.useCurrentTime,c.operate,b.value],([Un,nr,cr,Qn])=>{let fr=null,vr=Un;if(c.dataType==="request"&&(vr=Qn),vr){const Yn=vr.match(/\{(.+?)\}/g);if(Yn){const ar={};for(let ur of Yn){const mr=ur.slice(1,-1).trim(),dr=vn(mr);if(dr)ar[mr]=dr.value.format(dr.format);else if(mr.includes("$page")){const gr=mr.replace(/[$.]/g,""),lr=mr.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");vr=vr.replace(new RegExp(lr,"g"),gr),ar[gr]=j(mr)}}fr=dayjs(hn(vr,{textData:ar}))}else fr=dayjs(hn(vr))}else nr&&(fr=dayjs());if(cr&&fr){const{type:Yn,value:ar,mode:ur}=cr;switch(Yn){case"add":fr=fr.add(ar,ur);break;case"minus":fr=fr.subtract(ar,ur)}}v.value=fr,p.value=fr,vue.unref(u)&&Jn(fr),w(fr)},{deep:!0,immediate:!0});const re=Fn("dateChange",()=>{const Un=getNewValueFromUrlParams(J,c.keyName,"value");Un&&(v.value=dayjs(Un)),Bn(vue.unref(v))}),Pn=()=>{vue.unref(v)&&re()};useOnEvent(c,{dateChange:re});const Rn=vue.ref({}),Vn=vue.ref({}),Wn=Un=>{Un?setTimeout(()=>{Vn.value=vue.unref(Rn)},300):Vn.value={}};vue.onMounted(()=>{setTimeout(()=>{const Un=document.querySelector(`#ecan-date-picker-${c.id}`);if(Un){const nr=Un.getBoundingClientRect(),cr=parseFloat(vue.unref(f).widthScale)*280;document.body.clientWidth-nr.left<cr&&(Rn.value.marginLeft=-1*(cr-nr.width)+"px")}},0)});const Gn=()=>{Jn(vue.unref(v)),g.value=!0},Zn=()=>{Jn(),v.value=null},Xn=()=>{const Un=dayjs(vue.unref(y).join("-"));v.value=Un,Jn(Un),g.value=!1,Pn()},er=()=>{v.value=dayjs(),Jn(),m.value=dayjs().format(c.format),g.value=!1};function Jn(Un){y.value=ir(Un||dayjs()),m.value=(Un==null?void 0:Un.format(c.format))||""}function ir(Un){const nr=[];for(const cr of vue.unref(gn))cr==="day"?nr.push(Un.date()):nr.push(Un[cr]()+(cr==="month"?1:0));return nr}const or=Un=>{let nr=!1,{limitStartTime:cr,limitEndTime:Qn}=c,fr=c.picker;const vr={current:vue.unref(p)};return c.picker==="date"&&(fr="day"),cr=hn(cr,{textData:vr}),Qn=hn(Qn,{textData:vr}),cr&&Qn?nr=!(dayjs(cr).isBefore(Un,fr)&&Un.isBefore(dayjs(Qn),fr)):cr?nr=Un.isBefore(dayjs(cr),fr):Qn&&(nr=dayjs(Qn).isBefore(Un,fr)),nr},sr=(Un={})=>{var nr;if((nr=Object.keys(Un))!=null&&nr.length)for(const cr in Un)b.value=Un[cr]},Hn=useRequestData(c),Kn=vue.ref(!1),zn=async()=>{var Un,nr,cr;try{Kn.value=!0;const Qn=await Hn();(Un=Qn==null?void 0:Qn.data)!=null&&Un.data.rowsToData?sr(((nr=Qn==null?void 0:Qn.data)==null?void 0:nr.data.rowsToData)||{}):sr(((cr=Qn==null?void 0:Qn.data)==null?void 0:cr.data)||{})}catch(Qn){console.error(Qn)}finally{Kn.value=!1}},qn=async()=>{switch(c.dataType){case"request":{await zn();break}}},{setRequest:tr}=vue.inject(REQUEST_MODEL,{setRequest:({id:Un,sortNum:nr,requestFn:cr})=>{}});return typeof tr=="function"&&tr({id:c.id,requestFn:qn,sortNum:c.requestSort}),{style:d,getPopupContainer:h,myValue:v,locale,change:Pn,scaleValue:f,popupStyle:Rn,customStyle:Vn,openChange:Wn,isMobile:u,mobileDateStr:m,handleClearDate:Zn,openDatePick:Gn,datePickVisible:g,columnsType:gn,mobileDate:y,onConfirmDate:Xn,onCancelDate:er,disabledDate:or}}}),__injectCSSVars__$3=()=>{vue.useCssVars(c=>({"2cf259c6":c.optionFontSize}))},__setup__$3=__default__$3.setup;__default__$3.setup=__setup__$3?(c,u)=>(__injectCSSVars__$3(),__setup__$3(c,u)):__injectCSSVars__$3;const DatePicker_vue_vue_type_style_index_0_scoped_96f5bc53_lang="",DatePicker_vue_vue_type_style_index_1_lang="",_hoisted_1$e=["id"];function _sfc_render$p(c,u,f,d,h,v){const p=vue.resolveComponent("calendar-outlined"),m=vue.resolveComponent("close-circle-filled"),g=vue.resolveComponent("a-input"),y=vue.resolveComponent("van-date-picker"),b=vue.resolveComponent("van-popup"),gn=vue.resolveComponent("a-date-picker");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-date-picker",style:vue.normalizeStyle(c.style),id:"ecan-date-picker-"+c.id},[c.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(g,{value:c.mobileDateStr,placeholder:"请选择日期",readonly:"",onClick:c.openDatePick},vue.createSlots({prefix:vue.withCtx(()=>[vue.createVNode(p,{style:{color:"#b0b0b0","padding-right":"5px"}})]),_:2},[c.mobileDateStr?{name:"suffix",fn:vue.withCtx(()=>[vue.createVNode(m,{style:{color:"#b0b0b0"},onClick:vue.withModifiers(c.handleClearDate,["stop"])},null,8,["onClick"])])}:void 0]),1032,["value","onClick"]),vue.createVNode(b,{show:c.datePickVisible,"onUpdate:show":u[1]||(u[1]=x=>c.datePickVisible=x),style:{"z-index":"999999"},"overlay-style":{background:"rgba(0, 0, 0, .3)",zIndex:999999},position:"bottom",teleport:"#app"},{default:vue.withCtx(()=>[c.datePickVisible?(vue.openBlock(),vue.createBlock(y,{key:0,modelValue:c.mobileDate,"onUpdate:modelValue":u[0]||(u[0]=x=>c.mobileDate=x),"columns-type":c.columnsType,"cancel-button-text":"此刻",onConfirm:c.onConfirmDate,onCancel:c.onCancelDate},null,8,["modelValue","columns-type","onConfirm","onCancel"])):vue.createCommentVNode("",!0)]),_:1},8,["show","overlay-style"])],64)):(vue.openBlock(),vue.createBlock(gn,{key:1,class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:c.myValue,"onUpdate:value":u[2]||(u[2]=x=>c.myValue=x),format:c.format,picker:c.picker,showTime:c.showTime,locale:c.locale,onChange:c.change,onOpenChange:c.openChange,"disabled-date":c.disabledDate,getPopupContainer:c.getPopupContainer,popupStyle:{fontSize:c.optionFontSize,transform:`scale(${c.scaleValue.widthScale}, ${c.scaleValue.heightScale})`}},null,8,["value","format","picker","showTime","locale","onChange","onOpenChange","disabled-date","getPopupContainer","popupStyle"]))],12,_hoisted_1$e)}const DatePicker$1=_export_sfc$1(__default__$3,[["render",_sfc_render$p],["__scopeId","data-v-96f5bc53"]]),EcanDatePicker=withInstall$1(DatePicker$1),rangePickerProps={...props$1,name:"日期范围选择器",keyName:"日期范围选择器",type:"ecanRangePicker",width:"250px",height:"35px",picker:"date",format:"YYYY-MM-DD",startTime:"",endTime:"",useCurrentTime:!0,interval:1,intervalUnit:"year",operate:null,limitStartTime:"",limitEndTime:"",associated:"",optionFontSize:"14px",isAllowSpanYear:!0,limitInterval:null},rangePickerComponentProps=transformToComponentProps(rangePickerProps),rangePickerEvents=["dateChange"];var quarterOfYear$1={exports:{}};(function(c,u){(function(f,d){c.exports=d()})(commonjsGlobal,function(){var f="month",d="quarter";return function(h,v){var p=v.prototype;p.quarter=function(y){return this.$utils().u(y)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(y-1))};var m=p.add;p.add=function(y,b){return y=Number(y),this.$utils().p(b)===d?this.add(3*y,f):m.bind(this)(y,b)};var g=p.startOf;p.startOf=function(y,b){var gn=this.$utils(),x=!!gn.u(b)||b;if(gn.p(y)===d){var vn=this.quarter()-1;return x?this.month(3*vn).startOf(f).startOf("day"):this.month(3*vn+2).endOf(f).endOf("day")}return g.bind(this)(y,b)}}})})(quarterOfYear$1);var quarterOfYearExports=quarterOfYear$1.exports;const quarterOfYear=getDefaultExportFromCjs(quarterOfYearExports);dayjs.extend(quarterOfYear);const __default__$2=vue.defineComponent({name:"EcanRangePicker",components:{ARangePicker:antDesignVue.RangePicker,AInput:antDesignVue.Input,CalendarOutlined:CalendarOutlined$1,CloseCircleFilled:CloseCircleFilled$1},props:{...rangePickerComponentProps},setup(c){const u=vue.inject("isMobile",!1),{pageMode:f,getGlobalVar:d}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",getGlobalVar:dr=>{}}),{getGlobalModel:h,setGlobalModel:v}=vue.inject(GLOBAL_MODEL,{getGlobalModel:dr=>{},setGlobalModel:(dr,gr)=>{}}),p=usePickComponentStyle(c),m=()=>document.getElementById("ProviderConfig")||document.body,g=vue.ref([null,null]),y=vue.ref(!1),b=vue.ref([]),gn=vue.ref([]),x=vue.ref(),vn=vue.ref(),J=vue.ref(),j=vue.ref(),Fn=vue.ref(0),Bn=vue.ref({}),w=vue.ref(""),re=vue.computed(()=>{let dr=["year","month","day"];switch(c.picker){case"year":dr=["year"];break;case"month":dr=["year","month"];break}return dr}),Pn=dr=>{const gr=dr?String(dr).match(/\{(.+?)\}/g):"";let lr;if(gr){const hr={};for(let xr of gr){const Sr=xr.slice(1,-1).trim(),yr=h(Sr);if(yr)hr[Sr]=yr.value.format(yr.format);else if(Sr.includes("$page")){const pr=Sr.replace(/[$.]/g,""),br=Sr.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");dr=dr.replace(new RegExp(br,"g"),pr),hr[pr]=d(Sr)}}lr=dayjs(hn(dr,{textData:hr}))}else lr=dayjs(hn(dr));return lr};vue.watch(()=>[c.startTime,c.endTime,c.useCurrentTime,c.interval,c.intervalUnit,c.operate],([dr,gr,lr,hr,xr,Sr])=>{if(vue.unref(g).every(yr=>!yr)||vue.unref(f)==="design"){let yr=null,pr=null;if(lr&&(yr=dayjs().subtract(hr,xr),pr=dayjs()),dr&&(yr=Pn(dr)),gr&&(pr=Pn(gr)),Sr){const{type:br,value:wr,mode:kr}=Sr;switch(br){case"add":yr=yr&&yr.add(wr,kr),pr=pr&&pr.add(wr,kr);break;case"minus":yr=yr&&yr.subtract(wr,kr),pr=pr&&pr.subtract(wr,kr)}}g.value=[yr,pr],vue.unref(u)&&ur()}},{immediate:!0});let Rn=vue.unref(g)[0],Vn=vue.unref(g)[1],Wn="";const Gn=(dr,gr,lr)=>{Array.isArray(dr)?(Rn=dr[0],Vn=dr[1],Wn=lr.range):(Rn=null,Vn=null)},Zn=dr=>{let gr=!1,{limitStartTime:lr,limitEndTime:hr}=c;const xr={startTime:`${Rn||""}`,endTime:`${Vn||""}`};if(lr=hn(lr,{codeData:xr}),hr=hn(hr,{codeData:xr}),lr&&hr?gr=!(dayjs(lr)<dr&&dr<dayjs(hr)):lr?gr=dayjs(lr)>dr:hr&&(gr=dayjs(hr)<dr),!c.isAllowSpanYear&&Wn){let Sr=null;if(Wn==="start"?Sr=Rn:Wn==="end"&&(Sr=Vn),Sr){const yr=Sr.startOf("year"),pr=Sr.endOf("year");gr=!(yr<=dr&&dr<pr)}}if(!gr){const{value:Sr=0,mode:yr="year"}=c.limitInterval||{};Sr&&(Wn==="start"?gr=Rn.add(Sr,yr)<dr:Wn==="end"&&(gr=Vn.subtract(Sr,yr)>dr))}return gr},Xn=vue.computed(()=>Array.isArray(vue.unref(g))?vue.unref(g)[0]:null),er=vue.computed(()=>Array.isArray(vue.unref(g))?vue.unref(g)[1]:null);vue.watch(()=>[Xn.value,er.value],([dr,gr])=>{dr&&gr&&(w.value=`${dayjs(dr).format(c.format)} 至 ${dayjs(gr).format(c.format)}`)});const{pageId:Jn}=vue.inject("templateOperate",{pageId:""})||{};v(c.id,{type:c.type,format:c.format,startTime:Xn,endTime:er,interval:c.interval,intervalUnit:c.intervalUnit,useCurrentTime:c.useCurrentTime,operate:c.operate});const ir=useEmitEvent(c);let or=!1;const sr=ir("dateChange",()=>{var lr;const dr=getNewValueFromUrlParams(Jn,c.keyName,"startTime"),gr=getNewValueFromUrlParams(Jn,c.keyName,"endTime");(lr=g.value)!=null&&lr.length||(g.value=[null,null]),dr&&(g.value[0]=dayjs(dr)),gr&&(g.value[1]=dayjs(gr))}),Hn=dr=>{const gr=vue.unref(g),lr=gr&&gr[0]&&gr[1];dr===!1&&or===!0&&lr&&(sr(),or=!1),dr||(Wn="")},Kn=()=>{or=!0},zn=()=>{const{associated:dr}=c;if(dr){const gr=h(dr)||{};if(gr){const{value:lr}=gr;if(lr)switch(vue.unref(lr)){case"day":g.value=[dayjs().startOf("day"),dayjs().endOf("day")];break;case"month":g.value=[dayjs().startOf("month"),dayjs().endOf("month")];break;case"monthStartToToday":g.value=[dayjs().startOf("month"),dayjs().endOf("day")];break;case"quarter":g.value=[dayjs().startOf("quarter"),dayjs().endOf("quarter")];break;case"year":g.value=[dayjs().startOf("year"),dayjs().endOf("year")];break;case"yesterday":g.value=[dayjs().startOf("day").subtract(1,"days"),dayjs().endOf("day").subtract(1,"days")];break;case"week":g.value=[dayjs().startOf("week"),dayjs().endOf("week")];break}}}sr()},qn=()=>{Yn(vue.unref(g)),y.value=!0},tr=()=>{Yn(),w.value="",g.value=[null,null]},Un=()=>{g.value=[dayjs(vue.unref(b).join("-")),dayjs(vue.unref(gn).join("-"))],Yn(vue.unref(g)),ar(),fr(),y.value=!1,sr()},nr=()=>{vr(),y.value=!1},cr=()=>{var dr,gr;(dr=vue.unref(b))!=null&&dr.length&&c.format&&(J.value=new Date(vue.unref(b).join("-")),(gr=vue.unref(gn))!=null&&gr.length&&dayjs(vue.unref(gn).join("-")).isBefore(dayjs(vue.unref(b).join("-")))&&(gn.value=lodashEs.cloneDeep(vue.unref(b))))},Qn=()=>{var dr,gr;(dr=vue.unref(gn))!=null&&dr.length&&c.format&&(vn.value=new Date(vue.unref(gn).join("-")),(gr=vue.unref(b))!=null&&gr.length&&dayjs(vue.unref(b).join("-")).isAfter(dayjs(vue.unref(gn).join("-")))&&(b.value=lodashEs.cloneDeep(vue.unref(gn))))};function fr(){Bn.value={startMinDate:lodashEs.cloneDeep(vue.unref(x)),startMaxDate:lodashEs.cloneDeep(vue.unref(vn)),endMinDate:lodashEs.cloneDeep(vue.unref(J)),endMaxDate:lodashEs.cloneDeep(vue.unref(j))}}function vr(){x.value=vue.unref(Bn).startMinDate,vn.value=vue.unref(Bn).startMaxDate,J.value=vue.unref(Bn).endMinDate,j.value=vue.unref(Bn).endMaxDate}function Yn(dr=[]){b.value=mr(dr[0]||dayjs()),gn.value=mr(dr[1]||dayjs())}function ar(){var lr,hr;const dr=(lr=vue.unref(b))!=null&&lr.length?dayjs(vue.unref(b).join("-")):"",gr=(hr=vue.unref(gn))!=null&&hr.length?dayjs(vue.unref(gn).join("-")):"";w.value=dr&&gr&&`${dr.format(c.format)} 至 ${gr.format(c.format)}`}function ur(){const{limitStartTime:dr,limitEndTime:gr,limitInterval:lr,isAllowSpanYear:hr}=c;Yn(vue.unref(g)),dr&&(x.value=new Date(dr),J.value=new Date(dr),vue.unref(g)[0].isBefore(dayjs(dr))&&(vue.unref(g)[0]=dayjs(dr),b.value=mr(vue.unref(g)[0]))),gr&&(vn.value=new Date(gr),j.value=new Date(gr),vue.unref(g)[1].isAfter(dayjs(gr))&&(vue.unref(g)[1]=dayjs(gr),gn.value=mr(vue.unref(g)[1]))),vue.unref(g).every(xr=>xr)&&(lr!=null&&lr.value)&&vue.unref(g)[1].diff(vue.unref(g)[0],lr.mode)>lr.value&&(vue.unref(g)[0]=vue.unref(g)[1].subtract(lr.value,lr.mode),b.value=mr(vue.unref(g)[0])),vue.unref(g).every(xr=>xr)&&!hr&&vue.unref(g)[0].year()!==vue.unref(g)[1].year()&&(vue.unref(g)[0]=dayjs(`${vue.unref(g)[1].year()}-01-01`),b.value=mr(vue.unref(g)[0])),fr(),ar()}function mr(dr){const gr=[];for(const lr of vue.unref(re))lr==="day"?gr.push(dr.date()):gr.push(dr[lr]()+(lr==="month"?1:0));return gr}return useOnEvent(c,{dateChange:zn}),{style:p,getPopupContainer:m,locale,dateChange:sr,myValue:g,disabledDate:Zn,calendarChange:Gn,openChange:Hn,change:Kn,isMobile:u,mobileDateStr:w,datePickVisible:y,columnsType:re,openDatePick:qn,handleClearDate:tr,onConfirmDate:Un,onCancelDate:nr,mobileStartDate:b,mobileEndDate:gn,startMinDate:x,startMaxDate:vn,endMinDate:J,endMaxDate:j,pickerTabKey:Fn,onStartDateChange:cr,onEndDateChange:Qn}}}),__injectCSSVars__$2=()=>{vue.useCssVars(c=>({"87f5b4e2":c.optionFontSize}))},__setup__$2=__default__$2.setup;__default__$2.setup=__setup__$2?(c,u)=>(__injectCSSVars__$2(),__setup__$2(c,u)):__injectCSSVars__$2;const RangePicker_vue_vue_type_style_index_0_scoped_55b94f8c_lang="",RangePicker_vue_vue_type_style_index_1_lang="";function _sfc_render$o(c,u,f,d,h,v){const p=vue.resolveComponent("calendar-outlined"),m=vue.resolveComponent("close-circle-filled"),g=vue.resolveComponent("a-input"),y=vue.resolveComponent("van-date-picker"),b=vue.resolveComponent("van-picker-group"),gn=vue.resolveComponent("van-popup"),x=vue.resolveComponent("a-range-picker");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-range-picker",style:vue.normalizeStyle(c.style)},[c.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(g,{value:c.mobileDateStr,placeholder:"请选择日期范围",readonly:"",onClick:c.openDatePick},vue.createSlots({prefix:vue.withCtx(()=>[vue.createVNode(p,{style:{color:"#b0b0b0","padding-right":"5px"}})]),_:2},[c.mobileDateStr?{name:"suffix",fn:vue.withCtx(()=>[vue.createVNode(m,{style:{color:"#b0b0b0"},onClick:vue.withModifiers(c.handleClearDate,["stop"])},null,8,["onClick"])])}:void 0]),1032,["value","onClick"]),vue.createVNode(gn,{show:c.datePickVisible,"onUpdate:show":u[3]||(u[3]=vn=>c.datePickVisible=vn),style:{"z-index":"999999"},"overlay-style":{background:"rgba(0, 0, 0, .3)",zIndex:999999},position:"bottom",teleport:"#app"},{default:vue.withCtx(()=>[c.datePickVisible?(vue.openBlock(),vue.createBlock(b,{key:0,"active-tab":c.pickerTabKey,"onUpdate:active-tab":u[2]||(u[2]=vn=>c.pickerTabKey=vn),tabs:["开始日期","结束日期"],onConfirm:c.onConfirmDate,onCancel:c.onCancelDate},{default:vue.withCtx(()=>[vue.createVNode(y,{modelValue:c.mobileStartDate,"onUpdate:modelValue":u[0]||(u[0]=vn=>c.mobileStartDate=vn),"min-date":c.startMinDate,"max-date":c.startMaxDate,"columns-type":c.columnsType,onChange:c.onStartDateChange},null,8,["modelValue","min-date","max-date","columns-type","onChange"]),vue.createVNode(y,{modelValue:c.mobileEndDate,"onUpdate:modelValue":u[1]||(u[1]=vn=>c.mobileEndDate=vn),"min-date":c.endMinDate,"max-date":c.endMaxDate,"columns-type":c.columnsType,onChange:c.onEndDateChange},null,8,["modelValue","min-date","max-date","columns-type","onChange"])]),_:1},8,["active-tab","onConfirm","onCancel"])):vue.createCommentVNode("",!0)]),_:1},8,["show","overlay-style"])],64)):(vue.openBlock(),vue.createBlock(x,{key:1,class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:c.myValue,"onUpdate:value":u[4]||(u[4]=vn=>c.myValue=vn),format:c.format,picker:c.picker,locale:c.locale,getPopupContainer:c.getPopupContainer,"disabled-date":c.disabledDate,onChange:c.change,onCalendarChange:c.calendarChange,onOpenChange:c.openChange,popupStyle:{fontSize:c.optionFontSize}},null,8,["value","format","picker","locale","getPopupContainer","disabled-date","onChange","onCalendarChange","onOpenChange","popupStyle"]))],4)}const RangePicker=_export_sfc$1(__default__$2,[["render",_sfc_render$o],["__scopeId","data-v-55b94f8c"]]),EcanRangePicker=withInstall$1(RangePicker),buttonProps={...props$1,width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton",text:"按钮",mode:"default",danger:!1,shape:"default",href:"",target:"self",fontSize:"14px",fontWeight:400,tooltipTextStyleColor:"",buttonBackgroundColor:"#FFFFFF",borderColor:"#d9d9d9"},buttonComponentProps=transformToComponentProps(buttonProps),buttonEvents=["click"],_sfc_main$l=vue.defineComponent({name:"EcanButton",components:{AButton:antDesignVue.Button},props:{...buttonComponentProps},setup(c){const u=usePickComponentStyle(c),d=useEmitEvent(c)("click",()=>{const g=vue.unref(p);g&&c.target==="event"&&window.parent.postMessage({type:"openPage",url:g},"*")}),h=vue.computed(()=>{const g={};return c.mode!=="primary"&&(g.backgroundColor=c.buttonBackgroundColor||"transparent",g.color=c.tooltipTextStyleColor,g.borderColor=c.borderColor||"transparent"),{height:c.height,...g}}),v=vue.computed(()=>hn(c.text)),p=vue.computed(()=>hn(c.href)||null),m=vue.computed(()=>{const g=c.target;if(!(g==="event"||vue.unref(p)==null))return{self:"_self",blank:"_blank"}[g]});return useOnEvent(c,{click:d}),{style:u,click:d,myText:v,myHref:p,myTarget:m,buttonStyle:h}}}),Button_vue_vue_type_style_index_0_lang="";function _sfc_render$n(c,u,f,d,h,v){const p=vue.resolveComponent("a-button");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-button",style:vue.normalizeStyle(c.style)},[vue.createVNode(p,{block:"",onClick:c.click,type:c.mode,danger:c.danger,shape:c.shape,href:c.myHref,target:c.myTarget,style:vue.normalizeStyle(c.buttonStyle),class:vue.normalizeClass(c.tooltipTextStyleColor?"custom-color":"")},{default:vue.withCtx(()=>[vue.createElementVNode("span",{style:vue.normalizeStyle({fontSize:c.fontSize,fontWeight:c.fontWeight})},vue.toDisplayString(c.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target","style","class"])],4)}const Button=_export_sfc$1(_sfc_main$l,[["render",_sfc_render$n]]),EcanButton=withInstall$1(Button),checkboxProps$1={...props$1,width:"240px",id:"",left:"0px",top:"0px",name:"复选框",keyName:"复选框",rotate:"",type:"ecanCheckbox",value:[],data:[{label:"选项一",value:"1",checked:!0},{label:"选项二",value:"2",checked:!0},{label:"选项三",value:"3"}],graphicConfig:{}},checkboxComponentProps=transformToComponentProps(checkboxProps$1),checkboxEvents=["checkboxChange"],_sfc_main$k=vue.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:antDesignVue.CheckboxGroup},props:{...checkboxComponentProps},setup(c,{expose:u}){const f=usePickComponentStyle(c),d=vue.ref([]),h=vue.ref([]),v=Bn=>{const w=c.value;let re=[];Bn.forEach(Pn=>{Pn.checked&&re.push(Pn.value)}),typeof w=="string"&&w!==""?re=re.concat(w.split(",")):Array.isArray(w)&&(re=re.concat(w)),d.value=Bn,h.value=re};vue.watch(()=>[c.data,c.value],([Bn])=>{v(Bn)},{immediate:!0,deep:!0});const p=useRequestData(c),m=async()=>{var re,Pn;if(c.dataType!=="request")return;const Bn=await p(),w=((Pn=(re=Bn==null?void 0:Bn.data)==null?void 0:re.data)==null?void 0:Pn.rows)||[];v(w)},{getGlobalModel:g,setGlobalModel:y}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Bn=>{},setGlobalModel:(Bn,w)=>{}});y(c.id,{type:c.type,value:h});const gn=useEmitEvent(c)("checkboxChange",()=>{const Bn=g(c.id);y(c.id,{...Bn,RECORD:h})}),x=Bn=>{var re;const{data:w}=(Bn==null?void 0:Bn.data)||{};if(w){const Rn=(((re=Bn==null?void 0:Bn.data)==null?void 0:re.data)??[]).map(Vn=>({label:Vn.label,value:Vn.value}));v(Rn)}else v([])},vn=useIndicatorData(c,x),J=async()=>{try{const Bn=await vn();x(Bn)}catch(Bn){console.error(Bn)}},j=async()=>{switch(c.dataType){case"indicator":await J();break;case"request":await m();break}},{setRequest:Fn}=vue.inject(REQUEST_MODEL,{setRequest:({id:Bn,sortNum:w,requestFn:re})=>{}});return typeof Fn=="function"&&Fn({id:c.id,requestFn:j,sortNum:c.requestSort}),u({refreshData:j}),{myOption:d,style:f,myValue:h,checkboxChange:gn}}}),Checkbox_vue_vue_type_style_index_0_lang="";function _sfc_render$m(c,u,f,d,h,v){const p=vue.resolveComponent("a-checkbox-group");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-checkbox",style:vue.normalizeStyle(c.style)},[vue.createVNode(p,{options:c.myOption,value:c.myValue,"onUpdate:value":u[0]||(u[0]=m=>c.myValue=m),onChange:c.checkboxChange},null,8,["options","value","onChange"]),vue.renderSlot(c.$slots,"toolbox")],4)}const Checkbox$1=_export_sfc$1(_sfc_main$k,[["render",_sfc_render$m]]),EcanCheckbox=withInstall$1(Checkbox$1),selectProps={...props$1,name:"下拉框选择器",keyName:"下拉框选择器",width:"120px",height:"33px",type:"ecanSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,selectAllOption:!1,graphicConfig:{},valueType:"value",isAllowClear:!0,optionFontSize:"14px",hasAllCheck:!1,minTagCount:null},selectComponentProps=transformToComponentProps(selectProps),selectEvents=["selectChange","refreshData","clearValue"];function getInternetExplorerVersion(){const c=window.navigator.userAgent,u=c.indexOf("MSIE ");if(u>0)return parseInt(c.substring(u+5,c.indexOf(".",u)),10);if(c.indexOf("Trident/")>0){const h=c.indexOf("rv:");return parseInt(c.substring(h+3,c.indexOf(".",h)),10)}const d=c.indexOf("Edge/");return d>0?parseInt(c.substring(d+5,c.indexOf(".",d)),10):-1}let isIE;function initCompat(){initCompat.init||(initCompat.init=!0,isIE=getInternetExplorerVersion()!==-1)}var script$1={name:"ResizeObserver",props:{showTrigger:{type:Boolean,default:!1}},emits:["notify"],setup(c,{emit:u}){let f=0,d=0;const h=vue.ref(null);let v=null;const p=()=>{(f!==h.value.offsetWidth||d!==h.value.offsetHeight)&&(f=h.value.offsetWidth,d=h.value.offsetHeight,u("notify",{width:f,height:d}))},m=()=>{v.contentDocument.defaultView.addEventListener("resize",p),p()},g=()=>{v&&v.onload&&(!isIE&&v.contentDocument&&v.contentDocument.defaultView.removeEventListener("resize",p),h.value.removeChild(v),v.onload=null,v=null)};return vue.onMounted(()=>{initCompat(),f=h.value.offsetWidth,d=h.value.offsetHeight;const y=document.createElement("object");v=y,y.setAttribute("aria-hidden","true"),y.setAttribute("tabindex","-1"),y.onload=m,y.type="text/html",isIE&&h.value.appendChild(y),y.data="about:blank",isIE||h.value.appendChild(y),c.showTrigger&&p()}),vue.onBeforeUnmount(()=>{g()}),{elRef:h}}};const _hoisted_1$d={ref:"elRef",class:"vue3-resize-observer",tabindex:"-1"};function render$1(c,u,f,d,h,v){return vue.openBlock(),vue.createBlock("div",_hoisted_1$d,null,512)}script$1.render=render$1,script$1.__file="src/package/ResizeObserver/ResizeObserver.vue",script$1.install=function(c){c.component(script$1.name,script$1)};var config={itemsLimit:1e3};function _typeof(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(u){return typeof u}:_typeof=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},_typeof(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}function ownKeys(c,u){var f=Object.keys(c);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(c);u&&(d=d.filter(function(h){return Object.getOwnPropertyDescriptor(c,h).enumerable})),f.push.apply(f,d)}return f}function _objectSpread2(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?arguments[u]:{};u%2?ownKeys(Object(f),!0).forEach(function(d){_defineProperty(c,d,f[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(f)):ownKeys(Object(f)).forEach(function(d){Object.defineProperty(c,d,Object.getOwnPropertyDescriptor(f,d))})}return c}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(f);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 _createForOfIteratorHelper(c){if(typeof Symbol>"u"||c[Symbol.iterator]==null){if(Array.isArray(c)||(c=_unsupportedIterableToArray(c))){var u=0,f=function(){};return{s:f,n:function(){return u>=c.length?{done:!0}:{done:!1,value:c[u++]}},e:function(m){throw m},f}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
173
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d,h=!0,v=!1,p;return{s:function(){d=c[Symbol.iterator]()},n:function(){var m=d.next();return h=m.done,m},e:function(m){v=!0,p=m},f:function(){try{!h&&d.return!=null&&d.return()}finally{if(v)throw p}}}}function _typeof$1(c){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(u){return typeof u}:_typeof$1=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},_typeof$1(c)}function _classCallCheck(c,u){if(!(c instanceof u))throw new TypeError("Cannot call a class as a function")}function _defineProperties(c,u){for(var f=0;f<u.length;f++){var d=u[f];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(c,d.key,d)}}function _createClass(c,u,f){return u&&_defineProperties(c.prototype,u),f&&_defineProperties(c,f),c}function _toConsumableArray(c){return _arrayWithoutHoles(c)||_iterableToArray(c)||_nonIterableSpread()}function _arrayWithoutHoles(c){if(Array.isArray(c)){for(var u=0,f=new Array(c.length);u<c.length;u++)f[u]=c[u];return f}}function _iterableToArray(c){if(Symbol.iterator in Object(c)||Object.prototype.toString.call(c)==="[object Arguments]")return Array.from(c)}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function processOptions(c){var u;return typeof c=="function"?u={callback:c}:u=c,u}function throttle(c,u){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},d,h,v,p=function(g){for(var y=arguments.length,b=new Array(y>1?y-1:0),gn=1;gn<y;gn++)b[gn-1]=arguments[gn];if(v=b,!(d&&g===h)){var x=f.leading;typeof x=="function"&&(x=x(g,h)),(!d||g!==h)&&x&&c.apply(void 0,[g].concat(_toConsumableArray(v))),h=g,clearTimeout(d),d=setTimeout(function(){c.apply(void 0,[g].concat(_toConsumableArray(v))),d=0},u)}};return p._clear=function(){clearTimeout(d),d=null},p}function deepEqual(c,u){if(c===u)return!0;if(_typeof$1(c)==="object"){for(var f in c)if(!deepEqual(c[f],u[f]))return!1;return!0}return!1}var VisibilityState=function(){function c(u,f,d){_classCallCheck(this,c),this.el=u,this.observer=null,this.frozen=!1,this.createObserver(f,d)}return _createClass(c,[{key:"createObserver",value:function(f){var d=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=processOptions(f),this.callback=function(p,m){d.options.callback(p,m),p&&d.options.once&&(d.frozen=!0,d.destroyObserver())},this.callback&&this.options.throttle){var h=this.options.throttleOptions||{},v=h.leading;this.callback=throttle(this.callback,this.options.throttle,{leading:function(m){return v==="both"||v==="visible"&&m||v==="hidden"&&!m}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(p){var m=p[0];if(p.length>1){var g=p.find(function(b){return b.isIntersecting});g&&(m=g)}if(d.callback){var y=m.isIntersecting&&m.intersectionRatio>=d.threshold;if(y===d.oldResult)return;d.oldResult=y,d.callback(y,m)}},this.options.intersection),setTimeout(function(){d.observer&&d.observer.observe(d.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&this.options.intersection.threshold||0}}]),c}();function mounted(c,u,f){var d=u.value;if(d)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var h=new VisibilityState(c,d,f);c._vue_visibilityState=h}}function unmounted(c){var u=c._vue_visibilityState;u&&(u.destroyObserver(),delete c._vue_visibilityState)}function componentUpdated(c,u,f){var d=u.value,h=u.oldValue;if(!deepEqual(d,h)){var v=c._vue_visibilityState;if(!d){unmounted(c);return}v?v.createObserver(d,f):mounted(c,{value:d},f)}}var ObserveVisibility={mounted,componentUpdated,unmounted},props={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(u){return["vertical","horizontal"].includes(u)}}},scrollParent=function(u){var f=/(auto|scroll)/;function d(g,y){return g.parentNode===null?y:d(g.parentNode,y.concat([g]))}function h(g,y){return getComputedStyle(g,null).getPropertyValue(y)}function v(g){return h(g,"overflow")+h(g,"overflow-y")+h(g,"overflow-x")}function p(g){return f.test(v(g))}function m(g){if(g instanceof HTMLElement||g instanceof SVGElement){for(var y=d(g.parentNode,[]),b=0;b<y.length;b+=1)if(p(y[b]))return y[b];return document.scrollingElement||document.documentElement}}return m(u)};function simpleArray(){return this.items.length&&_typeof(this.items[0])!=="object"}var supportsPassive=!1;if(typeof window<"u"){supportsPassive=!1;try{var opts=Object.defineProperty({},"passive",{get:function(){supportsPassive=!0}});window.addEventListener("test",null,opts)}catch{}}var uid=0,script=vue.defineComponent({name:"RecycleScroller",components:{ResizeObserver:script$1},directives:{ObserveVisibility},props:_objectSpread2({},props,{itemSize:{type:Number,default:null},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1}}),emits:["visible","hidden","resize","update"],data:function(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes:function(){if(this.itemSize===null){for(var u={"-1":{accumulator:0}},f=this.items,d=this.sizeField,h=this.minItemSize,v=1e4,p=0,m,g=0,y=f.length;g<y;g++)m=f[g][d]||h,m<v&&(v=m),p+=m,u[g]={accumulator:p,size:m};return this.$_computedMinItemSize=v,u}return[]},simpleArray},watch:{items:function(){this.updateVisibleItems(!0)},pageMode:function(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler:function(){this.updateVisibleItems(!1)},deep:!0}},created:function(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1))},mounted:function(){var u=this;this.applyPageMode(),this.$nextTick(function(){u.$_prerender=!1,u.updateVisibleItems(!0),u.ready=!0})},beforeUnmount:function(){this.removeListeners()},methods:{addView:function(u,f,d,h,v){var p={item:d,position:0};return p.nr={id:uid++,index:f,used:!0,key:h,type:v},u.push(p),p},unuseView:function(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=this.$_unusedViews,h=u.nr.type,v=d.get(h);v||(v=[],d.set(h,v)),v.push(u),f||(u.nr.used=!1,u.position=-9999,this.$_views.delete(u.nr.key))},handleResize:function(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll:function(u){var f=this;this.$_scrollDirty||(this.$_scrollDirty=!0,requestAnimationFrame(function(){f.$_scrollDirty=!1;var d=f.updateVisibleItems(!1,!0),h=d.continuous;h||(clearTimeout(f.$_refreshTimout),f.$_refreshTimout=setTimeout(f.handleScroll,100))}))},handleVisibilityChange:function(u,f){var d=this;this.ready&&(u||f.boundingClientRect.width!==0||f.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(function(){d.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems:function(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=this.itemSize,h=this.$_computedMinItemSize,v=this.typeField,p=this.simpleArray?null:this.keyField,m=this.items,g=m.length,y=this.sizes,b=this.$_views,gn=this.$_unusedViews,x=this.pool,vn,J,j;if(!g)vn=J=j=0;else if(this.$_prerender)vn=0,J=this.prerender,j=null;else{var Fn=this.getScroll();if(f){var Bn=Fn.start-this.$_lastUpdateScrollPosition;if(Bn<0&&(Bn=-Bn),d===null&&Bn<h||Bn<d)return{continuous:!0}}this.$_lastUpdateScrollPosition=Fn.start;var w=this.buffer;if(Fn.start-=w,Fn.end+=w,d===null){var re,Pn=0,Rn=g-1,Vn=~~(g/2),Wn;do Wn=Vn,re=y[Vn].accumulator,re<Fn.start?Pn=Vn:Vn<g-1&&y[Vn+1].accumulator>Fn.start&&(Rn=Vn),Vn=~~((Pn+Rn)/2);while(Vn!==Wn);for(Vn<0&&(Vn=0),vn=Vn,j=y[g-1].accumulator,J=Vn;J<g&&y[J].accumulator<Fn.end;J++);J===-1?J=m.length-1:(J++,J>g&&(J=g))}else vn=~~(Fn.start/d),J=Math.ceil(Fn.end/d),vn<0&&(vn=0),J>g&&(J=g),j=g*d}J-vn>config.itemsLimit&&this.itemsLimitError(),this.totalSize=j;var Gn,Zn=vn<=this.$_endIndex&&J>=this.$_startIndex;if(this.$_continuous!==Zn){if(Zn){b.clear(),gn.clear();for(var Xn=0,er=x.length;Xn<er;Xn++)Gn=x[Xn],this.unuseView(Gn)}this.$_continuous=Zn}else if(Zn)for(var Jn=0,ir=x.length;Jn<ir;Jn++)Gn=x[Jn],Gn.nr.used&&(u&&(Gn.nr.index=m.findIndex(function(Un){return p?Un[p]===Gn.item[p]:Un===Gn.item})),(Gn.nr.index===-1||Gn.nr.index<vn||Gn.nr.index>=J)&&this.unuseView(Gn));for(var or=Zn?null:new Map,sr,Hn,Kn,zn,qn=vn;qn<J;qn++){sr=m[qn];var tr=p?sr[p]:sr;if(tr==null)throw new Error("Key is ".concat(tr," on item (keyField is '").concat(p,"')"));if(Gn=b.get(tr),!d&&!y[qn].size){Gn&&this.unuseView(Gn);continue}Gn?(Gn.nr.used=!0,Gn.item=sr):(Hn=sr[v],Kn=gn.get(Hn),Zn?Kn&&Kn.length?(Gn=Kn.pop(),Gn.item=sr,Gn.nr.used=!0,Gn.nr.index=qn,Gn.nr.key=tr,Gn.nr.type=Hn):Gn=this.addView(x,qn,sr,tr,Hn):(zn=or.get(Hn)||0,(!Kn||zn>=Kn.length)&&(Gn=this.addView(x,qn,sr,tr,Hn),this.unuseView(Gn,!0),Kn=gn.get(Hn)),Gn=Kn[zn],Gn.item=sr,Gn.nr.used=!0,Gn.nr.index=qn,Gn.nr.key=tr,Gn.nr.type=Hn,or.set(Hn,zn+1),zn++),b.set(tr,Gn)),d===null?Gn.position=y[qn-1].accumulator:Gn.position=qn*d}return this.$_startIndex=vn,this.$_endIndex=J,this.emitUpdate&&this.$emit("update",vn,J),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,300),{continuous:Zn}},getListenerTarget:function(){var u=scrollParent(this.$el);return window.document&&(u===window.document.documentElement||u===window.document.body)&&(u=window),u},getScroll:function(){var u=this.$el,f=this.direction,d=f==="vertical",h;if(this.pageMode){var v=u.getBoundingClientRect(),p=d?v.height:v.width,m=-(d?v.top:v.left),g=d?window.innerHeight:window.innerWidth;m<0&&(g+=m,m=0),m+g>p&&(g=p-m),h={start:m,end:m+g}}else d?h={start:u.scrollTop,end:u.scrollTop+u.clientHeight}:h={start:u.scrollLeft,end:u.scrollLeft+u.clientWidth};return h},applyPageMode:function(){this.pageMode?this.addListeners():this.removeListeners()},addListeners:function(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,supportsPassive?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners:function(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem:function(u){var f;this.itemSize===null?f=u>0?this.sizes[u-1].accumulator:0:f=u*this.itemSize,this.scrollToPosition(f)},scrollToPosition:function(u){this.direction==="vertical"?this.$el.scrollTop=u:this.$el.scrollLeft=u},itemsLimitError:function(){var u=this;throw setTimeout(function(){console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",u.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews:function(){this.pool.sort(function(u,f){return u.nr.index-f.nr.index})}}}),_hoisted_1$c={key:0,class:"vue-recycle-scroller__slot"},_hoisted_2$7={key:1,class:"vue-recycle-scroller__slot"};function render(c,u,f,d,h,v){var p=vue.resolveComponent("ResizeObserver"),m=vue.resolveDirective("observe-visibility");return vue.withDirectives((vue.openBlock(),vue.createBlock("div",{class:["vue-recycle-scroller",_defineProperty({ready:c.ready,"page-mode":c.pageMode},"direction-".concat(c.direction),!0)],onScrollPassive:u[2]||(u[2]=function(){return c.handleScroll.apply(c,arguments)})},[c.$slots.before?(vue.openBlock(),vue.createBlock("div",_hoisted_1$c,[vue.renderSlot(c.$slots,"before")])):vue.createCommentVNode("v-if",!0),vue.createVNode("div",{ref:"wrapper",style:_defineProperty({},c.direction==="vertical"?"minHeight":"minWidth",c.totalSize+"px"),class:"vue-recycle-scroller__item-wrapper"},[(vue.openBlock(!0),vue.createBlock(vue.Fragment,null,vue.renderList(c.pool,function(g){return vue.openBlock(),vue.createBlock("div",{key:g.nr.id,style:c.ready?{transform:"translate".concat(c.direction==="vertical"?"Y":"X","(").concat(g.position,"px)")}:null,class:["vue-recycle-scroller__item-view",{hover:c.hoverKey===g.nr.key}],onMouseenter:function(b){return c.hoverKey=g.nr.key},onMouseleave:u[1]||(u[1]=function(y){return c.hoverKey=null})},[vue.renderSlot(c.$slots,"default",{item:g.item,index:g.nr.index,active:g.nr.used})],46,["onMouseenter"])}),128))],4),c.$slots.after?(vue.openBlock(),vue.createBlock("div",_hoisted_2$7,[vue.renderSlot(c.$slots,"after")])):vue.createCommentVNode("v-if",!0),vue.createVNode(p,{onNotify:c.handleResize},null,8,["onNotify"])],34)),[[m,c.handleVisibilityChange]])}script.render=render,script.__file="src/components/RecycleScroller.vue",_objectSpread2({},props,{minItemSize:{type:[Number,String],required:!0}});const vue3VirtualScroller="",_sfc_main$j=vue.defineComponent({name:"EcanSelect",components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption,AInput:antDesignVue.Input,ADivider:antDesignVue.Divider,ACheckbox:antDesignVue.Checkbox,DownOutlined:DownOutlined$1,CloseOutlined:CloseOutlined$1,RecycleScroller:script,VNodes:(c,{attrs:u})=>u.vnodes},props:{...selectComponentProps},setup(c,{expose:u}){var xr,Sr,yr;const f=vue.inject("isMobile",!1),d=vue.ref(!1),h={text:((xr=c.dataFieldNames)==null?void 0:xr.label)||"label",value:((Sr=c.dataFieldNames)==null?void 0:Sr.value)||"value"},v=vue.ref([]),p=usePickComponentStyle(c),m=()=>document.getElementById("ProviderConfig")||document.body,g=vue.ref(c.data||[]),y=vue.ref(),b=vue.ref(!1),gn=vue.ref(!1),x=vue.ref(),vn=vue.ref(!1),J=vue.computed({get:()=>{var br;const{mode:pr}=c;return(br=vue.unref(g))!=null&&br.length?y.value:pr==="multiple"||pr==="tags"||pr==="combobox"?[]:""},set:pr=>{y.value=pr}}),j=vue.computed(()=>{const pr=[];if(Array.isArray(vue.unref(J)))for(const br of vue.unref(J)){const wr=vue.unref(g).find(kr=>kr.value===br);wr&&pr.push(wr.label)}else{const br=vue.unref(g).find(wr=>wr.value===vue.unref(J));br&&pr.push(br.label)}return pr.join(",")}),Fn=vue.computed(()=>vue.unref(x)?vue.unref(g).filter(pr=>pr.label.includes(vue.unref(x))):vue.unref(g)),{getGlobalModel:Bn,setGlobalModel:w,getRecordValueByKeyName:re}=vue.inject(GLOBAL_MODEL,{getGlobalModel:pr=>{},setGlobalModel:(pr,br)=>{},getRecordValueByKeyName:pr=>{}}),Pn=c.dataFieldNames;vue.watch(()=>[c.value,c.mode,c.selectFirstOption,c.selectAllOption,c.valueType,g.value],()=>{const{mode:pr,selectFirstOption:br,selectAllOption:wr,value:kr}=c,Er=re(kr),Ir=Pn.value;if(pr==="multiple"||pr==="tags"||pr==="combobox"){if(Er)y.value=vue.unref(Er).split(",");else if(br){const Dr=vue.unref(g)[0];y.value=Dr?[Dr[Ir]]:[]}wr&&(y.value=vue.unref(g).map(Dr=>Dr[Ir]),b.value=!0,gn.value=!1)}else if(Er)y.value=vue.unref(Er);else if(br){const Dr=vue.unref(g)[0];y.value=Dr?Dr[Ir]:""}},{immediate:!0});const Rn=(pr,br)=>{var qr;const wr=Pn.label,kr=Pn.value;let Er;const Ir=br[wr],Dr=br[kr];return Ir!=null?Er=Ir:Dr!=null&&(Er=Dr),Er?(Er==null?void 0:Er.toLowerCase().indexOf(pr==null?void 0:pr.toLowerCase()))>=0:((qr=br.label)==null?void 0:qr.toLowerCase().indexOf(pr==null?void 0:pr.toLowerCase()))>=0},Vn=pr=>{const{label:br,value:wr,options:kr}=c.dataFieldNames;if(kr&&Array.isArray(pr))if(pr.some(Er=>kr in Er)){const Er={},Ir=[];pr.forEach(Dr=>{Er[Dr[kr]]||(Er[Dr[kr]]=[]),Er[Dr[kr]].push({[br]:Dr[br],[wr]:Dr[wr]})});for(const Dr in Er)Ir.push({[br]:Dr,[kr]:Er[Dr]});return Ir}else return pr;else{if(!kr&&Array.isArray(pr))return pr=pr.map(Er=>({label:Er[br],value:Er[wr]})),pr;if(!kr&&!Array.isArray(pr))return pr}},Wn=vue.ref(!1),Gn=pr=>{var br,wr;if(g.value=Vn(((wr=(br=pr==null?void 0:pr.data)==null?void 0:br.data)==null?void 0:wr.rows)||[]),c.selectFirstOption){let kr=vue.unref(g)[0];if(Pn.options){const Er=kr[Pn.options];Er&&Er.length&&(kr=Er[0])}y.value=kr[Pn.value]}c.mode==="multiple"&&c.selectAllOption&&(y.value=vue.unref(g).map(kr=>kr[Pn.value])),vue.nextTick(()=>{c.dataType!=="static"&&Kn()})},Zn=useRequestData(c),Xn=async()=>{if(c.dataType==="request"){Wn.value=!0;try{const pr=await Zn();Gn(pr)}catch(pr){console.error(pr)}finally{Wn.value=!1}}},er=vue.computed(()=>{let pr=y.value;if(c.valueType==="label"&&vue.unref(y)&&vue.unref(g)){const br=Pn.label,wr=Pn.value;if(c.mode==="multiple")pr=vue.unref(g).filter(kr=>vue.unref(y).includes(kr[wr])).map(kr=>kr[br]);else{const kr=vue.unref(g).find(Er=>vue.unref(y)===Er[wr]);kr&&(pr=kr[br])}}return pr}),Jn=vue.ref([]),ir=vue.computed(()=>{const pr={};if(c.mode!=="multiple"){const br=vue.unref(Jn).find(wr=>wr.value===vue.unref(y));br&&(pr.itemCodes=br[Pn.value])}return pr}),or=vue.computed(()=>{const{value:pr,label:br}=Pn,wr=vue.unref(g).find(kr=>kr[pr]===vue.unref(J));return wr?{label:wr[br],value:wr[pr]}:{}}),{pageId:sr}=vue.inject("templateOperate",{pageId:""})||{};w(c.id,{type:c.type,dataType:c.dataType,value:er,label:(yr=vue.unref(or))==null?void 0:yr.label,...vue.unref(ir),recordData:vue.unref(or)});const Hn=useEmitEvent(c),Kn=Hn("selectChange",()=>{const pr=c.id,br=Bn(pr);w(pr,{...br,...vue.unref(ir),RECORD:er,recordData:vue.unref(or),dataType:c.dataType});const wr=getNewValueFromUrlParams(sr,c.keyName,"value");wr&&(J.value=wr)}),zn=Hn("clearValue",()=>{["multiple","tags","combobox"].includes(c.mode)?y.value=[]:y.value=null;const pr=c.id;w(pr,{RECORD:"",recordData:vue.unref(or),dataType:c.dataType})}),qn=Hn("refreshData",(pr=[])=>{var wr,kr;const br=Vn(pr);if((kr=(wr=c==null?void 0:c.graphicConfig)==null?void 0:wr.formFields)!=null&&kr.hasAllOption){const Er=Pn.label,Ir=Pn.value;br.unshift({[Er]:"全部",[Ir]:""})}if(g.value=br,c.selectFirstOption){let Er=vue.unref(g)[0]||{};if(Pn.options){const Ir=Er[Pn.options];Ir&&Ir.length&&(Er=Ir[0])}y.value=Er[Pn.value]}c.mode==="multiple"&&c.selectAllOption&&(y.value=vue.unref(g).map(Er=>Er[Pn.value])),w(c.id,{type:c.type,value:er,...vue.unref(ir),recordData:vue.unref(or),RECORD:vue.unref(or),dataType:c.dataType})}),tr=pr=>{var Er;const{data:br}=(pr==null?void 0:pr.data)||{},wr=Pn.label,kr=Pn.value;if(br){const{rows:Ir=[]}=((Er=pr==null?void 0:pr.data)==null?void 0:Er.data)||{};Jn.value=Ir;const Dr=Ir.map(Fr=>({[wr]:Fr.label,[kr]:Fr.value})),{id:qr}=c,Rr=Bn(qr);w(qr,{...Rr,...vue.unref(ir),dataType:c.dataType}),qn(Dr)}else qn([])},Un=useIndicatorData(c,tr),nr=async()=>{try{Wn.value=!0;const pr=await Un();tr(pr)}catch(pr){console.error(pr)}finally{Wn.value=!1}},cr=async()=>{switch(c.dataType){case"indicator":{await nr();break}case"request":await Xn();break}};useOnEvent(c,{selectChange:Kn,refreshData:cr,clearValue:zn});const{setRequest:Qn}=vue.inject(REQUEST_MODEL,{setRequest:({id:pr,sortNum:br,requestFn:wr})=>{}});typeof Qn=="function"&&Qn({id:c.id,requestFn:cr,sortNum:c.requestSort}),u({refreshData:cr});const fr=()=>{c.mode==="multiple"?J.value=vue.unref(v):J.value=vue.unref(v)[0],Kn(),ar()},vr=()=>{var pr;if((pr=vue.unref(g))!=null&&pr.length&&c.dataFieldNames.value){let br;Array.isArray(vue.unref(J))?br=vue.unref(J):vue.unref(J)&&(br=[vue.unref(J)]),v.value=br||[vue.unref(g)[0][c.dataFieldNames.value]]}lr(),d.value=!0},Yn=pr=>{const br=vue.unref(v).findIndex(wr=>wr===pr);br===-1?vue.unref(v).push(pr):vue.unref(v).splice(br,1)},ar=()=>{d.value=!1,vue.nextTick(()=>{lr()})},ur=pr=>{pr?v.value=vue.unref(g).map(br=>br[Pn.value]):v.value=[]};vue.watch(()=>J.value,(pr,br)=>{var wr;c.mode==="multiple"&&((pr==null?void 0:pr.length)===((wr=vue.unref(g))==null?void 0:wr.length)?(gn.value=!1,b.value=!0):pr!=null&&pr.length?(gn.value=!0,b.value=!1):br!=null&&br.length&&c.minTagCount?J.value=br.slice(0,c.minTagCount):(gn.value=!1,b.value=!1))}),vue.watch(()=>v.value,pr=>{var br;c.mode==="multiple"&&((pr==null?void 0:pr.length)===((br=vue.unref(g))==null?void 0:br.length)?(gn.value=!1,b.value=!0):pr!=null&&pr.length?(gn.value=!0,b.value=!1):(gn.value=!1,b.value=!1))},{deep:!0});const mr=pr=>{pr.target.checked?J.value=vue.unref(g).map(br=>br.value):J.value=[]},dr=(pr,br)=>{var wr;c.mode==="multiple"&&c.minTagCount&&((wr=vue.unref(J))==null?void 0:wr.length)<c.minTagCount&&vue.unref(J).push({value:br.value,label:br.label})},gr=pr=>{x.value=pr},lr=()=>{c.autoClearSearchValue&&(x.value="")},hr=pr=>{pr||(x.value="")};return vue.watch(x,pr=>{vn.value=!!pr}),vue.onMounted(()=>{Kn()}),{searchValue:x,style:p,getPopupContainer:m,myValue:y,selectChange:Kn,options:g,filterOption:Rn,loading:Wn,resultValue:J,isMobile:f,customFieldName:h,pickVisible:d,onConfirmPicker:fr,mobileValue:j,openPicker:vr,mobileSelectValue:v,isCheckAll:b,indeterminate:gn,hideCheckAll:vn,onSearch:gr,onSelect:lr,onOptionAll:mr,onDeselect:dr,onDropdownVisibleChange:hr,onCheckClick:Yn,onCancelPicker:ar,onCheckAll:ur,mobileMultOptions:Fn}}}),Select_vue_vue_type_style_index_0_scoped_031cee83_lang="",Select_vue_vue_type_style_index_1_lang="",_withScopeId$4=c=>(vue.pushScopeId("data-v-031cee83"),c=c(),vue.popScopeId(),c),_hoisted_1$b={class:"popup-toolbar"},_hoisted_2$6={class:"operate"},_hoisted_3$2={key:0,class:"cancel-tool"},_hoisted_4$2=vue.createTextVNode(" 全选 "),_hoisted_5$2=_withScopeId$4(()=>vue.createElementVNode("div",{class:"title-tool"},null,-1)),_hoisted_6$2={style:{flex:"1",overflow:"auto"}},_hoisted_7$2={style:{padding:"4px 10px",cursor:"pointer"}},_hoisted_8$2=vue.createTextVNode(" 全选 ");function _sfc_render$l(c,u,f,d,h,v){var Vn;const p=vue.resolveComponent("down-outlined"),m=vue.resolveComponent("a-input"),g=vue.resolveComponent("van-checkbox"),y=vue.resolveComponent("van-search"),b=vue.resolveComponent("van-cell"),gn=vue.resolveComponent("van-cell-group"),x=vue.resolveComponent("recycle-scroller"),vn=vue.resolveComponent("van-checkbox-group"),J=vue.resolveComponent("van-picker"),j=vue.resolveComponent("van-popup"),Fn=vue.resolveComponent("a-select-option"),Bn=vue.resolveComponent("v-nodes"),w=vue.resolveComponent("a-divider"),re=vue.resolveComponent("a-checkbox"),Pn=vue.resolveComponent("close-outlined"),Rn=vue.resolveComponent("a-select");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-select",style:vue.normalizeStyle(c.style)},[c.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(m,{value:c.mobileValue,placeholder:c.placeholder,readonly:"",onClick:c.openPicker},{suffix:vue.withCtx(()=>[vue.createVNode(p,{onClick:c.openPicker},null,8,["onClick"])]),_:1},8,["value","placeholder","onClick"]),vue.createVNode(j,{show:c.pickVisible,"onUpdate:show":u[5]||(u[5]=Wn=>c.pickVisible=Wn),style:vue.normalizeStyle({zIndex:999999,height:c.mode==="multiple"?"50%":"",display:c.mode==="multiple"?"flex":"",flexDirection:c.mode==="multiple"?"column":""}),"overlay-style":{background:"rgba(0, 0, 0, .3)",zIndex:999999},position:"bottom",teleport:"#app"},{default:vue.withCtx(()=>[c.pickVisible?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[c.mode==="multiple"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createElementVNode("div",_hoisted_1$b,[vue.createElementVNode("div",_hoisted_2$6,[!c.hideCheckAll&&c.hasAllCheck?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$2,[vue.createVNode(g,{modelValue:c.isCheckAll,"onUpdate:modelValue":u[0]||(u[0]=Wn=>c.isCheckAll=Wn),indeterminate:c.indeterminate,shape:"square",onChange:c.onCheckAll},{default:vue.withCtx(()=>[_hoisted_4$2]),_:1},8,["modelValue","indeterminate","onChange"])])):vue.createCommentVNode("",!0),_hoisted_5$2,vue.createElementVNode("div",{class:"confirm-tool",onClick:u[1]||(u[1]=(...Wn)=>c.onConfirmPicker&&c.onConfirmPicker(...Wn))},"确认")]),vue.createVNode(y,{class:"search-wrap",modelValue:c.searchValue,"onUpdate:modelValue":u[2]||(u[2]=Wn=>c.searchValue=Wn),placeholder:"请输入搜索关键词"},null,8,["modelValue"])]),vue.createElementVNode("div",_hoisted_6$2,[c.mobileMultOptions.length?(vue.openBlock(),vue.createBlock(vn,{key:0,modelValue:c.mobileSelectValue,"onUpdate:modelValue":u[3]||(u[3]=Wn=>c.mobileSelectValue=Wn),style:{height:"100%"},shape:"square"},{default:vue.withCtx(()=>[vue.withDirectives(vue.createVNode(x,{class:"scroller",items:c.mobileMultOptions,"item-size":44,"key-field":c.customFieldName.value},{default:vue.withCtx(({item:Wn})=>[vue.createVNode(gn,null,{default:vue.withCtx(()=>[vue.createVNode(b,{title:Wn[c.customFieldName.text],clickable:"",onClick:Gn=>c.onCheckClick(Wn[c.customFieldName.value])},{"right-icon":vue.withCtx(()=>[vue.createVNode(g,{name:Wn[c.customFieldName.value],onClick:Gn=>c.onCheckClick(Wn[c.customFieldName.value])},null,8,["name","onClick"])]),_:2},1032,["title","onClick"])]),_:2},1024)]),_:1},8,["items","key-field"]),[[vue.vShow,c.mobileMultOptions.length]])]),_:1},8,["modelValue"])):vue.createCommentVNode("",!0)])],64)):(vue.openBlock(),vue.createBlock(J,{key:1,modelValue:c.mobileSelectValue,"onUpdate:modelValue":u[4]||(u[4]=Wn=>c.mobileSelectValue=Wn),"columns-field-names":c.customFieldName,columns:c.options,"cancel-button-text":" ",onConfirm:c.onConfirmPicker},null,8,["modelValue","columns-field-names","columns","onConfirm"]))],64)):vue.createCommentVNode("",!0)]),_:1},8,["show","style","overlay-style"])],64)):(vue.openBlock(),vue.createBlock(Rn,{key:1,class:"select",value:c.resultValue,"onUpdate:value":u[8]||(u[8]=Wn=>c.resultValue=Wn),placeholder:c.placeholder,showSearch:"",allowClear:c.isAllowClear&&(c.mode!=="multiple"||!c.minTagCount||((Vn=c.resultValue)==null?void 0:Vn.length)>c.minTagCount),mode:c.mode,getPopupContainer:c.getPopupContainer,maxTagCount:c.maxTagCount,filterOption:c.filterOption,loading:c.loading,autoClearSearchValue:c.autoClearSearchValue,maxTagTextLength:4,onSearch:c.onSearch,onSelect:c.onSelect,onChange:c.selectChange,onDeselect:c.onDeselect,onDropdownVisibleChange:c.onDropdownVisibleChange,style:vue.normalizeStyle({fontSize:c.optionFontSize})},vue.createSlots({removeIcon:vue.withCtx(()=>{var Wn;return[c.mode==="multiple"&&(!c.minTagCount||((Wn=c.resultValue)==null?void 0:Wn.length)>c.minTagCount)?(vue.openBlock(),vue.createBlock(Pn,{key:0})):vue.createCommentVNode("",!0)]}),default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.options,(Wn,Gn)=>(vue.openBlock(),vue.createBlock(Fn,{key:Gn,value:Wn.value,style:vue.normalizeStyle({fontSize:c.optionFontSize}),label:Wn.label},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Wn.label),1)]),_:2},1032,["value","style","label"]))),128))]),_:2},[c.mode==="multiple"&&!c.hideCheckAll&&c.hasAllCheck?{name:"dropdownRender",fn:vue.withCtx(({menuNode:Wn})=>[vue.createVNode(Bn,{vnodes:Wn},null,8,["vnodes"]),vue.createVNode(w,{style:{margin:"4px 0"}}),vue.createElementVNode("div",{class:"check-box",onMousedown:u[7]||(u[7]=Gn=>Gn.preventDefault())},[vue.createElementVNode("div",_hoisted_7$2,[_hoisted_8$2,vue.createVNode(re,{checked:c.isCheckAll,"onUpdate:checked":u[6]||(u[6]=Gn=>c.isCheckAll=Gn),indeterminate:c.indeterminate,onChange:c.onOptionAll},null,8,["checked","indeterminate","onChange"])])],32)])}:void 0]),1032,["value","placeholder","allowClear","mode","getPopupContainer","maxTagCount","filterOption","loading","autoClearSearchValue","onSearch","onSelect","onChange","onDeselect","onDropdownVisibleChange","style"])),vue.renderSlot(c.$slots,"toolbox",{},void 0,!0)],4)}const Select=_export_sfc$1(_sfc_main$j,[["render",_sfc_render$l],["__scopeId","data-v-031cee83"]]),EcanSelect=withInstall$1(Select),treeSelectProps={...props$1,name:"树形下拉框选择器",keyName:"树形下拉框选择器",width:"120px",height:"33px",type:"ecanTreeSelect",multiple:!1,data:[{label:"选项一",value:"1",children:[{label:"子选项一",value:"1-1"},{label:"子选项二",value:"1-2"}]},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:"",dataFieldNames:{label:"label",value:"value",children:"children"},maxTagCount:3,placeholder:"请选择",treeCheckable:!1,treeCheckStrictly:!1,selectFirstOption:!1},treeSelectComponentProps=transformToComponentProps(treeSelectProps),treeSelectEvents=["selectChange","refreshData"],_sfc_main$i={name:"EcanTreeSelect",components:{ATreeSelect:antDesignVue.TreeSelect},props:{...treeSelectComponentProps},setup(c){const u=usePickComponentStyle(c),f=vue.ref(c.data),d=(J,j)=>{const Fn=c.dataFieldNames,Bn=Fn.label,w=Fn.value;let re;const Pn=j[Bn],Rn=j[w];return Pn!=null?re=Pn:Rn!=null&&(re=Rn),(re==null?void 0:re.toLowerCase().indexOf(J==null?void 0:J.toLowerCase()))>=0},h=vue.ref();vue.watch(()=>[c.multiple,c.value,c.treeCheckable,c.selectFirstOption],()=>{const{multiple:J,value:j,selectFirstOption:Fn}=c;J?j?h.value=j.split(","):Fn&&(h.value=[vue.unref(f)[0]]):j?h.value=j:Fn&&(h.value=vue.unref(f)[0])},{immediate:!0});const v=vue.ref(!1),p=J=>{var Fn,Bn;f.value=((Bn=(Fn=J==null?void 0:J.data)==null?void 0:Fn.data)==null?void 0:Bn.rows)||[];const j=vue.unref(f)[0];c.value===""&&j!=null&&(h.value=j[c.dataFieldNames.value])},m=useRequestData(c),g=async()=>{if(c.dataType==="request"){v.value=!0;try{const J=await m();p(J)}catch(J){console.error(J)}finally{v.value=!1}}},{getGlobalModel:y,setGlobalModel:b}=vue.inject(GLOBAL_MODEL,{getGlobalModel:J=>{},setGlobalModel:(J,j)=>{}});b(c.id,{type:c.type,value:h});const x=useEmitEvent(c)("selectChange",()=>{const J=c.id,j=y(J);b(J,{...j,RECORD:h})});useOnEvent(c,{selectChange:x,refreshData:g});const{setRequest:vn}=vue.inject(REQUEST_MODEL,{setRequest:({id:J,sortNum:j,requestFn:Fn})=>{}});return vn({id:c.id,requestFn:g,sortNum:c.requestSort}),{style:u,treeData:f,filterTreeNode:d,myValue:h,loading:v,selectChange:x}}},TreeSelect_vue_vue_type_style_index_0_scoped_09e7f364_lang="",TreeSelect_vue_vue_type_style_index_1_lang="";function _sfc_render$k(c,u,f,d,h,v){const p=vue.resolveComponent("a-tree-select");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-tree-select",style:vue.normalizeStyle(d.style)},[vue.createVNode(p,{class:"tree-select",value:d.myValue,"onUpdate:value":u[0]||(u[0]=m=>d.myValue=m),allowClear:"",showSearch:"",loading:d.loading,fieldNames:c.dataFieldNames,treeData:d.treeData,maxTagCount:c.maxTagCount,multiple:c.multiple,treeCheckable:c.treeCheckable,filterTreeNode:d.filterTreeNode,placeholder:c.placeholder,onChange:d.selectChange},null,8,["value","loading","fieldNames","treeData","maxTagCount","multiple","treeCheckable","filterTreeNode","placeholder","onChange"])],4)}const TreeSelect=_export_sfc$1(_sfc_main$i,[["render",_sfc_render$k],["__scopeId","data-v-09e7f364"]]),EcanTreeSelect=withInstall$1(TreeSelect),radioProps={...props$1,width:"260px",height:"32px",id:"",left:"0px",top:"0px",name:"单选框",keyName:"单选框",rotate:"",type:"ecanRadio",value:"",data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],optionType:"default",tabBackgroundImage:"",activeTabBackgroundImage:"",activeTabColor:"#1890ff",tabColor:"#333",tabFontSize:"14px",tabHorizontalPadding:"0px",tabVerticalPadding:"5px",tabBarGutter:"24px",tabFlexDirection:"row",graphicConfig:{},tabTextAlign:"",selectFirstOption:!1,radioMode:"native"},radioComponentProps=transformToComponentProps(radioProps),radioEvents=["checkboxChange","click","resetRecord"],_sfc_main$h=vue.defineComponent({name:"EcanRadio",components:{ARadioGroup:antDesignVue.RadioGroup,ARadioButton:antDesignVue.RadioButton,ARadio:antDesignVue.Radio},props:{...radioComponentProps},setup(c,{expose:u}){const{pageMode:f}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),d=usePickComponentStyle(c),h=vue.ref([]),v=vue.ref(""),p=(Vn=[])=>{var Zn;const Wn=c.value;let Gn=[];typeof Wn=="string"&&Wn!==""?Gn=Gn.concat(Wn.split(",")):Array.isArray(Wn)&&(Gn=Gn.concat(Wn)),h.value=Vn,c.selectFirstOption?v.value=((Zn=Vn[0])==null?void 0:Zn.value)||"":v.value=Gn[0]||""};vue.watch(()=>[c.data,c.value,c.selectFirstOption],([Vn])=>{vue.unref(f)==="design"&&p(Vn)},{immediate:!0,deep:!0});const m=useRequestData(c),g=async()=>{var Gn,Zn;if(c.dataType!=="request")return;const Vn=await m(),Wn=((Zn=(Gn=Vn==null?void 0:Vn.data)==null?void 0:Gn.data)==null?void 0:Zn.rows)||[];p(Wn)},{getGlobalModel:y,setGlobalModel:b}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Vn=>{},setGlobalModel:(Vn,Wn)=>{}});b(c.id,{type:c.type,value:v});const gn=useEmitEvent(c),x=()=>{const Vn=vue.unref(h).find(Wn=>Wn.value===vue.unref(v))||{};gn("checkboxChange",()=>{const Wn=y(c.id);b(c.id,{...Wn,RECORD:v})},Vn)()},vn=Vn=>{v.value=Vn,gn("click",()=>{const Wn=y(c.id);b(c.id,{...Wn,RECORD:v,value:v})})()};vue.watch(v,()=>{x()});const J=Vn=>{var Gn;const{data:Wn}=(Vn==null?void 0:Vn.data)||{};if(Wn){const Xn=(((Gn=Vn==null?void 0:Vn.data)==null?void 0:Gn.data)??[]).map(er=>({label:er.label,value:er.value}));p(Xn)}else p([])},j=useIndicatorData(c,J),Fn=async()=>{try{const Vn=await j();J(Vn)}catch(Vn){console.error(Vn)}},Bn=async()=>{switch(c.dataType){case"indicator":await Fn();break;case"request":await g();break}},{setRequest:w}=vue.inject(REQUEST_MODEL,{setRequest:({id:Vn,sortNum:Wn,requestFn:Gn})=>{}});typeof w=="function"&&w({id:c.id,requestFn:Bn,sortNum:c.requestSort});const re=Vn=>{v.value=Vn.value,vn(Vn.value)},Pn=vue.computed(()=>c.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px",fontSize:c.tabFontSize}:{fontSize:c.tabFontSize});return vue.onMounted(()=>{p(c.data)}),useOnEvent(c,{resetRecord:()=>{const Vn=c.id,Wn=y(Vn);b(Vn,{...Wn,RECORD:"",value:""})}}),u({refreshData:Bn}),{myOption:h,style:d,myValue:v,radioStyle:Pn,onClickButton:vn,useImagePath,tabChange:re}}}),Radio_vue_vue_type_style_index_0_lang="",Radio_vue_vue_type_style_index_1_scoped_6f149196_lang="",_hoisted_1$a=["onClick"];function _sfc_render$j(c,u,f,d,h,v){const p=vue.resolveComponent("a-radio"),m=vue.resolveComponent("a-radio-button"),g=vue.resolveComponent("a-radio-group");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["ecan-radio",c.optionType]),style:vue.normalizeStyle(c.style)},[c.radioMode==="custom"?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"tabs-header",style:vue.normalizeStyle({fontSize:c.tabFontSize,flexDirection:c.tabFlexDirection,alignItems:c.tabTextAlign})},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.myOption,(y,b)=>(vue.openBlock(),vue.createElementBlock("div",{class:"tab",style:vue.normalizeStyle({padding:`${c.tabVerticalPadding} ${c.tabHorizontalPadding}`,color:c.myValue===y.value?c.activeTabColor:c.tabColor,backgroundImage:c.myValue===y.value?c.useImagePath(c.activeTabBackgroundImage,!0):c.useImagePath(c.tabBackgroundImage,!0),marginRight:c.tabFlexDirection==="row"?c.tabBarGutter:"0",marginBottom:c.tabFlexDirection==="column"?c.tabBarGutter:"0"}),key:b,onClick:vue.withModifiers(gn=>c.tabChange(y),["prevent","stop"])},[vue.createElementVNode("div",{class:"tab-inner",style:vue.normalizeStyle({borderBottom:!c.activeTabBackgroundImage&&!c.tabBackgroundImage?`1px solid ${c.myValue===y.value?c.activeTabColor:"transparent"}`:""})},vue.toDisplayString(y.label),5)],12,_hoisted_1$a))),128))],4)):c.radioMode==="native"?(vue.openBlock(),vue.createBlock(g,{key:1,value:c.myValue,"onUpdate:value":u[0]||(u[0]=y=>c.myValue=y)},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.myOption,y=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:y.value},[c.optionType==="default"?(vue.openBlock(),vue.createBlock(p,{key:0,value:y.value,style:vue.normalizeStyle(c.radioStyle)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(y.label),1)]),_:2},1032,["value","style"])):c.optionType==="button"?(vue.openBlock(),vue.createBlock(m,{key:1,value:y.value,style:vue.normalizeStyle({fontSize:c.tabFontSize}),onClick:b=>c.onClickButton(y.value)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(y.label),1)]),_:2},1032,["value","style","onClick"])):vue.createCommentVNode("",!0)],64))),128))]),_:1},8,["value"])):vue.createCommentVNode("",!0),vue.renderSlot(c.$slots,"toolbox",{},void 0,!0)],6)}const Radio=_export_sfc$1(_sfc_main$h,[["render",_sfc_render$j],["__scopeId","data-v-6f149196"]]),EcanRadio=withInstall$1(Radio),navTabProps={...props$1,type:"ecanNavTab",name:"导航标签",keyName:"导航标签",width:"300px",height:"40px",tabFontSize:"14px",activeTabColor:"#1890ff",tabColor:"#333",tabFontWeight:400,activeKey:0,data:[{title:"标签1",key:"1"},{title:"标签2",key:"2"},{title:"标签3",key:"3"}],isShrink:!1,tabLineWidth:"40px",tabLineHeight:"3px",backgroundColor:"",isScrollspy:!1,scrollspyConfig:[]},navTabComponentProps=transformToComponentProps(navTabProps),navTabEvents=["tabChange"],_sfc_main$g=vue.defineComponent({name:"EcanNavTab",props:{...navTabComponentProps},components:{},setup(c){const u=usePickComponentStyle(c),f=vue.ref(0),d=vue.ref("nav-tab"),h=vue.ref([]),v=vue.ref(!1),p=vue.inject("usedComponentList",[]);vue.watch(()=>c.activeKey,re=>{f.value=re},{immediate:!0}),vue.watch(()=>[c.isShrink,c.data],()=>{d.value=nanoid(8)});const{pageMode:m,fixedHeight:g,height:y}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fixedHeight:0,height:null});let b=!1,gn=null;const x=()=>{gn&&clearTimeout(gn),gn=setTimeout(()=>{v.value=!1},200),!vue.unref(v)&&(b||(requestAnimationFrame(()=>{let re=-1;const Pn=window.scrollY;for(const Rn of vue.unref(h)){const Vn=Rn[2];if(Rn[1]==="max"&&Pn>=Rn[0]-Vn||Rn[1]!=="max"&&Pn>=Rn[0]-Vn&&Pn<Rn[1]-Vn){re=c.data.findIndex(Wn=>Wn.key===Rn[3]);break}}re>-1&&(f.value=re),b=!1}),b=!0))},vn=vue.computed(()=>{var re;return((re=c.scrollspyConfig)==null?void 0:re.filter(Pn=>c.data.find(Rn=>Pn.key&&Rn.key===Pn.key)))||[]}),J=vue.computed(()=>!!(c.isScrollspy&&vue.unref(vn).length)),j=()=>{const re=[];for(const Pn of vue.unref(vn)){const Rn=vue.unref(p).find(Vn=>Vn.id===Pn.anchor);if(Rn){const Vn=getFormatWh(Rn.height,vue.unref(y)),Wn=parseFloat(Rn.top)-vue.unref(g);re.push([Wn,Wn+Vn,Vn/2,Pn.key])}}if(re!=null&&re.length){const Pn=re.map(Gn=>Gn[0]),Rn=re.map(Gn=>Gn[1]),Vn=Pn.indexOf(Math.min(...Pn)),Wn=Rn.indexOf(Math.max(...Rn));re[Vn][0]=0,re[Wn][1]="max"}h.value=re};vue.onMounted(()=>{vue.unref(J)&&(j(),window.addEventListener("scroll",x))}),vue.onBeforeUnmount(()=>{vue.unref(J)&&window.removeEventListener("scroll",x)});const Fn=useEmitEvent(c),{setGlobalModel:Bn}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(re,Pn)=>{}});Bn(c.id,{RECORD:vue.unref(f),value:vue.unref(f)});const w=re=>{Fn("tabChange",()=>{if(Bn(c.id,{RECORD:vue.unref(f),value:vue.unref(f)}),vue.unref(J)){const Pn=c.data[re].key;if(Pn){const Rn=vue.unref(vn).find(Vn=>Vn.key===Pn);if(Rn){const Wn=document.querySelector(`[cpntid="${Rn.anchor}"]`).getBoundingClientRect();v.value=!0,window.scrollTo({top:Wn.top+window.scrollY-vue.unref(g),behavior:"smooth"})}}}})()};return useOnEvent(c,{tabChange:w}),{style:u,active:f,pageMode:m,renderKey:d,tabChange:w}}}),NavTab_vue_vue_type_style_index_0_scoped_26cab677_lang="",_hoisted_1$9=["id"];function _sfc_render$i(c,u,f,d,h,v){const p=vue.resolveComponent("van-tab"),m=vue.resolveComponent("van-tabs");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-nav-tabs",style:vue.normalizeStyle(c.style),id:"container_"+c.id},[(vue.openBlock(),vue.createBlock(m,{active:c.active,"onUpdate:active":u[0]||(u[0]=g=>c.active=g),key:c.renderKey,shrink:c.isShrink,"title-inactive-color":c.tabColor,"title-active-color":c.activeTabColor,"line-width":c.tabLineWidth,"line-height":c.tabLineHeight,background:c.backgroundColor||"transparent",onChange:c.tabChange},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.data,(g,y)=>(vue.openBlock(),vue.createBlock(p,{key:y},{title:vue.withCtx(()=>[vue.createElementVNode("div",{style:vue.normalizeStyle({fontSize:c.tabFontSize,fontWeight:c.tabFontWeight})},vue.toDisplayString(g.title),5)]),_:2},1024))),128))]),_:1},8,["active","shrink","title-inactive-color","title-active-color","line-width","line-height","background","onChange"]))],12,_hoisted_1$9)}const NavTab=_export_sfc$1(_sfc_main$g,[["render",_sfc_render$i],["__scopeId","data-v-26cab677"]]),EcanNavTab=withInstall$1(NavTab),pieProps={...props$1,id:"",name:"饼图",keyName:"饼图",type:"ecanPie",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleLeft:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],backgroundColor:"",tooltipShow:!0,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c} ({d}%)",legendShow:!0,legendTextStyleColor:"#333",legendOrient:"vertical",legendTop:"top",legendLeft:"left",innerRadius:"0%",outerRadius:"60%",centerLeft:"50%",centerTop:"50%",minAngle:0,labelShow:!0,labelColor:"#333",labelWidth:100,labelOverflow:"none",isUseLabelColors:!1,labelFontSize:12,labelPosition:"outside",labelFormatter:"{b}\\n{d}%",labelLineShow:!0,labelLineLength:10,labelLineLength2:15,roseType:"",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},dataFieldConfigType:"value",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendFormatter:"{name}",legendFontSize:"12px",tooltipPosition:"",graphicType:"ecanPie",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,legendType:"",noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px"},pieComponentProps=transformToComponentProps(pieProps),pieEvents=["click","refreshData","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.PieChart,components$1.TitleComponent,components$1.ToolboxComponent,components$1.TooltipComponent,components$1.LegendComponent]);const _sfc_main$f=vue.defineComponent({name:"EcanPie",props:{...pieComponentProps},components:{Spin,Echarts,EcanModal},setup(c,{expose:u}){const f=vue.ref(!1),{pageMode:d,fontFamily:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),v=vue.inject("showIndDetail",Hn=>{}),p=vue.ref(),m=vue.ref(!1),g=usePickComponentStyle(c),y=vue.ref([]),b=vue.ref(),gn=vue.ref({}),x=vue.computed(()=>{let{data:Hn=[]}=vue.unref(y)[0]||{};if(Array.isArray(c.colors)){const Kn=c.isUseLabelColors,zn=c.colors;Hn=Hn.map((qn,tr)=>({label:Kn?{color:zn[tr]}:{},...qn}))}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:m.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 Kn;m.value=!0,(Kn=b.value)==null||Kn.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(){v(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},tooltip:{show:c.tooltipShow,trigger:c.tooltipTrigger,formatter:Kn=>{const{marker:zn,seriesName:qn,name:tr,value:Un,percent:nr,data:cr}=Kn||{};return hn(c.tooltipFormatter,{textData:{marker:zn,name:tr,value:Un,percent:nr,a:qn,b:tr,c:Un,d:nr,...cr}},{useNewline:!0,useSpace:!0})},textStyle:{color:c.tooltipTextStyleColor},position:c.tooltipPosition||void 0},legend:vue.unref(gn),color:c.colors,series:[{data:Hn,type:"pie",radius:[c.innerRadius,c.outerRadius],center:[c.centerLeft,c.centerTop],roseType:c.roseType,avoidLabelOverlap:!0,minAngle:c.minAngle,label:{show:c.labelPosition!=="center"&&c.labelShow,color:c.labelColor,fontSize:m.value?ZOOM_FONT_SIZE:c.labelFontSize,position:c.labelPosition,formatter:handleFormatter(c.labelFormatter),width:c.labelWidth,overflow:c.labelOverflow},labelLine:{show:c.labelLineShow,length:c.labelLineLength,length2:c.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}}),vn=()=>{var Kn,zn;const Hn=m.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize);gn.value={type:c.legendScroll?"scroll":"plain",width:c.legendWidth,height:c.legendHeight,show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,align:"left",textStyle:{lineHeight:Hn+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:Hn}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:(zn=(Kn=vue.unref(y)[0])==null?void 0:Kn.data)==null?void 0:zn.map(qn=>({name:qn.name,icon:c.legendType})),formatter:qn=>{const{data:tr}=y.value[0]||{};let Un=0,nr,cr="0%";if(tr)for(const Qn of tr)Qn.name===qn&&(nr=+Qn.value),Un+=+Qn.value;return Un&&(cr=`${(nr/Un*100).toFixed(2)}%`),getLegendFormat(c.legendFormatter,{name:qn,value:nr,percent:cr})}}},J=()=>{m.value=!1},{getGlobalModel:j,setGlobalModel:Fn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Hn=>{},setGlobalModel:(Hn,Kn)=>{}}),Bn=(Hn=[],Kn)=>{const{dataset:zn}=En(Hn,Kn);y.value=zn,zn!=null&&zn.length?f.value=!1:f.value=!0},w=(Hn=[],Kn)=>{var qn;const zn=En(Hn,Kn);y.value=zn.dataset,(qn=zn.dataset)!=null&&qn.length?f.value=!1:f.value=!0};vue.watch(()=>c.data,Hn=>{(c.dataType==="static"||vue.unref(d)==="design")&&Bn(Hn)},{immediate:!0,deep:!0}),vue.watch(()=>[c.legendShow,c.legendOrient,c.legendTop,c.legendLeft,c.legendTextStyleColor,c.labelFontSize,c.legendItemHeight,c.legendItemWidth,c.legendItemGap,c.legendFormatter,c.legendFontSize,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll,c.legendType],()=>{vn()},{immediate:!0});const re=vue.ref(!1),Pn=useRequestData(c),Rn=async()=>{var Hn,Kn;if(c.dataType==="request")try{re.value=!0;const zn=await Pn();Bn((Kn=(Hn=zn==null?void 0:zn.data)==null?void 0:Hn.data)==null?void 0:Kn.rows,c.valueTypeDataFieldNames)}catch(zn){console.error(zn)}finally{re.value=!1}},Vn=useEmitEvent(c);Fn(c.id,{type:c.type,RECORD:""});const Wn=Vn("click",Hn=>{const Kn=j(c.id);Fn(c.id,{...Kn,type:c.type,RECORD:Hn==null?void 0:Hn.data})}),Gn=Hn=>{var zn;const{data:Kn}=(Hn==null?void 0:Hn.data)||{};if(Kn){const{columns:qn=[],rows:tr=[]}=((zn=Hn==null?void 0:Hn.data)==null?void 0:zn.data)??{};let Un=[];if(qn.length>0){const nr=qn[0],cr=qn[1];Un=tr.filter(Qn=>!!Qn).map(Qn=>({name:Qn[nr],value:isNaN(Qn[cr])?0:Qn[cr]||0}))}w(Un)}},Zn=useIndicatorData(c,Hn=>{c.isViewRedrawing&&p.value.clear(),Gn(Hn)}),Xn=async()=>{try{re.value=!0;const Hn=await Zn();Gn(Hn)}catch(Hn){console.error(Hn)}finally{re.value=!1}},{loadedData:er}=vue.inject(LOADED_DATA,{loadedData:{}}),Jn=vue.ref(!1);vue.watch(er,Hn=>{if(c.dataType==="indicator"){const Kn=getFixedValueDatas(c.graphicConfig);Kn!=null&&Kn.length&&(!vue.unref(Jn)&&canRequestIndicator(c.graphicConfig,Hn)?(Jn.value=!0,ir()):canRequestIndicator(c.graphicConfig,Hn)||(Jn.value=!1))}},{deep:!0});const ir=async()=>{switch(c.dataType){case"indicator":canRequestIndicator(c.graphicConfig,vue.unref(er))&&await Xn();break;case"request":await Rn();break}};useOnEvent(c,{resetRecord:()=>{const Hn=c.id,Kn=j(Hn);Fn(Hn,{...Kn,RECORD:""})},refreshData:ir,click:Wn}),u({refreshData:ir});const{setRequest:sr}=vue.inject(REQUEST_MODEL,{setRequest:Hn=>{}});return typeof sr=="function"&&sr({id:c.id,requestFn:ir,sortNum:c.requestSort}),{option:x,style:g,click:Wn,onClose:J,loading:re,ecanModal:b,echartRef:p,emptyData:f}}}),Pie_vue_vue_type_style_index_0_lang="",Pie_vue_vue_type_style_index_1_scoped_c849b4bc_lang="";function _sfc_render$h(c,u,f,d,h,v){const p=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(p,{key:1,option:c.option,ref:"echartRef",autoresize:"",onClick:c.click},null,8,["option","onClick"]))]),_: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(p,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Pie=_export_sfc$1(_sfc_main$f,[["render",_sfc_render$h],["__scopeId","data-v-c849b4bc"]]),EcanPie=withInstall$1(Pie),barProps={...props$1,id:"",name:"柱状图",keyName:"柱状图",type:"ecanBar",width:"400px",height:"400px",top:"",left:"",rotate:"",xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisLineAlwaysDisplay:!1,data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:310,type:"类型一"},{name:"名称三",value:310,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{marker} {a} {c}",xAxisSplitLineShow:!0,xAxisSplitLineInterval:0,xAxisSplitAreaShow:!1,xAxisSplitLineStyleColor:"#333",xAxisLabelInterval:0,xAxisLabelColor:"#333",xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,yAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisLabelWidth:void 0,yAxisLabelRotate:0,yAxisLabelOverflow:"none",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",barWidth:"40%",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",isUseHorizontalAxis:!1,axisInverse:!1,xAxisInverse:!1,yAxisInverse:!1,isStack:!1,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{c}",toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,barBorderRadius:"",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,showBarBackground:!1,legendType:"",legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanBar",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",defaultRangeValue:!1,startValue:"",endValue:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px"},barComponentProps=transformToComponentProps(barProps),barEvents=["refreshData","click","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.BarChart,components$1.TitleComponent,components$1.LegendComponent,components$1.DatasetComponent,components$1.ToolboxComponent,components$1.MarkLineComponent]);const _sfc_main$e=vue.defineComponent({name:"EcanBar",props:{...barComponentProps},components:{Spin,Echarts,EcanModal,AModal:antDesignVue.Modal},setup(c,{expose:u}){const f=vue.ref(!1),{pageMode:d,fontFamily:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),v=vue.inject("showIndDetail",ar=>{}),p=vue.inject("usedComponentList",[]),m=vue.ref(),g=vue.ref(!1),y=vue.ref(!1),b=vue.ref(null),gn=vue.ref([]),x=usePickComponentStyle(c),vn=vue.ref([]),J=vue.ref(),j=vue.ref({});let Fn;const Bn=vue.computed(()=>g.value?ZOOM_FONT_SIZE:12),w=vue.computed(()=>{const{gradientShow:ar,gradientColors:ur,gradientOffset:mr,barBorderRadius:dr}=c,gr=vue.unref(vn),lr=gr.length,hr=[];for(let xr=0;xr<lr;xr++){const Sr={...gr[xr],type:"bar",barWidth:c.barWidth.value+c.barWidth.suffix,showBackground:c.showBarBackground};if(c.isStack&&(Sr.stack="stack"),Sr.label={show:c.labelShow,fontSize:c.labelFontSize,position:c.labelPosition,color:c.labelColor,width:c.labelWidth,overflow:c.labelOverflow,formatter:yr=>{let pr="",br=c.labelFormatter;br===""&&(br="{c}");const{seriesName:wr,name:kr,value:Er,data:Ir}=yr||{};return pr+=hn(br,{textData:{name:kr,value:Er,a:wr,b:kr,c:Er||0,...Ir}},{useNewline:!0,useSpace:!0}),pr}},Sr.itemStyle={},ar){let yr=c.colors[xr];if(!yr&&c.colors.length){const pr=(xr+1)%c.colors.length-1;yr=pr>0?c.colors[pr]:c.colors[0]}yr||(yr="#5470C6"),Sr.itemStyle={color:{x:c.isUseHorizontalAxis?1:0,y:0,x2:0,y2:c.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:yr},{offset:mr,color:ur[xr]},{offset:1,color:ur[xr]}]}}}if(dr){const yr=dr.split(",");if(yr!=null&&yr.length){const pr=[];for(const br of yr){const wr=parseFloat(br);isNaN(wr)||pr.push(wr)}Sr.itemStyle.borderRadius=pr}}c.isShowMarkLine&&(Sr.markLine={data:[{type:c.markLineType}]}),hr.push(Sr)}return hr}),re=vue.ref([]),Pn=vue.ref(!1),Rn=vue.computed(()=>{const ar=c.yAxisLabelFormatter,ur=c.xAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(h)},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,feature:{myLocation:{show:g.value?!1:c.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){y.value=!0;const mr=m.value.chart.getOption(),{xAxis:dr}=mr||{};dr&&dr.length&&(gn.value=dr[0].data)}},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 mr;g.value=!0,(mr=J.value)==null||mr.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(){v(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",show:c.tooltipShow,formatter:mr=>{var hr;const dr=mr.length;let gr="",lr=c.tooltipFormatter;Fn=(hr=mr[0])==null?void 0:hr.data,lr===""&&(lr="{marker} {a} {c}");for(let xr=0;xr<dr;xr++){const{marker:Sr,seriesName:yr,name:pr,value:br,data:wr}=mr[xr]||{};if(xr===0){let kr=pr;typeof pr=="string"&&pr[0]==="0"&&!isNaN(+pr)&&(kr=(+pr).toString()),gr+=`${In(ur,kr)}<br/>`}gr+=hn(lr,{textData:{marker:Sr,name:pr,value:br,a:yr,b:pr,c:wr.sourceValue||br||0,...wr}},{useNewline:!0,useSpace:!0}),gr+="<br/>"}return gr},textStyle:{color:c.tooltipTextStyleColor,fontSize:Bn.value},position:c.tooltipPosition||void 0},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(vn).map((mr,dr)=>({name:mr.name,itemStyle:{color:c.colors[dr]},icon:c.legendType})),formatter:mr=>getLegendFormat(c.legendFormatter,{name:mr})},xAxis:{type:c.isUseHorizontalAxis?"value":"category",data:c.isUseHorizontalAxis?null:vue.unref(Zn),inverse:c.isUseHorizontalAxis?c.xAxisInverse:c.axisInverse,minInterval:c.xAxisMinInterval,splitLine:{show:c.xAxisSplitLineShow,lineStyle:{color:c.xAxisSplitLineStyleColor,type:c.xAxisSplitLineType},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(mr){return typeof mr=="string"&&mr[0]==="0"&&!isNaN(+mr)&&(mr=(+mr).toString()),In(ur,mr)}},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:c.isUseHorizontalAxis?"category":"value",data:c.isUseHorizontalAxis?vue.unref(re):null,inverse:c.isUseHorizontalAxis?c.axisInverse:c.yAxisInverse,minInterval:c.yAxisMinInterval,splitLine:{show:c.yAxisSplitLineShow,lineStyle:{color:c.yAxisSplitLineStyleColor,type:c.yAxisSplitLineType}},splitArea:{show:c.yAxisSplitAreaShow},axisTick:{show:c.yAxisTickShow},axisLabel:{show:c.yAxisLabelShow,fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,rotate:c.yAxisLabelRotate,width:c.yAxisLabelWidth,overflow:c.yAxisLabelOverflow,formatter(mr){return In(ar,mr)}},axisLine:{show:c.yAxisLineAlwaysDisplay,lineStyle:{color:c.yAxisLineStyleColor}},name:c.yAxisName,nameTextStyle:{fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,align:"right"},max:c.yAxisMaxValue||null},series:vue.unref(w)}}),Vn=()=>{g.value=!1},Wn=(ar=[],ur=!1)=>{var dr,gr,lr;let mr={};if(c.dataFieldConfigType==="key"){const hr=ur?c.keyTypeDataFieldNames:null;mr=Mn(ar,hr)}else if(c.dataFieldConfigType==="value"){const hr=ur?c.valueTypeDataFieldNames:null;mr=En(ar,hr)}if(vn.value=mr.dataset,(dr=vue.unref(vn))!=null&&dr.length){for(const hr of vue.unref(vn))if((gr=hr==null?void 0:hr.data)!=null&&gr.length)for(const xr of hr.data)xr.sourceValue=xr.value,xr.value=parseFloat(xr.value)}re.value=mr.dimensions,(lr=mr.dataset)!=null&&lr.length?f.value=!1:f.value=!0},Gn=(ar=[],ur,mr=!1)=>{var lr;const gr=Mn(ar,mr?ur:null,!0);c.defaultRangeValue&&setDefaultRangeVal({props:c,componentList:vue.unref(p),getGlobalModel:nr},gr),vn.value=gr.dataset,re.value=gr.dimensions,(lr=gr.dataset)!=null&&lr.length?f.value=!1:f.value=!0},Zn=vue.computed(()=>vue.unref(re).map(ar=>{let ur={};return ar&&typeof ar=="object"?ur={...ar}:ur={value:ar},ur}));vue.watch(()=>[c.data,c.labelFormatter,c.legendFormatter,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll],([ar])=>{(c.dataType==="static"||vue.unref(d)==="design")&&Wn(ar)},{immediate:!0,deep:!0});const Xn=useRequestData(c),er=async()=>{var ar,ur;try{Pn.value=!0;const mr=await Xn();Wn((ur=(ar=mr==null?void 0:mr.data)==null?void 0:ar.data)==null?void 0:ur.rows,!0)}catch(mr){console.error(mr)}finally{Pn.value=!1}},Jn=ar=>{var hr;const{columns:ur=[],rows:mr=[]}=((hr=ar==null?void 0:ar.data)==null?void 0:hr.data)??{};let dr;ur.length>0&&(dr={name:ur[0],types:ur.slice(1).map(xr=>({label:xr,value:xr}))});const{leftAxisList:gr=[]}=c.graphicConfig,lr=gr.filter(xr=>xr.show).map(xr=>xr.label);for(const xr of mr)if(xr)for(const Sr in xr)typeof xr[Sr]=="string"&&lr.includes(Sr)&&!isNaN(parseFloat(xr[Sr]))&&(xr[Sr]=parseFloat(xr[Sr]));Gn(mr,dr,!0)},ir=useIndicatorData(c,ar=>{c.isViewRedrawing&&m.value.clear(),Jn(ar)}),or=async()=>{try{Pn.value=!0;const ar=await ir();Jn(ar)}catch(ar){console.error(ar)}finally{Pn.value=!1}},{loadedData:sr}=vue.inject(LOADED_DATA,{loadedData:{}}),Hn=vue.ref(!1);vue.watch(sr,ar=>{if(c.dataType==="indicator"){const ur=getFixedValueDatas(c.graphicConfig);ur!=null&&ur.length&&(!vue.unref(Hn)&&canRequestIndicator(c.graphicConfig,ar)?(Hn.value=!0,Kn()):canRequestIndicator(c.graphicConfig,ar)||(Hn.value=!1))}},{deep:!0});const Kn=async()=>{switch(c.dataType){case"indicator":canRequestIndicator(c.graphicConfig,vue.unref(sr))&&await or();break;case"request":await er();break}},zn=(ar,ur)=>!!vue.unref(gn)[ur.value].value.includes(ar),qn=async()=>{y.value=!1;const ar=m.value.chart.getOption();for(let ur=0;ur<7;ur++)await tr(ar,ur)},tr=(ar,ur)=>new Promise(mr=>{setTimeout(()=>{const{series:dr,color:gr,xAxis:lr}=ar,hr=m.value.chart,{splitArea:xr={}}=lr[0]||{};dr.forEach((Sr,yr)=>{const pr=Sr.data;let br="";ur%2?br=gr[yr]+"a8":br=gr[yr],pr[b.value].itemStyle={color:br}}),ur%2?(xr.show=!0,xr.areaStyle.color=vue.unref(gn).map((Sr,yr)=>yr===b.value?"#ff003b26":"")):xr.show=!1,hr.setOption({series:dr,xAxis:lr}),mr()},200)});u({refreshData:Kn});const Un=useEmitEvent(c),{getGlobalModel:nr,setGlobalModel:cr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:ar=>{},setGlobalModel:(ar,ur)=>{}});cr(c.id,{type:c.type,RECORD:""});const Qn=Un("click",ar=>{const ur=nr(c.id);cr(c.id,{...ur,type:c.type,RECORD:c.tooltipShow?Fn:ar.data})}),{setRequest:fr}=vue.inject(REQUEST_MODEL,{setRequest:ar=>{}});typeof fr=="function"&&fr({id:c.id,requestFn:Kn,sortNum:c.requestSort});const vr=()=>{const ar=c.id,ur=nr(ar);cr(ar,{...ur,RECORD:""})},Yn=ar=>{m.value.chart.containPixel("grid",[ar.offsetX,ar.offsetY])&&Qn()};return c.tooltipShow?j.value["zr:click"]=Yn:j.value.click=Qn,useOnEvent(c,{refreshData:Kn,click:Qn,resetRecord:vr}),{option:Rn,style:x,refreshData:Kn,click:Qn,loading:Pn,onClose:Vn,ecanModal:J,echartRef:m,handleLocationOk:qn,onFilterOption:zn,locationVisible:y,locationValue:b,locationNames:gn,eventObj:j,emptyData:f}}}),Bar_vue_vue_type_style_index_0_lang="",Bar_vue_vue_type_style_index_1_scoped_1e0be510_lang="",_withScopeId$3=c=>(vue.pushScopeId("data-v-1e0be510"),c=c(),vue.popScopeId(),c),_hoisted_1$8={class:"location-wrap"},_hoisted_2$5=_withScopeId$3(()=>vue.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function _sfc_render$g(c,u,f,d,h,v){const p=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal"),y=vue.resolveComponent("a-select-option"),b=vue.resolveComponent("a-select"),gn=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-bar",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(p,vue.mergeProps({key:1,ref:"echartRef",option:c.option,"update-options":{notMerge:!0},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(p,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),vue.createVNode(gn,{visible:c.locationVisible,"onUpdate:visible":u[1]||(u[1]=x=>c.locationVisible=x),title:"快速定位",onOk:c.handleLocationOk},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$8,[_hoisted_2$5,vue.createVNode(b,{value:c.locationValue,"onUpdate:value":u[0]||(u[0]=x=>c.locationValue=x),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":c.onFilterOption},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.locationNames,(x,vn)=>(vue.openBlock(),vue.createBlock(y,{key:vn,value:vn},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(x.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const Bar=_export_sfc$1(_sfc_main$e,[["render",_sfc_render$g],["__scopeId","data-v-1e0be510"]]),EcanBar=withInstall$1(Bar),scatterProps={...props$1,id:"",name:"散点图",keyName:"散点图",type:"ecanScatter",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:233,value:335},{name:556,value:310},{name:56,value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",tooltipShow:!0,tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c}",legendShow:!1,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:10,symbolColor:"",xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelColor:"#333",xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelFormatter:"{value}",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",dataFieldNames:{name:"name",value:"value"},gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanScatter",tooltipPosition:"",yAxisName:"",xAxisName:"",showXAxisLineArrow:!1,showYAxisLineArrow:!1,xAxisLineInverse:!1,yAxisLineInverse:!1,yAxisTickShow:!0,xAxisMarkLineValue:[],yAxisMarkLineValue:[],axisMarkArea:[],xAxisMax:null,xAxisMin:null,yAxisMax:null,yAxisMin:null,xAxisLabelShow:!0,crossShow:!0,noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px"},scatterComponentProps=transformToComponentProps(scatterProps),scatterEvents=["click","refreshData","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.ScatterChart,components$1.ToolboxComponent,components$1.TitleComponent,components$1.TooltipComponent,components$1.LegendComponent,components$1.MarkLineComponent,components$1.MarkAreaComponent]);const _sfc_main$d=vue.defineComponent({name:"EcanScatter",props:{...scatterComponentProps},components:{Spin,Echarts,EcanModal},setup(c,{expose:u}){const f=vue.ref(!1),{pageMode:d,fontFamily:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),v=vue.inject("showIndDetail",Yn=>{}),p=vue.ref(),m=vue.ref(!1),g=usePickComponentStyle(c),y=vue.ref([]),b=vue.ref(),gn=vue.computed(()=>m.value?ZOOM_FONT_SIZE:12),x=vue.ref(),vn=vue.ref(),J=vue.ref(),j=vue.ref(),Fn=vue.inject("componentList",[]),Bn=vue.ref({}),{loadedData:w}=vue.inject(LOADED_DATA,{loadedData:{}}),re=vue.ref({}),Pn=vue.computed(()=>{const{xAxisMarkLineValue:Yn=[],yAxisMarkLineValue:ar=[]}=c,ur=Yn.concat(ar),mr=[];for(const dr of ur){let gr=dr.value;const lr=gr.match(/\{(.+?)\}/g);if(lr!=null&&lr.length){for(const xr of lr)gr=gr.replace(xr,xr.slice(1,-1));const hr=vue.unref(Fn).find(xr=>xr.keyName===gr);hr!=null&&hr.id&&!mr.find(xr=>xr.keyName===gr)&&mr.push({componentId:hr.id,keyName:hr.keyName})}}return mr});vue.watch(w,Yn=>{var ar;if((ar=vue.unref(Pn))!=null&&ar.length)for(const ur of vue.unref(Pn)){const{componentId:mr,keyName:dr}=ur;if(Yn[mr]){const gr=Zn(mr);re.value[dr]=gr.value}else delete re.value[dr]}},{deep:!0});const Rn=vue.computed(()=>{const{xAxisMarkLineValue:Yn=[],yAxisMarkLineValue:ar=[]}=c,ur=Yn.map(gr=>({...gr,x:!0})),mr=ar.map(gr=>({...gr,y:!0})),dr=ur.concat(mr);if(dr!=null&&dr.length){const gr=[];for(const lr of dr){const hr={label:{show:!0,formatter:"",rich:{ft:{}}}},xr={};let Sr=lr.value;const yr=Sr.match(/\{(.+?)\}/g);let pr="";if(hr.label.formatter=lr.label?`{ft|${lr.label}}`:"",(lr.offsetHorizontal||lr.offsetVertical)&&(lr.x?hr.label.rich.ft.padding=[0,lr.offsetHorizontal||0,lr.offsetVertical||0,0]:lr.y&&(hr.label.rich.ft.padding=[lr.offsetVertical||0,0,0,lr.offsetHorizontal||0])),lr.labelColor&&(hr.label.rich.ft.color=lr.labelColor),lr.lineColor&&(xr.color=lr.lineColor),lr.x?pr="xAxis":lr.y&&(pr="yAxis"),yr!=null&&yr.length){for(const br of yr)Sr=Sr.replace(br,br.slice(1,-1));if(Sr){let br;re.value[Sr]?br=vue.unref(re)[Sr]:br=pn(Sr,{max:lr.x?vue.unref(x):lr.y?vue.unref(J):0,min:lr.x?vue.unref(vn):lr.y?vue.unref(j):0}),isNaN(+br)||gr.push({[pr]:+br,lineStyle:xr,...hr})}}else isNaN(+lr.value)||gr.push({[pr]:lr.value,lineStyle:xr,...hr})}return{symbol:["none","none"],data:gr}}else return{data:[]}});function Vn(Yn,ar,ur){switch(ar){case"startX":Yn[0].coord[0]=+ur;break;case"startY":Yn[0].coord[1]=+ur;break;case"endX":Yn[1].coord[0]=+ur;break;case"endY":Yn[1].coord[1]=+ur;break}}const Wn=vue.computed(()=>{const{axisMarkArea:Yn=[]}=c;if(Yn!=null&&Yn.length){const ar=[];for(const ur of Yn){const mr=[{name:"",coord:[],itemStyle:{color:ur.color}},{coord:[]}];for(const dr in ur)if(dr!=="color"){let gr=ur[dr];const lr=gr.match(/\{(.+?)\}/g);if(lr!=null&&lr.length){for(const hr of lr)gr=gr.replace(hr,hr.slice(1,-1));if(gr){const hr=pn(gr,{xMax:vue.unref(x),xMin:vue.unref(vn),yMax:vue.unref(J),yMin:vue.unref(j)});isNaN(+hr)||Vn(mr,dr,hr)}}else isNaN(+ur[dr])||Vn(mr,dr,ur[dr])}mr.every(dr=>{var gr;return(gr=dr.coord)==null?void 0:gr.length})&&ar.push(mr)}return{data:ar}}else return{data:[]}}),Gn=vue.computed(()=>{const Yn=c.xAxisLabelFormatter,ar=c.yAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(h)},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,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:m.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 ur;m.value=!0,(ur=b.value)==null||ur.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(){v(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,xAxis:{z:5,splitLine:{show:c.xAxisSplitLineShow,lineStyle:{color:c.xAxisSplitLineStyleColor},interval:c.xAxisSplitLineInterval},splitArea:{show:c.xAxisSplitAreaShow},axisLabel:{show:c.xAxisLabelShow,fontSize:c.xAxisLabelFontSize,color:c.xAxisLabelColor,interval:c.xAxisLabelInterval||0,rotate:c.xAxisLabelRotate,width:c.xAxisLabelWidth,overflow:c.xAxisLabelOverflow,formatter(ur){return typeof ur=="string"&&ur[0]==="0"&&!isNaN(+ur)&&(ur=(+ur).toString()),In(Yn,ur)}},axisLine:{lineStyle:{color:c.xAxisLineStyleColor},symbol:["none",c.showXAxisLineArrow?"arrow":"none"],symbolSize:[8,12],onZero:!1},axisTick:{show:c.xAxisTickShow},name:c.xAxisName,nameLocation:c.xAxisLineInverse?"start":"end",nameTextStyle:{fontSize:c.xAxisLabelFontSize,color:c.xAxisLabelColor,align:"left"},inverse:c.xAxisLineInverse,max:c.xAxisMax,min:c.xAxisMin},yAxis:{z:5,splitLine:{show:c.yAxisSplitLineShow,lineStyle:{color:c.yAxisSplitLineStyleColor,type:c.yAxisSplitLineType}},axisTick:{show:c.yAxisTickShow},splitArea:{show:c.yAxisSplitAreaShow},axisLabel:{show:c.yAxisLabelShow,fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,formatter(ur){return In(ar,ur)}},axisLine:{show:c.yAxisLineAlwaysDisplay,lineStyle:{color:c.yAxisLineStyleColor},symbol:["none",c.showYAxisLineArrow?"arrow":"none"],symbolSize:[8,12],onZero:!1},name:c.yAxisName,nameLocation:c.yAxisLineInverse?"start":"end",nameTextStyle:{fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,align:"right"},inverse:c.yAxisLineInverse,max:c.yAxisMax,min:c.yAxisMin},tooltip:{show:c.tooltipShow,trigger:c.tooltipTrigger,formatter(ur){var Sr;const{marker:mr,seriesName:dr,componentType:gr}=ur,lr=((Sr=ur==null?void 0:ur.data)==null?void 0:Sr.record)??{},hr=lr[vue.unref(Jn).name],xr=lr[vue.unref(Jn).value];return["markLine","markArea"].includes(gr)?"":hn(c.tooltipFormatter,{textData:{marker:mr,seriesName:dr,a:dr,b:hr,c:xr,...lr}},{useNewline:!0,useSpace:!0})},axisPointer:{type:c.crossShow||c.crossShow===void 0?"cross":""},textStyle:{fontSize:gn.value},position:c.tooltipPosition||void 0},legend:{show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,textStyle:{color:c.legendTextStyleColor,fontSize:gn.value}},series:[{data:vue.unref(y),type:"scatter",symbolSize:c.symbolSize,itemStyle:{color:c.symbolColor},markLine:Rn.value,markArea:Wn.value}]}}),{getGlobalModel:Zn,setGlobalModel:Xn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Yn=>{},setGlobalModel:(Yn,ar)=>{}}),er=()=>{var ur,mr;const Yn=(ur=vue.unref(p))==null?void 0:ur.chart.getModel().getComponent("yAxis").axis.scale._extent,ar=(mr=vue.unref(p))==null?void 0:mr.chart.getModel().getComponent("xAxis").axis.scale._extent;ar&&Yn&&(vn.value=ar[0],x.value=ar[1],j.value=Yn[0],J.value=Yn[1])},Jn=vue.computed(()=>{let Yn=c.dataFieldNames;if(c.dataType==="indicator"){const{formFields:ar={}}=c.graphicConfig;ar!=null&&ar.labelField&&(ar!=null&&ar.valueField)&&(Yn={name:ar.labelField,value:ar.valueField})}return Yn}),ir=(Yn=[])=>{var mr;const{name:ar="name",value:ur="value"}=vue.unref(Jn)||{};y.value=Yn.map(dr=>({value:[dr[ar],dr[ur]],record:dr})),setTimeout(()=>{er()},0),(mr=y.value)!=null&&mr.length?f.value=!1:f.value=!0};vue.watch(()=>c.data,Yn=>{(c.dataType==="static"||vue.unref(d)==="design")&&ir(Yn)},{immediate:!0,deep:!0});const or=vue.ref(!1),sr=useRequestData(c),Hn=async()=>{var Yn,ar;if(c.dataType==="request"){or.value=!0;try{const ur=await sr();ir((ar=(Yn=ur==null?void 0:ur.data)==null?void 0:Yn.data)==null?void 0:ar.rows)}catch(ur){console.error(ur)}finally{or.value=!1}}},Kn=()=>{m.value=!1},zn=useEmitEvent(c);Xn(c.id,{type:c.type,RECORD:""});const qn=zn("click",Yn=>{const ar=c.id,ur=Zn(ar);Xn(ar,{...ur,type:c.type,RECORD:Yn==null?void 0:Yn.data})}),tr=Yn=>{p.value.chart.containPixel("grid",[Yn.offsetX,Yn.offsetY])&&qn()};c.tooltipShow?Bn.value["zr:click"]=tr:Bn.value.click=qn;const Un=Yn=>{var ar,ur;ir((ur=(ar=Yn==null?void 0:Yn.data)==null?void 0:ar.data)==null?void 0:ur.rows)},nr=useIndicatorData(c,Yn=>{c.isViewRedrawing&&p.value.clear(),Un(Yn)}),cr=async()=>{try{or.value=!0;const Yn=await nr();Un(Yn)}catch(Yn){console.error(Yn)}finally{or.value=!1}},Qn=async()=>{switch(c.dataType){case"indicator":await cr();break;case"request":await Hn();break}};useOnEvent(c,{refreshData:Qn,click:qn,resetRecord:()=>{const Yn=c.id,ar=Zn(Yn);Xn(Yn,{...ar,RECORD:""})}});const{setRequest:vr}=vue.inject(REQUEST_MODEL,{setRequest:Yn=>{}});return typeof vr=="function"&&vr({id:c.id,requestFn:Qn,sortNum:c.requestSort}),u({refreshData:Qn}),{option:Gn,style:g,click:qn,loading:or,onClose:Kn,ecanModal:b,echartRef:p,emptyData:f,eventObj:Bn}}}),Scatter_vue_vue_type_style_index_0_lang="",Scatter_vue_vue_type_style_index_1_scoped_821a4358_lang="";function _sfc_render$f(c,u,f,d,h,v){const p=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(p,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(p,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Scatter=_export_sfc$1(_sfc_main$d,[["render",_sfc_render$f],["__scopeId","data-v-821a4358"]]),EcanScatter=withInstall$1(Scatter),customGraphProps={...props$1,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},customGraphComponentProps=transformToComponentProps(customGraphProps),_sfc_main$c=vue.defineComponent({name:"EcanCustomGraph",props:{...customGraphComponentProps},components:{Echarts},setup(c){const u=usePickComponentStyle(c),f=vue.ref();return vue.watch(()=>c.optionCode,d=>{try{const h=eval;f.value=h(d)}catch(h){console.error(h)}},{immediate:!0}),{style:u,myOption:f,echarts:echarts__namespace}}});function _sfc_render$e(c,u,f,d,h,v){const p=vue.resolveComponent("echarts");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(c.style)},[vue.createVNode(p,{option:c.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const CustomGraph=_export_sfc$1(_sfc_main$c,[["render",_sfc_render$e]]),EcanCustomGraph=withInstall$1(CustomGraph),comboGraphProps={...props$1,id:"",name:"组合图表",keyName:"组合图表",type:"ecanComboGraph",width:"400px",height:"400px",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:410,type:"类型一"},{name:"名称三",value:210,type:"类型一"},{name:"名称一",value:510,type:"类型二"},{name:"名称二",value:731,type:"类型二"},{name:"名称三",value:910,type:"类型二"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {a} {c}",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelWidth:void 0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisMinInterval:0,yAxisLeftSplitLineShow:!0,yAxisRightSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",seriesTypes:[{type:"bar",axisIndex:0},{type:"line",axisIndex:0}],yAxis:[{axisLabelFormatter:"{value}"},{axisLabelFormatter:"{value}"}],gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,symbolSize:4,lineStyleWidth:2,smooth:!1,barWidth:"40%",barBorderRadius:"",areaGradientShow:!1,areaGradientColor:"",yAxisLabelShow:!0,yAxisLeftSplitLineType:"solid",yAxisRightSplitLineType:"solid",gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,legendType:"",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanComboGraph",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisLeftName:"",yAxisRightName:"",xAxisName:"",defaultRangeValue:!1,startValue:"",endValue:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,yAxisLeftUnitAdapt:!1,yAxisRightUnitAdapt:!1,noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px",labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{c}"},comboGraphComponentProps=transformToComponentProps(comboGraphProps),comboGraphEvents=["refreshData","click","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.BarChart,charts.LineChart,components$1.TitleComponent,components$1.LegendComponent,components$1.DatasetComponent,components$1.ToolboxComponent,components$1.MarkLineComponent]);const _sfc_main$b=vue.defineComponent({name:"EcanComboGraph",props:{...comboGraphComponentProps},components:{Spin,Echarts,EcanModal,AModal:antDesignVue.Modal},setup(c,{expose:u}){const f=vue.ref(!1),{pageMode:d,fontFamily:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),v=vue.inject("showIndDetail",lr=>{}),p=vue.inject("usedComponentList",[]),{getGlobalModel:m,setGlobalModel:g}=vue.inject(GLOBAL_MODEL,{getGlobalModel:lr=>{},setGlobalModel:(lr,hr)=>{}}),y=vue.ref(),b=vue.ref(!1),gn=vue.ref(!1),x=vue.ref(null),vn=vue.ref([]),J=vue.ref({});let j;const Fn=usePickComponentStyle(c),Bn=vue.ref([]),w=vue.ref([]),re=vue.ref(),Pn=vue.ref([]),Rn=vue.ref([0,0]),Vn=vue.computed(()=>b.value?ZOOM_FONT_SIZE:12),Wn=vue.computed(()=>({textStyle:{fontFamily:vue.unref(h)},title:{text:c.titleText,subtext:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,feature:{myLocation:{show:b.value?!1:c.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){gn.value=!0;const lr=y.value.chart.getOption(),{xAxis:hr}=lr||{};hr&&hr.length&&(vn.value=hr[0].data)}},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:b.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 lr;b.value=!0,(lr=re.value)==null||lr.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(){v(c)}}}},grid:{top:c.gridTop,bottom:c.gridBottom,left:c.gridLeft,right:c.gridRight,containLabel:c.gridContainLabel},color:c.colors,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:(b.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:b.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:vue.unref(Pn).map((lr,hr)=>({name:lr.name,itemStyle:{color:c.colors[hr]},icon:c.legendType})),formatter:lr=>getLegendFormat(c.legendFormatter,{name:lr})},tooltip:{trigger:"axis",show:c.tooltipShow,formatter:lr=>{var pr;const hr=lr.length;let xr="",Sr=c.tooltipFormatter;j=(pr=lr[0])==null?void 0:pr.data,Sr===""&&(Sr="{marker} {a} {c}");const yr=c.seriesTypes;for(let br=0;br<hr;br++){const wr=yr[br],{tooltipFormatter:kr}=wr||{},{marker:Er,seriesName:Ir,name:Dr,value:qr,data:Rr}=lr[br]||{};if(br===0){let Fr=Dr;typeof Dr=="string"&&Dr[0]==="0"&&!isNaN(+Dr)&&(Fr=(+Dr).toString()),xr+=`${In(c.xAxisLabelFormatter,Fr)}<br/>`}xr+=hn(kr||Sr,{textData:{marker:Er,name:Dr,value:qr,seriesName:Ir,a:Ir,b:Dr,c:qr||0,...Rr}},{useNewline:!0,useSpace:!0}),xr+="<br/>"}return xr},textStyle:{color:c.tooltipTextStyleColor,fontSize:Vn.value},position:c.tooltipPosition||void 0},xAxis:{minInterval:c.xAxisMinInterval,type:"category",data:vue.unref(w).map(lr=>{let hr={};return lr&&typeof lr=="object"?hr={...lr}:hr={value:lr},hr}),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(lr){return typeof lr=="string"&&lr[0]==="0"&&!isNaN(+lr)&&(lr=(+lr).toString()),In(c.xAxisLabelFormatter,lr)}},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:vue.unref(or),series:vue.unref(Bn)})),Gn=()=>{b.value=!1},Zn=lr=>{const hr=[];let xr=0;return c.seriesTypes.forEach((Sr,yr)=>{var pr,br;Sr.axisIndex===lr&&((br=(pr=vue.unref(Pn)[yr])==null?void 0:pr.data)!=null&&br.length)&&hr.push(...vue.unref(Pn)[yr].data.map(wr=>+wr.value))}),hr.some(Sr=>Sr>=1e7)?xr=4:hr.some(Sr=>Sr>=1e6)?xr=3:hr.some(Sr=>Sr>=1e4)&&(xr=1),xr},Xn=()=>{Rn.value[0]=c.yAxisLeftUnitAdapt?Zn(0):0,Rn.value[1]=c.yAxisRightUnitAdapt?Zn(1):0},er=(lr=[],hr=!1)=>{var yr;let xr;if(c.dataFieldConfigType==="key"){const pr=hr?c.keyTypeDataFieldNames:null;xr=Mn(lr,pr,!0)}else if(c.dataFieldConfigType==="value"){const pr=hr?c.valueTypeDataFieldNames:null;xr=En(lr,pr)}w.value=xr.dimensions;const Sr=xr.dataset;Pn.value=xr.dataset,Bn.value=ir(Sr),Xn(),(yr=xr.dataset)!=null&&yr.length?f.value=!1:f.value=!0},Jn=(lr=[],hr,xr=!1)=>{var br;const yr=Mn(lr,xr?hr:null,!0);c.defaultRangeValue&&setDefaultRangeVal({props:c,componentList:vue.unref(p),getGlobalModel:m},yr),w.value=yr.dimensions;const pr=yr.dataset;Pn.value=yr.dataset,Bn.value=ir(pr),Xn(),(br=yr.dataset)!=null&&br.length?f.value=!1:f.value=!0};function ir(lr){const hr=[],xr=lr.length,Sr=c.seriesTypes;for(let yr=0;yr<xr;yr++){const pr=Sr[yr],{type:br,axisIndex:wr}=pr||{};let kr={type:br,yAxisIndex:wr,...lr[yr]},Er=c.colors[yr];if(!Er&&c.colors.length){const Ir=(yr+1)%c.colors.length-1;Er=Ir>0?c.colors[Ir]:c.colors[0]}if(Er||(Er="#5470C6"),br==="line"){const Ir={};c.shadowColor&&(Ir.shadowColor=c.shadowColor,Ir.shadowBlur=c.shadowBlur,Ir.shadowOffsetY=c.shadowOffsetY,Ir.shadowOffsetX=c.shadowOffsetX),kr={...kr,symbolSize:c.symbolSize,smooth:c.smooth,itemStyle:{color:Er},areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:Er},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:Er,opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...Ir}}}if(br==="bar"){const{gradientShow:Ir,gradientColors:Dr,gradientOffset:qr}=c,Rr={color:Er};if(c.barBorderRadius){const Fr=c.barBorderRadius.split(",");if(Fr!=null&&Fr.length){const jr=[];for(const Nr of Fr){const Ur=parseFloat(Nr);isNaN(Ur)||jr.push(Ur)}Rr.borderRadius=jr}}Ir&&(Rr.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:Er},{offset:qr,color:Dr[yr]},{offset:1,color:Dr[yr]}]}),kr={...kr,barWidth:c.barWidth.value+c.barWidth.suffix,itemStyle:Rr,label:{show:c.labelShow,fontSize:c.labelFontSize,position:c.labelPosition,color:c.labelColor,width:c.labelWidth,overflow:c.labelOverflow,formatter:Fr=>{let jr="",Nr=c.labelFormatter;Nr===""&&(Nr="{c}");const{seriesName:Ur,name:Qr,value:Wr,data:ri}=Fr||{};return jr+=hn(Nr,{textData:{name:Qr,value:Wr,a:Ur,b:Qr,c:Wr||0,...ri}},{useNewline:!0,useSpace:!0}),jr}}}}c.isShowMarkLine&&(kr.markLine={data:[{type:c.markLineType}]}),hr.push(kr)}return hr}vue.watch(()=>[c.data,c.seriesTypes,c.symbolSize,c.smooth,c.areaStyleOpacity,c.lineStyleWidth,c.barWidth,c.barBorderRadius,c.areaGradientShow,c.areaGradientColor,c.gradientShow,c.gradientColors,c.gradientOffset,c.shadowColor,c.shadowBlur,c.shadowOffsetY,c.shadowOffsetX,c.legendFontSize,c.xAxisLabelFormatter,c.isShowMarkLine,c.markLineType,c.legendFormatter,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll,c.yAxisLeftUnitAdapt,c.yAxisRightUnitAdapt,c.labelFormatter,c.labelPosition,c.labelShow,c.labelFontSize,c.labelColor,c.labelWidth,c.labelOverflow],([lr])=>{(c.dataType==="static"||vue.unref(d)==="design")&&er(lr)},{immediate:!0,deep:!0});const or=vue.computed(()=>{const lr=c.yAxis;return lr==null?void 0:lr.map((hr,xr)=>{const Sr=Rn.value[xr];let yr;return Sr&&(yr=1e4*Math.pow(10,Sr-1)),{type:"value",minInterval:c.yAxisMinInterval,splitLine:{show:xr===0?c.yAxisLeftSplitLineShow:c.yAxisRightSplitLineShow,lineStyle:{color:c.yAxisSplitLineStyleColor,type:xr===0?c.yAxisLeftSplitLineType:c.yAxisRightSplitLineType}},splitArea:{show:c.yAxisSplitAreaShow},axisLabel:{show:c.yAxisLabelShow,fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,formatter(pr){let br=pr;return yr&&(br=(+pr/yr).toString()),In(hr.axisLabelFormatter,br)}},axisLine:{show:c.yAxisLineAlwaysDisplay,lineStyle:{color:c.yAxisLineStyleColor}},name:sr(Sr)+(xr===0?c.yAxisLeftName:c.yAxisRightName),nameTextStyle:{fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,align:xr===0?"right":"left"},max:c.yAxisMaxValue||null}})});function sr(lr){let hr="";switch(lr){case 1:hr="万";break;case 3:hr="百万";break;case 4:hr="千万";break}return hr}const Hn=vue.ref(!1),Kn=useRequestData(c),zn=async()=>{var lr,hr;if(c.dataType==="request")try{Hn.value=!0;const xr=await Kn();er((hr=(lr=xr==null?void 0:xr.data)==null?void 0:lr.data)==null?void 0:hr.rows,!0)}catch(xr){console.error(xr)}finally{Hn.value=!1}},qn=lr=>{var yr;const{columns:hr=[],rows:xr=[]}=((yr=lr==null?void 0:lr.data)==null?void 0:yr.data)??{};let Sr;hr.length>0&&(Sr={name:hr[0],types:hr.slice(1).map(pr=>({label:pr,value:pr}))}),Jn(xr,Sr,!0)},tr=useIndicatorData(c,lr=>{c.isViewRedrawing&&y.value.clear(),qn(lr)}),Un=async()=>{try{Hn.value=!0;const lr=await tr();qn(lr)}catch(lr){console.error(lr)}finally{Hn.value=!1}},{loadedData:nr}=vue.inject(LOADED_DATA,{loadedData:{}}),cr=vue.ref(!1);vue.watch(nr,lr=>{if(c.dataType==="indicator"){const hr=getFixedValueDatas(c.graphicConfig);hr!=null&&hr.length&&(!vue.unref(cr)&&canRequestIndicator(c.graphicConfig,lr)?(cr.value=!0,Qn()):canRequestIndicator(c.graphicConfig,lr)||(cr.value=!1))}},{deep:!0});const Qn=async()=>{switch(c.dataType){case"indicator":canRequestIndicator(c.graphicConfig,vue.unref(nr))&&await Un();break;case"request":await zn();break}},fr=(lr,hr)=>!!vue.unref(vn)[hr.value].value.includes(lr),vr=async()=>{gn.value=!1;const lr=y.value.chart.getOption();for(let hr=0;hr<7;hr++)await Yn(lr,hr)},Yn=(lr,hr)=>new Promise(xr=>{setTimeout(()=>{const{series:Sr,color:yr,xAxis:pr}=lr,br=y.value.chart,{splitArea:wr={}}=pr[0]||{};Sr.forEach((kr,Er)=>{const Ir=kr.data;let Dr="";hr%2?Dr=yr[Er]+"a8":Dr=yr[Er],Ir[x.value].itemStyle={color:Dr}}),hr%2?(wr.show=!0,wr.areaStyle.color=vue.unref(vn).map((kr,Er)=>Er===x.value?"#ff003b26":"")):wr.show=!1,br.setOption({series:Sr,xAxis:pr}),xr()},200)});u({refreshData:Qn});const ar=useEmitEvent(c);g(c.id,{type:c.type,RECORD:""});const ur=ar("click",lr=>{const hr=m(c.id);g(c.id,{...hr,type:c.type,RECORD:c.tooltipShow?j:lr==null?void 0:lr.data})}),mr=lr=>{y.value.chart.containPixel("grid",[lr.offsetX,lr.offsetY])&&ur()};c.tooltipShow?J.value["zr:click"]=mr:J.value.click=ur;const{setRequest:dr}=vue.inject(REQUEST_MODEL,{setRequest:lr=>{}});return typeof dr=="function"&&dr({id:c.id,requestFn:Qn,sortNum:c.requestSort}),useOnEvent(c,{resetRecord:()=>{const lr=c.id,hr=m(lr);g(lr,{...hr,RECORD:""})},refreshData:Qn,click:ur}),{style:Fn,option:Wn,click:ur,loading:Hn,onClose:Gn,ecanModal:re,echartRef:y,handleLocationOk:vr,onFilterOption:fr,locationVisible:gn,locationValue:x,locationNames:vn,eventObj:J,emptyData:f}}}),ComboGraph_vue_vue_type_style_index_0_lang="",ComboGraph_vue_vue_type_style_index_1_scoped_0a7bf640_lang="",_withScopeId$2=c=>(vue.pushScopeId("data-v-0a7bf640"),c=c(),vue.popScopeId(),c),_hoisted_1$7={class:"location-wrap"},_hoisted_2$4=_withScopeId$2(()=>vue.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function _sfc_render$d(c,u,f,d,h,v){const p=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal"),y=vue.resolveComponent("a-select-option"),b=vue.resolveComponent("a-select"),gn=vue.resolveComponent("a-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(p,vue.mergeProps({key:1,ref:"echartRef",option:c.option,"update-options":{notMerge:!0},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(p,{option:c.option,"update-options":{notMerge:!0},autoresize:"",onClick:c.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),vue.createVNode(gn,{visible:c.locationVisible,"onUpdate:visible":u[1]||(u[1]=x=>c.locationVisible=x),title:"快速定位",onOk:c.handleLocationOk},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$7,[_hoisted_2$4,vue.createVNode(b,{value:c.locationValue,"onUpdate:value":u[0]||(u[0]=x=>c.locationValue=x),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":c.onFilterOption},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.locationNames,(x,vn)=>(vue.openBlock(),vue.createBlock(y,{key:vn,value:vn},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(x.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const ComboGraph=_export_sfc$1(_sfc_main$b,[["render",_sfc_render$d],["__scopeId","data-v-0a7bf640"]]),EcanComboGraph=withInstall$1(ComboGraph),radarProps={...props$1,id:"",name:"雷达图",keyName:"雷达图",type:"ecanRadar",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"},{name:"名称五",value:435,type:"类型一"},{name:"名称六",value:215,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",lineStyleWidth:2,symbolSize:4,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{value}",axisNameColor:"",legendFontSize:"12px",graphicConfig:{},graphicType:"ecanRadar",tooltipPosition:"",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px"},radarComponentProps=transformToComponentProps(radarProps),radarEvents=["refreshData","click","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.RadarChart,components$1.ToolboxComponent,components$1.TitleComponent,components$1.LegendComponent]);const _sfc_main$a=vue.defineComponent({name:"EcanRadar",props:{...radarComponentProps},components:{Spin,Echarts,EcanModal},setup(c,{expose:u}){const f=vue.ref(!1),{pageMode:d,fontFamily:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),v=vue.inject("showIndDetail",Kn=>{}),p=vue.ref(),m=vue.ref(!1),g=usePickComponentStyle(c),y=vue.ref([]),b=vue.ref(),gn=vue.computed(()=>m.value?ZOOM_FONT_SIZE:12),x=vue.ref([]),vn=vue.ref(c.valueTypeDataFieldNames.name),J=vue.computed(()=>{const Kn=vue.unref(x),zn=Kn.length,qn=[];for(let tr=0;tr<zn;tr++){const{name:Un,data:nr=[]}=Kn[tr],cr=[{name:Un,value:nr.map(Yn=>Yn.value)}];let Qn=c.colors[tr];if(!Qn&&c.colors.length){const Yn=(tr+1)%c.colors.length-1;Qn=Yn>0?c.colors[Yn]:c.colors[0]}Qn||(Qn="#5470C6");let fr=Qn;if(c.gradientShow){const{gradientOffset:Yn,gradientColors:ar}=c;fr={x:.7,y:0,x2:0,y2:0,colorStops:[{offset:0,color:Qn},{offset:Yn,color:ar[tr]},{offset:1,color:ar[tr]}]}}const vr={type:"radar",name:Un,data:cr,areaStyle:{color:fr,opacity:c.areaStyleOpacity},tooltip:{trigger:"item"},symbolSize:c.symbolSize,lineStyle:{width:c.lineStyleWidth},label:{show:c.labelShow,fontSize:c.labelFontSize,position:c.labelPosition,color:c.labelColor,width:c.labelWidth,overflow:c.labelOverflow,formatter:Yn=>{const{data:ar,value:ur}=Yn;let mr=0,dr="0%";if(ar)for(const gr of ar.value)mr+=+gr;return mr&&(dr=`${(ur/mr*100).toFixed(2)}%`),hn(c.labelFormatter,{textData:{value:ur,percent:dr}},{useNewline:!1,useSpace:!1})}}};qn.push(vr)}return qn}),j=vue.computed(()=>{var Un;const Kn=[],zn=[],qn=vue.unref(x),tr=qn.length;for(let nr=0;nr<tr;nr++){const{data:cr=[]}=qn[nr];for(let Qn=0;Qn<cr.length;Qn++)zn.push(cr[Qn].value)}if((Un=y.value)!=null&&Un.length){const nr=zn!=null&&zn.length?Math.max(...zn)*1.2:0;for(const cr of y.value)Kn.push({name:cr,max:nr})}return Kn}),Fn=vue.computed(()=>({textStyle:{fontFamily:vue.unref(h)},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,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:m.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 Kn;m.value=!0,(Kn=b.value)==null||Kn.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(){v(c)}}}},title:{text:c.titleText,subText:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},color:c.colors,tooltip:{trigger:"axis",textStyle:{fontSize:gn.value},show:c.tooltipShow,formatter:Kn=>{let zn="",qn=c.tooltipFormatter;qn===""&&(qn="{marker} {a} {c}");for(let tr=0;tr<vue.unref(j).length;tr++){const Un=vue.unref(j)[tr],{marker:nr,seriesName:cr,value:Qn}=Kn||{};tr===0&&cr&&(zn+=`${cr}<br/>`),zn+=hn(qn,{textData:{marker:nr,name:Un.name,value:Qn[tr],a:Un.name,b:Un.name,c:Qn[tr]||0,type:cr}},{useNewline:!0,useSpace:!0}),zn+="<br/>"}return zn},position:c.tooltipPosition||void 0},radar:{indicator:vue.unref(j),axisName:{color:c.axisNameColor}},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:(m.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:m.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:vue.unref(x).map(Kn=>({name:Kn.name,icon:c.legendType})),formatter:Kn=>getLegendFormat(c.legendFormatter,{name:Kn})},series:vue.unref(J)})),Bn=()=>{m.value=!1},{getGlobalModel:w,setGlobalModel:re}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Kn=>{},setGlobalModel:(Kn,zn)=>{}}),Pn=(Kn=[],zn=!1)=>{var tr;let qn;if(c.dataFieldConfigType==="key"){const Un=zn?c.keyTypeDataFieldNames:null;qn=Mn(Kn,Un)}else if(c.dataFieldConfigType==="value"){const Un=zn?c.valueTypeDataFieldNames:null;qn=En(Kn,Un)}y.value=qn.dimensions,x.value=qn.dataset,(tr=qn.dataset)!=null&&tr.length?f.value=!1:f.value=!0},Rn=(Kn=[],zn,qn=!1)=>{var nr;const Un=Mn(Kn,qn?zn:null,!0);y.value=Un.dimensions,x.value=Un.dataset,(nr=Un.dataset)!=null&&nr.length?f.value=!1:f.value=!0};vue.watch(()=>[c.data,c.areaStyleOpacity,c.legendFontSize,c.legendFormatter,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll,c.labelFormatter],([Kn])=>{(c.dataType==="static"||vue.unref(d)==="design")&&Pn(Kn)},{immediate:!0,deep:!0});const Vn=vue.ref(!1),Wn=useRequestData(c),Gn=async()=>{var Kn,zn;if(c.dataType==="request")try{Vn.value=!0;const qn=await Wn();Pn((zn=(Kn=qn==null?void 0:qn.data)==null?void 0:Kn.data)==null?void 0:zn.rows,!0)}catch(qn){console.error(qn)}finally{Vn.value=!1}},Zn=useEmitEvent(c);re(c.id,{type:c.type,RECORD:""});const Xn=Kn=>{const zn=Kn.event.topTarget.__dimIdx;zn!==void 0&&Zn("click",()=>{var nr;const{value:qn,name:tr}=Kn.data||{},Un=w(c.id);re(c.id,{...Un,type:c.type,RECORD:{[vue.unref(vn)]:((nr=vue.unref(j)[zn])==null?void 0:nr.name)||"",[tr]:qn[zn],seriesName:tr}})})()},er=Kn=>{var Un;const{columns:zn=[],rows:qn=[]}=((Un=Kn==null?void 0:Kn.data)==null?void 0:Un.data)??{};let tr;zn.length>0&&(vn.value=zn[0],tr={name:zn[0],types:zn.slice(1).map(nr=>({label:nr,value:nr}))}),Rn(qn,tr,!0)},Jn=useIndicatorData(c,Kn=>{c.isViewRedrawing&&p.value.clear(),er(Kn)}),ir=async()=>{try{Vn.value=!0;const Kn=await Jn();er(Kn)}catch(Kn){console.error(Kn)}finally{Vn.value=!1}},or=async()=>{switch(c.dataType){case"indicator":await ir();break;case"request":await Gn();break}};useOnEvent(c,{refreshData:or,resetRecord:()=>{const Kn=c.id,zn=w(Kn);re(Kn,{...zn,RECORD:""})},click:Xn});const{setRequest:Hn}=vue.inject(REQUEST_MODEL,{setRequest:Kn=>{}});return typeof Hn=="function"&&Hn({id:c.id,requestFn:or,sortNum:c.requestSort}),u({refreshData:or}),{option:Fn,style:g,click:Xn,loading:Vn,onClose:Bn,ecanModal:b,echartRef:p,emptyData:f}}}),Radar_vue_vue_type_style_index_0_lang="",Radar_vue_vue_type_style_index_1_scoped_0852bdec_lang="";function _sfc_render$c(c,u,f,d,h,v){const p=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(p,{key:1,ref:"echartRef",option:c.option,autoresize:"",onClick:c.click},null,8,["option","onClick"]))]),_: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(p,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Radar=_export_sfc$1(_sfc_main$a,[["render",_sfc_render$c],["__scopeId","data-v-0852bdec"]]),EcanRadar=withInstall$1(Radar),__vite_glob_0_0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",__vite_glob_0_1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWoAAAAuCAYAAAABZlMtAAAAAXNSR0IArs4c6QAAEnVJREFUeF7tXU2MHNdxrqrumd0luRJNi4jIXUeEbcBAfIiM+KLk4BUs2GEOkexA+ZHE5c4yjmAISeSDASc5ZAMESAQkiJPAECKJnP2R8sfAjqEgTgIbpi5RDgogIxAQAbFAWbsrShQoUvxZ7kz3q6jqve7p7pnZmdkf8MBqQezt9+rVq/peT3V1T381CLYZAoaAIWAI3FIEjj52+lNIdKbdTr787t995Z2qMXhLrbPJDQFDwBC4zRGYmj19HyJ9jxnuBIb/SSC6752V2etFWCxQ3+YniblvCBgCtw6BqRPNhwHhH4sWsONfWH9+/j8tUN+6dbGZDQFDwBBQBKZOnvkaMP05AGcJ8yVi98W3Vk69Yo8+7CQxBAwBQ+CWIsA4Ndv8FgB+NTODmd+MiD7/1tLcj3uZZo8+bumC2eSGgCFwOyHwyd/+q7EbVyb/AQEeLPj9ahrxFy405y/2w8IC9e10lpivhoAhcMsQmD713CFu078A4H0dI/j7PN5+cP2Zx29sZZgF6lu2bDaxIWAI3C4IHHnkuXsojn4AAJ/IfUY4u3Zj/2/A2V9NB+FggXoQQtZvCBgChsAOEJiaa97LDv4DAQ7nz6QBnlpfbnxjWLUWqIdFyuQMAUPAEBgRgenZpeMM7p8AYF8YyoD8xNrS/NOjqLJAPQpaJmsIGAKGwJAIfGy2OZ8CP4uAJEMQYdMx/9r68vx3B6k4cqL5JDO8euH5xjkdO2iA9RsChoAhYAiMhsDUyTN/DIx/kI9CuAJMx9eWT748SNPR2TOLCHgSAC6nBJ+5sNg4b4F6EGrWbwgYAobAkAj83G/9Te2dzXqTGR7tDMFVdukD68+fen0rNQfnmgf3p/AdQJjJ5Bjg1fXlxmcsUA+5ACZmCBgChsBWCNw1f3pyLKEXAeBzBbnXawQz5xcbF7Yae/dc8xg5+A4C3FuSY2isrTQWLVDbuWcIGAKGwA4RODbXvDtx8H0G+HQhk355bHzz+BvPPH5lK/VTjzTvhRh+CAAHcznmK5DizNrfNl6VtlED9YfyCwjwGsLMRYSrV/34jY8jtK4hJBsIySaCayEcOQrQ3kRIWghpGyG9A8G18SMA8L5L8M7J/XjFJTiZJgguRYBJYJcgcIo8kSK4MWSWdgBwDpnHvNy4b2NXR2AX/q8h1J1v17Yayhjtr8faXmfGTXZY59i3x5m8HDMCR7rnmm+HTE71xchBXuWEm69jHMaxHIt8GB/JeP+3byevN5Jj/7e2R/7vCBgTJoylPfbyrDJBNhLh8LfqyXRIB2NEjCmT6vHjIgDKxostYiehNKsdmS4i7YuAQMflY8ry8hWI76/KZ3aIPAb9Xkb+069OmJEye0RGbCHZBz/lGEO79xmIsnNSv3/p3qjaPqxcpirIF3ZO5u2aqSzX6a5I5ocD7KrIyaGTlc3N6uNH9SPa5X9vv/rZK57qvF3T9fCrt2DR6qIDfZYrzFf1t4q4Tt8Lg2HxDtNXHMv97Zq/gv8O+xngN6V8RwGEb68tN36l90ncaZ060ZwDhGZJjvlHkOJcFqSlb5RAjQsLC7iwcI7gZw6TBObpwwdo9Y3X6fBHD+HF1gYdPHCELl96Dyf3jdHVpEUH9k3gtQ9atG+sRjc4xYl6TBvXExofq0vwpno9ps0Nh1CLiF1C9XoNWzdTqsVELWaUfbvlsBZF1OaUJCi2naNahMRtxniMKGk7iqMIE04pojolSRvjqEaJcxRFhGnSpqgWEySAFCGl7CgiQtkTxeTSFAmRUiCMyPeTBKXEEcVIzrH2O2aRxzT17ZBKYNU9AWlgJq8nk1f96NKERLMEKcz1ROj1ITofZQkcqn1yrO0SUUU+6BP9iIQsUdfrQUIS++RYgqDYrfZKP8t40iDr+0v6SKIziQYAR/KtNEtk1XGZPu0kVrtJ/c/mAf8tdkVergBYsA/EXGK1TwO47EU/onx6FCZAtZ/IzxP0SowHb5BcRPzeTwictefHvl+3ME73IO16EaqMD+2V/ny+6rgB82X2+Ol3YG8+T7C3OC+I/2V/ivN52HqMy+2hML6DX3l8Ae8unAO+fgF0XTy+O/S3Or4nzh27O/OKAZm/g9a37O+goLl7/fj02vLJJwBQjO27HZ1tStb7h9UgfT3CmcuLjcvF9pECtWbTM+cI3n2XoHUPws3LBIcmSbLmQ60JupRskGbK7Zt0IKmTZsdjLbqe1mhCMuK0RVxPCNgHanYxaSbsEmIXkWbCtZTAEdViyRAloDhsu4jiKCXNVJ3TDzlHEhzlb/k/wihCSrgYtDUYSbbnZaIINcFT+XJQTpk1qPs+DVYIFHtZjT+OJKqlxBhJv3wyQnBU/ZKNSrtEImCU2E6oZxOC7NkHcwmCKp8FXwlseb98qkQvk4+BPpj5jFjaO/rED4maEvykXWJfZx6vR8f7rNbbGvRJqutQgFU/ZP1lDjEXdW6G4Jt++v38/goh/gV5vYj4oJzJe/06D3vQvH2qozC/SPg2xUdk9ZYh86cTBcJ5WggKIbPIgnYxaIRIXUg9iqe2tybrzMfnnwRBJTsoz5e3ZheDTDA/Lo/Lzdfg2jE4v5j0G1/Rn1+cNAT7oJj7mLtS9tFHT/9P8EKPdXwpJ+v2N7N7aH+r9gZ/81je5Wcl1HT5q5caHTXM+pTtLY8r+VtZ190Lxj01yW3h760uN57aah750nBfCn+BCHNFOQZeWl+eL7VVzq6hzEf4MKOGhfDY49y7BJ+8Rx93TB85jHlmnbbxUHoH5kH7/QQnDySoGTZP4DWX4v6JMbyetn3wdtcQxuvI1xMCybT1cUUN+UZCsgfewDrX/GOLWkSt8PhCM+5IMm+HNYixzZuaect4lscW4BAiImgz+iDtMI4kA2d9XJGwwygiStsse0wgwVgywOJjB/KBMuIINVPWjNvLp4k8dtCUzT+OSPS23strxq6RWzPs/Fj6JRMPjxE05dOoSpJZhsxe9hE6SJFAH8tkFwUdx5LxM6KTSKeZt2by/rGCf0whGbzvR5FzYrbq95m1XDS8vMpJphweb2h4L86n8pIOix61Lx+vOKE+BtL5y/rloqefupBJS1CXWEMILvgjuAW79c5ArjY+GnWiiJqpI8MJ6h8YEBE4J7fvCM5fWfztPIp6vUqExwrhtrnz6S8Eu46gXl7B+WtZr0yxEIS8QHY7HhTnE4ZMPpeX08P5zD4EyzwxDRmkNyg8CJHbdu9IFq58r/qlt0TBr8xfCP52Hi+EAT31qN1d9vTK4EOw7GOPvwZ31sXjFvws3QlkeuRjXYAte8TRtb7e7846Vh6byHrrumfrm91Jeb+61qXnnZk/MfM7reyOK7/z2kE/0bOrS3MvDAzSDn5Y/dLQMXzt7ZXGN/uNHSWjHiqam5AhYAgYAoZANwLypSHH+mbHsbxXvjQEfFLe7NgKMwvUdkYZAoaAIbDHCBx9rPkQkn5p2PfNDgvUe7wIpt4QMAQMgX4I9HuzI43wIWEdDoOcZdTDoGQyhoAhYAhsA4ECHbwzmvml6xE+VH2zwzLqbQBsQwwBQ8AQ2AkCSmSJ+Bwg3lnUkzq4Pyu2NKx+y6iHRcrkDAFDwBAYEQFfv0OD9c+WhgZq+LDqLFAPi5TJGQKGgCGwDQRCsP5nQCzWAJFXNhfWlxt/NIzKUQN15Q37BVA6+cMAcPZip+ZTkVqeWSEUc9mEZq77TQSYBoBVgJ+6C+FtALhL2sIm1HP5QYR0He+Cj8J7AHAobeMlAPiIa+P78vXpHQdQ6DvyNerltK33F0pDDxun+/zfoY33JwhXAWDyAIBQ11U+0NSLcjzux40XdAklHSZASDy5jWEsy/vfGwAw5vvGAeAmOxyHcbjpUhwDgE3plv6bwmev+bnlnfFsU/1joLR5GaD2eLninH5MXQxH2SlVPnfY0+Vr7LAl09Rr0HIORcy/b64O+/Gy5TT6QIPP+4NcrVa2UenzmQ4ZX1N9wnxv5/rlfW5pERZ+sM0V9Mv77RD0ejHPt/GAlM/HOAZIEgDZFzY5SmT6rn3c1e79LAj2bijp7z4I83fpqUoOFAi4Z/aU/epnRAwRJJCC3xfcKcCTtXcmGOBSEQfFOSjuOWxv/OqxMN6qHn558/qsb5fNwd6iX1X/9uD4Zt3993tnTkmE6bn1el7NDIvrK43GoNUaJVCL7IfMxJmezERoTRBUmInXOMX9YzGxsBAlAKVxH2aip5ALM7FeS6klzERmbMWyF+ZiRJwzE4WdkHaYiUJqCQxEIYPkdHInr8UHEkqVmShMicBSFL62MhO1BoYTMggpB4Q8S1FZFZ5k4skrQrNWZqISTISMkrMHlWyipJEykzBjGCpzkZGc/KOswyozUcggWqxAGCI5SzEwJgJtG8gzH3szE4WH7mnggRHo2RRKIVeGYSChBCalrGmBPVhgGnr2QGAV+vYiM9GzDYvyHQZimZkY1iFjRm7FTMzJNh2acrnKQcYwlNM6IztUTuE+DMKcQlLtz/VkH5WyXj+uF2Muk+s9LrOvP1Ov4IP+mfnh935cZd4CfTv/YI/MaKx+5Pv4W2U0DmBiensCH7XIhCyN68GIrOCfMyh7MjEr616ksw/N4BwUErffzwCv1Qke2KpS3tRsU0gtv1uaheHc9Qi+tNWXiyMF6v61Pj6FF1s/2btaH+MRtVt7WesjohRgQK0PqUhBw9f60JogUutDmIE+mCNG5DglomqtD6Ha8fZrfURKWRPz+tT60AJKhdoh26/1obTxHdX6kKImQtULtT58DZP+tT5CuNqTWh85g7BY6yIw7rpqbZRrW2TRdEe1PooXm61qfRRrdgQGXSeay8Dt1b4o1SbpqrUR/A01RDK6/o78LdUKqdRiGbbWhxowqLZJd22Y7YffEUcyr0ZEv/iTpbnX+o3s9bqe1J2+QXB/v2A9UqD2aczDCHARs8JMecW8UPMjq5R3MNmgyy7BOyb34wdpgnntD3lcoDVAaj7LdmP+uK61NTyF3IVjrYAnNHKHLI8LNOv21ewk4wbJsjmSmhO++p3UAYk1o/QV7FxKEPs+X1WPwjFjrFXqfA0Qf8vts2jNpkWftMv4UAlPaeZS0IkZfQGnrDZIqEiXHWfV6rL6H6EqXZTPF6rThYzU1+MQ9rKnf0eAnn5epJmrfXKWEzJKpp/1B0q31NgItHAteZT5g5q2k5NbANVfpJD76nbZHYGnbxcp5DktXYOoz+CLFPLQH+bL9Wc1SXzdD1/vQ+s6FefzfRJzCpl5qKRXoJCXMs3stK9WtfOnsG8tZmyVqmv9MsJKVbs8P+6bQXZmy7LIggGdTD9XlFtW7uvS39uv7szZt+RFBvNPcNFfLUQYtuodR7VCXSeDL9+9jGZPRr/vJMiVecPTrcz6fn517pTK6537mzcP51dxPbeqkJTdcfULroP6izWoGeADYv7l1ZX5l/rpUwIM8mLxjRAGOI8JfKlYNa/PKo549TBxQ8AQMAQMAZg+ceZzTPgiMEx6OLgNjI+urTTO9oOnz+t7lyGB+6vBepSM2pbDEDAEDAFDoA8CP31y8dOOWX484G4fq7VS2u+vrjT+dECwlsx6y9f3LFDbaWcIGAKGwC4hMPXos9MYxf9W/KUXBDiz+vE3vwILC1IbsWvr9661A3jy7eXGX8oAC9S7tECmxhAwBAwBQUB+O3E8oRe59NuJ+L0a8ZfPLzbkBd2ewXqf42+GXx/P+7PX9yxQ27llCBgChsAuIyC/Rn5hs/4CsLJMdEPAV5LI/dKF5vzFvo9Cqq/vMb+0tjI/Y4F6lxfI1BkChoAhkCFwdLb5JwjwjQIibxLi599amvtx32Cd/Y4i84+yn+WyQG3nlCFgCBgCe4jA0dnmPAI/m/8EDcIl59wX31459Uq/ae9+rDkDMZzPyqBaoN7DBTLVhoAhYAgIAtOzS8cZ3LdDhQlpusnAv76+PP/dYRCyQD0MSiZjCBgChsAOEfjYidOfTZH+1Rcx0qfWDOieWFuaf3qQagvUgxCyfkPAEDAEdgmBI488dw/F0Q8A4BOZSgT8s9Xlua9vNYUF6l1aAFNjCBgChsAwCEyfeu6Qa9O/I+Bnc3mGsxMHr574v7/+HSm02bVZoB4GWZMxBAwBQ2AXETg21xxPHPw9AzzYUcsvj423j7/xzONXqlNZoN5F8E2VIWAIGALDI8A4Ndv8FgB+tZNZ8+vg6g+svfDYalGPBerhUTVJQ8AQMAR2HYGjs82vf/irJE+F8o/vM/HPry82/tcC9a5DbQoNAUPAENg+AlMnmg8DwWlA+MLaYuO/7NHH9rG0kYaAIWAI7BkCx+aaB88vNuTXBbu2/wfAQwC29PHqBQAAAABJRU5ErkJggg==",__vite_glob_1_0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",__vite_glob_1_1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWoAAAAuCAYAAAABZlMtAAAAAXNSR0IArs4c6QAAEthJREFUeF7tXV2IXdd1Xmufc+/8SKpkIyXWzDQ2Soqhfaghfgl9qENMgkPBdqgI2JE0M6ltQv8cSil9CJ2WpA+BkqQlBNvx/Ehxiq0SbFJqEhzivCQQHHAfGggkRsIaRYlkRX/zd+85a9Vr7b3PPefM/ZNGGYnMOi/nnr3XXnvt75yz9rr77m9dhNoxdfilMR5feQWJv3DmxOwP6vV2bQgYAoaAIbC9CGClu7k5N/nW3d8GgI8jQJsZHl8+MXNye02y3gwBQ8AQMATKCFQc9cSRpfcB5D9GxPcWQsifW16a/bzBZggYAoaAIXBrEKhG1AAw+fhzU5CkrwHAvdEkBJg/c+j0EzA3R7fGTOvVEDAEDIGdi8AmRy1QHHrymb3r643XEPD+DjT8asPhJ04tzqzvXLhs5IaAIWAIbD8CXR21mHHP9MJom/hbAPhQNIsB36CEPn5uYfb89ptqPRoChoAhsDMR6OmoFY65OTfx1t3PIcBs4ayZTyfOfeTtpelf7EzIbNSGgCFgCGwvAv0ddbBl8ujC5wDgX0qmXXRMH3v7xKff2F5zrTdDwBAwBHYeAkM5aoFl6lOLj7ODJQBOAkzrCO4TZ44fe3XnwWYjNgQMAUNg+xAY2lGLSRNH5x9EQNlnPRpMJED+q+Wl2a9tn8nWkyFgCBgCOwsBddR3TS/ck+Twt8snZj47aPgHjzx/v3PuO8BwZ5RFxC+eWZr+h0Ftrd4QMAQMAUPg+hHAfdML+8YJvo8A9wHD6ysJPHppceZSP1W/f2zx/cT8PQC4u5BDOHnXSOvxnzz7VPv6zbAWhoAhYAgYAr0QwIkj8y8j4sNRgAHeJAePnlucOdUPtrtm5g8khN8FhvuKyBrgB83R1sNvPfvUZYPcEDAEDAFD4OYggJOPLdwHCb8OiHtLKi9BBh9e/ubMm/26mXjymXFcH3kFgB8syf0M8uzB5ReeOHNzTDQthoAhYAjsbAR0jTo460VA/OMKHAwzyydmFvtCdPilZHJ85T+B4XARWSOcywAfPLc0/X87G14bvSFgCBgCW0eg2PUha9W7co2sK86aAebOHp/550FdTR1d+CID/H1HDq8Bw5cROY9lkijElRTdrGuCWgoSveyWlqRUVqnuIbup2BdEu4kAnAMg+dD1COXD9NXV5Kpe7U/7H3ZsPezqau+7d7p+BLlivEV9t3F1G8CQcoWZtfGG56UYbw+5jlkFQLWRXN/zEYbNgMwAyMDMKGfBHYGBQrnUIzLlOchZZJFDHeQAhB0dUk+kIFPUS8QY2qlulSfVqf12kZc6b0vUr3YxoPNn/+yr3hyQEyTORa9/clU35qEP7ScHyKVfr0ftERsygAyRU2kv/Um5tJMjyhbtMtD+vT7GPH6WcuQMHEOed8YlysWOTOQyb7va31I92A7tMbYR8YxB5R23MOMRdLwBACOI3GoFHS7q2QAUfS25bpf0rwOKzHrC4BJG3GCQax2SlG0wuoRhNWF0KQNcBZG7mqS816V8+eoK7wOAS1LnGgzJFYakwZA2PS4X3mFwTYZ0hCEdY2ju9uVjbzHs2cPw+gEG+CNxqfFl6/LSdfckm7bnTRydX0TAY2VxZlg8e2JmZpCznjy2+Bkm/ioiXNe2v0F6+9XLe4EI8i6BdMtMgCjnUK7PZKgP5apP36fYrlovxjOIPl8ej+Laf5DbW+0vyFf6k7feF2h/vl3sP7RXPeVxxP59fWgYmnm54fsv9StmFHhEszrjrOLYsScYPHi8AY84XjFTfFphr+BPtfuj962Mfxhv/f7o/Qg41e5P3e4yzh1cw3g3PQ+d/qIebw6L0yL2BrO4TUAmJvDlQCQOk4jIyzE7B1IvClmQBvF4rM7Pn9UDSr1IA7lQLnJh/mfpr5u87x+JmNipXiZ0pf6JGR2SGOSknJkcIOf+mqRB6E/tlvaqjyiUcygntUvkQfTl0l4fG19OeSEv/WQ5h/5ycpgSUcYJOmmv/YsC6UcfhETaMyUyuRGTEzlSR6rYyuQk7aR9nhMnKRJlOblEHhumRMajdjuSSQNTpLzNlKTIec6UOkdZ3uI0bVJOLUqxwVneDvI5Y8NRO2dq+EmHsJlQO8u44eRM1Gwit9eImqMJtVptHnEptdpthrGUsJWROO31VkZju1KC9RZj0qDVjTbt2p3wynqL9qT76eq1c7xv/whdurZG+5P38oVLpwgO3Uvwy/P8h+MH6Kc/PU9w+ADDyZPhORnO+3V1qBNHF+befaf/qeKsAd5cdfDhQTtCJo7OP4wALwLgyHAmbFVK3omow38ov5z+nYm+rjaR1dpFJ+qdtIROUXf/dn6S6NigPiZMAuVJwdtZmkSD0+5MCp36OFn0atNxnqXJpjChbm901lWcNo23mJQ221j0Vx+DoFSoL01CJTzq+G+6Pz3truEV7keBV7/xem9dmhQ7k+Sm+1PIxf6YQVwzinvRmZLRO1j9LE4WfZ2MXEJhdTIM4uyA/CwvLl0+azjecY7BUYvT1mlTHzJxwl5WZube8kGfxN7q02L/3vlrrK9OUSNR1Sd2qh1+jtZ2Yfb0fYoWZD85+Fk1yHtb5FrKHcrMJG31W4LKez0lfdqPTiWUJDqHeSesGOo3E5KpOif2TlimNf2mEZyvfsOQz0He16sedd7yjSA6ahkqoZeVSL/hSCSln4yYUpGXiDxPCDBMtrmcQ5+YEOp1xu0soeYIUTtDBkcE7YRgVCJ7mWTaDO2U0KUErs3gMsJWSoAJY5IRJm1aWUt4d9Kka2mLfi9J+crKBt2ZjtFFibhHdhFcvEoaZY//muA97yEfWb/kMRny6Bn5Th5ZmAbgL5d/ZGSAU5jBowN/ZDy2+CdI9IVOZBsjRu/8isioiHy3Vt+JoMovp+Dgwrvl3x5dNiiWK8J1/HrNBE7eMgkk/FtTiXyLSDgsfGigpepDRFjMBTESlffAhXekE0F39ITZQ2Is1SPy5Tkl6onxdIw85dl1IdKOjkUND+siXm8x3mJccdkkjFsDJvU24VGp2qNAhYWW+uRX/cYRJ6Vof7i/NXs6TtPfF33fKpFxLcJX3yWhXFzOKGbbrvdFAlm9vwJDcR/jfRcvI99y/TKVk9A3Lv90vHYJBx9Ru+ANw2pF+OrunZn3p15OnbV/sP1yhX+cY2QrhosPF+fml028Xq33ztHXx2UWdfohYvZ2yGMW6oN8R79G2OqEfT8aWTNIJOsjVA6PKekZmSUylf6L/mLE7GeOUJ8H+wVR72T1rF8KNJL3zlPOib9Wp6zLNWHZJnXiDHW8GiE3QqQcrtNU2ucdeWmvc03KWU7sna30I+1zTjGhDHNOxRnnOSOKEw7LI5mcE9IlEmxyO8t9pAwZN9GxRM5Nl5Asm8i1RsxjKbV0eUSWSdqM4ynJWa83Wowhcga3m9dwg8ed49X1jHbvSfja6hrvkWWR1RHae4dfFrnDpfybxhodSBp8/p0mT0yN8Nl3xEmPMfz8NMMHxxh+cohg7t3ljzld/ti6o5antteOkJzg0XPfmHl9yMnAxAwBQ8AQMAS2gMDAtWTPWuSXb2hHyBYMs6aGgCFgCBgCHoGBjlqEwo4QcdZ/WgZu2B8ZDWxDwBAwBAyBG0dgKEcd1XfbETIs7fzGTbSWhoAhYAjsbASuy1HrmnUK35cgu4CN+TLk+MCgHxh3Nsw2ekPAEDAEbhyBoR21OekbB9laGgKGgCGwFQSGctS6VQ9hodIR8//mCT4yKHnTVoyztoaAIWAIGAJD/Jh48MjC0w7hS3UnvZLgA/3IL1OfWngA0lKrDOC3ch31ZsWHrve1XCtmZZCpOeXmaQogamK5V9Rf76bONivo8ZwN0LupWgqGOXzDYnwyntq4/PhySCHR81DHbTIufz8235aB9zc8fpthLQFUBkLp0KEj2VerrGehG0sWX0871sPJPmAApUMX8sgi1UDHxV0TCrUKBjnZ/xsO1dtud+pKchjlCv2eZi36dT+wnAGgJfuIlQod9WclG2WfcOxbPpTlEi8nZA45NgKdWj4EenVFPshtrAt9O1Ea96gw9mC9av9GwjAGgButkh2hL6Frw5qnc8djXSjb0vc6A+wCgBUApXGL2tAuketr3v4VXxdlAK4Aar3IpyzpO/clDZZ8zUr7vnKN7wCA37gGSyL9iwCwP2nwBWmQjDDAeSio4FJ2YYThIAD86gIDTAHAGVDSihyyLzoeZZq4lAlVXA7ZvKwMRLlQ2nhsUSYuFGoGfegbUXelkwMvnT0+O91Lsc+o1/iv8r+XDzJia/U9mImV3eR1hqH02L+dchCK21HDtl7elWEY+tBTj3tTK+/N8AvtC85HVV9kRnaqu9lb3lvvP5fbdcOjBEAHrxINvsqo7Dbe7jjHff5Djddb6h+RglbuU24MPd76/SmRk4Lijv5Y4G+/MunkSakzEwPzMDATA2OxGzPRUwaFeO5p5YGBqNQXz0uSYQQKeWD6KaPRMx19nZAHPYXdk2HC5xoz0TMmI8NQ+hRmYmQGCrcm0NbVpGCLWCB2KD3e08w9eabDTBR6j8gUtPAezETVr6QaTWei5JWuzEQh3QiPMLIElYHoWY9lZmLu6eYdhmMk1SgOwkxU1pkwDxlyR7kjUjIMCXNSyj0JRujiIceJMApDOREqazHjtkuomRG1EbnpiFrCTMS25PsoMRM9hRxcoJMXzMQGwdoGY42ZCOkYaS6QnszEm0Ah1z8TyGEBER4pO1Ee4KQ1R3WO3wX5E4JtOq4/10ePXBIl2nc910ekk2/O9dElR0g5Z0fIbVHkvpC3PeSa8E6nT64P1dMj10fB6BuQayRQ5Arm5s3K9RHcZCdHRzXXSpHbpORci/H+1nJ9xFQq1Zwq/vnolfulbHclt0mPXB/Kj1ZatjIHUdyRDqiU6yMw+LYj14f073OReLtirg8/i6hzCrk/Krk+CqZhj1wfkX5+y3N96KQxINdHyB0yMNcHCpOxk+sjy4kaW8j1sbbe4vEhc31MHbqXztzsXB+Vf3ypeum+KU+nphf+gAnESd9TavZD8N8Vy5kXurrwEvn7OupLkWYl8ood1rPHeXmlE5dp4iX6cSXCipaUEjP5onJWuFJkF20ogtda/5v0BMFaVrgyzT7aU8FHA63qzSmbVWWmSkqGChm803BIe4oGXSJTP+QO/b2CX2FmOZqXYK02/VdSsdRkS3BvYtz2uC8+DUA5f2J3nCvjKgBWWaViS3gXc2iIrw/JXzz9W5ygjzp9VO2/gknjQD+XhEMaIUfauOTZkJhXadxKjmfJhBd0SO6Mjj7NoaFxdL0+ZNjTHB7hs4TOwJ5+rZFjzNkR2opizdWh0TNX62NWv0jfZsm65xNSebq7fvX0OUAC/V0TImmWPdb8G6h2+OuCQh5yeMicVmQDDDR0oYVL5CsRc8y4p0tCIVeHxvRKV/f1nj6OnMVoWOniEn2H6FhydIT+1a5QL3k7JAGVLAtpwqUQQcdsfT6XR8iw5xxrDg9Z2gnZ/DQRU8yqp2fHuJ7Rikt4t0TUbo2xMUJXJKueS1mz6jXGfSQtGfUkm15zj6eQyxKJZNETCjmc1OfkhinksrODU1jQv+XqOKnLAPh0v7zUk0eXPgScv9rJCyLfOfjJs8dn5rt6XSs0BAwBQ8AQGBqBYo36Rrff+Wx5+KKkhg29rjLww2ePz742tBUmaAgYAoaAIdATAXXUYfud7OwoiCzMfBpzfKQfkWXy2OJnmfjfivzTCOcB4aPLi/3/wsvuhyFgCBgChsDwCGCvPdL9t98xTh5d+ioAf6bU1c8oyz/2y2/+xenhuzdJQ8AQMAQMgUEIYH0LnuzsWHX4dK890h/4638fWb+850UGKP65HAB/NDK68ZD9+/gguK3eEDAEDIHrR0CXPiaOzL+MiOJ4v7J8fObpXmqmPv31O7md/jcAfyjKIMAro3uvfvLn//E3svfdDkPAEDAEDIGbjIA6at2Sl8EDZ78x83Iv/Qcf+/rdSSP9HjO/v5BB/NLy0rG/u56/lLnJ9ps6Q8AQMAR+5xEYKtfHwSPP3+/Q/Q8AHFBEZEepw79cXpr+2u88QjZAQ8AQMARuMQIDHfXU0ecfAnDfYoBRbytvMMAnzx6ffeUW227dGwKGgCGwIxAYkOtjYRYBngv/ciqAXARwf7Z8/NiPdgQ6NkhDwBAwBG4DBPr8C/n8vwLiP0YbZV914txH3l6a/sVtYLeZYAgYAobAjkFgk6P+4JPPNM5tNF8AhsMlFN7ME/7ouYXZ8zsGGRuoIWAIGAK3CQIVR71/9vk9Ixl+G6D8J7b8Ko+2//zss0+t3iY2mxmGgCFgCOwoBCqO+n2PvXBHnrZ/DMAfEBQQYP7ModNPwNxcPV3bjgLJBmsIGAKGwK1EYNPSh+yXdmn6BiB9ZXlp9vO30jjr2xAwBAwBQ6DHX3HdM72w79TijPyLjR2GgCFgCBgCtxiB/weD2jMQWbgYrgAAAABJRU5ErkJggg==",borderProps={...props$1,name:"边框",keyName:"边框",type:"ecanBorder",width:"300px",height:"300px",zIndex:0,fontSize:"16px",fontFamily:"",fontWeight:400,color:"",title:"标题",mode:"no-title",borderColor:"#a8a8a8",borderRadius:"5",borderStyle:"solid",borderWidth:"1px",backgroundColor:"#ffffff",useBorderModify:!1,textShadow:"",data:{},gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",isTransparent:!1,titleMode:"type-1",isFixed:!1,isFlowGrid:!1,gridInterval:20},borderComponentProps=transformToComponentProps(borderProps),borderEvents=["click"],_sfc_main$9=vue.defineComponent({name:"EcanBorder",props:{...borderComponentProps},setup(c){const u=usePickComponentStyle(c,["background"]),f=vue.computed(()=>{const{isTransparent:J,gradientShow:j,gradientColor:Fn,gradientOffset:Bn,gradientAngle:w,backgroundColor:re}=c;if(j){let Pn=Fn;return J&&(Pn="transparent"),Pn?{background:`linear-gradient(${w}, ${re}, ${Pn} ${Bn*100}%)`}:{}}else return{}}),d=vue.computed(()=>{const{events:J}=c;let j={};return J!=null&&J.length&&J.find(Bn=>Bn.emit==="showModal")&&(j={cursor:"pointer"}),j}),{theme:h}=vue.inject(GLOBAL_CONFIG,{theme:"light"}),v=vue.computed(()=>{let J="";switch(c.titleMode){case"type-2":J="2";break}return J}),p=vue.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-left.png":__vite_glob_0_0,"../../assets/border-title-decoration-left2.png":__vite_glob_0_1})[`../../assets/border-title-decoration-left${v.value}.png`],self.location).href),m=vue.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-right.png":__vite_glob_1_0,"../../assets/border-title-decoration-right2.png":__vite_glob_1_1})[`../../assets/border-title-decoration-right${v.value}.png`],self.location).href),g=vue.computed(()=>({width:"100%",height:"100%"})),y=vue.computed(()=>{const{borderRadius:J}=c,j=[],Fn={};if(J){const Bn=J.split(",");for(const w of Bn)(+w||+w==0)&&j.push(+w+"px")}return j!=null&&j.length&&(Fn.borderRadius=j.join(" ")),Fn}),gn=useEmitEvent(c)("click",()=>{}),x=vue.ref([]);vue.watch(()=>c.data,J=>{x.value=J},{immediate:!0,deep:!0}),useOnEvent(c,{click:gn});const{setGlobalModel:vn}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(J,j)=>{}});return vn(c.id,{type:c.type,value:x}),{style:u,gradientStyle:f,click:gn,borderStyle:g,theme:h,borderRadiusStyle:y,titleLeftIcon:p,titleRightIcon:m,cursorStyle:d}}}),Border_vue_vue_type_style_index_0_scoped_c202e88a_lang="",_withScopeId$1=c=>(vue.pushScopeId("data-v-c202e88a"),c=c(),vue.popScopeId(),c),_hoisted_1$6=["id"],_hoisted_2$3=_withScopeId$1(()=>vue.createElementVNode("div",{class:"top-left border-item"},null,-1)),_hoisted_3$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"top-right border-item"},null,-1)),_hoisted_4$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),_hoisted_5$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),_hoisted_6$1={class:"title-item"},_hoisted_7$1=["src"],_hoisted_8$1=["src"],_hoisted_9$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"top-left border-item"},null,-1)),_hoisted_10$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"top-right border-item"},null,-1)),_hoisted_11$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),_hoisted_12$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),_hoisted_13$1={key:2,class:"left-title"},_hoisted_14$1={class:"title"};function _sfc_render$b(c,u,f,d,h,v){return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-border",style:vue.normalizeStyle({...c.style,...c.gradientStyle,...c.borderRadiusStyle,...c.cursorStyle}),onClick:u[0]||(u[0]=(...p)=>c.click&&c.click(...p)),id:"container_"+c.id},[c.mode==="no-title"?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"no-title",style:vue.normalizeStyle(c.borderStyle)},[c.useBorderModify?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[_hoisted_2$3,_hoisted_3$1,_hoisted_4$1,_hoisted_5$1],64)):vue.createCommentVNode("",!0),vue.renderSlot(c.$slots,"children",{},void 0,!0)],4)):vue.createCommentVNode("",!0),c.mode==="top-title"?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"top-title",style:vue.normalizeStyle(c.borderStyle)},[vue.createElementVNode("div",{class:vue.normalizeClass(["title-item-wrapper",c.titleMode])},[vue.createElementVNode("div",_hoisted_6$1,[vue.createElementVNode("img",{class:vue.normalizeClass(["title-decoration",c.titleMode]),src:c.titleLeftIcon},null,10,_hoisted_7$1),vue.createElementVNode("div",{class:vue.normalizeClass(["title",c.color?"":"gradient"]),style:vue.normalizeStyle({color:c.color||""})},vue.toDisplayString(c.title),7),vue.createElementVNode("img",{class:vue.normalizeClass(["title-decoration",c.titleMode]),src:c.titleRightIcon},null,10,_hoisted_8$1)])],2),_hoisted_9$1,_hoisted_10$1,_hoisted_11$1,_hoisted_12$1],4)):vue.createCommentVNode("",!0),c.mode==="left-title"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_13$1,[vue.createElementVNode("div",_hoisted_14$1,[vue.createElementVNode("span",null,vue.toDisplayString(c.title),1)])])):vue.createCommentVNode("",!0)],12,_hoisted_1$6)}const Border=_export_sfc$1(_sfc_main$9,[["render",_sfc_render$b],["__scopeId","data-v-c202e88a"]]),EcanBorder=withInstall$1(Border),tabsProps$1={...props$1,tabHorizontalPadding:"0px",tabVerticalPadding:"5px",type:"ecanTabs",name:"标签页",keyName:"标签页",width:"500px",height:"400px",tabFontSize:"14px",backgroundColor:"#ffffff",activeTabColor:"#1890ff",tabBackgroundImage:"",activeTabBackgroundImage:"",tabColor:"#333",tabBarGutter:"24px",tabFontWeight:400,value:"",activeKey:0,autoSwitch:!1,autoSwitchInterval:5,containIds:[],tabFlexDirection:"row",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}],tabAlignItems:"flex-start",tabJustifyContent:"flex-start",tabType:"tabs",tabWidth:"120px",isAutoScroll:!1,scrollSpeed:10,componentList:[],hideTabs:!1,gridTopPx:"0",gridBottomPx:"0",gridLeftPx:"0",gridRightPx:"0"},tabsComponentProps=transformToComponentProps(tabsProps$1),tabsEvents=["tabChange"],_sfc_main$8=vue.defineComponent({name:"EcanTabs",props:{...tabsComponentProps},components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption,MarqueeScroll},setup(c){const u=usePickComponentStyle(c),f=vue.ref(0);vue.watch(()=>c.activeKey,Gn=>{f.value=Gn},{immediate:!0});const{pageMode:d}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),h=vue.inject("getContainerMap",()=>{}),v=vue.inject("componentList",[]),p=["ecanBorder","ecanTabs","ecanCirculate"],m=vue.computed(()=>h()||{}),g=Gn=>{const Zn=vue.unref(m)[Gn],Xn=[];if(Zn)for(const er in Zn)for(const Jn of Zn[er]){const ir=vue.unref(v).find(or=>or.id===Jn);Xn.push(Jn),p.includes(ir==null?void 0:ir.type)&&Xn.push(...g(Jn))}return Xn},y=vue.computed(()=>g(c.id));let b=null;const gn=()=>{const Gn=Array.isArray(vue.unref(vn))?vue.unref(vn).length-1:0;vue.unref(d)!=="design"&&!c.isAutoScroll&&c.autoSwitch&&Gn>0&&(b=setInterval(()=>{const Zn=vue.unref(f)+1;Zn<=Gn?f.value=Zn:f.value=0,J.value=vue.unref(vn)[vue.unref(f)],w()},c.autoSwitchInterval*1e3))},x=()=>{clearInterval(b)};vue.onMounted(()=>{vue.unref(d)!=="design"&&gn()}),vue.onBeforeUnmount(()=>{Bn(c.id,{activeKey:c.activeKey}),w(),x()});const vn=vue.ref([]),J=vue.ref({});vue.watch(()=>c.data,Gn=>{vn.value=Gn,J.value=Array.isArray(Gn)&&Gn.length>0?Gn[0]:{}},{immediate:!0,deep:!0});const j=Gn=>f.value===Gn,Fn=useEmitEvent(c),{setGlobalModel:Bn}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(Gn,Zn)=>{}});Bn(c.id,{RECORD:vue.unref(J),value:vue.unref(J),activeKey:f});const{emitRefreshPage:w}=vue.inject(REFRESH_PAGE,{emitRefreshPage:()=>{}}),re=Gn=>{let{tab:Zn,index:Xn}=Gn||{};if(Gn.label){const er=vue.unref(vn).findIndex(Jn=>Jn.title===Gn.label);er!==-1&&(Xn=er,Zn=vue.unref(vn)[er])}Fn("tabChange",()=>{!isNaN(+Xn)&&Xn!==vue.unref(f)&&(J.value=Zn,f.value=Xn,Bn(c.id,{RECORD:Zn,value:Zn,activeKey:Xn}),w())})()},Pn=vue.computed(()=>{const Gn=c.componentList.map(Zn=>parseFloat(Zn.left)+parseFloat(Zn.width)).sort((Zn,Xn)=>Xn-Zn)[0];return{width:Gn?Gn+"px":"100%"}}),Rn=()=>{vue.unref(d)!=="design"&&x()},Vn=Gn=>{var Zn,Xn;return Gn?(Xn=(Zn=Gn==null?void 0:Gn.parentNode)==null?void 0:Zn.className)!=null&&Xn.includes("ecan-")?Gn.parentNode.getAttribute("cpntid"):Vn(Gn.parentNode):""},Wn=Gn=>{var Zn;if(vue.unref(d)!=="design"){const Xn=(Gn==null?void 0:Gn.toElement)||{};if((Zn=Xn==null?void 0:Xn.className)!=null&&Zn.includes("ecan-"))vue.unref(y).includes(Xn.getAttribute("cpntid"))||gn();else if((Xn==null?void 0:Xn.className)==="page-config")gn();else{const er=Vn(Xn);vue.unref(y).includes(er)||gn()}}};return useOnEvent(c,{tabChange:re}),{style:u,activeKey:f,isActive:j,tabChange:re,myData:vn,useImagePath,pageMode:d,scrollWrapStyle:Pn,onMouseEnter:Rn,onMouseLeave:Wn}}}),Tabs_vue_vue_type_style_index_0_scoped_ff19bf9f_lang="",_hoisted_1$5=["id"],_hoisted_2$2=["onClick"];function _sfc_render$a(c,u,f,d,h,v){const p=vue.resolveComponent("a-select-option"),m=vue.resolveComponent("a-select"),g=vue.resolveComponent("marquee-scroll");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-tabs",style:vue.normalizeStyle(c.style),id:"container_"+c.id,onMouseenter:u[0]||(u[0]=(...y)=>c.onMouseEnter&&c.onMouseEnter(...y)),onMouseleave:u[1]||(u[1]=(...y)=>c.onMouseLeave&&c.onMouseLeave(...y))},[c.pageMode==="design"||!c.isAutoScroll?vue.withDirectives((vue.openBlock(),vue.createElementBlock("div",{key:0,class:"tabs-header",style:vue.normalizeStyle({fontSize:c.tabFontSize,alignItems:c.tabAlignItems,justifyContent:c.tabJustifyContent,flexDirection:c.tabFlexDirection,margin:`${c.gridTopPx||0} ${c.gridRightPx||0} ${c.gridBottomPx||0} ${c.gridLeftPx||0}`})},[c.tabType==="tabs"?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:0},vue.renderList(c.myData,(y,b)=>(vue.openBlock(),vue.createElementBlock("div",{class:"tab",style:vue.normalizeStyle({padding:`${c.tabVerticalPadding} ${c.tabHorizontalPadding}`,color:c.isActive(b)?c.activeTabColor:c.tabColor,backgroundImage:c.isActive(b)?c.useImagePath(c.activeTabBackgroundImage,!0):c.useImagePath(c.tabBackgroundImage,!0),marginRight:c.tabFlexDirection==="row"?c.tabBarGutter:null,marginBottom:c.tabFlexDirection==="column"?c.tabBarGutter:null,fontWeight:c.tabFontWeight}),key:b,onClick:vue.withModifiers(gn=>c.tabChange({tab:y,index:b}),["prevent","stop"])},[vue.createElementVNode("div",{class:"tab-inner",style:vue.normalizeStyle({borderBottom:!c.activeTabBackgroundImage&&!c.tabBackgroundImage?`1px solid ${c.isActive(b)?c.activeTabColor:"transparent"}`:""})},vue.toDisplayString(y.title),5)],12,_hoisted_2$2))),128)):c.tabType==="select"?(vue.openBlock(),vue.createBlock(m,{key:1,value:c.activeKey,style:vue.normalizeStyle({width:c.tabWidth})},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.myData,(y,b)=>(vue.openBlock(),vue.createBlock(p,{key:b,value:b,onClick:gn=>c.tabChange({tab:y,index:b})},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(y.title),1)]),_:2},1032,["value","onClick"]))),128))]),_:1},8,["value","style"])):vue.createCommentVNode("",!0)],4)),[[vue.vShow,c.pageMode==="design"||!c.hideTabs]]):vue.createCommentVNode("",!0),c.pageMode!=="design"&&c.isAutoScroll?(vue.openBlock(),vue.createBlock(g,{key:1,visible:c.isAutoScroll,step:c.scrollSpeed,vertical:!1,style:vue.normalizeStyle({height:c.height})},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"scroll-wrap",style:vue.normalizeStyle(c.scrollWrapStyle)},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.componentList,y=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(y.type),vue.normalizeProps(vue.mergeProps({key:y.id},y)),null,16))),128))],4)]),_:1},8,["visible","step","style"])):vue.createCommentVNode("",!0)],44,_hoisted_1$5)}const Tabs$1=_export_sfc$1(_sfc_main$8,[["render",_sfc_render$a],["__scopeId","data-v-ff19bf9f"]]),EcanTabs=withInstall$1(Tabs$1),circulateProps={...props$1,name:"循环列表",type:"ecanCirculate",keyName:"循环列表",width:"300px",height:"300px",zIndex:0,borderColor:"#eee",borderStyle:"solid",borderWidth:"2px",graphicConfig:{},isAutoScroll:!1,scrollSpeed:10,componentList:[],data:[],dataType:"indicator",keyFieldMap:[],unitInterval:15,backgroundColor:"#ffffff",colNum:null,scrollDirection:"horizontal",associatId:""},circulateComponentProps=transformToComponentProps(circulateProps),circulateEvents=["click","refreshData","resetRecord"],_sfc_main$7=vue.defineComponent({name:"EcanCirculate",props:{...circulateComponentProps,sourceLeft:String,sourceTop:String,sourceWidth:Number},components:{MarqueeScroll,Skeleton},setup(c,{expose:u}){const f="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",d=vue.ref(!1),h=usePickComponentStyle(c,["background"]),{allComponentResData:v}=vue.inject(All_COMPONENT_RES_DATA,{allComponentResData:{}}),{globalVariable:p}=vue.inject(GLOBAL_VARIABLE,{globalVariable:{}}),m=vue.inject("usedComponentList",[]),g=vue.inject("isMobile",!1),{getGlobalModel:y,setGlobalModel:b}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Hn=>{},setGlobalModel:(Hn,Kn)=>{}}),gn=vue.ref([]),x=vue.ref({}),{pageMode:vn,width:J,height:j}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",width:null,height:null}),Fn=vue.computed(()=>{if(vue.unref(g)){const Hn=document.body.clientWidth,Kn=c.sourceWidth||getFormatWh(c.width,vue.unref(J));return Hn/Kn||1}else return 1});function Bn(Hn){for(const Kn of Hn)Kn.left=parseFloat(Kn.left)-parseFloat(c.sourceLeft||c.left)+"px",Kn.top=parseFloat(Kn.top)-parseFloat(c.sourceTop||c.top)+"px"}const w=Hn=>{const Kn=Hn.sort((Un,nr)=>parseFloat(Un.top)-parseFloat(nr.top))[0],zn=Hn.sort((Un,nr)=>parseFloat(Un.left)-parseFloat(nr.left))[0],qn=Hn.map(Un=>parseFloat(Un.left)+getFormatWh(Un.width,vue.unref(J))).sort((Un,nr)=>nr-Un)[0],tr=Hn.map(Un=>parseFloat(Un.top)+getFormatWh(Un.height,vue.unref(j))).sort((Un,nr)=>nr-Un)[0];if(zn&&qn&&Kn&&tr){const Un=parseFloat(zn.left),nr=parseFloat(Kn.top);return{width:qn-Un,height:tr-nr,left:Un}}else return{width:0,height:0,left:0}},re=vue.ref({}),Pn=Hn=>{var Yn,ar;const Kn=[],{graphicConfig:zn,id:qn,componentList:tr,keyFieldMap:Un,unitInterval:nr,colNum:cr}=c;let Qn=lodashEs.cloneDeep(tr),fr=[];if((Yn=vue.unref(m))!=null&&Yn.length)for(const ur of vue.unref(m))fr.push(ur),(ar=ur==null?void 0:ur.componentList)!=null&&ar.length&&fr.push(...ur.componentList);if(zn.pageMode==="design"&&zn.preview){const{containerMap:ur}=zn.pageConfig||{};fr=vue.unref(zn.componentList)||[],Qn=moveToComponentList(ur,lodashEs.cloneDeep(fr),qn)}Bn(Qn);const vr=w(Qn);if(Hn!=null&&Hn.length){const{width:ur,left:mr,height:dr}=vr;let gr=0,lr=0;Hn.forEach((hr,xr)=>{hr.index=xr+1;const Sr=nanoid(),yr=lodashEs.cloneDeep(Qn);for(const pr of yr){const br=Un.find(kr=>kr.keyName===pr.keyName),wr=nanoid();if(pr.left=(parseFloat(pr.left)+gr)*vue.unref(Fn)+"px",pr.top=(parseFloat(pr.top)+lr)*vue.unref(Fn)+"px",pr.scale=vue.unref(Fn),pr.id=wr,pr.keyName=pr.name+"_"+wr,pr.unitId=Sr,pr.extendData={[c.keyName]:{index:hr.index}},br!=null&&br.fieldName){const kr=pr.text.match(/\{(.+?)\}/g);switch(pr.type){case"ecanText":{pr.data={value:String(hr[br.fieldName])},kr!=null&&kr.length||(pr.text="{value}");break}case"ecanProportion":{pr.data={percent:String(hr[br.fieldName])},kr!=null&&kr.length||(pr.text="{percent}");break}}}for(const kr in pr){const Er=pr[kr];if(typeof Er=="string"&&Er.includes("$page")){const Ir=lodashEs.cloneDeep(pr.extendData);let Dr=Er.replace(/[{}]/g,"");const qr=Object.keys(Ir);for(const Rr of qr)if(hasChinese(Rr)){const jr="n_"+customAlphabet(f,6)();Dr=Dr.replace(new RegExp(Rr,"g"),jr),Ir[jr]=Ir[Rr]}pr[kr]=pn(Dr,{...vue.unref(p),...Ir})}}}cr&&hr.index%cr===0?(gr=0,lr+=nr+dr):gr+=nr+ur,Kn.push(...yr),re.value[Sr]=hr}),x.value={width:((cr||Hn.length)*(ur+nr)+mr)*vue.unref(Fn)+"px",height:(cr?Math.ceil(Hn.length/cr)*(nr+dr):nr+dr)*vue.unref(Fn)+"px"}}gn.value=Kn},Rn=Hn=>{var zn;const{rows:Kn=[]}=((zn=Hn==null?void 0:Hn.data)==null?void 0:zn.data)??{};Pn(Kn)},Vn=useIndicatorData(c,Rn),Wn=async()=>{try{d.value=!0;const Hn=await Vn();Rn(Hn)}catch(Hn){console.error(Hn)}finally{d.value=!1}},Gn=useRequestData(c),Zn=async()=>{try{d.value=!0;const Hn=await Gn();Rn(Hn)}catch(Hn){console.error(Hn)}finally{d.value=!1}},Xn=vue.computed(()=>{if(c.dataType!=="component")return{};const{associatId:Hn}=c,Kn=vue.unref(m).find(zn=>zn.id===Hn);return(Kn==null?void 0:Kn.dataType)==="static"?{rows:(Kn==null?void 0:Kn.data)||[]}:Hn?vue.unref(v)[Hn]:{}});vue.watch(()=>Xn.value,Hn=>{c.dataType==="component"&&Pn((Hn==null?void 0:Hn.rows)||[])},{deep:!0});const er=async()=>{var Hn;switch(c.dataType){case"indicator":await Wn();break;case"request":await Zn();break;case"component":Pn(((Hn=vue.unref(Xn))==null?void 0:Hn.rows)||[]);break}};useOnEvent(c,{refreshData:er,resetRecord:()=>{const Hn=c.id,Kn=y(Hn);b(Hn,{...Kn,RECORD:""})}}),u({refreshData:er}),b(c.id,{type:c.type,RECORD:""});const{setRequest:ir}=vue.inject(REQUEST_MODEL,{setRequest:Hn=>{}});typeof ir=="function"&&ir({id:c.id,requestFn:er,sortNum:c.requestSort});const or=useEmitEvent(c);return{loading:d,style:h,myComponentList:gn,scrollWrapStyle:x,pageMode:vn,click:Hn=>{let Kn=Hn.target;if(Kn){let zn=Kn.getAttribute("unitId");for(;!zn&&!Kn.className.includes("ecan-");)Kn=Kn.parentElement,zn=Kn.getAttribute("unitId");zn&&or("click",()=>{const qn=y(c.id);b(c.id,{...qn,type:c.type,RECORD:vue.unref(re)[zn]})})()}}}}}),Circulate_vue_vue_type_style_index_0_scoped_86a0142f_lang="",_hoisted_1$4=["id"];function _sfc_render$9(c,u,f,d,h,v){const p=vue.resolveComponent("marquee-scroll"),m=vue.resolveComponent("skeleton");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-circulate",style:vue.normalizeStyle(c.style),id:"container_"+c.id,onClick:u[0]||(u[0]=(...g)=>c.click&&c.click(...g))},[vue.createVNode(m,{loading:c.loading},{default:vue.withCtx(()=>{var g;return[(g=c.myComponentList)!=null&&g.length?(vue.openBlock(),vue.createBlock(p,{key:0,visible:c.pageMode!=="design"&&c.isAutoScroll,step:c.scrollSpeed,vertical:c.scrollDirection==="vertical",marqueeStyle:{height:"100%"},wrapStyle:{height:"100%",overflow:"auto"}},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"scroll-wrap",style:vue.normalizeStyle(c.scrollWrapStyle)},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.myComponentList,y=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(y.type),vue.normalizeProps(vue.mergeProps({key:y.id},y)),null,16))),128))],4)]),_:1},8,["visible","step","vertical"])):vue.createCommentVNode("",!0)]}),_:1},8,["loading"]),vue.renderSlot(c.$slots,"toolbox",{},void 0,!0)],12,_hoisted_1$4)}const Circulate=_export_sfc$1(_sfc_main$7,[["render",_sfc_render$9],["__scopeId","data-v-86a0142f"]]),EcanCirculate=withInstall$1(Circulate),templateProps={...props$1,name:"模板",type:"ecanTemplate",keyName:"模板",width:"300px",height:"300px",borderColor:"#eee",borderRadius:"5",borderWidth:"2px",borderStyle:"solid",pageId:""},templateComponentProps=transformToComponentProps(templateProps),templateEvents=["refreshData"],_sfc_main$6=vue.defineComponent({name:"EcanTemplate",props:{...templateComponentProps},components:{},setup(c){const u=usePickComponentStyle(c,["background"]),{templateEmit:f}=vue.inject("templateOperate",{templateEmit:(h,v)=>{}})||{};return useOnEvent(c,{refreshData:()=>{f("refreshTemplate",c.pageId)}}),{style:u}}});function _sfc_render$8(c,u,f,d,h,v){return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-template",style:vue.normalizeStyle(c.style)},[vue.renderSlot(c.$slots,"default")],4)}const Template=_export_sfc$1(_sfc_main$6,[["render",_sfc_render$8]]),EcanTemplate=withInstall$1(Template),imageProps={...props$1,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{},isHoverStyle:!1,borderRadius:"",isAnimation:!1,animationSource:{name:"",directory:""},actionType:"link",isDrillShow:!1,targetTemplate:"",transParams:[]},imageComponentProps=transformToComponentProps(imageProps),imageEvents=["click"];var lottie$1={exports:{}};(function(module,exports){typeof navigator<"u"&&function(c,u){module.exports=u()}(commonjsGlobal,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(u){_useWebWorker=!!u},getWebWorker=function(){return _useWebWorker},setLocationHref=function(u){locationHref=u},getLocationHref=function(){return locationHref};function createTag(c){return document.createElement(c)}function extendPrototype(c,u){var f,d=c.length,h;for(f=0;f<d;f+=1){h=c[f].prototype;for(var v in h)Object.prototype.hasOwnProperty.call(h,v)&&(u.prototype[v]=h[v])}}function getDescriptor(c,u){return Object.getOwnPropertyDescriptor(c,u)}function createProxyFunction(c){function u(){}return u.prototype=c,u}var audioControllerFactory=function(){function c(u){this.audios=[],this.audioFactory=u,this._volume=1,this._isMuted=!1}return c.prototype={addAudio:function(f){this.audios.push(f)},pause:function(){var f,d=this.audios.length;for(f=0;f<d;f+=1)this.audios[f].pause()},resume:function(){var f,d=this.audios.length;for(f=0;f<d;f+=1)this.audios[f].resume()},setRate:function(f){var d,h=this.audios.length;for(d=0;d<h;d+=1)this.audios[d].setRate(f)},createAudio:function(f){return this.audioFactory?this.audioFactory(f):window.Howl?new window.Howl({src:[f]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(f){this.audioFactory=f},setVolume:function(f){this._volume=f,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var f,d=this.audios.length;for(f=0;f<d;f+=1)this.audios[f].volume(this._volume*(this._isMuted?0:1))}},function(){return new c}}(),createTypedArray=function(){function c(f,d){var h=0,v=[],p;switch(f){case"int16":case"uint8c":p=1;break;default:p=1.1;break}for(h=0;h<d;h+=1)v.push(p);return v}function u(f,d){return f==="float32"?new Float32Array(d):f==="int16"?new Int16Array(d):f==="uint8c"?new Uint8ClampedArray(d):c(f,d)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?u:c}();function createSizedArray(c){return Array.apply(null,{length:c})}function _typeof$6(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$6=function(f){return typeof f}:_typeof$6=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},_typeof$6(c)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var c=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],u,f=c.length;for(u=0;u<f;u+=1)BMMath[c[u]]=Math[c[u]]})(),BMMath.random=Math.random,BMMath.abs=function(c){var u=_typeof$6(c);if(u==="object"&&c.length){var f=createSizedArray(c.length),d,h=c.length;for(d=0;d<h;d+=1)f[d]=Math.abs(c[d]);return f}return Math.abs(c)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(c){c.style.position="absolute",c.style.top=0,c.style.left=0,c.style.display="block",c.style.transformOrigin="0 0",c.style.webkitTransformOrigin="0 0",c.style.backfaceVisibility="visible",c.style.webkitBackfaceVisibility="visible",c.style.transformStyle="preserve-3d",c.style.webkitTransformStyle="preserve-3d",c.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(c,u,f,d){this.type=c,this.currentTime=u,this.totalTime=f,this.direction=d<0?-1:1}function BMCompleteEvent(c,u){this.type=c,this.direction=u<0?-1:1}function BMCompleteLoopEvent(c,u,f,d){this.type=c,this.currentLoop=f,this.totalLoops=u,this.direction=d<0?-1:1}function BMSegmentStartEvent(c,u,f){this.type=c,this.firstFrame=u,this.totalFrames=f}function BMDestroyEvent(c,u){this.type=c,this.target=u}function BMRenderFrameErrorEvent(c,u){this.type="renderFrameError",this.nativeError=c,this.currentTime=u}function BMConfigErrorEvent(c){this.type="configError",this.nativeError=c}var createElementID=function(){var c=0;return function(){return c+=1,idPrefix$1+"__lottie_element_"+c}}();function HSVtoRGB(c,u,f){var d,h,v,p,m,g,y,b;switch(p=Math.floor(c*6),m=c*6-p,g=f*(1-u),y=f*(1-m*u),b=f*(1-(1-m)*u),p%6){case 0:d=f,h=b,v=g;break;case 1:d=y,h=f,v=g;break;case 2:d=g,h=f,v=b;break;case 3:d=g,h=y,v=f;break;case 4:d=b,h=g,v=f;break;case 5:d=f,h=g,v=y;break}return[d,h,v]}function RGBtoHSV(c,u,f){var d=Math.max(c,u,f),h=Math.min(c,u,f),v=d-h,p,m=d===0?0:v/d,g=d/255;switch(d){case h:p=0;break;case c:p=u-f+v*(u<f?6:0),p/=6*v;break;case u:p=f-c+v*2,p/=6*v;break;case f:p=c-u+v*4,p/=6*v;break}return[p,m,g]}function addSaturationToRGB(c,u){var f=RGBtoHSV(c[0]*255,c[1]*255,c[2]*255);return f[1]+=u,f[1]>1?f[1]=1:f[1]<=0&&(f[1]=0),HSVtoRGB(f[0],f[1],f[2])}function addBrightnessToRGB(c,u){var f=RGBtoHSV(c[0]*255,c[1]*255,c[2]*255);return f[2]+=u,f[2]>1?f[2]=1:f[2]<0&&(f[2]=0),HSVtoRGB(f[0],f[1],f[2])}function addHueToRGB(c,u){var f=RGBtoHSV(c[0]*255,c[1]*255,c[2]*255);return f[0]+=u/360,f[0]>1?f[0]-=1:f[0]<0&&(f[0]+=1),HSVtoRGB(f[0],f[1],f[2])}var rgbToHex=function(){var c=[],u,f;for(u=0;u<256;u+=1)f=u.toString(16),c[u]=f.length===1?"0"+f:f;return function(d,h,v){return d<0&&(d=0),h<0&&(h=0),v<0&&(v=0),"#"+c[d]+c[h]+c[v]}}(),setSubframeEnabled=function(u){subframeEnabled=!!u},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(u){expressionsPlugin=u},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(u){expressionsInterfaces=u},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(u){defaultCurveSegments=u},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(u){idPrefix$1=u};function createNS(c){return document.createElementNS(svgNS,c)}function _typeof$5(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(f){return typeof f}:_typeof$5=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},_typeof$5(c)}var dataManager=function(){var c=1,u=[],f,d,h={onmessage:function(){},postMessage:function(vn){f({data:vn})}},v={postMessage:function(vn){h.onmessage({data:vn})}};function p(x){if(window.Worker&&window.Blob&&getWebWorker()){var vn=new Blob(["var _workerSelf = self; self.onmessage = ",x.toString()],{type:"text/javascript"}),J=URL.createObjectURL(vn);return new Worker(J)}return f=x,h}function m(){d||(d=p(function(vn){function J(){function Fn(sr,Hn){var Kn,zn,qn=sr.length,tr,Un,nr,cr;for(zn=0;zn<qn;zn+=1)if(Kn=sr[zn],"ks"in Kn&&!Kn.completed){if(Kn.completed=!0,Kn.hasMask){var Qn=Kn.masksProperties;for(Un=Qn.length,tr=0;tr<Un;tr+=1)if(Qn[tr].pt.k.i)Rn(Qn[tr].pt.k);else for(cr=Qn[tr].pt.k.length,nr=0;nr<cr;nr+=1)Qn[tr].pt.k[nr].s&&Rn(Qn[tr].pt.k[nr].s[0]),Qn[tr].pt.k[nr].e&&Rn(Qn[tr].pt.k[nr].e[0])}Kn.ty===0?(Kn.layers=re(Kn.refId,Hn),Fn(Kn.layers,Hn)):Kn.ty===4?Pn(Kn.shapes):Kn.ty===5&&ir(Kn)}}function Bn(sr,Hn){if(sr){var Kn=0,zn=sr.length;for(Kn=0;Kn<zn;Kn+=1)sr[Kn].t===1&&(sr[Kn].data.layers=re(sr[Kn].data.refId,Hn),Fn(sr[Kn].data.layers,Hn))}}function w(sr,Hn){for(var Kn=0,zn=Hn.length;Kn<zn;){if(Hn[Kn].id===sr)return Hn[Kn];Kn+=1}return null}function re(sr,Hn){var Kn=w(sr,Hn);return Kn?Kn.layers.__used?JSON.parse(JSON.stringify(Kn.layers)):(Kn.layers.__used=!0,Kn.layers):null}function Pn(sr){var Hn,Kn=sr.length,zn,qn;for(Hn=Kn-1;Hn>=0;Hn-=1)if(sr[Hn].ty==="sh")if(sr[Hn].ks.k.i)Rn(sr[Hn].ks.k);else for(qn=sr[Hn].ks.k.length,zn=0;zn<qn;zn+=1)sr[Hn].ks.k[zn].s&&Rn(sr[Hn].ks.k[zn].s[0]),sr[Hn].ks.k[zn].e&&Rn(sr[Hn].ks.k[zn].e[0]);else sr[Hn].ty==="gr"&&Pn(sr[Hn].it)}function Rn(sr){var Hn,Kn=sr.i.length;for(Hn=0;Hn<Kn;Hn+=1)sr.i[Hn][0]+=sr.v[Hn][0],sr.i[Hn][1]+=sr.v[Hn][1],sr.o[Hn][0]+=sr.v[Hn][0],sr.o[Hn][1]+=sr.v[Hn][1]}function Vn(sr,Hn){var Kn=Hn?Hn.split("."):[100,100,100];return sr[0]>Kn[0]?!0:Kn[0]>sr[0]?!1:sr[1]>Kn[1]?!0:Kn[1]>sr[1]?!1:sr[2]>Kn[2]?!0:Kn[2]>sr[2]?!1:null}var Wn=function(){var sr=[4,4,14];function Hn(zn){var qn=zn.t.d;zn.t.d={k:[{s:qn,t:0}]}}function Kn(zn){var qn,tr=zn.length;for(qn=0;qn<tr;qn+=1)zn[qn].ty===5&&Hn(zn[qn])}return function(zn){if(Vn(sr,zn.v)&&(Kn(zn.layers),zn.assets)){var qn,tr=zn.assets.length;for(qn=0;qn<tr;qn+=1)zn.assets[qn].layers&&Kn(zn.assets[qn].layers)}}}(),Gn=function(){var sr=[4,7,99];return function(Hn){if(Hn.chars&&!Vn(sr,Hn.v)){var Kn,zn=Hn.chars.length;for(Kn=0;Kn<zn;Kn+=1){var qn=Hn.chars[Kn];qn.data&&qn.data.shapes&&(Pn(qn.data.shapes),qn.data.ip=0,qn.data.op=99999,qn.data.st=0,qn.data.sr=1,qn.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},Hn.chars[Kn].t||(qn.data.shapes.push({ty:"no"}),qn.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),Zn=function(){var sr=[5,7,15];function Hn(zn){var qn=zn.t.p;typeof qn.a=="number"&&(qn.a={a:0,k:qn.a}),typeof qn.p=="number"&&(qn.p={a:0,k:qn.p}),typeof qn.r=="number"&&(qn.r={a:0,k:qn.r})}function Kn(zn){var qn,tr=zn.length;for(qn=0;qn<tr;qn+=1)zn[qn].ty===5&&Hn(zn[qn])}return function(zn){if(Vn(sr,zn.v)&&(Kn(zn.layers),zn.assets)){var qn,tr=zn.assets.length;for(qn=0;qn<tr;qn+=1)zn.assets[qn].layers&&Kn(zn.assets[qn].layers)}}}(),Xn=function(){var sr=[4,1,9];function Hn(zn){var qn,tr=zn.length,Un,nr;for(qn=0;qn<tr;qn+=1)if(zn[qn].ty==="gr")Hn(zn[qn].it);else if(zn[qn].ty==="fl"||zn[qn].ty==="st")if(zn[qn].c.k&&zn[qn].c.k[0].i)for(nr=zn[qn].c.k.length,Un=0;Un<nr;Un+=1)zn[qn].c.k[Un].s&&(zn[qn].c.k[Un].s[0]/=255,zn[qn].c.k[Un].s[1]/=255,zn[qn].c.k[Un].s[2]/=255,zn[qn].c.k[Un].s[3]/=255),zn[qn].c.k[Un].e&&(zn[qn].c.k[Un].e[0]/=255,zn[qn].c.k[Un].e[1]/=255,zn[qn].c.k[Un].e[2]/=255,zn[qn].c.k[Un].e[3]/=255);else zn[qn].c.k[0]/=255,zn[qn].c.k[1]/=255,zn[qn].c.k[2]/=255,zn[qn].c.k[3]/=255}function Kn(zn){var qn,tr=zn.length;for(qn=0;qn<tr;qn+=1)zn[qn].ty===4&&Hn(zn[qn].shapes)}return function(zn){if(Vn(sr,zn.v)&&(Kn(zn.layers),zn.assets)){var qn,tr=zn.assets.length;for(qn=0;qn<tr;qn+=1)zn.assets[qn].layers&&Kn(zn.assets[qn].layers)}}}(),er=function(){var sr=[4,4,18];function Hn(zn){var qn,tr=zn.length,Un,nr;for(qn=tr-1;qn>=0;qn-=1)if(zn[qn].ty==="sh")if(zn[qn].ks.k.i)zn[qn].ks.k.c=zn[qn].closed;else for(nr=zn[qn].ks.k.length,Un=0;Un<nr;Un+=1)zn[qn].ks.k[Un].s&&(zn[qn].ks.k[Un].s[0].c=zn[qn].closed),zn[qn].ks.k[Un].e&&(zn[qn].ks.k[Un].e[0].c=zn[qn].closed);else zn[qn].ty==="gr"&&Hn(zn[qn].it)}function Kn(zn){var qn,tr,Un=zn.length,nr,cr,Qn,fr;for(tr=0;tr<Un;tr+=1){if(qn=zn[tr],qn.hasMask){var vr=qn.masksProperties;for(cr=vr.length,nr=0;nr<cr;nr+=1)if(vr[nr].pt.k.i)vr[nr].pt.k.c=vr[nr].cl;else for(fr=vr[nr].pt.k.length,Qn=0;Qn<fr;Qn+=1)vr[nr].pt.k[Qn].s&&(vr[nr].pt.k[Qn].s[0].c=vr[nr].cl),vr[nr].pt.k[Qn].e&&(vr[nr].pt.k[Qn].e[0].c=vr[nr].cl)}qn.ty===4&&Hn(qn.shapes)}}return function(zn){if(Vn(sr,zn.v)&&(Kn(zn.layers),zn.assets)){var qn,tr=zn.assets.length;for(qn=0;qn<tr;qn+=1)zn.assets[qn].layers&&Kn(zn.assets[qn].layers)}}}();function Jn(sr){sr.__complete||(Xn(sr),Wn(sr),Gn(sr),Zn(sr),er(sr),Fn(sr.layers,sr.assets),Bn(sr.chars,sr.assets),sr.__complete=!0)}function ir(sr){sr.t.a.length===0&&"m"in sr.t.p}var or={};return or.completeData=Jn,or.checkColors=Xn,or.checkChars=Gn,or.checkPathProperties=Zn,or.checkShapes=er,or.completeLayers=Fn,or}if(v.dataManager||(v.dataManager=J()),v.assetLoader||(v.assetLoader=function(){function Fn(w){var re=w.getResponseHeader("content-type");return re&&w.responseType==="json"&&re.indexOf("json")!==-1||w.response&&_typeof$5(w.response)==="object"?w.response:w.response&&typeof w.response=="string"?JSON.parse(w.response):w.responseText?JSON.parse(w.responseText):null}function Bn(w,re,Pn,Rn){var Vn,Wn=new XMLHttpRequest;try{Wn.responseType="json"}catch{}Wn.onreadystatechange=function(){if(Wn.readyState===4)if(Wn.status===200)Vn=Fn(Wn),Pn(Vn);else try{Vn=Fn(Wn),Pn(Vn)}catch(Gn){Rn&&Rn(Gn)}};try{Wn.open(["G","E","T"].join(""),w,!0)}catch{Wn.open(["G","E","T"].join(""),re+"/"+w,!0)}Wn.send()}return{load:Bn}}()),vn.data.type==="loadAnimation")v.assetLoader.load(vn.data.path,vn.data.fullPath,function(Fn){v.dataManager.completeData(Fn),v.postMessage({id:vn.data.id,payload:Fn,status:"success"})},function(){v.postMessage({id:vn.data.id,status:"error"})});else if(vn.data.type==="complete"){var j=vn.data.animation;v.dataManager.completeData(j),v.postMessage({id:vn.data.id,payload:j,status:"success"})}else vn.data.type==="loadData"&&v.assetLoader.load(vn.data.path,vn.data.fullPath,function(Fn){v.postMessage({id:vn.data.id,payload:Fn,status:"success"})},function(){v.postMessage({id:vn.data.id,status:"error"})})}),d.onmessage=function(x){var vn=x.data,J=vn.id,j=u[J];u[J]=null,vn.status==="success"?j.onComplete(vn.payload):j.onError&&j.onError()})}function g(x,vn){c+=1;var J="processId_"+c;return u[J]={onComplete:x,onError:vn},J}function y(x,vn,J){m();var j=g(vn,J);d.postMessage({type:"loadAnimation",path:x,fullPath:window.location.origin+window.location.pathname,id:j})}function b(x,vn,J){m();var j=g(vn,J);d.postMessage({type:"loadData",path:x,fullPath:window.location.origin+window.location.pathname,id:j})}function gn(x,vn,J){m();var j=g(vn,J);d.postMessage({type:"complete",animation:x,id:j})}return{loadAnimation:y,loadData:b,completeAnimation:gn}}(),ImagePreloader=function(){var c=function(){var Bn=createTag("canvas");Bn.width=1,Bn.height=1;var w=Bn.getContext("2d");return w.fillStyle="rgba(0,0,0,0)",w.fillRect(0,0,1,1),Bn}();function u(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function f(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function d(Bn,w,re){var Pn="";if(Bn.e)Pn=Bn.p;else if(w){var Rn=Bn.p;Rn.indexOf("images/")!==-1&&(Rn=Rn.split("/")[1]),Pn=w+Rn}else Pn=re,Pn+=Bn.u?Bn.u:"",Pn+=Bn.p;return Pn}function h(Bn){var w=0,re=setInterval((function(){var Pn=Bn.getBBox();(Pn.width||w>500)&&(this._imageLoaded(),clearInterval(re)),w+=1}).bind(this),50)}function v(Bn){var w=d(Bn,this.assetsPath,this.path),re=createNS("image");isSafari?this.testImageLoaded(re):re.addEventListener("load",this._imageLoaded,!1),re.addEventListener("error",(function(){Pn.img=c,this._imageLoaded()}).bind(this),!1),re.setAttributeNS("http://www.w3.org/1999/xlink","href",w),this._elementHelper.append?this._elementHelper.append(re):this._elementHelper.appendChild(re);var Pn={img:re,assetData:Bn};return Pn}function p(Bn){var w=d(Bn,this.assetsPath,this.path),re=createTag("img");re.crossOrigin="anonymous",re.addEventListener("load",this._imageLoaded,!1),re.addEventListener("error",(function(){Pn.img=c,this._imageLoaded()}).bind(this),!1),re.src=w;var Pn={img:re,assetData:Bn};return Pn}function m(Bn){var w={assetData:Bn},re=d(Bn,this.assetsPath,this.path);return dataManager.loadData(re,(function(Pn){w.img=Pn,this._footageLoaded()}).bind(this),(function(){w.img={},this._footageLoaded()}).bind(this)),w}function g(Bn,w){this.imagesLoadedCb=w;var re,Pn=Bn.length;for(re=0;re<Pn;re+=1)Bn[re].layers||(!Bn[re].t||Bn[re].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(Bn[re]))):Bn[re].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(Bn[re]))))}function y(Bn){this.path=Bn||""}function b(Bn){this.assetsPath=Bn||""}function gn(Bn){for(var w=0,re=this.images.length;w<re;){if(this.images[w].assetData===Bn)return this.images[w].img;w+=1}return null}function x(){this.imagesLoadedCb=null,this.images.length=0}function vn(){return this.totalImages===this.loadedAssets}function J(){return this.totalFootages===this.loadedFootagesCount}function j(Bn,w){Bn==="svg"?(this._elementHelper=w,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function Fn(){this._imageLoaded=u.bind(this),this._footageLoaded=f.bind(this),this.testImageLoaded=h.bind(this),this.createFootageData=m.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return Fn.prototype={loadAssets:g,setAssetsPath:b,setPath:y,loadedImages:vn,loadedFootages:J,destroy:x,getAsset:gn,createImgData:p,createImageData:v,imageLoaded:u,footageLoaded:f,setCacheType:j},Fn}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(u,f){if(this._cbs[u])for(var d=this._cbs[u],h=0;h<d.length;h+=1)d[h](f)},addEventListener:function(u,f){return this._cbs[u]||(this._cbs[u]=[]),this._cbs[u].push(f),(function(){this.removeEventListener(u,f)}).bind(this)},removeEventListener:function(u,f){if(!f)this._cbs[u]=null;else if(this._cbs[u]){for(var d=0,h=this._cbs[u].length;d<h;)this._cbs[u][d]===f&&(this._cbs[u].splice(d,1),d-=1,h-=1),d+=1;this._cbs[u].length||(this._cbs[u]=null)}}};var markerParser=function(){function c(u){for(var f=u.split(`\r
174
174
  `),d={},h,v=0,p=0;p<f.length;p+=1)h=f[p].split(":"),h.length===2&&(d[h[0]]=h[1].trim(),v+=1);if(v===0)throw new Error;return d}return function(u){for(var f=[],d=0;d<u.length;d+=1){var h=u[d],v={time:h.tm,duration:h.dr};try{v.payload=JSON.parse(u[d].cm)}catch{try{v.payload=c(u[d].cm)}catch{v.payload={name:u[d].cm}}}f.push(v)}return f}}(),ProjectInterface=function(){function c(u){this.compositions.push(u)}return function(){function u(f){for(var d=0,h=this.compositions.length;d<h;){if(this.compositions[d].data&&this.compositions[d].data.nm===f)return this.compositions[d].prepareFrame&&this.compositions[d].data.xt&&this.compositions[d].prepareFrame(this.currentFrame),this.compositions[d].compInterface;d+=1}return null}return u.compositions=[],u.currentFrame=0,u.registerComposition=c,u}}(),renderers={},registerRenderer=function(u,f){renderers[u]=f};function getRenderer(c){return renderers[c]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var c in renderers)if(renderers[c])return c;return""}function _typeof$4(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$4=function(f){return typeof f}:_typeof$4=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},_typeof$4(c)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(c){(c.wrapper||c.container)&&(this.wrapper=c.wrapper||c.container);var u="svg";c.animType?u=c.animType:c.renderer&&(u=c.renderer);var f=getRenderer(u);this.renderer=new f(this,c.rendererSettings),this.imagePreloader.setCacheType(u,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=u,c.loop===""||c.loop===null||c.loop===void 0||c.loop===!0?this.loop=!0:c.loop===!1?this.loop=!1:this.loop=parseInt(c.loop,10),this.autoplay="autoplay"in c?c.autoplay:!0,this.name=c.name?c.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(c,"autoloadSegments")?c.autoloadSegments:!0,this.assetsPath=c.assetsPath,this.initialSegment=c.initialSegment,c.audioFactory&&this.audioController.setAudioFactory(c.audioFactory),c.animationData?this.setupAnimation(c.animationData):c.path&&(c.path.lastIndexOf("\\")!==-1?this.path=c.path.substr(0,c.path.lastIndexOf("\\")+1):this.path=c.path.substr(0,c.path.lastIndexOf("/")+1),this.fileName=c.path.substr(c.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(c.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(c){dataManager.completeAnimation(c,this.configAnimation)},AnimationItem.prototype.setData=function(c,u){u&&_typeof$4(u)!=="object"&&(u=JSON.parse(u));var f={wrapper:c,animationData:u},d=c.attributes;f.path=d.getNamedItem("data-animation-path")?d.getNamedItem("data-animation-path").value:d.getNamedItem("data-bm-path")?d.getNamedItem("data-bm-path").value:d.getNamedItem("bm-path")?d.getNamedItem("bm-path").value:"",f.animType=d.getNamedItem("data-anim-type")?d.getNamedItem("data-anim-type").value:d.getNamedItem("data-bm-type")?d.getNamedItem("data-bm-type").value:d.getNamedItem("bm-type")?d.getNamedItem("bm-type").value:d.getNamedItem("data-bm-renderer")?d.getNamedItem("data-bm-renderer").value:d.getNamedItem("bm-renderer")?d.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var h=d.getNamedItem("data-anim-loop")?d.getNamedItem("data-anim-loop").value:d.getNamedItem("data-bm-loop")?d.getNamedItem("data-bm-loop").value:d.getNamedItem("bm-loop")?d.getNamedItem("bm-loop").value:"";h==="false"?f.loop=!1:h==="true"?f.loop=!0:h!==""&&(f.loop=parseInt(h,10));var v=d.getNamedItem("data-anim-autoplay")?d.getNamedItem("data-anim-autoplay").value:d.getNamedItem("data-bm-autoplay")?d.getNamedItem("data-bm-autoplay").value:d.getNamedItem("bm-autoplay")?d.getNamedItem("bm-autoplay").value:!0;f.autoplay=v!=="false",f.name=d.getNamedItem("data-name")?d.getNamedItem("data-name").value:d.getNamedItem("data-bm-name")?d.getNamedItem("data-bm-name").value:d.getNamedItem("bm-name")?d.getNamedItem("bm-name").value:"";var p=d.getNamedItem("data-anim-prerender")?d.getNamedItem("data-anim-prerender").value:d.getNamedItem("data-bm-prerender")?d.getNamedItem("data-bm-prerender").value:d.getNamedItem("bm-prerender")?d.getNamedItem("bm-prerender").value:"";p==="false"&&(f.prerender=!1),f.path?this.setParams(f):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(c){c.op>this.animationData.op&&(this.animationData.op=c.op,this.totalFrames=Math.floor(c.op-this.animationData.ip));var u=this.animationData.layers,f,d=u.length,h=c.layers,v,p=h.length;for(v=0;v<p;v+=1)for(f=0;f<d;){if(u[f].id===h[v].id){u[f]=h[v];break}f+=1}if((c.chars||c.fonts)&&(this.renderer.globalData.fontManager.addChars(c.chars),this.renderer.globalData.fontManager.addFonts(c.fonts,this.renderer.globalData.defs)),c.assets)for(d=c.assets.length,f=0;f<d;f+=1)this.animationData.assets.push(c.assets[f]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(c){this.animationData=c;var u=getExpressionsPlugin();u&&u.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var c=this.animationData.segments;if(!c||c.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var u=c.shift();this.timeCompleted=u.time*this.frameRate;var f=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(f,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},AnimationItem.prototype.loadSegments=function(){var c=this.animationData.segments;c||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(c){if(this.renderer)try{this.animationData=c,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(c),c.assets||(c.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(c.assets),this.markers=markerParser(c.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(u){this.triggerConfigError(u)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var c=getExpressionsPlugin();c&&c.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(c,u){var f=typeof c=="number"?c:void 0,d=typeof u=="number"?u:void 0;this.renderer.updateContainerSize(f,d)},AnimationItem.prototype.setSubframe=function(c){this.isSubframeEnabled=!!c},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(c){this.triggerRenderFrameError(c)}},AnimationItem.prototype.play=function(c){c&&this.name!==c||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(c){c&&this.name!==c||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(c){c&&this.name!==c||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(c){c&&this.name!==c||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(c){for(var u,f=0;f<this.markers.length;f+=1)if(u=this.markers[f],u.payload&&u.payload.name===c)return u;return null},AnimationItem.prototype.goToAndStop=function(c,u,f){if(!(f&&this.name!==f)){var d=Number(c);if(isNaN(d)){var h=this.getMarkerData(c);h&&this.goToAndStop(h.time,!0)}else u?this.setCurrentRawFrameValue(c):this.setCurrentRawFrameValue(c*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(c,u,f){if(!(f&&this.name!==f)){var d=Number(c);if(isNaN(d)){var h=this.getMarkerData(c);h&&(h.duration?this.playSegments([h.time,h.time+h.duration],!0):this.goToAndStop(h.time,!0))}else this.goToAndStop(d,u,f);this.play()}},AnimationItem.prototype.advanceTime=function(c){if(!(this.isPaused===!0||this.isLoaded===!1)){var u=this.currentRawFrame+c*this.frameModifier,f=!1;u>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(u>this.totalFrames?u%this.totalFrames:0)||(f=!0,u=this.totalFrames-1):u>=this.totalFrames?(this.playCount+=1,this.checkSegments(u%this.totalFrames)||(this.setCurrentRawFrameValue(u%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(u):u<0?this.checkSegments(u%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+u%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(f=!0,u=0)):this.setCurrentRawFrameValue(u),f&&(this.setCurrentRawFrameValue(u),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(c,u){this.playCount=0,c[1]<c[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=c[0]-c[1],this.timeCompleted=this.totalFrames,this.firstFrame=c[1],this.setCurrentRawFrameValue(this.totalFrames-.001-u)):c[1]>c[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=c[1]-c[0],this.timeCompleted=this.totalFrames,this.firstFrame=c[0],this.setCurrentRawFrameValue(.001+u)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(c,u){var f=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<c?f=c:this.currentRawFrame+this.firstFrame>u&&(f=u-c)),this.firstFrame=c,this.totalFrames=u-c,this.timeCompleted=this.totalFrames,f!==-1&&this.goToAndStop(f,!0)},AnimationItem.prototype.playSegments=function(c,u){if(u&&(this.segments.length=0),_typeof$4(c[0])==="object"){var f,d=c.length;for(f=0;f<d;f+=1)this.segments.push(c[f])}else this.segments.push(c);this.segments.length&&u&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(c){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),c&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(c){return this.segments.length?(this.adjustSegment(this.segments.shift(),c),!0):!1},AnimationItem.prototype.destroy=function(c){c&&this.name!==c||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(c){this.currentRawFrame=c,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(c){this.playSpeed=c,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(c){this.playDirection=c<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(c){this.loop=c},AnimationItem.prototype.setVolume=function(c,u){u&&this.name!==u||this.audioController.setVolume(c)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(c){c&&this.name!==c||this.audioController.mute()},AnimationItem.prototype.unmute=function(c){c&&this.name!==c||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(c){var u="";if(c.e)u=c.p;else if(this.assetsPath){var f=c.p;f.indexOf("images/")!==-1&&(f=f.split("/")[1]),u=this.assetsPath+f}else u=this.path,u+=c.u?c.u:"",u+=c.p;return u},AnimationItem.prototype.getAssetData=function(c){for(var u=0,f=this.assets.length;u<f;){if(c===this.assets[u].id)return this.assets[u];u+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(c){return c?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(c,u,f){try{var d=this.renderer.getElementByPath(c);d.updateDocumentData(u,f)}catch{}},AnimationItem.prototype.trigger=function(c){if(this._cbs&&this._cbs[c])switch(c){case"enterFrame":this.triggerEvent(c,new BMEnterFrameEvent(c,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(c,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(c,new BMCompleteLoopEvent(c,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(c,new BMCompleteEvent(c,this.frameMult));break;case"segmentStart":this.triggerEvent(c,new BMSegmentStartEvent(c,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(c,new BMDestroyEvent(c,this));break;default:this.triggerEvent(c)}c==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(c,this.currentFrame,this.totalFrames,this.frameMult)),c==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(c,this.loop,this.playCount,this.frameMult)),c==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(c,this.frameMult)),c==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(c,this.firstFrame,this.totalFrames)),c==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(c,this))},AnimationItem.prototype.triggerRenderFrameError=function(c){var u=new BMRenderFrameErrorEvent(c,this.currentFrame);this.triggerEvent("error",u),this.onError&&this.onError.call(this,u)},AnimationItem.prototype.triggerConfigError=function(c){var u=new BMConfigErrorEvent(c,this.currentFrame);this.triggerEvent("error",u),this.onError&&this.onError.call(this,u)};var animationManager=function(){var c={},u=[],f=0,d=0,h=0,v=!0,p=!1;function m(Hn){for(var Kn=0,zn=Hn.target;Kn<d;)u[Kn].animation===zn&&(u.splice(Kn,1),Kn-=1,d-=1,zn.isPaused||gn()),Kn+=1}function g(Hn,Kn){if(!Hn)return null;for(var zn=0;zn<d;){if(u[zn].elem===Hn&&u[zn].elem!==null)return u[zn].animation;zn+=1}var qn=new AnimationItem;return x(qn,Hn),qn.setData(Hn,Kn),qn}function y(){var Hn,Kn=u.length,zn=[];for(Hn=0;Hn<Kn;Hn+=1)zn.push(u[Hn].animation);return zn}function b(){h+=1,Xn()}function gn(){h-=1}function x(Hn,Kn){Hn.addEventListener("destroy",m),Hn.addEventListener("_active",b),Hn.addEventListener("_idle",gn),u.push({elem:Kn,animation:Hn}),d+=1}function vn(Hn){var Kn=new AnimationItem;return x(Kn,null),Kn.setParams(Hn),Kn}function J(Hn,Kn){var zn;for(zn=0;zn<d;zn+=1)u[zn].animation.setSpeed(Hn,Kn)}function j(Hn,Kn){var zn;for(zn=0;zn<d;zn+=1)u[zn].animation.setDirection(Hn,Kn)}function Fn(Hn){var Kn;for(Kn=0;Kn<d;Kn+=1)u[Kn].animation.play(Hn)}function Bn(Hn){var Kn=Hn-f,zn;for(zn=0;zn<d;zn+=1)u[zn].animation.advanceTime(Kn);f=Hn,h&&!p?window.requestAnimationFrame(Bn):v=!0}function w(Hn){f=Hn,window.requestAnimationFrame(Bn)}function re(Hn){var Kn;for(Kn=0;Kn<d;Kn+=1)u[Kn].animation.pause(Hn)}function Pn(Hn,Kn,zn){var qn;for(qn=0;qn<d;qn+=1)u[qn].animation.goToAndStop(Hn,Kn,zn)}function Rn(Hn){var Kn;for(Kn=0;Kn<d;Kn+=1)u[Kn].animation.stop(Hn)}function Vn(Hn){var Kn;for(Kn=0;Kn<d;Kn+=1)u[Kn].animation.togglePause(Hn)}function Wn(Hn){var Kn;for(Kn=d-1;Kn>=0;Kn-=1)u[Kn].animation.destroy(Hn)}function Gn(Hn,Kn,zn){var qn=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),tr,Un=qn.length;for(tr=0;tr<Un;tr+=1)zn&&qn[tr].setAttribute("data-bm-type",zn),g(qn[tr],Hn);if(Kn&&Un===0){zn||(zn="svg");var nr=document.getElementsByTagName("body")[0];nr.innerText="";var cr=createTag("div");cr.style.width="100%",cr.style.height="100%",cr.setAttribute("data-bm-type",zn),nr.appendChild(cr),g(cr,Hn)}}function Zn(){var Hn;for(Hn=0;Hn<d;Hn+=1)u[Hn].animation.resize()}function Xn(){!p&&h&&v&&(window.requestAnimationFrame(w),v=!1)}function er(){p=!0}function Jn(){p=!1,Xn()}function ir(Hn,Kn){var zn;for(zn=0;zn<d;zn+=1)u[zn].animation.setVolume(Hn,Kn)}function or(Hn){var Kn;for(Kn=0;Kn<d;Kn+=1)u[Kn].animation.mute(Hn)}function sr(Hn){var Kn;for(Kn=0;Kn<d;Kn+=1)u[Kn].animation.unmute(Hn)}return c.registerAnimation=g,c.loadAnimation=vn,c.setSpeed=J,c.setDirection=j,c.play=Fn,c.pause=re,c.stop=Rn,c.togglePause=Vn,c.searchAnimations=Gn,c.resize=Zn,c.goToAndStop=Pn,c.destroy=Wn,c.freeze=er,c.unfreeze=Jn,c.setVolume=ir,c.mute=or,c.unmute=sr,c.getRegisteredAnimations=y,c}(),BezierFactory=function(){var c={};c.getBezierEasing=f;var u={};function f(w,re,Pn,Rn,Vn){var Wn=Vn||("bez_"+w+"_"+re+"_"+Pn+"_"+Rn).replace(/\./g,"p");if(u[Wn])return u[Wn];var Gn=new Bn([w,re,Pn,Rn]);return u[Wn]=Gn,Gn}var d=4,h=.001,v=1e-7,p=10,m=11,g=1/(m-1),y=typeof Float32Array=="function";function b(w,re){return 1-3*re+3*w}function gn(w,re){return 3*re-6*w}function x(w){return 3*w}function vn(w,re,Pn){return((b(re,Pn)*w+gn(re,Pn))*w+x(re))*w}function J(w,re,Pn){return 3*b(re,Pn)*w*w+2*gn(re,Pn)*w+x(re)}function j(w,re,Pn,Rn,Vn){var Wn,Gn,Zn=0;do Gn=re+(Pn-re)/2,Wn=vn(Gn,Rn,Vn)-w,Wn>0?Pn=Gn:re=Gn;while(Math.abs(Wn)>v&&++Zn<p);return Gn}function Fn(w,re,Pn,Rn){for(var Vn=0;Vn<d;++Vn){var Wn=J(re,Pn,Rn);if(Wn===0)return re;var Gn=vn(re,Pn,Rn)-w;re-=Gn/Wn}return re}function Bn(w){this._p=w,this._mSampleValues=y?new Float32Array(m):new Array(m),this._precomputed=!1,this.get=this.get.bind(this)}return Bn.prototype={get:function(re){var Pn=this._p[0],Rn=this._p[1],Vn=this._p[2],Wn=this._p[3];return this._precomputed||this._precompute(),Pn===Rn&&Vn===Wn?re:re===0?0:re===1?1:vn(this._getTForX(re),Rn,Wn)},_precompute:function(){var re=this._p[0],Pn=this._p[1],Rn=this._p[2],Vn=this._p[3];this._precomputed=!0,(re!==Pn||Rn!==Vn)&&this._calcSampleValues()},_calcSampleValues:function(){for(var re=this._p[0],Pn=this._p[2],Rn=0;Rn<m;++Rn)this._mSampleValues[Rn]=vn(Rn*g,re,Pn)},_getTForX:function(re){for(var Pn=this._p[0],Rn=this._p[2],Vn=this._mSampleValues,Wn=0,Gn=1,Zn=m-1;Gn!==Zn&&Vn[Gn]<=re;++Gn)Wn+=g;--Gn;var Xn=(re-Vn[Gn])/(Vn[Gn+1]-Vn[Gn]),er=Wn+Xn*g,Jn=J(er,Pn,Rn);return Jn>=h?Fn(re,er,Pn,Rn):Jn===0?er:j(re,Wn,Wn+g,Pn,Rn)}},c}(),pooling=function(){function c(u){return u.concat(createSizedArray(u.length))}return{double:c}}(),poolFactory=function(){return function(c,u,f){var d=0,h=c,v=createSizedArray(h),p={newElement:m,release:g};function m(){var y;return d?(d-=1,y=v[d]):y=u(),y}function g(y){d===h&&(v=pooling.double(v),h*=2),f&&f(y),v[d]=y,d+=1}return p}}(),bezierLengthPool=function(){function c(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,c)}(),segmentsLengthPool=function(){function c(){return{lengths:[],totalLength:0}}function u(f){var d,h=f.lengths.length;for(d=0;d<h;d+=1)bezierLengthPool.release(f.lengths[d]);f.lengths.length=0}return poolFactory(8,c,u)}();function bezFunction(){var c=Math;function u(x,vn,J,j,Fn,Bn){var w=x*j+vn*Fn+J*Bn-Fn*j-Bn*x-J*vn;return w>-.001&&w<.001}function f(x,vn,J,j,Fn,Bn,w,re,Pn){if(J===0&&Bn===0&&Pn===0)return u(x,vn,j,Fn,w,re);var Rn=c.sqrt(c.pow(j-x,2)+c.pow(Fn-vn,2)+c.pow(Bn-J,2)),Vn=c.sqrt(c.pow(w-x,2)+c.pow(re-vn,2)+c.pow(Pn-J,2)),Wn=c.sqrt(c.pow(w-j,2)+c.pow(re-Fn,2)+c.pow(Pn-Bn,2)),Gn;return Rn>Vn?Rn>Wn?Gn=Rn-Vn-Wn:Gn=Wn-Vn-Rn:Wn>Vn?Gn=Wn-Vn-Rn:Gn=Vn-Rn-Wn,Gn>-1e-4&&Gn<1e-4}var d=function(){return function(x,vn,J,j){var Fn=getDefaultCurveSegments(),Bn,w,re,Pn,Rn,Vn=0,Wn,Gn=[],Zn=[],Xn=bezierLengthPool.newElement();for(re=J.length,Bn=0;Bn<Fn;Bn+=1){for(Rn=Bn/(Fn-1),Wn=0,w=0;w<re;w+=1)Pn=bmPow(1-Rn,3)*x[w]+3*bmPow(1-Rn,2)*Rn*J[w]+3*(1-Rn)*bmPow(Rn,2)*j[w]+bmPow(Rn,3)*vn[w],Gn[w]=Pn,Zn[w]!==null&&(Wn+=bmPow(Gn[w]-Zn[w],2)),Zn[w]=Gn[w];Wn&&(Wn=bmSqrt(Wn),Vn+=Wn),Xn.percents[Bn]=Rn,Xn.lengths[Bn]=Vn}return Xn.addedLength=Vn,Xn}}();function h(x){var vn=segmentsLengthPool.newElement(),J=x.c,j=x.v,Fn=x.o,Bn=x.i,w,re=x._length,Pn=vn.lengths,Rn=0;for(w=0;w<re-1;w+=1)Pn[w]=d(j[w],j[w+1],Fn[w],Bn[w+1]),Rn+=Pn[w].addedLength;return J&&re&&(Pn[w]=d(j[w],j[0],Fn[w],Bn[0]),Rn+=Pn[w].addedLength),vn.totalLength=Rn,vn}function v(x){this.segmentLength=0,this.points=new Array(x)}function p(x,vn){this.partialLength=x,this.point=vn}var m=function(){var x={};return function(vn,J,j,Fn){var Bn=(vn[0]+"_"+vn[1]+"_"+J[0]+"_"+J[1]+"_"+j[0]+"_"+j[1]+"_"+Fn[0]+"_"+Fn[1]).replace(/\./g,"p");if(!x[Bn]){var w=getDefaultCurveSegments(),re,Pn,Rn,Vn,Wn,Gn=0,Zn,Xn,er=null;vn.length===2&&(vn[0]!==J[0]||vn[1]!==J[1])&&u(vn[0],vn[1],J[0],J[1],vn[0]+j[0],vn[1]+j[1])&&u(vn[0],vn[1],J[0],J[1],J[0]+Fn[0],J[1]+Fn[1])&&(w=2);var Jn=new v(w);for(Rn=j.length,re=0;re<w;re+=1){for(Xn=createSizedArray(Rn),Wn=re/(w-1),Zn=0,Pn=0;Pn<Rn;Pn+=1)Vn=bmPow(1-Wn,3)*vn[Pn]+3*bmPow(1-Wn,2)*Wn*(vn[Pn]+j[Pn])+3*(1-Wn)*bmPow(Wn,2)*(J[Pn]+Fn[Pn])+bmPow(Wn,3)*J[Pn],Xn[Pn]=Vn,er!==null&&(Zn+=bmPow(Xn[Pn]-er[Pn],2));Zn=bmSqrt(Zn),Gn+=Zn,Jn.points[re]=new p(Zn,Xn),er=Xn}Jn.segmentLength=Gn,x[Bn]=Jn}return x[Bn]}}();function g(x,vn){var J=vn.percents,j=vn.lengths,Fn=J.length,Bn=bmFloor((Fn-1)*x),w=x*vn.addedLength,re=0;if(Bn===Fn-1||Bn===0||w===j[Bn])return J[Bn];for(var Pn=j[Bn]>w?-1:1,Rn=!0;Rn;)if(j[Bn]<=w&&j[Bn+1]>w?(re=(w-j[Bn])/(j[Bn+1]-j[Bn]),Rn=!1):Bn+=Pn,Bn<0||Bn>=Fn-1){if(Bn===Fn-1)return J[Bn];Rn=!1}return J[Bn]+(J[Bn+1]-J[Bn])*re}function y(x,vn,J,j,Fn,Bn){var w=g(Fn,Bn),re=1-w,Pn=c.round((re*re*re*x[0]+(w*re*re+re*w*re+re*re*w)*J[0]+(w*w*re+re*w*w+w*re*w)*j[0]+w*w*w*vn[0])*1e3)/1e3,Rn=c.round((re*re*re*x[1]+(w*re*re+re*w*re+re*re*w)*J[1]+(w*w*re+re*w*w+w*re*w)*j[1]+w*w*w*vn[1])*1e3)/1e3;return[Pn,Rn]}var b=createTypedArray("float32",8);function gn(x,vn,J,j,Fn,Bn,w){Fn<0?Fn=0:Fn>1&&(Fn=1);var re=g(Fn,w);Bn=Bn>1?1:Bn;var Pn=g(Bn,w),Rn,Vn=x.length,Wn=1-re,Gn=1-Pn,Zn=Wn*Wn*Wn,Xn=re*Wn*Wn*3,er=re*re*Wn*3,Jn=re*re*re,ir=Wn*Wn*Gn,or=re*Wn*Gn+Wn*re*Gn+Wn*Wn*Pn,sr=re*re*Gn+Wn*re*Pn+re*Wn*Pn,Hn=re*re*Pn,Kn=Wn*Gn*Gn,zn=re*Gn*Gn+Wn*Pn*Gn+Wn*Gn*Pn,qn=re*Pn*Gn+Wn*Pn*Pn+re*Gn*Pn,tr=re*Pn*Pn,Un=Gn*Gn*Gn,nr=Pn*Gn*Gn+Gn*Pn*Gn+Gn*Gn*Pn,cr=Pn*Pn*Gn+Gn*Pn*Pn+Pn*Gn*Pn,Qn=Pn*Pn*Pn;for(Rn=0;Rn<Vn;Rn+=1)b[Rn*4]=c.round((Zn*x[Rn]+Xn*J[Rn]+er*j[Rn]+Jn*vn[Rn])*1e3)/1e3,b[Rn*4+1]=c.round((ir*x[Rn]+or*J[Rn]+sr*j[Rn]+Hn*vn[Rn])*1e3)/1e3,b[Rn*4+2]=c.round((Kn*x[Rn]+zn*J[Rn]+qn*j[Rn]+tr*vn[Rn])*1e3)/1e3,b[Rn*4+3]=c.round((Un*x[Rn]+nr*J[Rn]+cr*j[Rn]+Qn*vn[Rn])*1e3)/1e3;return b}return{getSegmentsLength:h,getNewSegment:gn,getPointInSegment:y,buildBezierData:m,pointOnLine2D:u,pointOnLine3D:f}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(c,u){var f=this.offsetTime,d;this.propType==="multidimensional"&&(d=createTypedArray("float32",this.pv.length));for(var h=u.lastIndex,v=h,p=this.keyframes.length-1,m=!0,g,y,b;m;){if(g=this.keyframes[v],y=this.keyframes[v+1],v===p-1&&c>=y.t-f){g.h&&(g=y),h=0;break}if(y.t-f>c){h=v;break}v<p-1?v+=1:(h=0,m=!1)}b=this.keyframesMetadata[v]||{};var gn,x,vn,J,j,Fn,Bn=y.t-f,w=g.t-f,re;if(g.to){b.bezierData||(b.bezierData=bez.buildBezierData(g.s,y.s||g.e,g.to,g.ti));var Pn=b.bezierData;if(c>=Bn||c<w){var Rn=c>=Bn?Pn.points.length-1:0;for(x=Pn.points[Rn].point.length,gn=0;gn<x;gn+=1)d[gn]=Pn.points[Rn].point[gn]}else{b.__fnct?Fn=b.__fnct:(Fn=BezierFactory.getBezierEasing(g.o.x,g.o.y,g.i.x,g.i.y,g.n).get,b.__fnct=Fn),vn=Fn((c-w)/(Bn-w));var Vn=Pn.segmentLength*vn,Wn,Gn=u.lastFrame<c&&u._lastKeyframeIndex===v?u._lastAddedLength:0;for(j=u.lastFrame<c&&u._lastKeyframeIndex===v?u._lastPoint:0,m=!0,J=Pn.points.length;m;){if(Gn+=Pn.points[j].partialLength,Vn===0||vn===0||j===Pn.points.length-1){for(x=Pn.points[j].point.length,gn=0;gn<x;gn+=1)d[gn]=Pn.points[j].point[gn];break}else if(Vn>=Gn&&Vn<Gn+Pn.points[j+1].partialLength){for(Wn=(Vn-Gn)/Pn.points[j+1].partialLength,x=Pn.points[j].point.length,gn=0;gn<x;gn+=1)d[gn]=Pn.points[j].point[gn]+(Pn.points[j+1].point[gn]-Pn.points[j].point[gn])*Wn;break}j<J-1?j+=1:m=!1}u._lastPoint=j,u._lastAddedLength=Gn-Pn.points[j].partialLength,u._lastKeyframeIndex=v}}else{var Zn,Xn,er,Jn,ir;if(p=g.s.length,re=y.s||g.e,this.sh&&g.h!==1)if(c>=Bn)d[0]=re[0],d[1]=re[1],d[2]=re[2];else if(c<=w)d[0]=g.s[0],d[1]=g.s[1],d[2]=g.s[2];else{var or=createQuaternion(g.s),sr=createQuaternion(re),Hn=(c-w)/(Bn-w);quaternionToEuler(d,slerp(or,sr,Hn))}else for(v=0;v<p;v+=1)g.h!==1&&(c>=Bn?vn=1:c<w?vn=0:(g.o.x.constructor===Array?(b.__fnct||(b.__fnct=[]),b.__fnct[v]?Fn=b.__fnct[v]:(Zn=g.o.x[v]===void 0?g.o.x[0]:g.o.x[v],Xn=g.o.y[v]===void 0?g.o.y[0]:g.o.y[v],er=g.i.x[v]===void 0?g.i.x[0]:g.i.x[v],Jn=g.i.y[v]===void 0?g.i.y[0]:g.i.y[v],Fn=BezierFactory.getBezierEasing(Zn,Xn,er,Jn).get,b.__fnct[v]=Fn)):b.__fnct?Fn=b.__fnct:(Zn=g.o.x,Xn=g.o.y,er=g.i.x,Jn=g.i.y,Fn=BezierFactory.getBezierEasing(Zn,Xn,er,Jn).get,g.keyframeMetadata=Fn),vn=Fn((c-w)/(Bn-w)))),re=y.s||g.e,ir=g.h===1?g.s[v]:g.s[v]+(re[v]-g.s[v])*vn,this.propType==="multidimensional"?d[v]=ir:d=ir}return u.lastIndex=h,d}function slerp(c,u,f){var d=[],h=c[0],v=c[1],p=c[2],m=c[3],g=u[0],y=u[1],b=u[2],gn=u[3],x,vn,J,j,Fn;return vn=h*g+v*y+p*b+m*gn,vn<0&&(vn=-vn,g=-g,y=-y,b=-b,gn=-gn),1-vn>1e-6?(x=Math.acos(vn),J=Math.sin(x),j=Math.sin((1-f)*x)/J,Fn=Math.sin(f*x)/J):(j=1-f,Fn=f),d[0]=j*h+Fn*g,d[1]=j*v+Fn*y,d[2]=j*p+Fn*b,d[3]=j*m+Fn*gn,d}function quaternionToEuler(c,u){var f=u[0],d=u[1],h=u[2],v=u[3],p=Math.atan2(2*d*v-2*f*h,1-2*d*d-2*h*h),m=Math.asin(2*f*d+2*h*v),g=Math.atan2(2*f*v-2*d*h,1-2*f*f-2*h*h);c[0]=p/degToRads,c[1]=m/degToRads,c[2]=g/degToRads}function createQuaternion(c){var u=c[0]*degToRads,f=c[1]*degToRads,d=c[2]*degToRads,h=Math.cos(u/2),v=Math.cos(f/2),p=Math.cos(d/2),m=Math.sin(u/2),g=Math.sin(f/2),y=Math.sin(d/2),b=h*v*p-m*g*y,gn=m*g*p+h*v*y,x=m*v*p+h*g*y,vn=h*g*p-m*v*y;return[gn,x,vn,b]}function getValueAtCurrentTime(){var c=this.comp.renderedFrame-this.offsetTime,u=this.keyframes[0].t-this.offsetTime,f=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(c===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=f&&c>=f||this._caching.lastFrame<u&&c<u))){this._caching.lastFrame>=c&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var d=this.interpolateValue(c,this._caching);this.pv=d}return this._caching.lastFrame=c,this.pv}function setVValue(c){var u;if(this.propType==="unidimensional")u=c*this.mult,mathAbs(this.v-u)>1e-5&&(this.v=u,this._mdf=!0);else for(var f=0,d=this.v.length;f<d;)u=c[f]*this.mult,mathAbs(this.v[f]-u)>1e-5&&(this.v[f]=u,this._mdf=!0),f+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var c,u=this.effectsSequence.length,f=this.kf?this.pv:this.data.k;for(c=0;c<u;c+=1)f=this.effectsSequence[c](f);this.setVValue(f),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(c){this.effectsSequence.push(c),this.container.addDynamicProperty(this)}function ValueProperty(c,u,f,d){this.propType="unidimensional",this.mult=f||1,this.data=u,this.v=f?u.k*f:u.k,this.pv=u.k,this._mdf=!1,this.elem=c,this.container=d,this.comp=c.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(c,u,f,d){this.propType="multidimensional",this.mult=f||1,this.data=u,this._mdf=!1,this.elem=c,this.container=d,this.comp=c.comp,this.k=!1,this.kf=!1,this.frameId=-1;var h,v=u.k.length;for(this.v=createTypedArray("float32",v),this.pv=createTypedArray("float32",v),this.vel=createTypedArray("float32",v),h=0;h<v;h+=1)this.v[h]=u.k[h]*this.mult,this.pv[h]=u.k[h];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(c,u,f,d){this.propType="unidimensional",this.keyframes=u.k,this.keyframesMetadata=[],this.offsetTime=c.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=u,this.mult=f||1,this.elem=c,this.container=d,this.comp=c.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(c,u,f,d){this.propType="multidimensional";var h,v=u.k.length,p,m,g,y;for(h=0;h<v-1;h+=1)u.k[h].to&&u.k[h].s&&u.k[h+1]&&u.k[h+1].s&&(p=u.k[h].s,m=u.k[h+1].s,g=u.k[h].to,y=u.k[h].ti,(p.length===2&&!(p[0]===m[0]&&p[1]===m[1])&&bez.pointOnLine2D(p[0],p[1],m[0],m[1],p[0]+g[0],p[1]+g[1])&&bez.pointOnLine2D(p[0],p[1],m[0],m[1],m[0]+y[0],m[1]+y[1])||p.length===3&&!(p[0]===m[0]&&p[1]===m[1]&&p[2]===m[2])&&bez.pointOnLine3D(p[0],p[1],p[2],m[0],m[1],m[2],p[0]+g[0],p[1]+g[1],p[2]+g[2])&&bez.pointOnLine3D(p[0],p[1],p[2],m[0],m[1],m[2],m[0]+y[0],m[1]+y[1],m[2]+y[2]))&&(u.k[h].to=null,u.k[h].ti=null),p[0]===m[0]&&p[1]===m[1]&&g[0]===0&&g[1]===0&&y[0]===0&&y[1]===0&&(p.length===2||p[2]===m[2]&&g[2]===0&&y[2]===0)&&(u.k[h].to=null,u.k[h].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=u,this.keyframes=u.k,this.keyframesMetadata=[],this.offsetTime=c.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=f||1,this.elem=c,this.container=d,this.comp=c.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var b=u.k[0].s.length;for(this.v=createTypedArray("float32",b),this.pv=createTypedArray("float32",b),h=0;h<b;h+=1)this.v[h]=initFrame,this.pv[h]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",b)},this.addEffect=addEffect}var PropertyFactory=function(){function c(f,d,h,v,p){d.sid&&(d=f.globalData.slotManager.getProp(d));var m;if(!d.k.length)m=new ValueProperty(f,d,v,p);else if(typeof d.k[0]=="number")m=new MultiDimensionalProperty(f,d,v,p);else switch(h){case 0:m=new KeyframedValueProperty(f,d,v,p);break;case 1:m=new KeyframedMultidimensionalProperty(f,d,v,p);break}return m.effectsSequence.length&&p.addDynamicProperty(m),m}var u={getProp:c};return u}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(u){this.dynamicProperties.indexOf(u)===-1&&(this.dynamicProperties.push(u),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var u,f=this.dynamicProperties.length;for(u=0;u<f;u+=1)this.dynamicProperties[u].getValue(),this.dynamicProperties[u]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(u){this.container=u,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=function(){function c(){return createTypedArray("float32",2)}return poolFactory(8,c)}();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(c,u){this.c=c,this.setLength(u);for(var f=0;f<u;)this.v[f]=pointPool.newElement(),this.o[f]=pointPool.newElement(),this.i[f]=pointPool.newElement(),f+=1},ShapePath.prototype.setLength=function(c){for(;this._maxLength<c;)this.doubleArrayLength();this._length=c},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(c,u,f,d,h){var v;switch(this._length=Math.max(this._length,d+1),this._length>=this._maxLength&&this.doubleArrayLength(),f){case"v":v=this.v;break;case"i":v=this.i;break;case"o":v=this.o;break;default:v=[];break}(!v[d]||v[d]&&!h)&&(v[d]=pointPool.newElement()),v[d][0]=c,v[d][1]=u},ShapePath.prototype.setTripleAt=function(c,u,f,d,h,v,p,m){this.setXYAt(c,u,"v",p,m),this.setXYAt(f,d,"o",p,m),this.setXYAt(h,v,"i",p,m)},ShapePath.prototype.reverse=function(){var c=new ShapePath;c.setPathData(this.c,this._length);var u=this.v,f=this.o,d=this.i,h=0;this.c&&(c.setTripleAt(u[0][0],u[0][1],d[0][0],d[0][1],f[0][0],f[0][1],0,!1),h=1);var v=this._length-1,p=this._length,m;for(m=h;m<p;m+=1)c.setTripleAt(u[v][0],u[v][1],d[v][0],d[v][1],f[v][0],f[v][1],m,!1),v-=1;return c},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function c(){return new ShapePath}function u(h){var v=h._length,p;for(p=0;p<v;p+=1)pointPool.release(h.v[p]),pointPool.release(h.i[p]),pointPool.release(h.o[p]),h.v[p]=null,h.i[p]=null,h.o[p]=null;h._length=0,h.c=!1}function f(h){var v=d.newElement(),p,m=h._length===void 0?h.v.length:h._length;for(v.setLength(m),v.c=h.c,p=0;p<m;p+=1)v.setTripleAt(h.v[p][0],h.v[p][1],h.o[p][0],h.o[p][1],h.i[p][0],h.i[p][1],p);return v}var d=poolFactory(4,c,u);return d.clone=f,d}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(c){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=c,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var c;for(c=0;c<this._length;c+=1)shapePool.release(this.shapes[c]);this._length=0};var shapeCollectionPool=function(){var c={newShapeCollection:h,release:v},u=0,f=4,d=createSizedArray(f);function h(){var p;return u?(u-=1,p=d[u]):p=new ShapeCollection,p}function v(p){var m,g=p._length;for(m=0;m<g;m+=1)shapePool.release(p.shapes[m]);p._length=0,u===f&&(d=pooling.double(d),f*=2),d[u]=p,u+=1}return c}(),ShapePropertyFactory=function(){var c=-999999;function u(Bn,w,re){var Pn=re.lastIndex,Rn,Vn,Wn,Gn,Zn,Xn,er,Jn,ir,or=this.keyframes;if(Bn<or[0].t-this.offsetTime)Rn=or[0].s[0],Wn=!0,Pn=0;else if(Bn>=or[or.length-1].t-this.offsetTime)Rn=or[or.length-1].s?or[or.length-1].s[0]:or[or.length-2].e[0],Wn=!0;else{for(var sr=Pn,Hn=or.length-1,Kn=!0,zn,qn,tr;Kn&&(zn=or[sr],qn=or[sr+1],!(qn.t-this.offsetTime>Bn));)sr<Hn-1?sr+=1:Kn=!1;if(tr=this.keyframesMetadata[sr]||{},Wn=zn.h===1,Pn=sr,!Wn){if(Bn>=qn.t-this.offsetTime)Jn=1;else if(Bn<zn.t-this.offsetTime)Jn=0;else{var Un;tr.__fnct?Un=tr.__fnct:(Un=BezierFactory.getBezierEasing(zn.o.x,zn.o.y,zn.i.x,zn.i.y).get,tr.__fnct=Un),Jn=Un((Bn-(zn.t-this.offsetTime))/(qn.t-this.offsetTime-(zn.t-this.offsetTime)))}Vn=qn.s?qn.s[0]:zn.e[0]}Rn=zn.s[0]}for(Xn=w._length,er=Rn.i[0].length,re.lastIndex=Pn,Gn=0;Gn<Xn;Gn+=1)for(Zn=0;Zn<er;Zn+=1)ir=Wn?Rn.i[Gn][Zn]:Rn.i[Gn][Zn]+(Vn.i[Gn][Zn]-Rn.i[Gn][Zn])*Jn,w.i[Gn][Zn]=ir,ir=Wn?Rn.o[Gn][Zn]:Rn.o[Gn][Zn]+(Vn.o[Gn][Zn]-Rn.o[Gn][Zn])*Jn,w.o[Gn][Zn]=ir,ir=Wn?Rn.v[Gn][Zn]:Rn.v[Gn][Zn]+(Vn.v[Gn][Zn]-Rn.v[Gn][Zn])*Jn,w.v[Gn][Zn]=ir}function f(){var Bn=this.comp.renderedFrame-this.offsetTime,w=this.keyframes[0].t-this.offsetTime,re=this.keyframes[this.keyframes.length-1].t-this.offsetTime,Pn=this._caching.lastFrame;return Pn!==c&&(Pn<w&&Bn<w||Pn>re&&Bn>re)||(this._caching.lastIndex=Pn<Bn?this._caching.lastIndex:0,this.interpolateShape(Bn,this.pv,this._caching)),this._caching.lastFrame=Bn,this.pv}function d(){this.paths=this.localShapeCollection}function h(Bn,w){if(Bn._length!==w._length||Bn.c!==w.c)return!1;var re,Pn=Bn._length;for(re=0;re<Pn;re+=1)if(Bn.v[re][0]!==w.v[re][0]||Bn.v[re][1]!==w.v[re][1]||Bn.o[re][0]!==w.o[re][0]||Bn.o[re][1]!==w.o[re][1]||Bn.i[re][0]!==w.i[re][0]||Bn.i[re][1]!==w.i[re][1])return!1;return!0}function v(Bn){h(this.v,Bn)||(this.v=shapePool.clone(Bn),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function p(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var Bn;this.kf?Bn=this.pv:this.data.ks?Bn=this.data.ks.k:Bn=this.data.pt.k;var w,re=this.effectsSequence.length;for(w=0;w<re;w+=1)Bn=this.effectsSequence[w](Bn);this.setVValue(Bn),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function m(Bn,w,re){this.propType="shape",this.comp=Bn.comp,this.container=Bn,this.elem=Bn,this.data=w,this.k=!1,this.kf=!1,this._mdf=!1;var Pn=re===3?w.pt.k:w.ks.k;this.v=shapePool.clone(Pn),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=d,this.effectsSequence=[]}function g(Bn){this.effectsSequence.push(Bn),this.container.addDynamicProperty(this)}m.prototype.interpolateShape=u,m.prototype.getValue=p,m.prototype.setVValue=v,m.prototype.addEffect=g;function y(Bn,w,re){this.propType="shape",this.comp=Bn.comp,this.elem=Bn,this.container=Bn,this.offsetTime=Bn.data.st,this.keyframes=re===3?w.pt.k:w.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var Pn=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,Pn),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=c,this.reset=d,this._caching={lastFrame:c,lastIndex:0},this.effectsSequence=[f.bind(this)]}y.prototype.getValue=p,y.prototype.interpolateShape=u,y.prototype.setVValue=v,y.prototype.addEffect=g;var b=function(){var Bn=roundCorner;function w(re,Pn){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=Pn.d,this.elem=re,this.comp=re.comp,this.frameId=-1,this.initDynamicPropertyContainer(re),this.p=PropertyFactory.getProp(re,Pn.p,1,0,this),this.s=PropertyFactory.getProp(re,Pn.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return w.prototype={reset:d,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var Pn=this.p.v[0],Rn=this.p.v[1],Vn=this.s.v[0]/2,Wn=this.s.v[1]/2,Gn=this.d!==3,Zn=this.v;Zn.v[0][0]=Pn,Zn.v[0][1]=Rn-Wn,Zn.v[1][0]=Gn?Pn+Vn:Pn-Vn,Zn.v[1][1]=Rn,Zn.v[2][0]=Pn,Zn.v[2][1]=Rn+Wn,Zn.v[3][0]=Gn?Pn-Vn:Pn+Vn,Zn.v[3][1]=Rn,Zn.i[0][0]=Gn?Pn-Vn*Bn:Pn+Vn*Bn,Zn.i[0][1]=Rn-Wn,Zn.i[1][0]=Gn?Pn+Vn:Pn-Vn,Zn.i[1][1]=Rn-Wn*Bn,Zn.i[2][0]=Gn?Pn+Vn*Bn:Pn-Vn*Bn,Zn.i[2][1]=Rn+Wn,Zn.i[3][0]=Gn?Pn-Vn:Pn+Vn,Zn.i[3][1]=Rn+Wn*Bn,Zn.o[0][0]=Gn?Pn+Vn*Bn:Pn-Vn*Bn,Zn.o[0][1]=Rn-Wn,Zn.o[1][0]=Gn?Pn+Vn:Pn-Vn,Zn.o[1][1]=Rn+Wn*Bn,Zn.o[2][0]=Gn?Pn-Vn*Bn:Pn+Vn*Bn,Zn.o[2][1]=Rn+Wn,Zn.o[3][0]=Gn?Pn-Vn:Pn+Vn,Zn.o[3][1]=Rn-Wn*Bn}},extendPrototype([DynamicPropertyContainer],w),w}(),gn=function(){function Bn(w,re){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=w,this.comp=w.comp,this.data=re,this.frameId=-1,this.d=re.d,this.initDynamicPropertyContainer(w),re.sy===1?(this.ir=PropertyFactory.getProp(w,re.ir,0,0,this),this.is=PropertyFactory.getProp(w,re.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(w,re.pt,0,0,this),this.p=PropertyFactory.getProp(w,re.p,1,0,this),this.r=PropertyFactory.getProp(w,re.r,0,degToRads,this),this.or=PropertyFactory.getProp(w,re.or,0,0,this),this.os=PropertyFactory.getProp(w,re.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return Bn.prototype={reset:d,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var re=Math.floor(this.pt.v)*2,Pn=Math.PI*2/re,Rn=!0,Vn=this.or.v,Wn=this.ir.v,Gn=this.os.v,Zn=this.is.v,Xn=2*Math.PI*Vn/(re*2),er=2*Math.PI*Wn/(re*2),Jn,ir,or,sr,Hn=-Math.PI/2;Hn+=this.r.v;var Kn=this.data.d===3?-1:1;for(this.v._length=0,Jn=0;Jn<re;Jn+=1){ir=Rn?Vn:Wn,or=Rn?Gn:Zn,sr=Rn?Xn:er;var zn=ir*Math.cos(Hn),qn=ir*Math.sin(Hn),tr=zn===0&&qn===0?0:qn/Math.sqrt(zn*zn+qn*qn),Un=zn===0&&qn===0?0:-zn/Math.sqrt(zn*zn+qn*qn);zn+=+this.p.v[0],qn+=+this.p.v[1],this.v.setTripleAt(zn,qn,zn-tr*sr*or*Kn,qn-Un*sr*or*Kn,zn+tr*sr*or*Kn,qn+Un*sr*or*Kn,Jn,!0),Rn=!Rn,Hn+=Pn*Kn}},convertPolygonToPath:function(){var re=Math.floor(this.pt.v),Pn=Math.PI*2/re,Rn=this.or.v,Vn=this.os.v,Wn=2*Math.PI*Rn/(re*4),Gn,Zn=-Math.PI*.5,Xn=this.data.d===3?-1:1;for(Zn+=this.r.v,this.v._length=0,Gn=0;Gn<re;Gn+=1){var er=Rn*Math.cos(Zn),Jn=Rn*Math.sin(Zn),ir=er===0&&Jn===0?0:Jn/Math.sqrt(er*er+Jn*Jn),or=er===0&&Jn===0?0:-er/Math.sqrt(er*er+Jn*Jn);er+=+this.p.v[0],Jn+=+this.p.v[1],this.v.setTripleAt(er,Jn,er-ir*Wn*Vn*Xn,Jn-or*Wn*Vn*Xn,er+ir*Wn*Vn*Xn,Jn+or*Wn*Vn*Xn,Gn,!0),Zn+=Pn*Xn}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],Bn),Bn}(),x=function(){function Bn(w,re){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=w,this.comp=w.comp,this.frameId=-1,this.d=re.d,this.initDynamicPropertyContainer(w),this.p=PropertyFactory.getProp(w,re.p,1,0,this),this.s=PropertyFactory.getProp(w,re.s,1,0,this),this.r=PropertyFactory.getProp(w,re.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return Bn.prototype={convertRectToPath:function(){var re=this.p.v[0],Pn=this.p.v[1],Rn=this.s.v[0]/2,Vn=this.s.v[1]/2,Wn=bmMin(Rn,Vn,this.r.v),Gn=Wn*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(re+Rn,Pn-Vn+Wn,re+Rn,Pn-Vn+Wn,re+Rn,Pn-Vn+Gn,0,!0),this.v.setTripleAt(re+Rn,Pn+Vn-Wn,re+Rn,Pn+Vn-Gn,re+Rn,Pn+Vn-Wn,1,!0),Wn!==0?(this.v.setTripleAt(re+Rn-Wn,Pn+Vn,re+Rn-Wn,Pn+Vn,re+Rn-Gn,Pn+Vn,2,!0),this.v.setTripleAt(re-Rn+Wn,Pn+Vn,re-Rn+Gn,Pn+Vn,re-Rn+Wn,Pn+Vn,3,!0),this.v.setTripleAt(re-Rn,Pn+Vn-Wn,re-Rn,Pn+Vn-Wn,re-Rn,Pn+Vn-Gn,4,!0),this.v.setTripleAt(re-Rn,Pn-Vn+Wn,re-Rn,Pn-Vn+Gn,re-Rn,Pn-Vn+Wn,5,!0),this.v.setTripleAt(re-Rn+Wn,Pn-Vn,re-Rn+Wn,Pn-Vn,re-Rn+Gn,Pn-Vn,6,!0),this.v.setTripleAt(re+Rn-Wn,Pn-Vn,re+Rn-Gn,Pn-Vn,re+Rn-Wn,Pn-Vn,7,!0)):(this.v.setTripleAt(re-Rn,Pn+Vn,re-Rn+Gn,Pn+Vn,re-Rn,Pn+Vn,2),this.v.setTripleAt(re-Rn,Pn-Vn,re-Rn,Pn-Vn+Gn,re-Rn,Pn-Vn,3))):(this.v.setTripleAt(re+Rn,Pn-Vn+Wn,re+Rn,Pn-Vn+Gn,re+Rn,Pn-Vn+Wn,0,!0),Wn!==0?(this.v.setTripleAt(re+Rn-Wn,Pn-Vn,re+Rn-Wn,Pn-Vn,re+Rn-Gn,Pn-Vn,1,!0),this.v.setTripleAt(re-Rn+Wn,Pn-Vn,re-Rn+Gn,Pn-Vn,re-Rn+Wn,Pn-Vn,2,!0),this.v.setTripleAt(re-Rn,Pn-Vn+Wn,re-Rn,Pn-Vn+Wn,re-Rn,Pn-Vn+Gn,3,!0),this.v.setTripleAt(re-Rn,Pn+Vn-Wn,re-Rn,Pn+Vn-Gn,re-Rn,Pn+Vn-Wn,4,!0),this.v.setTripleAt(re-Rn+Wn,Pn+Vn,re-Rn+Wn,Pn+Vn,re-Rn+Gn,Pn+Vn,5,!0),this.v.setTripleAt(re+Rn-Wn,Pn+Vn,re+Rn-Gn,Pn+Vn,re+Rn-Wn,Pn+Vn,6,!0),this.v.setTripleAt(re+Rn,Pn+Vn-Wn,re+Rn,Pn+Vn-Wn,re+Rn,Pn+Vn-Gn,7,!0)):(this.v.setTripleAt(re-Rn,Pn-Vn,re-Rn+Gn,Pn-Vn,re-Rn,Pn-Vn,1,!0),this.v.setTripleAt(re-Rn,Pn+Vn,re-Rn,Pn+Vn-Gn,re-Rn,Pn+Vn,2,!0),this.v.setTripleAt(re+Rn,Pn+Vn,re+Rn-Gn,Pn+Vn,re+Rn,Pn+Vn,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:d},extendPrototype([DynamicPropertyContainer],Bn),Bn}();function vn(Bn,w,re){var Pn;if(re===3||re===4){var Rn=re===3?w.pt:w.ks,Vn=Rn.k;Vn.length?Pn=new y(Bn,w,re):Pn=new m(Bn,w,re)}else re===5?Pn=new x(Bn,w):re===6?Pn=new b(Bn,w):re===7&&(Pn=new gn(Bn,w));return Pn.k&&Bn.addDynamicProperty(Pn),Pn}function J(){return m}function j(){return y}var Fn={};return Fn.getShapeProp=vn,Fn.getConstructorFunction=J,Fn.getKeyframedConstructorFunction=j,Fn}();/*!
175
175
  Transformation Matrix v2.0
176
176
  (c) Epistemex 2014-2015
@@ -178,7 +178,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
178
178
  By Ken Fyrstenberg
179
179
  Contributions by leeoniya.
180
180
  License: MIT, header required.
181
- */var Matrix=function(){var c=Math.cos,u=Math.sin,f=Math.tan,d=Math.round;function h(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function v(zn){if(zn===0)return this;var qn=c(zn),tr=u(zn);return this._t(qn,-tr,0,0,tr,qn,0,0,0,0,1,0,0,0,0,1)}function p(zn){if(zn===0)return this;var qn=c(zn),tr=u(zn);return this._t(1,0,0,0,0,qn,-tr,0,0,tr,qn,0,0,0,0,1)}function m(zn){if(zn===0)return this;var qn=c(zn),tr=u(zn);return this._t(qn,0,tr,0,0,1,0,0,-tr,0,qn,0,0,0,0,1)}function g(zn){if(zn===0)return this;var qn=c(zn),tr=u(zn);return this._t(qn,-tr,0,0,tr,qn,0,0,0,0,1,0,0,0,0,1)}function y(zn,qn){return this._t(1,qn,zn,1,0,0)}function b(zn,qn){return this.shear(f(zn),f(qn))}function gn(zn,qn){var tr=c(qn),Un=u(qn);return this._t(tr,Un,0,0,-Un,tr,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,f(zn),1,0,0,0,0,1,0,0,0,0,1)._t(tr,-Un,0,0,Un,tr,0,0,0,0,1,0,0,0,0,1)}function x(zn,qn,tr){return!tr&&tr!==0&&(tr=1),zn===1&&qn===1&&tr===1?this:this._t(zn,0,0,0,0,qn,0,0,0,0,tr,0,0,0,0,1)}function vn(zn,qn,tr,Un,nr,cr,Qn,fr,vr,Yn,ar,ur,mr,dr,gr,lr){return this.props[0]=zn,this.props[1]=qn,this.props[2]=tr,this.props[3]=Un,this.props[4]=nr,this.props[5]=cr,this.props[6]=Qn,this.props[7]=fr,this.props[8]=vr,this.props[9]=Yn,this.props[10]=ar,this.props[11]=ur,this.props[12]=mr,this.props[13]=dr,this.props[14]=gr,this.props[15]=lr,this}function J(zn,qn,tr){return tr=tr||0,zn!==0||qn!==0||tr!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,zn,qn,tr,1):this}function j(zn,qn,tr,Un,nr,cr,Qn,fr,vr,Yn,ar,ur,mr,dr,gr,lr){var hr=this.props;if(zn===1&&qn===0&&tr===0&&Un===0&&nr===0&&cr===1&&Qn===0&&fr===0&&vr===0&&Yn===0&&ar===1&&ur===0)return hr[12]=hr[12]*zn+hr[15]*mr,hr[13]=hr[13]*cr+hr[15]*dr,hr[14]=hr[14]*ar+hr[15]*gr,hr[15]*=lr,this._identityCalculated=!1,this;var xr=hr[0],Sr=hr[1],yr=hr[2],pr=hr[3],br=hr[4],kr=hr[5],wr=hr[6],Er=hr[7],Pr=hr[8],Dr=hr[9],qr=hr[10],Rr=hr[11],Fr=hr[12],jr=hr[13],Nr=hr[14],Ur=hr[15];return hr[0]=xr*zn+Sr*nr+yr*vr+pr*mr,hr[1]=xr*qn+Sr*cr+yr*Yn+pr*dr,hr[2]=xr*tr+Sr*Qn+yr*ar+pr*gr,hr[3]=xr*Un+Sr*fr+yr*ur+pr*lr,hr[4]=br*zn+kr*nr+wr*vr+Er*mr,hr[5]=br*qn+kr*cr+wr*Yn+Er*dr,hr[6]=br*tr+kr*Qn+wr*ar+Er*gr,hr[7]=br*Un+kr*fr+wr*ur+Er*lr,hr[8]=Pr*zn+Dr*nr+qr*vr+Rr*mr,hr[9]=Pr*qn+Dr*cr+qr*Yn+Rr*dr,hr[10]=Pr*tr+Dr*Qn+qr*ar+Rr*gr,hr[11]=Pr*Un+Dr*fr+qr*ur+Rr*lr,hr[12]=Fr*zn+jr*nr+Nr*vr+Ur*mr,hr[13]=Fr*qn+jr*cr+Nr*Yn+Ur*dr,hr[14]=Fr*tr+jr*Qn+Nr*ar+Ur*gr,hr[15]=Fr*Un+jr*fr+Nr*ur+Ur*lr,this._identityCalculated=!1,this}function Fn(zn){var qn=zn.props;return this.transform(qn[0],qn[1],qn[2],qn[3],qn[4],qn[5],qn[6],qn[7],qn[8],qn[9],qn[10],qn[11],qn[12],qn[13],qn[14],qn[15])}function Bn(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function w(zn){for(var qn=0;qn<16;){if(zn.props[qn]!==this.props[qn])return!1;qn+=1}return!0}function re(zn){var qn;for(qn=0;qn<16;qn+=1)zn.props[qn]=this.props[qn];return zn}function Pn(zn){var qn;for(qn=0;qn<16;qn+=1)this.props[qn]=zn[qn]}function Rn(zn,qn,tr){return{x:zn*this.props[0]+qn*this.props[4]+tr*this.props[8]+this.props[12],y:zn*this.props[1]+qn*this.props[5]+tr*this.props[9]+this.props[13],z:zn*this.props[2]+qn*this.props[6]+tr*this.props[10]+this.props[14]}}function Vn(zn,qn,tr){return zn*this.props[0]+qn*this.props[4]+tr*this.props[8]+this.props[12]}function Wn(zn,qn,tr){return zn*this.props[1]+qn*this.props[5]+tr*this.props[9]+this.props[13]}function Gn(zn,qn,tr){return zn*this.props[2]+qn*this.props[6]+tr*this.props[10]+this.props[14]}function Zn(){var zn=this.props[0]*this.props[5]-this.props[1]*this.props[4],qn=this.props[5]/zn,tr=-this.props[1]/zn,Un=-this.props[4]/zn,nr=this.props[0]/zn,cr=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/zn,Qn=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/zn,fr=new Matrix;return fr.props[0]=qn,fr.props[1]=tr,fr.props[4]=Un,fr.props[5]=nr,fr.props[12]=cr,fr.props[13]=Qn,fr}function Xn(zn){var qn=this.getInverseMatrix();return qn.applyToPointArray(zn[0],zn[1],zn[2]||0)}function er(zn){var qn,tr=zn.length,Un=[];for(qn=0;qn<tr;qn+=1)Un[qn]=Xn(zn[qn]);return Un}function Jn(zn,qn,tr){var Un=createTypedArray("float32",6);if(this.isIdentity())Un[0]=zn[0],Un[1]=zn[1],Un[2]=qn[0],Un[3]=qn[1],Un[4]=tr[0],Un[5]=tr[1];else{var nr=this.props[0],cr=this.props[1],Qn=this.props[4],fr=this.props[5],vr=this.props[12],Yn=this.props[13];Un[0]=zn[0]*nr+zn[1]*Qn+vr,Un[1]=zn[0]*cr+zn[1]*fr+Yn,Un[2]=qn[0]*nr+qn[1]*Qn+vr,Un[3]=qn[0]*cr+qn[1]*fr+Yn,Un[4]=tr[0]*nr+tr[1]*Qn+vr,Un[5]=tr[0]*cr+tr[1]*fr+Yn}return Un}function ir(zn,qn,tr){var Un;return this.isIdentity()?Un=[zn,qn,tr]:Un=[zn*this.props[0]+qn*this.props[4]+tr*this.props[8]+this.props[12],zn*this.props[1]+qn*this.props[5]+tr*this.props[9]+this.props[13],zn*this.props[2]+qn*this.props[6]+tr*this.props[10]+this.props[14]],Un}function or(zn,qn){if(this.isIdentity())return zn+","+qn;var tr=this.props;return Math.round((zn*tr[0]+qn*tr[4]+tr[12])*100)/100+","+Math.round((zn*tr[1]+qn*tr[5]+tr[13])*100)/100}function sr(){for(var zn=0,qn=this.props,tr="matrix3d(",Un=1e4;zn<16;)tr+=d(qn[zn]*Un)/Un,tr+=zn===15?")":",",zn+=1;return tr}function Hn(zn){var qn=1e4;return zn<1e-6&&zn>0||zn>-1e-6&&zn<0?d(zn*qn)/qn:zn}function Kn(){var zn=this.props,qn=Hn(zn[0]),tr=Hn(zn[1]),Un=Hn(zn[4]),nr=Hn(zn[5]),cr=Hn(zn[12]),Qn=Hn(zn[13]);return"matrix("+qn+","+tr+","+Un+","+nr+","+cr+","+Qn+")"}return function(){this.reset=h,this.rotate=v,this.rotateX=p,this.rotateY=m,this.rotateZ=g,this.skew=b,this.skewFromAxis=gn,this.shear=y,this.scale=x,this.setTransform=vn,this.translate=J,this.transform=j,this.multiply=Fn,this.applyToPoint=Rn,this.applyToX=Vn,this.applyToY=Wn,this.applyToZ=Gn,this.applyToPointArray=ir,this.applyToTriplePoints=Jn,this.applyToPointStringified=or,this.toCSS=sr,this.to2dCSS=Kn,this.clone=re,this.cloneFromProps=Pn,this.equals=w,this.inversePoints=er,this.inversePoint=Xn,this.getInverseMatrix=Zn,this._t=this.transform,this.isIdentity=Bn,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(f){return typeof f}:_typeof$3=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},_typeof$3(c)}var lottie={};function setLocation(c){setLocationHref(c)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(c){setSubframeEnabled(c)}function setPrefix(c){setIdPrefix(c)}function loadAnimation(c){return animationManager.loadAnimation(c)}function setQuality(c){if(typeof c=="string")switch(c){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(c)&&c>1&&setDefaultCurveSegments(c)}function inBrowser(){return typeof navigator<"u"}function installPlugin(c,u){c==="expressions"&&setExpressionsPlugin(u)}function getFactory(c){switch(c){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(c){for(var u=queryString.split("&"),f=0;f<u.length;f+=1){var d=u[f].split("=");if(decodeURIComponent(d[0])==c)return decodeURIComponent(d[1])}return null}var queryString="";{var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{_typeof$3(exports)!=="object"&&(window.bodymovin=lottie)}catch(c){}var ShapeModifiers=function(){var c={},u={};c.registerModifier=f,c.getModifier=d;function f(h,v){u[h]||(u[h]=v)}function d(h,v,p){return new u[h](v,p)}return c}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(c){if(!this.closed){c.sh.container.addDynamicProperty(c.sh);var u={shape:c.sh,data:c,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(u),this.addShapeToModifier(u),this._isAnimated&&c.setAsAnimated()}},ShapeModifier.prototype.init=function(c,u){this.shapes=[],this.elem=c,this.initDynamicPropertyContainer(c),this.initModifierProperties(c,u),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(c,u){this.s=PropertyFactory.getProp(c,u.s,0,.01,this),this.e=PropertyFactory.getProp(c,u.e,0,.01,this),this.o=PropertyFactory.getProp(c,u.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=u.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(c){c.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(c,u,f,d,h){var v=[];u<=1?v.push({s:c,e:u}):c>=1?v.push({s:c-1,e:u-1}):(v.push({s:c,e:1}),v.push({s:0,e:u-1}));var p=[],m,g=v.length,y;for(m=0;m<g;m+=1)if(y=v[m],!(y.e*h<d||y.s*h>d+f)){var b,gn;y.s*h<=d?b=0:b=(y.s*h-d)/f,y.e*h>=d+f?gn=1:gn=(y.e*h-d)/f,p.push([b,gn])}return p.length||p.push([0,0]),p},TrimModifier.prototype.releasePathsData=function(c){var u,f=c.length;for(u=0;u<f;u+=1)segmentsLengthPool.release(c[u]);return c.length=0,c},TrimModifier.prototype.processShapes=function(c){var u,f;if(this._mdf||c){var d=this.o.v%360/360;if(d<0&&(d+=1),this.s.v>1?u=1+d:this.s.v<0?u=0+d:u=this.s.v+d,this.e.v>1?f=1+d:this.e.v<0?f=0+d:f=this.e.v+d,u>f){var h=u;u=f,f=h}u=Math.round(u*1e4)*1e-4,f=Math.round(f*1e4)*1e-4,this.sValue=u,this.eValue=f}else u=this.sValue,f=this.eValue;var v,p,m=this.shapes.length,g,y,b,gn,x,vn=0;if(f===u)for(p=0;p<m;p+=1)this.shapes[p].localShapeCollection.releaseShapes(),this.shapes[p].shape._mdf=!0,this.shapes[p].shape.paths=this.shapes[p].localShapeCollection,this._mdf&&(this.shapes[p].pathsData.length=0);else if(f===1&&u===0||f===0&&u===1){if(this._mdf)for(p=0;p<m;p+=1)this.shapes[p].pathsData.length=0,this.shapes[p].shape._mdf=!0}else{var J=[],j,Fn;for(p=0;p<m;p+=1)if(j=this.shapes[p],!j.shape._mdf&&!this._mdf&&!c&&this.m!==2)j.shape.paths=j.localShapeCollection;else{if(v=j.shape.paths,y=v._length,x=0,!j.shape._mdf&&j.pathsData.length)x=j.totalShapeLength;else{for(b=this.releasePathsData(j.pathsData),g=0;g<y;g+=1)gn=bez.getSegmentsLength(v.shapes[g]),b.push(gn),x+=gn.totalLength;j.totalShapeLength=x,j.pathsData=b}vn+=x,j.shape._mdf=!0}var Bn=u,w=f,re=0,Pn;for(p=m-1;p>=0;p-=1)if(j=this.shapes[p],j.shape._mdf){for(Fn=j.localShapeCollection,Fn.releaseShapes(),this.m===2&&m>1?(Pn=this.calculateShapeEdges(u,f,j.totalShapeLength,re,vn),re+=j.totalShapeLength):Pn=[[Bn,w]],y=Pn.length,g=0;g<y;g+=1){Bn=Pn[g][0],w=Pn[g][1],J.length=0,w<=1?J.push({s:j.totalShapeLength*Bn,e:j.totalShapeLength*w}):Bn>=1?J.push({s:j.totalShapeLength*(Bn-1),e:j.totalShapeLength*(w-1)}):(J.push({s:j.totalShapeLength*Bn,e:j.totalShapeLength}),J.push({s:0,e:j.totalShapeLength*(w-1)}));var Rn=this.addShapes(j,J[0]);if(J[0].s!==J[0].e){if(J.length>1){var Vn=j.shape.paths.shapes[j.shape.paths._length-1];if(Vn.c){var Wn=Rn.pop();this.addPaths(Rn,Fn),Rn=this.addShapes(j,J[1],Wn)}else this.addPaths(Rn,Fn),Rn=this.addShapes(j,J[1])}this.addPaths(Rn,Fn)}}j.shape.paths=Fn}}},TrimModifier.prototype.addPaths=function(c,u){var f,d=c.length;for(f=0;f<d;f+=1)u.addShape(c[f])},TrimModifier.prototype.addSegment=function(c,u,f,d,h,v,p){h.setXYAt(u[0],u[1],"o",v),h.setXYAt(f[0],f[1],"i",v+1),p&&h.setXYAt(c[0],c[1],"v",v),h.setXYAt(d[0],d[1],"v",v+1)},TrimModifier.prototype.addSegmentFromArray=function(c,u,f,d){u.setXYAt(c[1],c[5],"o",f),u.setXYAt(c[2],c[6],"i",f+1),d&&u.setXYAt(c[0],c[4],"v",f),u.setXYAt(c[3],c[7],"v",f+1)},TrimModifier.prototype.addShapes=function(c,u,f){var d=c.pathsData,h=c.shape.paths.shapes,v,p=c.shape.paths._length,m,g,y=0,b,gn,x,vn,J=[],j,Fn=!0;for(f?(gn=f._length,j=f._length):(f=shapePool.newElement(),gn=0,j=0),J.push(f),v=0;v<p;v+=1){for(x=d[v].lengths,f.c=h[v].c,g=h[v].c?x.length:x.length+1,m=1;m<g;m+=1)if(b=x[m-1],y+b.addedLength<u.s)y+=b.addedLength,f.c=!1;else if(y>u.e){f.c=!1;break}else u.s<=y&&u.e>=y+b.addedLength?(this.addSegment(h[v].v[m-1],h[v].o[m-1],h[v].i[m],h[v].v[m],f,gn,Fn),Fn=!1):(vn=bez.getNewSegment(h[v].v[m-1],h[v].v[m],h[v].o[m-1],h[v].i[m],(u.s-y)/b.addedLength,(u.e-y)/b.addedLength,x[m-1]),this.addSegmentFromArray(vn,f,gn,Fn),Fn=!1,f.c=!1),y+=b.addedLength,gn+=1;if(h[v].c&&x.length){if(b=x[m-1],y<=u.e){var Bn=x[m-1].addedLength;u.s<=y&&u.e>=y+Bn?(this.addSegment(h[v].v[m-1],h[v].o[m-1],h[v].i[0],h[v].v[0],f,gn,Fn),Fn=!1):(vn=bez.getNewSegment(h[v].v[m-1],h[v].v[0],h[v].o[m-1],h[v].i[0],(u.s-y)/Bn,(u.e-y)/Bn,x[m-1]),this.addSegmentFromArray(vn,f,gn,Fn),Fn=!1,f.c=!1)}else f.c=!1;y+=b.addedLength,gn+=1}if(f._length&&(f.setXYAt(f.v[j][0],f.v[j][1],"i",j),f.setXYAt(f.v[f._length-1][0],f.v[f._length-1][1],"o",f._length-1)),y>u.e)break;v<p-1&&(f=shapePool.newElement(),Fn=!0,J.push(f),gn=0)}return J};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(c,u){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(c,u.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(c,u){var f=u/100,d=[0,0],h=c._length,v=0;for(v=0;v<h;v+=1)d[0]+=c.v[v][0],d[1]+=c.v[v][1];d[0]/=h,d[1]/=h;var p=shapePool.newElement();p.c=c.c;var m,g,y,b,gn,x;for(v=0;v<h;v+=1)m=c.v[v][0]+(d[0]-c.v[v][0])*f,g=c.v[v][1]+(d[1]-c.v[v][1])*f,y=c.o[v][0]+(d[0]-c.o[v][0])*-f,b=c.o[v][1]+(d[1]-c.o[v][1])*-f,gn=c.i[v][0]+(d[0]-c.i[v][0])*-f,x=c.i[v][1]+(d[1]-c.i[v][1])*-f,p.setTripleAt(m,g,y,b,gn,x,v);return p},PuckerAndBloatModifier.prototype.processShapes=function(c){var u,f,d=this.shapes.length,h,v,p=this.amount.v;if(p!==0){var m,g;for(f=0;f<d;f+=1){if(m=this.shapes[f],g=m.localShapeCollection,!(!m.shape._mdf&&!this._mdf&&!c))for(g.releaseShapes(),m.shape._mdf=!0,u=m.shape.paths.shapes,v=m.shape.paths._length,h=0;h<v;h+=1)g.addShape(this.processPath(u[h],p));m.shape.paths=m.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var c=[0,0];function u(g){var y=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||y,this.a&&g.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&g.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&g.skewFromAxis(-this.sk.v,this.sa.v),this.r?g.rotate(-this.r.v):g.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?g.translate(this.px.v,this.py.v,-this.pz.v):g.translate(this.px.v,this.py.v,0):g.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function f(g){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||g){var y;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var b,gn;if(y=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(b=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/y,0),gn=this.p.getValueAtTime(this.p.keyframes[0].t/y,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(b=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/y,0),gn=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/y,0)):(b=this.p.pv,gn=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/y,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){b=[],gn=[];var x=this.px,vn=this.py;x._caching.lastFrame+x.offsetTime<=x.keyframes[0].t?(b[0]=x.getValueAtTime((x.keyframes[0].t+.01)/y,0),b[1]=vn.getValueAtTime((vn.keyframes[0].t+.01)/y,0),gn[0]=x.getValueAtTime(x.keyframes[0].t/y,0),gn[1]=vn.getValueAtTime(vn.keyframes[0].t/y,0)):x._caching.lastFrame+x.offsetTime>=x.keyframes[x.keyframes.length-1].t?(b[0]=x.getValueAtTime(x.keyframes[x.keyframes.length-1].t/y,0),b[1]=vn.getValueAtTime(vn.keyframes[vn.keyframes.length-1].t/y,0),gn[0]=x.getValueAtTime((x.keyframes[x.keyframes.length-1].t-.01)/y,0),gn[1]=vn.getValueAtTime((vn.keyframes[vn.keyframes.length-1].t-.01)/y,0)):(b=[x.pv,vn.pv],gn[0]=x.getValueAtTime((x._caching.lastFrame+x.offsetTime-.01)/y,x.offsetTime),gn[1]=vn.getValueAtTime((vn._caching.lastFrame+vn.offsetTime-.01)/y,vn.offsetTime))}else gn=c,b=gn;this.v.rotate(-Math.atan2(b[1]-gn[1],b[0]-gn[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function d(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function h(){}function v(g){this._addDynamicProperty(g),this.elem.addDynamicProperty(g),this._isDirty=!0}function p(g,y,b){if(this.elem=g,this.frameId=-1,this.propType="transform",this.data=y,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(b||g),y.p&&y.p.s?(this.px=PropertyFactory.getProp(g,y.p.x,0,0,this),this.py=PropertyFactory.getProp(g,y.p.y,0,0,this),y.p.z&&(this.pz=PropertyFactory.getProp(g,y.p.z,0,0,this))):this.p=PropertyFactory.getProp(g,y.p||{k:[0,0,0]},1,0,this),y.rx){if(this.rx=PropertyFactory.getProp(g,y.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(g,y.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(g,y.rz,0,degToRads,this),y.or.k[0].ti){var gn,x=y.or.k.length;for(gn=0;gn<x;gn+=1)y.or.k[gn].to=null,y.or.k[gn].ti=null}this.or=PropertyFactory.getProp(g,y.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(g,y.r||{k:0},0,degToRads,this);y.sk&&(this.sk=PropertyFactory.getProp(g,y.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(g,y.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(g,y.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(g,y.s||{k:[100,100,100]},1,.01,this),y.o?this.o=PropertyFactory.getProp(g,y.o,0,.01,g):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}p.prototype={applyToMatrix:u,getValue:f,precalculateMatrix:d,autoOrient:h},extendPrototype([DynamicPropertyContainer],p),p.prototype.addDynamicProperty=v,p.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function m(g,y,b){return new p(g,y,b)}return{getTransformProperty:m}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(c,u){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(c,u.c,0,null,this),this.o=PropertyFactory.getProp(c,u.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(c,u.tr,this),this.so=PropertyFactory.getProp(c,u.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(c,u.tr.eo,0,.01,this),this.data=u,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(c,u,f,d,h,v){var p=v?-1:1,m=d.s.v[0]+(1-d.s.v[0])*(1-h),g=d.s.v[1]+(1-d.s.v[1])*(1-h);c.translate(d.p.v[0]*p*h,d.p.v[1]*p*h,d.p.v[2]),u.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),u.rotate(-d.r.v*p*h),u.translate(d.a.v[0],d.a.v[1],d.a.v[2]),f.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),f.scale(v?1/m:m,v?1/g:g),f.translate(d.a.v[0],d.a.v[1],d.a.v[2])},RepeaterModifier.prototype.init=function(c,u,f,d){for(this.elem=c,this.arr=u,this.pos=f,this.elemsData=d,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(c),this.initModifierProperties(c,u[f]);f>0;)f-=1,this._elements.unshift(u[f]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(c){var u,f=c.length;for(u=0;u<f;u+=1)c[u]._processed=!1,c[u].ty==="gr"&&this.resetElements(c[u].it)},RepeaterModifier.prototype.cloneElements=function(c){var u=JSON.parse(JSON.stringify(c));return this.resetElements(u),u},RepeaterModifier.prototype.changeGroupRender=function(c,u){var f,d=c.length;for(f=0;f<d;f+=1)c[f]._render=u,c[f].ty==="gr"&&this.changeGroupRender(c[f].it,u)},RepeaterModifier.prototype.processShapes=function(c){var u,f,d,h,v,p=!1;if(this._mdf||c){var m=Math.ceil(this.c.v);if(this._groups.length<m){for(;this._groups.length<m;){var g={it:this.cloneElements(this._elements),ty:"gr"};g.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,g),this._groups.splice(0,0,g),this._currentCopies+=1}this.elem.reloadShapes(),p=!0}v=0;var y;for(d=0;d<=this._groups.length-1;d+=1){if(y=v<m,this._groups[d]._render=y,this.changeGroupRender(this._groups[d].it,y),!y){var b=this.elemsData[d].it,gn=b[b.length-1];gn.transform.op.v!==0?(gn.transform.op._mdf=!0,gn.transform.op.v=0):gn.transform.op._mdf=!1}v+=1}this._currentCopies=m;var x=this.o.v,vn=x%1,J=x>0?Math.floor(x):Math.ceil(x),j=this.pMatrix.props,Fn=this.rMatrix.props,Bn=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var w=0;if(x>0){for(;w<J;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),w+=1;vn&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,vn,!1),w+=vn)}else if(x<0){for(;w>J;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),w-=1;vn&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-vn,!0),w-=vn)}d=this.data.m===1?0:this._currentCopies-1,h=this.data.m===1?1:-1,v=this._currentCopies;for(var re,Pn;v;){if(u=this.elemsData[d].it,f=u[u.length-1].transform.mProps.v.props,Pn=f.length,u[u.length-1].transform.mProps._mdf=!0,u[u.length-1].transform.op._mdf=!0,u[u.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(d/(this._currentCopies-1)),w!==0){for((d!==0&&h===1||d!==this._currentCopies-1&&h===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(Fn[0],Fn[1],Fn[2],Fn[3],Fn[4],Fn[5],Fn[6],Fn[7],Fn[8],Fn[9],Fn[10],Fn[11],Fn[12],Fn[13],Fn[14],Fn[15]),this.matrix.transform(Bn[0],Bn[1],Bn[2],Bn[3],Bn[4],Bn[5],Bn[6],Bn[7],Bn[8],Bn[9],Bn[10],Bn[11],Bn[12],Bn[13],Bn[14],Bn[15]),this.matrix.transform(j[0],j[1],j[2],j[3],j[4],j[5],j[6],j[7],j[8],j[9],j[10],j[11],j[12],j[13],j[14],j[15]),re=0;re<Pn;re+=1)f[re]=this.matrix.props[re];this.matrix.reset()}else for(this.matrix.reset(),re=0;re<Pn;re+=1)f[re]=this.matrix.props[re];w+=1,v-=1,d+=h}}else for(v=this._currentCopies,d=0,h=1;v;)u=this.elemsData[d].it,f=u[u.length-1].transform.mProps.v.props,u[u.length-1].transform.mProps._mdf=!1,u[u.length-1].transform.op._mdf=!1,v-=1,d+=h;return p},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(c,u){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(c,u.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(c,u){var f=shapePool.newElement();f.c=c.c;var d,h=c._length,v,p,m,g,y,b,gn=0,x,vn,J,j,Fn,Bn;for(d=0;d<h;d+=1)v=c.v[d],m=c.o[d],p=c.i[d],v[0]===m[0]&&v[1]===m[1]&&v[0]===p[0]&&v[1]===p[1]?(d===0||d===h-1)&&!c.c?(f.setTripleAt(v[0],v[1],m[0],m[1],p[0],p[1],gn),gn+=1):(d===0?g=c.v[h-1]:g=c.v[d-1],y=Math.sqrt(Math.pow(v[0]-g[0],2)+Math.pow(v[1]-g[1],2)),b=y?Math.min(y/2,u)/y:0,Fn=v[0]+(g[0]-v[0])*b,x=Fn,Bn=v[1]-(v[1]-g[1])*b,vn=Bn,J=x-(x-v[0])*roundCorner,j=vn-(vn-v[1])*roundCorner,f.setTripleAt(x,vn,J,j,Fn,Bn,gn),gn+=1,d===h-1?g=c.v[0]:g=c.v[d+1],y=Math.sqrt(Math.pow(v[0]-g[0],2)+Math.pow(v[1]-g[1],2)),b=y?Math.min(y/2,u)/y:0,J=v[0]+(g[0]-v[0])*b,x=J,j=v[1]+(g[1]-v[1])*b,vn=j,Fn=x-(x-v[0])*roundCorner,Bn=vn-(vn-v[1])*roundCorner,f.setTripleAt(x,vn,J,j,Fn,Bn,gn),gn+=1):(f.setTripleAt(c.v[d][0],c.v[d][1],c.o[d][0],c.o[d][1],c.i[d][0],c.i[d][1],gn),gn+=1);return f},RoundCornersModifier.prototype.processShapes=function(c){var u,f,d=this.shapes.length,h,v,p=this.rd.v;if(p!==0){var m,g;for(f=0;f<d;f+=1){if(m=this.shapes[f],g=m.localShapeCollection,!(!m.shape._mdf&&!this._mdf&&!c))for(g.releaseShapes(),m.shape._mdf=!0,u=m.shape.paths.shapes,v=m.shape.paths._length,h=0;h<v;h+=1)g.addShape(this.processPath(u[h],p));m.shape.paths=m.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(c,u){return Math.abs(c-u)*1e5<=Math.min(Math.abs(c),Math.abs(u))}function floatZero(c){return Math.abs(c)<=1e-5}function lerp(c,u,f){return c*(1-f)+u*f}function lerpPoint(c,u,f){return[lerp(c[0],u[0],f),lerp(c[1],u[1],f)]}function quadRoots(c,u,f){if(c===0)return[];var d=u*u-4*c*f;if(d<0)return[];var h=-u/(2*c);if(d===0)return[h];var v=Math.sqrt(d)/(2*c);return[h-v,h+v]}function polynomialCoefficients(c,u,f,d){return[-c+3*u-3*f+d,3*c-6*u+3*f,-3*c+3*u,c]}function singlePoint(c){return new PolynomialBezier(c,c,c,c,!1)}function PolynomialBezier(c,u,f,d,h){h&&pointEqual(c,u)&&(u=lerpPoint(c,d,1/3)),h&&pointEqual(f,d)&&(f=lerpPoint(c,d,2/3));var v=polynomialCoefficients(c[0],u[0],f[0],d[0]),p=polynomialCoefficients(c[1],u[1],f[1],d[1]);this.a=[v[0],p[0]],this.b=[v[1],p[1]],this.c=[v[2],p[2]],this.d=[v[3],p[3]],this.points=[c,u,f,d]}PolynomialBezier.prototype.point=function(c){return[((this.a[0]*c+this.b[0])*c+this.c[0])*c+this.d[0],((this.a[1]*c+this.b[1])*c+this.c[1])*c+this.d[1]]},PolynomialBezier.prototype.derivative=function(c){return[(3*c*this.a[0]+2*this.b[0])*c+this.c[0],(3*c*this.a[1]+2*this.b[1])*c+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(c){var u=this.derivative(c);return Math.atan2(u[1],u[0])},PolynomialBezier.prototype.normalAngle=function(c){var u=this.derivative(c);return Math.atan2(u[0],u[1])},PolynomialBezier.prototype.inflectionPoints=function(){var c=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(c))return[];var u=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/c,f=u*u-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/c;if(f<0)return[];var d=Math.sqrt(f);return floatZero(d)?d>0&&d<1?[u]:[]:[u-d,u+d].filter(function(h){return h>0&&h<1})},PolynomialBezier.prototype.split=function(c){if(c<=0)return[singlePoint(this.points[0]),this];if(c>=1)return[this,singlePoint(this.points[this.points.length-1])];var u=lerpPoint(this.points[0],this.points[1],c),f=lerpPoint(this.points[1],this.points[2],c),d=lerpPoint(this.points[2],this.points[3],c),h=lerpPoint(u,f,c),v=lerpPoint(f,d,c),p=lerpPoint(h,v,c);return[new PolynomialBezier(this.points[0],u,h,p,!0),new PolynomialBezier(p,v,d,this.points[3],!0)]};function extrema(c,u){var f=c.points[0][u],d=c.points[c.points.length-1][u];if(f>d){var h=d;d=f,f=h}for(var v=quadRoots(3*c.a[u],2*c.b[u],c.c[u]),p=0;p<v.length;p+=1)if(v[p]>0&&v[p]<1){var m=c.point(v[p])[u];m<f?f=m:m>d&&(d=m)}return{min:f,max:d}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var c=this.bounds();return{left:c.x.min,right:c.x.max,top:c.y.min,bottom:c.y.max,width:c.x.max-c.x.min,height:c.y.max-c.y.min,cx:(c.x.max+c.x.min)/2,cy:(c.y.max+c.y.min)/2}};function intersectData(c,u,f){var d=c.boundingBox();return{cx:d.cx,cy:d.cy,width:d.width,height:d.height,bez:c,t:(u+f)/2,t1:u,t2:f}}function splitData(c){var u=c.bez.split(.5);return[intersectData(u[0],c.t1,c.t),intersectData(u[1],c.t,c.t2)]}function boxIntersect(c,u){return Math.abs(c.cx-u.cx)*2<c.width+u.width&&Math.abs(c.cy-u.cy)*2<c.height+u.height}function intersectsImpl(c,u,f,d,h,v){if(boxIntersect(c,u)){if(f>=v||c.width<=d&&c.height<=d&&u.width<=d&&u.height<=d){h.push([c.t,u.t]);return}var p=splitData(c),m=splitData(u);intersectsImpl(p[0],m[0],f+1,d,h,v),intersectsImpl(p[0],m[1],f+1,d,h,v),intersectsImpl(p[1],m[0],f+1,d,h,v),intersectsImpl(p[1],m[1],f+1,d,h,v)}}PolynomialBezier.prototype.intersections=function(c,u,f){u===void 0&&(u=2),f===void 0&&(f=7);var d=[];return intersectsImpl(intersectData(this,0,1),intersectData(c,0,1),0,u,d,f),d},PolynomialBezier.shapeSegment=function(c,u){var f=(u+1)%c.length();return new PolynomialBezier(c.v[u],c.o[u],c.i[f],c.v[f],!0)},PolynomialBezier.shapeSegmentInverted=function(c,u){var f=(u+1)%c.length();return new PolynomialBezier(c.v[f],c.i[f],c.o[u],c.v[u],!0)};function crossProduct(c,u){return[c[1]*u[2]-c[2]*u[1],c[2]*u[0]-c[0]*u[2],c[0]*u[1]-c[1]*u[0]]}function lineIntersection(c,u,f,d){var h=[c[0],c[1],1],v=[u[0],u[1],1],p=[f[0],f[1],1],m=[d[0],d[1],1],g=crossProduct(crossProduct(h,v),crossProduct(p,m));return floatZero(g[2])?null:[g[0]/g[2],g[1]/g[2]]}function polarOffset(c,u,f){return[c[0]+Math.cos(u)*f,c[1]-Math.sin(u)*f]}function pointDistance(c,u){return Math.hypot(c[0]-u[0],c[1]-u[1])}function pointEqual(c,u){return floatEqual(c[0],u[0])&&floatEqual(c[1],u[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(c,u){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(c,u.s,0,null,this),this.frequency=PropertyFactory.getProp(c,u.r,0,null,this),this.pointsType=PropertyFactory.getProp(c,u.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(c,u,f,d,h,v,p){var m=f-Math.PI/2,g=f+Math.PI/2,y=u[0]+Math.cos(f)*d*h,b=u[1]-Math.sin(f)*d*h;c.setTripleAt(y,b,y+Math.cos(m)*v,b-Math.sin(m)*v,y+Math.cos(g)*p,b-Math.sin(g)*p,c.length())}function getPerpendicularVector(c,u){var f=[u[0]-c[0],u[1]-c[1]],d=-Math.PI*.5,h=[Math.cos(d)*f[0]-Math.sin(d)*f[1],Math.sin(d)*f[0]+Math.cos(d)*f[1]];return h}function getProjectingAngle(c,u){var f=u===0?c.length()-1:u-1,d=(u+1)%c.length(),h=c.v[f],v=c.v[d],p=getPerpendicularVector(h,v);return Math.atan2(0,1)-Math.atan2(p[1],p[0])}function zigZagCorner(c,u,f,d,h,v,p){var m=getProjectingAngle(u,f),g=u.v[f%u._length],y=u.v[f===0?u._length-1:f-1],b=u.v[(f+1)%u._length],gn=v===2?Math.sqrt(Math.pow(g[0]-y[0],2)+Math.pow(g[1]-y[1],2)):0,x=v===2?Math.sqrt(Math.pow(g[0]-b[0],2)+Math.pow(g[1]-b[1],2)):0;setPoint(c,u.v[f%u._length],m,p,d,x/((h+1)*2),gn/((h+1)*2))}function zigZagSegment(c,u,f,d,h,v){for(var p=0;p<d;p+=1){var m=(p+1)/(d+1),g=h===2?Math.sqrt(Math.pow(u.points[3][0]-u.points[0][0],2)+Math.pow(u.points[3][1]-u.points[0][1],2)):0,y=u.normalAngle(m),b=u.point(m);setPoint(c,b,y,v,f,g/((d+1)*2),g/((d+1)*2)),v=-v}return v}ZigZagModifier.prototype.processPath=function(c,u,f,d){var h=c._length,v=shapePool.newElement();if(v.c=c.c,c.c||(h-=1),h===0)return v;var p=-1,m=PolynomialBezier.shapeSegment(c,0);zigZagCorner(v,c,0,u,f,d,p);for(var g=0;g<h;g+=1)p=zigZagSegment(v,m,u,f,d,-p),g===h-1&&!c.c?m=null:m=PolynomialBezier.shapeSegment(c,(g+1)%h),zigZagCorner(v,c,g+1,u,f,d,p);return v},ZigZagModifier.prototype.processShapes=function(c){var u,f,d=this.shapes.length,h,v,p=this.amplitude.v,m=Math.max(0,Math.round(this.frequency.v)),g=this.pointsType.v;if(p!==0){var y,b;for(f=0;f<d;f+=1){if(y=this.shapes[f],b=y.localShapeCollection,!(!y.shape._mdf&&!this._mdf&&!c))for(b.releaseShapes(),y.shape._mdf=!0,u=y.shape.paths.shapes,v=y.shape.paths._length,h=0;h<v;h+=1)b.addShape(this.processPath(u[h],p,m,g));y.shape.paths=y.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(c,u,f){var d=Math.atan2(u[0]-c[0],u[1]-c[1]);return[polarOffset(c,d,f),polarOffset(u,d,f)]}function offsetSegment(c,u){var f,d,h,v,p,m,g;g=linearOffset(c.points[0],c.points[1],u),f=g[0],d=g[1],g=linearOffset(c.points[1],c.points[2],u),h=g[0],v=g[1],g=linearOffset(c.points[2],c.points[3],u),p=g[0],m=g[1];var y=lineIntersection(f,d,h,v);y===null&&(y=d);var b=lineIntersection(p,m,h,v);return b===null&&(b=p),new PolynomialBezier(f,y,b,m)}function joinLines(c,u,f,d,h){var v=u.points[3],p=f.points[0];if(d===3||pointEqual(v,p))return v;if(d===2){var m=-u.tangentAngle(1),g=-f.tangentAngle(0)+Math.PI,y=lineIntersection(v,polarOffset(v,m+Math.PI/2,100),p,polarOffset(p,m+Math.PI/2,100)),b=y?pointDistance(y,v):pointDistance(v,p)/2,gn=polarOffset(v,m,2*b*roundCorner);return c.setXYAt(gn[0],gn[1],"o",c.length()-1),gn=polarOffset(p,g,2*b*roundCorner),c.setTripleAt(p[0],p[1],p[0],p[1],gn[0],gn[1],c.length()),p}var x=pointEqual(v,u.points[2])?u.points[0]:u.points[2],vn=pointEqual(p,f.points[1])?f.points[3]:f.points[1],J=lineIntersection(x,v,p,vn);return J&&pointDistance(J,v)<h?(c.setTripleAt(J[0],J[1],J[0],J[1],J[0],J[1],c.length()),J):v}function getIntersection(c,u){var f=c.intersections(u);return f.length&&floatEqual(f[0][0],1)&&f.shift(),f.length?f[0]:null}function pruneSegmentIntersection(c,u){var f=c.slice(),d=u.slice(),h=getIntersection(c[c.length-1],u[0]);return h&&(f[c.length-1]=c[c.length-1].split(h[0])[0],d[0]=u[0].split(h[1])[1]),c.length>1&&u.length>1&&(h=getIntersection(c[0],u[u.length-1]),h)?[[c[0].split(h[0])[0]],[u[u.length-1].split(h[1])[1]]]:[f,d]}function pruneIntersections(c){for(var u,f=1;f<c.length;f+=1)u=pruneSegmentIntersection(c[f-1],c[f]),c[f-1]=u[0],c[f]=u[1];return c.length>1&&(u=pruneSegmentIntersection(c[c.length-1],c[0]),c[c.length-1]=u[0],c[0]=u[1]),c}function offsetSegmentSplit(c,u){var f=c.inflectionPoints(),d,h,v,p;if(f.length===0)return[offsetSegment(c,u)];if(f.length===1||floatEqual(f[1],1))return v=c.split(f[0]),d=v[0],h=v[1],[offsetSegment(d,u),offsetSegment(h,u)];v=c.split(f[0]),d=v[0];var m=(f[1]-f[0])/(1-f[0]);return v=v[1].split(m),p=v[0],h=v[1],[offsetSegment(d,u),offsetSegment(p,u),offsetSegment(h,u)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(c,u){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(c,u.a,0,null,this),this.miterLimit=PropertyFactory.getProp(c,u.ml,0,null,this),this.lineJoin=u.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(c,u,f,d){var h=shapePool.newElement();h.c=c.c;var v=c.length();c.c||(v-=1);var p,m,g,y=[];for(p=0;p<v;p+=1)g=PolynomialBezier.shapeSegment(c,p),y.push(offsetSegmentSplit(g,u));if(!c.c)for(p=v-1;p>=0;p-=1)g=PolynomialBezier.shapeSegmentInverted(c,p),y.push(offsetSegmentSplit(g,u));y=pruneIntersections(y);var b=null,gn=null;for(p=0;p<y.length;p+=1){var x=y[p];for(gn&&(b=joinLines(h,gn,x[0],f,d)),gn=x[x.length-1],m=0;m<x.length;m+=1)g=x[m],b&&pointEqual(g.points[0],b)?h.setXYAt(g.points[1][0],g.points[1][1],"o",h.length()-1):h.setTripleAt(g.points[0][0],g.points[0][1],g.points[1][0],g.points[1][1],g.points[0][0],g.points[0][1],h.length()),h.setTripleAt(g.points[3][0],g.points[3][1],g.points[3][0],g.points[3][1],g.points[2][0],g.points[2][1],h.length()),b=g.points[3]}return y.length&&joinLines(h,gn,y[0][0],f,d),h},OffsetPathModifier.prototype.processShapes=function(c){var u,f,d=this.shapes.length,h,v,p=this.amount.v,m=this.miterLimit.v,g=this.lineJoin;if(p!==0){var y,b;for(f=0;f<d;f+=1){if(y=this.shapes[f],b=y.localShapeCollection,!(!y.shape._mdf&&!this._mdf&&!c))for(b.releaseShapes(),y.shape._mdf=!0,u=y.shape.paths.shapes,v=y.shape.paths._length,h=0;h<v;h+=1)b.addShape(this.processPath(u[h],p,g,m));y.shape.paths=y.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(c){for(var u=c.fStyle?c.fStyle.split(" "):[],f="normal",d="normal",h=u.length,v,p=0;p<h;p+=1)switch(v=u[p].toLowerCase(),v){case"italic":d="italic";break;case"bold":f="700";break;case"black":f="900";break;case"medium":f="500";break;case"regular":case"normal":f="400";break;case"light":case"thin":f="200";break}return{style:d,weight:c.fWeight||f}}var FontManager=function(){var c=5e3,u={w:0,size:0,shapes:[],data:{shapes:[]}},f=[];f=f.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var d=127988,h=917631,v=917601,p=917626,m=65039,g=8205,y=127462,b=127487,gn=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function x(Hn){var Kn=Hn.split(","),zn,qn=Kn.length,tr=[];for(zn=0;zn<qn;zn+=1)Kn[zn]!=="sans-serif"&&Kn[zn]!=="monospace"&&tr.push(Kn[zn]);return tr.join(",")}function vn(Hn,Kn){var zn=createTag("span");zn.setAttribute("aria-hidden",!0),zn.style.fontFamily=Kn;var qn=createTag("span");qn.innerText="giItT1WQy@!-/#",zn.style.position="absolute",zn.style.left="-10000px",zn.style.top="-10000px",zn.style.fontSize="300px",zn.style.fontVariant="normal",zn.style.fontStyle="normal",zn.style.fontWeight="normal",zn.style.letterSpacing="0",zn.appendChild(qn),document.body.appendChild(zn);var tr=qn.offsetWidth;return qn.style.fontFamily=x(Hn)+", "+Kn,{node:qn,w:tr,parent:zn}}function J(){var Hn,Kn=this.fonts.length,zn,qn,tr=Kn;for(Hn=0;Hn<Kn;Hn+=1)this.fonts[Hn].loaded?tr-=1:this.fonts[Hn].fOrigin==="n"||this.fonts[Hn].origin===0?this.fonts[Hn].loaded=!0:(zn=this.fonts[Hn].monoCase.node,qn=this.fonts[Hn].monoCase.w,zn.offsetWidth!==qn?(tr-=1,this.fonts[Hn].loaded=!0):(zn=this.fonts[Hn].sansCase.node,qn=this.fonts[Hn].sansCase.w,zn.offsetWidth!==qn&&(tr-=1,this.fonts[Hn].loaded=!0)),this.fonts[Hn].loaded&&(this.fonts[Hn].sansCase.parent.parentNode.removeChild(this.fonts[Hn].sansCase.parent),this.fonts[Hn].monoCase.parent.parentNode.removeChild(this.fonts[Hn].monoCase.parent)));tr!==0&&Date.now()-this.initTime<c?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function j(Hn,Kn){var zn=document.body&&Kn?"svg":"canvas",qn,tr=getFontProperties(Hn);if(zn==="svg"){var Un=createNS("text");Un.style.fontSize="100px",Un.setAttribute("font-family",Hn.fFamily),Un.setAttribute("font-style",tr.style),Un.setAttribute("font-weight",tr.weight),Un.textContent="1",Hn.fClass?(Un.style.fontFamily="inherit",Un.setAttribute("class",Hn.fClass)):Un.style.fontFamily=Hn.fFamily,Kn.appendChild(Un),qn=Un}else{var nr=new OffscreenCanvas(500,500).getContext("2d");nr.font=tr.style+" "+tr.weight+" 100px "+Hn.fFamily,qn=nr}function cr(Qn){return zn==="svg"?(qn.textContent=Qn,qn.getComputedTextLength()):qn.measureText(Qn).width}return{measureText:cr}}function Fn(Hn,Kn){if(!Hn){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=Hn.list;return}if(!document.body){this.isLoaded=!0,Hn.list.forEach(function(ar){ar.helper=j(ar),ar.cache={}}),this.fonts=Hn.list;return}var zn=Hn.list,qn,tr=zn.length,Un=tr;for(qn=0;qn<tr;qn+=1){var nr=!0,cr,Qn;if(zn[qn].loaded=!1,zn[qn].monoCase=vn(zn[qn].fFamily,"monospace"),zn[qn].sansCase=vn(zn[qn].fFamily,"sans-serif"),!zn[qn].fPath)zn[qn].loaded=!0,Un-=1;else if(zn[qn].fOrigin==="p"||zn[qn].origin===3){if(cr=document.querySelectorAll('style[f-forigin="p"][f-family="'+zn[qn].fFamily+'"], style[f-origin="3"][f-family="'+zn[qn].fFamily+'"]'),cr.length>0&&(nr=!1),nr){var fr=createTag("style");fr.setAttribute("f-forigin",zn[qn].fOrigin),fr.setAttribute("f-origin",zn[qn].origin),fr.setAttribute("f-family",zn[qn].fFamily),fr.type="text/css",fr.innerText="@font-face {font-family: "+zn[qn].fFamily+"; font-style: normal; src: url('"+zn[qn].fPath+"');}",Kn.appendChild(fr)}}else if(zn[qn].fOrigin==="g"||zn[qn].origin===1){for(cr=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Qn=0;Qn<cr.length;Qn+=1)cr[Qn].href.indexOf(zn[qn].fPath)!==-1&&(nr=!1);if(nr){var vr=createTag("link");vr.setAttribute("f-forigin",zn[qn].fOrigin),vr.setAttribute("f-origin",zn[qn].origin),vr.type="text/css",vr.rel="stylesheet",vr.href=zn[qn].fPath,document.body.appendChild(vr)}}else if(zn[qn].fOrigin==="t"||zn[qn].origin===2){for(cr=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Qn=0;Qn<cr.length;Qn+=1)zn[qn].fPath===cr[Qn].src&&(nr=!1);if(nr){var Yn=createTag("link");Yn.setAttribute("f-forigin",zn[qn].fOrigin),Yn.setAttribute("f-origin",zn[qn].origin),Yn.setAttribute("rel","stylesheet"),Yn.setAttribute("href",zn[qn].fPath),Kn.appendChild(Yn)}}zn[qn].helper=j(zn[qn],Kn),zn[qn].cache={},this.fonts.push(zn[qn])}Un===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function Bn(Hn){if(Hn){this.chars||(this.chars=[]);var Kn,zn=Hn.length,qn,tr=this.chars.length,Un;for(Kn=0;Kn<zn;Kn+=1){for(qn=0,Un=!1;qn<tr;)this.chars[qn].style===Hn[Kn].style&&this.chars[qn].fFamily===Hn[Kn].fFamily&&this.chars[qn].ch===Hn[Kn].ch&&(Un=!0),qn+=1;Un||(this.chars.push(Hn[Kn]),tr+=1)}}}function w(Hn,Kn,zn){for(var qn=0,tr=this.chars.length;qn<tr;){if(this.chars[qn].ch===Hn&&this.chars[qn].style===Kn&&this.chars[qn].fFamily===zn)return this.chars[qn];qn+=1}return(typeof Hn=="string"&&Hn.charCodeAt(0)!==13||!Hn)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",Hn,Kn,zn)),u}function re(Hn,Kn,zn){var qn=this.getFontByName(Kn),tr=Hn;if(!qn.cache[tr]){var Un=qn.helper;if(Hn===" "){var nr=Un.measureText("|"+Hn+"|"),cr=Un.measureText("||");qn.cache[tr]=(nr-cr)/100}else qn.cache[tr]=Un.measureText(Hn)/100}return qn.cache[tr]*zn}function Pn(Hn){for(var Kn=0,zn=this.fonts.length;Kn<zn;){if(this.fonts[Kn].fName===Hn)return this.fonts[Kn];Kn+=1}return this.fonts[0]}function Rn(Hn){var Kn=0,zn=Hn.charCodeAt(0);if(zn>=55296&&zn<=56319){var qn=Hn.charCodeAt(1);qn>=56320&&qn<=57343&&(Kn=(zn-55296)*1024+qn-56320+65536)}return Kn}function Vn(Hn,Kn){var zn=Hn.toString(16)+Kn.toString(16);return gn.indexOf(zn)!==-1}function Wn(Hn){return Hn===g}function Gn(Hn){return Hn===m}function Zn(Hn){var Kn=Rn(Hn);return Kn>=y&&Kn<=b}function Xn(Hn){return Zn(Hn.substr(0,2))&&Zn(Hn.substr(2,2))}function er(Hn){return f.indexOf(Hn)!==-1}function Jn(Hn,Kn){var zn=Rn(Hn.substr(Kn,2));if(zn!==d)return!1;var qn=0;for(Kn+=2;qn<5;){if(zn=Rn(Hn.substr(Kn,2)),zn<v||zn>p)return!1;qn+=1,Kn+=2}return Rn(Hn.substr(Kn,2))===h}function ir(){this.isLoaded=!0}var or=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};or.isModifier=Vn,or.isZeroWidthJoiner=Wn,or.isFlagEmoji=Xn,or.isRegionalCode=Zn,or.isCombinedCharacter=er,or.isRegionalFlag=Jn,or.isVariationSelector=Gn,or.BLACK_FLAG_CODE_POINT=d;var sr={addChars:Bn,addFonts:Fn,getCharData:w,getFontByName:Pn,measureText:re,checkLoadedFonts:J,setIsLoaded:ir};return or.prototype=sr,or}();function SlotManager(c){this.animationData=c}SlotManager.prototype.getProp=function(c){return this.animationData.slots&&this.animationData.slots[c.sid]?Object.assign(c,this.animationData.slots[c.sid].p):c};function slotFactory(c){return new SlotManager(c)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(u){this.renderableComponents.indexOf(u)===-1&&this.renderableComponents.push(u)},removeRenderableComponent:function(u){this.renderableComponents.indexOf(u)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(u),1)},prepareRenderableFrame:function(u){this.checkLayerLimits(u)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(u){this.data.ip-this.data.st<=u&&this.data.op-this.data.st>u?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var u,f=this.renderableComponents.length;for(u=0;u<f;u+=1)this.renderableComponents[u].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=function(){var c={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(u){return c[u]||""}}();function SliderEffect(c,u,f){this.p=PropertyFactory.getProp(u,c.v,0,0,f)}function AngleEffect(c,u,f){this.p=PropertyFactory.getProp(u,c.v,0,0,f)}function ColorEffect(c,u,f){this.p=PropertyFactory.getProp(u,c.v,1,0,f)}function PointEffect(c,u,f){this.p=PropertyFactory.getProp(u,c.v,1,0,f)}function LayerIndexEffect(c,u,f){this.p=PropertyFactory.getProp(u,c.v,0,0,f)}function MaskIndexEffect(c,u,f){this.p=PropertyFactory.getProp(u,c.v,0,0,f)}function CheckboxEffect(c,u,f){this.p=PropertyFactory.getProp(u,c.v,0,0,f)}function NoValueEffect(){this.p={}}function EffectsManager(c,u){var f=c.ef||[];this.effectElements=[];var d,h=f.length,v;for(d=0;d<h;d+=1)v=new GroupEffect(f[d],u),this.effectElements.push(v)}function GroupEffect(c,u){this.init(c,u)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(c,u){this.data=c,this.effectElements=[],this.initDynamicPropertyContainer(u);var f,d=this.data.ef.length,h,v=this.data.ef;for(f=0;f<d;f+=1){switch(h=null,v[f].ty){case 0:h=new SliderEffect(v[f],u,this);break;case 1:h=new AngleEffect(v[f],u,this);break;case 2:h=new ColorEffect(v[f],u,this);break;case 3:h=new PointEffect(v[f],u,this);break;case 4:case 7:h=new CheckboxEffect(v[f],u,this);break;case 10:h=new LayerIndexEffect(v[f],u,this);break;case 11:h=new MaskIndexEffect(v[f],u,this);break;case 5:h=new EffectsManager(v[f],u);break;default:h=new NoValueEffect(v[f]);break}h&&this.effectElements.push(h)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var u=0,f=this.data.masksProperties.length;u<f;){if(this.data.masksProperties[u].mode!=="n"&&this.data.masksProperties[u].cl!==!1)return!0;u+=1}return!1},initExpressions:function(){var u=getExpressionInterfaces();if(u){var f=u("layer"),d=u("effects"),h=u("shape"),v=u("text"),p=u("comp");this.layerInterface=f(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var m=d.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(m),this.data.ty===0||this.data.xt?this.compInterface=p(this):this.data.ty===4?(this.layerInterface.shapeInterface=h(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=v(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var u=getBlendMode(this.data.bm),f=this.baseElement||this.layerElement;f.style["mix-blend-mode"]=u},initBaseData:function(u,f,d){this.globalData=f,this.comp=d,this.data=u,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function FrameElement(){}FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(u,f){var d,h=this.dynamicProperties.length;for(d=0;d<h;d+=1)(f||this._isParent&&this.dynamicProperties[d].propType==="transform")&&(this.dynamicProperties[d].getValue(),this.dynamicProperties[d]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(u){this.dynamicProperties.indexOf(u)===-1&&this.dynamicProperties.push(u)}};function FootageElement(c,u,f){this.initFrame(),this.initRenderable(),this.assetData=u.getAssetData(c.refId),this.footageData=u.imageLoader.getAsset(this.assetData),this.initBaseData(c,u,f)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var c=getExpressionInterfaces();if(c){var u=c("footage");this.layerInterface=u(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(c,u,f){this.initFrame(),this.initRenderable(),this.assetData=u.getAssetData(c.refId),this.initBaseData(c,u,f),this._isPlaying=!1,this._canPlay=!1;var d=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(d),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=c.tm?PropertyFactory.getProp(this,c.tm,0,u.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,c.au&&c.au.lv?c.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(c){if(this.prepareRenderableFrame(c,!0),this.prepareProperties(c,!0),this.tm._placeholder)this._currentTime=c/this.data.sr;else{var u=this.tm.v;this._currentTime=u}this._volume=this.lv.v[0];var f=this._volume*this._volumeMultiplier;this._previousVolume!==f&&(this._previousVolume=f,this.audio.volume(f))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(c){this.audio.rate(c)},AudioElement.prototype.volume=function(c){this._volumeMultiplier=c,this._previousVolume=c*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(c){var u,f=this.layers.length,d;for(this.completeLayers=!0,u=f-1;u>=0;u-=1)this.elements[u]||(d=this.layers[u],d.ip-d.st<=c-this.layers[u].st&&d.op-d.st>c-this.layers[u].st&&this.buildItem(u)),this.completeLayers=this.elements[u]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(c){switch(c.ty){case 2:return this.createImage(c);case 0:return this.createComp(c);case 1:return this.createSolid(c);case 3:return this.createNull(c);case 4:return this.createShape(c);case 5:return this.createText(c);case 6:return this.createAudio(c);case 13:return this.createCamera(c);case 15:return this.createFootage(c);default:return this.createNull(c)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(c){return new AudioElement(c,this.globalData,this)},BaseRenderer.prototype.createFootage=function(c){return new FootageElement(c,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var c,u=this.layers.length;for(c=0;c<u;c+=1)this.buildItem(c);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(c){this.completeLayers=!1;var u,f=c.length,d,h=this.layers.length;for(u=0;u<f;u+=1)for(d=0;d<h;){if(this.layers[d].id===c[u].id){this.layers[d]=c[u];break}d+=1}},BaseRenderer.prototype.setProjectInterface=function(c){this.globalData.projectInterface=c},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(c,u,f){for(var d=this.elements,h=this.layers,v=0,p=h.length;v<p;)h[v].ind==u&&(!d[v]||d[v]===!0?(this.buildItem(v),this.addPendingElement(c)):(f.push(d[v]),d[v].setAsParent(),h[v].parent!==void 0?this.buildElementParenting(c,h[v].parent,f):c.setHierarchy(f))),v+=1},BaseRenderer.prototype.addPendingElement=function(c){this.pendingElements.push(c)},BaseRenderer.prototype.searchExtraCompositions=function(c){var u,f=c.length;for(u=0;u<f;u+=1)if(c[u].xt){var d=this.createComp(c[u]);d.initExpressions(),this.globalData.projectInterface.registerComposition(d)}},BaseRenderer.prototype.getElementById=function(c){var u,f=this.elements.length;for(u=0;u<f;u+=1)if(this.elements[u].data.ind===c)return this.elements[u];return null},BaseRenderer.prototype.getElementByPath=function(c){var u=c.shift(),f;if(typeof u=="number")f=this.elements[u];else{var d,h=this.elements.length;for(d=0;d<h;d+=1)if(this.elements[d].data.nm===u){f=this.elements[d];break}}return c.length===0?f:f.getElementByPath(c)},BaseRenderer.prototype.setupGlobalData=function(c,u){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(c),this.globalData.fontManager.addChars(c.chars),this.globalData.fontManager.addFonts(c.fonts,u),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=c.fr,this.globalData.nm=c.nm,this.globalData.compSize={w:c.w,h:c.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var u=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:u,localMat:u,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var u,f=this.finalTransform.mat,d=0,h=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;d<h;){if(this.hierarchy[d].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}d+=1}if(this.finalTransform._matMdf)for(u=this.finalTransform.mProp.v.props,f.cloneFromProps(u),d=0;d<h;d+=1)f.multiply(this.hierarchy[d].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var u=0,f=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;u<f;)this.localTransforms[u]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[u]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),u+=1;if(this.finalTransform._localMatMdf){var d=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(d),u=1;u<f;u+=1){var h=this.localTransforms[u].matrix;d.multiply(h)}d.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var v=this.finalTransform.localOpacity;for(u=0;u<f;u+=1)v*=this.localTransforms[u].opacity*.01;this.finalTransform.localOpacity=v}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var u=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(u.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var f=0,d=u.length;for(f=0;f<d;f+=1)this.localTransforms.push(u[f])}}},globalToLocal:function(u){var f=[];f.push(this.finalTransform);for(var d=!0,h=this.comp;d;)h.finalTransform?(h.data.hasMask&&f.splice(0,0,h.finalTransform),h=h.comp):d=!1;var v,p=f.length,m;for(v=0;v<p;v+=1)m=f[v].mat.applyToPointArray(0,0,0),u=[u[0]-m[0],u[1]-m[1],0];return u},mHelper:new Matrix};function MaskElement(c,u,f){this.data=c,this.element=u,this.globalData=f,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var d=this.globalData.defs,h,v=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(v),this.solidPath="";var p,m=this.masksProperties,g=0,y=[],b,gn,x=createElementID(),vn,J,j,Fn,Bn="clipPath",w="clip-path";for(h=0;h<v;h+=1)if((m[h].mode!=="a"&&m[h].mode!=="n"||m[h].inv||m[h].o.k!==100||m[h].o.x)&&(Bn="mask",w="mask"),(m[h].mode==="s"||m[h].mode==="i")&&g===0?(vn=createNS("rect"),vn.setAttribute("fill","#ffffff"),vn.setAttribute("width",this.element.comp.data.w||0),vn.setAttribute("height",this.element.comp.data.h||0),y.push(vn)):vn=null,p=createNS("path"),m[h].mode==="n")this.viewData[h]={op:PropertyFactory.getProp(this.element,m[h].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,m[h],3),elem:p,lastPath:""},d.appendChild(p);else{g+=1,p.setAttribute("fill",m[h].mode==="s"?"#000000":"#ffffff"),p.setAttribute("clip-rule","nonzero");var re;if(m[h].x.k!==0?(Bn="mask",w="mask",Fn=PropertyFactory.getProp(this.element,m[h].x,0,null,this.element),re=createElementID(),J=createNS("filter"),J.setAttribute("id",re),j=createNS("feMorphology"),j.setAttribute("operator","erode"),j.setAttribute("in","SourceGraphic"),j.setAttribute("radius","0"),J.appendChild(j),d.appendChild(J),p.setAttribute("stroke",m[h].mode==="s"?"#000000":"#ffffff")):(j=null,Fn=null),this.storedData[h]={elem:p,x:Fn,expan:j,lastPath:"",lastOperator:"",filterId:re,lastRadius:0},m[h].mode==="i"){gn=y.length;var Pn=createNS("g");for(b=0;b<gn;b+=1)Pn.appendChild(y[b]);var Rn=createNS("mask");Rn.setAttribute("mask-type","alpha"),Rn.setAttribute("id",x+"_"+g),Rn.appendChild(p),d.appendChild(Rn),Pn.setAttribute("mask","url("+getLocationHref()+"#"+x+"_"+g+")"),y.length=0,y.push(Pn)}else y.push(p);m[h].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[h]={elem:p,lastPath:"",op:PropertyFactory.getProp(this.element,m[h].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,m[h],3),invRect:vn},this.viewData[h].prop.k||this.drawPath(m[h],this.viewData[h].prop.v,this.viewData[h])}for(this.maskElement=createNS(Bn),v=y.length,h=0;h<v;h+=1)this.maskElement.appendChild(y[h]);g>0&&(this.maskElement.setAttribute("id",x),this.element.maskedElement.setAttribute(w,"url("+getLocationHref()+"#"+x+")"),d.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(c){return this.viewData[c].prop},MaskElement.prototype.renderFrame=function(c){var u=this.element.finalTransform.mat,f,d=this.masksProperties.length;for(f=0;f<d;f+=1)if((this.viewData[f].prop._mdf||c)&&this.drawPath(this.masksProperties[f],this.viewData[f].prop.v,this.viewData[f]),(this.viewData[f].op._mdf||c)&&this.viewData[f].elem.setAttribute("fill-opacity",this.viewData[f].op.v),this.masksProperties[f].mode!=="n"&&(this.viewData[f].invRect&&(this.element.finalTransform.mProp._mdf||c)&&this.viewData[f].invRect.setAttribute("transform",u.getInverseMatrix().to2dCSS()),this.storedData[f].x&&(this.storedData[f].x._mdf||c))){var h=this.storedData[f].expan;this.storedData[f].x.v<0?(this.storedData[f].lastOperator!=="erode"&&(this.storedData[f].lastOperator="erode",this.storedData[f].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[f].filterId+")")),h.setAttribute("radius",-this.storedData[f].x.v)):(this.storedData[f].lastOperator!=="dilate"&&(this.storedData[f].lastOperator="dilate",this.storedData[f].elem.setAttribute("filter",null)),this.storedData[f].elem.setAttribute("stroke-width",this.storedData[f].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var c="M0,0 ";return c+=" h"+this.globalData.compSize.w,c+=" v"+this.globalData.compSize.h,c+=" h-"+this.globalData.compSize.w,c+=" v-"+this.globalData.compSize.h+" ",c},MaskElement.prototype.drawPath=function(c,u,f){var d=" M"+u.v[0][0]+","+u.v[0][1],h,v;for(v=u._length,h=1;h<v;h+=1)d+=" C"+u.o[h-1][0]+","+u.o[h-1][1]+" "+u.i[h][0]+","+u.i[h][1]+" "+u.v[h][0]+","+u.v[h][1];if(u.c&&v>1&&(d+=" C"+u.o[h-1][0]+","+u.o[h-1][1]+" "+u.i[0][0]+","+u.i[0][1]+" "+u.v[0][0]+","+u.v[0][1]),f.lastPath!==d){var p="";f.elem&&(u.c&&(p=c.inv?this.solidPath+d:d),f.elem.setAttribute("d",p)),f.lastPath=d}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var c={};c.createFilter=u,c.createAlphaToLuminanceFilter=f;function u(d,h){var v=createNS("filter");return v.setAttribute("id",d),h!==!0&&(v.setAttribute("filterUnits","objectBoundingBox"),v.setAttribute("x","0%"),v.setAttribute("y","0%"),v.setAttribute("width","100%"),v.setAttribute("height","100%")),v}function f(){var d=createNS("feColorMatrix");return d.setAttribute("type","matrix"),d.setAttribute("color-interpolation-filters","sRGB"),d.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),d}return c}(),featureSupport=function(){var c={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(c.maskType=!1),/firefox/i.test(navigator.userAgent)&&(c.svgLumaHidden=!1),c}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(c){var u,f="SourceGraphic",d=c.data.ef?c.data.ef.length:0,h=createElementID(),v=filtersFactory.createFilter(h,!0),p=0;this.filters=[];var m;for(u=0;u<d;u+=1){m=null;var g=c.data.ef[u].ty;if(registeredEffects$1[g]){var y=registeredEffects$1[g].effect;m=new y(v,c.effectsManager.effectElements[u],c,idPrefix+p,f),f=idPrefix+p,registeredEffects$1[g].countsAsEffect&&(p+=1)}m&&this.filters.push(m)}p&&(c.globalData.defs.appendChild(v),c.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+h+")")),this.filters.length&&c.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(c){var u,f=this.filters.length;for(u=0;u<f;u+=1)this.filters[u].renderFrame(c)},SVGEffects.prototype.getEffects=function(c){var u,f=this.filters.length,d=[];for(u=0;u<f;u+=1)this.filters[u].type===c&&d.push(this.filters[u]);return d};function registerEffect$1(c,u,f){registeredEffects$1[c]={effect:u,countsAsEffect:f}}function SVGBaseElement(){}SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var u=null;if(this.data.td){this.matteMasks={};var f=createNS("g");f.setAttribute("id",this.layerId),f.appendChild(this.layerElement),u=f,this.globalData.defs.appendChild(f)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),u=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var d=createNS("clipPath"),h=createNS("path");h.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var v=createElementID();if(d.setAttribute("id",v),d.appendChild(h),this.globalData.defs.appendChild(d),this.checkMasks()){var p=createNS("g");p.setAttribute("clip-path","url("+getLocationHref()+"#"+v+")"),p.appendChild(this.layerElement),this.transformedElement=p,u?u.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+v+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(u){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[u]){var f=this.layerId+"_"+u,d,h,v,p;if(u===1||u===3){var m=createNS("mask");m.setAttribute("id",f),m.setAttribute("mask-type",u===3?"luminance":"alpha"),v=createNS("use"),v.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),m.appendChild(v),this.globalData.defs.appendChild(m),!featureSupport.maskType&&u===1&&(m.setAttribute("mask-type","luminance"),d=createElementID(),h=filtersFactory.createFilter(d),this.globalData.defs.appendChild(h),h.appendChild(filtersFactory.createAlphaToLuminanceFilter()),p=createNS("g"),p.appendChild(v),m.appendChild(p),p.setAttribute("filter","url("+getLocationHref()+"#"+d+")"))}else if(u===2){var g=createNS("mask");g.setAttribute("id",f),g.setAttribute("mask-type","alpha");var y=createNS("g");g.appendChild(y),d=createElementID(),h=filtersFactory.createFilter(d);var b=createNS("feComponentTransfer");b.setAttribute("in","SourceGraphic"),h.appendChild(b);var gn=createNS("feFuncA");gn.setAttribute("type","table"),gn.setAttribute("tableValues","1.0 0.0"),b.appendChild(gn),this.globalData.defs.appendChild(h);var x=createNS("rect");x.setAttribute("width",this.comp.data.w),x.setAttribute("height",this.comp.data.h),x.setAttribute("x","0"),x.setAttribute("y","0"),x.setAttribute("fill","#ffffff"),x.setAttribute("opacity","0"),y.setAttribute("filter","url("+getLocationHref()+"#"+d+")"),y.appendChild(x),v=createNS("use"),v.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),y.appendChild(v),featureSupport.maskType||(g.setAttribute("mask-type","luminance"),h.appendChild(filtersFactory.createAlphaToLuminanceFilter()),p=createNS("g"),y.appendChild(x),p.appendChild(this.layerElement),y.appendChild(p)),this.globalData.defs.appendChild(g)}this.matteMasks[u]=f}return this.matteMasks[u]},setMatte:function(u){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+u+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(u){this.hierarchy=u},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var c={initElement:function(f,d,h){this.initFrame(),this.initBaseData(f,d,h),this.initTransform(f,d,h),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var f=this.baseElement||this.layerElement;f.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var f=this.baseElement||this.layerElement;f.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(f){this._mdf=!1,this.prepareRenderableFrame(f),this.prepareProperties(f,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(c)],RenderableDOMElement)})();function IImageElement(c,u,f){this.assetData=u.getAssetData(c.refId),this.assetData&&this.assetData.sid&&(this.assetData=u.slotManager.getProp(this.assetData)),this.initElement(c,u,f),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var c=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",c),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(c,u){this.elem=c,this.pos=u}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(u){var f,d=this.shapeModifiers.length;for(f=0;f<d;f+=1)this.shapeModifiers[f].addShape(u)},isShapeInAnimatedModifiers:function(u){for(var f=0,d=this.shapeModifiers.length;f<d;)if(this.shapeModifiers[f].isAnimatedWithShape(u))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var u,f=this.shapes.length;for(u=0;u<f;u+=1)this.shapes[u].sh.reset();f=this.shapeModifiers.length;var d;for(u=f-1;u>=0&&(d=this.shapeModifiers[u].processShapes(this._isFirstFrame),!d);u-=1);}},searchProcessedElement:function(u){for(var f=this.processedElements,d=0,h=f.length;d<h;){if(f[d].elem===u)return f[d].pos;d+=1}return 0},addProcessedElement:function(u,f){for(var d=this.processedElements,h=d.length;h;)if(h-=1,d[h].elem===u){d[h].pos=f;return}d.push(new ProcessedElement(u,f))},prepareFrame:function(u){this.prepareRenderableFrame(u),this.prepareProperties(u,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(c,u,f){this.caches=[],this.styles=[],this.transformers=c,this.lStr="",this.sh=f,this.lvl=u,this._isAnimated=!!f.k;for(var d=0,h=c.length;d<h;){if(c[d].mProps.dynamicProperties.length){this._isAnimated=!0;break}d+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(c,u){this.data=c,this.type=c.ty,this.d="",this.lvl=u,this._mdf=!1,this.closed=c.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(c,u,f,d){this.elem=c,this.frameId=-1,this.dataProps=createSizedArray(u.length),this.renderer=f,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",u.length?u.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(d);var h,v=u.length||0,p;for(h=0;h<v;h+=1)p=PropertyFactory.getProp(c,u[h].v,0,0,this),this.k=p.k||this.k,this.dataProps[h]={n:u[h].n,p};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(c){if(!(this.elem.globalData.frameId===this.frameId&&!c)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||c,this._mdf)){var u=0,f=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),u=0;u<f;u+=1)this.dataProps[u].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[u].p.v:this.dashArray[u]=this.dataProps[u].p.v:this.dashoffset[0]=this.dataProps[u].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(c,u,f){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(c,u.o,0,.01,this),this.w=PropertyFactory.getProp(c,u.w,0,null,this),this.d=new DashProperty(c,u.d||{},"svg",this),this.c=PropertyFactory.getProp(c,u.c,1,255,this),this.style=f,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(c,u,f){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(c,u.o,0,.01,this),this.c=PropertyFactory.getProp(c,u.c,1,255,this),this.style=f}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(c,u,f){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.style=f}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(c,u,f){this.data=u,this.c=createTypedArray("uint8c",u.p*4);var d=u.k.k[0].s?u.k.k[0].s.length-u.p*4:u.k.k.length-u.p*4;this.o=createTypedArray("float32",d),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=d,this.initDynamicPropertyContainer(f),this.prop=PropertyFactory.getProp(c,u.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(c,u){for(var f=0,d=this.o.length/2,h;f<d;){if(h=Math.abs(c[f*4]-c[u*4+f*2]),h>.01)return!1;f+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var c=0,u=this.data.k.k.length;c<u;){if(!this.comparePoints(this.data.k.k[c].s,this.data.p))return!1;c+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(c){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||c){var u,f=this.data.p*4,d,h;for(u=0;u<f;u+=1)d=u%4===0?100:255,h=Math.round(this.prop.v[u]*d),this.c[u]!==h&&(this.c[u]=h,this._cmdf=!c);if(this.o.length)for(f=this.prop.v.length,u=this.data.p*4;u<f;u+=1)d=u%2===0?100:1,h=u%2===0?Math.round(this.prop.v[u]*100):this.prop.v[u],this.o[u-this.data.p*4]!==h&&(this.o[u-this.data.p*4]=h,this._omdf=!c);this._mdf=!c}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(c,u,f){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.initGradientData(c,u,f)}SVGGradientFillStyleData.prototype.initGradientData=function(c,u,f){this.o=PropertyFactory.getProp(c,u.o,0,.01,this),this.s=PropertyFactory.getProp(c,u.s,1,null,this),this.e=PropertyFactory.getProp(c,u.e,1,null,this),this.h=PropertyFactory.getProp(c,u.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(c,u.a||{k:0},0,degToRads,this),this.g=new GradientProperty(c,u.g,this),this.style=f,this.stops=[],this.setGradientData(f.pElem,u),this.setGradientOpacity(u,f),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(c,u){var f=createElementID(),d=createNS(u.t===1?"linearGradient":"radialGradient");d.setAttribute("id",f),d.setAttribute("spreadMethod","pad"),d.setAttribute("gradientUnits","userSpaceOnUse");var h=[],v,p,m;for(m=u.g.p*4,p=0;p<m;p+=4)v=createNS("stop"),d.appendChild(v),h.push(v);c.setAttribute(u.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+f+")"),this.gf=d,this.cst=h},SVGGradientFillStyleData.prototype.setGradientOpacity=function(c,u){if(this.g._hasOpacity&&!this.g._collapsable){var f,d,h,v=createNS("mask"),p=createNS("path");v.appendChild(p);var m=createElementID(),g=createElementID();v.setAttribute("id",g);var y=createNS(c.t===1?"linearGradient":"radialGradient");y.setAttribute("id",m),y.setAttribute("spreadMethod","pad"),y.setAttribute("gradientUnits","userSpaceOnUse"),h=c.g.k.k[0].s?c.g.k.k[0].s.length:c.g.k.k.length;var b=this.stops;for(d=c.g.p*4;d<h;d+=2)f=createNS("stop"),f.setAttribute("stop-color","rgb(255,255,255)"),y.appendChild(f),b.push(f);p.setAttribute(c.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+m+")"),c.ty==="gs"&&(p.setAttribute("stroke-linecap",lineCapEnum[c.lc||2]),p.setAttribute("stroke-linejoin",lineJoinEnum[c.lj||2]),c.lj===1&&p.setAttribute("stroke-miterlimit",c.ml)),this.of=y,this.ms=v,this.ost=b,this.maskId=g,u.msElem=p}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(c,u,f){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(c,u.w,0,null,this),this.d=new DashProperty(c,u.d||{},"svg",this),this.initGradientData(c,u,f),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(c,u,f){this.transform={mProps:c,op:u,container:f},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(u,f,d,h){if(f===0)return"";var v=u.o,p=u.i,m=u.v,g,y=" M"+h.applyToPointStringified(m[0][0],m[0][1]);for(g=1;g<f;g+=1)y+=" C"+h.applyToPointStringified(v[g-1][0],v[g-1][1])+" "+h.applyToPointStringified(p[g][0],p[g][1])+" "+h.applyToPointStringified(m[g][0],m[g][1]);return d&&f&&(y+=" C"+h.applyToPointStringified(v[g-1][0],v[g-1][1])+" "+h.applyToPointStringified(p[0][0],p[0][1])+" "+h.applyToPointStringified(m[0][0],m[0][1]),y+="z"),y},SVGElementsRenderer=function(){var c=new Matrix,u=new Matrix,f={createRenderFunction:d};function d(gn){switch(gn.ty){case"fl":return m;case"gf":return y;case"gs":return g;case"st":return b;case"sh":case"el":case"rc":case"sr":return p;case"tr":return h;case"no":return v;default:return null}}function h(gn,x,vn){(vn||x.transform.op._mdf)&&x.transform.container.setAttribute("opacity",x.transform.op.v),(vn||x.transform.mProps._mdf)&&x.transform.container.setAttribute("transform",x.transform.mProps.v.to2dCSS())}function v(){}function p(gn,x,vn){var J,j,Fn,Bn,w,re,Pn=x.styles.length,Rn=x.lvl,Vn,Wn,Gn,Zn;for(re=0;re<Pn;re+=1){if(Bn=x.sh._mdf||vn,x.styles[re].lvl<Rn){for(Wn=u.reset(),Gn=Rn-x.styles[re].lvl,Zn=x.transformers.length-1;!Bn&&Gn>0;)Bn=x.transformers[Zn].mProps._mdf||Bn,Gn-=1,Zn-=1;if(Bn)for(Gn=Rn-x.styles[re].lvl,Zn=x.transformers.length-1;Gn>0;)Wn.multiply(x.transformers[Zn].mProps.v),Gn-=1,Zn-=1}else Wn=c;if(Vn=x.sh.paths,j=Vn._length,Bn){for(Fn="",J=0;J<j;J+=1)w=Vn.shapes[J],w&&w._length&&(Fn+=buildShapeString(w,w._length,w.c,Wn));x.caches[re]=Fn}else Fn=x.caches[re];x.styles[re].d+=gn.hd===!0?"":Fn,x.styles[re]._mdf=Bn||x.styles[re]._mdf}}function m(gn,x,vn){var J=x.style;(x.c._mdf||vn)&&J.pElem.setAttribute("fill","rgb("+bmFloor(x.c.v[0])+","+bmFloor(x.c.v[1])+","+bmFloor(x.c.v[2])+")"),(x.o._mdf||vn)&&J.pElem.setAttribute("fill-opacity",x.o.v)}function g(gn,x,vn){y(gn,x,vn),b(gn,x,vn)}function y(gn,x,vn){var J=x.gf,j=x.g._hasOpacity,Fn=x.s.v,Bn=x.e.v;if(x.o._mdf||vn){var w=gn.ty==="gf"?"fill-opacity":"stroke-opacity";x.style.pElem.setAttribute(w,x.o.v)}if(x.s._mdf||vn){var re=gn.t===1?"x1":"cx",Pn=re==="x1"?"y1":"cy";J.setAttribute(re,Fn[0]),J.setAttribute(Pn,Fn[1]),j&&!x.g._collapsable&&(x.of.setAttribute(re,Fn[0]),x.of.setAttribute(Pn,Fn[1]))}var Rn,Vn,Wn,Gn;if(x.g._cmdf||vn){Rn=x.cst;var Zn=x.g.c;for(Wn=Rn.length,Vn=0;Vn<Wn;Vn+=1)Gn=Rn[Vn],Gn.setAttribute("offset",Zn[Vn*4]+"%"),Gn.setAttribute("stop-color","rgb("+Zn[Vn*4+1]+","+Zn[Vn*4+2]+","+Zn[Vn*4+3]+")")}if(j&&(x.g._omdf||vn)){var Xn=x.g.o;for(x.g._collapsable?Rn=x.cst:Rn=x.ost,Wn=Rn.length,Vn=0;Vn<Wn;Vn+=1)Gn=Rn[Vn],x.g._collapsable||Gn.setAttribute("offset",Xn[Vn*2]+"%"),Gn.setAttribute("stop-opacity",Xn[Vn*2+1])}if(gn.t===1)(x.e._mdf||vn)&&(J.setAttribute("x2",Bn[0]),J.setAttribute("y2",Bn[1]),j&&!x.g._collapsable&&(x.of.setAttribute("x2",Bn[0]),x.of.setAttribute("y2",Bn[1])));else{var er;if((x.s._mdf||x.e._mdf||vn)&&(er=Math.sqrt(Math.pow(Fn[0]-Bn[0],2)+Math.pow(Fn[1]-Bn[1],2)),J.setAttribute("r",er),j&&!x.g._collapsable&&x.of.setAttribute("r",er)),x.e._mdf||x.h._mdf||x.a._mdf||vn){er||(er=Math.sqrt(Math.pow(Fn[0]-Bn[0],2)+Math.pow(Fn[1]-Bn[1],2)));var Jn=Math.atan2(Bn[1]-Fn[1],Bn[0]-Fn[0]),ir=x.h.v;ir>=1?ir=.99:ir<=-1&&(ir=-.99);var or=er*ir,sr=Math.cos(Jn+x.a.v)*or+Fn[0],Hn=Math.sin(Jn+x.a.v)*or+Fn[1];J.setAttribute("fx",sr),J.setAttribute("fy",Hn),j&&!x.g._collapsable&&(x.of.setAttribute("fx",sr),x.of.setAttribute("fy",Hn))}}}function b(gn,x,vn){var J=x.style,j=x.d;j&&(j._mdf||vn)&&j.dashStr&&(J.pElem.setAttribute("stroke-dasharray",j.dashStr),J.pElem.setAttribute("stroke-dashoffset",j.dashoffset[0])),x.c&&(x.c._mdf||vn)&&J.pElem.setAttribute("stroke","rgb("+bmFloor(x.c.v[0])+","+bmFloor(x.c.v[1])+","+bmFloor(x.c.v[2])+")"),(x.o._mdf||vn)&&J.pElem.setAttribute("stroke-opacity",x.o.v),(x.w._mdf||vn)&&(J.pElem.setAttribute("stroke-width",x.w.v),J.msElem&&J.msElem.setAttribute("stroke-width",x.w.v))}return f}();function SVGShapeElement(c,u,f){this.shapes=[],this.shapesData=c.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(c,u,f),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var c,u=this.shapes.length,f,d,h=this.stylesList.length,v,p=[],m=!1;for(d=0;d<h;d+=1){for(v=this.stylesList[d],m=!1,p.length=0,c=0;c<u;c+=1)f=this.shapes[c],f.styles.indexOf(v)!==-1&&(p.push(f),m=f._isAnimated||m);p.length>1&&m&&this.setShapesAsAnimated(p)}},SVGShapeElement.prototype.setShapesAsAnimated=function(c){var u,f=c.length;for(u=0;u<f;u+=1)c[u].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(c,u){var f,d=new SVGStyleData(c,u),h=d.pElem;if(c.ty==="st")f=new SVGStrokeStyleData(this,c,d);else if(c.ty==="fl")f=new SVGFillStyleData(this,c,d);else if(c.ty==="gf"||c.ty==="gs"){var v=c.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;f=new v(this,c,d),this.globalData.defs.appendChild(f.gf),f.maskId&&(this.globalData.defs.appendChild(f.ms),this.globalData.defs.appendChild(f.of),h.setAttribute("mask","url("+getLocationHref()+"#"+f.maskId+")"))}else c.ty==="no"&&(f=new SVGNoStyleData(this,c,d));return(c.ty==="st"||c.ty==="gs")&&(h.setAttribute("stroke-linecap",lineCapEnum[c.lc||2]),h.setAttribute("stroke-linejoin",lineJoinEnum[c.lj||2]),h.setAttribute("fill-opacity","0"),c.lj===1&&h.setAttribute("stroke-miterlimit",c.ml)),c.r===2&&h.setAttribute("fill-rule","evenodd"),c.ln&&h.setAttribute("id",c.ln),c.cl&&h.setAttribute("class",c.cl),c.bm&&(h.style["mix-blend-mode"]=getBlendMode(c.bm)),this.stylesList.push(d),this.addToAnimatedContents(c,f),f},SVGShapeElement.prototype.createGroupElement=function(c){var u=new ShapeGroupData;return c.ln&&u.gr.setAttribute("id",c.ln),c.cl&&u.gr.setAttribute("class",c.cl),c.bm&&(u.gr.style["mix-blend-mode"]=getBlendMode(c.bm)),u},SVGShapeElement.prototype.createTransformElement=function(c,u){var f=TransformPropertyFactory.getTransformProperty(this,c,this),d=new SVGTransformData(f,f.o,u);return this.addToAnimatedContents(c,d),d},SVGShapeElement.prototype.createShapeElement=function(c,u,f){var d=4;c.ty==="rc"?d=5:c.ty==="el"?d=6:c.ty==="sr"&&(d=7);var h=ShapePropertyFactory.getShapeProp(this,c,d,this),v=new SVGShapeData(u,f,h);return this.shapes.push(v),this.addShapeToModifiers(v),this.addToAnimatedContents(c,v),v},SVGShapeElement.prototype.addToAnimatedContents=function(c,u){for(var f=0,d=this.animatedContents.length;f<d;){if(this.animatedContents[f].element===u)return;f+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(c),element:u,data:c})},SVGShapeElement.prototype.setElementStyles=function(c){var u=c.styles,f,d=this.stylesList.length;for(f=0;f<d;f+=1)this.stylesList[f].closed||u.push(this.stylesList[f])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var c,u=this.itemsData.length;for(c=0;c<u;c+=1)this.prevViewData[c]=this.itemsData[c];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),u=this.dynamicProperties.length,c=0;c<u;c+=1)this.dynamicProperties[c].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(c,u,f,d,h,v,p){var m=[].concat(v),g,y=c.length-1,b,gn,x=[],vn=[],J,j,Fn;for(g=y;g>=0;g-=1){if(Fn=this.searchProcessedElement(c[g]),Fn?u[g]=f[Fn-1]:c[g]._render=p,c[g].ty==="fl"||c[g].ty==="st"||c[g].ty==="gf"||c[g].ty==="gs"||c[g].ty==="no")Fn?u[g].style.closed=!1:u[g]=this.createStyleElement(c[g],h),c[g]._render&&u[g].style.pElem.parentNode!==d&&d.appendChild(u[g].style.pElem),x.push(u[g].style);else if(c[g].ty==="gr"){if(!Fn)u[g]=this.createGroupElement(c[g]);else for(gn=u[g].it.length,b=0;b<gn;b+=1)u[g].prevViewData[b]=u[g].it[b];this.searchShapes(c[g].it,u[g].it,u[g].prevViewData,u[g].gr,h+1,m,p),c[g]._render&&u[g].gr.parentNode!==d&&d.appendChild(u[g].gr)}else c[g].ty==="tr"?(Fn||(u[g]=this.createTransformElement(c[g],d)),J=u[g].transform,m.push(J)):c[g].ty==="sh"||c[g].ty==="rc"||c[g].ty==="el"||c[g].ty==="sr"?(Fn||(u[g]=this.createShapeElement(c[g],m,h)),this.setElementStyles(u[g])):c[g].ty==="tm"||c[g].ty==="rd"||c[g].ty==="ms"||c[g].ty==="pb"||c[g].ty==="zz"||c[g].ty==="op"?(Fn?(j=u[g],j.closed=!1):(j=ShapeModifiers.getModifier(c[g].ty),j.init(this,c[g]),u[g]=j,this.shapeModifiers.push(j)),vn.push(j)):c[g].ty==="rp"&&(Fn?(j=u[g],j.closed=!0):(j=ShapeModifiers.getModifier(c[g].ty),u[g]=j,j.init(this,c,g,u),this.shapeModifiers.push(j),p=!1),vn.push(j));this.addProcessedElement(c[g],g+1)}for(y=x.length,g=0;g<y;g+=1)x[g].closed=!0;for(y=vn.length,g=0;g<y;g+=1)vn[g].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var c,u=this.stylesList.length;for(c=0;c<u;c+=1)this.stylesList[c].reset();for(this.renderShape(),c=0;c<u;c+=1)(this.stylesList[c]._mdf||this._isFirstFrame)&&(this.stylesList[c].msElem&&(this.stylesList[c].msElem.setAttribute("d",this.stylesList[c].d),this.stylesList[c].d="M0 0"+this.stylesList[c].d),this.stylesList[c].pElem.setAttribute("d",this.stylesList[c].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var c,u=this.animatedContents.length,f;for(c=0;c<u;c+=1)f=this.animatedContents[c],(this._isFirstFrame||f.element._isAnimated)&&f.data!==!0&&f.fn(f.data,f.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(c,u,f,d,h,v){this.o=c,this.sw=u,this.sc=f,this.fc=d,this.m=h,this.p=v,this._mdf={o:!0,sw:!!u,sc:!!f,fc:!!d,m:!0,p:!0}}LetterProps.prototype.update=function(c,u,f,d,h,v){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var p=!1;return this.o!==c&&(this.o=c,this._mdf.o=!0,p=!0),this.sw!==u&&(this.sw=u,this._mdf.sw=!0,p=!0),this.sc!==f&&(this.sc=f,this._mdf.sc=!0,p=!0),this.fc!==d&&(this.fc=d,this._mdf.fc=!0,p=!0),this.m!==h&&(this.m=h,this._mdf.m=!0,p=!0),v.length&&(this.p[0]!==v[0]||this.p[1]!==v[1]||this.p[4]!==v[4]||this.p[5]!==v[5]||this.p[12]!==v[12]||this.p[13]!==v[13])&&(this.p=v,this._mdf.p=!0,p=!0),p};function TextProperty(c,u){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,u.d&&u.d.sid&&(u.d=c.globalData.slotManager.getProp(u.d)),this.data=u,this.elem=c,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(c,u){for(var f in u)Object.prototype.hasOwnProperty.call(u,f)&&(c[f]=u[f]);return c},TextProperty.prototype.setCurrentData=function(c){c.__complete||this.completeTextData(c),this.currentData=c,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(c){this.effectsSequence.push(c),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(c){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!c)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var u=this.currentData,f=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var d,h=this.effectsSequence.length,v=c||this.data.d.k[this.keysIndex].s;for(d=0;d<h;d+=1)f!==this.keysIndex?v=this.effectsSequence[d](v,v.t):v=this.effectsSequence[d](this.currentData,v.t);u!==v&&this.setCurrentData(v),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var c=this.data.d.k,u=this.elem.comp.renderedFrame,f=0,d=c.length;f<=d-1&&!(f===d-1||c[f+1].t>u);)f+=1;return this.keysIndex!==f&&(this.keysIndex=f),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(c){for(var u=[],f=0,d=c.length,h,v,p=!1,m=!1,g="";f<d;)p=m,m=!1,h=c.charCodeAt(f),g=c.charAt(f),FontManager.isCombinedCharacter(h)?p=!0:h>=55296&&h<=56319?FontManager.isRegionalFlag(c,f)?g=c.substr(f,14):(v=c.charCodeAt(f+1),v>=56320&&v<=57343&&(FontManager.isModifier(h,v)?(g=c.substr(f,2),p=!0):FontManager.isFlagEmoji(c.substr(f,4))?g=c.substr(f,4):g=c.substr(f,2))):h>56319?(v=c.charCodeAt(f+1),FontManager.isVariationSelector(h)&&(p=!0)):FontManager.isZeroWidthJoiner(h)&&(p=!0,m=!0),p?(u[u.length-1]+=g,p=!1):u.push(g),f+=g.length;return u},TextProperty.prototype.completeTextData=function(c){c.__complete=!0;var u=this.elem.globalData.fontManager,f=this.data,d=[],h,v,p,m=0,g,y=f.m.g,b=0,gn=0,x=0,vn=[],J=0,j=0,Fn,Bn,w=u.getFontByName(c.f),re,Pn=0,Rn=getFontProperties(w);c.fWeight=Rn.weight,c.fStyle=Rn.style,c.finalSize=c.s,c.finalText=this.buildFinalText(c.t),v=c.finalText.length,c.finalLineHeight=c.lh;var Vn=c.tr/1e3*c.finalSize,Wn;if(c.sz)for(var Gn=!0,Zn=c.sz[0],Xn=c.sz[1],er,Jn;Gn;){Jn=this.buildFinalText(c.t),er=0,J=0,v=Jn.length,Vn=c.tr/1e3*c.finalSize;var ir=-1;for(h=0;h<v;h+=1)Wn=Jn[h].charCodeAt(0),p=!1,Jn[h]===" "?ir=h:(Wn===13||Wn===3)&&(J=0,p=!0,er+=c.finalLineHeight||c.finalSize*1.2),u.chars?(re=u.getCharData(Jn[h],w.fStyle,w.fFamily),Pn=p?0:re.w*c.finalSize/100):Pn=u.measureText(Jn[h],c.f,c.finalSize),J+Pn>Zn&&Jn[h]!==" "?(ir===-1?v+=1:h=ir,er+=c.finalLineHeight||c.finalSize*1.2,Jn.splice(h,ir===h?1:0,"\r"),ir=-1,J=0):(J+=Pn,J+=Vn);er+=w.ascent*c.finalSize/100,this.canResize&&c.finalSize>this.minimumFontSize&&Xn<er?(c.finalSize-=1,c.finalLineHeight=c.finalSize*c.lh/c.s):(c.finalText=Jn,v=c.finalText.length,Gn=!1)}J=-Vn,Pn=0;var or=0,sr;for(h=0;h<v;h+=1)if(p=!1,sr=c.finalText[h],Wn=sr.charCodeAt(0),Wn===13||Wn===3?(or=0,vn.push(J),j=J>j?J:j,J=-2*Vn,g="",p=!0,x+=1):g=sr,u.chars?(re=u.getCharData(sr,w.fStyle,u.getFontByName(c.f).fFamily),Pn=p?0:re.w*c.finalSize/100):Pn=u.measureText(g,c.f,c.finalSize),sr===" "?or+=Pn+Vn:(J+=Pn+Vn+or,or=0),d.push({l:Pn,an:Pn,add:b,n:p,anIndexes:[],val:g,line:x,animatorJustifyOffset:0}),y==2){if(b+=Pn,g===""||g===" "||h===v-1){for((g===""||g===" ")&&(b-=Pn);gn<=h;)d[gn].an=b,d[gn].ind=m,d[gn].extra=Pn,gn+=1;m+=1,b=0}}else if(y==3){if(b+=Pn,g===""||h===v-1){for(g===""&&(b-=Pn);gn<=h;)d[gn].an=b,d[gn].ind=m,d[gn].extra=Pn,gn+=1;b=0,m+=1}}else d[m].ind=m,d[m].extra=0,m+=1;if(c.l=d,j=J>j?J:j,vn.push(J),c.sz)c.boxWidth=c.sz[0],c.justifyOffset=0;else switch(c.boxWidth=j,c.j){case 1:c.justifyOffset=-c.boxWidth;break;case 2:c.justifyOffset=-c.boxWidth/2;break;default:c.justifyOffset=0}c.lineWidths=vn;var Hn=f.a,Kn,zn;Bn=Hn.length;var qn,tr,Un=[];for(Fn=0;Fn<Bn;Fn+=1){for(Kn=Hn[Fn],Kn.a.sc&&(c.strokeColorAnim=!0),Kn.a.sw&&(c.strokeWidthAnim=!0),(Kn.a.fc||Kn.a.fh||Kn.a.fs||Kn.a.fb)&&(c.fillColorAnim=!0),tr=0,qn=Kn.s.b,h=0;h<v;h+=1)zn=d[h],zn.anIndexes[Fn]=tr,(qn==1&&zn.val!==""||qn==2&&zn.val!==""&&zn.val!==" "||qn==3&&(zn.n||zn.val==" "||h==v-1)||qn==4&&(zn.n||h==v-1))&&(Kn.s.rn===1&&Un.push(tr),tr+=1);f.a[Fn].s.totalChars=tr;var nr=-1,cr;if(Kn.s.rn===1)for(h=0;h<v;h+=1)zn=d[h],nr!=zn.anIndexes[Fn]&&(nr=zn.anIndexes[Fn],cr=Un.splice(Math.floor(Math.random()*Un.length),1)[0]),zn.anIndexes[Fn]=cr}c.yOffset=c.finalLineHeight||c.finalSize*1.2,c.ls=c.ls||0,c.ascent=w.ascent*c.finalSize/100},TextProperty.prototype.updateDocumentData=function(c,u){u=u===void 0?this.keysIndex:u;var f=this.copyData({},this.data.d.k[u].s);f=this.copyData(f,c),this.data.d.k[u].s=f,this.recalculate(u),this.setCurrentData(f),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(c){var u=this.data.d.k[c].s;u.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(u)},TextProperty.prototype.canResizeFont=function(c){this.canResize=c,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(c){this.minimumFontSize=Math.floor(c)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var c=Math.max,u=Math.min,f=Math.floor;function d(v,p){this._currentTextLength=-1,this.k=!1,this.data=p,this.elem=v,this.comp=v.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(v),this.s=PropertyFactory.getProp(v,p.s||{k:0},0,0,this),"e"in p?this.e=PropertyFactory.getProp(v,p.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(v,p.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(v,p.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(v,p.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(v,p.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(v,p.a,0,.01,this),this.dynamicProperties.length||this.getValue()}d.prototype={getMult:function(p){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var m=0,g=0,y=1,b=1;this.ne.v>0?m=this.ne.v/100:g=-this.ne.v/100,this.xe.v>0?y=1-this.xe.v/100:b=1+this.xe.v/100;var gn=BezierFactory.getBezierEasing(m,g,y,b).get,x=0,vn=this.finalS,J=this.finalE,j=this.data.sh;if(j===2)J===vn?x=p>=J?1:0:x=c(0,u(.5/(J-vn)+(p-vn)/(J-vn),1)),x=gn(x);else if(j===3)J===vn?x=p>=J?0:1:x=1-c(0,u(.5/(J-vn)+(p-vn)/(J-vn),1)),x=gn(x);else if(j===4)J===vn?x=0:(x=c(0,u(.5/(J-vn)+(p-vn)/(J-vn),1)),x<.5?x*=2:x=1-2*(x-.5)),x=gn(x);else if(j===5){if(J===vn)x=0;else{var Fn=J-vn;p=u(c(0,p+.5-vn),J-vn);var Bn=-Fn/2+p,w=Fn/2;x=Math.sqrt(1-Bn*Bn/(w*w))}x=gn(x)}else j===6?(J===vn?x=0:(p=u(c(0,p+.5-vn),J-vn),x=(1+Math.cos(Math.PI+Math.PI*2*p/(J-vn)))/2),x=gn(x)):(p>=f(vn)&&(p-vn<0?x=c(0,u(u(J,1)-(vn-p),1)):x=c(0,u(J-p,1))),x=gn(x));if(this.sm.v!==100){var re=this.sm.v*.01;re===0&&(re=1e-8);var Pn=.5-re*.5;x<Pn?x=0:(x=(x-Pn)/re,x>1&&(x=1))}return x*this.a.v},getValue:function(p){this.iterateDynamicProperties(),this._mdf=p||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,p&&this.data.r===2&&(this.e.v=this._currentTextLength);var m=this.data.r===2?1:100/this.data.totalChars,g=this.o.v/m,y=this.s.v/m+g,b=this.e.v/m+g;if(y>b){var gn=y;y=b,b=gn}this.finalS=y,this.finalE=b}},extendPrototype([DynamicPropertyContainer],d);function h(v,p,m){return new d(v,p)}return{getTextSelectorProp:h}}();function TextAnimatorDataProperty(c,u,f){var d={propType:!1},h=PropertyFactory.getProp,v=u.a;this.a={r:v.r?h(c,v.r,0,degToRads,f):d,rx:v.rx?h(c,v.rx,0,degToRads,f):d,ry:v.ry?h(c,v.ry,0,degToRads,f):d,sk:v.sk?h(c,v.sk,0,degToRads,f):d,sa:v.sa?h(c,v.sa,0,degToRads,f):d,s:v.s?h(c,v.s,1,.01,f):d,a:v.a?h(c,v.a,1,0,f):d,o:v.o?h(c,v.o,0,.01,f):d,p:v.p?h(c,v.p,1,0,f):d,sw:v.sw?h(c,v.sw,0,0,f):d,sc:v.sc?h(c,v.sc,1,0,f):d,fc:v.fc?h(c,v.fc,1,0,f):d,fh:v.fh?h(c,v.fh,0,0,f):d,fs:v.fs?h(c,v.fs,0,.01,f):d,fb:v.fb?h(c,v.fb,0,.01,f):d,t:v.t?h(c,v.t,0,0,f):d},this.s=TextSelectorProp.getTextSelectorProp(c,u.s,f),this.s.t=u.s.t}function TextAnimatorProperty(c,u,f){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=c,this._renderType=u,this._elem=f,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(f)}TextAnimatorProperty.prototype.searchProperties=function(){var c,u=this._textData.a.length,f,d=PropertyFactory.getProp;for(c=0;c<u;c+=1)f=this._textData.a[c],this._animatorsData[c]=new TextAnimatorDataProperty(this._elem,f,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:d(this._elem,this._textData.p.a,0,0,this),f:d(this._elem,this._textData.p.f,0,0,this),l:d(this._elem,this._textData.p.l,0,0,this),r:d(this._elem,this._textData.p.r,0,0,this),p:d(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=d(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(c,u){if(this.lettersChangedFlag=u,!(!this._mdf&&!this._isFirstFrame&&!u&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var f=this._moreOptions.alignment.v,d=this._animatorsData,h=this._textData,v=this.mHelper,p=this._renderType,m=this.renderedLetters.length,g,y,b,gn,x=c.l,vn,J,j,Fn,Bn,w,re,Pn,Rn,Vn,Wn,Gn,Zn,Xn,er;if(this._hasMaskedPath){if(er=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Jn=er.v;this._pathData.r.v&&(Jn=Jn.reverse()),vn={tLength:0,segments:[]},gn=Jn._length-1;var ir;for(Gn=0,b=0;b<gn;b+=1)ir=bez.buildBezierData(Jn.v[b],Jn.v[b+1],[Jn.o[b][0]-Jn.v[b][0],Jn.o[b][1]-Jn.v[b][1]],[Jn.i[b+1][0]-Jn.v[b+1][0],Jn.i[b+1][1]-Jn.v[b+1][1]]),vn.tLength+=ir.segmentLength,vn.segments.push(ir),Gn+=ir.segmentLength;b=gn,er.v.c&&(ir=bez.buildBezierData(Jn.v[b],Jn.v[0],[Jn.o[b][0]-Jn.v[b][0],Jn.o[b][1]-Jn.v[b][1]],[Jn.i[0][0]-Jn.v[0][0],Jn.i[0][1]-Jn.v[0][1]]),vn.tLength+=ir.segmentLength,vn.segments.push(ir),Gn+=ir.segmentLength),this._pathData.pi=vn}if(vn=this._pathData.pi,J=this._pathData.f.v,re=0,w=1,Fn=0,Bn=!0,Vn=vn.segments,J<0&&er.v.c)for(vn.tLength<Math.abs(J)&&(J=-Math.abs(J)%vn.tLength),re=Vn.length-1,Rn=Vn[re].points,w=Rn.length-1;J<0;)J+=Rn[w].partialLength,w-=1,w<0&&(re-=1,Rn=Vn[re].points,w=Rn.length-1);Rn=Vn[re].points,Pn=Rn[w-1],j=Rn[w],Wn=j.partialLength}gn=x.length,g=0,y=0;var or=c.finalSize*1.2*.714,sr=!0,Hn,Kn,zn,qn,tr;qn=d.length;var Un,nr=-1,cr,Qn,fr,vr=J,Yn=re,ar=w,ur=-1,mr,dr,gr,lr,hr,xr,Sr,yr,pr="",br=this.defaultPropsArray,kr;if(c.j===2||c.j===1){var wr=0,Er=0,Pr=c.j===2?-.5:-1,Dr=0,qr=!0;for(b=0;b<gn;b+=1)if(x[b].n){for(wr&&(wr+=Er);Dr<b;)x[Dr].animatorJustifyOffset=wr,Dr+=1;wr=0,qr=!0}else{for(zn=0;zn<qn;zn+=1)Hn=d[zn].a,Hn.t.propType&&(qr&&c.j===2&&(Er+=Hn.t.v*Pr),Kn=d[zn].s,Un=Kn.getMult(x[b].anIndexes[zn],h.a[zn].s.totalChars),Un.length?wr+=Hn.t.v*Un[0]*Pr:wr+=Hn.t.v*Un*Pr);qr=!1}for(wr&&(wr+=Er);Dr<b;)x[Dr].animatorJustifyOffset=wr,Dr+=1}for(b=0;b<gn;b+=1){if(v.reset(),mr=1,x[b].n)g=0,y+=c.yOffset,y+=sr?1:0,J=vr,sr=!1,this._hasMaskedPath&&(re=Yn,w=ar,Rn=Vn[re].points,Pn=Rn[w-1],j=Rn[w],Wn=j.partialLength,Fn=0),pr="",yr="",xr="",kr="",br=this.defaultPropsArray;else{if(this._hasMaskedPath){if(ur!==x[b].line){switch(c.j){case 1:J+=Gn-c.lineWidths[x[b].line];break;case 2:J+=(Gn-c.lineWidths[x[b].line])/2;break}ur=x[b].line}nr!==x[b].ind&&(x[nr]&&(J+=x[nr].extra),J+=x[b].an/2,nr=x[b].ind),J+=f[0]*x[b].an*.005;var Rr=0;for(zn=0;zn<qn;zn+=1)Hn=d[zn].a,Hn.p.propType&&(Kn=d[zn].s,Un=Kn.getMult(x[b].anIndexes[zn],h.a[zn].s.totalChars),Un.length?Rr+=Hn.p.v[0]*Un[0]:Rr+=Hn.p.v[0]*Un),Hn.a.propType&&(Kn=d[zn].s,Un=Kn.getMult(x[b].anIndexes[zn],h.a[zn].s.totalChars),Un.length?Rr+=Hn.a.v[0]*Un[0]:Rr+=Hn.a.v[0]*Un);for(Bn=!0,this._pathData.a.v&&(J=x[0].an*.5+(Gn-this._pathData.f.v-x[0].an*.5-x[x.length-1].an*.5)*nr/(gn-1),J+=this._pathData.f.v);Bn;)Fn+Wn>=J+Rr||!Rn?(Zn=(J+Rr-Fn)/j.partialLength,Qn=Pn.point[0]+(j.point[0]-Pn.point[0])*Zn,fr=Pn.point[1]+(j.point[1]-Pn.point[1])*Zn,v.translate(-f[0]*x[b].an*.005,-(f[1]*or)*.01),Bn=!1):Rn&&(Fn+=j.partialLength,w+=1,w>=Rn.length&&(w=0,re+=1,Vn[re]?Rn=Vn[re].points:er.v.c?(w=0,re=0,Rn=Vn[re].points):(Fn-=j.partialLength,Rn=null)),Rn&&(Pn=j,j=Rn[w],Wn=j.partialLength));cr=x[b].an/2-x[b].add,v.translate(-cr,0,0)}else cr=x[b].an/2-x[b].add,v.translate(-cr,0,0),v.translate(-f[0]*x[b].an*.005,-f[1]*or*.01,0);for(zn=0;zn<qn;zn+=1)Hn=d[zn].a,Hn.t.propType&&(Kn=d[zn].s,Un=Kn.getMult(x[b].anIndexes[zn],h.a[zn].s.totalChars),(g!==0||c.j!==0)&&(this._hasMaskedPath?Un.length?J+=Hn.t.v*Un[0]:J+=Hn.t.v*Un:Un.length?g+=Hn.t.v*Un[0]:g+=Hn.t.v*Un));for(c.strokeWidthAnim&&(gr=c.sw||0),c.strokeColorAnim&&(c.sc?dr=[c.sc[0],c.sc[1],c.sc[2]]:dr=[0,0,0]),c.fillColorAnim&&c.fc&&(lr=[c.fc[0],c.fc[1],c.fc[2]]),zn=0;zn<qn;zn+=1)Hn=d[zn].a,Hn.a.propType&&(Kn=d[zn].s,Un=Kn.getMult(x[b].anIndexes[zn],h.a[zn].s.totalChars),Un.length?v.translate(-Hn.a.v[0]*Un[0],-Hn.a.v[1]*Un[1],Hn.a.v[2]*Un[2]):v.translate(-Hn.a.v[0]*Un,-Hn.a.v[1]*Un,Hn.a.v[2]*Un));for(zn=0;zn<qn;zn+=1)Hn=d[zn].a,Hn.s.propType&&(Kn=d[zn].s,Un=Kn.getMult(x[b].anIndexes[zn],h.a[zn].s.totalChars),Un.length?v.scale(1+(Hn.s.v[0]-1)*Un[0],1+(Hn.s.v[1]-1)*Un[1],1):v.scale(1+(Hn.s.v[0]-1)*Un,1+(Hn.s.v[1]-1)*Un,1));for(zn=0;zn<qn;zn+=1){if(Hn=d[zn].a,Kn=d[zn].s,Un=Kn.getMult(x[b].anIndexes[zn],h.a[zn].s.totalChars),Hn.sk.propType&&(Un.length?v.skewFromAxis(-Hn.sk.v*Un[0],Hn.sa.v*Un[1]):v.skewFromAxis(-Hn.sk.v*Un,Hn.sa.v*Un)),Hn.r.propType&&(Un.length?v.rotateZ(-Hn.r.v*Un[2]):v.rotateZ(-Hn.r.v*Un)),Hn.ry.propType&&(Un.length?v.rotateY(Hn.ry.v*Un[1]):v.rotateY(Hn.ry.v*Un)),Hn.rx.propType&&(Un.length?v.rotateX(Hn.rx.v*Un[0]):v.rotateX(Hn.rx.v*Un)),Hn.o.propType&&(Un.length?mr+=(Hn.o.v*Un[0]-mr)*Un[0]:mr+=(Hn.o.v*Un-mr)*Un),c.strokeWidthAnim&&Hn.sw.propType&&(Un.length?gr+=Hn.sw.v*Un[0]:gr+=Hn.sw.v*Un),c.strokeColorAnim&&Hn.sc.propType)for(hr=0;hr<3;hr+=1)Un.length?dr[hr]+=(Hn.sc.v[hr]-dr[hr])*Un[0]:dr[hr]+=(Hn.sc.v[hr]-dr[hr])*Un;if(c.fillColorAnim&&c.fc){if(Hn.fc.propType)for(hr=0;hr<3;hr+=1)Un.length?lr[hr]+=(Hn.fc.v[hr]-lr[hr])*Un[0]:lr[hr]+=(Hn.fc.v[hr]-lr[hr])*Un;Hn.fh.propType&&(Un.length?lr=addHueToRGB(lr,Hn.fh.v*Un[0]):lr=addHueToRGB(lr,Hn.fh.v*Un)),Hn.fs.propType&&(Un.length?lr=addSaturationToRGB(lr,Hn.fs.v*Un[0]):lr=addSaturationToRGB(lr,Hn.fs.v*Un)),Hn.fb.propType&&(Un.length?lr=addBrightnessToRGB(lr,Hn.fb.v*Un[0]):lr=addBrightnessToRGB(lr,Hn.fb.v*Un))}}for(zn=0;zn<qn;zn+=1)Hn=d[zn].a,Hn.p.propType&&(Kn=d[zn].s,Un=Kn.getMult(x[b].anIndexes[zn],h.a[zn].s.totalChars),this._hasMaskedPath?Un.length?v.translate(0,Hn.p.v[1]*Un[0],-Hn.p.v[2]*Un[1]):v.translate(0,Hn.p.v[1]*Un,-Hn.p.v[2]*Un):Un.length?v.translate(Hn.p.v[0]*Un[0],Hn.p.v[1]*Un[1],-Hn.p.v[2]*Un[2]):v.translate(Hn.p.v[0]*Un,Hn.p.v[1]*Un,-Hn.p.v[2]*Un));if(c.strokeWidthAnim&&(xr=gr<0?0:gr),c.strokeColorAnim&&(Sr="rgb("+Math.round(dr[0]*255)+","+Math.round(dr[1]*255)+","+Math.round(dr[2]*255)+")"),c.fillColorAnim&&c.fc&&(yr="rgb("+Math.round(lr[0]*255)+","+Math.round(lr[1]*255)+","+Math.round(lr[2]*255)+")"),this._hasMaskedPath){if(v.translate(0,-c.ls),v.translate(0,f[1]*or*.01+y,0),this._pathData.p.v){Xn=(j.point[1]-Pn.point[1])/(j.point[0]-Pn.point[0]);var Fr=Math.atan(Xn)*180/Math.PI;j.point[0]<Pn.point[0]&&(Fr+=180),v.rotate(-Fr*Math.PI/180)}v.translate(Qn,fr,0),J-=f[0]*x[b].an*.005,x[b+1]&&nr!==x[b+1].ind&&(J+=x[b].an/2,J+=c.tr*.001*c.finalSize)}else{switch(v.translate(g,y,0),c.ps&&v.translate(c.ps[0],c.ps[1]+c.ascent,0),c.j){case 1:v.translate(x[b].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[x[b].line]),0,0);break;case 2:v.translate(x[b].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[x[b].line])/2,0,0);break}v.translate(0,-c.ls),v.translate(cr,0,0),v.translate(f[0]*x[b].an*.005,f[1]*or*.01,0),g+=x[b].l+c.tr*.001*c.finalSize}p==="html"?pr=v.toCSS():p==="svg"?pr=v.to2dCSS():br=[v.props[0],v.props[1],v.props[2],v.props[3],v.props[4],v.props[5],v.props[6],v.props[7],v.props[8],v.props[9],v.props[10],v.props[11],v.props[12],v.props[13],v.props[14],v.props[15]],kr=mr}m<=b?(tr=new LetterProps(kr,xr,Sr,yr,pr,br),this.renderedLetters.push(tr),m+=1,this.lettersChangedFlag=!0):(tr=this.renderedLetters[b],this.lettersChangedFlag=tr.update(kr,xr,Sr,yr,pr,br)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty);function ITextElement(){}ITextElement.prototype.initElement=function(c,u,f){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(c,u,f),this.textProperty=new TextProperty(this,c.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(c.t,this.renderType,this),this.initTransform(c,u,f),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(c){this._mdf=!1,this.prepareRenderableFrame(c),this.prepareProperties(c,this.isInRange)},ITextElement.prototype.createPathShape=function(c,u){var f,d=u.length,h,v="";for(f=0;f<d;f+=1)u[f].ty==="sh"&&(h=u[f].ks.k,v+=buildShapeString(h,h.i.length,!0,c));return v},ITextElement.prototype.updateDocumentData=function(c,u){this.textProperty.updateDocumentData(c,u)},ITextElement.prototype.canResizeFont=function(c){this.textProperty.canResizeFont(c)},ITextElement.prototype.setMinimumFontSize=function(c){this.textProperty.setMinimumFontSize(c)},ITextElement.prototype.applyTextPropertiesToMatrix=function(c,u,f,d,h){switch(c.ps&&u.translate(c.ps[0],c.ps[1]+c.ascent,0),u.translate(0,-c.ls,0),c.j){case 1:u.translate(c.justifyOffset+(c.boxWidth-c.lineWidths[f]),0,0);break;case 2:u.translate(c.justifyOffset+(c.boxWidth-c.lineWidths[f])/2,0,0);break}u.translate(d,h,0)},ITextElement.prototype.buildColor=function(c){return"rgb("+Math.round(c[0]*255)+","+Math.round(c[1]*255)+","+Math.round(c[2]*255)+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(c,u,f){this.textSpans=[],this.renderType="svg",this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(c){for(var u=0,f=c.length,d=[],h="";u<f;)c[u]===String.fromCharCode(13)||c[u]===String.fromCharCode(3)?(d.push(h),h=""):h+=c[u],u+=1;return d.push(h),d},SVGTextLottieElement.prototype.buildShapeData=function(c,u){if(c.shapes&&c.shapes.length){var f=c.shapes[0];if(f.it){var d=f.it[f.it.length-1];d.s&&(d.s.k[0]=u,d.s.k[1]=u)}}return c},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var c,u,f=this.textProperty.currentData;this.renderedLetters=createSizedArray(f?f.l.length:0),f.fc?this.layerElement.setAttribute("fill",this.buildColor(f.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),f.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(f.sc)),this.layerElement.setAttribute("stroke-width",f.sw)),this.layerElement.setAttribute("font-size",f.finalSize);var d=this.globalData.fontManager.getFontByName(f.f);if(d.fClass)this.layerElement.setAttribute("class",d.fClass);else{this.layerElement.setAttribute("font-family",d.fFamily);var h=f.fWeight,v=f.fStyle;this.layerElement.setAttribute("font-style",v),this.layerElement.setAttribute("font-weight",h)}this.layerElement.setAttribute("aria-label",f.t);var p=f.l||[],m=!!this.globalData.fontManager.chars;u=p.length;var g,y=this.mHelper,b="",gn=this.data.singleShape,x=0,vn=0,J=!0,j=f.tr*.001*f.finalSize;if(gn&&!m&&!f.sz){var Fn=this.textContainer,Bn="start";switch(f.j){case 1:Bn="end";break;case 2:Bn="middle";break;default:Bn="start";break}Fn.setAttribute("text-anchor",Bn),Fn.setAttribute("letter-spacing",j);var w=this.buildTextContents(f.finalText);for(u=w.length,vn=f.ps?f.ps[1]+f.ascent:0,c=0;c<u;c+=1)g=this.textSpans[c].span||createNS("tspan"),g.textContent=w[c],g.setAttribute("x",0),g.setAttribute("y",vn),g.style.display="inherit",Fn.appendChild(g),this.textSpans[c]||(this.textSpans[c]={span:null,glyph:null}),this.textSpans[c].span=g,vn+=f.finalLineHeight;this.layerElement.appendChild(Fn)}else{var re=this.textSpans.length,Pn;for(c=0;c<u;c+=1){if(this.textSpans[c]||(this.textSpans[c]={span:null,childSpan:null,glyph:null}),!m||!gn||c===0){if(g=re>c?this.textSpans[c].span:createNS(m?"g":"text"),re<=c){if(g.setAttribute("stroke-linecap","butt"),g.setAttribute("stroke-linejoin","round"),g.setAttribute("stroke-miterlimit","4"),this.textSpans[c].span=g,m){var Rn=createNS("g");g.appendChild(Rn),this.textSpans[c].childSpan=Rn}this.textSpans[c].span=g,this.layerElement.appendChild(g)}g.style.display="inherit"}if(y.reset(),gn&&(p[c].n&&(x=-j,vn+=f.yOffset,vn+=J?1:0,J=!1),this.applyTextPropertiesToMatrix(f,y,p[c].line,x,vn),x+=p[c].l||0,x+=j),m){Pn=this.globalData.fontManager.getCharData(f.finalText[c],d.fStyle,this.globalData.fontManager.getFontByName(f.f).fFamily);var Vn;if(Pn.t===1)Vn=new SVGCompElement(Pn.data,this.globalData,this);else{var Wn=emptyShapeData;Pn.data&&Pn.data.shapes&&(Wn=this.buildShapeData(Pn.data,f.finalSize)),Vn=new SVGShapeElement(Wn,this.globalData,this)}if(this.textSpans[c].glyph){var Gn=this.textSpans[c].glyph;this.textSpans[c].childSpan.removeChild(Gn.layerElement),Gn.destroy()}this.textSpans[c].glyph=Vn,Vn._debug=!0,Vn.prepareFrame(0),Vn.renderFrame(),this.textSpans[c].childSpan.appendChild(Vn.layerElement),Pn.t===1&&this.textSpans[c].childSpan.setAttribute("transform","scale("+f.finalSize/100+","+f.finalSize/100+")")}else gn&&g.setAttribute("transform","translate("+y.props[12]+","+y.props[13]+")"),g.textContent=p[c].val,g.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}gn&&g&&g.setAttribute("d",b)}for(;c<this.textSpans.length;)this.textSpans[c].span.style.display="none",c+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var c=this.layerElement.getBBox();this.bbox={top:c.y,left:c.x,width:c.width,height:c.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var c,u=this.textSpans.length,f;for(this.renderedFrame=this.comp.renderedFrame,c=0;c<u;c+=1)f=this.textSpans[c].glyph,f&&(f.prepareFrame(this.comp.renderedFrame-this.data.st),f._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var c,u,f=this.textAnimator.renderedLetters,d=this.textProperty.currentData.l;u=d.length;var h,v,p;for(c=0;c<u;c+=1)d[c].n||(h=f[c],v=this.textSpans[c].span,p=this.textSpans[c].glyph,p&&p.renderFrame(),h._mdf.m&&v.setAttribute("transform",h.m),h._mdf.o&&v.setAttribute("opacity",h.o),h._mdf.sw&&v.setAttribute("stroke-width",h.sw),h._mdf.sc&&v.setAttribute("stroke",h.sc),h._mdf.fc&&v.setAttribute("fill",h.fc))}};function ISolidElement(c,u,f){this.initElement(c,u,f)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var c=createNS("rect");c.setAttribute("width",this.data.sw),c.setAttribute("height",this.data.sh),c.setAttribute("fill",this.data.sc),this.layerElement.appendChild(c)};function NullElement(c,u,f){this.initFrame(),this.initBaseData(c,u,f),this.initFrame(),this.initTransform(c,u,f),this.initHierarchy()}NullElement.prototype.prepareFrame=function(c){this.prepareProperties(c,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement);function SVGRendererBase(){}extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(c){return new NullElement(c,this.globalData,this)},SVGRendererBase.prototype.createShape=function(c){return new SVGShapeElement(c,this.globalData,this)},SVGRendererBase.prototype.createText=function(c){return new SVGTextLottieElement(c,this.globalData,this)},SVGRendererBase.prototype.createImage=function(c){return new IImageElement(c,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(c){return new ISolidElement(c,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(c){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+c.w+" "+c.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",c.w),this.svgElement.setAttribute("height",c.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var u=this.globalData.defs;this.setupGlobalData(c,u),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=c;var f=createNS("clipPath"),d=createNS("rect");d.setAttribute("width",c.w),d.setAttribute("height",c.h),d.setAttribute("x",0),d.setAttribute("y",0);var h=createElementID();f.setAttribute("id",h),f.appendChild(d),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+h+")"),u.appendChild(f),this.layers=c.layers,this.elements=createSizedArray(c.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var c,u=this.layers?this.layers.length:0;for(c=0;c<u;c+=1)this.elements[c]&&this.elements[c].destroy&&this.elements[c].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(c){var u=0,f=this.layers.length;for(u=0;u<f;u+=1)if(this.layers[u].ind===c)return u;return-1},SVGRendererBase.prototype.buildItem=function(c){var u=this.elements;if(!(u[c]||this.layers[c].ty===99)){u[c]=!0;var f=this.createItem(this.layers[c]);if(u[c]=f,getExpressionsPlugin()&&(this.layers[c].ty===0&&this.globalData.projectInterface.registerComposition(f),f.initExpressions()),this.appendElementInPos(f,c),this.layers[c].tt){var d="tp"in this.layers[c]?this.findIndexByInd(this.layers[c].tp):c-1;if(d===-1)return;if(!this.elements[d]||this.elements[d]===!0)this.buildItem(d),this.addPendingElement(f);else{var h=u[d],v=h.getMatte(this.layers[c].tt);f.setMatte(v)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var c=this.pendingElements.pop();if(c.checkParenting(),c.data.tt)for(var u=0,f=this.elements.length;u<f;){if(this.elements[u]===c){var d="tp"in c.data?this.findIndexByInd(c.data.tp):u-1,h=this.elements[d],v=h.getMatte(this.layers[u].tt);c.setMatte(v);break}u+=1}}},SVGRendererBase.prototype.renderFrame=function(c){if(!(this.renderedFrame===c||this.destroyed)){c===null?c=this.renderedFrame:this.renderedFrame=c,this.globalData.frameNum=c,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=c,this.globalData._mdf=!1;var u,f=this.layers.length;for(this.completeLayers||this.checkLayers(c),u=f-1;u>=0;u-=1)(this.completeLayers||this.elements[u])&&this.elements[u].prepareFrame(c-this.layers[u].st);if(this.globalData._mdf)for(u=0;u<f;u+=1)(this.completeLayers||this.elements[u])&&this.elements[u].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(c,u){var f=c.getBaseElement();if(f){for(var d=0,h;d<u;)this.elements[d]&&this.elements[d]!==!0&&this.elements[d].getBaseElement()&&(h=this.elements[d].getBaseElement()),d+=1;h?this.layerElement.insertBefore(f,h):this.layerElement.appendChild(f)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(c,u,f){this.initFrame(),this.initBaseData(c,u,f),this.initTransform(c,u,f),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!u.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(c){if(this._mdf=!1,this.prepareRenderableFrame(c),this.prepareProperties(c,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=c/this.data.sr;else{var u=this.tm.v;u===this.data.op&&(u=this.data.op-1),this.renderedFrame=u}var f,d=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),f=d-1;f>=0;f-=1)(this.completeLayers||this.elements[f])&&(this.elements[f].prepareFrame(this.renderedFrame-this.layers[f].st),this.elements[f]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var c,u=this.layers.length;for(c=0;c<u;c+=1)(this.completeLayers||this.elements[c])&&this.elements[c].renderFrame()},ICompElement.prototype.setElements=function(c){this.elements=c},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var c,u=this.layers.length;for(c=0;c<u;c+=1)this.elements[c]&&this.elements[c].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(c,u,f){this.layers=c.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(c,u,f),this.tm=c.tm?PropertyFactory.getProp(this,c.tm,0,u.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(c){return new SVGCompElement(c,this.globalData,this)};function SVGRenderer(c,u){this.animationItem=c,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var f="";if(u&&u.title){var d=createNS("title"),h=createElementID();d.setAttribute("id",h),d.textContent=u.title,this.svgElement.appendChild(d),f+=h}if(u&&u.description){var v=createNS("desc"),p=createElementID();v.setAttribute("id",p),v.textContent=u.description,this.svgElement.appendChild(v),f+=" "+p}f&&this.svgElement.setAttribute("aria-labelledby",f);var m=createNS("defs");this.svgElement.appendChild(m);var g=createNS("g");this.svgElement.appendChild(g),this.layerElement=g,this.renderConfig={preserveAspectRatio:u&&u.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:u&&u.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:u&&u.contentVisibility||"visible",progressiveLoad:u&&u.progressiveLoad||!1,hideOnTransparent:!(u&&u.hideOnTransparent===!1),viewBoxOnly:u&&u.viewBoxOnly||!1,viewBoxSize:u&&u.viewBoxSize||!1,className:u&&u.className||"",id:u&&u.id||"",focusable:u&&u.focusable,filterSize:{width:u&&u.filterSize&&u.filterSize.width||"100%",height:u&&u.filterSize&&u.filterSize.height||"100%",x:u&&u.filterSize&&u.filterSize.x||"0%",y:u&&u.filterSize&&u.filterSize.y||"0%"},width:u&&u.width,height:u&&u.height,runExpressions:!u||u.runExpressions===void 0||u.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:m,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(c){return new SVGCompElement(c,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(u){var f,d=u.length,h="_";for(f=0;f<d;f+=1)h+=u[f].transform.key+"_";var v=this.sequences[h];return v||(v={transforms:[].concat(u),finalTransform:new Matrix,_mdf:!1},this.sequences[h]=v,this.sequenceList.push(v)),v},processSequence:function(u,f){for(var d=0,h=u.transforms.length,v=f;d<h&&!f;){if(u.transforms[d].transform.mProps._mdf){v=!0;break}d+=1}if(v)for(u.finalTransform.reset(),d=h-1;d>=0;d-=1)u.finalTransform.multiply(u.transforms[d].transform.mProps.v);u._mdf=v},processSequences:function(u){var f,d=this.sequenceList.length;for(f=0;f<d;f+=1)this.processSequence(this.sequenceList[f],u)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var u="__lottie_element_luma_buffer",f=null,d=null,h=null;function v(){var g=createNS("svg"),y=createNS("filter"),b=createNS("feColorMatrix");return y.setAttribute("id",u),b.setAttribute("type","matrix"),b.setAttribute("color-interpolation-filters","sRGB"),b.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),y.appendChild(b),g.appendChild(y),g.setAttribute("id",u+"_svg"),featureSupport.svgLumaHidden&&(g.style.display="none"),g}function p(){f||(h=v(),document.body.appendChild(h),f=createTag("canvas"),d=f.getContext("2d"),d.filter="url(#"+u+")",d.fillStyle="rgba(0,0,0,0)",d.fillRect(0,0,1,1))}function m(g){return f||p(),f.width=g.width,f.height=g.height,d.filter="url(#"+u+")",f}return{load:p,get:m}};function createCanvas(c,u){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(c,u);var f=createTag("canvas");return f.width=c,f.height=u,f}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(c){var u,f=c.data.ef?c.data.ef.length:0;this.filters=[];var d;for(u=0;u<f;u+=1){d=null;var h=c.data.ef[u].ty;if(registeredEffects[h]){var v=registeredEffects[h].effect;d=new v(c.effectsManager.effectElements[u],c)}d&&this.filters.push(d)}this.filters.length&&c.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(c){var u,f=this.filters.length;for(u=0;u<f;u+=1)this.filters[u].renderFrame(c)},CVEffects.prototype.getEffects=function(c){var u,f=this.filters.length,d=[];for(u=0;u<f;u+=1)this.filters[u].type===c&&d.push(this.filters[u]);return d};function registerEffect(c,u){registeredEffects[c]={effect:u}}function CVMaskElement(c,u){this.data=c,this.element=u,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var f,d=this.masksProperties.length,h=!1;for(f=0;f<d;f+=1)this.masksProperties[f].mode!=="n"&&(h=!0),this.viewData[f]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[f],3);this.hasMasks=h,h&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var c=this.element.finalTransform.mat,u=this.element.canvasContext,f,d=this.masksProperties.length,h,v,p;for(u.beginPath(),f=0;f<d;f+=1)if(this.masksProperties[f].mode!=="n"){this.masksProperties[f].inv&&(u.moveTo(0,0),u.lineTo(this.element.globalData.compSize.w,0),u.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),u.lineTo(0,this.element.globalData.compSize.h),u.lineTo(0,0)),p=this.viewData[f].v,h=c.applyToPointArray(p.v[0][0],p.v[0][1],0),u.moveTo(h[0],h[1]);var m,g=p._length;for(m=1;m<g;m+=1)v=c.applyToTriplePoints(p.o[m-1],p.i[m],p.v[m]),u.bezierCurveTo(v[0],v[1],v[2],v[3],v[4],v[5]);v=c.applyToTriplePoints(p.o[m-1],p.i[0],p.v[0]),u.bezierCurveTo(v[0],v[1],v[2],v[3],v[4],v[5])}this.element.globalData.renderer.save(!0),u.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var u=this.globalData.canvasContext,f=assetLoader.createCanvas(u.canvas.width,u.canvas.height);this.buffers.push(f);var d=assetLoader.createCanvas(u.canvas.width,u.canvas.height);this.buffers.push(d),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var u=this.globalData;if(u.blendMode!==this.data.bm){u.blendMode=this.data.bm;var f=getBlendMode(this.data.bm);u.canvasContext.globalCompositeOperation=f}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(u){u.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var u=this.buffers[0],f=u.getContext("2d");this.clearCanvas(f),f.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var u=this.buffers[1],f=u.getContext("2d");this.clearCanvas(f),f.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var d=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(d.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var h=assetLoader.getLumaCanvas(this.canvasContext.canvas),v=h.getContext("2d");v.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(h,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(u,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(u){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!u)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var f=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(f),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(f),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(c,u,f,d){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var h=4;u.ty==="rc"?h=5:u.ty==="el"?h=6:u.ty==="sr"&&(h=7),this.sh=ShapePropertyFactory.getShapeProp(c,u,h,c);var v,p=f.length,m;for(v=0;v<p;v+=1)f[v].closed||(m={transforms:d.addTransformSequence(f[v].transforms),trNodes:[]},this.styledShapes.push(m),f[v].elements.push(m))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(c,u,f){this.shapes=[],this.shapesData=c.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(c,u){var f={data:c,type:c.ty,preTransforms:this.transformsManager.addTransformSequence(u),transforms:[],elements:[],closed:c.hd===!0},d={};if(c.ty==="fl"||c.ty==="st"?(d.c=PropertyFactory.getProp(this,c.c,1,255,this),d.c.k||(f.co="rgb("+bmFloor(d.c.v[0])+","+bmFloor(d.c.v[1])+","+bmFloor(d.c.v[2])+")")):(c.ty==="gf"||c.ty==="gs")&&(d.s=PropertyFactory.getProp(this,c.s,1,null,this),d.e=PropertyFactory.getProp(this,c.e,1,null,this),d.h=PropertyFactory.getProp(this,c.h||{k:0},0,.01,this),d.a=PropertyFactory.getProp(this,c.a||{k:0},0,degToRads,this),d.g=new GradientProperty(this,c.g,this)),d.o=PropertyFactory.getProp(this,c.o,0,.01,this),c.ty==="st"||c.ty==="gs"){if(f.lc=lineCapEnum[c.lc||2],f.lj=lineJoinEnum[c.lj||2],c.lj==1&&(f.ml=c.ml),d.w=PropertyFactory.getProp(this,c.w,0,null,this),d.w.k||(f.wi=d.w.v),c.d){var h=new DashProperty(this,c.d,"canvas",this);d.d=h,d.d.k||(f.da=d.d.dashArray,f.do=d.d.dashoffset[0])}}else f.r=c.r===2?"evenodd":"nonzero";return this.stylesList.push(f),d.style=f,d},CVShapeElement.prototype.createGroupElement=function(){var c={it:[],prevViewData:[]};return c},CVShapeElement.prototype.createTransformElement=function(c){var u={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,c.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,c,this)}};return u},CVShapeElement.prototype.createShapeElement=function(c){var u=new CVShapeData(this,c,this.stylesList,this.transformsManager);return this.shapes.push(u),this.addShapeToModifiers(u),u},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var c,u=this.itemsData.length;for(c=0;c<u;c+=1)this.prevViewData[c]=this.itemsData[c];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),u=this.dynamicProperties.length,c=0;c<u;c+=1)this.dynamicProperties[c].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(c){var u,f=this.stylesList.length;for(u=0;u<f;u+=1)this.stylesList[u].closed||this.stylesList[u].transforms.push(c)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var c,u=this.stylesList.length;for(c=0;c<u;c+=1)this.stylesList[c].closed||this.stylesList[c].transforms.pop()},CVShapeElement.prototype.closeStyles=function(c){var u,f=c.length;for(u=0;u<f;u+=1)c[u].closed=!0},CVShapeElement.prototype.searchShapes=function(c,u,f,d,h){var v,p=c.length-1,m,g,y=[],b=[],gn,x,vn,J=[].concat(h);for(v=p;v>=0;v-=1){if(gn=this.searchProcessedElement(c[v]),gn?u[v]=f[gn-1]:c[v]._shouldRender=d,c[v].ty==="fl"||c[v].ty==="st"||c[v].ty==="gf"||c[v].ty==="gs")gn?u[v].style.closed=!1:u[v]=this.createStyleElement(c[v],J),y.push(u[v].style);else if(c[v].ty==="gr"){if(!gn)u[v]=this.createGroupElement(c[v]);else for(g=u[v].it.length,m=0;m<g;m+=1)u[v].prevViewData[m]=u[v].it[m];this.searchShapes(c[v].it,u[v].it,u[v].prevViewData,d,J)}else c[v].ty==="tr"?(gn||(vn=this.createTransformElement(c[v]),u[v]=vn),J.push(u[v]),this.addTransformToStyleList(u[v])):c[v].ty==="sh"||c[v].ty==="rc"||c[v].ty==="el"||c[v].ty==="sr"?gn||(u[v]=this.createShapeElement(c[v])):c[v].ty==="tm"||c[v].ty==="rd"||c[v].ty==="pb"||c[v].ty==="zz"||c[v].ty==="op"?(gn?(x=u[v],x.closed=!1):(x=ShapeModifiers.getModifier(c[v].ty),x.init(this,c[v]),u[v]=x,this.shapeModifiers.push(x)),b.push(x)):c[v].ty==="rp"&&(gn?(x=u[v],x.closed=!0):(x=ShapeModifiers.getModifier(c[v].ty),u[v]=x,x.init(this,c,v,u),this.shapeModifiers.push(x),d=!1),b.push(x));this.addProcessedElement(c[v],v+1)}for(this.removeTransformFromStyleList(),this.closeStyles(y),p=b.length,v=0;v<p;v+=1)b[v].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(c,u){(c._opMdf||u.op._mdf||this._isFirstFrame)&&(u.opacity=c.opacity,u.opacity*=u.op.v,u._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var c,u=this.stylesList.length,f,d,h,v,p,m,g=this.globalData.renderer,y=this.globalData.canvasContext,b,gn;for(c=0;c<u;c+=1)if(gn=this.stylesList[c],b=gn.type,!((b==="st"||b==="gs")&&gn.wi===0||!gn.data._shouldRender||gn.coOp===0||this.globalData.currentGlobalAlpha===0)){for(g.save(),p=gn.elements,b==="st"||b==="gs"?(g.ctxStrokeStyle(b==="st"?gn.co:gn.grd),g.ctxLineWidth(gn.wi),g.ctxLineCap(gn.lc),g.ctxLineJoin(gn.lj),g.ctxMiterLimit(gn.ml||0)):g.ctxFillStyle(b==="fl"?gn.co:gn.grd),g.ctxOpacity(gn.coOp),b!=="st"&&b!=="gs"&&y.beginPath(),g.ctxTransform(gn.preTransforms.finalTransform.props),d=p.length,f=0;f<d;f+=1){for((b==="st"||b==="gs")&&(y.beginPath(),gn.da&&(y.setLineDash(gn.da),y.lineDashOffset=gn.do)),m=p[f].trNodes,v=m.length,h=0;h<v;h+=1)m[h].t==="m"?y.moveTo(m[h].p[0],m[h].p[1]):m[h].t==="c"?y.bezierCurveTo(m[h].pts[0],m[h].pts[1],m[h].pts[2],m[h].pts[3],m[h].pts[4],m[h].pts[5]):y.closePath();(b==="st"||b==="gs")&&(g.ctxStroke(),gn.da&&y.setLineDash(this.dashResetter))}b!=="st"&&b!=="gs"&&this.globalData.renderer.ctxFill(gn.r),g.restore()}},CVShapeElement.prototype.renderShape=function(c,u,f,d){var h,v=u.length-1,p;for(p=c,h=v;h>=0;h-=1)u[h].ty==="tr"?(p=f[h].transform,this.renderShapeTransform(c,p)):u[h].ty==="sh"||u[h].ty==="el"||u[h].ty==="rc"||u[h].ty==="sr"?this.renderPath(u[h],f[h]):u[h].ty==="fl"?this.renderFill(u[h],f[h],p):u[h].ty==="st"?this.renderStroke(u[h],f[h],p):u[h].ty==="gf"||u[h].ty==="gs"?this.renderGradientFill(u[h],f[h],p):u[h].ty==="gr"?this.renderShape(p,u[h].it,f[h].it):u[h].ty;d&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(c,u){if(this._isFirstFrame||u._mdf||c.transforms._mdf){var f=c.trNodes,d=u.paths,h,v,p,m=d._length;f.length=0;var g=c.transforms.finalTransform;for(p=0;p<m;p+=1){var y=d.shapes[p];if(y&&y.v){for(v=y._length,h=1;h<v;h+=1)h===1&&f.push({t:"m",p:g.applyToPointArray(y.v[0][0],y.v[0][1],0)}),f.push({t:"c",pts:g.applyToTriplePoints(y.o[h-1],y.i[h],y.v[h])});v===1&&f.push({t:"m",p:g.applyToPointArray(y.v[0][0],y.v[0][1],0)}),y.c&&v&&(f.push({t:"c",pts:g.applyToTriplePoints(y.o[h-1],y.i[0],y.v[0])}),f.push({t:"z"}))}}c.trNodes=f}},CVShapeElement.prototype.renderPath=function(c,u){if(c.hd!==!0&&c._shouldRender){var f,d=u.styledShapes.length;for(f=0;f<d;f+=1)this.renderStyledShape(u.styledShapes[f],u.sh)}},CVShapeElement.prototype.renderFill=function(c,u,f){var d=u.style;(u.c._mdf||this._isFirstFrame)&&(d.co="rgb("+bmFloor(u.c.v[0])+","+bmFloor(u.c.v[1])+","+bmFloor(u.c.v[2])+")"),(u.o._mdf||f._opMdf||this._isFirstFrame)&&(d.coOp=u.o.v*f.opacity)},CVShapeElement.prototype.renderGradientFill=function(c,u,f){var d=u.style,h;if(!d.grd||u.g._mdf||u.s._mdf||u.e._mdf||c.t!==1&&(u.h._mdf||u.a._mdf)){var v=this.globalData.canvasContext,p=u.s.v,m=u.e.v;if(c.t===1)h=v.createLinearGradient(p[0],p[1],m[0],m[1]);else{var g=Math.sqrt(Math.pow(p[0]-m[0],2)+Math.pow(p[1]-m[1],2)),y=Math.atan2(m[1]-p[1],m[0]-p[0]),b=u.h.v;b>=1?b=.99:b<=-1&&(b=-.99);var gn=g*b,x=Math.cos(y+u.a.v)*gn+p[0],vn=Math.sin(y+u.a.v)*gn+p[1];h=v.createRadialGradient(x,vn,0,p[0],p[1],g)}var J,j=c.g.p,Fn=u.g.c,Bn=1;for(J=0;J<j;J+=1)u.g._hasOpacity&&u.g._collapsable&&(Bn=u.g.o[J*2+1]),h.addColorStop(Fn[J*4]/100,"rgba("+Fn[J*4+1]+","+Fn[J*4+2]+","+Fn[J*4+3]+","+Bn+")");d.grd=h}d.coOp=u.o.v*f.opacity},CVShapeElement.prototype.renderStroke=function(c,u,f){var d=u.style,h=u.d;h&&(h._mdf||this._isFirstFrame)&&(d.da=h.dashArray,d.do=h.dashoffset[0]),(u.c._mdf||this._isFirstFrame)&&(d.co="rgb("+bmFloor(u.c.v[0])+","+bmFloor(u.c.v[1])+","+bmFloor(u.c.v[2])+")"),(u.o._mdf||f._opMdf||this._isFirstFrame)&&(d.coOp=u.o.v*f.opacity),(u.w._mdf||this._isFirstFrame)&&(d.wi=u.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0};function CVTextElement(c,u,f){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var c=this.textProperty.currentData;this.renderedLetters=createSizedArray(c.l?c.l.length:0);var u=!1;c.fc?(u=!0,this.values.fill=this.buildColor(c.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=u;var f=!1;c.sc&&(f=!0,this.values.stroke=this.buildColor(c.sc),this.values.sWidth=c.sw);var d=this.globalData.fontManager.getFontByName(c.f),h,v,p=c.l,m=this.mHelper;this.stroke=f,this.values.fValue=c.finalSize+"px "+this.globalData.fontManager.getFontByName(c.f).fFamily,v=c.finalText.length;var g,y,b,gn,x,vn,J,j,Fn,Bn,w=this.data.singleShape,re=c.tr*.001*c.finalSize,Pn=0,Rn=0,Vn=!0,Wn=0;for(h=0;h<v;h+=1){g=this.globalData.fontManager.getCharData(c.finalText[h],d.fStyle,this.globalData.fontManager.getFontByName(c.f).fFamily),y=g&&g.data||{},m.reset(),w&&p[h].n&&(Pn=-re,Rn+=c.yOffset,Rn+=Vn?1:0,Vn=!1),x=y.shapes?y.shapes[0].it:[],J=x.length,m.scale(c.finalSize/100,c.finalSize/100),w&&this.applyTextPropertiesToMatrix(c,m,p[h].line,Pn,Rn),Fn=createSizedArray(J-1);var Gn=0;for(vn=0;vn<J;vn+=1)if(x[vn].ty==="sh"){for(gn=x[vn].ks.k.i.length,j=x[vn].ks.k,Bn=[],b=1;b<gn;b+=1)b===1&&Bn.push(m.applyToX(j.v[0][0],j.v[0][1],0),m.applyToY(j.v[0][0],j.v[0][1],0)),Bn.push(m.applyToX(j.o[b-1][0],j.o[b-1][1],0),m.applyToY(j.o[b-1][0],j.o[b-1][1],0),m.applyToX(j.i[b][0],j.i[b][1],0),m.applyToY(j.i[b][0],j.i[b][1],0),m.applyToX(j.v[b][0],j.v[b][1],0),m.applyToY(j.v[b][0],j.v[b][1],0));Bn.push(m.applyToX(j.o[b-1][0],j.o[b-1][1],0),m.applyToY(j.o[b-1][0],j.o[b-1][1],0),m.applyToX(j.i[0][0],j.i[0][1],0),m.applyToY(j.i[0][0],j.i[0][1],0),m.applyToX(j.v[0][0],j.v[0][1],0),m.applyToY(j.v[0][0],j.v[0][1],0)),Fn[Gn]=Bn,Gn+=1}w&&(Pn+=p[h].l,Pn+=re),this.textSpans[Wn]?this.textSpans[Wn].elem=Fn:this.textSpans[Wn]={elem:Fn},Wn+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var c=this.canvasContext;c.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var u,f,d,h,v,p,m=this.textAnimator.renderedLetters,g=this.textProperty.currentData.l;f=g.length;var y,b=null,gn=null,x=null,vn,J,j=this.globalData.renderer;for(u=0;u<f;u+=1)if(!g[u].n){if(y=m[u],y&&(j.save(),j.ctxTransform(y.p),j.ctxOpacity(y.o)),this.fill){for(y&&y.fc?b!==y.fc&&(j.ctxFillStyle(y.fc),b=y.fc):b!==this.values.fill&&(b=this.values.fill,j.ctxFillStyle(this.values.fill)),vn=this.textSpans[u].elem,h=vn.length,this.globalData.canvasContext.beginPath(),d=0;d<h;d+=1)for(J=vn[d],p=J.length,this.globalData.canvasContext.moveTo(J[0],J[1]),v=2;v<p;v+=6)this.globalData.canvasContext.bezierCurveTo(J[v],J[v+1],J[v+2],J[v+3],J[v+4],J[v+5]);this.globalData.canvasContext.closePath(),j.ctxFill()}if(this.stroke){for(y&&y.sw?x!==y.sw&&(x=y.sw,j.ctxLineWidth(y.sw)):x!==this.values.sWidth&&(x=this.values.sWidth,j.ctxLineWidth(this.values.sWidth)),y&&y.sc?gn!==y.sc&&(gn=y.sc,j.ctxStrokeStyle(y.sc)):gn!==this.values.stroke&&(gn=this.values.stroke,j.ctxStrokeStyle(this.values.stroke)),vn=this.textSpans[u].elem,h=vn.length,this.globalData.canvasContext.beginPath(),d=0;d<h;d+=1)for(J=vn[d],p=J.length,this.globalData.canvasContext.moveTo(J[0],J[1]),v=2;v<p;v+=6)this.globalData.canvasContext.bezierCurveTo(J[v],J[v+1],J[v+2],J[v+3],J[v+4],J[v+5]);this.globalData.canvasContext.closePath(),j.ctxStroke()}y&&this.globalData.renderer.restore()}};function CVImageElement(c,u,f){this.assetData=u.getAssetData(c.refId),this.img=u.imageLoader.getAsset(this.assetData),this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var c=createTag("canvas");c.width=this.assetData.w,c.height=this.assetData.h;var u=c.getContext("2d"),f=this.img.width,d=this.img.height,h=f/d,v=this.assetData.w/this.assetData.h,p,m,g=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;h>v&&g==="xMidYMid slice"||h<v&&g!=="xMidYMid slice"?(m=d,p=m*v):(p=f,m=p/v),u.drawImage(this.img,(f-p)/2,(d-m)/2,p,m,0,0,this.assetData.w,this.assetData.h),this.img=c}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(c,u,f){this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(){}extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(c){return new CVShapeElement(c,this.globalData,this)},CanvasRendererBase.prototype.createText=function(c){return new CVTextElement(c,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(c){return new CVImageElement(c,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(c){return new CVSolidElement(c,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(c){c[0]===1&&c[1]===0&&c[4]===0&&c[5]===1&&c[12]===0&&c[13]===0||this.canvasContext.transform(c[0],c[1],c[4],c[5],c[12],c[13])},CanvasRendererBase.prototype.ctxOpacity=function(c){this.canvasContext.globalAlpha*=c<0?0:c},CanvasRendererBase.prototype.ctxFillStyle=function(c){this.canvasContext.fillStyle=c},CanvasRendererBase.prototype.ctxStrokeStyle=function(c){this.canvasContext.strokeStyle=c},CanvasRendererBase.prototype.ctxLineWidth=function(c){this.canvasContext.lineWidth=c},CanvasRendererBase.prototype.ctxLineCap=function(c){this.canvasContext.lineCap=c},CanvasRendererBase.prototype.ctxLineJoin=function(c){this.canvasContext.lineJoin=c},CanvasRendererBase.prototype.ctxMiterLimit=function(c){this.canvasContext.miterLimit=c},CanvasRendererBase.prototype.ctxFill=function(c){this.canvasContext.fill(c)},CanvasRendererBase.prototype.ctxFillRect=function(c,u,f,d){this.canvasContext.fillRect(c,u,f,d)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(c){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}c&&(this.globalData.blendMode="source-over"),this.contextData.restore(c)},CanvasRendererBase.prototype.configAnimation=function(c){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var u=this.animationItem.container.style;u.width="100%",u.height="100%";var f="0px 0px 0px";u.transformOrigin=f,u.mozTransformOrigin=f,u.webkitTransformOrigin=f,u["-webkit-transform"]=f,u.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=c,this.layers=c.layers,this.transformCanvas={w:c.w,h:c.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(c,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(c.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(c,u){this.reset();var f,d;c?(f=c,d=u,this.canvasContext.canvas.width=f,this.canvasContext.canvas.height=d):(this.animationItem.wrapper&&this.animationItem.container?(f=this.animationItem.wrapper.offsetWidth,d=this.animationItem.wrapper.offsetHeight):(f=this.canvasContext.canvas.width,d=this.canvasContext.canvas.height),this.canvasContext.canvas.width=f*this.renderConfig.dpr,this.canvasContext.canvas.height=d*this.renderConfig.dpr);var h,v;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var p=this.renderConfig.preserveAspectRatio.split(" "),m=p[1]||"meet",g=p[0]||"xMidYMid",y=g.substr(0,4),b=g.substr(4);h=f/d,v=this.transformCanvas.w/this.transformCanvas.h,v>h&&m==="meet"||v<h&&m==="slice"?(this.transformCanvas.sx=f/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=f/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=d/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=d/(this.transformCanvas.h/this.renderConfig.dpr)),y==="xMid"&&(v<h&&m==="meet"||v>h&&m==="slice")?this.transformCanvas.tx=(f-this.transformCanvas.w*(d/this.transformCanvas.h))/2*this.renderConfig.dpr:y==="xMax"&&(v<h&&m==="meet"||v>h&&m==="slice")?this.transformCanvas.tx=(f-this.transformCanvas.w*(d/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,b==="YMid"&&(v>h&&m==="meet"||v<h&&m==="slice")?this.transformCanvas.ty=(d-this.transformCanvas.h*(f/this.transformCanvas.w))/2*this.renderConfig.dpr:b==="YMax"&&(v>h&&m==="meet"||v<h&&m==="slice")?this.transformCanvas.ty=(d-this.transformCanvas.h*(f/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=f/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=d/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText="");var c,u=this.layers?this.layers.length:0;for(c=u-1;c>=0;c-=1)this.elements[c]&&this.elements[c].destroy&&this.elements[c].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(c,u){if(!(this.renderedFrame===c&&this.renderConfig.clearCanvas===!0&&!u||this.destroyed||c===-1)){this.renderedFrame=c,this.globalData.frameNum=c-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||u,this.globalData.projectInterface.currentFrame=c;var f,d=this.layers.length;for(this.completeLayers||this.checkLayers(c),f=d-1;f>=0;f-=1)(this.completeLayers||this.elements[f])&&this.elements[f].prepareFrame(c-this.layers[f].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),f=d-1;f>=0;f-=1)(this.completeLayers||this.elements[f])&&this.elements[f].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(c){var u=this.elements;if(!(u[c]||this.layers[c].ty===99)){var f=this.createItem(this.layers[c],this,this.globalData);u[c]=f,f.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var c=this.pendingElements.pop();c.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var c,u=15;for(c=0;c<u;c+=1){var f=new CanvasContext;this.stack[c]=f}this._length=u,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}CVContextData.prototype.duplicate=function(){var c=this._length*2,u=0;for(u=this._length;u<c;u+=1)this.stack[u]=new CanvasContext;this._length=c},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(c){this.cArrPos-=1;var u=this.stack[this.cArrPos],f=u.transform,d,h=this.cTr.props;for(d=0;d<16;d+=1)h[d]=f[d];if(c){this.nativeContext.restore();var v=this.stack[this.cArrPos+1];this.appliedFillStyle=v.fillStyle,this.appliedStrokeStyle=v.strokeStyle,this.appliedLineWidth=v.lineWidth,this.appliedLineCap=v.lineCap,this.appliedLineJoin=v.lineJoin,this.appliedMiterLimit=v.miterLimit}this.nativeContext.setTransform(f[0],f[1],f[4],f[5],f[12],f[13]),(c||u.opacity!==-1&&this.currentOpacity!==u.opacity)&&(this.nativeContext.globalAlpha=u.opacity,this.currentOpacity=u.opacity),this.currentFillStyle=u.fillStyle,this.currentStrokeStyle=u.strokeStyle,this.currentLineWidth=u.lineWidth,this.currentLineCap=u.lineCap,this.currentLineJoin=u.lineJoin,this.currentMiterLimit=u.miterLimit},CVContextData.prototype.save=function(c){c&&this.nativeContext.save();var u=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var f=this.stack[this.cArrPos],d;for(d=0;d<16;d+=1)f.transform[d]=u[d];this.cArrPos+=1;var h=this.stack[this.cArrPos];h.opacity=f.opacity,h.fillStyle=f.fillStyle,h.strokeStyle=f.strokeStyle,h.lineWidth=f.lineWidth,h.lineCap=f.lineCap,h.lineJoin=f.lineJoin,h.miterLimit=f.miterLimit},CVContextData.prototype.setOpacity=function(c){this.stack[this.cArrPos].opacity=c},CVContextData.prototype.setContext=function(c){this.nativeContext=c},CVContextData.prototype.fillStyle=function(c){this.stack[this.cArrPos].fillStyle!==c&&(this.currentFillStyle=c,this.stack[this.cArrPos].fillStyle=c)},CVContextData.prototype.strokeStyle=function(c){this.stack[this.cArrPos].strokeStyle!==c&&(this.currentStrokeStyle=c,this.stack[this.cArrPos].strokeStyle=c)},CVContextData.prototype.lineWidth=function(c){this.stack[this.cArrPos].lineWidth!==c&&(this.currentLineWidth=c,this.stack[this.cArrPos].lineWidth=c)},CVContextData.prototype.lineCap=function(c){this.stack[this.cArrPos].lineCap!==c&&(this.currentLineCap=c,this.stack[this.cArrPos].lineCap=c)},CVContextData.prototype.lineJoin=function(c){this.stack[this.cArrPos].lineJoin!==c&&(this.currentLineJoin=c,this.stack[this.cArrPos].lineJoin=c)},CVContextData.prototype.miterLimit=function(c){this.stack[this.cArrPos].miterLimit!==c&&(this.currentMiterLimit=c,this.stack[this.cArrPos].miterLimit=c)},CVContextData.prototype.transform=function(c){this.transformMat.cloneFromProps(c);var u=this.cTr;this.transformMat.multiply(u),u.cloneFromProps(this.transformMat.props);var f=u.props;this.nativeContext.setTransform(f[0],f[1],f[4],f[5],f[12],f[13])},CVContextData.prototype.opacity=function(c){var u=this.stack[this.cArrPos].opacity;u*=c<0?0:c,this.stack[this.cArrPos].opacity!==u&&(this.currentOpacity!==c&&(this.nativeContext.globalAlpha=c,this.currentOpacity=c),this.stack[this.cArrPos].opacity=u)},CVContextData.prototype.fill=function(c){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(c)},CVContextData.prototype.fillRect=function(c,u,f,d){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(c,u,f,d)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()};function CVCompElement(c,u,f){this.completeLayers=!1,this.layers=c.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(c,u,f),this.tm=c.tm?PropertyFactory.getProp(this,c.tm,0,u.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var c=this.canvasContext;c.beginPath(),c.moveTo(0,0),c.lineTo(this.data.w,0),c.lineTo(this.data.w,this.data.h),c.lineTo(0,this.data.h),c.lineTo(0,0),c.clip();var u,f=this.layers.length;for(u=f-1;u>=0;u-=1)(this.completeLayers||this.elements[u])&&this.elements[u].renderFrame()},CVCompElement.prototype.destroy=function(){var c,u=this.layers.length;for(c=u-1;c>=0;c-=1)this.elements[c]&&this.elements[c].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(c){return new CVCompElement(c,this.globalData,this)};function CanvasRenderer(c,u){this.animationItem=c,this.renderConfig={clearCanvas:u&&u.clearCanvas!==void 0?u.clearCanvas:!0,context:u&&u.context||null,progressiveLoad:u&&u.progressiveLoad||!1,preserveAspectRatio:u&&u.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:u&&u.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:u&&u.contentVisibility||"visible",className:u&&u.className||"",id:u&&u.id||"",runExpressions:!u||u.runExpressions===void 0||u.runExpressions},this.renderConfig.dpr=u&&u.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=u&&u.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(c){return new CVCompElement(c,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var u=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var f=this.finalTransform.mat.toCSS();u.transform=f,u.webkitTransform=f}this.finalTransform._opMdf&&(u.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(c,u,f){this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var c;this.data.hasMask?(c=createNS("rect"),c.setAttribute("width",this.data.sw),c.setAttribute("height",this.data.sh),c.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(c=createTag("div"),c.style.width=this.data.sw+"px",c.style.height=this.data.sh+"px",c.style.backgroundColor=this.data.sc),this.layerElement.appendChild(c)};function HShapeElement(c,u,f){this.shapes=[],this.shapesData=c.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(c,u,f),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var c;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),c=this.svgElement;else{c=createNS("svg");var u=this.comp.data?this.comp.data:this.globalData.compSize;c.setAttribute("width",u.w),c.setAttribute("height",u.h),c.appendChild(this.shapesContainer),this.layerElement.appendChild(c)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=c},HShapeElement.prototype.getTransformedPoint=function(c,u){var f,d=c.length;for(f=0;f<d;f+=1)u=c[f].mProps.v.applyToPointArray(u[0],u[1],0);return u},HShapeElement.prototype.calculateShapeBoundingBox=function(c,u){var f=c.sh.v,d=c.transformers,h,v=f._length,p,m,g,y;if(!(v<=1)){for(h=0;h<v-1;h+=1)p=this.getTransformedPoint(d,f.v[h]),m=this.getTransformedPoint(d,f.o[h]),g=this.getTransformedPoint(d,f.i[h+1]),y=this.getTransformedPoint(d,f.v[h+1]),this.checkBounds(p,m,g,y,u);f.c&&(p=this.getTransformedPoint(d,f.v[h]),m=this.getTransformedPoint(d,f.o[h]),g=this.getTransformedPoint(d,f.i[0]),y=this.getTransformedPoint(d,f.v[0]),this.checkBounds(p,m,g,y,u))}},HShapeElement.prototype.checkBounds=function(c,u,f,d,h){this.getBoundsOfCurve(c,u,f,d);var v=this.shapeBoundingBox;h.x=bmMin(v.left,h.x),h.xMax=bmMax(v.right,h.xMax),h.y=bmMin(v.top,h.y),h.yMax=bmMax(v.bottom,h.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(c,u,f,d){for(var h=[[c[0],d[0]],[c[1],d[1]]],v,p,m,g,y,b,gn,x=0;x<2;++x)p=6*c[x]-12*u[x]+6*f[x],v=-3*c[x]+9*u[x]-9*f[x]+3*d[x],m=3*u[x]-3*c[x],p|=0,v|=0,m|=0,v===0&&p===0||(v===0?(g=-m/p,g>0&&g<1&&h[x].push(this.calculateF(g,c,u,f,d,x))):(y=p*p-4*m*v,y>=0&&(b=(-p+bmSqrt(y))/(2*v),b>0&&b<1&&h[x].push(this.calculateF(b,c,u,f,d,x)),gn=(-p-bmSqrt(y))/(2*v),gn>0&&gn<1&&h[x].push(this.calculateF(gn,c,u,f,d,x)))));this.shapeBoundingBox.left=bmMin.apply(null,h[0]),this.shapeBoundingBox.top=bmMin.apply(null,h[1]),this.shapeBoundingBox.right=bmMax.apply(null,h[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,h[1])},HShapeElement.prototype.calculateF=function(c,u,f,d,h,v){return bmPow(1-c,3)*u[v]+3*bmPow(1-c,2)*c*f[v]+3*(1-c)*bmPow(c,2)*d[v]+bmPow(c,3)*h[v]},HShapeElement.prototype.calculateBoundingBox=function(c,u){var f,d=c.length;for(f=0;f<d;f+=1)c[f]&&c[f].sh?this.calculateShapeBoundingBox(c[f],u):c[f]&&c[f].it?this.calculateBoundingBox(c[f].it,u):c[f]&&c[f].style&&c[f].w&&this.expandStrokeBoundingBox(c[f].w,u)},HShapeElement.prototype.expandStrokeBoundingBox=function(c,u){var f=0;if(c.keyframes){for(var d=0;d<c.keyframes.length;d+=1){var h=c.keyframes[d].s;h>f&&(f=h)}f*=c.mult}else f=c.v*c.mult;u.x-=f,u.xMax+=f,u.y-=f,u.yMax+=f},HShapeElement.prototype.currentBoxContains=function(c){return this.currentBBox.x<=c.x&&this.currentBBox.y<=c.y&&this.currentBBox.width+this.currentBBox.x>=c.x+c.width&&this.currentBBox.height+this.currentBBox.y>=c.y+c.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var c=this.tempBoundingBox,u=999999;if(c.x=u,c.xMax=-u,c.y=u,c.yMax=-u,this.calculateBoundingBox(this.itemsData,c),c.width=c.xMax<c.x?0:c.xMax-c.x,c.height=c.yMax<c.y?0:c.yMax-c.y,this.currentBoxContains(c))return;var f=!1;if(this.currentBBox.w!==c.width&&(this.currentBBox.w=c.width,this.shapeCont.setAttribute("width",c.width),f=!0),this.currentBBox.h!==c.height&&(this.currentBBox.h=c.height,this.shapeCont.setAttribute("height",c.height),f=!0),f||this.currentBBox.x!==c.x||this.currentBBox.y!==c.y){this.currentBBox.w=c.width,this.currentBBox.h=c.height,this.currentBBox.x=c.x,this.currentBBox.y=c.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var d=this.shapeCont.style,h="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";d.transform=h,d.webkitTransform=h}}};function HTextElement(c,u,f){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var c=createNS("g");this.maskedElement.appendChild(c),this.innerElem=c}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var c=this.textProperty.currentData;this.renderedLetters=createSizedArray(c.l?c.l.length:0);var u=this.innerElem.style,f=c.fc?this.buildColor(c.fc):"rgba(0,0,0,0)";u.fill=f,u.color=f,c.sc&&(u.stroke=this.buildColor(c.sc),u.strokeWidth=c.sw+"px");var d=this.globalData.fontManager.getFontByName(c.f);if(!this.globalData.fontManager.chars)if(u.fontSize=c.finalSize+"px",u.lineHeight=c.finalSize+"px",d.fClass)this.innerElem.className=d.fClass;else{u.fontFamily=d.fFamily;var h=c.fWeight,v=c.fStyle;u.fontStyle=v,u.fontWeight=h}var p,m,g=c.l;m=g.length;var y,b,gn,x=this.mHelper,vn,J="",j=0;for(p=0;p<m;p+=1){if(this.globalData.fontManager.chars?(this.textPaths[j]?y=this.textPaths[j]:(y=createNS("path"),y.setAttribute("stroke-linecap",lineCapEnum[1]),y.setAttribute("stroke-linejoin",lineJoinEnum[2]),y.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[j]?(b=this.textSpans[j],gn=b.children[0]):(b=createTag("div"),b.style.lineHeight=0,gn=createNS("svg"),gn.appendChild(y),styleDiv(b)))):this.isMasked?y=this.textPaths[j]?this.textPaths[j]:createNS("text"):this.textSpans[j]?(b=this.textSpans[j],y=this.textPaths[j]):(b=createTag("span"),styleDiv(b),y=createTag("span"),styleDiv(y),b.appendChild(y)),this.globalData.fontManager.chars){var Fn=this.globalData.fontManager.getCharData(c.finalText[p],d.fStyle,this.globalData.fontManager.getFontByName(c.f).fFamily),Bn;if(Fn?Bn=Fn.data:Bn=null,x.reset(),Bn&&Bn.shapes&&Bn.shapes.length&&(vn=Bn.shapes[0].it,x.scale(c.finalSize/100,c.finalSize/100),J=this.createPathShape(x,vn),y.setAttribute("d",J)),this.isMasked)this.innerElem.appendChild(y);else{if(this.innerElem.appendChild(b),Bn&&Bn.shapes){document.body.appendChild(gn);var w=gn.getBBox();gn.setAttribute("width",w.width+2),gn.setAttribute("height",w.height+2),gn.setAttribute("viewBox",w.x-1+" "+(w.y-1)+" "+(w.width+2)+" "+(w.height+2));var re=gn.style,Pn="translate("+(w.x-1)+"px,"+(w.y-1)+"px)";re.transform=Pn,re.webkitTransform=Pn,g[p].yOffset=w.y-1}else gn.setAttribute("width",1),gn.setAttribute("height",1);b.appendChild(gn)}}else if(y.textContent=g[p].val,y.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(y);else{this.innerElem.appendChild(b);var Rn=y.style,Vn="translate3d(0,"+-c.finalSize/1.2+"px,0)";Rn.transform=Vn,Rn.webkitTransform=Vn}this.isMasked?this.textSpans[j]=y:this.textSpans[j]=b,this.textSpans[j].style.display="block",this.textPaths[j]=y,j+=1}for(;j<this.textSpans.length;)this.textSpans[j].style.display="none",j+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var c;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),c=this.svgElement.style;var u="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";c.transform=u,c.webkitTransform=u}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var f,d,h=0,v=this.textAnimator.renderedLetters,p=this.textProperty.currentData.l;d=p.length;var m,g,y;for(f=0;f<d;f+=1)p[f].n?h+=1:(g=this.textSpans[f],y=this.textPaths[f],m=v[h],h+=1,m._mdf.m&&(this.isMasked?g.setAttribute("transform",m.m):(g.style.webkitTransform=m.m,g.style.transform=m.m)),g.style.opacity=m.o,m.sw&&m._mdf.sw&&y.setAttribute("stroke-width",m.sw),m.sc&&m._mdf.sc&&y.setAttribute("stroke",m.sc),m.fc&&m._mdf.fc&&(y.setAttribute("fill",m.fc),y.style.color=m.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var b=this.innerElem.getBBox();this.currentBBox.w!==b.width&&(this.currentBBox.w=b.width,this.svgElement.setAttribute("width",b.width)),this.currentBBox.h!==b.height&&(this.currentBBox.h=b.height,this.svgElement.setAttribute("height",b.height));var gn=1;if(this.currentBBox.w!==b.width+gn*2||this.currentBBox.h!==b.height+gn*2||this.currentBBox.x!==b.x-gn||this.currentBBox.y!==b.y-gn){this.currentBBox.w=b.width+gn*2,this.currentBBox.h=b.height+gn*2,this.currentBBox.x=b.x-gn,this.currentBBox.y=b.y-gn,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),c=this.svgElement.style;var x="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";c.transform=x,c.webkitTransform=x}}}};function HCameraElement(c,u,f){this.initFrame(),this.initBaseData(c,u,f),this.initHierarchy();var d=PropertyFactory.getProp;if(this.pe=d(this,c.pe,0,0,this),c.ks.p.s?(this.px=d(this,c.ks.p.x,1,0,this),this.py=d(this,c.ks.p.y,1,0,this),this.pz=d(this,c.ks.p.z,1,0,this)):this.p=d(this,c.ks.p,1,0,this),c.ks.a&&(this.a=d(this,c.ks.a,1,0,this)),c.ks.or.k.length&&c.ks.or.k[0].to){var h,v=c.ks.or.k.length;for(h=0;h<v;h+=1)c.ks.or.k[h].to=null,c.ks.or.k[h].ti=null}this.or=d(this,c.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=d(this,c.ks.rx,0,degToRads,this),this.ry=d(this,c.ks.ry,0,degToRads,this),this.rz=d(this,c.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var c,u=this.comp.threeDElements.length,f,d,h;for(c=0;c<u;c+=1)if(f=this.comp.threeDElements[c],f.type==="3d"){d=f.perspectiveElem.style,h=f.container.style;var v=this.pe.v+"px",p="0px 0px 0px",m="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";d.perspective=v,d.webkitPerspective=v,h.transformOrigin=p,h.mozTransformOrigin=p,h.webkitTransformOrigin=p,d.transform=m,d.webkitTransform=m}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var c=this._isFirstFrame,u,f;if(this.hierarchy)for(f=this.hierarchy.length,u=0;u<f;u+=1)c=this.hierarchy[u].finalTransform.mProp._mdf||c;if(c||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(f=this.hierarchy.length-1,u=f;u>=0;u-=1){var d=this.hierarchy[u].finalTransform.mProp;this.mat.translate(-d.p.v[0],-d.p.v[1],d.p.v[2]),this.mat.rotateX(-d.or.v[0]).rotateY(-d.or.v[1]).rotateZ(d.or.v[2]),this.mat.rotateX(-d.rx.v).rotateY(-d.ry.v).rotateZ(d.rz.v),this.mat.scale(1/d.s.v[0],1/d.s.v[1],1/d.s.v[2]),this.mat.translate(d.a.v[0],d.a.v[1],d.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var h;this.p?h=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:h=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var v=Math.sqrt(Math.pow(h[0],2)+Math.pow(h[1],2)+Math.pow(h[2],2)),p=[h[0]/v,h[1]/v,h[2]/v],m=Math.sqrt(p[2]*p[2]+p[0]*p[0]),g=Math.atan2(p[1],m),y=Math.atan2(p[0],-p[2]);this.mat.rotateY(y).rotateX(-g)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var b=!this._prevMat.equals(this.mat);if((b||this.pe._mdf)&&this.comp.threeDElements){f=this.comp.threeDElements.length;var gn,x,vn;for(u=0;u<f;u+=1)if(gn=this.comp.threeDElements[u],gn.type==="3d"){if(b){var J=this.mat.toCSS();vn=gn.container.style,vn.transform=J,vn.webkitTransform=J}this.pe._mdf&&(x=gn.perspectiveElem.style,x.perspective=this.pe.v+"px",x.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(c){this.prepareProperties(c,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(c,u,f){this.assetData=u.getAssetData(c.refId),this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var c=this.globalData.getAssetsPath(this.assetData),u=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",c),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(u),u.crossOrigin="anonymous",u.src=c,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(c,u){this.animationItem=c,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:u&&u.className||"",imagePreserveAspectRatio:u&&u.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(u&&u.hideOnTransparent===!1),filterSize:{width:u&&u.filterSize&&u.filterSize.width||"400%",height:u&&u.filterSize&&u.filterSize.height||"400%",x:u&&u.filterSize&&u.filterSize.x||"-100%",y:u&&u.filterSize&&u.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var c=this.pendingElements.pop();c.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(c,u){var f=c.getBaseElement();if(f){var d=this.layers[u];if(!d.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(f,u);else{for(var h=0,v,p,m;h<u;)this.elements[h]&&this.elements[h]!==!0&&this.elements[h].getBaseElement&&(p=this.elements[h],m=this.layers[h].ddd?this.getThreeDContainerByPos(h):p.getBaseElement(),v=m||v),h+=1;v?(!d.ddd||!this.supports3d)&&this.layerElement.insertBefore(f,v):(!d.ddd||!this.supports3d)&&this.layerElement.appendChild(f)}else this.addTo3dContainer(f,u)}},HybridRendererBase.prototype.createShape=function(c){return this.supports3d?new HShapeElement(c,this.globalData,this):new SVGShapeElement(c,this.globalData,this)},HybridRendererBase.prototype.createText=function(c){return this.supports3d?new HTextElement(c,this.globalData,this):new SVGTextLottieElement(c,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(c){return this.camera=new HCameraElement(c,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(c){return this.supports3d?new HImageElement(c,this.globalData,this):new IImageElement(c,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(c){return this.supports3d?new HSolidElement(c,this.globalData,this):new ISolidElement(c,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(c){for(var u=0,f=this.threeDElements.length;u<f;){if(this.threeDElements[u].startPos<=c&&this.threeDElements[u].endPos>=c)return this.threeDElements[u].perspectiveElem;u+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(c,u){var f=createTag("div"),d,h;styleDiv(f);var v=createTag("div");if(styleDiv(v),u==="3d"){d=f.style,d.width=this.globalData.compSize.w+"px",d.height=this.globalData.compSize.h+"px";var p="50% 50%";d.webkitTransformOrigin=p,d.mozTransformOrigin=p,d.transformOrigin=p,h=v.style;var m="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";h.transform=m,h.webkitTransform=m}f.appendChild(v);var g={container:v,perspectiveElem:f,startPos:c,endPos:c,type:u};return this.threeDElements.push(g),g},HybridRendererBase.prototype.build3dContainers=function(){var c,u=this.layers.length,f,d="";for(c=0;c<u;c+=1)this.layers[c].ddd&&this.layers[c].ty!==3?(d!=="3d"&&(d="3d",f=this.createThreeDContainer(c,"3d")),f.endPos=Math.max(f.endPos,c)):(d!=="2d"&&(d="2d",f=this.createThreeDContainer(c,"2d")),f.endPos=Math.max(f.endPos,c));for(u=this.threeDElements.length,c=u-1;c>=0;c-=1)this.resizerElem.appendChild(this.threeDElements[c].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(c,u){for(var f=0,d=this.threeDElements.length;f<d;){if(u<=this.threeDElements[f].endPos){for(var h=this.threeDElements[f].startPos,v;h<u;)this.elements[h]&&this.elements[h].getBaseElement&&(v=this.elements[h].getBaseElement()),h+=1;v?this.threeDElements[f].container.insertBefore(c,v):this.threeDElements[f].container.appendChild(c);break}f+=1}},HybridRendererBase.prototype.configAnimation=function(c){var u=createTag("div"),f=this.animationItem.wrapper,d=u.style;d.width=c.w+"px",d.height=c.h+"px",this.resizerElem=u,styleDiv(u),d.transformStyle="flat",d.mozTransformStyle="flat",d.webkitTransformStyle="flat",this.renderConfig.className&&u.setAttribute("class",this.renderConfig.className),f.appendChild(u),d.overflow="hidden";var h=createNS("svg");h.setAttribute("width","1"),h.setAttribute("height","1"),styleDiv(h),this.resizerElem.appendChild(h);var v=createNS("defs");h.appendChild(v),this.data=c,this.setupGlobalData(c,h),this.globalData.defs=v,this.layers=c.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var c,u=this.layers?this.layers.length:0;for(c=0;c<u;c+=1)this.elements[c]&&this.elements[c].destroy&&this.elements[c].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var c=this.animationItem.wrapper.offsetWidth,u=this.animationItem.wrapper.offsetHeight,f=c/u,d=this.globalData.compSize.w/this.globalData.compSize.h,h,v,p,m;d>f?(h=c/this.globalData.compSize.w,v=c/this.globalData.compSize.w,p=0,m=(u-this.globalData.compSize.h*(c/this.globalData.compSize.w))/2):(h=u/this.globalData.compSize.h,v=u/this.globalData.compSize.h,p=(c-this.globalData.compSize.w*(u/this.globalData.compSize.h))/2,m=0);var g=this.resizerElem.style;g.webkitTransform="matrix3d("+h+",0,0,0,0,"+v+",0,0,0,0,1,0,"+p+","+m+",0,1)",g.transform=g.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var c=this.globalData.compSize.w,u=this.globalData.compSize.h,f,d=this.threeDElements.length;for(f=0;f<d;f+=1){var h=this.threeDElements[f].perspectiveElem.style;h.webkitPerspective=Math.sqrt(Math.pow(c,2)+Math.pow(u,2))+"px",h.perspective=h.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(c){var u,f=c.length,d=createTag("div");for(u=0;u<f;u+=1)if(c[u].xt){var h=this.createComp(c[u],d,this.globalData.comp,null);h.initExpressions(),this.globalData.projectInterface.registerComposition(h)}};function HCompElement(c,u,f){this.layers=c.layers,this.supports3d=!c.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(c,u,f),this.tm=c.tm?PropertyFactory.getProp(this,c.tm,0,u.frameRate,this):{_placeholder:!0}}extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(c,u){for(var f=0,d;f<u;)this.elements[f]&&this.elements[f].getBaseElement&&(d=this.elements[f].getBaseElement()),f+=1;d?this.layerElement.insertBefore(c,d):this.layerElement.appendChild(c)},HCompElement.prototype.createComp=function(c){return this.supports3d?new HCompElement(c,this.globalData,this):new SVGCompElement(c,this.globalData,this)};function HybridRenderer(c,u){this.animationItem=c,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:u&&u.className||"",imagePreserveAspectRatio:u&&u.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(u&&u.hideOnTransparent===!1),filterSize:{width:u&&u.filterSize&&u.filterSize.width||"400%",height:u&&u.filterSize&&u.filterSize.height||"400%",x:u&&u.filterSize&&u.filterSize.x||"-100%",y:u&&u.filterSize&&u.filterSize.y||"-100%"},runExpressions:!u||u.runExpressions===void 0||u.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(c){return this.supports3d?new HCompElement(c,this.globalData,this):new SVGCompElement(c,this.globalData,this)};var CompExpressionInterface=function(){return function(c){function u(f){for(var d=0,h=c.layers.length;d<h;){if(c.layers[d].nm===f||c.layers[d].ind===f)return c.elements[d].layerInterface;d+=1}return null}return Object.defineProperty(u,"_name",{value:c.data.nm}),u.layer=u,u.pixelAspect=1,u.height=c.data.h||c.globalData.compSize.h,u.width=c.data.w||c.globalData.compSize.w,u.pixelAspect=1,u.frameDuration=1/c.globalData.frameRate,u.displayStartTime=0,u.numLayers=c.layers.length,u}}();function _typeof$2(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function(f){return typeof f}:_typeof$2=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},_typeof$2(c)}function seedRandom(c,u){var f=this,d=256,h=6,v=52,p="random",m=u.pow(d,h),g=u.pow(2,v),y=g*2,b=d-1,gn;function x(re,Pn,Rn){var Vn=[];Pn=Pn===!0?{entropy:!0}:Pn||{};var Wn=Fn(j(Pn.entropy?[re,w(c)]:re===null?Bn():re,3),Vn),Gn=new vn(Vn),Zn=function(){for(var er=Gn.g(h),Jn=m,ir=0;er<g;)er=(er+ir)*d,Jn*=d,ir=Gn.g(1);for(;er>=y;)er/=2,Jn/=2,ir>>>=1;return(er+ir)/Jn};return Zn.int32=function(){return Gn.g(4)|0},Zn.quick=function(){return Gn.g(4)/4294967296},Zn.double=Zn,Fn(w(Gn.S),c),(Pn.pass||Rn||function(Xn,er,Jn,ir){return ir&&(ir.S&&J(ir,Gn),Xn.state=function(){return J(Gn,{})}),Jn?(u[p]=Xn,er):Xn})(Zn,Wn,"global"in Pn?Pn.global:this==u,Pn.state)}u["seed"+p]=x;function vn(re){var Pn,Rn=re.length,Vn=this,Wn=0,Gn=Vn.i=Vn.j=0,Zn=Vn.S=[];for(Rn||(re=[Rn++]);Wn<d;)Zn[Wn]=Wn++;for(Wn=0;Wn<d;Wn++)Zn[Wn]=Zn[Gn=b&Gn+re[Wn%Rn]+(Pn=Zn[Wn])],Zn[Gn]=Pn;Vn.g=function(Xn){for(var er,Jn=0,ir=Vn.i,or=Vn.j,sr=Vn.S;Xn--;)er=sr[ir=b&ir+1],Jn=Jn*d+sr[b&(sr[ir]=sr[or=b&or+er])+(sr[or]=er)];return Vn.i=ir,Vn.j=or,Jn}}function J(re,Pn){return Pn.i=re.i,Pn.j=re.j,Pn.S=re.S.slice(),Pn}function j(re,Pn){var Rn=[],Vn=_typeof$2(re),Wn;if(Pn&&Vn=="object")for(Wn in re)try{Rn.push(j(re[Wn],Pn-1))}catch{}return Rn.length?Rn:Vn=="string"?re:re+"\0"}function Fn(re,Pn){for(var Rn=re+"",Vn,Wn=0;Wn<Rn.length;)Pn[b&Wn]=b&(Vn^=Pn[b&Wn]*19)+Rn.charCodeAt(Wn++);return w(Pn)}function Bn(){try{var re=new Uint8Array(d);return(f.crypto||f.msCrypto).getRandomValues(re),w(re)}catch{var Pn=f.navigator,Rn=Pn&&Pn.plugins;return[+new Date,f,Rn,f.screen,w(c)]}}function w(re){return String.fromCharCode.apply(0,re)}Fn(u.random(),c)}function initialize$2(c){seedRandom([],c)}var propTypes={SHAPE:"shape"};function _typeof$1(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(f){return typeof f}:_typeof$1=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},_typeof$1(c)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};initialize$2(BMMath);function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(c){return c.constructor===Array||c.constructor===Float32Array}function isNumerable(c,u){return c==="number"||u instanceof Number||c==="boolean"||c==="string"}function $bm_neg(c){var u=_typeof$1(c);if(u==="number"||c instanceof Number||u==="boolean")return-c;if($bm_isInstanceOfArray(c)){var f,d=c.length,h=[];for(f=0;f<d;f+=1)h[f]=-c[f];return h}return c.propType?c.v:-c}var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(c,u){var f=_typeof$1(c),d=_typeof$1(u);if(isNumerable(f,c)&&isNumerable(d,u)||f==="string"||d==="string")return c+u;if($bm_isInstanceOfArray(c)&&isNumerable(d,u))return c=c.slice(0),c[0]+=u,c;if(isNumerable(f,c)&&$bm_isInstanceOfArray(u))return u=u.slice(0),u[0]=c+u[0],u;if($bm_isInstanceOfArray(c)&&$bm_isInstanceOfArray(u)){for(var h=0,v=c.length,p=u.length,m=[];h<v||h<p;)(typeof c[h]=="number"||c[h]instanceof Number)&&(typeof u[h]=="number"||u[h]instanceof Number)?m[h]=c[h]+u[h]:m[h]=u[h]===void 0?c[h]:c[h]||u[h],h+=1;return m}return 0}var add=sum;function sub(c,u){var f=_typeof$1(c),d=_typeof$1(u);if(isNumerable(f,c)&&isNumerable(d,u))return f==="string"&&(c=parseInt(c,10)),d==="string"&&(u=parseInt(u,10)),c-u;if($bm_isInstanceOfArray(c)&&isNumerable(d,u))return c=c.slice(0),c[0]-=u,c;if(isNumerable(f,c)&&$bm_isInstanceOfArray(u))return u=u.slice(0),u[0]=c-u[0],u;if($bm_isInstanceOfArray(c)&&$bm_isInstanceOfArray(u)){for(var h=0,v=c.length,p=u.length,m=[];h<v||h<p;)(typeof c[h]=="number"||c[h]instanceof Number)&&(typeof u[h]=="number"||u[h]instanceof Number)?m[h]=c[h]-u[h]:m[h]=u[h]===void 0?c[h]:c[h]||u[h],h+=1;return m}return 0}function mul(c,u){var f=_typeof$1(c),d=_typeof$1(u),h;if(isNumerable(f,c)&&isNumerable(d,u))return c*u;var v,p;if($bm_isInstanceOfArray(c)&&isNumerable(d,u)){for(p=c.length,h=createTypedArray("float32",p),v=0;v<p;v+=1)h[v]=c[v]*u;return h}if(isNumerable(f,c)&&$bm_isInstanceOfArray(u)){for(p=u.length,h=createTypedArray("float32",p),v=0;v<p;v+=1)h[v]=c*u[v];return h}return 0}function div(c,u){var f=_typeof$1(c),d=_typeof$1(u),h;if(isNumerable(f,c)&&isNumerable(d,u))return c/u;var v,p;if($bm_isInstanceOfArray(c)&&isNumerable(d,u)){for(p=c.length,h=createTypedArray("float32",p),v=0;v<p;v+=1)h[v]=c[v]/u;return h}if(isNumerable(f,c)&&$bm_isInstanceOfArray(u)){for(p=u.length,h=createTypedArray("float32",p),v=0;v<p;v+=1)h[v]=c/u[v];return h}return 0}function mod(c,u){return typeof c=="string"&&(c=parseInt(c,10)),typeof u=="string"&&(u=parseInt(u,10)),c%u}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(c,u,f){if(u>f){var d=f;f=u,u=d}return Math.min(Math.max(c,u),f)}function radiansToDegrees(c){return c/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(c){return c*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(c,u){if(typeof c=="number"||c instanceof Number)return u=u||0,Math.abs(c-u);u||(u=helperLengthArray);var f,d=Math.min(c.length,u.length),h=0;for(f=0;f<d;f+=1)h+=Math.pow(u[f]-c[f],2);return Math.sqrt(h)}function normalize(c){return div(c,length(c))}function rgbToHsl(c){var u=c[0],f=c[1],d=c[2],h=Math.max(u,f,d),v=Math.min(u,f,d),p,m,g=(h+v)/2;if(h===v)p=0,m=0;else{var y=h-v;switch(m=g>.5?y/(2-h-v):y/(h+v),h){case u:p=(f-d)/y+(f<d?6:0);break;case f:p=(d-u)/y+2;break;case d:p=(u-f)/y+4;break}p/=6}return[p,m,g,c[3]]}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){var u=c[0],f=c[1],d=c[2],h,v,p;if(f===0)h=d,p=d,v=d;else{var m=d<.5?d*(1+f):d+f-d*f,g=2*d-m;h=hue2rgb(g,m,u+1/3),v=hue2rgb(g,m,u),p=hue2rgb(g,m,u-1/3)}return[h,v,p,c[3]]}function linear(c,u,f,d,h){if((d===void 0||h===void 0)&&(d=u,h=f,u=0,f=1),f<u){var v=f;f=u,u=v}if(c<=u)return d;if(c>=f)return h;var p=f===u?0:(c-u)/(f-u);if(!d.length)return d+(h-d)*p;var m,g=d.length,y=createTypedArray("float32",g);for(m=0;m<g;m+=1)y[m]=d[m]+(h[m]-d[m])*p;return y}function random(c,u){if(u===void 0&&(c===void 0?(c=0,u=1):(u=c,c=void 0)),u.length){var f,d=u.length;c||(c=createTypedArray("float32",d));var h=createTypedArray("float32",d),v=BMMath.random();for(f=0;f<d;f+=1)h[f]=c[f]+v*(u[f]-c[f]);return h}c===void 0&&(c=0);var p=BMMath.random();return c+p*(u-c)}function createPath(c,u,f,d){var h,v=c.length,p=shapePool.newElement();p.setPathData(!!d,v);var m=[0,0],g,y;for(h=0;h<v;h+=1)g=u&&u[h]?u[h]:m,y=f&&f[h]?f[h]:m,p.setTripleAt(c[h][0],c[h][1],y[0]+c[h][0],y[1]+c[h][1],g[0]+c[h][0],g[1]+c[h][1],h,!0);return p}function initiateExpression(elem,data,property){function noOp(c){return c}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=(function c(u,f){var d,h,v=this.pv.length?this.pv.length:1,p=createTypedArray("float32",v);u=5;var m=Math.floor(time*u);for(d=0,h=0;d<m;){for(h=0;h<v;h+=1)p[h]+=-f+f*2*BMMath.random();d+=1}var g=time*u,y=g-Math.floor(g),b=createTypedArray("float32",v);if(v>1){for(h=0;h<v;h+=1)b[h]=this.pv[h]+p[h]+(-f+f*2*BMMath.random())*y;return b}return this.pv+p[0]+(-f+f*2*BMMath.random())*y}).bind(this);thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty));function loopInDuration(c,u){return loopIn(c,u,!0)}function loopOutDuration(c,u){return loopOut(c,u,!0)}this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(c,u){var f=[u[0]-c[0],u[1]-c[1],u[2]-c[2]],d=Math.atan2(f[0],Math.sqrt(f[1]*f[1]+f[2]*f[2]))/degToRads,h=-Math.atan2(f[1],f[2])/degToRads;return[h,d,0]}function easeOut(c,u,f,d,h){return applyEase(easeOutBez,c,u,f,d,h)}function easeIn(c,u,f,d,h){return applyEase(easeInBez,c,u,f,d,h)}function ease(c,u,f,d,h){return applyEase(easeInOutBez,c,u,f,d,h)}function applyEase(c,u,f,d,h,v){h===void 0?(h=f,v=d):u=(u-f)/(d-f),u>1?u=1:u<0&&(u=0);var p=c(u);if($bm_isInstanceOfArray(h)){var m,g=h.length,y=createTypedArray("float32",g);for(m=0;m<g;m+=1)y[m]=(v[m]-h[m])*p+h[m];return y}return(v-h)*p+h}function nearestKey(c){var u,f=data.k.length,d,h;if(!data.k.length||typeof data.k[0]=="number")d=0,h=0;else if(d=-1,c*=elem.comp.globalData.frameRate,c<data.k[0].t)d=1,h=data.k[0].t;else{for(u=0;u<f-1;u+=1)if(c===data.k[u].t){d=u+1,h=data.k[u].t;break}else if(c>data.k[u].t&&c<data.k[u+1].t){c-data.k[u].t>data.k[u+1].t-c?(d=u+2,h=data.k[u+1].t):(d=u+1,h=data.k[u].t);break}d===-1&&(d=u+1,h=data.k[u].t)}var v={};return v.index=d,v.time=h/elem.comp.globalData.frameRate,v}function key(c){var u,f,d;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+c);c-=1,u={time:data.k[c].t/elem.comp.globalData.frameRate,value:[]};var h=Object.prototype.hasOwnProperty.call(data.k[c],"s")?data.k[c].s:data.k[c-1].e;for(d=h.length,f=0;f<d;f+=1)u[f]=h[f],u.value[f]=h[f];return u}function framesToTime(c,u){return u||(u=elem.comp.globalData.frameRate),c/u}function timeToFrames(c,u){return!c&&c!==0&&(c=time),u||(u=elem.comp.globalData.frameRate),c*u}function seedRandom(c){BMMath.seedrandom(randSeed+c)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(c,u){return typeof value=="string"?u===void 0?value.substring(c):value.substring(c,u):""}function substr(c,u){return typeof value=="string"?u===void 0?value.substr(c):value.substr(c,u):""}function posterizeTime(c){time=c===0?0:Math.floor(time*c)/c,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),parent,randSeed=Math.floor(Math.random()*1e6),globalData=elem.globalData;function executeExpression(c){return value=c,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),elemType===4&&!content&&(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),hasParent=!!(elem.hierarchy&&elem.hierarchy.length),hasParent&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt,scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var c={};c.initExpressions=u,c.resetFrame=ExpressionManager.resetFrame;function u(f){var d=0,h=[];function v(){d+=1}function p(){d-=1,d===0&&g()}function m(y){h.indexOf(y)===-1&&h.push(y)}function g(){var y,b=h.length;for(y=0;y<b;y+=1)h[y].release();h.length=0}f.renderer.compInterface=CompExpressionInterface(f.renderer),f.renderer.globalData.projectInterface.registerComposition(f.renderer),f.renderer.globalData.pushExpression=v,f.renderer.globalData.popExpression=p,f.renderer.globalData.registerExpressionProperty=m}return c}(),MaskManagerInterface=function(){function c(f,d){this._mask=f,this._data=d}Object.defineProperty(c.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(c.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var u=function(d){var h=createSizedArray(d.viewData.length),v,p=d.viewData.length;for(v=0;v<p;v+=1)h[v]=new c(d.viewData[v],d.masksProperties[v]);var m=function(y){for(v=0;v<p;){if(d.masksProperties[v].nm===y)return h[v];v+=1}return null};return m};return u}(),ExpressionPropertyInterface=function(){var c={pv:0,v:0,mult:1},u={pv:[0,0,0],v:[0,0,0],mult:1};function f(p,m,g){Object.defineProperty(p,"velocity",{get:function(){return m.getVelocityAtTime(m.comp.currentFrame)}}),p.numKeys=m.keyframes?m.keyframes.length:0,p.key=function(y){if(!p.numKeys)return 0;var b="";"s"in m.keyframes[y-1]?b=m.keyframes[y-1].s:"e"in m.keyframes[y-2]?b=m.keyframes[y-2].e:b=m.keyframes[y-2].s;var gn=g==="unidimensional"?new Number(b):Object.assign({},b);return gn.time=m.keyframes[y-1].t/m.elem.comp.globalData.frameRate,gn.value=g==="unidimensional"?b[0]:b,gn},p.valueAtTime=m.getValueAtTime,p.speedAtTime=m.getSpeedAtTime,p.velocityAtTime=m.getVelocityAtTime,p.propertyGroup=m.propertyGroup}function d(p){(!p||!("pv"in p))&&(p=c);var m=1/p.mult,g=p.pv*m,y=new Number(g);return y.value=g,f(y,p,"unidimensional"),function(){return p.k&&p.getValue(),g=p.v*m,y.value!==g&&(y=new Number(g),y.value=g,f(y,p,"unidimensional")),y}}function h(p){(!p||!("pv"in p))&&(p=u);var m=1/p.mult,g=p.data&&p.data.l||p.pv.length,y=createTypedArray("float32",g),b=createTypedArray("float32",g);return y.value=b,f(y,p,"multidimensional"),function(){p.k&&p.getValue();for(var gn=0;gn<g;gn+=1)b[gn]=p.v[gn]*m,y[gn]=b[gn];return y}}function v(){return c}return function(p){return p?p.propType==="unidimensional"?d(p):h(p):v}}(),TransformExpressionInterface=function(){return function(c){function u(p){switch(p){case"scale":case"Scale":case"ADBE Scale":case 6:return u.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return u.rotation;case"ADBE Rotate X":return u.xRotation;case"ADBE Rotate Y":return u.yRotation;case"position":case"Position":case"ADBE Position":case 2:return u.position;case"ADBE Position_0":return u.xPosition;case"ADBE Position_1":return u.yPosition;case"ADBE Position_2":return u.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return u.anchorPoint;case"opacity":case"Opacity":case 11:return u.opacity;default:return null}}Object.defineProperty(u,"rotation",{get:ExpressionPropertyInterface(c.r||c.rz)}),Object.defineProperty(u,"zRotation",{get:ExpressionPropertyInterface(c.rz||c.r)}),Object.defineProperty(u,"xRotation",{get:ExpressionPropertyInterface(c.rx)}),Object.defineProperty(u,"yRotation",{get:ExpressionPropertyInterface(c.ry)}),Object.defineProperty(u,"scale",{get:ExpressionPropertyInterface(c.s)});var f,d,h,v;return c.p?v=ExpressionPropertyInterface(c.p):(f=ExpressionPropertyInterface(c.px),d=ExpressionPropertyInterface(c.py),c.pz&&(h=ExpressionPropertyInterface(c.pz))),Object.defineProperty(u,"position",{get:function(){return c.p?v():[f(),d(),h?h():0]}}),Object.defineProperty(u,"xPosition",{get:ExpressionPropertyInterface(c.px)}),Object.defineProperty(u,"yPosition",{get:ExpressionPropertyInterface(c.py)}),Object.defineProperty(u,"zPosition",{get:ExpressionPropertyInterface(c.pz)}),Object.defineProperty(u,"anchorPoint",{get:ExpressionPropertyInterface(c.a)}),Object.defineProperty(u,"opacity",{get:ExpressionPropertyInterface(c.o)}),Object.defineProperty(u,"skew",{get:ExpressionPropertyInterface(c.sk)}),Object.defineProperty(u,"skewAxis",{get:ExpressionPropertyInterface(c.sa)}),Object.defineProperty(u,"orientation",{get:ExpressionPropertyInterface(c.or)}),u}}(),LayerExpressionInterface=function(){function c(y){var b=new Matrix;if(y!==void 0){var gn=this._elem.finalTransform.mProp.getValueAtTime(y);gn.clone(b)}else{var x=this._elem.finalTransform.mProp;x.applyToMatrix(b)}return b}function u(y,b){var gn=this.getMatrix(b);return gn.props[12]=0,gn.props[13]=0,gn.props[14]=0,this.applyPoint(gn,y)}function f(y,b){var gn=this.getMatrix(b);return this.applyPoint(gn,y)}function d(y,b){var gn=this.getMatrix(b);return gn.props[12]=0,gn.props[13]=0,gn.props[14]=0,this.invertPoint(gn,y)}function h(y,b){var gn=this.getMatrix(b);return this.invertPoint(gn,y)}function v(y,b){if(this._elem.hierarchy&&this._elem.hierarchy.length){var gn,x=this._elem.hierarchy.length;for(gn=0;gn<x;gn+=1)this._elem.hierarchy[gn].finalTransform.mProp.applyToMatrix(y)}return y.applyToPointArray(b[0],b[1],b[2]||0)}function p(y,b){if(this._elem.hierarchy&&this._elem.hierarchy.length){var gn,x=this._elem.hierarchy.length;for(gn=0;gn<x;gn+=1)this._elem.hierarchy[gn].finalTransform.mProp.applyToMatrix(y)}return y.inversePoint(b)}function m(y){var b=new Matrix;if(b.reset(),this._elem.finalTransform.mProp.applyToMatrix(b),this._elem.hierarchy&&this._elem.hierarchy.length){var gn,x=this._elem.hierarchy.length;for(gn=0;gn<x;gn+=1)this._elem.hierarchy[gn].finalTransform.mProp.applyToMatrix(b);return b.inversePoint(y)}return b.inversePoint(y)}function g(){return[1,1,1,1]}return function(y){var b;function gn(j){vn.mask=new MaskManagerInterface(j,y)}function x(j){vn.effect=j}function vn(j){switch(j){case"ADBE Root Vectors Group":case"Contents":case 2:return vn.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return b;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return vn.effect;case"ADBE Text Properties":return vn.textInterface;default:return null}}vn.getMatrix=c,vn.invertPoint=p,vn.applyPoint=v,vn.toWorld=f,vn.toWorldVec=u,vn.fromWorld=h,vn.fromWorldVec=d,vn.toComp=f,vn.fromComp=m,vn.sampleImage=g,vn.sourceRectAtTime=y.sourceRectAtTime.bind(y),vn._elem=y,b=TransformExpressionInterface(y.finalTransform.mProp);var J=getDescriptor(b,"anchorPoint");return Object.defineProperties(vn,{hasParent:{get:function(){return y.hierarchy.length}},parent:{get:function(){return y.hierarchy[0].layerInterface}},rotation:getDescriptor(b,"rotation"),scale:getDescriptor(b,"scale"),position:getDescriptor(b,"position"),opacity:getDescriptor(b,"opacity"),anchorPoint:J,anchor_point:J,transform:{get:function(){return b}},active:{get:function(){return y.isInRange}}}),vn.startTime=y.data.st,vn.index=y.data.ind,vn.source=y.data.refId,vn.height=y.data.ty===0?y.data.h:100,vn.width=y.data.ty===0?y.data.w:100,vn.inPoint=y.data.ip/y.comp.globalData.frameRate,vn.outPoint=y.data.op/y.comp.globalData.frameRate,vn._name=y.data.nm,vn.registerMaskInterface=gn,vn.registerEffectsInterface=x,vn}}(),propertyGroupFactory=function(){return function(c,u){return function(f){return f=f===void 0?1:f,f<=0?c:u(f-1)}}}(),PropertyInterface=function(){return function(c,u){var f={_name:c};function d(h){return h=h===void 0?1:h,h<=0?f:u(h-1)}return d}}(),EffectsExpressionInterface=function(){var c={createEffectsInterface:u};function u(h,v){if(h.effectsManager){var p=[],m=h.data.ef,g,y=h.effectsManager.effectElements.length;for(g=0;g<y;g+=1)p.push(f(m[g],h.effectsManager.effectElements[g],v,h));var b=h.data.ef||[],gn=function(vn){for(g=0,y=b.length;g<y;){if(vn===b[g].nm||vn===b[g].mn||vn===b[g].ix)return p[g];g+=1}return null};return Object.defineProperty(gn,"numProperties",{get:function(){return b.length}}),gn}return null}function f(h,v,p,m){function g(vn){for(var J=h.ef,j=0,Fn=J.length;j<Fn;){if(vn===J[j].nm||vn===J[j].mn||vn===J[j].ix)return J[j].ty===5?b[j]:b[j]();j+=1}throw new Error}var y=propertyGroupFactory(g,p),b=[],gn,x=h.ef.length;for(gn=0;gn<x;gn+=1)h.ef[gn].ty===5?b.push(f(h.ef[gn],v.effectElements[gn],v.effectElements[gn].propertyGroup,m)):b.push(d(v.effectElements[gn],h.ef[gn].ty,m,y));return h.mn==="ADBE Color Control"&&Object.defineProperty(g,"color",{get:function(){return b[0]()}}),Object.defineProperties(g,{numProperties:{get:function(){return h.np}},_name:{value:h.nm},propertyGroup:{value:y}}),g.enabled=h.en!==0,g.active=g.enabled,g}function d(h,v,p,m){var g=ExpressionPropertyInterface(h.p);function y(){return v===10?p.comp.compInterface(h.p.v):g()}return h.p.setGroupProperty&&h.p.setGroupProperty(PropertyInterface("",m)),y}return c}(),ShapePathInterface=function(){return function(u,f,d){var h=f.sh;function v(m){return m==="Shape"||m==="shape"||m==="Path"||m==="path"||m==="ADBE Vector Shape"||m===2?v.path:null}var p=propertyGroupFactory(v,d);return h.setGroupProperty(PropertyInterface("Path",p)),Object.defineProperties(v,{path:{get:function(){return h.k&&h.getValue(),h}},shape:{get:function(){return h.k&&h.getValue(),h}},_name:{value:u.nm},ix:{value:u.ix},propertyIndex:{value:u.ix},mn:{value:u.mn},propertyGroup:{value:d}}),v}}(),ShapeExpressionInterface=function(){function c(J,j,Fn){var Bn=[],w,re=J?J.length:0;for(w=0;w<re;w+=1)J[w].ty==="gr"?Bn.push(f(J[w],j[w],Fn)):J[w].ty==="fl"?Bn.push(d(J[w],j[w],Fn)):J[w].ty==="st"?Bn.push(p(J[w],j[w],Fn)):J[w].ty==="tm"?Bn.push(m(J[w],j[w],Fn)):J[w].ty==="tr"||(J[w].ty==="el"?Bn.push(y(J[w],j[w],Fn)):J[w].ty==="sr"?Bn.push(b(J[w],j[w],Fn)):J[w].ty==="sh"?Bn.push(ShapePathInterface(J[w],j[w],Fn)):J[w].ty==="rc"?Bn.push(gn(J[w],j[w],Fn)):J[w].ty==="rd"?Bn.push(x(J[w],j[w],Fn)):J[w].ty==="rp"?Bn.push(vn(J[w],j[w],Fn)):J[w].ty==="gf"?Bn.push(h(J[w],j[w],Fn)):Bn.push(v(J[w],j[w])));return Bn}function u(J,j,Fn){var Bn,w=function(Rn){for(var Vn=0,Wn=Bn.length;Vn<Wn;){if(Bn[Vn]._name===Rn||Bn[Vn].mn===Rn||Bn[Vn].propertyIndex===Rn||Bn[Vn].ix===Rn||Bn[Vn].ind===Rn)return Bn[Vn];Vn+=1}return typeof Rn=="number"?Bn[Rn-1]:null};w.propertyGroup=propertyGroupFactory(w,Fn),Bn=c(J.it,j.it,w.propertyGroup),w.numProperties=Bn.length;var re=g(J.it[J.it.length-1],j.it[j.it.length-1],w.propertyGroup);return w.transform=re,w.propertyIndex=J.cix,w._name=J.nm,w}function f(J,j,Fn){var Bn=function(Rn){switch(Rn){case"ADBE Vectors Group":case"Contents":case 2:return Bn.content;default:return Bn.transform}};Bn.propertyGroup=propertyGroupFactory(Bn,Fn);var w=u(J,j,Bn.propertyGroup),re=g(J.it[J.it.length-1],j.it[j.it.length-1],Bn.propertyGroup);return Bn.content=w,Bn.transform=re,Object.defineProperty(Bn,"_name",{get:function(){return J.nm}}),Bn.numProperties=J.np,Bn.propertyIndex=J.ix,Bn.nm=J.nm,Bn.mn=J.mn,Bn}function d(J,j,Fn){function Bn(w){return w==="Color"||w==="color"?Bn.color:w==="Opacity"||w==="opacity"?Bn.opacity:null}return Object.defineProperties(Bn,{color:{get:ExpressionPropertyInterface(j.c)},opacity:{get:ExpressionPropertyInterface(j.o)},_name:{value:J.nm},mn:{value:J.mn}}),j.c.setGroupProperty(PropertyInterface("Color",Fn)),j.o.setGroupProperty(PropertyInterface("Opacity",Fn)),Bn}function h(J,j,Fn){function Bn(w){return w==="Start Point"||w==="start point"?Bn.startPoint:w==="End Point"||w==="end point"?Bn.endPoint:w==="Opacity"||w==="opacity"?Bn.opacity:null}return Object.defineProperties(Bn,{startPoint:{get:ExpressionPropertyInterface(j.s)},endPoint:{get:ExpressionPropertyInterface(j.e)},opacity:{get:ExpressionPropertyInterface(j.o)},type:{get:function(){return"a"}},_name:{value:J.nm},mn:{value:J.mn}}),j.s.setGroupProperty(PropertyInterface("Start Point",Fn)),j.e.setGroupProperty(PropertyInterface("End Point",Fn)),j.o.setGroupProperty(PropertyInterface("Opacity",Fn)),Bn}function v(){function J(){return null}return J}function p(J,j,Fn){var Bn=propertyGroupFactory(Wn,Fn),w=propertyGroupFactory(Vn,Bn);function re(Gn){Object.defineProperty(Vn,J.d[Gn].nm,{get:ExpressionPropertyInterface(j.d.dataProps[Gn].p)})}var Pn,Rn=J.d?J.d.length:0,Vn={};for(Pn=0;Pn<Rn;Pn+=1)re(Pn),j.d.dataProps[Pn].p.setGroupProperty(w);function Wn(Gn){return Gn==="Color"||Gn==="color"?Wn.color:Gn==="Opacity"||Gn==="opacity"?Wn.opacity:Gn==="Stroke Width"||Gn==="stroke width"?Wn.strokeWidth:null}return Object.defineProperties(Wn,{color:{get:ExpressionPropertyInterface(j.c)},opacity:{get:ExpressionPropertyInterface(j.o)},strokeWidth:{get:ExpressionPropertyInterface(j.w)},dash:{get:function(){return Vn}},_name:{value:J.nm},mn:{value:J.mn}}),j.c.setGroupProperty(PropertyInterface("Color",Bn)),j.o.setGroupProperty(PropertyInterface("Opacity",Bn)),j.w.setGroupProperty(PropertyInterface("Stroke Width",Bn)),Wn}function m(J,j,Fn){function Bn(re){return re===J.e.ix||re==="End"||re==="end"?Bn.end:re===J.s.ix?Bn.start:re===J.o.ix?Bn.offset:null}var w=propertyGroupFactory(Bn,Fn);return Bn.propertyIndex=J.ix,j.s.setGroupProperty(PropertyInterface("Start",w)),j.e.setGroupProperty(PropertyInterface("End",w)),j.o.setGroupProperty(PropertyInterface("Offset",w)),Bn.propertyIndex=J.ix,Bn.propertyGroup=Fn,Object.defineProperties(Bn,{start:{get:ExpressionPropertyInterface(j.s)},end:{get:ExpressionPropertyInterface(j.e)},offset:{get:ExpressionPropertyInterface(j.o)},_name:{value:J.nm}}),Bn.mn=J.mn,Bn}function g(J,j,Fn){function Bn(re){return J.a.ix===re||re==="Anchor Point"?Bn.anchorPoint:J.o.ix===re||re==="Opacity"?Bn.opacity:J.p.ix===re||re==="Position"?Bn.position:J.r.ix===re||re==="Rotation"||re==="ADBE Vector Rotation"?Bn.rotation:J.s.ix===re||re==="Scale"?Bn.scale:J.sk&&J.sk.ix===re||re==="Skew"?Bn.skew:J.sa&&J.sa.ix===re||re==="Skew Axis"?Bn.skewAxis:null}var w=propertyGroupFactory(Bn,Fn);return j.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",w)),j.transform.mProps.p.setGroupProperty(PropertyInterface("Position",w)),j.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",w)),j.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",w)),j.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",w)),j.transform.mProps.sk&&(j.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",w)),j.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",w))),j.transform.op.setGroupProperty(PropertyInterface("Opacity",w)),Object.defineProperties(Bn,{opacity:{get:ExpressionPropertyInterface(j.transform.mProps.o)},position:{get:ExpressionPropertyInterface(j.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(j.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(j.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(j.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(j.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(j.transform.mProps.sa)},_name:{value:J.nm}}),Bn.ty="tr",Bn.mn=J.mn,Bn.propertyGroup=Fn,Bn}function y(J,j,Fn){function Bn(Pn){return J.p.ix===Pn?Bn.position:J.s.ix===Pn?Bn.size:null}var w=propertyGroupFactory(Bn,Fn);Bn.propertyIndex=J.ix;var re=j.sh.ty==="tm"?j.sh.prop:j.sh;return re.s.setGroupProperty(PropertyInterface("Size",w)),re.p.setGroupProperty(PropertyInterface("Position",w)),Object.defineProperties(Bn,{size:{get:ExpressionPropertyInterface(re.s)},position:{get:ExpressionPropertyInterface(re.p)},_name:{value:J.nm}}),Bn.mn=J.mn,Bn}function b(J,j,Fn){function Bn(Pn){return J.p.ix===Pn?Bn.position:J.r.ix===Pn?Bn.rotation:J.pt.ix===Pn?Bn.points:J.or.ix===Pn||Pn==="ADBE Vector Star Outer Radius"?Bn.outerRadius:J.os.ix===Pn?Bn.outerRoundness:J.ir&&(J.ir.ix===Pn||Pn==="ADBE Vector Star Inner Radius")?Bn.innerRadius:J.is&&J.is.ix===Pn?Bn.innerRoundness:null}var w=propertyGroupFactory(Bn,Fn),re=j.sh.ty==="tm"?j.sh.prop:j.sh;return Bn.propertyIndex=J.ix,re.or.setGroupProperty(PropertyInterface("Outer Radius",w)),re.os.setGroupProperty(PropertyInterface("Outer Roundness",w)),re.pt.setGroupProperty(PropertyInterface("Points",w)),re.p.setGroupProperty(PropertyInterface("Position",w)),re.r.setGroupProperty(PropertyInterface("Rotation",w)),J.ir&&(re.ir.setGroupProperty(PropertyInterface("Inner Radius",w)),re.is.setGroupProperty(PropertyInterface("Inner Roundness",w))),Object.defineProperties(Bn,{position:{get:ExpressionPropertyInterface(re.p)},rotation:{get:ExpressionPropertyInterface(re.r)},points:{get:ExpressionPropertyInterface(re.pt)},outerRadius:{get:ExpressionPropertyInterface(re.or)},outerRoundness:{get:ExpressionPropertyInterface(re.os)},innerRadius:{get:ExpressionPropertyInterface(re.ir)},innerRoundness:{get:ExpressionPropertyInterface(re.is)},_name:{value:J.nm}}),Bn.mn=J.mn,Bn}function gn(J,j,Fn){function Bn(Pn){return J.p.ix===Pn?Bn.position:J.r.ix===Pn?Bn.roundness:J.s.ix===Pn||Pn==="Size"||Pn==="ADBE Vector Rect Size"?Bn.size:null}var w=propertyGroupFactory(Bn,Fn),re=j.sh.ty==="tm"?j.sh.prop:j.sh;return Bn.propertyIndex=J.ix,re.p.setGroupProperty(PropertyInterface("Position",w)),re.s.setGroupProperty(PropertyInterface("Size",w)),re.r.setGroupProperty(PropertyInterface("Rotation",w)),Object.defineProperties(Bn,{position:{get:ExpressionPropertyInterface(re.p)},roundness:{get:ExpressionPropertyInterface(re.r)},size:{get:ExpressionPropertyInterface(re.s)},_name:{value:J.nm}}),Bn.mn=J.mn,Bn}function x(J,j,Fn){function Bn(Pn){return J.r.ix===Pn||Pn==="Round Corners 1"?Bn.radius:null}var w=propertyGroupFactory(Bn,Fn),re=j;return Bn.propertyIndex=J.ix,re.rd.setGroupProperty(PropertyInterface("Radius",w)),Object.defineProperties(Bn,{radius:{get:ExpressionPropertyInterface(re.rd)},_name:{value:J.nm}}),Bn.mn=J.mn,Bn}function vn(J,j,Fn){function Bn(Pn){return J.c.ix===Pn||Pn==="Copies"?Bn.copies:J.o.ix===Pn||Pn==="Offset"?Bn.offset:null}var w=propertyGroupFactory(Bn,Fn),re=j;return Bn.propertyIndex=J.ix,re.c.setGroupProperty(PropertyInterface("Copies",w)),re.o.setGroupProperty(PropertyInterface("Offset",w)),Object.defineProperties(Bn,{copies:{get:ExpressionPropertyInterface(re.c)},offset:{get:ExpressionPropertyInterface(re.o)},_name:{value:J.nm}}),Bn.mn=J.mn,Bn}return function(J,j,Fn){var Bn;function w(Pn){if(typeof Pn=="number")return Pn=Pn===void 0?1:Pn,Pn===0?Fn:Bn[Pn-1];for(var Rn=0,Vn=Bn.length;Rn<Vn;){if(Bn[Rn]._name===Pn)return Bn[Rn];Rn+=1}return null}function re(){return Fn}return w.propertyGroup=propertyGroupFactory(w,re),Bn=c(J,j,w.propertyGroup),w.numProperties=Bn.length,w._name="Contents",w}}(),TextExpressionInterface=function(){return function(c){var u;function f(d){switch(d){case"ADBE Text Document":return f.sourceText;default:return null}}return Object.defineProperty(f,"sourceText",{get:function(){c.textProperty.getValue();var h=c.textProperty.currentData.t;return(!u||h!==u.value)&&(u=new String(h),u.value=h||new String(h),Object.defineProperty(u,"style",{get:function(){return{fillColor:c.textProperty.currentData.fc}}})),u}}),f}}();function _typeof(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(f){return typeof f}:_typeof=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},_typeof(c)}var FootageInterface=function(){var c=function(d){var h="",v=d.getFootageData();function p(){return h="",v=d.getFootageData(),m}function m(g){if(v[g])return h=g,v=v[g],_typeof(v)==="object"?m:v;var y=g.indexOf(h);if(y!==-1){var b=parseInt(g.substr(y+h.length),10);return v=v[b],_typeof(v)==="object"?m:v}return""}return p},u=function(d){function h(v){return v==="Outline"?h.outlineInterface():null}return h._name="Outline",h.outlineInterface=c(d),h};return function(f){function d(h){return h==="Data"?d.dataInterface:null}return d._name="Data",d.dataInterface=u(f),d}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(c){return interfaces[c]||null}var expressionHelpers=function(){function c(p,m,g){m.x&&(g.k=!0,g.x=!0,g.initiateExpression=ExpressionManager.initiateExpression,g.effectsSequence.push(g.initiateExpression(p,m,g).bind(g)))}function u(p){return p*=this.elem.globalData.frameRate,p-=this.offsetTime,p!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<p?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(p,this._cachingAtTime),this._cachingAtTime.lastFrame=p),this._cachingAtTime.value}function f(p){var m=-.01,g=this.getValueAtTime(p),y=this.getValueAtTime(p+m),b=0;if(g.length){var gn;for(gn=0;gn<g.length;gn+=1)b+=Math.pow(y[gn]-g[gn],2);b=Math.sqrt(b)*100}else b=0;return b}function d(p){if(this.vel!==void 0)return this.vel;var m=-.001,g=this.getValueAtTime(p),y=this.getValueAtTime(p+m),b;if(g.length){b=createTypedArray("float32",g.length);var gn;for(gn=0;gn<g.length;gn+=1)b[gn]=(y[gn]-g[gn])/m}else b=(y-g)/m;return b}function h(){return this.pv}function v(p){this.propertyGroup=p}return{searchExpressions:c,getSpeedAtTime:f,getVelocityAtTime:d,getValueAtTime:u,getStaticValueAtTime:h,setGroupProperty:v}}();function addPropertyDecorator(){function c(x,vn,J){if(!this.k||!this.keyframes)return this.pv;x=x?x.toLowerCase():"";var j=this.comp.renderedFrame,Fn=this.keyframes,Bn=Fn[Fn.length-1].t;if(j<=Bn)return this.pv;var w,re;J?(vn?w=Math.abs(Bn-this.elem.comp.globalData.frameRate*vn):w=Math.max(0,Bn-this.elem.data.ip),re=Bn-w):((!vn||vn>Fn.length-1)&&(vn=Fn.length-1),re=Fn[Fn.length-1-vn].t,w=Bn-re);var Pn,Rn,Vn;if(x==="pingpong"){var Wn=Math.floor((j-re)/w);if(Wn%2!==0)return this.getValueAtTime((w-(j-re)%w+re)/this.comp.globalData.frameRate,0)}else if(x==="offset"){var Gn=this.getValueAtTime(re/this.comp.globalData.frameRate,0),Zn=this.getValueAtTime(Bn/this.comp.globalData.frameRate,0),Xn=this.getValueAtTime(((j-re)%w+re)/this.comp.globalData.frameRate,0),er=Math.floor((j-re)/w);if(this.pv.length){for(Vn=new Array(Gn.length),Rn=Vn.length,Pn=0;Pn<Rn;Pn+=1)Vn[Pn]=(Zn[Pn]-Gn[Pn])*er+Xn[Pn];return Vn}return(Zn-Gn)*er+Xn}else if(x==="continue"){var Jn=this.getValueAtTime(Bn/this.comp.globalData.frameRate,0),ir=this.getValueAtTime((Bn-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(Vn=new Array(Jn.length),Rn=Vn.length,Pn=0;Pn<Rn;Pn+=1)Vn[Pn]=Jn[Pn]+(Jn[Pn]-ir[Pn])*((j-Bn)/this.comp.globalData.frameRate)/5e-4;return Vn}return Jn+(Jn-ir)*((j-Bn)/.001)}return this.getValueAtTime(((j-re)%w+re)/this.comp.globalData.frameRate,0)}function u(x,vn,J){if(!this.k)return this.pv;x=x?x.toLowerCase():"";var j=this.comp.renderedFrame,Fn=this.keyframes,Bn=Fn[0].t;if(j>=Bn)return this.pv;var w,re;J?(vn?w=Math.abs(this.elem.comp.globalData.frameRate*vn):w=Math.max(0,this.elem.data.op-Bn),re=Bn+w):((!vn||vn>Fn.length-1)&&(vn=Fn.length-1),re=Fn[vn].t,w=re-Bn);var Pn,Rn,Vn;if(x==="pingpong"){var Wn=Math.floor((Bn-j)/w);if(Wn%2===0)return this.getValueAtTime(((Bn-j)%w+Bn)/this.comp.globalData.frameRate,0)}else if(x==="offset"){var Gn=this.getValueAtTime(Bn/this.comp.globalData.frameRate,0),Zn=this.getValueAtTime(re/this.comp.globalData.frameRate,0),Xn=this.getValueAtTime((w-(Bn-j)%w+Bn)/this.comp.globalData.frameRate,0),er=Math.floor((Bn-j)/w)+1;if(this.pv.length){for(Vn=new Array(Gn.length),Rn=Vn.length,Pn=0;Pn<Rn;Pn+=1)Vn[Pn]=Xn[Pn]-(Zn[Pn]-Gn[Pn])*er;return Vn}return Xn-(Zn-Gn)*er}else if(x==="continue"){var Jn=this.getValueAtTime(Bn/this.comp.globalData.frameRate,0),ir=this.getValueAtTime((Bn+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(Vn=new Array(Jn.length),Rn=Vn.length,Pn=0;Pn<Rn;Pn+=1)Vn[Pn]=Jn[Pn]+(Jn[Pn]-ir[Pn])*(Bn-j)/.001;return Vn}return Jn+(Jn-ir)*(Bn-j)/.001}return this.getValueAtTime((w-((Bn-j)%w+Bn))/this.comp.globalData.frameRate,0)}function f(x,vn){if(!this.k)return this.pv;if(x=(x||.4)*.5,vn=Math.floor(vn||5),vn<=1)return this.pv;var J=this.comp.renderedFrame/this.comp.globalData.frameRate,j=J-x,Fn=J+x,Bn=vn>1?(Fn-j)/(vn-1):1,w=0,re=0,Pn;this.pv.length?Pn=createTypedArray("float32",this.pv.length):Pn=0;for(var Rn;w<vn;){if(Rn=this.getValueAtTime(j+w*Bn),this.pv.length)for(re=0;re<this.pv.length;re+=1)Pn[re]+=Rn[re];else Pn+=Rn;w+=1}if(this.pv.length)for(re=0;re<this.pv.length;re+=1)Pn[re]/=vn;else Pn/=vn;return Pn}function d(x){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var vn=this._transformCachingAtTime.v;if(vn.cloneFromProps(this.pre.props),this.appliedTransformations<1){var J=this.a.getValueAtTime(x);vn.translate(-J[0]*this.a.mult,-J[1]*this.a.mult,J[2]*this.a.mult)}if(this.appliedTransformations<2){var j=this.s.getValueAtTime(x);vn.scale(j[0]*this.s.mult,j[1]*this.s.mult,j[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var Fn=this.sk.getValueAtTime(x),Bn=this.sa.getValueAtTime(x);vn.skewFromAxis(-Fn*this.sk.mult,Bn*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var w=this.r.getValueAtTime(x);vn.rotate(-w*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var re=this.rz.getValueAtTime(x),Pn=this.ry.getValueAtTime(x),Rn=this.rx.getValueAtTime(x),Vn=this.or.getValueAtTime(x);vn.rotateZ(-re*this.rz.mult).rotateY(Pn*this.ry.mult).rotateX(Rn*this.rx.mult).rotateZ(-Vn[2]*this.or.mult).rotateY(Vn[1]*this.or.mult).rotateX(Vn[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var Wn=this.px.getValueAtTime(x),Gn=this.py.getValueAtTime(x);if(this.data.p.z){var Zn=this.pz.getValueAtTime(x);vn.translate(Wn*this.px.mult,Gn*this.py.mult,-Zn*this.pz.mult)}else vn.translate(Wn*this.px.mult,Gn*this.py.mult,0)}else{var Xn=this.p.getValueAtTime(x);vn.translate(Xn[0]*this.p.mult,Xn[1]*this.p.mult,-Xn[2]*this.p.mult)}return vn}function h(){return this.v.clone(new Matrix)}var v=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(x,vn,J){var j=v(x,vn,J);return j.dynamicProperties.length?j.getValueAtTime=d.bind(j):j.getValueAtTime=h.bind(j),j.setGroupProperty=expressionHelpers.setGroupProperty,j};var p=PropertyFactory.getProp;PropertyFactory.getProp=function(x,vn,J,j,Fn){var Bn=p(x,vn,J,j,Fn);Bn.kf?Bn.getValueAtTime=expressionHelpers.getValueAtTime.bind(Bn):Bn.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(Bn),Bn.setGroupProperty=expressionHelpers.setGroupProperty,Bn.loopOut=c,Bn.loopIn=u,Bn.smooth=f,Bn.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(Bn),Bn.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(Bn),Bn.numKeys=vn.a===1?vn.k.length:0,Bn.propertyIndex=vn.ix;var w=0;return J!==0&&(w=createTypedArray("float32",vn.a===1?vn.k[0].s.length:vn.k.length)),Bn._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:w},expressionHelpers.searchExpressions(x,vn,Bn),Bn.k&&Fn.addDynamicProperty(Bn),Bn};function m(x){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),x*=this.elem.globalData.frameRate,x-=this.offsetTime,x!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<x?this._caching.lastIndex:0,this._cachingAtTime.lastTime=x,this.interpolateShape(x,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var g=ShapePropertyFactory.getConstructorFunction(),y=ShapePropertyFactory.getKeyframedConstructorFunction();function b(){}b.prototype={vertices:function(vn,J){this.k&&this.getValue();var j=this.v;J!==void 0&&(j=this.getValueAtTime(J,0));var Fn,Bn=j._length,w=j[vn],re=j.v,Pn=createSizedArray(Bn);for(Fn=0;Fn<Bn;Fn+=1)vn==="i"||vn==="o"?Pn[Fn]=[w[Fn][0]-re[Fn][0],w[Fn][1]-re[Fn][1]]:Pn[Fn]=[w[Fn][0],w[Fn][1]];return Pn},points:function(vn){return this.vertices("v",vn)},inTangents:function(vn){return this.vertices("i",vn)},outTangents:function(vn){return this.vertices("o",vn)},isClosed:function(){return this.v.c},pointOnPath:function(vn,J){var j=this.v;J!==void 0&&(j=this.getValueAtTime(J,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(j));for(var Fn=this._segmentsLength,Bn=Fn.lengths,w=Fn.totalLength*vn,re=0,Pn=Bn.length,Rn=0,Vn;re<Pn;){if(Rn+Bn[re].addedLength>w){var Wn=re,Gn=j.c&&re===Pn-1?0:re+1,Zn=(w-Rn)/Bn[re].addedLength;Vn=bez.getPointInSegment(j.v[Wn],j.v[Gn],j.o[Wn],j.i[Gn],Zn,Bn[re]);break}else Rn+=Bn[re].addedLength;re+=1}return Vn||(Vn=j.c?[j.v[0][0],j.v[0][1]]:[j.v[j._length-1][0],j.v[j._length-1][1]]),Vn},vectorOnPath:function(vn,J,j){vn==1?vn=this.v.c:vn==0&&(vn=.999);var Fn=this.pointOnPath(vn,J),Bn=this.pointOnPath(vn+.001,J),w=Bn[0]-Fn[0],re=Bn[1]-Fn[1],Pn=Math.sqrt(Math.pow(w,2)+Math.pow(re,2));if(Pn===0)return[0,0];var Rn=j==="tangent"?[w/Pn,re/Pn]:[-re/Pn,w/Pn];return Rn},tangentOnPath:function(vn,J){return this.vectorOnPath(vn,J,"tangent")},normalOnPath:function(vn,J){return this.vectorOnPath(vn,J,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([b],g),extendPrototype([b],y),y.prototype.getValueAtTime=m,y.prototype.initiateExpression=ExpressionManager.initiateExpression;var gn=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(x,vn,J,j,Fn){var Bn=gn(x,vn,J,j,Fn);return Bn.propertyIndex=vn.ix,Bn.lock=!1,J===3?expressionHelpers.searchExpressions(x,vn.pt,Bn):J===4&&expressionHelpers.searchExpressions(x,vn.ks,Bn),Bn.k&&x.addDynamicProperty(Bn),Bn}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function c(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(u,f){var d=this.calculateExpression(f);if(u.t!==d){var h={};return this.copyData(h,u),h.t=d.toString(),h.__complete=!1,h}return u},TextProperty.prototype.searchProperty=function(){var u=this.searchKeyframes(),f=this.searchExpressions();return this.kf=u||f,this.kf},TextProperty.prototype.searchExpressions=c}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function c(u,f){var d=createNS("feMerge");d.setAttribute("result",u);var h,v;for(v=0;v<f.length;v+=1)h=createNS("feMergeNode"),h.setAttribute("in",f[v]),d.appendChild(h),d.appendChild(h);return d}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(c,u,f,d,h){this.filterManager=u;var v=createNS("feColorMatrix");v.setAttribute("type","matrix"),v.setAttribute("color-interpolation-filters","linearRGB"),v.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=v,v.setAttribute("result",d+"_tint_1"),c.appendChild(v),v=createNS("feColorMatrix"),v.setAttribute("type","matrix"),v.setAttribute("color-interpolation-filters","sRGB"),v.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),v.setAttribute("result",d+"_tint_2"),c.appendChild(v),this.matrixFilter=v;var p=this.createMergeNode(d,[h,d+"_tint_1",d+"_tint_2"]);c.appendChild(p)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(c){if(c||this.filterManager._mdf){var u=this.filterManager.effectElements[0].p.v,f=this.filterManager.effectElements[1].p.v,d=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+d+" 0"),this.matrixFilter.setAttribute("values",f[0]-u[0]+" 0 0 0 "+u[0]+" "+(f[1]-u[1])+" 0 0 0 "+u[1]+" "+(f[2]-u[2])+" 0 0 0 "+u[2]+" 0 0 0 1 0")}};function SVGFillFilter(c,u,f,d){this.filterManager=u;var h=createNS("feColorMatrix");h.setAttribute("type","matrix"),h.setAttribute("color-interpolation-filters","sRGB"),h.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),h.setAttribute("result",d),c.appendChild(h),this.matrixFilter=h}SVGFillFilter.prototype.renderFrame=function(c){if(c||this.filterManager._mdf){var u=this.filterManager.effectElements[2].p.v,f=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+u[0]+" 0 0 0 0 "+u[1]+" 0 0 0 0 "+u[2]+" 0 0 0 "+f+" 0")}};function SVGStrokeEffect(c,u,f){this.initialized=!1,this.filterManager=u,this.elem=f,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var c=this.elem.layerElement.children||this.elem.layerElement.childNodes,u,f,d,h;for(this.filterManager.effectElements[1].p.v===1?(h=this.elem.maskManager.masksProperties.length,d=0):(d=this.filterManager.effectElements[0].p.v-1,h=d+1),f=createNS("g"),f.setAttribute("fill","none"),f.setAttribute("stroke-linecap","round"),f.setAttribute("stroke-dashoffset",1),d;d<h;d+=1)u=createNS("path"),f.appendChild(u),this.paths.push({p:u,m:d});if(this.filterManager.effectElements[10].p.v===3){var v=createNS("mask"),p=createElementID();v.setAttribute("id",p),v.setAttribute("mask-type","alpha"),v.appendChild(f),this.elem.globalData.defs.appendChild(v);var m=createNS("g");for(m.setAttribute("mask","url("+getLocationHref()+"#"+p+")");c[0];)m.appendChild(c[0]);this.elem.layerElement.appendChild(m),this.masker=v,f.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(c=this.elem.layerElement.children||this.elem.layerElement.childNodes;c.length;)this.elem.layerElement.removeChild(c[0]);this.elem.layerElement.appendChild(f),this.elem.layerElement.removeAttribute("mask"),f.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=f},SVGStrokeEffect.prototype.renderFrame=function(c){this.initialized||this.initialize();var u,f=this.paths.length,d,h;for(u=0;u<f;u+=1)if(this.paths[u].m!==-1&&(d=this.elem.maskManager.viewData[this.paths[u].m],h=this.paths[u].p,(c||this.filterManager._mdf||d.prop._mdf)&&h.setAttribute("d",d.lastPath),c||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||d.prop._mdf)){var v;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var p=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,m=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,g=h.getTotalLength();v="0 0 0 "+g*p+" ";var y=g*(m-p),b=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,gn=Math.floor(y/b),x;for(x=0;x<gn;x+=1)v+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";v+="0 "+g*10+" 0 0"}else v="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;h.setAttribute("stroke-dasharray",v)}if((c||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(c||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(c||this.filterManager.effectElements[3].p._mdf)){var vn=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(vn[0]*255)+","+bmFloor(vn[1]*255)+","+bmFloor(vn[2]*255)+")")}};function SVGTritoneFilter(c,u,f,d){this.filterManager=u;var h=createNS("feColorMatrix");h.setAttribute("type","matrix"),h.setAttribute("color-interpolation-filters","linearRGB"),h.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),c.appendChild(h);var v=createNS("feComponentTransfer");v.setAttribute("color-interpolation-filters","sRGB"),v.setAttribute("result",d),this.matrixFilter=v;var p=createNS("feFuncR");p.setAttribute("type","table"),v.appendChild(p),this.feFuncR=p;var m=createNS("feFuncG");m.setAttribute("type","table"),v.appendChild(m),this.feFuncG=m;var g=createNS("feFuncB");g.setAttribute("type","table"),v.appendChild(g),this.feFuncB=g,c.appendChild(v)}SVGTritoneFilter.prototype.renderFrame=function(c){if(c||this.filterManager._mdf){var u=this.filterManager.effectElements[0].p.v,f=this.filterManager.effectElements[1].p.v,d=this.filterManager.effectElements[2].p.v,h=d[0]+" "+f[0]+" "+u[0],v=d[1]+" "+f[1]+" "+u[1],p=d[2]+" "+f[2]+" "+u[2];this.feFuncR.setAttribute("tableValues",h),this.feFuncG.setAttribute("tableValues",v),this.feFuncB.setAttribute("tableValues",p)}};function SVGProLevelsFilter(c,u,f,d){this.filterManager=u;var h=this.filterManager.effectElements,v=createNS("feComponentTransfer");(h[10].p.k||h[10].p.v!==0||h[11].p.k||h[11].p.v!==1||h[12].p.k||h[12].p.v!==1||h[13].p.k||h[13].p.v!==0||h[14].p.k||h[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",v)),(h[17].p.k||h[17].p.v!==0||h[18].p.k||h[18].p.v!==1||h[19].p.k||h[19].p.v!==1||h[20].p.k||h[20].p.v!==0||h[21].p.k||h[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",v)),(h[24].p.k||h[24].p.v!==0||h[25].p.k||h[25].p.v!==1||h[26].p.k||h[26].p.v!==1||h[27].p.k||h[27].p.v!==0||h[28].p.k||h[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",v)),(h[31].p.k||h[31].p.v!==0||h[32].p.k||h[32].p.v!==1||h[33].p.k||h[33].p.v!==1||h[34].p.k||h[34].p.v!==0||h[35].p.k||h[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",v)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(v.setAttribute("color-interpolation-filters","sRGB"),c.appendChild(v)),(h[3].p.k||h[3].p.v!==0||h[4].p.k||h[4].p.v!==1||h[5].p.k||h[5].p.v!==1||h[6].p.k||h[6].p.v!==0||h[7].p.k||h[7].p.v!==1)&&(v=createNS("feComponentTransfer"),v.setAttribute("color-interpolation-filters","sRGB"),v.setAttribute("result",d),c.appendChild(v),this.feFuncRComposed=this.createFeFunc("feFuncR",v),this.feFuncGComposed=this.createFeFunc("feFuncG",v),this.feFuncBComposed=this.createFeFunc("feFuncB",v))}SVGProLevelsFilter.prototype.createFeFunc=function(c,u){var f=createNS(c);return f.setAttribute("type","table"),u.appendChild(f),f},SVGProLevelsFilter.prototype.getTableValue=function(c,u,f,d,h){for(var v=0,p=256,m,g=Math.min(c,u),y=Math.max(c,u),b=Array.call(null,{length:p}),gn,x=0,vn=h-d,J=u-c;v<=256;)m=v/256,m<=g?gn=J<0?h:d:m>=y?gn=J<0?d:h:gn=d+vn*Math.pow((m-c)/J,1/f),b[x]=gn,x+=1,v+=256/(p-1);return b.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(c){if(c||this.filterManager._mdf){var u,f=this.filterManager.effectElements;this.feFuncRComposed&&(c||f[3].p._mdf||f[4].p._mdf||f[5].p._mdf||f[6].p._mdf||f[7].p._mdf)&&(u=this.getTableValue(f[3].p.v,f[4].p.v,f[5].p.v,f[6].p.v,f[7].p.v),this.feFuncRComposed.setAttribute("tableValues",u),this.feFuncGComposed.setAttribute("tableValues",u),this.feFuncBComposed.setAttribute("tableValues",u)),this.feFuncR&&(c||f[10].p._mdf||f[11].p._mdf||f[12].p._mdf||f[13].p._mdf||f[14].p._mdf)&&(u=this.getTableValue(f[10].p.v,f[11].p.v,f[12].p.v,f[13].p.v,f[14].p.v),this.feFuncR.setAttribute("tableValues",u)),this.feFuncG&&(c||f[17].p._mdf||f[18].p._mdf||f[19].p._mdf||f[20].p._mdf||f[21].p._mdf)&&(u=this.getTableValue(f[17].p.v,f[18].p.v,f[19].p.v,f[20].p.v,f[21].p.v),this.feFuncG.setAttribute("tableValues",u)),this.feFuncB&&(c||f[24].p._mdf||f[25].p._mdf||f[26].p._mdf||f[27].p._mdf||f[28].p._mdf)&&(u=this.getTableValue(f[24].p.v,f[25].p.v,f[26].p.v,f[27].p.v,f[28].p.v),this.feFuncB.setAttribute("tableValues",u)),this.feFuncA&&(c||f[31].p._mdf||f[32].p._mdf||f[33].p._mdf||f[34].p._mdf||f[35].p._mdf)&&(u=this.getTableValue(f[31].p.v,f[32].p.v,f[33].p.v,f[34].p.v,f[35].p.v),this.feFuncA.setAttribute("tableValues",u))}};function SVGDropShadowEffect(c,u,f,d,h){var v=u.container.globalData.renderConfig.filterSize,p=u.data.fs||v;c.setAttribute("x",p.x||v.x),c.setAttribute("y",p.y||v.y),c.setAttribute("width",p.width||v.width),c.setAttribute("height",p.height||v.height),this.filterManager=u;var m=createNS("feGaussianBlur");m.setAttribute("in","SourceAlpha"),m.setAttribute("result",d+"_drop_shadow_1"),m.setAttribute("stdDeviation","0"),this.feGaussianBlur=m,c.appendChild(m);var g=createNS("feOffset");g.setAttribute("dx","25"),g.setAttribute("dy","0"),g.setAttribute("in",d+"_drop_shadow_1"),g.setAttribute("result",d+"_drop_shadow_2"),this.feOffset=g,c.appendChild(g);var y=createNS("feFlood");y.setAttribute("flood-color","#00ff00"),y.setAttribute("flood-opacity","1"),y.setAttribute("result",d+"_drop_shadow_3"),this.feFlood=y,c.appendChild(y);var b=createNS("feComposite");b.setAttribute("in",d+"_drop_shadow_3"),b.setAttribute("in2",d+"_drop_shadow_2"),b.setAttribute("operator","in"),b.setAttribute("result",d+"_drop_shadow_4"),c.appendChild(b);var gn=this.createMergeNode(d,[d+"_drop_shadow_4",h]);c.appendChild(gn)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(c){if(c||this.filterManager._mdf){if((c||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),c||this.filterManager.effectElements[0].p._mdf){var u=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(u[0]*255),Math.round(u[1]*255),Math.round(u[2]*255)))}if((c||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),c||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var f=this.filterManager.effectElements[3].p.v,d=(this.filterManager.effectElements[2].p.v-90)*degToRads,h=f*Math.cos(d),v=f*Math.sin(d);this.feOffset.setAttribute("dx",h),this.feOffset.setAttribute("dy",v)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(c,u,f){this.initialized=!1,this.filterManager=u,this.filterElem=c,this.elem=f,f.matteElement=createNS("g"),f.matteElement.appendChild(f.layerElement),f.matteElement.appendChild(f.transformedElement),f.baseElement=f.matteElement}SVGMatte3Effect.prototype.findSymbol=function(c){for(var u=0,f=_svgMatteSymbols.length;u<f;){if(_svgMatteSymbols[u]===c)return _svgMatteSymbols[u];u+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(c,u){var f=c.layerElement.parentNode;if(f){for(var d=f.children,h=0,v=d.length;h<v&&d[h]!==c.layerElement;)h+=1;var p;h<=v-2&&(p=d[h+1]);var m=createNS("use");m.setAttribute("href","#"+u),p?f.insertBefore(m,p):f.appendChild(m)}},SVGMatte3Effect.prototype.setElementAsMask=function(c,u){if(!this.findSymbol(u)){var f=createElementID(),d=createNS("mask");d.setAttribute("id",u.layerId),d.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(u);var h=c.globalData.defs;h.appendChild(d);var v=createNS("symbol");v.setAttribute("id",f),this.replaceInParent(u,f),v.appendChild(u.layerElement),h.appendChild(v);var p=createNS("use");p.setAttribute("href","#"+f),d.appendChild(p),u.data.hd=!1,u.show()}c.setMatte(u.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var c=this.filterManager.effectElements[0].p.v,u=this.elem.comp.elements,f=0,d=u.length;f<d;)u[f]&&u[f].data.ind===c&&this.setElementAsMask(this.elem,u[f]),f+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(c,u,f,d){c.setAttribute("x","-100%"),c.setAttribute("y","-100%"),c.setAttribute("width","300%"),c.setAttribute("height","300%"),this.filterManager=u;var h=createNS("feGaussianBlur");h.setAttribute("result",d),c.appendChild(h),this.feGaussianBlur=h}SVGGaussianBlurEffect.prototype.renderFrame=function(c){if(c||this.filterManager._mdf){var u=.3,f=this.filterManager.effectElements[0].p.v*u,d=this.filterManager.effectElements[1].p.v,h=d==3?0:f,v=d==2?0:f;this.feGaussianBlur.setAttribute("stdDeviation",h+" "+v);var p=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",p)}};function TransformEffect(){}TransformEffect.prototype.init=function(c){this.effectsManager=c,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(c){if(this._opMdf=!1,this._mdf=!1,c||this.effectsManager._mdf){var u=this.effectsManager.effectElements,f=u[0].p.v,d=u[1].p.v,h=u[2].p.v===1,v=u[3].p.v,p=h?v:u[4].p.v,m=u[5].p.v,g=u[6].p.v,y=u[7].p.v;this.matrix.reset(),this.matrix.translate(-f[0],-f[1],f[2]),this.matrix.scale(p*.01,v*.01,1),this.matrix.rotate(-y*degToRads),this.matrix.skewFromAxis(-m*degToRads,(g+90)*degToRads),this.matrix.translate(d[0],d[1],0),this._mdf=!0,this.opacity!==u[8].p.v&&(this.opacity=u[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(c,u){this.init(u)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(c){this.init(c)}return extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie})})(lottie$1,lottie$1.exports);var lottieExports=lottie$1.exports;const lottie=getDefaultExportFromCjs(lottieExports),__default__$1=vue.defineComponent({name:"EcanImage",props:{...imageComponentProps},setup(c){const u=usePickComponentStyle(c),f=vue.computed(()=>useImagePath(c.imgUrl)),{pageMode:d}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),h=vue.computed(()=>{const J={},{actionType:j,linkPage:Fn,href:Bn}=c,{requestParams:w={}}=window.config;return vue.unref(d)!=="design"&&j==="close"&&c.isDrillShow&&!w.drillFlag&&(J.display="none"),(j==="link"&&(Fn||Bn)||!j&&(Fn||Bn)||j==="close")&&(J.cursor="pointer"),{...vue.unref(u),...J}}),{getGlobalModel:v,setGlobalModel:p,getRecordValueByKeyName:m}=vue.inject(GLOBAL_MODEL,{getGlobalModel:J=>{},setGlobalModel:(J,j)=>{},getRecordValueByKeyName:J=>{}}),{setTemplateData:g}=vue.inject("templateOperate",{setTemplateData:J=>{}}),b=useEmitEvent(c)("click",()=>{const J=v(c.id);if(p(c.id,{...J,type:c.type,RECORD:c.data||{}}),setTimeout(()=>{p(c.id,{...J,type:c.type,RECORD:{}})},0),[void 0,"link"].includes(c.actionType)){if(!c.linkPage&&!c.href)return;handleJumpLink(c,{pageMode:vue.unref(d),targetTemplate:c.targetTemplate,getRecordValueByKeyName:m,setTemplateData:g})}else c.actionType==="close"&&window.close()}),gn=vue.ref(),x=vue.ref(),vn=()=>{const{directory:J}=c.animationSource;c.isAnimation&&gn.value&&J&&(x.value=lottie.loadAnimation({name:`${c.keyName}-lotTie`,container:gn.value,renderer:"svg",loop:!0,autoplay:!0,path:useImagePath(J)+"data.json"}),vue.unref(x).setSpeed(1))};return vue.watch(()=>[c.isAnimation,c.animationSource],([J])=>{J&&vue.nextTick(()=>{vn()})},{immediate:!0,deep:!0}),useOnEvent(c,{click:b}),{customStyle:h,myImgUrl:f,animation:gn,pageMode:d,onClick:b}}}),__injectCSSVars__$1=()=>{vue.useCssVars(c=>({"8d74eefa":c.isHoverStyle?"pointer":"auto","7ff7bf46":c.isHoverStyle?"0.6":"1"}))},__setup__$1=__default__$1.setup;__default__$1.setup=__setup__$1?(c,u)=>(__injectCSSVars__$1(),__setup__$1(c,u)):__injectCSSVars__$1;const Image_vue_vue_type_style_index_0_scoped_8b128e89_lang="",_hoisted_1$3=["src"];function _sfc_render$7(c,u,f,d,h,v){var p;return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[c.isAnimation?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[c.animationSource.directory?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["ecan-image",c.pageMode==="design"?"component":""]),ref:"animation",style:vue.normalizeStyle(c.customStyle),onClick:u[0]||(u[0]=(...m)=>c.onClick&&c.onClick(...m))},null,6)):vue.createCommentVNode("",!0)],64)):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[c.myImgUrl!==""?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:vue.normalizeClass(["ecan-image",c.pageMode==="design"?"component":""]),style:vue.normalizeStyle(c.customStyle),src:c.myImgUrl,onClick:u[1]||(u[1]=(...m)=>c.onClick&&c.onClick(...m))},null,14,_hoisted_1$3)):vue.createCommentVNode("",!0)],64)),(c.isAnimation?!((p=c.animationSource)!=null&&p.directory):!c.myImgUrl)?(vue.openBlock(),vue.createElementBlock("div",{key:2,class:vue.normalizeClass(["image-placeholder",c.pageMode==="design"?"component":""]),style:vue.normalizeStyle(c.customStyle)}," 请上传图片 ",6)):vue.createCommentVNode("",!0)],64)}const Image$1=_export_sfc$1(__default__$1,[["render",_sfc_render$7],["__scopeId","data-v-8b128e89"]]),EcanImage=withInstall$1(Image$1),iframeProps={...props$1,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web",transParams:[]},iframeComponentProps=transformToComponentProps(iframeProps),_sfc_main$5=vue.defineComponent({name:"EcanIframe",props:{...iframeComponentProps},setup(c){const u=usePickComponentStyle(c),{contextRequestUrl:f}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:""}),{getRecordValueByKeyName:d}=vue.inject(GLOBAL_MODEL,{getRecordValueByKeyName:v=>{}}),h=vue.computed(()=>{var p;let v=hn(c.link);if(c.linkType==="erd"&&v!=null){let m=vue.unref(f);m[m.length-1]==="/"?m+="erdReport":m+="/erdReport",v=`${ERD_URL||m}?_t=0&uid=${v}`}if((p=c.transParams)!=null&&p.length){v.includes("?")?v+="&":v+="?";const m=[];for(const g of c.transParams){const y=d(String(g.fieldName));m.push(`${g.keyName}=${y}`)}v+=m.join("&")}return v});return{style:u,myLink:h}}}),Iframe_vue_vue_type_style_index_0_scoped_c0393b8d_lang="",_hoisted_1$2=["src"];function _sfc_render$6(c,u,f,d,h,v){return c.myLink?(vue.openBlock(),vue.createElementBlock("iframe",{key:0,src:c.myLink,style:vue.normalizeStyle(c.style)},null,12,_hoisted_1$2)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"iframe-placeholder",style:vue.normalizeStyle(c.style)}," 请填写网页链接 ",4))}const Iframe=_export_sfc$1(_sfc_main$5,[["render",_sfc_render$6],["__scopeId","data-v-c0393b8d"]]),EcanIframe=withInstall$1(Iframe),tableProps={...props$1,zIndex:2,name:"表格",keyName:"表格",type:"ecanTable",width:"400px",height:"240px",bordered:!1,headerFontSize:"14px",headerFontColor:"",fontSize:"14px",isUseSeq:!1,size:"",headerFontWeight:400,isUseExport:!1,fontWeight:400,columnsFixedNum:0,scrollX:0,paginationShow:!0,isReverse:!1,simple:!1,pageSizeShow:!1,cellBackgroundColor:"",cellFontColor:"",headerBackgroundColor:"",borderColor:"",paginationPosition:"bottomRight",paginationPageSize:10,isUseAction:!1,clickHighlight:!1,filterDropdownHeight:"200px",actionList:[{title:"",href:"",target:"",color:""}],actionColumnWidth:100,columns:[{title:"姓名",dataIndex:"name"},{title:"年龄",dataIndex:"age"},{title:"住址",dataIndex:"address"}],data:[{name:"小明",age:32,address:"福州软件园"},{name:"小红",age:25,address:"福州软件园"}],graphicConfig:{},stripedShow:!1,stripedColor:"#fafafa",isGroupTable:!1,seqWidth:"10%",seqName:"序号",seqIcon:!1,isSummaryFixed:!1,isPageBottom:!1,isShowTotal:!1,hideTableHeader:!1,paginationColor:"",paginationBgColor:"",activePaginationColor:"",activePaginationBgColor:"",hoverBackgroundColor:"",subTotalColumn:"",subTotalName:"小计",isSortByFront:!1,transParams:[],linkPage:"",target:"self",href:"",isAutoScroll:!1,scrollSpeed:10,clickTarget:"row",clickTargetColumns:[],linkTextColor:"",isTableFill:!1,conditionList:[],bodyRowHeight:"",headRowHeight:"",tableVersion:1},tableComponentProps=transformToComponentProps(tableProps),tableEvents=["click","refreshData","resetRecord","exportTableData"],topArrow="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAYCAYAAADOMhxqAAAAAXNSR0IArs4c6QAAAK1JREFUOE/tktENgjAURe+FBRiBCdCOwAYOoIiTqBs4Agn+OwJuUHECRugC5ZkUUItNXIB+3ndOmt5XInCkLU6AGK7qy3zMeSB6u0HMm8ut5FTX+zfjCaLLFHGvAUlGyMDGiqrqJuktjHADSOrfyg42yifJCaLLBFHfgLIOvQnCB3onmUFoiwqUfRD+hBWz+kDXCOX4Bx7Glufflp478VrJao9ZBLeTpSWAy9cAXto7eMUv8Bo2AAAAAElFTkSuQmCC",downArrow="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAYCAYAAADOMhxqAAAAAXNSR0IArs4c6QAAAMBJREFUOE/tlE0OwVAURs8tcx0RRpWQGLIDXYIViB3YgdpJl2AHXQJzJJ0hBjoy0fbSl5C2ohvQN3rf994Z3F+hdAYX1bx16IjkdUFkDzUA1FkC/rM1BlddkeKVB+mH9kyWhhf1FeZVkAj+vi0LAzg3tZsPApTxD2gX33HDvkSfOoxO6iQWgYKThxTCJMUNuxJmfqFwGRQ32KLYBhKiOGHy/vwFmCVw0ikWQXbXhNmxJ5vKrWGgsy4RWq/hWZdjegLPIXik13+8RAAAAABJRU5ErkJggg==",seqIcon1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAA6CAYAAADhu0ooAAAAAXNSR0IArs4c6QAABzRJREFUaEPtWktzVEUUPn1fk5lJ5DVJeEx4hMRAxABCBKRUqtTS8oFilY+dZfEL3FnudOXKtVt3LqxyoQtlI1WUCFhYpSCIhKoAgTwhJMFkZm73bavP7dO3h9yQpJJNJtObnJx7u+ee+333O6cfDJahSQCHhhk91p1Ttj8xs4F8zOEe2dx3C2hH0efkkwCvKluCPEc+l7mfKHvD+X7jW8qjsqV0th60Hqh6GSsSUQlgWNDX0RGoQNauCdcbmvruU8oWnB9NqAtvGRtgPzJXJuMMh86U8jX7USPd57H4OmPwjWEOZ5/hfRdvDi6WiYumbj1Q/YrZSkf0l2OAytlRLj5BtAm4uwvV0pG9hl4S3lW2C3DEopdP9mDolpV9vew+JN80hxll+0xy8nU1iHXKLmYi83sM4D+tzl/SfWVXfqXstt8GcIy52oKpW5OBUl7sO7TeiEPBadoZi0y0l96aYOwdbb9MPgcgr+wxzgw6l0uBeduTggl13WEgkz4yipEC04dJicg3WeK3Jx9ibl7nSczVcZO3tPEpeQoXbn+rbIZDxi0V0XqgKxlRky56Wg0dxoNgB5LCi3OiaqGM9sVMYSfJ54JsVvbDKKajapdm/JL6e5e7IfkMH2N6Ip2YxSVXM8y3fI6MhYnJhM4gWUX5tngc87dqXTmBJWXOkUbwqJT0hP+Boe6qCXT0aNtmjFp4Bw0Cgncqe1I68TUAGJduu/q70+UkQNBX9lAwLpV8IzaoKooB1FENbYkCQW9UwhINqoZUV1+jHFii5UoZC5k1PBOAKHfnwjX0k9syEaYmAPamQbQeaK0hOniw+CxSzXGPE8y3OMMP/HKYyIPvRhuV73gQmvvOTQdYqdwJZwtPaNGV6Kzu5dpv1MuiuJnrxZUVtgyTRqIy5AOZ5OBI4mfT4kWm+4FGvmkWdVdNoKO9xRdjsXGMyJwJfUw1F0J6r0qEJCL6cbZsED2rER20EK1oxGwxIhRV/zQxInjs6oVsszQBAFmNbt5OTRrRVi8y3gP5cDai9UBrDdGR3rYXFKVGJDtBunCqnEHqXhYJdXe5Yk7qDljUJRGyqyGisxqTaGrnVkuPjOnqOtymc06vOuRZkoV9Td2N81F3FQaaiNFP5QCnWv+kIPpRihilIWqjaKNLqSay0k8aoo5G1E45WQ1vo5VyHoeoZPC8qYwSROuB4kuhb7SmED2lqXvFou5eVxRVwB9my68THSiPLoa6SxGjZaduTQY6eLB4TCF0D5JaNy3QZzy+Vd33XkPltUcRtWvdtPSSVvfa07THVUa2GFF6yVWnl2n1PK12rasroyoxqgcKAPY3uuIRHevd+pKCfkiCmY1TZbTQQO2inop5u5BPo649dZsjj6L7kTyKmdTOo56QSN1mf3ZRX0XdVRPo8OF2XHwe5fyNR2vd+RD9S68VXddrR6o/IWVXQ3ZdS9cXWutWIaqrpayTSJmjEd0WCLMyuDvHceGgCtF6oAsQo5WF6KEdryB1hTAVT9o0rQ2iteq+k/myEa0si/dARrhjFhT+LMUL2A+EY5aF7PUhKuYXkUdnrRkVrJy5KwiRss1+1GCJ2n1lM+Ekm9HD9UCrJ94rH9Herai645Dk0bMVP6t8f1iLYxN6NTELyR7HiVwF92P2e+Jpoo0D8YZxfyVexVft75KHdFZtRsb120Kpm7Pmnt0NHOm5LeC08qnybLxHA/Jr+o1MJvxC2U1nhkbJx4ZXS6Bjh4uHVNQVyUweHeYebrhe4zE6ql3VZ6LuyGQdqaSTYosrzYbx+w0lXBBvd2UH9Q01ijiORveGhTihm4wM0JmJUevKhEZkaG8mArhmkJISt/mb803fkQ+gBRnETp9ONpbrgdYaoncPbMZyyfWzXQS9iMI9yp4WzNBvSLpNyvevSLZwr2qxGkk4A2UtWvt83kLutxvC58guMIn+KWvz+FbFw62/dktkso7E6k8ADCXDS6QnA/4j+cq+d0nZbb/eth8DU3fVGYZVE6jZ8T4C5qOfyHXi3kV5soybv6pJgG71d1yy7eQb4I5eFk12SK6JuJC5n2xuVU21TjSEyJzDfmjOJgUMsMKKACas30PU/Cj6nnxhkEERahUFOokCcP48Hq+z0bMIZkyV1OInqwdaI4imwZwc4OgxJ1Xu5SfbkMJSPEl9eMR2K3tYsC3kuyEczH83w4TO9tx0uxf/1+kntdEmJ54wBAx+oHFEwK4ou5QT/eQr/jzwQNN0vgWKWWHNdaAq9vfUeKBpKJNvtKuAaQbR3dCIx+aYlChUqk1ziWJzP3LwDBLeZ73/gifuKZ/PWB9dZ8xBkcnxivE1XbwbT7WSRYvHPda81xZ86LEeaK0imsaRqZ5WUwXNZHJ4hhecyFRVjFmpVMKNmM7sKo3V/Hs/VjXLRdO0Z1w0dVd1oHbwUp/UnoLNmDJUmxnjZgbWUhhBMWKnrcOM80rJ0m9YFkRXQqD/A/mshzl9oUoNAAAAAElFTkSuQmCC",seqIcon2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAABQFJREFUaEPtWt1v21QUv9eJ80FbWmV0adel7ZqyLenSgVYJaQghHhBIICEhoWkvSGgCiQ+JdWMCISEVxAPSoEWT+AN4QTzxzl/Ah8SAQtJ23dKvreuydl3TrIsd23e6xz63LovqeE2BePaLT06ur33O7+dzj8+5lPyHh5I7f4TfPpT6IIuPQSll9XwkWs/J3M7lGQOV7JdpYTxjX206gr4IMiM/CwQDdBhQTZ8VOreOs4//VxD0DWwkBO/kxjqRIkFDHwWZktdQZ2h6AOXlpUUQY3s7BKuCsoxB5ltUalLgYy43pYevu6Vr3SnqKQNZ9ptm9KjK7n5iye/bAkqYyzeuLQjV3OVJIavlMshyKCR03f2HQe5I9AgdpbRkBiP6BSpD6xTYQY+fubsdqjtC0DeQscZBkLERCamgZFveNmMH+9xGjzYu3165KVSzUzmQS8U1t7GBNLU8Kq7pS0HCQ1pjj9nmofPmD/aRoO3A2e/huWzZUM0U9ayB5exoP3iFGT/a3NfH5Y3SulDNTJrp5OpywTVatV6wJy5WIHLgkJkcRR5p2rzcWk8NSTuBSkcEfQMtVzUEgowxQFTLnj+OEBtEeteST6Lu2swVEGcvmUEEXnVW168cR9ZSyYx5vQdTYmxXbxKf5eWqFPWkgSw7GkNrVWa8A2gQkkCdrigQm4Ph8Kuom7j4K4grhSVHT+/2gFh7XNwifeyp+xH0vIEYJU3TjXP8VFiYLaJbSsViK5eTA4Nvoi732y8g3rp5Y7cBcpzfEUHfQC8iOD3+u0goJUlq5zzpP3L0Lc9Q1PMGTv55USSUciCwt9EQlCh5Riz01YKMb+D/fJlwhWA4JHdxuPtSmTcaJcj4BtrfwWg00m1m7enXPYmgb6Bjtri7A6rlolveQeWvMfHFyKh+mj+OpyjqfQPHRzNIIiYZ79WCYH7ib7hkcS6/u/yrYfZ9PVDggwPrp1sp6ht4/zLhKQRZRYUO0qEnhk4hFQLBYAuX7UVeLBvai8E1MMzVEHuRFwu/9mIwLzLAhAZ5WiTbigNFPWng/KWJVfTAfP4y1GfC4bBo4iUHBp/lulh7XHiKt/m4bmlhTqAyb/UCK6rqCik+2N4zTCQPwvWdiV4xD5WkCv9BGbmASlkLQDOIPjl8e1sEPWXglpYz02ELB2MEKmn8KK2uQBv2ymTW5DchZH1tDbzX0toGLTN+9KcyL/Bzc1ubWHYqqgqVckTynwhjNRyr1Pz/fd0HYD5EjctBGcjB+3VTeD9JZ/B1Iw+e+wl11c7UN7DREbTDyqYvQMtZVRVzBxK8xPR5fjYYC6Ju+fpV2BQwO5UTrduyoupcF+/aL8r+3Y8ffonrIpGo0NmXkYK1OaHToiUfG45GLTYSUVVmViAJKaWvxXMNjWxsR00x7qEysJpHsHdRYYZovhiMDfGxuq6JntnV/DSE5sWZvLnlA9ZbA87JVOYY6uL7e4ER/JAkam5DoUQwgRH2HVdphvwpjmvOnH7gHoFjh9c30HJzwyJYjbbl8TH4RqGSJvagMUJBp2zcgTWSH4VFMxh1JHogd+VHKBQxowhMQCGoMV37DFWRox+Kta7avd3qHCn6UBqIRmPLG4KC1dc3qPTK5v9mRkQJEa0ASukP+L+cPvOHCWR9tzHbQXkgBH0DLQ9gTtuwCFZ7PzEb4v9Vyhok3vJyEagIdHxuRHMbKHYyfkcUbQQD7wHq9EAq9LeVYwAAAABJRU5ErkJggg==",seqIcon3="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAABMJJREFUaEPtWl1sFFUUPndmlm1LdW1XoGxly7qFYqmIBkxEJDTRRI3RxNhgpDzpkwixJCaEJx588MHQCPrgGwT8SSD4Zkx84DfGEEjU2KpAS6ktZVsKpF0K3Z+55p4798ysGdju0A3Mdu5De/bcn7nnfN/ce+ecy+ABli1fHGsTjz+4fWMPTYMxPptTYrM5WKljBQaW6jGX9mVF8N19p2PimYxBnXq2ZpqfK5kDvCpl/qvSMdC7hPzN9vWkux87AwNn6r3O7pOLRVtT5+/bfVinJS9TOjNvakoeG0mhGF20gLoYIUMtMgcI9TzsEvKhrg0jM52PzYhSe9ylfWCg5RhfINjx9c8RMd/QnapN9v7FP7Dk1aTjPCTk1LDNrIHzfVSduTONcmgeNsPStCyJ/xvijfbQjKXFD87ZZ0qZy+t7hHx4x7rb9yKhp0Wmogx8be+PYeGhCNS+TC89AC7lAPCCw3s1Qr557TqpLv19AeX0xOS9nOxaN/+RWtInW1tQjkRptxE/BxFVYDtVw++2rf8eZcdpqCiCgYG2/32AIOeI6OYvT62jeXO2RVKBv+PgUlTIU+lbpOr/6zzKN8bGS6bjTDtEGxZS08SKZpSra9CvVpEnIt3UaPErpGglGtix55d6ZX/IyH4oX1JYonSZ25kGIc+rCr+pdEP9l1Ec+Oei7Ts+q185RUFlmjwQJVokkqI0JuL43wR4Q+lYYKDfEez86hhhbJraJwLaoT7cYrCkJyaRoitWtxFFe8/9jnXjqbGiVCp3g/qFj9MjVq6Rh6gCis5JA3vP/kFe0TQmEXx2FSHYc/Y3rL8+eq3cABUd3xOCgYF+R7DnjE1R3ahAigYGPuQU5SZ7iU4ybtuE3xEMDHQiGAqHnhBwL1/V+rqC/WHfB0tCMDCw6FmjvA3cTjIFCG7qPvGUmoJuwMdCdlI0XF2FH1nNbS1WHgHAVxSteAM37zvxtEKQA3xUcQgGBvr9HfSCYH+vDBEOD9hf/uVdK+8+emwpxcdARcALVtE5aeClP+1w4GR64jHhv9bnnqFQnBEyMNrqDPKqwK8zGDzbqDqDvCrw6wwGiyCDeCZn+RfpsO2GYGCgnxBUqWeEVpdpMc44JjiRhqMyHfbvxT7KUjbE4xifWxBbRHsoABhCd3VwmJh5+YJMdmYz2ZLZ6kyKLmlOYP9YHM/9WJim4aAc2F6lC+dznwp5f1f7TWpX8QY6XatygXW8ls6dwNgroo3JTUIwNXgFu42OjFCWcuny5PNCF6mvo0CyQk4h+X+EuZXPUHkGUd/YJJd9hZqQHTcvjqj5anpe3rzY2m6viC48KcguBQZaHvItgm4rgco+GXrubaIHY2uEnMlMEwMGrAUlP52jLGVTSxITqdXza0jn3CdTQ5LqMYuWQg5XV6nHnKOFAjT8CPByvatojr7iDXRD9b3uU0+iXocOqmcm6qYmpkiVuiIRakom5DUJANAMY61jTJV/lhlVLHyH+Pvttg0/2GN7v0NaFMHAQHpRKghBm03yVoYodDODw1tENnUi4too+YHxn6jelHcBsjeiR5Xu8O6VGTfWeNV5oujcMdDFreqwIKoi7FE8q14dz8qMKQAc392e84qGl373h2Bg4INH8D9A563p5gHY1gAAAABJRU5ErkJggg==",__default__=vue.defineComponent({name:"EcanTable",components:{Skeleton,AButton:antDesignVue.Button,AInput:antDesignVue.Input,ACheckboxGroup:antDesignVue.CheckboxGroup,ATable:antDesignVue.Table,ATableSummary:antDesignVue.TableSummary,ATableSummaryRow:antDesignVue.TableSummaryRow,ATableSummaryCell:antDesignVue.TableSummaryCell,DownOutlined:DownOutlined$1,RightOutlined:RightOutlined$1,MarqueeScroll},props:{...tableComponentProps},setup(c,{expose:u}){const{pageMode:f,height:d,theme:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",height:null,theme:"light"}),v=vue.ref(!1),p=vue.computed(()=>vue.unref(f)!=="design"&&c.isAutoScroll),m=vue.ref({}),g=vue.ref(!1),y=vue.computed(()=>{const Cr=lodashEs.cloneDeep(c.columns);return c.isUseSeq&&Cr.unshift({title:c.seqName,dataIndex:"SEQ",align:"center",width:c.seqWidth}),c.isUseAction&&Cr.push({title:"操作",dataIndex:"ACTION",width:c.actionColumnWidth}),Cr}),b=vue.ref(),gn=vue.ref(),x=vue.ref(!1),vn=usePickComponentStyle(c),J=vue.ref([]),j=vue.computed(()=>{const{height:Cr}=c;return typeof Cr=="string"?Cr:Cr.suffix==="px"?Cr.value+"px":Cr.suffix==="%"?parseFloat(vue.unref(d))*(Cr.value/100)+"px":"0"}),Fn=vue.computed(()=>c.scrollX),Bn=vue.ref(parseFloat(j.value)),w=()=>{let Cr=0;switch(c.size){case"small":Cr=50;break;case"middle":Cr=53;break;default:Cr=65;break}return Cr},re=vue.ref(0),Pn=vue.ref(""),Rn=vue.ref(0);vue.watchEffect(()=>{var Cr;(Cr=J.value)!=null&&Cr.length&&j.value&&setTimeout(()=>{let _r=parseFloat(j.value),Ar=document.querySelector(`#ecanTable-${c.id} .ant-table-tbody`),Mr=document.querySelector(`#ecanTable-${c.id} thead.ant-table-thead`);const zr=document.querySelector(`#ecanTable-${c.id} .ant-table-summary`);let $r=0;if(Mr&&(_r-=(Mr==null?void 0:Mr.clientHeight)||0),zr&&c.isSummaryFixed&&($r=(zr==null?void 0:zr.clientHeight)||0,_r-=$r),c.paginationShow&&!c.isAutoScroll){let Ir=0;Ir=w(),Ir&&(_r-=Ir)}(Ar==null?void 0:Ar.clientHeight)>_r?Bn.value=_r:Bn.value=0,vue.nextTick(()=>{if($r){const Ir=document.querySelector(`#ecanTable-${c.id} .ant-table-summary`),Vr=(Ir==null?void 0:Ir.clientHeight)||0;$r!==Vr&&vue.unref(Bn)&&(Bn.value=_r+$r-Vr)}c.isAutoScroll&&v.value&&setTimeout(()=>{var Yr;const Ir=document.querySelector(`#ecanTable-${c.id} .ant-table-body`);Ar=document.querySelector(`#ecanTable-${c.id} .ant-table-tbody`),Mr=document.querySelector(`#ecanTable-${c.id} thead.ant-table-thead`);const Vr=Ir||Ar;re.value=(Vr==null?void 0:Vr.clientHeight)||0,Rn.value=(Mr==null?void 0:Mr.clientHeight)||0,m.value={height:((Ar==null?void 0:Ar.clientHeight)||0)+"px"};const Kr=document.querySelector(`#ecanTable-${c.id} .ant-table-body > table`);if(Pn.value=(Yr=document.querySelector(`#ecanTable-${c.id} .ant-table`))==null?void 0:Yr.className,Kr){const Xr=Kr.cloneNode(!0);Kr.style.visibility="hidden",setTimeout(()=>{Vr==null||Vr.setAttribute("id","hiddenTableBody")},0);const Jr=document.querySelectorAll(`#ecanTable-${c.id} .scroll-wrap`);if(Jr!=null&&Jr.length){for(const li of Jr)li.append(Xr.cloneNode(!0));const ti=document.querySelectorAll(`#ecanTable-${c.id} .scroll-wrap .ant-table-cell`);if(ti!=null&&ti.length)for(const li of ti)Vn(li);const oi=document.querySelector(`#ecanTable-${c.id} .vue3-marquee`);oi&&oi.addEventListener("scroll",li=>{var fi;document.querySelector(`#ecanTable-${c.id} .ant-table-header`).scrollLeft=((fi=li==null?void 0:li.target)==null?void 0:fi.scrollLeft)||0})}}},0)})},0)});function Vn(Cr){Cr.addEventListener("click",_r=>{const Mr=Wn(_r.target).getAttribute("dix");if(Mr){const zr=document.querySelector(`#ecanTable-${c.id} #hiddenTableBody td[dix="${Mr}"]`);zr&&zr.click()}})}function Wn(Cr){return Cr.className.includes("ant-table-cell")?Cr:Wn(Cr.parentElement)}const Gn=vue.ref([]),Zn=vue.ref([]),Xn=vue.ref([]),er=vue.ref([]),Jn=vue.ref(0),ir=vue.ref(1),or=vue.ref(c.paginationPageSize||10),sr=vue.reactive([]),Hn=(Cr,_r)=>{let Ar="";return Cr.forEach((Mr,zr)=>{const{value:$r,rule:Ir}=Mr;Mr.conditions?Ar+=`(${Hn(Mr.conditions,Mr.join)})`:$r&&Ir&&(Ar+=`value ${Ir} '${$r}'`),Ar+=`${zr===Cr.length-1?"":_r?" "+_r+" ":""}`}),Ar},Kn=(Cr=[])=>{var _r,Ar;if(Array.isArray(Cr)&&Cr.length>0){let Mr=Cr.length;const zr=c.columnsFixedNum;if(c.dataType==="indicator"&&((_r=vue.unref(y))!=null&&_r.length)&&!vue.unref(y).find($r=>{var Ir;return(Ir=$r.children)==null?void 0:Ir.length})){const{graphicConfig:{indicators:$r=[]}}=c;Cr.forEach((Ir,Vr)=>{if(vue.unref(y)[Vr])for(const Xr in vue.unref(y)[Vr])["dataIndex","title"].includes(Xr)||(Ir[Xr]=vue.unref(y)[Vr][Xr]);const Kr=$r.find(Xr=>Xr.label===Ir.title),{showLabel:Yr=""}=Kr||{};Yr&&(Ir.title=Yr)})}for(let $r=Mr-1;$r>=0;$r--)(Ar=Cr[$r])!=null&&Ar.isHidden&&Cr.splice($r,1);Mr=Cr.length;for(let $r=0;$r<Mr;$r++){const Ir=Cr[$r];if($r<zr?Ir.fixed="left":Ir.fixed=!1,c.isSortByFront&&Ir.sorter){const hi=Ir.dataIndex;Ir.sorter=(mi,bi)=>mi[hi]-bi[hi]}const{cellAlign:Vr="center",cellColor:Kr,dataIndex:Yr,title:Xr,tableFilter:Jr,headerCellAlign:ti,headerCellColor:oi,overflow:li,conditions:fi}=Ir;Jr&&(sr.push(Yr),Ir.filterOptionsInputValue="",Ir.filterCheckboxGroupValue=[],Ir.customFilterDropdown=!0,Ir.onFilter=(hi,mi)=>mi[Yr].toString().toLowerCase().includes(hi.toLowerCase())),fi&&(Ir.conditionCode=Hn(fi)),Ir.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:c.headerFontSize,fontWeight:c.headerFontWeight,textAlign:ti||"center",color:oi||c.headerFontColor,borderBottomColor:c.borderColor,backgroundColor:c.headerBackgroundColor}}),Ir.customCell=(hi,mi,bi)=>({style:{textAlign:Vr,color:zn(bi)?c.linkTextColor:Kr||c.cellFontColor,backgroundColor:c.cellBackgroundColor,borderBottomColor:c.borderColor},class:{highlight:vue.unref(Rr)===mi&&c.clickHighlight,linkText:zn(bi)},dix:bi.dataIndex+"_"+mi,onClick:pr("click",()=>{const Pi=c.id,Di=br(Pi);hi={dataIndex:Yr,title:Xr,...hi},kr(Pi,{...Di,type:c.type,RECORD:hi}),Rr.value=mi,setTimeout(()=>{if(!c.linkPage&&!c.href)return;let Ii=!1;(zn(bi)||c.clickTarget!=="cell")&&(Ii=!0),Ii&&handleJumpLink(c,{pageMode:vue.unref(f),getRecordValueByKeyName:wr})},0)})}),li==="ellipsis"?Ir.ellipsis=!0:Ir.ellipsis=!1,Array.isArray(Ir.children)&&Kn(Ir.children)}}};function zn(Cr){let _r=!1;return c.clickTarget==="cell"&&c.clickTargetColumns.includes(Cr.dataIndex)&&(_r=!0),_r}const qn=(Cr=[])=>{var Ar;let _r=lodashEs.cloneDeep(Cr);return(Ar=vue.unref(er))!=null&&Ar.length&&(_r=lodashEs.cloneDeep(vue.unref(er))),c.isUseSeq&&_r.unshift({title:c.seqName,dataIndex:"SEQ",align:"center",width:c.seqWidth}),c.isUseAction&&_r.push({title:"操作",dataIndex:"ACTION",width:c.actionColumnWidth}),Kn(_r),_r};vue.watch(or,()=>{ir.value=1,Nr(!1)}),vue.watch(b,Cr=>{x.value=!!Cr}),vue.watch(()=>[c.columns,c.isUseSeq,c.seqWidth,c.seqName,c.seqIcon,c.isUseAction,c.columnsFixedNum,c.actionColumnWidth,c.cellBackgroundColor,c.headerBackgroundColor,c.borderColor,c.stripedColor],()=>{Gn.value=qn(lodashEs.cloneDeep(c.columns))},{immediate:!0,deep:!0}),vue.watch(()=>[c.data,c.dataType],([Cr,_r])=>{_r==="static"&&(Zn.value=Cr)},{immediate:!0});const tr=vue.ref({}),Un=Cr=>{if(Array.isArray(Cr)){const _r=Cr.length,Ar=sr,Mr=Ar.length,zr={};for(let Ir=0;Ir<_r;Ir++){const Vr=Cr[Ir];for(let Kr=0;Kr<Mr;Kr++){const Yr=Ar[Kr];if(zr[Yr])zr[Yr].add(Vr[Yr]);else{const Xr=new Set;Xr.add(Vr[Yr]),zr[Yr]=Xr}}}const $r={};for(const Ir in zr)if(Object.prototype.hasOwnProperty.call(zr,Ir)){const Vr=zr[Ir],Kr=Array.from(Vr);$r[Ir]=Kr.map(Yr=>({label:Yr,value:Yr}))}tr.value=$r}},nr=Cr=>{var _r,Ar;for(const Mr of Cr)typeof(Mr==null?void 0:Mr.width)=="object"&&((_r=Mr.width)!=null&&_r.value)&&((Ar=Mr.width)!=null&&Ar.suffix)&&(Mr.width=Mr.width.value+Mr.width.suffix)};vue.watch(()=>[c.isReverse,Gn.value,Zn.value],()=>{const Cr=vue.unref(Gn),_r=vue.unref(Zn);if(Un(_r),c.isReverse){const{columns:Ar,dataSource:Mr}=cr(lodashEs.cloneDeep(Cr),lodashEs.cloneDeep(_r));nr(Ar),Xn.value=Ar,J.value=Mr.map(zr=>({key:nanoid(6),...zr}))}else nr(Cr),Xn.value=Cr,J.value=_r.map(Ar=>({key:nanoid(6),...Ar}))},{immediate:!0});const cr=(Cr,_r)=>{const Ar=Cr[0],Mr=[{title:Ar.title,dataIndex:"col0",key:"col0",align:"center"}];for(let $r=0;$r<_r.length;$r++){const Ir=_r[$r],Vr="col"+($r+1);Mr.push({title:Ir[Ar.dataIndex],dataIndex:Vr,key:Vr,align:"center"})}const zr=[];for(let $r=1;$r<Cr.length;$r++){const Ir=Cr[$r],Vr={col0:Ir.title};for(let Kr=0;Kr<_r.length;Kr++){const Yr=_r[Kr];Vr[`col${Kr+1}`]=Yr[Ir.dataIndex]}zr.push(Vr)}return{columns:Mr,dataSource:zr}},Qn=vue.ref(""),fr=Cr=>{var Mr;const{rows:_r=[],total:Ar=0}=((Mr=Cr==null?void 0:Cr.data)==null?void 0:Mr.data)||{};if(Jn.value=Ar,Array.isArray(_r)&&(Zn.value=_r),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:zr=[]}=c,$r=zr.find(Ir=>Ir.key==="dataSqlId");if(($r==null?void 0:$r.value)==="xt_jxzebg"){const Ir=_r.filter(Vr=>!Vr.绩效总额).map(Vr=>Vr.ORG_NAME);Ir!=null&&Ir.length&&vue.nextTick(()=>{antDesignVue.notification.warning({message:"提示",description:`当前时段${Ir.join("、")}绩效数据为空`,duration:3})})}}v.value=!0},vr=useRequestData(c),Yn=async(Cr=!0,_r={})=>{try{Cr&&(g.value=!0),vue.unref(Qn)&&(_r.orderCondition=vue.unref(Qn)),c.paginationShow&&(_r={pageNum:vue.unref(ir),pageSize:vue.unref(or)||"10",layer:"1",..._r});const Ar=await vr(_r);fr(Ar)}catch(Ar){console.error(Ar)}finally{g.value=!1}},ar=({current:Cr},_r,Ar)=>{if(ir.value=Cr,Ar&&Object.keys(Ar).length>0){const{field:Mr,order:zr}=Ar,Ir={ascend:"asc",descend:"desc"}[zr];Mr!=null&&Ir!=null&&Ir?Qn.value=Mr+" "+Ir:Ir||(Qn.value="")}c.isSortByFront||Nr(!1)},ur=vue.computed(()=>{const Cr=c.simple,_r=[c.paginationPosition],Ar={};return c.isShowTotal&&(Ar.showTotal=Mr=>`共 ${Mr} 条数据`),c.paginationShow&&{simple:Cr,position:_r,total:vue.unref(Jn),current:vue.unref(ir),pageSize:vue.unref(or)||"10",showSizeChanger:!1,size:"large",...Ar}}),mr=Cr=>+Cr==1?"是":+Cr==0?"否":Cr,dr=(Cr,_r)=>{const{format:Ar,retentiondigit:Mr,customFormatter:zr,defaultVal:$r}=_r;let Ir="";if(Ar==null||Ar==="")Ir=Cr;else{const Vr={money:formatMoney,percentage:formatPercentage,contrast:formatPercentage,boolean:mr,decimals:formatDecimals,custom:formatCustom};Vr[Ar]||(Ir=""),Ar==="decimals"?Ir=Vr[Ar](Cr,Mr)||"":Ar==="custom"?Ir=Vr[Ar](Cr,zr)||"":Ir=Vr[Ar](Cr)||""}return Ir||(Ir=$r),Ir},gr=Cr=>Cr==="contrast"?"upDown":"",lr=Cr=>{const{text:_r,format:Ar,declineColor:Mr="#39cf93",increaseColor:zr="#ff512e"}=Cr,$r={fontSize:c.fontSize};if(yi(Cr.dataIndex))return $r.display="flex",$r.justifyContent="center",$r.alignItems="center",$r;if(Ar==="contrast"){const Ir=parseFloat(_r+"");return Ir>=0?$r.color=zr:Ir<0&&($r.color=Mr),$r}else return{}},hr=vue.computed(()=>{const{fontSize:Cr}=c;return{width:Cr,height:Cr,textIndent:`-${parseFloat(Cr)*2}px`,overflow:"hidden"}}),xr=Cr=>{const{text:_r,declineColor:Ar="#39cf93",increaseColor:Mr="#ff512e"}=Cr,{fontSize:zr}=c,$r=parseFloat(_r+""),Ir={width:zr,verticalAlign:"unset"};return $r>=0?Ir.filter=`drop-shadow(${Mr||"#ff512e"} ${zr} -1px)`:$r<0&&(Ir.filter=`drop-shadow(${Ar||"#39cf93"} ${zr} -1px)`),Ir},Sr=Cr=>{const _r=parseFloat(Cr+"");if(_r>=0)return goUp;if(_r<0)return goDown},yr=(Cr,_r,Ar,Mr)=>{var Vr,Kr,Yr;const zr="#39cf93",$r="#ff512e",Ir=c.conditionList.find(Xr=>Xr.dataIndex===Cr.dataIndex);if((Vr=Ir==null?void 0:Ir.conditions)!=null&&Vr.length){const{fontSize:Xr}=c,Jr={style:{width:Xr,verticalAlign:"middle"},src:""};for(const ti of Ir.conditions){const oi=((Kr=ti==null?void 0:ti.property)==null?void 0:Kr.icon)||"";let li=((Yr=ti==null?void 0:ti.property)==null?void 0:Yr.iconColor)||"";if(oi){let fi=!1;if(ti.rule&&ti.value){const hi=`${ti.field} ${ti.rule} '${ti.value}'`;fi=pn(hi,{...Ar,value:_r})}else fi=!0;fi&&(oi==="increase"?Jr.src=topArrow:oi==="decline"&&(Jr.src=downArrow),li||(oi==="increase"?li=$r:oi==="decline"&&(li=zr)),Jr.style.filter=`drop-shadow(${li} ${Xr} -1px)`)}}if(Mr===1)return Jr.style;if(Mr===2)return Jr.src}else return""},pr=useEmitEvent(c),{getGlobalModel:br,setGlobalModel:kr,getRecordValueByKeyName:wr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Cr=>{},setGlobalModel:(Cr,_r)=>{},getRecordValueByKeyName:Cr=>{}});kr(c.id,{type:c.type,RECORD:""});const Er=(Cr=[],_r=[])=>{let Ar=Cr.map(Mr=>({title:Mr,dataIndex:Mr,key:Mr}));vue.unref(y).find(Mr=>{var zr;return(zr=Mr.children)==null?void 0:zr.length})&&(Ar=lodashEs.cloneDeep(vue.unref(y))),er.value=lodashEs.cloneDeep(Ar),Gn.value=qn(Ar),Zn.value=_r,v.value=!0},Pr=Cr=>{var _r,Ar,Mr,zr;Er((Ar=(_r=Cr==null?void 0:Cr.data)==null?void 0:_r.data)==null?void 0:Ar.columns,(zr=(Mr=Cr==null?void 0:Cr.data)==null?void 0:Mr.data)==null?void 0:zr.rows)},Dr=useIndicatorData(c,Pr),qr=async(Cr=!0)=>{try{Cr&&(g.value=!0);const _r=vue.unref(Qn).split(" "),Ar={};c.isSortByFront||(Ar.sort={order:_r[1],field:_r[0]});const Mr=await Dr(Ar);Pr(Mr)}catch(_r){console.error(_r)}finally{g.value=!1}},Rr=vue.ref(-1),{loadedData:Fr}=vue.inject(LOADED_DATA,{loadedData:{}}),jr=vue.ref(!1);vue.watch(Fr,Cr=>{if(c.dataType==="indicator"){const _r=getFixedValueDatas(c.graphicConfig);_r!=null&&_r.length&&(!vue.unref(jr)&&canRequestIndicator(c.graphicConfig,Cr)?(jr.value=!0,Nr()):canRequestIndicator(c.graphicConfig,Cr)||(jr.value=!1))}},{deep:!0});const Nr=async(Cr=!0)=>{switch(c.dataType){case"request":await Yn(Cr);break;case"indicator":canRequestIndicator(c.graphicConfig,vue.unref(Fr))&&await qr(Cr);break}},Ur=()=>{const Cr=c.id,_r=br(Cr);kr(Cr,{..._r,type:c.type,RECORD:""})},Qr=vue.computed(()=>{const Cr=vue.unref(Xn);let _r=0;const{subTotalColumn:Ar,subTotalName:Mr}=c;Ar&&(_r=Cr.findIndex(Kr=>Kr.dataIndex===Ar),_r<0&&(_r=0));const zr=[];let $r=0;for(let Kr=0;Kr<Cr.length;Kr++){const Yr=Cr[Kr],{isCalcTotal:Xr}=Yr;Kr===_r?zr.push({...Yr,total:Mr}):Xr?(zr.push({...Yr,index:Kr,total:0}),$r++):zr.push({...Yr})}if($r===0)return[];const Ir=vue.unref(J),Vr=Wr(zr);for(let Kr=0;Kr<Vr.length;Kr++){const Yr=Vr[Kr];let Xr=0;const{isCalcTotal:Jr,dataIndex:ti}=Yr;if(Jr===!0){for(let oi=0;oi<Ir.length;oi++){const fi=+Ir[oi][ti];isNaN(fi)||(Xr=new big_js.Big(Xr).add(fi).toNumber())}Yr.total=Xr}}return Vr});function Wr(Cr){var Ar;const _r=[];for(const Mr of Cr)(Ar=Mr.children)!=null&&Ar.length?_r.push(...Wr(Mr.children)):_r.push(Mr);return _r}const{setRequest:ri}=vue.inject(REQUEST_MODEL,{setRequest:Cr=>{}});typeof ri=="function"&&ri({id:c.id,requestFn:Nr,sortNum:c.requestSort}),u({refreshData:Nr});const ei=(Cr="",_r)=>hn(Cr,_r),Tr=Cr=>{if(Cr!=="event")return{self:"_self",blank:"_blank"}[Cr]},Br=(Cr,_r="")=>{Cr==="event"&&window.parent.postMessage({type:"openPage",url:_r},"*")},Lr=(Cr,_r)=>{Cr(_r.filterCheckboxGroupValue)},Hr=(Cr,_r)=>{Cr({confirm:!0}),_r.filterOptionsInputValue="",_r.filterCheckboxGroupValue=[]},Or=()=>{},Gr=Cr=>{const _r=Cr.dataIndex;if(typeof _r=="string"){let Ar=vue.unref(tr)[_r];const Mr=vue.unref(Cr.filterOptionsInputValue).trim();return Array.isArray(Ar)?(Ar=Ar.filter(zr=>typeof zr.label=="string"?zr.label.toLowerCase().includes(Mr.toLowerCase()):!0),Ar):[]}return[]},Zr=async()=>{var Yr,Xr;const Cr="EXPORT_KEY";antDesignVue.message.loading({key:Cr,content:"正在导出...",duration:0});let _r=[];if(c.dataType==="static")_r=c.data;else if(c.dataType==="request"){const Jr={layer:"1"};vue.unref(Qn)&&(Jr.orderCondition=vue.unref(Qn));const ti=await vr(Jr);_r=((Xr=(Yr=ti==null?void 0:ti.data)==null?void 0:Yr.data)==null?void 0:Xr.rows)||{}}const Ar=vue.unref(Xn),Mr=[],zr=[];Ar==null||Ar.forEach(Jr=>{Mr.push(Jr.dataIndex),zr.push(Jr.title)});const $r=_r.map(Jr=>lodashEs.pick(Jr,Mr)),Ir=xlsx.utils.book_new(),Vr=xlsx.utils.aoa_to_sheet([zr]),Kr=xlsx.utils.sheet_add_json(Vr,$r,{skipHeader:!0,origin:"A2"});xlsx.utils.book_append_sheet(Ir,Kr,"sheet"),xlsx.writeFile(Ir,"表格数据.xlsx"),antDesignVue.message.success({key:Cr,content:"导出成功"})},ni=(Cr,_r=2)=>{const Ar=+Cr*100;return isNaN(Ar)||Ar<=0?0:Ar>=100?100:Ar.toFixed(_r)};useOnEvent(c,{resetRecord:Ur,refreshData:Nr,exportTableData:Zr});const ci=(Cr,_r)=>{let Ar=null;return c.stripedShow&&(Ar=_r%2===1?"table-striped":null),Ar},ai=vue.computed(()=>{var Ar;let Cr=0;const{isTableFill:_r}=c;if(_r&&j.value){let Mr=0;c.paginationShow&&((Ar=vue.unref(J))!=null&&Ar.length)&&(Mr=w()),Cr=parseFloat(vue.unref(j))-Mr}return Cr?Cr+"px":"100%"}),vi=vue.computed(()=>{const Cr=vue.unref(h)==="darkBlue";let _r="";return c.isTableFill&&(_r=c.cellBackgroundColor,_r||(pi.value==="transparent"?Cr?_r="#071655":_r="transparent":Cr?_r=pi.value:_r="transparent")),_r}),ui=vue.computed(()=>{let Cr="#071655";return c.headerBackgroundColor&&(Cr="transparent"),Cr}),pi=vue.computed(()=>{let Cr="#071655";return(c.cellBackgroundColor||c.stripedShow&&c.stripedColor)&&(Cr="transparent"),Cr}),ki=vue.computed(()=>parseFloat(c.fontSize)+16),xi=vue.computed(()=>{let Cr="";const{paginationColor:_r,paginationBgColor:Ar,activePaginationColor:Mr,activePaginationBgColor:zr,hoverBackgroundColor:$r}=c;return _r&&(Cr+="p-color "),Ar&&(Cr+="p-bg-color "),Mr&&(Cr+="active-p-color "),zr&&(Cr+="active-p-bg-color "),$r&&(Cr+="hover-bg-color "),Cr}),Si=(Cr,_r)=>{if(yi(Cr.dataIndex))return!1;const{conditionCode:Ar}=Cr;return pn(Ar,{value:_r})},Ci=(Cr,_r,Ar)=>{var Kr,Yr;const{overflow:Mr,conditionCode:zr,attribute:$r,dataIndex:Ir}=Cr,Vr={};if(Mr==="ellipsis"&&(Vr.overflow="hidden",Vr.textOverflow="ellipsis"),zr&&($r!=null&&$r.color)&&Si(Cr,_r)&&(Vr.color=$r.color),$r!=null&&$r.icon&&(Cr==null?void 0:Cr.cellAlign)==="right"&&(Vr.display="flex",Vr.alignItems="center",Vr.justifyContent="flex-end"),yi(Ir)){const Xr=c.conditionList.find(Jr=>Jr.dataIndex===Ir);if((Kr=Xr==null?void 0:Xr.conditions)!=null&&Kr.length){for(const Jr of Xr.conditions)if((Yr=Jr==null?void 0:Jr.property)!=null&&Yr.color){let ti=!1;if(Jr.rule&&Jr.value){const oi=`${Jr.field} ${Jr.rule} '${Jr.value}'`;ti=pn(oi,{...Ar,value:_r})}else ti=!0;ti&&(Vr.color=Jr.property.color)}}else delete Vr.color}return Vr},si=Cr=>{const{attribute:_r}=Cr;let Ar="";return _r!=null&&_r.icon&&(Ar=useImagePath(_r.icon)),Ar},di=Cr=>{let _r={};return(Cr==null?void 0:Cr.cellAlign)==="right"?_r={marginRight:"5px"}:_r={position:"absolute",marginLeft:"5px"},{width:"auto",height:parseFloat(c.fontSize)+6+"px",..._r}},wi=(Cr,_r)=>Cr||Cr===0?Cr:_r==null?void 0:_r.defaultVal;function yi(Cr){var Ar;const _r=c.conditionList.find(Mr=>Mr.dataIndex===Cr);return!!((Ar=_r==null?void 0:_r.conditions)!=null&&Ar.length)}const Mi=(Cr,_r,Ar)=>{var zr,$r;const Mr=c.conditionList.find(Ir=>Ir.dataIndex===Cr.dataIndex);if((zr=Mr==null?void 0:Mr.conditions)!=null&&zr.length){let Ir=_r;for(const Vr of Mr.conditions){const Kr=(($r=Vr==null?void 0:Vr.property)==null?void 0:$r.formatText)||"";if(Kr){let Yr=!1;if(Vr.rule&&Vr.value){const Xr=`${Vr.field} ${Vr.rule} '${Vr.value}'`;Yr=pn(Xr,{...Ar,value:_r})}else Yr=!0;Yr&&(Ir=hn(Kr,{textData:{...Ar,value:_r}}))}}return Ir}else return""};return setTimeout(()=>{var Cr,_r,Ar,Mr,zr,$r,Ir,Vr;(_r=(Cr=vue.unref(gn))==null?void 0:Cr.style)==null||_r.setProperty("--pagination-color",c.paginationColor),(Mr=(Ar=vue.unref(gn))==null?void 0:Ar.style)==null||Mr.setProperty("--pagination-bg-color",c.paginationBgColor),($r=(zr=vue.unref(gn))==null?void 0:zr.style)==null||$r.setProperty("--active-pagination-color",c.activePaginationColor),(Vr=(Ir=vue.unref(gn))==null?void 0:Ir.style)==null||Vr.setProperty("--active-pagination-bg-color",c.activePaginationBgColor)},0),{x:Fn,y:Bn,style:vn,pagination:ur,formatFn:dr,contrastClass:gr,tableChange:ar,summaryList:Qr,loading:g,onTouchHrefEvent:Br,handleHref:ei,handleHrefTarget:Tr,useRowIndex:Rr,tableColumns:Xn,tableDataSource:J,useFilterOptions:Gr,useSetSelectedKeys:Lr,onResetFilter:Hr,onSearchFilterOptions:Or,exportTableData:Zr,handleProgressText:ni,pageSizeVisible:x,pageSize:or,tableRef:b,tableWrapRef:gn,rowClassName:ci,tableHeight:ai,tableBgColor:vi,tableHeaderBgColor:ui,tableBodyBgColor:pi,getChgStyle:lr,chgBoxStyle:hr,getChgBoxImgStyle:xr,getChgBoxImgSrc:Sr,seqIcon1,seqIcon2,seqIcon3,iconSize:ki,containerClass:xi,getCellStyle:Ci,isMatchCondition:Si,getAttrImgSrc:si,getAttrImgStyle:di,getCellText:wi,autoScrollHeight:re,autoScrollClass:Pn,autoScrollTop:Rn,isScroll:p,scrollWrapStyle:m,isLinkStyle:zn,hasConditionConfig:yi,formatTextByConditions:Mi,getChgByCondition:yr}}}),__injectCSSVars__=()=>{vue.useCssVars(c=>({"48fedd10":c.stripedColor,c4c5410a:c.bodyRowHeight,"1f0ab0fd":c.headRowHeight,"12abb7c7":c.tableHeaderBgColor,"33a016dc":c.tableBodyBgColor,"3b8d2f1d":c.hoverBackgroundColor}))},__setup__=__default__.setup;__default__.setup=__setup__?(c,u)=>(__injectCSSVars__(),__setup__(c,u)):__injectCSSVars__;const Table_vue_vue_type_style_index_0_scoped_d6d74805_lang="",Table_vue_vue_type_style_index_1_lang="",_withScopeId=c=>(vue.pushScopeId("data-v-d6d74805"),c=c(),vue.popScopeId(),c),_hoisted_1$1=["id"],_hoisted_2$1={key:0,class:"table-tool"},_hoisted_3=vue.createTextVNode("导出数据"),_hoisted_4={key:0,style:{float:"left","margin-right":"5px"}},_hoisted_5={key:1,style:{float:"left","margin-right":"5px",visibility:"hidden"}},_hoisted_6=vue.createTextVNode(" 搜索 "),_hoisted_7=vue.createTextVNode(" 重置 "),_hoisted_8=["src","width","height"],_hoisted_9=["src","width","height"],_hoisted_10=["src","width","height"],_hoisted_11={key:1},_hoisted_12={key:1,class:"action-list"},_hoisted_13=["href","target","onClick"],_hoisted_14={key:2,class:"progress-cell"},_hoisted_15=["src"],_hoisted_16=["title"],_hoisted_17=["title"],_hoisted_18=["src"],_hoisted_19=["src"],_hoisted_20=["title"],_hoisted_21=["src"],_hoisted_22=["src"],_hoisted_23={class:"ant-pagination-options-quick-jumper"},_hoisted_24=_withScopeId(()=>vue.createElementVNode("span",null,"条 / 页",-1));function _sfc_render$5(c,u,f,d,h,v){const p=vue.resolveComponent("a-button"),m=vue.resolveComponent("down-outlined"),g=vue.resolveComponent("right-outlined"),y=vue.resolveComponent("a-input"),b=vue.resolveComponent("a-checkbox-group"),gn=vue.resolveComponent("a-table-summary-cell"),x=vue.resolveComponent("a-table-summary-row"),vn=vue.resolveComponent("a-table-summary"),J=vue.resolveComponent("a-table"),j=vue.resolveComponent("marquee-scroll"),Fn=vue.resolveComponent("skeleton");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["ecan-table",c.containerClass]),ref:"tableWrapRef",id:"ecanTable-"+c.id,style:vue.normalizeStyle(c.style)},[vue.createVNode(Fn,{loading:c.loading},{default:vue.withCtx(()=>{var Bn;return[c.isUseExport?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$1,[vue.createVNode(p,{class:"export-button",onClick:c.exportTableData},{default:vue.withCtx(()=>[_hoisted_3]),_:1},8,["onClick"])])):vue.createCommentVNode("",!0),vue.createVNode(J,{ref:"tableRef",class:"table",style:vue.normalizeStyle({height:c.tableHeight,backgroundColor:c.tableBgColor}),columns:c.tableColumns,"data-source":c.tableDataSource,bordered:c.bordered,scroll:c.y?{x:c.x,y:c.y}:{x:c.x},pagination:c.isAutoScroll?!1:c.pagination,"row-class-name":c.rowClassName,"show-header":!c.hideTableHeader,indentSize:30,onChange:c.tableChange},{expandIcon:vue.withCtx(w=>{var re;return[(re=w.record.children)!=null&&re.length?(vue.openBlock(),vue.createElementBlock("span",_hoisted_4,[w.expanded?(vue.openBlock(),vue.createBlock(m,{key:0,onClick:Pn=>w.onExpand(w.record,Pn)},null,8,["onClick"])):(vue.openBlock(),vue.createBlock(g,{key:1,onClick:Pn=>w.onExpand(w.record,Pn)},null,8,["onClick"]))])):(vue.openBlock(),vue.createElementBlock("span",_hoisted_5,[vue.createVNode(m)]))]}),customFilterDropdown:vue.withCtx(({column:w,setSelectedKeys:re,confirm:Pn,clearFilters:Rn})=>[vue.createElementVNode("div",{class:"ecan-table-filter",style:vue.normalizeStyle({height:c.filterDropdownHeight})},[vue.createVNode(y,{value:w.filterOptionsInputValue,"onUpdate:value":Vn=>w.filterOptionsInputValue=Vn,placeholder:"请输入关键字",class:"filter-input",onChange:c.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),vue.createVNode(b,{value:w.filterCheckboxGroupValue,"onUpdate:value":Vn=>w.filterCheckboxGroupValue=Vn,class:"filter-checkbox",options:c.useFilterOptions(w),onChange:Vn=>c.useSetSelectedKeys(re,w)},null,8,["value","onUpdate:value","options","onChange"]),vue.createElementVNode("div",null,[vue.createVNode(p,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>Pn()},{default:vue.withCtx(()=>[_hoisted_6]),_:2},1032,["onClick"]),vue.createVNode(p,{size:"small",style:{width:"90px"},onClick:vue.withModifiers(Vn=>c.onResetFilter(Rn,w),["stop"])},{default:vue.withCtx(()=>[_hoisted_7]),_:2},1032,["onClick"])])],4)]),bodyCell:vue.withCtx(({column:w,index:re,text:Pn,record:Rn})=>{var Vn,Wn,Gn,Zn,Xn,er;return[w.dataIndex==="SEQ"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[c.seqIcon?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[re===0?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"seq-icon",src:c.seqIcon1,width:c.iconSize,height:c.iconSize},null,8,_hoisted_8)):re===1?(vue.openBlock(),vue.createElementBlock("img",{key:1,class:"seq-icon",src:c.seqIcon2,width:c.iconSize,height:c.iconSize},null,8,_hoisted_9)):re>=2?(vue.openBlock(),vue.createElementBlock("img",{key:2,class:"seq-icon",src:c.seqIcon3,width:c.iconSize,height:c.iconSize},null,8,_hoisted_10)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:"seq-icon seq-text",style:vue.normalizeStyle({fontSize:c.fontSize})},vue.toDisplayString(re+1),5)],64)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_11,vue.toDisplayString(re+1),1))],64)):w.dataIndex==="ACTION"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_12,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.actionList,(Jn,ir)=>(vue.openBlock(),vue.createElementBlock("div",{class:"action",key:ir},[vue.createElementVNode("a",{href:c.handleHref(Jn.href,Rn),target:c.handleHrefTarget(Jn.target),style:vue.normalizeStyle({color:Jn.color,fontSize:c.fontSize,fontWeight:c.fontWeight}),onClick:or=>c.onTouchHrefEvent(Jn.target,c.handleHref(Jn.href,Rn))},vue.toDisplayString(Jn.title),13,_hoisted_13)]))),128))])):w.format==="progress"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_14,[vue.createElementVNode("div",{class:"progress",style:vue.normalizeStyle({background:w.progressColor||"#1890ff",height:w.progressWidth||"18px",width:`${c.handleProgressText(Pn,w.progressTextDecimalPlaces)}%`})},null,4),vue.createElementVNode("div",{class:"progress-text",style:vue.normalizeStyle({color:+c.handleProgressText(Pn)<100?w.progressTextColor||"#333":w.progressFinishedTextColor||"#fff"})},vue.toDisplayString(c.handleProgressText(Pn,w.progressTextDecimalPlaces))+"% ",5)])):(vue.openBlock(),vue.createElementBlock("div",{key:3,style:vue.normalizeStyle({fontSize:c.fontSize,fontWeight:c.isLinkStyle(w)?"bold":c.fontWeight,...c.getCellStyle(w,Pn,Rn)})},[c.isMatchCondition(w,Pn)&&(w==null?void 0:w.cellAlign)==="right"&&((Vn=w==null?void 0:w.attribute)!=null&&Vn.icon)?(vue.openBlock(),vue.createElementBlock("img",{key:0,style:vue.normalizeStyle(c.getAttrImgStyle(w)),src:c.getAttrImgSrc(w)},null,12,_hoisted_15)):vue.createCommentVNode("",!0),!c.hasConditionConfig(w.dataIndex)&&w.format==="contrast"?(vue.openBlock(),vue.createElementBlock("span",{key:1,title:((Wn=w==null?void 0:w.customFormatter)==null?void 0:Wn.split("{value}")[0])||""},vue.toDisplayString(((Gn=w==null?void 0:w.customFormatter)==null?void 0:Gn.split("{value}")[0])||""),9,_hoisted_16)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:vue.normalizeClass([c.contrastClass(w.format)]),style:vue.normalizeStyle(c.getChgStyle({...w,text:Pn})),title:c.hasConditionConfig(w.dataIndex)?c.formatTextByConditions(w,Pn,Rn):w.format!=null?c.formatFn(Pn,w):Pn},[!c.hasConditionConfig(w.dataIndex)&&w.format==="contrast"?(vue.openBlock(),vue.createElementBlock("div",{key:0,style:vue.normalizeStyle(c.chgBoxStyle)},[vue.createElementVNode("img",{style:vue.normalizeStyle(c.getChgBoxImgStyle({...w,text:Pn})),src:c.getChgBoxImgSrc(Pn)},null,12,_hoisted_18)],4)):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString(c.hasConditionConfig(w.dataIndex)?c.formatTextByConditions(w,Pn,Rn):w.format!=null?c.formatFn(Pn,w):c.getCellText(Pn,w))+" ",1),c.hasConditionConfig(w.dataIndex)&&c.getChgByCondition(w,Pn,Rn,2)?(vue.openBlock(),vue.createElementBlock("div",{key:1,style:vue.normalizeStyle({...c.chgBoxStyle,height:"auto",scale:.6})},[vue.createElementVNode("img",{style:vue.normalizeStyle(c.getChgByCondition(w,Pn,Rn,1)),src:c.getChgByCondition(w,Pn,Rn,2)},null,12,_hoisted_19)],4)):vue.createCommentVNode("",!0)],14,_hoisted_17),!c.hasConditionConfig(w.dataIndex)&&w.format==="contrast"?(vue.openBlock(),vue.createElementBlock("span",{key:2,title:((Zn=w==null?void 0:w.customFormatter)==null?void 0:Zn.split("{value}")[1])||""},vue.toDisplayString(((Xn=w==null?void 0:w.customFormatter)==null?void 0:Xn.split("{value}")[1])||""),9,_hoisted_20)):vue.createCommentVNode("",!0),c.isMatchCondition(w,Pn)&&(w==null?void 0:w.cellAlign)!=="right"&&((er=w==null?void 0:w.attribute)!=null&&er.icon)?(vue.openBlock(),vue.createElementBlock("img",{key:3,style:vue.normalizeStyle(c.getAttrImgStyle(w)),src:c.getAttrImgSrc(w)},null,12,_hoisted_21)):vue.createCommentVNode("",!0)],4))]}),summary:vue.withCtx(()=>[c.summaryList.length>0?(vue.openBlock(),vue.createBlock(vn,{key:0,fixed:c.isSummaryFixed},{default:vue.withCtx(()=>[vue.createVNode(x,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.summaryList,(w,re)=>(vue.openBlock(),vue.createBlock(gn,{key:re,index:re,style:vue.normalizeStyle({backgroundColor:c.cellBackgroundColor,textAlign:w.cellAlign||"center",color:c.cellFontColor,borderBottomColor:c.borderColor})},{default:vue.withCtx(()=>[vue.createElementVNode("span",{class:vue.normalizeClass([c.contrastClass(w.format)]),style:vue.normalizeStyle({...c.getChgStyle({...w,text:w.total}),fontSize:c.fontSize,fontWeight:c.fontWeight})},[w.format==="contrast"?(vue.openBlock(),vue.createElementBlock("div",{key:0,style:vue.normalizeStyle(c.chgBoxStyle)},[vue.createElementVNode("img",{style:vue.normalizeStyle(c.getChgBoxImgStyle({...w,text:w.total})),src:c.getChgBoxImgSrc(w.total)},null,12,_hoisted_22)],4)):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString((w.format!=null||w.format!=="")&&c.formatFn(w.total,w)),1)],6)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1},8,["fixed"])):vue.createCommentVNode("",!0)]),_:1},8,["style","columns","data-source","bordered","scroll","pagination","row-class-name","show-header","onChange"]),c.paginationShow?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[(Bn=c.tableDataSource)!=null&&Bn.length&&!c.simple&&c.pageSizeShow&&c.pageSizeVisible?(vue.openBlock(),vue.createBlock(vue.Teleport,{key:0,to:"#ecanTable-"+c.id+" .ant-pagination"},[vue.createElementVNode("div",_hoisted_23,[vue.withDirectives(vue.createElementVNode("input",{type:"text","onUpdate:modelValue":u[0]||(u[0]=w=>c.pageSize=w)},null,512),[[vue.vModelText,c.pageSize]]),_hoisted_24])],8,["to"])):vue.createCommentVNode("",!0)],64)):vue.createCommentVNode("",!0),c.isAutoScroll?(vue.openBlock(),vue.createElementBlock("div",{key:2,class:vue.normalizeClass(["auto-scroll-content ant-table-wrapper table",c.autoScrollClass]),style:vue.normalizeStyle({width:"100%",position:"absolute",left:"0",height:c.autoScrollHeight+"px",top:c.autoScrollTop+"px",overflow:"auto"})},[vue.createVNode(j,{visible:c.isScroll,step:c.scrollSpeed,wrapStyle:{display:"flex",flexDirection:"column",flexWrap:"wrap"}},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"scroll-wrap",style:vue.normalizeStyle(c.scrollWrapStyle)},null,4)]),_:1},8,["visible","step"])],6)):vue.createCommentVNode("",!0)]}),_:1},8,["loading"]),vue.renderSlot(c.$slots,"toolbox",{},void 0,!0)],14,_hoisted_1$1)}const Table=_export_sfc$1(__default__,[["render",_sfc_render$5],["__scopeId","data-v-d6d74805"]]),EcanTable=withInstall$1(Table),mapProps={...props$1,mapJson:null,data:[],name:"地图",keyName:"地图",type:"ecanMap",width:"400px",height:"400px",backgroundImage:"",backgroundImageRepeat:"no-repeat",geoBackgroundImage:"",geoBackgroundImageRepeat:"no-repeat",symbolImage:"",symbolWidth:10,symbolHeight:10,itemStyleColor:"#11BFDA",labelFontSize:14,labelShow:!0,geoLabelShow:!0,geoLabelColor:"#000",geoZoom:1,geoRoam:!1,geoCenter:"",geoLabelFontSize:12,labelColor:"",labelFormatter:"{b}",geoItemStyleAreaColor:"#eee",geoItemStyleBorderColor:"#000",geoItemStyleBorderWidth:1,geoItemStyleShadowColor:"",geoItemStyleShadowOffsetX:0,geoItemStyleShadowOffsetY:0,geoItemStyleShadowBlur:0,geoEmphasisDisabled:!1,geoEmphasisLabelColor:"#fff",geoEmphasisItemStyleAreaColor:"#f00",geoEmphasisItemStyleBorderColor:"#000",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{name}:{value}",tooltipRequestData:{requestUrl:"",requestMethod:"get",requestParams:[]},tooltipBackgroundColor:"#fff",areaStyleKeyName:"",mapAreaStyleConfig:[],legendShow:!1,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"bottom",legendLeft:"right",mapLegendType:"circle",legendTextShow:!0,legendTitle:"",legendTitleColor:"#333",legendTitleFontSize:"16px",legendFrontText:"",legendAfterText:"",legendBoxShadow:""},mapComponentProps=transformToComponentProps(mapProps),mapEvents=["refreshData","click"];core$1.use([renderers.CanvasRenderer,charts.MapChart,charts.ScatterChart,components$1.VisualMapComponent,components$1.TooltipComponent,components$1.GraphicComponent]);const _sfc_main$4=vue.defineComponent({name:"EcanMap",components:{Echarts},props:{...mapComponentProps},setup(c){const u=useRequestData({...c.tooltipRequestData,requestHeaders:{}}),f=vue.ref(),d=vue.ref(""),h=vue.ref(""),v=usePickComponentStyle(c,["backgroundImage"]),p=vue.ref(),m=vue.computed(()=>useImagePath(c.geoBackgroundImage)),g=vue.computed(()=>useImagePath(c.backgroundImage)),y=vue.ref([]),b=vue.computed(()=>c.geoBackgroundImage?{image:vue.unref(p),repeat:c.geoBackgroundImageRepeat}:c.geoItemStyleAreaColor),gn=vue.computed(()=>{const Qn=c.symbolImage;return c.symbolImage?"image://"+useImagePath(Qn):"circle"}),x=Qn=>{let fr=c.tooltipFormatter;const vr=fr.match(/\{(.+?)\}/g);if(vr==null||vr.length===0)return fr;for(let Yn=0;Yn<vr.length;Yn++){const ar=vr[Yn];let ur=ar.slice(1,-1).trim();const mr=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,dr=ur.match(mr);for(let gr=0;gr<dr.length;gr++){const lr=dr[gr],hr=Qn[lr];hr!=null&&(ur=ur.replace(lr,hr))}fr=fr.replace(ar,ur)}return fr.split(`
181
+ */var Matrix=function(){var c=Math.cos,u=Math.sin,f=Math.tan,d=Math.round;function h(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function v(zn){if(zn===0)return this;var qn=c(zn),tr=u(zn);return this._t(qn,-tr,0,0,tr,qn,0,0,0,0,1,0,0,0,0,1)}function p(zn){if(zn===0)return this;var qn=c(zn),tr=u(zn);return this._t(1,0,0,0,0,qn,-tr,0,0,tr,qn,0,0,0,0,1)}function m(zn){if(zn===0)return this;var qn=c(zn),tr=u(zn);return this._t(qn,0,tr,0,0,1,0,0,-tr,0,qn,0,0,0,0,1)}function g(zn){if(zn===0)return this;var qn=c(zn),tr=u(zn);return this._t(qn,-tr,0,0,tr,qn,0,0,0,0,1,0,0,0,0,1)}function y(zn,qn){return this._t(1,qn,zn,1,0,0)}function b(zn,qn){return this.shear(f(zn),f(qn))}function gn(zn,qn){var tr=c(qn),Un=u(qn);return this._t(tr,Un,0,0,-Un,tr,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,f(zn),1,0,0,0,0,1,0,0,0,0,1)._t(tr,-Un,0,0,Un,tr,0,0,0,0,1,0,0,0,0,1)}function x(zn,qn,tr){return!tr&&tr!==0&&(tr=1),zn===1&&qn===1&&tr===1?this:this._t(zn,0,0,0,0,qn,0,0,0,0,tr,0,0,0,0,1)}function vn(zn,qn,tr,Un,nr,cr,Qn,fr,vr,Yn,ar,ur,mr,dr,gr,lr){return this.props[0]=zn,this.props[1]=qn,this.props[2]=tr,this.props[3]=Un,this.props[4]=nr,this.props[5]=cr,this.props[6]=Qn,this.props[7]=fr,this.props[8]=vr,this.props[9]=Yn,this.props[10]=ar,this.props[11]=ur,this.props[12]=mr,this.props[13]=dr,this.props[14]=gr,this.props[15]=lr,this}function J(zn,qn,tr){return tr=tr||0,zn!==0||qn!==0||tr!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,zn,qn,tr,1):this}function j(zn,qn,tr,Un,nr,cr,Qn,fr,vr,Yn,ar,ur,mr,dr,gr,lr){var hr=this.props;if(zn===1&&qn===0&&tr===0&&Un===0&&nr===0&&cr===1&&Qn===0&&fr===0&&vr===0&&Yn===0&&ar===1&&ur===0)return hr[12]=hr[12]*zn+hr[15]*mr,hr[13]=hr[13]*cr+hr[15]*dr,hr[14]=hr[14]*ar+hr[15]*gr,hr[15]*=lr,this._identityCalculated=!1,this;var xr=hr[0],Sr=hr[1],yr=hr[2],pr=hr[3],br=hr[4],wr=hr[5],kr=hr[6],Er=hr[7],Ir=hr[8],Dr=hr[9],qr=hr[10],Rr=hr[11],Fr=hr[12],jr=hr[13],Nr=hr[14],Ur=hr[15];return hr[0]=xr*zn+Sr*nr+yr*vr+pr*mr,hr[1]=xr*qn+Sr*cr+yr*Yn+pr*dr,hr[2]=xr*tr+Sr*Qn+yr*ar+pr*gr,hr[3]=xr*Un+Sr*fr+yr*ur+pr*lr,hr[4]=br*zn+wr*nr+kr*vr+Er*mr,hr[5]=br*qn+wr*cr+kr*Yn+Er*dr,hr[6]=br*tr+wr*Qn+kr*ar+Er*gr,hr[7]=br*Un+wr*fr+kr*ur+Er*lr,hr[8]=Ir*zn+Dr*nr+qr*vr+Rr*mr,hr[9]=Ir*qn+Dr*cr+qr*Yn+Rr*dr,hr[10]=Ir*tr+Dr*Qn+qr*ar+Rr*gr,hr[11]=Ir*Un+Dr*fr+qr*ur+Rr*lr,hr[12]=Fr*zn+jr*nr+Nr*vr+Ur*mr,hr[13]=Fr*qn+jr*cr+Nr*Yn+Ur*dr,hr[14]=Fr*tr+jr*Qn+Nr*ar+Ur*gr,hr[15]=Fr*Un+jr*fr+Nr*ur+Ur*lr,this._identityCalculated=!1,this}function Fn(zn){var qn=zn.props;return this.transform(qn[0],qn[1],qn[2],qn[3],qn[4],qn[5],qn[6],qn[7],qn[8],qn[9],qn[10],qn[11],qn[12],qn[13],qn[14],qn[15])}function Bn(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function w(zn){for(var qn=0;qn<16;){if(zn.props[qn]!==this.props[qn])return!1;qn+=1}return!0}function re(zn){var qn;for(qn=0;qn<16;qn+=1)zn.props[qn]=this.props[qn];return zn}function Pn(zn){var qn;for(qn=0;qn<16;qn+=1)this.props[qn]=zn[qn]}function Rn(zn,qn,tr){return{x:zn*this.props[0]+qn*this.props[4]+tr*this.props[8]+this.props[12],y:zn*this.props[1]+qn*this.props[5]+tr*this.props[9]+this.props[13],z:zn*this.props[2]+qn*this.props[6]+tr*this.props[10]+this.props[14]}}function Vn(zn,qn,tr){return zn*this.props[0]+qn*this.props[4]+tr*this.props[8]+this.props[12]}function Wn(zn,qn,tr){return zn*this.props[1]+qn*this.props[5]+tr*this.props[9]+this.props[13]}function Gn(zn,qn,tr){return zn*this.props[2]+qn*this.props[6]+tr*this.props[10]+this.props[14]}function Zn(){var zn=this.props[0]*this.props[5]-this.props[1]*this.props[4],qn=this.props[5]/zn,tr=-this.props[1]/zn,Un=-this.props[4]/zn,nr=this.props[0]/zn,cr=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/zn,Qn=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/zn,fr=new Matrix;return fr.props[0]=qn,fr.props[1]=tr,fr.props[4]=Un,fr.props[5]=nr,fr.props[12]=cr,fr.props[13]=Qn,fr}function Xn(zn){var qn=this.getInverseMatrix();return qn.applyToPointArray(zn[0],zn[1],zn[2]||0)}function er(zn){var qn,tr=zn.length,Un=[];for(qn=0;qn<tr;qn+=1)Un[qn]=Xn(zn[qn]);return Un}function Jn(zn,qn,tr){var Un=createTypedArray("float32",6);if(this.isIdentity())Un[0]=zn[0],Un[1]=zn[1],Un[2]=qn[0],Un[3]=qn[1],Un[4]=tr[0],Un[5]=tr[1];else{var nr=this.props[0],cr=this.props[1],Qn=this.props[4],fr=this.props[5],vr=this.props[12],Yn=this.props[13];Un[0]=zn[0]*nr+zn[1]*Qn+vr,Un[1]=zn[0]*cr+zn[1]*fr+Yn,Un[2]=qn[0]*nr+qn[1]*Qn+vr,Un[3]=qn[0]*cr+qn[1]*fr+Yn,Un[4]=tr[0]*nr+tr[1]*Qn+vr,Un[5]=tr[0]*cr+tr[1]*fr+Yn}return Un}function ir(zn,qn,tr){var Un;return this.isIdentity()?Un=[zn,qn,tr]:Un=[zn*this.props[0]+qn*this.props[4]+tr*this.props[8]+this.props[12],zn*this.props[1]+qn*this.props[5]+tr*this.props[9]+this.props[13],zn*this.props[2]+qn*this.props[6]+tr*this.props[10]+this.props[14]],Un}function or(zn,qn){if(this.isIdentity())return zn+","+qn;var tr=this.props;return Math.round((zn*tr[0]+qn*tr[4]+tr[12])*100)/100+","+Math.round((zn*tr[1]+qn*tr[5]+tr[13])*100)/100}function sr(){for(var zn=0,qn=this.props,tr="matrix3d(",Un=1e4;zn<16;)tr+=d(qn[zn]*Un)/Un,tr+=zn===15?")":",",zn+=1;return tr}function Hn(zn){var qn=1e4;return zn<1e-6&&zn>0||zn>-1e-6&&zn<0?d(zn*qn)/qn:zn}function Kn(){var zn=this.props,qn=Hn(zn[0]),tr=Hn(zn[1]),Un=Hn(zn[4]),nr=Hn(zn[5]),cr=Hn(zn[12]),Qn=Hn(zn[13]);return"matrix("+qn+","+tr+","+Un+","+nr+","+cr+","+Qn+")"}return function(){this.reset=h,this.rotate=v,this.rotateX=p,this.rotateY=m,this.rotateZ=g,this.skew=b,this.skewFromAxis=gn,this.shear=y,this.scale=x,this.setTransform=vn,this.translate=J,this.transform=j,this.multiply=Fn,this.applyToPoint=Rn,this.applyToX=Vn,this.applyToY=Wn,this.applyToZ=Gn,this.applyToPointArray=ir,this.applyToTriplePoints=Jn,this.applyToPointStringified=or,this.toCSS=sr,this.to2dCSS=Kn,this.clone=re,this.cloneFromProps=Pn,this.equals=w,this.inversePoints=er,this.inversePoint=Xn,this.getInverseMatrix=Zn,this._t=this.transform,this.isIdentity=Bn,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(f){return typeof f}:_typeof$3=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},_typeof$3(c)}var lottie={};function setLocation(c){setLocationHref(c)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(c){setSubframeEnabled(c)}function setPrefix(c){setIdPrefix(c)}function loadAnimation(c){return animationManager.loadAnimation(c)}function setQuality(c){if(typeof c=="string")switch(c){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(c)&&c>1&&setDefaultCurveSegments(c)}function inBrowser(){return typeof navigator<"u"}function installPlugin(c,u){c==="expressions"&&setExpressionsPlugin(u)}function getFactory(c){switch(c){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(c){for(var u=queryString.split("&"),f=0;f<u.length;f+=1){var d=u[f].split("=");if(decodeURIComponent(d[0])==c)return decodeURIComponent(d[1])}return null}var queryString="";{var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{_typeof$3(exports)!=="object"&&(window.bodymovin=lottie)}catch(c){}var ShapeModifiers=function(){var c={},u={};c.registerModifier=f,c.getModifier=d;function f(h,v){u[h]||(u[h]=v)}function d(h,v,p){return new u[h](v,p)}return c}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(c){if(!this.closed){c.sh.container.addDynamicProperty(c.sh);var u={shape:c.sh,data:c,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(u),this.addShapeToModifier(u),this._isAnimated&&c.setAsAnimated()}},ShapeModifier.prototype.init=function(c,u){this.shapes=[],this.elem=c,this.initDynamicPropertyContainer(c),this.initModifierProperties(c,u),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(c,u){this.s=PropertyFactory.getProp(c,u.s,0,.01,this),this.e=PropertyFactory.getProp(c,u.e,0,.01,this),this.o=PropertyFactory.getProp(c,u.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=u.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(c){c.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(c,u,f,d,h){var v=[];u<=1?v.push({s:c,e:u}):c>=1?v.push({s:c-1,e:u-1}):(v.push({s:c,e:1}),v.push({s:0,e:u-1}));var p=[],m,g=v.length,y;for(m=0;m<g;m+=1)if(y=v[m],!(y.e*h<d||y.s*h>d+f)){var b,gn;y.s*h<=d?b=0:b=(y.s*h-d)/f,y.e*h>=d+f?gn=1:gn=(y.e*h-d)/f,p.push([b,gn])}return p.length||p.push([0,0]),p},TrimModifier.prototype.releasePathsData=function(c){var u,f=c.length;for(u=0;u<f;u+=1)segmentsLengthPool.release(c[u]);return c.length=0,c},TrimModifier.prototype.processShapes=function(c){var u,f;if(this._mdf||c){var d=this.o.v%360/360;if(d<0&&(d+=1),this.s.v>1?u=1+d:this.s.v<0?u=0+d:u=this.s.v+d,this.e.v>1?f=1+d:this.e.v<0?f=0+d:f=this.e.v+d,u>f){var h=u;u=f,f=h}u=Math.round(u*1e4)*1e-4,f=Math.round(f*1e4)*1e-4,this.sValue=u,this.eValue=f}else u=this.sValue,f=this.eValue;var v,p,m=this.shapes.length,g,y,b,gn,x,vn=0;if(f===u)for(p=0;p<m;p+=1)this.shapes[p].localShapeCollection.releaseShapes(),this.shapes[p].shape._mdf=!0,this.shapes[p].shape.paths=this.shapes[p].localShapeCollection,this._mdf&&(this.shapes[p].pathsData.length=0);else if(f===1&&u===0||f===0&&u===1){if(this._mdf)for(p=0;p<m;p+=1)this.shapes[p].pathsData.length=0,this.shapes[p].shape._mdf=!0}else{var J=[],j,Fn;for(p=0;p<m;p+=1)if(j=this.shapes[p],!j.shape._mdf&&!this._mdf&&!c&&this.m!==2)j.shape.paths=j.localShapeCollection;else{if(v=j.shape.paths,y=v._length,x=0,!j.shape._mdf&&j.pathsData.length)x=j.totalShapeLength;else{for(b=this.releasePathsData(j.pathsData),g=0;g<y;g+=1)gn=bez.getSegmentsLength(v.shapes[g]),b.push(gn),x+=gn.totalLength;j.totalShapeLength=x,j.pathsData=b}vn+=x,j.shape._mdf=!0}var Bn=u,w=f,re=0,Pn;for(p=m-1;p>=0;p-=1)if(j=this.shapes[p],j.shape._mdf){for(Fn=j.localShapeCollection,Fn.releaseShapes(),this.m===2&&m>1?(Pn=this.calculateShapeEdges(u,f,j.totalShapeLength,re,vn),re+=j.totalShapeLength):Pn=[[Bn,w]],y=Pn.length,g=0;g<y;g+=1){Bn=Pn[g][0],w=Pn[g][1],J.length=0,w<=1?J.push({s:j.totalShapeLength*Bn,e:j.totalShapeLength*w}):Bn>=1?J.push({s:j.totalShapeLength*(Bn-1),e:j.totalShapeLength*(w-1)}):(J.push({s:j.totalShapeLength*Bn,e:j.totalShapeLength}),J.push({s:0,e:j.totalShapeLength*(w-1)}));var Rn=this.addShapes(j,J[0]);if(J[0].s!==J[0].e){if(J.length>1){var Vn=j.shape.paths.shapes[j.shape.paths._length-1];if(Vn.c){var Wn=Rn.pop();this.addPaths(Rn,Fn),Rn=this.addShapes(j,J[1],Wn)}else this.addPaths(Rn,Fn),Rn=this.addShapes(j,J[1])}this.addPaths(Rn,Fn)}}j.shape.paths=Fn}}},TrimModifier.prototype.addPaths=function(c,u){var f,d=c.length;for(f=0;f<d;f+=1)u.addShape(c[f])},TrimModifier.prototype.addSegment=function(c,u,f,d,h,v,p){h.setXYAt(u[0],u[1],"o",v),h.setXYAt(f[0],f[1],"i",v+1),p&&h.setXYAt(c[0],c[1],"v",v),h.setXYAt(d[0],d[1],"v",v+1)},TrimModifier.prototype.addSegmentFromArray=function(c,u,f,d){u.setXYAt(c[1],c[5],"o",f),u.setXYAt(c[2],c[6],"i",f+1),d&&u.setXYAt(c[0],c[4],"v",f),u.setXYAt(c[3],c[7],"v",f+1)},TrimModifier.prototype.addShapes=function(c,u,f){var d=c.pathsData,h=c.shape.paths.shapes,v,p=c.shape.paths._length,m,g,y=0,b,gn,x,vn,J=[],j,Fn=!0;for(f?(gn=f._length,j=f._length):(f=shapePool.newElement(),gn=0,j=0),J.push(f),v=0;v<p;v+=1){for(x=d[v].lengths,f.c=h[v].c,g=h[v].c?x.length:x.length+1,m=1;m<g;m+=1)if(b=x[m-1],y+b.addedLength<u.s)y+=b.addedLength,f.c=!1;else if(y>u.e){f.c=!1;break}else u.s<=y&&u.e>=y+b.addedLength?(this.addSegment(h[v].v[m-1],h[v].o[m-1],h[v].i[m],h[v].v[m],f,gn,Fn),Fn=!1):(vn=bez.getNewSegment(h[v].v[m-1],h[v].v[m],h[v].o[m-1],h[v].i[m],(u.s-y)/b.addedLength,(u.e-y)/b.addedLength,x[m-1]),this.addSegmentFromArray(vn,f,gn,Fn),Fn=!1,f.c=!1),y+=b.addedLength,gn+=1;if(h[v].c&&x.length){if(b=x[m-1],y<=u.e){var Bn=x[m-1].addedLength;u.s<=y&&u.e>=y+Bn?(this.addSegment(h[v].v[m-1],h[v].o[m-1],h[v].i[0],h[v].v[0],f,gn,Fn),Fn=!1):(vn=bez.getNewSegment(h[v].v[m-1],h[v].v[0],h[v].o[m-1],h[v].i[0],(u.s-y)/Bn,(u.e-y)/Bn,x[m-1]),this.addSegmentFromArray(vn,f,gn,Fn),Fn=!1,f.c=!1)}else f.c=!1;y+=b.addedLength,gn+=1}if(f._length&&(f.setXYAt(f.v[j][0],f.v[j][1],"i",j),f.setXYAt(f.v[f._length-1][0],f.v[f._length-1][1],"o",f._length-1)),y>u.e)break;v<p-1&&(f=shapePool.newElement(),Fn=!0,J.push(f),gn=0)}return J};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(c,u){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(c,u.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(c,u){var f=u/100,d=[0,0],h=c._length,v=0;for(v=0;v<h;v+=1)d[0]+=c.v[v][0],d[1]+=c.v[v][1];d[0]/=h,d[1]/=h;var p=shapePool.newElement();p.c=c.c;var m,g,y,b,gn,x;for(v=0;v<h;v+=1)m=c.v[v][0]+(d[0]-c.v[v][0])*f,g=c.v[v][1]+(d[1]-c.v[v][1])*f,y=c.o[v][0]+(d[0]-c.o[v][0])*-f,b=c.o[v][1]+(d[1]-c.o[v][1])*-f,gn=c.i[v][0]+(d[0]-c.i[v][0])*-f,x=c.i[v][1]+(d[1]-c.i[v][1])*-f,p.setTripleAt(m,g,y,b,gn,x,v);return p},PuckerAndBloatModifier.prototype.processShapes=function(c){var u,f,d=this.shapes.length,h,v,p=this.amount.v;if(p!==0){var m,g;for(f=0;f<d;f+=1){if(m=this.shapes[f],g=m.localShapeCollection,!(!m.shape._mdf&&!this._mdf&&!c))for(g.releaseShapes(),m.shape._mdf=!0,u=m.shape.paths.shapes,v=m.shape.paths._length,h=0;h<v;h+=1)g.addShape(this.processPath(u[h],p));m.shape.paths=m.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var c=[0,0];function u(g){var y=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||y,this.a&&g.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&g.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&g.skewFromAxis(-this.sk.v,this.sa.v),this.r?g.rotate(-this.r.v):g.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?g.translate(this.px.v,this.py.v,-this.pz.v):g.translate(this.px.v,this.py.v,0):g.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function f(g){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||g){var y;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var b,gn;if(y=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(b=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/y,0),gn=this.p.getValueAtTime(this.p.keyframes[0].t/y,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(b=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/y,0),gn=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/y,0)):(b=this.p.pv,gn=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/y,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){b=[],gn=[];var x=this.px,vn=this.py;x._caching.lastFrame+x.offsetTime<=x.keyframes[0].t?(b[0]=x.getValueAtTime((x.keyframes[0].t+.01)/y,0),b[1]=vn.getValueAtTime((vn.keyframes[0].t+.01)/y,0),gn[0]=x.getValueAtTime(x.keyframes[0].t/y,0),gn[1]=vn.getValueAtTime(vn.keyframes[0].t/y,0)):x._caching.lastFrame+x.offsetTime>=x.keyframes[x.keyframes.length-1].t?(b[0]=x.getValueAtTime(x.keyframes[x.keyframes.length-1].t/y,0),b[1]=vn.getValueAtTime(vn.keyframes[vn.keyframes.length-1].t/y,0),gn[0]=x.getValueAtTime((x.keyframes[x.keyframes.length-1].t-.01)/y,0),gn[1]=vn.getValueAtTime((vn.keyframes[vn.keyframes.length-1].t-.01)/y,0)):(b=[x.pv,vn.pv],gn[0]=x.getValueAtTime((x._caching.lastFrame+x.offsetTime-.01)/y,x.offsetTime),gn[1]=vn.getValueAtTime((vn._caching.lastFrame+vn.offsetTime-.01)/y,vn.offsetTime))}else gn=c,b=gn;this.v.rotate(-Math.atan2(b[1]-gn[1],b[0]-gn[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function d(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function h(){}function v(g){this._addDynamicProperty(g),this.elem.addDynamicProperty(g),this._isDirty=!0}function p(g,y,b){if(this.elem=g,this.frameId=-1,this.propType="transform",this.data=y,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(b||g),y.p&&y.p.s?(this.px=PropertyFactory.getProp(g,y.p.x,0,0,this),this.py=PropertyFactory.getProp(g,y.p.y,0,0,this),y.p.z&&(this.pz=PropertyFactory.getProp(g,y.p.z,0,0,this))):this.p=PropertyFactory.getProp(g,y.p||{k:[0,0,0]},1,0,this),y.rx){if(this.rx=PropertyFactory.getProp(g,y.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(g,y.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(g,y.rz,0,degToRads,this),y.or.k[0].ti){var gn,x=y.or.k.length;for(gn=0;gn<x;gn+=1)y.or.k[gn].to=null,y.or.k[gn].ti=null}this.or=PropertyFactory.getProp(g,y.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(g,y.r||{k:0},0,degToRads,this);y.sk&&(this.sk=PropertyFactory.getProp(g,y.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(g,y.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(g,y.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(g,y.s||{k:[100,100,100]},1,.01,this),y.o?this.o=PropertyFactory.getProp(g,y.o,0,.01,g):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}p.prototype={applyToMatrix:u,getValue:f,precalculateMatrix:d,autoOrient:h},extendPrototype([DynamicPropertyContainer],p),p.prototype.addDynamicProperty=v,p.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function m(g,y,b){return new p(g,y,b)}return{getTransformProperty:m}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(c,u){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(c,u.c,0,null,this),this.o=PropertyFactory.getProp(c,u.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(c,u.tr,this),this.so=PropertyFactory.getProp(c,u.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(c,u.tr.eo,0,.01,this),this.data=u,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(c,u,f,d,h,v){var p=v?-1:1,m=d.s.v[0]+(1-d.s.v[0])*(1-h),g=d.s.v[1]+(1-d.s.v[1])*(1-h);c.translate(d.p.v[0]*p*h,d.p.v[1]*p*h,d.p.v[2]),u.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),u.rotate(-d.r.v*p*h),u.translate(d.a.v[0],d.a.v[1],d.a.v[2]),f.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),f.scale(v?1/m:m,v?1/g:g),f.translate(d.a.v[0],d.a.v[1],d.a.v[2])},RepeaterModifier.prototype.init=function(c,u,f,d){for(this.elem=c,this.arr=u,this.pos=f,this.elemsData=d,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(c),this.initModifierProperties(c,u[f]);f>0;)f-=1,this._elements.unshift(u[f]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(c){var u,f=c.length;for(u=0;u<f;u+=1)c[u]._processed=!1,c[u].ty==="gr"&&this.resetElements(c[u].it)},RepeaterModifier.prototype.cloneElements=function(c){var u=JSON.parse(JSON.stringify(c));return this.resetElements(u),u},RepeaterModifier.prototype.changeGroupRender=function(c,u){var f,d=c.length;for(f=0;f<d;f+=1)c[f]._render=u,c[f].ty==="gr"&&this.changeGroupRender(c[f].it,u)},RepeaterModifier.prototype.processShapes=function(c){var u,f,d,h,v,p=!1;if(this._mdf||c){var m=Math.ceil(this.c.v);if(this._groups.length<m){for(;this._groups.length<m;){var g={it:this.cloneElements(this._elements),ty:"gr"};g.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,g),this._groups.splice(0,0,g),this._currentCopies+=1}this.elem.reloadShapes(),p=!0}v=0;var y;for(d=0;d<=this._groups.length-1;d+=1){if(y=v<m,this._groups[d]._render=y,this.changeGroupRender(this._groups[d].it,y),!y){var b=this.elemsData[d].it,gn=b[b.length-1];gn.transform.op.v!==0?(gn.transform.op._mdf=!0,gn.transform.op.v=0):gn.transform.op._mdf=!1}v+=1}this._currentCopies=m;var x=this.o.v,vn=x%1,J=x>0?Math.floor(x):Math.ceil(x),j=this.pMatrix.props,Fn=this.rMatrix.props,Bn=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var w=0;if(x>0){for(;w<J;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),w+=1;vn&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,vn,!1),w+=vn)}else if(x<0){for(;w>J;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),w-=1;vn&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-vn,!0),w-=vn)}d=this.data.m===1?0:this._currentCopies-1,h=this.data.m===1?1:-1,v=this._currentCopies;for(var re,Pn;v;){if(u=this.elemsData[d].it,f=u[u.length-1].transform.mProps.v.props,Pn=f.length,u[u.length-1].transform.mProps._mdf=!0,u[u.length-1].transform.op._mdf=!0,u[u.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(d/(this._currentCopies-1)),w!==0){for((d!==0&&h===1||d!==this._currentCopies-1&&h===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(Fn[0],Fn[1],Fn[2],Fn[3],Fn[4],Fn[5],Fn[6],Fn[7],Fn[8],Fn[9],Fn[10],Fn[11],Fn[12],Fn[13],Fn[14],Fn[15]),this.matrix.transform(Bn[0],Bn[1],Bn[2],Bn[3],Bn[4],Bn[5],Bn[6],Bn[7],Bn[8],Bn[9],Bn[10],Bn[11],Bn[12],Bn[13],Bn[14],Bn[15]),this.matrix.transform(j[0],j[1],j[2],j[3],j[4],j[5],j[6],j[7],j[8],j[9],j[10],j[11],j[12],j[13],j[14],j[15]),re=0;re<Pn;re+=1)f[re]=this.matrix.props[re];this.matrix.reset()}else for(this.matrix.reset(),re=0;re<Pn;re+=1)f[re]=this.matrix.props[re];w+=1,v-=1,d+=h}}else for(v=this._currentCopies,d=0,h=1;v;)u=this.elemsData[d].it,f=u[u.length-1].transform.mProps.v.props,u[u.length-1].transform.mProps._mdf=!1,u[u.length-1].transform.op._mdf=!1,v-=1,d+=h;return p},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(c,u){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(c,u.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(c,u){var f=shapePool.newElement();f.c=c.c;var d,h=c._length,v,p,m,g,y,b,gn=0,x,vn,J,j,Fn,Bn;for(d=0;d<h;d+=1)v=c.v[d],m=c.o[d],p=c.i[d],v[0]===m[0]&&v[1]===m[1]&&v[0]===p[0]&&v[1]===p[1]?(d===0||d===h-1)&&!c.c?(f.setTripleAt(v[0],v[1],m[0],m[1],p[0],p[1],gn),gn+=1):(d===0?g=c.v[h-1]:g=c.v[d-1],y=Math.sqrt(Math.pow(v[0]-g[0],2)+Math.pow(v[1]-g[1],2)),b=y?Math.min(y/2,u)/y:0,Fn=v[0]+(g[0]-v[0])*b,x=Fn,Bn=v[1]-(v[1]-g[1])*b,vn=Bn,J=x-(x-v[0])*roundCorner,j=vn-(vn-v[1])*roundCorner,f.setTripleAt(x,vn,J,j,Fn,Bn,gn),gn+=1,d===h-1?g=c.v[0]:g=c.v[d+1],y=Math.sqrt(Math.pow(v[0]-g[0],2)+Math.pow(v[1]-g[1],2)),b=y?Math.min(y/2,u)/y:0,J=v[0]+(g[0]-v[0])*b,x=J,j=v[1]+(g[1]-v[1])*b,vn=j,Fn=x-(x-v[0])*roundCorner,Bn=vn-(vn-v[1])*roundCorner,f.setTripleAt(x,vn,J,j,Fn,Bn,gn),gn+=1):(f.setTripleAt(c.v[d][0],c.v[d][1],c.o[d][0],c.o[d][1],c.i[d][0],c.i[d][1],gn),gn+=1);return f},RoundCornersModifier.prototype.processShapes=function(c){var u,f,d=this.shapes.length,h,v,p=this.rd.v;if(p!==0){var m,g;for(f=0;f<d;f+=1){if(m=this.shapes[f],g=m.localShapeCollection,!(!m.shape._mdf&&!this._mdf&&!c))for(g.releaseShapes(),m.shape._mdf=!0,u=m.shape.paths.shapes,v=m.shape.paths._length,h=0;h<v;h+=1)g.addShape(this.processPath(u[h],p));m.shape.paths=m.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(c,u){return Math.abs(c-u)*1e5<=Math.min(Math.abs(c),Math.abs(u))}function floatZero(c){return Math.abs(c)<=1e-5}function lerp(c,u,f){return c*(1-f)+u*f}function lerpPoint(c,u,f){return[lerp(c[0],u[0],f),lerp(c[1],u[1],f)]}function quadRoots(c,u,f){if(c===0)return[];var d=u*u-4*c*f;if(d<0)return[];var h=-u/(2*c);if(d===0)return[h];var v=Math.sqrt(d)/(2*c);return[h-v,h+v]}function polynomialCoefficients(c,u,f,d){return[-c+3*u-3*f+d,3*c-6*u+3*f,-3*c+3*u,c]}function singlePoint(c){return new PolynomialBezier(c,c,c,c,!1)}function PolynomialBezier(c,u,f,d,h){h&&pointEqual(c,u)&&(u=lerpPoint(c,d,1/3)),h&&pointEqual(f,d)&&(f=lerpPoint(c,d,2/3));var v=polynomialCoefficients(c[0],u[0],f[0],d[0]),p=polynomialCoefficients(c[1],u[1],f[1],d[1]);this.a=[v[0],p[0]],this.b=[v[1],p[1]],this.c=[v[2],p[2]],this.d=[v[3],p[3]],this.points=[c,u,f,d]}PolynomialBezier.prototype.point=function(c){return[((this.a[0]*c+this.b[0])*c+this.c[0])*c+this.d[0],((this.a[1]*c+this.b[1])*c+this.c[1])*c+this.d[1]]},PolynomialBezier.prototype.derivative=function(c){return[(3*c*this.a[0]+2*this.b[0])*c+this.c[0],(3*c*this.a[1]+2*this.b[1])*c+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(c){var u=this.derivative(c);return Math.atan2(u[1],u[0])},PolynomialBezier.prototype.normalAngle=function(c){var u=this.derivative(c);return Math.atan2(u[0],u[1])},PolynomialBezier.prototype.inflectionPoints=function(){var c=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(c))return[];var u=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/c,f=u*u-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/c;if(f<0)return[];var d=Math.sqrt(f);return floatZero(d)?d>0&&d<1?[u]:[]:[u-d,u+d].filter(function(h){return h>0&&h<1})},PolynomialBezier.prototype.split=function(c){if(c<=0)return[singlePoint(this.points[0]),this];if(c>=1)return[this,singlePoint(this.points[this.points.length-1])];var u=lerpPoint(this.points[0],this.points[1],c),f=lerpPoint(this.points[1],this.points[2],c),d=lerpPoint(this.points[2],this.points[3],c),h=lerpPoint(u,f,c),v=lerpPoint(f,d,c),p=lerpPoint(h,v,c);return[new PolynomialBezier(this.points[0],u,h,p,!0),new PolynomialBezier(p,v,d,this.points[3],!0)]};function extrema(c,u){var f=c.points[0][u],d=c.points[c.points.length-1][u];if(f>d){var h=d;d=f,f=h}for(var v=quadRoots(3*c.a[u],2*c.b[u],c.c[u]),p=0;p<v.length;p+=1)if(v[p]>0&&v[p]<1){var m=c.point(v[p])[u];m<f?f=m:m>d&&(d=m)}return{min:f,max:d}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var c=this.bounds();return{left:c.x.min,right:c.x.max,top:c.y.min,bottom:c.y.max,width:c.x.max-c.x.min,height:c.y.max-c.y.min,cx:(c.x.max+c.x.min)/2,cy:(c.y.max+c.y.min)/2}};function intersectData(c,u,f){var d=c.boundingBox();return{cx:d.cx,cy:d.cy,width:d.width,height:d.height,bez:c,t:(u+f)/2,t1:u,t2:f}}function splitData(c){var u=c.bez.split(.5);return[intersectData(u[0],c.t1,c.t),intersectData(u[1],c.t,c.t2)]}function boxIntersect(c,u){return Math.abs(c.cx-u.cx)*2<c.width+u.width&&Math.abs(c.cy-u.cy)*2<c.height+u.height}function intersectsImpl(c,u,f,d,h,v){if(boxIntersect(c,u)){if(f>=v||c.width<=d&&c.height<=d&&u.width<=d&&u.height<=d){h.push([c.t,u.t]);return}var p=splitData(c),m=splitData(u);intersectsImpl(p[0],m[0],f+1,d,h,v),intersectsImpl(p[0],m[1],f+1,d,h,v),intersectsImpl(p[1],m[0],f+1,d,h,v),intersectsImpl(p[1],m[1],f+1,d,h,v)}}PolynomialBezier.prototype.intersections=function(c,u,f){u===void 0&&(u=2),f===void 0&&(f=7);var d=[];return intersectsImpl(intersectData(this,0,1),intersectData(c,0,1),0,u,d,f),d},PolynomialBezier.shapeSegment=function(c,u){var f=(u+1)%c.length();return new PolynomialBezier(c.v[u],c.o[u],c.i[f],c.v[f],!0)},PolynomialBezier.shapeSegmentInverted=function(c,u){var f=(u+1)%c.length();return new PolynomialBezier(c.v[f],c.i[f],c.o[u],c.v[u],!0)};function crossProduct(c,u){return[c[1]*u[2]-c[2]*u[1],c[2]*u[0]-c[0]*u[2],c[0]*u[1]-c[1]*u[0]]}function lineIntersection(c,u,f,d){var h=[c[0],c[1],1],v=[u[0],u[1],1],p=[f[0],f[1],1],m=[d[0],d[1],1],g=crossProduct(crossProduct(h,v),crossProduct(p,m));return floatZero(g[2])?null:[g[0]/g[2],g[1]/g[2]]}function polarOffset(c,u,f){return[c[0]+Math.cos(u)*f,c[1]-Math.sin(u)*f]}function pointDistance(c,u){return Math.hypot(c[0]-u[0],c[1]-u[1])}function pointEqual(c,u){return floatEqual(c[0],u[0])&&floatEqual(c[1],u[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(c,u){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(c,u.s,0,null,this),this.frequency=PropertyFactory.getProp(c,u.r,0,null,this),this.pointsType=PropertyFactory.getProp(c,u.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(c,u,f,d,h,v,p){var m=f-Math.PI/2,g=f+Math.PI/2,y=u[0]+Math.cos(f)*d*h,b=u[1]-Math.sin(f)*d*h;c.setTripleAt(y,b,y+Math.cos(m)*v,b-Math.sin(m)*v,y+Math.cos(g)*p,b-Math.sin(g)*p,c.length())}function getPerpendicularVector(c,u){var f=[u[0]-c[0],u[1]-c[1]],d=-Math.PI*.5,h=[Math.cos(d)*f[0]-Math.sin(d)*f[1],Math.sin(d)*f[0]+Math.cos(d)*f[1]];return h}function getProjectingAngle(c,u){var f=u===0?c.length()-1:u-1,d=(u+1)%c.length(),h=c.v[f],v=c.v[d],p=getPerpendicularVector(h,v);return Math.atan2(0,1)-Math.atan2(p[1],p[0])}function zigZagCorner(c,u,f,d,h,v,p){var m=getProjectingAngle(u,f),g=u.v[f%u._length],y=u.v[f===0?u._length-1:f-1],b=u.v[(f+1)%u._length],gn=v===2?Math.sqrt(Math.pow(g[0]-y[0],2)+Math.pow(g[1]-y[1],2)):0,x=v===2?Math.sqrt(Math.pow(g[0]-b[0],2)+Math.pow(g[1]-b[1],2)):0;setPoint(c,u.v[f%u._length],m,p,d,x/((h+1)*2),gn/((h+1)*2))}function zigZagSegment(c,u,f,d,h,v){for(var p=0;p<d;p+=1){var m=(p+1)/(d+1),g=h===2?Math.sqrt(Math.pow(u.points[3][0]-u.points[0][0],2)+Math.pow(u.points[3][1]-u.points[0][1],2)):0,y=u.normalAngle(m),b=u.point(m);setPoint(c,b,y,v,f,g/((d+1)*2),g/((d+1)*2)),v=-v}return v}ZigZagModifier.prototype.processPath=function(c,u,f,d){var h=c._length,v=shapePool.newElement();if(v.c=c.c,c.c||(h-=1),h===0)return v;var p=-1,m=PolynomialBezier.shapeSegment(c,0);zigZagCorner(v,c,0,u,f,d,p);for(var g=0;g<h;g+=1)p=zigZagSegment(v,m,u,f,d,-p),g===h-1&&!c.c?m=null:m=PolynomialBezier.shapeSegment(c,(g+1)%h),zigZagCorner(v,c,g+1,u,f,d,p);return v},ZigZagModifier.prototype.processShapes=function(c){var u,f,d=this.shapes.length,h,v,p=this.amplitude.v,m=Math.max(0,Math.round(this.frequency.v)),g=this.pointsType.v;if(p!==0){var y,b;for(f=0;f<d;f+=1){if(y=this.shapes[f],b=y.localShapeCollection,!(!y.shape._mdf&&!this._mdf&&!c))for(b.releaseShapes(),y.shape._mdf=!0,u=y.shape.paths.shapes,v=y.shape.paths._length,h=0;h<v;h+=1)b.addShape(this.processPath(u[h],p,m,g));y.shape.paths=y.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(c,u,f){var d=Math.atan2(u[0]-c[0],u[1]-c[1]);return[polarOffset(c,d,f),polarOffset(u,d,f)]}function offsetSegment(c,u){var f,d,h,v,p,m,g;g=linearOffset(c.points[0],c.points[1],u),f=g[0],d=g[1],g=linearOffset(c.points[1],c.points[2],u),h=g[0],v=g[1],g=linearOffset(c.points[2],c.points[3],u),p=g[0],m=g[1];var y=lineIntersection(f,d,h,v);y===null&&(y=d);var b=lineIntersection(p,m,h,v);return b===null&&(b=p),new PolynomialBezier(f,y,b,m)}function joinLines(c,u,f,d,h){var v=u.points[3],p=f.points[0];if(d===3||pointEqual(v,p))return v;if(d===2){var m=-u.tangentAngle(1),g=-f.tangentAngle(0)+Math.PI,y=lineIntersection(v,polarOffset(v,m+Math.PI/2,100),p,polarOffset(p,m+Math.PI/2,100)),b=y?pointDistance(y,v):pointDistance(v,p)/2,gn=polarOffset(v,m,2*b*roundCorner);return c.setXYAt(gn[0],gn[1],"o",c.length()-1),gn=polarOffset(p,g,2*b*roundCorner),c.setTripleAt(p[0],p[1],p[0],p[1],gn[0],gn[1],c.length()),p}var x=pointEqual(v,u.points[2])?u.points[0]:u.points[2],vn=pointEqual(p,f.points[1])?f.points[3]:f.points[1],J=lineIntersection(x,v,p,vn);return J&&pointDistance(J,v)<h?(c.setTripleAt(J[0],J[1],J[0],J[1],J[0],J[1],c.length()),J):v}function getIntersection(c,u){var f=c.intersections(u);return f.length&&floatEqual(f[0][0],1)&&f.shift(),f.length?f[0]:null}function pruneSegmentIntersection(c,u){var f=c.slice(),d=u.slice(),h=getIntersection(c[c.length-1],u[0]);return h&&(f[c.length-1]=c[c.length-1].split(h[0])[0],d[0]=u[0].split(h[1])[1]),c.length>1&&u.length>1&&(h=getIntersection(c[0],u[u.length-1]),h)?[[c[0].split(h[0])[0]],[u[u.length-1].split(h[1])[1]]]:[f,d]}function pruneIntersections(c){for(var u,f=1;f<c.length;f+=1)u=pruneSegmentIntersection(c[f-1],c[f]),c[f-1]=u[0],c[f]=u[1];return c.length>1&&(u=pruneSegmentIntersection(c[c.length-1],c[0]),c[c.length-1]=u[0],c[0]=u[1]),c}function offsetSegmentSplit(c,u){var f=c.inflectionPoints(),d,h,v,p;if(f.length===0)return[offsetSegment(c,u)];if(f.length===1||floatEqual(f[1],1))return v=c.split(f[0]),d=v[0],h=v[1],[offsetSegment(d,u),offsetSegment(h,u)];v=c.split(f[0]),d=v[0];var m=(f[1]-f[0])/(1-f[0]);return v=v[1].split(m),p=v[0],h=v[1],[offsetSegment(d,u),offsetSegment(p,u),offsetSegment(h,u)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(c,u){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(c,u.a,0,null,this),this.miterLimit=PropertyFactory.getProp(c,u.ml,0,null,this),this.lineJoin=u.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(c,u,f,d){var h=shapePool.newElement();h.c=c.c;var v=c.length();c.c||(v-=1);var p,m,g,y=[];for(p=0;p<v;p+=1)g=PolynomialBezier.shapeSegment(c,p),y.push(offsetSegmentSplit(g,u));if(!c.c)for(p=v-1;p>=0;p-=1)g=PolynomialBezier.shapeSegmentInverted(c,p),y.push(offsetSegmentSplit(g,u));y=pruneIntersections(y);var b=null,gn=null;for(p=0;p<y.length;p+=1){var x=y[p];for(gn&&(b=joinLines(h,gn,x[0],f,d)),gn=x[x.length-1],m=0;m<x.length;m+=1)g=x[m],b&&pointEqual(g.points[0],b)?h.setXYAt(g.points[1][0],g.points[1][1],"o",h.length()-1):h.setTripleAt(g.points[0][0],g.points[0][1],g.points[1][0],g.points[1][1],g.points[0][0],g.points[0][1],h.length()),h.setTripleAt(g.points[3][0],g.points[3][1],g.points[3][0],g.points[3][1],g.points[2][0],g.points[2][1],h.length()),b=g.points[3]}return y.length&&joinLines(h,gn,y[0][0],f,d),h},OffsetPathModifier.prototype.processShapes=function(c){var u,f,d=this.shapes.length,h,v,p=this.amount.v,m=this.miterLimit.v,g=this.lineJoin;if(p!==0){var y,b;for(f=0;f<d;f+=1){if(y=this.shapes[f],b=y.localShapeCollection,!(!y.shape._mdf&&!this._mdf&&!c))for(b.releaseShapes(),y.shape._mdf=!0,u=y.shape.paths.shapes,v=y.shape.paths._length,h=0;h<v;h+=1)b.addShape(this.processPath(u[h],p,g,m));y.shape.paths=y.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(c){for(var u=c.fStyle?c.fStyle.split(" "):[],f="normal",d="normal",h=u.length,v,p=0;p<h;p+=1)switch(v=u[p].toLowerCase(),v){case"italic":d="italic";break;case"bold":f="700";break;case"black":f="900";break;case"medium":f="500";break;case"regular":case"normal":f="400";break;case"light":case"thin":f="200";break}return{style:d,weight:c.fWeight||f}}var FontManager=function(){var c=5e3,u={w:0,size:0,shapes:[],data:{shapes:[]}},f=[];f=f.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var d=127988,h=917631,v=917601,p=917626,m=65039,g=8205,y=127462,b=127487,gn=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function x(Hn){var Kn=Hn.split(","),zn,qn=Kn.length,tr=[];for(zn=0;zn<qn;zn+=1)Kn[zn]!=="sans-serif"&&Kn[zn]!=="monospace"&&tr.push(Kn[zn]);return tr.join(",")}function vn(Hn,Kn){var zn=createTag("span");zn.setAttribute("aria-hidden",!0),zn.style.fontFamily=Kn;var qn=createTag("span");qn.innerText="giItT1WQy@!-/#",zn.style.position="absolute",zn.style.left="-10000px",zn.style.top="-10000px",zn.style.fontSize="300px",zn.style.fontVariant="normal",zn.style.fontStyle="normal",zn.style.fontWeight="normal",zn.style.letterSpacing="0",zn.appendChild(qn),document.body.appendChild(zn);var tr=qn.offsetWidth;return qn.style.fontFamily=x(Hn)+", "+Kn,{node:qn,w:tr,parent:zn}}function J(){var Hn,Kn=this.fonts.length,zn,qn,tr=Kn;for(Hn=0;Hn<Kn;Hn+=1)this.fonts[Hn].loaded?tr-=1:this.fonts[Hn].fOrigin==="n"||this.fonts[Hn].origin===0?this.fonts[Hn].loaded=!0:(zn=this.fonts[Hn].monoCase.node,qn=this.fonts[Hn].monoCase.w,zn.offsetWidth!==qn?(tr-=1,this.fonts[Hn].loaded=!0):(zn=this.fonts[Hn].sansCase.node,qn=this.fonts[Hn].sansCase.w,zn.offsetWidth!==qn&&(tr-=1,this.fonts[Hn].loaded=!0)),this.fonts[Hn].loaded&&(this.fonts[Hn].sansCase.parent.parentNode.removeChild(this.fonts[Hn].sansCase.parent),this.fonts[Hn].monoCase.parent.parentNode.removeChild(this.fonts[Hn].monoCase.parent)));tr!==0&&Date.now()-this.initTime<c?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function j(Hn,Kn){var zn=document.body&&Kn?"svg":"canvas",qn,tr=getFontProperties(Hn);if(zn==="svg"){var Un=createNS("text");Un.style.fontSize="100px",Un.setAttribute("font-family",Hn.fFamily),Un.setAttribute("font-style",tr.style),Un.setAttribute("font-weight",tr.weight),Un.textContent="1",Hn.fClass?(Un.style.fontFamily="inherit",Un.setAttribute("class",Hn.fClass)):Un.style.fontFamily=Hn.fFamily,Kn.appendChild(Un),qn=Un}else{var nr=new OffscreenCanvas(500,500).getContext("2d");nr.font=tr.style+" "+tr.weight+" 100px "+Hn.fFamily,qn=nr}function cr(Qn){return zn==="svg"?(qn.textContent=Qn,qn.getComputedTextLength()):qn.measureText(Qn).width}return{measureText:cr}}function Fn(Hn,Kn){if(!Hn){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=Hn.list;return}if(!document.body){this.isLoaded=!0,Hn.list.forEach(function(ar){ar.helper=j(ar),ar.cache={}}),this.fonts=Hn.list;return}var zn=Hn.list,qn,tr=zn.length,Un=tr;for(qn=0;qn<tr;qn+=1){var nr=!0,cr,Qn;if(zn[qn].loaded=!1,zn[qn].monoCase=vn(zn[qn].fFamily,"monospace"),zn[qn].sansCase=vn(zn[qn].fFamily,"sans-serif"),!zn[qn].fPath)zn[qn].loaded=!0,Un-=1;else if(zn[qn].fOrigin==="p"||zn[qn].origin===3){if(cr=document.querySelectorAll('style[f-forigin="p"][f-family="'+zn[qn].fFamily+'"], style[f-origin="3"][f-family="'+zn[qn].fFamily+'"]'),cr.length>0&&(nr=!1),nr){var fr=createTag("style");fr.setAttribute("f-forigin",zn[qn].fOrigin),fr.setAttribute("f-origin",zn[qn].origin),fr.setAttribute("f-family",zn[qn].fFamily),fr.type="text/css",fr.innerText="@font-face {font-family: "+zn[qn].fFamily+"; font-style: normal; src: url('"+zn[qn].fPath+"');}",Kn.appendChild(fr)}}else if(zn[qn].fOrigin==="g"||zn[qn].origin===1){for(cr=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Qn=0;Qn<cr.length;Qn+=1)cr[Qn].href.indexOf(zn[qn].fPath)!==-1&&(nr=!1);if(nr){var vr=createTag("link");vr.setAttribute("f-forigin",zn[qn].fOrigin),vr.setAttribute("f-origin",zn[qn].origin),vr.type="text/css",vr.rel="stylesheet",vr.href=zn[qn].fPath,document.body.appendChild(vr)}}else if(zn[qn].fOrigin==="t"||zn[qn].origin===2){for(cr=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Qn=0;Qn<cr.length;Qn+=1)zn[qn].fPath===cr[Qn].src&&(nr=!1);if(nr){var Yn=createTag("link");Yn.setAttribute("f-forigin",zn[qn].fOrigin),Yn.setAttribute("f-origin",zn[qn].origin),Yn.setAttribute("rel","stylesheet"),Yn.setAttribute("href",zn[qn].fPath),Kn.appendChild(Yn)}}zn[qn].helper=j(zn[qn],Kn),zn[qn].cache={},this.fonts.push(zn[qn])}Un===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function Bn(Hn){if(Hn){this.chars||(this.chars=[]);var Kn,zn=Hn.length,qn,tr=this.chars.length,Un;for(Kn=0;Kn<zn;Kn+=1){for(qn=0,Un=!1;qn<tr;)this.chars[qn].style===Hn[Kn].style&&this.chars[qn].fFamily===Hn[Kn].fFamily&&this.chars[qn].ch===Hn[Kn].ch&&(Un=!0),qn+=1;Un||(this.chars.push(Hn[Kn]),tr+=1)}}}function w(Hn,Kn,zn){for(var qn=0,tr=this.chars.length;qn<tr;){if(this.chars[qn].ch===Hn&&this.chars[qn].style===Kn&&this.chars[qn].fFamily===zn)return this.chars[qn];qn+=1}return(typeof Hn=="string"&&Hn.charCodeAt(0)!==13||!Hn)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",Hn,Kn,zn)),u}function re(Hn,Kn,zn){var qn=this.getFontByName(Kn),tr=Hn;if(!qn.cache[tr]){var Un=qn.helper;if(Hn===" "){var nr=Un.measureText("|"+Hn+"|"),cr=Un.measureText("||");qn.cache[tr]=(nr-cr)/100}else qn.cache[tr]=Un.measureText(Hn)/100}return qn.cache[tr]*zn}function Pn(Hn){for(var Kn=0,zn=this.fonts.length;Kn<zn;){if(this.fonts[Kn].fName===Hn)return this.fonts[Kn];Kn+=1}return this.fonts[0]}function Rn(Hn){var Kn=0,zn=Hn.charCodeAt(0);if(zn>=55296&&zn<=56319){var qn=Hn.charCodeAt(1);qn>=56320&&qn<=57343&&(Kn=(zn-55296)*1024+qn-56320+65536)}return Kn}function Vn(Hn,Kn){var zn=Hn.toString(16)+Kn.toString(16);return gn.indexOf(zn)!==-1}function Wn(Hn){return Hn===g}function Gn(Hn){return Hn===m}function Zn(Hn){var Kn=Rn(Hn);return Kn>=y&&Kn<=b}function Xn(Hn){return Zn(Hn.substr(0,2))&&Zn(Hn.substr(2,2))}function er(Hn){return f.indexOf(Hn)!==-1}function Jn(Hn,Kn){var zn=Rn(Hn.substr(Kn,2));if(zn!==d)return!1;var qn=0;for(Kn+=2;qn<5;){if(zn=Rn(Hn.substr(Kn,2)),zn<v||zn>p)return!1;qn+=1,Kn+=2}return Rn(Hn.substr(Kn,2))===h}function ir(){this.isLoaded=!0}var or=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};or.isModifier=Vn,or.isZeroWidthJoiner=Wn,or.isFlagEmoji=Xn,or.isRegionalCode=Zn,or.isCombinedCharacter=er,or.isRegionalFlag=Jn,or.isVariationSelector=Gn,or.BLACK_FLAG_CODE_POINT=d;var sr={addChars:Bn,addFonts:Fn,getCharData:w,getFontByName:Pn,measureText:re,checkLoadedFonts:J,setIsLoaded:ir};return or.prototype=sr,or}();function SlotManager(c){this.animationData=c}SlotManager.prototype.getProp=function(c){return this.animationData.slots&&this.animationData.slots[c.sid]?Object.assign(c,this.animationData.slots[c.sid].p):c};function slotFactory(c){return new SlotManager(c)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(u){this.renderableComponents.indexOf(u)===-1&&this.renderableComponents.push(u)},removeRenderableComponent:function(u){this.renderableComponents.indexOf(u)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(u),1)},prepareRenderableFrame:function(u){this.checkLayerLimits(u)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(u){this.data.ip-this.data.st<=u&&this.data.op-this.data.st>u?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var u,f=this.renderableComponents.length;for(u=0;u<f;u+=1)this.renderableComponents[u].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=function(){var c={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(u){return c[u]||""}}();function SliderEffect(c,u,f){this.p=PropertyFactory.getProp(u,c.v,0,0,f)}function AngleEffect(c,u,f){this.p=PropertyFactory.getProp(u,c.v,0,0,f)}function ColorEffect(c,u,f){this.p=PropertyFactory.getProp(u,c.v,1,0,f)}function PointEffect(c,u,f){this.p=PropertyFactory.getProp(u,c.v,1,0,f)}function LayerIndexEffect(c,u,f){this.p=PropertyFactory.getProp(u,c.v,0,0,f)}function MaskIndexEffect(c,u,f){this.p=PropertyFactory.getProp(u,c.v,0,0,f)}function CheckboxEffect(c,u,f){this.p=PropertyFactory.getProp(u,c.v,0,0,f)}function NoValueEffect(){this.p={}}function EffectsManager(c,u){var f=c.ef||[];this.effectElements=[];var d,h=f.length,v;for(d=0;d<h;d+=1)v=new GroupEffect(f[d],u),this.effectElements.push(v)}function GroupEffect(c,u){this.init(c,u)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(c,u){this.data=c,this.effectElements=[],this.initDynamicPropertyContainer(u);var f,d=this.data.ef.length,h,v=this.data.ef;for(f=0;f<d;f+=1){switch(h=null,v[f].ty){case 0:h=new SliderEffect(v[f],u,this);break;case 1:h=new AngleEffect(v[f],u,this);break;case 2:h=new ColorEffect(v[f],u,this);break;case 3:h=new PointEffect(v[f],u,this);break;case 4:case 7:h=new CheckboxEffect(v[f],u,this);break;case 10:h=new LayerIndexEffect(v[f],u,this);break;case 11:h=new MaskIndexEffect(v[f],u,this);break;case 5:h=new EffectsManager(v[f],u);break;default:h=new NoValueEffect(v[f]);break}h&&this.effectElements.push(h)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var u=0,f=this.data.masksProperties.length;u<f;){if(this.data.masksProperties[u].mode!=="n"&&this.data.masksProperties[u].cl!==!1)return!0;u+=1}return!1},initExpressions:function(){var u=getExpressionInterfaces();if(u){var f=u("layer"),d=u("effects"),h=u("shape"),v=u("text"),p=u("comp");this.layerInterface=f(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var m=d.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(m),this.data.ty===0||this.data.xt?this.compInterface=p(this):this.data.ty===4?(this.layerInterface.shapeInterface=h(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=v(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var u=getBlendMode(this.data.bm),f=this.baseElement||this.layerElement;f.style["mix-blend-mode"]=u},initBaseData:function(u,f,d){this.globalData=f,this.comp=d,this.data=u,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function FrameElement(){}FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(u,f){var d,h=this.dynamicProperties.length;for(d=0;d<h;d+=1)(f||this._isParent&&this.dynamicProperties[d].propType==="transform")&&(this.dynamicProperties[d].getValue(),this.dynamicProperties[d]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(u){this.dynamicProperties.indexOf(u)===-1&&this.dynamicProperties.push(u)}};function FootageElement(c,u,f){this.initFrame(),this.initRenderable(),this.assetData=u.getAssetData(c.refId),this.footageData=u.imageLoader.getAsset(this.assetData),this.initBaseData(c,u,f)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var c=getExpressionInterfaces();if(c){var u=c("footage");this.layerInterface=u(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(c,u,f){this.initFrame(),this.initRenderable(),this.assetData=u.getAssetData(c.refId),this.initBaseData(c,u,f),this._isPlaying=!1,this._canPlay=!1;var d=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(d),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=c.tm?PropertyFactory.getProp(this,c.tm,0,u.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,c.au&&c.au.lv?c.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(c){if(this.prepareRenderableFrame(c,!0),this.prepareProperties(c,!0),this.tm._placeholder)this._currentTime=c/this.data.sr;else{var u=this.tm.v;this._currentTime=u}this._volume=this.lv.v[0];var f=this._volume*this._volumeMultiplier;this._previousVolume!==f&&(this._previousVolume=f,this.audio.volume(f))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(c){this.audio.rate(c)},AudioElement.prototype.volume=function(c){this._volumeMultiplier=c,this._previousVolume=c*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(c){var u,f=this.layers.length,d;for(this.completeLayers=!0,u=f-1;u>=0;u-=1)this.elements[u]||(d=this.layers[u],d.ip-d.st<=c-this.layers[u].st&&d.op-d.st>c-this.layers[u].st&&this.buildItem(u)),this.completeLayers=this.elements[u]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(c){switch(c.ty){case 2:return this.createImage(c);case 0:return this.createComp(c);case 1:return this.createSolid(c);case 3:return this.createNull(c);case 4:return this.createShape(c);case 5:return this.createText(c);case 6:return this.createAudio(c);case 13:return this.createCamera(c);case 15:return this.createFootage(c);default:return this.createNull(c)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(c){return new AudioElement(c,this.globalData,this)},BaseRenderer.prototype.createFootage=function(c){return new FootageElement(c,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var c,u=this.layers.length;for(c=0;c<u;c+=1)this.buildItem(c);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(c){this.completeLayers=!1;var u,f=c.length,d,h=this.layers.length;for(u=0;u<f;u+=1)for(d=0;d<h;){if(this.layers[d].id===c[u].id){this.layers[d]=c[u];break}d+=1}},BaseRenderer.prototype.setProjectInterface=function(c){this.globalData.projectInterface=c},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(c,u,f){for(var d=this.elements,h=this.layers,v=0,p=h.length;v<p;)h[v].ind==u&&(!d[v]||d[v]===!0?(this.buildItem(v),this.addPendingElement(c)):(f.push(d[v]),d[v].setAsParent(),h[v].parent!==void 0?this.buildElementParenting(c,h[v].parent,f):c.setHierarchy(f))),v+=1},BaseRenderer.prototype.addPendingElement=function(c){this.pendingElements.push(c)},BaseRenderer.prototype.searchExtraCompositions=function(c){var u,f=c.length;for(u=0;u<f;u+=1)if(c[u].xt){var d=this.createComp(c[u]);d.initExpressions(),this.globalData.projectInterface.registerComposition(d)}},BaseRenderer.prototype.getElementById=function(c){var u,f=this.elements.length;for(u=0;u<f;u+=1)if(this.elements[u].data.ind===c)return this.elements[u];return null},BaseRenderer.prototype.getElementByPath=function(c){var u=c.shift(),f;if(typeof u=="number")f=this.elements[u];else{var d,h=this.elements.length;for(d=0;d<h;d+=1)if(this.elements[d].data.nm===u){f=this.elements[d];break}}return c.length===0?f:f.getElementByPath(c)},BaseRenderer.prototype.setupGlobalData=function(c,u){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(c),this.globalData.fontManager.addChars(c.chars),this.globalData.fontManager.addFonts(c.fonts,u),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=c.fr,this.globalData.nm=c.nm,this.globalData.compSize={w:c.w,h:c.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var u=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:u,localMat:u,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var u,f=this.finalTransform.mat,d=0,h=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;d<h;){if(this.hierarchy[d].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}d+=1}if(this.finalTransform._matMdf)for(u=this.finalTransform.mProp.v.props,f.cloneFromProps(u),d=0;d<h;d+=1)f.multiply(this.hierarchy[d].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var u=0,f=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;u<f;)this.localTransforms[u]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[u]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),u+=1;if(this.finalTransform._localMatMdf){var d=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(d),u=1;u<f;u+=1){var h=this.localTransforms[u].matrix;d.multiply(h)}d.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var v=this.finalTransform.localOpacity;for(u=0;u<f;u+=1)v*=this.localTransforms[u].opacity*.01;this.finalTransform.localOpacity=v}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var u=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(u.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var f=0,d=u.length;for(f=0;f<d;f+=1)this.localTransforms.push(u[f])}}},globalToLocal:function(u){var f=[];f.push(this.finalTransform);for(var d=!0,h=this.comp;d;)h.finalTransform?(h.data.hasMask&&f.splice(0,0,h.finalTransform),h=h.comp):d=!1;var v,p=f.length,m;for(v=0;v<p;v+=1)m=f[v].mat.applyToPointArray(0,0,0),u=[u[0]-m[0],u[1]-m[1],0];return u},mHelper:new Matrix};function MaskElement(c,u,f){this.data=c,this.element=u,this.globalData=f,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var d=this.globalData.defs,h,v=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(v),this.solidPath="";var p,m=this.masksProperties,g=0,y=[],b,gn,x=createElementID(),vn,J,j,Fn,Bn="clipPath",w="clip-path";for(h=0;h<v;h+=1)if((m[h].mode!=="a"&&m[h].mode!=="n"||m[h].inv||m[h].o.k!==100||m[h].o.x)&&(Bn="mask",w="mask"),(m[h].mode==="s"||m[h].mode==="i")&&g===0?(vn=createNS("rect"),vn.setAttribute("fill","#ffffff"),vn.setAttribute("width",this.element.comp.data.w||0),vn.setAttribute("height",this.element.comp.data.h||0),y.push(vn)):vn=null,p=createNS("path"),m[h].mode==="n")this.viewData[h]={op:PropertyFactory.getProp(this.element,m[h].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,m[h],3),elem:p,lastPath:""},d.appendChild(p);else{g+=1,p.setAttribute("fill",m[h].mode==="s"?"#000000":"#ffffff"),p.setAttribute("clip-rule","nonzero");var re;if(m[h].x.k!==0?(Bn="mask",w="mask",Fn=PropertyFactory.getProp(this.element,m[h].x,0,null,this.element),re=createElementID(),J=createNS("filter"),J.setAttribute("id",re),j=createNS("feMorphology"),j.setAttribute("operator","erode"),j.setAttribute("in","SourceGraphic"),j.setAttribute("radius","0"),J.appendChild(j),d.appendChild(J),p.setAttribute("stroke",m[h].mode==="s"?"#000000":"#ffffff")):(j=null,Fn=null),this.storedData[h]={elem:p,x:Fn,expan:j,lastPath:"",lastOperator:"",filterId:re,lastRadius:0},m[h].mode==="i"){gn=y.length;var Pn=createNS("g");for(b=0;b<gn;b+=1)Pn.appendChild(y[b]);var Rn=createNS("mask");Rn.setAttribute("mask-type","alpha"),Rn.setAttribute("id",x+"_"+g),Rn.appendChild(p),d.appendChild(Rn),Pn.setAttribute("mask","url("+getLocationHref()+"#"+x+"_"+g+")"),y.length=0,y.push(Pn)}else y.push(p);m[h].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[h]={elem:p,lastPath:"",op:PropertyFactory.getProp(this.element,m[h].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,m[h],3),invRect:vn},this.viewData[h].prop.k||this.drawPath(m[h],this.viewData[h].prop.v,this.viewData[h])}for(this.maskElement=createNS(Bn),v=y.length,h=0;h<v;h+=1)this.maskElement.appendChild(y[h]);g>0&&(this.maskElement.setAttribute("id",x),this.element.maskedElement.setAttribute(w,"url("+getLocationHref()+"#"+x+")"),d.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(c){return this.viewData[c].prop},MaskElement.prototype.renderFrame=function(c){var u=this.element.finalTransform.mat,f,d=this.masksProperties.length;for(f=0;f<d;f+=1)if((this.viewData[f].prop._mdf||c)&&this.drawPath(this.masksProperties[f],this.viewData[f].prop.v,this.viewData[f]),(this.viewData[f].op._mdf||c)&&this.viewData[f].elem.setAttribute("fill-opacity",this.viewData[f].op.v),this.masksProperties[f].mode!=="n"&&(this.viewData[f].invRect&&(this.element.finalTransform.mProp._mdf||c)&&this.viewData[f].invRect.setAttribute("transform",u.getInverseMatrix().to2dCSS()),this.storedData[f].x&&(this.storedData[f].x._mdf||c))){var h=this.storedData[f].expan;this.storedData[f].x.v<0?(this.storedData[f].lastOperator!=="erode"&&(this.storedData[f].lastOperator="erode",this.storedData[f].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[f].filterId+")")),h.setAttribute("radius",-this.storedData[f].x.v)):(this.storedData[f].lastOperator!=="dilate"&&(this.storedData[f].lastOperator="dilate",this.storedData[f].elem.setAttribute("filter",null)),this.storedData[f].elem.setAttribute("stroke-width",this.storedData[f].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var c="M0,0 ";return c+=" h"+this.globalData.compSize.w,c+=" v"+this.globalData.compSize.h,c+=" h-"+this.globalData.compSize.w,c+=" v-"+this.globalData.compSize.h+" ",c},MaskElement.prototype.drawPath=function(c,u,f){var d=" M"+u.v[0][0]+","+u.v[0][1],h,v;for(v=u._length,h=1;h<v;h+=1)d+=" C"+u.o[h-1][0]+","+u.o[h-1][1]+" "+u.i[h][0]+","+u.i[h][1]+" "+u.v[h][0]+","+u.v[h][1];if(u.c&&v>1&&(d+=" C"+u.o[h-1][0]+","+u.o[h-1][1]+" "+u.i[0][0]+","+u.i[0][1]+" "+u.v[0][0]+","+u.v[0][1]),f.lastPath!==d){var p="";f.elem&&(u.c&&(p=c.inv?this.solidPath+d:d),f.elem.setAttribute("d",p)),f.lastPath=d}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var c={};c.createFilter=u,c.createAlphaToLuminanceFilter=f;function u(d,h){var v=createNS("filter");return v.setAttribute("id",d),h!==!0&&(v.setAttribute("filterUnits","objectBoundingBox"),v.setAttribute("x","0%"),v.setAttribute("y","0%"),v.setAttribute("width","100%"),v.setAttribute("height","100%")),v}function f(){var d=createNS("feColorMatrix");return d.setAttribute("type","matrix"),d.setAttribute("color-interpolation-filters","sRGB"),d.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),d}return c}(),featureSupport=function(){var c={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(c.maskType=!1),/firefox/i.test(navigator.userAgent)&&(c.svgLumaHidden=!1),c}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(c){var u,f="SourceGraphic",d=c.data.ef?c.data.ef.length:0,h=createElementID(),v=filtersFactory.createFilter(h,!0),p=0;this.filters=[];var m;for(u=0;u<d;u+=1){m=null;var g=c.data.ef[u].ty;if(registeredEffects$1[g]){var y=registeredEffects$1[g].effect;m=new y(v,c.effectsManager.effectElements[u],c,idPrefix+p,f),f=idPrefix+p,registeredEffects$1[g].countsAsEffect&&(p+=1)}m&&this.filters.push(m)}p&&(c.globalData.defs.appendChild(v),c.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+h+")")),this.filters.length&&c.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(c){var u,f=this.filters.length;for(u=0;u<f;u+=1)this.filters[u].renderFrame(c)},SVGEffects.prototype.getEffects=function(c){var u,f=this.filters.length,d=[];for(u=0;u<f;u+=1)this.filters[u].type===c&&d.push(this.filters[u]);return d};function registerEffect$1(c,u,f){registeredEffects$1[c]={effect:u,countsAsEffect:f}}function SVGBaseElement(){}SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var u=null;if(this.data.td){this.matteMasks={};var f=createNS("g");f.setAttribute("id",this.layerId),f.appendChild(this.layerElement),u=f,this.globalData.defs.appendChild(f)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),u=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var d=createNS("clipPath"),h=createNS("path");h.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var v=createElementID();if(d.setAttribute("id",v),d.appendChild(h),this.globalData.defs.appendChild(d),this.checkMasks()){var p=createNS("g");p.setAttribute("clip-path","url("+getLocationHref()+"#"+v+")"),p.appendChild(this.layerElement),this.transformedElement=p,u?u.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+v+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(u){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[u]){var f=this.layerId+"_"+u,d,h,v,p;if(u===1||u===3){var m=createNS("mask");m.setAttribute("id",f),m.setAttribute("mask-type",u===3?"luminance":"alpha"),v=createNS("use"),v.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),m.appendChild(v),this.globalData.defs.appendChild(m),!featureSupport.maskType&&u===1&&(m.setAttribute("mask-type","luminance"),d=createElementID(),h=filtersFactory.createFilter(d),this.globalData.defs.appendChild(h),h.appendChild(filtersFactory.createAlphaToLuminanceFilter()),p=createNS("g"),p.appendChild(v),m.appendChild(p),p.setAttribute("filter","url("+getLocationHref()+"#"+d+")"))}else if(u===2){var g=createNS("mask");g.setAttribute("id",f),g.setAttribute("mask-type","alpha");var y=createNS("g");g.appendChild(y),d=createElementID(),h=filtersFactory.createFilter(d);var b=createNS("feComponentTransfer");b.setAttribute("in","SourceGraphic"),h.appendChild(b);var gn=createNS("feFuncA");gn.setAttribute("type","table"),gn.setAttribute("tableValues","1.0 0.0"),b.appendChild(gn),this.globalData.defs.appendChild(h);var x=createNS("rect");x.setAttribute("width",this.comp.data.w),x.setAttribute("height",this.comp.data.h),x.setAttribute("x","0"),x.setAttribute("y","0"),x.setAttribute("fill","#ffffff"),x.setAttribute("opacity","0"),y.setAttribute("filter","url("+getLocationHref()+"#"+d+")"),y.appendChild(x),v=createNS("use"),v.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),y.appendChild(v),featureSupport.maskType||(g.setAttribute("mask-type","luminance"),h.appendChild(filtersFactory.createAlphaToLuminanceFilter()),p=createNS("g"),y.appendChild(x),p.appendChild(this.layerElement),y.appendChild(p)),this.globalData.defs.appendChild(g)}this.matteMasks[u]=f}return this.matteMasks[u]},setMatte:function(u){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+u+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(u){this.hierarchy=u},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var c={initElement:function(f,d,h){this.initFrame(),this.initBaseData(f,d,h),this.initTransform(f,d,h),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var f=this.baseElement||this.layerElement;f.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var f=this.baseElement||this.layerElement;f.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(f){this._mdf=!1,this.prepareRenderableFrame(f),this.prepareProperties(f,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(c)],RenderableDOMElement)})();function IImageElement(c,u,f){this.assetData=u.getAssetData(c.refId),this.assetData&&this.assetData.sid&&(this.assetData=u.slotManager.getProp(this.assetData)),this.initElement(c,u,f),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var c=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",c),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(c,u){this.elem=c,this.pos=u}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(u){var f,d=this.shapeModifiers.length;for(f=0;f<d;f+=1)this.shapeModifiers[f].addShape(u)},isShapeInAnimatedModifiers:function(u){for(var f=0,d=this.shapeModifiers.length;f<d;)if(this.shapeModifiers[f].isAnimatedWithShape(u))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var u,f=this.shapes.length;for(u=0;u<f;u+=1)this.shapes[u].sh.reset();f=this.shapeModifiers.length;var d;for(u=f-1;u>=0&&(d=this.shapeModifiers[u].processShapes(this._isFirstFrame),!d);u-=1);}},searchProcessedElement:function(u){for(var f=this.processedElements,d=0,h=f.length;d<h;){if(f[d].elem===u)return f[d].pos;d+=1}return 0},addProcessedElement:function(u,f){for(var d=this.processedElements,h=d.length;h;)if(h-=1,d[h].elem===u){d[h].pos=f;return}d.push(new ProcessedElement(u,f))},prepareFrame:function(u){this.prepareRenderableFrame(u),this.prepareProperties(u,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(c,u,f){this.caches=[],this.styles=[],this.transformers=c,this.lStr="",this.sh=f,this.lvl=u,this._isAnimated=!!f.k;for(var d=0,h=c.length;d<h;){if(c[d].mProps.dynamicProperties.length){this._isAnimated=!0;break}d+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(c,u){this.data=c,this.type=c.ty,this.d="",this.lvl=u,this._mdf=!1,this.closed=c.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(c,u,f,d){this.elem=c,this.frameId=-1,this.dataProps=createSizedArray(u.length),this.renderer=f,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",u.length?u.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(d);var h,v=u.length||0,p;for(h=0;h<v;h+=1)p=PropertyFactory.getProp(c,u[h].v,0,0,this),this.k=p.k||this.k,this.dataProps[h]={n:u[h].n,p};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(c){if(!(this.elem.globalData.frameId===this.frameId&&!c)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||c,this._mdf)){var u=0,f=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),u=0;u<f;u+=1)this.dataProps[u].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[u].p.v:this.dashArray[u]=this.dataProps[u].p.v:this.dashoffset[0]=this.dataProps[u].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(c,u,f){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(c,u.o,0,.01,this),this.w=PropertyFactory.getProp(c,u.w,0,null,this),this.d=new DashProperty(c,u.d||{},"svg",this),this.c=PropertyFactory.getProp(c,u.c,1,255,this),this.style=f,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(c,u,f){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(c,u.o,0,.01,this),this.c=PropertyFactory.getProp(c,u.c,1,255,this),this.style=f}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(c,u,f){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.style=f}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(c,u,f){this.data=u,this.c=createTypedArray("uint8c",u.p*4);var d=u.k.k[0].s?u.k.k[0].s.length-u.p*4:u.k.k.length-u.p*4;this.o=createTypedArray("float32",d),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=d,this.initDynamicPropertyContainer(f),this.prop=PropertyFactory.getProp(c,u.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(c,u){for(var f=0,d=this.o.length/2,h;f<d;){if(h=Math.abs(c[f*4]-c[u*4+f*2]),h>.01)return!1;f+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var c=0,u=this.data.k.k.length;c<u;){if(!this.comparePoints(this.data.k.k[c].s,this.data.p))return!1;c+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(c){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||c){var u,f=this.data.p*4,d,h;for(u=0;u<f;u+=1)d=u%4===0?100:255,h=Math.round(this.prop.v[u]*d),this.c[u]!==h&&(this.c[u]=h,this._cmdf=!c);if(this.o.length)for(f=this.prop.v.length,u=this.data.p*4;u<f;u+=1)d=u%2===0?100:1,h=u%2===0?Math.round(this.prop.v[u]*100):this.prop.v[u],this.o[u-this.data.p*4]!==h&&(this.o[u-this.data.p*4]=h,this._omdf=!c);this._mdf=!c}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(c,u,f){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.initGradientData(c,u,f)}SVGGradientFillStyleData.prototype.initGradientData=function(c,u,f){this.o=PropertyFactory.getProp(c,u.o,0,.01,this),this.s=PropertyFactory.getProp(c,u.s,1,null,this),this.e=PropertyFactory.getProp(c,u.e,1,null,this),this.h=PropertyFactory.getProp(c,u.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(c,u.a||{k:0},0,degToRads,this),this.g=new GradientProperty(c,u.g,this),this.style=f,this.stops=[],this.setGradientData(f.pElem,u),this.setGradientOpacity(u,f),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(c,u){var f=createElementID(),d=createNS(u.t===1?"linearGradient":"radialGradient");d.setAttribute("id",f),d.setAttribute("spreadMethod","pad"),d.setAttribute("gradientUnits","userSpaceOnUse");var h=[],v,p,m;for(m=u.g.p*4,p=0;p<m;p+=4)v=createNS("stop"),d.appendChild(v),h.push(v);c.setAttribute(u.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+f+")"),this.gf=d,this.cst=h},SVGGradientFillStyleData.prototype.setGradientOpacity=function(c,u){if(this.g._hasOpacity&&!this.g._collapsable){var f,d,h,v=createNS("mask"),p=createNS("path");v.appendChild(p);var m=createElementID(),g=createElementID();v.setAttribute("id",g);var y=createNS(c.t===1?"linearGradient":"radialGradient");y.setAttribute("id",m),y.setAttribute("spreadMethod","pad"),y.setAttribute("gradientUnits","userSpaceOnUse"),h=c.g.k.k[0].s?c.g.k.k[0].s.length:c.g.k.k.length;var b=this.stops;for(d=c.g.p*4;d<h;d+=2)f=createNS("stop"),f.setAttribute("stop-color","rgb(255,255,255)"),y.appendChild(f),b.push(f);p.setAttribute(c.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+m+")"),c.ty==="gs"&&(p.setAttribute("stroke-linecap",lineCapEnum[c.lc||2]),p.setAttribute("stroke-linejoin",lineJoinEnum[c.lj||2]),c.lj===1&&p.setAttribute("stroke-miterlimit",c.ml)),this.of=y,this.ms=v,this.ost=b,this.maskId=g,u.msElem=p}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(c,u,f){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(c,u.w,0,null,this),this.d=new DashProperty(c,u.d||{},"svg",this),this.initGradientData(c,u,f),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(c,u,f){this.transform={mProps:c,op:u,container:f},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(u,f,d,h){if(f===0)return"";var v=u.o,p=u.i,m=u.v,g,y=" M"+h.applyToPointStringified(m[0][0],m[0][1]);for(g=1;g<f;g+=1)y+=" C"+h.applyToPointStringified(v[g-1][0],v[g-1][1])+" "+h.applyToPointStringified(p[g][0],p[g][1])+" "+h.applyToPointStringified(m[g][0],m[g][1]);return d&&f&&(y+=" C"+h.applyToPointStringified(v[g-1][0],v[g-1][1])+" "+h.applyToPointStringified(p[0][0],p[0][1])+" "+h.applyToPointStringified(m[0][0],m[0][1]),y+="z"),y},SVGElementsRenderer=function(){var c=new Matrix,u=new Matrix,f={createRenderFunction:d};function d(gn){switch(gn.ty){case"fl":return m;case"gf":return y;case"gs":return g;case"st":return b;case"sh":case"el":case"rc":case"sr":return p;case"tr":return h;case"no":return v;default:return null}}function h(gn,x,vn){(vn||x.transform.op._mdf)&&x.transform.container.setAttribute("opacity",x.transform.op.v),(vn||x.transform.mProps._mdf)&&x.transform.container.setAttribute("transform",x.transform.mProps.v.to2dCSS())}function v(){}function p(gn,x,vn){var J,j,Fn,Bn,w,re,Pn=x.styles.length,Rn=x.lvl,Vn,Wn,Gn,Zn;for(re=0;re<Pn;re+=1){if(Bn=x.sh._mdf||vn,x.styles[re].lvl<Rn){for(Wn=u.reset(),Gn=Rn-x.styles[re].lvl,Zn=x.transformers.length-1;!Bn&&Gn>0;)Bn=x.transformers[Zn].mProps._mdf||Bn,Gn-=1,Zn-=1;if(Bn)for(Gn=Rn-x.styles[re].lvl,Zn=x.transformers.length-1;Gn>0;)Wn.multiply(x.transformers[Zn].mProps.v),Gn-=1,Zn-=1}else Wn=c;if(Vn=x.sh.paths,j=Vn._length,Bn){for(Fn="",J=0;J<j;J+=1)w=Vn.shapes[J],w&&w._length&&(Fn+=buildShapeString(w,w._length,w.c,Wn));x.caches[re]=Fn}else Fn=x.caches[re];x.styles[re].d+=gn.hd===!0?"":Fn,x.styles[re]._mdf=Bn||x.styles[re]._mdf}}function m(gn,x,vn){var J=x.style;(x.c._mdf||vn)&&J.pElem.setAttribute("fill","rgb("+bmFloor(x.c.v[0])+","+bmFloor(x.c.v[1])+","+bmFloor(x.c.v[2])+")"),(x.o._mdf||vn)&&J.pElem.setAttribute("fill-opacity",x.o.v)}function g(gn,x,vn){y(gn,x,vn),b(gn,x,vn)}function y(gn,x,vn){var J=x.gf,j=x.g._hasOpacity,Fn=x.s.v,Bn=x.e.v;if(x.o._mdf||vn){var w=gn.ty==="gf"?"fill-opacity":"stroke-opacity";x.style.pElem.setAttribute(w,x.o.v)}if(x.s._mdf||vn){var re=gn.t===1?"x1":"cx",Pn=re==="x1"?"y1":"cy";J.setAttribute(re,Fn[0]),J.setAttribute(Pn,Fn[1]),j&&!x.g._collapsable&&(x.of.setAttribute(re,Fn[0]),x.of.setAttribute(Pn,Fn[1]))}var Rn,Vn,Wn,Gn;if(x.g._cmdf||vn){Rn=x.cst;var Zn=x.g.c;for(Wn=Rn.length,Vn=0;Vn<Wn;Vn+=1)Gn=Rn[Vn],Gn.setAttribute("offset",Zn[Vn*4]+"%"),Gn.setAttribute("stop-color","rgb("+Zn[Vn*4+1]+","+Zn[Vn*4+2]+","+Zn[Vn*4+3]+")")}if(j&&(x.g._omdf||vn)){var Xn=x.g.o;for(x.g._collapsable?Rn=x.cst:Rn=x.ost,Wn=Rn.length,Vn=0;Vn<Wn;Vn+=1)Gn=Rn[Vn],x.g._collapsable||Gn.setAttribute("offset",Xn[Vn*2]+"%"),Gn.setAttribute("stop-opacity",Xn[Vn*2+1])}if(gn.t===1)(x.e._mdf||vn)&&(J.setAttribute("x2",Bn[0]),J.setAttribute("y2",Bn[1]),j&&!x.g._collapsable&&(x.of.setAttribute("x2",Bn[0]),x.of.setAttribute("y2",Bn[1])));else{var er;if((x.s._mdf||x.e._mdf||vn)&&(er=Math.sqrt(Math.pow(Fn[0]-Bn[0],2)+Math.pow(Fn[1]-Bn[1],2)),J.setAttribute("r",er),j&&!x.g._collapsable&&x.of.setAttribute("r",er)),x.e._mdf||x.h._mdf||x.a._mdf||vn){er||(er=Math.sqrt(Math.pow(Fn[0]-Bn[0],2)+Math.pow(Fn[1]-Bn[1],2)));var Jn=Math.atan2(Bn[1]-Fn[1],Bn[0]-Fn[0]),ir=x.h.v;ir>=1?ir=.99:ir<=-1&&(ir=-.99);var or=er*ir,sr=Math.cos(Jn+x.a.v)*or+Fn[0],Hn=Math.sin(Jn+x.a.v)*or+Fn[1];J.setAttribute("fx",sr),J.setAttribute("fy",Hn),j&&!x.g._collapsable&&(x.of.setAttribute("fx",sr),x.of.setAttribute("fy",Hn))}}}function b(gn,x,vn){var J=x.style,j=x.d;j&&(j._mdf||vn)&&j.dashStr&&(J.pElem.setAttribute("stroke-dasharray",j.dashStr),J.pElem.setAttribute("stroke-dashoffset",j.dashoffset[0])),x.c&&(x.c._mdf||vn)&&J.pElem.setAttribute("stroke","rgb("+bmFloor(x.c.v[0])+","+bmFloor(x.c.v[1])+","+bmFloor(x.c.v[2])+")"),(x.o._mdf||vn)&&J.pElem.setAttribute("stroke-opacity",x.o.v),(x.w._mdf||vn)&&(J.pElem.setAttribute("stroke-width",x.w.v),J.msElem&&J.msElem.setAttribute("stroke-width",x.w.v))}return f}();function SVGShapeElement(c,u,f){this.shapes=[],this.shapesData=c.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(c,u,f),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var c,u=this.shapes.length,f,d,h=this.stylesList.length,v,p=[],m=!1;for(d=0;d<h;d+=1){for(v=this.stylesList[d],m=!1,p.length=0,c=0;c<u;c+=1)f=this.shapes[c],f.styles.indexOf(v)!==-1&&(p.push(f),m=f._isAnimated||m);p.length>1&&m&&this.setShapesAsAnimated(p)}},SVGShapeElement.prototype.setShapesAsAnimated=function(c){var u,f=c.length;for(u=0;u<f;u+=1)c[u].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(c,u){var f,d=new SVGStyleData(c,u),h=d.pElem;if(c.ty==="st")f=new SVGStrokeStyleData(this,c,d);else if(c.ty==="fl")f=new SVGFillStyleData(this,c,d);else if(c.ty==="gf"||c.ty==="gs"){var v=c.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;f=new v(this,c,d),this.globalData.defs.appendChild(f.gf),f.maskId&&(this.globalData.defs.appendChild(f.ms),this.globalData.defs.appendChild(f.of),h.setAttribute("mask","url("+getLocationHref()+"#"+f.maskId+")"))}else c.ty==="no"&&(f=new SVGNoStyleData(this,c,d));return(c.ty==="st"||c.ty==="gs")&&(h.setAttribute("stroke-linecap",lineCapEnum[c.lc||2]),h.setAttribute("stroke-linejoin",lineJoinEnum[c.lj||2]),h.setAttribute("fill-opacity","0"),c.lj===1&&h.setAttribute("stroke-miterlimit",c.ml)),c.r===2&&h.setAttribute("fill-rule","evenodd"),c.ln&&h.setAttribute("id",c.ln),c.cl&&h.setAttribute("class",c.cl),c.bm&&(h.style["mix-blend-mode"]=getBlendMode(c.bm)),this.stylesList.push(d),this.addToAnimatedContents(c,f),f},SVGShapeElement.prototype.createGroupElement=function(c){var u=new ShapeGroupData;return c.ln&&u.gr.setAttribute("id",c.ln),c.cl&&u.gr.setAttribute("class",c.cl),c.bm&&(u.gr.style["mix-blend-mode"]=getBlendMode(c.bm)),u},SVGShapeElement.prototype.createTransformElement=function(c,u){var f=TransformPropertyFactory.getTransformProperty(this,c,this),d=new SVGTransformData(f,f.o,u);return this.addToAnimatedContents(c,d),d},SVGShapeElement.prototype.createShapeElement=function(c,u,f){var d=4;c.ty==="rc"?d=5:c.ty==="el"?d=6:c.ty==="sr"&&(d=7);var h=ShapePropertyFactory.getShapeProp(this,c,d,this),v=new SVGShapeData(u,f,h);return this.shapes.push(v),this.addShapeToModifiers(v),this.addToAnimatedContents(c,v),v},SVGShapeElement.prototype.addToAnimatedContents=function(c,u){for(var f=0,d=this.animatedContents.length;f<d;){if(this.animatedContents[f].element===u)return;f+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(c),element:u,data:c})},SVGShapeElement.prototype.setElementStyles=function(c){var u=c.styles,f,d=this.stylesList.length;for(f=0;f<d;f+=1)this.stylesList[f].closed||u.push(this.stylesList[f])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var c,u=this.itemsData.length;for(c=0;c<u;c+=1)this.prevViewData[c]=this.itemsData[c];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),u=this.dynamicProperties.length,c=0;c<u;c+=1)this.dynamicProperties[c].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(c,u,f,d,h,v,p){var m=[].concat(v),g,y=c.length-1,b,gn,x=[],vn=[],J,j,Fn;for(g=y;g>=0;g-=1){if(Fn=this.searchProcessedElement(c[g]),Fn?u[g]=f[Fn-1]:c[g]._render=p,c[g].ty==="fl"||c[g].ty==="st"||c[g].ty==="gf"||c[g].ty==="gs"||c[g].ty==="no")Fn?u[g].style.closed=!1:u[g]=this.createStyleElement(c[g],h),c[g]._render&&u[g].style.pElem.parentNode!==d&&d.appendChild(u[g].style.pElem),x.push(u[g].style);else if(c[g].ty==="gr"){if(!Fn)u[g]=this.createGroupElement(c[g]);else for(gn=u[g].it.length,b=0;b<gn;b+=1)u[g].prevViewData[b]=u[g].it[b];this.searchShapes(c[g].it,u[g].it,u[g].prevViewData,u[g].gr,h+1,m,p),c[g]._render&&u[g].gr.parentNode!==d&&d.appendChild(u[g].gr)}else c[g].ty==="tr"?(Fn||(u[g]=this.createTransformElement(c[g],d)),J=u[g].transform,m.push(J)):c[g].ty==="sh"||c[g].ty==="rc"||c[g].ty==="el"||c[g].ty==="sr"?(Fn||(u[g]=this.createShapeElement(c[g],m,h)),this.setElementStyles(u[g])):c[g].ty==="tm"||c[g].ty==="rd"||c[g].ty==="ms"||c[g].ty==="pb"||c[g].ty==="zz"||c[g].ty==="op"?(Fn?(j=u[g],j.closed=!1):(j=ShapeModifiers.getModifier(c[g].ty),j.init(this,c[g]),u[g]=j,this.shapeModifiers.push(j)),vn.push(j)):c[g].ty==="rp"&&(Fn?(j=u[g],j.closed=!0):(j=ShapeModifiers.getModifier(c[g].ty),u[g]=j,j.init(this,c,g,u),this.shapeModifiers.push(j),p=!1),vn.push(j));this.addProcessedElement(c[g],g+1)}for(y=x.length,g=0;g<y;g+=1)x[g].closed=!0;for(y=vn.length,g=0;g<y;g+=1)vn[g].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var c,u=this.stylesList.length;for(c=0;c<u;c+=1)this.stylesList[c].reset();for(this.renderShape(),c=0;c<u;c+=1)(this.stylesList[c]._mdf||this._isFirstFrame)&&(this.stylesList[c].msElem&&(this.stylesList[c].msElem.setAttribute("d",this.stylesList[c].d),this.stylesList[c].d="M0 0"+this.stylesList[c].d),this.stylesList[c].pElem.setAttribute("d",this.stylesList[c].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var c,u=this.animatedContents.length,f;for(c=0;c<u;c+=1)f=this.animatedContents[c],(this._isFirstFrame||f.element._isAnimated)&&f.data!==!0&&f.fn(f.data,f.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(c,u,f,d,h,v){this.o=c,this.sw=u,this.sc=f,this.fc=d,this.m=h,this.p=v,this._mdf={o:!0,sw:!!u,sc:!!f,fc:!!d,m:!0,p:!0}}LetterProps.prototype.update=function(c,u,f,d,h,v){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var p=!1;return this.o!==c&&(this.o=c,this._mdf.o=!0,p=!0),this.sw!==u&&(this.sw=u,this._mdf.sw=!0,p=!0),this.sc!==f&&(this.sc=f,this._mdf.sc=!0,p=!0),this.fc!==d&&(this.fc=d,this._mdf.fc=!0,p=!0),this.m!==h&&(this.m=h,this._mdf.m=!0,p=!0),v.length&&(this.p[0]!==v[0]||this.p[1]!==v[1]||this.p[4]!==v[4]||this.p[5]!==v[5]||this.p[12]!==v[12]||this.p[13]!==v[13])&&(this.p=v,this._mdf.p=!0,p=!0),p};function TextProperty(c,u){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,u.d&&u.d.sid&&(u.d=c.globalData.slotManager.getProp(u.d)),this.data=u,this.elem=c,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(c,u){for(var f in u)Object.prototype.hasOwnProperty.call(u,f)&&(c[f]=u[f]);return c},TextProperty.prototype.setCurrentData=function(c){c.__complete||this.completeTextData(c),this.currentData=c,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(c){this.effectsSequence.push(c),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(c){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!c)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var u=this.currentData,f=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var d,h=this.effectsSequence.length,v=c||this.data.d.k[this.keysIndex].s;for(d=0;d<h;d+=1)f!==this.keysIndex?v=this.effectsSequence[d](v,v.t):v=this.effectsSequence[d](this.currentData,v.t);u!==v&&this.setCurrentData(v),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var c=this.data.d.k,u=this.elem.comp.renderedFrame,f=0,d=c.length;f<=d-1&&!(f===d-1||c[f+1].t>u);)f+=1;return this.keysIndex!==f&&(this.keysIndex=f),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(c){for(var u=[],f=0,d=c.length,h,v,p=!1,m=!1,g="";f<d;)p=m,m=!1,h=c.charCodeAt(f),g=c.charAt(f),FontManager.isCombinedCharacter(h)?p=!0:h>=55296&&h<=56319?FontManager.isRegionalFlag(c,f)?g=c.substr(f,14):(v=c.charCodeAt(f+1),v>=56320&&v<=57343&&(FontManager.isModifier(h,v)?(g=c.substr(f,2),p=!0):FontManager.isFlagEmoji(c.substr(f,4))?g=c.substr(f,4):g=c.substr(f,2))):h>56319?(v=c.charCodeAt(f+1),FontManager.isVariationSelector(h)&&(p=!0)):FontManager.isZeroWidthJoiner(h)&&(p=!0,m=!0),p?(u[u.length-1]+=g,p=!1):u.push(g),f+=g.length;return u},TextProperty.prototype.completeTextData=function(c){c.__complete=!0;var u=this.elem.globalData.fontManager,f=this.data,d=[],h,v,p,m=0,g,y=f.m.g,b=0,gn=0,x=0,vn=[],J=0,j=0,Fn,Bn,w=u.getFontByName(c.f),re,Pn=0,Rn=getFontProperties(w);c.fWeight=Rn.weight,c.fStyle=Rn.style,c.finalSize=c.s,c.finalText=this.buildFinalText(c.t),v=c.finalText.length,c.finalLineHeight=c.lh;var Vn=c.tr/1e3*c.finalSize,Wn;if(c.sz)for(var Gn=!0,Zn=c.sz[0],Xn=c.sz[1],er,Jn;Gn;){Jn=this.buildFinalText(c.t),er=0,J=0,v=Jn.length,Vn=c.tr/1e3*c.finalSize;var ir=-1;for(h=0;h<v;h+=1)Wn=Jn[h].charCodeAt(0),p=!1,Jn[h]===" "?ir=h:(Wn===13||Wn===3)&&(J=0,p=!0,er+=c.finalLineHeight||c.finalSize*1.2),u.chars?(re=u.getCharData(Jn[h],w.fStyle,w.fFamily),Pn=p?0:re.w*c.finalSize/100):Pn=u.measureText(Jn[h],c.f,c.finalSize),J+Pn>Zn&&Jn[h]!==" "?(ir===-1?v+=1:h=ir,er+=c.finalLineHeight||c.finalSize*1.2,Jn.splice(h,ir===h?1:0,"\r"),ir=-1,J=0):(J+=Pn,J+=Vn);er+=w.ascent*c.finalSize/100,this.canResize&&c.finalSize>this.minimumFontSize&&Xn<er?(c.finalSize-=1,c.finalLineHeight=c.finalSize*c.lh/c.s):(c.finalText=Jn,v=c.finalText.length,Gn=!1)}J=-Vn,Pn=0;var or=0,sr;for(h=0;h<v;h+=1)if(p=!1,sr=c.finalText[h],Wn=sr.charCodeAt(0),Wn===13||Wn===3?(or=0,vn.push(J),j=J>j?J:j,J=-2*Vn,g="",p=!0,x+=1):g=sr,u.chars?(re=u.getCharData(sr,w.fStyle,u.getFontByName(c.f).fFamily),Pn=p?0:re.w*c.finalSize/100):Pn=u.measureText(g,c.f,c.finalSize),sr===" "?or+=Pn+Vn:(J+=Pn+Vn+or,or=0),d.push({l:Pn,an:Pn,add:b,n:p,anIndexes:[],val:g,line:x,animatorJustifyOffset:0}),y==2){if(b+=Pn,g===""||g===" "||h===v-1){for((g===""||g===" ")&&(b-=Pn);gn<=h;)d[gn].an=b,d[gn].ind=m,d[gn].extra=Pn,gn+=1;m+=1,b=0}}else if(y==3){if(b+=Pn,g===""||h===v-1){for(g===""&&(b-=Pn);gn<=h;)d[gn].an=b,d[gn].ind=m,d[gn].extra=Pn,gn+=1;b=0,m+=1}}else d[m].ind=m,d[m].extra=0,m+=1;if(c.l=d,j=J>j?J:j,vn.push(J),c.sz)c.boxWidth=c.sz[0],c.justifyOffset=0;else switch(c.boxWidth=j,c.j){case 1:c.justifyOffset=-c.boxWidth;break;case 2:c.justifyOffset=-c.boxWidth/2;break;default:c.justifyOffset=0}c.lineWidths=vn;var Hn=f.a,Kn,zn;Bn=Hn.length;var qn,tr,Un=[];for(Fn=0;Fn<Bn;Fn+=1){for(Kn=Hn[Fn],Kn.a.sc&&(c.strokeColorAnim=!0),Kn.a.sw&&(c.strokeWidthAnim=!0),(Kn.a.fc||Kn.a.fh||Kn.a.fs||Kn.a.fb)&&(c.fillColorAnim=!0),tr=0,qn=Kn.s.b,h=0;h<v;h+=1)zn=d[h],zn.anIndexes[Fn]=tr,(qn==1&&zn.val!==""||qn==2&&zn.val!==""&&zn.val!==" "||qn==3&&(zn.n||zn.val==" "||h==v-1)||qn==4&&(zn.n||h==v-1))&&(Kn.s.rn===1&&Un.push(tr),tr+=1);f.a[Fn].s.totalChars=tr;var nr=-1,cr;if(Kn.s.rn===1)for(h=0;h<v;h+=1)zn=d[h],nr!=zn.anIndexes[Fn]&&(nr=zn.anIndexes[Fn],cr=Un.splice(Math.floor(Math.random()*Un.length),1)[0]),zn.anIndexes[Fn]=cr}c.yOffset=c.finalLineHeight||c.finalSize*1.2,c.ls=c.ls||0,c.ascent=w.ascent*c.finalSize/100},TextProperty.prototype.updateDocumentData=function(c,u){u=u===void 0?this.keysIndex:u;var f=this.copyData({},this.data.d.k[u].s);f=this.copyData(f,c),this.data.d.k[u].s=f,this.recalculate(u),this.setCurrentData(f),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(c){var u=this.data.d.k[c].s;u.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(u)},TextProperty.prototype.canResizeFont=function(c){this.canResize=c,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(c){this.minimumFontSize=Math.floor(c)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var c=Math.max,u=Math.min,f=Math.floor;function d(v,p){this._currentTextLength=-1,this.k=!1,this.data=p,this.elem=v,this.comp=v.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(v),this.s=PropertyFactory.getProp(v,p.s||{k:0},0,0,this),"e"in p?this.e=PropertyFactory.getProp(v,p.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(v,p.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(v,p.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(v,p.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(v,p.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(v,p.a,0,.01,this),this.dynamicProperties.length||this.getValue()}d.prototype={getMult:function(p){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var m=0,g=0,y=1,b=1;this.ne.v>0?m=this.ne.v/100:g=-this.ne.v/100,this.xe.v>0?y=1-this.xe.v/100:b=1+this.xe.v/100;var gn=BezierFactory.getBezierEasing(m,g,y,b).get,x=0,vn=this.finalS,J=this.finalE,j=this.data.sh;if(j===2)J===vn?x=p>=J?1:0:x=c(0,u(.5/(J-vn)+(p-vn)/(J-vn),1)),x=gn(x);else if(j===3)J===vn?x=p>=J?0:1:x=1-c(0,u(.5/(J-vn)+(p-vn)/(J-vn),1)),x=gn(x);else if(j===4)J===vn?x=0:(x=c(0,u(.5/(J-vn)+(p-vn)/(J-vn),1)),x<.5?x*=2:x=1-2*(x-.5)),x=gn(x);else if(j===5){if(J===vn)x=0;else{var Fn=J-vn;p=u(c(0,p+.5-vn),J-vn);var Bn=-Fn/2+p,w=Fn/2;x=Math.sqrt(1-Bn*Bn/(w*w))}x=gn(x)}else j===6?(J===vn?x=0:(p=u(c(0,p+.5-vn),J-vn),x=(1+Math.cos(Math.PI+Math.PI*2*p/(J-vn)))/2),x=gn(x)):(p>=f(vn)&&(p-vn<0?x=c(0,u(u(J,1)-(vn-p),1)):x=c(0,u(J-p,1))),x=gn(x));if(this.sm.v!==100){var re=this.sm.v*.01;re===0&&(re=1e-8);var Pn=.5-re*.5;x<Pn?x=0:(x=(x-Pn)/re,x>1&&(x=1))}return x*this.a.v},getValue:function(p){this.iterateDynamicProperties(),this._mdf=p||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,p&&this.data.r===2&&(this.e.v=this._currentTextLength);var m=this.data.r===2?1:100/this.data.totalChars,g=this.o.v/m,y=this.s.v/m+g,b=this.e.v/m+g;if(y>b){var gn=y;y=b,b=gn}this.finalS=y,this.finalE=b}},extendPrototype([DynamicPropertyContainer],d);function h(v,p,m){return new d(v,p)}return{getTextSelectorProp:h}}();function TextAnimatorDataProperty(c,u,f){var d={propType:!1},h=PropertyFactory.getProp,v=u.a;this.a={r:v.r?h(c,v.r,0,degToRads,f):d,rx:v.rx?h(c,v.rx,0,degToRads,f):d,ry:v.ry?h(c,v.ry,0,degToRads,f):d,sk:v.sk?h(c,v.sk,0,degToRads,f):d,sa:v.sa?h(c,v.sa,0,degToRads,f):d,s:v.s?h(c,v.s,1,.01,f):d,a:v.a?h(c,v.a,1,0,f):d,o:v.o?h(c,v.o,0,.01,f):d,p:v.p?h(c,v.p,1,0,f):d,sw:v.sw?h(c,v.sw,0,0,f):d,sc:v.sc?h(c,v.sc,1,0,f):d,fc:v.fc?h(c,v.fc,1,0,f):d,fh:v.fh?h(c,v.fh,0,0,f):d,fs:v.fs?h(c,v.fs,0,.01,f):d,fb:v.fb?h(c,v.fb,0,.01,f):d,t:v.t?h(c,v.t,0,0,f):d},this.s=TextSelectorProp.getTextSelectorProp(c,u.s,f),this.s.t=u.s.t}function TextAnimatorProperty(c,u,f){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=c,this._renderType=u,this._elem=f,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(f)}TextAnimatorProperty.prototype.searchProperties=function(){var c,u=this._textData.a.length,f,d=PropertyFactory.getProp;for(c=0;c<u;c+=1)f=this._textData.a[c],this._animatorsData[c]=new TextAnimatorDataProperty(this._elem,f,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:d(this._elem,this._textData.p.a,0,0,this),f:d(this._elem,this._textData.p.f,0,0,this),l:d(this._elem,this._textData.p.l,0,0,this),r:d(this._elem,this._textData.p.r,0,0,this),p:d(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=d(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(c,u){if(this.lettersChangedFlag=u,!(!this._mdf&&!this._isFirstFrame&&!u&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var f=this._moreOptions.alignment.v,d=this._animatorsData,h=this._textData,v=this.mHelper,p=this._renderType,m=this.renderedLetters.length,g,y,b,gn,x=c.l,vn,J,j,Fn,Bn,w,re,Pn,Rn,Vn,Wn,Gn,Zn,Xn,er;if(this._hasMaskedPath){if(er=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Jn=er.v;this._pathData.r.v&&(Jn=Jn.reverse()),vn={tLength:0,segments:[]},gn=Jn._length-1;var ir;for(Gn=0,b=0;b<gn;b+=1)ir=bez.buildBezierData(Jn.v[b],Jn.v[b+1],[Jn.o[b][0]-Jn.v[b][0],Jn.o[b][1]-Jn.v[b][1]],[Jn.i[b+1][0]-Jn.v[b+1][0],Jn.i[b+1][1]-Jn.v[b+1][1]]),vn.tLength+=ir.segmentLength,vn.segments.push(ir),Gn+=ir.segmentLength;b=gn,er.v.c&&(ir=bez.buildBezierData(Jn.v[b],Jn.v[0],[Jn.o[b][0]-Jn.v[b][0],Jn.o[b][1]-Jn.v[b][1]],[Jn.i[0][0]-Jn.v[0][0],Jn.i[0][1]-Jn.v[0][1]]),vn.tLength+=ir.segmentLength,vn.segments.push(ir),Gn+=ir.segmentLength),this._pathData.pi=vn}if(vn=this._pathData.pi,J=this._pathData.f.v,re=0,w=1,Fn=0,Bn=!0,Vn=vn.segments,J<0&&er.v.c)for(vn.tLength<Math.abs(J)&&(J=-Math.abs(J)%vn.tLength),re=Vn.length-1,Rn=Vn[re].points,w=Rn.length-1;J<0;)J+=Rn[w].partialLength,w-=1,w<0&&(re-=1,Rn=Vn[re].points,w=Rn.length-1);Rn=Vn[re].points,Pn=Rn[w-1],j=Rn[w],Wn=j.partialLength}gn=x.length,g=0,y=0;var or=c.finalSize*1.2*.714,sr=!0,Hn,Kn,zn,qn,tr;qn=d.length;var Un,nr=-1,cr,Qn,fr,vr=J,Yn=re,ar=w,ur=-1,mr,dr,gr,lr,hr,xr,Sr,yr,pr="",br=this.defaultPropsArray,wr;if(c.j===2||c.j===1){var kr=0,Er=0,Ir=c.j===2?-.5:-1,Dr=0,qr=!0;for(b=0;b<gn;b+=1)if(x[b].n){for(kr&&(kr+=Er);Dr<b;)x[Dr].animatorJustifyOffset=kr,Dr+=1;kr=0,qr=!0}else{for(zn=0;zn<qn;zn+=1)Hn=d[zn].a,Hn.t.propType&&(qr&&c.j===2&&(Er+=Hn.t.v*Ir),Kn=d[zn].s,Un=Kn.getMult(x[b].anIndexes[zn],h.a[zn].s.totalChars),Un.length?kr+=Hn.t.v*Un[0]*Ir:kr+=Hn.t.v*Un*Ir);qr=!1}for(kr&&(kr+=Er);Dr<b;)x[Dr].animatorJustifyOffset=kr,Dr+=1}for(b=0;b<gn;b+=1){if(v.reset(),mr=1,x[b].n)g=0,y+=c.yOffset,y+=sr?1:0,J=vr,sr=!1,this._hasMaskedPath&&(re=Yn,w=ar,Rn=Vn[re].points,Pn=Rn[w-1],j=Rn[w],Wn=j.partialLength,Fn=0),pr="",yr="",xr="",wr="",br=this.defaultPropsArray;else{if(this._hasMaskedPath){if(ur!==x[b].line){switch(c.j){case 1:J+=Gn-c.lineWidths[x[b].line];break;case 2:J+=(Gn-c.lineWidths[x[b].line])/2;break}ur=x[b].line}nr!==x[b].ind&&(x[nr]&&(J+=x[nr].extra),J+=x[b].an/2,nr=x[b].ind),J+=f[0]*x[b].an*.005;var Rr=0;for(zn=0;zn<qn;zn+=1)Hn=d[zn].a,Hn.p.propType&&(Kn=d[zn].s,Un=Kn.getMult(x[b].anIndexes[zn],h.a[zn].s.totalChars),Un.length?Rr+=Hn.p.v[0]*Un[0]:Rr+=Hn.p.v[0]*Un),Hn.a.propType&&(Kn=d[zn].s,Un=Kn.getMult(x[b].anIndexes[zn],h.a[zn].s.totalChars),Un.length?Rr+=Hn.a.v[0]*Un[0]:Rr+=Hn.a.v[0]*Un);for(Bn=!0,this._pathData.a.v&&(J=x[0].an*.5+(Gn-this._pathData.f.v-x[0].an*.5-x[x.length-1].an*.5)*nr/(gn-1),J+=this._pathData.f.v);Bn;)Fn+Wn>=J+Rr||!Rn?(Zn=(J+Rr-Fn)/j.partialLength,Qn=Pn.point[0]+(j.point[0]-Pn.point[0])*Zn,fr=Pn.point[1]+(j.point[1]-Pn.point[1])*Zn,v.translate(-f[0]*x[b].an*.005,-(f[1]*or)*.01),Bn=!1):Rn&&(Fn+=j.partialLength,w+=1,w>=Rn.length&&(w=0,re+=1,Vn[re]?Rn=Vn[re].points:er.v.c?(w=0,re=0,Rn=Vn[re].points):(Fn-=j.partialLength,Rn=null)),Rn&&(Pn=j,j=Rn[w],Wn=j.partialLength));cr=x[b].an/2-x[b].add,v.translate(-cr,0,0)}else cr=x[b].an/2-x[b].add,v.translate(-cr,0,0),v.translate(-f[0]*x[b].an*.005,-f[1]*or*.01,0);for(zn=0;zn<qn;zn+=1)Hn=d[zn].a,Hn.t.propType&&(Kn=d[zn].s,Un=Kn.getMult(x[b].anIndexes[zn],h.a[zn].s.totalChars),(g!==0||c.j!==0)&&(this._hasMaskedPath?Un.length?J+=Hn.t.v*Un[0]:J+=Hn.t.v*Un:Un.length?g+=Hn.t.v*Un[0]:g+=Hn.t.v*Un));for(c.strokeWidthAnim&&(gr=c.sw||0),c.strokeColorAnim&&(c.sc?dr=[c.sc[0],c.sc[1],c.sc[2]]:dr=[0,0,0]),c.fillColorAnim&&c.fc&&(lr=[c.fc[0],c.fc[1],c.fc[2]]),zn=0;zn<qn;zn+=1)Hn=d[zn].a,Hn.a.propType&&(Kn=d[zn].s,Un=Kn.getMult(x[b].anIndexes[zn],h.a[zn].s.totalChars),Un.length?v.translate(-Hn.a.v[0]*Un[0],-Hn.a.v[1]*Un[1],Hn.a.v[2]*Un[2]):v.translate(-Hn.a.v[0]*Un,-Hn.a.v[1]*Un,Hn.a.v[2]*Un));for(zn=0;zn<qn;zn+=1)Hn=d[zn].a,Hn.s.propType&&(Kn=d[zn].s,Un=Kn.getMult(x[b].anIndexes[zn],h.a[zn].s.totalChars),Un.length?v.scale(1+(Hn.s.v[0]-1)*Un[0],1+(Hn.s.v[1]-1)*Un[1],1):v.scale(1+(Hn.s.v[0]-1)*Un,1+(Hn.s.v[1]-1)*Un,1));for(zn=0;zn<qn;zn+=1){if(Hn=d[zn].a,Kn=d[zn].s,Un=Kn.getMult(x[b].anIndexes[zn],h.a[zn].s.totalChars),Hn.sk.propType&&(Un.length?v.skewFromAxis(-Hn.sk.v*Un[0],Hn.sa.v*Un[1]):v.skewFromAxis(-Hn.sk.v*Un,Hn.sa.v*Un)),Hn.r.propType&&(Un.length?v.rotateZ(-Hn.r.v*Un[2]):v.rotateZ(-Hn.r.v*Un)),Hn.ry.propType&&(Un.length?v.rotateY(Hn.ry.v*Un[1]):v.rotateY(Hn.ry.v*Un)),Hn.rx.propType&&(Un.length?v.rotateX(Hn.rx.v*Un[0]):v.rotateX(Hn.rx.v*Un)),Hn.o.propType&&(Un.length?mr+=(Hn.o.v*Un[0]-mr)*Un[0]:mr+=(Hn.o.v*Un-mr)*Un),c.strokeWidthAnim&&Hn.sw.propType&&(Un.length?gr+=Hn.sw.v*Un[0]:gr+=Hn.sw.v*Un),c.strokeColorAnim&&Hn.sc.propType)for(hr=0;hr<3;hr+=1)Un.length?dr[hr]+=(Hn.sc.v[hr]-dr[hr])*Un[0]:dr[hr]+=(Hn.sc.v[hr]-dr[hr])*Un;if(c.fillColorAnim&&c.fc){if(Hn.fc.propType)for(hr=0;hr<3;hr+=1)Un.length?lr[hr]+=(Hn.fc.v[hr]-lr[hr])*Un[0]:lr[hr]+=(Hn.fc.v[hr]-lr[hr])*Un;Hn.fh.propType&&(Un.length?lr=addHueToRGB(lr,Hn.fh.v*Un[0]):lr=addHueToRGB(lr,Hn.fh.v*Un)),Hn.fs.propType&&(Un.length?lr=addSaturationToRGB(lr,Hn.fs.v*Un[0]):lr=addSaturationToRGB(lr,Hn.fs.v*Un)),Hn.fb.propType&&(Un.length?lr=addBrightnessToRGB(lr,Hn.fb.v*Un[0]):lr=addBrightnessToRGB(lr,Hn.fb.v*Un))}}for(zn=0;zn<qn;zn+=1)Hn=d[zn].a,Hn.p.propType&&(Kn=d[zn].s,Un=Kn.getMult(x[b].anIndexes[zn],h.a[zn].s.totalChars),this._hasMaskedPath?Un.length?v.translate(0,Hn.p.v[1]*Un[0],-Hn.p.v[2]*Un[1]):v.translate(0,Hn.p.v[1]*Un,-Hn.p.v[2]*Un):Un.length?v.translate(Hn.p.v[0]*Un[0],Hn.p.v[1]*Un[1],-Hn.p.v[2]*Un[2]):v.translate(Hn.p.v[0]*Un,Hn.p.v[1]*Un,-Hn.p.v[2]*Un));if(c.strokeWidthAnim&&(xr=gr<0?0:gr),c.strokeColorAnim&&(Sr="rgb("+Math.round(dr[0]*255)+","+Math.round(dr[1]*255)+","+Math.round(dr[2]*255)+")"),c.fillColorAnim&&c.fc&&(yr="rgb("+Math.round(lr[0]*255)+","+Math.round(lr[1]*255)+","+Math.round(lr[2]*255)+")"),this._hasMaskedPath){if(v.translate(0,-c.ls),v.translate(0,f[1]*or*.01+y,0),this._pathData.p.v){Xn=(j.point[1]-Pn.point[1])/(j.point[0]-Pn.point[0]);var Fr=Math.atan(Xn)*180/Math.PI;j.point[0]<Pn.point[0]&&(Fr+=180),v.rotate(-Fr*Math.PI/180)}v.translate(Qn,fr,0),J-=f[0]*x[b].an*.005,x[b+1]&&nr!==x[b+1].ind&&(J+=x[b].an/2,J+=c.tr*.001*c.finalSize)}else{switch(v.translate(g,y,0),c.ps&&v.translate(c.ps[0],c.ps[1]+c.ascent,0),c.j){case 1:v.translate(x[b].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[x[b].line]),0,0);break;case 2:v.translate(x[b].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[x[b].line])/2,0,0);break}v.translate(0,-c.ls),v.translate(cr,0,0),v.translate(f[0]*x[b].an*.005,f[1]*or*.01,0),g+=x[b].l+c.tr*.001*c.finalSize}p==="html"?pr=v.toCSS():p==="svg"?pr=v.to2dCSS():br=[v.props[0],v.props[1],v.props[2],v.props[3],v.props[4],v.props[5],v.props[6],v.props[7],v.props[8],v.props[9],v.props[10],v.props[11],v.props[12],v.props[13],v.props[14],v.props[15]],wr=mr}m<=b?(tr=new LetterProps(wr,xr,Sr,yr,pr,br),this.renderedLetters.push(tr),m+=1,this.lettersChangedFlag=!0):(tr=this.renderedLetters[b],this.lettersChangedFlag=tr.update(wr,xr,Sr,yr,pr,br)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty);function ITextElement(){}ITextElement.prototype.initElement=function(c,u,f){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(c,u,f),this.textProperty=new TextProperty(this,c.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(c.t,this.renderType,this),this.initTransform(c,u,f),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(c){this._mdf=!1,this.prepareRenderableFrame(c),this.prepareProperties(c,this.isInRange)},ITextElement.prototype.createPathShape=function(c,u){var f,d=u.length,h,v="";for(f=0;f<d;f+=1)u[f].ty==="sh"&&(h=u[f].ks.k,v+=buildShapeString(h,h.i.length,!0,c));return v},ITextElement.prototype.updateDocumentData=function(c,u){this.textProperty.updateDocumentData(c,u)},ITextElement.prototype.canResizeFont=function(c){this.textProperty.canResizeFont(c)},ITextElement.prototype.setMinimumFontSize=function(c){this.textProperty.setMinimumFontSize(c)},ITextElement.prototype.applyTextPropertiesToMatrix=function(c,u,f,d,h){switch(c.ps&&u.translate(c.ps[0],c.ps[1]+c.ascent,0),u.translate(0,-c.ls,0),c.j){case 1:u.translate(c.justifyOffset+(c.boxWidth-c.lineWidths[f]),0,0);break;case 2:u.translate(c.justifyOffset+(c.boxWidth-c.lineWidths[f])/2,0,0);break}u.translate(d,h,0)},ITextElement.prototype.buildColor=function(c){return"rgb("+Math.round(c[0]*255)+","+Math.round(c[1]*255)+","+Math.round(c[2]*255)+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(c,u,f){this.textSpans=[],this.renderType="svg",this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(c){for(var u=0,f=c.length,d=[],h="";u<f;)c[u]===String.fromCharCode(13)||c[u]===String.fromCharCode(3)?(d.push(h),h=""):h+=c[u],u+=1;return d.push(h),d},SVGTextLottieElement.prototype.buildShapeData=function(c,u){if(c.shapes&&c.shapes.length){var f=c.shapes[0];if(f.it){var d=f.it[f.it.length-1];d.s&&(d.s.k[0]=u,d.s.k[1]=u)}}return c},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var c,u,f=this.textProperty.currentData;this.renderedLetters=createSizedArray(f?f.l.length:0),f.fc?this.layerElement.setAttribute("fill",this.buildColor(f.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),f.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(f.sc)),this.layerElement.setAttribute("stroke-width",f.sw)),this.layerElement.setAttribute("font-size",f.finalSize);var d=this.globalData.fontManager.getFontByName(f.f);if(d.fClass)this.layerElement.setAttribute("class",d.fClass);else{this.layerElement.setAttribute("font-family",d.fFamily);var h=f.fWeight,v=f.fStyle;this.layerElement.setAttribute("font-style",v),this.layerElement.setAttribute("font-weight",h)}this.layerElement.setAttribute("aria-label",f.t);var p=f.l||[],m=!!this.globalData.fontManager.chars;u=p.length;var g,y=this.mHelper,b="",gn=this.data.singleShape,x=0,vn=0,J=!0,j=f.tr*.001*f.finalSize;if(gn&&!m&&!f.sz){var Fn=this.textContainer,Bn="start";switch(f.j){case 1:Bn="end";break;case 2:Bn="middle";break;default:Bn="start";break}Fn.setAttribute("text-anchor",Bn),Fn.setAttribute("letter-spacing",j);var w=this.buildTextContents(f.finalText);for(u=w.length,vn=f.ps?f.ps[1]+f.ascent:0,c=0;c<u;c+=1)g=this.textSpans[c].span||createNS("tspan"),g.textContent=w[c],g.setAttribute("x",0),g.setAttribute("y",vn),g.style.display="inherit",Fn.appendChild(g),this.textSpans[c]||(this.textSpans[c]={span:null,glyph:null}),this.textSpans[c].span=g,vn+=f.finalLineHeight;this.layerElement.appendChild(Fn)}else{var re=this.textSpans.length,Pn;for(c=0;c<u;c+=1){if(this.textSpans[c]||(this.textSpans[c]={span:null,childSpan:null,glyph:null}),!m||!gn||c===0){if(g=re>c?this.textSpans[c].span:createNS(m?"g":"text"),re<=c){if(g.setAttribute("stroke-linecap","butt"),g.setAttribute("stroke-linejoin","round"),g.setAttribute("stroke-miterlimit","4"),this.textSpans[c].span=g,m){var Rn=createNS("g");g.appendChild(Rn),this.textSpans[c].childSpan=Rn}this.textSpans[c].span=g,this.layerElement.appendChild(g)}g.style.display="inherit"}if(y.reset(),gn&&(p[c].n&&(x=-j,vn+=f.yOffset,vn+=J?1:0,J=!1),this.applyTextPropertiesToMatrix(f,y,p[c].line,x,vn),x+=p[c].l||0,x+=j),m){Pn=this.globalData.fontManager.getCharData(f.finalText[c],d.fStyle,this.globalData.fontManager.getFontByName(f.f).fFamily);var Vn;if(Pn.t===1)Vn=new SVGCompElement(Pn.data,this.globalData,this);else{var Wn=emptyShapeData;Pn.data&&Pn.data.shapes&&(Wn=this.buildShapeData(Pn.data,f.finalSize)),Vn=new SVGShapeElement(Wn,this.globalData,this)}if(this.textSpans[c].glyph){var Gn=this.textSpans[c].glyph;this.textSpans[c].childSpan.removeChild(Gn.layerElement),Gn.destroy()}this.textSpans[c].glyph=Vn,Vn._debug=!0,Vn.prepareFrame(0),Vn.renderFrame(),this.textSpans[c].childSpan.appendChild(Vn.layerElement),Pn.t===1&&this.textSpans[c].childSpan.setAttribute("transform","scale("+f.finalSize/100+","+f.finalSize/100+")")}else gn&&g.setAttribute("transform","translate("+y.props[12]+","+y.props[13]+")"),g.textContent=p[c].val,g.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}gn&&g&&g.setAttribute("d",b)}for(;c<this.textSpans.length;)this.textSpans[c].span.style.display="none",c+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var c=this.layerElement.getBBox();this.bbox={top:c.y,left:c.x,width:c.width,height:c.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var c,u=this.textSpans.length,f;for(this.renderedFrame=this.comp.renderedFrame,c=0;c<u;c+=1)f=this.textSpans[c].glyph,f&&(f.prepareFrame(this.comp.renderedFrame-this.data.st),f._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var c,u,f=this.textAnimator.renderedLetters,d=this.textProperty.currentData.l;u=d.length;var h,v,p;for(c=0;c<u;c+=1)d[c].n||(h=f[c],v=this.textSpans[c].span,p=this.textSpans[c].glyph,p&&p.renderFrame(),h._mdf.m&&v.setAttribute("transform",h.m),h._mdf.o&&v.setAttribute("opacity",h.o),h._mdf.sw&&v.setAttribute("stroke-width",h.sw),h._mdf.sc&&v.setAttribute("stroke",h.sc),h._mdf.fc&&v.setAttribute("fill",h.fc))}};function ISolidElement(c,u,f){this.initElement(c,u,f)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var c=createNS("rect");c.setAttribute("width",this.data.sw),c.setAttribute("height",this.data.sh),c.setAttribute("fill",this.data.sc),this.layerElement.appendChild(c)};function NullElement(c,u,f){this.initFrame(),this.initBaseData(c,u,f),this.initFrame(),this.initTransform(c,u,f),this.initHierarchy()}NullElement.prototype.prepareFrame=function(c){this.prepareProperties(c,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement);function SVGRendererBase(){}extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(c){return new NullElement(c,this.globalData,this)},SVGRendererBase.prototype.createShape=function(c){return new SVGShapeElement(c,this.globalData,this)},SVGRendererBase.prototype.createText=function(c){return new SVGTextLottieElement(c,this.globalData,this)},SVGRendererBase.prototype.createImage=function(c){return new IImageElement(c,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(c){return new ISolidElement(c,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(c){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+c.w+" "+c.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",c.w),this.svgElement.setAttribute("height",c.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var u=this.globalData.defs;this.setupGlobalData(c,u),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=c;var f=createNS("clipPath"),d=createNS("rect");d.setAttribute("width",c.w),d.setAttribute("height",c.h),d.setAttribute("x",0),d.setAttribute("y",0);var h=createElementID();f.setAttribute("id",h),f.appendChild(d),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+h+")"),u.appendChild(f),this.layers=c.layers,this.elements=createSizedArray(c.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var c,u=this.layers?this.layers.length:0;for(c=0;c<u;c+=1)this.elements[c]&&this.elements[c].destroy&&this.elements[c].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(c){var u=0,f=this.layers.length;for(u=0;u<f;u+=1)if(this.layers[u].ind===c)return u;return-1},SVGRendererBase.prototype.buildItem=function(c){var u=this.elements;if(!(u[c]||this.layers[c].ty===99)){u[c]=!0;var f=this.createItem(this.layers[c]);if(u[c]=f,getExpressionsPlugin()&&(this.layers[c].ty===0&&this.globalData.projectInterface.registerComposition(f),f.initExpressions()),this.appendElementInPos(f,c),this.layers[c].tt){var d="tp"in this.layers[c]?this.findIndexByInd(this.layers[c].tp):c-1;if(d===-1)return;if(!this.elements[d]||this.elements[d]===!0)this.buildItem(d),this.addPendingElement(f);else{var h=u[d],v=h.getMatte(this.layers[c].tt);f.setMatte(v)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var c=this.pendingElements.pop();if(c.checkParenting(),c.data.tt)for(var u=0,f=this.elements.length;u<f;){if(this.elements[u]===c){var d="tp"in c.data?this.findIndexByInd(c.data.tp):u-1,h=this.elements[d],v=h.getMatte(this.layers[u].tt);c.setMatte(v);break}u+=1}}},SVGRendererBase.prototype.renderFrame=function(c){if(!(this.renderedFrame===c||this.destroyed)){c===null?c=this.renderedFrame:this.renderedFrame=c,this.globalData.frameNum=c,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=c,this.globalData._mdf=!1;var u,f=this.layers.length;for(this.completeLayers||this.checkLayers(c),u=f-1;u>=0;u-=1)(this.completeLayers||this.elements[u])&&this.elements[u].prepareFrame(c-this.layers[u].st);if(this.globalData._mdf)for(u=0;u<f;u+=1)(this.completeLayers||this.elements[u])&&this.elements[u].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(c,u){var f=c.getBaseElement();if(f){for(var d=0,h;d<u;)this.elements[d]&&this.elements[d]!==!0&&this.elements[d].getBaseElement()&&(h=this.elements[d].getBaseElement()),d+=1;h?this.layerElement.insertBefore(f,h):this.layerElement.appendChild(f)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(c,u,f){this.initFrame(),this.initBaseData(c,u,f),this.initTransform(c,u,f),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!u.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(c){if(this._mdf=!1,this.prepareRenderableFrame(c),this.prepareProperties(c,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=c/this.data.sr;else{var u=this.tm.v;u===this.data.op&&(u=this.data.op-1),this.renderedFrame=u}var f,d=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),f=d-1;f>=0;f-=1)(this.completeLayers||this.elements[f])&&(this.elements[f].prepareFrame(this.renderedFrame-this.layers[f].st),this.elements[f]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var c,u=this.layers.length;for(c=0;c<u;c+=1)(this.completeLayers||this.elements[c])&&this.elements[c].renderFrame()},ICompElement.prototype.setElements=function(c){this.elements=c},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var c,u=this.layers.length;for(c=0;c<u;c+=1)this.elements[c]&&this.elements[c].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(c,u,f){this.layers=c.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(c,u,f),this.tm=c.tm?PropertyFactory.getProp(this,c.tm,0,u.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(c){return new SVGCompElement(c,this.globalData,this)};function SVGRenderer(c,u){this.animationItem=c,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var f="";if(u&&u.title){var d=createNS("title"),h=createElementID();d.setAttribute("id",h),d.textContent=u.title,this.svgElement.appendChild(d),f+=h}if(u&&u.description){var v=createNS("desc"),p=createElementID();v.setAttribute("id",p),v.textContent=u.description,this.svgElement.appendChild(v),f+=" "+p}f&&this.svgElement.setAttribute("aria-labelledby",f);var m=createNS("defs");this.svgElement.appendChild(m);var g=createNS("g");this.svgElement.appendChild(g),this.layerElement=g,this.renderConfig={preserveAspectRatio:u&&u.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:u&&u.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:u&&u.contentVisibility||"visible",progressiveLoad:u&&u.progressiveLoad||!1,hideOnTransparent:!(u&&u.hideOnTransparent===!1),viewBoxOnly:u&&u.viewBoxOnly||!1,viewBoxSize:u&&u.viewBoxSize||!1,className:u&&u.className||"",id:u&&u.id||"",focusable:u&&u.focusable,filterSize:{width:u&&u.filterSize&&u.filterSize.width||"100%",height:u&&u.filterSize&&u.filterSize.height||"100%",x:u&&u.filterSize&&u.filterSize.x||"0%",y:u&&u.filterSize&&u.filterSize.y||"0%"},width:u&&u.width,height:u&&u.height,runExpressions:!u||u.runExpressions===void 0||u.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:m,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(c){return new SVGCompElement(c,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(u){var f,d=u.length,h="_";for(f=0;f<d;f+=1)h+=u[f].transform.key+"_";var v=this.sequences[h];return v||(v={transforms:[].concat(u),finalTransform:new Matrix,_mdf:!1},this.sequences[h]=v,this.sequenceList.push(v)),v},processSequence:function(u,f){for(var d=0,h=u.transforms.length,v=f;d<h&&!f;){if(u.transforms[d].transform.mProps._mdf){v=!0;break}d+=1}if(v)for(u.finalTransform.reset(),d=h-1;d>=0;d-=1)u.finalTransform.multiply(u.transforms[d].transform.mProps.v);u._mdf=v},processSequences:function(u){var f,d=this.sequenceList.length;for(f=0;f<d;f+=1)this.processSequence(this.sequenceList[f],u)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var u="__lottie_element_luma_buffer",f=null,d=null,h=null;function v(){var g=createNS("svg"),y=createNS("filter"),b=createNS("feColorMatrix");return y.setAttribute("id",u),b.setAttribute("type","matrix"),b.setAttribute("color-interpolation-filters","sRGB"),b.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),y.appendChild(b),g.appendChild(y),g.setAttribute("id",u+"_svg"),featureSupport.svgLumaHidden&&(g.style.display="none"),g}function p(){f||(h=v(),document.body.appendChild(h),f=createTag("canvas"),d=f.getContext("2d"),d.filter="url(#"+u+")",d.fillStyle="rgba(0,0,0,0)",d.fillRect(0,0,1,1))}function m(g){return f||p(),f.width=g.width,f.height=g.height,d.filter="url(#"+u+")",f}return{load:p,get:m}};function createCanvas(c,u){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(c,u);var f=createTag("canvas");return f.width=c,f.height=u,f}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(c){var u,f=c.data.ef?c.data.ef.length:0;this.filters=[];var d;for(u=0;u<f;u+=1){d=null;var h=c.data.ef[u].ty;if(registeredEffects[h]){var v=registeredEffects[h].effect;d=new v(c.effectsManager.effectElements[u],c)}d&&this.filters.push(d)}this.filters.length&&c.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(c){var u,f=this.filters.length;for(u=0;u<f;u+=1)this.filters[u].renderFrame(c)},CVEffects.prototype.getEffects=function(c){var u,f=this.filters.length,d=[];for(u=0;u<f;u+=1)this.filters[u].type===c&&d.push(this.filters[u]);return d};function registerEffect(c,u){registeredEffects[c]={effect:u}}function CVMaskElement(c,u){this.data=c,this.element=u,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var f,d=this.masksProperties.length,h=!1;for(f=0;f<d;f+=1)this.masksProperties[f].mode!=="n"&&(h=!0),this.viewData[f]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[f],3);this.hasMasks=h,h&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var c=this.element.finalTransform.mat,u=this.element.canvasContext,f,d=this.masksProperties.length,h,v,p;for(u.beginPath(),f=0;f<d;f+=1)if(this.masksProperties[f].mode!=="n"){this.masksProperties[f].inv&&(u.moveTo(0,0),u.lineTo(this.element.globalData.compSize.w,0),u.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),u.lineTo(0,this.element.globalData.compSize.h),u.lineTo(0,0)),p=this.viewData[f].v,h=c.applyToPointArray(p.v[0][0],p.v[0][1],0),u.moveTo(h[0],h[1]);var m,g=p._length;for(m=1;m<g;m+=1)v=c.applyToTriplePoints(p.o[m-1],p.i[m],p.v[m]),u.bezierCurveTo(v[0],v[1],v[2],v[3],v[4],v[5]);v=c.applyToTriplePoints(p.o[m-1],p.i[0],p.v[0]),u.bezierCurveTo(v[0],v[1],v[2],v[3],v[4],v[5])}this.element.globalData.renderer.save(!0),u.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var u=this.globalData.canvasContext,f=assetLoader.createCanvas(u.canvas.width,u.canvas.height);this.buffers.push(f);var d=assetLoader.createCanvas(u.canvas.width,u.canvas.height);this.buffers.push(d),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var u=this.globalData;if(u.blendMode!==this.data.bm){u.blendMode=this.data.bm;var f=getBlendMode(this.data.bm);u.canvasContext.globalCompositeOperation=f}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(u){u.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var u=this.buffers[0],f=u.getContext("2d");this.clearCanvas(f),f.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var u=this.buffers[1],f=u.getContext("2d");this.clearCanvas(f),f.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var d=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(d.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var h=assetLoader.getLumaCanvas(this.canvasContext.canvas),v=h.getContext("2d");v.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(h,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(u,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(u){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!u)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var f=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(f),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(f),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(c,u,f,d){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var h=4;u.ty==="rc"?h=5:u.ty==="el"?h=6:u.ty==="sr"&&(h=7),this.sh=ShapePropertyFactory.getShapeProp(c,u,h,c);var v,p=f.length,m;for(v=0;v<p;v+=1)f[v].closed||(m={transforms:d.addTransformSequence(f[v].transforms),trNodes:[]},this.styledShapes.push(m),f[v].elements.push(m))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(c,u,f){this.shapes=[],this.shapesData=c.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(c,u){var f={data:c,type:c.ty,preTransforms:this.transformsManager.addTransformSequence(u),transforms:[],elements:[],closed:c.hd===!0},d={};if(c.ty==="fl"||c.ty==="st"?(d.c=PropertyFactory.getProp(this,c.c,1,255,this),d.c.k||(f.co="rgb("+bmFloor(d.c.v[0])+","+bmFloor(d.c.v[1])+","+bmFloor(d.c.v[2])+")")):(c.ty==="gf"||c.ty==="gs")&&(d.s=PropertyFactory.getProp(this,c.s,1,null,this),d.e=PropertyFactory.getProp(this,c.e,1,null,this),d.h=PropertyFactory.getProp(this,c.h||{k:0},0,.01,this),d.a=PropertyFactory.getProp(this,c.a||{k:0},0,degToRads,this),d.g=new GradientProperty(this,c.g,this)),d.o=PropertyFactory.getProp(this,c.o,0,.01,this),c.ty==="st"||c.ty==="gs"){if(f.lc=lineCapEnum[c.lc||2],f.lj=lineJoinEnum[c.lj||2],c.lj==1&&(f.ml=c.ml),d.w=PropertyFactory.getProp(this,c.w,0,null,this),d.w.k||(f.wi=d.w.v),c.d){var h=new DashProperty(this,c.d,"canvas",this);d.d=h,d.d.k||(f.da=d.d.dashArray,f.do=d.d.dashoffset[0])}}else f.r=c.r===2?"evenodd":"nonzero";return this.stylesList.push(f),d.style=f,d},CVShapeElement.prototype.createGroupElement=function(){var c={it:[],prevViewData:[]};return c},CVShapeElement.prototype.createTransformElement=function(c){var u={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,c.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,c,this)}};return u},CVShapeElement.prototype.createShapeElement=function(c){var u=new CVShapeData(this,c,this.stylesList,this.transformsManager);return this.shapes.push(u),this.addShapeToModifiers(u),u},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var c,u=this.itemsData.length;for(c=0;c<u;c+=1)this.prevViewData[c]=this.itemsData[c];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),u=this.dynamicProperties.length,c=0;c<u;c+=1)this.dynamicProperties[c].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(c){var u,f=this.stylesList.length;for(u=0;u<f;u+=1)this.stylesList[u].closed||this.stylesList[u].transforms.push(c)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var c,u=this.stylesList.length;for(c=0;c<u;c+=1)this.stylesList[c].closed||this.stylesList[c].transforms.pop()},CVShapeElement.prototype.closeStyles=function(c){var u,f=c.length;for(u=0;u<f;u+=1)c[u].closed=!0},CVShapeElement.prototype.searchShapes=function(c,u,f,d,h){var v,p=c.length-1,m,g,y=[],b=[],gn,x,vn,J=[].concat(h);for(v=p;v>=0;v-=1){if(gn=this.searchProcessedElement(c[v]),gn?u[v]=f[gn-1]:c[v]._shouldRender=d,c[v].ty==="fl"||c[v].ty==="st"||c[v].ty==="gf"||c[v].ty==="gs")gn?u[v].style.closed=!1:u[v]=this.createStyleElement(c[v],J),y.push(u[v].style);else if(c[v].ty==="gr"){if(!gn)u[v]=this.createGroupElement(c[v]);else for(g=u[v].it.length,m=0;m<g;m+=1)u[v].prevViewData[m]=u[v].it[m];this.searchShapes(c[v].it,u[v].it,u[v].prevViewData,d,J)}else c[v].ty==="tr"?(gn||(vn=this.createTransformElement(c[v]),u[v]=vn),J.push(u[v]),this.addTransformToStyleList(u[v])):c[v].ty==="sh"||c[v].ty==="rc"||c[v].ty==="el"||c[v].ty==="sr"?gn||(u[v]=this.createShapeElement(c[v])):c[v].ty==="tm"||c[v].ty==="rd"||c[v].ty==="pb"||c[v].ty==="zz"||c[v].ty==="op"?(gn?(x=u[v],x.closed=!1):(x=ShapeModifiers.getModifier(c[v].ty),x.init(this,c[v]),u[v]=x,this.shapeModifiers.push(x)),b.push(x)):c[v].ty==="rp"&&(gn?(x=u[v],x.closed=!0):(x=ShapeModifiers.getModifier(c[v].ty),u[v]=x,x.init(this,c,v,u),this.shapeModifiers.push(x),d=!1),b.push(x));this.addProcessedElement(c[v],v+1)}for(this.removeTransformFromStyleList(),this.closeStyles(y),p=b.length,v=0;v<p;v+=1)b[v].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(c,u){(c._opMdf||u.op._mdf||this._isFirstFrame)&&(u.opacity=c.opacity,u.opacity*=u.op.v,u._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var c,u=this.stylesList.length,f,d,h,v,p,m,g=this.globalData.renderer,y=this.globalData.canvasContext,b,gn;for(c=0;c<u;c+=1)if(gn=this.stylesList[c],b=gn.type,!((b==="st"||b==="gs")&&gn.wi===0||!gn.data._shouldRender||gn.coOp===0||this.globalData.currentGlobalAlpha===0)){for(g.save(),p=gn.elements,b==="st"||b==="gs"?(g.ctxStrokeStyle(b==="st"?gn.co:gn.grd),g.ctxLineWidth(gn.wi),g.ctxLineCap(gn.lc),g.ctxLineJoin(gn.lj),g.ctxMiterLimit(gn.ml||0)):g.ctxFillStyle(b==="fl"?gn.co:gn.grd),g.ctxOpacity(gn.coOp),b!=="st"&&b!=="gs"&&y.beginPath(),g.ctxTransform(gn.preTransforms.finalTransform.props),d=p.length,f=0;f<d;f+=1){for((b==="st"||b==="gs")&&(y.beginPath(),gn.da&&(y.setLineDash(gn.da),y.lineDashOffset=gn.do)),m=p[f].trNodes,v=m.length,h=0;h<v;h+=1)m[h].t==="m"?y.moveTo(m[h].p[0],m[h].p[1]):m[h].t==="c"?y.bezierCurveTo(m[h].pts[0],m[h].pts[1],m[h].pts[2],m[h].pts[3],m[h].pts[4],m[h].pts[5]):y.closePath();(b==="st"||b==="gs")&&(g.ctxStroke(),gn.da&&y.setLineDash(this.dashResetter))}b!=="st"&&b!=="gs"&&this.globalData.renderer.ctxFill(gn.r),g.restore()}},CVShapeElement.prototype.renderShape=function(c,u,f,d){var h,v=u.length-1,p;for(p=c,h=v;h>=0;h-=1)u[h].ty==="tr"?(p=f[h].transform,this.renderShapeTransform(c,p)):u[h].ty==="sh"||u[h].ty==="el"||u[h].ty==="rc"||u[h].ty==="sr"?this.renderPath(u[h],f[h]):u[h].ty==="fl"?this.renderFill(u[h],f[h],p):u[h].ty==="st"?this.renderStroke(u[h],f[h],p):u[h].ty==="gf"||u[h].ty==="gs"?this.renderGradientFill(u[h],f[h],p):u[h].ty==="gr"?this.renderShape(p,u[h].it,f[h].it):u[h].ty;d&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(c,u){if(this._isFirstFrame||u._mdf||c.transforms._mdf){var f=c.trNodes,d=u.paths,h,v,p,m=d._length;f.length=0;var g=c.transforms.finalTransform;for(p=0;p<m;p+=1){var y=d.shapes[p];if(y&&y.v){for(v=y._length,h=1;h<v;h+=1)h===1&&f.push({t:"m",p:g.applyToPointArray(y.v[0][0],y.v[0][1],0)}),f.push({t:"c",pts:g.applyToTriplePoints(y.o[h-1],y.i[h],y.v[h])});v===1&&f.push({t:"m",p:g.applyToPointArray(y.v[0][0],y.v[0][1],0)}),y.c&&v&&(f.push({t:"c",pts:g.applyToTriplePoints(y.o[h-1],y.i[0],y.v[0])}),f.push({t:"z"}))}}c.trNodes=f}},CVShapeElement.prototype.renderPath=function(c,u){if(c.hd!==!0&&c._shouldRender){var f,d=u.styledShapes.length;for(f=0;f<d;f+=1)this.renderStyledShape(u.styledShapes[f],u.sh)}},CVShapeElement.prototype.renderFill=function(c,u,f){var d=u.style;(u.c._mdf||this._isFirstFrame)&&(d.co="rgb("+bmFloor(u.c.v[0])+","+bmFloor(u.c.v[1])+","+bmFloor(u.c.v[2])+")"),(u.o._mdf||f._opMdf||this._isFirstFrame)&&(d.coOp=u.o.v*f.opacity)},CVShapeElement.prototype.renderGradientFill=function(c,u,f){var d=u.style,h;if(!d.grd||u.g._mdf||u.s._mdf||u.e._mdf||c.t!==1&&(u.h._mdf||u.a._mdf)){var v=this.globalData.canvasContext,p=u.s.v,m=u.e.v;if(c.t===1)h=v.createLinearGradient(p[0],p[1],m[0],m[1]);else{var g=Math.sqrt(Math.pow(p[0]-m[0],2)+Math.pow(p[1]-m[1],2)),y=Math.atan2(m[1]-p[1],m[0]-p[0]),b=u.h.v;b>=1?b=.99:b<=-1&&(b=-.99);var gn=g*b,x=Math.cos(y+u.a.v)*gn+p[0],vn=Math.sin(y+u.a.v)*gn+p[1];h=v.createRadialGradient(x,vn,0,p[0],p[1],g)}var J,j=c.g.p,Fn=u.g.c,Bn=1;for(J=0;J<j;J+=1)u.g._hasOpacity&&u.g._collapsable&&(Bn=u.g.o[J*2+1]),h.addColorStop(Fn[J*4]/100,"rgba("+Fn[J*4+1]+","+Fn[J*4+2]+","+Fn[J*4+3]+","+Bn+")");d.grd=h}d.coOp=u.o.v*f.opacity},CVShapeElement.prototype.renderStroke=function(c,u,f){var d=u.style,h=u.d;h&&(h._mdf||this._isFirstFrame)&&(d.da=h.dashArray,d.do=h.dashoffset[0]),(u.c._mdf||this._isFirstFrame)&&(d.co="rgb("+bmFloor(u.c.v[0])+","+bmFloor(u.c.v[1])+","+bmFloor(u.c.v[2])+")"),(u.o._mdf||f._opMdf||this._isFirstFrame)&&(d.coOp=u.o.v*f.opacity),(u.w._mdf||this._isFirstFrame)&&(d.wi=u.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0};function CVTextElement(c,u,f){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var c=this.textProperty.currentData;this.renderedLetters=createSizedArray(c.l?c.l.length:0);var u=!1;c.fc?(u=!0,this.values.fill=this.buildColor(c.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=u;var f=!1;c.sc&&(f=!0,this.values.stroke=this.buildColor(c.sc),this.values.sWidth=c.sw);var d=this.globalData.fontManager.getFontByName(c.f),h,v,p=c.l,m=this.mHelper;this.stroke=f,this.values.fValue=c.finalSize+"px "+this.globalData.fontManager.getFontByName(c.f).fFamily,v=c.finalText.length;var g,y,b,gn,x,vn,J,j,Fn,Bn,w=this.data.singleShape,re=c.tr*.001*c.finalSize,Pn=0,Rn=0,Vn=!0,Wn=0;for(h=0;h<v;h+=1){g=this.globalData.fontManager.getCharData(c.finalText[h],d.fStyle,this.globalData.fontManager.getFontByName(c.f).fFamily),y=g&&g.data||{},m.reset(),w&&p[h].n&&(Pn=-re,Rn+=c.yOffset,Rn+=Vn?1:0,Vn=!1),x=y.shapes?y.shapes[0].it:[],J=x.length,m.scale(c.finalSize/100,c.finalSize/100),w&&this.applyTextPropertiesToMatrix(c,m,p[h].line,Pn,Rn),Fn=createSizedArray(J-1);var Gn=0;for(vn=0;vn<J;vn+=1)if(x[vn].ty==="sh"){for(gn=x[vn].ks.k.i.length,j=x[vn].ks.k,Bn=[],b=1;b<gn;b+=1)b===1&&Bn.push(m.applyToX(j.v[0][0],j.v[0][1],0),m.applyToY(j.v[0][0],j.v[0][1],0)),Bn.push(m.applyToX(j.o[b-1][0],j.o[b-1][1],0),m.applyToY(j.o[b-1][0],j.o[b-1][1],0),m.applyToX(j.i[b][0],j.i[b][1],0),m.applyToY(j.i[b][0],j.i[b][1],0),m.applyToX(j.v[b][0],j.v[b][1],0),m.applyToY(j.v[b][0],j.v[b][1],0));Bn.push(m.applyToX(j.o[b-1][0],j.o[b-1][1],0),m.applyToY(j.o[b-1][0],j.o[b-1][1],0),m.applyToX(j.i[0][0],j.i[0][1],0),m.applyToY(j.i[0][0],j.i[0][1],0),m.applyToX(j.v[0][0],j.v[0][1],0),m.applyToY(j.v[0][0],j.v[0][1],0)),Fn[Gn]=Bn,Gn+=1}w&&(Pn+=p[h].l,Pn+=re),this.textSpans[Wn]?this.textSpans[Wn].elem=Fn:this.textSpans[Wn]={elem:Fn},Wn+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var c=this.canvasContext;c.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var u,f,d,h,v,p,m=this.textAnimator.renderedLetters,g=this.textProperty.currentData.l;f=g.length;var y,b=null,gn=null,x=null,vn,J,j=this.globalData.renderer;for(u=0;u<f;u+=1)if(!g[u].n){if(y=m[u],y&&(j.save(),j.ctxTransform(y.p),j.ctxOpacity(y.o)),this.fill){for(y&&y.fc?b!==y.fc&&(j.ctxFillStyle(y.fc),b=y.fc):b!==this.values.fill&&(b=this.values.fill,j.ctxFillStyle(this.values.fill)),vn=this.textSpans[u].elem,h=vn.length,this.globalData.canvasContext.beginPath(),d=0;d<h;d+=1)for(J=vn[d],p=J.length,this.globalData.canvasContext.moveTo(J[0],J[1]),v=2;v<p;v+=6)this.globalData.canvasContext.bezierCurveTo(J[v],J[v+1],J[v+2],J[v+3],J[v+4],J[v+5]);this.globalData.canvasContext.closePath(),j.ctxFill()}if(this.stroke){for(y&&y.sw?x!==y.sw&&(x=y.sw,j.ctxLineWidth(y.sw)):x!==this.values.sWidth&&(x=this.values.sWidth,j.ctxLineWidth(this.values.sWidth)),y&&y.sc?gn!==y.sc&&(gn=y.sc,j.ctxStrokeStyle(y.sc)):gn!==this.values.stroke&&(gn=this.values.stroke,j.ctxStrokeStyle(this.values.stroke)),vn=this.textSpans[u].elem,h=vn.length,this.globalData.canvasContext.beginPath(),d=0;d<h;d+=1)for(J=vn[d],p=J.length,this.globalData.canvasContext.moveTo(J[0],J[1]),v=2;v<p;v+=6)this.globalData.canvasContext.bezierCurveTo(J[v],J[v+1],J[v+2],J[v+3],J[v+4],J[v+5]);this.globalData.canvasContext.closePath(),j.ctxStroke()}y&&this.globalData.renderer.restore()}};function CVImageElement(c,u,f){this.assetData=u.getAssetData(c.refId),this.img=u.imageLoader.getAsset(this.assetData),this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var c=createTag("canvas");c.width=this.assetData.w,c.height=this.assetData.h;var u=c.getContext("2d"),f=this.img.width,d=this.img.height,h=f/d,v=this.assetData.w/this.assetData.h,p,m,g=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;h>v&&g==="xMidYMid slice"||h<v&&g!=="xMidYMid slice"?(m=d,p=m*v):(p=f,m=p/v),u.drawImage(this.img,(f-p)/2,(d-m)/2,p,m,0,0,this.assetData.w,this.assetData.h),this.img=c}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(c,u,f){this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(){}extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(c){return new CVShapeElement(c,this.globalData,this)},CanvasRendererBase.prototype.createText=function(c){return new CVTextElement(c,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(c){return new CVImageElement(c,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(c){return new CVSolidElement(c,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(c){c[0]===1&&c[1]===0&&c[4]===0&&c[5]===1&&c[12]===0&&c[13]===0||this.canvasContext.transform(c[0],c[1],c[4],c[5],c[12],c[13])},CanvasRendererBase.prototype.ctxOpacity=function(c){this.canvasContext.globalAlpha*=c<0?0:c},CanvasRendererBase.prototype.ctxFillStyle=function(c){this.canvasContext.fillStyle=c},CanvasRendererBase.prototype.ctxStrokeStyle=function(c){this.canvasContext.strokeStyle=c},CanvasRendererBase.prototype.ctxLineWidth=function(c){this.canvasContext.lineWidth=c},CanvasRendererBase.prototype.ctxLineCap=function(c){this.canvasContext.lineCap=c},CanvasRendererBase.prototype.ctxLineJoin=function(c){this.canvasContext.lineJoin=c},CanvasRendererBase.prototype.ctxMiterLimit=function(c){this.canvasContext.miterLimit=c},CanvasRendererBase.prototype.ctxFill=function(c){this.canvasContext.fill(c)},CanvasRendererBase.prototype.ctxFillRect=function(c,u,f,d){this.canvasContext.fillRect(c,u,f,d)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(c){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}c&&(this.globalData.blendMode="source-over"),this.contextData.restore(c)},CanvasRendererBase.prototype.configAnimation=function(c){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var u=this.animationItem.container.style;u.width="100%",u.height="100%";var f="0px 0px 0px";u.transformOrigin=f,u.mozTransformOrigin=f,u.webkitTransformOrigin=f,u["-webkit-transform"]=f,u.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=c,this.layers=c.layers,this.transformCanvas={w:c.w,h:c.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(c,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(c.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(c,u){this.reset();var f,d;c?(f=c,d=u,this.canvasContext.canvas.width=f,this.canvasContext.canvas.height=d):(this.animationItem.wrapper&&this.animationItem.container?(f=this.animationItem.wrapper.offsetWidth,d=this.animationItem.wrapper.offsetHeight):(f=this.canvasContext.canvas.width,d=this.canvasContext.canvas.height),this.canvasContext.canvas.width=f*this.renderConfig.dpr,this.canvasContext.canvas.height=d*this.renderConfig.dpr);var h,v;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var p=this.renderConfig.preserveAspectRatio.split(" "),m=p[1]||"meet",g=p[0]||"xMidYMid",y=g.substr(0,4),b=g.substr(4);h=f/d,v=this.transformCanvas.w/this.transformCanvas.h,v>h&&m==="meet"||v<h&&m==="slice"?(this.transformCanvas.sx=f/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=f/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=d/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=d/(this.transformCanvas.h/this.renderConfig.dpr)),y==="xMid"&&(v<h&&m==="meet"||v>h&&m==="slice")?this.transformCanvas.tx=(f-this.transformCanvas.w*(d/this.transformCanvas.h))/2*this.renderConfig.dpr:y==="xMax"&&(v<h&&m==="meet"||v>h&&m==="slice")?this.transformCanvas.tx=(f-this.transformCanvas.w*(d/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,b==="YMid"&&(v>h&&m==="meet"||v<h&&m==="slice")?this.transformCanvas.ty=(d-this.transformCanvas.h*(f/this.transformCanvas.w))/2*this.renderConfig.dpr:b==="YMax"&&(v>h&&m==="meet"||v<h&&m==="slice")?this.transformCanvas.ty=(d-this.transformCanvas.h*(f/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=f/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=d/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText="");var c,u=this.layers?this.layers.length:0;for(c=u-1;c>=0;c-=1)this.elements[c]&&this.elements[c].destroy&&this.elements[c].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(c,u){if(!(this.renderedFrame===c&&this.renderConfig.clearCanvas===!0&&!u||this.destroyed||c===-1)){this.renderedFrame=c,this.globalData.frameNum=c-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||u,this.globalData.projectInterface.currentFrame=c;var f,d=this.layers.length;for(this.completeLayers||this.checkLayers(c),f=d-1;f>=0;f-=1)(this.completeLayers||this.elements[f])&&this.elements[f].prepareFrame(c-this.layers[f].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),f=d-1;f>=0;f-=1)(this.completeLayers||this.elements[f])&&this.elements[f].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(c){var u=this.elements;if(!(u[c]||this.layers[c].ty===99)){var f=this.createItem(this.layers[c],this,this.globalData);u[c]=f,f.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var c=this.pendingElements.pop();c.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var c,u=15;for(c=0;c<u;c+=1){var f=new CanvasContext;this.stack[c]=f}this._length=u,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}CVContextData.prototype.duplicate=function(){var c=this._length*2,u=0;for(u=this._length;u<c;u+=1)this.stack[u]=new CanvasContext;this._length=c},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(c){this.cArrPos-=1;var u=this.stack[this.cArrPos],f=u.transform,d,h=this.cTr.props;for(d=0;d<16;d+=1)h[d]=f[d];if(c){this.nativeContext.restore();var v=this.stack[this.cArrPos+1];this.appliedFillStyle=v.fillStyle,this.appliedStrokeStyle=v.strokeStyle,this.appliedLineWidth=v.lineWidth,this.appliedLineCap=v.lineCap,this.appliedLineJoin=v.lineJoin,this.appliedMiterLimit=v.miterLimit}this.nativeContext.setTransform(f[0],f[1],f[4],f[5],f[12],f[13]),(c||u.opacity!==-1&&this.currentOpacity!==u.opacity)&&(this.nativeContext.globalAlpha=u.opacity,this.currentOpacity=u.opacity),this.currentFillStyle=u.fillStyle,this.currentStrokeStyle=u.strokeStyle,this.currentLineWidth=u.lineWidth,this.currentLineCap=u.lineCap,this.currentLineJoin=u.lineJoin,this.currentMiterLimit=u.miterLimit},CVContextData.prototype.save=function(c){c&&this.nativeContext.save();var u=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var f=this.stack[this.cArrPos],d;for(d=0;d<16;d+=1)f.transform[d]=u[d];this.cArrPos+=1;var h=this.stack[this.cArrPos];h.opacity=f.opacity,h.fillStyle=f.fillStyle,h.strokeStyle=f.strokeStyle,h.lineWidth=f.lineWidth,h.lineCap=f.lineCap,h.lineJoin=f.lineJoin,h.miterLimit=f.miterLimit},CVContextData.prototype.setOpacity=function(c){this.stack[this.cArrPos].opacity=c},CVContextData.prototype.setContext=function(c){this.nativeContext=c},CVContextData.prototype.fillStyle=function(c){this.stack[this.cArrPos].fillStyle!==c&&(this.currentFillStyle=c,this.stack[this.cArrPos].fillStyle=c)},CVContextData.prototype.strokeStyle=function(c){this.stack[this.cArrPos].strokeStyle!==c&&(this.currentStrokeStyle=c,this.stack[this.cArrPos].strokeStyle=c)},CVContextData.prototype.lineWidth=function(c){this.stack[this.cArrPos].lineWidth!==c&&(this.currentLineWidth=c,this.stack[this.cArrPos].lineWidth=c)},CVContextData.prototype.lineCap=function(c){this.stack[this.cArrPos].lineCap!==c&&(this.currentLineCap=c,this.stack[this.cArrPos].lineCap=c)},CVContextData.prototype.lineJoin=function(c){this.stack[this.cArrPos].lineJoin!==c&&(this.currentLineJoin=c,this.stack[this.cArrPos].lineJoin=c)},CVContextData.prototype.miterLimit=function(c){this.stack[this.cArrPos].miterLimit!==c&&(this.currentMiterLimit=c,this.stack[this.cArrPos].miterLimit=c)},CVContextData.prototype.transform=function(c){this.transformMat.cloneFromProps(c);var u=this.cTr;this.transformMat.multiply(u),u.cloneFromProps(this.transformMat.props);var f=u.props;this.nativeContext.setTransform(f[0],f[1],f[4],f[5],f[12],f[13])},CVContextData.prototype.opacity=function(c){var u=this.stack[this.cArrPos].opacity;u*=c<0?0:c,this.stack[this.cArrPos].opacity!==u&&(this.currentOpacity!==c&&(this.nativeContext.globalAlpha=c,this.currentOpacity=c),this.stack[this.cArrPos].opacity=u)},CVContextData.prototype.fill=function(c){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(c)},CVContextData.prototype.fillRect=function(c,u,f,d){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(c,u,f,d)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()};function CVCompElement(c,u,f){this.completeLayers=!1,this.layers=c.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(c,u,f),this.tm=c.tm?PropertyFactory.getProp(this,c.tm,0,u.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var c=this.canvasContext;c.beginPath(),c.moveTo(0,0),c.lineTo(this.data.w,0),c.lineTo(this.data.w,this.data.h),c.lineTo(0,this.data.h),c.lineTo(0,0),c.clip();var u,f=this.layers.length;for(u=f-1;u>=0;u-=1)(this.completeLayers||this.elements[u])&&this.elements[u].renderFrame()},CVCompElement.prototype.destroy=function(){var c,u=this.layers.length;for(c=u-1;c>=0;c-=1)this.elements[c]&&this.elements[c].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(c){return new CVCompElement(c,this.globalData,this)};function CanvasRenderer(c,u){this.animationItem=c,this.renderConfig={clearCanvas:u&&u.clearCanvas!==void 0?u.clearCanvas:!0,context:u&&u.context||null,progressiveLoad:u&&u.progressiveLoad||!1,preserveAspectRatio:u&&u.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:u&&u.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:u&&u.contentVisibility||"visible",className:u&&u.className||"",id:u&&u.id||"",runExpressions:!u||u.runExpressions===void 0||u.runExpressions},this.renderConfig.dpr=u&&u.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=u&&u.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(c){return new CVCompElement(c,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var u=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var f=this.finalTransform.mat.toCSS();u.transform=f,u.webkitTransform=f}this.finalTransform._opMdf&&(u.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(c,u,f){this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var c;this.data.hasMask?(c=createNS("rect"),c.setAttribute("width",this.data.sw),c.setAttribute("height",this.data.sh),c.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(c=createTag("div"),c.style.width=this.data.sw+"px",c.style.height=this.data.sh+"px",c.style.backgroundColor=this.data.sc),this.layerElement.appendChild(c)};function HShapeElement(c,u,f){this.shapes=[],this.shapesData=c.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(c,u,f),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var c;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),c=this.svgElement;else{c=createNS("svg");var u=this.comp.data?this.comp.data:this.globalData.compSize;c.setAttribute("width",u.w),c.setAttribute("height",u.h),c.appendChild(this.shapesContainer),this.layerElement.appendChild(c)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=c},HShapeElement.prototype.getTransformedPoint=function(c,u){var f,d=c.length;for(f=0;f<d;f+=1)u=c[f].mProps.v.applyToPointArray(u[0],u[1],0);return u},HShapeElement.prototype.calculateShapeBoundingBox=function(c,u){var f=c.sh.v,d=c.transformers,h,v=f._length,p,m,g,y;if(!(v<=1)){for(h=0;h<v-1;h+=1)p=this.getTransformedPoint(d,f.v[h]),m=this.getTransformedPoint(d,f.o[h]),g=this.getTransformedPoint(d,f.i[h+1]),y=this.getTransformedPoint(d,f.v[h+1]),this.checkBounds(p,m,g,y,u);f.c&&(p=this.getTransformedPoint(d,f.v[h]),m=this.getTransformedPoint(d,f.o[h]),g=this.getTransformedPoint(d,f.i[0]),y=this.getTransformedPoint(d,f.v[0]),this.checkBounds(p,m,g,y,u))}},HShapeElement.prototype.checkBounds=function(c,u,f,d,h){this.getBoundsOfCurve(c,u,f,d);var v=this.shapeBoundingBox;h.x=bmMin(v.left,h.x),h.xMax=bmMax(v.right,h.xMax),h.y=bmMin(v.top,h.y),h.yMax=bmMax(v.bottom,h.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(c,u,f,d){for(var h=[[c[0],d[0]],[c[1],d[1]]],v,p,m,g,y,b,gn,x=0;x<2;++x)p=6*c[x]-12*u[x]+6*f[x],v=-3*c[x]+9*u[x]-9*f[x]+3*d[x],m=3*u[x]-3*c[x],p|=0,v|=0,m|=0,v===0&&p===0||(v===0?(g=-m/p,g>0&&g<1&&h[x].push(this.calculateF(g,c,u,f,d,x))):(y=p*p-4*m*v,y>=0&&(b=(-p+bmSqrt(y))/(2*v),b>0&&b<1&&h[x].push(this.calculateF(b,c,u,f,d,x)),gn=(-p-bmSqrt(y))/(2*v),gn>0&&gn<1&&h[x].push(this.calculateF(gn,c,u,f,d,x)))));this.shapeBoundingBox.left=bmMin.apply(null,h[0]),this.shapeBoundingBox.top=bmMin.apply(null,h[1]),this.shapeBoundingBox.right=bmMax.apply(null,h[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,h[1])},HShapeElement.prototype.calculateF=function(c,u,f,d,h,v){return bmPow(1-c,3)*u[v]+3*bmPow(1-c,2)*c*f[v]+3*(1-c)*bmPow(c,2)*d[v]+bmPow(c,3)*h[v]},HShapeElement.prototype.calculateBoundingBox=function(c,u){var f,d=c.length;for(f=0;f<d;f+=1)c[f]&&c[f].sh?this.calculateShapeBoundingBox(c[f],u):c[f]&&c[f].it?this.calculateBoundingBox(c[f].it,u):c[f]&&c[f].style&&c[f].w&&this.expandStrokeBoundingBox(c[f].w,u)},HShapeElement.prototype.expandStrokeBoundingBox=function(c,u){var f=0;if(c.keyframes){for(var d=0;d<c.keyframes.length;d+=1){var h=c.keyframes[d].s;h>f&&(f=h)}f*=c.mult}else f=c.v*c.mult;u.x-=f,u.xMax+=f,u.y-=f,u.yMax+=f},HShapeElement.prototype.currentBoxContains=function(c){return this.currentBBox.x<=c.x&&this.currentBBox.y<=c.y&&this.currentBBox.width+this.currentBBox.x>=c.x+c.width&&this.currentBBox.height+this.currentBBox.y>=c.y+c.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var c=this.tempBoundingBox,u=999999;if(c.x=u,c.xMax=-u,c.y=u,c.yMax=-u,this.calculateBoundingBox(this.itemsData,c),c.width=c.xMax<c.x?0:c.xMax-c.x,c.height=c.yMax<c.y?0:c.yMax-c.y,this.currentBoxContains(c))return;var f=!1;if(this.currentBBox.w!==c.width&&(this.currentBBox.w=c.width,this.shapeCont.setAttribute("width",c.width),f=!0),this.currentBBox.h!==c.height&&(this.currentBBox.h=c.height,this.shapeCont.setAttribute("height",c.height),f=!0),f||this.currentBBox.x!==c.x||this.currentBBox.y!==c.y){this.currentBBox.w=c.width,this.currentBBox.h=c.height,this.currentBBox.x=c.x,this.currentBBox.y=c.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var d=this.shapeCont.style,h="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";d.transform=h,d.webkitTransform=h}}};function HTextElement(c,u,f){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var c=createNS("g");this.maskedElement.appendChild(c),this.innerElem=c}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var c=this.textProperty.currentData;this.renderedLetters=createSizedArray(c.l?c.l.length:0);var u=this.innerElem.style,f=c.fc?this.buildColor(c.fc):"rgba(0,0,0,0)";u.fill=f,u.color=f,c.sc&&(u.stroke=this.buildColor(c.sc),u.strokeWidth=c.sw+"px");var d=this.globalData.fontManager.getFontByName(c.f);if(!this.globalData.fontManager.chars)if(u.fontSize=c.finalSize+"px",u.lineHeight=c.finalSize+"px",d.fClass)this.innerElem.className=d.fClass;else{u.fontFamily=d.fFamily;var h=c.fWeight,v=c.fStyle;u.fontStyle=v,u.fontWeight=h}var p,m,g=c.l;m=g.length;var y,b,gn,x=this.mHelper,vn,J="",j=0;for(p=0;p<m;p+=1){if(this.globalData.fontManager.chars?(this.textPaths[j]?y=this.textPaths[j]:(y=createNS("path"),y.setAttribute("stroke-linecap",lineCapEnum[1]),y.setAttribute("stroke-linejoin",lineJoinEnum[2]),y.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[j]?(b=this.textSpans[j],gn=b.children[0]):(b=createTag("div"),b.style.lineHeight=0,gn=createNS("svg"),gn.appendChild(y),styleDiv(b)))):this.isMasked?y=this.textPaths[j]?this.textPaths[j]:createNS("text"):this.textSpans[j]?(b=this.textSpans[j],y=this.textPaths[j]):(b=createTag("span"),styleDiv(b),y=createTag("span"),styleDiv(y),b.appendChild(y)),this.globalData.fontManager.chars){var Fn=this.globalData.fontManager.getCharData(c.finalText[p],d.fStyle,this.globalData.fontManager.getFontByName(c.f).fFamily),Bn;if(Fn?Bn=Fn.data:Bn=null,x.reset(),Bn&&Bn.shapes&&Bn.shapes.length&&(vn=Bn.shapes[0].it,x.scale(c.finalSize/100,c.finalSize/100),J=this.createPathShape(x,vn),y.setAttribute("d",J)),this.isMasked)this.innerElem.appendChild(y);else{if(this.innerElem.appendChild(b),Bn&&Bn.shapes){document.body.appendChild(gn);var w=gn.getBBox();gn.setAttribute("width",w.width+2),gn.setAttribute("height",w.height+2),gn.setAttribute("viewBox",w.x-1+" "+(w.y-1)+" "+(w.width+2)+" "+(w.height+2));var re=gn.style,Pn="translate("+(w.x-1)+"px,"+(w.y-1)+"px)";re.transform=Pn,re.webkitTransform=Pn,g[p].yOffset=w.y-1}else gn.setAttribute("width",1),gn.setAttribute("height",1);b.appendChild(gn)}}else if(y.textContent=g[p].val,y.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(y);else{this.innerElem.appendChild(b);var Rn=y.style,Vn="translate3d(0,"+-c.finalSize/1.2+"px,0)";Rn.transform=Vn,Rn.webkitTransform=Vn}this.isMasked?this.textSpans[j]=y:this.textSpans[j]=b,this.textSpans[j].style.display="block",this.textPaths[j]=y,j+=1}for(;j<this.textSpans.length;)this.textSpans[j].style.display="none",j+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var c;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),c=this.svgElement.style;var u="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";c.transform=u,c.webkitTransform=u}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var f,d,h=0,v=this.textAnimator.renderedLetters,p=this.textProperty.currentData.l;d=p.length;var m,g,y;for(f=0;f<d;f+=1)p[f].n?h+=1:(g=this.textSpans[f],y=this.textPaths[f],m=v[h],h+=1,m._mdf.m&&(this.isMasked?g.setAttribute("transform",m.m):(g.style.webkitTransform=m.m,g.style.transform=m.m)),g.style.opacity=m.o,m.sw&&m._mdf.sw&&y.setAttribute("stroke-width",m.sw),m.sc&&m._mdf.sc&&y.setAttribute("stroke",m.sc),m.fc&&m._mdf.fc&&(y.setAttribute("fill",m.fc),y.style.color=m.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var b=this.innerElem.getBBox();this.currentBBox.w!==b.width&&(this.currentBBox.w=b.width,this.svgElement.setAttribute("width",b.width)),this.currentBBox.h!==b.height&&(this.currentBBox.h=b.height,this.svgElement.setAttribute("height",b.height));var gn=1;if(this.currentBBox.w!==b.width+gn*2||this.currentBBox.h!==b.height+gn*2||this.currentBBox.x!==b.x-gn||this.currentBBox.y!==b.y-gn){this.currentBBox.w=b.width+gn*2,this.currentBBox.h=b.height+gn*2,this.currentBBox.x=b.x-gn,this.currentBBox.y=b.y-gn,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),c=this.svgElement.style;var x="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";c.transform=x,c.webkitTransform=x}}}};function HCameraElement(c,u,f){this.initFrame(),this.initBaseData(c,u,f),this.initHierarchy();var d=PropertyFactory.getProp;if(this.pe=d(this,c.pe,0,0,this),c.ks.p.s?(this.px=d(this,c.ks.p.x,1,0,this),this.py=d(this,c.ks.p.y,1,0,this),this.pz=d(this,c.ks.p.z,1,0,this)):this.p=d(this,c.ks.p,1,0,this),c.ks.a&&(this.a=d(this,c.ks.a,1,0,this)),c.ks.or.k.length&&c.ks.or.k[0].to){var h,v=c.ks.or.k.length;for(h=0;h<v;h+=1)c.ks.or.k[h].to=null,c.ks.or.k[h].ti=null}this.or=d(this,c.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=d(this,c.ks.rx,0,degToRads,this),this.ry=d(this,c.ks.ry,0,degToRads,this),this.rz=d(this,c.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var c,u=this.comp.threeDElements.length,f,d,h;for(c=0;c<u;c+=1)if(f=this.comp.threeDElements[c],f.type==="3d"){d=f.perspectiveElem.style,h=f.container.style;var v=this.pe.v+"px",p="0px 0px 0px",m="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";d.perspective=v,d.webkitPerspective=v,h.transformOrigin=p,h.mozTransformOrigin=p,h.webkitTransformOrigin=p,d.transform=m,d.webkitTransform=m}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var c=this._isFirstFrame,u,f;if(this.hierarchy)for(f=this.hierarchy.length,u=0;u<f;u+=1)c=this.hierarchy[u].finalTransform.mProp._mdf||c;if(c||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(f=this.hierarchy.length-1,u=f;u>=0;u-=1){var d=this.hierarchy[u].finalTransform.mProp;this.mat.translate(-d.p.v[0],-d.p.v[1],d.p.v[2]),this.mat.rotateX(-d.or.v[0]).rotateY(-d.or.v[1]).rotateZ(d.or.v[2]),this.mat.rotateX(-d.rx.v).rotateY(-d.ry.v).rotateZ(d.rz.v),this.mat.scale(1/d.s.v[0],1/d.s.v[1],1/d.s.v[2]),this.mat.translate(d.a.v[0],d.a.v[1],d.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var h;this.p?h=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:h=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var v=Math.sqrt(Math.pow(h[0],2)+Math.pow(h[1],2)+Math.pow(h[2],2)),p=[h[0]/v,h[1]/v,h[2]/v],m=Math.sqrt(p[2]*p[2]+p[0]*p[0]),g=Math.atan2(p[1],m),y=Math.atan2(p[0],-p[2]);this.mat.rotateY(y).rotateX(-g)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var b=!this._prevMat.equals(this.mat);if((b||this.pe._mdf)&&this.comp.threeDElements){f=this.comp.threeDElements.length;var gn,x,vn;for(u=0;u<f;u+=1)if(gn=this.comp.threeDElements[u],gn.type==="3d"){if(b){var J=this.mat.toCSS();vn=gn.container.style,vn.transform=J,vn.webkitTransform=J}this.pe._mdf&&(x=gn.perspectiveElem.style,x.perspective=this.pe.v+"px",x.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(c){this.prepareProperties(c,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(c,u,f){this.assetData=u.getAssetData(c.refId),this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var c=this.globalData.getAssetsPath(this.assetData),u=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",c),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(u),u.crossOrigin="anonymous",u.src=c,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(c,u){this.animationItem=c,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:u&&u.className||"",imagePreserveAspectRatio:u&&u.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(u&&u.hideOnTransparent===!1),filterSize:{width:u&&u.filterSize&&u.filterSize.width||"400%",height:u&&u.filterSize&&u.filterSize.height||"400%",x:u&&u.filterSize&&u.filterSize.x||"-100%",y:u&&u.filterSize&&u.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var c=this.pendingElements.pop();c.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(c,u){var f=c.getBaseElement();if(f){var d=this.layers[u];if(!d.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(f,u);else{for(var h=0,v,p,m;h<u;)this.elements[h]&&this.elements[h]!==!0&&this.elements[h].getBaseElement&&(p=this.elements[h],m=this.layers[h].ddd?this.getThreeDContainerByPos(h):p.getBaseElement(),v=m||v),h+=1;v?(!d.ddd||!this.supports3d)&&this.layerElement.insertBefore(f,v):(!d.ddd||!this.supports3d)&&this.layerElement.appendChild(f)}else this.addTo3dContainer(f,u)}},HybridRendererBase.prototype.createShape=function(c){return this.supports3d?new HShapeElement(c,this.globalData,this):new SVGShapeElement(c,this.globalData,this)},HybridRendererBase.prototype.createText=function(c){return this.supports3d?new HTextElement(c,this.globalData,this):new SVGTextLottieElement(c,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(c){return this.camera=new HCameraElement(c,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(c){return this.supports3d?new HImageElement(c,this.globalData,this):new IImageElement(c,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(c){return this.supports3d?new HSolidElement(c,this.globalData,this):new ISolidElement(c,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(c){for(var u=0,f=this.threeDElements.length;u<f;){if(this.threeDElements[u].startPos<=c&&this.threeDElements[u].endPos>=c)return this.threeDElements[u].perspectiveElem;u+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(c,u){var f=createTag("div"),d,h;styleDiv(f);var v=createTag("div");if(styleDiv(v),u==="3d"){d=f.style,d.width=this.globalData.compSize.w+"px",d.height=this.globalData.compSize.h+"px";var p="50% 50%";d.webkitTransformOrigin=p,d.mozTransformOrigin=p,d.transformOrigin=p,h=v.style;var m="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";h.transform=m,h.webkitTransform=m}f.appendChild(v);var g={container:v,perspectiveElem:f,startPos:c,endPos:c,type:u};return this.threeDElements.push(g),g},HybridRendererBase.prototype.build3dContainers=function(){var c,u=this.layers.length,f,d="";for(c=0;c<u;c+=1)this.layers[c].ddd&&this.layers[c].ty!==3?(d!=="3d"&&(d="3d",f=this.createThreeDContainer(c,"3d")),f.endPos=Math.max(f.endPos,c)):(d!=="2d"&&(d="2d",f=this.createThreeDContainer(c,"2d")),f.endPos=Math.max(f.endPos,c));for(u=this.threeDElements.length,c=u-1;c>=0;c-=1)this.resizerElem.appendChild(this.threeDElements[c].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(c,u){for(var f=0,d=this.threeDElements.length;f<d;){if(u<=this.threeDElements[f].endPos){for(var h=this.threeDElements[f].startPos,v;h<u;)this.elements[h]&&this.elements[h].getBaseElement&&(v=this.elements[h].getBaseElement()),h+=1;v?this.threeDElements[f].container.insertBefore(c,v):this.threeDElements[f].container.appendChild(c);break}f+=1}},HybridRendererBase.prototype.configAnimation=function(c){var u=createTag("div"),f=this.animationItem.wrapper,d=u.style;d.width=c.w+"px",d.height=c.h+"px",this.resizerElem=u,styleDiv(u),d.transformStyle="flat",d.mozTransformStyle="flat",d.webkitTransformStyle="flat",this.renderConfig.className&&u.setAttribute("class",this.renderConfig.className),f.appendChild(u),d.overflow="hidden";var h=createNS("svg");h.setAttribute("width","1"),h.setAttribute("height","1"),styleDiv(h),this.resizerElem.appendChild(h);var v=createNS("defs");h.appendChild(v),this.data=c,this.setupGlobalData(c,h),this.globalData.defs=v,this.layers=c.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var c,u=this.layers?this.layers.length:0;for(c=0;c<u;c+=1)this.elements[c]&&this.elements[c].destroy&&this.elements[c].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var c=this.animationItem.wrapper.offsetWidth,u=this.animationItem.wrapper.offsetHeight,f=c/u,d=this.globalData.compSize.w/this.globalData.compSize.h,h,v,p,m;d>f?(h=c/this.globalData.compSize.w,v=c/this.globalData.compSize.w,p=0,m=(u-this.globalData.compSize.h*(c/this.globalData.compSize.w))/2):(h=u/this.globalData.compSize.h,v=u/this.globalData.compSize.h,p=(c-this.globalData.compSize.w*(u/this.globalData.compSize.h))/2,m=0);var g=this.resizerElem.style;g.webkitTransform="matrix3d("+h+",0,0,0,0,"+v+",0,0,0,0,1,0,"+p+","+m+",0,1)",g.transform=g.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var c=this.globalData.compSize.w,u=this.globalData.compSize.h,f,d=this.threeDElements.length;for(f=0;f<d;f+=1){var h=this.threeDElements[f].perspectiveElem.style;h.webkitPerspective=Math.sqrt(Math.pow(c,2)+Math.pow(u,2))+"px",h.perspective=h.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(c){var u,f=c.length,d=createTag("div");for(u=0;u<f;u+=1)if(c[u].xt){var h=this.createComp(c[u],d,this.globalData.comp,null);h.initExpressions(),this.globalData.projectInterface.registerComposition(h)}};function HCompElement(c,u,f){this.layers=c.layers,this.supports3d=!c.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(c,u,f),this.tm=c.tm?PropertyFactory.getProp(this,c.tm,0,u.frameRate,this):{_placeholder:!0}}extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(c,u){for(var f=0,d;f<u;)this.elements[f]&&this.elements[f].getBaseElement&&(d=this.elements[f].getBaseElement()),f+=1;d?this.layerElement.insertBefore(c,d):this.layerElement.appendChild(c)},HCompElement.prototype.createComp=function(c){return this.supports3d?new HCompElement(c,this.globalData,this):new SVGCompElement(c,this.globalData,this)};function HybridRenderer(c,u){this.animationItem=c,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:u&&u.className||"",imagePreserveAspectRatio:u&&u.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(u&&u.hideOnTransparent===!1),filterSize:{width:u&&u.filterSize&&u.filterSize.width||"400%",height:u&&u.filterSize&&u.filterSize.height||"400%",x:u&&u.filterSize&&u.filterSize.x||"-100%",y:u&&u.filterSize&&u.filterSize.y||"-100%"},runExpressions:!u||u.runExpressions===void 0||u.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(c){return this.supports3d?new HCompElement(c,this.globalData,this):new SVGCompElement(c,this.globalData,this)};var CompExpressionInterface=function(){return function(c){function u(f){for(var d=0,h=c.layers.length;d<h;){if(c.layers[d].nm===f||c.layers[d].ind===f)return c.elements[d].layerInterface;d+=1}return null}return Object.defineProperty(u,"_name",{value:c.data.nm}),u.layer=u,u.pixelAspect=1,u.height=c.data.h||c.globalData.compSize.h,u.width=c.data.w||c.globalData.compSize.w,u.pixelAspect=1,u.frameDuration=1/c.globalData.frameRate,u.displayStartTime=0,u.numLayers=c.layers.length,u}}();function _typeof$2(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function(f){return typeof f}:_typeof$2=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},_typeof$2(c)}function seedRandom(c,u){var f=this,d=256,h=6,v=52,p="random",m=u.pow(d,h),g=u.pow(2,v),y=g*2,b=d-1,gn;function x(re,Pn,Rn){var Vn=[];Pn=Pn===!0?{entropy:!0}:Pn||{};var Wn=Fn(j(Pn.entropy?[re,w(c)]:re===null?Bn():re,3),Vn),Gn=new vn(Vn),Zn=function(){for(var er=Gn.g(h),Jn=m,ir=0;er<g;)er=(er+ir)*d,Jn*=d,ir=Gn.g(1);for(;er>=y;)er/=2,Jn/=2,ir>>>=1;return(er+ir)/Jn};return Zn.int32=function(){return Gn.g(4)|0},Zn.quick=function(){return Gn.g(4)/4294967296},Zn.double=Zn,Fn(w(Gn.S),c),(Pn.pass||Rn||function(Xn,er,Jn,ir){return ir&&(ir.S&&J(ir,Gn),Xn.state=function(){return J(Gn,{})}),Jn?(u[p]=Xn,er):Xn})(Zn,Wn,"global"in Pn?Pn.global:this==u,Pn.state)}u["seed"+p]=x;function vn(re){var Pn,Rn=re.length,Vn=this,Wn=0,Gn=Vn.i=Vn.j=0,Zn=Vn.S=[];for(Rn||(re=[Rn++]);Wn<d;)Zn[Wn]=Wn++;for(Wn=0;Wn<d;Wn++)Zn[Wn]=Zn[Gn=b&Gn+re[Wn%Rn]+(Pn=Zn[Wn])],Zn[Gn]=Pn;Vn.g=function(Xn){for(var er,Jn=0,ir=Vn.i,or=Vn.j,sr=Vn.S;Xn--;)er=sr[ir=b&ir+1],Jn=Jn*d+sr[b&(sr[ir]=sr[or=b&or+er])+(sr[or]=er)];return Vn.i=ir,Vn.j=or,Jn}}function J(re,Pn){return Pn.i=re.i,Pn.j=re.j,Pn.S=re.S.slice(),Pn}function j(re,Pn){var Rn=[],Vn=_typeof$2(re),Wn;if(Pn&&Vn=="object")for(Wn in re)try{Rn.push(j(re[Wn],Pn-1))}catch{}return Rn.length?Rn:Vn=="string"?re:re+"\0"}function Fn(re,Pn){for(var Rn=re+"",Vn,Wn=0;Wn<Rn.length;)Pn[b&Wn]=b&(Vn^=Pn[b&Wn]*19)+Rn.charCodeAt(Wn++);return w(Pn)}function Bn(){try{var re=new Uint8Array(d);return(f.crypto||f.msCrypto).getRandomValues(re),w(re)}catch{var Pn=f.navigator,Rn=Pn&&Pn.plugins;return[+new Date,f,Rn,f.screen,w(c)]}}function w(re){return String.fromCharCode.apply(0,re)}Fn(u.random(),c)}function initialize$2(c){seedRandom([],c)}var propTypes={SHAPE:"shape"};function _typeof$1(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(f){return typeof f}:_typeof$1=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},_typeof$1(c)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};initialize$2(BMMath);function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(c){return c.constructor===Array||c.constructor===Float32Array}function isNumerable(c,u){return c==="number"||u instanceof Number||c==="boolean"||c==="string"}function $bm_neg(c){var u=_typeof$1(c);if(u==="number"||c instanceof Number||u==="boolean")return-c;if($bm_isInstanceOfArray(c)){var f,d=c.length,h=[];for(f=0;f<d;f+=1)h[f]=-c[f];return h}return c.propType?c.v:-c}var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(c,u){var f=_typeof$1(c),d=_typeof$1(u);if(isNumerable(f,c)&&isNumerable(d,u)||f==="string"||d==="string")return c+u;if($bm_isInstanceOfArray(c)&&isNumerable(d,u))return c=c.slice(0),c[0]+=u,c;if(isNumerable(f,c)&&$bm_isInstanceOfArray(u))return u=u.slice(0),u[0]=c+u[0],u;if($bm_isInstanceOfArray(c)&&$bm_isInstanceOfArray(u)){for(var h=0,v=c.length,p=u.length,m=[];h<v||h<p;)(typeof c[h]=="number"||c[h]instanceof Number)&&(typeof u[h]=="number"||u[h]instanceof Number)?m[h]=c[h]+u[h]:m[h]=u[h]===void 0?c[h]:c[h]||u[h],h+=1;return m}return 0}var add=sum;function sub(c,u){var f=_typeof$1(c),d=_typeof$1(u);if(isNumerable(f,c)&&isNumerable(d,u))return f==="string"&&(c=parseInt(c,10)),d==="string"&&(u=parseInt(u,10)),c-u;if($bm_isInstanceOfArray(c)&&isNumerable(d,u))return c=c.slice(0),c[0]-=u,c;if(isNumerable(f,c)&&$bm_isInstanceOfArray(u))return u=u.slice(0),u[0]=c-u[0],u;if($bm_isInstanceOfArray(c)&&$bm_isInstanceOfArray(u)){for(var h=0,v=c.length,p=u.length,m=[];h<v||h<p;)(typeof c[h]=="number"||c[h]instanceof Number)&&(typeof u[h]=="number"||u[h]instanceof Number)?m[h]=c[h]-u[h]:m[h]=u[h]===void 0?c[h]:c[h]||u[h],h+=1;return m}return 0}function mul(c,u){var f=_typeof$1(c),d=_typeof$1(u),h;if(isNumerable(f,c)&&isNumerable(d,u))return c*u;var v,p;if($bm_isInstanceOfArray(c)&&isNumerable(d,u)){for(p=c.length,h=createTypedArray("float32",p),v=0;v<p;v+=1)h[v]=c[v]*u;return h}if(isNumerable(f,c)&&$bm_isInstanceOfArray(u)){for(p=u.length,h=createTypedArray("float32",p),v=0;v<p;v+=1)h[v]=c*u[v];return h}return 0}function div(c,u){var f=_typeof$1(c),d=_typeof$1(u),h;if(isNumerable(f,c)&&isNumerable(d,u))return c/u;var v,p;if($bm_isInstanceOfArray(c)&&isNumerable(d,u)){for(p=c.length,h=createTypedArray("float32",p),v=0;v<p;v+=1)h[v]=c[v]/u;return h}if(isNumerable(f,c)&&$bm_isInstanceOfArray(u)){for(p=u.length,h=createTypedArray("float32",p),v=0;v<p;v+=1)h[v]=c/u[v];return h}return 0}function mod(c,u){return typeof c=="string"&&(c=parseInt(c,10)),typeof u=="string"&&(u=parseInt(u,10)),c%u}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(c,u,f){if(u>f){var d=f;f=u,u=d}return Math.min(Math.max(c,u),f)}function radiansToDegrees(c){return c/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(c){return c*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(c,u){if(typeof c=="number"||c instanceof Number)return u=u||0,Math.abs(c-u);u||(u=helperLengthArray);var f,d=Math.min(c.length,u.length),h=0;for(f=0;f<d;f+=1)h+=Math.pow(u[f]-c[f],2);return Math.sqrt(h)}function normalize(c){return div(c,length(c))}function rgbToHsl(c){var u=c[0],f=c[1],d=c[2],h=Math.max(u,f,d),v=Math.min(u,f,d),p,m,g=(h+v)/2;if(h===v)p=0,m=0;else{var y=h-v;switch(m=g>.5?y/(2-h-v):y/(h+v),h){case u:p=(f-d)/y+(f<d?6:0);break;case f:p=(d-u)/y+2;break;case d:p=(u-f)/y+4;break}p/=6}return[p,m,g,c[3]]}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){var u=c[0],f=c[1],d=c[2],h,v,p;if(f===0)h=d,p=d,v=d;else{var m=d<.5?d*(1+f):d+f-d*f,g=2*d-m;h=hue2rgb(g,m,u+1/3),v=hue2rgb(g,m,u),p=hue2rgb(g,m,u-1/3)}return[h,v,p,c[3]]}function linear(c,u,f,d,h){if((d===void 0||h===void 0)&&(d=u,h=f,u=0,f=1),f<u){var v=f;f=u,u=v}if(c<=u)return d;if(c>=f)return h;var p=f===u?0:(c-u)/(f-u);if(!d.length)return d+(h-d)*p;var m,g=d.length,y=createTypedArray("float32",g);for(m=0;m<g;m+=1)y[m]=d[m]+(h[m]-d[m])*p;return y}function random(c,u){if(u===void 0&&(c===void 0?(c=0,u=1):(u=c,c=void 0)),u.length){var f,d=u.length;c||(c=createTypedArray("float32",d));var h=createTypedArray("float32",d),v=BMMath.random();for(f=0;f<d;f+=1)h[f]=c[f]+v*(u[f]-c[f]);return h}c===void 0&&(c=0);var p=BMMath.random();return c+p*(u-c)}function createPath(c,u,f,d){var h,v=c.length,p=shapePool.newElement();p.setPathData(!!d,v);var m=[0,0],g,y;for(h=0;h<v;h+=1)g=u&&u[h]?u[h]:m,y=f&&f[h]?f[h]:m,p.setTripleAt(c[h][0],c[h][1],y[0]+c[h][0],y[1]+c[h][1],g[0]+c[h][0],g[1]+c[h][1],h,!0);return p}function initiateExpression(elem,data,property){function noOp(c){return c}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=(function c(u,f){var d,h,v=this.pv.length?this.pv.length:1,p=createTypedArray("float32",v);u=5;var m=Math.floor(time*u);for(d=0,h=0;d<m;){for(h=0;h<v;h+=1)p[h]+=-f+f*2*BMMath.random();d+=1}var g=time*u,y=g-Math.floor(g),b=createTypedArray("float32",v);if(v>1){for(h=0;h<v;h+=1)b[h]=this.pv[h]+p[h]+(-f+f*2*BMMath.random())*y;return b}return this.pv+p[0]+(-f+f*2*BMMath.random())*y}).bind(this);thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty));function loopInDuration(c,u){return loopIn(c,u,!0)}function loopOutDuration(c,u){return loopOut(c,u,!0)}this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(c,u){var f=[u[0]-c[0],u[1]-c[1],u[2]-c[2]],d=Math.atan2(f[0],Math.sqrt(f[1]*f[1]+f[2]*f[2]))/degToRads,h=-Math.atan2(f[1],f[2])/degToRads;return[h,d,0]}function easeOut(c,u,f,d,h){return applyEase(easeOutBez,c,u,f,d,h)}function easeIn(c,u,f,d,h){return applyEase(easeInBez,c,u,f,d,h)}function ease(c,u,f,d,h){return applyEase(easeInOutBez,c,u,f,d,h)}function applyEase(c,u,f,d,h,v){h===void 0?(h=f,v=d):u=(u-f)/(d-f),u>1?u=1:u<0&&(u=0);var p=c(u);if($bm_isInstanceOfArray(h)){var m,g=h.length,y=createTypedArray("float32",g);for(m=0;m<g;m+=1)y[m]=(v[m]-h[m])*p+h[m];return y}return(v-h)*p+h}function nearestKey(c){var u,f=data.k.length,d,h;if(!data.k.length||typeof data.k[0]=="number")d=0,h=0;else if(d=-1,c*=elem.comp.globalData.frameRate,c<data.k[0].t)d=1,h=data.k[0].t;else{for(u=0;u<f-1;u+=1)if(c===data.k[u].t){d=u+1,h=data.k[u].t;break}else if(c>data.k[u].t&&c<data.k[u+1].t){c-data.k[u].t>data.k[u+1].t-c?(d=u+2,h=data.k[u+1].t):(d=u+1,h=data.k[u].t);break}d===-1&&(d=u+1,h=data.k[u].t)}var v={};return v.index=d,v.time=h/elem.comp.globalData.frameRate,v}function key(c){var u,f,d;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+c);c-=1,u={time:data.k[c].t/elem.comp.globalData.frameRate,value:[]};var h=Object.prototype.hasOwnProperty.call(data.k[c],"s")?data.k[c].s:data.k[c-1].e;for(d=h.length,f=0;f<d;f+=1)u[f]=h[f],u.value[f]=h[f];return u}function framesToTime(c,u){return u||(u=elem.comp.globalData.frameRate),c/u}function timeToFrames(c,u){return!c&&c!==0&&(c=time),u||(u=elem.comp.globalData.frameRate),c*u}function seedRandom(c){BMMath.seedrandom(randSeed+c)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(c,u){return typeof value=="string"?u===void 0?value.substring(c):value.substring(c,u):""}function substr(c,u){return typeof value=="string"?u===void 0?value.substr(c):value.substr(c,u):""}function posterizeTime(c){time=c===0?0:Math.floor(time*c)/c,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),parent,randSeed=Math.floor(Math.random()*1e6),globalData=elem.globalData;function executeExpression(c){return value=c,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),elemType===4&&!content&&(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),hasParent=!!(elem.hierarchy&&elem.hierarchy.length),hasParent&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt,scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var c={};c.initExpressions=u,c.resetFrame=ExpressionManager.resetFrame;function u(f){var d=0,h=[];function v(){d+=1}function p(){d-=1,d===0&&g()}function m(y){h.indexOf(y)===-1&&h.push(y)}function g(){var y,b=h.length;for(y=0;y<b;y+=1)h[y].release();h.length=0}f.renderer.compInterface=CompExpressionInterface(f.renderer),f.renderer.globalData.projectInterface.registerComposition(f.renderer),f.renderer.globalData.pushExpression=v,f.renderer.globalData.popExpression=p,f.renderer.globalData.registerExpressionProperty=m}return c}(),MaskManagerInterface=function(){function c(f,d){this._mask=f,this._data=d}Object.defineProperty(c.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(c.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var u=function(d){var h=createSizedArray(d.viewData.length),v,p=d.viewData.length;for(v=0;v<p;v+=1)h[v]=new c(d.viewData[v],d.masksProperties[v]);var m=function(y){for(v=0;v<p;){if(d.masksProperties[v].nm===y)return h[v];v+=1}return null};return m};return u}(),ExpressionPropertyInterface=function(){var c={pv:0,v:0,mult:1},u={pv:[0,0,0],v:[0,0,0],mult:1};function f(p,m,g){Object.defineProperty(p,"velocity",{get:function(){return m.getVelocityAtTime(m.comp.currentFrame)}}),p.numKeys=m.keyframes?m.keyframes.length:0,p.key=function(y){if(!p.numKeys)return 0;var b="";"s"in m.keyframes[y-1]?b=m.keyframes[y-1].s:"e"in m.keyframes[y-2]?b=m.keyframes[y-2].e:b=m.keyframes[y-2].s;var gn=g==="unidimensional"?new Number(b):Object.assign({},b);return gn.time=m.keyframes[y-1].t/m.elem.comp.globalData.frameRate,gn.value=g==="unidimensional"?b[0]:b,gn},p.valueAtTime=m.getValueAtTime,p.speedAtTime=m.getSpeedAtTime,p.velocityAtTime=m.getVelocityAtTime,p.propertyGroup=m.propertyGroup}function d(p){(!p||!("pv"in p))&&(p=c);var m=1/p.mult,g=p.pv*m,y=new Number(g);return y.value=g,f(y,p,"unidimensional"),function(){return p.k&&p.getValue(),g=p.v*m,y.value!==g&&(y=new Number(g),y.value=g,f(y,p,"unidimensional")),y}}function h(p){(!p||!("pv"in p))&&(p=u);var m=1/p.mult,g=p.data&&p.data.l||p.pv.length,y=createTypedArray("float32",g),b=createTypedArray("float32",g);return y.value=b,f(y,p,"multidimensional"),function(){p.k&&p.getValue();for(var gn=0;gn<g;gn+=1)b[gn]=p.v[gn]*m,y[gn]=b[gn];return y}}function v(){return c}return function(p){return p?p.propType==="unidimensional"?d(p):h(p):v}}(),TransformExpressionInterface=function(){return function(c){function u(p){switch(p){case"scale":case"Scale":case"ADBE Scale":case 6:return u.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return u.rotation;case"ADBE Rotate X":return u.xRotation;case"ADBE Rotate Y":return u.yRotation;case"position":case"Position":case"ADBE Position":case 2:return u.position;case"ADBE Position_0":return u.xPosition;case"ADBE Position_1":return u.yPosition;case"ADBE Position_2":return u.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return u.anchorPoint;case"opacity":case"Opacity":case 11:return u.opacity;default:return null}}Object.defineProperty(u,"rotation",{get:ExpressionPropertyInterface(c.r||c.rz)}),Object.defineProperty(u,"zRotation",{get:ExpressionPropertyInterface(c.rz||c.r)}),Object.defineProperty(u,"xRotation",{get:ExpressionPropertyInterface(c.rx)}),Object.defineProperty(u,"yRotation",{get:ExpressionPropertyInterface(c.ry)}),Object.defineProperty(u,"scale",{get:ExpressionPropertyInterface(c.s)});var f,d,h,v;return c.p?v=ExpressionPropertyInterface(c.p):(f=ExpressionPropertyInterface(c.px),d=ExpressionPropertyInterface(c.py),c.pz&&(h=ExpressionPropertyInterface(c.pz))),Object.defineProperty(u,"position",{get:function(){return c.p?v():[f(),d(),h?h():0]}}),Object.defineProperty(u,"xPosition",{get:ExpressionPropertyInterface(c.px)}),Object.defineProperty(u,"yPosition",{get:ExpressionPropertyInterface(c.py)}),Object.defineProperty(u,"zPosition",{get:ExpressionPropertyInterface(c.pz)}),Object.defineProperty(u,"anchorPoint",{get:ExpressionPropertyInterface(c.a)}),Object.defineProperty(u,"opacity",{get:ExpressionPropertyInterface(c.o)}),Object.defineProperty(u,"skew",{get:ExpressionPropertyInterface(c.sk)}),Object.defineProperty(u,"skewAxis",{get:ExpressionPropertyInterface(c.sa)}),Object.defineProperty(u,"orientation",{get:ExpressionPropertyInterface(c.or)}),u}}(),LayerExpressionInterface=function(){function c(y){var b=new Matrix;if(y!==void 0){var gn=this._elem.finalTransform.mProp.getValueAtTime(y);gn.clone(b)}else{var x=this._elem.finalTransform.mProp;x.applyToMatrix(b)}return b}function u(y,b){var gn=this.getMatrix(b);return gn.props[12]=0,gn.props[13]=0,gn.props[14]=0,this.applyPoint(gn,y)}function f(y,b){var gn=this.getMatrix(b);return this.applyPoint(gn,y)}function d(y,b){var gn=this.getMatrix(b);return gn.props[12]=0,gn.props[13]=0,gn.props[14]=0,this.invertPoint(gn,y)}function h(y,b){var gn=this.getMatrix(b);return this.invertPoint(gn,y)}function v(y,b){if(this._elem.hierarchy&&this._elem.hierarchy.length){var gn,x=this._elem.hierarchy.length;for(gn=0;gn<x;gn+=1)this._elem.hierarchy[gn].finalTransform.mProp.applyToMatrix(y)}return y.applyToPointArray(b[0],b[1],b[2]||0)}function p(y,b){if(this._elem.hierarchy&&this._elem.hierarchy.length){var gn,x=this._elem.hierarchy.length;for(gn=0;gn<x;gn+=1)this._elem.hierarchy[gn].finalTransform.mProp.applyToMatrix(y)}return y.inversePoint(b)}function m(y){var b=new Matrix;if(b.reset(),this._elem.finalTransform.mProp.applyToMatrix(b),this._elem.hierarchy&&this._elem.hierarchy.length){var gn,x=this._elem.hierarchy.length;for(gn=0;gn<x;gn+=1)this._elem.hierarchy[gn].finalTransform.mProp.applyToMatrix(b);return b.inversePoint(y)}return b.inversePoint(y)}function g(){return[1,1,1,1]}return function(y){var b;function gn(j){vn.mask=new MaskManagerInterface(j,y)}function x(j){vn.effect=j}function vn(j){switch(j){case"ADBE Root Vectors Group":case"Contents":case 2:return vn.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return b;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return vn.effect;case"ADBE Text Properties":return vn.textInterface;default:return null}}vn.getMatrix=c,vn.invertPoint=p,vn.applyPoint=v,vn.toWorld=f,vn.toWorldVec=u,vn.fromWorld=h,vn.fromWorldVec=d,vn.toComp=f,vn.fromComp=m,vn.sampleImage=g,vn.sourceRectAtTime=y.sourceRectAtTime.bind(y),vn._elem=y,b=TransformExpressionInterface(y.finalTransform.mProp);var J=getDescriptor(b,"anchorPoint");return Object.defineProperties(vn,{hasParent:{get:function(){return y.hierarchy.length}},parent:{get:function(){return y.hierarchy[0].layerInterface}},rotation:getDescriptor(b,"rotation"),scale:getDescriptor(b,"scale"),position:getDescriptor(b,"position"),opacity:getDescriptor(b,"opacity"),anchorPoint:J,anchor_point:J,transform:{get:function(){return b}},active:{get:function(){return y.isInRange}}}),vn.startTime=y.data.st,vn.index=y.data.ind,vn.source=y.data.refId,vn.height=y.data.ty===0?y.data.h:100,vn.width=y.data.ty===0?y.data.w:100,vn.inPoint=y.data.ip/y.comp.globalData.frameRate,vn.outPoint=y.data.op/y.comp.globalData.frameRate,vn._name=y.data.nm,vn.registerMaskInterface=gn,vn.registerEffectsInterface=x,vn}}(),propertyGroupFactory=function(){return function(c,u){return function(f){return f=f===void 0?1:f,f<=0?c:u(f-1)}}}(),PropertyInterface=function(){return function(c,u){var f={_name:c};function d(h){return h=h===void 0?1:h,h<=0?f:u(h-1)}return d}}(),EffectsExpressionInterface=function(){var c={createEffectsInterface:u};function u(h,v){if(h.effectsManager){var p=[],m=h.data.ef,g,y=h.effectsManager.effectElements.length;for(g=0;g<y;g+=1)p.push(f(m[g],h.effectsManager.effectElements[g],v,h));var b=h.data.ef||[],gn=function(vn){for(g=0,y=b.length;g<y;){if(vn===b[g].nm||vn===b[g].mn||vn===b[g].ix)return p[g];g+=1}return null};return Object.defineProperty(gn,"numProperties",{get:function(){return b.length}}),gn}return null}function f(h,v,p,m){function g(vn){for(var J=h.ef,j=0,Fn=J.length;j<Fn;){if(vn===J[j].nm||vn===J[j].mn||vn===J[j].ix)return J[j].ty===5?b[j]:b[j]();j+=1}throw new Error}var y=propertyGroupFactory(g,p),b=[],gn,x=h.ef.length;for(gn=0;gn<x;gn+=1)h.ef[gn].ty===5?b.push(f(h.ef[gn],v.effectElements[gn],v.effectElements[gn].propertyGroup,m)):b.push(d(v.effectElements[gn],h.ef[gn].ty,m,y));return h.mn==="ADBE Color Control"&&Object.defineProperty(g,"color",{get:function(){return b[0]()}}),Object.defineProperties(g,{numProperties:{get:function(){return h.np}},_name:{value:h.nm},propertyGroup:{value:y}}),g.enabled=h.en!==0,g.active=g.enabled,g}function d(h,v,p,m){var g=ExpressionPropertyInterface(h.p);function y(){return v===10?p.comp.compInterface(h.p.v):g()}return h.p.setGroupProperty&&h.p.setGroupProperty(PropertyInterface("",m)),y}return c}(),ShapePathInterface=function(){return function(u,f,d){var h=f.sh;function v(m){return m==="Shape"||m==="shape"||m==="Path"||m==="path"||m==="ADBE Vector Shape"||m===2?v.path:null}var p=propertyGroupFactory(v,d);return h.setGroupProperty(PropertyInterface("Path",p)),Object.defineProperties(v,{path:{get:function(){return h.k&&h.getValue(),h}},shape:{get:function(){return h.k&&h.getValue(),h}},_name:{value:u.nm},ix:{value:u.ix},propertyIndex:{value:u.ix},mn:{value:u.mn},propertyGroup:{value:d}}),v}}(),ShapeExpressionInterface=function(){function c(J,j,Fn){var Bn=[],w,re=J?J.length:0;for(w=0;w<re;w+=1)J[w].ty==="gr"?Bn.push(f(J[w],j[w],Fn)):J[w].ty==="fl"?Bn.push(d(J[w],j[w],Fn)):J[w].ty==="st"?Bn.push(p(J[w],j[w],Fn)):J[w].ty==="tm"?Bn.push(m(J[w],j[w],Fn)):J[w].ty==="tr"||(J[w].ty==="el"?Bn.push(y(J[w],j[w],Fn)):J[w].ty==="sr"?Bn.push(b(J[w],j[w],Fn)):J[w].ty==="sh"?Bn.push(ShapePathInterface(J[w],j[w],Fn)):J[w].ty==="rc"?Bn.push(gn(J[w],j[w],Fn)):J[w].ty==="rd"?Bn.push(x(J[w],j[w],Fn)):J[w].ty==="rp"?Bn.push(vn(J[w],j[w],Fn)):J[w].ty==="gf"?Bn.push(h(J[w],j[w],Fn)):Bn.push(v(J[w],j[w])));return Bn}function u(J,j,Fn){var Bn,w=function(Rn){for(var Vn=0,Wn=Bn.length;Vn<Wn;){if(Bn[Vn]._name===Rn||Bn[Vn].mn===Rn||Bn[Vn].propertyIndex===Rn||Bn[Vn].ix===Rn||Bn[Vn].ind===Rn)return Bn[Vn];Vn+=1}return typeof Rn=="number"?Bn[Rn-1]:null};w.propertyGroup=propertyGroupFactory(w,Fn),Bn=c(J.it,j.it,w.propertyGroup),w.numProperties=Bn.length;var re=g(J.it[J.it.length-1],j.it[j.it.length-1],w.propertyGroup);return w.transform=re,w.propertyIndex=J.cix,w._name=J.nm,w}function f(J,j,Fn){var Bn=function(Rn){switch(Rn){case"ADBE Vectors Group":case"Contents":case 2:return Bn.content;default:return Bn.transform}};Bn.propertyGroup=propertyGroupFactory(Bn,Fn);var w=u(J,j,Bn.propertyGroup),re=g(J.it[J.it.length-1],j.it[j.it.length-1],Bn.propertyGroup);return Bn.content=w,Bn.transform=re,Object.defineProperty(Bn,"_name",{get:function(){return J.nm}}),Bn.numProperties=J.np,Bn.propertyIndex=J.ix,Bn.nm=J.nm,Bn.mn=J.mn,Bn}function d(J,j,Fn){function Bn(w){return w==="Color"||w==="color"?Bn.color:w==="Opacity"||w==="opacity"?Bn.opacity:null}return Object.defineProperties(Bn,{color:{get:ExpressionPropertyInterface(j.c)},opacity:{get:ExpressionPropertyInterface(j.o)},_name:{value:J.nm},mn:{value:J.mn}}),j.c.setGroupProperty(PropertyInterface("Color",Fn)),j.o.setGroupProperty(PropertyInterface("Opacity",Fn)),Bn}function h(J,j,Fn){function Bn(w){return w==="Start Point"||w==="start point"?Bn.startPoint:w==="End Point"||w==="end point"?Bn.endPoint:w==="Opacity"||w==="opacity"?Bn.opacity:null}return Object.defineProperties(Bn,{startPoint:{get:ExpressionPropertyInterface(j.s)},endPoint:{get:ExpressionPropertyInterface(j.e)},opacity:{get:ExpressionPropertyInterface(j.o)},type:{get:function(){return"a"}},_name:{value:J.nm},mn:{value:J.mn}}),j.s.setGroupProperty(PropertyInterface("Start Point",Fn)),j.e.setGroupProperty(PropertyInterface("End Point",Fn)),j.o.setGroupProperty(PropertyInterface("Opacity",Fn)),Bn}function v(){function J(){return null}return J}function p(J,j,Fn){var Bn=propertyGroupFactory(Wn,Fn),w=propertyGroupFactory(Vn,Bn);function re(Gn){Object.defineProperty(Vn,J.d[Gn].nm,{get:ExpressionPropertyInterface(j.d.dataProps[Gn].p)})}var Pn,Rn=J.d?J.d.length:0,Vn={};for(Pn=0;Pn<Rn;Pn+=1)re(Pn),j.d.dataProps[Pn].p.setGroupProperty(w);function Wn(Gn){return Gn==="Color"||Gn==="color"?Wn.color:Gn==="Opacity"||Gn==="opacity"?Wn.opacity:Gn==="Stroke Width"||Gn==="stroke width"?Wn.strokeWidth:null}return Object.defineProperties(Wn,{color:{get:ExpressionPropertyInterface(j.c)},opacity:{get:ExpressionPropertyInterface(j.o)},strokeWidth:{get:ExpressionPropertyInterface(j.w)},dash:{get:function(){return Vn}},_name:{value:J.nm},mn:{value:J.mn}}),j.c.setGroupProperty(PropertyInterface("Color",Bn)),j.o.setGroupProperty(PropertyInterface("Opacity",Bn)),j.w.setGroupProperty(PropertyInterface("Stroke Width",Bn)),Wn}function m(J,j,Fn){function Bn(re){return re===J.e.ix||re==="End"||re==="end"?Bn.end:re===J.s.ix?Bn.start:re===J.o.ix?Bn.offset:null}var w=propertyGroupFactory(Bn,Fn);return Bn.propertyIndex=J.ix,j.s.setGroupProperty(PropertyInterface("Start",w)),j.e.setGroupProperty(PropertyInterface("End",w)),j.o.setGroupProperty(PropertyInterface("Offset",w)),Bn.propertyIndex=J.ix,Bn.propertyGroup=Fn,Object.defineProperties(Bn,{start:{get:ExpressionPropertyInterface(j.s)},end:{get:ExpressionPropertyInterface(j.e)},offset:{get:ExpressionPropertyInterface(j.o)},_name:{value:J.nm}}),Bn.mn=J.mn,Bn}function g(J,j,Fn){function Bn(re){return J.a.ix===re||re==="Anchor Point"?Bn.anchorPoint:J.o.ix===re||re==="Opacity"?Bn.opacity:J.p.ix===re||re==="Position"?Bn.position:J.r.ix===re||re==="Rotation"||re==="ADBE Vector Rotation"?Bn.rotation:J.s.ix===re||re==="Scale"?Bn.scale:J.sk&&J.sk.ix===re||re==="Skew"?Bn.skew:J.sa&&J.sa.ix===re||re==="Skew Axis"?Bn.skewAxis:null}var w=propertyGroupFactory(Bn,Fn);return j.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",w)),j.transform.mProps.p.setGroupProperty(PropertyInterface("Position",w)),j.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",w)),j.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",w)),j.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",w)),j.transform.mProps.sk&&(j.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",w)),j.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",w))),j.transform.op.setGroupProperty(PropertyInterface("Opacity",w)),Object.defineProperties(Bn,{opacity:{get:ExpressionPropertyInterface(j.transform.mProps.o)},position:{get:ExpressionPropertyInterface(j.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(j.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(j.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(j.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(j.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(j.transform.mProps.sa)},_name:{value:J.nm}}),Bn.ty="tr",Bn.mn=J.mn,Bn.propertyGroup=Fn,Bn}function y(J,j,Fn){function Bn(Pn){return J.p.ix===Pn?Bn.position:J.s.ix===Pn?Bn.size:null}var w=propertyGroupFactory(Bn,Fn);Bn.propertyIndex=J.ix;var re=j.sh.ty==="tm"?j.sh.prop:j.sh;return re.s.setGroupProperty(PropertyInterface("Size",w)),re.p.setGroupProperty(PropertyInterface("Position",w)),Object.defineProperties(Bn,{size:{get:ExpressionPropertyInterface(re.s)},position:{get:ExpressionPropertyInterface(re.p)},_name:{value:J.nm}}),Bn.mn=J.mn,Bn}function b(J,j,Fn){function Bn(Pn){return J.p.ix===Pn?Bn.position:J.r.ix===Pn?Bn.rotation:J.pt.ix===Pn?Bn.points:J.or.ix===Pn||Pn==="ADBE Vector Star Outer Radius"?Bn.outerRadius:J.os.ix===Pn?Bn.outerRoundness:J.ir&&(J.ir.ix===Pn||Pn==="ADBE Vector Star Inner Radius")?Bn.innerRadius:J.is&&J.is.ix===Pn?Bn.innerRoundness:null}var w=propertyGroupFactory(Bn,Fn),re=j.sh.ty==="tm"?j.sh.prop:j.sh;return Bn.propertyIndex=J.ix,re.or.setGroupProperty(PropertyInterface("Outer Radius",w)),re.os.setGroupProperty(PropertyInterface("Outer Roundness",w)),re.pt.setGroupProperty(PropertyInterface("Points",w)),re.p.setGroupProperty(PropertyInterface("Position",w)),re.r.setGroupProperty(PropertyInterface("Rotation",w)),J.ir&&(re.ir.setGroupProperty(PropertyInterface("Inner Radius",w)),re.is.setGroupProperty(PropertyInterface("Inner Roundness",w))),Object.defineProperties(Bn,{position:{get:ExpressionPropertyInterface(re.p)},rotation:{get:ExpressionPropertyInterface(re.r)},points:{get:ExpressionPropertyInterface(re.pt)},outerRadius:{get:ExpressionPropertyInterface(re.or)},outerRoundness:{get:ExpressionPropertyInterface(re.os)},innerRadius:{get:ExpressionPropertyInterface(re.ir)},innerRoundness:{get:ExpressionPropertyInterface(re.is)},_name:{value:J.nm}}),Bn.mn=J.mn,Bn}function gn(J,j,Fn){function Bn(Pn){return J.p.ix===Pn?Bn.position:J.r.ix===Pn?Bn.roundness:J.s.ix===Pn||Pn==="Size"||Pn==="ADBE Vector Rect Size"?Bn.size:null}var w=propertyGroupFactory(Bn,Fn),re=j.sh.ty==="tm"?j.sh.prop:j.sh;return Bn.propertyIndex=J.ix,re.p.setGroupProperty(PropertyInterface("Position",w)),re.s.setGroupProperty(PropertyInterface("Size",w)),re.r.setGroupProperty(PropertyInterface("Rotation",w)),Object.defineProperties(Bn,{position:{get:ExpressionPropertyInterface(re.p)},roundness:{get:ExpressionPropertyInterface(re.r)},size:{get:ExpressionPropertyInterface(re.s)},_name:{value:J.nm}}),Bn.mn=J.mn,Bn}function x(J,j,Fn){function Bn(Pn){return J.r.ix===Pn||Pn==="Round Corners 1"?Bn.radius:null}var w=propertyGroupFactory(Bn,Fn),re=j;return Bn.propertyIndex=J.ix,re.rd.setGroupProperty(PropertyInterface("Radius",w)),Object.defineProperties(Bn,{radius:{get:ExpressionPropertyInterface(re.rd)},_name:{value:J.nm}}),Bn.mn=J.mn,Bn}function vn(J,j,Fn){function Bn(Pn){return J.c.ix===Pn||Pn==="Copies"?Bn.copies:J.o.ix===Pn||Pn==="Offset"?Bn.offset:null}var w=propertyGroupFactory(Bn,Fn),re=j;return Bn.propertyIndex=J.ix,re.c.setGroupProperty(PropertyInterface("Copies",w)),re.o.setGroupProperty(PropertyInterface("Offset",w)),Object.defineProperties(Bn,{copies:{get:ExpressionPropertyInterface(re.c)},offset:{get:ExpressionPropertyInterface(re.o)},_name:{value:J.nm}}),Bn.mn=J.mn,Bn}return function(J,j,Fn){var Bn;function w(Pn){if(typeof Pn=="number")return Pn=Pn===void 0?1:Pn,Pn===0?Fn:Bn[Pn-1];for(var Rn=0,Vn=Bn.length;Rn<Vn;){if(Bn[Rn]._name===Pn)return Bn[Rn];Rn+=1}return null}function re(){return Fn}return w.propertyGroup=propertyGroupFactory(w,re),Bn=c(J,j,w.propertyGroup),w.numProperties=Bn.length,w._name="Contents",w}}(),TextExpressionInterface=function(){return function(c){var u;function f(d){switch(d){case"ADBE Text Document":return f.sourceText;default:return null}}return Object.defineProperty(f,"sourceText",{get:function(){c.textProperty.getValue();var h=c.textProperty.currentData.t;return(!u||h!==u.value)&&(u=new String(h),u.value=h||new String(h),Object.defineProperty(u,"style",{get:function(){return{fillColor:c.textProperty.currentData.fc}}})),u}}),f}}();function _typeof(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(f){return typeof f}:_typeof=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},_typeof(c)}var FootageInterface=function(){var c=function(d){var h="",v=d.getFootageData();function p(){return h="",v=d.getFootageData(),m}function m(g){if(v[g])return h=g,v=v[g],_typeof(v)==="object"?m:v;var y=g.indexOf(h);if(y!==-1){var b=parseInt(g.substr(y+h.length),10);return v=v[b],_typeof(v)==="object"?m:v}return""}return p},u=function(d){function h(v){return v==="Outline"?h.outlineInterface():null}return h._name="Outline",h.outlineInterface=c(d),h};return function(f){function d(h){return h==="Data"?d.dataInterface:null}return d._name="Data",d.dataInterface=u(f),d}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(c){return interfaces[c]||null}var expressionHelpers=function(){function c(p,m,g){m.x&&(g.k=!0,g.x=!0,g.initiateExpression=ExpressionManager.initiateExpression,g.effectsSequence.push(g.initiateExpression(p,m,g).bind(g)))}function u(p){return p*=this.elem.globalData.frameRate,p-=this.offsetTime,p!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<p?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(p,this._cachingAtTime),this._cachingAtTime.lastFrame=p),this._cachingAtTime.value}function f(p){var m=-.01,g=this.getValueAtTime(p),y=this.getValueAtTime(p+m),b=0;if(g.length){var gn;for(gn=0;gn<g.length;gn+=1)b+=Math.pow(y[gn]-g[gn],2);b=Math.sqrt(b)*100}else b=0;return b}function d(p){if(this.vel!==void 0)return this.vel;var m=-.001,g=this.getValueAtTime(p),y=this.getValueAtTime(p+m),b;if(g.length){b=createTypedArray("float32",g.length);var gn;for(gn=0;gn<g.length;gn+=1)b[gn]=(y[gn]-g[gn])/m}else b=(y-g)/m;return b}function h(){return this.pv}function v(p){this.propertyGroup=p}return{searchExpressions:c,getSpeedAtTime:f,getVelocityAtTime:d,getValueAtTime:u,getStaticValueAtTime:h,setGroupProperty:v}}();function addPropertyDecorator(){function c(x,vn,J){if(!this.k||!this.keyframes)return this.pv;x=x?x.toLowerCase():"";var j=this.comp.renderedFrame,Fn=this.keyframes,Bn=Fn[Fn.length-1].t;if(j<=Bn)return this.pv;var w,re;J?(vn?w=Math.abs(Bn-this.elem.comp.globalData.frameRate*vn):w=Math.max(0,Bn-this.elem.data.ip),re=Bn-w):((!vn||vn>Fn.length-1)&&(vn=Fn.length-1),re=Fn[Fn.length-1-vn].t,w=Bn-re);var Pn,Rn,Vn;if(x==="pingpong"){var Wn=Math.floor((j-re)/w);if(Wn%2!==0)return this.getValueAtTime((w-(j-re)%w+re)/this.comp.globalData.frameRate,0)}else if(x==="offset"){var Gn=this.getValueAtTime(re/this.comp.globalData.frameRate,0),Zn=this.getValueAtTime(Bn/this.comp.globalData.frameRate,0),Xn=this.getValueAtTime(((j-re)%w+re)/this.comp.globalData.frameRate,0),er=Math.floor((j-re)/w);if(this.pv.length){for(Vn=new Array(Gn.length),Rn=Vn.length,Pn=0;Pn<Rn;Pn+=1)Vn[Pn]=(Zn[Pn]-Gn[Pn])*er+Xn[Pn];return Vn}return(Zn-Gn)*er+Xn}else if(x==="continue"){var Jn=this.getValueAtTime(Bn/this.comp.globalData.frameRate,0),ir=this.getValueAtTime((Bn-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(Vn=new Array(Jn.length),Rn=Vn.length,Pn=0;Pn<Rn;Pn+=1)Vn[Pn]=Jn[Pn]+(Jn[Pn]-ir[Pn])*((j-Bn)/this.comp.globalData.frameRate)/5e-4;return Vn}return Jn+(Jn-ir)*((j-Bn)/.001)}return this.getValueAtTime(((j-re)%w+re)/this.comp.globalData.frameRate,0)}function u(x,vn,J){if(!this.k)return this.pv;x=x?x.toLowerCase():"";var j=this.comp.renderedFrame,Fn=this.keyframes,Bn=Fn[0].t;if(j>=Bn)return this.pv;var w,re;J?(vn?w=Math.abs(this.elem.comp.globalData.frameRate*vn):w=Math.max(0,this.elem.data.op-Bn),re=Bn+w):((!vn||vn>Fn.length-1)&&(vn=Fn.length-1),re=Fn[vn].t,w=re-Bn);var Pn,Rn,Vn;if(x==="pingpong"){var Wn=Math.floor((Bn-j)/w);if(Wn%2===0)return this.getValueAtTime(((Bn-j)%w+Bn)/this.comp.globalData.frameRate,0)}else if(x==="offset"){var Gn=this.getValueAtTime(Bn/this.comp.globalData.frameRate,0),Zn=this.getValueAtTime(re/this.comp.globalData.frameRate,0),Xn=this.getValueAtTime((w-(Bn-j)%w+Bn)/this.comp.globalData.frameRate,0),er=Math.floor((Bn-j)/w)+1;if(this.pv.length){for(Vn=new Array(Gn.length),Rn=Vn.length,Pn=0;Pn<Rn;Pn+=1)Vn[Pn]=Xn[Pn]-(Zn[Pn]-Gn[Pn])*er;return Vn}return Xn-(Zn-Gn)*er}else if(x==="continue"){var Jn=this.getValueAtTime(Bn/this.comp.globalData.frameRate,0),ir=this.getValueAtTime((Bn+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(Vn=new Array(Jn.length),Rn=Vn.length,Pn=0;Pn<Rn;Pn+=1)Vn[Pn]=Jn[Pn]+(Jn[Pn]-ir[Pn])*(Bn-j)/.001;return Vn}return Jn+(Jn-ir)*(Bn-j)/.001}return this.getValueAtTime((w-((Bn-j)%w+Bn))/this.comp.globalData.frameRate,0)}function f(x,vn){if(!this.k)return this.pv;if(x=(x||.4)*.5,vn=Math.floor(vn||5),vn<=1)return this.pv;var J=this.comp.renderedFrame/this.comp.globalData.frameRate,j=J-x,Fn=J+x,Bn=vn>1?(Fn-j)/(vn-1):1,w=0,re=0,Pn;this.pv.length?Pn=createTypedArray("float32",this.pv.length):Pn=0;for(var Rn;w<vn;){if(Rn=this.getValueAtTime(j+w*Bn),this.pv.length)for(re=0;re<this.pv.length;re+=1)Pn[re]+=Rn[re];else Pn+=Rn;w+=1}if(this.pv.length)for(re=0;re<this.pv.length;re+=1)Pn[re]/=vn;else Pn/=vn;return Pn}function d(x){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var vn=this._transformCachingAtTime.v;if(vn.cloneFromProps(this.pre.props),this.appliedTransformations<1){var J=this.a.getValueAtTime(x);vn.translate(-J[0]*this.a.mult,-J[1]*this.a.mult,J[2]*this.a.mult)}if(this.appliedTransformations<2){var j=this.s.getValueAtTime(x);vn.scale(j[0]*this.s.mult,j[1]*this.s.mult,j[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var Fn=this.sk.getValueAtTime(x),Bn=this.sa.getValueAtTime(x);vn.skewFromAxis(-Fn*this.sk.mult,Bn*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var w=this.r.getValueAtTime(x);vn.rotate(-w*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var re=this.rz.getValueAtTime(x),Pn=this.ry.getValueAtTime(x),Rn=this.rx.getValueAtTime(x),Vn=this.or.getValueAtTime(x);vn.rotateZ(-re*this.rz.mult).rotateY(Pn*this.ry.mult).rotateX(Rn*this.rx.mult).rotateZ(-Vn[2]*this.or.mult).rotateY(Vn[1]*this.or.mult).rotateX(Vn[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var Wn=this.px.getValueAtTime(x),Gn=this.py.getValueAtTime(x);if(this.data.p.z){var Zn=this.pz.getValueAtTime(x);vn.translate(Wn*this.px.mult,Gn*this.py.mult,-Zn*this.pz.mult)}else vn.translate(Wn*this.px.mult,Gn*this.py.mult,0)}else{var Xn=this.p.getValueAtTime(x);vn.translate(Xn[0]*this.p.mult,Xn[1]*this.p.mult,-Xn[2]*this.p.mult)}return vn}function h(){return this.v.clone(new Matrix)}var v=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(x,vn,J){var j=v(x,vn,J);return j.dynamicProperties.length?j.getValueAtTime=d.bind(j):j.getValueAtTime=h.bind(j),j.setGroupProperty=expressionHelpers.setGroupProperty,j};var p=PropertyFactory.getProp;PropertyFactory.getProp=function(x,vn,J,j,Fn){var Bn=p(x,vn,J,j,Fn);Bn.kf?Bn.getValueAtTime=expressionHelpers.getValueAtTime.bind(Bn):Bn.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(Bn),Bn.setGroupProperty=expressionHelpers.setGroupProperty,Bn.loopOut=c,Bn.loopIn=u,Bn.smooth=f,Bn.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(Bn),Bn.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(Bn),Bn.numKeys=vn.a===1?vn.k.length:0,Bn.propertyIndex=vn.ix;var w=0;return J!==0&&(w=createTypedArray("float32",vn.a===1?vn.k[0].s.length:vn.k.length)),Bn._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:w},expressionHelpers.searchExpressions(x,vn,Bn),Bn.k&&Fn.addDynamicProperty(Bn),Bn};function m(x){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),x*=this.elem.globalData.frameRate,x-=this.offsetTime,x!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<x?this._caching.lastIndex:0,this._cachingAtTime.lastTime=x,this.interpolateShape(x,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var g=ShapePropertyFactory.getConstructorFunction(),y=ShapePropertyFactory.getKeyframedConstructorFunction();function b(){}b.prototype={vertices:function(vn,J){this.k&&this.getValue();var j=this.v;J!==void 0&&(j=this.getValueAtTime(J,0));var Fn,Bn=j._length,w=j[vn],re=j.v,Pn=createSizedArray(Bn);for(Fn=0;Fn<Bn;Fn+=1)vn==="i"||vn==="o"?Pn[Fn]=[w[Fn][0]-re[Fn][0],w[Fn][1]-re[Fn][1]]:Pn[Fn]=[w[Fn][0],w[Fn][1]];return Pn},points:function(vn){return this.vertices("v",vn)},inTangents:function(vn){return this.vertices("i",vn)},outTangents:function(vn){return this.vertices("o",vn)},isClosed:function(){return this.v.c},pointOnPath:function(vn,J){var j=this.v;J!==void 0&&(j=this.getValueAtTime(J,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(j));for(var Fn=this._segmentsLength,Bn=Fn.lengths,w=Fn.totalLength*vn,re=0,Pn=Bn.length,Rn=0,Vn;re<Pn;){if(Rn+Bn[re].addedLength>w){var Wn=re,Gn=j.c&&re===Pn-1?0:re+1,Zn=(w-Rn)/Bn[re].addedLength;Vn=bez.getPointInSegment(j.v[Wn],j.v[Gn],j.o[Wn],j.i[Gn],Zn,Bn[re]);break}else Rn+=Bn[re].addedLength;re+=1}return Vn||(Vn=j.c?[j.v[0][0],j.v[0][1]]:[j.v[j._length-1][0],j.v[j._length-1][1]]),Vn},vectorOnPath:function(vn,J,j){vn==1?vn=this.v.c:vn==0&&(vn=.999);var Fn=this.pointOnPath(vn,J),Bn=this.pointOnPath(vn+.001,J),w=Bn[0]-Fn[0],re=Bn[1]-Fn[1],Pn=Math.sqrt(Math.pow(w,2)+Math.pow(re,2));if(Pn===0)return[0,0];var Rn=j==="tangent"?[w/Pn,re/Pn]:[-re/Pn,w/Pn];return Rn},tangentOnPath:function(vn,J){return this.vectorOnPath(vn,J,"tangent")},normalOnPath:function(vn,J){return this.vectorOnPath(vn,J,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([b],g),extendPrototype([b],y),y.prototype.getValueAtTime=m,y.prototype.initiateExpression=ExpressionManager.initiateExpression;var gn=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(x,vn,J,j,Fn){var Bn=gn(x,vn,J,j,Fn);return Bn.propertyIndex=vn.ix,Bn.lock=!1,J===3?expressionHelpers.searchExpressions(x,vn.pt,Bn):J===4&&expressionHelpers.searchExpressions(x,vn.ks,Bn),Bn.k&&x.addDynamicProperty(Bn),Bn}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function c(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(u,f){var d=this.calculateExpression(f);if(u.t!==d){var h={};return this.copyData(h,u),h.t=d.toString(),h.__complete=!1,h}return u},TextProperty.prototype.searchProperty=function(){var u=this.searchKeyframes(),f=this.searchExpressions();return this.kf=u||f,this.kf},TextProperty.prototype.searchExpressions=c}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function c(u,f){var d=createNS("feMerge");d.setAttribute("result",u);var h,v;for(v=0;v<f.length;v+=1)h=createNS("feMergeNode"),h.setAttribute("in",f[v]),d.appendChild(h),d.appendChild(h);return d}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(c,u,f,d,h){this.filterManager=u;var v=createNS("feColorMatrix");v.setAttribute("type","matrix"),v.setAttribute("color-interpolation-filters","linearRGB"),v.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=v,v.setAttribute("result",d+"_tint_1"),c.appendChild(v),v=createNS("feColorMatrix"),v.setAttribute("type","matrix"),v.setAttribute("color-interpolation-filters","sRGB"),v.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),v.setAttribute("result",d+"_tint_2"),c.appendChild(v),this.matrixFilter=v;var p=this.createMergeNode(d,[h,d+"_tint_1",d+"_tint_2"]);c.appendChild(p)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(c){if(c||this.filterManager._mdf){var u=this.filterManager.effectElements[0].p.v,f=this.filterManager.effectElements[1].p.v,d=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+d+" 0"),this.matrixFilter.setAttribute("values",f[0]-u[0]+" 0 0 0 "+u[0]+" "+(f[1]-u[1])+" 0 0 0 "+u[1]+" "+(f[2]-u[2])+" 0 0 0 "+u[2]+" 0 0 0 1 0")}};function SVGFillFilter(c,u,f,d){this.filterManager=u;var h=createNS("feColorMatrix");h.setAttribute("type","matrix"),h.setAttribute("color-interpolation-filters","sRGB"),h.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),h.setAttribute("result",d),c.appendChild(h),this.matrixFilter=h}SVGFillFilter.prototype.renderFrame=function(c){if(c||this.filterManager._mdf){var u=this.filterManager.effectElements[2].p.v,f=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+u[0]+" 0 0 0 0 "+u[1]+" 0 0 0 0 "+u[2]+" 0 0 0 "+f+" 0")}};function SVGStrokeEffect(c,u,f){this.initialized=!1,this.filterManager=u,this.elem=f,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var c=this.elem.layerElement.children||this.elem.layerElement.childNodes,u,f,d,h;for(this.filterManager.effectElements[1].p.v===1?(h=this.elem.maskManager.masksProperties.length,d=0):(d=this.filterManager.effectElements[0].p.v-1,h=d+1),f=createNS("g"),f.setAttribute("fill","none"),f.setAttribute("stroke-linecap","round"),f.setAttribute("stroke-dashoffset",1),d;d<h;d+=1)u=createNS("path"),f.appendChild(u),this.paths.push({p:u,m:d});if(this.filterManager.effectElements[10].p.v===3){var v=createNS("mask"),p=createElementID();v.setAttribute("id",p),v.setAttribute("mask-type","alpha"),v.appendChild(f),this.elem.globalData.defs.appendChild(v);var m=createNS("g");for(m.setAttribute("mask","url("+getLocationHref()+"#"+p+")");c[0];)m.appendChild(c[0]);this.elem.layerElement.appendChild(m),this.masker=v,f.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(c=this.elem.layerElement.children||this.elem.layerElement.childNodes;c.length;)this.elem.layerElement.removeChild(c[0]);this.elem.layerElement.appendChild(f),this.elem.layerElement.removeAttribute("mask"),f.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=f},SVGStrokeEffect.prototype.renderFrame=function(c){this.initialized||this.initialize();var u,f=this.paths.length,d,h;for(u=0;u<f;u+=1)if(this.paths[u].m!==-1&&(d=this.elem.maskManager.viewData[this.paths[u].m],h=this.paths[u].p,(c||this.filterManager._mdf||d.prop._mdf)&&h.setAttribute("d",d.lastPath),c||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||d.prop._mdf)){var v;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var p=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,m=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,g=h.getTotalLength();v="0 0 0 "+g*p+" ";var y=g*(m-p),b=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,gn=Math.floor(y/b),x;for(x=0;x<gn;x+=1)v+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";v+="0 "+g*10+" 0 0"}else v="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;h.setAttribute("stroke-dasharray",v)}if((c||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(c||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(c||this.filterManager.effectElements[3].p._mdf)){var vn=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(vn[0]*255)+","+bmFloor(vn[1]*255)+","+bmFloor(vn[2]*255)+")")}};function SVGTritoneFilter(c,u,f,d){this.filterManager=u;var h=createNS("feColorMatrix");h.setAttribute("type","matrix"),h.setAttribute("color-interpolation-filters","linearRGB"),h.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),c.appendChild(h);var v=createNS("feComponentTransfer");v.setAttribute("color-interpolation-filters","sRGB"),v.setAttribute("result",d),this.matrixFilter=v;var p=createNS("feFuncR");p.setAttribute("type","table"),v.appendChild(p),this.feFuncR=p;var m=createNS("feFuncG");m.setAttribute("type","table"),v.appendChild(m),this.feFuncG=m;var g=createNS("feFuncB");g.setAttribute("type","table"),v.appendChild(g),this.feFuncB=g,c.appendChild(v)}SVGTritoneFilter.prototype.renderFrame=function(c){if(c||this.filterManager._mdf){var u=this.filterManager.effectElements[0].p.v,f=this.filterManager.effectElements[1].p.v,d=this.filterManager.effectElements[2].p.v,h=d[0]+" "+f[0]+" "+u[0],v=d[1]+" "+f[1]+" "+u[1],p=d[2]+" "+f[2]+" "+u[2];this.feFuncR.setAttribute("tableValues",h),this.feFuncG.setAttribute("tableValues",v),this.feFuncB.setAttribute("tableValues",p)}};function SVGProLevelsFilter(c,u,f,d){this.filterManager=u;var h=this.filterManager.effectElements,v=createNS("feComponentTransfer");(h[10].p.k||h[10].p.v!==0||h[11].p.k||h[11].p.v!==1||h[12].p.k||h[12].p.v!==1||h[13].p.k||h[13].p.v!==0||h[14].p.k||h[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",v)),(h[17].p.k||h[17].p.v!==0||h[18].p.k||h[18].p.v!==1||h[19].p.k||h[19].p.v!==1||h[20].p.k||h[20].p.v!==0||h[21].p.k||h[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",v)),(h[24].p.k||h[24].p.v!==0||h[25].p.k||h[25].p.v!==1||h[26].p.k||h[26].p.v!==1||h[27].p.k||h[27].p.v!==0||h[28].p.k||h[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",v)),(h[31].p.k||h[31].p.v!==0||h[32].p.k||h[32].p.v!==1||h[33].p.k||h[33].p.v!==1||h[34].p.k||h[34].p.v!==0||h[35].p.k||h[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",v)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(v.setAttribute("color-interpolation-filters","sRGB"),c.appendChild(v)),(h[3].p.k||h[3].p.v!==0||h[4].p.k||h[4].p.v!==1||h[5].p.k||h[5].p.v!==1||h[6].p.k||h[6].p.v!==0||h[7].p.k||h[7].p.v!==1)&&(v=createNS("feComponentTransfer"),v.setAttribute("color-interpolation-filters","sRGB"),v.setAttribute("result",d),c.appendChild(v),this.feFuncRComposed=this.createFeFunc("feFuncR",v),this.feFuncGComposed=this.createFeFunc("feFuncG",v),this.feFuncBComposed=this.createFeFunc("feFuncB",v))}SVGProLevelsFilter.prototype.createFeFunc=function(c,u){var f=createNS(c);return f.setAttribute("type","table"),u.appendChild(f),f},SVGProLevelsFilter.prototype.getTableValue=function(c,u,f,d,h){for(var v=0,p=256,m,g=Math.min(c,u),y=Math.max(c,u),b=Array.call(null,{length:p}),gn,x=0,vn=h-d,J=u-c;v<=256;)m=v/256,m<=g?gn=J<0?h:d:m>=y?gn=J<0?d:h:gn=d+vn*Math.pow((m-c)/J,1/f),b[x]=gn,x+=1,v+=256/(p-1);return b.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(c){if(c||this.filterManager._mdf){var u,f=this.filterManager.effectElements;this.feFuncRComposed&&(c||f[3].p._mdf||f[4].p._mdf||f[5].p._mdf||f[6].p._mdf||f[7].p._mdf)&&(u=this.getTableValue(f[3].p.v,f[4].p.v,f[5].p.v,f[6].p.v,f[7].p.v),this.feFuncRComposed.setAttribute("tableValues",u),this.feFuncGComposed.setAttribute("tableValues",u),this.feFuncBComposed.setAttribute("tableValues",u)),this.feFuncR&&(c||f[10].p._mdf||f[11].p._mdf||f[12].p._mdf||f[13].p._mdf||f[14].p._mdf)&&(u=this.getTableValue(f[10].p.v,f[11].p.v,f[12].p.v,f[13].p.v,f[14].p.v),this.feFuncR.setAttribute("tableValues",u)),this.feFuncG&&(c||f[17].p._mdf||f[18].p._mdf||f[19].p._mdf||f[20].p._mdf||f[21].p._mdf)&&(u=this.getTableValue(f[17].p.v,f[18].p.v,f[19].p.v,f[20].p.v,f[21].p.v),this.feFuncG.setAttribute("tableValues",u)),this.feFuncB&&(c||f[24].p._mdf||f[25].p._mdf||f[26].p._mdf||f[27].p._mdf||f[28].p._mdf)&&(u=this.getTableValue(f[24].p.v,f[25].p.v,f[26].p.v,f[27].p.v,f[28].p.v),this.feFuncB.setAttribute("tableValues",u)),this.feFuncA&&(c||f[31].p._mdf||f[32].p._mdf||f[33].p._mdf||f[34].p._mdf||f[35].p._mdf)&&(u=this.getTableValue(f[31].p.v,f[32].p.v,f[33].p.v,f[34].p.v,f[35].p.v),this.feFuncA.setAttribute("tableValues",u))}};function SVGDropShadowEffect(c,u,f,d,h){var v=u.container.globalData.renderConfig.filterSize,p=u.data.fs||v;c.setAttribute("x",p.x||v.x),c.setAttribute("y",p.y||v.y),c.setAttribute("width",p.width||v.width),c.setAttribute("height",p.height||v.height),this.filterManager=u;var m=createNS("feGaussianBlur");m.setAttribute("in","SourceAlpha"),m.setAttribute("result",d+"_drop_shadow_1"),m.setAttribute("stdDeviation","0"),this.feGaussianBlur=m,c.appendChild(m);var g=createNS("feOffset");g.setAttribute("dx","25"),g.setAttribute("dy","0"),g.setAttribute("in",d+"_drop_shadow_1"),g.setAttribute("result",d+"_drop_shadow_2"),this.feOffset=g,c.appendChild(g);var y=createNS("feFlood");y.setAttribute("flood-color","#00ff00"),y.setAttribute("flood-opacity","1"),y.setAttribute("result",d+"_drop_shadow_3"),this.feFlood=y,c.appendChild(y);var b=createNS("feComposite");b.setAttribute("in",d+"_drop_shadow_3"),b.setAttribute("in2",d+"_drop_shadow_2"),b.setAttribute("operator","in"),b.setAttribute("result",d+"_drop_shadow_4"),c.appendChild(b);var gn=this.createMergeNode(d,[d+"_drop_shadow_4",h]);c.appendChild(gn)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(c){if(c||this.filterManager._mdf){if((c||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),c||this.filterManager.effectElements[0].p._mdf){var u=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(u[0]*255),Math.round(u[1]*255),Math.round(u[2]*255)))}if((c||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),c||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var f=this.filterManager.effectElements[3].p.v,d=(this.filterManager.effectElements[2].p.v-90)*degToRads,h=f*Math.cos(d),v=f*Math.sin(d);this.feOffset.setAttribute("dx",h),this.feOffset.setAttribute("dy",v)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(c,u,f){this.initialized=!1,this.filterManager=u,this.filterElem=c,this.elem=f,f.matteElement=createNS("g"),f.matteElement.appendChild(f.layerElement),f.matteElement.appendChild(f.transformedElement),f.baseElement=f.matteElement}SVGMatte3Effect.prototype.findSymbol=function(c){for(var u=0,f=_svgMatteSymbols.length;u<f;){if(_svgMatteSymbols[u]===c)return _svgMatteSymbols[u];u+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(c,u){var f=c.layerElement.parentNode;if(f){for(var d=f.children,h=0,v=d.length;h<v&&d[h]!==c.layerElement;)h+=1;var p;h<=v-2&&(p=d[h+1]);var m=createNS("use");m.setAttribute("href","#"+u),p?f.insertBefore(m,p):f.appendChild(m)}},SVGMatte3Effect.prototype.setElementAsMask=function(c,u){if(!this.findSymbol(u)){var f=createElementID(),d=createNS("mask");d.setAttribute("id",u.layerId),d.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(u);var h=c.globalData.defs;h.appendChild(d);var v=createNS("symbol");v.setAttribute("id",f),this.replaceInParent(u,f),v.appendChild(u.layerElement),h.appendChild(v);var p=createNS("use");p.setAttribute("href","#"+f),d.appendChild(p),u.data.hd=!1,u.show()}c.setMatte(u.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var c=this.filterManager.effectElements[0].p.v,u=this.elem.comp.elements,f=0,d=u.length;f<d;)u[f]&&u[f].data.ind===c&&this.setElementAsMask(this.elem,u[f]),f+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(c,u,f,d){c.setAttribute("x","-100%"),c.setAttribute("y","-100%"),c.setAttribute("width","300%"),c.setAttribute("height","300%"),this.filterManager=u;var h=createNS("feGaussianBlur");h.setAttribute("result",d),c.appendChild(h),this.feGaussianBlur=h}SVGGaussianBlurEffect.prototype.renderFrame=function(c){if(c||this.filterManager._mdf){var u=.3,f=this.filterManager.effectElements[0].p.v*u,d=this.filterManager.effectElements[1].p.v,h=d==3?0:f,v=d==2?0:f;this.feGaussianBlur.setAttribute("stdDeviation",h+" "+v);var p=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",p)}};function TransformEffect(){}TransformEffect.prototype.init=function(c){this.effectsManager=c,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(c){if(this._opMdf=!1,this._mdf=!1,c||this.effectsManager._mdf){var u=this.effectsManager.effectElements,f=u[0].p.v,d=u[1].p.v,h=u[2].p.v===1,v=u[3].p.v,p=h?v:u[4].p.v,m=u[5].p.v,g=u[6].p.v,y=u[7].p.v;this.matrix.reset(),this.matrix.translate(-f[0],-f[1],f[2]),this.matrix.scale(p*.01,v*.01,1),this.matrix.rotate(-y*degToRads),this.matrix.skewFromAxis(-m*degToRads,(g+90)*degToRads),this.matrix.translate(d[0],d[1],0),this._mdf=!0,this.opacity!==u[8].p.v&&(this.opacity=u[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(c,u){this.init(u)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(c){this.init(c)}return extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie})})(lottie$1,lottie$1.exports);var lottieExports=lottie$1.exports;const lottie=getDefaultExportFromCjs(lottieExports),__default__$1=vue.defineComponent({name:"EcanImage",props:{...imageComponentProps},setup(c){const u=usePickComponentStyle(c),f=vue.computed(()=>useImagePath(c.imgUrl)),{pageMode:d}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),h=vue.computed(()=>{const J={},{actionType:j,linkPage:Fn,href:Bn}=c,{requestParams:w={}}=window.config;return vue.unref(d)!=="design"&&j==="close"&&c.isDrillShow&&!w.drillFlag&&(J.display="none"),(j==="link"&&(Fn||Bn)||!j&&(Fn||Bn)||j==="close")&&(J.cursor="pointer"),{...vue.unref(u),...J}}),{getGlobalModel:v,setGlobalModel:p,getRecordValueByKeyName:m}=vue.inject(GLOBAL_MODEL,{getGlobalModel:J=>{},setGlobalModel:(J,j)=>{},getRecordValueByKeyName:J=>{}}),{setTemplateData:g}=vue.inject("templateOperate",{setTemplateData:J=>{}}),b=useEmitEvent(c)("click",()=>{const J=v(c.id);if(p(c.id,{...J,type:c.type,RECORD:c.data||{}}),setTimeout(()=>{p(c.id,{...J,type:c.type,RECORD:{}})},0),[void 0,"link"].includes(c.actionType)){if(!c.linkPage&&!c.href)return;handleJumpLink(c,{pageMode:vue.unref(d),targetTemplate:c.targetTemplate,getRecordValueByKeyName:m,setTemplateData:g})}else c.actionType==="close"&&window.close()}),gn=vue.ref(),x=vue.ref(),vn=()=>{const{directory:J}=c.animationSource;c.isAnimation&&gn.value&&J&&(x.value=lottie.loadAnimation({name:`${c.keyName}-lotTie`,container:gn.value,renderer:"svg",loop:!0,autoplay:!0,path:useImagePath(J)+"data.json"}),vue.unref(x).setSpeed(1))};return vue.watch(()=>[c.isAnimation,c.animationSource],([J])=>{J&&vue.nextTick(()=>{vn()})},{immediate:!0,deep:!0}),useOnEvent(c,{click:b}),{customStyle:h,myImgUrl:f,animation:gn,pageMode:d,onClick:b}}}),__injectCSSVars__$1=()=>{vue.useCssVars(c=>({"8d74eefa":c.isHoverStyle?"pointer":"auto","7ff7bf46":c.isHoverStyle?"0.6":"1"}))},__setup__$1=__default__$1.setup;__default__$1.setup=__setup__$1?(c,u)=>(__injectCSSVars__$1(),__setup__$1(c,u)):__injectCSSVars__$1;const Image_vue_vue_type_style_index_0_scoped_8b128e89_lang="",_hoisted_1$3=["src"];function _sfc_render$7(c,u,f,d,h,v){var p;return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[c.isAnimation?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[c.animationSource.directory?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["ecan-image",c.pageMode==="design"?"component":""]),ref:"animation",style:vue.normalizeStyle(c.customStyle),onClick:u[0]||(u[0]=(...m)=>c.onClick&&c.onClick(...m))},null,6)):vue.createCommentVNode("",!0)],64)):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[c.myImgUrl!==""?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:vue.normalizeClass(["ecan-image",c.pageMode==="design"?"component":""]),style:vue.normalizeStyle(c.customStyle),src:c.myImgUrl,onClick:u[1]||(u[1]=(...m)=>c.onClick&&c.onClick(...m))},null,14,_hoisted_1$3)):vue.createCommentVNode("",!0)],64)),(c.isAnimation?!((p=c.animationSource)!=null&&p.directory):!c.myImgUrl)?(vue.openBlock(),vue.createElementBlock("div",{key:2,class:vue.normalizeClass(["image-placeholder",c.pageMode==="design"?"component":""]),style:vue.normalizeStyle(c.customStyle)}," 请上传图片 ",6)):vue.createCommentVNode("",!0)],64)}const Image$1=_export_sfc$1(__default__$1,[["render",_sfc_render$7],["__scopeId","data-v-8b128e89"]]),EcanImage=withInstall$1(Image$1),iframeProps={...props$1,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web",transParams:[]},iframeComponentProps=transformToComponentProps(iframeProps),_sfc_main$5=vue.defineComponent({name:"EcanIframe",props:{...iframeComponentProps},setup(c){const u=usePickComponentStyle(c),{contextRequestUrl:f}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:""}),{getRecordValueByKeyName:d}=vue.inject(GLOBAL_MODEL,{getRecordValueByKeyName:v=>{}}),h=vue.computed(()=>{var p;let v=hn(c.link);if(c.linkType==="erd"&&v!=null){let m=vue.unref(f);m[m.length-1]==="/"?m+="erdReport":m+="/erdReport",v=`${ERD_URL||m}?_t=0&uid=${v}`}if((p=c.transParams)!=null&&p.length){v.includes("?")?v+="&":v+="?";const m=[];for(const g of c.transParams){const y=d(String(g.fieldName));m.push(`${g.keyName}=${y}`)}v+=m.join("&")}return v});return{style:u,myLink:h}}}),Iframe_vue_vue_type_style_index_0_scoped_c0393b8d_lang="",_hoisted_1$2=["src"];function _sfc_render$6(c,u,f,d,h,v){return c.myLink?(vue.openBlock(),vue.createElementBlock("iframe",{key:0,src:c.myLink,style:vue.normalizeStyle(c.style)},null,12,_hoisted_1$2)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"iframe-placeholder",style:vue.normalizeStyle(c.style)}," 请填写网页链接 ",4))}const Iframe=_export_sfc$1(_sfc_main$5,[["render",_sfc_render$6],["__scopeId","data-v-c0393b8d"]]),EcanIframe=withInstall$1(Iframe),tableProps={...props$1,zIndex:2,name:"表格",keyName:"表格",type:"ecanTable",width:"400px",height:"240px",bordered:!1,headerFontSize:"14px",headerFontColor:"",fontSize:"14px",isUseSeq:!1,size:"",headerFontWeight:400,isUseExport:!1,fontWeight:400,columnsFixedNum:0,scrollX:0,paginationShow:!0,isReverse:!1,simple:!1,pageSizeShow:!1,cellBackgroundColor:"",cellFontColor:"",headerBackgroundColor:"",borderColor:"",paginationPosition:"bottomRight",paginationPageSize:10,isUseAction:!1,clickHighlight:!1,filterDropdownHeight:"200px",actionList:[{title:"",href:"",target:"",color:""}],actionColumnWidth:100,columns:[{title:"姓名",dataIndex:"name"},{title:"年龄",dataIndex:"age"},{title:"住址",dataIndex:"address"}],data:[{name:"小明",age:32,address:"福州软件园"},{name:"小红",age:25,address:"福州软件园"}],graphicConfig:{},stripedShow:!1,stripedColor:"#fafafa",isGroupTable:!1,seqWidth:"10%",seqName:"序号",seqIcon:!1,isSummaryFixed:!1,isPageBottom:!1,isShowTotal:!1,hideTableHeader:!1,paginationColor:"",paginationBgColor:"",activePaginationColor:"",activePaginationBgColor:"",hoverBackgroundColor:"",subTotalColumn:"",subTotalName:"小计",isSortByFront:!1,transParams:[],linkPage:"",target:"self",href:"",isAutoScroll:!1,scrollSpeed:10,clickTarget:"row",clickTargetColumns:[],linkTextColor:"",isTableFill:!1,conditionList:[],bodyRowHeight:"",headRowHeight:"",tableVersion:1},tableComponentProps=transformToComponentProps(tableProps),tableEvents=["click","refreshData","resetRecord","exportTableData"],topArrow="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAYCAYAAADOMhxqAAAAAXNSR0IArs4c6QAAAK1JREFUOE/tktENgjAURe+FBRiBCdCOwAYOoIiTqBs4Agn+OwJuUHECRugC5ZkUUItNXIB+3ndOmt5XInCkLU6AGK7qy3zMeSB6u0HMm8ut5FTX+zfjCaLLFHGvAUlGyMDGiqrqJuktjHADSOrfyg42yifJCaLLBFHfgLIOvQnCB3onmUFoiwqUfRD+hBWz+kDXCOX4Bx7Glufflp478VrJao9ZBLeTpSWAy9cAXto7eMUv8Bo2AAAAAElFTkSuQmCC",downArrow="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAYCAYAAADOMhxqAAAAAXNSR0IArs4c6QAAAMBJREFUOE/tlE0OwVAURs8tcx0RRpWQGLIDXYIViB3YgdpJl2AHXQJzJJ0hBjoy0fbSl5C2ohvQN3rf994Z3F+hdAYX1bx16IjkdUFkDzUA1FkC/rM1BlddkeKVB+mH9kyWhhf1FeZVkAj+vi0LAzg3tZsPApTxD2gX33HDvkSfOoxO6iQWgYKThxTCJMUNuxJmfqFwGRQ32KLYBhKiOGHy/vwFmCVw0ikWQXbXhNmxJ5vKrWGgsy4RWq/hWZdjegLPIXik13+8RAAAAABJRU5ErkJggg==",seqIcon1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAA6CAYAAADhu0ooAAAAAXNSR0IArs4c6QAABzRJREFUaEPtWktzVEUUPn1fk5lJ5DVJeEx4hMRAxABCBKRUqtTS8oFilY+dZfEL3FnudOXKtVt3LqxyoQtlI1WUCFhYpSCIhKoAgTwhJMFkZm73bavP7dO3h9yQpJJNJtObnJx7u+ee+333O6cfDJahSQCHhhk91p1Ttj8xs4F8zOEe2dx3C2hH0efkkwCvKluCPEc+l7mfKHvD+X7jW8qjsqV0th60Hqh6GSsSUQlgWNDX0RGoQNauCdcbmvruU8oWnB9NqAtvGRtgPzJXJuMMh86U8jX7USPd57H4OmPwjWEOZ5/hfRdvDi6WiYumbj1Q/YrZSkf0l2OAytlRLj5BtAm4uwvV0pG9hl4S3lW2C3DEopdP9mDolpV9vew+JN80hxll+0xy8nU1iHXKLmYi83sM4D+tzl/SfWVXfqXstt8GcIy52oKpW5OBUl7sO7TeiEPBadoZi0y0l96aYOwdbb9MPgcgr+wxzgw6l0uBeduTggl13WEgkz4yipEC04dJicg3WeK3Jx9ibl7nSczVcZO3tPEpeQoXbn+rbIZDxi0V0XqgKxlRky56Wg0dxoNgB5LCi3OiaqGM9sVMYSfJ54JsVvbDKKajapdm/JL6e5e7IfkMH2N6Ip2YxSVXM8y3fI6MhYnJhM4gWUX5tngc87dqXTmBJWXOkUbwqJT0hP+Boe6qCXT0aNtmjFp4Bw0Cgncqe1I68TUAGJduu/q70+UkQNBX9lAwLpV8IzaoKooB1FENbYkCQW9UwhINqoZUV1+jHFii5UoZC5k1PBOAKHfnwjX0k9syEaYmAPamQbQeaK0hOniw+CxSzXGPE8y3OMMP/HKYyIPvRhuV73gQmvvOTQdYqdwJZwtPaNGV6Kzu5dpv1MuiuJnrxZUVtgyTRqIy5AOZ5OBI4mfT4kWm+4FGvmkWdVdNoKO9xRdjsXGMyJwJfUw1F0J6r0qEJCL6cbZsED2rER20EK1oxGwxIhRV/zQxInjs6oVsszQBAFmNbt5OTRrRVi8y3gP5cDai9UBrDdGR3rYXFKVGJDtBunCqnEHqXhYJdXe5Yk7qDljUJRGyqyGisxqTaGrnVkuPjOnqOtymc06vOuRZkoV9Td2N81F3FQaaiNFP5QCnWv+kIPpRihilIWqjaKNLqSay0k8aoo5G1E45WQ1vo5VyHoeoZPC8qYwSROuB4kuhb7SmED2lqXvFou5eVxRVwB9my68THSiPLoa6SxGjZaduTQY6eLB4TCF0D5JaNy3QZzy+Vd33XkPltUcRtWvdtPSSVvfa07THVUa2GFF6yVWnl2n1PK12rasroyoxqgcKAPY3uuIRHevd+pKCfkiCmY1TZbTQQO2inop5u5BPo649dZsjj6L7kTyKmdTOo56QSN1mf3ZRX0XdVRPo8OF2XHwe5fyNR2vd+RD9S68VXddrR6o/IWVXQ3ZdS9cXWutWIaqrpayTSJmjEd0WCLMyuDvHceGgCtF6oAsQo5WF6KEdryB1hTAVT9o0rQ2iteq+k/myEa0si/dARrhjFhT+LMUL2A+EY5aF7PUhKuYXkUdnrRkVrJy5KwiRss1+1GCJ2n1lM+Ekm9HD9UCrJ94rH9Herai645Dk0bMVP6t8f1iLYxN6NTELyR7HiVwF92P2e+Jpoo0D8YZxfyVexVft75KHdFZtRsb120Kpm7Pmnt0NHOm5LeC08qnybLxHA/Jr+o1MJvxC2U1nhkbJx4ZXS6Bjh4uHVNQVyUweHeYebrhe4zE6ql3VZ6LuyGQdqaSTYosrzYbx+w0lXBBvd2UH9Q01ijiORveGhTihm4wM0JmJUevKhEZkaG8mArhmkJISt/mb803fkQ+gBRnETp9ONpbrgdYaoncPbMZyyfWzXQS9iMI9yp4WzNBvSLpNyvevSLZwr2qxGkk4A2UtWvt83kLutxvC58guMIn+KWvz+FbFw62/dktkso7E6k8ADCXDS6QnA/4j+cq+d0nZbb/eth8DU3fVGYZVE6jZ8T4C5qOfyHXi3kV5soybv6pJgG71d1yy7eQb4I5eFk12SK6JuJC5n2xuVU21TjSEyJzDfmjOJgUMsMKKACas30PU/Cj6nnxhkEERahUFOokCcP48Hq+z0bMIZkyV1OInqwdaI4imwZwc4OgxJ1Xu5SfbkMJSPEl9eMR2K3tYsC3kuyEczH83w4TO9tx0uxf/1+kntdEmJ54wBAx+oHFEwK4ou5QT/eQr/jzwQNN0vgWKWWHNdaAq9vfUeKBpKJNvtKuAaQbR3dCIx+aYlChUqk1ziWJzP3LwDBLeZ73/gifuKZ/PWB9dZ8xBkcnxivE1XbwbT7WSRYvHPda81xZ86LEeaK0imsaRqZ5WUwXNZHJ4hhecyFRVjFmpVMKNmM7sKo3V/Hs/VjXLRdO0Z1w0dVd1oHbwUp/UnoLNmDJUmxnjZgbWUhhBMWKnrcOM80rJ0m9YFkRXQqD/A/mshzl9oUoNAAAAAElFTkSuQmCC",seqIcon2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAABQFJREFUaEPtWt1v21QUv9eJ80FbWmV0adel7ZqyLenSgVYJaQghHhBIICEhoWkvSGgCiQ+JdWMCISEVxAPSoEWT+AN4QTzxzl/Ah8SAQtJ23dKvreuydl3TrIsd23e6xz63LovqeE2BePaLT06ur33O7+dzj8+5lPyHh5I7f4TfPpT6IIuPQSll9XwkWs/J3M7lGQOV7JdpYTxjX206gr4IMiM/CwQDdBhQTZ8VOreOs4//VxD0DWwkBO/kxjqRIkFDHwWZktdQZ2h6AOXlpUUQY3s7BKuCsoxB5ltUalLgYy43pYevu6Vr3SnqKQNZ9ptm9KjK7n5iye/bAkqYyzeuLQjV3OVJIavlMshyKCR03f2HQe5I9AgdpbRkBiP6BSpD6xTYQY+fubsdqjtC0DeQscZBkLERCamgZFveNmMH+9xGjzYu3165KVSzUzmQS8U1t7GBNLU8Kq7pS0HCQ1pjj9nmofPmD/aRoO3A2e/huWzZUM0U9ayB5exoP3iFGT/a3NfH5Y3SulDNTJrp5OpywTVatV6wJy5WIHLgkJkcRR5p2rzcWk8NSTuBSkcEfQMtVzUEgowxQFTLnj+OEBtEeteST6Lu2swVEGcvmUEEXnVW168cR9ZSyYx5vQdTYmxXbxKf5eWqFPWkgSw7GkNrVWa8A2gQkkCdrigQm4Ph8Kuom7j4K4grhSVHT+/2gFh7XNwifeyp+xH0vIEYJU3TjXP8VFiYLaJbSsViK5eTA4Nvoi732y8g3rp5Y7cBcpzfEUHfQC8iOD3+u0goJUlq5zzpP3L0Lc9Q1PMGTv55USSUciCwt9EQlCh5Riz01YKMb+D/fJlwhWA4JHdxuPtSmTcaJcj4BtrfwWg00m1m7enXPYmgb6Bjtri7A6rlolveQeWvMfHFyKh+mj+OpyjqfQPHRzNIIiYZ79WCYH7ib7hkcS6/u/yrYfZ9PVDggwPrp1sp6ht4/zLhKQRZRYUO0qEnhk4hFQLBYAuX7UVeLBvai8E1MMzVEHuRFwu/9mIwLzLAhAZ5WiTbigNFPWng/KWJVfTAfP4y1GfC4bBo4iUHBp/lulh7XHiKt/m4bmlhTqAyb/UCK6rqCik+2N4zTCQPwvWdiV4xD5WkCv9BGbmASlkLQDOIPjl8e1sEPWXglpYz02ELB2MEKmn8KK2uQBv2ymTW5DchZH1tDbzX0toGLTN+9KcyL/Bzc1ubWHYqqgqVckTynwhjNRyr1Pz/fd0HYD5EjctBGcjB+3VTeD9JZ/B1Iw+e+wl11c7UN7DREbTDyqYvQMtZVRVzBxK8xPR5fjYYC6Ju+fpV2BQwO5UTrduyoupcF+/aL8r+3Y8ffonrIpGo0NmXkYK1OaHToiUfG45GLTYSUVVmViAJKaWvxXMNjWxsR00x7qEysJpHsHdRYYZovhiMDfGxuq6JntnV/DSE5sWZvLnlA9ZbA87JVOYY6uL7e4ER/JAkam5DoUQwgRH2HVdphvwpjmvOnH7gHoFjh9c30HJzwyJYjbbl8TH4RqGSJvagMUJBp2zcgTWSH4VFMxh1JHogd+VHKBQxowhMQCGoMV37DFWRox+Kta7avd3qHCn6UBqIRmPLG4KC1dc3qPTK5v9mRkQJEa0ASukP+L+cPvOHCWR9tzHbQXkgBH0DLQ9gTtuwCFZ7PzEb4v9Vyhok3vJyEagIdHxuRHMbKHYyfkcUbQQD7wHq9EAq9LeVYwAAAABJRU5ErkJggg==",seqIcon3="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAABMJJREFUaEPtWl1sFFUUPndmlm1LdW1XoGxly7qFYqmIBkxEJDTRRI3RxNhgpDzpkwixJCaEJx588MHQCPrgGwT8SSD4Zkx84DfGEEjU2KpAS6ktZVsKpF0K3Z+55p4798ysGdju0A3Mdu5De/bcn7nnfN/ce+ecy+ABli1fHGsTjz+4fWMPTYMxPptTYrM5WKljBQaW6jGX9mVF8N19p2PimYxBnXq2ZpqfK5kDvCpl/qvSMdC7hPzN9vWkux87AwNn6r3O7pOLRVtT5+/bfVinJS9TOjNvakoeG0mhGF20gLoYIUMtMgcI9TzsEvKhrg0jM52PzYhSe9ylfWCg5RhfINjx9c8RMd/QnapN9v7FP7Dk1aTjPCTk1LDNrIHzfVSduTONcmgeNsPStCyJ/xvijfbQjKXFD87ZZ0qZy+t7hHx4x7rb9yKhp0Wmogx8be+PYeGhCNS+TC89AC7lAPCCw3s1Qr557TqpLv19AeX0xOS9nOxaN/+RWtInW1tQjkRptxE/BxFVYDtVw++2rf8eZcdpqCiCgYG2/32AIOeI6OYvT62jeXO2RVKBv+PgUlTIU+lbpOr/6zzKN8bGS6bjTDtEGxZS08SKZpSra9CvVpEnIt3UaPErpGglGtix55d6ZX/IyH4oX1JYonSZ25kGIc+rCr+pdEP9l1Ec+Oei7Ts+q185RUFlmjwQJVokkqI0JuL43wR4Q+lYYKDfEez86hhhbJraJwLaoT7cYrCkJyaRoitWtxFFe8/9jnXjqbGiVCp3g/qFj9MjVq6Rh6gCis5JA3vP/kFe0TQmEXx2FSHYc/Y3rL8+eq3cABUd3xOCgYF+R7DnjE1R3ahAigYGPuQU5SZ7iU4ybtuE3xEMDHQiGAqHnhBwL1/V+rqC/WHfB0tCMDCw6FmjvA3cTjIFCG7qPvGUmoJuwMdCdlI0XF2FH1nNbS1WHgHAVxSteAM37zvxtEKQA3xUcQgGBvr9HfSCYH+vDBEOD9hf/uVdK+8+emwpxcdARcALVtE5aeClP+1w4GR64jHhv9bnnqFQnBEyMNrqDPKqwK8zGDzbqDqDvCrw6wwGiyCDeCZn+RfpsO2GYGCgnxBUqWeEVpdpMc44JjiRhqMyHfbvxT7KUjbE4xifWxBbRHsoABhCd3VwmJh5+YJMdmYz2ZLZ6kyKLmlOYP9YHM/9WJim4aAc2F6lC+dznwp5f1f7TWpX8QY6XatygXW8ls6dwNgroo3JTUIwNXgFu42OjFCWcuny5PNCF6mvo0CyQk4h+X+EuZXPUHkGUd/YJJd9hZqQHTcvjqj5anpe3rzY2m6viC48KcguBQZaHvItgm4rgco+GXrubaIHY2uEnMlMEwMGrAUlP52jLGVTSxITqdXza0jn3CdTQ5LqMYuWQg5XV6nHnKOFAjT8CPByvatojr7iDXRD9b3uU0+iXocOqmcm6qYmpkiVuiIRakom5DUJANAMY61jTJV/lhlVLHyH+Pvttg0/2GN7v0NaFMHAQHpRKghBm03yVoYodDODw1tENnUi4too+YHxn6jelHcBsjeiR5Xu8O6VGTfWeNV5oujcMdDFreqwIKoi7FE8q14dz8qMKQAc392e84qGl373h2Bg4INH8D9A563p5gHY1gAAAABJRU5ErkJggg==",__default__=vue.defineComponent({name:"EcanTable",components:{Skeleton,AButton:antDesignVue.Button,AInput:antDesignVue.Input,ACheckboxGroup:antDesignVue.CheckboxGroup,ATable:antDesignVue.Table,ATableSummary:antDesignVue.TableSummary,ATableSummaryRow:antDesignVue.TableSummaryRow,ATableSummaryCell:antDesignVue.TableSummaryCell,DownOutlined:DownOutlined$1,RightOutlined:RightOutlined$1,MarqueeScroll},props:{...tableComponentProps},setup(c,{expose:u}){const{pageMode:f,height:d,theme:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",height:null,theme:"light"}),v=vue.ref(!1),p=vue.computed(()=>vue.unref(f)!=="design"&&c.isAutoScroll),m=vue.ref({}),g=vue.ref(!1),y=vue.computed(()=>{const Cr=lodashEs.cloneDeep(c.columns);return c.isUseSeq&&Cr.unshift({title:c.seqName,dataIndex:"SEQ",align:"center",width:c.seqWidth}),c.isUseAction&&Cr.push({title:"操作",dataIndex:"ACTION",width:c.actionColumnWidth}),Cr}),b=vue.ref(),gn=vue.ref(),x=vue.ref(!1),vn=usePickComponentStyle(c),J=vue.ref([]),j=vue.computed(()=>{const{height:Cr}=c;return typeof Cr=="string"?Cr:Cr.suffix==="px"?Cr.value+"px":Cr.suffix==="%"?parseFloat(vue.unref(d))*(Cr.value/100)+"px":"0"}),Fn=vue.computed(()=>c.scrollX),Bn=vue.ref(parseFloat(j.value)),w=()=>{let Cr=0;switch(c.size){case"small":Cr=50;break;case"middle":Cr=53;break;default:Cr=65;break}return Cr},re=vue.ref(0),Pn=vue.ref(""),Rn=vue.ref(0);vue.watchEffect(()=>{var Cr;(Cr=J.value)!=null&&Cr.length&&j.value&&setTimeout(()=>{let _r=parseFloat(j.value),Ar=document.querySelector(`#ecanTable-${c.id} .ant-table-tbody`),Mr=document.querySelector(`#ecanTable-${c.id} thead.ant-table-thead`);const zr=document.querySelector(`#ecanTable-${c.id} .ant-table-summary`);let $r=0;if(Mr&&(_r-=(Mr==null?void 0:Mr.clientHeight)||0),zr&&c.isSummaryFixed&&($r=(zr==null?void 0:zr.clientHeight)||0,_r-=$r),c.paginationShow&&!c.isAutoScroll){let Pr=0;Pr=w(),Pr&&(_r-=Pr)}(Ar==null?void 0:Ar.clientHeight)>_r?Bn.value=_r:Bn.value=0,vue.nextTick(()=>{if($r){const Pr=document.querySelector(`#ecanTable-${c.id} .ant-table-summary`),Vr=(Pr==null?void 0:Pr.clientHeight)||0;$r!==Vr&&vue.unref(Bn)&&(Bn.value=_r+$r-Vr)}c.isAutoScroll&&v.value&&setTimeout(()=>{var Yr;const Pr=document.querySelector(`#ecanTable-${c.id} .ant-table-body`);Ar=document.querySelector(`#ecanTable-${c.id} .ant-table-tbody`),Mr=document.querySelector(`#ecanTable-${c.id} thead.ant-table-thead`);const Vr=Pr||Ar;re.value=(Vr==null?void 0:Vr.clientHeight)||0,Rn.value=(Mr==null?void 0:Mr.clientHeight)||0,m.value={height:((Ar==null?void 0:Ar.clientHeight)||0)+"px"};const Kr=document.querySelector(`#ecanTable-${c.id} .ant-table-body > table`);if(Pn.value=(Yr=document.querySelector(`#ecanTable-${c.id} .ant-table`))==null?void 0:Yr.className,Kr){const Xr=Kr.cloneNode(!0);Kr.style.visibility="hidden",setTimeout(()=>{Vr==null||Vr.setAttribute("id","hiddenTableBody")},0);const Jr=document.querySelectorAll(`#ecanTable-${c.id} .scroll-wrap`);if(Jr!=null&&Jr.length){for(const li of Jr)li.append(Xr.cloneNode(!0));const ti=document.querySelectorAll(`#ecanTable-${c.id} .scroll-wrap .ant-table-cell`);if(ti!=null&&ti.length)for(const li of ti)Vn(li);const oi=document.querySelector(`#ecanTable-${c.id} .vue3-marquee`);oi&&oi.addEventListener("scroll",li=>{var fi;document.querySelector(`#ecanTable-${c.id} .ant-table-header`).scrollLeft=((fi=li==null?void 0:li.target)==null?void 0:fi.scrollLeft)||0})}}},0)})},0)});function Vn(Cr){Cr.addEventListener("click",_r=>{const Mr=Wn(_r.target).getAttribute("dix");if(Mr){const zr=document.querySelector(`#ecanTable-${c.id} #hiddenTableBody td[dix="${Mr}"]`);zr&&zr.click()}})}function Wn(Cr){return Cr.className.includes("ant-table-cell")?Cr:Wn(Cr.parentElement)}const Gn=vue.ref([]),Zn=vue.ref([]),Xn=vue.ref([]),er=vue.ref([]),Jn=vue.ref(0),ir=vue.ref(1),or=vue.ref(c.paginationPageSize||10),sr=vue.reactive([]),Hn=(Cr,_r)=>{let Ar="";return Cr.forEach((Mr,zr)=>{const{value:$r,rule:Pr}=Mr;Mr.conditions?Ar+=`(${Hn(Mr.conditions,Mr.join)})`:$r&&Pr&&(Ar+=`value ${Pr} '${$r}'`),Ar+=`${zr===Cr.length-1?"":_r?" "+_r+" ":""}`}),Ar},Kn=(Cr=[])=>{var _r,Ar;if(Array.isArray(Cr)&&Cr.length>0){let Mr=Cr.length;const zr=c.columnsFixedNum;if(c.dataType==="indicator"&&((_r=vue.unref(y))!=null&&_r.length)&&!vue.unref(y).find($r=>{var Pr;return(Pr=$r.children)==null?void 0:Pr.length})){const{graphicConfig:{indicators:$r=[]}}=c;Cr.forEach((Pr,Vr)=>{if(vue.unref(y)[Vr])for(const Xr in vue.unref(y)[Vr])["dataIndex","title"].includes(Xr)||(Pr[Xr]=vue.unref(y)[Vr][Xr]);const Kr=$r.find(Xr=>Xr.label===Pr.title),{showLabel:Yr=""}=Kr||{};Yr&&(Pr.title=Yr)})}for(let $r=Mr-1;$r>=0;$r--)(Ar=Cr[$r])!=null&&Ar.isHidden&&Cr.splice($r,1);Mr=Cr.length;for(let $r=0;$r<Mr;$r++){const Pr=Cr[$r];if($r<zr?Pr.fixed="left":Pr.fixed=!1,c.isSortByFront&&Pr.sorter){const hi=Pr.dataIndex;Pr.sorter=(mi,bi)=>mi[hi]-bi[hi]}const{cellAlign:Vr="center",cellColor:Kr,dataIndex:Yr,title:Xr,tableFilter:Jr,headerCellAlign:ti,headerCellColor:oi,overflow:li,conditions:fi}=Pr;Jr&&(sr.push(Yr),Pr.filterOptionsInputValue="",Pr.filterCheckboxGroupValue=[],Pr.customFilterDropdown=!0,Pr.onFilter=(hi,mi)=>mi[Yr].toString().toLowerCase().includes(hi.toLowerCase())),fi&&(Pr.conditionCode=Hn(fi)),Pr.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:c.headerFontSize,fontWeight:c.headerFontWeight,textAlign:ti||"center",color:oi||c.headerFontColor,borderBottomColor:c.borderColor,backgroundColor:c.headerBackgroundColor}}),Pr.customCell=(hi,mi,bi)=>({style:{textAlign:Vr,color:zn(bi)?c.linkTextColor:Kr||c.cellFontColor,backgroundColor:c.cellBackgroundColor,borderBottomColor:c.borderColor},class:{highlight:vue.unref(Rr)===mi&&c.clickHighlight,linkText:zn(bi)},dix:bi.dataIndex+"_"+mi,onClick:pr("click",()=>{const Pi=c.id,Di=br(Pi);hi={dataIndex:Yr,title:Xr,...hi},wr(Pi,{...Di,type:c.type,RECORD:hi}),Rr.value=mi,setTimeout(()=>{if(!c.linkPage&&!c.href)return;let Ii=!1;(zn(bi)||c.clickTarget!=="cell")&&(Ii=!0),Ii&&handleJumpLink(c,{pageMode:vue.unref(f),getRecordValueByKeyName:kr})},0)})}),li==="ellipsis"?Pr.ellipsis=!0:Pr.ellipsis=!1,Array.isArray(Pr.children)&&Kn(Pr.children)}}};function zn(Cr){let _r=!1;return c.clickTarget==="cell"&&c.clickTargetColumns.includes(Cr.dataIndex)&&(_r=!0),_r}const qn=(Cr=[])=>{var Ar;let _r=lodashEs.cloneDeep(Cr);return(Ar=vue.unref(er))!=null&&Ar.length&&(_r=lodashEs.cloneDeep(vue.unref(er))),c.isUseSeq&&_r.unshift({title:c.seqName,dataIndex:"SEQ",align:"center",width:c.seqWidth}),c.isUseAction&&_r.push({title:"操作",dataIndex:"ACTION",width:c.actionColumnWidth}),Kn(_r),_r};vue.watch(or,()=>{ir.value=1,Nr(!1)}),vue.watch(b,Cr=>{x.value=!!Cr}),vue.watch(()=>[c.columns,c.isUseSeq,c.seqWidth,c.seqName,c.seqIcon,c.isUseAction,c.columnsFixedNum,c.actionColumnWidth,c.cellBackgroundColor,c.headerBackgroundColor,c.borderColor,c.stripedColor],()=>{Gn.value=qn(lodashEs.cloneDeep(c.columns))},{immediate:!0,deep:!0}),vue.watch(()=>[c.data,c.dataType],([Cr,_r])=>{_r==="static"&&(Zn.value=Cr)},{immediate:!0});const tr=vue.ref({}),Un=Cr=>{if(Array.isArray(Cr)){const _r=Cr.length,Ar=sr,Mr=Ar.length,zr={};for(let Pr=0;Pr<_r;Pr++){const Vr=Cr[Pr];for(let Kr=0;Kr<Mr;Kr++){const Yr=Ar[Kr];if(zr[Yr])zr[Yr].add(Vr[Yr]);else{const Xr=new Set;Xr.add(Vr[Yr]),zr[Yr]=Xr}}}const $r={};for(const Pr in zr)if(Object.prototype.hasOwnProperty.call(zr,Pr)){const Vr=zr[Pr],Kr=Array.from(Vr);$r[Pr]=Kr.map(Yr=>({label:Yr,value:Yr}))}tr.value=$r}},nr=Cr=>{var _r,Ar;for(const Mr of Cr)typeof(Mr==null?void 0:Mr.width)=="object"&&((_r=Mr.width)!=null&&_r.value)&&((Ar=Mr.width)!=null&&Ar.suffix)&&(Mr.width=Mr.width.value+Mr.width.suffix)};vue.watch(()=>[c.isReverse,Gn.value,Zn.value],()=>{const Cr=vue.unref(Gn),_r=vue.unref(Zn);if(Un(_r),c.isReverse){const{columns:Ar,dataSource:Mr}=cr(lodashEs.cloneDeep(Cr),lodashEs.cloneDeep(_r));nr(Ar),Xn.value=Ar,J.value=Mr.map(zr=>({key:nanoid(6),...zr}))}else nr(Cr),Xn.value=Cr,J.value=_r.map(Ar=>({key:nanoid(6),...Ar}))},{immediate:!0});const cr=(Cr,_r)=>{const Ar=Cr[0],Mr=[{title:Ar.title,dataIndex:"col0",key:"col0",align:"center"}];for(let $r=0;$r<_r.length;$r++){const Pr=_r[$r],Vr="col"+($r+1);Mr.push({title:Pr[Ar.dataIndex],dataIndex:Vr,key:Vr,align:"center"})}const zr=[];for(let $r=1;$r<Cr.length;$r++){const Pr=Cr[$r],Vr={col0:Pr.title};for(let Kr=0;Kr<_r.length;Kr++){const Yr=_r[Kr];Vr[`col${Kr+1}`]=Yr[Pr.dataIndex]}zr.push(Vr)}return{columns:Mr,dataSource:zr}},Qn=vue.ref(""),fr=Cr=>{var Mr;const{rows:_r=[],total:Ar=0}=((Mr=Cr==null?void 0:Cr.data)==null?void 0:Mr.data)||{};if(Jn.value=Ar,Array.isArray(_r)&&(Zn.value=_r),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:zr=[]}=c,$r=zr.find(Pr=>Pr.key==="dataSqlId");if(($r==null?void 0:$r.value)==="xt_jxzebg"){const Pr=_r.filter(Vr=>!Vr.绩效总额).map(Vr=>Vr.ORG_NAME);Pr!=null&&Pr.length&&vue.nextTick(()=>{antDesignVue.notification.warning({message:"提示",description:`当前时段${Pr.join("、")}绩效数据为空`,duration:3})})}}v.value=!0},vr=useRequestData(c),Yn=async(Cr=!0,_r={})=>{try{Cr&&(g.value=!0),vue.unref(Qn)&&(_r.orderCondition=vue.unref(Qn)),c.paginationShow&&(_r={pageNum:vue.unref(ir),pageSize:vue.unref(or)||"10",layer:"1",..._r});const Ar=await vr(_r);fr(Ar)}catch(Ar){console.error(Ar)}finally{g.value=!1}},ar=({current:Cr},_r,Ar)=>{if(ir.value=Cr,Ar&&Object.keys(Ar).length>0){const{field:Mr,order:zr}=Ar,Pr={ascend:"asc",descend:"desc"}[zr];Mr!=null&&Pr!=null&&Pr?Qn.value=Mr+" "+Pr:Pr||(Qn.value="")}c.isSortByFront||Nr(!1)},ur=vue.computed(()=>{const Cr=c.simple,_r=[c.paginationPosition],Ar={};return c.isShowTotal&&(Ar.showTotal=Mr=>`共 ${Mr} 条数据`),c.paginationShow&&{simple:Cr,position:_r,total:vue.unref(Jn),current:vue.unref(ir),pageSize:vue.unref(or)||"10",showSizeChanger:!1,size:"large",...Ar}}),mr=Cr=>+Cr==1?"是":+Cr==0?"否":Cr,dr=(Cr,_r)=>{const{format:Ar,retentiondigit:Mr,customFormatter:zr,defaultVal:$r}=_r;let Pr="";if(Ar==null||Ar==="")Pr=Cr;else{const Vr={money:formatMoney,percentage:formatPercentage,contrast:formatPercentage,boolean:mr,decimals:formatDecimals,custom:formatCustom};Vr[Ar]||(Pr=""),Ar==="decimals"?Pr=Vr[Ar](Cr,Mr)||"":Ar==="custom"?Pr=Vr[Ar](Cr,zr)||"":Pr=Vr[Ar](Cr)||""}return Pr||(Pr=$r),Pr},gr=Cr=>Cr==="contrast"?"upDown":"",lr=Cr=>{const{text:_r,format:Ar,declineColor:Mr="#39cf93",increaseColor:zr="#ff512e"}=Cr,$r={fontSize:c.fontSize};if(yi(Cr.dataIndex))return $r.display="flex",$r.justifyContent="center",$r.alignItems="center",$r;if(Ar==="contrast"){const Pr=parseFloat(_r+"");return Pr>=0?$r.color=zr:Pr<0&&($r.color=Mr),$r}else return{}},hr=vue.computed(()=>{const{fontSize:Cr}=c;return{width:Cr,height:Cr,textIndent:`-${parseFloat(Cr)*2}px`,overflow:"hidden"}}),xr=Cr=>{const{text:_r,declineColor:Ar="#39cf93",increaseColor:Mr="#ff512e"}=Cr,{fontSize:zr}=c,$r=parseFloat(_r+""),Pr={width:zr,verticalAlign:"unset"};return $r>=0?Pr.filter=`drop-shadow(${Mr||"#ff512e"} ${zr} -1px)`:$r<0&&(Pr.filter=`drop-shadow(${Ar||"#39cf93"} ${zr} -1px)`),Pr},Sr=Cr=>{const _r=parseFloat(Cr+"");if(_r>=0)return goUp;if(_r<0)return goDown},yr=(Cr,_r,Ar,Mr)=>{var Vr,Kr,Yr;const zr="#39cf93",$r="#ff512e",Pr=c.conditionList.find(Xr=>Xr.dataIndex===Cr.dataIndex);if((Vr=Pr==null?void 0:Pr.conditions)!=null&&Vr.length){const{fontSize:Xr}=c,Jr={style:{width:Xr,verticalAlign:"middle"},src:""};for(const ti of Pr.conditions){const oi=((Kr=ti==null?void 0:ti.property)==null?void 0:Kr.icon)||"";let li=((Yr=ti==null?void 0:ti.property)==null?void 0:Yr.iconColor)||"";if(oi){let fi=!1;if(ti.rule&&ti.value){const hi=`${ti.field} ${ti.rule} '${ti.value}'`;fi=pn(hi,{...Ar,value:_r})}else fi=!0;fi&&(oi==="increase"?Jr.src=topArrow:oi==="decline"&&(Jr.src=downArrow),li||(oi==="increase"?li=$r:oi==="decline"&&(li=zr)),Jr.style.filter=`drop-shadow(${li} ${Xr} -1px)`)}}if(Mr===1)return Jr.style;if(Mr===2)return Jr.src}else return""},pr=useEmitEvent(c),{getGlobalModel:br,setGlobalModel:wr,getRecordValueByKeyName:kr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Cr=>{},setGlobalModel:(Cr,_r)=>{},getRecordValueByKeyName:Cr=>{}});wr(c.id,{type:c.type,RECORD:""});const Er=(Cr=[],_r=[])=>{let Ar=Cr.map(Mr=>({title:Mr,dataIndex:Mr,key:Mr}));vue.unref(y).find(Mr=>{var zr;return(zr=Mr.children)==null?void 0:zr.length})&&(Ar=lodashEs.cloneDeep(vue.unref(y))),er.value=lodashEs.cloneDeep(Ar),Gn.value=qn(Ar),Zn.value=_r,v.value=!0},Ir=Cr=>{var _r,Ar,Mr,zr;Er((Ar=(_r=Cr==null?void 0:Cr.data)==null?void 0:_r.data)==null?void 0:Ar.columns,(zr=(Mr=Cr==null?void 0:Cr.data)==null?void 0:Mr.data)==null?void 0:zr.rows)},Dr=useIndicatorData(c,Ir),qr=async(Cr=!0)=>{try{Cr&&(g.value=!0);const _r=vue.unref(Qn).split(" "),Ar={};c.isSortByFront||(Ar.sort={order:_r[1],field:_r[0]});const Mr=await Dr(Ar);Ir(Mr)}catch(_r){console.error(_r)}finally{g.value=!1}},Rr=vue.ref(-1),{loadedData:Fr}=vue.inject(LOADED_DATA,{loadedData:{}}),jr=vue.ref(!1);vue.watch(Fr,Cr=>{if(c.dataType==="indicator"){const _r=getFixedValueDatas(c.graphicConfig);_r!=null&&_r.length&&(!vue.unref(jr)&&canRequestIndicator(c.graphicConfig,Cr)?(jr.value=!0,Nr()):canRequestIndicator(c.graphicConfig,Cr)||(jr.value=!1))}},{deep:!0});const Nr=async(Cr=!0)=>{switch(c.dataType){case"request":await Yn(Cr);break;case"indicator":canRequestIndicator(c.graphicConfig,vue.unref(Fr))&&await qr(Cr);break}},Ur=()=>{const Cr=c.id,_r=br(Cr);wr(Cr,{..._r,type:c.type,RECORD:""})},Qr=vue.computed(()=>{const Cr=vue.unref(Xn);let _r=0;const{subTotalColumn:Ar,subTotalName:Mr}=c;Ar&&(_r=Cr.findIndex(Kr=>Kr.dataIndex===Ar),_r<0&&(_r=0));const zr=[];let $r=0;for(let Kr=0;Kr<Cr.length;Kr++){const Yr=Cr[Kr],{isCalcTotal:Xr}=Yr;Kr===_r?zr.push({...Yr,total:Mr}):Xr?(zr.push({...Yr,index:Kr,total:0}),$r++):zr.push({...Yr})}if($r===0)return[];const Pr=vue.unref(J),Vr=Wr(zr);for(let Kr=0;Kr<Vr.length;Kr++){const Yr=Vr[Kr];let Xr=0;const{isCalcTotal:Jr,dataIndex:ti}=Yr;if(Jr===!0){for(let oi=0;oi<Pr.length;oi++){const fi=+Pr[oi][ti];isNaN(fi)||(Xr=new big_js.Big(Xr).add(fi).toNumber())}Yr.total=Xr}}return Vr});function Wr(Cr){var Ar;const _r=[];for(const Mr of Cr)(Ar=Mr.children)!=null&&Ar.length?_r.push(...Wr(Mr.children)):_r.push(Mr);return _r}const{setRequest:ri}=vue.inject(REQUEST_MODEL,{setRequest:Cr=>{}});typeof ri=="function"&&ri({id:c.id,requestFn:Nr,sortNum:c.requestSort}),u({refreshData:Nr});const ei=(Cr="",_r)=>hn(Cr,_r),Tr=Cr=>{if(Cr!=="event")return{self:"_self",blank:"_blank"}[Cr]},Br=(Cr,_r="")=>{Cr==="event"&&window.parent.postMessage({type:"openPage",url:_r},"*")},Lr=(Cr,_r)=>{Cr(_r.filterCheckboxGroupValue)},Hr=(Cr,_r)=>{Cr({confirm:!0}),_r.filterOptionsInputValue="",_r.filterCheckboxGroupValue=[]},Or=()=>{},Gr=Cr=>{const _r=Cr.dataIndex;if(typeof _r=="string"){let Ar=vue.unref(tr)[_r];const Mr=vue.unref(Cr.filterOptionsInputValue).trim();return Array.isArray(Ar)?(Ar=Ar.filter(zr=>typeof zr.label=="string"?zr.label.toLowerCase().includes(Mr.toLowerCase()):!0),Ar):[]}return[]},Zr=async()=>{var Yr,Xr;const Cr="EXPORT_KEY";antDesignVue.message.loading({key:Cr,content:"正在导出...",duration:0});let _r=[];if(c.dataType==="static")_r=c.data;else if(c.dataType==="request"){const Jr={layer:"1"};vue.unref(Qn)&&(Jr.orderCondition=vue.unref(Qn));const ti=await vr(Jr);_r=((Xr=(Yr=ti==null?void 0:ti.data)==null?void 0:Yr.data)==null?void 0:Xr.rows)||{}}const Ar=vue.unref(Xn),Mr=[],zr=[];Ar==null||Ar.forEach(Jr=>{Mr.push(Jr.dataIndex),zr.push(Jr.title)});const $r=_r.map(Jr=>lodashEs.pick(Jr,Mr)),Pr=xlsx.utils.book_new(),Vr=xlsx.utils.aoa_to_sheet([zr]),Kr=xlsx.utils.sheet_add_json(Vr,$r,{skipHeader:!0,origin:"A2"});xlsx.utils.book_append_sheet(Pr,Kr,"sheet"),xlsx.writeFile(Pr,"表格数据.xlsx"),antDesignVue.message.success({key:Cr,content:"导出成功"})},ni=(Cr,_r=2)=>{const Ar=+Cr*100;return isNaN(Ar)||Ar<=0?0:Ar>=100?100:Ar.toFixed(_r)};useOnEvent(c,{resetRecord:Ur,refreshData:Nr,exportTableData:Zr});const ci=(Cr,_r)=>{let Ar=null;return c.stripedShow&&(Ar=_r%2===1?"table-striped":null),Ar},ai=vue.computed(()=>{var Ar;let Cr=0;const{isTableFill:_r}=c;if(_r&&j.value){let Mr=0;c.paginationShow&&((Ar=vue.unref(J))!=null&&Ar.length)&&(Mr=w()),Cr=parseFloat(vue.unref(j))-Mr}return Cr?Cr+"px":"100%"}),vi=vue.computed(()=>{const Cr=vue.unref(h)==="darkBlue";let _r="";return c.isTableFill&&(_r=c.cellBackgroundColor,_r||(pi.value==="transparent"?Cr?_r="#071655":_r="transparent":Cr?_r=pi.value:_r="transparent")),_r}),ui=vue.computed(()=>{let Cr="#071655";return c.headerBackgroundColor&&(Cr="transparent"),Cr}),pi=vue.computed(()=>{let Cr="#071655";return(c.cellBackgroundColor||c.stripedShow&&c.stripedColor)&&(Cr="transparent"),Cr}),ki=vue.computed(()=>parseFloat(c.fontSize)+16),xi=vue.computed(()=>{let Cr="";const{paginationColor:_r,paginationBgColor:Ar,activePaginationColor:Mr,activePaginationBgColor:zr,hoverBackgroundColor:$r}=c;return _r&&(Cr+="p-color "),Ar&&(Cr+="p-bg-color "),Mr&&(Cr+="active-p-color "),zr&&(Cr+="active-p-bg-color "),$r&&(Cr+="hover-bg-color "),Cr}),Si=(Cr,_r)=>{if(yi(Cr.dataIndex))return!1;const{conditionCode:Ar}=Cr;return pn(Ar,{value:_r})},Ci=(Cr,_r,Ar)=>{var Kr,Yr;const{overflow:Mr,conditionCode:zr,attribute:$r,dataIndex:Pr}=Cr,Vr={};if(Mr==="ellipsis"&&(Vr.overflow="hidden",Vr.textOverflow="ellipsis"),zr&&($r!=null&&$r.color)&&Si(Cr,_r)&&(Vr.color=$r.color),$r!=null&&$r.icon&&(Cr==null?void 0:Cr.cellAlign)==="right"&&(Vr.display="flex",Vr.alignItems="center",Vr.justifyContent="flex-end"),yi(Pr)){const Xr=c.conditionList.find(Jr=>Jr.dataIndex===Pr);if((Kr=Xr==null?void 0:Xr.conditions)!=null&&Kr.length){for(const Jr of Xr.conditions)if((Yr=Jr==null?void 0:Jr.property)!=null&&Yr.color){let ti=!1;if(Jr.rule&&Jr.value){const oi=`${Jr.field} ${Jr.rule} '${Jr.value}'`;ti=pn(oi,{...Ar,value:_r})}else ti=!0;ti&&(Vr.color=Jr.property.color)}}else delete Vr.color}return Vr},si=Cr=>{const{attribute:_r}=Cr;let Ar="";return _r!=null&&_r.icon&&(Ar=useImagePath(_r.icon)),Ar},di=Cr=>{let _r={};return(Cr==null?void 0:Cr.cellAlign)==="right"?_r={marginRight:"5px"}:_r={position:"absolute",marginLeft:"5px"},{width:"auto",height:parseFloat(c.fontSize)+6+"px",..._r}},wi=(Cr,_r)=>Cr||Cr===0?Cr:_r==null?void 0:_r.defaultVal;function yi(Cr){var Ar;const _r=c.conditionList.find(Mr=>Mr.dataIndex===Cr);return!!((Ar=_r==null?void 0:_r.conditions)!=null&&Ar.length)}const Mi=(Cr,_r,Ar)=>{var zr,$r;const Mr=c.conditionList.find(Pr=>Pr.dataIndex===Cr.dataIndex);if((zr=Mr==null?void 0:Mr.conditions)!=null&&zr.length){let Pr=_r;for(const Vr of Mr.conditions){const Kr=(($r=Vr==null?void 0:Vr.property)==null?void 0:$r.formatText)||"";if(Kr){let Yr=!1;if(Vr.rule&&Vr.value){const Xr=`${Vr.field} ${Vr.rule} '${Vr.value}'`;Yr=pn(Xr,{...Ar,value:_r})}else Yr=!0;Yr&&(Pr=hn(Kr,{textData:{...Ar,value:_r}}))}}return Pr}else return""};return setTimeout(()=>{var Cr,_r,Ar,Mr,zr,$r,Pr,Vr;(_r=(Cr=vue.unref(gn))==null?void 0:Cr.style)==null||_r.setProperty("--pagination-color",c.paginationColor),(Mr=(Ar=vue.unref(gn))==null?void 0:Ar.style)==null||Mr.setProperty("--pagination-bg-color",c.paginationBgColor),($r=(zr=vue.unref(gn))==null?void 0:zr.style)==null||$r.setProperty("--active-pagination-color",c.activePaginationColor),(Vr=(Pr=vue.unref(gn))==null?void 0:Pr.style)==null||Vr.setProperty("--active-pagination-bg-color",c.activePaginationBgColor)},0),{x:Fn,y:Bn,style:vn,pagination:ur,formatFn:dr,contrastClass:gr,tableChange:ar,summaryList:Qr,loading:g,onTouchHrefEvent:Br,handleHref:ei,handleHrefTarget:Tr,useRowIndex:Rr,tableColumns:Xn,tableDataSource:J,useFilterOptions:Gr,useSetSelectedKeys:Lr,onResetFilter:Hr,onSearchFilterOptions:Or,exportTableData:Zr,handleProgressText:ni,pageSizeVisible:x,pageSize:or,tableRef:b,tableWrapRef:gn,rowClassName:ci,tableHeight:ai,tableBgColor:vi,tableHeaderBgColor:ui,tableBodyBgColor:pi,getChgStyle:lr,chgBoxStyle:hr,getChgBoxImgStyle:xr,getChgBoxImgSrc:Sr,seqIcon1,seqIcon2,seqIcon3,iconSize:ki,containerClass:xi,getCellStyle:Ci,isMatchCondition:Si,getAttrImgSrc:si,getAttrImgStyle:di,getCellText:wi,autoScrollHeight:re,autoScrollClass:Pn,autoScrollTop:Rn,isScroll:p,scrollWrapStyle:m,isLinkStyle:zn,hasConditionConfig:yi,formatTextByConditions:Mi,getChgByCondition:yr}}}),__injectCSSVars__=()=>{vue.useCssVars(c=>({"48fedd10":c.stripedColor,c4c5410a:c.bodyRowHeight,"1f0ab0fd":c.headRowHeight,"12abb7c7":c.tableHeaderBgColor,"33a016dc":c.tableBodyBgColor,"3b8d2f1d":c.hoverBackgroundColor}))},__setup__=__default__.setup;__default__.setup=__setup__?(c,u)=>(__injectCSSVars__(),__setup__(c,u)):__injectCSSVars__;const Table_vue_vue_type_style_index_0_scoped_d6d74805_lang="",Table_vue_vue_type_style_index_1_lang="",_withScopeId=c=>(vue.pushScopeId("data-v-d6d74805"),c=c(),vue.popScopeId(),c),_hoisted_1$1=["id"],_hoisted_2$1={key:0,class:"table-tool"},_hoisted_3=vue.createTextVNode("导出数据"),_hoisted_4={key:0,style:{float:"left","margin-right":"5px"}},_hoisted_5={key:1,style:{float:"left","margin-right":"5px",visibility:"hidden"}},_hoisted_6=vue.createTextVNode(" 搜索 "),_hoisted_7=vue.createTextVNode(" 重置 "),_hoisted_8=["src","width","height"],_hoisted_9=["src","width","height"],_hoisted_10=["src","width","height"],_hoisted_11={key:1},_hoisted_12={key:1,class:"action-list"},_hoisted_13=["href","target","onClick"],_hoisted_14={key:2,class:"progress-cell"},_hoisted_15=["src"],_hoisted_16=["title"],_hoisted_17=["title"],_hoisted_18=["src"],_hoisted_19=["src"],_hoisted_20=["title"],_hoisted_21=["src"],_hoisted_22=["src"],_hoisted_23={class:"ant-pagination-options-quick-jumper"},_hoisted_24=_withScopeId(()=>vue.createElementVNode("span",null,"条 / 页",-1));function _sfc_render$5(c,u,f,d,h,v){const p=vue.resolveComponent("a-button"),m=vue.resolveComponent("down-outlined"),g=vue.resolveComponent("right-outlined"),y=vue.resolveComponent("a-input"),b=vue.resolveComponent("a-checkbox-group"),gn=vue.resolveComponent("a-table-summary-cell"),x=vue.resolveComponent("a-table-summary-row"),vn=vue.resolveComponent("a-table-summary"),J=vue.resolveComponent("a-table"),j=vue.resolveComponent("marquee-scroll"),Fn=vue.resolveComponent("skeleton");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["ecan-table",c.containerClass]),ref:"tableWrapRef",id:"ecanTable-"+c.id,style:vue.normalizeStyle(c.style)},[vue.createVNode(Fn,{loading:c.loading},{default:vue.withCtx(()=>{var Bn;return[c.isUseExport?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$1,[vue.createVNode(p,{class:"export-button",onClick:c.exportTableData},{default:vue.withCtx(()=>[_hoisted_3]),_:1},8,["onClick"])])):vue.createCommentVNode("",!0),vue.createVNode(J,{ref:"tableRef",class:"table",style:vue.normalizeStyle({height:c.tableHeight,backgroundColor:c.tableBgColor}),columns:c.tableColumns,"data-source":c.tableDataSource,bordered:c.bordered,scroll:c.y?{x:c.x,y:c.y}:{x:c.x},pagination:c.isAutoScroll?!1:c.pagination,"row-class-name":c.rowClassName,"show-header":!c.hideTableHeader,indentSize:30,onChange:c.tableChange},{expandIcon:vue.withCtx(w=>{var re;return[(re=w.record.children)!=null&&re.length?(vue.openBlock(),vue.createElementBlock("span",_hoisted_4,[w.expanded?(vue.openBlock(),vue.createBlock(m,{key:0,onClick:Pn=>w.onExpand(w.record,Pn)},null,8,["onClick"])):(vue.openBlock(),vue.createBlock(g,{key:1,onClick:Pn=>w.onExpand(w.record,Pn)},null,8,["onClick"]))])):(vue.openBlock(),vue.createElementBlock("span",_hoisted_5,[vue.createVNode(m)]))]}),customFilterDropdown:vue.withCtx(({column:w,setSelectedKeys:re,confirm:Pn,clearFilters:Rn})=>[vue.createElementVNode("div",{class:"ecan-table-filter",style:vue.normalizeStyle({height:c.filterDropdownHeight})},[vue.createVNode(y,{value:w.filterOptionsInputValue,"onUpdate:value":Vn=>w.filterOptionsInputValue=Vn,placeholder:"请输入关键字",class:"filter-input",onChange:c.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),vue.createVNode(b,{value:w.filterCheckboxGroupValue,"onUpdate:value":Vn=>w.filterCheckboxGroupValue=Vn,class:"filter-checkbox",options:c.useFilterOptions(w),onChange:Vn=>c.useSetSelectedKeys(re,w)},null,8,["value","onUpdate:value","options","onChange"]),vue.createElementVNode("div",null,[vue.createVNode(p,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>Pn()},{default:vue.withCtx(()=>[_hoisted_6]),_:2},1032,["onClick"]),vue.createVNode(p,{size:"small",style:{width:"90px"},onClick:vue.withModifiers(Vn=>c.onResetFilter(Rn,w),["stop"])},{default:vue.withCtx(()=>[_hoisted_7]),_:2},1032,["onClick"])])],4)]),bodyCell:vue.withCtx(({column:w,index:re,text:Pn,record:Rn})=>{var Vn,Wn,Gn,Zn,Xn,er;return[w.dataIndex==="SEQ"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[c.seqIcon?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[re===0?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"seq-icon",src:c.seqIcon1,width:c.iconSize,height:c.iconSize},null,8,_hoisted_8)):re===1?(vue.openBlock(),vue.createElementBlock("img",{key:1,class:"seq-icon",src:c.seqIcon2,width:c.iconSize,height:c.iconSize},null,8,_hoisted_9)):re>=2?(vue.openBlock(),vue.createElementBlock("img",{key:2,class:"seq-icon",src:c.seqIcon3,width:c.iconSize,height:c.iconSize},null,8,_hoisted_10)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:"seq-icon seq-text",style:vue.normalizeStyle({fontSize:c.fontSize})},vue.toDisplayString(re+1),5)],64)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_11,vue.toDisplayString(re+1),1))],64)):w.dataIndex==="ACTION"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_12,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.actionList,(Jn,ir)=>(vue.openBlock(),vue.createElementBlock("div",{class:"action",key:ir},[vue.createElementVNode("a",{href:c.handleHref(Jn.href,Rn),target:c.handleHrefTarget(Jn.target),style:vue.normalizeStyle({color:Jn.color,fontSize:c.fontSize,fontWeight:c.fontWeight}),onClick:or=>c.onTouchHrefEvent(Jn.target,c.handleHref(Jn.href,Rn))},vue.toDisplayString(Jn.title),13,_hoisted_13)]))),128))])):w.format==="progress"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_14,[vue.createElementVNode("div",{class:"progress",style:vue.normalizeStyle({background:w.progressColor||"#1890ff",height:w.progressWidth||"18px",width:`${c.handleProgressText(Pn,w.progressTextDecimalPlaces)}%`})},null,4),vue.createElementVNode("div",{class:"progress-text",style:vue.normalizeStyle({color:+c.handleProgressText(Pn)<100?w.progressTextColor||"#333":w.progressFinishedTextColor||"#fff"})},vue.toDisplayString(c.handleProgressText(Pn,w.progressTextDecimalPlaces))+"% ",5)])):(vue.openBlock(),vue.createElementBlock("div",{key:3,style:vue.normalizeStyle({fontSize:c.fontSize,fontWeight:c.isLinkStyle(w)?"bold":c.fontWeight,...c.getCellStyle(w,Pn,Rn)})},[c.isMatchCondition(w,Pn)&&(w==null?void 0:w.cellAlign)==="right"&&((Vn=w==null?void 0:w.attribute)!=null&&Vn.icon)?(vue.openBlock(),vue.createElementBlock("img",{key:0,style:vue.normalizeStyle(c.getAttrImgStyle(w)),src:c.getAttrImgSrc(w)},null,12,_hoisted_15)):vue.createCommentVNode("",!0),!c.hasConditionConfig(w.dataIndex)&&w.format==="contrast"?(vue.openBlock(),vue.createElementBlock("span",{key:1,title:((Wn=w==null?void 0:w.customFormatter)==null?void 0:Wn.split("{value}")[0])||""},vue.toDisplayString(((Gn=w==null?void 0:w.customFormatter)==null?void 0:Gn.split("{value}")[0])||""),9,_hoisted_16)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:vue.normalizeClass([c.contrastClass(w.format)]),style:vue.normalizeStyle(c.getChgStyle({...w,text:Pn})),title:c.hasConditionConfig(w.dataIndex)?c.formatTextByConditions(w,Pn,Rn):w.format!=null?c.formatFn(Pn,w):Pn},[!c.hasConditionConfig(w.dataIndex)&&w.format==="contrast"?(vue.openBlock(),vue.createElementBlock("div",{key:0,style:vue.normalizeStyle(c.chgBoxStyle)},[vue.createElementVNode("img",{style:vue.normalizeStyle(c.getChgBoxImgStyle({...w,text:Pn})),src:c.getChgBoxImgSrc(Pn)},null,12,_hoisted_18)],4)):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString(c.hasConditionConfig(w.dataIndex)?c.formatTextByConditions(w,Pn,Rn):w.format!=null?c.formatFn(Pn,w):c.getCellText(Pn,w))+" ",1),c.hasConditionConfig(w.dataIndex)&&c.getChgByCondition(w,Pn,Rn,2)?(vue.openBlock(),vue.createElementBlock("div",{key:1,style:vue.normalizeStyle({...c.chgBoxStyle,height:"auto",scale:.6})},[vue.createElementVNode("img",{style:vue.normalizeStyle(c.getChgByCondition(w,Pn,Rn,1)),src:c.getChgByCondition(w,Pn,Rn,2)},null,12,_hoisted_19)],4)):vue.createCommentVNode("",!0)],14,_hoisted_17),!c.hasConditionConfig(w.dataIndex)&&w.format==="contrast"?(vue.openBlock(),vue.createElementBlock("span",{key:2,title:((Zn=w==null?void 0:w.customFormatter)==null?void 0:Zn.split("{value}")[1])||""},vue.toDisplayString(((Xn=w==null?void 0:w.customFormatter)==null?void 0:Xn.split("{value}")[1])||""),9,_hoisted_20)):vue.createCommentVNode("",!0),c.isMatchCondition(w,Pn)&&(w==null?void 0:w.cellAlign)!=="right"&&((er=w==null?void 0:w.attribute)!=null&&er.icon)?(vue.openBlock(),vue.createElementBlock("img",{key:3,style:vue.normalizeStyle(c.getAttrImgStyle(w)),src:c.getAttrImgSrc(w)},null,12,_hoisted_21)):vue.createCommentVNode("",!0)],4))]}),summary:vue.withCtx(()=>[c.summaryList.length>0?(vue.openBlock(),vue.createBlock(vn,{key:0,fixed:c.isSummaryFixed},{default:vue.withCtx(()=>[vue.createVNode(x,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.summaryList,(w,re)=>(vue.openBlock(),vue.createBlock(gn,{key:re,index:re,style:vue.normalizeStyle({backgroundColor:c.cellBackgroundColor,textAlign:w.cellAlign||"center",color:c.cellFontColor,borderBottomColor:c.borderColor})},{default:vue.withCtx(()=>[vue.createElementVNode("span",{class:vue.normalizeClass([c.contrastClass(w.format)]),style:vue.normalizeStyle({...c.getChgStyle({...w,text:w.total}),fontSize:c.fontSize,fontWeight:c.fontWeight})},[w.format==="contrast"?(vue.openBlock(),vue.createElementBlock("div",{key:0,style:vue.normalizeStyle(c.chgBoxStyle)},[vue.createElementVNode("img",{style:vue.normalizeStyle(c.getChgBoxImgStyle({...w,text:w.total})),src:c.getChgBoxImgSrc(w.total)},null,12,_hoisted_22)],4)):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString((w.format!=null||w.format!=="")&&c.formatFn(w.total,w)),1)],6)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1},8,["fixed"])):vue.createCommentVNode("",!0)]),_:1},8,["style","columns","data-source","bordered","scroll","pagination","row-class-name","show-header","onChange"]),c.paginationShow?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[(Bn=c.tableDataSource)!=null&&Bn.length&&!c.simple&&c.pageSizeShow&&c.pageSizeVisible?(vue.openBlock(),vue.createBlock(vue.Teleport,{key:0,to:"#ecanTable-"+c.id+" .ant-pagination"},[vue.createElementVNode("div",_hoisted_23,[vue.withDirectives(vue.createElementVNode("input",{type:"text","onUpdate:modelValue":u[0]||(u[0]=w=>c.pageSize=w)},null,512),[[vue.vModelText,c.pageSize]]),_hoisted_24])],8,["to"])):vue.createCommentVNode("",!0)],64)):vue.createCommentVNode("",!0),c.isAutoScroll?(vue.openBlock(),vue.createElementBlock("div",{key:2,class:vue.normalizeClass(["auto-scroll-content ant-table-wrapper table",c.autoScrollClass]),style:vue.normalizeStyle({width:"100%",position:"absolute",left:"0",height:c.autoScrollHeight+"px",top:c.autoScrollTop+"px",overflow:"auto"})},[vue.createVNode(j,{visible:c.isScroll,step:c.scrollSpeed,wrapStyle:{display:"flex",flexDirection:"column",flexWrap:"wrap"}},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"scroll-wrap",style:vue.normalizeStyle(c.scrollWrapStyle)},null,4)]),_:1},8,["visible","step"])],6)):vue.createCommentVNode("",!0)]}),_:1},8,["loading"]),vue.renderSlot(c.$slots,"toolbox",{},void 0,!0)],14,_hoisted_1$1)}const Table=_export_sfc$1(__default__,[["render",_sfc_render$5],["__scopeId","data-v-d6d74805"]]),EcanTable=withInstall$1(Table),mapProps={...props$1,mapJson:null,data:[],name:"地图",keyName:"地图",type:"ecanMap",width:"400px",height:"400px",backgroundImage:"",backgroundImageRepeat:"no-repeat",geoBackgroundImage:"",geoBackgroundImageRepeat:"no-repeat",symbolImage:"",symbolWidth:10,symbolHeight:10,itemStyleColor:"#11BFDA",labelFontSize:14,labelShow:!0,geoLabelShow:!0,geoLabelColor:"#000",geoZoom:1,geoRoam:!1,geoCenter:"",geoLabelFontSize:12,labelColor:"",labelFormatter:"{b}",geoItemStyleAreaColor:"#eee",geoItemStyleBorderColor:"#000",geoItemStyleBorderWidth:1,geoItemStyleShadowColor:"",geoItemStyleShadowOffsetX:0,geoItemStyleShadowOffsetY:0,geoItemStyleShadowBlur:0,geoEmphasisDisabled:!1,geoEmphasisLabelColor:"#fff",geoEmphasisItemStyleAreaColor:"#f00",geoEmphasisItemStyleBorderColor:"#000",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{name}:{value}",tooltipRequestData:{requestUrl:"",requestMethod:"get",requestParams:[]},tooltipBackgroundColor:"#fff",areaStyleKeyName:"",mapAreaStyleConfig:[],legendShow:!1,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"bottom",legendLeft:"right",mapLegendType:"circle",legendTextShow:!0,legendTitle:"",legendTitleColor:"#333",legendTitleFontSize:"16px",legendFrontText:"",legendAfterText:"",legendBoxShadow:""},mapComponentProps=transformToComponentProps(mapProps),mapEvents=["refreshData","click"];core$1.use([renderers.CanvasRenderer,charts.MapChart,charts.ScatterChart,components$1.VisualMapComponent,components$1.TooltipComponent,components$1.GraphicComponent]);const _sfc_main$4=vue.defineComponent({name:"EcanMap",components:{Echarts},props:{...mapComponentProps},setup(c){const u=useRequestData({...c.tooltipRequestData,requestHeaders:{}}),f=vue.ref(),d=vue.ref(""),h=vue.ref(""),v=usePickComponentStyle(c,["backgroundImage"]),p=vue.ref(),m=vue.computed(()=>useImagePath(c.geoBackgroundImage)),g=vue.computed(()=>useImagePath(c.backgroundImage)),y=vue.ref([]),b=vue.computed(()=>c.geoBackgroundImage?{image:vue.unref(p),repeat:c.geoBackgroundImageRepeat}:c.geoItemStyleAreaColor),gn=vue.computed(()=>{const Qn=c.symbolImage;return c.symbolImage?"image://"+useImagePath(Qn):"circle"}),x=Qn=>{let fr=c.tooltipFormatter;const vr=fr.match(/\{(.+?)\}/g);if(vr==null||vr.length===0)return fr;for(let Yn=0;Yn<vr.length;Yn++){const ar=vr[Yn];let ur=ar.slice(1,-1).trim();const mr=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,dr=ur.match(mr);for(let gr=0;gr<dr.length;gr++){const lr=dr[gr],hr=Qn[lr];hr!=null&&(ur=ur.replace(lr,hr))}fr=fr.replace(ar,ur)}return fr.split(`
182
182
  `)},vn=vue.ref(!1),J=vue.ref("");let j=new AbortController;const Fn=(Qn,fr)=>{const vr=j.signal;vn.value=!0,d.value=Qn,u({name:Qn,signal:vr}).then(Yn=>{var ar,ur;if(Yn){const mr=((ur=(ar=Yn==null?void 0:Yn.data)==null?void 0:ar.data)==null?void 0:ur.rows)||[];let dr="";for(const gr of mr){const lr=x(gr)||[];if(lr!=null&&lr.length)for(const hr of lr)dr+=`<div style="word-break: break-all;white-space: normal;">${hr}</div>`}dr=`<div style="max-width:200px;">${dr}</div>`,h.value=dr,fr(vue.unref(J),dr)}else vr.aborted?h.value="Loading":h.value=Qn,fr(vue.unref(J),h.value);vn.value=!1})},Bn=vue.ref(),w=vue.computed(()=>c.dataType==="request"?Bn.value:c.data),re=vue.computed(()=>{const Qn=[],{mapAreaStyleConfig:fr}=c;if(fr!=null&&fr.length)for(const vr of fr)Qn.push({...vr,key:nanoid(6)});return Qn}),Pn=vue.computed(()=>{const Qn=[];for(const fr of vue.unref(re)){let vr="";fr.value1&&(vr+=`value ${fr.rule1} ${fr.value1}`),fr.value2&&(vr+=`${fr.value1?"&&":""} value ${fr.rule2} ${fr.value2}`),vr&&Qn.push({rule:vr,color:fr.color,key:fr.key})}return Qn.reverse()}),Rn=vue.computed(()=>{var vr;const Qn=[],{areaStyleKeyName:fr}=c;if((vr=vue.unref(w))!=null&&vr.length)for(const Yn of vue.unref(w)){const ar=Yn[fr];if(ar||ar===0){const ur=vue.unref(Pn).find(mr=>pn(mr.rule,{value:ar}));ur&&Qn.push({name:Yn.name,itemStyle:{areaColor:vue.unref(y).includes(ur.key)?c.geoItemStyleAreaColor:ur.color}})}}return Qn}),Vn=vue.computed(()=>{const Qn=c.geoCenter;let fr;return typeof Qn=="string"&&Qn!==""&&(fr=Qn.split(",")),{tooltip:{show:!0},graphic:[{type:"image",style:{width:parseFloat(c.width),height:parseFloat(c.height),image:vue.unref(g)},top:"center"}],geo:{zoom:c.geoZoom,roam:c.geoRoam,center:fr,map:`map-${c.id}`,selectedMode:"single",tooltip:{show:c.tooltipShow,trigger:"item",backgroundColor:c.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:c.tooltipTextStyleColor},formatter:(vr,Yn,ar)=>{J.value=Yn;const{name:ur=""}=vr,{requestUrl:mr}=c.tooltipRequestData;if(!mr){let dr="",gr=c.tooltipFormatter;gr===""&&(gr="{name}:{value}");const lr=vue.unref(w).find(hr=>hr.name===ur);return lr?(dr+=hn(gr,{textData:{name:ur,...lr}},{useNewline:!0,useSpace:!0}),dr):ur}if(vue.unref(vn))vue.unref(d)!==ur&&(j.abort(),j=new AbortController);else{if(vue.unref(d)===ur)return vue.unref(h);Fn(ur,ar)}return"Loading"}},label:{show:c.geoLabelShow,color:c.geoLabelColor,fontSize:c.geoLabelFontSize},itemStyle:{areaColor:vue.unref(b),borderColor:c.geoItemStyleBorderColor,borderWidth:c.geoItemStyleBorderWidth,shadowColor:c.geoItemStyleShadowColor,shadowBlur:c.geoItemStyleShadowBlur,shadowOffsetX:c.geoItemStyleShadowOffsetX,shadowOffsetY:c.geoItemStyleShadowOffsetY},emphasis:{disabled:c.geoEmphasisDisabled,label:{color:c.geoEmphasisLabelColor},itemStyle:{areaColor:c.geoEmphasisItemStyleAreaColor,borderColor:c.geoEmphasisItemStyleBorderColor}},regions:Rn.value},series:[{type:"scatter",coordinateSystem:"geo",itemStyle:{color:c.itemStyleColor},symbol:vue.unref(gn),symbolSize:[c.symbolWidth,c.symbolHeight],label:{show:c.labelShow,fontSize:c.labelFontSize,formatter:c.labelFormatter,color:c.labelColor},tooltip:{show:c.tooltipShow,textStyle:{color:c.tooltipTextStyleColor}},data:w.value}]}}),Wn=vue.ref(!1),Gn=async()=>{var vr;Wn.value=!1;const Qn=c.mapJson,fr=`map-${c.id}`;if(Qn!=null&&Qn.path){const Yn=await request(((vr=window==null?void 0:window.config)==null?void 0:vr.uploadPath)+Qn.path);core$1.registerMap(fr,(Yn==null?void 0:Yn.data)||{})}else core$1.registerMap(fr,{});Wn.value=!0};vue.watch(()=>c.mapJson,()=>{Gn()},{immediate:!0,deep:!0});const Zn=async Qn=>{var Yn,ar,ur,mr;const fr=(ar=(Yn=Qn==null?void 0:Qn.data)==null?void 0:Yn.data)==null?void 0:ar.rows,vr=`map-${c.id}`;if(fr!=null&&fr.path){const dr=await request(fr.path);core$1.registerMap(vr,(dr==null?void 0:dr.data)||{})}else if(Array.isArray(fr))if(Bn.value=fr,(ur=fr[0])!=null&&ur.mapUrl){const dr=await request((mr=fr[0])==null?void 0:mr.mapUrl);core$1.registerMap(vr,(dr==null?void 0:dr.data)||{})}else core$1.registerMap(vr,{});else core$1.registerMap(vr,{});vue.nextTick(()=>{Wn.value=!0})},Xn=useRequestData(c),er=async()=>{if(c.dataType==="request"){Wn.value=!1;try{const Qn=await Xn();Zn(Qn)}catch(Qn){console.error(Qn),Wn.value=!0}}},Jn=async()=>{const Qn=ir(c.id);switch(or(c.id,{...Qn,RECORD:{}}),c.dataType){case"static":Gn();break;case"request":await er();break}},{getGlobalModel:ir,setGlobalModel:or}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Qn=>{},setGlobalModel:(Qn,fr)=>{}}),Hn=useEmitEvent(c)("click",()=>{var fr,vr;const Qn=ir(c.id);((fr=Qn==null?void 0:Qn.RECORD)==null?void 0:fr.name)===((vr=vue.unref(f))==null?void 0:vr.name)?or(c.id,{...Qn,RECORD:{}}):or(c.id,{...Qn,RECORD:vue.unref(f)})});useOnEvent(c,{refreshData:Jn});const{setRequest:Kn}=vue.inject(REQUEST_MODEL,{setRequest:Qn=>{}});typeof Kn=="function"&&Kn({id:c.id,requestFn:Jn,sortNum:c.requestSort});const zn=()=>{vue.unref(f)&&Hn()},qn=(Qn={})=>{Qn.componentType==="geo"&&Qn.region?f.value=Qn.region:f.value=null},tr=vue.computed(()=>{const Qn={},{legendTop:fr,legendLeft:vr,legendBoxShadow:Yn}=c;return Yn&&(Qn.boxShadow=Yn),fr==="bottom"?Qn.bottom=0:fr==="top"&&(Qn.top=0),vr==="left"?Qn.left=0:vr==="right"&&(Qn.right=0),Qn}),Un=vue.computed(()=>{const Qn={};return c.legendOrient==="vertical"&&(Qn.flexDirection="column"),Qn}),nr=vue.computed(()=>{var Qn;if((Qn=vue.unref(re))!=null&&Qn.length){const fr=[];for(const vr of vue.unref(re)){const{value1:Yn,value2:ar,rule1:ur,rule2:mr,color:dr}=vr;Yn&&ar?+Yn<+ar?ur.includes(">")&&mr.includes("<")&&fr.push({text:`${Yn} - ${ar}`,color:dr,key:vr.key}):+Yn>+ar?ur.includes("<")&&mr.includes(">")&&fr.push({text:`${ar} - ${Yn}`,color:dr,key:vr.key}):+Yn==+ar&&fr.push({text:`${Yn} - ${ar}`,color:dr,key:vr.key}):Yn?fr.push({text:`${ur} ${Yn}`,color:dr,key:vr.key}):ar&&fr.push({text:`${mr} ${ar}`,color:dr,key:vr.key})}return fr}else return[]});return{option:Vn,style:v,isLoadedData:Wn,geoBackgroundImageRef:p,myGeoBackgroundImage:m,mapLegendStyle:tr,legendContainerStyle:Un,mapLegendList:nr,hiddenLegendKey:y,customClick:zn,onMouseOver:qn,handleToggleVisible:Qn=>{const fr=vue.unref(y).findIndex(vr=>vr===Qn);fr>=0?y.value.splice(fr,1):y.value.push(Qn)}}}}),Map_vue_vue_type_style_index_0_scoped_795834b9_lang="",_hoisted_1=["src"],_hoisted_2=["title","onClick"];function _sfc_render$4(c,u,f,d,h,v){const p=vue.resolveComponent("echarts");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-map",style:vue.normalizeStyle(c.style)},[c.isLoadedData?(vue.openBlock(),vue.createBlock(p,{key:0,option:c.option,"update-options":{notMerge:!0},autoresize:"","onZr:click":c.customClick,onMouseover:c.onMouseOver},null,8,["option","onZr:click","onMouseover"])):vue.createCommentVNode("",!0),vue.withDirectives(vue.createElementVNode("img",{ref:"geoBackgroundImageRef",src:c.myGeoBackgroundImage},null,8,_hoisted_1),[[vue.vShow,!1]]),c.legendShow?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"map-legend",style:vue.normalizeStyle(c.mapLegendStyle)},[vue.createElementVNode("div",{class:"legend-title",style:vue.normalizeStyle({color:c.legendTitleColor,fontSize:c.legendTitleFontSize})},vue.toDisplayString(c.legendTitle),5),vue.createElementVNode("div",{class:"legend-container",style:vue.normalizeStyle(c.legendContainerStyle)},[vue.createElementVNode("div",{style:vue.normalizeStyle({color:c.legendTextStyleColor,marginRight:c.legendOrient==="horizontal"?"5px":"",marginBottom:c.legendOrient==="vertical"?"5px":""})},vue.toDisplayString(c.legendFrontText),5),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.mapLegendList,(m,g)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["legend-item",{hidden:c.hiddenLegendKey.includes(m.key)}]),style:vue.normalizeStyle({marginRight:c.legendOrient==="horizontal"?"10px":"",marginLeft:c.legendOrient==="horizontal"?"10px":"",marginBottom:c.legendOrient==="vertical"?"10px":"",marginTop:c.legendOrient==="vertical"?"10px":""}),key:g,title:c.legendTextShow?"":m.text,onClick:y=>c.handleToggleVisible(m.key)},[vue.createElementVNode("div",{class:"color-block",style:vue.normalizeStyle({backgroundColor:m.color,width:"20px",height:c.mapLegendType==="rect"?"16px":"20px",borderRadius:c.mapLegendType==="circle"?"50%":"4px"})},null,4),c.legendTextShow?(vue.openBlock(),vue.createElementBlock("span",{key:0,class:"legend-item-text",style:vue.normalizeStyle({color:c.legendTextStyleColor,marginLeft:"10px"})},vue.toDisplayString(m.text),5)):vue.createCommentVNode("",!0)],14,_hoisted_2))),128)),vue.createElementVNode("div",{style:vue.normalizeStyle({color:c.legendTextStyleColor,marginLeft:c.legendOrient==="horizontal"?"5px":"",marginTop:c.legendOrient==="vertical"?"5px":""})},vue.toDisplayString(c.legendAfterText),5)],4)],4)):vue.createCommentVNode("",!0)],4)}const Map$1=_export_sfc$1(_sfc_main$4,[["render",_sfc_render$4],["__scopeId","data-v-795834b9"]]),EcanMap=withInstall$1(Map$1),dataSelectProps={...props$1,name:"下拉框选择器-数据",keyName:"下拉框选择器-数据",width:"120px",height:"33px",type:"ecanDataSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,graphicConfig:{},valueType:"value",isAllowClear:!0,optionFontSize:"14px"},dataSelectComponentProps=transformToComponentProps(dataSelectProps),dataSelectEvents=["selectChange","refreshData"],_sfc_main$3=vue.defineComponent({name:"EcanDataSelect",components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption},props:{...dataSelectComponentProps},setup(c,{expose:u}){const f=usePickComponentStyle(c),d=()=>document.getElementById("ProviderConfig")||document.body,h=vue.ref(c.data||[]),v=vue.ref(),p=vue.computed({get:()=>{var sr;const{mode:or}=c;return(sr=vue.unref(h))!=null&&sr.length?v.value:or==="multiple"||or==="tags"||or==="combobox"?[]:""},set:or=>{v.value=or}}),{getGlobalModel:m,setGlobalModel:g,getRecordValueByKeyName:y}=vue.inject(GLOBAL_MODEL,{getGlobalModel:or=>{},setGlobalModel:(or,sr)=>{},getRecordValueByKeyName:or=>{}}),b=c.dataFieldNames;vue.watch(()=>[c.value,c.mode,c.selectFirstOption,c.valueType,h.value],()=>{const{mode:or,selectFirstOption:sr,value:Hn}=c,Kn=y(Hn),zn=b.value;if(or==="multiple"||or==="tags"||or==="combobox"){if(Kn)v.value=Kn.split(",");else if(sr){const qn=vue.unref(h)[0];v.value=qn?[qn[zn]]:[]}}else if(Kn)v.value=Kn;else if(sr){const qn=vue.unref(h)[0];v.value=qn?qn[zn]:""}},{immediate:!0});const gn=(or,sr)=>{const Hn=b.label,Kn=b.value;let zn;const qn=sr[Hn],tr=sr[Kn];return qn!=null?zn=qn:tr!=null&&(zn=tr),(zn==null?void 0:zn.toLowerCase().indexOf(or==null?void 0:or.toLowerCase()))>=0},x=or=>{const{label:sr,value:Hn,options:Kn}=c.dataFieldNames;if(Kn&&Array.isArray(or))if(or.some(zn=>Kn in zn)){const zn={},qn=[];or.forEach(tr=>{zn[tr[Kn]]||(zn[tr[Kn]]=[]),zn[tr[Kn]].push({[sr]:tr[sr],[Hn]:tr[Hn]})});for(const tr in zn)qn.push({[sr]:tr,[Kn]:zn[tr]});return qn}else return or;else if(!Kn)return or},vn=vue.ref(!1),J=or=>{var sr,Hn;if(h.value=x(((Hn=(sr=or==null?void 0:or.data)==null?void 0:sr.data)==null?void 0:Hn.rows)||[]),c.selectFirstOption){let Kn=vue.unref(h)[0];if(b.options){const zn=Kn[b.options];zn&&zn.length&&(Kn=zn[0])}v.value=Kn[b.value]}},j=useRequestData(c),Fn=async()=>{if(c.dataType==="request"){vn.value=!0;try{const or=await j();J(or)}catch(or){console.error(or)}finally{vn.value=!1}}},Bn=vue.computed(()=>{let or=v.value;if(c.valueType==="label"&&vue.unref(v)&&vue.unref(h)){const sr=b.label,Hn=b.value;if(c.mode==="multiple")or=vue.unref(h).filter(Kn=>vue.unref(v).includes(Kn[Hn])).map(Kn=>Kn[sr]);else{const Kn=vue.unref(h).find(zn=>vue.unref(v)===zn[Hn]);Kn&&(or=Kn[sr])}}return or}),w=vue.ref([]),re=vue.computed(()=>{const or={};if(c.mode!=="multiple"){const sr=vue.unref(w).find(Hn=>Hn.value===vue.unref(v));sr&&(or.itemCodes=sr.item_codes)}return or}),Pn=vue.computed(()=>{const{value:or,label:sr}=b,Hn=vue.unref(h).find(Kn=>Kn[or]===vue.unref(p));return Hn?{label:Hn[sr],value:Hn[or]}:{}}),{pageId:Rn}=vue.inject("templateOperate",{pageId:""})||{};g(c.id,{type:c.type,value:Bn,...vue.unref(re),recordData:vue.unref(Pn)});const Vn=useEmitEvent(c),Wn=Vn("selectChange",()=>{const or=c.id,sr=m(or);g(or,{...sr,...vue.unref(re),RECORD:Bn,recordData:vue.unref(Pn)});const Hn=getNewValueFromUrlParams(Rn,c.keyName,"value");Hn&&(p.value=Hn)}),Gn=Vn("refreshData",(or=[])=>{if(h.value=x(or),c.selectFirstOption){let sr=vue.unref(h)[0];if(b.options){const Hn=sr[b.options];Hn&&Hn.length&&(sr=Hn[0])}v.value=sr[b.value]}g(c.id,{type:c.type,value:Bn,...vue.unref(re),recordData:vue.unref(Pn)})}),Zn=or=>{var zn;const{data:sr}=(or==null?void 0:or.data)||{},Hn=b.label,Kn=b.value;if(sr){const{rows:qn=[]}=((zn=or==null?void 0:or.data)==null?void 0:zn.data)||{};w.value=qn;const tr=qn.map(cr=>({[Hn]:cr.label,[Kn]:cr.value})),{id:Un}=c,nr=m(Un);g(Un,{...nr,...vue.unref(re)}),Gn(tr)}else Gn([])},Xn=useIndicatorData(c,Zn),er=async()=>{try{vn.value=!0;const or=await Xn();Zn(or)}catch(or){console.error(or)}finally{vn.value=!1}},Jn=async()=>{switch(c.dataType){case"indicator":{await er();break}case"request":await Fn();break}};useOnEvent(c,{selectChange:Wn,refreshData:Jn});const{setRequest:ir}=vue.inject(REQUEST_MODEL,{setRequest:({id:or,sortNum:sr,requestFn:Hn})=>{}});return typeof ir=="function"&&ir({id:c.id,requestFn:Jn,sortNum:c.requestSort}),u({refreshData:Jn}),{style:f,getPopupContainer:d,myValue:v,selectChange:Wn,options:h,filterOption:gn,loading:vn,resultValue:p}}}),DataSelect_vue_vue_type_style_index_0_scoped_aa03f318_lang="",DataSelect_vue_vue_type_style_index_1_lang="";function _sfc_render$3(c,u,f,d,h,v){const p=vue.resolveComponent("a-select-option"),m=vue.resolveComponent("a-select");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-select",style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{class:"select",value:c.resultValue,"onUpdate:value":u[0]||(u[0]=g=>c.resultValue=g),placeholder:c.placeholder,showSearch:"",allowClear:c.isAllowClear,mode:c.mode,getPopupContainer:c.getPopupContainer,fieldNames:c.dataFieldNames,maxTagCount:c.maxTagCount,filterOption:c.filterOption,loading:c.loading,autoClearSearchValue:c.autoClearSearchValue,onChange:c.selectChange,style:vue.normalizeStyle({fontSize:c.optionFontSize})},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.options,(g,y)=>(vue.openBlock(),vue.createBlock(p,{key:y,value:g.value,label:g.label,style:vue.normalizeStyle({fontSize:c.optionFontSize})},null,8,["value","label","style"]))),128))]),_:1},8,["value","placeholder","allowClear","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange","style"]),vue.renderSlot(c.$slots,"toolbox",{},void 0,!0)],4)}const DataSelect=_export_sfc$1(_sfc_main$3,[["render",_sfc_render$3],["__scopeId","data-v-aa03f318"]]),EcanDataSelect=withInstall$1(DataSelect),_sfc_main$2=vue.defineComponent({name:"EcanPivotTable",components:{},props:{...pivotTableComponentProps,fullMode:{type:Boolean,default:!1}},setup(c,{emit:u,expose:f}){var Pn,Rn;const d=(Pn=window==null?void 0:window.config)==null?void 0:Pn.pageId,h=(Rn=window==null?void 0:window.config)==null?void 0:Rn.indicatorToken,v=usePickComponentStyle(c),p=vue.ref(),{pageMode:m,theme:g,width:y,height:b}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",theme:"light",width:"",height:""}),gn=vue.inject("scaleValue",{widthScale:"1",heightScale:"1"}),{getAllGlobalModel:x}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),vn=vue.computed(()=>{const{width:Vn,height:Wn}=c;let Gn=0,Zn=0;return typeof Vn=="string"?Gn=parseFloat(Vn):Vn.suffix==="px"?Gn=+Vn.value:Vn.suffix==="%"&&(Gn=parseFloat(vue.unref(y))*(Vn.value/100)),typeof Wn=="string"?Zn=parseFloat(Wn):Wn.suffix==="px"?Zn=+Wn.value:Wn.suffix==="%"&&(Zn=parseFloat(vue.unref(b))*(Wn.value/100)),{...c,width:Gn+"px",height:Zn+"px",pageId:d,indicatorToken:h,context:CONTEXT,globalModel:x()}}),J=vue.computed(()=>INDICATOR_URL),j=()=>{switch(c.dataType){case"indicator":vue.unref(p).refreshData();break}},{setRequest:Fn}=vue.inject(REQUEST_MODEL,{setRequest:({id:Vn,sortNum:Wn,requestFn:Gn})=>{}});typeof Fn=="function"&&Fn({id:c.id,requestFn:j,sortNum:c.requestSort}),f({refreshData:j});const w=useEmitEvent(c)("click",()=>{vue.unref(p).click()});return useOnEvent(c,{refreshData:j,click:w}),vue.onMounted(()=>{}),{props:c,style:v,pageMode:m,pivotTableRef:p,theme:g,customProps:vn,indicatorUrl:J,scaleValue:gn,click:w,onTableChange:({type:Vn,data:Wn})=>{u("tableChange",{type:Vn,data:Wn})}}}}),PivotTableContainer_vue_vue_type_style_index_0_scoped_46e3d7d4_lang="";function _sfc_render$2(c,u,f,d,h,v){const p=vue.resolveComponent("pivot-table");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-pivot-table",style:vue.normalizeStyle(c.style)},[vue.createVNode(p,vue.mergeProps({ref:"pivotTableRef"},c.customProps,{pageMode:c.pageMode,theme:c.theme,fullMode:c.fullMode,indicatorUrl:c.indicatorUrl,scaleValue:c.scaleValue,enlargeContainer:"#norPageConfig",onTableChange:c.onTableChange}),null,16,["pageMode","theme","fullMode","indicatorUrl","scaleValue","onTableChange"])],4)}const PivotTableContainer=_export_sfc$1(_sfc_main$2,[["render",_sfc_render$2],["__scopeId","data-v-46e3d7d4"]]),EcanPivotTable=withInstall$1(PivotTableContainer),valueLineProps={...props$1,id:"",name:"双值轴折线图",keyName:"双值轴折线图",type:"ecanValueLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:0,value:0,value2:10},{name:10,value:20,value2:35},{name:20,value:30,value2:25},{name:30,value:40,value2:55}],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%",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",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,tooltipTextStyleColor:"",customPoint:"",axisMarkPoint:[],markPointFormatter:"{x}, {y}"},valueLineComponentProps=transformToComponentProps(valueLineProps),valueLineEvents=["click","refreshData","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.LineChart,components$1.ToolboxComponent,components$1.TitleComponent,components$1.LegendComponent,components$1.MarkLineComponent,components$1.MarkPointComponent]);const _sfc_main$1=vue.defineComponent({name:"EcanValueLine",props:{...valueLineComponentProps},components:{Spin,Echarts,EcanModal},setup(c,{expose:u}){const{pageMode:f,fontFamily:d}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),h=vue.ref(),v=vue.ref(!1),p=usePickComponentStyle(c),m=vue.ref([]),g=vue.ref(),y=vue.computed(()=>v.value?ZOOM_FONT_SIZE:12),b=vue.ref({});let gn;const x=vue.computed(()=>{const qn=c.xAxisLabelFormatter,tr=c.yAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(d)},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:v.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 Un;v.value=!0,(Un=g.value)==null||Un.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(){antDesignVue.Modal.info({title:"说明信息",content:c.toolboxInfoText})}}}},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:y.value,color:c.tooltipTextStyleColor},show:c.tooltipShow,formatter:Un=>{var fr;const nr=Un.length;let cr="",Qn=c.tooltipFormatter;gn=(fr=Un[0])==null?void 0:fr.data,Qn===""&&(Qn="{marker} {a} {c}");for(let vr=0;vr<nr;vr++){const{marker:Yn,seriesName:ar,name:ur,value:mr,data:dr}=Un[vr]||{};if(vr===0){let gr=ur;typeof ur=="string"&&ur[0]==="0"&&!isNaN(+ur)&&(gr=(+ur).toString()),cr+=`${In(qn,gr)}<br/>`}cr+=hn(Qn,{textData:{marker:Yn,a:ar,b:mr[0],c:mr[1]||0,...dr==null?void 0:dr.record}},{useNewline:!0,useSpace:!0}),cr+="<br/>"}return cr},position:c.tooltipPosition||void 0},xAxis:{type:"value",boundaryGap:c.isBoundaryGap,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(Un){return typeof Un=="string"&&Un[0]==="0"&&!isNaN(+Un)&&(Un=(+Un).toString()),In(qn,Un)}},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(Un){return In(tr,Un)}},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:(v.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:v.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,formatter:Un=>getLegendFormat(c.legendFormatter,{name:Un})},series:vue.unref(m)}}),vn=()=>{v.value=!1},{getGlobalModel:J,setGlobalModel:j,getRecordValueByKeyName:Fn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:qn=>{},setGlobalModel:(qn,tr)=>{},getRecordValueByKeyName:qn=>{}}),Bn=vue.computed(()=>c.isShowMarkLine?{markLine:{data:[{type:c.markLineType}]}}:{}),w=(qn,tr,Un,nr,cr,Qn,fr,vr)=>{const Yn=(-(cr*vr-Qn*fr)/(fr-cr)+(qn*nr-tr*Un)/(Un-qn))/((nr-tr)/(Un-qn)-(vr-Qn)/(fr-cr)),ar=(nr-tr)/(Un-qn)*(-(cr*vr-Qn*fr)/(fr-cr)+(qn*nr-tr*Un)/(Un-qn))/((nr-tr)/(Un-qn)-(vr-Qn)/(fr-cr))-(qn*nr-tr*Un)/(Un-qn);return[Yn,ar]},re=()=>{var Un;const qn={symbol:"circle",tooltip:{trigger:"item",formatter:nr=>{let cr="",Qn=c.markPointFormatter;Qn===""&&(Qn="{x}, {y}");const{data:{coord:fr=[]}}=nr||{};return cr+=hn(Qn,{textData:{x:fr[0]||0,y:fr[1]||0}},{useNewline:!0,useSpace:!0}),cr+="<br/>",cr}},data:[]},{axisMarkPoint:tr=[]}=c;for(const nr of tr){const{coord:cr=""}=nr,Qn=[];let fr=[];if(cr.includes("getIntersectPoint")){const vr=(Un=cr.match(/getIntersectPoint\((.*?)\)/)[1])==null?void 0:Un.split(",");if((vr==null?void 0:vr.length)===8){const Yn=[];for(const ar of vr){const ur=ar.replaceAll(" ","");(ur==null?void 0:ur.slice(0,1))==="{"&&(ur==null?void 0:ur.slice(-1))==="}"?Yn.push(+Fn(ur)||0):Yn.push(+ur)}fr=w(...Yn)}}else fr=cr.split(",");(fr==null?void 0:fr.length)===2&&(Qn[0]=+fr[0],Qn[1]=+fr[1]),Qn!=null&&Qn.length&&qn.data.push({coord:Qn,symbolSize:nr.symbolSize,itemStyle:{color:nr.pointColor||"transparent",borderWidth:nr.borderWidth||"transparent",borderColor:nr.borderColor||"transparent"},label:{formatter:nr.label,position:nr.labelPosition,color:nr.labelColor||"transparent"}})}return qn},Pn=qn=>{var Yn,ar,ur;const tr=lodashEs.cloneDeep(qn),{graphicConfig:Un,customPoint:nr=""}=c,cr={},Qn={},{formFields:fr={}}=Un;let vr=[];if(nr){vr=JSON.parse(nr);for(const mr of vr)for(const dr in mr)typeof mr[dr]=="string"&&((Yn=mr[dr])==null?void 0:Yn.slice(0,1))==="{"&&((ar=mr[dr])==null?void 0:ar.slice(-1))==="}"&&(mr[dr]=Fn(mr[dr])||0)}vr!=null&&vr.length&&tr.push(...vr),c.dataType==="static"?(Qn.name="name",Qn.values=["value","value2"]):(Qn.name=(fr==null?void 0:fr.labelField)||"name",Qn.values=(fr==null?void 0:fr.valueField)||["value","value2"]);for(const mr of tr){const{values:dr,name:gr}=Qn;for(const lr of dr){const hr={value:[mr[gr],mr[lr]],record:mr};mn(cr,lr)?cr[lr].push(hr):cr[lr]=[hr]}}if((ur=Object.keys(cr))!=null&&ur.length){const mr=[];for(const dr in cr)mr.push({name:dr,data:cr[dr]});return mr}else return[]},Rn=(qn=[])=>{const tr=Pn(qn),Un=[],nr=tr.length;for(let cr=0;cr<nr;cr++){const Qn={},fr={};cr===0&&(fr.markPoint=re()),c.shadowColor&&(Qn.shadowColor=c.shadowColor,Qn.shadowBlur=c.shadowBlur,Qn.shadowOffsetY=c.shadowOffsetY,Qn.shadowOffsetX=c.shadowOffsetX);let vr=c.colors[cr];if(!vr&&c.colors.length){const Yn=(cr+1)%c.colors.length-1;vr=Yn>0?c.colors[Yn]:c.colors[0]}vr||(vr="#5470C6"),Un.push({type:"line",...fr,...tr[cr],symbolSize:c.symbolSize,smooth:c.smooth,areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:vr},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:vr,opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...Qn},...vue.unref(Bn)})}m.value=Un},Vn=(qn=[])=>{const tr=Pn(qn),Un=[],nr=tr.length;for(let cr=0;cr<nr;cr++){const Qn={};c.shadowColor&&(Qn.shadowColor=c.shadowColor,Qn.shadowBlur=c.shadowBlur,Qn.shadowOffsetY=c.shadowOffsetY,Qn.shadowOffsetX=c.shadowOffsetX);const fr={};cr===0&&(fr.markPoint=re());let vr=c.colors[cr];if(!vr&&c.colors.length){const Yn=(cr+1)%c.colors.length-1;vr=Yn>0?c.colors[Yn]:c.colors[0]}vr||(vr="#5470C6"),Un.push({type:"line",...tr[cr],symbolSize:c.symbolSize,smooth:c.smooth,areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:vr},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:vr,opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...Qn},...vue.unref(Bn),...fr})}m.value=Un};vue.watch(()=>[c.data,c.dataType,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],([qn])=>{(c.dataType==="static"||vue.unref(f)==="design")&&Rn(qn)},{immediate:!0,deep:!0});const Wn=vue.ref(!1),Gn=useRequestData(c),Zn=async()=>{var qn,tr;if(c.dataType==="request")try{Wn.value=!0;const Un=await Gn();Rn((tr=(qn=Un==null?void 0:Un.data)==null?void 0:qn.data)==null?void 0:tr.rows)}catch(Un){console.error(Un)}finally{Wn.value=!1}},Xn=useEmitEvent(c);j(c.id,{type:c.type,RECORD:""});const er=Xn("click",qn=>{const tr=J(c.id);j(c.id,{...tr,type:c.type,RECORD:c.tooltipShow?gn:qn.data})}),Jn=qn=>{h.value.chart.containPixel("grid",[qn.offsetX,qn.offsetY])&&er()};c.tooltipShow?b.value["zr:click"]=Jn:b.value.click=er;const ir=qn=>{var Un;const{rows:tr=[]}=((Un=qn==null?void 0:qn.data)==null?void 0:Un.data)??{};Vn(tr)},or=useIndicatorData(c,qn=>{c.isViewRedrawing&&h.value.clear(),ir(qn)}),sr=async()=>{try{Wn.value=!0;const qn=await or();ir(qn)}catch(qn){console.error(qn)}finally{Wn.value=!1}},Hn=async()=>{switch(c.dataType){case"indicator":await sr();break;case"request":await Zn();break}};useOnEvent(c,{refreshData:Hn,resetRecord:()=>{const qn=c.id,tr=J(qn);j(qn,{...tr,RECORD:""})},click:er});const{setRequest:zn}=vue.inject(REQUEST_MODEL,{setRequest:qn=>{}});return typeof zn=="function"&&zn({id:c.id,requestFn:Hn,sortNum:c.requestSort}),u({refreshData:Hn}),{option:x,style:p,click:er,loading:Wn,onClose:vn,ecanModal:g,eventObj:b,echartRef:h}}}),ValueLine_vue_vue_type_style_index_0_lang="";function _sfc_render$1(c,u,f,d,h,v){const p=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-value-line",style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,vue.mergeProps({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(p,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),vue.renderSlot(c.$slots,"toolbox")],4)}const ValueLine=_export_sfc$1(_sfc_main$1,[["render",_sfc_render$1]]),EcanValueLine=withInstall$1(ValueLine),indexPanelProps={...props$1,name:"指标面板",keyName:"指标面板",type:"ecanIndexPanel",width:"360px",height:"210px",zIndex:1,borderRadius:"5",componentIds:[],componentConfig:{},data:{},dataType:"indicator",graphicConfig:{},theFlag:""},indexPanelComponentProps=transformToComponentProps(indexPanelProps),indexPanelEvents=["refreshData"],_sfc_main=vue.defineComponent({name:"EcanIndexPanel",components:{Skeleton},props:{...indexPanelComponentProps},setup(c,{expose:u}){const f=vue.ref(!1),d=vue.ref(),h=usePickComponentStyle(c),{pageMode:v}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),p=vue.inject("triggerRefresh",Fn=>{}),m=vue.inject("usedComponentList",[]),g=vue.computed(()=>{const{borderRadius:Fn}=c,Bn=[],w={};if(Fn){const re=Fn.split(",");for(const Pn of re)(+Pn||+Pn==0)&&Bn.push(+Pn+"px")}return Bn!=null&&Bn.length&&(w.borderRadius=Bn.join(" ")),vue.unref(v)==="design"&&(w.border="1px solid #a8a8a8"),vue.unref(d)?w.backgroundColor=vue.unref(d):vue.unref(v)!=="design"&&(w.backgroundColor="#B3AFAF"),w}),y=Fn=>{var w;const{rows:Bn}=((w=Fn==null?void 0:Fn.data)==null?void 0:w.data)||{};if(Bn){const{componentIds:re,componentConfig:Pn,graphicConfig:Rn}=c,Vn=[],Wn=Rn==null?void 0:Rn.indicators.find(Gn=>Gn.show);d.value=Bn.color;for(const Gn of re){const Zn=vue.unref(m).find(or=>or.id===Gn),Xn=Pn[Gn],{text:er=""}=Zn||{};let Jn=Bn[Xn.key],ir="";if(Xn.key==="systemSource"){const or=Jn.split(",");(or==null?void 0:or.length)>3&&(Jn=or.slice(0,3).join(",")+"等",ir=Bn[Xn.key])}else Xn.key==="indexName"&&(Jn=Wn.label);Vn.push({id:Gn,text:er.includes("{value}")||er.includes("{")||er.includes("}")?er:"{value}",data:{...Bn,value:Jn},titleContent:ir})}p(Vn)}},b=useIndicatorData(c,y),gn=async()=>{try{f.value=!0;const Fn=await b();y(Fn)}catch(Fn){console.error(Fn)}finally{f.value=!1}},x=async()=>{switch(c.dataType){case"indicator":await gn();break}},{setRequest:vn}=vue.inject(REQUEST_MODEL,{setRequest:({id:Fn,sortNum:Bn,requestFn:w})=>{}});typeof vn=="function"&&vn({id:c.id,requestFn:x,sortNum:c.requestSort});const j=useEmitEvent(c)("click");return useOnEvent(c,{refreshData:x}),u({refreshData:x}),{loading:f,style:h,customStyle:g,click:j}}});function _sfc_render(c,u,f,d,h,v){const p=vue.resolveComponent("skeleton");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-index-panel",style:vue.normalizeStyle(c.loading?{}:{...c.style,...c.customStyle}),onClick:u[0]||(u[0]=(...m)=>c.click&&c.click(...m))},[c.loading?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:vue.normalizeStyle(c.style)},[vue.createVNode(p,{loading:c.loading},null,8,["loading"])],4)):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[vue.renderSlot(c.$slots,"children"),vue.renderSlot(c.$slots,"toolbox")],64))],4)}const IndexPanel=_export_sfc$1(_sfc_main,[["render",_sfc_render]]),EcanIndexPanel=withInstall$1(IndexPanel),components=Object.freeze(Object.defineProperty({__proto__:null,EcanBar,EcanBorder,EcanButton,EcanCheckbox,EcanCirculate,EcanComboGraph,EcanCounter,EcanCustomGraph,EcanDataSelect,EcanDatePicker,EcanIframe,EcanImage,EcanIndexPanel,EcanInput,EcanLine,EcanList,EcanMap,EcanModal,EcanNavTab,EcanPageConfig,EcanPie,EcanPivotTable,EcanProportion,EcanProviderConfig,EcanRadar,EcanRadio,EcanRangePicker,EcanRectangle,EcanScatter,EcanScrollText,EcanSelect,EcanTable,EcanTabs,EcanTemplate,EcanText,EcanTimeDisplay,EcanTreeSelect,EcanValueLine,barComponentProps,barEvents,barProps,borderComponentProps,borderEvents,borderProps,buttonComponentProps,buttonEvents,buttonProps,checkboxComponentProps,checkboxEvents,checkboxProps:checkboxProps$1,circulateComponentProps,circulateEvents,circulateProps,comboGraphComponentProps,comboGraphEvents,comboGraphProps,counterComponentProps,counterEvents,counterProps,customGraphComponentProps,customGraphProps,dataSelectComponentProps,dataSelectEvents,dataSelectProps,datePickerComponentProps,datePickerEvents,datePickerProps:datePickerProps$1,iframeComponentProps,iframeProps,imageComponentProps,imageEvents,imageProps,indexPanelComponentProps,indexPanelEvents,indexPanelProps,inputComponentProps,inputEvents,inputProps,lineComponentProps,lineEvents,lineProps,listComponentProps,listEvents,listProps,mapComponentProps,mapEvents,mapProps,modalComponentProps,modalEvents,modalProps,navTabComponentProps,navTabEvents,navTabProps,pageConfig,pageConfigComponentProps,pieComponentProps,pieEvents,pieProps,pivotTableComponentProps,pivotTableEvents,pivotTableProps,proportionComponentProps,proportionEvents,proportionProps,providerConfig,providerConfigComponentProps,radarComponentProps,radarEvents,radarProps,radioComponentProps,radioEvents,radioProps,rangePickerComponentProps,rangePickerEvents,rangePickerProps,rectangleComponentProps,rectangleEvents,rectangleProps,scatterComponentProps,scatterEvents,scatterProps,selectComponentProps,selectEvents,selectProps,tableComponentProps,tableEvents,tableProps,tabsComponentProps,tabsEvents,tabsProps:tabsProps$1,templateComponentProps,templateEvents,templateProps,textComponentProps,textEvents,textProps,timeDisplayComponentProps,timeDisplayEvents,timeDisplayProps,treeSelectComponentProps,treeSelectEvents,treeSelectProps,valueLineComponentProps,valueLineEvents,valueLineProps},Symbol.toStringTag,{value:"Module"}));function noop(){}const extend=Object.assign,inBrowser$1=typeof window<"u",isObject$1=c=>c!==null&&typeof c=="object",isDef=c=>c!=null,isFunction=c=>typeof c=="function",isPromise=c=>isObject$1(c)&&isFunction(c.then)&&isFunction(c.catch),isDate=c=>Object.prototype.toString.call(c)==="[object Date]"&&!Number.isNaN(c.getTime()),isNumeric=c=>typeof c=="number"||/^\d+(\.\d+)?$/.test(c),isIOS$1=()=>inBrowser$1?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1;function get(c,u){const f=u.split(".");let d=c;return f.forEach(h=>{var v;d=isObject$1(d)&&(v=d[h])!=null?v:""}),d}function pick(c,u,f){return u.reduce((d,h)=>((!f||c[h]!==void 0)&&(d[h]=c[h]),d),{})}const isSameValue=(c,u)=>JSON.stringify(c)===JSON.stringify(u),toArray=c=>Array.isArray(c)?c:[c],flat=c=>c.reduce((u,f)=>u.concat(f),[]),unknownProp=null,numericProp=[Number,String],truthProp={type:Boolean,default:!0},makeRequiredProp=c=>({type:c,required:!0}),makeArrayProp=()=>({type:Array,default:()=>[]}),makeNumericProp=c=>({type:numericProp,default:c}),makeStringProp=c=>({type:String,default:c});var inBrowser=typeof window<"u";function raf(c){return inBrowser?requestAnimationFrame(c):-1}function cancelRaf(c){inBrowser&&cancelAnimationFrame(c)}function doubleRaf(c){raf(()=>raf(c))}var isWindow=c=>c===window,makeDOMRect=(c,u)=>({top:0,left:0,right:c,bottom:u,width:c,height:u}),useRect=c=>{const u=vue.unref(c);if(isWindow(u)){const f=u.innerWidth,d=u.innerHeight;return makeDOMRect(f,d)}return u!=null&&u.getBoundingClientRect?u.getBoundingClientRect():makeDOMRect(0,0)};function useParent(c){const u=vue.inject(c,null);if(u){const f=vue.getCurrentInstance(),{link:d,unlink:h,internalChildren:v}=u;d(f),vue.onUnmounted(()=>h(f));const p=vue.computed(()=>v.indexOf(f));return{parent:u,index:p}}return{parent:null,index:vue.ref(-1)}}function flattenVNodes(c){const u=[],f=d=>{Array.isArray(d)&&d.forEach(h=>{var v;vue.isVNode(h)&&(u.push(h),(v=h.component)!=null&&v.subTree&&(u.push(h.component.subTree),f(h.component.subTree.children)),h.children&&f(h.children))})};return f(c),u}var findVNodeIndex=(c,u)=>{const f=c.indexOf(u);return f===-1?c.findIndex(d=>u.key!==void 0&&u.key!==null&&d.type===u.type&&d.key===u.key):f};function sortChildren(c,u,f){const d=flattenVNodes(c.subTree.children);f.sort((v,p)=>findVNodeIndex(d,v.vnode)-findVNodeIndex(d,p.vnode));const h=f.map(v=>v.proxy);u.sort((v,p)=>{const m=h.indexOf(v),g=h.indexOf(p);return m-g})}function useChildren(c){const u=vue.reactive([]),f=vue.reactive([]),d=vue.getCurrentInstance();return{children:u,linkChildren:v=>{const p=g=>{g.proxy&&(f.push(g),u.push(g.proxy),sortChildren(d,u,f))},m=g=>{const y=f.indexOf(g);u.splice(y,1),f.splice(y,1)};vue.provide(c,Object.assign({link:p,unlink:m,children:u,internalChildren:f},v))}}}function onMountedOrActivated(c){let u;vue.onMounted(()=>{c(),vue.nextTick(()=>{u=!0})}),vue.onActivated(()=>{u&&c()})}function useEventListener(c,u,f={}){if(!inBrowser)return;const{target:d=window,passive:h=!1,capture:v=!1}=f;let p=!1,m;const g=gn=>{if(p)return;const x=vue.unref(gn);x&&!m&&(x.addEventListener(c,u,{capture:v,passive:h}),m=!0)},y=gn=>{if(p)return;const x=vue.unref(gn);x&&m&&(x.removeEventListener(c,u,v),m=!1)};vue.onUnmounted(()=>y(d)),vue.onDeactivated(()=>y(d)),onMountedOrActivated(()=>g(d));let b;return vue.isRef(d)&&(b=vue.watch(d,(gn,x)=>{y(x),g(gn)})),()=>{b==null||b(),y(d),p=!0}}var width,height;function useWindowSize(){if(!width&&(width=vue.ref(0),height=vue.ref(0),inBrowser)){const c=()=>{width.value=window.innerWidth,height.value=window.innerHeight};c(),window.addEventListener("resize",c,{passive:!0}),window.addEventListener("orientationchange",c,{passive:!0})}return{width,height}}var overflowScrollReg=/scroll|auto|overlay/i,defaultRoot=inBrowser?window:void 0;function isElement(c){return c.tagName!=="HTML"&&c.tagName!=="BODY"&&c.nodeType===1}function getScrollParent(c,u=defaultRoot){let f=c;for(;f&&f!==u&&isElement(f);){const{overflowY:d}=window.getComputedStyle(f);if(overflowScrollReg.test(d))return f;f=f.parentNode}return u}function useScrollParent(c,u=defaultRoot){const f=vue.ref();return vue.onMounted(()=>{c.value&&(f.value=getScrollParent(c.value,u))}),f}var visibility;function usePageVisibility(){if(!visibility&&(visibility=vue.ref("visible"),inBrowser)){const c=()=>{visibility.value=document.hidden?"hidden":"visible"};c(),window.addEventListener("visibilitychange",c)}return visibility}var CUSTOM_FIELD_INJECTION_KEY=Symbol("van-field");function useCustomFieldValue(c){const u=vue.inject(CUSTOM_FIELD_INJECTION_KEY,null);u&&!u.customValue.value&&(u.customValue.value=c,vue.watch(c,()=>{u.resetValidation(),u.validateWithTrigger("onChange")}))}function getScrollTop(c){const u="scrollTop"in c?c.scrollTop:c.pageYOffset;return Math.max(u,0)}function setScrollTop(c,u){"scrollTop"in c?c.scrollTop=u:c.scrollTo(c.scrollX,u)}function getRootScrollTop(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function setRootScrollTop(c){setScrollTop(window,c),setScrollTop(document.body,c)}function getElementTop(c,u){if(c===window)return 0;const f=u?getScrollTop(u):getRootScrollTop();return useRect(c).top+f}const isIOS=isIOS$1();function resetScroll(){isIOS&&setRootScrollTop(getRootScrollTop())}const stopPropagation=c=>c.stopPropagation();function preventDefault(c,u){(typeof c.cancelable!="boolean"||c.cancelable)&&c.preventDefault(),u&&stopPropagation(c)}function isHidden(c){const u=vue.unref(c);if(!u)return!1;const f=window.getComputedStyle(u),d=f.display==="none",h=u.offsetParent===null&&f.position!=="fixed";return d||h}const{width:windowWidth,height:windowHeight}=useWindowSize();function addUnit(c){if(isDef(c))return isNumeric(c)?`${c}px`:String(c)}function getSizeStyle(c){if(isDef(c)){if(Array.isArray(c))return{width:addUnit(c[0]),height:addUnit(c[1])};const u=addUnit(c);return{width:u,height:u}}}function getZIndexStyle(c){const u={};return c!==void 0&&(u.zIndex=+c),u}let rootFontSize;function getRootFontSize(){if(!rootFontSize){const c=document.documentElement,u=c.style.fontSize||window.getComputedStyle(c).fontSize;rootFontSize=parseFloat(u)}return rootFontSize}function convertRem(c){return c=c.replace(/rem/g,""),+c*getRootFontSize()}function convertVw(c){return c=c.replace(/vw/g,""),+c*windowWidth.value/100}function convertVh(c){return c=c.replace(/vh/g,""),+c*windowHeight.value/100}function unitToPx(c){if(typeof c=="number")return c;if(inBrowser$1){if(c.includes("rem"))return convertRem(c);if(c.includes("vw"))return convertVw(c);if(c.includes("vh"))return convertVh(c)}return parseFloat(c)}const camelizeRE=/-(\w)/g,camelize=c=>c.replace(camelizeRE,(u,f)=>f.toUpperCase()),kebabCase=c=>c.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,"");function padZero(c,u=2){let f=c+"";for(;f.length<u;)f="0"+f;return f}const clamp=(c,u,f)=>Math.min(Math.max(c,u),f);function trimExtraChar(c,u,f){const d=c.indexOf(u);return d===-1?c:u==="-"&&d!==0?c.slice(0,d):c.slice(0,d+1)+c.slice(d).replace(f,"")}function formatNumber(c,u=!0,f=!0){u?c=trimExtraChar(c,".",/\./g):c=c.split(".")[0],f?c=trimExtraChar(c,"-",/-/g):c=c.replace(/-/,"");const d=u?/[^-0-9.]/g:/[^-0-9]/g;return c.replace(d,"")}const{hasOwnProperty}=Object.prototype;function assignKey(c,u,f){const d=u[f];isDef(d)&&(!hasOwnProperty.call(c,f)||!isObject$1(d)?c[f]=d:c[f]=deepAssign(Object(c[f]),d))}function deepAssign(c,u){return Object.keys(u).forEach(f=>{assignKey(c,u,f)}),c}var stdin_default$o={name:"姓名",tel:"电话",save:"保存",clear:"清空",cancel:"取消",confirm:"确认",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",addContact:"添加联系人",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",weekdays:["日","一","二","三","四","五","六"],monthTitle:(c,u)=>`${c}年${u}月`,rangePrompt:c=>`最多选择 ${c} 天`},vanCascader:{select:"请选择"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无门槛",discount:c=>`${c}折`,condition:c=>`满${c}元可用`},vanCouponCell:{title:"优惠券",count:c=>`${c}张可用`},vanCouponList:{exchange:"兑换",close:"不使用",enable:"可用",disabled:"不可用",placeholder:"输入优惠码"},vanAddressEdit:{area:"地区",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",addressDetail:"详细地址",defaultAddress:"设为默认收货地址"},vanAddressList:{add:"新增地址"}};const lang=vue.ref("zh-CN"),messages=vue.reactive({"zh-CN":stdin_default$o}),Locale={messages(){return messages[lang.value]},use(c,u){lang.value=c,this.add({[c]:u})},add(c={}){deepAssign(messages,c)}};var stdin_default$n=Locale;function createTranslate(c){const u=camelize(c)+".";return(f,...d)=>{const h=stdin_default$n.messages(),v=get(h,u+f)||get(h,f);return isFunction(v)?v(...d):v}}function genBem(c,u){return u?typeof u=="string"?` ${c}--${u}`:Array.isArray(u)?u.reduce((f,d)=>f+genBem(c,d),""):Object.keys(u).reduce((f,d)=>f+(u[d]?genBem(c,d):""),""):""}function createBEM(c){return(u,f)=>(u&&typeof u!="string"&&(f=u,u=""),u=u?`${c}__${u}`:c,`${u}${genBem(u,f)}`)}function createNamespace(c){const u=`van-${c}`;return[u,createBEM(u),createTranslate(u)]}const BORDER="van-hairline",BORDER_TOP_BOTTOM=`${BORDER}--top-bottom`,BORDER_UNSET_TOP_BOTTOM=`${BORDER}-unset--top-bottom`,HAPTICS_FEEDBACK="van-haptics-feedback",FORM_KEY=Symbol("van-form"),TAP_OFFSET=5;function callInterceptor(c,{args:u=[],done:f,canceled:d,error:h}){if(c){const v=c.apply(null,u);isPromise(v)?v.then(p=>{p?f():d&&d()}).catch(h||noop):v?f():d&&d()}else f()}function withInstall(c){return c.install=u=>{const{name:f}=c;f&&(u.component(f,c),u.component(camelize(`-${f}`),c))},c}const POPUP_TOGGLE_KEY=Symbol();function onPopupReopen(c){const u=vue.inject(POPUP_TOGGLE_KEY,null);u&&vue.watch(u,f=>{f&&c()})}function useExpose(c){const u=vue.getCurrentInstance();u&&extend(u.proxy,c)}const routeProps={to:[String,Object],url:String,replace:Boolean};function route({to:c,url:u,replace:f,$router:d}){c&&d?d[f?"replace":"push"](c):u&&(f?location.replace(u):location.href=u)}function useRoute(){const c=vue.getCurrentInstance().proxy;return()=>route(c)}const[name$n,bem$l]=createNamespace("badge"),badgeProps={dot:Boolean,max:numericProp,tag:makeStringProp("div"),color:String,offset:Array,content:numericProp,showZero:truthProp,position:makeStringProp("top-right")};var stdin_default$m=vue.defineComponent({name:name$n,props:badgeProps,setup(c,{slots:u}){const f=()=>{if(u.content)return!0;const{content:m,showZero:g}=c;return isDef(m)&&m!==""&&(g||m!==0&&m!=="0")},d=()=>{const{dot:m,max:g,content:y}=c;if(!m&&f())return u.content?u.content():isDef(g)&&isNumeric(y)&&+y>+g?`${g}+`:y},h=m=>m.startsWith("-")?m.replace("-",""):`-${m}`,v=vue.computed(()=>{const m={background:c.color};if(c.offset){const[g,y]=c.offset,{position:b}=c,[gn,x]=b.split("-");u.default?(typeof y=="number"?m[gn]=addUnit(gn==="top"?y:-y):m[gn]=gn==="top"?addUnit(y):h(y),typeof g=="number"?m[x]=addUnit(x==="left"?g:-g):m[x]=x==="left"?addUnit(g):h(g)):(m.marginTop=addUnit(y),m.marginLeft=addUnit(g))}return m}),p=()=>{if(f()||c.dot)return vue.createVNode("div",{class:bem$l([c.position,{dot:c.dot,fixed:!!u.default}]),style:v.value},[d()])};return()=>{if(u.default){const{tag:m}=c;return vue.createVNode(m,{class:bem$l("wrapper")},{default:()=>[u.default(),p()]})}return p()}}});const Badge=withInstall(stdin_default$m);let globalZIndex=2e3;const useGlobalZIndex=()=>++globalZIndex,setGlobalZIndex=c=>{globalZIndex=c},[name$m,bem$k]=createNamespace("config-provider"),CONFIG_PROVIDER_KEY=Symbol(name$m),configProviderProps={tag:makeStringProp("div"),theme:makeStringProp("light"),zIndex:Number,themeVars:Object,themeVarsDark:Object,themeVarsLight:Object,themeVarsScope:makeStringProp("local"),iconPrefix:String};function insertDash(c){return c.replace(/([a-zA-Z])(\d)/g,"$1-$2")}function mapThemeVarsToCSSVars(c){const u={};return Object.keys(c).forEach(f=>{const d=insertDash(kebabCase(f));u[`--van-${d}`]=c[f]}),u}function syncThemeVarsOnRoot(c={},u={}){Object.keys(c).forEach(f=>{c[f]!==u[f]&&document.documentElement.style.setProperty(f,c[f])}),Object.keys(u).forEach(f=>{c[f]||document.documentElement.style.removeProperty(f)})}vue.defineComponent({name:name$m,props:configProviderProps,setup(c,{slots:u}){const f=vue.computed(()=>mapThemeVarsToCSSVars(extend({},c.themeVars,c.theme==="dark"?c.themeVarsDark:c.themeVarsLight)));if(inBrowser$1){const d=()=>{document.documentElement.classList.add(`van-theme-${c.theme}`)},h=(v=c.theme)=>{document.documentElement.classList.remove(`van-theme-${v}`)};vue.watch(()=>c.theme,(v,p)=>{p&&h(p),d()},{immediate:!0}),vue.onActivated(d),vue.onDeactivated(h),vue.onBeforeUnmount(h),vue.watch(f,(v,p)=>{c.themeVarsScope==="global"&&syncThemeVarsOnRoot(v,p)}),vue.watch(()=>c.themeVarsScope,(v,p)=>{p==="global"&&syncThemeVarsOnRoot({},f.value),v==="global"&&syncThemeVarsOnRoot(f.value,{})}),c.themeVarsScope==="global"&&syncThemeVarsOnRoot(f.value,{})}return vue.provide(CONFIG_PROVIDER_KEY,c),vue.watchEffect(()=>{c.zIndex!==void 0&&setGlobalZIndex(c.zIndex)}),()=>vue.createVNode(c.tag,{class:bem$k(),style:c.themeVarsScope==="local"?f.value:void 0},{default:()=>{var d;return[(d=u.default)==null?void 0:d.call(u)]}})}});const[name$l,bem$j]=createNamespace("icon"),isImage=c=>c==null?void 0:c.includes("/"),iconProps={dot:Boolean,tag:makeStringProp("i"),name:String,size:numericProp,badge:numericProp,color:String,badgeProps:Object,classPrefix:String};var stdin_default$l=vue.defineComponent({name:name$l,props:iconProps,setup(c,{slots:u}){const f=vue.inject(CONFIG_PROVIDER_KEY,null),d=vue.computed(()=>c.classPrefix||(f==null?void 0:f.iconPrefix)||bem$j());return()=>{const{tag:h,dot:v,name:p,size:m,badge:g,color:y}=c,b=isImage(p);return vue.createVNode(Badge,vue.mergeProps({dot:v,tag:h,class:[d.value,b?"":`${d.value}-${p}`],style:{color:y,fontSize:addUnit(m)},content:g},c.badgeProps),{default:()=>{var gn;return[(gn=u.default)==null?void 0:gn.call(u),b&&vue.createVNode("img",{class:bem$j("image"),src:p},null)]}})}}});const Icon=withInstall(stdin_default$l),[name$k,bem$i]=createNamespace("loading"),SpinIcon=Array(12).fill(null).map((c,u)=>vue.createVNode("i",{class:bem$i("line",String(u+1))},null)),CircularIcon=vue.createVNode("svg",{class:bem$i("circular"),viewBox:"25 25 50 50"},[vue.createVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),loadingProps={size:numericProp,type:makeStringProp("circular"),color:String,vertical:Boolean,textSize:numericProp,textColor:String};var stdin_default$k=vue.defineComponent({name:name$k,props:loadingProps,setup(c,{slots:u}){const f=vue.computed(()=>extend({color:c.color},getSizeStyle(c.size))),d=()=>{const v=c.type==="spinner"?SpinIcon:CircularIcon;return vue.createVNode("span",{class:bem$i("spinner",c.type),style:f.value},[u.icon?u.icon():v])},h=()=>{var v;if(u.default)return vue.createVNode("span",{class:bem$i("text"),style:{fontSize:addUnit(c.textSize),color:(v=c.textColor)!=null?v:c.color}},[u.default()])};return()=>{const{type:v,vertical:p}=c;return vue.createVNode("div",{class:bem$i([v,{vertical:p}]),"aria-live":"polite","aria-busy":!0},[d(),h()])}}});const Loading=withInstall(stdin_default$k),popupSharedProps={show:Boolean,zIndex:numericProp,overlay:truthProp,duration:numericProp,teleport:[String,Object],lockScroll:truthProp,lazyRender:truthProp,beforeClose:Function,overlayStyle:Object,overlayClass:unknownProp,transitionAppear:Boolean,closeOnClickOverlay:truthProp};function getDirection(c,u){return c>u?"horizontal":u>c?"vertical":""}function useTouch(){const c=vue.ref(0),u=vue.ref(0),f=vue.ref(0),d=vue.ref(0),h=vue.ref(0),v=vue.ref(0),p=vue.ref(""),m=vue.ref(!0),g=()=>p.value==="vertical",y=()=>p.value==="horizontal",b=()=>{f.value=0,d.value=0,h.value=0,v.value=0,p.value="",m.value=!0};return{move:vn=>{const J=vn.touches[0];f.value=(J.clientX<0?0:J.clientX)-c.value,d.value=J.clientY-u.value,h.value=Math.abs(f.value),v.value=Math.abs(d.value);const j=10;(!p.value||h.value<j&&v.value<j)&&(p.value=getDirection(h.value,v.value)),m.value&&(h.value>TAP_OFFSET||v.value>TAP_OFFSET)&&(m.value=!1)},start:vn=>{b(),c.value=vn.touches[0].clientX,u.value=vn.touches[0].clientY},reset:b,startX:c,startY:u,deltaX:f,deltaY:d,offsetX:h,offsetY:v,direction:p,isVertical:g,isHorizontal:y,isTap:m}}let totalLockCount=0;const BODY_LOCK_CLASS="van-overflow-hidden";function useLockScroll(c,u){const f=useTouch(),d="01",h="10",v=b=>{f.move(b);const gn=f.deltaY.value>0?h:d,x=getScrollParent(b.target,c.value),{scrollHeight:vn,offsetHeight:J,scrollTop:j}=x;let Fn="11";j===0?Fn=J>=vn?"00":"01":j+J>=vn&&(Fn="10"),Fn!=="11"&&f.isVertical()&&!(parseInt(Fn,2)&parseInt(gn,2))&&preventDefault(b,!0)},p=()=>{document.addEventListener("touchstart",f.start),document.addEventListener("touchmove",v,{passive:!1}),totalLockCount||document.body.classList.add(BODY_LOCK_CLASS),totalLockCount++},m=()=>{totalLockCount&&(document.removeEventListener("touchstart",f.start),document.removeEventListener("touchmove",v),totalLockCount--,totalLockCount||document.body.classList.remove(BODY_LOCK_CLASS))},g=()=>u()&&p(),y=()=>u()&&m();onMountedOrActivated(g),vue.onDeactivated(y),vue.onBeforeUnmount(y),vue.watch(u,b=>{b?p():m()})}function useLazyRender(c){const u=vue.ref(!1);return vue.watch(c,f=>{f&&(u.value=f)},{immediate:!0}),f=>()=>u.value?f():null}const useScopeId=()=>{var c;const{scopeId:u}=((c=vue.getCurrentInstance())==null?void 0:c.vnode)||{};return u?{[u]:""}:null},[name$j,bem$h]=createNamespace("overlay"),overlayProps={show:Boolean,zIndex:numericProp,duration:numericProp,className:unknownProp,lockScroll:truthProp,lazyRender:truthProp,customStyle:Object,teleport:[String,Object]};var stdin_default$j=vue.defineComponent({name:name$j,props:overlayProps,setup(c,{slots:u}){const f=vue.ref(),d=useLazyRender(()=>c.show||!c.lazyRender),h=p=>{c.lockScroll&&preventDefault(p,!0)},v=d(()=>{var p;const m=extend(getZIndexStyle(c.zIndex),c.customStyle);return isDef(c.duration)&&(m.animationDuration=`${c.duration}s`),vue.withDirectives(vue.createVNode("div",{ref:f,style:m,class:[bem$h(),c.className]},[(p=u.default)==null?void 0:p.call(u)]),[[vue.vShow,c.show]])});return useEventListener("touchmove",h,{target:f}),()=>{const p=vue.createVNode(vue.Transition,{name:"van-fade",appear:!0},{default:v});return c.teleport?vue.createVNode(vue.Teleport,{to:c.teleport},{default:()=>[p]}):p}}});const Overlay=withInstall(stdin_default$j),popupProps=extend({},popupSharedProps,{round:Boolean,position:makeStringProp("center"),closeIcon:makeStringProp("cross"),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:makeStringProp("top-right"),safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),[name$i,bem$g]=createNamespace("popup");var stdin_default$i=vue.defineComponent({name:name$i,inheritAttrs:!1,props:popupProps,emits:["open","close","opened","closed","keydown","update:show","clickOverlay","clickCloseIcon"],setup(c,{emit:u,attrs:f,slots:d}){let h,v;const p=vue.ref(),m=vue.ref(),g=useLazyRender(()=>c.show||!c.lazyRender),y=vue.computed(()=>{const Vn={zIndex:p.value};if(isDef(c.duration)){const Wn=c.position==="center"?"animationDuration":"transitionDuration";Vn[Wn]=`${c.duration}s`}return Vn}),b=()=>{h||(h=!0,p.value=c.zIndex!==void 0?+c.zIndex:useGlobalZIndex(),u("open"))},gn=()=>{h&&callInterceptor(c.beforeClose,{done(){h=!1,u("close"),u("update:show",!1)}})},x=Vn=>{u("clickOverlay",Vn),c.closeOnClickOverlay&&gn()},vn=()=>{if(c.overlay)return vue.createVNode(Overlay,vue.mergeProps({show:c.show,class:c.overlayClass,zIndex:p.value,duration:c.duration,customStyle:c.overlayStyle,role:c.closeOnClickOverlay?"button":void 0,tabindex:c.closeOnClickOverlay?0:void 0},useScopeId(),{onClick:x}),{default:d["overlay-content"]})},J=Vn=>{u("clickCloseIcon",Vn),gn()},j=()=>{if(c.closeable)return vue.createVNode(Icon,{role:"button",tabindex:0,name:c.closeIcon,class:[bem$g("close-icon",c.closeIconPosition),HAPTICS_FEEDBACK],classPrefix:c.iconPrefix,onClick:J},null)};let Fn;const Bn=()=>{Fn&&clearTimeout(Fn),Fn=setTimeout(()=>{u("opened")})},w=()=>u("closed"),re=Vn=>u("keydown",Vn),Pn=g(()=>{var Vn;const{round:Wn,position:Gn,safeAreaInsetTop:Zn,safeAreaInsetBottom:Xn}=c;return vue.withDirectives(vue.createVNode("div",vue.mergeProps({ref:m,style:y.value,role:"dialog",tabindex:0,class:[bem$g({round:Wn,[Gn]:Gn}),{"van-safe-area-top":Zn,"van-safe-area-bottom":Xn}],onKeydown:re},f,useScopeId()),[(Vn=d.default)==null?void 0:Vn.call(d),j()]),[[vue.vShow,c.show]])}),Rn=()=>{const{position:Vn,transition:Wn,transitionAppear:Gn}=c,Zn=Vn==="center"?"van-fade":`van-popup-slide-${Vn}`;return vue.createVNode(vue.Transition,{name:Wn||Zn,appear:Gn,onAfterEnter:Bn,onAfterLeave:w},{default:Pn})};return vue.watch(()=>c.show,Vn=>{Vn&&!h&&(b(),f.tabindex===0&&vue.nextTick(()=>{var Wn;(Wn=m.value)==null||Wn.focus()})),!Vn&&h&&(h=!1,u("close"))}),useExpose({popupRef:m}),useLockScroll(m,()=>c.show&&c.lockScroll),useEventListener("popstate",()=>{c.closeOnPopstate&&(gn(),v=!1)}),vue.onMounted(()=>{c.show&&b()}),vue.onActivated(()=>{v&&(u("update:show",!0),v=!1)}),vue.onDeactivated(()=>{c.show&&c.teleport&&(gn(),v=!0)}),vue.provide(POPUP_TOGGLE_KEY,()=>c.show),()=>c.teleport?vue.createVNode(vue.Teleport,{to:c.teleport},{default:()=>[vn(),Rn()]}):vue.createVNode(vue.Fragment,null,[vn(),Rn()])}});const Popup=withInstall(stdin_default$i),[name$h,bem$f,t$1]=createNamespace("picker"),getFirstEnabledOption=c=>c.find(u=>!u.disabled)||c[0];function getColumnsType(c,u){const f=c[0];if(f){if(Array.isArray(f))return"multiple";if(u.children in f)return"cascade"}return"default"}function findIndexOfEnabledOption(c,u){u=clamp(u,0,c.length);for(let f=u;f<c.length;f++)if(!c[f].disabled)return f;for(let f=u-1;f>=0;f--)if(!c[f].disabled)return f;return 0}const isOptionExist=(c,u,f)=>u!==void 0&&!!c.find(d=>d[f.value]===u);function findOptionByValue(c,u,f){const d=c.findIndex(v=>v[f.value]===u),h=findIndexOfEnabledOption(c,d);return c[h]}function formatCascadeColumns(c,u,f){const d=[];let h={[u.children]:c},v=0;for(;h&&h[u.children];){const p=h[u.children],m=f.value[v];if(h=isDef(m)?findOptionByValue(p,m,u):void 0,!h&&p.length){const g=getFirstEnabledOption(p)[u.value];h=findOptionByValue(p,g,u)}v++,d.push(p)}return d}function getElementTranslateY(c){const{transform:u}=window.getComputedStyle(c),f=u.slice(7,u.length-1).split(", ")[5];return Number(f)}function assignDefaultFields(c){return extend({text:"text",value:"value",children:"children"},c)}const DEFAULT_DURATION=200,MOMENTUM_TIME=300,MOMENTUM_DISTANCE=15,[name$g,bem$e]=createNamespace("picker-column"),PICKER_KEY=Symbol(name$g);var stdin_default$h=vue.defineComponent({name:name$g,props:{value:numericProp,fields:makeRequiredProp(Object),options:makeArrayProp(),readonly:Boolean,allowHtml:Boolean,optionHeight:makeRequiredProp(Number),swipeDuration:makeRequiredProp(numericProp),visibleOptionNum:makeRequiredProp(numericProp)},emits:["change","clickOption","scrollInto"],setup(c,{emit:u,slots:f}){let d,h,v,p,m;const g=vue.ref(),y=vue.ref(),b=vue.ref(0),gn=vue.ref(0),x=useTouch(),vn=()=>c.options.length,J=()=>c.optionHeight*(+c.visibleOptionNum-1)/2,j=Xn=>{let er=findIndexOfEnabledOption(c.options,Xn);const Jn=-er*c.optionHeight,ir=()=>{er>vn()-1&&(er=findIndexOfEnabledOption(c.options,Xn));const or=c.options[er][c.fields.value];or!==c.value&&u("change",or)};d&&Jn!==b.value?m=ir:ir(),b.value=Jn},Fn=()=>c.readonly||!c.options.length,Bn=Xn=>{d||Fn()||(m=null,gn.value=DEFAULT_DURATION,j(Xn),u("clickOption",c.options[Xn]))},w=Xn=>clamp(Math.round(-Xn/c.optionHeight),0,vn()-1),re=vue.computed(()=>w(b.value)),Pn=(Xn,er)=>{const Jn=Math.abs(Xn/er);Xn=b.value+Jn/.003*(Xn<0?-1:1);const ir=w(Xn);gn.value=+c.swipeDuration,j(ir)},Rn=()=>{d=!1,gn.value=0,m&&(m(),m=null)},Vn=Xn=>{if(!Fn()){if(x.start(Xn),d){const er=getElementTranslateY(y.value);b.value=Math.min(0,er-J())}gn.value=0,h=b.value,v=Date.now(),p=h,m=null}},Wn=Xn=>{if(Fn())return;x.move(Xn),x.isVertical()&&(d=!0,preventDefault(Xn,!0));const er=clamp(h+x.deltaY.value,-(vn()*c.optionHeight),c.optionHeight),Jn=w(er);Jn!==re.value&&u("scrollInto",c.options[Jn]),b.value=er;const ir=Date.now();ir-v>MOMENTUM_TIME&&(v=ir,p=er)},Gn=()=>{if(Fn())return;const Xn=b.value-p,er=Date.now()-v;if(er<MOMENTUM_TIME&&Math.abs(Xn)>MOMENTUM_DISTANCE){Pn(Xn,er);return}const ir=w(b.value);gn.value=DEFAULT_DURATION,j(ir),setTimeout(()=>{d=!1},0)},Zn=()=>{const Xn={height:`${c.optionHeight}px`};return c.options.map((er,Jn)=>{const ir=er[c.fields.text],{disabled:or}=er,sr=er[c.fields.value],Hn={role:"button",style:Xn,tabindex:or?-1:0,class:[bem$e("item",{disabled:or,selected:sr===c.value}),er.className],onClick:()=>Bn(Jn)},Kn={class:"van-ellipsis",[c.allowHtml?"innerHTML":"textContent"]:ir};return vue.createVNode("li",Hn,[f.option?f.option(er,Jn):vue.createVNode("div",Kn,null)])})};return useParent(PICKER_KEY),useExpose({stopMomentum:Rn}),vue.watchEffect(()=>{const Xn=d?Math.floor(-b.value/c.optionHeight):c.options.findIndex(ir=>ir[c.fields.value]===c.value),er=findIndexOfEnabledOption(c.options,Xn),Jn=-er*c.optionHeight;d&&er<Xn&&Rn(),b.value=Jn}),useEventListener("touchmove",Wn,{target:g}),()=>vue.createVNode("div",{ref:g,class:bem$e(),onTouchstartPassive:Vn,onTouchend:Gn,onTouchcancel:Gn},[vue.createVNode("ul",{ref:y,style:{transform:`translate3d(0, ${b.value+J()}px, 0)`,transitionDuration:`${gn.value}ms`,transitionProperty:gn.value?"all":"none"},class:bem$e("wrapper"),onTransitionend:Rn},[Zn()])])}});const[name$f]=createNamespace("picker-toolbar"),pickerToolbarProps={title:String,cancelButtonText:String,confirmButtonText:String},pickerToolbarSlots=["cancel","confirm","title","toolbar"],pickerToolbarPropKeys=Object.keys(pickerToolbarProps);var stdin_default$g=vue.defineComponent({name:name$f,props:pickerToolbarProps,emits:["confirm","cancel"],setup(c,{emit:u,slots:f}){const d=()=>{if(f.title)return f.title();if(c.title)return vue.createVNode("div",{class:[bem$f("title"),"van-ellipsis"]},[c.title])},h=()=>u("cancel"),v=()=>u("confirm"),p=()=>{var g;const y=(g=c.cancelButtonText)!=null?g:t$1("cancel");if(!(!f.cancel&&!y))return vue.createVNode("button",{type:"button",class:[bem$f("cancel"),HAPTICS_FEEDBACK],onClick:h},[f.cancel?f.cancel():y])},m=()=>{var g;const y=(g=c.confirmButtonText)!=null?g:t$1("confirm");if(!(!f.confirm&&!y))return vue.createVNode("button",{type:"button",class:[bem$f("confirm"),HAPTICS_FEEDBACK],onClick:v},[f.confirm?f.confirm():y])};return()=>vue.createVNode("div",{class:bem$f("toolbar")},[f.toolbar?f.toolbar():[p(),d(),m()]])}});const useSyncPropRef=(c,u)=>{const f=vue.ref(c());return vue.watch(c,d=>{d!==f.value&&(f.value=d)}),vue.watch(f,d=>{d!==c()&&u(d)}),f};/**
183
183
  * @vue/shared v3.5.4
184
184
  * (c) 2018-present Yuxi (Evan) You and Vue contributors