@ecan-bi/datav 1.5.12 → 1.5.13

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.12 */
1
+ /*! @ecan-bi/datav@1.5.13 */
2
2
  (function(Zr,bi){typeof exports=="object"&&typeof module<"u"?bi(exports,require("vue"),require("echarts/core"),require("resize-detector"),require("ant-design-vue"),require("ant-design-vue/es/spin/style"),require("ant-design-vue/es/skeleton/style"),require("lodash-es"),require("dayjs"),require("axios"),require("mitt"),require("echarts/renderers"),require("echarts/charts"),require("echarts/components"),require("ant-design-vue/es/modal/style"),require("ant-design-vue/es/progress/style"),require("ant-design-vue/es/input/style"),require("ant-design-vue/es/date-picker/style"),require("ant-design-vue/es/date-picker/locale/zh_CN"),require("ant-design-vue/es/button/style"),require("ant-design-vue/es/checkbox/style"),require("ant-design-vue/es/select/style"),require("ant-design-vue/es/tree-select/style"),require("echarts"),require("ant-design-vue/es/table/style"),require("ant-design-vue/es/notification/style"),require("xlsx"),require("big.js")):typeof define=="function"&&define.amd?define(["exports","vue","echarts/core","resize-detector","ant-design-vue","ant-design-vue/es/spin/style","ant-design-vue/es/skeleton/style","lodash-es","dayjs","axios","mitt","echarts/renderers","echarts/charts","echarts/components","ant-design-vue/es/modal/style","ant-design-vue/es/progress/style","ant-design-vue/es/input/style","ant-design-vue/es/date-picker/style","ant-design-vue/es/date-picker/locale/zh_CN","ant-design-vue/es/button/style","ant-design-vue/es/checkbox/style","ant-design-vue/es/select/style","ant-design-vue/es/tree-select/style","echarts","ant-design-vue/es/table/style","ant-design-vue/es/notification/style","xlsx","big.js"],bi):(Zr=typeof globalThis<"u"?globalThis:Zr||self,bi(Zr["@ecan/bi-datav"]={},Zr.Vue,Zr["echarts/core"],Zr.ResizeDetector,Zr.AntDesignVue,null,null,Zr.LodashEs,Zr.Dayjs,Zr.Axios,Zr.Mitt,Zr["echarts/renderers"],Zr["echarts/charts"],Zr["echarts/components"],null,null,null,null,Zr["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,Zr.Echarts,null,null,Zr.Xlsx,Zr.big.js))})(this,function(exports,vue,core$1,resizeDetector,antDesignVue,style$1,style$2,lodashEs,dayjs,axios,mitt,renderers,charts,components$1,style$3,style$4,style$5,style$6,locale,style$7,style$8,style$9,style$a,echarts,style$b,style$c,xlsx,big_js){var Zr,bi,$i,Vi;"use strict";function _interopNamespaceDefault(c){const u=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(c){for(const f in c)if(f!=="default"){const d=Object.getOwnPropertyDescriptor(c,f);Object.defineProperty(u,f,d.get?d:{enumerable:!0,get:()=>c[f]})}}return u.default=c,Object.freeze(u)}const echarts__namespace=_interopNamespaceDefault(echarts),METHOD_NAMES=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function usePublicAPI(c,u){function f(h){return(...p)=>{if(c.value||u(),!c.value)throw new Error("ECharts is not initialized yet.");return c.value[h].apply(c.value,p)}}function d(){const h=Object.create(null);return METHOD_NAMES.forEach(p=>{h[p]=f(p)}),h}return d()}function useAutoresize(c,u,f){let d=null;vue.watch([f,c,u],([h,p,v],m,g)=>{h&&p&&v&&(d=core$1.throttle(()=>{p.resize()},100),resizeDetector.addListener(h,d)),g(()=>{d&&h&&resizeDetector.removeListener(h,d)})})}const autoresizeProps={autoresize:Boolean},LOADING_OPTIONS_KEY="ecLoadingOptions";function useLoading(c,u,f){const d=vue.inject(LOADING_OPTIONS_KEY,{}),h=vue.computed(()=>({...vue.unref(d),...f==null?void 0:f.value}));vue.watchEffect(()=>{const p=c.value;p&&(u.value?p.showLoading(h.value):p.hideLoading())})}const loadingProps$1={loading:Boolean,loadingOptions:Object},style="",onRE=/^on[^a-z]/,isOn=c=>onRE.test(c);function omitOn(c){const u={};for(const f in c)isOn(f)||(u[f]=c[f]);return u}const TAG_NAME="x-vue-echarts",THEME_KEY="ecTheme",INIT_OPTIONS_KEY="ecInitOptions",UPDATE_OPTIONS_KEY="ecUpdateOptions",Echarts=vue.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...autoresizeProps,...loadingProps$1},inheritAttrs:!1,setup(c,{attrs:u,listeners:f}){const d=vue.shallowRef(),h=vue.shallowRef(),p=vue.shallowRef(),v=vue.inject(THEME_KEY,null),m=vue.inject(INIT_OPTIONS_KEY,null),g=vue.inject(UPDATE_OPTIONS_KEY,null),{autoresize:y,manualUpdate:x,loading:Pn,loadingOptions:b}=vue.toRefs(c),j=vue.computed(()=>p.value||c.option||Object.create(null)),re=vue.computed(()=>c.theme||vue.unref(v)||{}),vn=vue.computed(()=>c.initOptions||vue.unref(m)||{}),Fn=vue.computed(()=>c.updateOptions||vue.unref(g)||{}),Bn=vue.computed(()=>omitOn(u));function w(Kn){if(h.value||!d.value)return;const Un=h.value=core$1.init(d.value,re.value,vn.value);c.group&&(Un.group=c.group);let Qn=f;Qn||(Qn={},Object.keys(u).filter(Zn=>Zn.indexOf("on")===0&&Zn.length>2).forEach(Zn=>{const nr=Zn.charAt(2).toLowerCase()+Zn.slice(3);Qn[nr]=u[Zn]})),Object.keys(Qn).forEach(Zn=>{const nr=Qn[Zn];nr&&(Zn.indexOf("zr:")===0?Un.getZr().on(Zn.slice(3).toLowerCase(),nr):Un.on(Zn.toLowerCase(),nr))});function Jn(){if(Un&&!Un.isDisposed())try{Un.resize()}catch(Zn){if(Zn.message==="Cannot read property 'get' of undefined")return;throw Zn}}function Yn(){Un.setOption(Kn||j.value,Fn.value)}y.value?vue.nextTick(()=>{Jn(),Yn()}):Yn()}function J(Kn,Un){c.manualUpdate&&(p.value=Kn),h.value?h.value.setOption(Kn,Un||{}):w(Kn)}function gn(){h.value&&(h.value.dispose(),h.value=void 0)}let zn=null;vue.watch(x,Kn=>{typeof zn=="function"&&(zn(),zn=null),Kn||(zn=vue.watch(()=>c.option,Un=>{Un&&(h.value?h.value.setOption(Un,Fn.value):w())},{deep:!0}))},{immediate:!0}),vue.watch([re,vn],()=>{gn(),w()},{deep:!0}),vue.watchEffect(()=>{c.group&&h.value&&(h.value.group=c.group)});const Vn=usePublicAPI(h,w);return useLoading(h,Pn,b),useAutoresize(h,y,d),vue.onMounted(()=>{c.option&&w()}),vue.onUnmounted(gn),{chart:h,root:d,setOption:J,nonEventAttrs:Bn,...Vn}},render(){const c={...this.nonEventAttrs};return c.ref="root",c.class=c.class?["echarts"].concat(c.class):"echarts",vue.h(TAG_NAME,c)}});function bound01(c,u){isOnePointZero(c)&&(c="100%");var f=isPercentage(c);return c=u===360?c:Math.min(u,Math.max(0,parseFloat(c))),f&&(c=parseInt(String(c*u),10)/100),Math.abs(c-u)<1e-6?1:(u===360?c=(c<0?c%u+u:c%u)/parseFloat(String(u)):c=c%u/parseFloat(String(u)),c)}function isOnePointZero(c){return typeof c=="string"&&c.indexOf(".")!==-1&&parseFloat(c)===1}function isPercentage(c){return typeof c=="string"&&c.indexOf("%")!==-1}function boundAlpha(c){return c=parseFloat(c),(isNaN(c)||c<0||c>1)&&(c=1),c}function convertToPercentage(c){return c<=1?"".concat(Number(c)*100,"%"):c}function pad2(c){return c.length===1?"0"+c:String(c)}function rgbToRgb(c,u,f){return{r:bound01(c,255)*255,g:bound01(u,255)*255,b:bound01(f,255)*255}}function hue2rgb(c,u,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?c+(u-c)*(6*f):f<1/2?u:f<2/3?c+(u-c)*(2/3-f)*6:c}function hslToRgb(c,u,f){var d,h,p;if(c=bound01(c,360),u=bound01(u,100),f=bound01(f,100),u===0)h=f,p=f,d=f;else{var v=f<.5?f*(1+u):f+u-f*u,m=2*f-v;d=hue2rgb(m,v,c+1/3),h=hue2rgb(m,v,c),p=hue2rgb(m,v,c-1/3)}return{r:d*255,g:h*255,b:p*255}}function rgbToHsv(c,u,f){c=bound01(c,255),u=bound01(u,255),f=bound01(f,255);var d=Math.max(c,u,f),h=Math.min(c,u,f),p=0,v=d,m=d-h,g=d===0?0:m/d;if(d===h)p=0;else{switch(d){case c:p=(u-f)/m+(u<f?6:0);break;case u:p=(f-c)/m+2;break;case f:p=(c-u)/m+4;break}p/=6}return{h:p,s:g,v}}function hsvToRgb(c,u,f){c=bound01(c,360)*6,u=bound01(u,100),f=bound01(f,100);var d=Math.floor(c),h=c-d,p=f*(1-u),v=f*(1-h*u),m=f*(1-(1-h)*u),g=d%6,y=[f,v,p,p,m,f][g],x=[m,f,f,v,p,p][g],Pn=[p,p,m,f,f,v][g];return{r:y*255,g:x*255,b:Pn*255}}function rgbToHex(c,u,f,d){var h=[pad2(Math.round(c).toString(16)),pad2(Math.round(u).toString(16)),pad2(Math.round(f).toString(16))];return d&&h[0].startsWith(h[0].charAt(1))&&h[1].startsWith(h[1].charAt(1))&&h[2].startsWith(h[2].charAt(1))?h[0].charAt(0)+h[1].charAt(0)+h[2].charAt(0):h.join("")}function convertHexToDecimal(c){return parseIntFromHex(c)/255}function parseIntFromHex(c){return parseInt(c,16)}var names={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function inputToRGB(c){var u={r:0,g:0,b:0},f=1,d=null,h=null,p=null,v=!1,m=!1;return typeof c=="string"&&(c=stringInputToObject(c)),typeof c=="object"&&(isValidCSSUnit(c.r)&&isValidCSSUnit(c.g)&&isValidCSSUnit(c.b)?(u=rgbToRgb(c.r,c.g,c.b),v=!0,m=String(c.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(c.h)&&isValidCSSUnit(c.s)&&isValidCSSUnit(c.v)?(d=convertToPercentage(c.s),h=convertToPercentage(c.v),u=hsvToRgb(c.h,d,h),v=!0,m="hsv"):isValidCSSUnit(c.h)&&isValidCSSUnit(c.s)&&isValidCSSUnit(c.l)&&(d=convertToPercentage(c.s),p=convertToPercentage(c.l),u=hslToRgb(c.h,d,p),v=!0,m="hsl"),Object.prototype.hasOwnProperty.call(c,"a")&&(f=c.a)),f=boundAlpha(f),{ok:v,format:c.format||m,r:Math.min(255,Math.max(u.r,0)),g:Math.min(255,Math.max(u.g,0)),b:Math.min(255,Math.max(u.b,0)),a:f}}var CSS_INTEGER="[-\\+]?\\d+%?",CSS_NUMBER="[-\\+]?\\d*\\.\\d+%?",CSS_UNIT="(?:".concat(CSS_NUMBER,")|(?:").concat(CSS_INTEGER,")"),PERMISSIVE_MATCH3="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),PERMISSIVE_MATCH4="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),matchers={CSS_UNIT:new RegExp(CSS_UNIT),rgb:new RegExp("rgb"+PERMISSIVE_MATCH3),rgba:new RegExp("rgba"+PERMISSIVE_MATCH4),hsl:new RegExp("hsl"+PERMISSIVE_MATCH3),hsla:new RegExp("hsla"+PERMISSIVE_MATCH4),hsv:new RegExp("hsv"+PERMISSIVE_MATCH3),hsva:new RegExp("hsva"+PERMISSIVE_MATCH4),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function stringInputToObject(c){if(c=c.trim().toLowerCase(),c.length===0)return!1;var u=!1;if(names[c])c=names[c],u=!0;else if(c==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var f=matchers.rgb.exec(c);return f?{r:f[1],g:f[2],b:f[3]}:(f=matchers.rgba.exec(c),f?{r:f[1],g:f[2],b:f[3],a:f[4]}:(f=matchers.hsl.exec(c),f?{h:f[1],s:f[2],l:f[3]}:(f=matchers.hsla.exec(c),f?{h:f[1],s:f[2],l:f[3],a:f[4]}:(f=matchers.hsv.exec(c),f?{h:f[1],s:f[2],v:f[3]}:(f=matchers.hsva.exec(c),f?{h:f[1],s:f[2],v:f[3],a:f[4]}:(f=matchers.hex8.exec(c),f?{r:parseIntFromHex(f[1]),g:parseIntFromHex(f[2]),b:parseIntFromHex(f[3]),a:convertHexToDecimal(f[4]),format:u?"name":"hex8"}:(f=matchers.hex6.exec(c),f?{r:parseIntFromHex(f[1]),g:parseIntFromHex(f[2]),b:parseIntFromHex(f[3]),format:u?"name":"hex"}:(f=matchers.hex4.exec(c),f?{r:parseIntFromHex(f[1]+f[1]),g:parseIntFromHex(f[2]+f[2]),b:parseIntFromHex(f[3]+f[3]),a:convertHexToDecimal(f[4]+f[4]),format:u?"name":"hex8"}:(f=matchers.hex3.exec(c),f?{r:parseIntFromHex(f[1]+f[1]),g:parseIntFromHex(f[2]+f[2]),b:parseIntFromHex(f[3]+f[3]),format:u?"name":"hex"}:!1)))))))))}function isValidCSSUnit(c){return!!matchers.CSS_UNIT.exec(String(c))}var hueStep=2,saturationStep=.16,saturationStep2=.05,brightnessStep1=.05,brightnessStep2=.15,lightColorCount=5,darkColorCount=4,darkColorMap=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function toHsv(c){var u=c.r,f=c.g,d=c.b,h=rgbToHsv(u,f,d);return{h:h.h*360,s:h.s,v:h.v}}function toHex(c){var u=c.r,f=c.g,d=c.b;return"#".concat(rgbToHex(u,f,d,!1))}function mix(c,u,f){var d=f/100,h={r:(u.r-c.r)*d+c.r,g:(u.g-c.g)*d+c.g,b:(u.b-c.b)*d+c.b};return h}function getHue(c,u,f){var d;return Math.round(c.h)>=60&&Math.round(c.h)<=240?d=f?Math.round(c.h)-hueStep*u:Math.round(c.h)+hueStep*u:d=f?Math.round(c.h)+hueStep*u:Math.round(c.h)-hueStep*u,d<0?d+=360:d>=360&&(d-=360),d}function getSaturation(c,u,f){if(c.h===0&&c.s===0)return c.s;var d;return f?d=c.s-saturationStep*u:u===darkColorCount?d=c.s+saturationStep:d=c.s+saturationStep2*u,d>1&&(d=1),f&&u===lightColorCount&&d>.1&&(d=.1),d<.06&&(d=.06),Number(d.toFixed(2))}function getValue(c,u,f){var d;return f?d=c.v+brightnessStep1*u:d=c.v-brightnessStep2*u,d>1&&(d=1),Number(d.toFixed(2))}function generate$1(c){for(var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=[],d=inputToRGB(c),h=lightColorCount;h>0;h-=1){var p=toHsv(d),v=toHex(inputToRGB({h:getHue(p,h,!0),s:getSaturation(p,h,!0),v:getValue(p,h,!0)}));f.push(v)}f.push(toHex(d));for(var m=1;m<=darkColorCount;m+=1){var g=toHsv(d),y=toHex(inputToRGB({h:getHue(g,m),s:getSaturation(g,m),v:getValue(g,m)}));f.push(y)}return u.theme==="dark"?darkColorMap.map(function(x){var Pn=x.index,b=x.opacity,j=toHex(mix(inputToRGB(u.backgroundColor||"#141414"),inputToRGB(f[Pn]),b*100));return j}):f}var presetPrimaryColors={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},presetPalettes={},presetDarkPalettes={};Object.keys(presetPrimaryColors).forEach(function(c){presetPalettes[c]=generate$1(presetPrimaryColors[c]),presetPalettes[c].primary=presetPalettes[c][5],presetDarkPalettes[c]=generate$1(presetPrimaryColors[c],{theme:"dark",backgroundColor:"#141414"}),presetDarkPalettes[c].primary=presetDarkPalettes[c][5]});var containers=[],styleElements=[],usage="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function createStyleElement(){var c=document.createElement("style");return c.setAttribute("type","text/css"),c}function insertCss(c,u){if(u=u||{},c===void 0)throw new Error(usage);var f=u.prepend===!0?"prepend":"append",d=u.container!==void 0?u.container:document.querySelector("head"),h=containers.indexOf(d);h===-1&&(h=containers.push(d)-1,styleElements[h]={});var p;return styleElements[h]!==void 0&&styleElements[h][f]!==void 0?p=styleElements[h][f]:(p=styleElements[h][f]=createStyleElement(),f==="prepend"?d.insertBefore(p,d.childNodes[0]):d.appendChild(p)),c.charCodeAt(0)===65279&&(c=c.substr(1,c.length)),p.styleSheet?p.styleSheet.cssText+=c:p.textContent+=c,p}function _objectSpread$a(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},d=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(f).filter(function(h){return Object.getOwnPropertyDescriptor(f,h).enumerable}))),d.forEach(function(h){_defineProperty$a(c,h,f[h])})}return c}function _defineProperty$a(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}function warn(c,u){process.env.NODE_ENV!=="production"&&!c&&console!==void 0&&console.error("Warning: ".concat(u))}function warning(c,u){warn(c,"[@ant-design/icons-vue] ".concat(u))}function isIconDefinition(c){return typeof c=="object"&&typeof c.name=="string"&&typeof c.theme=="string"&&(typeof c.icon=="object"||typeof c.icon=="function")}function generate(c,u,f){return f?vue.h(c.tag,_objectSpread$a({key:u},f,c.attrs),(c.children||[]).map(function(d,h){return generate(d,"".concat(u,"-").concat(c.tag,"-").concat(h))})):vue.h(c.tag,_objectSpread$a({key:u},c.attrs),(c.children||[]).map(function(d,h){return generate(d,"".concat(u,"-").concat(c.tag,"-").concat(h))}))}function getSecondaryColor(c){return generate$1(c)[0]}function normalizeTwoToneColors(c){return c?Array.isArray(c)?c:[c]:[]}var iconStyles=`
3
3
  .anticon {
4
4
  display: inline-block;
@@ -99,7 +99,7 @@ version: 2.9.0
99
99
  `,f+="-----END PUBLIC KEY-----",f},u.hasPublicKeyProperty=function(f){return f=f||{},f.hasOwnProperty("n")&&f.hasOwnProperty("e")},u.hasPrivateKeyProperty=function(f){return f=f||{},f.hasOwnProperty("n")&&f.hasOwnProperty("e")&&f.hasOwnProperty("d")&&f.hasOwnProperty("p")&&f.hasOwnProperty("q")&&f.hasOwnProperty("dmp1")&&f.hasOwnProperty("dmq1")&&f.hasOwnProperty("coeff")},u.prototype.parsePropertiesFrom=function(f){this.n=f.n,this.e=f.e,f.hasOwnProperty("d")&&(this.d=f.d,this.p=f.p,this.q=f.q,this.dmp1=f.dmp1,this.dmq1=f.dmq1,this.coeff=f.coeff)},u}(RSAKey),_a,version=typeof process<"u"?(_a=process.env)===null||_a===void 0?void 0:_a.npm_package_version:void 0,JSEncrypt=function(){function c(u){u===void 0&&(u={}),u=u||{},this.default_key_size=u.default_key_size?parseInt(u.default_key_size,10):1024,this.default_public_exponent=u.default_public_exponent||"010001",this.log=u.log||!1,this.key=null}return c.prototype.setKey=function(u){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new JSEncryptRSAKey(u)},c.prototype.setPrivateKey=function(u){this.setKey(u)},c.prototype.setPublicKey=function(u){this.setKey(u)},c.prototype.decrypt=function(u){try{return this.getKey().decrypt(b64tohex(u))}catch{return!1}},c.prototype.encrypt=function(u){try{return hex2b64(this.getKey().encrypt(u))}catch{return!1}},c.prototype.sign=function(u,f,d){try{return hex2b64(this.getKey().sign(u,f,d))}catch{return!1}},c.prototype.verify=function(u,f,d){try{return this.getKey().verify(u,b64tohex(f),d)}catch{return!1}},c.prototype.getKey=function(u){if(!this.key){if(this.key=new JSEncryptRSAKey,u&&{}.toString.call(u)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,u);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},c.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},c.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},c.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},c.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},c.version=version,c}();const encryptor=new JSEncrypt,aesKey=createAesKey();function createAesKey(){let u=Math.random().toString(36).substr(2);for(;u.length<16;)u+=Math.random().toString(36).substr(2);return u=u.substr(0,16),u}const iv=CryptoJS.enc.Utf8.parse("ABCDEF1234123412");function aesEncrypt(c,u){u=u||aesKey;const f=CryptoJS.enc.Utf8.parse(u);let d="";switch(typeof c){case"string":d=CryptoJS.enc.Utf8.parse(c);break;case"object":d=CryptoJS.enc.Utf8.parse(JSON.stringify(c));break;default:d=CryptoJS.enc.Utf8.parse(c.toString())}return CryptoJS.AES.encrypt(d,f,{iv,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.ZeroPadding}).toString()}function aesDecrypt(c,u){u=u||aesKey;const f=CryptoJS.enc.Utf8.parse(u),d=CryptoJS.AES.decrypt(c,f,{iv,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.ZeroPadding});return CryptoJS.enc.Utf8.stringify(d).toString()}function setPublicKey(c){encryptor.setPublicKey(c)}function rsaEncrypt(c){return encryptor.encrypt(c)}function hasEncryptUrl(c=""){c.startsWith("/")||(c="/"+c),c=c.split("?")[0];const f=["/diagram","/dataview"].map(d=>`^(.*?)${d}(/|$)`);for(const d of f)if(new RegExp(d).test(c))return!0;return!1}function EncryptConfigParam(c){const{paramType:u,data:f,params:d,method:h}=c;u==="form"?["get","delete"].includes(h)?c.params=getEncryptParam(d,"string"):c.data=getEncryptParam(f,"string"):["get","delete"].includes(h)?c.params=getEncryptParam(d,"string"):c.data=getEncryptParam(f)}function getEncryptParam(c,u){let f=c||{};if(u==="string"){f="";for(const m in c)if(Object.hasOwnProperty.call(c,m)){const g=c[m];f+=`${m}=${encodeURIComponent(g)}&`}}setPublicKey("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMKaTbS1XHH7u/4dhao1n5Lcegpy6AHKX2TjmTP7IDW6N4wznqlL3Tt+U0/Il1TlNp1/EN+tffYYg4dPrrCUDwcCAwEAAQ==");const h=rsaEncrypt(aesKey);return{c:aesEncrypt(f,aesKey),p:h}}window.getEncryptParam=getEncryptParam;function encryptData(c,u){var f;(f=window==null?void 0:window.config)!=null&&f.encryptFlag&&hasEncryptUrl(c.url)&&(c.data instanceof FormData?c.data=getEncryptFileParam(c.data):EncryptConfigParam(c))}function getEncryptFileParam(c){const u=c.entries(),f=new FormData,d={};for(const p of u){const v=p[0],m=p[1];m instanceof Blob?f.append(v,m):d[v]=m}const h=getEncryptParam(d,"json");return typeof h=="object"&&(f.append("c",h.c),f.append("p",h.p)),f}window.xhaesKey=aesKey,window.xhaesDecrypt=aesDecrypt;function decryptData(c,u){var f;if((f=window==null?void 0:window.config)!=null&&f.encryptFlag&&hasEncryptUrl(c.config.url)&&!(c.data instanceof Blob)&&c.data.data!==void 0){const d=aesDecrypt(c.data.data.content,aesKey);c.data=JSON.parse(d)}}const requestErrorTip=window.config.requestErrorTip,request=axios.create({timeout:1e3*180});request.interceptors.request.use(c=>{const{requestParams:u={}}=window.config;return u!=null&&u.pltToken&&(c.headers["Plt-Token"]=u.pltToken),encryptData(c),c},c=>Promise.reject(c)),request.interceptors.response.use(c=>{var u,f,d;return requestErrorTip&&+((u=c==null?void 0:c.data)==null?void 0:u.code)==500&&antDesignVue.message.error({content:((f=c==null?void 0:c.data)==null?void 0:f.msg)||((d=c==null?void 0:c.data)==null?void 0:d.message)||"服务器异常",key:"SERVER_ERROR",duration:2}),decryptData(c),c},c=>{if(decryptData(c==null?void 0:c.response),requestErrorTip)if(c.message.includes("timeout"))antDesignVue.message.error({content:"网络连接超时,请重试!",key:"TIMEOUT",duration:2});else{const{status:u}=(c==null?void 0:c.response)||{};u>=400&&u<500&&antDesignVue.message.error({content:"请求异常",key:"REQUEST_ERROR",duration:2}),u>=500&&antDesignVue.message.error({content:"服务器异常",key:"REQUEST_ERROR",duration:2})}return Promise.reject(c)});const handleFormatter=c=>c.replace(/\\n/g,`
100
100
  `),formatMoney=(c,u=2)=>{const f=parseFloat(c+"");return isNaN(f)?c:f.toFixed(u).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},formatThousands=c=>{const u=parseFloat(c+"");return isNaN(u)?c:(u+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},formatPercentage=(c,u=2)=>{const f=c+"";if(f.includes("%"))return c;const d=parseFloat(f);return isNaN(d)?c:`${(d*100).toFixed(u)}%`},formatDecimals=(c,u=2)=>{const f=c+"",d=parseFloat(f);return isNaN(d)?c:d.toFixed(u)},formatCustom=(c,u)=>In(u,c),getFixedValueDatas=c=>{const{leftAxisList:u=[],rightAxisList:f=[],queryColumnList:d=[],indicators:h=[]}=c;return[...u,...f,...d,...h].filter(p=>(p==null?void 0:p.calcType)==="COMPONENT").map(p=>({keyName:p.builtInCalcWay,id:p.builtInValueSource}))},canRequestIndicator=(c,u)=>{let f=!0;const d=getFixedValueDatas(c);return d!=null&&d.length&&(f=d.map(h=>u[h.id]).every(h=>h)),f},getLegendFormat=(c,u)=>{var v;const f=c.match(/\{(.+?)\}/g),d=((v=c.split(`
101
101
  `))==null?void 0:v.length)-1;let h="";if(d)for(let m=0;m<d;m++)h+=`
102
- `;let p=c;if(f!=null&&f.length){for(const m of f){const g=hn(m,{textData:u},{useNewline:!1,useSpace:!1});g&&(p=p.replace(m,g))}return`${h}{text|${p}}`}else return c},setDefaultRangeVal=(c,u)=>{const{props:f,componentList:d,getGlobalModel:h}=c,{graphicConfig:p={},startValue:v,endValue:m}=f,g=getdefCompleteData({graphicConfig:p,startValue:v,endValue:m,componentList:d,getGlobalModel:h}),{dimensions:y,dataset:x}=u,{classificationList:Pn=[]}=p,j=Pn.find(re=>re.show).label||"";for(const re of g)!y.find(vn=>+vn==+re)&&!isNaN(+re)&&y.push(+re);y.sort((re,vn)=>dayjs(re).isBefore(dayjs(vn))?-1:1);for(const re of x){const{data:vn}=re;if(vn!=null&&vn.length){const Fn=[];for(const Bn of g)if(!vn.find(w=>+w[j]==+Bn)&&!isNaN(+Bn)){const w=lodashEs.cloneDeep(vn[0]);for(const J in w)J===j?w[J]=+Bn:w[J]=0;Fn.push(w)}re.data.push(...Fn),re.data.sort((Bn,w)=>dayjs(Bn[j]).isBefore(dayjs(w[j]))?-1:1)}}},getConditions=c=>{const u=[];for(const f of c)f.conditions?u.push(...getConditions(f.conditions)):(f==null?void 0:f.dataType)==="component"&&u.push(f);return u};function getdefCompleteData(c){const{startValue:u,endValue:f,componentList:d,graphicConfig:h,getGlobalModel:p}=c,v=getVariableAndField(u),m=getVariableAndField(f),g=[];if(v&&m){const y=d.find(Pn=>Pn.keyName===v.keyName),x=d.find(Pn=>Pn.keyName===m.keyName);if(y&&x){const Pn=p(y.id),b=p(x.id),{classificationList:j=[]}=h,re=j.find(vn=>vn.show);if(re){let vn="YYYY-MM";switch(re.name){case"the_year":vn="YYYY";break;case"the_month":vn="MM";break;case"the_day":vn="DD";break;case"the_date":vn=(re==null?void 0:re.dateFormat)||vn;break}const Fn=getFormatStep(vn);if(vn){const Bn=vue.unref(Pn[v.field]),w=vue.unref(b[m.field]);let J=dayjs(Bn);const gn=dayjs(w);for(g.push(gn.format(vn));J.isBefore(gn);)g.push(J.format(vn)),J=J.add(1,Fn)}}}}return g}function getVariableAndField(c){let u=null;if(c){const f=c.match(/\{(.+?)\}/g);if(f!=null&&f.length){let d=f[0].slice(1,-1).trim();const h=d.match(/\[(.+?)\]/g);let p="";h!=null&&h.length&&(d=d.replace(h[0],""),p=h[0].slice(1,-1).trim()),u={keyName:d,field:p}}}return u}function getFormatStep(c){const u=c.split("-");let f="";if(u!=null&&u.length)switch(u[u.length-1]){case"YYYY":f="year";break;case"MM":f="month";break;case"DD":f="day";break}return f}function handleJumpLink(c,u){var Pn;const{pageMode:f,targetTemplate:d,getRecordValueByKeyName:h,setTemplateData:p}=u,v=c.linkPage||"",m=usePageUrl(f,v),g=c.href;let y=g||m;y=hn(y);const x=c.target;if(x)if(x==="event")window.parent.postMessage({type:"openPage",url:g},"*");else{const b={pageId:v,componentId:d};if((Pn=c.transParams)!=null&&Pn.length){y.includes("?")?y+="&":y+="?";const j=[];for(const re of c.transParams){const vn=h(String(re.fieldName));j.push(`${re.keyName}=${vn}`),b[re.keyName]=vn}y+=j.join("&")}x==="template"?(Object.prototype.hasOwnProperty.call(window,"oldPageId")||(window.oldPageId=""),window.oldPageId&&(window.controller.abort(),window.controller=new AbortController),window.oldPageId=v,p(b)):(x==="blank"&&(y+=`${y.includes("?")?"&":"?"}drillFlag=1`),window.open(y,"_"+x))}}function getPageUrlParams(c){var f,d;let u={};if(c){const h=(((f=window.config)==null?void 0:f.urlParams)||{})[c]||{};for(const p in h)p.includes("{")||(u[p]=h[p])}else u=((d=window.config)==null?void 0:d.requestParams)||{};return u}function getNewValueFromUrlParams(c,u,f){let d="";const{urlParams:h}=window.config;if(c&&h[c])for(const p in h[c]){const v=h[c][p];if(p===`{${u}[${f}]}`&&v){d=v;break}}return d}function getFormatWh(c,u){return typeof c=="string"?parseFloat(c):c.suffix==="px"?+c.value:c.suffix==="%"?parseFloat(u)*(c.value/100):0}const hasChinese=c=>/[\u4e00-\u9fa5]/.test(c),dragModalAction=(c,u)=>{const f=document.querySelector(u);if(!f)return;f.style.cursor="move",f.style.userSelect="none";const d=f.parentElement,h=200,p=d.getBoundingClientRect(),{width:v,left:m,top:g}=p,y=window.innerWidth,x=window.innerHeight,Pn=c.clientX,b=c.clientY,j=parseFloat(d.style.left)||0,re=parseFloat(d.style.top)||0,vn=-(m+v-h-j),Fn=y-m+j-h,Bn=-(g-re),w=x-g+re-h,J=zn=>{zn.preventDefault();const Vn=zn.clientX-Pn,Kn=zn.clientY-b;let Un=j+Vn,Qn=re+Kn;Un=Math.max(vn,Math.min(Un,Fn)),Qn=Math.max(Bn,Math.min(Qn,w)),d.style.left=`${Un}px`,d.style.top=`${Qn}px`},gn=()=>{f.style.cursor="",f.style.userSelect="",document.removeEventListener("mousemove",J),document.removeEventListener("mouseup",gn)};document.addEventListener("mousemove",J),document.addEventListener("mouseup",gn)},useRequestData=(c,u,f=()=>{})=>{var sr;const{requestUrl:d,requestMethod:h,requestHeaders:p,requestParams:v,requestInterval:m,isOpenRequestTimer:g,openCustomRequestData:y,projectRequestUrl:x="",getModel:Pn,requestParamsMode:b,customRequestParams:j,dataSetParam:re,requestType:vn,dataType:Fn,dataSetchecked:Bn}=c,{pageMode:w}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"})||{},{pageId:J}=vue.inject("templateOperate",{pageId:""})||{},{contextRequestUrl:gn,touchEventId:zn}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:"",touchEventId:""})||{},{getGlobalModel:Vn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:ur=>{}})||{},{loadedData:Kn}=vue.inject(LOADED_DATA,{loadedData:{}})||{},Un=vue.inject(COMMON_OPERATE,{operateAction:(ur,Gn)=>{}}),Qn=Pn||Vn;let Jn=hn(d),Yn=vue.unref(gn)||x||"";(Fn==="request"&&Bn||vn===1)&&(Yn="",Jn=((sr=window.config)==null?void 0:sr.dataSetUrl)||"/api/datav/dataset/data2");const Zn=async(ur={})=>{var ir;if(Fn!=="request"&&nr){clearInterval(nr);return}if(!Jn||!h||!p)return;let Gn={};for(const er of v){const{key:pr,value:lr}=er;if((lr==null?void 0:lr.id)==="PARENT"&&(lr!=null&&lr.prop)){const ar=(((ir=window.config)==null?void 0:ir.record)||{})[lr.prop];if(ar){const vr=ar[lr.propKey||"value"];vr&&(["date","range"].some(mr=>yn(ar==null?void 0:ar.type,mr))?Gn[pr]=vue.unref(vr).format(ar.format||"YYYY-MM-DD"):Gn[pr]=vue.unref(vr))}continue}if(typeof lr=="object"&&lr!=null&&lr.id){let or={};const{id:ar,prop:vr,propKey:fr,operate:mr}=lr;let dr=!1;try{JSON.parse(ar),dr=!0}catch{dr=!1}if(ar==="THIS"?or=Qn(vue.unref(zn))||{}:or=Qn(ar)||{},(or==null?void 0:or.type)==="ecanSelect"&&vue.unref(Kn)&&!vue.unref(Kn)[ar]&&(or==null?void 0:or.dataType)!=="static")return;const hr=vue.unref(or[vr]);let yr=null;if(["date","range"].some(gr=>yn(or==null?void 0:or.type,gr))){const{value:gr,type:br,mode:Er}=mr||{};if(gr&&br&&Er)switch(br){case"add":yr=vue.unref(hr).add(gr,Er);break;case"minus":yr=vue.unref(hr).subtract(gr,Er);break}yr==null&&(yr=vue.unref(hr)),yr=yr&&(yr==null?void 0:yr.format((fr==null?void 0:fr.trim())||or.format))||""}else if(Object.prototype.toString.call(hr)==="[object Object]")fr?yr=hr[fr]:yr=vr?hr[vr]:hr;else if(yn(or==null?void 0:or.type,"select")&&vue.unref(hr)&&vr&&Array.isArray(vue.unref(hr)))yr=vue.unref(hr).map(gr=>Object.prototype.hasOwnProperty.call(gr,vr)?gr[vr]:gr);else if(dr){const gr=JSON.parse(ar);console.log(gr,"urlvalue"),yr=gr.value}else yr=hr;Gn[pr]=yr}else typeof lr=="object"&&!lr.id&&vn===1?(console.log(lr.propKey,"value.propKey"),Gn[pr]=lr.propKey):typeof lr=="string"&&(Gn[pr]=hn(lr))}if(vn===1){console.log(Gn,"_params");const er=Object.entries(Gn);let pr=re;if(!re.param&&Array.isArray(re)){const lr={};for(const or of re)lr[or.key]=or.value;pr=lr}pr.param=pr.param.map((lr,or)=>({...lr,paramKey:er[or][0],defaultValue:er[or][1]||""})),Gn=pr}if(b==="2"&&j!=="{}"){const er=JSON.parse(j);Wn(er),er&&(Gn=er)}function Wn(er){const pr={...Gn,...getPageUrlParams(J)};if(Array.isArray(er))er.forEach((lr,or)=>{if(typeof lr=="string"){const ar=lr.match(/\${(.+?)\}/g);if(ar!=null&&ar.length){const vr=ar[0].slice(2,-1);vr&&pr[vr]?er[or]=pr[vr]:er[or]=""}}else Wn(lr)});else if(Object.prototype.toString.call(er)==="[object Object]")for(const lr in er)if(typeof er[lr]=="string"){const or=er[lr].match(/\${(.+?)\}/g);if(or!=null&&or.length){const ar=or[0].slice(2,-1);ar&&pr[ar]?er[lr]=pr[ar]:er[lr]=""}}else Wn(er[lr])}const Rn=getPageUrlParams(J);for(const er in Rn)Rn[er]&&(Rn[er]=decodeURIComponent(Rn[er]));Gn={...Rn,...ur,...Gn};let qn="";const Xn=Object.keys(Gn),Hn=Xn.length-1,tr=Xn.length;Xn.forEach((er,pr)=>{let lr=Gn[er];Object.prototype.toString.call(lr)==="[object Object]"&&(lr=JSON.stringify(lr)),pr===0?tr!==1?qn+=`?${er}=${lr}&`:qn+=`?${er}=${lr}`:pr===Hn?qn+=`${er}=${lr}`:qn+=`${er}=${lr}&`}),Jn.includes("?")&&(qn=qn.replace("?","&"));function cr(er){var pr;if(vn===1)return{Authentication:(pr=window==null?void 0:window.config)==null?void 0:pr.indicatorToken};if(typeof er=="string"){const lr=JSON.parse(er),or=getPageUrlParams(J);if(Object.prototype.toString.call(lr)==="[object Object]"){for(const ar in lr)if(typeof lr[ar]=="string"){const vr=lr[ar].match(/\${(.+?)\}/g);if(vr!=null&&vr.length){const fr=vr[0].slice(2,-1);fr&&or[fr]?lr[ar]=or[fr]:lr[ar]=""}}}return lr}else return er}try{const er=["get","head"].includes(h),pr={};let lr=er?Jn+qn:Jn;Gn.dataSqlId&&!lr.includes("dataSqlId")&&(lr+=`${lr.includes("?")?"&":"?"}dataSqlId=${Gn.dataSqlId}`),Object.prototype.hasOwnProperty.call(Gn,"signal")?pr.signal=Gn.signal:window.controller&&(pr.signal=window.controller.signal);const or=await request({baseURL:Yn,url:lr,method:h,headers:p?cr(p):{},data:er?{}:Gn,...pr});return f(or),Un.operateAction("SAVE_COMPONENT_RES_DATA",{id:c.id,data:(or==null?void 0:or.data)||{}}),or}catch(er){console.error(er)}},nr=vue.unref(w)!=="design"&&g&&(y||y===void 0)&&setInterval(Zn,m*1e3);return vue.onUnmounted(()=>{clearInterval(nr)}),Zn},useImagePath=(c,u=!1)=>{var d;if(!c)return c;let f="";return c!=null&&c.includes("://")?f=c:f=((d=window==null?void 0:window.config)==null?void 0:d.uploadPath)+c,u&&(f=`url(${f})`),f},usePageUrl=(c,u)=>{const f=`${BASE_URL}/preview?pageId=${u}`,d=`${BASE_URL}/${u}`;return c==="preview"?f:d},useIndicatorData=(c={},u=()=>{})=>{var x;const{pageMode:f}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),{requestToken:d}=vue.inject(GLOBAL_TOKEN,{requestToken:()=>{}}),{setLoadedData:h}=vue.inject(LOADED_DATA,{setLoadedData:(Pn,b)=>{}}),{getAllGlobalModel:p}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),{pageId:v}=vue.inject("templateOperate",{pageId:""})||{},m=vue.inject(COMMON_OPERATE,{operateAction:(Pn,b)=>{}});c.dataType==="indicator"&&d();const g=async(Pn={})=>{var J,gn,zn;const b=p();h(c.id,!1);const j=Dn({...c,globalModel:b},Pn),{url:re,...vn}=j||{},{pathname:Fn,search:Bn}=window==null?void 0:window.location;let w=v||((J=window==null?void 0:window.config)==null?void 0:J.pageId);if(!w&&Fn){const Vn=Fn.split("/");Vn!=null&&Vn.length&&(w=Vn[Vn.length-1])}if(re&&vn){let Vn,Kn;if(c.type==="ecanIndexPanel"&&(Vn=c.theFlag),re==="/diagram/formData"){Kn={};const Qn=Bn.slice(1,Bn.length).split("&");for(const Jn of Qn)if(Jn){const Yn=Jn.split("=");Yn[0]&&(Kn[Yn[0]]=Yn[1])}}try{const Un=await request({url:`${INDICATOR_URL}${re}`,method:"post",headers:{Authentication:(gn=window==null?void 0:window.config)==null?void 0:gn.indicatorToken,operateContext:CONTEXT},data:{...vn,pageId:w,theFlag:Vn,extParam:Kn},signal:((zn=window.controller)==null?void 0:zn.signal)||""});return Pn!=null&&Pn.isTimer&&u(Un),m.operateAction("SAVE_COMPONENT_RES_DATA",{id:c.id,data:(Un==null?void 0:Un.data)||{}}),Un}catch(Un){console.error(Un)}}},y=vue.unref(f)!=="design"&&((x=c==null?void 0:c.graphicConfig)==null?void 0:x.pageMode)!=="design"&&c.isOpenRequestTimer&&c.requestInterval&&setInterval(()=>{g({isTimer:!0})},c.requestInterval*1e3);return vue.onUnmounted(()=>{clearInterval(y)}),g},useHrefParamsToGlobalVariables=()=>{const u=window.location.search.slice(1).split("&"),f=u.length,d={};for(let h=0;h<f;h++){const p=u[h];if(p==null||p==="")continue;const v=p.split("=");if(Array.isArray(v)){const m=v[0];m.includes("{")||(d[m]=v[1])}}window.config.requestParams={...window.config.requestParams,...d},window.config={...window.config,...d}},_sfc_main$z=vue.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...pageConfigComponentProps,pageId:{type:String,default:""},customId:{type:String,default:"container"},portId:{type:String,default:"norPageConfig"}},setup(c){const{width:u,height:f,isCompatible:d}=vue.inject(GLOBAL_CONFIG,{width:null,height:null,isCompatible:null}),h=vue.inject("setPageHeight",zn=>{}),p=vue.inject("isMobile",!1),v=vue.computed(()=>{const zn={};return(!d.value||!p)&&(zn.width=u.value,zn.height=f.value),{...zn,backgroundColor:c.pageId?"transparent":c.backgroundColor,backgroundImage:useImagePath(c.backgroundImage,!0),backgroundSize:c.backgroundSize}}),m=vue.ref(0),g=vue.ref(0),y=vue.ref(0),x=vue.ref(0),Pn=vue.ref(!1),b=vue.ref();let j;const re=()=>new Promise(zn=>{vue.nextTick(()=>{u.value&&f.value?(m.value=parseFloat(u.value),g.value=parseFloat(f.value)):(m.value=b.value.clientWidth,g.value=b.value.clientHeight),(!y.value||!x.value)&&(y.value=window.screen.width,x.value=window.screen.height),zn()})}),vn=()=>{m.value&&g.value?(b.value.style.width=`${m.value}px`,b.value.style.height=`${g.value}px`):(b.value.style.width=`${y.value}px`,b.value.style.height=`${x.value}px`)};vue.watch([u,f],async()=>{c.pageId||(await re(),vn(),Bn(),window.addEventListener("resize",w),J()),Pn.value=!0},{immediate:!0});const Fn=vue.ref({});vue.provide("scaleValue",Fn);const Bn=()=>{if(d.value&&p){b.value.style.width="100%",b.value.style.height="auto",h("auto");return}const zn=document.body.clientWidth,Vn=document.body.clientHeight,Kn=m.value||y.value,Un=g.value||x.value,Qn=zn/Kn;let Jn=Vn/Un;(m.value!==1920||g.value!==1080)&&(Jn=g.value/m.value*zn/Un),Fn.value={widthScale:Qn,heightScale:Jn},b.value&&(b.value.style.transform=`scale(${Qn}, ${Jn})`),h(Fn.value)},w=lodashEs.debounce(async()=>{await re(),Bn()},100),J=()=>{const zn=window.MutationObserver;j=new zn(w),j.observe(b.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},gn=()=>{j&&(j.disconnect(),j.takeRecords(),j=null)};return vue.onMounted(()=>{Pn.value=!1}),vue.onUnmounted(()=>{window.removeEventListener("resize",w),gn()}),{style:v,container:b,ready:Pn}}}),PageConfig_vue_vue_type_style_index_0_scoped_44a453d9_lang="",_hoisted_1$k=["id"],_hoisted_2$a=["id"];function _sfc_render$E(c,u,f,d,h,p){return vue.openBlock(),vue.createElementBlock("div",{class:"page-config-container",id:c.customId,ref:"container"},[c.ready||c.pageId?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"page-config",id:c.portId,style:vue.normalizeStyle(c.style)},[vue.renderSlot(c.$slots,"default",{},void 0,!0)],12,_hoisted_2$a)):vue.createCommentVNode("",!0)],8,_hoisted_1$k)}const PageConfig=_export_sfc$1(_sfc_main$z,[["render",_sfc_render$E],["__scopeId","data-v-44a453d9"]]),EcanPageConfig=withInstall$1(PageConfig),providerConfig={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px",pageFontFamily:"",jumpType:"page",jumpTime:null,jumpPage:"",jumpLink:"",requestList:[],events:[],isCompatible:!0,variableList:[],drillingMode:"pivotTable"},providerConfigComponentProps=transformToComponentProps(providerConfig);let random=c=>crypto.getRandomValues(new Uint8Array(c)),customRandom=(c,u,f)=>{let d=(2<<Math.log(c.length-1)/Math.LN2)-1,h=-~(1.6*d*u/c.length);return(p=u)=>{let v="";for(;;){let m=f(h),g=h;for(;g--;)if(v+=c[m[g]&d]||"",v.length===p)return v}}},customAlphabet=(c,u=21)=>customRandom(c,u,random),nanoid=(c=21)=>crypto.getRandomValues(new Uint8Array(c)).reduce((u,f)=>(f&=63,f<36?u+=f.toString(36):f<62?u+=(f-26).toString(36).toUpperCase():f>62?u+="-":u+="_",u),"");const pivotTableProps={...props,name:"透视表",keyName:"透视表",width:"800px",height:"400px",type:"ecanPivotTable",graphicConfig:{},dataType:"indicator",data:[],dimensionList:[],indicatorList:[],styleConfig:{borderColor:"#E3E3E3",headerBgColor:"#ECF1F5",headerColor:"#000000",bodyBgColor:"#FFFFFF",bodyColor:"#000000",indicatorsHeaderBgColor:"#ECF1F5",indicatorsHeaderColor:"#000000",indicatorsBodyBgColor:"#FFFFFF",indicatorsBodyColor:"#000000",aggregateBgColor:"#ECF1F5",aggregateColor:"#000000",sortNotActiveColor:"#CCCCCC",sortActiveColor:"#416EFF",dropDownMenuBgColor:"#FFFFFF",dropDownMenuColor:"#141414",dropDownMenuHightLightColor:"#2E68CF"},configMode:"halfMode"},pivotTableComponentProps=transformToComponentProps(pivotTableProps),pivotTableEvents=["refreshData"],_sfc_main$y=vue.defineComponent({name:"IndicatorDetailModal",setup(c,{expose:u}){const f=vue.ref(!1),d=vue.ref([]),h=vue.ref(!1),p=vue.ref(),v=async({data:g,indicatorUrl:y,indicatorToken:x,context:Pn,pageId:b})=>{var Fn,Bn;h.value=!0,f.value=!0;let j=[];const{graphicConfig:re,theFlag:vn}=vue.unref(g)||{};if(re){const{leftAxisList:w=[],rightAxisList:J=[],indicators:gn=[]}=re,zn=w.concat(J).concat(gn);zn!=null&&zn.length&&(j=zn.map(Vn=>({calcType:Vn.calcType||"COLUMN",columnName:Vn.name,hrpIndexCode:Vn.indexCode,hrpIndexCodeNum:Vn.indexCodeNum,label:Vn.label,show:Vn.show,formula:Vn.formula})))}if(j!=null&&j.length)try{const w=await request({url:`${vue.unref(y)}/diagram/obtainIndicatorInfo`,method:"post",headers:{Authentication:x,operateContext:Pn},data:{source:"INDICATOR_LIB",pageId:b,indicatorList:j,theFlag:vn}}),J=((Fn=w==null?void 0:w.data)==null?void 0:Fn.data)||[];(Bn=J[0])!=null&&Bn.remark?(p.value=J[0].remark,d.value=[]):(p.value=null,d.value=J)}catch{}finally{h.value=!1}},m=()=>document.querySelector("#ProviderConfig > #container")||document.body;return u({showModal:v}),{visible:f,dataList:d,isLoading:h,hasOwn:mn,remarkData:p,getContainer:m}}}),IndicatorDetailModal_vue_vue_type_style_index_0_scoped_be13fdbe_lang="",_withScopeId$6=c=>(vue.pushScopeId("data-v-be13fdbe"),c=c(),vue.popScopeId(),c),_hoisted_1$j=_withScopeId$6(()=>vue.createElementVNode("div",{class:"modal-title"},"指标详情",-1)),_hoisted_2$9={key:0,class:"spin-container"},_hoisted_3$5=["innerHTML"],_hoisted_4$4={class:"index-name"},_hoisted_5$3={key:0,class:"card-row"},_hoisted_6$3=_withScopeId$6(()=>vue.createElementVNode("div",{class:"label"},"计量单位:",-1)),_hoisted_7$3={class:"content"},_hoisted_8$3={key:1,class:"card-row"},_hoisted_9$3=_withScopeId$6(()=>vue.createElementVNode("div",{class:"label"},"指标定义:",-1)),_hoisted_10$3={class:"content"},_hoisted_11$3={key:2,class:"card-row"},_hoisted_12$3=_withScopeId$6(()=>vue.createElementVNode("div",{class:"label"},"计算方法:",-1)),_hoisted_13$3={class:"content"},_hoisted_14$3={key:3,class:"card-row"},_hoisted_15$2=_withScopeId$6(()=>vue.createElementVNode("div",{class:"label"},"指标说明:",-1)),_hoisted_16$1={class:"content"};function _sfc_render$D(c,u,f,d,h,p){const v=vue.resolveComponent("a-spin"),m=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(m,{visible:c.visible,"onUpdate:visible":u[0]||(u[0]=g=>c.visible=g),width:"45%",getContainer:c.getContainer,footer:null,destroyOnClose:!0,bodyStyle:{maxHeight:"60vh",overflow:"auto",padding:"20px 24px 24px"}},{title:vue.withCtx(()=>[_hoisted_1$j]),default:vue.withCtx(()=>[c.isLoading?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$9,[vue.createVNode(v,{size:"large"})])):c.remarkData?(vue.openBlock(),vue.createElementBlock("div",{key:1,innerHTML:c.remarkData},null,8,_hoisted_3$5)):c.dataList.length?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:2},vue.renderList(c.dataList,(g,y)=>(vue.openBlock(),vue.createElementBlock("div",{class:"detail-wrap",key:y},[vue.createElementVNode("div",_hoisted_4$4,vue.toDisplayString(g.indexName||"--"),1),c.hasOwn(g,"theUnit")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$3,[_hoisted_6$3,vue.createElementVNode("div",_hoisted_7$3,vue.toDisplayString(g.theUnit||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(g,"meaning")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_8$3,[_hoisted_9$3,vue.createElementVNode("div",_hoisted_10$3,vue.toDisplayString(g.meaning||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(g,"theFormula")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_11$3,[_hoisted_12$3,vue.createElementVNode("div",_hoisted_13$3,vue.toDisplayString(g.theFormula||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(g,"theExplain")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_14$3,[_hoisted_15$2,vue.createElementVNode("div",_hoisted_16$1,vue.toDisplayString(g.theExplain||"--"),1)])):vue.createCommentVNode("",!0)]))),128)):vue.createCommentVNode("",!0)]),_:1},8,["visible","getContainer"])}const IndicatorDetailModal=_export_sfc$1(_sfc_main$y,[["render",_sfc_render$D],["__scopeId","data-v-be13fdbe"]]),lineProps={...props,id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"}],titleText:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanLine",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,tooltipTextStyleColor:"",noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px",defaultRangeValue:!1,startValue:"",endValue:""},lineComponentProps=transformToComponentProps(lineProps),lineEvents=["click","refreshData","resetRecord"],useDownloadFile=async c=>{var g;const u=await request.post(c,{},{responseType:"blob"}),{data:f,headers:d}=u,h=d["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),p=new Blob([f]),v=document.createElement("a"),m=window.URL.createObjectURL(p);v.href=m,v.download=decodeURI(h),v.style.display="none",document.body.appendChild(v),v.click(),(g=v.parentNode)==null||g.removeChild(v),window.URL.revokeObjectURL(m)},modalProps={id:"",type:"ecanModal",title:"",titleFontSize:"14px",titleColor:"",width:"1000px",height:"800px",originalWidth:"1920px",originalHeight:"1080px",backgroundColor:"#fff",backgroundImage:"",backgroundSize:"100% 100%",keyName:"弹窗",componentList:[],fullModal:!1,destroyOnClose:!0,position:"default",closeBtnColor:"#333",isShowCloseBtn:!0,events:[],borderRadius:"0",borderWidth:"0px",borderColor:"",boxShadow:"0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05)",allComponentList:[],requestList:[],parentIframeId:"",banScale:!1},modalComponentProps=transformToComponentProps(modalProps),modalEvents=["showModal","hideModal"],containerType=["ecanBorder","ecanTabs","ecanCirculate"];function handleScrollCombinations(c){const{containerMap:u={},sourceList:f=[]}=c,d=lodashEs.cloneDeep(c.componentList),h=d.filter(p=>p.type==="ecanTabs"&&p.isAutoScroll);if(h!=null&&h.length)for(const p of h){const v=u[p.id],m=[];if((!mn(p,"componentList")||!(p!=null&&p.componentList))&&(p.componentList=[]),v){let g=0;for(const y in v){const x=v[y],Pn=[];if(x!=null&&x.length)for(const b of x){let j=d.find(re=>re.id===b);j||(j=f.find(re=>re.id===b)),j&&(Pn.push(j),containerType.includes(j.type)&&Pn.push(...getComponentByContainer(j.id,u,f)))}for(const b of Pn)mn(b,"scale")?parseFloat(y)>0&&(b.left=parseFloat(b.left)+g+"px"):(b.left=parseFloat(b.sourceLeft||b.left)-parseFloat(p.sourceLeft||p.left)+g+"px",b.top=parseFloat(b.sourceTop||b.top)-parseFloat(p.sourceTop||p.top)+"px"),m.includes(b.id)||m.push(b.id);p.componentList.push(...Pn),g=getMaxLeftInComponents(Pn)}}for(const g of m){const y=d.findIndex(x=>x.id===g);y!==-1&&d.splice(y,1)}}return d}function compatibleMobileList(c){var p,v;const{combinationMap:u={},sourceList:f=[]}=c,d=c.containerMap,h=lodashEs.cloneDeep([...c.componentList,...getTabsSomeComponentList(d,f)]);if(handleContainerMap(d,h),(p=Object.keys(d))!=null&&p.length||(v=Object.keys(u))!=null&&v.length){for(const b in d){const j=h.find(re=>re.id===b);if(j){mn(j,"parentId")||(j.parentId="",j.sourceLeft=j.left,j.sourceTop=j.top);for(const re in d[b])if(d[b][re])for(const vn of d[b][re]){const Fn=h.find(Bn=>Bn.id===vn);Fn&&(Fn.parentId=b,Fn.sourceLeft=Fn.left,Fn.sourceTop=Fn.top,Fn.left=parseFloat(Fn.left)-parseFloat(j.sourceLeft||j.left)+"px",Fn.top=parseFloat(Fn.top)-parseFloat(j.sourceTop||j.top)+"px")}}}const m=Array.from(new Set(h.filter(b=>(!mn(b,"parentId")||b.parentId==="")&&b.combinationId).map(b=>b.combinationId))),g=getCombinationList(m,{...c,componentList:h});g!=null&&g.length&&h.unshift(...g);const y=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],x=h.filter(b=>y.includes(b.type)&&!mn(b,"parentId")),Pn=[];for(const b of x)if(b){const j=b.id+"_vir";Pn.push({id:j,keyName:b.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:b.width,height:b.height,left:b.left,top:b.top,sourceLeft:b.left,sourceTop:b.top}),b.parentId=j,b.sourceLeft=b.left,b.sourceTop=b.top,b.left=0,b.top=0}Pn!=null&&Pn.length&&h.unshift(...Pn);for(const b of h){const j=document.body.clientWidth;if(b.parentId===""&&containerType.includes(b.type))b.sourceWidth=parseFloat(b.width),b.height=(j/(b.sourceWidth/parseFloat(b.height))).toFixed(2)+"px",b.width="100%",b.position="relative",b.top="auto",b.left="auto";else{const re=h.find(vn=>vn.id===b.parentId);if((re==null?void 0:re.parentId)===""){const vn=re.sourceWidth||parseFloat(re.width),Fn=j/vn;b.scale=Fn,b.top=parseFloat(b.top)*Fn-parseFloat(b.height)*(1-Fn)/2+"px",b.left=parseFloat(b.left)*Fn-parseFloat(b.width)*(1-Fn)/2+"px"}}b.type==="ecanModal"&&(b.parentId="",b.fullModal=!0)}return sortList(h)}return h}function handleContainerMap(c,u){const f=lodashEs.cloneDeep(c),d=u.filter(h=>h.type==="ecanTabs"&&h.isAutoScroll);if(d!=null&&d.length)for(const h of d){const p=f[h.id];for(const v in p)for(const m of p[v]){const g=u.find(y=>y.id===m);if(g&&containerType.includes(g.type)){const y=getComponentByContainer(g.id,f,u);for(const x of y)c[h.id][v].push(x.id),containerType.includes(x.type)&&delete c[x.id];delete c[g.id]}}}}function getTabsSomeComponentList(c,u){const f=[],d=u.filter(h=>h.type==="ecanTabs"&&h.isAutoScroll);if(d!=null&&d.length)for(const h of d){const p=c[h.id];for(const v in p)if(parseFloat(v)>0)for(const m of p[v]){const g=u.find(y=>y.id===m);g&&(f.push(g),containerType.includes(g.type)&&f.push(...getComponentByContainer(g.id,c,u)))}}return f}function getComponentByContainer(c,u,f){const d=[],h=u[c];for(const p in h)for(const v of h[p]){const m=f.find(g=>g.id===v);m&&(d.push(m),containerType.includes(m.type)&&d.push(...getComponentByContainer(m.id,u,f)))}return d}function getCombinationList(c,u,f){const{combinationMap:d={},componentList:h=[]}=u,p=[];for(const v of c){const m=d[v];if(m!=null&&m.length){const g=h.filter(y=>m.includes(y.id));if(g!=null&&g.length){const y=getCombinateRect(g);if(y){p.push({...y,id:v,keyName:v,parentId:f||"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:y.left,sourceTop:y.top});for(const x of g)x&&(x.parentId=v,x.sourceLeft=x.left,x.sourceTop=x.top,x.left=parseFloat(x.left)-parseFloat(y.left)+"px",x.top=parseFloat(x.top)-parseFloat(y.top)+"px")}}}}return p}function sortList(c){const f=c.filter(d=>d.parentId==="");if(f!=null&&f.length){const d=lodashEs.cloneDeep(f).map(h=>({...h,sourceTop:parseFloat(h.sourceTop),sourceLeft:parseFloat(h.sourceLeft)}));for(let h=0;h<d.length-1;h++)for(let p=0;p<d.length-h-1;p++){let v=!1;if((d[p].sourceTop-d[p+1].sourceTop>50||Math.abs(d[p+1].sourceTop-d[p].sourceTop)<=50&&d[p].sourceLeft>d[p+1].sourceLeft)&&(v=!0),v){const m=d[p];d[p]=d[p+1],d[p+1]=m}}for(const h of d){const p=c.findIndex(v=>v.id===h.id);p!==-1&&c.splice(p,1)}return[...d,...c]}return c}function getCombinateRect(c){const u=c.sort((p,v)=>parseFloat(p.top)-parseFloat(v.top))[0],f=c.sort((p,v)=>parseFloat(p.left)-parseFloat(v.left))[0],d=c.map(p=>({...p,computedTop:parseFloat(p.top)+parseFloat(p.height)})).sort((p,v)=>v.computedTop-p.computedTop)[0],h=c.map(p=>({...p,computedLeft:parseFloat(p.left)+parseFloat(p.width)})).sort((p,v)=>v.computedLeft-p.computedLeft)[0];return u&&f&&d&&h?{left:f.left,top:u.top,width:h.computedLeft-parseFloat(f.left)+"px",height:d.computedTop-parseFloat(u.top)+"px"}:null}function getMaxLeftInComponents(c){const u=c.map(f=>parseFloat(f.left)+parseFloat(f.width)).sort((f,d)=>d-f)[0];return u||0}function moveToComponentList(c,u,f){const d=c[f],h=[];if(d)for(const p in d){const v=d[p];for(const m of v){const g=u.find(y=>y.id===m);g&&(h.push(g),containerType.includes(g.type)&&h.push(...getComponentByContainer(g.id,c,u)))}}return h}const _sfc_main$x=vue.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(c,{emit:u}){u("ready",c.component.id)}});function _sfc_render$C(c,u,f,d,h,p){return c.component.parentId?(vue.openBlock(),vue.createBlock(vue.Teleport,{key:0,to:"#container_"+c.component.parentId},[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(c.component.type),vue.mergeProps({style:{scale:c.component.scale}},c.component),null,16,["style"]))],8,["to"])):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(c.component.type),vue.normalizeProps(vue.mergeProps({key:1},c.component)),null,16))}const Render=_export_sfc$1(_sfc_main$x,[["render",_sfc_render$C]]),EcanRender=withInstall$1(Render),_sfc_main$w=vue.defineComponent({name:"EcanModal",components:{AModal:antDesignVue.Modal,CloseOutlined:CloseOutlined$1,Render:EcanRender},props:{...modalComponentProps},setup(c,{emit:u}){const f=vue.ref([]),d=vue.inject("isMobile",!1),h=vue.computed(()=>c.fullModal),p=vue.inject("getContainerMap",()=>{}),v=vue.inject("getCombinationMap",()=>{}),{clearInteractiveData:m,interactiveData:g,setRequestData:y}=vue.inject(GLOBAL_MODEL,{setRequestData:(hr,yr)=>{},clearInteractiveData:()=>{},interactiveData:null}),x=()=>document.getElementById("ProviderConfig")||document.body,Pn=vue.computed(()=>{const hr=c.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[hr]}}),b=c.fullModal?"1920px":c.width,j=c.fullModal?"1080px":c.height,re=c.originalWidth,vn=c.originalHeight,Fn=vue.ref("80%"),Bn=vue.ref(0),w=vue.ref(),J=vue.ref(0),gn=vue.ref({}),zn=usePickComponentStyle(c),Vn=vue.ref({}),Kn=vue.ref(!1),Un=vue.ref();let Qn;const Jn=()=>{w.value=parseFloat(b)/parseFloat(re);const hr=parseFloat(j)/parseFloat(vn),yr=document.body.offsetWidth,_r=document.body.offsetHeight;if(Bn.value=yr*vue.unref(w),J.value=_r*hr,Fn.value=`${vue.unref(w)*100}%`,gn.value={width:`${vue.unref(Bn)}px`,height:`${vue.unref(J)}px`,border:`${c.borderWidth} solid ${c.borderColor}`,borderRadius:c.borderRadius+"px",boxShadow:c.boxShadow},Vn.value={...vue.unref(zn),backgroundImage:useImagePath(c.backgroundImage,!0)},d)Vn.value={...Vn.value,width:"100%",height:"100%"};else{const gr={...Vn.value,width:b,height:j};c.banScale&&vue.unref(h)?(gr.width="100%",gr.height="100%"):gr.transform=`scale(${vue.unref(Bn)/parseFloat(b)},${vue.unref(J)/parseFloat(j)})`,Vn.value=gr}},Yn=lodashEs.debounce(()=>{Jn()},100),Zn=()=>{const hr=window.MutationObserver;Qn=new hr(Yn),Qn.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},nr=()=>{Qn&&(Qn.disconnect(),Qn.takeRecords(),Qn=null)},sr=vue.ref(!1),{touchRequest:ur}=vue.inject(REQUEST_MODEL,{touchRequest:()=>{}}),Gn=vue.ref(""),Wn=()=>{var _r;const{title:hr}=c,yr=(_r=vue.unref(g))==null?void 0:_r.RECORD;return yr?hn(hr,{textData:yr},{useNewline:!1,useSpace:!1}):hr},Rn=useEmitEvent(c),qn=hr=>{const{changeIframeStyle:yr}=window.parent;yr&&typeof yr=="function"&&yr({iframeId:c.parentIframeId||"",action:hr})},Xn=()=>{vue.unref(h)&&qn("open"),d&&(document.documentElement.style.overflow="hidden"),Gn.value=Wn(),sr.value=!0},Hn=Rn("hideModal",()=>{vue.unref(h)&&qn("close"),u("close"),d&&(document.documentElement.style.overflow="hidden auto",f.value=[]),sr.value=!1}),tr=()=>{Hn()},cr=()=>{Hn(),m()},{setModalModel:ir,pushUseModalIds:er,popUseModalIds:pr}=vue.inject(MODAL_MODEL,{pushUseModalIds:hr=>{},popUseModalIds:()=>{},setModalModel:(hr,yr)=>{}}),lr=vue.computed(()=>{let hr=c.componentList;const yr=lodashEs.cloneDeep(c.componentList),_r=p(),gr=v(),br={containerMap:_r,combinationMap:gr};d&&(hr=compatibleMobileList({...br,componentList:yr,sourceList:c.allComponentList})),hr=handleScrollCombinations({...br,componentList:hr,sourceList:c.allComponentList});const Er=[];for(const Mr of hr)if(Mr.type==="ecanCirculate"){const Ir=moveToComponentList(_r,vue.unref(yr),Mr.id);Mr.componentList=Ir,Er.push(...Ir.map(Fr=>Fr.id))}if(Er!=null&&Er.length)for(const Mr of Er){const Ir=hr.findIndex(Fr=>Fr.id===Mr);Ir!==-1&&hr.splice(Ir,1)}return hr}),or=()=>{const hr=c.id;let yr=[];const _r=c.componentList;Array.isArray(_r)&&(yr=_r.map(gr=>gr.id),ir(hr,[...new Set(yr)]))},ar=vue.ref(!1),vr={};for(const hr of c.requestList)vr[hr.requestName]=useRequestData(hr);vue.watch(()=>sr.value,async hr=>{if(hr)Kn.value=!1,er(c.id),or(),await vue.nextTick(()=>{Jn(),window.addEventListener("resize",Yn),Zn(),Kn.value=!0}),ur();else{if(y)for(const yr in vr)y(yr,{});pr(),window.removeEventListener("resize",Yn),nr()}});const fr=vue.computed(()=>vue.unref(w)>=1),mr=vue.computed(()=>{let hr="ecan-modal";return vue.unref(fr)&&(hr+=" ecan-full-width-modal"),vue.unref(h)&&(hr+=" ecan-full-modal"),hr});return useOnEvent(c,{showModal:Xn,hideModal:Hn}),{modalRef:Un,containStyle:gn,contentStyle:Vn,getContainer:x,modalStyle:Pn,modalWith:Fn,isFullModal:h,style:zn,visible:sr,showModal:Xn,onOk:tr,onCancel:cr,isFullWidth:fr,wrapClassName:mr,ready:Kn,usedComponentList:lr,isMobile:d,readyIds:f,hasOwn:mn,onComponentReady:hr=>{f.value.push(hr)},formatTitle:Gn,requestLoaded:ar}}}),Modal_vue_vue_type_style_index_0_scoped_d34efac2_lang="",Modal_vue_vue_type_style_index_1_lang="";function _sfc_render$B(c,u,f,d,h,p){const v=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("render"),g=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(g,{getContainer:c.getContainer,wrapClassName:c.wrapClassName,centered:"",visible:c.visible,footer:null,width:c.isFullModal||c.isFullWidth?"100%":c.modalWith,destroyOnClose:c.destroyOnClose,style:vue.normalizeStyle(c.modalStyle),closable:!1,onOk:c.onOk,onCancel:c.onCancel,ref:"modalRef",id:"container_"+c.id},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"contain",ref:"containRef",style:vue.normalizeStyle(c.containStyle)},[c.ready?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"content",style:vue.normalizeStyle(c.contentStyle)},[vue.createElementVNode("div",{class:"header-bar",style:vue.normalizeStyle({backgroundColor:c.backgroundColor,padding:"20px 30px",height:c.isMobile?"62px":""})},[c.formatTitle?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"ant-modal-title",style:vue.normalizeStyle({fontSize:c.titleFontSize,color:c.titleColor})},vue.toDisplayString(c.formatTitle),5)):vue.createCommentVNode("",!0),c.isShowCloseBtn?(vue.openBlock(),vue.createBlock(v,{key:1,class:"close-icon",style:vue.normalizeStyle({color:c.closeBtnColor}),onClick:c.onCancel},null,8,["style","onClick"])):vue.createCommentVNode("",!0)],4),c.usedComponentList.length?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(c.isMobile?"mobile-wrap":"")},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.usedComponentList,(y,x)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:y.id+x},[c.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[c.hasOwn(y,"parentId")&&(c.readyIds.includes(y.parentId)||y.parentId==="")?(vue.openBlock(),vue.createBlock(m,{key:0,component:y,onReady:c.onComponentReady},null,8,["component","onReady"])):vue.createCommentVNode("",!0)],64)):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(y.type),vue.normalizeProps(vue.mergeProps({key:1},y)),null,16))],64))),128))],2)):vue.renderSlot(c.$slots,"default",{key:1},void 0,!0)],4)):vue.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel","id"])}const Modal=_export_sfc$1(_sfc_main$w,[["render",_sfc_render$B],["__scopeId","data-v-d34efac2"]]),EcanModal=withInstall$1(Modal);core$1.use([renderers.CanvasRenderer,charts.LineChart,components$1.ToolboxComponent,components$1.TitleComponent,components$1.LegendComponent,components$1.MarkLineComponent]);const _sfc_main$v=vue.defineComponent({name:"EcanLine",props:{...lineComponentProps},components:{Spin,Echarts,EcanModal},setup(c,{expose:u}){const f=vue.ref(!1),{pageMode:d,fontFamily:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),p=vue.inject("showIndDetail",Xn=>{}),v=vue.inject("usedComponentList",[]),m=vue.ref(),g=vue.ref(!1),y=usePickComponentStyle(c),x=vue.ref([]),Pn=vue.ref([]),b=vue.ref(),j=vue.computed(()=>g.value?ZOOM_FONT_SIZE:12),re=vue.ref({});let vn;const Fn=vue.ref([]),Bn=vue.computed(()=>{const Xn=c.xAxisLabelFormatter,Hn=c.yAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(h)},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,orient:c.toolboxOrient,feature:{myDownload:{show:c.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){useDownloadFile(c.toolboxDownloadUrl)}},myDataZoom:{show:g.value?!1:c.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var tr;g.value=!0,(tr=b.value)==null||tr.showModal()}},myInfo:{show:c.toolboxInfoShow,title:"详情",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){p(c)}}}},title:{text:c.titleText,subText:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},grid:{top:c.gridTop,bottom:c.gridBottom,left:c.gridLeft,right:c.gridRight,containLabel:c.gridContainLabel},color:c.colors,tooltip:{trigger:"axis",textStyle:{fontSize:j.value,color:c.tooltipTextStyleColor},show:c.tooltipShow,formatter:tr=>{var pr;const cr=tr.length;let ir="",er=c.tooltipFormatter;vn=(pr=tr[0])==null?void 0:pr.data,er===""&&(er="{marker} {a} {c}");for(let lr=0;lr<cr;lr++){const{marker:or,seriesName:ar,name:vr,value:fr,data:mr}=tr[lr]||{};if(lr===0){let dr=vr;typeof vr=="string"&&vr[0]==="0"&&!isNaN(+vr)&&(dr=(+vr).toString()),ir+=`${In(Xn,dr)}<br/>`}ir+=hn(er,{textData:{marker:or,name:vr,value:fr,a:ar,b:vr,c:fr||0,...mr}},{useNewline:!0,useSpace:!0}),ir+="<br/>"}return ir},position:c.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:c.isBoundaryGap,data:vue.unref(Pn).map(tr=>{let cr={};return tr&&typeof tr=="object"?cr={...tr}:cr={value:tr},cr}),minInterval:c.xAxisMinInterval,splitLine:{show:c.xAxisSplitLineShow,lineStyle:{color:c.xAxisSplitLineStyleColor},interval:c.xAxisSplitLineInterval},splitArea:{show:c.xAxisSplitAreaShow},axisLabel:{show:c.xAxisLabelShow,color:c.xAxisLabelColor,interval:c.xAxisLabelInterval||0,rotate:c.xAxisLabelRotate,width:c.xAxisLabelWidth,overflow:c.xAxisLabelOverflow,fontSize:c.xAxisLabelFontSize,formatter(tr){return typeof tr=="string"&&tr[0]==="0"&&!isNaN(+tr)&&(tr=(+tr).toString()),In(Xn,tr)}},axisLine:{show:c.xAxisLineShow,lineStyle:{color:c.xAxisLineStyleColor}},axisTick:{show:c.xAxisTickShow},name:c.xAxisName,nameTextStyle:{fontSize:c.xAxisLabelFontSize,color:c.xAxisLabelColor,align:"left"},max:c.xAxisMaxValue||null},yAxis:{type:"value",minInterval:c.yAxisMinInterval,splitLine:{show:c.yAxisSplitLineShow,lineStyle:{color:c.yAxisSplitLineStyleColor,type:c.yAxisSplitLineType}},splitArea:{show:c.yAxisSplitAreaShow},axisLabel:{show:c.yAxisLabelShow,fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,formatter(tr){return In(Hn,tr)}},axisLine:{show:c.yAxisLineAlwaysDisplay,lineStyle:{color:c.yAxisLineStyleColor}},name:c.yAxisName,nameTextStyle:{fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,align:"right"},max:c.yAxisMaxValue||null},legend:{type:c.legendScroll?"scroll":"plain",width:c.legendWidth,height:c.legendHeight,show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,textStyle:{lineHeight:(g.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:g.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:vue.unref(Fn).map(tr=>({name:tr.name,icon:c.legendType})),formatter:tr=>getLegendFormat(c.legendFormatter,{name:tr})},series:vue.unref(x)}}),w=()=>{g.value=!1},{getGlobalModel:J,setGlobalModel:gn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Xn=>{},setGlobalModel:(Xn,Hn)=>{}}),zn=vue.computed(()=>c.isShowMarkLine?{markLine:{data:[{type:c.markLineType}]}}:{}),Vn=(Xn=[],Hn=!1)=>{var pr;let tr;if(c.dataFieldConfigType==="key"){const lr=Hn?c.keyTypeDataFieldNames:null;tr=Mn(Xn,lr)}else if(c.dataFieldConfigType==="value"){const lr=Hn?c.valueTypeDataFieldNames:null;tr=En(Xn,lr)}Pn.value=tr.dimensions,Fn.value=tr.dataset;const cr=tr.dataset,ir=[],er=cr.length;for(let lr=0;lr<er;lr++){const or={};c.shadowColor&&(or.shadowColor=c.shadowColor,or.shadowBlur=c.shadowBlur,or.shadowOffsetY=c.shadowOffsetY,or.shadowOffsetX=c.shadowOffsetX),ir.push({type:"line",...cr[lr],symbolSize:c.symbolSize,smooth:c.smooth,areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:c.colors[lr]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[lr],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...or},...vue.unref(zn)})}x.value=ir,(pr=tr.dataset)!=null&&pr.length?f.value=!1:f.value=!0},Kn=(Xn=[],Hn,tr=!1)=>{var or,ar,vr;const ir=Mn(Xn,tr?Hn:null,!0);if(c.defaultRangeValue&&setDefaultRangeVal({props:c,componentList:vue.unref(v),getGlobalModel:J},ir),(or=ir.dataset)!=null&&or.length){for(const fr of ir.dataset)if((ar=fr.data)!=null&&ar.length)for(const mr of fr.data)(mr.value===null||mr.value===void 0)&&(mr.value=0)}Pn.value=ir.dimensions,Fn.value=ir.dataset;const er=ir.dataset,pr=[],lr=er.length;for(let fr=0;fr<lr;fr++){const mr={};c.shadowColor&&(mr.shadowColor=c.shadowColor,mr.shadowBlur=c.shadowBlur,mr.shadowOffsetY=c.shadowOffsetY,mr.shadowOffsetX=c.shadowOffsetX),pr.push({type:"line",...er[fr],symbolSize:c.symbolSize,smooth:c.smooth,areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:c.colors[fr]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[fr],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...mr},...vue.unref(zn)})}x.value=pr,(vr=ir.dataset)!=null&&vr.length?f.value=!1:f.value=!0};vue.watch(()=>[c.data,c.symbolSize,c.smooth,c.lineStyleWidth,c.areaStyleOpacity,c.areaGradientShow,c.areaGradientColor,c.shadowColor,c.shadowBlur,c.shadowOffsetY,c.shadowOffsetX,c.legendFontSize,c.isShowMarkLine,c.markLineType,c.legendFormatter,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll],([Xn])=>{(c.dataType==="static"||vue.unref(d)==="design")&&Vn(Xn)},{immediate:!0,deep:!0});const Un=vue.ref(!1),Qn=useRequestData(c),Jn=async()=>{var Xn,Hn;if(c.dataType==="request")try{Un.value=!0;const tr=await Qn();Vn((Hn=(Xn=tr==null?void 0:tr.data)==null?void 0:Xn.data)==null?void 0:Hn.rows,!0)}catch(tr){console.error(tr)}finally{Un.value=!1}},Yn=useEmitEvent(c);gn(c.id,{type:c.type,RECORD:""});const Zn=Yn("click",Xn=>{const Hn=J(c.id);gn(c.id,{...Hn,type:c.type,RECORD:c.tooltipShow?vn:Xn.data})}),nr=Xn=>{m.value.chart.containPixel("grid",[Xn.offsetX,Xn.offsetY])&&Zn()};c.tooltipShow?re.value["zr:click"]=nr:re.value.click=Zn;const sr=Xn=>{var pr;const{columns:Hn=[],rows:tr=[]}=((pr=Xn==null?void 0:Xn.data)==null?void 0:pr.data)??{};let cr;Hn.length>0&&(cr={name:Hn[0],types:Hn.slice(1).map(lr=>({label:lr,value:lr}))});const{leftAxisList:ir=[]}=c.graphicConfig,er=ir.filter(lr=>lr.show).map(lr=>lr.label);for(const lr of tr)if(lr)for(const or in lr)typeof lr[or]=="string"&&er.includes(or)&&!isNaN(parseFloat(lr[or]))&&(lr[or]=parseFloat(lr[or]));Kn(tr,cr,!0)},ur=useIndicatorData(c,Xn=>{c.isViewRedrawing&&m.value.clear(),sr(Xn)}),Gn=async()=>{try{Un.value=!0;const Xn=await ur();sr(Xn)}catch(Xn){console.error(Xn)}finally{Un.value=!1}},Wn=()=>{switch(c.dataType){case"indicator":Gn();break;case"request":Jn();break}};useOnEvent(c,{refreshData:Wn,resetRecord:()=>{const Xn=c.id,Hn=J(Xn);gn(Xn,{...Hn,RECORD:""})},click:Zn});const{setRequest:qn}=vue.inject(REQUEST_MODEL,{setRequest:Xn=>{}});return typeof qn=="function"&&qn({id:c.id,requestFn:Wn,sortNum:c.requestSort}),u({refreshData:Wn}),{option:Bn,style:y,click:Zn,loading:Un,onClose:w,ecanModal:b,eventObj:re,echartRef:m,emptyData:f}}}),Line_vue_vue_type_style_index_0_lang="",Line_vue_vue_type_style_index_1_scoped_03aca93d_lang="";function _sfc_render$A(c,u,f,d,h,p){const v=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[c.noDataTip&&c.emptyData?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"empty-wrap",style:vue.normalizeStyle({color:c.tipTextColor,fontSize:c.tipTextFontSize})},[vue.createElementVNode("span",null,vue.toDisplayString(c.tipText),1)],4)):(vue.openBlock(),vue.createBlock(v,vue.mergeProps({key:1,ref:"echartRef",option:c.option,autoresize:""},vue.toHandlers(c.eventObj)),null,16,["option"]))]),_:1},8,["spinning"]),vue.createVNode(g,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:c.onClose},{default:vue.withCtx(()=>[vue.createVNode(m,{class:"spin-wrap",spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(v,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Line=_export_sfc$1(_sfc_main$v,[["render",_sfc_render$A],["__scopeId","data-v-03aca93d"]]),EcanLine=withInstall$1(Line),_sfc_main$u=vue.defineComponent({name:"TrendModal",components:{EcanLine},setup(c,{expose:u}){const f=vue.ref(!1),d=vue.ref(),h=vue.ref(),p=async({data:m,pageConfig:g,unitText:y})=>{var x;if(m){const Pn=nanoid(6),b={source:"INDICATOR_LIB",dataSourceId:"",idxLibMode:"",classificationList:[{id:"3f5bda70a08a442085857adb7fc547de",indexCode:null,indexCodeNum:null,title:"日期",name:"the_date",label:"日期",typeGuid:"the_date",genericType:"DATE",hrpIndexComplexid:"the_date",scope:"BUILT_IN_DIM",fromTable:"hrp_index_complex",parentId:"3f5bda70a08a442085857adb7fc547de",show:!0,edit:!1,dataTo:"0",dateFormat:"YYYY-MM",dataSetParams:{}}],leftAxisList:((x=m==null?void 0:m.graphicConfig)==null?void 0:x.indicators)||[]};d.value={...lodashEs.cloneDeep(lineProps),id:Pn,keyName:`折线图_${Pn}`,position:"relative",top:0,left:0,width:parseFloat(g.width)*.57+"px",height:parseFloat(g.height)*.4+"px",dataType:"indicator",tooltipFormatter:"{marker} {a} {c}"+y,graphicConfig:b},f.value=!0,vue.nextTick(()=>{vue.unref(h).refreshData()})}},v=()=>document.querySelector("#ProviderConfig > #container")||document.body;return u({showModal:p}),{visible:f,componentConfig:d,lineRef:h,getContainer:v}}}),TrendModal_vue_vue_type_style_index_0_scoped_eb1432d2_lang="",_withScopeId$5=c=>(vue.pushScopeId("data-v-eb1432d2"),c=c(),vue.popScopeId(),c),_hoisted_1$i=_withScopeId$5(()=>vue.createElementVNode("div",{class:"modal-title"},"趋势图",-1));function _sfc_render$z(c,u,f,d,h,p){const v=vue.resolveComponent("ecan-line"),m=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(m,{visible:c.visible,"onUpdate:visible":u[0]||(u[0]=g=>c.visible=g),width:"60%",getContainer:c.getContainer,footer:null,destroyOnClose:!0,bodyStyle:{maxHeight:"60vh",overflow:"auto",padding:"20px 24px 24px"}},{title:vue.withCtx(()=>[_hoisted_1$i]),default:vue.withCtx(()=>[c.componentConfig?(vue.openBlock(),vue.createBlock(v,vue.mergeProps({key:0},c.componentConfig,{ref:"lineRef"}),null,16)):vue.createCommentVNode("",!0)]),_:1},8,["visible","getContainer"])}const TrendModal=_export_sfc$1(_sfc_main$u,[["render",_sfc_render$z],["__scopeId","data-v-eb1432d2"]]),_sfc_main$t=vue.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,components:{ATable:antDesignVue.Table,BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1,CloseOutlined:CloseOutlined$1,IndicatorDetailModal,TrendModal},props:{...providerConfigComponentProps,pageId:{type:String,default:""},customId:{type:String,default:"ProviderConfig"},fixedHeight:{type:String,default:"0px"}},setup(c,{expose:u,emit:f}){c.pageId||useHrefParamsToGlobalVariables();const d=.57,h=.6,p=.97,v=.9,m=vue.ref(),g=vue.ref(),y=vue.computed(()=>INDICATOR_URL),x=vue.computed(()=>hn(c.contextRequestUrl)),Pn=vue.computed(()=>c.pageMode),b=vue.computed(()=>c.theme),j=vue.computed(()=>c.width),re=vue.computed(()=>c.height),vn=vue.computed(()=>c.pageFontFamily),Fn=vue.computed(()=>c.fixedHeight?parseFloat(c.fixedHeight):0),Bn=vue.computed(()=>c.isCompatible),w=vue.computed(()=>c.variableList),J=vue.computed(()=>!!navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)),gn=vue.ref(),zn=vue.ref({}),Vn=vue.ref(),Kn=vue.ref(!1),Un=vue.ref(!1),Qn=vue.ref([]),Jn=vue.ref([]),Yn=vue.ref({}),Zn=()=>{gn.value.setAttribute("datav-theme",c.theme)},nr=vue.ref({currentYmd:dayjs().format("YYYY-MM-DD"),currentYear:dayjs().format("YYYY"),currentMonth:dayjs().format("MM"),currentDay:dayjs().format("DD")}),sr=vue.computed(()=>{const xr={};if(vue.unref(w))for(const Cr of vue.unref(w))xr[Cr.label]=Cr.value;return{$page:{...vue.unref(nr),...xr}}}),ur=vue.computed(()=>{let xr="ind-detail-modal";return Kn.value&&(xr+=" full"),vue.unref(b)==="darkBlue"&&(xr+=" darkBlue"),xr});vue.provide(GLOBAL_VARIABLE,{globalVariable:sr});const Gn=vue.inject("usedComponentList",[]),Wn=vue.inject("componentList",[]);vue.watch(sr,()=>{f("setGlobalVar",vue.unref(nr))},{deep:!0,immediate:!0});const Rn=vue.computed(()=>{const xr=[];for(const wr of vue.unref(Gn))wr.type==="ecanModal"?xr.push(...wr.componentList):xr.push(wr);return xr});vue.watch(()=>c.theme,()=>{Zn()}),vue.onMounted(()=>{Zn()});const qn=vue.computed(()=>{const xr=[],wr=vue.unref(Wn).filter(Cr=>Cr.type==="ecanModal");for(const Cr of wr)Cr!=null&&Cr.requestList&&xr.push(...Cr.requestList);return[...xr,...c.requestList]}),Xn=xr=>Object.prototype.toString.call(xr)==="[object Object]",Hn=xr=>{const wr=xr.split(".");let Cr=vue.unref(sr);for(const Ar of wr)if(Cr&&Xn(Cr))Cr=Cr[Ar];else{Cr="";break}return Cr},tr=vue.ref("");vue.provide(GLOBAL_CONFIG,{contextRequestUrl:x,pageMode:Pn,theme:b,touchEventId:tr,width:j,height:re,fontFamily:vn,requestList:qn,isCompatible:Bn,fixedHeight:Fn,getGlobalVar:Hn});const cr=vue.ref({height:"100%",overflow:c.pageMode==="design"?"":"hidden"});vue.provide("setPageHeight",xr=>{let wr=0;xr==="auto"?wr=xr:(wr=xr.heightScale,Yn.value=xr),(!Bn.value||!J.value)&&(wr=parseFloat(re.value)*wr+"px"),cr.value.height=wr}),vue.provide("isMobile",J.value),vue.provide("getContainerMap",()=>c.containerMap),vue.provide("getCombinationMap",()=>c.combinationMap),vue.provide("templateOperate",{pageId:c.pageId,templateEmit:f,setTemplateData:xr=>{var wr;if(xr!=null&&xr.pageId){const{componentId:Cr,...Ar}=xr;(wr=window.config)!=null&&wr.urlParams||(window.config.urlParams={}),window.config.urlParams[xr.pageId]=Ar,f("templateChange",xr)}}});const ir=vue.ref(),er=new Map,pr=()=>er,lr=xr=>{let wr=er.get(xr);if(!wr){const Cr=vue.unref(Wn).find(Ar=>Ar.keyName===xr);Cr&&(wr=er.get(Cr.id))}return wr},or=(xr,wr)=>{var Cr;if(ir.value=wr,er.set(xr,wr),!c.pageId){const Ar=vue.unref(Gn).find(Tr=>Tr.id===xr);Ar&&((Cr=window.config)!=null&&Cr.record||(window.config.record={}),window.config.record[Ar.keyName]=wr)}},ar=()=>{ir.value=null},vr=xr=>{let wr=xr;if(wr){const Cr=xr.match(/\{(.+?)\}/g);if(Cr!=null&&Cr.length){let Ar=Cr[0].slice(1,-1).trim();const Tr=Ar.match(/\[(.+?)\]/g);let Dr="";Tr!=null&&Tr.length&&(Ar=Ar.replace(Tr[0],""),Dr=Tr[0].slice(1,-1).trim());const Lr=vue.unref(Rn).find($r=>$r.keyName===Ar);if(Lr){const $r=lr(Lr.id),{type:qr,value:Wr,RECORD:jr,recordData:Kr}=$r||{};yn(qr,MODEL_KEY_LIST)?wr=jr[Dr]:yn(qr,"select")?Kr[Dr]?wr=Kr[Dr]:wr=vue.unref(Wr):yn(qr,["rangePicker","date"])?dayjs.isDayjs(vue.unref($r[Dr]))?wr=vue.unref($r[Dr]).format($r.format):wr=vue.unref($r[Dr]):wr=Wr}else{const $r=window.config.requestParams||{},qr=window.location.search.slice(1).split("&"),Wr={};for(const Kr of qr)if(Kr!=null&&Kr.includes("=")){const Xr=Kr.split("=");Wr[Xr[0]]=Xr[1]||""}wr={...Wr,...$r}[Ar]||""}}}return wr},fr=new Map,mr={},dr=async(xr,wr)=>{var Lr;const{requestName:Cr}=xr,Ar=await useRequestData({...xr,projectRequestUrl:vue.unref(x),getModel:lr})(),Tr=((Lr=Ar==null?void 0:Ar.data)==null?void 0:Lr.data)||{};xr.requestKeyName&&(nr.value[xr.requestKeyName]=Tr);const Dr=fr.get(Cr);if(Dr!=null&&Dr.length&&(!wr||mr[Cr])){for(const $r of Dr)$r(Tr);wr||fr.delete(Cr)}},hr=(xr,wr)=>{mr[xr]&&(clearInterval(mr[xr]),delete mr[xr],fr.delete(xr));const Cr=vue.unref(Rn).filter(Tr=>Tr.dataType==="request"&&!Tr.openCustomRequestData&&Tr.customRequestName===xr),Ar=fr.get(xr)||[];if((Cr==null?void 0:Cr.length)>Ar.length&&(Ar.push(wr),fr.set(xr,Ar),(Cr==null?void 0:Cr.length)===Ar.length)){const Tr=vue.unref(qn).find(Dr=>Dr.requestName===xr);Tr&&(Tr!=null&&Tr.isOpenRequestTimer&&(Tr!=null&&Tr.requestInterval)?(dr(Tr,!0),mr[xr]=setInterval(()=>{dr(Tr,!0)},Tr.requestInterval*1e3)):dr(Tr))}};vue.provide(GLOBAL_MODEL,{getGlobalModel:lr,setGlobalModel:or,getAllGlobalModel:pr,clearInteractiveData:ar,getRecordValueByKeyName:vr,hanldePageRequestData:hr,interactiveData:ir});const yr=vue.ref({}),_r=(xr,wr)=>{yr.value[xr]=wr};vue.provide(LOADED_DATA,{loadedData:yr,setLoadedData:_r});const gr=[],br=()=>{gr.pop()},Er=xr=>{gr.push(xr)},Mr=new Map,Ir=xr=>Mr.get(xr),Fr=(xr,wr)=>{Mr.set(xr,wr)};vue.provide(MODAL_MODEL,{popUseModalIds:br,pushUseModalIds:Er,getModalModel:Ir,setModalModel:Fr});const Or=mitt(),Nr=new Set,zr=(xr,wr)=>{Nr.add(xr),Or.on(xr,Cr=>{const{eventName:Ar,params:Tr}=Cr;return typeof wr[Ar]=="function"&&wr[Ar](Tr)}),vue.onBeforeUnmount(()=>{Rr(xr)})},Rr=xr=>{Nr.delete(xr),Or.off(xr)},Vr=(xr,wr,Cr={})=>{if(xr==="PAGE"){const Ar=gr.length;let Tr=[];if(Ar===0)Tr=[...Nr];else{const Dr=gr[Ar-1];Tr=[...Ir(Dr)]}Tr.forEach(Dr=>{Or.emit(Dr,{eventName:wr,params:Cr})})}else Or.emit(xr,{eventName:wr,params:Cr})};vue.provide(EVENT_BUS,{onEvent:zr,offEvent:Rr,emitEvent:Vr});const Hr=vue.ref(0),Gr=()=>{Hr.value=vue.unref(Hr)+1};vue.provide(GLOBAL_TOKEN,{requestToken:Gr});const Ur=new Map,Yr=new Map,Qr=({requestFn:xr=()=>{},sortNum:wr=0,id:Cr=""})=>{if(Ur.has(wr)){const Ar=Ur.get(wr);Ar==null||Ar.push(xr)}else Ur.set(wr,[xr]);Yr.set(Cr,xr)},ri=xr=>new Promise((wr,Cr)=>{const Ar=xr.map(Tr=>Tr());Promise.all(Ar).then(Tr=>{wr(Tr)}).catch(Tr=>{Cr(Tr)})}),ti=xr=>new Promise(async(wr,Cr)=>{if(xr){if(typeof xr=="string"){const Ar=Yr.get(xr);if(typeof Ar=="function"){const Tr=request.interceptors.response.use(Dr=>(wr(Dr),Dr),Dr=>(Cr(Dr),Promise.reject(Dr)));Ar(),request.interceptors.response.eject(Tr)}}}else{const Ar=Array.from(Ur);Ar.sort((Dr,Lr)=>Lr[0]-Dr[0]);const Tr=Ar.length;try{c.pageMode!=="design"&&vue.unref(Hr)>0;for(let Dr=0;Dr<Tr;Dr++){const Lr=Ar[Dr][1];await ri(Lr)}}catch(Dr){console.error(Dr)}finally{Ur.clear(),wr(null)}}});vue.provide(REQUEST_MODEL,{setRequest:Qr,touchRequest:ti});const ai=()=>{Or.emit(REFRESH_PAGE)};vue.provide(REFRESH_PAGE,{emitRefreshPage:ai});const vi=xr=>{Or.on(REFRESH_PAGE,()=>xr()),vue.onMounted(()=>{Or.off(REFRESH_PAGE)})},hi=vue.ref({}),oi=vue.reactive({keyName:"",visible:!1,dataSource:[],columns:[],title:"",pagination:{current:1,pageSize:10,total:0,showSizeChanger:!1,showQuickJumper:!1,showTotal:xr=>`共 ${xr} 条数据`}});vue.provide(All_COMPONENT_RES_DATA,{allComponentResData:hi});const xi={borderColor:"#666E8D",headerBgColor:"#06347C",headerColor:"#DEE5EF",bodyBgColor:"#112861",bodyColor:"#B2CCE7",indicatorsHeaderBgColor:"#184273",indicatorsHeaderColor:"#FFFFFF",indicatorsBodyBgColor:"#184273",indicatorsBodyColor:"#FFFFFF",aggregateBgColor:"#0F4F9B",aggregateColor:"#FFFCFC",sortNotActiveColor:"#B0B0B0",sortActiveColor:"#00CCFF",dropDownMenuBgColor:"#08154F",dropDownMenuColor:"#B2C3DD",dropDownMenuHightLightColor:"#2E68CF"},Ci=async xr=>{var Kr,Xr,li,ci,ui;if(J.value||c.drillingMode==="default")return;let wr=lodashEs.cloneDeep(xr).props;if(wr.parentId){const Jr=vue.unref(Gn).find(ei=>ei.id===wr.parentId);if((Jr==null?void 0:Jr.dataType)==="indicator")wr=lodashEs.cloneDeep(Jr);else return}oi.keyName=wr==null?void 0:wr.keyName;const Cr=((Kr=window==null?void 0:window.config)==null?void 0:Kr.indicatorToken)||"",Ar=Br(),Tr=(wr==null?void 0:wr.graphicConfig)||{},{leftAxisList:Dr=[],rightAxisList:Lr=[],indicators:$r=[]}=Tr,qr=Dr.concat(Lr).concat($r);if(!(qr!=null&&qr.length))return;const Wr=qr.filter(Jr=>Jr.show).map(Jr=>Jr.label);Wr!=null&&Wr.length&&(oi.title=`下钻:${Wr.join("、")}`);const jr=Dn({...wr,globalModel:pr()});if(c.drillingMode==="pivotTable"){const Jr=await ki({cpntProps:wr,pageId:Ar,formatParams:jr,classifications:[],indicatorToken:Cr});Jn.value=((Xr=Jr==null?void 0:Jr.data)==null?void 0:Xr.data)||[];const ei=nanoid(6);Tr.queryColumnList||(Tr.queryColumnList=[]),Tr!=null&&Tr.classificationList&&(Tr.queryColumnList=Tr.classificationList,delete Tr.classificationList),Tr!=null&&Tr.seriesList&&(Tr.queryColumnList=Tr.queryColumnList.concat(Tr.seriesList),delete Tr.seriesList),Tr.indicators=lodashEs.cloneDeep(qr||[]),delete Tr.leftAxisList,delete Tr.rightAxisList;const Mi={};if(yn(wr.type,"indexPanel")){const Fi=Tr.indicators.find(fi=>fi.show),Ai=vue.unref(Jn).slice(0,2).sort((fi,yi)=>fi.typeGuid-yi.typeGuid).map(fi=>({...fi,show:!0,edit:!1,dataTo:"0",dataSetParams:{}}));Ai!=null&&Ai.length&&(Tr.queryColumnList=Ai);const Ti=Pr(wr);if(Ti&&Fi){const{label:fi}=Fi;Mi.defaultConfig={indexFormatConfig:{[fi]:{fieldName:fi,indicatorKey:fi,position:"right",unit:Ti}}}}}(li=Tr.queryColumnList)!=null&&li.length||(Tr.queryColumnList=[{id:"3f5bda70a08a442085857adb7fc547de",indexCode:null,indexCodeNum:null,title:"日期(内置)",name:"the_date",label:"日期(内置)",typeGuid:"the_date",genericType:"DATE",hrpIndexComplexid:"the_date",scope:"BUILT_IN_DIM",fromTable:"hrp_index_complex",parentId:"3f5bda70a08a442085857adb7fc547de",show:!0,edit:!1,dataTo:"0",dataSetParams:{}}]);const Bi={...lodashEs.cloneDeep(pivotTableProps),id:ei,keyName:`透视表_${ei}`,position:"relative",top:0,left:0,width:parseFloat(c.width)*d+"px",height:parseFloat(c.height)*h+"px",pageId:Ar,indicatorToken:Cr,context:CONTEXT,globalModel:pr(),graphicConfig:Tr,pageConfig:c,...Mi};vue.unref(b)==="darkBlue"&&(Bi.styleConfig=xi),zn.value=Bi,oi.visible=!0,vue.nextTick(()=>{vue.unref(Vn).refreshData()})}else if(c.drillingMode==="normalTable"){Pi(jr,lodashEs.cloneDeep(xr.props));let Jr=(jr==null?void 0:jr.classification)||(jr==null?void 0:jr.classifications)||[];Array.isArray(Jr)||(Jr=[Jr]);try{Un.value=!0,oi.visible=!0;const ei=await ki({cpntProps:wr,pageId:Ar,formatParams:jr,classifications:Jr,indicatorToken:Cr}),Mi=((ci=ei==null?void 0:ei.data)==null?void 0:ci.data)||[],Bi=Jr.map(si=>({...si,calcType:"COLUMN"}));for(const si of Mi)Bi.push({calcType:"COLUMN",columnName:si.name,label:si.name,show:!0,typeGuid:si.typeGuid});jr.queryColumns=Bi,jr.layer="1",jr.plugin="1",delete jr.classification,delete jr.classifications;const{url:Fi,...Ai}=jr||{},Ti=await request({url:`${vue.unref(y)}${Fi}`,method:"post",headers:{Authentication:Cr,operateContext:CONTEXT},data:{...Ai,pageId:Ar}}),{columns:fi=[],rows:yi=[]}=((ui=Ti==null?void 0:Ti.data)==null?void 0:ui.data)||{};oi.columns=fi.filter(si=>!!si).map(si=>{let Ni=si;const Ri=Mi.find(zi=>zi.name===si);return Ri&&(Ni=Ri.title||Ri.label),{title:Ni,dataIndex:si,width:"120px"}}),oi.dataSource=(Array.isArray(yi)?yi:[yi]).map(si=>({...si,uuid:nanoid(6)})),oi.pagination.total=(yi==null?void 0:yi.length)||0,Un.value=!1}catch(ei){console.error(ei)}}vue.nextTick(()=>{Si(!0),pi(!0)})},Si=xr=>{const wr=document.querySelector(".ind-detail-modal .ant-modal-header");wr&&(xr?wr.addEventListener("dblclick",gi):wr.removeEventListener("dblclick",gi))},pi=xr=>{const wr=document.querySelector(".ind-detail-modal .ant-modal-header");if(wr)if(xr)wr.addEventListener("mousedown",wi);else{const Cr=wr.parentElement;Cr&&(Cr.style.left="",Cr.style.top=""),wr.removeEventListener("mousedown",wi)}};function wi(xr){dragModalAction(xr,".ind-detail-modal .ant-modal-header")}const ki=async({cpntProps:xr,pageId:wr,formatParams:Cr,classifications:Ar,indicatorToken:Tr})=>{var Dr,Lr,$r;return await request({url:`${vue.unref(y)}/diagram/obtainDrillAbleDimensionOptions`,method:"post",headers:{Authentication:Tr,operateContext:CONTEXT},data:{source:((Dr=xr==null?void 0:xr.graphicConfig)==null?void 0:Dr.source)||"INDICATOR_LIB",pageId:wr,indicatorList:(Cr==null?void 0:Cr.indicatorList)||[],classifications:Ar,dataSourceId:((Lr=xr==null?void 0:xr.graphicConfig)==null?void 0:Lr.dataSourceId)||""},signal:(($r=window.controller)==null?void 0:$r.signal)||""})},mi={IN:"属于",NOT_IN:"不属于",LIKE:"包含",NOT_LIKE:"不包含","LIKE%":"开头是","%LIKE":"结尾是",EQUAL:"等于",LESS:"小于",LESS_EQUAL:"小于等于",GREATER:"大于",GREATER_EQUAL:"大于等于",NOT_EQUAL:"不等于"};function di(xr,wr,Cr){const Ar=[];for(const Tr of xr)Tr[wr]?Ar.push(...di(Tr[wr],wr,Cr)):Tr.filter?Ar.push({...Tr.filter,label:Tr.label}):(!Cr||Tr.dataType!=="component"&&!(Tr.fieldValue.startsWith("${")&&Tr.fieldValue.endsWith("}")))&&Ar.push(Tr);return Ar}const Pi=(xr,wr)=>{const{leftAxisList:Cr=[],rightAxisList:Ar=[],indicators:Tr=[],classificationList:Dr=[],rowHeaderList:Lr=[],dimensionList:$r=[],seriesList:qr=[],queryColumns:Wr=[],indexLibColumns:jr=[]}=wr.graphicConfig,Xr=Cr.concat(Ar).concat(Tr).concat(Dr).concat(Lr).concat($r).concat(qr).concat(Wr).concat(jr).filter(ui=>ui.conditions),li=di(Xr,"conditions",!0),ci=di(xr.sqlConditions,"sqlConditions",!1);Qn.value=li.concat(ci).map(ui=>{let Jr=ui.fieldValue;if(Jr){const ei=Jr.split(",");(ei==null?void 0:ei.length)>3&&(Jr=ei.slice(0,3).join(",")+"等")}else Jr='""';return`${ui.label} ${mi[ui.rule]} ${Jr}`})||[]},gi=()=>{Kn.value=!Kn.value,vue.nextTick(()=>{Kn.value?(vue.unref(zn).width=parseFloat(c.width)*p+"px",vue.unref(zn).height=parseFloat(c.height)*v+"px",pi(!1)):(vue.unref(zn).width=parseFloat(c.width)*d+"px",vue.unref(zn).height=parseFloat(c.height)*h+"px",pi(!0))})},Ei=()=>{Kn.value=!1,Si(!1),pi(!1)},Ii=({type:xr,data:wr})=>{if(xr==="11"&&wr){const{indicatorList:Cr=[],queryColumns:Ar=[]}=wr,Dr=Cr.concat(Ar).filter(qr=>qr.conditions||qr.filter),Lr=di(Dr,"conditions",!0),$r=di(wr.sqlConditions,"sqlConditions",!1);Qn.value=Lr.concat($r).map(qr=>{const Wr=vue.unref(Jn).find(Kr=>Kr.label===qr.label);let jr=qr.fieldValue;if(jr&&typeof jr=="string"){const Kr=jr.split(",");(Kr==null?void 0:Kr.length)>3&&(jr=Kr.slice(0,3).join(",")+"等")}else jr||(jr='""');return`${(Wr==null?void 0:Wr.title)||qr.label} ${mi[qr.rule]} ${jr}`})||[]}},_i=xr=>{const{id:wr,data:Cr}=xr;Cr.success&&(hi.value[wr]=(Cr==null?void 0:Cr.data)||{})},ni=(xr,wr)=>{switch(xr){case"SHOW_INDICATOR_DETAIL_MODAL":Ci(wr);break;case"SAVE_COMPONENT_RES_DATA":_i(wr);break}};vue.provide(COMMON_OPERATE,{operateAction:ni});const ii=()=>document.querySelector("#ProviderConfig > #container")||document.body,Di=xr=>{oi.pagination.current=xr.current};vue.watchEffect(()=>{var xr;if((xr=vue.unref(Gn))!=null&&xr.length&&vue.unref(Pn)!=="design"){const{jumpType:wr,jumpTime:Cr,jumpPage:Ar,jumpLink:Tr}=c;if(Cr!=null&&Cr.value){let Dr=0;switch(Cr==null?void 0:Cr.suffix){case"hours":Dr=Cr.value*60*60*1e3;break;case"minute":Dr=Cr.value*60*1e3;break;case"seconds":Dr=Cr.value*1e3;break}setTimeout(()=>{let Lr="";wr==="page"&&Ar?Lr=usePageUrl(vue.unref(Pn),Ar):wr==="link"&&Tr&&(Lr=Tr),Lr=hn(Lr),window.open(Lr,"_self")},Dr)}}});const Sr=xr=>{var wr;vue.unref(m).showModal({data:xr,indicatorUrl:vue.unref(y),indicatorToken:((wr=window==null?void 0:window.config)==null?void 0:wr.indicatorToken)||"",context:CONTEXT,pageId:Br()})},kr=xr=>{vue.unref(g).showModal({data:xr,pageConfig:c,unitText:Pr(xr)})},Pr=xr=>{let wr="",Cr="";const{componentConfig:Ar}=xr;for(const Dr in Ar)if(Ar[Dr].key==="currentValue"){Cr=Dr;break}const Tr=vue.unref(Wn).find(Dr=>Dr.id===Cr);return Tr!=null&&Tr.unitText&&(wr=Tr.unitText),wr};vue.provide("showIndDetail",Sr);function Br(){var wr;let xr=((wr=window==null?void 0:window.config)==null?void 0:wr.pageId)||"";if(!xr){const{pathname:Cr}=window==null?void 0:window.location;if(Cr){const Ar=Cr.split("/");Ar!=null&&Ar.length&&(xr=Ar[Ar.length-1])}}return xr}return vue.onBeforeUnmount(()=>{Ur==null||Ur.clear(),Yr==null||Yr.clear()}),u({touchRequest:ti,getGlobalModel:lr,onRefreshPage:vi,emitEvent:Vr,getRecordValueByKeyName:vr,showIndDetail:Sr,showTrend:kr,props:c,systemVariable:nr}),{providerConfig:gn,configStyle:cr,indDetailInfo:oi,pivotTableConfig:zn,indicatorUrl:y,pivotTableRef:Vn,isIndFullScreen:Kn,wrapClassName:ur,theme:b,detailLoading:Un,conditionInfo:Qn,indDetailModalRef:m,trendModalRef:g,allDimensions:Jn,scaleValue:Yn,getContainer:ii,handleTableChange:Di,toggleFullScreen:gi,onDetailCancel:Ei,onPivotTableChange:Ii}}}),ProviderConfig_vue_vue_type_style_index_0_scoped_be63c061_lang="",ProviderConfig_vue_vue_type_style_index_1_lang="",_hoisted_1$h=["id"],_hoisted_2$8=["title"],_hoisted_3$4={key:0,class:"spin-container"},_hoisted_4$3=["title"];function _sfc_render$y(c,u,f,d,h,p){const v=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("switcher-outlined"),g=vue.resolveComponent("border-outlined"),y=vue.resolveComponent("pivot-table"),x=vue.resolveComponent("a-spin"),Pn=vue.resolveComponent("a-table"),b=vue.resolveComponent("a-modal"),j=vue.resolveComponent("indicator-detail-modal"),re=vue.resolveComponent("trend-modal");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",{class:"provider-config-container",id:c.customId,ref:"providerConfig",style:vue.normalizeStyle({...c.configStyle,fontFamily:c.pageFontFamily})},[vue.renderSlot(c.$slots,"default",{},void 0,!0)],12,_hoisted_1$h),vue.createVNode(b,{visible:c.indDetailInfo.visible,"onUpdate:visible":u[1]||(u[1]=vn=>c.indDetailInfo.visible=vn),width:"60%",getContainer:c.getContainer,footer:null,destroyOnClose:!0,"wrap-class-name":c.wrapClassName,onCancel:c.onDetailCancel},{title:vue.withCtx(()=>[vue.createElementVNode("div",{class:"detail-modal-title",title:c.conditionInfo.join("、")},vue.toDisplayString(c.indDetailInfo.title)+" "+vue.toDisplayString(c.conditionInfo.join("、")),9,_hoisted_2$8)]),closeIcon:vue.withCtx(()=>[vue.createVNode(v,{class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"])]),default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"zoom-btn",onClick:u[0]||(u[0]=(...vn)=>c.toggleFullScreen&&c.toggleFullScreen(...vn))},[c.isIndFullScreen?(vue.openBlock(),vue.createBlock(m,{key:0,class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"])):(vue.openBlock(),vue.createBlock(g,{key:1,class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"]))]),c.drillingMode==="pivotTable"?(vue.openBlock(),vue.createElementBlock("div",{key:0,style:vue.normalizeStyle({position:"relative",width:c.pivotTableConfig.width,height:c.pivotTableConfig.height})},[vue.createVNode(y,vue.mergeProps({ref:"pivotTableRef"},c.pivotTableConfig,{pageMode:c.pageMode,theme:c.theme,fullMode:!1,allowDrill:!0,showFullScreen:!1,indicatorUrl:c.indicatorUrl,relateKeyName:c.indDetailInfo.keyName,allDimensions:c.allDimensions,scaleValue:c.scaleValue,enlargeContainer:"#norPageConfig",onTableChange:c.onPivotTableChange}),null,16,["pageMode","theme","indicatorUrl","relateKeyName","allDimensions","scaleValue","onTableChange"])],4)):c.drillingMode==="normalTable"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[c.detailLoading?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$4,[vue.createVNode(x,{size:"large"})])):(vue.openBlock(),vue.createBlock(Pn,{key:1,scroll:{x:"max-content",y:c.isIndFullScreen?"100vh":"60vh"},"row-key":vn=>vn.uuid,columns:c.indDetailInfo.columns,"data-source":c.indDetailInfo.dataSource,pagination:c.indDetailInfo.pagination,onChange:c.handleTableChange},{headerCell:vue.withCtx(({title:vn})=>[vue.createElementVNode("div",{class:"detail-table-header-cell",title:vn},vue.toDisplayString(vn),9,_hoisted_4$3)]),_:1},8,["scroll","row-key","columns","data-source","pagination","onChange"]))],64)):vue.createCommentVNode("",!0)]),_:1},8,["visible","getContainer","wrap-class-name","onCancel"]),vue.createVNode(j,{ref:"indDetailModalRef"},null,512),vue.createVNode(re,{ref:"trendModalRef"},null,512)],64)}const ProviderConfig=_export_sfc$1(_sfc_main$t,[["render",_sfc_render$y],["__scopeId","data-v-be63c061"]]),EcanProviderConfig=withInstall$1(ProviderConfig),textProps={...props,name:"文本",keyName:"文本",type:"ecanText",width:"100px",height:"40px",text:"文字",lineHeight:"18px",color:"#333",variableColor:"#f00",fontSize:"14px",fontFamily:"",fontWeight:400,textShadow:"",justifyContent:"center",alignItems:"center",variableFontSize:"14px",variableDefaultValue:"0",format:"",target:"self",href:"",linkPage:"",data:{},percentageSide:"left",increaseColor:"",declineColor:"",minusSignShow:!0,unitShow:!0,unitText:"",unitFontSize:"14px",unitFontWeight:400,unitColor:"#333",unitTop:"",unitLeft:"",graphicConfig:{},targetShow:!1,targetRule:"",targetValue:"",notExpectColor:"",gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",openCustomRequestData:!0,customRequestName:"",customRequestField:"",showEllipsis:!1,showAnimation:!1,transParams:[],exceedConfig:"",targetTemplate:"",dataSetchecked:!1,titleContent:"",titleBackgroundColor:"#ffffff",titleFontColor:"#000000",isMarkDown:!1,isContentMarkDown:!1,parentId:""},textComponentProps=transformToComponentProps(textProps),textEvents=["refreshData","click","valueChange"],goUp="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD/WzT/WjP/WDD/WzT/WzP/WzT/WzT/WzT/WjT/WzT/WDT/YED/WzT/WzT/WjT/YED/WzT/WzT/WzT/XDT/WzT/WjX/WjP/XDT/XDT/WTL/Tif/WzReH8z5AAAAHHRSTlMA8RgS9W9YHbePZyME5sVjCP7bzcCxgndOQC4GFJJgKwAAAIJJREFUKM+Nkd0OgyAMRjvqcLA53fzXvv9zaokmxq8mnsue5ACFDjiy+XyjLZ7yyK35OxN5mSFZKa2QojEIKRhrZKM0QnsMQxirmJ0kBubTIZvAtUyiFAT4JFoUIYmIotZ5xjDPfyoCAV16nMPdFir8xZ16nM//tePtXw2ODOJY0V0WqQwM2rgKrU0AAAAASUVORK5CYII=",goDown="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDIyLTA3LTIyVDA5OjM1OjE5KzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHN0RXZ0OndoZW49IjIwMjItMDctMjJUMDk6MzU6MTkrMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6VDI+BAAABUUlEQVRIia3WPyhGURgG8B8pi0xisStKMioZLQaLiaQMBoxiVBImCwaLf6MssloUk8Gmb7GgJFKSUvIZ7qe+bvd89+A+03uf989z3nPPPe+tK5fLqtF3tSESzRjFAJ4vemams4IaYqulCq9gEo34QGco+LcCg9hHaxW3jpsiBIZxmMp5kXQTRH1k8S4cZCxoE6//FaiXbEtThm87JjkPI+jN4E9xW4TAQoA/isjNFehCT8B3VoTAUID/xHURAn0B/g5fRQh0B/j7mOJkf2gTaKvY7YG8FsxXPe/hIVbgCTs5C+vAasU+xlooMGuLTrCVI/CDR0zVCgi9gzmUIgQmBbYmT+AdY5LjGMKWpNuaqHWKLrEY8JUkXeYi75iu4DzFfUi6ey9C4AvjeKviliTdRSHmsrvBbMU+lzNg0oidaLvox7LIK+IHdem/iqIROzL/jG+NrT1BRsXKNQAAAABJRU5ErkJggg==";var esmEntry$1={exports:{}},defaults$5={exports:{}};function getDefaults$1(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function changeDefaults$1(c){defaults$5.exports.defaults=c}defaults$5.exports={defaults:getDefaults$1(),getDefaults:getDefaults$1,changeDefaults:changeDefaults$1};const escapeTest=/[&<>"']/,escapeReplace=/[&<>"']/g,escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g,escapeReplacements={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},getEscapeReplacement=c=>escapeReplacements[c];function escape$3(c,u){if(u){if(escapeTest.test(c))return c.replace(escapeReplace,getEscapeReplacement)}else if(escapeTestNoEncode.test(c))return c.replace(escapeReplaceNoEncode,getEscapeReplacement);return c}const unescapeTest=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function unescape$1(c){return c.replace(unescapeTest,(u,f)=>(f=f.toLowerCase(),f==="colon"?":":f.charAt(0)==="#"?f.charAt(1)==="x"?String.fromCharCode(parseInt(f.substring(2),16)):String.fromCharCode(+f.substring(1)):""))}const caret=/(^|[^\[])\^/g;function edit$1(c,u){c=c.source||c,u=u||"";const f={replace:(d,h)=>(h=h.source||h,h=h.replace(caret,"$1"),c=c.replace(d,h),f),getRegex:()=>new RegExp(c,u)};return f}const nonWordAndColonTest=/[^\w:]/g,originIndependentUrl=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function cleanUrl$1(c,u,f){if(c){let d;try{d=decodeURIComponent(unescape$1(f)).replace(nonWordAndColonTest,"").toLowerCase()}catch{return null}if(d.indexOf("javascript:")===0||d.indexOf("vbscript:")===0||d.indexOf("data:")===0)return null}u&&!originIndependentUrl.test(f)&&(f=resolveUrl(u,f));try{f=encodeURI(f).replace(/%25/g,"%")}catch{return null}return f}const baseUrls={},justDomain=/^[^:]+:\/*[^/]*$/,protocol=/^([^:]+:)[\s\S]*$/,domain=/^([^:]+:\/*[^/]*)[\s\S]*$/;function resolveUrl(c,u){baseUrls[" "+c]||(justDomain.test(c)?baseUrls[" "+c]=c+"/":baseUrls[" "+c]=rtrim$1(c,"/",!0)),c=baseUrls[" "+c];const f=c.indexOf(":")===-1;return u.substring(0,2)==="//"?f?u:c.replace(protocol,"$1")+u:u.charAt(0)==="/"?f?u:c.replace(domain,"$1")+u:c+u}const noopTest$1={exec:function(){}};function merge$2(c){let u=1,f,d;for(;u<arguments.length;u++){f=arguments[u];for(d in f)Object.prototype.hasOwnProperty.call(f,d)&&(c[d]=f[d])}return c}function splitCells$1(c,u){const f=c.replace(/\|/g,(p,v,m)=>{let g=!1,y=v;for(;--y>=0&&m[y]==="\\";)g=!g;return g?"|":" |"}),d=f.split(/ \|/);let h=0;if(d[0].trim()||d.shift(),d[d.length-1].trim()||d.pop(),d.length>u)d.splice(u);else for(;d.length<u;)d.push("");for(;h<d.length;h++)d[h]=d[h].trim().replace(/\\\|/g,"|");return d}function rtrim$1(c,u,f){const d=c.length;if(d===0)return"";let h=0;for(;h<d;){const p=c.charAt(d-h-1);if(p===u&&!f)h++;else if(p!==u&&f)h++;else break}return c.substr(0,d-h)}function findClosingBracket$1(c,u){if(c.indexOf(u[1])===-1)return-1;const f=c.length;let d=0,h=0;for(;h<f;h++)if(c[h]==="\\")h++;else if(c[h]===u[0])d++;else if(c[h]===u[1]&&(d--,d<0))return h;return-1}function checkSanitizeDeprecation$1(c){c&&c.sanitize&&!c.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function repeatString$1(c,u){if(u<1)return"";let f="";for(;u>1;)u&1&&(f+=c),u>>=1,c+=c;return f+c}var helpers={escape:escape$3,unescape:unescape$1,edit:edit$1,cleanUrl:cleanUrl$1,resolveUrl,noopTest:noopTest$1,merge:merge$2,splitCells:splitCells$1,rtrim:rtrim$1,findClosingBracket:findClosingBracket$1,checkSanitizeDeprecation:checkSanitizeDeprecation$1,repeatString:repeatString$1};const{defaults:defaults$4}=defaults$5.exports,{rtrim,splitCells,escape:escape$2,findClosingBracket}=helpers;function outputLink(c,u,f,d){const h=u.href,p=u.title?escape$2(u.title):null,v=c[1].replace(/\\([\[\]])/g,"$1");if(c[0].charAt(0)!=="!"){d.state.inLink=!0;const m={type:"link",raw:f,href:h,title:p,text:v,tokens:d.inlineTokens(v,[])};return d.state.inLink=!1,m}else return{type:"image",raw:f,href:h,title:p,text:escape$2(v)}}function indentCodeCompensation(c,u){const f=c.match(/^(\s+)(?:```)/);if(f===null)return u;const d=f[1];return u.split(`
102
+ `;let p=c;if(f!=null&&f.length){for(const m of f){const g=hn(m,{textData:u},{useNewline:!1,useSpace:!1});g&&(p=p.replace(m,g))}return`${h}{text|${p}}`}else return c},setDefaultRangeVal=(c,u)=>{const{props:f,componentList:d,getGlobalModel:h}=c,{graphicConfig:p={},startValue:v,endValue:m}=f,g=getdefCompleteData({graphicConfig:p,startValue:v,endValue:m,componentList:d,getGlobalModel:h}),{dimensions:y,dataset:x}=u,{classificationList:Pn=[]}=p,j=Pn.find(re=>re.show).label||"";for(const re of g)!y.find(vn=>+vn==+re)&&!isNaN(+re)&&y.push(+re);y.sort((re,vn)=>dayjs(re).isBefore(dayjs(vn))?-1:1);for(const re of x){const{data:vn}=re;if(vn!=null&&vn.length){const Fn=[];for(const Bn of g)if(!vn.find(w=>+w[j]==+Bn)&&!isNaN(+Bn)){const w=lodashEs.cloneDeep(vn[0]);for(const J in w)J===j?w[J]=+Bn:w[J]=0;Fn.push(w)}re.data.push(...Fn),re.data.sort((Bn,w)=>dayjs(Bn[j]).isBefore(dayjs(w[j]))?-1:1)}}},getConditions=c=>{const u=[];for(const f of c)f.conditions?u.push(...getConditions(f.conditions)):(f==null?void 0:f.dataType)==="component"&&u.push(f);return u};function getdefCompleteData(c){const{startValue:u,endValue:f,componentList:d,graphicConfig:h,getGlobalModel:p}=c,v=getVariableAndField(u),m=getVariableAndField(f),g=[];if(v&&m){const y=d.find(Pn=>Pn.keyName===v.keyName),x=d.find(Pn=>Pn.keyName===m.keyName);if(y&&x){const Pn=p(y.id),b=p(x.id),{classificationList:j=[]}=h,re=j.find(vn=>vn.show);if(re){let vn="YYYY-MM";switch(re.name){case"the_year":vn="YYYY";break;case"the_month":vn="MM";break;case"the_day":vn="DD";break;case"the_date":vn=(re==null?void 0:re.dateFormat)||vn;break}const Fn=getFormatStep(vn);if(vn){const Bn=vue.unref(Pn[v.field]),w=vue.unref(b[m.field]);let J=dayjs(Bn);const gn=dayjs(w);for(g.push(gn.format(vn));J.isBefore(gn);)g.push(J.format(vn)),J=J.add(1,Fn)}}}}return g}function getVariableAndField(c){let u=null;if(c){const f=c.match(/\{(.+?)\}/g);if(f!=null&&f.length){let d=f[0].slice(1,-1).trim();const h=d.match(/\[(.+?)\]/g);let p="";h!=null&&h.length&&(d=d.replace(h[0],""),p=h[0].slice(1,-1).trim()),u={keyName:d,field:p}}}return u}function getFormatStep(c){const u=c.split("-");let f="";if(u!=null&&u.length)switch(u[u.length-1]){case"YYYY":f="year";break;case"MM":f="month";break;case"DD":f="day";break}return f}function handleJumpLink(c,u){var Pn;const{pageMode:f,targetTemplate:d,getRecordValueByKeyName:h,setTemplateData:p}=u,v=c.linkPage||"",m=usePageUrl(f,v),g=c.href;let y=g||m;y=hn(y);const x=c.target;if(x)if(x==="event")window.parent.postMessage({type:"openPage",url:g},"*");else{const b={pageId:v,componentId:d};if((Pn=c.transParams)!=null&&Pn.length){y.includes("?")?y+="&":y+="?";const j=[];for(const re of c.transParams){const vn=h(String(re.fieldName));j.push(`${re.keyName}=${vn}`),b[re.keyName]=vn}y+=j.join("&")}x==="template"?(Object.prototype.hasOwnProperty.call(window,"oldPageId")||(window.oldPageId=""),window.oldPageId&&(window.controller.abort(),window.controller=new AbortController),window.oldPageId=v,p(b)):(x==="blank"&&(y+=`${y.includes("?")?"&":"?"}drillFlag=1`),window.open(y,"_"+x))}}function getPageUrlParams(c){var f,d;let u={};if(c){const h=(((f=window.config)==null?void 0:f.urlParams)||{})[c]||{};for(const p in h)p.includes("{")||(u[p]=h[p])}else u=((d=window.config)==null?void 0:d.requestParams)||{};return u}function getNewValueFromUrlParams(c,u,f){let d="";const{urlParams:h}=window.config;if(c&&h[c])for(const p in h[c]){const v=h[c][p];if(p===`{${u}[${f}]}`&&v){d=v;break}}return d}function getFormatWh(c,u){return typeof c=="string"?parseFloat(c):c.suffix==="px"?+c.value:c.suffix==="%"?parseFloat(u)*(c.value/100):0}const hasChinese=c=>/[\u4e00-\u9fa5]/.test(c),dragModalAction=(c,u)=>{const f=document.querySelector(u);if(!f)return;f.style.cursor="move",f.style.userSelect="none";const d=f.parentElement,h=200,p=d.getBoundingClientRect(),{width:v,left:m,top:g}=p,y=window.innerWidth,x=window.innerHeight,Pn=c.clientX,b=c.clientY,j=parseFloat(d.style.left)||0,re=parseFloat(d.style.top)||0,vn=-(m+v-h-j),Fn=y-m+j-h,Bn=-(g-re),w=x-g+re-h,J=zn=>{zn.preventDefault();const Vn=zn.clientX-Pn,Kn=zn.clientY-b;let Un=j+Vn,Qn=re+Kn;Un=Math.max(vn,Math.min(Un,Fn)),Qn=Math.max(Bn,Math.min(Qn,w)),d.style.left=`${Un}px`,d.style.top=`${Qn}px`},gn=()=>{f.style.cursor="",f.style.userSelect="",document.removeEventListener("mousemove",J),document.removeEventListener("mouseup",gn)};document.addEventListener("mousemove",J),document.addEventListener("mouseup",gn)},useRequestData=(c,u,f=()=>{})=>{var sr;const{requestUrl:d,requestMethod:h,requestHeaders:p,requestParams:v,requestInterval:m,isOpenRequestTimer:g,openCustomRequestData:y,projectRequestUrl:x="",getModel:Pn,requestParamsMode:b,customRequestParams:j,dataSetParam:re,requestType:vn,dataType:Fn,dataSetchecked:Bn}=c,{pageMode:w}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"})||{},{pageId:J}=vue.inject("templateOperate",{pageId:""})||{},{contextRequestUrl:gn,touchEventId:zn}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:"",touchEventId:""})||{},{getGlobalModel:Vn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:ur=>{}})||{},{loadedData:Kn}=vue.inject(LOADED_DATA,{loadedData:{}})||{},Un=vue.inject(COMMON_OPERATE,{operateAction:(ur,Gn)=>{}}),Qn=Pn||Vn;let Jn=hn(d),Yn=vue.unref(gn)||x||"";(Fn==="request"&&Bn||vn===1)&&(Yn="",Jn=((sr=window.config)==null?void 0:sr.dataSetUrl)||"/api/datav/dataset/data2");const Zn=async(ur={})=>{var ir;if(Fn!=="request"&&nr){clearInterval(nr);return}if(!Jn||!h||!p)return;let Gn={};for(const er of v){const{key:pr,value:lr}=er;if((lr==null?void 0:lr.id)==="PARENT"&&(lr!=null&&lr.prop)){const ar=(((ir=window.config)==null?void 0:ir.record)||{})[lr.prop];if(ar){const vr=ar[lr.propKey||"value"];vr&&(["date","range"].some(mr=>yn(ar==null?void 0:ar.type,mr))?Gn[pr]=vue.unref(vr).format(ar.format||"YYYY-MM-DD"):Gn[pr]=vue.unref(vr))}continue}if(typeof lr=="object"&&lr!=null&&lr.id){let or={};const{id:ar,prop:vr,propKey:fr,operate:mr}=lr;let dr=!1;try{JSON.parse(ar),dr=!0}catch{dr=!1}if(ar==="THIS"?or=Qn(vue.unref(zn))||{}:or=Qn(ar)||{},(or==null?void 0:or.type)==="ecanSelect"&&vue.unref(Kn)&&!vue.unref(Kn)[ar]&&(or==null?void 0:or.dataType)!=="static")return;const hr=vue.unref(or[vr]);let yr=null;if(["date","range"].some(gr=>yn(or==null?void 0:or.type,gr))){const{value:gr,type:br,mode:Er}=mr||{};if(gr&&br&&Er)switch(br){case"add":yr=vue.unref(hr).add(gr,Er);break;case"minus":yr=vue.unref(hr).subtract(gr,Er);break}yr==null&&(yr=vue.unref(hr)),yr=yr&&(yr==null?void 0:yr.format((fr==null?void 0:fr.trim())||or.format))||""}else if(Object.prototype.toString.call(hr)==="[object Object]")fr?yr=hr[fr]:yr=vr?hr[vr]:hr;else if(yn(or==null?void 0:or.type,"select")&&vue.unref(hr)&&vr&&Array.isArray(vue.unref(hr)))yr=vue.unref(hr).map(gr=>Object.prototype.hasOwnProperty.call(gr,vr)?gr[vr]:gr);else if(dr){const gr=JSON.parse(ar);console.log(gr,"urlvalue"),yr=gr.value}else yr=hr;Gn[pr]=yr}else typeof lr=="object"&&!lr.id&&vn===1?(console.log(lr.propKey,"value.propKey"),Gn[pr]=lr.propKey):typeof lr=="string"&&(Gn[pr]=hn(lr))}if(vn===1){console.log(Gn,"_params");const er=Object.entries(Gn);let pr=re;if(!re.param&&Array.isArray(re)){const lr={};for(const or of re)lr[or.key]=or.value;pr=lr}pr.param=pr.param.map((lr,or)=>({...lr,paramKey:er[or][0],defaultValue:er[or][1]||""})),Gn=pr}if(b==="2"&&j!=="{}"){const er=JSON.parse(j);Wn(er),er&&(Gn=er)}function Wn(er){const pr={...Gn,...getPageUrlParams(J)};if(Array.isArray(er))er.forEach((lr,or)=>{if(typeof lr=="string"){const ar=lr.match(/\${(.+?)\}/g);if(ar!=null&&ar.length){const vr=ar[0].slice(2,-1);vr&&pr[vr]?er[or]=pr[vr]:er[or]=""}}else Wn(lr)});else if(Object.prototype.toString.call(er)==="[object Object]")for(const lr in er)if(typeof er[lr]=="string"){const or=er[lr].match(/\${(.+?)\}/g);if(or!=null&&or.length){const ar=or[0].slice(2,-1);ar&&pr[ar]?er[lr]=pr[ar]:er[lr]=""}}else Wn(er[lr])}const Rn=getPageUrlParams(J);for(const er in Rn)Rn[er]&&(Rn[er]=decodeURIComponent(Rn[er]));Gn={...Rn,...ur,...Gn};let qn="";const Xn=Object.keys(Gn),Hn=Xn.length-1,tr=Xn.length;Xn.forEach((er,pr)=>{let lr=Gn[er];Object.prototype.toString.call(lr)==="[object Object]"&&(lr=JSON.stringify(lr)),pr===0?tr!==1?qn+=`?${er}=${lr}&`:qn+=`?${er}=${lr}`:pr===Hn?qn+=`${er}=${lr}`:qn+=`${er}=${lr}&`}),Jn.includes("?")&&(qn=qn.replace("?","&"));function cr(er){var pr;if(vn===1)return{Authentication:(pr=window==null?void 0:window.config)==null?void 0:pr.indicatorToken};if(typeof er=="string"){const lr=JSON.parse(er),or=getPageUrlParams(J);if(Object.prototype.toString.call(lr)==="[object Object]"){for(const ar in lr)if(typeof lr[ar]=="string"){const vr=lr[ar].match(/\${(.+?)\}/g);if(vr!=null&&vr.length){const fr=vr[0].slice(2,-1);fr&&or[fr]?lr[ar]=or[fr]:lr[ar]=""}}}return lr}else return er}try{const er=["get","head"].includes(h),pr={};let lr=er?Jn+qn:Jn;Gn.dataSqlId&&!lr.includes("dataSqlId")&&(lr+=`${lr.includes("?")?"&":"?"}dataSqlId=${Gn.dataSqlId}`),Object.prototype.hasOwnProperty.call(Gn,"signal")?pr.signal=Gn.signal:window.controller&&(pr.signal=window.controller.signal);const or=await request({baseURL:Yn,url:lr,method:h,headers:p?cr(p):{},data:er?{}:Gn,...pr});return f(or),Un.operateAction("SAVE_COMPONENT_RES_DATA",{id:c.id,data:(or==null?void 0:or.data)||{}}),or}catch(er){console.error(er)}},nr=vue.unref(w)!=="design"&&g&&(y||y===void 0)&&setInterval(Zn,m*1e3);return vue.onUnmounted(()=>{clearInterval(nr)}),Zn},useImagePath=(c,u=!1)=>{var d;if(!c)return c;let f="";return c!=null&&c.includes("://")?f=c:f=((d=window==null?void 0:window.config)==null?void 0:d.uploadPath)+c,u&&(f=`url(${f})`),f},usePageUrl=(c,u)=>{const f=`${BASE_URL}/preview?pageId=${u}`,d=`${BASE_URL}/${u}`;return c==="preview"?f:d},useIndicatorData=(c={},u=()=>{})=>{var x;const{pageMode:f}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),{requestToken:d}=vue.inject(GLOBAL_TOKEN,{requestToken:()=>{}}),{setLoadedData:h}=vue.inject(LOADED_DATA,{setLoadedData:(Pn,b)=>{}}),{getAllGlobalModel:p}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),{pageId:v}=vue.inject("templateOperate",{pageId:""})||{},m=vue.inject(COMMON_OPERATE,{operateAction:(Pn,b)=>{}});c.dataType==="indicator"&&d();const g=async(Pn={})=>{var J,gn,zn;const b=p();h(c.id,!1);const j=Dn({...c,globalModel:b},Pn),{url:re,...vn}=j||{},{pathname:Fn,search:Bn}=window==null?void 0:window.location;let w=v||((J=window==null?void 0:window.config)==null?void 0:J.pageId);if(!w&&Fn){const Vn=Fn.split("/");Vn!=null&&Vn.length&&(w=Vn[Vn.length-1])}if(re&&vn){let Vn,Kn;if(c.type==="ecanIndexPanel"&&(Vn=c.theFlag),re==="/diagram/formData"){Kn={};const Qn=Bn.slice(1,Bn.length).split("&");for(const Jn of Qn)if(Jn){const Yn=Jn.split("=");Yn[0]&&(Kn[Yn[0]]=Yn[1])}}try{const Un=await request({url:`${INDICATOR_URL}${re}`,method:"post",headers:{Authentication:(gn=window==null?void 0:window.config)==null?void 0:gn.indicatorToken,operateContext:CONTEXT},data:{...vn,pageId:w,theFlag:Vn,extParam:Kn},signal:((zn=window.controller)==null?void 0:zn.signal)||""});return Pn!=null&&Pn.isTimer&&u(Un),m.operateAction("SAVE_COMPONENT_RES_DATA",{id:c.id,data:(Un==null?void 0:Un.data)||{}}),Un}catch(Un){console.error(Un)}}},y=vue.unref(f)!=="design"&&((x=c==null?void 0:c.graphicConfig)==null?void 0:x.pageMode)!=="design"&&c.isOpenRequestTimer&&c.requestInterval&&setInterval(()=>{g({isTimer:!0})},c.requestInterval*1e3);return vue.onUnmounted(()=>{clearInterval(y)}),g},useHrefParamsToGlobalVariables=()=>{const u=window.location.search.slice(1).split("&"),f=u.length,d={};for(let h=0;h<f;h++){const p=u[h];if(p==null||p==="")continue;const v=p.split("=");if(Array.isArray(v)){const m=v[0];m.includes("{")||(d[m]=v[1])}}window.config.requestParams={...window.config.requestParams,...d},window.config={...window.config,...d}},_sfc_main$z=vue.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...pageConfigComponentProps,pageId:{type:String,default:""},customId:{type:String,default:"container"},portId:{type:String,default:"norPageConfig"}},setup(c){const{width:u,height:f,isCompatible:d}=vue.inject(GLOBAL_CONFIG,{width:null,height:null,isCompatible:null}),h=vue.inject("setPageHeight",zn=>{}),p=vue.inject("isMobile",!1),v=vue.computed(()=>{const zn={};return(!d.value||!p)&&(zn.width=u.value,zn.height=f.value),{...zn,backgroundColor:c.pageId?"transparent":c.backgroundColor,backgroundImage:useImagePath(c.backgroundImage,!0),backgroundSize:c.backgroundSize}}),m=vue.ref(0),g=vue.ref(0),y=vue.ref(0),x=vue.ref(0),Pn=vue.ref(!1),b=vue.ref();let j;const re=()=>new Promise(zn=>{vue.nextTick(()=>{u.value&&f.value?(m.value=parseFloat(u.value),g.value=parseFloat(f.value)):(m.value=b.value.clientWidth,g.value=b.value.clientHeight),(!y.value||!x.value)&&(y.value=window.screen.width,x.value=window.screen.height),zn()})}),vn=()=>{m.value&&g.value?(b.value.style.width=`${m.value}px`,b.value.style.height=`${g.value}px`):(b.value.style.width=`${y.value}px`,b.value.style.height=`${x.value}px`)};vue.watch([u,f],async()=>{c.pageId||(await re(),vn(),Bn(),window.addEventListener("resize",w),J()),Pn.value=!0},{immediate:!0});const Fn=vue.ref({});vue.provide("scaleValue",Fn);const Bn=()=>{if(d.value&&p){b.value.style.width="100%",b.value.style.height="auto",h("auto");return}const zn=document.body.clientWidth,Vn=document.body.clientHeight,Kn=m.value||y.value,Un=g.value||x.value,Qn=zn/Kn;let Jn=Vn/Un;(m.value!==1920||g.value!==1080)&&(Jn=g.value/m.value*zn/Un),Fn.value={widthScale:Qn,heightScale:Jn},b.value&&(b.value.style.transform=`scale(${Qn}, ${Jn})`),h(Fn.value)},w=lodashEs.debounce(async()=>{await re(),Bn()},100),J=()=>{const zn=window.MutationObserver;j=new zn(w),j.observe(b.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},gn=()=>{j&&(j.disconnect(),j.takeRecords(),j=null)};return vue.onMounted(()=>{Pn.value=!1}),vue.onUnmounted(()=>{window.removeEventListener("resize",w),gn()}),{style:v,container:b,ready:Pn}}}),PageConfig_vue_vue_type_style_index_0_scoped_44a453d9_lang="",_hoisted_1$k=["id"],_hoisted_2$a=["id"];function _sfc_render$E(c,u,f,d,h,p){return vue.openBlock(),vue.createElementBlock("div",{class:"page-config-container",id:c.customId,ref:"container"},[c.ready||c.pageId?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"page-config",id:c.portId,style:vue.normalizeStyle(c.style)},[vue.renderSlot(c.$slots,"default",{},void 0,!0)],12,_hoisted_2$a)):vue.createCommentVNode("",!0)],8,_hoisted_1$k)}const PageConfig=_export_sfc$1(_sfc_main$z,[["render",_sfc_render$E],["__scopeId","data-v-44a453d9"]]),EcanPageConfig=withInstall$1(PageConfig),providerConfig={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px",pageFontFamily:"",jumpType:"page",jumpTime:null,jumpPage:"",jumpLink:"",requestList:[],events:[],isCompatible:!0,variableList:[],drillingMode:"pivotTable"},providerConfigComponentProps=transformToComponentProps(providerConfig);let random=c=>crypto.getRandomValues(new Uint8Array(c)),customRandom=(c,u,f)=>{let d=(2<<Math.log(c.length-1)/Math.LN2)-1,h=-~(1.6*d*u/c.length);return(p=u)=>{let v="";for(;;){let m=f(h),g=h;for(;g--;)if(v+=c[m[g]&d]||"",v.length===p)return v}}},customAlphabet=(c,u=21)=>customRandom(c,u,random),nanoid=(c=21)=>crypto.getRandomValues(new Uint8Array(c)).reduce((u,f)=>(f&=63,f<36?u+=f.toString(36):f<62?u+=(f-26).toString(36).toUpperCase():f>62?u+="-":u+="_",u),"");const pivotTableProps={...props,name:"透视表",keyName:"透视表",width:"800px",height:"400px",type:"ecanPivotTable",graphicConfig:{},dataType:"indicator",data:[],dimensionList:[],indicatorList:[],styleConfig:{borderColor:"#E3E3E3",headerBgColor:"#ECF1F5",headerColor:"#000000",bodyBgColor:"#FFFFFF",bodyColor:"#000000",indicatorsHeaderBgColor:"#ECF1F5",indicatorsHeaderColor:"#000000",indicatorsBodyBgColor:"#FFFFFF",indicatorsBodyColor:"#000000",aggregateBgColor:"#ECF1F5",aggregateColor:"#000000",sortNotActiveColor:"#CCCCCC",sortActiveColor:"#416EFF",dropDownMenuBgColor:"#FFFFFF",dropDownMenuColor:"#141414",dropDownMenuHightLightColor:"#2E68CF"},configMode:"halfMode"},pivotTableComponentProps=transformToComponentProps(pivotTableProps),pivotTableEvents=["refreshData"],_sfc_main$y=vue.defineComponent({name:"IndicatorDetailModal",setup(c,{expose:u}){const f=vue.ref(!1),d=vue.ref([]),h=vue.ref(!1),p=vue.ref(),v=async({data:g,indicatorUrl:y,indicatorToken:x,context:Pn,pageId:b})=>{var Fn,Bn;h.value=!0,f.value=!0;let j=[];const{graphicConfig:re,theFlag:vn}=vue.unref(g)||{};if(re){const{leftAxisList:w=[],rightAxisList:J=[],indicators:gn=[]}=re,zn=w.concat(J).concat(gn);zn!=null&&zn.length&&(j=zn.map(Vn=>({calcType:Vn.calcType||"COLUMN",columnName:Vn.name,hrpIndexCode:Vn.indexCode,hrpIndexCodeNum:Vn.indexCodeNum,label:Vn.label,show:Vn.show,formula:Vn.formula})))}if(j!=null&&j.length)try{const w=await request({url:`${vue.unref(y)}/diagram/obtainIndicatorInfo`,method:"post",headers:{Authentication:x,operateContext:Pn},data:{source:"INDICATOR_LIB",pageId:b,indicatorList:j,theFlag:vn}}),J=((Fn=w==null?void 0:w.data)==null?void 0:Fn.data)||[];(Bn=J[0])!=null&&Bn.remark?(p.value=J[0].remark,d.value=[]):(p.value=null,d.value=J)}catch{}finally{h.value=!1}},m=()=>document.querySelector("#ProviderConfig > #container")||document.body;return u({showModal:v}),{visible:f,dataList:d,isLoading:h,hasOwn:mn,remarkData:p,getContainer:m}}}),IndicatorDetailModal_vue_vue_type_style_index_0_scoped_be13fdbe_lang="",_withScopeId$6=c=>(vue.pushScopeId("data-v-be13fdbe"),c=c(),vue.popScopeId(),c),_hoisted_1$j=_withScopeId$6(()=>vue.createElementVNode("div",{class:"modal-title"},"指标详情",-1)),_hoisted_2$9={key:0,class:"spin-container"},_hoisted_3$5=["innerHTML"],_hoisted_4$4={class:"index-name"},_hoisted_5$3={key:0,class:"card-row"},_hoisted_6$3=_withScopeId$6(()=>vue.createElementVNode("div",{class:"label"},"计量单位:",-1)),_hoisted_7$3={class:"content"},_hoisted_8$3={key:1,class:"card-row"},_hoisted_9$3=_withScopeId$6(()=>vue.createElementVNode("div",{class:"label"},"指标定义:",-1)),_hoisted_10$3={class:"content"},_hoisted_11$3={key:2,class:"card-row"},_hoisted_12$3=_withScopeId$6(()=>vue.createElementVNode("div",{class:"label"},"计算方法:",-1)),_hoisted_13$3={class:"content"},_hoisted_14$3={key:3,class:"card-row"},_hoisted_15$2=_withScopeId$6(()=>vue.createElementVNode("div",{class:"label"},"指标说明:",-1)),_hoisted_16$1={class:"content"};function _sfc_render$D(c,u,f,d,h,p){const v=vue.resolveComponent("a-spin"),m=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(m,{visible:c.visible,"onUpdate:visible":u[0]||(u[0]=g=>c.visible=g),width:"45%",getContainer:c.getContainer,footer:null,destroyOnClose:!0,bodyStyle:{maxHeight:"60vh",overflow:"auto",padding:"20px 24px 24px"}},{title:vue.withCtx(()=>[_hoisted_1$j]),default:vue.withCtx(()=>[c.isLoading?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$9,[vue.createVNode(v,{size:"large"})])):c.remarkData?(vue.openBlock(),vue.createElementBlock("div",{key:1,innerHTML:c.remarkData},null,8,_hoisted_3$5)):c.dataList.length?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:2},vue.renderList(c.dataList,(g,y)=>(vue.openBlock(),vue.createElementBlock("div",{class:"detail-wrap",key:y},[vue.createElementVNode("div",_hoisted_4$4,vue.toDisplayString(g.indexName||"--"),1),c.hasOwn(g,"theUnit")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$3,[_hoisted_6$3,vue.createElementVNode("div",_hoisted_7$3,vue.toDisplayString(g.theUnit||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(g,"meaning")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_8$3,[_hoisted_9$3,vue.createElementVNode("div",_hoisted_10$3,vue.toDisplayString(g.meaning||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(g,"theFormula")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_11$3,[_hoisted_12$3,vue.createElementVNode("div",_hoisted_13$3,vue.toDisplayString(g.theFormula||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(g,"theExplain")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_14$3,[_hoisted_15$2,vue.createElementVNode("div",_hoisted_16$1,vue.toDisplayString(g.theExplain||"--"),1)])):vue.createCommentVNode("",!0)]))),128)):vue.createCommentVNode("",!0)]),_:1},8,["visible","getContainer"])}const IndicatorDetailModal=_export_sfc$1(_sfc_main$y,[["render",_sfc_render$D],["__scopeId","data-v-be13fdbe"]]),lineProps={...props,id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"}],titleText:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanLine",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,tooltipTextStyleColor:"",noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px",defaultRangeValue:!1,startValue:"",endValue:""},lineComponentProps=transformToComponentProps(lineProps),lineEvents=["click","refreshData","resetRecord"],useDownloadFile=async c=>{var g;const u=await request.post(c,{},{responseType:"blob"}),{data:f,headers:d}=u,h=d["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),p=new Blob([f]),v=document.createElement("a"),m=window.URL.createObjectURL(p);v.href=m,v.download=decodeURI(h),v.style.display="none",document.body.appendChild(v),v.click(),(g=v.parentNode)==null||g.removeChild(v),window.URL.revokeObjectURL(m)},modalProps={id:"",type:"ecanModal",title:"",titleFontSize:"14px",titleColor:"",width:"1000px",height:"800px",originalWidth:"1920px",originalHeight:"1080px",backgroundColor:"#fff",backgroundImage:"",backgroundSize:"100% 100%",keyName:"弹窗",componentList:[],fullModal:!1,destroyOnClose:!0,position:"default",closeBtnColor:"#333",isShowCloseBtn:!0,events:[],borderRadius:"0",borderWidth:"0px",borderColor:"",boxShadow:"0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05)",allComponentList:[],requestList:[],parentIframeId:"",banScale:!1},modalComponentProps=transformToComponentProps(modalProps),modalEvents=["showModal","hideModal"],containerType=["ecanBorder","ecanTabs","ecanCirculate"];function handleScrollCombinations(c){const{containerMap:u={},sourceList:f=[]}=c,d=lodashEs.cloneDeep(c.componentList),h=d.filter(p=>p.type==="ecanTabs"&&p.isAutoScroll);if(h!=null&&h.length)for(const p of h){const v=u[p.id],m=[];if((!mn(p,"componentList")||!(p!=null&&p.componentList))&&(p.componentList=[]),v){let g=0;for(const y in v){const x=v[y],Pn=[];if(x!=null&&x.length)for(const b of x){let j=d.find(re=>re.id===b);j||(j=f.find(re=>re.id===b)),j&&(Pn.push(j),containerType.includes(j.type)&&Pn.push(...getComponentByContainer(j.id,u,f)))}for(const b of Pn)mn(b,"scale")?parseFloat(y)>0&&(b.left=parseFloat(b.left)+g+"px"):(b.left=parseFloat(b.sourceLeft||b.left)-parseFloat(p.sourceLeft||p.left)+g+"px",b.top=parseFloat(b.sourceTop||b.top)-parseFloat(p.sourceTop||p.top)+"px"),m.includes(b.id)||m.push(b.id);p.componentList.push(...Pn),g=getMaxLeftInComponents(Pn)}}for(const g of m){const y=d.findIndex(x=>x.id===g);y!==-1&&d.splice(y,1)}}return d}function compatibleMobileList(c){var p,v;const{combinationMap:u={},sourceList:f=[]}=c,d=c.containerMap,h=lodashEs.cloneDeep([...c.componentList,...getTabsSomeComponentList(d,f)]);if(handleContainerMap(d,h),(p=Object.keys(d))!=null&&p.length||(v=Object.keys(u))!=null&&v.length){for(const b in d){const j=h.find(re=>re.id===b);if(j){mn(j,"parentId")||(j.parentId="",j.sourceLeft=j.left,j.sourceTop=j.top);for(const re in d[b])if(d[b][re])for(const vn of d[b][re]){const Fn=h.find(Bn=>Bn.id===vn);Fn&&(Fn.parentId=b,Fn.sourceLeft=Fn.left,Fn.sourceTop=Fn.top,Fn.left=parseFloat(Fn.left)-parseFloat(j.sourceLeft||j.left)+"px",Fn.top=parseFloat(Fn.top)-parseFloat(j.sourceTop||j.top)+"px")}}}const m=Array.from(new Set(h.filter(b=>(!mn(b,"parentId")||b.parentId==="")&&b.combinationId).map(b=>b.combinationId))),g=getCombinationList(m,{...c,componentList:h});g!=null&&g.length&&h.unshift(...g);const y=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],x=h.filter(b=>y.includes(b.type)&&!mn(b,"parentId")),Pn=[];for(const b of x)if(b){const j=b.id+"_vir";Pn.push({id:j,keyName:b.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:b.width,height:b.height,left:b.left,top:b.top,sourceLeft:b.left,sourceTop:b.top}),b.parentId=j,b.sourceLeft=b.left,b.sourceTop=b.top,b.left=0,b.top=0}Pn!=null&&Pn.length&&h.unshift(...Pn);for(const b of h){const j=document.body.clientWidth;if(b.parentId===""&&containerType.includes(b.type))b.sourceWidth=parseFloat(b.width),b.height=(j/(b.sourceWidth/parseFloat(b.height))).toFixed(2)+"px",b.width="100%",b.position="relative",b.top="auto",b.left="auto";else{const re=h.find(vn=>vn.id===b.parentId);if((re==null?void 0:re.parentId)===""){const vn=re.sourceWidth||parseFloat(re.width),Fn=j/vn;b.scale=Fn,b.top=parseFloat(b.top)*Fn-parseFloat(b.height)*(1-Fn)/2+"px",b.left=parseFloat(b.left)*Fn-parseFloat(b.width)*(1-Fn)/2+"px"}}b.type==="ecanModal"&&(b.parentId="",b.fullModal=!0)}return sortList(h)}return h}function handleContainerMap(c,u){const f=lodashEs.cloneDeep(c),d=u.filter(h=>h.type==="ecanTabs"&&h.isAutoScroll);if(d!=null&&d.length)for(const h of d){const p=f[h.id];for(const v in p)for(const m of p[v]){const g=u.find(y=>y.id===m);if(g&&containerType.includes(g.type)){const y=getComponentByContainer(g.id,f,u);for(const x of y)c[h.id][v].push(x.id),containerType.includes(x.type)&&delete c[x.id];delete c[g.id]}}}}function getTabsSomeComponentList(c,u){const f=[],d=u.filter(h=>h.type==="ecanTabs"&&h.isAutoScroll);if(d!=null&&d.length)for(const h of d){const p=c[h.id];for(const v in p)if(parseFloat(v)>0)for(const m of p[v]){const g=u.find(y=>y.id===m);g&&(f.push(g),containerType.includes(g.type)&&f.push(...getComponentByContainer(g.id,c,u)))}}return f}function getComponentByContainer(c,u,f){const d=[],h=u[c];for(const p in h)for(const v of h[p]){const m=f.find(g=>g.id===v);m&&(d.push(m),containerType.includes(m.type)&&d.push(...getComponentByContainer(m.id,u,f)))}return d}function getCombinationList(c,u,f){const{combinationMap:d={},componentList:h=[]}=u,p=[];for(const v of c){const m=d[v];if(m!=null&&m.length){const g=h.filter(y=>m.includes(y.id));if(g!=null&&g.length){const y=getCombinateRect(g);if(y){p.push({...y,id:v,keyName:v,parentId:f||"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:y.left,sourceTop:y.top});for(const x of g)x&&(x.parentId=v,x.sourceLeft=x.left,x.sourceTop=x.top,x.left=parseFloat(x.left)-parseFloat(y.left)+"px",x.top=parseFloat(x.top)-parseFloat(y.top)+"px")}}}}return p}function sortList(c){const f=c.filter(d=>d.parentId==="");if(f!=null&&f.length){const d=lodashEs.cloneDeep(f).map(h=>({...h,sourceTop:parseFloat(h.sourceTop),sourceLeft:parseFloat(h.sourceLeft)}));for(let h=0;h<d.length-1;h++)for(let p=0;p<d.length-h-1;p++){let v=!1;if((d[p].sourceTop-d[p+1].sourceTop>50||Math.abs(d[p+1].sourceTop-d[p].sourceTop)<=50&&d[p].sourceLeft>d[p+1].sourceLeft)&&(v=!0),v){const m=d[p];d[p]=d[p+1],d[p+1]=m}}for(const h of d){const p=c.findIndex(v=>v.id===h.id);p!==-1&&c.splice(p,1)}return[...d,...c]}return c}function getCombinateRect(c){const u=c.sort((p,v)=>parseFloat(p.top)-parseFloat(v.top))[0],f=c.sort((p,v)=>parseFloat(p.left)-parseFloat(v.left))[0],d=c.map(p=>({...p,computedTop:parseFloat(p.top)+parseFloat(p.height)})).sort((p,v)=>v.computedTop-p.computedTop)[0],h=c.map(p=>({...p,computedLeft:parseFloat(p.left)+parseFloat(p.width)})).sort((p,v)=>v.computedLeft-p.computedLeft)[0];return u&&f&&d&&h?{left:f.left,top:u.top,width:h.computedLeft-parseFloat(f.left)+"px",height:d.computedTop-parseFloat(u.top)+"px"}:null}function getMaxLeftInComponents(c){const u=c.map(f=>parseFloat(f.left)+parseFloat(f.width)).sort((f,d)=>d-f)[0];return u||0}function moveToComponentList(c,u,f){const d=c[f],h=[];if(d)for(const p in d){const v=d[p];for(const m of v){const g=u.find(y=>y.id===m);g&&(h.push(g),containerType.includes(g.type)&&h.push(...getComponentByContainer(g.id,c,u)))}}return h}const _sfc_main$x=vue.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(c,{emit:u}){u("ready",c.component.id)}});function _sfc_render$C(c,u,f,d,h,p){return c.component.parentId?(vue.openBlock(),vue.createBlock(vue.Teleport,{key:0,to:"#container_"+c.component.parentId},[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(c.component.type),vue.mergeProps({style:{scale:c.component.scale}},c.component),null,16,["style"]))],8,["to"])):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(c.component.type),vue.normalizeProps(vue.mergeProps({key:1},c.component)),null,16))}const Render=_export_sfc$1(_sfc_main$x,[["render",_sfc_render$C]]),EcanRender=withInstall$1(Render),_sfc_main$w=vue.defineComponent({name:"EcanModal",components:{AModal:antDesignVue.Modal,CloseOutlined:CloseOutlined$1,Render:EcanRender},props:{...modalComponentProps},setup(c,{emit:u}){const f=vue.ref([]),d=vue.inject("isMobile",!1),h=vue.computed(()=>c.fullModal),p=vue.inject("getContainerMap",()=>{}),v=vue.inject("getCombinationMap",()=>{}),{clearInteractiveData:m,interactiveData:g,setRequestData:y}=vue.inject(GLOBAL_MODEL,{setRequestData:(hr,yr)=>{},clearInteractiveData:()=>{},interactiveData:null}),x=()=>document.getElementById("ProviderConfig")||document.body,Pn=vue.computed(()=>{const hr=c.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[hr]}}),b=c.fullModal?"1920px":c.width,j=c.fullModal?"1080px":c.height,re=c.originalWidth,vn=c.originalHeight,Fn=vue.ref("80%"),Bn=vue.ref(0),w=vue.ref(),J=vue.ref(0),gn=vue.ref({}),zn=usePickComponentStyle(c),Vn=vue.ref({}),Kn=vue.ref(!1),Un=vue.ref();let Qn;const Jn=()=>{w.value=parseFloat(b)/parseFloat(re);const hr=parseFloat(j)/parseFloat(vn),yr=document.body.offsetWidth,_r=document.body.offsetHeight;if(Bn.value=yr*vue.unref(w),J.value=_r*hr,Fn.value=`${vue.unref(w)*100}%`,gn.value={width:`${vue.unref(Bn)}px`,height:`${vue.unref(J)}px`,border:`${c.borderWidth} solid ${c.borderColor}`,borderRadius:c.borderRadius+"px",boxShadow:c.boxShadow},Vn.value={...vue.unref(zn),backgroundImage:useImagePath(c.backgroundImage,!0)},d)Vn.value={...Vn.value,width:"100%",height:"100%"};else{const gr={...Vn.value,width:b,height:j};c.banScale&&vue.unref(h)?(gr.width="100%",gr.height="100%"):gr.transform=`scale(${vue.unref(Bn)/parseFloat(b)},${vue.unref(J)/parseFloat(j)})`,Vn.value=gr}},Yn=lodashEs.debounce(()=>{Jn()},100),Zn=()=>{const hr=window.MutationObserver;Qn=new hr(Yn),Qn.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},nr=()=>{Qn&&(Qn.disconnect(),Qn.takeRecords(),Qn=null)},sr=vue.ref(!1),{touchRequest:ur}=vue.inject(REQUEST_MODEL,{touchRequest:()=>{}}),Gn=vue.ref(""),Wn=()=>{var _r;const{title:hr}=c,yr=(_r=vue.unref(g))==null?void 0:_r.RECORD;return yr?hn(hr,{textData:yr},{useNewline:!1,useSpace:!1}):hr},Rn=useEmitEvent(c),qn=hr=>{const{changeIframeStyle:yr}=window.parent;yr&&typeof yr=="function"&&yr({iframeId:c.parentIframeId||"",action:hr})},Xn=()=>{vue.unref(h)&&qn("open"),d&&(document.documentElement.style.overflow="hidden"),Gn.value=Wn(),sr.value=!0},Hn=Rn("hideModal",()=>{vue.unref(h)&&qn("close"),u("close"),d&&(document.documentElement.style.overflow="hidden auto",f.value=[]),sr.value=!1}),tr=()=>{Hn()},cr=()=>{Hn(),m()},{setModalModel:ir,pushUseModalIds:er,popUseModalIds:pr}=vue.inject(MODAL_MODEL,{pushUseModalIds:hr=>{},popUseModalIds:()=>{},setModalModel:(hr,yr)=>{}}),lr=vue.computed(()=>{let hr=c.componentList;const yr=lodashEs.cloneDeep(c.componentList),_r=p(),gr=v(),br={containerMap:_r,combinationMap:gr};d&&(hr=compatibleMobileList({...br,componentList:yr,sourceList:c.allComponentList})),hr=handleScrollCombinations({...br,componentList:hr,sourceList:c.allComponentList});const Er=[];for(const Mr of hr)if(Mr.type==="ecanCirculate"){const Ir=moveToComponentList(_r,vue.unref(yr),Mr.id);Mr.componentList=Ir,Er.push(...Ir.map(Fr=>Fr.id))}if(Er!=null&&Er.length)for(const Mr of Er){const Ir=hr.findIndex(Fr=>Fr.id===Mr);Ir!==-1&&hr.splice(Ir,1)}return hr}),or=()=>{const hr=c.id;let yr=[];const _r=c.componentList;Array.isArray(_r)&&(yr=_r.map(gr=>gr.id),ir(hr,[...new Set(yr)]))},ar=vue.ref(!1),vr={};for(const hr of c.requestList)vr[hr.requestName]=useRequestData(hr);vue.watch(()=>sr.value,async hr=>{if(hr)Kn.value=!1,er(c.id),or(),await vue.nextTick(()=>{Jn(),window.addEventListener("resize",Yn),Zn(),Kn.value=!0}),ur();else{if(y)for(const yr in vr)y(yr,{});pr(),window.removeEventListener("resize",Yn),nr()}});const fr=vue.computed(()=>vue.unref(w)>=1),mr=vue.computed(()=>{let hr="ecan-modal";return vue.unref(fr)&&(hr+=" ecan-full-width-modal"),vue.unref(h)&&(hr+=" ecan-full-modal"),hr});return useOnEvent(c,{showModal:Xn,hideModal:Hn}),{modalRef:Un,containStyle:gn,contentStyle:Vn,getContainer:x,modalStyle:Pn,modalWith:Fn,isFullModal:h,style:zn,visible:sr,showModal:Xn,onOk:tr,onCancel:cr,isFullWidth:fr,wrapClassName:mr,ready:Kn,usedComponentList:lr,isMobile:d,readyIds:f,hasOwn:mn,onComponentReady:hr=>{f.value.push(hr)},formatTitle:Gn,requestLoaded:ar}}}),Modal_vue_vue_type_style_index_0_scoped_d34efac2_lang="",Modal_vue_vue_type_style_index_1_lang="";function _sfc_render$B(c,u,f,d,h,p){const v=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("render"),g=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(g,{getContainer:c.getContainer,wrapClassName:c.wrapClassName,centered:"",visible:c.visible,footer:null,width:c.isFullModal||c.isFullWidth?"100%":c.modalWith,destroyOnClose:c.destroyOnClose,style:vue.normalizeStyle(c.modalStyle),closable:!1,onOk:c.onOk,onCancel:c.onCancel,ref:"modalRef",id:"container_"+c.id},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"contain",ref:"containRef",style:vue.normalizeStyle(c.containStyle)},[c.ready?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"content",style:vue.normalizeStyle(c.contentStyle)},[vue.createElementVNode("div",{class:"header-bar",style:vue.normalizeStyle({backgroundColor:c.backgroundColor,padding:"20px 30px",height:c.isMobile?"62px":""})},[c.formatTitle?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"ant-modal-title",style:vue.normalizeStyle({fontSize:c.titleFontSize,color:c.titleColor})},vue.toDisplayString(c.formatTitle),5)):vue.createCommentVNode("",!0),c.isShowCloseBtn?(vue.openBlock(),vue.createBlock(v,{key:1,class:"close-icon",style:vue.normalizeStyle({color:c.closeBtnColor}),onClick:c.onCancel},null,8,["style","onClick"])):vue.createCommentVNode("",!0)],4),c.usedComponentList.length?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(c.isMobile?"mobile-wrap":"")},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.usedComponentList,(y,x)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:y.id+x},[c.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[c.hasOwn(y,"parentId")&&(c.readyIds.includes(y.parentId)||y.parentId==="")?(vue.openBlock(),vue.createBlock(m,{key:0,component:y,onReady:c.onComponentReady},null,8,["component","onReady"])):vue.createCommentVNode("",!0)],64)):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(y.type),vue.normalizeProps(vue.mergeProps({key:1},y)),null,16))],64))),128))],2)):vue.renderSlot(c.$slots,"default",{key:1},void 0,!0)],4)):vue.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel","id"])}const Modal=_export_sfc$1(_sfc_main$w,[["render",_sfc_render$B],["__scopeId","data-v-d34efac2"]]),EcanModal=withInstall$1(Modal);core$1.use([renderers.CanvasRenderer,charts.LineChart,components$1.ToolboxComponent,components$1.TitleComponent,components$1.LegendComponent,components$1.MarkLineComponent]);const _sfc_main$v=vue.defineComponent({name:"EcanLine",props:{...lineComponentProps},components:{Spin,Echarts,EcanModal},setup(c,{expose:u}){const f=vue.ref(!1),{pageMode:d,fontFamily:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),p=vue.inject("showIndDetail",Xn=>{}),v=vue.inject("usedComponentList",[]),m=vue.ref(),g=vue.ref(!1),y=usePickComponentStyle(c),x=vue.ref([]),Pn=vue.ref([]),b=vue.ref(),j=vue.computed(()=>g.value?ZOOM_FONT_SIZE:12),re=vue.ref({});let vn;const Fn=vue.ref([]),Bn=vue.computed(()=>{const Xn=c.xAxisLabelFormatter,Hn=c.yAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(h)},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,orient:c.toolboxOrient,feature:{myDownload:{show:c.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){useDownloadFile(c.toolboxDownloadUrl)}},myDataZoom:{show:g.value?!1:c.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var tr;g.value=!0,(tr=b.value)==null||tr.showModal()}},myInfo:{show:c.toolboxInfoShow,title:"详情",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){p(c)}}}},title:{text:c.titleText,subText:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},grid:{top:c.gridTop,bottom:c.gridBottom,left:c.gridLeft,right:c.gridRight,containLabel:c.gridContainLabel},color:c.colors,tooltip:{trigger:"axis",textStyle:{fontSize:j.value,color:c.tooltipTextStyleColor},show:c.tooltipShow,formatter:tr=>{var pr;const cr=tr.length;let ir="",er=c.tooltipFormatter;vn=(pr=tr[0])==null?void 0:pr.data,er===""&&(er="{marker} {a} {c}");for(let lr=0;lr<cr;lr++){const{marker:or,seriesName:ar,name:vr,value:fr,data:mr}=tr[lr]||{};if(lr===0){let dr=vr;typeof vr=="string"&&vr[0]==="0"&&!isNaN(+vr)&&(dr=(+vr).toString()),ir+=`${In(Xn,dr)}<br/>`}ir+=hn(er,{textData:{marker:or,name:vr,value:fr,a:ar,b:vr,c:fr||0,...mr}},{useNewline:!0,useSpace:!0}),ir+="<br/>"}return ir},position:c.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:c.isBoundaryGap,data:vue.unref(Pn).map(tr=>{let cr={};return tr&&typeof tr=="object"?cr={...tr}:cr={value:tr},cr}),minInterval:c.xAxisMinInterval,splitLine:{show:c.xAxisSplitLineShow,lineStyle:{color:c.xAxisSplitLineStyleColor},interval:c.xAxisSplitLineInterval},splitArea:{show:c.xAxisSplitAreaShow},axisLabel:{show:c.xAxisLabelShow,color:c.xAxisLabelColor,interval:c.xAxisLabelInterval||0,rotate:c.xAxisLabelRotate,width:c.xAxisLabelWidth,overflow:c.xAxisLabelOverflow,fontSize:c.xAxisLabelFontSize,formatter(tr){return typeof tr=="string"&&tr[0]==="0"&&!isNaN(+tr)&&(tr=(+tr).toString()),In(Xn,tr)}},axisLine:{show:c.xAxisLineShow,lineStyle:{color:c.xAxisLineStyleColor}},axisTick:{show:c.xAxisTickShow},name:c.xAxisName,nameTextStyle:{fontSize:c.xAxisLabelFontSize,color:c.xAxisLabelColor,align:"left"},max:c.xAxisMaxValue||null},yAxis:{type:"value",minInterval:c.yAxisMinInterval,splitLine:{show:c.yAxisSplitLineShow,lineStyle:{color:c.yAxisSplitLineStyleColor,type:c.yAxisSplitLineType}},splitArea:{show:c.yAxisSplitAreaShow},axisLabel:{show:c.yAxisLabelShow,fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,formatter(tr){return In(Hn,tr)}},axisLine:{show:c.yAxisLineAlwaysDisplay,lineStyle:{color:c.yAxisLineStyleColor}},name:c.yAxisName,nameTextStyle:{fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,align:"right"},max:c.yAxisMaxValue||null},legend:{type:c.legendScroll?"scroll":"plain",width:c.legendWidth,height:c.legendHeight,show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,textStyle:{lineHeight:(g.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:g.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:vue.unref(Fn).map(tr=>({name:tr.name,icon:c.legendType})),formatter:tr=>getLegendFormat(c.legendFormatter,{name:tr})},series:vue.unref(x)}}),w=()=>{g.value=!1},{getGlobalModel:J,setGlobalModel:gn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Xn=>{},setGlobalModel:(Xn,Hn)=>{}}),zn=vue.computed(()=>c.isShowMarkLine?{markLine:{data:[{type:c.markLineType}]}}:{}),Vn=(Xn=[],Hn=!1)=>{var pr;let tr;if(c.dataFieldConfigType==="key"){const lr=Hn?c.keyTypeDataFieldNames:null;tr=Mn(Xn,lr)}else if(c.dataFieldConfigType==="value"){const lr=Hn?c.valueTypeDataFieldNames:null;tr=En(Xn,lr)}Pn.value=tr.dimensions,Fn.value=tr.dataset;const cr=tr.dataset,ir=[],er=cr.length;for(let lr=0;lr<er;lr++){const or={};c.shadowColor&&(or.shadowColor=c.shadowColor,or.shadowBlur=c.shadowBlur,or.shadowOffsetY=c.shadowOffsetY,or.shadowOffsetX=c.shadowOffsetX),ir.push({type:"line",...cr[lr],symbolSize:c.symbolSize,smooth:c.smooth,areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:c.colors[lr]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[lr],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...or},...vue.unref(zn)})}x.value=ir,(pr=tr.dataset)!=null&&pr.length?f.value=!1:f.value=!0},Kn=(Xn=[],Hn,tr=!1)=>{var or,ar,vr;const ir=Mn(Xn,tr?Hn:null,!0);if(c.defaultRangeValue&&setDefaultRangeVal({props:c,componentList:vue.unref(v),getGlobalModel:J},ir),(or=ir.dataset)!=null&&or.length){for(const fr of ir.dataset)if((ar=fr.data)!=null&&ar.length)for(const mr of fr.data)(mr.value===null||mr.value===void 0)&&(mr.value=0)}Pn.value=ir.dimensions,Fn.value=ir.dataset;const er=ir.dataset,pr=[],lr=er.length;for(let fr=0;fr<lr;fr++){const mr={};c.shadowColor&&(mr.shadowColor=c.shadowColor,mr.shadowBlur=c.shadowBlur,mr.shadowOffsetY=c.shadowOffsetY,mr.shadowOffsetX=c.shadowOffsetX),pr.push({type:"line",...er[fr],symbolSize:c.symbolSize,smooth:c.smooth,areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:c.colors[fr]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[fr],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...mr},...vue.unref(zn)})}x.value=pr,(vr=ir.dataset)!=null&&vr.length?f.value=!1:f.value=!0};vue.watch(()=>[c.data,c.symbolSize,c.smooth,c.lineStyleWidth,c.areaStyleOpacity,c.areaGradientShow,c.areaGradientColor,c.shadowColor,c.shadowBlur,c.shadowOffsetY,c.shadowOffsetX,c.legendFontSize,c.isShowMarkLine,c.markLineType,c.legendFormatter,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll],([Xn])=>{(c.dataType==="static"||vue.unref(d)==="design")&&Vn(Xn)},{immediate:!0,deep:!0});const Un=vue.ref(!1),Qn=useRequestData(c),Jn=async()=>{var Xn,Hn;if(c.dataType==="request")try{Un.value=!0;const tr=await Qn();Vn((Hn=(Xn=tr==null?void 0:tr.data)==null?void 0:Xn.data)==null?void 0:Hn.rows,!0)}catch(tr){console.error(tr)}finally{Un.value=!1}},Yn=useEmitEvent(c);gn(c.id,{type:c.type,RECORD:""});const Zn=Yn("click",Xn=>{const Hn=J(c.id);gn(c.id,{...Hn,type:c.type,RECORD:c.tooltipShow?vn:Xn.data})}),nr=Xn=>{m.value.chart.containPixel("grid",[Xn.offsetX,Xn.offsetY])&&Zn()};c.tooltipShow?re.value["zr:click"]=nr:re.value.click=Zn;const sr=Xn=>{var pr;const{columns:Hn=[],rows:tr=[]}=((pr=Xn==null?void 0:Xn.data)==null?void 0:pr.data)??{};let cr;Hn.length>0&&(cr={name:Hn[0],types:Hn.slice(1).map(lr=>({label:lr,value:lr}))});const{leftAxisList:ir=[]}=c.graphicConfig,er=ir.filter(lr=>lr.show).map(lr=>lr.label);for(const lr of tr)if(lr)for(const or in lr)typeof lr[or]=="string"&&er.includes(or)&&!isNaN(parseFloat(lr[or]))&&(lr[or]=parseFloat(lr[or]));Kn(tr,cr,!0)},ur=useIndicatorData(c,Xn=>{c.isViewRedrawing&&m.value.clear(),sr(Xn)}),Gn=async()=>{try{Un.value=!0;const Xn=await ur();sr(Xn)}catch(Xn){console.error(Xn)}finally{Un.value=!1}},Wn=async()=>{switch(c.dataType){case"indicator":await Gn();break;case"request":await Jn();break}};useOnEvent(c,{refreshData:Wn,resetRecord:()=>{const Xn=c.id,Hn=J(Xn);gn(Xn,{...Hn,RECORD:""})},click:Zn});const{setRequest:qn}=vue.inject(REQUEST_MODEL,{setRequest:Xn=>{}});return typeof qn=="function"&&qn({id:c.id,requestFn:Wn,sortNum:c.requestSort}),u({refreshData:Wn}),{option:Bn,style:y,click:Zn,loading:Un,onClose:w,ecanModal:b,eventObj:re,echartRef:m,emptyData:f}}}),Line_vue_vue_type_style_index_0_lang="",Line_vue_vue_type_style_index_1_scoped_dd12eb06_lang="";function _sfc_render$A(c,u,f,d,h,p){const v=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[c.noDataTip&&c.emptyData?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"empty-wrap",style:vue.normalizeStyle({color:c.tipTextColor,fontSize:c.tipTextFontSize})},[vue.createElementVNode("span",null,vue.toDisplayString(c.tipText),1)],4)):(vue.openBlock(),vue.createBlock(v,vue.mergeProps({key:1,ref:"echartRef",option:c.option,autoresize:""},vue.toHandlers(c.eventObj)),null,16,["option"]))]),_:1},8,["spinning"]),vue.createVNode(g,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:c.onClose},{default:vue.withCtx(()=>[vue.createVNode(m,{class:"spin-wrap",spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(v,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Line=_export_sfc$1(_sfc_main$v,[["render",_sfc_render$A],["__scopeId","data-v-dd12eb06"]]),EcanLine=withInstall$1(Line),_sfc_main$u=vue.defineComponent({name:"TrendModal",components:{EcanLine},setup(c,{expose:u}){const f=vue.ref(!1),d=vue.ref(),h=vue.ref(),p=async({data:m,pageConfig:g,unitText:y})=>{var x;if(m){const Pn=nanoid(6),b={source:"INDICATOR_LIB",dataSourceId:"",idxLibMode:"",classificationList:[{id:"3f5bda70a08a442085857adb7fc547de",indexCode:null,indexCodeNum:null,title:"日期",name:"the_date",label:"日期",typeGuid:"the_date",genericType:"DATE",hrpIndexComplexid:"the_date",scope:"BUILT_IN_DIM",fromTable:"hrp_index_complex",parentId:"3f5bda70a08a442085857adb7fc547de",show:!0,edit:!1,dataTo:"0",dateFormat:"YYYY-MM",dataSetParams:{}}],leftAxisList:((x=m==null?void 0:m.graphicConfig)==null?void 0:x.indicators)||[]};d.value={...lodashEs.cloneDeep(lineProps),id:Pn,keyName:`折线图_${Pn}`,position:"relative",top:0,left:0,width:parseFloat(g.width)*.57+"px",height:parseFloat(g.height)*.4+"px",dataType:"indicator",tooltipFormatter:"{marker} {a} {c}"+y,graphicConfig:b},f.value=!0,vue.nextTick(()=>{vue.unref(h).refreshData()})}},v=()=>document.querySelector("#ProviderConfig > #container")||document.body;return u({showModal:p}),{visible:f,componentConfig:d,lineRef:h,getContainer:v}}}),TrendModal_vue_vue_type_style_index_0_scoped_eb1432d2_lang="",_withScopeId$5=c=>(vue.pushScopeId("data-v-eb1432d2"),c=c(),vue.popScopeId(),c),_hoisted_1$i=_withScopeId$5(()=>vue.createElementVNode("div",{class:"modal-title"},"趋势图",-1));function _sfc_render$z(c,u,f,d,h,p){const v=vue.resolveComponent("ecan-line"),m=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(m,{visible:c.visible,"onUpdate:visible":u[0]||(u[0]=g=>c.visible=g),width:"60%",getContainer:c.getContainer,footer:null,destroyOnClose:!0,bodyStyle:{maxHeight:"60vh",overflow:"auto",padding:"20px 24px 24px"}},{title:vue.withCtx(()=>[_hoisted_1$i]),default:vue.withCtx(()=>[c.componentConfig?(vue.openBlock(),vue.createBlock(v,vue.mergeProps({key:0},c.componentConfig,{ref:"lineRef"}),null,16)):vue.createCommentVNode("",!0)]),_:1},8,["visible","getContainer"])}const TrendModal=_export_sfc$1(_sfc_main$u,[["render",_sfc_render$z],["__scopeId","data-v-eb1432d2"]]),_sfc_main$t=vue.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,components:{ATable:antDesignVue.Table,BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1,CloseOutlined:CloseOutlined$1,IndicatorDetailModal,TrendModal},props:{...providerConfigComponentProps,pageId:{type:String,default:""},customId:{type:String,default:"ProviderConfig"},fixedHeight:{type:String,default:"0px"}},setup(c,{expose:u,emit:f}){c.pageId||useHrefParamsToGlobalVariables();const d=.57,h=.6,p=.97,v=.9,m=vue.ref(),g=vue.ref(),y=vue.computed(()=>INDICATOR_URL),x=vue.computed(()=>hn(c.contextRequestUrl)),Pn=vue.computed(()=>c.pageMode),b=vue.computed(()=>c.theme),j=vue.computed(()=>c.width),re=vue.computed(()=>c.height),vn=vue.computed(()=>c.pageFontFamily),Fn=vue.computed(()=>c.fixedHeight?parseFloat(c.fixedHeight):0),Bn=vue.computed(()=>c.isCompatible),w=vue.computed(()=>c.variableList),J=vue.computed(()=>!!navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)),gn=vue.ref(),zn=vue.ref({}),Vn=vue.ref(),Kn=vue.ref(!1),Un=vue.ref(!1),Qn=vue.ref([]),Jn=vue.ref([]),Yn=vue.ref({}),Zn=()=>{gn.value.setAttribute("datav-theme",c.theme)},nr=vue.ref({currentYmd:dayjs().format("YYYY-MM-DD"),currentYear:dayjs().format("YYYY"),currentMonth:dayjs().format("MM"),currentDay:dayjs().format("DD")}),sr=vue.computed(()=>{const xr={};if(vue.unref(w))for(const Cr of vue.unref(w))xr[Cr.label]=Cr.value;return{$page:{...vue.unref(nr),...xr}}}),ur=vue.computed(()=>{let xr="ind-detail-modal";return Kn.value&&(xr+=" full"),vue.unref(b)==="darkBlue"&&(xr+=" darkBlue"),xr});vue.provide(GLOBAL_VARIABLE,{globalVariable:sr});const Gn=vue.inject("usedComponentList",[]),Wn=vue.inject("componentList",[]);vue.watch(sr,()=>{f("setGlobalVar",vue.unref(nr))},{deep:!0,immediate:!0});const Rn=vue.computed(()=>{const xr=[];for(const wr of vue.unref(Gn))wr.type==="ecanModal"?xr.push(...wr.componentList):xr.push(wr);return xr});vue.watch(()=>c.theme,()=>{Zn()}),vue.onMounted(()=>{Zn()});const qn=vue.computed(()=>{const xr=[],wr=vue.unref(Wn).filter(Cr=>Cr.type==="ecanModal");for(const Cr of wr)Cr!=null&&Cr.requestList&&xr.push(...Cr.requestList);return[...xr,...c.requestList]}),Xn=xr=>Object.prototype.toString.call(xr)==="[object Object]",Hn=xr=>{const wr=xr.split(".");let Cr=vue.unref(sr);for(const Ar of wr)if(Cr&&Xn(Cr))Cr=Cr[Ar];else{Cr="";break}return Cr},tr=vue.ref("");vue.provide(GLOBAL_CONFIG,{contextRequestUrl:x,pageMode:Pn,theme:b,touchEventId:tr,width:j,height:re,fontFamily:vn,requestList:qn,isCompatible:Bn,fixedHeight:Fn,getGlobalVar:Hn});const cr=vue.ref({height:"100%",overflow:c.pageMode==="design"?"":"hidden"});vue.provide("setPageHeight",xr=>{let wr=0;xr==="auto"?wr=xr:(wr=xr.heightScale,Yn.value=xr),(!Bn.value||!J.value)&&(wr=parseFloat(re.value)*wr+"px"),cr.value.height=wr}),vue.provide("isMobile",J.value),vue.provide("getContainerMap",()=>c.containerMap),vue.provide("getCombinationMap",()=>c.combinationMap),vue.provide("templateOperate",{pageId:c.pageId,templateEmit:f,setTemplateData:xr=>{var wr;if(xr!=null&&xr.pageId){const{componentId:Cr,...Ar}=xr;(wr=window.config)!=null&&wr.urlParams||(window.config.urlParams={}),window.config.urlParams[xr.pageId]=Ar,f("templateChange",xr)}}});const ir=vue.ref(),er=new Map,pr=()=>er,lr=xr=>{let wr=er.get(xr);if(!wr){const Cr=vue.unref(Wn).find(Ar=>Ar.keyName===xr);Cr&&(wr=er.get(Cr.id))}return wr},or=(xr,wr)=>{var Cr;if(ir.value=wr,er.set(xr,wr),!c.pageId){const Ar=vue.unref(Gn).find(Tr=>Tr.id===xr);Ar&&((Cr=window.config)!=null&&Cr.record||(window.config.record={}),window.config.record[Ar.keyName]=wr)}},ar=()=>{ir.value=null},vr=xr=>{let wr=xr;if(wr){const Cr=xr.match(/\{(.+?)\}/g);if(Cr!=null&&Cr.length){let Ar=Cr[0].slice(1,-1).trim();const Tr=Ar.match(/\[(.+?)\]/g);let Dr="";Tr!=null&&Tr.length&&(Ar=Ar.replace(Tr[0],""),Dr=Tr[0].slice(1,-1).trim());const Lr=vue.unref(Rn).find($r=>$r.keyName===Ar);if(Lr){const $r=lr(Lr.id),{type:qr,value:Wr,RECORD:jr,recordData:Kr}=$r||{};yn(qr,MODEL_KEY_LIST)?wr=jr[Dr]:yn(qr,"select")?Kr[Dr]?wr=Kr[Dr]:wr=vue.unref(Wr):yn(qr,["rangePicker","date"])?dayjs.isDayjs(vue.unref($r[Dr]))?wr=vue.unref($r[Dr]).format($r.format):wr=vue.unref($r[Dr]):wr=Wr}else{const $r=window.config.requestParams||{},qr=window.location.search.slice(1).split("&"),Wr={};for(const Kr of qr)if(Kr!=null&&Kr.includes("=")){const Xr=Kr.split("=");Wr[Xr[0]]=Xr[1]||""}wr={...Wr,...$r}[Ar]||""}}}return wr},fr=new Map,mr={},dr=async(xr,wr)=>{var Lr;const{requestName:Cr}=xr,Ar=await useRequestData({...xr,projectRequestUrl:vue.unref(x),getModel:lr})(),Tr=((Lr=Ar==null?void 0:Ar.data)==null?void 0:Lr.data)||{};xr.requestKeyName&&(nr.value[xr.requestKeyName]=Tr);const Dr=fr.get(Cr);if(Dr!=null&&Dr.length&&(!wr||mr[Cr])){for(const $r of Dr)$r(Tr);wr||fr.delete(Cr)}},hr=(xr,wr)=>{mr[xr]&&(clearInterval(mr[xr]),delete mr[xr],fr.delete(xr));const Cr=vue.unref(Rn).filter(Tr=>Tr.dataType==="request"&&!Tr.openCustomRequestData&&Tr.customRequestName===xr),Ar=fr.get(xr)||[];if((Cr==null?void 0:Cr.length)>Ar.length&&(Ar.push(wr),fr.set(xr,Ar),(Cr==null?void 0:Cr.length)===Ar.length)){const Tr=vue.unref(qn).find(Dr=>Dr.requestName===xr);Tr&&(Tr!=null&&Tr.isOpenRequestTimer&&(Tr!=null&&Tr.requestInterval)?(dr(Tr,!0),mr[xr]=setInterval(()=>{dr(Tr,!0)},Tr.requestInterval*1e3)):dr(Tr))}};vue.provide(GLOBAL_MODEL,{getGlobalModel:lr,setGlobalModel:or,getAllGlobalModel:pr,clearInteractiveData:ar,getRecordValueByKeyName:vr,hanldePageRequestData:hr,interactiveData:ir});const yr=vue.ref({}),_r=(xr,wr)=>{yr.value[xr]=wr};vue.provide(LOADED_DATA,{loadedData:yr,setLoadedData:_r});const gr=[],br=()=>{gr.pop()},Er=xr=>{gr.push(xr)},Mr=new Map,Ir=xr=>Mr.get(xr),Fr=(xr,wr)=>{Mr.set(xr,wr)};vue.provide(MODAL_MODEL,{popUseModalIds:br,pushUseModalIds:Er,getModalModel:Ir,setModalModel:Fr});const Or=mitt(),Nr=new Set,zr=(xr,wr)=>{Nr.add(xr),Or.on(xr,Cr=>{const{eventName:Ar,params:Tr}=Cr;return typeof wr[Ar]=="function"&&wr[Ar](Tr)}),vue.onBeforeUnmount(()=>{Rr(xr)})},Rr=xr=>{Nr.delete(xr),Or.off(xr)},Vr=(xr,wr,Cr={})=>{if(xr==="PAGE"){const Ar=gr.length;let Tr=[];if(Ar===0)Tr=[...Nr];else{const Dr=gr[Ar-1];Tr=[...Ir(Dr)]}Tr.forEach(Dr=>{Or.emit(Dr,{eventName:wr,params:Cr})})}else Or.emit(xr,{eventName:wr,params:Cr})};vue.provide(EVENT_BUS,{onEvent:zr,offEvent:Rr,emitEvent:Vr});const Hr=vue.ref(0),Gr=()=>{Hr.value=vue.unref(Hr)+1};vue.provide(GLOBAL_TOKEN,{requestToken:Gr});const Ur=new Map,Yr=new Map,Qr=({requestFn:xr=()=>{},sortNum:wr=0,id:Cr=""})=>{if(Ur.has(wr)){const Ar=Ur.get(wr);Ar==null||Ar.push(xr)}else Ur.set(wr,[xr]);Yr.set(Cr,xr)},ri=xr=>new Promise((wr,Cr)=>{const Ar=[];for(const Tr of xr)Ar.push(new Promise(async Dr=>{await Tr(),Dr()}));Promise.all(Ar).then(Tr=>{wr(Tr)}).catch(Tr=>{Cr(Tr)})}),ti=xr=>new Promise(async(wr,Cr)=>{if(xr){if(typeof xr=="string"){const Ar=Yr.get(xr);if(typeof Ar=="function"){const Tr=request.interceptors.response.use(Dr=>(wr(Dr),Dr),Dr=>(Cr(Dr),Promise.reject(Dr)));Ar(),request.interceptors.response.eject(Tr)}}}else{const Ar=Array.from(Ur);Ar.sort((Dr,Lr)=>Lr[0]-Dr[0]);const Tr=Ar.length;try{c.pageMode!=="design"&&vue.unref(Hr)>0;for(let Dr=0;Dr<Tr;Dr++){const Lr=Ar[Dr][1];await ri(Lr)}}catch(Dr){console.error(Dr)}finally{Ur.clear(),wr(null)}}});vue.provide(REQUEST_MODEL,{setRequest:Qr,touchRequest:ti});const ai=()=>{Or.emit(REFRESH_PAGE)};vue.provide(REFRESH_PAGE,{emitRefreshPage:ai});const vi=xr=>{Or.on(REFRESH_PAGE,()=>xr()),vue.onMounted(()=>{Or.off(REFRESH_PAGE)})},hi=vue.ref({}),oi=vue.reactive({keyName:"",visible:!1,dataSource:[],columns:[],title:"",pagination:{current:1,pageSize:10,total:0,showSizeChanger:!1,showQuickJumper:!1,showTotal:xr=>`共 ${xr} 条数据`}});vue.provide(All_COMPONENT_RES_DATA,{allComponentResData:hi});const xi={borderColor:"#666E8D",headerBgColor:"#06347C",headerColor:"#DEE5EF",bodyBgColor:"#112861",bodyColor:"#B2CCE7",indicatorsHeaderBgColor:"#184273",indicatorsHeaderColor:"#FFFFFF",indicatorsBodyBgColor:"#184273",indicatorsBodyColor:"#FFFFFF",aggregateBgColor:"#0F4F9B",aggregateColor:"#FFFCFC",sortNotActiveColor:"#B0B0B0",sortActiveColor:"#00CCFF",dropDownMenuBgColor:"#08154F",dropDownMenuColor:"#B2C3DD",dropDownMenuHightLightColor:"#2E68CF"},Ci=async xr=>{var Kr,Xr,ci,ui,si;if(J.value||c.drillingMode==="default")return;let wr=lodashEs.cloneDeep(xr).props;if(wr.parentId){const Jr=vue.unref(Gn).find(ei=>ei.id===wr.parentId);if((Jr==null?void 0:Jr.dataType)==="indicator")wr=lodashEs.cloneDeep(Jr);else return}oi.keyName=wr==null?void 0:wr.keyName;const Cr=((Kr=window==null?void 0:window.config)==null?void 0:Kr.indicatorToken)||"",Ar=Br(),Tr=(wr==null?void 0:wr.graphicConfig)||{},{leftAxisList:Dr=[],rightAxisList:Lr=[],indicators:$r=[]}=Tr,qr=Dr.concat(Lr).concat($r);if(!(qr!=null&&qr.length))return;const Wr=qr.filter(Jr=>Jr.show).map(Jr=>Jr.label);Wr!=null&&Wr.length&&(oi.title=`下钻:${Wr.join("、")}`);const jr=Dn({...wr,globalModel:pr()});if(c.drillingMode==="pivotTable"){const Jr=await ki({cpntProps:wr,pageId:Ar,formatParams:jr,classifications:[],indicatorToken:Cr});Jn.value=((Xr=Jr==null?void 0:Jr.data)==null?void 0:Xr.data)||[];const ei=nanoid(6);Tr.queryColumnList||(Tr.queryColumnList=[]),Tr!=null&&Tr.classificationList&&(Tr.queryColumnList=Tr.classificationList,delete Tr.classificationList),Tr!=null&&Tr.seriesList&&(Tr.queryColumnList=Tr.queryColumnList.concat(Tr.seriesList),delete Tr.seriesList),Tr.indicators=lodashEs.cloneDeep(qr||[]),delete Tr.leftAxisList,delete Tr.rightAxisList;const Mi={};if(yn(wr.type,"indexPanel")){const Fi=Tr.indicators.find(fi=>fi.show),Ai=vue.unref(Jn).slice(0,2).sort((fi,yi)=>fi.typeGuid-yi.typeGuid).map(fi=>({...fi,show:!0,edit:!1,dataTo:"0",dataSetParams:{}}));Ai!=null&&Ai.length&&(Tr.queryColumnList=Ai);const Ti=Pr(wr);if(Ti&&Fi){const{label:fi}=Fi;Mi.defaultConfig={indexFormatConfig:{[fi]:{fieldName:fi,indicatorKey:fi,position:"right",unit:Ti}}}}}(ci=Tr.queryColumnList)!=null&&ci.length||(Tr.queryColumnList=[{id:"3f5bda70a08a442085857adb7fc547de",indexCode:null,indexCodeNum:null,title:"日期(内置)",name:"the_date",label:"日期(内置)",typeGuid:"the_date",genericType:"DATE",hrpIndexComplexid:"the_date",scope:"BUILT_IN_DIM",fromTable:"hrp_index_complex",parentId:"3f5bda70a08a442085857adb7fc547de",show:!0,edit:!1,dataTo:"0",dataSetParams:{}}]);const Bi={...lodashEs.cloneDeep(pivotTableProps),id:ei,keyName:`透视表_${ei}`,position:"relative",top:0,left:0,width:parseFloat(c.width)*d+"px",height:parseFloat(c.height)*h+"px",pageId:Ar,indicatorToken:Cr,context:CONTEXT,globalModel:pr(),graphicConfig:Tr,pageConfig:c,...Mi};vue.unref(b)==="darkBlue"&&(Bi.styleConfig=xi),zn.value=Bi,oi.visible=!0,vue.nextTick(()=>{vue.unref(Vn).refreshData()})}else if(c.drillingMode==="normalTable"){Pi(jr,lodashEs.cloneDeep(xr.props));let Jr=(jr==null?void 0:jr.classification)||(jr==null?void 0:jr.classifications)||[];Array.isArray(Jr)||(Jr=[Jr]);try{Un.value=!0,oi.visible=!0;const ei=await ki({cpntProps:wr,pageId:Ar,formatParams:jr,classifications:Jr,indicatorToken:Cr}),Mi=((ui=ei==null?void 0:ei.data)==null?void 0:ui.data)||[],Bi=Jr.map(li=>({...li,calcType:"COLUMN"}));for(const li of Mi)Bi.push({calcType:"COLUMN",columnName:li.name,label:li.name,show:!0,typeGuid:li.typeGuid});jr.queryColumns=Bi,jr.layer="1",jr.plugin="1",delete jr.classification,delete jr.classifications;const{url:Fi,...Ai}=jr||{},Ti=await request({url:`${vue.unref(y)}${Fi}`,method:"post",headers:{Authentication:Cr,operateContext:CONTEXT},data:{...Ai,pageId:Ar}}),{columns:fi=[],rows:yi=[]}=((si=Ti==null?void 0:Ti.data)==null?void 0:si.data)||{};oi.columns=fi.filter(li=>!!li).map(li=>{let Ni=li;const Ri=Mi.find(zi=>zi.name===li);return Ri&&(Ni=Ri.title||Ri.label),{title:Ni,dataIndex:li,width:"120px"}}),oi.dataSource=(Array.isArray(yi)?yi:[yi]).map(li=>({...li,uuid:nanoid(6)})),oi.pagination.total=(yi==null?void 0:yi.length)||0,Un.value=!1}catch(ei){console.error(ei)}}vue.nextTick(()=>{Si(!0),pi(!0)})},Si=xr=>{const wr=document.querySelector(".ind-detail-modal .ant-modal-header");wr&&(xr?wr.addEventListener("dblclick",gi):wr.removeEventListener("dblclick",gi))},pi=xr=>{const wr=document.querySelector(".ind-detail-modal .ant-modal-header");if(wr)if(xr)wr.addEventListener("mousedown",wi);else{const Cr=wr.parentElement;Cr&&(Cr.style.left="",Cr.style.top=""),wr.removeEventListener("mousedown",wi)}};function wi(xr){dragModalAction(xr,".ind-detail-modal .ant-modal-header")}const ki=async({cpntProps:xr,pageId:wr,formatParams:Cr,classifications:Ar,indicatorToken:Tr})=>{var Dr,Lr,$r;return await request({url:`${vue.unref(y)}/diagram/obtainDrillAbleDimensionOptions`,method:"post",headers:{Authentication:Tr,operateContext:CONTEXT},data:{source:((Dr=xr==null?void 0:xr.graphicConfig)==null?void 0:Dr.source)||"INDICATOR_LIB",pageId:wr,indicatorList:(Cr==null?void 0:Cr.indicatorList)||[],classifications:Ar,dataSourceId:((Lr=xr==null?void 0:xr.graphicConfig)==null?void 0:Lr.dataSourceId)||""},signal:(($r=window.controller)==null?void 0:$r.signal)||""})},mi={IN:"属于",NOT_IN:"不属于",LIKE:"包含",NOT_LIKE:"不包含","LIKE%":"开头是","%LIKE":"结尾是",EQUAL:"等于",LESS:"小于",LESS_EQUAL:"小于等于",GREATER:"大于",GREATER_EQUAL:"大于等于",NOT_EQUAL:"不等于"};function di(xr,wr,Cr){const Ar=[];for(const Tr of xr)Tr[wr]?Ar.push(...di(Tr[wr],wr,Cr)):Tr.filter?Ar.push({...Tr.filter,label:Tr.label}):(!Cr||Tr.dataType!=="component"&&!(Tr.fieldValue.startsWith("${")&&Tr.fieldValue.endsWith("}")))&&Ar.push(Tr);return Ar}const Pi=(xr,wr)=>{const{leftAxisList:Cr=[],rightAxisList:Ar=[],indicators:Tr=[],classificationList:Dr=[],rowHeaderList:Lr=[],dimensionList:$r=[],seriesList:qr=[],queryColumns:Wr=[],indexLibColumns:jr=[]}=wr.graphicConfig,Xr=Cr.concat(Ar).concat(Tr).concat(Dr).concat(Lr).concat($r).concat(qr).concat(Wr).concat(jr).filter(si=>si.conditions),ci=di(Xr,"conditions",!0),ui=di(xr.sqlConditions,"sqlConditions",!1);Qn.value=ci.concat(ui).filter(si=>si.label).map(si=>{let Jr=si.fieldValue;if(Jr){const ei=Jr.split(",");(ei==null?void 0:ei.length)>3&&(Jr=ei.slice(0,3).join(",")+"等")}else Jr='""';return`${si.label} ${mi[si.rule]} ${Jr}`})||[]},gi=()=>{Kn.value=!Kn.value,vue.nextTick(()=>{Kn.value?(vue.unref(zn).width=parseFloat(c.width)*p+"px",vue.unref(zn).height=parseFloat(c.height)*v+"px",pi(!1)):(vue.unref(zn).width=parseFloat(c.width)*d+"px",vue.unref(zn).height=parseFloat(c.height)*h+"px",pi(!0))})},Ei=()=>{Kn.value=!1,Si(!1),pi(!1)},Ii=({type:xr,data:wr})=>{if(xr==="11"&&wr){const{indicatorList:Cr=[],queryColumns:Ar=[]}=wr,Dr=Cr.concat(Ar).filter(qr=>qr.conditions||qr.filter),Lr=di(Dr,"conditions",!0),$r=di(wr.sqlConditions,"sqlConditions",!1);Qn.value=Lr.concat($r).filter(qr=>qr.label).map(qr=>{const Wr=vue.unref(Jn).find(Kr=>Kr.label===qr.label);let jr=qr.fieldValue;if(jr&&typeof jr=="string"){const Kr=jr.split(",");(Kr==null?void 0:Kr.length)>3&&(jr=Kr.slice(0,3).join(",")+"等")}else jr||(jr='""');return`${(Wr==null?void 0:Wr.title)||qr.label} ${mi[qr.rule]} ${jr}`})||[]}},_i=xr=>{const{id:wr,data:Cr}=xr;Cr.success&&(hi.value[wr]=(Cr==null?void 0:Cr.data)||{})},ni=(xr,wr)=>{switch(xr){case"SHOW_INDICATOR_DETAIL_MODAL":Ci(wr);break;case"SAVE_COMPONENT_RES_DATA":_i(wr);break}};vue.provide(COMMON_OPERATE,{operateAction:ni});const ii=()=>document.querySelector("#ProviderConfig > #container")||document.body,Di=xr=>{oi.pagination.current=xr.current};vue.watchEffect(()=>{var xr;if((xr=vue.unref(Gn))!=null&&xr.length&&vue.unref(Pn)!=="design"){const{jumpType:wr,jumpTime:Cr,jumpPage:Ar,jumpLink:Tr}=c;if(Cr!=null&&Cr.value){let Dr=0;switch(Cr==null?void 0:Cr.suffix){case"hours":Dr=Cr.value*60*60*1e3;break;case"minute":Dr=Cr.value*60*1e3;break;case"seconds":Dr=Cr.value*1e3;break}setTimeout(()=>{let Lr="";wr==="page"&&Ar?Lr=usePageUrl(vue.unref(Pn),Ar):wr==="link"&&Tr&&(Lr=Tr),Lr=hn(Lr),window.open(Lr,"_self")},Dr)}}});const Sr=xr=>{var wr;vue.unref(m).showModal({data:xr,indicatorUrl:vue.unref(y),indicatorToken:((wr=window==null?void 0:window.config)==null?void 0:wr.indicatorToken)||"",context:CONTEXT,pageId:Br()})},kr=xr=>{vue.unref(g).showModal({data:xr,pageConfig:c,unitText:Pr(xr)})},Pr=xr=>{let wr="",Cr="";const{componentConfig:Ar}=xr;for(const Dr in Ar)if(Ar[Dr].key==="currentValue"){Cr=Dr;break}const Tr=vue.unref(Wn).find(Dr=>Dr.id===Cr);return Tr!=null&&Tr.unitText&&(wr=Tr.unitText),wr};vue.provide("showIndDetail",Sr);function Br(){var wr;let xr=((wr=window==null?void 0:window.config)==null?void 0:wr.pageId)||"";if(!xr){const{pathname:Cr}=window==null?void 0:window.location;if(Cr){const Ar=Cr.split("/");Ar!=null&&Ar.length&&(xr=Ar[Ar.length-1])}}return xr}return vue.onBeforeUnmount(()=>{Ur==null||Ur.clear(),Yr==null||Yr.clear()}),u({touchRequest:ti,getGlobalModel:lr,onRefreshPage:vi,emitEvent:Vr,getRecordValueByKeyName:vr,showIndDetail:Sr,showTrend:kr,props:c,systemVariable:nr}),{providerConfig:gn,configStyle:cr,indDetailInfo:oi,pivotTableConfig:zn,indicatorUrl:y,pivotTableRef:Vn,isIndFullScreen:Kn,wrapClassName:ur,theme:b,detailLoading:Un,conditionInfo:Qn,indDetailModalRef:m,trendModalRef:g,allDimensions:Jn,scaleValue:Yn,getContainer:ii,handleTableChange:Di,toggleFullScreen:gi,onDetailCancel:Ei,onPivotTableChange:Ii}}}),ProviderConfig_vue_vue_type_style_index_0_scoped_616784c1_lang="",ProviderConfig_vue_vue_type_style_index_1_lang="",_hoisted_1$h=["id"],_hoisted_2$8=["title"],_hoisted_3$4={key:0,class:"spin-container"},_hoisted_4$3=["title"];function _sfc_render$y(c,u,f,d,h,p){const v=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("switcher-outlined"),g=vue.resolveComponent("border-outlined"),y=vue.resolveComponent("pivot-table"),x=vue.resolveComponent("a-spin"),Pn=vue.resolveComponent("a-table"),b=vue.resolveComponent("a-modal"),j=vue.resolveComponent("indicator-detail-modal"),re=vue.resolveComponent("trend-modal");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",{class:"provider-config-container",id:c.customId,ref:"providerConfig",style:vue.normalizeStyle({...c.configStyle,fontFamily:c.pageFontFamily})},[vue.renderSlot(c.$slots,"default",{},void 0,!0)],12,_hoisted_1$h),vue.createVNode(b,{visible:c.indDetailInfo.visible,"onUpdate:visible":u[1]||(u[1]=vn=>c.indDetailInfo.visible=vn),width:"60%",getContainer:c.getContainer,footer:null,destroyOnClose:!0,"wrap-class-name":c.wrapClassName,onCancel:c.onDetailCancel},{title:vue.withCtx(()=>[vue.createElementVNode("div",{class:"detail-modal-title",title:c.conditionInfo.join("、")},vue.toDisplayString(c.indDetailInfo.title)+" "+vue.toDisplayString(c.conditionInfo.join("、")),9,_hoisted_2$8)]),closeIcon:vue.withCtx(()=>[vue.createVNode(v,{class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"])]),default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"zoom-btn",onClick:u[0]||(u[0]=(...vn)=>c.toggleFullScreen&&c.toggleFullScreen(...vn))},[c.isIndFullScreen?(vue.openBlock(),vue.createBlock(m,{key:0,class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"])):(vue.openBlock(),vue.createBlock(g,{key:1,class:vue.normalizeClass(["modal-icon",c.theme])},null,8,["class"]))]),c.drillingMode==="pivotTable"?(vue.openBlock(),vue.createElementBlock("div",{key:0,style:vue.normalizeStyle({position:"relative",width:c.pivotTableConfig.width,height:c.pivotTableConfig.height})},[vue.createVNode(y,vue.mergeProps({ref:"pivotTableRef"},c.pivotTableConfig,{pageMode:c.pageMode,theme:c.theme,fullMode:!1,allowDrill:!0,showFullScreen:!1,indicatorUrl:c.indicatorUrl,relateKeyName:c.indDetailInfo.keyName,allDimensions:c.allDimensions,scaleValue:c.scaleValue,enlargeContainer:"#norPageConfig",onTableChange:c.onPivotTableChange}),null,16,["pageMode","theme","indicatorUrl","relateKeyName","allDimensions","scaleValue","onTableChange"])],4)):c.drillingMode==="normalTable"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[c.detailLoading?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$4,[vue.createVNode(x,{size:"large"})])):(vue.openBlock(),vue.createBlock(Pn,{key:1,scroll:{x:"max-content",y:c.isIndFullScreen?"100vh":"60vh"},"row-key":vn=>vn.uuid,columns:c.indDetailInfo.columns,"data-source":c.indDetailInfo.dataSource,pagination:c.indDetailInfo.pagination,onChange:c.handleTableChange},{headerCell:vue.withCtx(({title:vn})=>[vue.createElementVNode("div",{class:"detail-table-header-cell",title:vn},vue.toDisplayString(vn),9,_hoisted_4$3)]),_:1},8,["scroll","row-key","columns","data-source","pagination","onChange"]))],64)):vue.createCommentVNode("",!0)]),_:1},8,["visible","getContainer","wrap-class-name","onCancel"]),vue.createVNode(j,{ref:"indDetailModalRef"},null,512),vue.createVNode(re,{ref:"trendModalRef"},null,512)],64)}const ProviderConfig=_export_sfc$1(_sfc_main$t,[["render",_sfc_render$y],["__scopeId","data-v-616784c1"]]),EcanProviderConfig=withInstall$1(ProviderConfig),textProps={...props,name:"文本",keyName:"文本",type:"ecanText",width:"100px",height:"40px",text:"文字",lineHeight:"18px",color:"#333",variableColor:"#f00",fontSize:"14px",fontFamily:"",fontWeight:400,textShadow:"",justifyContent:"center",alignItems:"center",variableFontSize:"14px",variableDefaultValue:"0",format:"",target:"self",href:"",linkPage:"",data:{},percentageSide:"left",increaseColor:"",declineColor:"",minusSignShow:!0,unitShow:!0,unitText:"",unitFontSize:"14px",unitFontWeight:400,unitColor:"#333",unitTop:"",unitLeft:"",graphicConfig:{},targetShow:!1,targetRule:"",targetValue:"",notExpectColor:"",gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",openCustomRequestData:!0,customRequestName:"",customRequestField:"",showEllipsis:!1,showAnimation:!1,transParams:[],exceedConfig:"",targetTemplate:"",dataSetchecked:!1,titleContent:"",titleBackgroundColor:"#ffffff",titleFontColor:"#000000",isMarkDown:!1,isContentMarkDown:!1,parentId:""},textComponentProps=transformToComponentProps(textProps),textEvents=["refreshData","click","valueChange"],goUp="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD/WzT/WjP/WDD/WzT/WzP/WzT/WzT/WzT/WjT/WzT/WDT/YED/WzT/WzT/WjT/YED/WzT/WzT/WzT/XDT/WzT/WjX/WjP/XDT/XDT/WTL/Tif/WzReH8z5AAAAHHRSTlMA8RgS9W9YHbePZyME5sVjCP7bzcCxgndOQC4GFJJgKwAAAIJJREFUKM+Nkd0OgyAMRjvqcLA53fzXvv9zaokmxq8mnsue5ACFDjiy+XyjLZ7yyK35OxN5mSFZKa2QojEIKRhrZKM0QnsMQxirmJ0kBubTIZvAtUyiFAT4JFoUIYmIotZ5xjDPfyoCAV16nMPdFir8xZ16nM//tePtXw2ODOJY0V0WqQwM2rgKrU0AAAAASUVORK5CYII=",goDown="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDIyLTA3LTIyVDA5OjM1OjE5KzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHN0RXZ0OndoZW49IjIwMjItMDctMjJUMDk6MzU6MTkrMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6VDI+BAAABUUlEQVRIia3WPyhGURgG8B8pi0xisStKMioZLQaLiaQMBoxiVBImCwaLf6MssloUk8Gmb7GgJFKSUvIZ7qe+bvd89+A+03uf989z3nPPPe+tK5fLqtF3tSESzRjFAJ4vemams4IaYqulCq9gEo34QGco+LcCg9hHaxW3jpsiBIZxmMp5kXQTRH1k8S4cZCxoE6//FaiXbEtThm87JjkPI+jN4E9xW4TAQoA/isjNFehCT8B3VoTAUID/xHURAn0B/g5fRQh0B/j7mOJkf2gTaKvY7YG8FsxXPe/hIVbgCTs5C+vAasU+xlooMGuLTrCVI/CDR0zVCgi9gzmUIgQmBbYmT+AdY5LjGMKWpNuaqHWKLrEY8JUkXeYi75iu4DzFfUi6ey9C4AvjeKviliTdRSHmsrvBbMU+lzNg0oidaLvox7LIK+IHdem/iqIROzL/jG+NrT1BRsXKNQAAAABJRU5ErkJggg==";var esmEntry$1={exports:{}},defaults$5={exports:{}};function getDefaults$1(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function changeDefaults$1(c){defaults$5.exports.defaults=c}defaults$5.exports={defaults:getDefaults$1(),getDefaults:getDefaults$1,changeDefaults:changeDefaults$1};const escapeTest=/[&<>"']/,escapeReplace=/[&<>"']/g,escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g,escapeReplacements={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},getEscapeReplacement=c=>escapeReplacements[c];function escape$3(c,u){if(u){if(escapeTest.test(c))return c.replace(escapeReplace,getEscapeReplacement)}else if(escapeTestNoEncode.test(c))return c.replace(escapeReplaceNoEncode,getEscapeReplacement);return c}const unescapeTest=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function unescape$1(c){return c.replace(unescapeTest,(u,f)=>(f=f.toLowerCase(),f==="colon"?":":f.charAt(0)==="#"?f.charAt(1)==="x"?String.fromCharCode(parseInt(f.substring(2),16)):String.fromCharCode(+f.substring(1)):""))}const caret=/(^|[^\[])\^/g;function edit$1(c,u){c=c.source||c,u=u||"";const f={replace:(d,h)=>(h=h.source||h,h=h.replace(caret,"$1"),c=c.replace(d,h),f),getRegex:()=>new RegExp(c,u)};return f}const nonWordAndColonTest=/[^\w:]/g,originIndependentUrl=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function cleanUrl$1(c,u,f){if(c){let d;try{d=decodeURIComponent(unescape$1(f)).replace(nonWordAndColonTest,"").toLowerCase()}catch{return null}if(d.indexOf("javascript:")===0||d.indexOf("vbscript:")===0||d.indexOf("data:")===0)return null}u&&!originIndependentUrl.test(f)&&(f=resolveUrl(u,f));try{f=encodeURI(f).replace(/%25/g,"%")}catch{return null}return f}const baseUrls={},justDomain=/^[^:]+:\/*[^/]*$/,protocol=/^([^:]+:)[\s\S]*$/,domain=/^([^:]+:\/*[^/]*)[\s\S]*$/;function resolveUrl(c,u){baseUrls[" "+c]||(justDomain.test(c)?baseUrls[" "+c]=c+"/":baseUrls[" "+c]=rtrim$1(c,"/",!0)),c=baseUrls[" "+c];const f=c.indexOf(":")===-1;return u.substring(0,2)==="//"?f?u:c.replace(protocol,"$1")+u:u.charAt(0)==="/"?f?u:c.replace(domain,"$1")+u:c+u}const noopTest$1={exec:function(){}};function merge$2(c){let u=1,f,d;for(;u<arguments.length;u++){f=arguments[u];for(d in f)Object.prototype.hasOwnProperty.call(f,d)&&(c[d]=f[d])}return c}function splitCells$1(c,u){const f=c.replace(/\|/g,(p,v,m)=>{let g=!1,y=v;for(;--y>=0&&m[y]==="\\";)g=!g;return g?"|":" |"}),d=f.split(/ \|/);let h=0;if(d[0].trim()||d.shift(),d[d.length-1].trim()||d.pop(),d.length>u)d.splice(u);else for(;d.length<u;)d.push("");for(;h<d.length;h++)d[h]=d[h].trim().replace(/\\\|/g,"|");return d}function rtrim$1(c,u,f){const d=c.length;if(d===0)return"";let h=0;for(;h<d;){const p=c.charAt(d-h-1);if(p===u&&!f)h++;else if(p!==u&&f)h++;else break}return c.substr(0,d-h)}function findClosingBracket$1(c,u){if(c.indexOf(u[1])===-1)return-1;const f=c.length;let d=0,h=0;for(;h<f;h++)if(c[h]==="\\")h++;else if(c[h]===u[0])d++;else if(c[h]===u[1]&&(d--,d<0))return h;return-1}function checkSanitizeDeprecation$1(c){c&&c.sanitize&&!c.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function repeatString$1(c,u){if(u<1)return"";let f="";for(;u>1;)u&1&&(f+=c),u>>=1,c+=c;return f+c}var helpers={escape:escape$3,unescape:unescape$1,edit:edit$1,cleanUrl:cleanUrl$1,resolveUrl,noopTest:noopTest$1,merge:merge$2,splitCells:splitCells$1,rtrim:rtrim$1,findClosingBracket:findClosingBracket$1,checkSanitizeDeprecation:checkSanitizeDeprecation$1,repeatString:repeatString$1};const{defaults:defaults$4}=defaults$5.exports,{rtrim,splitCells,escape:escape$2,findClosingBracket}=helpers;function outputLink(c,u,f,d){const h=u.href,p=u.title?escape$2(u.title):null,v=c[1].replace(/\\([\[\]])/g,"$1");if(c[0].charAt(0)!=="!"){d.state.inLink=!0;const m={type:"link",raw:f,href:h,title:p,text:v,tokens:d.inlineTokens(v,[])};return d.state.inLink=!1,m}else return{type:"image",raw:f,href:h,title:p,text:escape$2(v)}}function indentCodeCompensation(c,u){const f=c.match(/^(\s+)(?:```)/);if(f===null)return u;const d=f[1];return u.split(`
103
103
  `).map(h=>{const p=h.match(/^\s+/);if(p===null)return h;const[v]=p;return v.length>=d.length?h.slice(d.length):h}).join(`
104
104
  `)}var Tokenizer_1$1=class{constructor(u){this.options=u||defaults$4}space(u){const f=this.rules.block.newline.exec(u);if(f)return f[0].length>1?{type:"space",raw:f[0]}:{raw:`
105
105
  `}}code(u){const f=this.rules.block.code.exec(u);if(f){const d=f[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:f[0],codeBlockStyle:"indented",text:this.options.pedantic?d:rtrim(d,`
@@ -168,7 +168,7 @@ Please report this to https://github.com/markedjs/marked.`,u.silent)return"<p>An
168
168
  <img style="width: ${vue.unref(p)};filter: ${`drop-shadow(${mr||lr||"#6ACB97"} ${vue.unref(p)} 0px)`};" src="${goDown}"/>
169
169
  </div>
170
170
  <span style="color: ${mr||c.color};${vue.unref(gn)}">${c.minusSignShow?"-":""}${Math.abs(+br).toFixed(2)}%</span>
171
- </span>`))):c.format==="percent"?(br=+br,isNaN(br)||(br=(br*100).toFixed(2),or=or.replace(yr,`<span class="${fr}" style="color:${Jn(br)||c.variableColor};font-size:${vue.unref(p)};${vue.unref(gn)}">${br}%</span>`))):c.format==="money"?(br=+br,isNaN(br)||(br=formatMoney(br),or=or.replace(yr,`<span class="${fr}" style="color:${Jn(br)||c.variableColor};font-size:${vue.unref(p)};${vue.unref(gn)}">${br}</span>`))):Er==="thousands"?(br=+br,isNaN(br)||(br=formatThousands(br),or=or.replace(yr,`<span class="${fr}" style="color:${Jn(br)||c.variableColor};font-size:${vue.unref(p)};${vue.unref(gn)}">${br}</span>`))):or=or.replace(yr,`<span class="${fr}" style="color:${Jn(br)||c.variableColor};font-size:${vue.unref(p)};${vue.unref(gn)}">${br}</span>`)}}if(vr||(vr=`<span id="xxa" class="${fr}" style="color: ${mr};${vue.unref(gn)}">${or}</span>`),c.unitShow&&c.unitText){const{unitTop:hr,unitLeft:yr}=c;let _r="position:relative;";hr&&(_r+=`top:${hr};`),yr&&(_r+=`margin-left:${yr};`),vr+=`<span style='color:${c.unitColor};font-size:${c.unitFontSize};font-weight:${c.unitFontWeight};${_r};${vue.unref(gn)}'>${c.unitText}</span>`}return c.exceedConfig&&(vr=`<span class="${fr}" style="display: inline-block;color: ${Jn(vr)};">${vr}</span>`),vr.includes("span")||(vr=`<span class="${fr}" style="color: ${Jn(vr)};">${vr}</span>`),vr});function Jn(er){let pr="",lr=!1;const{targetValue:or,targetShow:ar,notExpectColor:vr}=c;if(ar){switch(c.targetRule){case"equal":er!==or&&(lr=!0);break;case"greater":er<=or&&(lr=!0);break;case"greater_equal":er<or&&(lr=!0);break;case"less":er>=or&&(lr=!0);break;case"less_equal":er>or&&(lr=!0);break}lr&&(pr=vr)}return pr}const{pageId:Yn}=vue.inject("templateOperate",{pageId:""})||{},Zn=useRequestData(c),nr=vue.ref(!1),sr=async()=>{var er,pr,lr;try{nr.value=!0;const or=await Zn();(er=or==null?void 0:or.data)!=null&&er.data.rowsToData?J(((pr=or==null?void 0:or.data)==null?void 0:pr.data.rowsToData)||{}):J(((lr=or==null?void 0:or.data)==null?void 0:lr.data)||{})}catch(or){console.error(or)}finally{nr.value=!1}},ur=()=>{w("")},Gn=er=>{var lr,or;const{data:pr}=(er==null?void 0:er.data)||{};if(pr){f.value=!1;const{columns:ar=[],rows:vr=[]}=((lr=er==null?void 0:er.data)==null?void 0:lr.data)??{},{graphicConfig:fr}=c;let mr={};if(ar.length>0)if((or=fr==null?void 0:fr.dimensionList)!=null&&or.length){const dr=ar[0];dr&&(vr!=null&&vr.length)&&(mr={value:vr[0][dr]})}else{const dr=ar.find(hr=>!!hr);dr&&(mr={value:isNaN(vr[dr])?0:vr[dr]||0})}w(mr==null?void 0:mr.value),J(mr)}else f.value=!0,w(c.variableDefaultValue),J({value:c.variableDefaultValue})},Wn=useIndicatorData(c,Gn),Rn=async()=>{try{nr.value=!0;const er=await Wn();Gn(er)}catch(er){console.error(er)}finally{nr.value=!1,vn(c.id,!0)}},qn=vue.ref(!1);vue.watch(Fn,er=>{if(c.dataType==="indicator"){const pr=getFixedValueDatas(c.graphicConfig);pr!=null&&pr.length&&(!vue.unref(qn)&&canRequestIndicator(c.graphicConfig,er)?(qn.value=!0,Xn()):canRequestIndicator(c.graphicConfig,er)||(qn.value=!1))}},{deep:!0});const Xn=()=>{switch(c.dataType){case"indicator":Rn();break;case"request":{const{openCustomRequestData:er,customRequestName:pr}=c;er||er===void 0?sr():(nr.value=!0,re(pr,lr=>{lr&&(lr.rowsToData?J(lr.rowsToData):J(lr)),nr.value=!1}));break}}},{setRequest:Hn}=vue.inject(REQUEST_MODEL,{setRequest:({id:er,sortNum:pr,requestFn:lr})=>{}});typeof Hn=="function"&&Hn({id:c.id,requestFn:Xn,sortNum:c.requestSort}),u({refreshData:Xn});const tr=useEmitEvent(c),cr=tr("click",()=>{const er=document.getElementsByClassName(`ecan-text_${c.id}`);er!=null&&er.length&&w(er[0].innerText),setTimeout(()=>{w("")},0),!(!c.linkPage&&!c.href)&&handleJumpLink(c,{pageMode:vue.unref(y),targetTemplate:c.targetTemplate,getRecordValueByKeyName:j,setTemplateData:Bn})}),ir=tr("valueChange",()=>{Un.value++});return useOnEvent(c,{refreshData:Xn,resetRecord:ur,click:cr,valueChange:ir}),vue.watch(()=>Qn.value,(er,pr)=>{er!==pr&&ir()}),{style:d,myText:Qn,loading:nr,click:cr,textIndent:v,vFontSize:p,gradientStyle:zn,cursorStyle:Vn,myTitle:m,wrapStyle:Kn,textRef:g}}}),__injectCSSVars__$4=()=>{vue.useCssVars(c=>({dee2f13a:c.vFontSize,"29626ffc":c.textIndent,e0f51d58:c.percentageSide,a32691c2:c.titleFontColor,"64b0bba4":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_9def1ab3_lang="",Text_vue_vue_type_style_index_1_lang="",_hoisted_1$g=["innerHTML"],_hoisted_2$7=["innerHTML"],_hoisted_3$3=["innerHTML"];function _sfc_render$x(c,u,f,d,h,p){const v=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(v,{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$g)]),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$7)]),_: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}),ref:"textRef",innerHTML:c.myText},null,14,_hoisted_3$3)),vue.renderSlot(c.$slots,"toolbox",{},void 0,!0)],4))}const Text=_export_sfc$1(__default__$4,[["render",_sfc_render$x],["__scopeId","data-v-9def1ab3"]]),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$f={class:"red"};function _sfc_render$w(c,u,f,d,h,p){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$f,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,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:x,operate:Pn}=c;let b=dayjs();if(Pn){const{type:j,value:re,mode:vn}=Pn;switch(j){case"add":b=b.add(re,vn);break;case"minus":b=b.subtract(re,vn)}}return b.format(x)},h=vue.ref();vue.watch(()=>[c.operate,c.format],()=>{h.value=d()},{immediate:!0,deep:!0}),vue.watch(()=>c.updateInterval,()=>{y()},{deep:!0});let p=null;const v=()=>{clearInterval(p),p=null},g=useEmitEvent(c)("timeChange",()=>{}),y=()=>{p&&v();let x=1e3;const{value:Pn,mode:b}=c.updateInterval||{};Pn&&(x=x*Pn);const j={second:1,minute:60,hour:60*60,day:24*60*60};b&&(x=x*j[b]),p=setInterval(()=>{h.value=d(),vue.unref(u)!=="design"&&g()},x)};return useOnEvent(c,{timeChange:g}),vue.onMounted(()=>{y()}),vue.onUnmounted(()=>{v()}),{style:f,time:h}}}),TimeDisplay_vue_vue_type_style_index_0_scoped_b9216314_lang="";function _sfc_render$v(c,u,f,d,h,p){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,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=(Wn,Rn)=>{const{format:qn,customFormatter:Xn}=Rn;if(qn==null||qn==="")return Wn;const Hn={money:formatMoney,percentage:formatPercentage,contrast:formatPercentage,custom:formatCustom};return Hn[qn]?qn==="custom"?Hn[qn](Wn,Xn)||"":Hn[qn](Wn)||"":""},p=(Wn,Rn)=>{const qn=parseFloat(Wn+"");if(Rn!=="contrast")return"";switch(!0){case qn>=0:return"goUp";case qn<0:return"goDown"}},v=useRequestData(c),m=vue.ref(!1),g=async()=>{var Wn;if(c.dataType==="request")try{m.value=!0;const Rn=await v();f.value=((Wn=Rn==null?void 0:Rn.data)==null?void 0:Wn.data.rows)||[]}catch(Rn){console.error(Rn)}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})),x=vue.computed(()=>{const{columns:Wn,isUseSeq:Rn}=c;return Rn?[vue.unref(y),...Wn]:Wn}),Pn=Wn=>{var Xn;const{columns:Rn=[],rows:qn=[]}=((Xn=Wn==null?void 0:Wn.data)==null?void 0:Xn.data)??{};c.isUseSeq&&Rn.unshift(c.seqName),x.value.forEach((Hn,tr)=>{(!c.isUseSeq||tr!==0)&&(Hn.title=Rn[tr],Hn.key=Rn[tr])}),f.value=qn},b=useIndicatorData(c,Pn),j=async()=>{try{m.value=!0;const Wn=await b();Pn(Wn)}catch(Wn){console.error(Wn)}finally{m.value=!1}},re=()=>{switch(c.dataType){case"indicator":j();break;case"request":g();break}},vn=useEmitEvent(c),{getGlobalModel:Fn,setGlobalModel:Bn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Wn=>{},setGlobalModel:(Wn,Rn)=>{}}),w=Wn=>{vn("click",()=>{const Rn=Fn(c.id);Bn(c.id,{...Rn,type:c.type,RECORD:Wn})})()};useOnEvent(c,{refreshData:re,resetRecord:()=>{const Wn=c.id,Rn=Fn(Wn);Bn(Wn,{...Rn,type:c.type,RECORD:""})}});const{setRequest:gn}=vue.inject(REQUEST_MODEL,{setRequest:({id:Wn,sortNum:Rn,requestFn:qn})=>{}});typeof gn=="function"&&gn({id:c.id,requestFn:re,sortNum:c.requestSort}),u({refreshData:re});const zn=(Wn,Rn)=>({flex:Wn.width?"none":"1",width:Wn.width,height:c.itemHeight,lineHeight:c.itemHeight,textAlign:(Rn?Wn.cellAlign:Wn.align)||"left",backgroundColor:Wn.cellColor}),Vn=(Wn,Rn)=>{let qn=0;const Xn=vue.unref(f).map(tr=>tr[Rn]),Hn=Math.max(...Xn);return Hn&&(qn=Wn[Rn]/Hn*100),qn},Kn=Wn=>{const{progressColor:Rn="#1890ff",progressGradientColor:qn=""}=Wn;return qn?{background:`linear-gradient(to right, ${Rn} 0%, ${qn} 100%)`}:{backgroundColor:Rn||"#1890ff"}},Un=vue.computed(()=>{const Wn=parseFloat(c.seqFontSize)+5;return{width:Wn+10,height:Wn}}),{pageMode:Qn}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),Jn=vue.computed(()=>vue.unref(Qn)!=="design"&&c.isAutoScroll),Yn=Wn=>{const{seqIconConfig:Rn}=c;let qn=Rn.find(Xn=>Xn.key===Wn+1);return qn||(qn=Rn.find(Xn=>Xn.key==="other")),!!(qn!=null&&qn.icon)},Zn=(Wn,Rn)=>{const{seqIconConfig:qn}=c;let Xn=qn.find(Hn=>Hn.key===Wn+1);return Xn||(Xn=qn.find(Hn=>Hn.key==="other")),Rn===1?Xn!=null&&Xn.icon?useImagePath(Xn.icon):"":Rn===2?(Xn==null?void 0:Xn.color)||"#fff":""},nr=Wn=>{const{seqIndexFormatter:Rn}=c,qn=Wn+1;return Rn?hn(Rn,{textData:{index:qn}},{useNewline:!1,useSpace:!0}):qn},sr=vue.computed(()=>parseFloat(c.itemWidth)!==100?{height:"100%"}:{}),ur=vue.computed(()=>!c.itemWidth||c.itemWidth==="100%"?"0":c.itemColSpan);return{style:d,formatFn:h,contrastClass:p,dataSource:f,loading:m,myColumns:x,click:w,getColumnStyle:zn,getPercentage:Vn,getBackgroundColor:Kn,isShowSeqIcon:Yn,getSeqIconData:Zn,seqIcon4,seqIcon5,seqIcon6,seqIcon7,iconSize:Un,isScroll:Jn,formatSeq:nr,wrapStyle:sr,colSpan:ur,getText:(Wn,Rn)=>(Wn.format!=null||Wn.format!=="")&&h(Rn[Wn.key],Wn)}}}),List_vue_vue_type_style_index_0_scoped_f3250be8_lang="",List_vue_vue_type_style_index_1_lang="",_withScopeId$4=c=>(vue.pushScopeId("data-v-f3250be8"),c=c(),vue.popScopeId(),c),_hoisted_1$e={key:0,class:"title"},_hoisted_2$6={key:0,class:"ranking"},_hoisted_3$2=["onClick"],_hoisted_4$2={key:0,class:"ranking"},_hoisted_5$2=_withScopeId$4(()=>vue.createElementVNode("div",{class:"icon"},null,-1)),_hoisted_6$2={class:"sort"},_hoisted_7$2=["src"],_hoisted_8$2={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,p){const v=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$e,[(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$6)):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.myColumns,(x,Pn)=>(vue.openBlock(),vue.createElementBlock("div",{class:"column",key:x.key||Pn,style:vue.normalizeStyle({color:x.titleColor,fontSize:x.fontSize,...c.getColumnStyle(x)})},vue.toDisplayString(x.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,x)=>(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||x,onClick:Pn=>c.click(y)},[c.useRanking?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$2,[_hoisted_5$2,vue.createElementVNode("div",_hoisted_6$2," Top "+vue.toDisplayString(x+1),1)])):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.myColumns,Pn=>{var b;return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["column",c.contrastClass(y[Pn.key],Pn.format),Pn.key==="SEQ"?"seq-column":""]),key:Pn.key,style:vue.normalizeStyle({fontSize:Pn.fontSize,color:c.contrastClass(y[Pn.key],Pn.format)===""?Pn.color:"",fontWeight:Pn.fontWeight,...c.getColumnStyle(Pn,"cell")})},[Pn.key==="SEQ"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[c.seqIcon?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[(b=c.seqIconConfig)!=null&&b.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(x)?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"custom-seq-icon",src:c.getSeqIconData(x,1),style:vue.normalizeStyle({width:c.seqIconWidth,height:c.seqIconHeight})},null,12,_hoisted_7$2)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:"custom-seq-text",style:vue.normalizeStyle({fontSize:c.seqFontSize,color:c.getSeqIconData(x,2),lineHeight:c.seqIconHeight||"",left:c.seqIconOffsetX,top:c.seqIconOffsetY})},vue.toDisplayString(c.formatSeq(x)),5)],4)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_8$2,[x===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)):x===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)):x===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)):x>=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(x)),5)]))],64)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_13$2,vue.toDisplayString(c.formatSeq(x)),1))],64)):Pn.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:Pn.progressWidth||"14px",backgroundColor:Pn.progressBaseColor})},[vue.createVNode(v,{title:y[Pn.key],overlayClassName:"ecan-list-tooltip",color:"#fff"},{default:vue.withCtx(()=>[vue.createElementVNode("div",{style:vue.normalizeStyle({borderRadius:"10px",height:Pn.progressWidth||"14px",width:`${c.getPercentage(y,Pn.key)}%`,...c.getBackgroundColor(Pn)})},null,4)]),_:2},1032,["title"])],4)],4)):(vue.openBlock(),vue.createElementBlock("span",{key:2,title:c.getText(Pn,y)},vue.toDisplayString(c.getText(Pn,y)),9,_hoisted_14$2))],6)}),128))],12,_hoisted_3$2))),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-f3250be8"]]),EcanList=withInstall$1(List),proportionProps={...props,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:{}},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:(Un,Qn)=>{},loadedData:{}}),h=vue.ref(!1),{pageMode:p}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),v=usePickComponentStyle(c),m=vue.computed(()=>{const Un=c.width;return parseFloat(Un)}),g=vue.ref({});vue.watch(()=>c.data,()=>{(c.dataType==="static"||vue.unref(p)==="design")&&(g.value=c.data)},{immediate:!0,deep:!0});const y=vue.computed(()=>{const Un=vue.unref(g),Qn=+c.variableDefaultValue;if(Un==null)return isNaN(Qn)?0:Qn;const Jn=c.text.match(/\{(.+?)\}/g)||[];let Yn;const Zn=new Set(Object.keys(Un));for(let nr=0;nr<Jn.length;nr++){const sr=Jn[nr],ur=sr.slice(1,sr.length-1);if(Zn.has(ur)){Yn=Un[ur];break}}return typeof Yn=="number"?Yn=Yn*100:typeof Yn=="string"?isNaN(+Yn)?isNaN(parseFloat(Yn))||(Yn=parseFloat(Yn)):Yn=+Yn*100:isNaN(Qn)?Yn=0:Yn=Qn*100,c.decimalFormat&&(Yn=+Yn.toFixed(2)),Yn}),x=vue.computed(()=>{var Zn;let Un=c.text;if(Un==="")return vue.unref(y);const Qn=c.variableDefaultValue,Jn=vue.unref(g),Yn=Un.match(/\{(.+?)\}/g)||[];for(let nr=0;nr<Yn.length;nr++){const sr=Yn[nr];let ur=sr.slice(1,sr.length-1);const Gn=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,Wn=sr.match(Gn);for(let qn=0;qn<(Wn==null?void 0:Wn.length);qn++){const Xn=(Zn=Wn[qn])==null?void 0:Zn.trim();Jn[Xn]!=null&&(ur=ur.replace(Xn,Jn[Xn]))}let Rn=ur;try{(/\(.*\)/g.test(ur)||/[+/\\*]/g.test(ur))&&(Rn=pn(ur))}catch(qn){console.error(qn)}typeof+Rn=="number"&&!isNaN(+Rn)?(Rn=+Rn*100,c.decimalFormat&&(Rn=Rn.toFixed(2))):typeof Rn!="string"&&(Rn=Qn),Rn==="percent"&&(Rn=Qn),Un=Un.replace(sr,`<span style="color: ${c.variableColor};">${Rn+""}</span>`)}return Un=Un==null?void 0:Un.replace(/\n|\\n/g,"<br/>"),vue.unref(h)?"NaN":Un}),Pn=useRequestData(c),b=vue.ref(!1),j=async()=>{var Un,Qn,Jn,Yn,Zn;if(c.dataType==="request")try{b.value=!0;const nr=await Pn();g.value=((Un=nr==null?void 0:nr.data)==null?void 0:Un.data)||{},(Jn=(Qn=nr==null?void 0:nr.data)==null?void 0:Qn.data)!=null&&Jn.rowsToData&&(g.value=((Zn=(Yn=nr==null?void 0:nr.data)==null?void 0:Yn.data)==null?void 0:Zn.rowsToData)||{})}catch(nr){console.error(nr)}finally{b.value=!1}},re=(Un={})=>{g.value=Un},vn=Un=>{var Jn;const{data:Qn}=(Un==null?void 0:Un.data)||{};if(Qn){h.value=!1;const{columns:Yn=[],rows:Zn=[]}=((Jn=Un==null?void 0:Un.data)==null?void 0:Jn.data)??{};let nr={};if(Yn.length>0){const sr=Yn.find(ur=>!!ur);sr&&(nr={percent:Zn[sr]})}re(nr)}else h.value=!0,re({percent:"NaN"})},Fn=useIndicatorData(c,vn),Bn=async()=>{try{b.value=!0;const Un=await Fn();vn(Un)}catch(Un){console.error(Un)}finally{b.value=!1,f(c.id,!0)}},w=()=>{switch(c.dataType){case"indicator":Bn();break;case"request":j();break}},J=vue.ref(!1);vue.watch(d,Un=>{if(c.dataType==="indicator"){const Qn=getFixedValueDatas(c.graphicConfig);Qn!=null&&Qn.length&&(!vue.unref(J)&&canRequestIndicator(c.graphicConfig,Un)?(J.value=!0,w()):canRequestIndicator(c.graphicConfig,Un)||(J.value=!1))}},{deep:!0}),useOnEvent(c,{refreshData:w}),u({refreshData:w});const zn=useEmitEvent(c)("click",()=>{}),{setRequest:Vn}=vue.inject(REQUEST_MODEL,{setRequest:({id:Un,sortNum:Qn,requestFn:Jn})=>{}});typeof Vn=="function"&&Vn({id:c.id,requestFn:w,sortNum:c.requestSort});const Kn=vue.computed(()=>{const{gradientShow:Un,gradientColor:Qn,gradientOffset:Jn,strokeColor:Yn}=c;let Zn=Yn;return Un&&(Zn={"0%":Yn||"transparent",[`${Jn*100}%`]:Qn||"transparent"}),Zn});return{style:v,myWidth:m,text:x,myValue:y,loading:b,click:zn,customStrokeColor:Kn}}}),Proportion_vue_vue_type_style_index_0_scoped_67ed1ab9_lang="",_hoisted_1$d=["innerHTML"];function _sfc_render$t(c,u,f,d,h,p){const v=vue.resolveComponent("skeleton"),m=vue.resolveComponent("a-progress");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-proportion",style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{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(v,{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_1$d)],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-67ed1ab9"]]),EcanProportion=withInstall$1(Proportion),counterProps={...props,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"})),p=vue.computed(()=>({color:c.color,fontSize:c.fontSize,fontWeight:c.fontWeight,fontStyle:c.fontStyle}));vue.watch(()=>[c.data,c.dataType],([gn,zn])=>{zn==="static"&&(f.value=gn)},{immediate:!0});const{getGlobalModel:v,setGlobalModel:m}=vue.inject(GLOBAL_MODEL,{getGlobalModel:gn=>{},setGlobalModel:(gn,zn)=>{}}),y=useEmitEvent(c)("click",()=>{const gn=v(c.id);m(c.id,{...gn,type:c.type,value:vue.unref(f)})}),x=()=>{const gn=c.id,zn=v(gn);m(gn,{...zn,type:c.type,value:""})},Pn=useRequestData(c),b=vue.ref(!1),j=async()=>{var gn,zn;try{b.value=!0;const Vn=await Pn();f.value=((zn=(gn=Vn==null?void 0:Vn.data)==null?void 0:gn.data)==null?void 0:zn.value)||""}catch(Vn){console.error(Vn)}finally{b.value=!1}},re=gn=>{var Kn;const{data:zn}=(gn==null?void 0:gn.data)||{};let Vn="";if(zn){const{columns:Un=[],rows:Qn=[]}=((Kn=gn==null?void 0:gn.data)==null?void 0:Kn.data)??{};if(Un.length>0){const Jn=Un.find(Yn=>!!Yn);Jn&&(Vn=Qn[Jn]||"")}}f.value=String(Vn)},vn=useIndicatorData(c,re),Fn=async()=>{try{b.value=!0;const gn=await vn();re(gn)}catch(gn){console.error(gn)}finally{b.value=!1}},Bn=()=>{switch(c.dataType){case"indicator":Fn();break;case"request":j();break}},w=vue.computed(()=>{const gn=[],{digits:zn}=c,Vn=vue.unref(f)?vue.unref(f).split("").reverse().join(""):"";for(let Kn=0;Kn<zn;Kn++)Vn&&Vn[Kn]?gn.push(Vn[Kn]):gn.push("0");return gn.reverse()});useOnEvent(c,{refreshData:Bn,resetRecord:x});const{setRequest:J}=vue.inject(REQUEST_MODEL,{setRequest:({id:gn,sortNum:zn,requestFn:Vn})=>{}});return typeof J=="function"&&J({id:c.id,requestFn:Bn,sortNum:c.requestSort}),u({refreshData:Bn}),{style:d,valueList:w,digitsStyle:h,fontStyle:p,loading:b,useImagePath,click:y}}}),Counter_vue_vue_type_style_index_0_scoped_bfa8d120_lang="",_hoisted_1$c=["src"];function _sfc_render$s(c,u,f,d,h,p){var m;const v=vue.resolveComponent("skeleton");return c.loading?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:vue.normalizeStyle(c.style)},[vue.createVNode(v,{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$c)):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-bfa8d120"]]),EcanCounter=withInstall$1(Counter),rectangleProps={...props,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:v,gradientShow:m,gradientColor:g,gradientOffset:y,gradientAngle:x,backgroundColor:Pn}=c;if(m){let b=g;return v&&(b="transparent"),b?{background:`linear-gradient(${x}, ${Pn}, ${b} ${y*100}%)`}:{}}else return{}}),{theme:d}=vue.inject(GLOBAL_CONFIG,{theme:"light"}),h=vue.computed(()=>({width:"100%",height:"100%"})),p=vue.computed(()=>{const{borderRadius:v}=c,m=[],g={};if(v){const y=v.split(",");for(const x of y)(+x||+x==0)&&m.push(+x+"px")}return m!=null&&m.length&&(g.borderRadius=m.join(" ")),g});return{style:u,gradientStyle:f,borderStyle:h,theme:d,borderRadiusStyle:p}}}),Rectangle_vue_vue_type_style_index_0_scoped_c6c46783_lang="";function _sfc_render$r(c,u,f,d,h,p){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,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:p}=vue.inject(GLOBAL_MODEL,{getGlobalModel:x=>{},setGlobalModel:(x,Pn)=>{},getRecordValueByKeyName:x=>{}});vue.watch(()=>c.value,x=>{f.value=p(x)},{immediate:!0}),h(c.id,{type:c.type,value:f});const v=()=>{const x=d(c.id);h(c.id,{...x,RECORD:f})},m=useEmitEvent(c),g=lodashEs.debounce(m("inputChange",()=>{v()}),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,p){const v=vue.resolveComponent("a-input");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-input",style:vue.normalizeStyle(c.style)},[vue.createVNode(v,{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,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,p=vue.ref(null),v=vue.ref(null),m=vue.ref(""),g=vue.ref(!1),y=vue.ref([]),x=vue.ref(""),Pn=vue.computed(()=>{let Hn=["year","month","day"];switch(c.picker){case"year":Hn=["year"];break;case"month":Hn=["year","month"];break}return Hn}),{setGlobalModel:b,getGlobalModel:j}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Hn=>{},setGlobalModel:(Hn,tr)=>{}}),{pageId:re}=vue.inject("templateOperate",{pageId:""})||{};b(c.id,{type:c.type,format:c.format,useCurrentTime:c.useCurrentTime,value:p,RECORD:p});const{getGlobalVar:vn}=vue.inject(GLOBAL_CONFIG,{getGlobalVar:Hn=>{}}),Fn=useEmitEvent(c),Bn=Hn=>{const tr=c.id,cr=j(tr);b(tr,{...cr,value:Hn||"",RECORD:Hn||""})},w=Fn("refreshData",Hn=>{Bn(Hn)});vue.watch(()=>[c.value,c.useCurrentTime,c.operate,x.value],([Hn,tr,cr,ir])=>{let er=null,pr=Hn;if(c.dataType==="request"&&(pr=ir),pr){const lr=pr.match(/\{(.+?)\}/g);if(lr){const or={};for(let ar of lr){const vr=ar.slice(1,-1).trim(),fr=j(vr);if(fr)or[vr]=fr.value.format(fr.format);else if(vr.includes("$page")){const mr=vr.replace(/[$.]/g,""),dr=vr.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");pr=pr.replace(new RegExp(dr,"g"),mr),or[mr]=vn(vr)}}er=dayjs(hn(pr,{textData:or}))}else er=dayjs(hn(pr))}else tr&&(er=dayjs());if(cr&&er){const{type:lr,value:or,mode:ar}=cr;switch(lr){case"add":er=er.add(or,ar);break;case"minus":er=er.subtract(or,ar)}}p.value=er,v.value=er,vue.unref(u)&&Zn(er),w(er)},{deep:!0,immediate:!0});const J=Fn("dateChange",()=>{const Hn=getNewValueFromUrlParams(re,c.keyName,"value");Hn&&(p.value=dayjs(Hn)),Bn(vue.unref(p))}),gn=()=>{vue.unref(p)&&J()};useOnEvent(c,{dateChange:J});const zn=vue.ref({}),Vn=vue.ref({}),Kn=Hn=>{Hn?setTimeout(()=>{Vn.value=vue.unref(zn)},300):Vn.value={}};vue.onMounted(()=>{setTimeout(()=>{const Hn=document.querySelector(`#ecan-date-picker-${c.id}`);if(Hn){const tr=Hn.getBoundingClientRect(),cr=parseFloat(vue.unref(f).widthScale)*280;document.body.clientWidth-tr.left<cr&&(zn.value.marginLeft=-1*(cr-tr.width)+"px")}},0)});const Un=()=>{Zn(vue.unref(p)),g.value=!0},Qn=()=>{Zn(),p.value=null},Jn=()=>{const Hn=dayjs(vue.unref(y).join("-"));p.value=Hn,Zn(Hn),g.value=!1,gn()},Yn=()=>{p.value=dayjs(),Zn(),m.value=dayjs().format(c.format),g.value=!1};function Zn(Hn){y.value=nr(Hn||dayjs()),m.value=(Hn==null?void 0:Hn.format(c.format))||""}function nr(Hn){const tr=[];for(const cr of vue.unref(Pn))cr==="day"?tr.push(Hn.date()):tr.push(Hn[cr]()+(cr==="month"?1:0));return tr}const sr=Hn=>{let tr=!1,{limitStartTime:cr,limitEndTime:ir}=c,er=c.picker;const pr={current:vue.unref(v)};return c.picker==="date"&&(er="day"),cr=hn(cr,{textData:pr}),ir=hn(ir,{textData:pr}),cr&&ir?tr=!(dayjs(cr).isBefore(Hn,er)&&Hn.isBefore(dayjs(ir),er)):cr?tr=Hn.isBefore(dayjs(cr),er):ir&&(tr=dayjs(ir).isBefore(Hn,er)),tr},ur=(Hn={})=>{var tr;if((tr=Object.keys(Hn))!=null&&tr.length)for(const cr in Hn)x.value=Hn[cr]},Gn=useRequestData(c),Wn=vue.ref(!1),Rn=async()=>{var Hn,tr,cr;try{Wn.value=!0;const ir=await Gn();(Hn=ir==null?void 0:ir.data)!=null&&Hn.data.rowsToData?ur(((tr=ir==null?void 0:ir.data)==null?void 0:tr.data.rowsToData)||{}):ur(((cr=ir==null?void 0:ir.data)==null?void 0:cr.data)||{})}catch(ir){console.error(ir)}finally{Wn.value=!1}},qn=()=>{switch(c.dataType){case"request":{Rn();break}}},{setRequest:Xn}=vue.inject(REQUEST_MODEL,{setRequest:({id:Hn,sortNum:tr,requestFn:cr})=>{}});return typeof Xn=="function"&&Xn({id:c.id,requestFn:qn,sortNum:c.requestSort}),{style:d,getPopupContainer:h,myValue:p,locale,change:gn,scaleValue:f,popupStyle:zn,customStyle:Vn,openChange:Kn,isMobile:u,mobileDateStr:m,handleClearDate:Qn,openDatePick:Un,datePickVisible:g,columnsType:Pn,mobileDate:y,onConfirmDate:Jn,onCancelDate:Yn,disabledDate:sr}}}),__injectCSSVars__$3=()=>{vue.useCssVars(c=>({"16c8ad3b":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_91e23a8e_lang="",DatePicker_vue_vue_type_style_index_1_lang="",_hoisted_1$b=["id"];function _sfc_render$p(c,u,f,d,h,p){const v=vue.resolveComponent("calendar-outlined"),m=vue.resolveComponent("close-circle-filled"),g=vue.resolveComponent("a-input"),y=vue.resolveComponent("van-date-picker"),x=vue.resolveComponent("van-popup"),Pn=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(v,{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(x,{show:c.datePickVisible,"onUpdate:show":u[1]||(u[1]=b=>c.datePickVisible=b),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]=b=>c.mobileDate=b),"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(Pn,{key:1,class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:c.myValue,"onUpdate:value":u[2]||(u[2]=b=>c.myValue=b),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$b)}const DatePicker$1=_export_sfc$1(__default__$3,[["render",_sfc_render$p],["__scopeId","data-v-91e23a8e"]]),EcanDatePicker=withInstall$1(DatePicker$1),rangePickerProps={...props,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,p){var v=p.prototype;v.quarter=function(y){return this.$utils().u(y)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(y-1))};var m=v.add;v.add=function(y,x){return y=Number(y),this.$utils().p(x)===d?this.add(3*y,f):m.bind(this)(y,x)};var g=v.startOf;v.startOf=function(y,x){var Pn=this.$utils(),b=!!Pn.u(x)||x;if(Pn.p(y)===d){var j=this.quarter()-1;return b?this.month(3*j).startOf(f).startOf("day"):this.month(3*j+2).endOf(f).endOf("day")}return g.bind(this)(y,x)}}})})(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:fr=>{}}),{getGlobalModel:h,setGlobalModel:p}=vue.inject(GLOBAL_MODEL,{getGlobalModel:fr=>{},setGlobalModel:(fr,mr)=>{}}),v=usePickComponentStyle(c),m=()=>document.getElementById("ProviderConfig")||document.body,g=vue.ref([null,null]),y=vue.ref(!1),x=vue.ref([]),Pn=vue.ref([]),b=vue.ref(),j=vue.ref(),re=vue.ref(),vn=vue.ref(),Fn=vue.ref(0),Bn=vue.ref({}),w=vue.ref(""),J=vue.computed(()=>{let fr=["year","month","day"];switch(c.picker){case"year":fr=["year"];break;case"month":fr=["year","month"];break}return fr}),gn=fr=>{const mr=fr==null?void 0:fr.match(/\{(.+?)\}/g);let dr;if(mr){const hr={};for(let yr of mr){const _r=yr.slice(1,-1).trim(),gr=h(_r);if(gr)hr[_r]=gr.value.format(gr.format);else if(_r.includes("$page")){const br=_r.replace(/[$.]/g,""),Er=_r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");fr=fr.replace(new RegExp(Er,"g"),br),hr[br]=d(_r)}}dr=dayjs(hn(fr,{textData:hr}))}else dr=dayjs(hn(fr));return dr};vue.watch(()=>[c.startTime,c.endTime,c.useCurrentTime,c.interval,c.intervalUnit,c.operate],([fr,mr,dr,hr,yr,_r])=>{if(vue.unref(g).every(gr=>!gr)||vue.unref(f)==="design"){let gr=null,br=null;if(dr&&(gr=dayjs().subtract(hr,yr),br=dayjs()),fr&&(gr=gn(fr)),mr&&(br=gn(mr)),_r){const{type:Er,value:Mr,mode:Ir}=_r;switch(Er){case"add":gr=gr&&gr.add(Mr,Ir),br=br&&br.add(Mr,Ir);break;case"minus":gr=gr&&gr.subtract(Mr,Ir),br=br&&br.subtract(Mr,Ir)}}g.value=[gr,br],vue.unref(u)&&ar()}},{immediate:!0});let zn=vue.unref(g)[0],Vn=vue.unref(g)[1],Kn="";const Un=(fr,mr,dr)=>{Array.isArray(fr)?(zn=fr[0],Vn=fr[1],Kn=dr.range):(zn=null,Vn=null)},Qn=fr=>{let mr=!1,{limitStartTime:dr,limitEndTime:hr}=c;const yr={startTime:`${zn||""}`,endTime:`${Vn||""}`};if(dr=hn(dr,{codeData:yr}),hr=hn(hr,{codeData:yr}),dr&&hr?mr=!(dayjs(dr)<fr&&fr<dayjs(hr)):dr?mr=dayjs(dr)>fr:hr&&(mr=dayjs(hr)<fr),!c.isAllowSpanYear&&Kn){let _r=null;if(Kn==="start"?_r=zn:Kn==="end"&&(_r=Vn),_r){const gr=_r.startOf("year"),br=_r.endOf("year");mr=!(gr<=fr&&fr<br)}}if(!mr){const{value:_r=0,mode:gr="year"}=c.limitInterval||{};_r&&(Kn==="start"?mr=zn.add(_r,gr)<fr:Kn==="end"&&(mr=Vn.subtract(_r,gr)>fr))}return mr},Jn=vue.computed(()=>Array.isArray(vue.unref(g))?vue.unref(g)[0]:null),Yn=vue.computed(()=>Array.isArray(vue.unref(g))?vue.unref(g)[1]:null),{pageId:Zn}=vue.inject("templateOperate",{pageId:""})||{};p(c.id,{type:c.type,format:c.format,startTime:Jn,endTime:Yn,interval:c.interval,intervalUnit:c.intervalUnit,useCurrentTime:c.useCurrentTime,operate:c.operate});const nr=useEmitEvent(c);let sr=!1;const ur=nr("dateChange",()=>{var dr;const fr=getNewValueFromUrlParams(Zn,c.keyName,"startTime"),mr=getNewValueFromUrlParams(Zn,c.keyName,"endTime");(dr=g.value)!=null&&dr.length||(g.value=[null,null]),fr&&(g.value[0]=dayjs(fr)),mr&&(g.value[1]=dayjs(mr))}),Gn=fr=>{const mr=vue.unref(g),dr=mr&&mr[0]&&mr[1];fr===!1&&sr===!0&&dr&&(ur(),sr=!1),fr||(Kn="")},Wn=()=>{sr=!0},Rn=()=>{const{associated:fr}=c;if(fr){const mr=h(fr)||{};if(mr){const{value:dr}=mr;if(dr)switch(vue.unref(dr)){case"day":g.value=[dayjs().startOf("day"),dayjs().endOf("day")];break;case"month":g.value=[dayjs().startOf("month"),dayjs().endOf("month")];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}}}ur()},qn=()=>{lr(vue.unref(g)),y.value=!0},Xn=()=>{lr(),w.value="",g.value=[null,null]},Hn=()=>{g.value=[dayjs(vue.unref(x).join("-")),dayjs(vue.unref(Pn).join("-"))],lr(vue.unref(g)),or(),er(),y.value=!1,ur()},tr=()=>{pr(),y.value=!1},cr=()=>{var fr,mr;(fr=vue.unref(x))!=null&&fr.length&&c.format&&(re.value=new Date(vue.unref(x).join("-")),(mr=vue.unref(Pn))!=null&&mr.length&&dayjs(vue.unref(Pn).join("-")).isBefore(dayjs(vue.unref(x).join("-")))&&(Pn.value=lodashEs.cloneDeep(vue.unref(x))))},ir=()=>{var fr,mr;(fr=vue.unref(Pn))!=null&&fr.length&&c.format&&(j.value=new Date(vue.unref(Pn).join("-")),(mr=vue.unref(x))!=null&&mr.length&&dayjs(vue.unref(x).join("-")).isAfter(dayjs(vue.unref(Pn).join("-")))&&(x.value=lodashEs.cloneDeep(vue.unref(Pn))))};function er(){Bn.value={startMinDate:lodashEs.cloneDeep(vue.unref(b)),startMaxDate:lodashEs.cloneDeep(vue.unref(j)),endMinDate:lodashEs.cloneDeep(vue.unref(re)),endMaxDate:lodashEs.cloneDeep(vue.unref(vn))}}function pr(){b.value=vue.unref(Bn).startMinDate,j.value=vue.unref(Bn).startMaxDate,re.value=vue.unref(Bn).endMinDate,vn.value=vue.unref(Bn).endMaxDate}function lr(fr=[]){x.value=vr(fr[0]||dayjs()),Pn.value=vr(fr[1]||dayjs())}function or(){var dr,hr;const fr=(dr=vue.unref(x))!=null&&dr.length?dayjs(vue.unref(x).join("-")):"",mr=(hr=vue.unref(Pn))!=null&&hr.length?dayjs(vue.unref(Pn).join("-")):"";w.value=fr&&mr&&`${fr.format(c.format)} 至 ${mr.format(c.format)}`}function ar(){const{limitStartTime:fr,limitEndTime:mr,limitInterval:dr,isAllowSpanYear:hr}=c;lr(vue.unref(g)),fr&&(b.value=new Date(fr),re.value=new Date(fr),vue.unref(g)[0].isBefore(dayjs(fr))&&(vue.unref(g)[0]=dayjs(fr),x.value=vr(vue.unref(g)[0]))),mr&&(j.value=new Date(mr),vn.value=new Date(mr),vue.unref(g)[1].isAfter(dayjs(mr))&&(vue.unref(g)[1]=dayjs(mr),Pn.value=vr(vue.unref(g)[1]))),vue.unref(g).every(yr=>yr)&&(dr!=null&&dr.value)&&vue.unref(g)[1].diff(vue.unref(g)[0],dr.mode)>dr.value&&(vue.unref(g)[0]=vue.unref(g)[1].subtract(dr.value,dr.mode),x.value=vr(vue.unref(g)[0])),vue.unref(g).every(yr=>yr)&&!hr&&vue.unref(g)[0].year()!==vue.unref(g)[1].year()&&(vue.unref(g)[0]=dayjs(`${vue.unref(g)[1].year()}-01-01`),x.value=vr(vue.unref(g)[0])),er(),or()}function vr(fr){const mr=[];for(const dr of vue.unref(J))dr==="day"?mr.push(fr.date()):mr.push(fr[dr]()+(dr==="month"?1:0));return mr}return useOnEvent(c,{dateChange:Rn}),{style:v,getPopupContainer:m,locale,dateChange:ur,myValue:g,disabledDate:Qn,calendarChange:Un,openChange:Gn,change:Wn,isMobile:u,mobileDateStr:w,datePickVisible:y,columnsType:J,openDatePick:qn,handleClearDate:Xn,onConfirmDate:Hn,onCancelDate:tr,mobileStartDate:x,mobileEndDate:Pn,startMinDate:b,startMaxDate:j,endMinDate:re,endMaxDate:vn,pickerTabKey:Fn,onStartDateChange:cr,onEndDateChange:ir}}}),__injectCSSVars__$2=()=>{vue.useCssVars(c=>({"77a36566":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_f2a97608_lang="",RangePicker_vue_vue_type_style_index_1_lang="";function _sfc_render$o(c,u,f,d,h,p){const v=vue.resolveComponent("calendar-outlined"),m=vue.resolveComponent("close-circle-filled"),g=vue.resolveComponent("a-input"),y=vue.resolveComponent("van-date-picker"),x=vue.resolveComponent("van-picker-group"),Pn=vue.resolveComponent("van-popup"),b=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(v,{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(Pn,{show:c.datePickVisible,"onUpdate:show":u[3]||(u[3]=j=>c.datePickVisible=j),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(x,{key:0,"active-tab":c.pickerTabKey,"onUpdate:active-tab":u[2]||(u[2]=j=>c.pickerTabKey=j),tabs:["开始日期","结束日期"],onConfirm:c.onConfirmDate,onCancel:c.onCancelDate},{default:vue.withCtx(()=>[vue.createVNode(y,{modelValue:c.mobileStartDate,"onUpdate:modelValue":u[0]||(u[0]=j=>c.mobileStartDate=j),"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]=j=>c.mobileEndDate=j),"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(b,{key:1,class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:c.myValue,"onUpdate:value":u[4]||(u[4]=j=>c.myValue=j),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-f2a97608"]]),EcanRangePicker=withInstall$1(RangePicker),buttonProps={...props,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(v);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}}),p=vue.computed(()=>hn(c.text)),v=vue.computed(()=>hn(c.href)||null),m=vue.computed(()=>{const g=c.target;if(!(g==="event"||vue.unref(v)==null))return{self:"_self",blank:"_blank"}[g]});return useOnEvent(c,{click:d}),{style:u,click:d,myText:p,myHref:v,myTarget:m,buttonStyle:h}}}),Button_vue_vue_type_style_index_0_lang="";function _sfc_render$n(c,u,f,d,h,p){const v=vue.resolveComponent("a-button");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-button",style:vue.normalizeStyle(c.style)},[vue.createVNode(v,{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={...props,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),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([]),p=Bn=>{const w=c.value;let J=[];Bn.forEach(gn=>{gn.checked&&J.push(gn.value)}),typeof w=="string"&&w!==""?J=J.concat(w.split(",")):Array.isArray(w)&&(J=J.concat(w)),d.value=Bn,h.value=J};vue.watch(()=>[c.data,c.value],([Bn])=>{p(Bn)},{immediate:!0,deep:!0});const v=useRequestData(c),m=async()=>{var J,gn;if(c.dataType!=="request")return;const Bn=await v(),w=((gn=(J=Bn==null?void 0:Bn.data)==null?void 0:J.data)==null?void 0:gn.rows)||[];p(w)},{getGlobalModel:g,setGlobalModel:y}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Bn=>{},setGlobalModel:(Bn,w)=>{}});y(c.id,{type:c.type,value:h});const Pn=useEmitEvent(c)("checkboxChange",()=>{const Bn=g(c.id);y(c.id,{...Bn,RECORD:h})}),b=Bn=>{var J;const{data:w}=(Bn==null?void 0:Bn.data)||{};if(w){const zn=(((J=Bn==null?void 0:Bn.data)==null?void 0:J.data)??[]).map(Vn=>({label:Vn.label,value:Vn.value}));p(zn)}else p([])},j=useIndicatorData(c,b),re=async()=>{try{const Bn=await j();b(Bn)}catch(Bn){console.error(Bn)}},vn=()=>{switch(c.dataType){case"indicator":re();break;case"request":m();break}},{setRequest:Fn}=vue.inject(REQUEST_MODEL,{setRequest:({id:Bn,sortNum:w,requestFn:J})=>{}});return typeof Fn=="function"&&Fn({id:c.id,requestFn:vn,sortNum:c.requestSort}),u({refreshData:vn}),{myOption:d,style:f,myValue:h,checkboxChange:Pn}}}),Checkbox_vue_vue_type_style_index_0_lang="";function _sfc_render$m(c,u,f,d,h,p){const v=vue.resolveComponent("a-checkbox-group");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-checkbox",style:vue.normalizeStyle(c.style)},[vue.createVNode(v,{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=_export_sfc$1(_sfc_main$k,[["render",_sfc_render$m]]),EcanCheckbox=withInstall$1(Checkbox),selectProps={...props,name:"下拉框选择器",keyName:"下拉框选择器",width:"120px",height:"33px",type:"ecanSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,graphicConfig:{},valueType:"value",isAllowClear:!0,optionFontSize:"14px"},selectComponentProps=transformToComponentProps(selectProps),selectEvents=["selectChange","refreshData","clearValue"],_sfc_main$j=vue.defineComponent({name:"EcanSelect",components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption,AInput:antDesignVue.Input,DownOutlined:DownOutlined$1},props:{...selectComponentProps},setup(c,{expose:u}){var pr,lr,or;const f=vue.inject("isMobile",!1),d=vue.ref(!1),h={text:((pr=c.dataFieldNames)==null?void 0:pr.label)||"label",value:((lr=c.dataFieldNames)==null?void 0:lr.value)||"value"},p=vue.ref([]),v=usePickComponentStyle(c),m=()=>document.getElementById("ProviderConfig")||document.body,g=vue.ref(c.data||[]),y=vue.ref(),x=vue.computed({get:()=>{var vr;const{mode:ar}=c;return(vr=vue.unref(g))!=null&&vr.length?y.value:ar==="multiple"||ar==="tags"||ar==="combobox"?[]:""},set:ar=>{y.value=ar}}),Pn=vue.computed(()=>{const{value:ar,label:vr}=c.dataFieldNames,fr=[];if(Array.isArray(vue.unref(x)))for(const mr of vue.unref(x)){const dr=vue.unref(g).find(hr=>hr[ar]===mr);dr&&fr.push(dr[vr])}else{const mr=vue.unref(g).find(dr=>dr[ar]===vue.unref(x));mr&&fr.push(mr[vr])}return fr.join(",")}),{setLoadedData:b,loadedData:j}=vue.inject(LOADED_DATA,{setLoadedData:(ar,vr)=>{},loadedData:{}}),{getGlobalModel:re,setGlobalModel:vn,getRecordValueByKeyName:Fn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:ar=>{},setGlobalModel:(ar,vr)=>{},getRecordValueByKeyName:ar=>{}}),Bn=c.dataFieldNames;vue.watch(()=>[c.value,c.mode,c.selectFirstOption,c.valueType,g.value],()=>{const{mode:ar,selectFirstOption:vr,value:fr}=c,mr=Fn(fr),dr=Bn.value;if(ar==="multiple"||ar==="tags"||ar==="combobox"){if(mr)y.value=vue.unref(mr).split(",");else if(vr){const hr=vue.unref(g)[0];y.value=hr?[hr[dr]]:[]}}else if(mr)y.value=vue.unref(mr);else if(vr){const hr=vue.unref(g)[0];y.value=hr?hr[dr]:""}},{immediate:!0});const w=(ar,vr)=>{var _r;const fr=Bn.label,mr=Bn.value;let dr;const hr=vr[fr],yr=vr[mr];return hr!=null?dr=hr:yr!=null&&(dr=yr),dr?(dr==null?void 0:dr.toLowerCase().indexOf(ar==null?void 0:ar.toLowerCase()))>=0:((_r=vr.label)==null?void 0:_r.toLowerCase().indexOf(ar==null?void 0:ar.toLowerCase()))>=0},J=ar=>{const{label:vr,value:fr,options:mr}=c.dataFieldNames;if(mr&&Array.isArray(ar))if(ar.some(dr=>mr in dr)){const dr={},hr=[];ar.forEach(yr=>{dr[yr[mr]]||(dr[yr[mr]]=[]),dr[yr[mr]].push({[vr]:yr[vr],[fr]:yr[fr]})});for(const yr in dr)hr.push({[vr]:yr,[mr]:dr[yr]});return hr}else return ar;else{if(!mr&&Array.isArray(ar))return ar=ar.map(dr=>({label:dr[vr],value:dr[fr]})),ar;if(!mr&&!Array.isArray(ar))return ar}},gn=vue.ref(!1),zn=ar=>{var vr,fr;if(g.value=J(((fr=(vr=ar==null?void 0:ar.data)==null?void 0:vr.data)==null?void 0:fr.rows)||[]),c.selectFirstOption){let mr=vue.unref(g)[0];if(Bn.options){const dr=mr[Bn.options];dr&&dr.length&&(mr=dr[0])}y.value=mr[Bn.value]}b(c.id,!0),vue.nextTick(()=>{c.dataType!=="static"&&sr()})},Vn=useRequestData(c),Kn=async()=>{if(c.dataType==="request"){gn.value=!0;try{const ar=await Vn();zn(ar)}catch(ar){console.error(ar)}finally{gn.value=!1}}},Un=vue.computed(()=>{let ar=y.value;if(c.valueType==="label"&&vue.unref(y)&&vue.unref(g)){const vr=Bn.label,fr=Bn.value;if(c.mode==="multiple")ar=vue.unref(g).filter(mr=>vue.unref(y).includes(mr[fr])).map(mr=>mr[vr]);else{const mr=vue.unref(g).find(dr=>vue.unref(y)===dr[fr]);mr&&(ar=mr[vr])}}return ar}),Qn=vue.ref([]),Jn=vue.computed(()=>{const ar={};if(c.mode!=="multiple"){const vr=vue.unref(Qn).find(fr=>fr.value===vue.unref(y));vr&&(ar.itemCodes=vr[Bn.value])}return ar}),Yn=vue.computed(()=>{const{value:ar,label:vr}=Bn,fr=vue.unref(g).find(mr=>mr[ar]===vue.unref(x));return fr?{label:fr[vr],value:fr[ar]}:{}}),{pageId:Zn}=vue.inject("templateOperate",{pageId:""})||{};vn(c.id,{type:c.type,dataType:c.dataType,value:Un,label:(or=vue.unref(Yn))==null?void 0:or.label,...vue.unref(Jn),recordData:vue.unref(Yn)});const nr=useEmitEvent(c),sr=nr("selectChange",()=>{const ar=c.id,vr=re(ar);vn(ar,{...vr,...vue.unref(Jn),RECORD:Un,recordData:vue.unref(Yn),dataType:c.dataType});const fr=getNewValueFromUrlParams(Zn,c.keyName,"value");fr&&(x.value=fr)}),ur=nr("clearValue",()=>{["multiple","tags","combobox"].includes(c.mode)?y.value=[]:y.value=null;const ar=c.id;vn(ar,{RECORD:"",recordData:vue.unref(Yn),dataType:c.dataType})}),Gn=nr("refreshData",(ar=[])=>{var fr,mr;const vr=J(ar);if((mr=(fr=c==null?void 0:c.graphicConfig)==null?void 0:fr.formFields)!=null&&mr.hasAllOption){const dr=Bn.label,hr=Bn.value;vr.unshift({[dr]:"全部",[hr]:""})}if(g.value=vr,c.selectFirstOption){let dr=vue.unref(g)[0];if(Bn.options){const hr=dr[Bn.options];hr&&hr.length&&(dr=hr[0])}y.value=dr[Bn.value]}vn(c.id,{type:c.type,value:Un,...vue.unref(Jn),recordData:vue.unref(Yn),dataType:c.dataType})}),Wn=ar=>{var dr;const{data:vr}=(ar==null?void 0:ar.data)||{},fr=Bn.label,mr=Bn.value;if(vr){const{rows:hr=[]}=((dr=ar==null?void 0:ar.data)==null?void 0:dr.data)||{};Qn.value=hr;const yr=hr.map(br=>({[fr]:br.label,[mr]:br.value})),{id:_r}=c,gr=re(_r);vn(_r,{...gr,...vue.unref(Jn),dataType:c.dataType}),b(_r,!0),Gn(yr)}else Gn([])},Rn=useIndicatorData(c,Wn),qn=async()=>{try{gn.value=!0;const ar=await Rn();Wn(ar)}catch(ar){console.error(ar)}finally{gn.value=!1}},Xn=vue.computed(()=>{var ar,vr;return(vr=getConditions(((ar=c==null?void 0:c.graphicConfig)==null?void 0:ar.controlList)||[]))==null?void 0:vr.find(fr=>fr.conditionKey==="parentCode")}),Hn=vue.ref(!1);vue.watch(j,ar=>{!vue.unref(Hn)&&vue.unref(Xn)&&ar[vue.unref(Xn).id]&&(Hn.value=!0,tr())},{deep:!0});const tr=()=>{switch(c.dataType){case"indicator":{if(vue.unref(Xn)){if(vue.unref(j)[vue.unref(Xn).id]){const{mode:ar}=c;ar==="multiple"||ar==="tags"||ar==="combobox"?x.value=[]:x.value="",qn()}}else qn();break}case"request":Kn();break}};useOnEvent(c,{selectChange:sr,refreshData:tr,clearValue:ur});const{setRequest:cr}=vue.inject(REQUEST_MODEL,{setRequest:({id:ar,sortNum:vr,requestFn:fr})=>{}});return typeof cr=="function"&&cr({id:c.id,requestFn:tr,sortNum:c.requestSort}),u({refreshData:tr}),{style:v,getPopupContainer:m,myValue:y,selectChange:sr,options:g,filterOption:w,loading:gn,resultValue:x,isMobile:f,customFieldName:h,pickVisible:d,onConfirmPicker:()=>{x.value=vue.unref(p)[0],sr(),d.value=!1},mobileValue:Pn,openPicker:()=>{var ar;!Array.isArray(vue.unref(x))&&((ar=vue.unref(g))!=null&&ar.length)&&c.dataFieldNames.value&&(p.value=vue.unref(x)?[vue.unref(x)]:[vue.unref(g)[0][c.dataFieldNames.value]]),d.value=!0},mobileSelectValue:p}}}),Select_vue_vue_type_style_index_0_scoped_2e3fe28b_lang="",Select_vue_vue_type_style_index_1_lang="";function _sfc_render$l(c,u,f,d,h,p){const v=vue.resolveComponent("down-outlined"),m=vue.resolveComponent("a-input"),g=vue.resolveComponent("van-picker"),y=vue.resolveComponent("van-popup"),x=vue.resolveComponent("a-select-option"),Pn=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(v)]),_:1},8,["value","placeholder","onClick"]),vue.createVNode(y,{show:c.pickVisible,"onUpdate:show":u[1]||(u[1]=b=>c.pickVisible=b),style:{"z-index":"999999"},"overlay-style":{background:"rgba(0, 0, 0, .3)",zIndex:999999},position:"bottom",teleport:"#app"},{default:vue.withCtx(()=>[c.pickVisible?(vue.openBlock(),vue.createBlock(g,{key:0,modelValue:c.mobileSelectValue,"onUpdate:modelValue":u[0]||(u[0]=b=>c.mobileSelectValue=b),"columns-field-names":c.customFieldName,columns:c.options,"cancel-button-text":" ",onConfirm:c.onConfirmPicker},null,8,["modelValue","columns-field-names","columns","onConfirm"])):vue.createCommentVNode("",!0)]),_:1},8,["show","overlay-style"])],64)):(vue.openBlock(),vue.createBlock(Pn,{key:1,class:"select",value:c.resultValue,"onUpdate:value":u[2]||(u[2]=b=>c.resultValue=b),placeholder:c.placeholder,showSearch:"",allowClear:c.isAllowClear,mode:c.mode,getPopupContainer:c.getPopupContainer,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,(b,j)=>(vue.openBlock(),vue.createBlock(x,{key:j,value:b.value,style:vue.normalizeStyle({fontSize:c.optionFontSize}),label:b.label},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(b.label),1)]),_:2},1032,["value","style","label"]))),128))]),_:1},8,["value","placeholder","allowClear","mode","getPopupContainer","maxTagCount","filterOption","loading","autoClearSearchValue","onChange","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-2e3fe28b"]]),EcanSelect=withInstall$1(Select),treeSelectProps={...props,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=(re,vn)=>{const Fn=c.dataFieldNames,Bn=Fn.label,w=Fn.value;let J;const gn=vn[Bn],zn=vn[w];return gn!=null?J=gn:zn!=null&&(J=zn),(J==null?void 0:J.toLowerCase().indexOf(re==null?void 0:re.toLowerCase()))>=0},h=vue.ref();vue.watch(()=>[c.multiple,c.value,c.treeCheckable,c.selectFirstOption],()=>{const{multiple:re,value:vn,selectFirstOption:Fn}=c;re?vn?h.value=vn.split(","):Fn&&(h.value=[vue.unref(f)[0]]):vn?h.value=vn:Fn&&(h.value=vue.unref(f)[0])},{immediate:!0});const p=vue.ref(!1),v=re=>{var Fn,Bn;f.value=((Bn=(Fn=re==null?void 0:re.data)==null?void 0:Fn.data)==null?void 0:Bn.rows)||[];const vn=vue.unref(f)[0];c.value===""&&vn!=null&&(h.value=vn[c.dataFieldNames.value])},m=useRequestData(c),g=async()=>{if(c.dataType==="request"){p.value=!0;try{const re=await m();v(re)}catch(re){console.error(re)}finally{p.value=!1}}},{getGlobalModel:y,setGlobalModel:x}=vue.inject(GLOBAL_MODEL,{getGlobalModel:re=>{},setGlobalModel:(re,vn)=>{}});x(c.id,{type:c.type,value:h});const b=useEmitEvent(c)("selectChange",()=>{const re=c.id,vn=y(re);x(re,{...vn,RECORD:h})});useOnEvent(c,{selectChange:b,refreshData:g});const{setRequest:j}=vue.inject(REQUEST_MODEL,{setRequest:({id:re,sortNum:vn,requestFn:Fn})=>{}});return j({id:c.id,requestFn:g,sortNum:c.requestSort}),{style:u,treeData:f,filterTreeNode:d,myValue:h,loading:p,selectChange:b}}},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,p){const v=vue.resolveComponent("a-tree-select");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-tree-select",style:vue.normalizeStyle(d.style)},[vue.createVNode(v,{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,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([]),p=vue.ref(""),v=(Vn=[])=>{var Qn;const Kn=c.value;let Un=[];typeof Kn=="string"&&Kn!==""?Un=Un.concat(Kn.split(",")):Array.isArray(Kn)&&(Un=Un.concat(Kn)),h.value=Vn,c.selectFirstOption?p.value=((Qn=Vn[0])==null?void 0:Qn.value)||"":p.value=Un[0]||""};vue.watch(()=>[c.data,c.value,c.selectFirstOption],([Vn])=>{vue.unref(f)==="design"&&v(Vn)},{immediate:!0,deep:!0});const m=useRequestData(c),g=async()=>{var Un,Qn;if(c.dataType!=="request")return;const Vn=await m(),Kn=((Qn=(Un=Vn==null?void 0:Vn.data)==null?void 0:Un.data)==null?void 0:Qn.rows)||[];v(Kn)},{getGlobalModel:y,setGlobalModel:x}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Vn=>{},setGlobalModel:(Vn,Kn)=>{}});x(c.id,{type:c.type,value:p});const Pn=useEmitEvent(c),b=()=>{const Vn=vue.unref(h).find(Kn=>Kn.value===vue.unref(p))||{};Pn("checkboxChange",()=>{const Kn=y(c.id);x(c.id,{...Kn,RECORD:p})},Vn)()},j=Vn=>{p.value=Vn,Pn("click",()=>{const Kn=y(c.id);x(c.id,{...Kn,RECORD:p,value:p})})()};vue.watch(p,()=>{b()});const re=Vn=>{var Un;const{data:Kn}=(Vn==null?void 0:Vn.data)||{};if(Kn){const Jn=(((Un=Vn==null?void 0:Vn.data)==null?void 0:Un.data)??[]).map(Yn=>({label:Yn.label,value:Yn.value}));v(Jn)}else v([])},vn=useIndicatorData(c,re),Fn=async()=>{try{const Vn=await vn();re(Vn)}catch(Vn){console.error(Vn)}},Bn=()=>{switch(c.dataType){case"indicator":Fn();break;case"request":g();break}},{setRequest:w}=vue.inject(REQUEST_MODEL,{setRequest:({id:Vn,sortNum:Kn,requestFn:Un})=>{}});typeof w=="function"&&w({id:c.id,requestFn:Bn,sortNum:c.requestSort});const J=Vn=>{p.value=Vn.value,j(Vn.value)},gn=vue.computed(()=>c.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px",fontSize:c.tabFontSize}:{fontSize:c.tabFontSize});return vue.onMounted(()=>{v(c.data)}),useOnEvent(c,{resetRecord:()=>{const Vn=c.id,Kn=y(Vn);x(Vn,{...Kn,RECORD:"",value:""})}}),u({refreshData:Bn}),{myOption:h,style:d,myValue:p,radioStyle:gn,onClickButton:j,useImagePath,tabChange:J}}}),Radio_vue_vue_type_style_index_0_lang="",Radio_vue_vue_type_style_index_1_scoped_4b91a29a_lang="",_hoisted_1$a=["onClick"];function _sfc_render$j(c,u,f,d,h,p){const v=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,x)=>(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:x,onClick:vue.withModifiers(Pn=>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(v,{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:x=>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-4b91a29a"]]),EcanRadio=withInstall$1(Radio),navTabProps={...props,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([]),p=vue.ref(!1),v=vue.inject("usedComponentList",[]);vue.watch(()=>c.activeKey,J=>{f.value=J},{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 x=!1,Pn=null;const b=()=>{Pn&&clearTimeout(Pn),Pn=setTimeout(()=>{p.value=!1},200),!vue.unref(p)&&(x||(requestAnimationFrame(()=>{let J=-1;const gn=window.scrollY;for(const zn of vue.unref(h)){const Vn=zn[2];if(zn[1]==="max"&&gn>=zn[0]-Vn||zn[1]!=="max"&&gn>=zn[0]-Vn&&gn<zn[1]-Vn){J=c.data.findIndex(Kn=>Kn.key===zn[3]);break}}J>-1&&(f.value=J),x=!1}),x=!0))},j=vue.computed(()=>{var J;return((J=c.scrollspyConfig)==null?void 0:J.filter(gn=>c.data.find(zn=>gn.key&&zn.key===gn.key)))||[]}),re=vue.computed(()=>!!(c.isScrollspy&&vue.unref(j).length)),vn=()=>{const J=[];for(const gn of vue.unref(j)){const zn=vue.unref(v).find(Vn=>Vn.id===gn.anchor);if(zn){const Vn=getFormatWh(zn.height,vue.unref(y)),Kn=parseFloat(zn.top)-vue.unref(g);J.push([Kn,Kn+Vn,Vn/2,gn.key])}}if(J!=null&&J.length){const gn=J.map(Un=>Un[0]),zn=J.map(Un=>Un[1]),Vn=gn.indexOf(Math.min(...gn)),Kn=zn.indexOf(Math.max(...zn));J[Vn][0]=0,J[Kn][1]="max"}h.value=J};vue.onMounted(()=>{vue.unref(re)&&(vn(),window.addEventListener("scroll",b))}),vue.onBeforeUnmount(()=>{vue.unref(re)&&window.removeEventListener("scroll",b)});const Fn=useEmitEvent(c),{setGlobalModel:Bn}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(J,gn)=>{}});Bn(c.id,{RECORD:vue.unref(f),value:vue.unref(f)});const w=J=>{Fn("tabChange",()=>{if(Bn(c.id,{RECORD:vue.unref(f),value:vue.unref(f)}),vue.unref(re)){const gn=c.data[J].key;if(gn){const zn=vue.unref(j).find(Vn=>Vn.key===gn);if(zn){const Kn=document.querySelector(`[cpntid="${zn.anchor}"]`).getBoundingClientRect();p.value=!0,window.scrollTo({top:Kn.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,p){const v=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(v,{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,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:""}),p=vue.inject("showIndDetail",Gn=>{}),v=vue.ref(),m=vue.ref(!1),g=usePickComponentStyle(c),y=vue.ref([]),x=vue.ref(),Pn=vue.ref({}),b=vue.computed(()=>{let{data:Gn=[]}=vue.unref(y)[0]||{};if(Array.isArray(c.colors)){const Wn=c.isUseLabelColors,Rn=c.colors;Gn=Gn.map((qn,Xn)=>({label:Wn?{color:Rn[Xn]}:{},...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 Wn;m.value=!0,(Wn=x.value)==null||Wn.showModal()}},myInfo:{show:c.toolboxInfoShow,title:"详情",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){p(c)}}}},title:{text:c.titleText,subtext:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},grid:{top:c.gridTop,bottom:c.gridBottom,left:c.gridLeft,right:c.gridRight,containLabel:c.gridContainLabel},tooltip:{show:c.tooltipShow,trigger:c.tooltipTrigger,formatter:Wn=>{const{marker:Rn,seriesName:qn,name:Xn,value:Hn,percent:tr,data:cr}=Wn||{};return hn(c.tooltipFormatter,{textData:{marker:Rn,name:Xn,value:Hn,percent:tr,a:qn,b:Xn,c:Hn,d:tr,...cr}},{useNewline:!0,useSpace:!0})},textStyle:{color:c.tooltipTextStyleColor},position:c.tooltipPosition||void 0},legend:vue.unref(Pn),color:c.colors,series:[{data:Gn,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:{}}}]}}),j=()=>{var Wn,Rn;const Gn=m.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize);Pn.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:Gn+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:Gn}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:(Rn=(Wn=vue.unref(y)[0])==null?void 0:Wn.data)==null?void 0:Rn.map(qn=>({name:qn.name,icon:c.legendType})),formatter:qn=>{const{data:Xn}=y.value[0]||{};let Hn=0,tr,cr="0%";if(Xn)for(const ir of Xn)ir.name===qn&&(tr=+ir.value),Hn+=+ir.value;return Hn&&(cr=`${(tr/Hn*100).toFixed(2)}%`),getLegendFormat(c.legendFormatter,{name:qn,value:tr,percent:cr})}}},re=()=>{m.value=!1},{getGlobalModel:vn,setGlobalModel:Fn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Gn=>{},setGlobalModel:(Gn,Wn)=>{}}),Bn=(Gn=[],Wn)=>{const{dataset:Rn}=En(Gn,Wn);y.value=Rn,Rn!=null&&Rn.length?f.value=!1:f.value=!0},w=(Gn=[],Wn)=>{var qn;const Rn=En(Gn,Wn);y.value=Rn.dataset,(qn=Rn.dataset)!=null&&qn.length?f.value=!1:f.value=!0};vue.watch(()=>c.data,Gn=>{(c.dataType==="static"||vue.unref(d)==="design")&&Bn(Gn)},{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],()=>{j()},{immediate:!0});const J=vue.ref(!1),gn=useRequestData(c),zn=async()=>{var Gn,Wn;if(c.dataType==="request")try{J.value=!0;const Rn=await gn();Bn((Wn=(Gn=Rn==null?void 0:Rn.data)==null?void 0:Gn.data)==null?void 0:Wn.rows,c.valueTypeDataFieldNames)}catch(Rn){console.error(Rn)}finally{J.value=!1}},Vn=useEmitEvent(c);Fn(c.id,{type:c.type,RECORD:""});const Kn=Vn("click",Gn=>{const Wn=vn(c.id);Fn(c.id,{...Wn,type:c.type,RECORD:Gn==null?void 0:Gn.data})}),Un=Gn=>{var Rn;const{data:Wn}=(Gn==null?void 0:Gn.data)||{};if(Wn){const{columns:qn=[],rows:Xn=[]}=((Rn=Gn==null?void 0:Gn.data)==null?void 0:Rn.data)??{};let Hn=[];if(qn.length>0){const tr=qn[0],cr=qn[1];Hn=Xn.filter(ir=>!!ir).map(ir=>({name:ir[tr],value:isNaN(ir[cr])?0:ir[cr]||0}))}w(Hn)}},Qn=useIndicatorData(c,Gn=>{c.isViewRedrawing&&v.value.clear(),Un(Gn)}),Jn=async()=>{try{J.value=!0;const Gn=await Qn();Un(Gn)}catch(Gn){console.error(Gn)}finally{J.value=!1}},{loadedData:Yn}=vue.inject(LOADED_DATA,{loadedData:{}}),Zn=vue.ref(!1);vue.watch(Yn,Gn=>{if(c.dataType==="indicator"){const Wn=getFixedValueDatas(c.graphicConfig);Wn!=null&&Wn.length&&(!vue.unref(Zn)&&canRequestIndicator(c.graphicConfig,Gn)?(Zn.value=!0,nr()):canRequestIndicator(c.graphicConfig,Gn)||(Zn.value=!1))}},{deep:!0});const nr=()=>{switch(c.dataType){case"indicator":canRequestIndicator(c.graphicConfig,vue.unref(Yn))&&Jn();break;case"request":zn();break}};useOnEvent(c,{resetRecord:()=>{const Gn=c.id,Wn=vn(Gn);Fn(Gn,{...Wn,RECORD:""})},refreshData:nr,click:Kn}),u({refreshData:nr});const{setRequest:ur}=vue.inject(REQUEST_MODEL,{setRequest:Gn=>{}});return typeof ur=="function"&&ur({id:c.id,requestFn:nr,sortNum:c.requestSort}),{option:b,style:g,click:Kn,onClose:re,loading:J,ecanModal:x,echartRef:v,emptyData:f}}}),Pie_vue_vue_type_style_index_0_lang="",Pie_vue_vue_type_style_index_1_scoped_24f816f9_lang="";function _sfc_render$h(c,u,f,d,h,p){const v=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[c.noDataTip&&c.emptyData?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"empty-wrap",style:vue.normalizeStyle({color:c.tipTextColor,fontSize:c.tipTextFontSize})},[vue.createElementVNode("span",null,vue.toDisplayString(c.tipText),1)],4)):(vue.openBlock(),vue.createBlock(v,{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(v,{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-24f816f9"]]),EcanPie=withInstall$1(Pie),barProps={...props,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:""}),p=vue.inject("showIndDetail",or=>{}),v=vue.inject("usedComponentList",[]),m=vue.ref(),g=vue.ref(!1),y=vue.ref(!1),x=vue.ref(null),Pn=vue.ref([]),b=usePickComponentStyle(c),j=vue.ref([]),re=vue.ref(),vn=vue.ref({});let Fn;const Bn=vue.computed(()=>g.value?ZOOM_FONT_SIZE:12),w=vue.computed(()=>{const{gradientShow:or,gradientColors:ar,gradientOffset:vr,barBorderRadius:fr}=c,mr=vue.unref(j),dr=mr.length,hr=[];for(let yr=0;yr<dr;yr++){const _r={...mr[yr],type:"bar",barWidth:c.barWidth.value+c.barWidth.suffix,showBackground:c.showBarBackground};if(c.isStack&&(_r.stack="stack"),_r.label={show:c.labelShow,fontSize:c.labelFontSize,position:c.labelPosition,color:c.labelColor,width:c.labelWidth,overflow:c.labelOverflow,formatter:gr=>{let br="",Er=c.labelFormatter;Er===""&&(Er="{c}");const{seriesName:Mr,name:Ir,value:Fr,data:Or}=gr||{};return br+=hn(Er,{textData:{name:Ir,value:Fr,a:Mr,b:Ir,c:Fr||0,...Or}},{useNewline:!0,useSpace:!0}),br}},_r.itemStyle={},or&&(_r.itemStyle={color:{x:c.isUseHorizontalAxis?1:0,y:0,x2:0,y2:c.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:c.colors[yr]},{offset:vr,color:ar[yr]},{offset:1,color:ar[yr]}]}}),fr){const gr=fr.split(",");if(gr!=null&&gr.length){const br=[];for(const Er of gr){const Mr=parseFloat(Er);isNaN(Mr)||br.push(Mr)}_r.itemStyle.borderRadius=br}}c.isShowMarkLine&&(_r.markLine={data:[{type:c.markLineType}]}),hr.push(_r)}return hr}),J=vue.ref([]),gn=vue.ref(!1),zn=vue.computed(()=>{const or=c.yAxisLabelFormatter,ar=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 vr=m.value.chart.getOption(),{xAxis:fr}=vr||{};fr&&fr.length&&(Pn.value=fr[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 vr;g.value=!0,(vr=re.value)==null||vr.showModal()}},myInfo:{show:c.toolboxInfoShow,title:"详情",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){p(c)}}}},title:{text:c.titleText,subtext:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},grid:{top:c.gridTop,bottom:c.gridBottom,left:c.gridLeft,right:c.gridRight,containLabel:c.gridContainLabel},color:c.colors,tooltip:{trigger:"axis",show:c.tooltipShow,formatter:vr=>{var hr;const fr=vr.length;let mr="",dr=c.tooltipFormatter;Fn=(hr=vr[0])==null?void 0:hr.data,dr===""&&(dr="{marker} {a} {c}");for(let yr=0;yr<fr;yr++){const{marker:_r,seriesName:gr,name:br,value:Er,data:Mr}=vr[yr]||{};if(yr===0){let Ir=br;typeof br=="string"&&br[0]==="0"&&!isNaN(+br)&&(Ir=(+br).toString()),mr+=`${In(ar,Ir)}<br/>`}mr+=hn(dr,{textData:{marker:_r,name:br,value:Er,a:gr,b:br,c:Mr.sourceValue||Er||0,...Mr}},{useNewline:!0,useSpace:!0}),mr+="<br/>"}return mr},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(j).map((vr,fr)=>({name:vr.name,itemStyle:{color:c.colors[fr]},icon:c.legendType})),formatter:vr=>getLegendFormat(c.legendFormatter,{name:vr})},xAxis:{type:c.isUseHorizontalAxis?"value":"category",data:c.isUseHorizontalAxis?null:vue.unref(Qn),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(vr){return typeof vr=="string"&&vr[0]==="0"&&!isNaN(+vr)&&(vr=(+vr).toString()),In(ar,vr)}},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(J):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(vr){return In(or,vr)}},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},Kn=(or=[],ar=!1)=>{var fr,mr,dr;let vr={};if(c.dataFieldConfigType==="key"){const hr=ar?c.keyTypeDataFieldNames:null;vr=Mn(or,hr)}else if(c.dataFieldConfigType==="value"){const hr=ar?c.valueTypeDataFieldNames:null;vr=En(or,hr)}if(j.value=vr.dataset,(fr=vue.unref(j))!=null&&fr.length){for(const hr of vue.unref(j))if((mr=hr==null?void 0:hr.data)!=null&&mr.length)for(const yr of hr.data)yr.sourceValue=yr.value,yr.value=parseFloat(yr.value)}J.value=vr.dimensions,(dr=vr.dataset)!=null&&dr.length?f.value=!1:f.value=!0},Un=(or=[],ar,vr=!1)=>{var dr;const mr=Mn(or,vr?ar:null,!0);c.defaultRangeValue&&setDefaultRangeVal({props:c,componentList:vue.unref(v),getGlobalModel:tr},mr),j.value=mr.dataset,J.value=mr.dimensions,(dr=mr.dataset)!=null&&dr.length?f.value=!1:f.value=!0},Qn=vue.computed(()=>vue.unref(J).map(or=>{let ar={};return or&&typeof or=="object"?ar={...or}:ar={value:or},ar}));vue.watch(()=>[c.data,c.labelFormatter,c.legendFormatter,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll],([or])=>{(c.dataType==="static"||vue.unref(d)==="design")&&Kn(or)},{immediate:!0,deep:!0});const Jn=useRequestData(c),Yn=async()=>{var or,ar;try{gn.value=!0;const vr=await Jn();Kn((ar=(or=vr==null?void 0:vr.data)==null?void 0:or.data)==null?void 0:ar.rows,!0)}catch(vr){console.error(vr)}finally{gn.value=!1}},Zn=or=>{var hr;const{columns:ar=[],rows:vr=[]}=((hr=or==null?void 0:or.data)==null?void 0:hr.data)??{};let fr;ar.length>0&&(fr={name:ar[0],types:ar.slice(1).map(yr=>({label:yr,value:yr}))});const{leftAxisList:mr=[]}=c.graphicConfig,dr=mr.filter(yr=>yr.show).map(yr=>yr.label);for(const yr of vr)if(yr)for(const _r in yr)typeof yr[_r]=="string"&&dr.includes(_r)&&!isNaN(parseFloat(yr[_r]))&&(yr[_r]=parseFloat(yr[_r]));Un(vr,fr,!0)},nr=useIndicatorData(c,or=>{c.isViewRedrawing&&m.value.clear(),Zn(or)}),sr=async()=>{try{gn.value=!0;const or=await nr();Zn(or)}catch(or){console.error(or)}finally{gn.value=!1}},{loadedData:ur}=vue.inject(LOADED_DATA,{loadedData:{}}),Gn=vue.ref(!1);vue.watch(ur,or=>{if(c.dataType==="indicator"){const ar=getFixedValueDatas(c.graphicConfig);ar!=null&&ar.length&&(!vue.unref(Gn)&&canRequestIndicator(c.graphicConfig,or)?(Gn.value=!0,Wn()):canRequestIndicator(c.graphicConfig,or)||(Gn.value=!1))}},{deep:!0});const Wn=()=>{switch(c.dataType){case"indicator":canRequestIndicator(c.graphicConfig,vue.unref(ur))&&sr();break;case"request":Yn();break}},Rn=(or,ar)=>!!vue.unref(Pn)[ar.value].value.includes(or),qn=async()=>{y.value=!1;const or=m.value.chart.getOption();for(let ar=0;ar<7;ar++)await Xn(or,ar)},Xn=(or,ar)=>new Promise(vr=>{setTimeout(()=>{const{series:fr,color:mr,xAxis:dr}=or,hr=m.value.chart,{splitArea:yr={}}=dr[0]||{};fr.forEach((_r,gr)=>{const br=_r.data;let Er="";ar%2?Er=mr[gr]+"a8":Er=mr[gr],br[x.value].itemStyle={color:Er}}),ar%2?(yr.show=!0,yr.areaStyle.color=vue.unref(Pn).map((_r,gr)=>gr===x.value?"#ff003b26":"")):yr.show=!1,hr.setOption({series:fr,xAxis:dr}),vr()},200)});u({refreshData:Wn});const Hn=useEmitEvent(c),{getGlobalModel:tr,setGlobalModel:cr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:or=>{},setGlobalModel:(or,ar)=>{}});cr(c.id,{type:c.type,RECORD:""});const ir=Hn("click",or=>{const ar=tr(c.id);cr(c.id,{...ar,type:c.type,RECORD:c.tooltipShow?Fn:or.data})}),{setRequest:er}=vue.inject(REQUEST_MODEL,{setRequest:or=>{}});typeof er=="function"&&er({id:c.id,requestFn:Wn,sortNum:c.requestSort});const pr=()=>{const or=c.id,ar=tr(or);cr(or,{...ar,RECORD:""})},lr=or=>{m.value.chart.containPixel("grid",[or.offsetX,or.offsetY])&&ir()};return c.tooltipShow?vn.value["zr:click"]=lr:vn.value.click=ir,useOnEvent(c,{refreshData:Wn,click:ir,resetRecord:pr}),{option:zn,style:b,refreshData:Wn,click:ir,loading:gn,onClose:Vn,ecanModal:re,echartRef:m,handleLocationOk:qn,onFilterOption:Rn,locationVisible:y,locationValue:x,locationNames:Pn,eventObj:vn,emptyData:f}}}),Bar_vue_vue_type_style_index_0_lang="",Bar_vue_vue_type_style_index_1_scoped_e2dde7a8_lang="",_withScopeId$3=c=>(vue.pushScopeId("data-v-e2dde7a8"),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,p){const v=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal"),y=vue.resolveComponent("a-select-option"),x=vue.resolveComponent("a-select"),Pn=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(v,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(v,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),vue.createVNode(Pn,{visible:c.locationVisible,"onUpdate:visible":u[1]||(u[1]=b=>c.locationVisible=b),title:"快速定位",onOk:c.handleLocationOk},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$8,[_hoisted_2$5,vue.createVNode(x,{value:c.locationValue,"onUpdate:value":u[0]||(u[0]=b=>c.locationValue=b),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,(b,j)=>(vue.openBlock(),vue.createBlock(y,{key:j,value:j},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(b.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-e2dde7a8"]]),EcanBar=withInstall$1(Bar),scatterProps={...props,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:""}),p=vue.inject("showIndDetail",lr=>{}),v=vue.ref(),m=vue.ref(!1),g=usePickComponentStyle(c),y=vue.ref([]),x=vue.ref(),Pn=vue.computed(()=>m.value?ZOOM_FONT_SIZE:12),b=vue.ref(),j=vue.ref(),re=vue.ref(),vn=vue.ref(),Fn=vue.inject("componentList",[]),Bn=vue.ref({}),{loadedData:w}=vue.inject(LOADED_DATA,{loadedData:{}}),J=vue.ref({}),gn=vue.computed(()=>{const{xAxisMarkLineValue:lr=[],yAxisMarkLineValue:or=[]}=c,ar=lr.concat(or),vr=[];for(const fr of ar){let mr=fr.value;const dr=mr.match(/\{(.+?)\}/g);if(dr!=null&&dr.length){for(const yr of dr)mr=mr.replace(yr,yr.slice(1,-1));const hr=vue.unref(Fn).find(yr=>yr.keyName===mr);hr!=null&&hr.id&&!vr.find(yr=>yr.keyName===mr)&&vr.push({componentId:hr.id,keyName:hr.keyName})}}return vr});vue.watch(w,lr=>{var or;if((or=vue.unref(gn))!=null&&or.length)for(const ar of vue.unref(gn)){const{componentId:vr,keyName:fr}=ar;if(lr[vr]){const mr=Qn(vr);J.value[fr]=mr.value}else delete J.value[fr]}},{deep:!0});const zn=vue.computed(()=>{const{xAxisMarkLineValue:lr=[],yAxisMarkLineValue:or=[]}=c,ar=lr.map(mr=>({...mr,x:!0})),vr=or.map(mr=>({...mr,y:!0})),fr=ar.concat(vr);if(fr!=null&&fr.length){const mr=[];for(const dr of fr){const hr={label:{show:!0,formatter:"",rich:{ft:{}}}},yr={};let _r=dr.value;const gr=_r.match(/\{(.+?)\}/g);let br="";if(hr.label.formatter=dr.label?`{ft|${dr.label}}`:"",(dr.offsetHorizontal||dr.offsetVertical)&&(dr.x?hr.label.rich.ft.padding=[0,dr.offsetHorizontal||0,dr.offsetVertical||0,0]:dr.y&&(hr.label.rich.ft.padding=[dr.offsetVertical||0,0,0,dr.offsetHorizontal||0])),dr.labelColor&&(hr.label.rich.ft.color=dr.labelColor),dr.lineColor&&(yr.color=dr.lineColor),dr.x?br="xAxis":dr.y&&(br="yAxis"),gr!=null&&gr.length){for(const Er of gr)_r=_r.replace(Er,Er.slice(1,-1));if(_r){let Er;J.value[_r]?Er=vue.unref(J)[_r]:Er=pn(_r,{max:dr.x?vue.unref(b):dr.y?vue.unref(re):0,min:dr.x?vue.unref(j):dr.y?vue.unref(vn):0}),isNaN(+Er)||mr.push({[br]:+Er,lineStyle:yr,...hr})}}else isNaN(+dr.value)||mr.push({[br]:dr.value,lineStyle:yr,...hr})}return{symbol:["none","none"],data:mr}}else return{data:[]}});function Vn(lr,or,ar){switch(or){case"startX":lr[0].coord[0]=+ar;break;case"startY":lr[0].coord[1]=+ar;break;case"endX":lr[1].coord[0]=+ar;break;case"endY":lr[1].coord[1]=+ar;break}}const Kn=vue.computed(()=>{const{axisMarkArea:lr=[]}=c;if(lr!=null&&lr.length){const or=[];for(const ar of lr){const vr=[{name:"",coord:[],itemStyle:{color:ar.color}},{coord:[]}];for(const fr in ar)if(fr!=="color"){let mr=ar[fr];const dr=mr.match(/\{(.+?)\}/g);if(dr!=null&&dr.length){for(const hr of dr)mr=mr.replace(hr,hr.slice(1,-1));if(mr){const hr=pn(mr,{xMax:vue.unref(b),xMin:vue.unref(j),yMax:vue.unref(re),yMin:vue.unref(vn)});isNaN(+hr)||Vn(vr,fr,hr)}}else isNaN(+ar[fr])||Vn(vr,fr,ar[fr])}vr.every(fr=>{var mr;return(mr=fr.coord)==null?void 0:mr.length})&&or.push(vr)}return{data:or}}else return{data:[]}}),Un=vue.computed(()=>{const lr=c.xAxisLabelFormatter,or=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 ar;m.value=!0,(ar=x.value)==null||ar.showModal()}},myInfo:{show:c.toolboxInfoShow,title:"详情",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){p(c)}}}},title:{text:c.titleText,subtext:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},grid:{top:c.gridTop,bottom:c.gridBottom,left:c.gridLeft,right:c.gridRight,containLabel:c.gridContainLabel},color:c.colors,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(ar){return typeof ar=="string"&&ar[0]==="0"&&!isNaN(+ar)&&(ar=(+ar).toString()),In(lr,ar)}},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(ar){return In(or,ar)}},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(ar){var _r;const{marker:vr,seriesName:fr,componentType:mr}=ar,dr=((_r=ar==null?void 0:ar.data)==null?void 0:_r.record)??{},hr=dr[vue.unref(Zn).name],yr=dr[vue.unref(Zn).value];return["markLine","markArea"].includes(mr)?"":hn(c.tooltipFormatter,{textData:{marker:vr,seriesName:fr,a:fr,b:hr,c:yr,...dr}},{useNewline:!0,useSpace:!0})},axisPointer:{type:c.crossShow||c.crossShow===void 0?"cross":""},textStyle:{fontSize:Pn.value},position:c.tooltipPosition||void 0},legend:{show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,textStyle:{color:c.legendTextStyleColor,fontSize:Pn.value}},series:[{data:vue.unref(y),type:"scatter",symbolSize:c.symbolSize,itemStyle:{color:c.symbolColor},markLine:zn.value,markArea:Kn.value}]}}),{getGlobalModel:Qn,setGlobalModel:Jn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:lr=>{},setGlobalModel:(lr,or)=>{}}),Yn=()=>{var ar,vr;const lr=(ar=vue.unref(v))==null?void 0:ar.chart.getModel().getComponent("yAxis").axis.scale._extent,or=(vr=vue.unref(v))==null?void 0:vr.chart.getModel().getComponent("xAxis").axis.scale._extent;or&&lr&&(j.value=or[0],b.value=or[1],vn.value=lr[0],re.value=lr[1])},Zn=vue.computed(()=>{let lr=c.dataFieldNames;if(c.dataType==="indicator"){const{formFields:or={}}=c.graphicConfig;or!=null&&or.labelField&&(or!=null&&or.valueField)&&(lr={name:or.labelField,value:or.valueField})}return lr}),nr=(lr=[])=>{var vr;const{name:or="name",value:ar="value"}=vue.unref(Zn)||{};y.value=lr.map(fr=>({value:[fr[or],fr[ar]],record:fr})),setTimeout(()=>{Yn()},0),(vr=y.value)!=null&&vr.length?f.value=!1:f.value=!0};vue.watch(()=>c.data,lr=>{(c.dataType==="static"||vue.unref(d)==="design")&&nr(lr)},{immediate:!0,deep:!0});const sr=vue.ref(!1),ur=useRequestData(c),Gn=async()=>{var lr,or;if(c.dataType==="request"){sr.value=!0;try{const ar=await ur();nr((or=(lr=ar==null?void 0:ar.data)==null?void 0:lr.data)==null?void 0:or.rows)}catch(ar){console.error(ar)}finally{sr.value=!1}}},Wn=()=>{m.value=!1},Rn=useEmitEvent(c);Jn(c.id,{type:c.type,RECORD:""});const qn=Rn("click",lr=>{const or=c.id,ar=Qn(or);Jn(or,{...ar,type:c.type,RECORD:lr==null?void 0:lr.data})}),Xn=lr=>{v.value.chart.containPixel("grid",[lr.offsetX,lr.offsetY])&&qn()};c.tooltipShow?Bn.value["zr:click"]=Xn:Bn.value.click=qn;const Hn=lr=>{var or,ar;nr((ar=(or=lr==null?void 0:lr.data)==null?void 0:or.data)==null?void 0:ar.rows)},tr=useIndicatorData(c,lr=>{c.isViewRedrawing&&v.value.clear(),Hn(lr)}),cr=async()=>{try{sr.value=!0;const lr=await tr();Hn(lr)}catch(lr){console.error(lr)}finally{sr.value=!1}},ir=()=>{switch(c.dataType){case"indicator":cr();break;case"request":Gn();break}};useOnEvent(c,{refreshData:ir,click:qn,resetRecord:()=>{const lr=c.id,or=Qn(lr);Jn(lr,{...or,RECORD:""})}});const{setRequest:pr}=vue.inject(REQUEST_MODEL,{setRequest:lr=>{}});return typeof pr=="function"&&pr({id:c.id,requestFn:ir,sortNum:c.requestSort}),u({refreshData:ir}),{option:Un,style:g,click:qn,loading:sr,onClose:Wn,ecanModal:x,echartRef:v,emptyData:f,eventObj:Bn}}}),Scatter_vue_vue_type_style_index_0_lang="",Scatter_vue_vue_type_style_index_1_scoped_ea386bb1_lang="";function _sfc_render$f(c,u,f,d,h,p){const v=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[c.noDataTip&&c.emptyData?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"empty-wrap",style:vue.normalizeStyle({color:c.tipTextColor,fontSize:c.tipTextFontSize})},[vue.createElementVNode("span",null,vue.toDisplayString(c.tipText),1)],4)):(vue.openBlock(),vue.createBlock(v,vue.mergeProps({key:1,ref:"echartRef",option:c.option,autoresize:""},vue.toHandlers(c.eventObj)),null,16,["option"]))]),_:1},8,["spinning"]),vue.createVNode(g,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:c.onClose},{default:vue.withCtx(()=>[vue.createVNode(m,{class:"spin-wrap",spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(v,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Scatter=_export_sfc$1(_sfc_main$d,[["render",_sfc_render$f],["__scopeId","data-v-ea386bb1"]]),EcanScatter=withInstall$1(Scatter),customGraphProps={...props,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,p){const v=vue.resolveComponent("echarts");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(c.style)},[vue.createVNode(v,{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,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"},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:""}),p=vue.inject("showIndDetail",dr=>{}),v=vue.inject("usedComponentList",[]),{getGlobalModel:m,setGlobalModel:g}=vue.inject(GLOBAL_MODEL,{getGlobalModel:dr=>{},setGlobalModel:(dr,hr)=>{}}),y=vue.ref(),x=vue.ref(!1),Pn=vue.ref(!1),b=vue.ref(null),j=vue.ref([]),re=vue.ref({});let vn;const Fn=usePickComponentStyle(c),Bn=vue.ref([]),w=vue.ref([]),J=vue.ref(),gn=vue.ref([]),zn=vue.ref([0,0]),Vn=vue.computed(()=>x.value?ZOOM_FONT_SIZE:12),Kn=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:x.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(){Pn.value=!0;const dr=y.value.chart.getOption(),{xAxis:hr}=dr||{};hr&&hr.length&&(j.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:x.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 dr;x.value=!0,(dr=J.value)==null||dr.showModal()}},myInfo:{show:c.toolboxInfoShow,title:"详情",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){p(c)}}}},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:(x.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:x.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:vue.unref(gn).map((dr,hr)=>({name:dr.name,itemStyle:{color:c.colors[hr]},icon:c.legendType})),formatter:dr=>getLegendFormat(c.legendFormatter,{name:dr})},tooltip:{trigger:"axis",show:c.tooltipShow,formatter:dr=>{var br;const hr=dr.length;let yr="",_r=c.tooltipFormatter;vn=(br=dr[0])==null?void 0:br.data,_r===""&&(_r="{marker} {a} {c}");const gr=c.seriesTypes;for(let Er=0;Er<hr;Er++){const Mr=gr[Er],{tooltipFormatter:Ir}=Mr||{},{marker:Fr,seriesName:Or,name:Nr,value:zr,data:Rr}=dr[Er]||{};if(Er===0){let Vr=Nr;typeof Nr=="string"&&Nr[0]==="0"&&!isNaN(+Nr)&&(Vr=(+Nr).toString()),yr+=`${In(c.xAxisLabelFormatter,Vr)}<br/>`}yr+=hn(Ir||_r,{textData:{marker:Fr,name:Nr,value:zr,seriesName:Or,a:Or,b:Nr,c:zr||0,...Rr}},{useNewline:!0,useSpace:!0}),yr+="<br/>"}return yr},textStyle:{color:c.tooltipTextStyleColor,fontSize:Vn.value},position:c.tooltipPosition||void 0},xAxis:{minInterval:c.xAxisMinInterval,type:"category",data:vue.unref(w).map(dr=>{let hr={};return dr&&typeof dr=="object"?hr={...dr}:hr={value:dr},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(dr){return typeof dr=="string"&&dr[0]==="0"&&!isNaN(+dr)&&(dr=(+dr).toString()),In(c.xAxisLabelFormatter,dr)}},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(sr),series:vue.unref(Bn)})),Un=()=>{x.value=!1},Qn=dr=>{const hr=[];let yr=0;return c.seriesTypes.forEach((_r,gr)=>{var br,Er;_r.axisIndex===dr&&((Er=(br=vue.unref(gn)[gr])==null?void 0:br.data)!=null&&Er.length)&&hr.push(...vue.unref(gn)[gr].data.map(Mr=>+Mr.value))}),hr.some(_r=>_r>=1e7)?yr=4:hr.some(_r=>_r>=1e6)?yr=3:hr.some(_r=>_r>=1e4)&&(yr=1),yr},Jn=()=>{zn.value[0]=c.yAxisLeftUnitAdapt?Qn(0):0,zn.value[1]=c.yAxisRightUnitAdapt?Qn(1):0},Yn=(dr=[],hr=!1)=>{var gr;let yr;if(c.dataFieldConfigType==="key"){const br=hr?c.keyTypeDataFieldNames:null;yr=Mn(dr,br,!0)}else if(c.dataFieldConfigType==="value"){const br=hr?c.valueTypeDataFieldNames:null;yr=En(dr,br)}w.value=yr.dimensions;const _r=yr.dataset;gn.value=yr.dataset,Bn.value=nr(_r),Jn(),(gr=yr.dataset)!=null&&gr.length?f.value=!1:f.value=!0},Zn=(dr=[],hr,yr=!1)=>{var Er;const gr=Mn(dr,yr?hr:null,!0);c.defaultRangeValue&&setDefaultRangeVal({props:c,componentList:vue.unref(v),getGlobalModel:m},gr),w.value=gr.dimensions;const br=gr.dataset;gn.value=gr.dataset,Bn.value=nr(br),Jn(),(Er=gr.dataset)!=null&&Er.length?f.value=!1:f.value=!0};function nr(dr){const hr=[],yr=dr.length,_r=c.seriesTypes;for(let gr=0;gr<yr;gr++){const br=_r[gr],{type:Er,axisIndex:Mr}=br||{};let Ir={type:Er,yAxisIndex:Mr,...dr[gr]};if(Er==="line"){const Fr={};c.shadowColor&&(Fr.shadowColor=c.shadowColor,Fr.shadowBlur=c.shadowBlur,Fr.shadowOffsetY=c.shadowOffsetY,Fr.shadowOffsetX=c.shadowOffsetX),Ir={...Ir,symbolSize:c.symbolSize,smooth:c.smooth,itemStyle:{color:c.colors[gr]},areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:c.colors[gr]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[gr],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...Fr}}}if(Er==="bar"){const{gradientShow:Fr,gradientColors:Or,gradientOffset:Nr}=c,zr={color:c.colors[gr]};if(c.barBorderRadius){const Rr=c.barBorderRadius.split(",");if(Rr!=null&&Rr.length){const Vr=[];for(const Hr of Rr){const Gr=parseFloat(Hr);isNaN(Gr)||Vr.push(Gr)}zr.borderRadius=Vr}}Fr&&(zr.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:c.colors[gr]},{offset:Nr,color:Or[gr]},{offset:1,color:Or[gr]}]}),Ir={...Ir,barWidth:c.barWidth.value+c.barWidth.suffix,itemStyle:zr}}c.isShowMarkLine&&(Ir.markLine={data:[{type:c.markLineType}]}),hr.push(Ir)}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],([dr])=>{(c.dataType==="static"||vue.unref(d)==="design")&&Yn(dr)},{immediate:!0,deep:!0});const sr=vue.computed(()=>{const dr=c.yAxis;return dr==null?void 0:dr.map((hr,yr)=>{const _r=zn.value[yr];let gr;return _r&&(gr=1e4*Math.pow(10,_r-1)),{type:"value",minInterval:c.yAxisMinInterval,splitLine:{show:yr===0?c.yAxisLeftSplitLineShow:c.yAxisRightSplitLineShow,lineStyle:{color:c.yAxisSplitLineStyleColor,type:yr===0?c.yAxisLeftSplitLineType:c.yAxisRightSplitLineType}},splitArea:{show:c.yAxisSplitAreaShow},axisLabel:{show:c.yAxisLabelShow,fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,formatter(br){let Er=br;return gr&&(Er=(+br/gr).toString()),In(hr.axisLabelFormatter,Er)}},axisLine:{show:c.yAxisLineAlwaysDisplay,lineStyle:{color:c.yAxisLineStyleColor}},name:ur(_r)+(yr===0?c.yAxisLeftName:c.yAxisRightName),nameTextStyle:{fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,align:yr===0?"right":"left"},max:c.yAxisMaxValue||null}})});function ur(dr){let hr="";switch(dr){case 1:hr="万";break;case 3:hr="百万";break;case 4:hr="千万";break}return hr}const Gn=vue.ref(!1),Wn=useRequestData(c),Rn=async()=>{var dr,hr;if(c.dataType==="request")try{Gn.value=!0;const yr=await Wn();Yn((hr=(dr=yr==null?void 0:yr.data)==null?void 0:dr.data)==null?void 0:hr.rows,!0)}catch(yr){console.error(yr)}finally{Gn.value=!1}},qn=dr=>{var gr;const{columns:hr=[],rows:yr=[]}=((gr=dr==null?void 0:dr.data)==null?void 0:gr.data)??{};let _r;hr.length>0&&(_r={name:hr[0],types:hr.slice(1).map(br=>({label:br,value:br}))}),Zn(yr,_r,!0)},Xn=useIndicatorData(c,dr=>{c.isViewRedrawing&&y.value.clear(),qn(dr)}),Hn=async()=>{try{Gn.value=!0;const dr=await Xn();qn(dr)}catch(dr){console.error(dr)}finally{Gn.value=!1}},{loadedData:tr}=vue.inject(LOADED_DATA,{loadedData:{}}),cr=vue.ref(!1);vue.watch(tr,dr=>{if(c.dataType==="indicator"){const hr=getFixedValueDatas(c.graphicConfig);hr!=null&&hr.length&&(!vue.unref(cr)&&canRequestIndicator(c.graphicConfig,dr)?(cr.value=!0,ir()):canRequestIndicator(c.graphicConfig,dr)||(cr.value=!1))}},{deep:!0});const ir=()=>{switch(c.dataType){case"indicator":canRequestIndicator(c.graphicConfig,vue.unref(tr))&&Hn();break;case"request":Rn();break}},er=(dr,hr)=>!!vue.unref(j)[hr.value].value.includes(dr),pr=async()=>{Pn.value=!1;const dr=y.value.chart.getOption();for(let hr=0;hr<7;hr++)await lr(dr,hr)},lr=(dr,hr)=>new Promise(yr=>{setTimeout(()=>{const{series:_r,color:gr,xAxis:br}=dr,Er=y.value.chart,{splitArea:Mr={}}=br[0]||{};_r.forEach((Ir,Fr)=>{const Or=Ir.data;let Nr="";hr%2?Nr=gr[Fr]+"a8":Nr=gr[Fr],Or[b.value].itemStyle={color:Nr}}),hr%2?(Mr.show=!0,Mr.areaStyle.color=vue.unref(j).map((Ir,Fr)=>Fr===b.value?"#ff003b26":"")):Mr.show=!1,Er.setOption({series:_r,xAxis:br}),yr()},200)});u({refreshData:ir});const or=useEmitEvent(c);g(c.id,{type:c.type,RECORD:""});const ar=or("click",dr=>{const hr=m(c.id);g(c.id,{...hr,type:c.type,RECORD:c.tooltipShow?vn:dr==null?void 0:dr.data})}),vr=dr=>{y.value.chart.containPixel("grid",[dr.offsetX,dr.offsetY])&&ar()};c.tooltipShow?re.value["zr:click"]=vr:re.value.click=ar;const{setRequest:fr}=vue.inject(REQUEST_MODEL,{setRequest:dr=>{}});return typeof fr=="function"&&fr({id:c.id,requestFn:ir,sortNum:c.requestSort}),useOnEvent(c,{resetRecord:()=>{const dr=c.id,hr=m(dr);g(dr,{...hr,RECORD:""})},refreshData:ir,click:ar}),{style:Fn,option:Kn,click:ar,loading:Gn,onClose:Un,ecanModal:J,echartRef:y,handleLocationOk:pr,onFilterOption:er,locationVisible:Pn,locationValue:b,locationNames:j,eventObj:re,emptyData:f}}}),ComboGraph_vue_vue_type_style_index_0_lang="",ComboGraph_vue_vue_type_style_index_1_scoped_da456a3e_lang="",_withScopeId$2=c=>(vue.pushScopeId("data-v-da456a3e"),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,p){const v=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal"),y=vue.resolveComponent("a-select-option"),x=vue.resolveComponent("a-select"),Pn=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(v,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(v,{option:c.option,"update-options":{notMerge:!0},autoresize:"",onClick:c.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),vue.createVNode(Pn,{visible:c.locationVisible,"onUpdate:visible":u[1]||(u[1]=b=>c.locationVisible=b),title:"快速定位",onOk:c.handleLocationOk},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$7,[_hoisted_2$4,vue.createVNode(x,{value:c.locationValue,"onUpdate:value":u[0]||(u[0]=b=>c.locationValue=b),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,(b,j)=>(vue.openBlock(),vue.createBlock(y,{key:j,value:j},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(b.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-da456a3e"]]),EcanComboGraph=withInstall$1(ComboGraph),radarProps={...props,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:""}),p=vue.inject("showIndDetail",Wn=>{}),v=vue.ref(),m=vue.ref(!1),g=usePickComponentStyle(c),y=vue.ref([]),x=vue.ref(),Pn=vue.computed(()=>m.value?ZOOM_FONT_SIZE:12),b=vue.ref([]),j=vue.ref(c.valueTypeDataFieldNames.name),re=vue.computed(()=>{const Wn=vue.unref(b),Rn=Wn.length,qn=[];for(let Xn=0;Xn<Rn;Xn++){const{name:Hn,data:tr=[]}=Wn[Xn],cr=[{name:Hn,value:tr.map(pr=>pr.value)}];let ir=c.colors[Xn];if(c.gradientShow){const{gradientOffset:pr,gradientColors:lr}=c;ir={x:.7,y:0,x2:0,y2:0,colorStops:[{offset:0,color:c.colors[Xn]},{offset:pr,color:lr[Xn]},{offset:1,color:lr[Xn]}]}}const er={type:"radar",name:Hn,data:cr,areaStyle:{color:ir,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:pr=>{const{data:lr,value:or}=pr;let ar=0,vr="0%";if(lr)for(const fr of lr.value)ar+=+fr;return ar&&(vr=`${(or/ar*100).toFixed(2)}%`),hn(c.labelFormatter,{textData:{value:or,percent:vr}},{useNewline:!1,useSpace:!1})}}};qn.push(er)}return qn}),vn=vue.computed(()=>{var Hn;const Wn=[],Rn=[],qn=vue.unref(b),Xn=qn.length;for(let tr=0;tr<Xn;tr++){const{data:cr=[]}=qn[tr];for(let ir=0;ir<cr.length;ir++)Rn.push(cr[ir].value)}if((Hn=y.value)!=null&&Hn.length){const tr=Rn!=null&&Rn.length?Math.max(...Rn)*1.2:0;for(const cr of y.value)Wn.push({name:cr,max:tr})}return Wn}),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 Wn;m.value=!0,(Wn=x.value)==null||Wn.showModal()}},myInfo:{show:c.toolboxInfoShow,title:"详情",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){p(c)}}}},title:{text:c.titleText,subText:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},color:c.colors,tooltip:{trigger:"axis",textStyle:{fontSize:Pn.value},show:c.tooltipShow,formatter:Wn=>{let Rn="",qn=c.tooltipFormatter;qn===""&&(qn="{marker} {a} {c}");for(let Xn=0;Xn<vue.unref(vn).length;Xn++){const Hn=vue.unref(vn)[Xn],{marker:tr,seriesName:cr,value:ir}=Wn||{};Xn===0&&cr&&(Rn+=`${cr}<br/>`),Rn+=hn(qn,{textData:{marker:tr,name:Hn.name,value:ir[Xn],a:Hn.name,b:Hn.name,c:ir[Xn]||0,type:cr}},{useNewline:!0,useSpace:!0}),Rn+="<br/>"}return Rn},position:c.tooltipPosition||void 0},radar:{indicator:vue.unref(vn),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(b).map(Wn=>({name:Wn.name,icon:c.legendType})),formatter:Wn=>getLegendFormat(c.legendFormatter,{name:Wn})},series:vue.unref(re)})),Bn=()=>{m.value=!1},{getGlobalModel:w,setGlobalModel:J}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Wn=>{},setGlobalModel:(Wn,Rn)=>{}}),gn=(Wn=[],Rn=!1)=>{var Xn;let qn;if(c.dataFieldConfigType==="key"){const Hn=Rn?c.keyTypeDataFieldNames:null;qn=Mn(Wn,Hn)}else if(c.dataFieldConfigType==="value"){const Hn=Rn?c.valueTypeDataFieldNames:null;qn=En(Wn,Hn)}y.value=qn.dimensions,b.value=qn.dataset,(Xn=qn.dataset)!=null&&Xn.length?f.value=!1:f.value=!0},zn=(Wn=[],Rn,qn=!1)=>{var tr;const Hn=Mn(Wn,qn?Rn:null,!0);y.value=Hn.dimensions,b.value=Hn.dataset,(tr=Hn.dataset)!=null&&tr.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],([Wn])=>{(c.dataType==="static"||vue.unref(d)==="design")&&gn(Wn)},{immediate:!0,deep:!0});const Vn=vue.ref(!1),Kn=useRequestData(c),Un=async()=>{var Wn,Rn;if(c.dataType==="request")try{Vn.value=!0;const qn=await Kn();gn((Rn=(Wn=qn==null?void 0:qn.data)==null?void 0:Wn.data)==null?void 0:Rn.rows,!0)}catch(qn){console.error(qn)}finally{Vn.value=!1}},Qn=useEmitEvent(c);J(c.id,{type:c.type,RECORD:""});const Jn=Wn=>{const Rn=Wn.event.topTarget.__dimIdx;Rn!==void 0&&Qn("click",()=>{var tr;const{value:qn,name:Xn}=Wn.data||{},Hn=w(c.id);J(c.id,{...Hn,type:c.type,RECORD:{[vue.unref(j)]:((tr=vue.unref(vn)[Rn])==null?void 0:tr.name)||"",[Xn]:qn[Rn],seriesName:Xn}})})()},Yn=Wn=>{var Hn;const{columns:Rn=[],rows:qn=[]}=((Hn=Wn==null?void 0:Wn.data)==null?void 0:Hn.data)??{};let Xn;Rn.length>0&&(j.value=Rn[0],Xn={name:Rn[0],types:Rn.slice(1).map(tr=>({label:tr,value:tr}))}),zn(qn,Xn,!0)},Zn=useIndicatorData(c,Wn=>{c.isViewRedrawing&&v.value.clear(),Yn(Wn)}),nr=async()=>{try{Vn.value=!0;const Wn=await Zn();Yn(Wn)}catch(Wn){console.error(Wn)}finally{Vn.value=!1}},sr=()=>{switch(c.dataType){case"indicator":nr();break;case"request":Un();break}};useOnEvent(c,{refreshData:sr,resetRecord:()=>{const Wn=c.id,Rn=w(Wn);J(Wn,{...Rn,RECORD:""})},click:Jn});const{setRequest:Gn}=vue.inject(REQUEST_MODEL,{setRequest:Wn=>{}});return typeof Gn=="function"&&Gn({id:c.id,requestFn:sr,sortNum:c.requestSort}),u({refreshData:sr}),{option:Fn,style:g,click:Jn,loading:Vn,onClose:Bn,ecanModal:x,echartRef:v,emptyData:f}}}),Radar_vue_vue_type_style_index_0_lang="",Radar_vue_vue_type_style_index_1_scoped_488400a3_lang="";function _sfc_render$c(c,u,f,d,h,p){const v=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[c.noDataTip&&c.emptyData?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"empty-wrap",style:vue.normalizeStyle({color:c.tipTextColor,fontSize:c.tipTextFontSize})},[vue.createElementVNode("span",null,vue.toDisplayString(c.tipText),1)],4)):(vue.openBlock(),vue.createBlock(v,{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(v,{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-488400a3"]]),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,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},borderComponentProps=transformToComponentProps(borderProps),borderEvents=["click"],_sfc_main$9=vue.defineComponent({name:"EcanBorder",props:{...borderComponentProps},setup(c){const u=usePickComponentStyle(c,["background","backgroundColor"]),f=vue.computed(()=>({})),d=vue.computed(()=>{const{events:re}=c;let vn={};return re!=null&&re.length&&re.find(Bn=>Bn.emit==="showModal")&&(vn={cursor:"pointer"}),vn}),{theme:h}=vue.inject(GLOBAL_CONFIG,{theme:"light"}),p=vue.computed(()=>{let re="";switch(c.titleMode){case"type-2":re="2";break}return re}),v=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${p.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${p.value}.png`],self.location).href),g=vue.computed(()=>({width:"100%",height:"100%"})),y=vue.computed(()=>{const{borderRadius:re}=c,vn=[],Fn={};if(re){const Bn=re.split(",");for(const w of Bn)(+w||+w==0)&&vn.push(+w+"px")}return vn!=null&&vn.length&&(Fn.borderRadius=vn.join(" ")),Fn}),Pn=useEmitEvent(c)("click",()=>{}),b=vue.ref([]);vue.watch(()=>c.data,re=>{b.value=re},{immediate:!0,deep:!0}),useOnEvent(c,{click:Pn});const{setGlobalModel:j}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(re,vn)=>{}});return j(c.id,{type:c.type,value:b}),{style:u,gradientStyle:f,click:Pn,borderStyle:g,theme:h,borderRadiusStyle:y,titleLeftIcon:v,titleRightIcon:m,cursorStyle:d}}}),Border_vue_vue_type_style_index_0_scoped_cfd7481a_lang="",_withScopeId$1=c=>(vue.pushScopeId("data-v-cfd7481a"),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,p){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]=(...v)=>c.click&&c.click(...v)),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)],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-cfd7481a"]]),EcanBorder=withInstall$1(Border),tabsProps$1={...props,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,Un=>{f.value=Un},{immediate:!0});const{pageMode:d}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),h=vue.inject("getContainerMap",()=>{}),p=vue.inject("componentList",[]),v=["ecanBorder","ecanTabs","ecanCirculate"],m=vue.computed(()=>h()||{}),g=Un=>{const Qn=vue.unref(m)[Un],Jn=[];if(Qn)for(const Yn in Qn)for(const Zn of Qn[Yn]){const nr=vue.unref(p).find(sr=>sr.id===Zn);Jn.push(Zn),v.includes(nr==null?void 0:nr.type)&&Jn.push(...g(Zn))}return Jn},y=vue.computed(()=>g(c.id));let x=null;const Pn=()=>{const Un=Array.isArray(vue.unref(j))?vue.unref(j).length-1:0;vue.unref(d)!=="design"&&!c.isAutoScroll&&c.autoSwitch&&Un>0&&(x=setInterval(()=>{const Qn=vue.unref(f)+1;Qn<=Un?f.value=Qn:f.value=0,re.value=vue.unref(j)[vue.unref(f)],w()},c.autoSwitchInterval*1e3))},b=()=>{clearInterval(x)};vue.onMounted(()=>{vue.unref(d)!=="design"&&Pn()}),vue.onBeforeUnmount(()=>{Bn(c.id,{activeKey:c.activeKey}),w(),b()});const j=vue.ref([]),re=vue.ref({});vue.watch(()=>c.data,Un=>{j.value=Un,re.value=Array.isArray(Un)&&Un.length>0?Un[0]:{}},{immediate:!0,deep:!0});const vn=Un=>f.value===Un,Fn=useEmitEvent(c),{setGlobalModel:Bn}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(Un,Qn)=>{}});Bn(c.id,{RECORD:vue.unref(re),value:vue.unref(re),activeKey:f});const{emitRefreshPage:w}=vue.inject(REFRESH_PAGE,{emitRefreshPage:()=>{}}),J=Un=>{let{tab:Qn,index:Jn}=Un||{};if(Un.label){const Yn=vue.unref(j).findIndex(Zn=>Zn.title===Un.label);Yn!==-1&&(Jn=Yn,Qn=vue.unref(j)[Yn])}Fn("tabChange",()=>{!isNaN(+Jn)&&Jn!==vue.unref(f)&&(re.value=Qn,f.value=Jn,Bn(c.id,{RECORD:Qn,value:Qn,activeKey:Jn}),w())})()},gn=vue.computed(()=>{const Un=c.componentList.map(Qn=>parseFloat(Qn.left)+parseFloat(Qn.width)).sort((Qn,Jn)=>Jn-Qn)[0];return{width:Un?Un+"px":"100%"}}),zn=()=>{vue.unref(d)!=="design"&&b()},Vn=Un=>{var Qn,Jn;return Un?(Jn=(Qn=Un==null?void 0:Un.parentNode)==null?void 0:Qn.className)!=null&&Jn.includes("ecan-")?Un.parentNode.getAttribute("cpntid"):Vn(Un.parentNode):""},Kn=Un=>{var Qn;if(vue.unref(d)!=="design"){const Jn=(Un==null?void 0:Un.toElement)||{};if((Qn=Jn==null?void 0:Jn.className)!=null&&Qn.includes("ecan-"))vue.unref(y).includes(Jn.getAttribute("cpntid"))||Pn();else if((Jn==null?void 0:Jn.className)==="page-config")Pn();else{const Yn=Vn(Jn);vue.unref(y).includes(Yn)||Pn()}}};return useOnEvent(c,{tabChange:J}),{style:u,activeKey:f,isActive:vn,tabChange:J,myData:j,useImagePath,pageMode:d,scrollWrapStyle:gn,onMouseEnter:zn,onMouseLeave:Kn}}}),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,p){const v=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,x)=>(vue.openBlock(),vue.createElementBlock("div",{class:"tab",style:vue.normalizeStyle({padding:`${c.tabVerticalPadding} ${c.tabHorizontalPadding}`,color:c.isActive(x)?c.activeTabColor:c.tabColor,backgroundImage:c.isActive(x)?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:x,onClick:vue.withModifiers(Pn=>c.tabChange({tab:y,index:x}),["prevent","stop"])},[vue.createElementVNode("div",{class:"tab-inner",style:vue.normalizeStyle({borderBottom:!c.activeTabBackgroundImage&&!c.tabBackgroundImage?`1px solid ${c.isActive(x)?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,x)=>(vue.openBlock(),vue.createBlock(v,{key:x,value:x,onClick:Pn=>c.tabChange({tab:y,index:x})},{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,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:p}=vue.inject(All_COMPONENT_RES_DATA,{allComponentResData:{}}),{globalVariable:v}=vue.inject(GLOBAL_VARIABLE,{globalVariable:{}}),m=vue.inject("usedComponentList",[]),g=vue.inject("isMobile",!1),{getGlobalModel:y,setGlobalModel:x}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Gn=>{},setGlobalModel:(Gn,Wn)=>{}}),Pn=vue.ref([]),b=vue.ref({}),{pageMode:j,width:re,height:vn}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",width:null,height:null}),Fn=vue.computed(()=>{if(vue.unref(g)){const Gn=document.body.clientWidth,Wn=c.sourceWidth||getFormatWh(c.width,vue.unref(re));return Gn/Wn||1}else return 1});function Bn(Gn){for(const Wn of Gn)Wn.left=parseFloat(Wn.left)-parseFloat(c.sourceLeft||c.left)+"px",Wn.top=parseFloat(Wn.top)-parseFloat(c.sourceTop||c.top)+"px"}const w=Gn=>{const Wn=Gn.sort((Hn,tr)=>parseFloat(Hn.top)-parseFloat(tr.top))[0],Rn=Gn.sort((Hn,tr)=>parseFloat(Hn.left)-parseFloat(tr.left))[0],qn=Gn.map(Hn=>parseFloat(Hn.left)+getFormatWh(Hn.width,vue.unref(re))).sort((Hn,tr)=>tr-Hn)[0],Xn=Gn.map(Hn=>parseFloat(Hn.top)+getFormatWh(Hn.height,vue.unref(vn))).sort((Hn,tr)=>tr-Hn)[0];if(Rn&&qn&&Wn&&Xn){const Hn=parseFloat(Rn.left),tr=parseFloat(Wn.top);return{width:qn-Hn,height:Xn-tr,left:Hn}}else return{width:0,height:0,left:0}},J=vue.ref({}),gn=Gn=>{var lr,or;const Wn=[],{graphicConfig:Rn,id:qn,componentList:Xn,keyFieldMap:Hn,unitInterval:tr,colNum:cr}=c;let ir=lodashEs.cloneDeep(Xn),er=[];if((lr=vue.unref(m))!=null&&lr.length)for(const ar of vue.unref(m))er.push(ar),(or=ar==null?void 0:ar.componentList)!=null&&or.length&&er.push(...ar.componentList);if(Rn.pageMode==="design"&&Rn.preview){const{containerMap:ar}=Rn.pageConfig||{};er=vue.unref(Rn.componentList)||[],ir=moveToComponentList(ar,lodashEs.cloneDeep(er),qn)}Bn(ir);const pr=w(ir);if(Gn!=null&&Gn.length){const{width:ar,left:vr,height:fr}=pr;let mr=0,dr=0;Gn.forEach((hr,yr)=>{hr.index=yr+1;const _r=nanoid(),gr=lodashEs.cloneDeep(ir);for(const br of gr){const Er=Hn.find(Ir=>Ir.keyName===br.keyName),Mr=nanoid();if(br.left=(parseFloat(br.left)+mr)*vue.unref(Fn)+"px",br.top=(parseFloat(br.top)+dr)*vue.unref(Fn)+"px",br.scale=vue.unref(Fn),br.id=Mr,br.keyName=br.name+"_"+Mr,br.unitId=_r,br.extendData={[c.keyName]:{index:hr.index}},Er!=null&&Er.fieldName){const Ir=br.text.match(/\{(.+?)\}/g);switch(br.type){case"ecanText":{br.data={value:String(hr[Er.fieldName])},Ir!=null&&Ir.length||(br.text="{value}");break}case"ecanProportion":{br.data={percent:String(hr[Er.fieldName])},Ir!=null&&Ir.length||(br.text="{percent}");break}}}for(const Ir in br){const Fr=br[Ir];if(typeof Fr=="string"&&Fr.includes("$page")){const Or=lodashEs.cloneDeep(br.extendData);let Nr=Fr.replace(/[{}]/g,"");const zr=Object.keys(Or);for(const Rr of zr)if(hasChinese(Rr)){const Hr="n_"+customAlphabet(f,6)();Nr=Nr.replace(new RegExp(Rr,"g"),Hr),Or[Hr]=Or[Rr]}br[Ir]=pn(Nr,{...vue.unref(v),...Or})}}}cr&&hr.index%cr===0?(mr=0,dr+=tr+fr):mr+=tr+ar,Wn.push(...gr),J.value[_r]=hr}),b.value={width:((cr||Gn.length)*(ar+tr)+vr)*vue.unref(Fn)+"px",height:(cr?Math.ceil(Gn.length/cr)*(tr+fr):tr+fr)*vue.unref(Fn)+"px"}}Pn.value=Wn},zn=Gn=>{var Rn;const{rows:Wn=[]}=((Rn=Gn==null?void 0:Gn.data)==null?void 0:Rn.data)??{};gn(Wn)},Vn=useIndicatorData(c,zn),Kn=async()=>{try{d.value=!0;const Gn=await Vn();zn(Gn)}catch(Gn){console.error(Gn)}finally{d.value=!1}},Un=useRequestData(c),Qn=async()=>{try{d.value=!0;const Gn=await Un();zn(Gn)}catch(Gn){console.error(Gn)}finally{d.value=!1}},Jn=vue.computed(()=>{if(c.dataType!=="component")return{};const{associatId:Gn}=c,Wn=vue.unref(m).find(Rn=>Rn.id===Gn);return(Wn==null?void 0:Wn.dataType)==="static"?{rows:(Wn==null?void 0:Wn.data)||[]}:Gn?vue.unref(p)[Gn]:{}});vue.watch(()=>Jn.value,Gn=>{c.dataType==="component"&&gn((Gn==null?void 0:Gn.rows)||[])},{deep:!0});const Yn=()=>{var Gn;switch(c.dataType){case"indicator":Kn();break;case"request":Qn();break;case"component":gn(((Gn=vue.unref(Jn))==null?void 0:Gn.rows)||[]);break}};useOnEvent(c,{refreshData:Yn,resetRecord:()=>{const Gn=c.id,Wn=y(Gn);x(Gn,{...Wn,RECORD:""})}}),u({refreshData:Yn}),x(c.id,{type:c.type,RECORD:""});const{setRequest:nr}=vue.inject(REQUEST_MODEL,{setRequest:Gn=>{}});typeof nr=="function"&&nr({id:c.id,requestFn:Yn,sortNum:c.requestSort});const sr=useEmitEvent(c);return{loading:d,style:h,myComponentList:Pn,scrollWrapStyle:b,pageMode:j,click:Gn=>{let Wn=Gn.target;if(Wn){let Rn=Wn.getAttribute("unitId");for(;!Rn&&!Wn.className.includes("ecan-");)Wn=Wn.parentElement,Rn=Wn.getAttribute("unitId");Rn&&sr("click",()=>{const qn=y(c.id);x(c.id,{...qn,type:c.type,RECORD:vue.unref(J)[Rn]})})()}}}}}),Circulate_vue_vue_type_style_index_0_scoped_0fb18732_lang="",_hoisted_1$4=["id"];function _sfc_render$9(c,u,f,d,h,p){const v=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(v,{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-0fb18732"]]),EcanCirculate=withInstall$1(Circulate),templateProps={...props,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,p)=>{}})||{};return useOnEvent(c,{refreshData:()=>{f("refreshTemplate",c.pageId)}}),{style:u}}});function _sfc_render$8(c,u,f,d,h,p){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,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 p in h)Object.prototype.hasOwnProperty.call(h,p)&&(u.prototype[p]=h[p])}}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,p=[],v;switch(f){case"int16":case"uint8c":v=1;break;default:v=1.1;break}for(h=0;h<d;h+=1)p.push(v);return p}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,p,v,m,g,y,x;switch(v=Math.floor(c*6),m=c*6-v,g=f*(1-u),y=f*(1-m*u),x=f*(1-(1-m)*u),v%6){case 0:d=f,h=x,p=g;break;case 1:d=y,h=f,p=g;break;case 2:d=g,h=f,p=x;break;case 3:d=g,h=y,p=f;break;case 4:d=x,h=g,p=f;break;case 5:d=f,h=g,p=y;break}return[d,h,p]}function RGBtoHSV(c,u,f){var d=Math.max(c,u,f),h=Math.min(c,u,f),p=d-h,v,m=d===0?0:p/d,g=d/255;switch(d){case h:v=0;break;case c:v=u-f+p*(u<f?6:0),v/=6*p;break;case u:v=f-c+p*2,v/=6*p;break;case f:v=c-u+p*4,v/=6*p;break}return[v,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,p){return d<0&&(d=0),h<0&&(h=0),p<0&&(p=0),"#"+c[d]+c[h]+c[p]}}(),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(j){f({data:j})}},p={postMessage:function(j){h.onmessage({data:j})}};function v(b){if(window.Worker&&window.Blob&&getWebWorker()){var j=new Blob(["var _workerSelf = self; self.onmessage = ",b.toString()],{type:"text/javascript"}),re=URL.createObjectURL(j);return new Worker(re)}return f=b,h}function m(){d||(d=v(function(j){function re(){function Fn(ur,Gn){var Wn,Rn,qn=ur.length,Xn,Hn,tr,cr;for(Rn=0;Rn<qn;Rn+=1)if(Wn=ur[Rn],"ks"in Wn&&!Wn.completed){if(Wn.completed=!0,Wn.hasMask){var ir=Wn.masksProperties;for(Hn=ir.length,Xn=0;Xn<Hn;Xn+=1)if(ir[Xn].pt.k.i)zn(ir[Xn].pt.k);else for(cr=ir[Xn].pt.k.length,tr=0;tr<cr;tr+=1)ir[Xn].pt.k[tr].s&&zn(ir[Xn].pt.k[tr].s[0]),ir[Xn].pt.k[tr].e&&zn(ir[Xn].pt.k[tr].e[0])}Wn.ty===0?(Wn.layers=J(Wn.refId,Gn),Fn(Wn.layers,Gn)):Wn.ty===4?gn(Wn.shapes):Wn.ty===5&&nr(Wn)}}function Bn(ur,Gn){if(ur){var Wn=0,Rn=ur.length;for(Wn=0;Wn<Rn;Wn+=1)ur[Wn].t===1&&(ur[Wn].data.layers=J(ur[Wn].data.refId,Gn),Fn(ur[Wn].data.layers,Gn))}}function w(ur,Gn){for(var Wn=0,Rn=Gn.length;Wn<Rn;){if(Gn[Wn].id===ur)return Gn[Wn];Wn+=1}return null}function J(ur,Gn){var Wn=w(ur,Gn);return Wn?Wn.layers.__used?JSON.parse(JSON.stringify(Wn.layers)):(Wn.layers.__used=!0,Wn.layers):null}function gn(ur){var Gn,Wn=ur.length,Rn,qn;for(Gn=Wn-1;Gn>=0;Gn-=1)if(ur[Gn].ty==="sh")if(ur[Gn].ks.k.i)zn(ur[Gn].ks.k);else for(qn=ur[Gn].ks.k.length,Rn=0;Rn<qn;Rn+=1)ur[Gn].ks.k[Rn].s&&zn(ur[Gn].ks.k[Rn].s[0]),ur[Gn].ks.k[Rn].e&&zn(ur[Gn].ks.k[Rn].e[0]);else ur[Gn].ty==="gr"&&gn(ur[Gn].it)}function zn(ur){var Gn,Wn=ur.i.length;for(Gn=0;Gn<Wn;Gn+=1)ur.i[Gn][0]+=ur.v[Gn][0],ur.i[Gn][1]+=ur.v[Gn][1],ur.o[Gn][0]+=ur.v[Gn][0],ur.o[Gn][1]+=ur.v[Gn][1]}function Vn(ur,Gn){var Wn=Gn?Gn.split("."):[100,100,100];return ur[0]>Wn[0]?!0:Wn[0]>ur[0]?!1:ur[1]>Wn[1]?!0:Wn[1]>ur[1]?!1:ur[2]>Wn[2]?!0:Wn[2]>ur[2]?!1:null}var Kn=function(){var ur=[4,4,14];function Gn(Rn){var qn=Rn.t.d;Rn.t.d={k:[{s:qn,t:0}]}}function Wn(Rn){var qn,Xn=Rn.length;for(qn=0;qn<Xn;qn+=1)Rn[qn].ty===5&&Gn(Rn[qn])}return function(Rn){if(Vn(ur,Rn.v)&&(Wn(Rn.layers),Rn.assets)){var qn,Xn=Rn.assets.length;for(qn=0;qn<Xn;qn+=1)Rn.assets[qn].layers&&Wn(Rn.assets[qn].layers)}}}(),Un=function(){var ur=[4,7,99];return function(Gn){if(Gn.chars&&!Vn(ur,Gn.v)){var Wn,Rn=Gn.chars.length;for(Wn=0;Wn<Rn;Wn+=1){var qn=Gn.chars[Wn];qn.data&&qn.data.shapes&&(gn(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}},Gn.chars[Wn].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"})))}}}}(),Qn=function(){var ur=[5,7,15];function Gn(Rn){var qn=Rn.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 Wn(Rn){var qn,Xn=Rn.length;for(qn=0;qn<Xn;qn+=1)Rn[qn].ty===5&&Gn(Rn[qn])}return function(Rn){if(Vn(ur,Rn.v)&&(Wn(Rn.layers),Rn.assets)){var qn,Xn=Rn.assets.length;for(qn=0;qn<Xn;qn+=1)Rn.assets[qn].layers&&Wn(Rn.assets[qn].layers)}}}(),Jn=function(){var ur=[4,1,9];function Gn(Rn){var qn,Xn=Rn.length,Hn,tr;for(qn=0;qn<Xn;qn+=1)if(Rn[qn].ty==="gr")Gn(Rn[qn].it);else if(Rn[qn].ty==="fl"||Rn[qn].ty==="st")if(Rn[qn].c.k&&Rn[qn].c.k[0].i)for(tr=Rn[qn].c.k.length,Hn=0;Hn<tr;Hn+=1)Rn[qn].c.k[Hn].s&&(Rn[qn].c.k[Hn].s[0]/=255,Rn[qn].c.k[Hn].s[1]/=255,Rn[qn].c.k[Hn].s[2]/=255,Rn[qn].c.k[Hn].s[3]/=255),Rn[qn].c.k[Hn].e&&(Rn[qn].c.k[Hn].e[0]/=255,Rn[qn].c.k[Hn].e[1]/=255,Rn[qn].c.k[Hn].e[2]/=255,Rn[qn].c.k[Hn].e[3]/=255);else Rn[qn].c.k[0]/=255,Rn[qn].c.k[1]/=255,Rn[qn].c.k[2]/=255,Rn[qn].c.k[3]/=255}function Wn(Rn){var qn,Xn=Rn.length;for(qn=0;qn<Xn;qn+=1)Rn[qn].ty===4&&Gn(Rn[qn].shapes)}return function(Rn){if(Vn(ur,Rn.v)&&(Wn(Rn.layers),Rn.assets)){var qn,Xn=Rn.assets.length;for(qn=0;qn<Xn;qn+=1)Rn.assets[qn].layers&&Wn(Rn.assets[qn].layers)}}}(),Yn=function(){var ur=[4,4,18];function Gn(Rn){var qn,Xn=Rn.length,Hn,tr;for(qn=Xn-1;qn>=0;qn-=1)if(Rn[qn].ty==="sh")if(Rn[qn].ks.k.i)Rn[qn].ks.k.c=Rn[qn].closed;else for(tr=Rn[qn].ks.k.length,Hn=0;Hn<tr;Hn+=1)Rn[qn].ks.k[Hn].s&&(Rn[qn].ks.k[Hn].s[0].c=Rn[qn].closed),Rn[qn].ks.k[Hn].e&&(Rn[qn].ks.k[Hn].e[0].c=Rn[qn].closed);else Rn[qn].ty==="gr"&&Gn(Rn[qn].it)}function Wn(Rn){var qn,Xn,Hn=Rn.length,tr,cr,ir,er;for(Xn=0;Xn<Hn;Xn+=1){if(qn=Rn[Xn],qn.hasMask){var pr=qn.masksProperties;for(cr=pr.length,tr=0;tr<cr;tr+=1)if(pr[tr].pt.k.i)pr[tr].pt.k.c=pr[tr].cl;else for(er=pr[tr].pt.k.length,ir=0;ir<er;ir+=1)pr[tr].pt.k[ir].s&&(pr[tr].pt.k[ir].s[0].c=pr[tr].cl),pr[tr].pt.k[ir].e&&(pr[tr].pt.k[ir].e[0].c=pr[tr].cl)}qn.ty===4&&Gn(qn.shapes)}}return function(Rn){if(Vn(ur,Rn.v)&&(Wn(Rn.layers),Rn.assets)){var qn,Xn=Rn.assets.length;for(qn=0;qn<Xn;qn+=1)Rn.assets[qn].layers&&Wn(Rn.assets[qn].layers)}}}();function Zn(ur){ur.__complete||(Jn(ur),Kn(ur),Un(ur),Qn(ur),Yn(ur),Fn(ur.layers,ur.assets),Bn(ur.chars,ur.assets),ur.__complete=!0)}function nr(ur){ur.t.a.length===0&&"m"in ur.t.p}var sr={};return sr.completeData=Zn,sr.checkColors=Jn,sr.checkChars=Un,sr.checkPathProperties=Qn,sr.checkShapes=Yn,sr.completeLayers=Fn,sr}if(p.dataManager||(p.dataManager=re()),p.assetLoader||(p.assetLoader=function(){function Fn(w){var J=w.getResponseHeader("content-type");return J&&w.responseType==="json"&&J.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,J,gn,zn){var Vn,Kn=new XMLHttpRequest;try{Kn.responseType="json"}catch{}Kn.onreadystatechange=function(){if(Kn.readyState===4)if(Kn.status===200)Vn=Fn(Kn),gn(Vn);else try{Vn=Fn(Kn),gn(Vn)}catch(Un){zn&&zn(Un)}};try{Kn.open(["G","E","T"].join(""),w,!0)}catch{Kn.open(["G","E","T"].join(""),J+"/"+w,!0)}Kn.send()}return{load:Bn}}()),j.data.type==="loadAnimation")p.assetLoader.load(j.data.path,j.data.fullPath,function(Fn){p.dataManager.completeData(Fn),p.postMessage({id:j.data.id,payload:Fn,status:"success"})},function(){p.postMessage({id:j.data.id,status:"error"})});else if(j.data.type==="complete"){var vn=j.data.animation;p.dataManager.completeData(vn),p.postMessage({id:j.data.id,payload:vn,status:"success"})}else j.data.type==="loadData"&&p.assetLoader.load(j.data.path,j.data.fullPath,function(Fn){p.postMessage({id:j.data.id,payload:Fn,status:"success"})},function(){p.postMessage({id:j.data.id,status:"error"})})}),d.onmessage=function(b){var j=b.data,re=j.id,vn=u[re];u[re]=null,j.status==="success"?vn.onComplete(j.payload):vn.onError&&vn.onError()})}function g(b,j){c+=1;var re="processId_"+c;return u[re]={onComplete:b,onError:j},re}function y(b,j,re){m();var vn=g(j,re);d.postMessage({type:"loadAnimation",path:b,fullPath:window.location.origin+window.location.pathname,id:vn})}function x(b,j,re){m();var vn=g(j,re);d.postMessage({type:"loadData",path:b,fullPath:window.location.origin+window.location.pathname,id:vn})}function Pn(b,j,re){m();var vn=g(j,re);d.postMessage({type:"complete",animation:b,id:vn})}return{loadAnimation:y,loadData:x,completeAnimation:Pn}}(),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,J){var gn="";if(Bn.e)gn=Bn.p;else if(w){var zn=Bn.p;zn.indexOf("images/")!==-1&&(zn=zn.split("/")[1]),gn=w+zn}else gn=J,gn+=Bn.u?Bn.u:"",gn+=Bn.p;return gn}function h(Bn){var w=0,J=setInterval((function(){var gn=Bn.getBBox();(gn.width||w>500)&&(this._imageLoaded(),clearInterval(J)),w+=1}).bind(this),50)}function p(Bn){var w=d(Bn,this.assetsPath,this.path),J=createNS("image");isSafari?this.testImageLoaded(J):J.addEventListener("load",this._imageLoaded,!1),J.addEventListener("error",(function(){gn.img=c,this._imageLoaded()}).bind(this),!1),J.setAttributeNS("http://www.w3.org/1999/xlink","href",w),this._elementHelper.append?this._elementHelper.append(J):this._elementHelper.appendChild(J);var gn={img:J,assetData:Bn};return gn}function v(Bn){var w=d(Bn,this.assetsPath,this.path),J=createTag("img");J.crossOrigin="anonymous",J.addEventListener("load",this._imageLoaded,!1),J.addEventListener("error",(function(){gn.img=c,this._imageLoaded()}).bind(this),!1),J.src=w;var gn={img:J,assetData:Bn};return gn}function m(Bn){var w={assetData:Bn},J=d(Bn,this.assetsPath,this.path);return dataManager.loadData(J,(function(gn){w.img=gn,this._footageLoaded()}).bind(this),(function(){w.img={},this._footageLoaded()}).bind(this)),w}function g(Bn,w){this.imagesLoadedCb=w;var J,gn=Bn.length;for(J=0;J<gn;J+=1)Bn[J].layers||(!Bn[J].t||Bn[J].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(Bn[J]))):Bn[J].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(Bn[J]))))}function y(Bn){this.path=Bn||""}function x(Bn){this.assetsPath=Bn||""}function Pn(Bn){for(var w=0,J=this.images.length;w<J;){if(this.images[w].assetData===Bn)return this.images[w].img;w+=1}return null}function b(){this.imagesLoadedCb=null,this.images.length=0}function j(){return this.totalImages===this.loadedAssets}function re(){return this.totalFootages===this.loadedFootagesCount}function vn(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:x,setPath:y,loadedImages:j,loadedFootages:re,destroy:b,getAsset:Pn,createImgData:v,createImageData:p,imageLoaded:u,footageLoaded:f,setCacheType:vn},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>`))):c.format==="percent"?(br=+br,isNaN(br)||(br=(br*100).toFixed(2),or=or.replace(yr,`<span class="${fr}" style="color:${Jn(br)||c.variableColor};font-size:${vue.unref(p)};${vue.unref(gn)}">${br}%</span>`))):c.format==="money"?(br=+br,isNaN(br)||(br=formatMoney(br),or=or.replace(yr,`<span class="${fr}" style="color:${Jn(br)||c.variableColor};font-size:${vue.unref(p)};${vue.unref(gn)}">${br}</span>`))):Er==="thousands"?(br=+br,isNaN(br)||(br=formatThousands(br),or=or.replace(yr,`<span class="${fr}" style="color:${Jn(br)||c.variableColor};font-size:${vue.unref(p)};${vue.unref(gn)}">${br}</span>`))):or=or.replace(yr,`<span class="${fr}" style="color:${Jn(br)||c.variableColor};font-size:${vue.unref(p)};${vue.unref(gn)}">${br}</span>`)}}if(vr||(vr=`<span id="xxa" class="${fr}" style="color: ${mr};${vue.unref(gn)}">${or}</span>`),c.unitShow&&c.unitText){const{unitTop:hr,unitLeft:yr}=c;let _r="position:relative;";hr&&(_r+=`top:${hr};`),yr&&(_r+=`margin-left:${yr};`),vr+=`<span style='color:${c.unitColor};font-size:${c.unitFontSize};font-weight:${c.unitFontWeight};${_r};${vue.unref(gn)}'>${c.unitText}</span>`}return c.exceedConfig&&(vr=`<span class="${fr}" style="display: inline-block;color: ${Jn(vr)};">${vr}</span>`),vr.includes("span")||(vr=`<span class="${fr}" style="color: ${Jn(vr)};">${vr}</span>`),vr});function Jn(er){let pr="",lr=!1;const{targetValue:or,targetShow:ar,notExpectColor:vr}=c;if(ar){switch(c.targetRule){case"equal":er!==or&&(lr=!0);break;case"greater":er<=or&&(lr=!0);break;case"greater_equal":er<or&&(lr=!0);break;case"less":er>=or&&(lr=!0);break;case"less_equal":er>or&&(lr=!0);break}lr&&(pr=vr)}return pr}const{pageId:Yn}=vue.inject("templateOperate",{pageId:""})||{},Zn=useRequestData(c),nr=vue.ref(!1),sr=async()=>{var er,pr,lr;try{nr.value=!0;const or=await Zn();(er=or==null?void 0:or.data)!=null&&er.data.rowsToData?J(((pr=or==null?void 0:or.data)==null?void 0:pr.data.rowsToData)||{}):J(((lr=or==null?void 0:or.data)==null?void 0:lr.data)||{})}catch(or){console.error(or)}finally{nr.value=!1}},ur=()=>{w("")},Gn=er=>{var lr,or;const{data:pr}=(er==null?void 0:er.data)||{};if(pr){f.value=!1;const{columns:ar=[],rows:vr=[]}=((lr=er==null?void 0:er.data)==null?void 0:lr.data)??{},{graphicConfig:fr}=c;let mr={};if(ar.length>0)if((or=fr==null?void 0:fr.dimensionList)!=null&&or.length){const dr=ar[0];dr&&(vr!=null&&vr.length)&&(mr={value:vr[0][dr]})}else{const dr=ar.find(hr=>!!hr);dr&&(mr={value:isNaN(vr[dr])?0:vr[dr]||0})}w(mr==null?void 0:mr.value),J(mr)}else f.value=!0,w(c.variableDefaultValue),J({value:c.variableDefaultValue})},Wn=useIndicatorData(c,Gn),Rn=async()=>{try{nr.value=!0;const er=await Wn();Gn(er)}catch(er){console.error(er)}finally{nr.value=!1,vn(c.id,!0)}},qn=vue.ref(!1);vue.watch(Fn,er=>{if(c.dataType==="indicator"){const pr=getFixedValueDatas(c.graphicConfig);pr!=null&&pr.length&&(!vue.unref(qn)&&canRequestIndicator(c.graphicConfig,er)?(qn.value=!0,Xn()):canRequestIndicator(c.graphicConfig,er)||(qn.value=!1))}},{deep:!0});const Xn=async()=>{switch(c.dataType){case"indicator":await Rn();break;case"request":{const{openCustomRequestData:er,customRequestName:pr}=c;er||er===void 0?await sr():(nr.value=!0,re(pr,lr=>{lr&&(lr.rowsToData?J(lr.rowsToData):J(lr)),nr.value=!1}));break}}},{setRequest:Hn}=vue.inject(REQUEST_MODEL,{setRequest:({id:er,sortNum:pr,requestFn:lr})=>{}});typeof Hn=="function"&&Hn({id:c.id,requestFn:Xn,sortNum:c.requestSort}),u({refreshData:Xn});const tr=useEmitEvent(c),cr=tr("click",()=>{const er=document.getElementsByClassName(`ecan-text_${c.id}`);er!=null&&er.length&&w(er[0].innerText),setTimeout(()=>{w("")},0),!(!c.linkPage&&!c.href)&&handleJumpLink(c,{pageMode:vue.unref(y),targetTemplate:c.targetTemplate,getRecordValueByKeyName:j,setTemplateData:Bn})}),ir=tr("valueChange",()=>{Un.value++});return useOnEvent(c,{refreshData:Xn,resetRecord:ur,click:cr,valueChange:ir}),vue.watch(()=>Qn.value,(er,pr)=>{er!==pr&&ir()}),{style:d,myText:Qn,loading:nr,click:cr,textIndent:v,vFontSize:p,gradientStyle:zn,cursorStyle:Vn,myTitle:m,wrapStyle:Kn,textRef:g}}}),__injectCSSVars__$4=()=>{vue.useCssVars(c=>({a8306af2:c.vFontSize,79319158:c.textIndent,"35ec84b0":c.percentageSide,"54d3ca7b":c.titleFontColor,"44a86670":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_b6a533de_lang="",Text_vue_vue_type_style_index_1_lang="",_hoisted_1$g=["innerHTML"],_hoisted_2$7=["innerHTML"],_hoisted_3$3=["innerHTML"];function _sfc_render$x(c,u,f,d,h,p){const v=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(v,{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$g)]),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$7)]),_: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}),ref:"textRef",innerHTML:c.myText},null,14,_hoisted_3$3)),vue.renderSlot(c.$slots,"toolbox",{},void 0,!0)],4))}const Text=_export_sfc$1(__default__$4,[["render",_sfc_render$x],["__scopeId","data-v-b6a533de"]]),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$f={class:"red"};function _sfc_render$w(c,u,f,d,h,p){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$f,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,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:x,operate:Pn}=c;let b=dayjs();if(Pn){const{type:j,value:re,mode:vn}=Pn;switch(j){case"add":b=b.add(re,vn);break;case"minus":b=b.subtract(re,vn)}}return b.format(x)},h=vue.ref();vue.watch(()=>[c.operate,c.format],()=>{h.value=d()},{immediate:!0,deep:!0}),vue.watch(()=>c.updateInterval,()=>{y()},{deep:!0});let p=null;const v=()=>{clearInterval(p),p=null},g=useEmitEvent(c)("timeChange",()=>{}),y=()=>{p&&v();let x=1e3;const{value:Pn,mode:b}=c.updateInterval||{};Pn&&(x=x*Pn);const j={second:1,minute:60,hour:60*60,day:24*60*60};b&&(x=x*j[b]),p=setInterval(()=>{h.value=d(),vue.unref(u)!=="design"&&g()},x)};return useOnEvent(c,{timeChange:g}),vue.onMounted(()=>{y()}),vue.onUnmounted(()=>{v()}),{style:f,time:h}}}),TimeDisplay_vue_vue_type_style_index_0_scoped_b9216314_lang="";function _sfc_render$v(c,u,f,d,h,p){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,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=(Wn,Rn)=>{const{format:qn,customFormatter:Xn}=Rn;if(qn==null||qn==="")return Wn;const Hn={money:formatMoney,percentage:formatPercentage,contrast:formatPercentage,custom:formatCustom};return Hn[qn]?qn==="custom"?Hn[qn](Wn,Xn)||"":Hn[qn](Wn)||"":""},p=(Wn,Rn)=>{const qn=parseFloat(Wn+"");if(Rn!=="contrast")return"";switch(!0){case qn>=0:return"goUp";case qn<0:return"goDown"}},v=useRequestData(c),m=vue.ref(!1),g=async()=>{var Wn;if(c.dataType==="request")try{m.value=!0;const Rn=await v();f.value=((Wn=Rn==null?void 0:Rn.data)==null?void 0:Wn.data.rows)||[]}catch(Rn){console.error(Rn)}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})),x=vue.computed(()=>{const{columns:Wn,isUseSeq:Rn}=c;return Rn?[vue.unref(y),...Wn]:Wn}),Pn=Wn=>{var Xn;const{columns:Rn=[],rows:qn=[]}=((Xn=Wn==null?void 0:Wn.data)==null?void 0:Xn.data)??{};c.isUseSeq&&Rn.unshift(c.seqName),x.value.forEach((Hn,tr)=>{(!c.isUseSeq||tr!==0)&&(Hn.title=Rn[tr],Hn.key=Rn[tr])}),f.value=qn},b=useIndicatorData(c,Pn),j=async()=>{try{m.value=!0;const Wn=await b();Pn(Wn)}catch(Wn){console.error(Wn)}finally{m.value=!1}},re=async()=>{switch(c.dataType){case"indicator":await j();break;case"request":await g();break}},vn=useEmitEvent(c),{getGlobalModel:Fn,setGlobalModel:Bn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Wn=>{},setGlobalModel:(Wn,Rn)=>{}}),w=Wn=>{vn("click",()=>{const Rn=Fn(c.id);Bn(c.id,{...Rn,type:c.type,RECORD:Wn})})()};useOnEvent(c,{refreshData:re,resetRecord:()=>{const Wn=c.id,Rn=Fn(Wn);Bn(Wn,{...Rn,type:c.type,RECORD:""})}});const{setRequest:gn}=vue.inject(REQUEST_MODEL,{setRequest:({id:Wn,sortNum:Rn,requestFn:qn})=>{}});typeof gn=="function"&&gn({id:c.id,requestFn:re,sortNum:c.requestSort}),u({refreshData:re});const zn=(Wn,Rn)=>({flex:Wn.width?"none":"1",width:Wn.width,height:c.itemHeight,lineHeight:c.itemHeight,textAlign:(Rn?Wn.cellAlign:Wn.align)||"left",backgroundColor:Wn.cellColor}),Vn=(Wn,Rn)=>{let qn=0;const Xn=vue.unref(f).map(tr=>tr[Rn]),Hn=Math.max(...Xn);return Hn&&(qn=Wn[Rn]/Hn*100),qn},Kn=Wn=>{const{progressColor:Rn="#1890ff",progressGradientColor:qn=""}=Wn;return qn?{background:`linear-gradient(to right, ${Rn} 0%, ${qn} 100%)`}:{backgroundColor:Rn||"#1890ff"}},Un=vue.computed(()=>{const Wn=parseFloat(c.seqFontSize)+5;return{width:Wn+10,height:Wn}}),{pageMode:Qn}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),Jn=vue.computed(()=>vue.unref(Qn)!=="design"&&c.isAutoScroll),Yn=Wn=>{const{seqIconConfig:Rn}=c;let qn=Rn.find(Xn=>Xn.key===Wn+1);return qn||(qn=Rn.find(Xn=>Xn.key==="other")),!!(qn!=null&&qn.icon)},Zn=(Wn,Rn)=>{const{seqIconConfig:qn}=c;let Xn=qn.find(Hn=>Hn.key===Wn+1);return Xn||(Xn=qn.find(Hn=>Hn.key==="other")),Rn===1?Xn!=null&&Xn.icon?useImagePath(Xn.icon):"":Rn===2?(Xn==null?void 0:Xn.color)||"#fff":""},nr=Wn=>{const{seqIndexFormatter:Rn}=c,qn=Wn+1;return Rn?hn(Rn,{textData:{index:qn}},{useNewline:!1,useSpace:!0}):qn},sr=vue.computed(()=>parseFloat(c.itemWidth)!==100?{height:"100%"}:{}),ur=vue.computed(()=>!c.itemWidth||c.itemWidth==="100%"?"0":c.itemColSpan);return{style:d,formatFn:h,contrastClass:p,dataSource:f,loading:m,myColumns:x,click:w,getColumnStyle:zn,getPercentage:Vn,getBackgroundColor:Kn,isShowSeqIcon:Yn,getSeqIconData:Zn,seqIcon4,seqIcon5,seqIcon6,seqIcon7,iconSize:Un,isScroll:Jn,formatSeq:nr,wrapStyle:sr,colSpan:ur,getText:(Wn,Rn)=>(Wn.format!=null||Wn.format!=="")&&h(Rn[Wn.key],Wn)}}}),List_vue_vue_type_style_index_0_scoped_8233109f_lang="",List_vue_vue_type_style_index_1_lang="",_withScopeId$4=c=>(vue.pushScopeId("data-v-8233109f"),c=c(),vue.popScopeId(),c),_hoisted_1$e={key:0,class:"title"},_hoisted_2$6={key:0,class:"ranking"},_hoisted_3$2=["onClick"],_hoisted_4$2={key:0,class:"ranking"},_hoisted_5$2=_withScopeId$4(()=>vue.createElementVNode("div",{class:"icon"},null,-1)),_hoisted_6$2={class:"sort"},_hoisted_7$2=["src"],_hoisted_8$2={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,p){const v=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$e,[(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$6)):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.myColumns,(x,Pn)=>(vue.openBlock(),vue.createElementBlock("div",{class:"column",key:x.key||Pn,style:vue.normalizeStyle({color:x.titleColor,fontSize:x.fontSize,...c.getColumnStyle(x)})},vue.toDisplayString(x.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,x)=>(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||x,onClick:Pn=>c.click(y)},[c.useRanking?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$2,[_hoisted_5$2,vue.createElementVNode("div",_hoisted_6$2," Top "+vue.toDisplayString(x+1),1)])):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.myColumns,Pn=>{var b;return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["column",c.contrastClass(y[Pn.key],Pn.format),Pn.key==="SEQ"?"seq-column":""]),key:Pn.key,style:vue.normalizeStyle({fontSize:Pn.fontSize,color:c.contrastClass(y[Pn.key],Pn.format)===""?Pn.color:"",fontWeight:Pn.fontWeight,...c.getColumnStyle(Pn,"cell")})},[Pn.key==="SEQ"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[c.seqIcon?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[(b=c.seqIconConfig)!=null&&b.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(x)?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"custom-seq-icon",src:c.getSeqIconData(x,1),style:vue.normalizeStyle({width:c.seqIconWidth,height:c.seqIconHeight})},null,12,_hoisted_7$2)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:"custom-seq-text",style:vue.normalizeStyle({fontSize:c.seqFontSize,color:c.getSeqIconData(x,2),lineHeight:c.seqIconHeight||"",left:c.seqIconOffsetX,top:c.seqIconOffsetY})},vue.toDisplayString(c.formatSeq(x)),5)],4)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_8$2,[x===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)):x===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)):x===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)):x>=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(x)),5)]))],64)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_13$2,vue.toDisplayString(c.formatSeq(x)),1))],64)):Pn.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:Pn.progressWidth||"14px",backgroundColor:Pn.progressBaseColor})},[vue.createVNode(v,{title:y[Pn.key],overlayClassName:"ecan-list-tooltip",color:"#fff"},{default:vue.withCtx(()=>[vue.createElementVNode("div",{style:vue.normalizeStyle({borderRadius:"10px",height:Pn.progressWidth||"14px",width:`${c.getPercentage(y,Pn.key)}%`,...c.getBackgroundColor(Pn)})},null,4)]),_:2},1032,["title"])],4)],4)):(vue.openBlock(),vue.createElementBlock("span",{key:2,title:c.getText(Pn,y)},vue.toDisplayString(c.getText(Pn,y)),9,_hoisted_14$2))],6)}),128))],12,_hoisted_3$2))),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,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:{}},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:(Un,Qn)=>{},loadedData:{}}),h=vue.ref(!1),{pageMode:p}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),v=usePickComponentStyle(c),m=vue.computed(()=>{const Un=c.width;return parseFloat(Un)}),g=vue.ref({});vue.watch(()=>c.data,()=>{(c.dataType==="static"||vue.unref(p)==="design")&&(g.value=c.data)},{immediate:!0,deep:!0});const y=vue.computed(()=>{const Un=vue.unref(g),Qn=+c.variableDefaultValue;if(Un==null)return isNaN(Qn)?0:Qn;const Jn=c.text.match(/\{(.+?)\}/g)||[];let Yn;const Zn=new Set(Object.keys(Un));for(let nr=0;nr<Jn.length;nr++){const sr=Jn[nr],ur=sr.slice(1,sr.length-1);if(Zn.has(ur)){Yn=Un[ur];break}}return typeof Yn=="number"?Yn=Yn*100:typeof Yn=="string"?isNaN(+Yn)?isNaN(parseFloat(Yn))||(Yn=parseFloat(Yn)):Yn=+Yn*100:isNaN(Qn)?Yn=0:Yn=Qn*100,c.decimalFormat&&(Yn=+Yn.toFixed(2)),Yn}),x=vue.computed(()=>{var Zn;let Un=c.text;if(Un==="")return vue.unref(y);const Qn=c.variableDefaultValue,Jn=vue.unref(g),Yn=Un.match(/\{(.+?)\}/g)||[];for(let nr=0;nr<Yn.length;nr++){const sr=Yn[nr];let ur=sr.slice(1,sr.length-1);const Gn=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,Wn=sr.match(Gn);for(let qn=0;qn<(Wn==null?void 0:Wn.length);qn++){const Xn=(Zn=Wn[qn])==null?void 0:Zn.trim();Jn[Xn]!=null&&(ur=ur.replace(Xn,Jn[Xn]))}let Rn=ur;try{(/\(.*\)/g.test(ur)||/[+/\\*]/g.test(ur))&&(Rn=pn(ur))}catch(qn){console.error(qn)}typeof+Rn=="number"&&!isNaN(+Rn)?(Rn=+Rn*100,c.decimalFormat&&(Rn=Rn.toFixed(2))):typeof Rn!="string"&&(Rn=Qn),Rn==="percent"&&(Rn=Qn),Un=Un.replace(sr,`<span style="color: ${c.variableColor};">${Rn+""}</span>`)}return Un=Un==null?void 0:Un.replace(/\n|\\n/g,"<br/>"),vue.unref(h)?"NaN":Un}),Pn=useRequestData(c),b=vue.ref(!1),j=async()=>{var Un,Qn,Jn,Yn,Zn;if(c.dataType==="request")try{b.value=!0;const nr=await Pn();g.value=((Un=nr==null?void 0:nr.data)==null?void 0:Un.data)||{},(Jn=(Qn=nr==null?void 0:nr.data)==null?void 0:Qn.data)!=null&&Jn.rowsToData&&(g.value=((Zn=(Yn=nr==null?void 0:nr.data)==null?void 0:Yn.data)==null?void 0:Zn.rowsToData)||{})}catch(nr){console.error(nr)}finally{b.value=!1}},re=(Un={})=>{g.value=Un},vn=Un=>{var Jn;const{data:Qn}=(Un==null?void 0:Un.data)||{};if(Qn){h.value=!1;const{columns:Yn=[],rows:Zn=[]}=((Jn=Un==null?void 0:Un.data)==null?void 0:Jn.data)??{};let nr={};if(Yn.length>0){const sr=Yn.find(ur=>!!ur);sr&&(nr={percent:Zn[sr]})}re(nr)}else h.value=!0,re({percent:"NaN"})},Fn=useIndicatorData(c,vn),Bn=async()=>{try{b.value=!0;const Un=await Fn();vn(Un)}catch(Un){console.error(Un)}finally{b.value=!1,f(c.id,!0)}},w=async()=>{switch(c.dataType){case"indicator":await Bn();break;case"request":await j();break}},J=vue.ref(!1);vue.watch(d,Un=>{if(c.dataType==="indicator"){const Qn=getFixedValueDatas(c.graphicConfig);Qn!=null&&Qn.length&&(!vue.unref(J)&&canRequestIndicator(c.graphicConfig,Un)?(J.value=!0,w()):canRequestIndicator(c.graphicConfig,Un)||(J.value=!1))}},{deep:!0}),useOnEvent(c,{refreshData:w}),u({refreshData:w});const zn=useEmitEvent(c)("click",()=>{}),{setRequest:Vn}=vue.inject(REQUEST_MODEL,{setRequest:({id:Un,sortNum:Qn,requestFn:Jn})=>{}});typeof Vn=="function"&&Vn({id:c.id,requestFn:w,sortNum:c.requestSort});const Kn=vue.computed(()=>{const{gradientShow:Un,gradientColor:Qn,gradientOffset:Jn,strokeColor:Yn}=c;let Zn=Yn;return Un&&(Zn={"0%":Yn||"transparent",[`${Jn*100}%`]:Qn||"transparent"}),Zn});return{style:v,myWidth:m,text:x,myValue:y,loading:b,click:zn,customStrokeColor:Kn}}}),Proportion_vue_vue_type_style_index_0_scoped_845e45fb_lang="",_hoisted_1$d=["innerHTML"];function _sfc_render$t(c,u,f,d,h,p){const v=vue.resolveComponent("skeleton"),m=vue.resolveComponent("a-progress");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-proportion",style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{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(v,{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_1$d)],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-845e45fb"]]),EcanProportion=withInstall$1(Proportion),counterProps={...props,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"})),p=vue.computed(()=>({color:c.color,fontSize:c.fontSize,fontWeight:c.fontWeight,fontStyle:c.fontStyle}));vue.watch(()=>[c.data,c.dataType],([gn,zn])=>{zn==="static"&&(f.value=gn)},{immediate:!0});const{getGlobalModel:v,setGlobalModel:m}=vue.inject(GLOBAL_MODEL,{getGlobalModel:gn=>{},setGlobalModel:(gn,zn)=>{}}),y=useEmitEvent(c)("click",()=>{const gn=v(c.id);m(c.id,{...gn,type:c.type,value:vue.unref(f)})}),x=()=>{const gn=c.id,zn=v(gn);m(gn,{...zn,type:c.type,value:""})},Pn=useRequestData(c),b=vue.ref(!1),j=async()=>{var gn,zn;try{b.value=!0;const Vn=await Pn();f.value=((zn=(gn=Vn==null?void 0:Vn.data)==null?void 0:gn.data)==null?void 0:zn.value)||""}catch(Vn){console.error(Vn)}finally{b.value=!1}},re=gn=>{var Kn;const{data:zn}=(gn==null?void 0:gn.data)||{};let Vn="";if(zn){const{columns:Un=[],rows:Qn=[]}=((Kn=gn==null?void 0:gn.data)==null?void 0:Kn.data)??{};if(Un.length>0){const Jn=Un.find(Yn=>!!Yn);Jn&&(Vn=Qn[Jn]||"")}}f.value=String(Vn)},vn=useIndicatorData(c,re),Fn=async()=>{try{b.value=!0;const gn=await vn();re(gn)}catch(gn){console.error(gn)}finally{b.value=!1}},Bn=async()=>{switch(c.dataType){case"indicator":await Fn();break;case"request":await j();break}},w=vue.computed(()=>{const gn=[],{digits:zn}=c,Vn=vue.unref(f)?vue.unref(f).split("").reverse().join(""):"";for(let Kn=0;Kn<zn;Kn++)Vn&&Vn[Kn]?gn.push(Vn[Kn]):gn.push("0");return gn.reverse()});useOnEvent(c,{refreshData:Bn,resetRecord:x});const{setRequest:J}=vue.inject(REQUEST_MODEL,{setRequest:({id:gn,sortNum:zn,requestFn:Vn})=>{}});return typeof J=="function"&&J({id:c.id,requestFn:Bn,sortNum:c.requestSort}),u({refreshData:Bn}),{style:d,valueList:w,digitsStyle:h,fontStyle:p,loading:b,useImagePath,click:y}}}),Counter_vue_vue_type_style_index_0_scoped_2e9eb036_lang="",_hoisted_1$c=["src"];function _sfc_render$s(c,u,f,d,h,p){var m;const v=vue.resolveComponent("skeleton");return c.loading?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:vue.normalizeStyle(c.style)},[vue.createVNode(v,{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$c)):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,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:v,gradientShow:m,gradientColor:g,gradientOffset:y,gradientAngle:x,backgroundColor:Pn}=c;if(m){let b=g;return v&&(b="transparent"),b?{background:`linear-gradient(${x}, ${Pn}, ${b} ${y*100}%)`}:{}}else return{}}),{theme:d}=vue.inject(GLOBAL_CONFIG,{theme:"light"}),h=vue.computed(()=>({width:"100%",height:"100%"})),p=vue.computed(()=>{const{borderRadius:v}=c,m=[],g={};if(v){const y=v.split(",");for(const x of y)(+x||+x==0)&&m.push(+x+"px")}return m!=null&&m.length&&(g.borderRadius=m.join(" ")),g});return{style:u,gradientStyle:f,borderStyle:h,theme:d,borderRadiusStyle:p}}}),Rectangle_vue_vue_type_style_index_0_scoped_c6c46783_lang="";function _sfc_render$r(c,u,f,d,h,p){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,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:p}=vue.inject(GLOBAL_MODEL,{getGlobalModel:x=>{},setGlobalModel:(x,Pn)=>{},getRecordValueByKeyName:x=>{}});vue.watch(()=>c.value,x=>{f.value=p(x)},{immediate:!0}),h(c.id,{type:c.type,value:f});const v=()=>{const x=d(c.id);h(c.id,{...x,RECORD:f})},m=useEmitEvent(c),g=lodashEs.debounce(m("inputChange",()=>{v()}),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,p){const v=vue.resolveComponent("a-input");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-input",style:vue.normalizeStyle(c.style)},[vue.createVNode(v,{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,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,p=vue.ref(null),v=vue.ref(null),m=vue.ref(""),g=vue.ref(!1),y=vue.ref([]),x=vue.ref(""),Pn=vue.computed(()=>{let Hn=["year","month","day"];switch(c.picker){case"year":Hn=["year"];break;case"month":Hn=["year","month"];break}return Hn}),{setGlobalModel:b,getGlobalModel:j}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Hn=>{},setGlobalModel:(Hn,tr)=>{}}),{pageId:re}=vue.inject("templateOperate",{pageId:""})||{};b(c.id,{type:c.type,format:c.format,useCurrentTime:c.useCurrentTime,value:p,RECORD:p});const{getGlobalVar:vn}=vue.inject(GLOBAL_CONFIG,{getGlobalVar:Hn=>{}}),Fn=useEmitEvent(c),Bn=Hn=>{const tr=c.id,cr=j(tr);b(tr,{...cr,value:Hn||"",RECORD:Hn||""})},w=Fn("refreshData",Hn=>{Bn(Hn)});vue.watch(()=>[c.value,c.useCurrentTime,c.operate,x.value],([Hn,tr,cr,ir])=>{let er=null,pr=Hn;if(c.dataType==="request"&&(pr=ir),pr){const lr=pr.match(/\{(.+?)\}/g);if(lr){const or={};for(let ar of lr){const vr=ar.slice(1,-1).trim(),fr=j(vr);if(fr)or[vr]=fr.value.format(fr.format);else if(vr.includes("$page")){const mr=vr.replace(/[$.]/g,""),dr=vr.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");pr=pr.replace(new RegExp(dr,"g"),mr),or[mr]=vn(vr)}}er=dayjs(hn(pr,{textData:or}))}else er=dayjs(hn(pr))}else tr&&(er=dayjs());if(cr&&er){const{type:lr,value:or,mode:ar}=cr;switch(lr){case"add":er=er.add(or,ar);break;case"minus":er=er.subtract(or,ar)}}p.value=er,v.value=er,vue.unref(u)&&Zn(er),w(er)},{deep:!0,immediate:!0});const J=Fn("dateChange",()=>{const Hn=getNewValueFromUrlParams(re,c.keyName,"value");Hn&&(p.value=dayjs(Hn)),Bn(vue.unref(p))}),gn=()=>{vue.unref(p)&&J()};useOnEvent(c,{dateChange:J});const zn=vue.ref({}),Vn=vue.ref({}),Kn=Hn=>{Hn?setTimeout(()=>{Vn.value=vue.unref(zn)},300):Vn.value={}};vue.onMounted(()=>{setTimeout(()=>{const Hn=document.querySelector(`#ecan-date-picker-${c.id}`);if(Hn){const tr=Hn.getBoundingClientRect(),cr=parseFloat(vue.unref(f).widthScale)*280;document.body.clientWidth-tr.left<cr&&(zn.value.marginLeft=-1*(cr-tr.width)+"px")}},0)});const Un=()=>{Zn(vue.unref(p)),g.value=!0},Qn=()=>{Zn(),p.value=null},Jn=()=>{const Hn=dayjs(vue.unref(y).join("-"));p.value=Hn,Zn(Hn),g.value=!1,gn()},Yn=()=>{p.value=dayjs(),Zn(),m.value=dayjs().format(c.format),g.value=!1};function Zn(Hn){y.value=nr(Hn||dayjs()),m.value=(Hn==null?void 0:Hn.format(c.format))||""}function nr(Hn){const tr=[];for(const cr of vue.unref(Pn))cr==="day"?tr.push(Hn.date()):tr.push(Hn[cr]()+(cr==="month"?1:0));return tr}const sr=Hn=>{let tr=!1,{limitStartTime:cr,limitEndTime:ir}=c,er=c.picker;const pr={current:vue.unref(v)};return c.picker==="date"&&(er="day"),cr=hn(cr,{textData:pr}),ir=hn(ir,{textData:pr}),cr&&ir?tr=!(dayjs(cr).isBefore(Hn,er)&&Hn.isBefore(dayjs(ir),er)):cr?tr=Hn.isBefore(dayjs(cr),er):ir&&(tr=dayjs(ir).isBefore(Hn,er)),tr},ur=(Hn={})=>{var tr;if((tr=Object.keys(Hn))!=null&&tr.length)for(const cr in Hn)x.value=Hn[cr]},Gn=useRequestData(c),Wn=vue.ref(!1),Rn=async()=>{var Hn,tr,cr;try{Wn.value=!0;const ir=await Gn();(Hn=ir==null?void 0:ir.data)!=null&&Hn.data.rowsToData?ur(((tr=ir==null?void 0:ir.data)==null?void 0:tr.data.rowsToData)||{}):ur(((cr=ir==null?void 0:ir.data)==null?void 0:cr.data)||{})}catch(ir){console.error(ir)}finally{Wn.value=!1}},qn=async()=>{switch(c.dataType){case"request":{await Rn();break}}},{setRequest:Xn}=vue.inject(REQUEST_MODEL,{setRequest:({id:Hn,sortNum:tr,requestFn:cr})=>{}});return typeof Xn=="function"&&Xn({id:c.id,requestFn:qn,sortNum:c.requestSort}),{style:d,getPopupContainer:h,myValue:p,locale,change:gn,scaleValue:f,popupStyle:zn,customStyle:Vn,openChange:Kn,isMobile:u,mobileDateStr:m,handleClearDate:Qn,openDatePick:Un,datePickVisible:g,columnsType:Pn,mobileDate:y,onConfirmDate:Jn,onCancelDate:Yn,disabledDate:sr}}}),__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$b=["id"];function _sfc_render$p(c,u,f,d,h,p){const v=vue.resolveComponent("calendar-outlined"),m=vue.resolveComponent("close-circle-filled"),g=vue.resolveComponent("a-input"),y=vue.resolveComponent("van-date-picker"),x=vue.resolveComponent("van-popup"),Pn=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(v,{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(x,{show:c.datePickVisible,"onUpdate:show":u[1]||(u[1]=b=>c.datePickVisible=b),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]=b=>c.mobileDate=b),"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(Pn,{key:1,class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:c.myValue,"onUpdate:value":u[2]||(u[2]=b=>c.myValue=b),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$b)}const DatePicker$1=_export_sfc$1(__default__$3,[["render",_sfc_render$p],["__scopeId","data-v-96f5bc53"]]),EcanDatePicker=withInstall$1(DatePicker$1),rangePickerProps={...props,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,p){var v=p.prototype;v.quarter=function(y){return this.$utils().u(y)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(y-1))};var m=v.add;v.add=function(y,x){return y=Number(y),this.$utils().p(x)===d?this.add(3*y,f):m.bind(this)(y,x)};var g=v.startOf;v.startOf=function(y,x){var Pn=this.$utils(),b=!!Pn.u(x)||x;if(Pn.p(y)===d){var j=this.quarter()-1;return b?this.month(3*j).startOf(f).startOf("day"):this.month(3*j+2).endOf(f).endOf("day")}return g.bind(this)(y,x)}}})})(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:fr=>{}}),{getGlobalModel:h,setGlobalModel:p}=vue.inject(GLOBAL_MODEL,{getGlobalModel:fr=>{},setGlobalModel:(fr,mr)=>{}}),v=usePickComponentStyle(c),m=()=>document.getElementById("ProviderConfig")||document.body,g=vue.ref([null,null]),y=vue.ref(!1),x=vue.ref([]),Pn=vue.ref([]),b=vue.ref(),j=vue.ref(),re=vue.ref(),vn=vue.ref(),Fn=vue.ref(0),Bn=vue.ref({}),w=vue.ref(""),J=vue.computed(()=>{let fr=["year","month","day"];switch(c.picker){case"year":fr=["year"];break;case"month":fr=["year","month"];break}return fr}),gn=fr=>{const mr=fr==null?void 0:fr.match(/\{(.+?)\}/g);let dr;if(mr){const hr={};for(let yr of mr){const _r=yr.slice(1,-1).trim(),gr=h(_r);if(gr)hr[_r]=gr.value.format(gr.format);else if(_r.includes("$page")){const br=_r.replace(/[$.]/g,""),Er=_r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");fr=fr.replace(new RegExp(Er,"g"),br),hr[br]=d(_r)}}dr=dayjs(hn(fr,{textData:hr}))}else dr=dayjs(hn(fr));return dr};vue.watch(()=>[c.startTime,c.endTime,c.useCurrentTime,c.interval,c.intervalUnit,c.operate],([fr,mr,dr,hr,yr,_r])=>{if(vue.unref(g).every(gr=>!gr)||vue.unref(f)==="design"){let gr=null,br=null;if(dr&&(gr=dayjs().subtract(hr,yr),br=dayjs()),fr&&(gr=gn(fr)),mr&&(br=gn(mr)),_r){const{type:Er,value:Mr,mode:Ir}=_r;switch(Er){case"add":gr=gr&&gr.add(Mr,Ir),br=br&&br.add(Mr,Ir);break;case"minus":gr=gr&&gr.subtract(Mr,Ir),br=br&&br.subtract(Mr,Ir)}}g.value=[gr,br],vue.unref(u)&&ar()}},{immediate:!0});let zn=vue.unref(g)[0],Vn=vue.unref(g)[1],Kn="";const Un=(fr,mr,dr)=>{Array.isArray(fr)?(zn=fr[0],Vn=fr[1],Kn=dr.range):(zn=null,Vn=null)},Qn=fr=>{let mr=!1,{limitStartTime:dr,limitEndTime:hr}=c;const yr={startTime:`${zn||""}`,endTime:`${Vn||""}`};if(dr=hn(dr,{codeData:yr}),hr=hn(hr,{codeData:yr}),dr&&hr?mr=!(dayjs(dr)<fr&&fr<dayjs(hr)):dr?mr=dayjs(dr)>fr:hr&&(mr=dayjs(hr)<fr),!c.isAllowSpanYear&&Kn){let _r=null;if(Kn==="start"?_r=zn:Kn==="end"&&(_r=Vn),_r){const gr=_r.startOf("year"),br=_r.endOf("year");mr=!(gr<=fr&&fr<br)}}if(!mr){const{value:_r=0,mode:gr="year"}=c.limitInterval||{};_r&&(Kn==="start"?mr=zn.add(_r,gr)<fr:Kn==="end"&&(mr=Vn.subtract(_r,gr)>fr))}return mr},Jn=vue.computed(()=>Array.isArray(vue.unref(g))?vue.unref(g)[0]:null),Yn=vue.computed(()=>Array.isArray(vue.unref(g))?vue.unref(g)[1]:null),{pageId:Zn}=vue.inject("templateOperate",{pageId:""})||{};p(c.id,{type:c.type,format:c.format,startTime:Jn,endTime:Yn,interval:c.interval,intervalUnit:c.intervalUnit,useCurrentTime:c.useCurrentTime,operate:c.operate});const nr=useEmitEvent(c);let sr=!1;const ur=nr("dateChange",()=>{var dr;const fr=getNewValueFromUrlParams(Zn,c.keyName,"startTime"),mr=getNewValueFromUrlParams(Zn,c.keyName,"endTime");(dr=g.value)!=null&&dr.length||(g.value=[null,null]),fr&&(g.value[0]=dayjs(fr)),mr&&(g.value[1]=dayjs(mr))}),Gn=fr=>{const mr=vue.unref(g),dr=mr&&mr[0]&&mr[1];fr===!1&&sr===!0&&dr&&(ur(),sr=!1),fr||(Kn="")},Wn=()=>{sr=!0},Rn=()=>{const{associated:fr}=c;if(fr){const mr=h(fr)||{};if(mr){const{value:dr}=mr;if(dr)switch(vue.unref(dr)){case"day":g.value=[dayjs().startOf("day"),dayjs().endOf("day")];break;case"month":g.value=[dayjs().startOf("month"),dayjs().endOf("month")];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}}}ur()},qn=()=>{lr(vue.unref(g)),y.value=!0},Xn=()=>{lr(),w.value="",g.value=[null,null]},Hn=()=>{g.value=[dayjs(vue.unref(x).join("-")),dayjs(vue.unref(Pn).join("-"))],lr(vue.unref(g)),or(),er(),y.value=!1,ur()},tr=()=>{pr(),y.value=!1},cr=()=>{var fr,mr;(fr=vue.unref(x))!=null&&fr.length&&c.format&&(re.value=new Date(vue.unref(x).join("-")),(mr=vue.unref(Pn))!=null&&mr.length&&dayjs(vue.unref(Pn).join("-")).isBefore(dayjs(vue.unref(x).join("-")))&&(Pn.value=lodashEs.cloneDeep(vue.unref(x))))},ir=()=>{var fr,mr;(fr=vue.unref(Pn))!=null&&fr.length&&c.format&&(j.value=new Date(vue.unref(Pn).join("-")),(mr=vue.unref(x))!=null&&mr.length&&dayjs(vue.unref(x).join("-")).isAfter(dayjs(vue.unref(Pn).join("-")))&&(x.value=lodashEs.cloneDeep(vue.unref(Pn))))};function er(){Bn.value={startMinDate:lodashEs.cloneDeep(vue.unref(b)),startMaxDate:lodashEs.cloneDeep(vue.unref(j)),endMinDate:lodashEs.cloneDeep(vue.unref(re)),endMaxDate:lodashEs.cloneDeep(vue.unref(vn))}}function pr(){b.value=vue.unref(Bn).startMinDate,j.value=vue.unref(Bn).startMaxDate,re.value=vue.unref(Bn).endMinDate,vn.value=vue.unref(Bn).endMaxDate}function lr(fr=[]){x.value=vr(fr[0]||dayjs()),Pn.value=vr(fr[1]||dayjs())}function or(){var dr,hr;const fr=(dr=vue.unref(x))!=null&&dr.length?dayjs(vue.unref(x).join("-")):"",mr=(hr=vue.unref(Pn))!=null&&hr.length?dayjs(vue.unref(Pn).join("-")):"";w.value=fr&&mr&&`${fr.format(c.format)} 至 ${mr.format(c.format)}`}function ar(){const{limitStartTime:fr,limitEndTime:mr,limitInterval:dr,isAllowSpanYear:hr}=c;lr(vue.unref(g)),fr&&(b.value=new Date(fr),re.value=new Date(fr),vue.unref(g)[0].isBefore(dayjs(fr))&&(vue.unref(g)[0]=dayjs(fr),x.value=vr(vue.unref(g)[0]))),mr&&(j.value=new Date(mr),vn.value=new Date(mr),vue.unref(g)[1].isAfter(dayjs(mr))&&(vue.unref(g)[1]=dayjs(mr),Pn.value=vr(vue.unref(g)[1]))),vue.unref(g).every(yr=>yr)&&(dr!=null&&dr.value)&&vue.unref(g)[1].diff(vue.unref(g)[0],dr.mode)>dr.value&&(vue.unref(g)[0]=vue.unref(g)[1].subtract(dr.value,dr.mode),x.value=vr(vue.unref(g)[0])),vue.unref(g).every(yr=>yr)&&!hr&&vue.unref(g)[0].year()!==vue.unref(g)[1].year()&&(vue.unref(g)[0]=dayjs(`${vue.unref(g)[1].year()}-01-01`),x.value=vr(vue.unref(g)[0])),er(),or()}function vr(fr){const mr=[];for(const dr of vue.unref(J))dr==="day"?mr.push(fr.date()):mr.push(fr[dr]()+(dr==="month"?1:0));return mr}return useOnEvent(c,{dateChange:Rn}),{style:v,getPopupContainer:m,locale,dateChange:ur,myValue:g,disabledDate:Qn,calendarChange:Un,openChange:Gn,change:Wn,isMobile:u,mobileDateStr:w,datePickVisible:y,columnsType:J,openDatePick:qn,handleClearDate:Xn,onConfirmDate:Hn,onCancelDate:tr,mobileStartDate:x,mobileEndDate:Pn,startMinDate:b,startMaxDate:j,endMinDate:re,endMaxDate:vn,pickerTabKey:Fn,onStartDateChange:cr,onEndDateChange:ir}}}),__injectCSSVars__$2=()=>{vue.useCssVars(c=>({"77a36566":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_f2a97608_lang="",RangePicker_vue_vue_type_style_index_1_lang="";function _sfc_render$o(c,u,f,d,h,p){const v=vue.resolveComponent("calendar-outlined"),m=vue.resolveComponent("close-circle-filled"),g=vue.resolveComponent("a-input"),y=vue.resolveComponent("van-date-picker"),x=vue.resolveComponent("van-picker-group"),Pn=vue.resolveComponent("van-popup"),b=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(v,{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(Pn,{show:c.datePickVisible,"onUpdate:show":u[3]||(u[3]=j=>c.datePickVisible=j),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(x,{key:0,"active-tab":c.pickerTabKey,"onUpdate:active-tab":u[2]||(u[2]=j=>c.pickerTabKey=j),tabs:["开始日期","结束日期"],onConfirm:c.onConfirmDate,onCancel:c.onCancelDate},{default:vue.withCtx(()=>[vue.createVNode(y,{modelValue:c.mobileStartDate,"onUpdate:modelValue":u[0]||(u[0]=j=>c.mobileStartDate=j),"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]=j=>c.mobileEndDate=j),"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(b,{key:1,class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:c.myValue,"onUpdate:value":u[4]||(u[4]=j=>c.myValue=j),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-f2a97608"]]),EcanRangePicker=withInstall$1(RangePicker),buttonProps={...props,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(v);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}}),p=vue.computed(()=>hn(c.text)),v=vue.computed(()=>hn(c.href)||null),m=vue.computed(()=>{const g=c.target;if(!(g==="event"||vue.unref(v)==null))return{self:"_self",blank:"_blank"}[g]});return useOnEvent(c,{click:d}),{style:u,click:d,myText:p,myHref:v,myTarget:m,buttonStyle:h}}}),Button_vue_vue_type_style_index_0_lang="";function _sfc_render$n(c,u,f,d,h,p){const v=vue.resolveComponent("a-button");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-button",style:vue.normalizeStyle(c.style)},[vue.createVNode(v,{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={...props,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),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([]),p=Bn=>{const w=c.value;let J=[];Bn.forEach(gn=>{gn.checked&&J.push(gn.value)}),typeof w=="string"&&w!==""?J=J.concat(w.split(",")):Array.isArray(w)&&(J=J.concat(w)),d.value=Bn,h.value=J};vue.watch(()=>[c.data,c.value],([Bn])=>{p(Bn)},{immediate:!0,deep:!0});const v=useRequestData(c),m=async()=>{var J,gn;if(c.dataType!=="request")return;const Bn=await v(),w=((gn=(J=Bn==null?void 0:Bn.data)==null?void 0:J.data)==null?void 0:gn.rows)||[];p(w)},{getGlobalModel:g,setGlobalModel:y}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Bn=>{},setGlobalModel:(Bn,w)=>{}});y(c.id,{type:c.type,value:h});const Pn=useEmitEvent(c)("checkboxChange",()=>{const Bn=g(c.id);y(c.id,{...Bn,RECORD:h})}),b=Bn=>{var J;const{data:w}=(Bn==null?void 0:Bn.data)||{};if(w){const zn=(((J=Bn==null?void 0:Bn.data)==null?void 0:J.data)??[]).map(Vn=>({label:Vn.label,value:Vn.value}));p(zn)}else p([])},j=useIndicatorData(c,b),re=async()=>{try{const Bn=await j();b(Bn)}catch(Bn){console.error(Bn)}},vn=async()=>{switch(c.dataType){case"indicator":await re();break;case"request":await m();break}},{setRequest:Fn}=vue.inject(REQUEST_MODEL,{setRequest:({id:Bn,sortNum:w,requestFn:J})=>{}});return typeof Fn=="function"&&Fn({id:c.id,requestFn:vn,sortNum:c.requestSort}),u({refreshData:vn}),{myOption:d,style:f,myValue:h,checkboxChange:Pn}}}),Checkbox_vue_vue_type_style_index_0_lang="";function _sfc_render$m(c,u,f,d,h,p){const v=vue.resolveComponent("a-checkbox-group");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-checkbox",style:vue.normalizeStyle(c.style)},[vue.createVNode(v,{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=_export_sfc$1(_sfc_main$k,[["render",_sfc_render$m]]),EcanCheckbox=withInstall$1(Checkbox),selectProps={...props,name:"下拉框选择器",keyName:"下拉框选择器",width:"120px",height:"33px",type:"ecanSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,graphicConfig:{},valueType:"value",isAllowClear:!0,optionFontSize:"14px"},selectComponentProps=transformToComponentProps(selectProps),selectEvents=["selectChange","refreshData","clearValue"],_sfc_main$j=vue.defineComponent({name:"EcanSelect",components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption,AInput:antDesignVue.Input,DownOutlined:DownOutlined$1},props:{...selectComponentProps},setup(c,{expose:u}){var pr,lr,or;const f=vue.inject("isMobile",!1),d=vue.ref(!1),h={text:((pr=c.dataFieldNames)==null?void 0:pr.label)||"label",value:((lr=c.dataFieldNames)==null?void 0:lr.value)||"value"},p=vue.ref([]),v=usePickComponentStyle(c),m=()=>document.getElementById("ProviderConfig")||document.body,g=vue.ref(c.data||[]),y=vue.ref(),x=vue.computed({get:()=>{var vr;const{mode:ar}=c;return(vr=vue.unref(g))!=null&&vr.length?y.value:ar==="multiple"||ar==="tags"||ar==="combobox"?[]:""},set:ar=>{y.value=ar}}),Pn=vue.computed(()=>{const{value:ar,label:vr}=c.dataFieldNames,fr=[];if(Array.isArray(vue.unref(x)))for(const mr of vue.unref(x)){const dr=vue.unref(g).find(hr=>hr[ar]===mr);dr&&fr.push(dr[vr])}else{const mr=vue.unref(g).find(dr=>dr[ar]===vue.unref(x));mr&&fr.push(mr[vr])}return fr.join(",")}),{setLoadedData:b,loadedData:j}=vue.inject(LOADED_DATA,{setLoadedData:(ar,vr)=>{},loadedData:{}}),{getGlobalModel:re,setGlobalModel:vn,getRecordValueByKeyName:Fn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:ar=>{},setGlobalModel:(ar,vr)=>{},getRecordValueByKeyName:ar=>{}}),Bn=c.dataFieldNames;vue.watch(()=>[c.value,c.mode,c.selectFirstOption,c.valueType,g.value],()=>{const{mode:ar,selectFirstOption:vr,value:fr}=c,mr=Fn(fr),dr=Bn.value;if(ar==="multiple"||ar==="tags"||ar==="combobox"){if(mr)y.value=vue.unref(mr).split(",");else if(vr){const hr=vue.unref(g)[0];y.value=hr?[hr[dr]]:[]}}else if(mr)y.value=vue.unref(mr);else if(vr){const hr=vue.unref(g)[0];y.value=hr?hr[dr]:""}},{immediate:!0});const w=(ar,vr)=>{var _r;const fr=Bn.label,mr=Bn.value;let dr;const hr=vr[fr],yr=vr[mr];return hr!=null?dr=hr:yr!=null&&(dr=yr),dr?(dr==null?void 0:dr.toLowerCase().indexOf(ar==null?void 0:ar.toLowerCase()))>=0:((_r=vr.label)==null?void 0:_r.toLowerCase().indexOf(ar==null?void 0:ar.toLowerCase()))>=0},J=ar=>{const{label:vr,value:fr,options:mr}=c.dataFieldNames;if(mr&&Array.isArray(ar))if(ar.some(dr=>mr in dr)){const dr={},hr=[];ar.forEach(yr=>{dr[yr[mr]]||(dr[yr[mr]]=[]),dr[yr[mr]].push({[vr]:yr[vr],[fr]:yr[fr]})});for(const yr in dr)hr.push({[vr]:yr,[mr]:dr[yr]});return hr}else return ar;else{if(!mr&&Array.isArray(ar))return ar=ar.map(dr=>({label:dr[vr],value:dr[fr]})),ar;if(!mr&&!Array.isArray(ar))return ar}},gn=vue.ref(!1),zn=ar=>{var vr,fr;if(g.value=J(((fr=(vr=ar==null?void 0:ar.data)==null?void 0:vr.data)==null?void 0:fr.rows)||[]),c.selectFirstOption){let mr=vue.unref(g)[0];if(Bn.options){const dr=mr[Bn.options];dr&&dr.length&&(mr=dr[0])}y.value=mr[Bn.value]}b(c.id,!0),vue.nextTick(()=>{c.dataType!=="static"&&sr()})},Vn=useRequestData(c),Kn=async()=>{if(c.dataType==="request"){gn.value=!0;try{const ar=await Vn();zn(ar)}catch(ar){console.error(ar)}finally{gn.value=!1}}},Un=vue.computed(()=>{let ar=y.value;if(c.valueType==="label"&&vue.unref(y)&&vue.unref(g)){const vr=Bn.label,fr=Bn.value;if(c.mode==="multiple")ar=vue.unref(g).filter(mr=>vue.unref(y).includes(mr[fr])).map(mr=>mr[vr]);else{const mr=vue.unref(g).find(dr=>vue.unref(y)===dr[fr]);mr&&(ar=mr[vr])}}return ar}),Qn=vue.ref([]),Jn=vue.computed(()=>{const ar={};if(c.mode!=="multiple"){const vr=vue.unref(Qn).find(fr=>fr.value===vue.unref(y));vr&&(ar.itemCodes=vr[Bn.value])}return ar}),Yn=vue.computed(()=>{const{value:ar,label:vr}=Bn,fr=vue.unref(g).find(mr=>mr[ar]===vue.unref(x));return fr?{label:fr[vr],value:fr[ar]}:{}}),{pageId:Zn}=vue.inject("templateOperate",{pageId:""})||{};vn(c.id,{type:c.type,dataType:c.dataType,value:Un,label:(or=vue.unref(Yn))==null?void 0:or.label,...vue.unref(Jn),recordData:vue.unref(Yn)});const nr=useEmitEvent(c),sr=nr("selectChange",()=>{const ar=c.id,vr=re(ar);vn(ar,{...vr,...vue.unref(Jn),RECORD:Un,recordData:vue.unref(Yn),dataType:c.dataType});const fr=getNewValueFromUrlParams(Zn,c.keyName,"value");fr&&(x.value=fr)}),ur=nr("clearValue",()=>{["multiple","tags","combobox"].includes(c.mode)?y.value=[]:y.value=null;const ar=c.id;vn(ar,{RECORD:"",recordData:vue.unref(Yn),dataType:c.dataType})}),Gn=nr("refreshData",(ar=[])=>{var fr,mr;const vr=J(ar);if((mr=(fr=c==null?void 0:c.graphicConfig)==null?void 0:fr.formFields)!=null&&mr.hasAllOption){const dr=Bn.label,hr=Bn.value;vr.unshift({[dr]:"全部",[hr]:""})}if(g.value=vr,c.selectFirstOption){let dr=vue.unref(g)[0];if(Bn.options){const hr=dr[Bn.options];hr&&hr.length&&(dr=hr[0])}y.value=dr[Bn.value]}vn(c.id,{type:c.type,value:Un,...vue.unref(Jn),recordData:vue.unref(Yn),dataType:c.dataType})}),Wn=ar=>{var dr;const{data:vr}=(ar==null?void 0:ar.data)||{},fr=Bn.label,mr=Bn.value;if(vr){const{rows:hr=[]}=((dr=ar==null?void 0:ar.data)==null?void 0:dr.data)||{};Qn.value=hr;const yr=hr.map(br=>({[fr]:br.label,[mr]:br.value})),{id:_r}=c,gr=re(_r);vn(_r,{...gr,...vue.unref(Jn),dataType:c.dataType}),b(_r,!0),Gn(yr)}else Gn([])},Rn=useIndicatorData(c,Wn),qn=async()=>{try{gn.value=!0;const ar=await Rn();Wn(ar)}catch(ar){console.error(ar)}finally{gn.value=!1}},Xn=vue.computed(()=>{var ar,vr;return(vr=getConditions(((ar=c==null?void 0:c.graphicConfig)==null?void 0:ar.controlList)||[]))==null?void 0:vr.find(fr=>fr.conditionKey==="parentCode")}),Hn=vue.ref(!1);vue.watch(j,ar=>{!vue.unref(Hn)&&vue.unref(Xn)&&ar[vue.unref(Xn).id]&&(Hn.value=!0,tr())},{deep:!0});const tr=async()=>{switch(c.dataType){case"indicator":{if(vue.unref(Xn)){if(vue.unref(j)[vue.unref(Xn).id]){const{mode:ar}=c;ar==="multiple"||ar==="tags"||ar==="combobox"?x.value=[]:x.value="",qn()}}else await qn();break}case"request":await Kn();break}};useOnEvent(c,{selectChange:sr,refreshData:tr,clearValue:ur});const{setRequest:cr}=vue.inject(REQUEST_MODEL,{setRequest:({id:ar,sortNum:vr,requestFn:fr})=>{}});return typeof cr=="function"&&cr({id:c.id,requestFn:tr,sortNum:c.requestSort}),u({refreshData:tr}),{style:v,getPopupContainer:m,myValue:y,selectChange:sr,options:g,filterOption:w,loading:gn,resultValue:x,isMobile:f,customFieldName:h,pickVisible:d,onConfirmPicker:()=>{x.value=vue.unref(p)[0],sr(),d.value=!1},mobileValue:Pn,openPicker:()=>{var ar;!Array.isArray(vue.unref(x))&&((ar=vue.unref(g))!=null&&ar.length)&&c.dataFieldNames.value&&(p.value=vue.unref(x)?[vue.unref(x)]:[vue.unref(g)[0][c.dataFieldNames.value]]),d.value=!0},mobileSelectValue:p}}}),Select_vue_vue_type_style_index_0_scoped_66f41a2f_lang="",Select_vue_vue_type_style_index_1_lang="";function _sfc_render$l(c,u,f,d,h,p){const v=vue.resolveComponent("down-outlined"),m=vue.resolveComponent("a-input"),g=vue.resolveComponent("van-picker"),y=vue.resolveComponent("van-popup"),x=vue.resolveComponent("a-select-option"),Pn=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(v)]),_:1},8,["value","placeholder","onClick"]),vue.createVNode(y,{show:c.pickVisible,"onUpdate:show":u[1]||(u[1]=b=>c.pickVisible=b),style:{"z-index":"999999"},"overlay-style":{background:"rgba(0, 0, 0, .3)",zIndex:999999},position:"bottom",teleport:"#app"},{default:vue.withCtx(()=>[c.pickVisible?(vue.openBlock(),vue.createBlock(g,{key:0,modelValue:c.mobileSelectValue,"onUpdate:modelValue":u[0]||(u[0]=b=>c.mobileSelectValue=b),"columns-field-names":c.customFieldName,columns:c.options,"cancel-button-text":" ",onConfirm:c.onConfirmPicker},null,8,["modelValue","columns-field-names","columns","onConfirm"])):vue.createCommentVNode("",!0)]),_:1},8,["show","overlay-style"])],64)):(vue.openBlock(),vue.createBlock(Pn,{key:1,class:"select",value:c.resultValue,"onUpdate:value":u[2]||(u[2]=b=>c.resultValue=b),placeholder:c.placeholder,showSearch:"",allowClear:c.isAllowClear,mode:c.mode,getPopupContainer:c.getPopupContainer,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,(b,j)=>(vue.openBlock(),vue.createBlock(x,{key:j,value:b.value,style:vue.normalizeStyle({fontSize:c.optionFontSize}),label:b.label},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(b.label),1)]),_:2},1032,["value","style","label"]))),128))]),_:1},8,["value","placeholder","allowClear","mode","getPopupContainer","maxTagCount","filterOption","loading","autoClearSearchValue","onChange","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-66f41a2f"]]),EcanSelect=withInstall$1(Select),treeSelectProps={...props,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=(re,vn)=>{const Fn=c.dataFieldNames,Bn=Fn.label,w=Fn.value;let J;const gn=vn[Bn],zn=vn[w];return gn!=null?J=gn:zn!=null&&(J=zn),(J==null?void 0:J.toLowerCase().indexOf(re==null?void 0:re.toLowerCase()))>=0},h=vue.ref();vue.watch(()=>[c.multiple,c.value,c.treeCheckable,c.selectFirstOption],()=>{const{multiple:re,value:vn,selectFirstOption:Fn}=c;re?vn?h.value=vn.split(","):Fn&&(h.value=[vue.unref(f)[0]]):vn?h.value=vn:Fn&&(h.value=vue.unref(f)[0])},{immediate:!0});const p=vue.ref(!1),v=re=>{var Fn,Bn;f.value=((Bn=(Fn=re==null?void 0:re.data)==null?void 0:Fn.data)==null?void 0:Bn.rows)||[];const vn=vue.unref(f)[0];c.value===""&&vn!=null&&(h.value=vn[c.dataFieldNames.value])},m=useRequestData(c),g=async()=>{if(c.dataType==="request"){p.value=!0;try{const re=await m();v(re)}catch(re){console.error(re)}finally{p.value=!1}}},{getGlobalModel:y,setGlobalModel:x}=vue.inject(GLOBAL_MODEL,{getGlobalModel:re=>{},setGlobalModel:(re,vn)=>{}});x(c.id,{type:c.type,value:h});const b=useEmitEvent(c)("selectChange",()=>{const re=c.id,vn=y(re);x(re,{...vn,RECORD:h})});useOnEvent(c,{selectChange:b,refreshData:g});const{setRequest:j}=vue.inject(REQUEST_MODEL,{setRequest:({id:re,sortNum:vn,requestFn:Fn})=>{}});return j({id:c.id,requestFn:g,sortNum:c.requestSort}),{style:u,treeData:f,filterTreeNode:d,myValue:h,loading:p,selectChange:b}}},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,p){const v=vue.resolveComponent("a-tree-select");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-tree-select",style:vue.normalizeStyle(d.style)},[vue.createVNode(v,{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,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([]),p=vue.ref(""),v=(Vn=[])=>{var Qn;const Kn=c.value;let Un=[];typeof Kn=="string"&&Kn!==""?Un=Un.concat(Kn.split(",")):Array.isArray(Kn)&&(Un=Un.concat(Kn)),h.value=Vn,c.selectFirstOption?p.value=((Qn=Vn[0])==null?void 0:Qn.value)||"":p.value=Un[0]||""};vue.watch(()=>[c.data,c.value,c.selectFirstOption],([Vn])=>{vue.unref(f)==="design"&&v(Vn)},{immediate:!0,deep:!0});const m=useRequestData(c),g=async()=>{var Un,Qn;if(c.dataType!=="request")return;const Vn=await m(),Kn=((Qn=(Un=Vn==null?void 0:Vn.data)==null?void 0:Un.data)==null?void 0:Qn.rows)||[];v(Kn)},{getGlobalModel:y,setGlobalModel:x}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Vn=>{},setGlobalModel:(Vn,Kn)=>{}});x(c.id,{type:c.type,value:p});const Pn=useEmitEvent(c),b=()=>{const Vn=vue.unref(h).find(Kn=>Kn.value===vue.unref(p))||{};Pn("checkboxChange",()=>{const Kn=y(c.id);x(c.id,{...Kn,RECORD:p})},Vn)()},j=Vn=>{p.value=Vn,Pn("click",()=>{const Kn=y(c.id);x(c.id,{...Kn,RECORD:p,value:p})})()};vue.watch(p,()=>{b()});const re=Vn=>{var Un;const{data:Kn}=(Vn==null?void 0:Vn.data)||{};if(Kn){const Jn=(((Un=Vn==null?void 0:Vn.data)==null?void 0:Un.data)??[]).map(Yn=>({label:Yn.label,value:Yn.value}));v(Jn)}else v([])},vn=useIndicatorData(c,re),Fn=async()=>{try{const Vn=await vn();re(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:Kn,requestFn:Un})=>{}});typeof w=="function"&&w({id:c.id,requestFn:Bn,sortNum:c.requestSort});const J=Vn=>{p.value=Vn.value,j(Vn.value)},gn=vue.computed(()=>c.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px",fontSize:c.tabFontSize}:{fontSize:c.tabFontSize});return vue.onMounted(()=>{v(c.data)}),useOnEvent(c,{resetRecord:()=>{const Vn=c.id,Kn=y(Vn);x(Vn,{...Kn,RECORD:"",value:""})}}),u({refreshData:Bn}),{myOption:h,style:d,myValue:p,radioStyle:gn,onClickButton:j,useImagePath,tabChange:J}}}),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,p){const v=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,x)=>(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:x,onClick:vue.withModifiers(Pn=>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(v,{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:x=>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,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([]),p=vue.ref(!1),v=vue.inject("usedComponentList",[]);vue.watch(()=>c.activeKey,J=>{f.value=J},{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 x=!1,Pn=null;const b=()=>{Pn&&clearTimeout(Pn),Pn=setTimeout(()=>{p.value=!1},200),!vue.unref(p)&&(x||(requestAnimationFrame(()=>{let J=-1;const gn=window.scrollY;for(const zn of vue.unref(h)){const Vn=zn[2];if(zn[1]==="max"&&gn>=zn[0]-Vn||zn[1]!=="max"&&gn>=zn[0]-Vn&&gn<zn[1]-Vn){J=c.data.findIndex(Kn=>Kn.key===zn[3]);break}}J>-1&&(f.value=J),x=!1}),x=!0))},j=vue.computed(()=>{var J;return((J=c.scrollspyConfig)==null?void 0:J.filter(gn=>c.data.find(zn=>gn.key&&zn.key===gn.key)))||[]}),re=vue.computed(()=>!!(c.isScrollspy&&vue.unref(j).length)),vn=()=>{const J=[];for(const gn of vue.unref(j)){const zn=vue.unref(v).find(Vn=>Vn.id===gn.anchor);if(zn){const Vn=getFormatWh(zn.height,vue.unref(y)),Kn=parseFloat(zn.top)-vue.unref(g);J.push([Kn,Kn+Vn,Vn/2,gn.key])}}if(J!=null&&J.length){const gn=J.map(Un=>Un[0]),zn=J.map(Un=>Un[1]),Vn=gn.indexOf(Math.min(...gn)),Kn=zn.indexOf(Math.max(...zn));J[Vn][0]=0,J[Kn][1]="max"}h.value=J};vue.onMounted(()=>{vue.unref(re)&&(vn(),window.addEventListener("scroll",b))}),vue.onBeforeUnmount(()=>{vue.unref(re)&&window.removeEventListener("scroll",b)});const Fn=useEmitEvent(c),{setGlobalModel:Bn}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(J,gn)=>{}});Bn(c.id,{RECORD:vue.unref(f),value:vue.unref(f)});const w=J=>{Fn("tabChange",()=>{if(Bn(c.id,{RECORD:vue.unref(f),value:vue.unref(f)}),vue.unref(re)){const gn=c.data[J].key;if(gn){const zn=vue.unref(j).find(Vn=>Vn.key===gn);if(zn){const Kn=document.querySelector(`[cpntid="${zn.anchor}"]`).getBoundingClientRect();p.value=!0,window.scrollTo({top:Kn.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,p){const v=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(v,{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,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:""}),p=vue.inject("showIndDetail",Gn=>{}),v=vue.ref(),m=vue.ref(!1),g=usePickComponentStyle(c),y=vue.ref([]),x=vue.ref(),Pn=vue.ref({}),b=vue.computed(()=>{let{data:Gn=[]}=vue.unref(y)[0]||{};if(Array.isArray(c.colors)){const Wn=c.isUseLabelColors,Rn=c.colors;Gn=Gn.map((qn,Xn)=>({label:Wn?{color:Rn[Xn]}:{},...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 Wn;m.value=!0,(Wn=x.value)==null||Wn.showModal()}},myInfo:{show:c.toolboxInfoShow,title:"详情",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){p(c)}}}},title:{text:c.titleText,subtext:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},grid:{top:c.gridTop,bottom:c.gridBottom,left:c.gridLeft,right:c.gridRight,containLabel:c.gridContainLabel},tooltip:{show:c.tooltipShow,trigger:c.tooltipTrigger,formatter:Wn=>{const{marker:Rn,seriesName:qn,name:Xn,value:Hn,percent:tr,data:cr}=Wn||{};return hn(c.tooltipFormatter,{textData:{marker:Rn,name:Xn,value:Hn,percent:tr,a:qn,b:Xn,c:Hn,d:tr,...cr}},{useNewline:!0,useSpace:!0})},textStyle:{color:c.tooltipTextStyleColor},position:c.tooltipPosition||void 0},legend:vue.unref(Pn),color:c.colors,series:[{data:Gn,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:{}}}]}}),j=()=>{var Wn,Rn;const Gn=m.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize);Pn.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:Gn+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:Gn}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:(Rn=(Wn=vue.unref(y)[0])==null?void 0:Wn.data)==null?void 0:Rn.map(qn=>({name:qn.name,icon:c.legendType})),formatter:qn=>{const{data:Xn}=y.value[0]||{};let Hn=0,tr,cr="0%";if(Xn)for(const ir of Xn)ir.name===qn&&(tr=+ir.value),Hn+=+ir.value;return Hn&&(cr=`${(tr/Hn*100).toFixed(2)}%`),getLegendFormat(c.legendFormatter,{name:qn,value:tr,percent:cr})}}},re=()=>{m.value=!1},{getGlobalModel:vn,setGlobalModel:Fn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Gn=>{},setGlobalModel:(Gn,Wn)=>{}}),Bn=(Gn=[],Wn)=>{const{dataset:Rn}=En(Gn,Wn);y.value=Rn,Rn!=null&&Rn.length?f.value=!1:f.value=!0},w=(Gn=[],Wn)=>{var qn;const Rn=En(Gn,Wn);y.value=Rn.dataset,(qn=Rn.dataset)!=null&&qn.length?f.value=!1:f.value=!0};vue.watch(()=>c.data,Gn=>{(c.dataType==="static"||vue.unref(d)==="design")&&Bn(Gn)},{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],()=>{j()},{immediate:!0});const J=vue.ref(!1),gn=useRequestData(c),zn=async()=>{var Gn,Wn;if(c.dataType==="request")try{J.value=!0;const Rn=await gn();Bn((Wn=(Gn=Rn==null?void 0:Rn.data)==null?void 0:Gn.data)==null?void 0:Wn.rows,c.valueTypeDataFieldNames)}catch(Rn){console.error(Rn)}finally{J.value=!1}},Vn=useEmitEvent(c);Fn(c.id,{type:c.type,RECORD:""});const Kn=Vn("click",Gn=>{const Wn=vn(c.id);Fn(c.id,{...Wn,type:c.type,RECORD:Gn==null?void 0:Gn.data})}),Un=Gn=>{var Rn;const{data:Wn}=(Gn==null?void 0:Gn.data)||{};if(Wn){const{columns:qn=[],rows:Xn=[]}=((Rn=Gn==null?void 0:Gn.data)==null?void 0:Rn.data)??{};let Hn=[];if(qn.length>0){const tr=qn[0],cr=qn[1];Hn=Xn.filter(ir=>!!ir).map(ir=>({name:ir[tr],value:isNaN(ir[cr])?0:ir[cr]||0}))}w(Hn)}},Qn=useIndicatorData(c,Gn=>{c.isViewRedrawing&&v.value.clear(),Un(Gn)}),Jn=async()=>{try{J.value=!0;const Gn=await Qn();Un(Gn)}catch(Gn){console.error(Gn)}finally{J.value=!1}},{loadedData:Yn}=vue.inject(LOADED_DATA,{loadedData:{}}),Zn=vue.ref(!1);vue.watch(Yn,Gn=>{if(c.dataType==="indicator"){const Wn=getFixedValueDatas(c.graphicConfig);Wn!=null&&Wn.length&&(!vue.unref(Zn)&&canRequestIndicator(c.graphicConfig,Gn)?(Zn.value=!0,nr()):canRequestIndicator(c.graphicConfig,Gn)||(Zn.value=!1))}},{deep:!0});const nr=async()=>{switch(c.dataType){case"indicator":canRequestIndicator(c.graphicConfig,vue.unref(Yn))&&await Jn();break;case"request":await zn();break}};useOnEvent(c,{resetRecord:()=>{const Gn=c.id,Wn=vn(Gn);Fn(Gn,{...Wn,RECORD:""})},refreshData:nr,click:Kn}),u({refreshData:nr});const{setRequest:ur}=vue.inject(REQUEST_MODEL,{setRequest:Gn=>{}});return typeof ur=="function"&&ur({id:c.id,requestFn:nr,sortNum:c.requestSort}),{option:b,style:g,click:Kn,onClose:re,loading:J,ecanModal:x,echartRef:v,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,p){const v=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[c.noDataTip&&c.emptyData?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"empty-wrap",style:vue.normalizeStyle({color:c.tipTextColor,fontSize:c.tipTextFontSize})},[vue.createElementVNode("span",null,vue.toDisplayString(c.tipText),1)],4)):(vue.openBlock(),vue.createBlock(v,{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(v,{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,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:""}),p=vue.inject("showIndDetail",or=>{}),v=vue.inject("usedComponentList",[]),m=vue.ref(),g=vue.ref(!1),y=vue.ref(!1),x=vue.ref(null),Pn=vue.ref([]),b=usePickComponentStyle(c),j=vue.ref([]),re=vue.ref(),vn=vue.ref({});let Fn;const Bn=vue.computed(()=>g.value?ZOOM_FONT_SIZE:12),w=vue.computed(()=>{const{gradientShow:or,gradientColors:ar,gradientOffset:vr,barBorderRadius:fr}=c,mr=vue.unref(j),dr=mr.length,hr=[];for(let yr=0;yr<dr;yr++){const _r={...mr[yr],type:"bar",barWidth:c.barWidth.value+c.barWidth.suffix,showBackground:c.showBarBackground};if(c.isStack&&(_r.stack="stack"),_r.label={show:c.labelShow,fontSize:c.labelFontSize,position:c.labelPosition,color:c.labelColor,width:c.labelWidth,overflow:c.labelOverflow,formatter:gr=>{let br="",Er=c.labelFormatter;Er===""&&(Er="{c}");const{seriesName:Mr,name:Ir,value:Fr,data:Or}=gr||{};return br+=hn(Er,{textData:{name:Ir,value:Fr,a:Mr,b:Ir,c:Fr||0,...Or}},{useNewline:!0,useSpace:!0}),br}},_r.itemStyle={},or&&(_r.itemStyle={color:{x:c.isUseHorizontalAxis?1:0,y:0,x2:0,y2:c.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:c.colors[yr]},{offset:vr,color:ar[yr]},{offset:1,color:ar[yr]}]}}),fr){const gr=fr.split(",");if(gr!=null&&gr.length){const br=[];for(const Er of gr){const Mr=parseFloat(Er);isNaN(Mr)||br.push(Mr)}_r.itemStyle.borderRadius=br}}c.isShowMarkLine&&(_r.markLine={data:[{type:c.markLineType}]}),hr.push(_r)}return hr}),J=vue.ref([]),gn=vue.ref(!1),zn=vue.computed(()=>{const or=c.yAxisLabelFormatter,ar=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 vr=m.value.chart.getOption(),{xAxis:fr}=vr||{};fr&&fr.length&&(Pn.value=fr[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 vr;g.value=!0,(vr=re.value)==null||vr.showModal()}},myInfo:{show:c.toolboxInfoShow,title:"详情",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){p(c)}}}},title:{text:c.titleText,subtext:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},grid:{top:c.gridTop,bottom:c.gridBottom,left:c.gridLeft,right:c.gridRight,containLabel:c.gridContainLabel},color:c.colors,tooltip:{trigger:"axis",show:c.tooltipShow,formatter:vr=>{var hr;const fr=vr.length;let mr="",dr=c.tooltipFormatter;Fn=(hr=vr[0])==null?void 0:hr.data,dr===""&&(dr="{marker} {a} {c}");for(let yr=0;yr<fr;yr++){const{marker:_r,seriesName:gr,name:br,value:Er,data:Mr}=vr[yr]||{};if(yr===0){let Ir=br;typeof br=="string"&&br[0]==="0"&&!isNaN(+br)&&(Ir=(+br).toString()),mr+=`${In(ar,Ir)}<br/>`}mr+=hn(dr,{textData:{marker:_r,name:br,value:Er,a:gr,b:br,c:Mr.sourceValue||Er||0,...Mr}},{useNewline:!0,useSpace:!0}),mr+="<br/>"}return mr},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(j).map((vr,fr)=>({name:vr.name,itemStyle:{color:c.colors[fr]},icon:c.legendType})),formatter:vr=>getLegendFormat(c.legendFormatter,{name:vr})},xAxis:{type:c.isUseHorizontalAxis?"value":"category",data:c.isUseHorizontalAxis?null:vue.unref(Qn),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(vr){return typeof vr=="string"&&vr[0]==="0"&&!isNaN(+vr)&&(vr=(+vr).toString()),In(ar,vr)}},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(J):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(vr){return In(or,vr)}},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},Kn=(or=[],ar=!1)=>{var fr,mr,dr;let vr={};if(c.dataFieldConfigType==="key"){const hr=ar?c.keyTypeDataFieldNames:null;vr=Mn(or,hr)}else if(c.dataFieldConfigType==="value"){const hr=ar?c.valueTypeDataFieldNames:null;vr=En(or,hr)}if(j.value=vr.dataset,(fr=vue.unref(j))!=null&&fr.length){for(const hr of vue.unref(j))if((mr=hr==null?void 0:hr.data)!=null&&mr.length)for(const yr of hr.data)yr.sourceValue=yr.value,yr.value=parseFloat(yr.value)}J.value=vr.dimensions,(dr=vr.dataset)!=null&&dr.length?f.value=!1:f.value=!0},Un=(or=[],ar,vr=!1)=>{var dr;const mr=Mn(or,vr?ar:null,!0);c.defaultRangeValue&&setDefaultRangeVal({props:c,componentList:vue.unref(v),getGlobalModel:tr},mr),j.value=mr.dataset,J.value=mr.dimensions,(dr=mr.dataset)!=null&&dr.length?f.value=!1:f.value=!0},Qn=vue.computed(()=>vue.unref(J).map(or=>{let ar={};return or&&typeof or=="object"?ar={...or}:ar={value:or},ar}));vue.watch(()=>[c.data,c.labelFormatter,c.legendFormatter,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll],([or])=>{(c.dataType==="static"||vue.unref(d)==="design")&&Kn(or)},{immediate:!0,deep:!0});const Jn=useRequestData(c),Yn=async()=>{var or,ar;try{gn.value=!0;const vr=await Jn();Kn((ar=(or=vr==null?void 0:vr.data)==null?void 0:or.data)==null?void 0:ar.rows,!0)}catch(vr){console.error(vr)}finally{gn.value=!1}},Zn=or=>{var hr;const{columns:ar=[],rows:vr=[]}=((hr=or==null?void 0:or.data)==null?void 0:hr.data)??{};let fr;ar.length>0&&(fr={name:ar[0],types:ar.slice(1).map(yr=>({label:yr,value:yr}))});const{leftAxisList:mr=[]}=c.graphicConfig,dr=mr.filter(yr=>yr.show).map(yr=>yr.label);for(const yr of vr)if(yr)for(const _r in yr)typeof yr[_r]=="string"&&dr.includes(_r)&&!isNaN(parseFloat(yr[_r]))&&(yr[_r]=parseFloat(yr[_r]));Un(vr,fr,!0)},nr=useIndicatorData(c,or=>{c.isViewRedrawing&&m.value.clear(),Zn(or)}),sr=async()=>{try{gn.value=!0;const or=await nr();Zn(or)}catch(or){console.error(or)}finally{gn.value=!1}},{loadedData:ur}=vue.inject(LOADED_DATA,{loadedData:{}}),Gn=vue.ref(!1);vue.watch(ur,or=>{if(c.dataType==="indicator"){const ar=getFixedValueDatas(c.graphicConfig);ar!=null&&ar.length&&(!vue.unref(Gn)&&canRequestIndicator(c.graphicConfig,or)?(Gn.value=!0,Wn()):canRequestIndicator(c.graphicConfig,or)||(Gn.value=!1))}},{deep:!0});const Wn=async()=>{switch(c.dataType){case"indicator":canRequestIndicator(c.graphicConfig,vue.unref(ur))&&await sr();break;case"request":await Yn();break}},Rn=(or,ar)=>!!vue.unref(Pn)[ar.value].value.includes(or),qn=async()=>{y.value=!1;const or=m.value.chart.getOption();for(let ar=0;ar<7;ar++)await Xn(or,ar)},Xn=(or,ar)=>new Promise(vr=>{setTimeout(()=>{const{series:fr,color:mr,xAxis:dr}=or,hr=m.value.chart,{splitArea:yr={}}=dr[0]||{};fr.forEach((_r,gr)=>{const br=_r.data;let Er="";ar%2?Er=mr[gr]+"a8":Er=mr[gr],br[x.value].itemStyle={color:Er}}),ar%2?(yr.show=!0,yr.areaStyle.color=vue.unref(Pn).map((_r,gr)=>gr===x.value?"#ff003b26":"")):yr.show=!1,hr.setOption({series:fr,xAxis:dr}),vr()},200)});u({refreshData:Wn});const Hn=useEmitEvent(c),{getGlobalModel:tr,setGlobalModel:cr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:or=>{},setGlobalModel:(or,ar)=>{}});cr(c.id,{type:c.type,RECORD:""});const ir=Hn("click",or=>{const ar=tr(c.id);cr(c.id,{...ar,type:c.type,RECORD:c.tooltipShow?Fn:or.data})}),{setRequest:er}=vue.inject(REQUEST_MODEL,{setRequest:or=>{}});typeof er=="function"&&er({id:c.id,requestFn:Wn,sortNum:c.requestSort});const pr=()=>{const or=c.id,ar=tr(or);cr(or,{...ar,RECORD:""})},lr=or=>{m.value.chart.containPixel("grid",[or.offsetX,or.offsetY])&&ir()};return c.tooltipShow?vn.value["zr:click"]=lr:vn.value.click=ir,useOnEvent(c,{refreshData:Wn,click:ir,resetRecord:pr}),{option:zn,style:b,refreshData:Wn,click:ir,loading:gn,onClose:Vn,ecanModal:re,echartRef:m,handleLocationOk:qn,onFilterOption:Rn,locationVisible:y,locationValue:x,locationNames:Pn,eventObj:vn,emptyData:f}}}),Bar_vue_vue_type_style_index_0_lang="",Bar_vue_vue_type_style_index_1_scoped_9d786bfc_lang="",_withScopeId$3=c=>(vue.pushScopeId("data-v-9d786bfc"),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,p){const v=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal"),y=vue.resolveComponent("a-select-option"),x=vue.resolveComponent("a-select"),Pn=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(v,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(v,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),vue.createVNode(Pn,{visible:c.locationVisible,"onUpdate:visible":u[1]||(u[1]=b=>c.locationVisible=b),title:"快速定位",onOk:c.handleLocationOk},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$8,[_hoisted_2$5,vue.createVNode(x,{value:c.locationValue,"onUpdate:value":u[0]||(u[0]=b=>c.locationValue=b),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,(b,j)=>(vue.openBlock(),vue.createBlock(y,{key:j,value:j},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(b.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-9d786bfc"]]),EcanBar=withInstall$1(Bar),scatterProps={...props,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:""}),p=vue.inject("showIndDetail",lr=>{}),v=vue.ref(),m=vue.ref(!1),g=usePickComponentStyle(c),y=vue.ref([]),x=vue.ref(),Pn=vue.computed(()=>m.value?ZOOM_FONT_SIZE:12),b=vue.ref(),j=vue.ref(),re=vue.ref(),vn=vue.ref(),Fn=vue.inject("componentList",[]),Bn=vue.ref({}),{loadedData:w}=vue.inject(LOADED_DATA,{loadedData:{}}),J=vue.ref({}),gn=vue.computed(()=>{const{xAxisMarkLineValue:lr=[],yAxisMarkLineValue:or=[]}=c,ar=lr.concat(or),vr=[];for(const fr of ar){let mr=fr.value;const dr=mr.match(/\{(.+?)\}/g);if(dr!=null&&dr.length){for(const yr of dr)mr=mr.replace(yr,yr.slice(1,-1));const hr=vue.unref(Fn).find(yr=>yr.keyName===mr);hr!=null&&hr.id&&!vr.find(yr=>yr.keyName===mr)&&vr.push({componentId:hr.id,keyName:hr.keyName})}}return vr});vue.watch(w,lr=>{var or;if((or=vue.unref(gn))!=null&&or.length)for(const ar of vue.unref(gn)){const{componentId:vr,keyName:fr}=ar;if(lr[vr]){const mr=Qn(vr);J.value[fr]=mr.value}else delete J.value[fr]}},{deep:!0});const zn=vue.computed(()=>{const{xAxisMarkLineValue:lr=[],yAxisMarkLineValue:or=[]}=c,ar=lr.map(mr=>({...mr,x:!0})),vr=or.map(mr=>({...mr,y:!0})),fr=ar.concat(vr);if(fr!=null&&fr.length){const mr=[];for(const dr of fr){const hr={label:{show:!0,formatter:"",rich:{ft:{}}}},yr={};let _r=dr.value;const gr=_r.match(/\{(.+?)\}/g);let br="";if(hr.label.formatter=dr.label?`{ft|${dr.label}}`:"",(dr.offsetHorizontal||dr.offsetVertical)&&(dr.x?hr.label.rich.ft.padding=[0,dr.offsetHorizontal||0,dr.offsetVertical||0,0]:dr.y&&(hr.label.rich.ft.padding=[dr.offsetVertical||0,0,0,dr.offsetHorizontal||0])),dr.labelColor&&(hr.label.rich.ft.color=dr.labelColor),dr.lineColor&&(yr.color=dr.lineColor),dr.x?br="xAxis":dr.y&&(br="yAxis"),gr!=null&&gr.length){for(const Er of gr)_r=_r.replace(Er,Er.slice(1,-1));if(_r){let Er;J.value[_r]?Er=vue.unref(J)[_r]:Er=pn(_r,{max:dr.x?vue.unref(b):dr.y?vue.unref(re):0,min:dr.x?vue.unref(j):dr.y?vue.unref(vn):0}),isNaN(+Er)||mr.push({[br]:+Er,lineStyle:yr,...hr})}}else isNaN(+dr.value)||mr.push({[br]:dr.value,lineStyle:yr,...hr})}return{symbol:["none","none"],data:mr}}else return{data:[]}});function Vn(lr,or,ar){switch(or){case"startX":lr[0].coord[0]=+ar;break;case"startY":lr[0].coord[1]=+ar;break;case"endX":lr[1].coord[0]=+ar;break;case"endY":lr[1].coord[1]=+ar;break}}const Kn=vue.computed(()=>{const{axisMarkArea:lr=[]}=c;if(lr!=null&&lr.length){const or=[];for(const ar of lr){const vr=[{name:"",coord:[],itemStyle:{color:ar.color}},{coord:[]}];for(const fr in ar)if(fr!=="color"){let mr=ar[fr];const dr=mr.match(/\{(.+?)\}/g);if(dr!=null&&dr.length){for(const hr of dr)mr=mr.replace(hr,hr.slice(1,-1));if(mr){const hr=pn(mr,{xMax:vue.unref(b),xMin:vue.unref(j),yMax:vue.unref(re),yMin:vue.unref(vn)});isNaN(+hr)||Vn(vr,fr,hr)}}else isNaN(+ar[fr])||Vn(vr,fr,ar[fr])}vr.every(fr=>{var mr;return(mr=fr.coord)==null?void 0:mr.length})&&or.push(vr)}return{data:or}}else return{data:[]}}),Un=vue.computed(()=>{const lr=c.xAxisLabelFormatter,or=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 ar;m.value=!0,(ar=x.value)==null||ar.showModal()}},myInfo:{show:c.toolboxInfoShow,title:"详情",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){p(c)}}}},title:{text:c.titleText,subtext:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},grid:{top:c.gridTop,bottom:c.gridBottom,left:c.gridLeft,right:c.gridRight,containLabel:c.gridContainLabel},color:c.colors,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(ar){return typeof ar=="string"&&ar[0]==="0"&&!isNaN(+ar)&&(ar=(+ar).toString()),In(lr,ar)}},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(ar){return In(or,ar)}},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(ar){var _r;const{marker:vr,seriesName:fr,componentType:mr}=ar,dr=((_r=ar==null?void 0:ar.data)==null?void 0:_r.record)??{},hr=dr[vue.unref(Zn).name],yr=dr[vue.unref(Zn).value];return["markLine","markArea"].includes(mr)?"":hn(c.tooltipFormatter,{textData:{marker:vr,seriesName:fr,a:fr,b:hr,c:yr,...dr}},{useNewline:!0,useSpace:!0})},axisPointer:{type:c.crossShow||c.crossShow===void 0?"cross":""},textStyle:{fontSize:Pn.value},position:c.tooltipPosition||void 0},legend:{show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,textStyle:{color:c.legendTextStyleColor,fontSize:Pn.value}},series:[{data:vue.unref(y),type:"scatter",symbolSize:c.symbolSize,itemStyle:{color:c.symbolColor},markLine:zn.value,markArea:Kn.value}]}}),{getGlobalModel:Qn,setGlobalModel:Jn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:lr=>{},setGlobalModel:(lr,or)=>{}}),Yn=()=>{var ar,vr;const lr=(ar=vue.unref(v))==null?void 0:ar.chart.getModel().getComponent("yAxis").axis.scale._extent,or=(vr=vue.unref(v))==null?void 0:vr.chart.getModel().getComponent("xAxis").axis.scale._extent;or&&lr&&(j.value=or[0],b.value=or[1],vn.value=lr[0],re.value=lr[1])},Zn=vue.computed(()=>{let lr=c.dataFieldNames;if(c.dataType==="indicator"){const{formFields:or={}}=c.graphicConfig;or!=null&&or.labelField&&(or!=null&&or.valueField)&&(lr={name:or.labelField,value:or.valueField})}return lr}),nr=(lr=[])=>{var vr;const{name:or="name",value:ar="value"}=vue.unref(Zn)||{};y.value=lr.map(fr=>({value:[fr[or],fr[ar]],record:fr})),setTimeout(()=>{Yn()},0),(vr=y.value)!=null&&vr.length?f.value=!1:f.value=!0};vue.watch(()=>c.data,lr=>{(c.dataType==="static"||vue.unref(d)==="design")&&nr(lr)},{immediate:!0,deep:!0});const sr=vue.ref(!1),ur=useRequestData(c),Gn=async()=>{var lr,or;if(c.dataType==="request"){sr.value=!0;try{const ar=await ur();nr((or=(lr=ar==null?void 0:ar.data)==null?void 0:lr.data)==null?void 0:or.rows)}catch(ar){console.error(ar)}finally{sr.value=!1}}},Wn=()=>{m.value=!1},Rn=useEmitEvent(c);Jn(c.id,{type:c.type,RECORD:""});const qn=Rn("click",lr=>{const or=c.id,ar=Qn(or);Jn(or,{...ar,type:c.type,RECORD:lr==null?void 0:lr.data})}),Xn=lr=>{v.value.chart.containPixel("grid",[lr.offsetX,lr.offsetY])&&qn()};c.tooltipShow?Bn.value["zr:click"]=Xn:Bn.value.click=qn;const Hn=lr=>{var or,ar;nr((ar=(or=lr==null?void 0:lr.data)==null?void 0:or.data)==null?void 0:ar.rows)},tr=useIndicatorData(c,lr=>{c.isViewRedrawing&&v.value.clear(),Hn(lr)}),cr=async()=>{try{sr.value=!0;const lr=await tr();Hn(lr)}catch(lr){console.error(lr)}finally{sr.value=!1}},ir=async()=>{switch(c.dataType){case"indicator":await cr();break;case"request":await Gn();break}};useOnEvent(c,{refreshData:ir,click:qn,resetRecord:()=>{const lr=c.id,or=Qn(lr);Jn(lr,{...or,RECORD:""})}});const{setRequest:pr}=vue.inject(REQUEST_MODEL,{setRequest:lr=>{}});return typeof pr=="function"&&pr({id:c.id,requestFn:ir,sortNum:c.requestSort}),u({refreshData:ir}),{option:Un,style:g,click:qn,loading:sr,onClose:Wn,ecanModal:x,echartRef:v,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,p){const v=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[c.noDataTip&&c.emptyData?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"empty-wrap",style:vue.normalizeStyle({color:c.tipTextColor,fontSize:c.tipTextFontSize})},[vue.createElementVNode("span",null,vue.toDisplayString(c.tipText),1)],4)):(vue.openBlock(),vue.createBlock(v,vue.mergeProps({key:1,ref:"echartRef",option:c.option,autoresize:""},vue.toHandlers(c.eventObj)),null,16,["option"]))]),_:1},8,["spinning"]),vue.createVNode(g,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:c.onClose},{default:vue.withCtx(()=>[vue.createVNode(m,{class:"spin-wrap",spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(v,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Scatter=_export_sfc$1(_sfc_main$d,[["render",_sfc_render$f],["__scopeId","data-v-821a4358"]]),EcanScatter=withInstall$1(Scatter),customGraphProps={...props,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,p){const v=vue.resolveComponent("echarts");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(c.style)},[vue.createVNode(v,{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,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"},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:""}),p=vue.inject("showIndDetail",dr=>{}),v=vue.inject("usedComponentList",[]),{getGlobalModel:m,setGlobalModel:g}=vue.inject(GLOBAL_MODEL,{getGlobalModel:dr=>{},setGlobalModel:(dr,hr)=>{}}),y=vue.ref(),x=vue.ref(!1),Pn=vue.ref(!1),b=vue.ref(null),j=vue.ref([]),re=vue.ref({});let vn;const Fn=usePickComponentStyle(c),Bn=vue.ref([]),w=vue.ref([]),J=vue.ref(),gn=vue.ref([]),zn=vue.ref([0,0]),Vn=vue.computed(()=>x.value?ZOOM_FONT_SIZE:12),Kn=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:x.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(){Pn.value=!0;const dr=y.value.chart.getOption(),{xAxis:hr}=dr||{};hr&&hr.length&&(j.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:x.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 dr;x.value=!0,(dr=J.value)==null||dr.showModal()}},myInfo:{show:c.toolboxInfoShow,title:"详情",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){p(c)}}}},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:(x.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:x.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:vue.unref(gn).map((dr,hr)=>({name:dr.name,itemStyle:{color:c.colors[hr]},icon:c.legendType})),formatter:dr=>getLegendFormat(c.legendFormatter,{name:dr})},tooltip:{trigger:"axis",show:c.tooltipShow,formatter:dr=>{var br;const hr=dr.length;let yr="",_r=c.tooltipFormatter;vn=(br=dr[0])==null?void 0:br.data,_r===""&&(_r="{marker} {a} {c}");const gr=c.seriesTypes;for(let Er=0;Er<hr;Er++){const Mr=gr[Er],{tooltipFormatter:Ir}=Mr||{},{marker:Fr,seriesName:Or,name:Nr,value:zr,data:Rr}=dr[Er]||{};if(Er===0){let Vr=Nr;typeof Nr=="string"&&Nr[0]==="0"&&!isNaN(+Nr)&&(Vr=(+Nr).toString()),yr+=`${In(c.xAxisLabelFormatter,Vr)}<br/>`}yr+=hn(Ir||_r,{textData:{marker:Fr,name:Nr,value:zr,seriesName:Or,a:Or,b:Nr,c:zr||0,...Rr}},{useNewline:!0,useSpace:!0}),yr+="<br/>"}return yr},textStyle:{color:c.tooltipTextStyleColor,fontSize:Vn.value},position:c.tooltipPosition||void 0},xAxis:{minInterval:c.xAxisMinInterval,type:"category",data:vue.unref(w).map(dr=>{let hr={};return dr&&typeof dr=="object"?hr={...dr}:hr={value:dr},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(dr){return typeof dr=="string"&&dr[0]==="0"&&!isNaN(+dr)&&(dr=(+dr).toString()),In(c.xAxisLabelFormatter,dr)}},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(sr),series:vue.unref(Bn)})),Un=()=>{x.value=!1},Qn=dr=>{const hr=[];let yr=0;return c.seriesTypes.forEach((_r,gr)=>{var br,Er;_r.axisIndex===dr&&((Er=(br=vue.unref(gn)[gr])==null?void 0:br.data)!=null&&Er.length)&&hr.push(...vue.unref(gn)[gr].data.map(Mr=>+Mr.value))}),hr.some(_r=>_r>=1e7)?yr=4:hr.some(_r=>_r>=1e6)?yr=3:hr.some(_r=>_r>=1e4)&&(yr=1),yr},Jn=()=>{zn.value[0]=c.yAxisLeftUnitAdapt?Qn(0):0,zn.value[1]=c.yAxisRightUnitAdapt?Qn(1):0},Yn=(dr=[],hr=!1)=>{var gr;let yr;if(c.dataFieldConfigType==="key"){const br=hr?c.keyTypeDataFieldNames:null;yr=Mn(dr,br,!0)}else if(c.dataFieldConfigType==="value"){const br=hr?c.valueTypeDataFieldNames:null;yr=En(dr,br)}w.value=yr.dimensions;const _r=yr.dataset;gn.value=yr.dataset,Bn.value=nr(_r),Jn(),(gr=yr.dataset)!=null&&gr.length?f.value=!1:f.value=!0},Zn=(dr=[],hr,yr=!1)=>{var Er;const gr=Mn(dr,yr?hr:null,!0);c.defaultRangeValue&&setDefaultRangeVal({props:c,componentList:vue.unref(v),getGlobalModel:m},gr),w.value=gr.dimensions;const br=gr.dataset;gn.value=gr.dataset,Bn.value=nr(br),Jn(),(Er=gr.dataset)!=null&&Er.length?f.value=!1:f.value=!0};function nr(dr){const hr=[],yr=dr.length,_r=c.seriesTypes;for(let gr=0;gr<yr;gr++){const br=_r[gr],{type:Er,axisIndex:Mr}=br||{};let Ir={type:Er,yAxisIndex:Mr,...dr[gr]};if(Er==="line"){const Fr={};c.shadowColor&&(Fr.shadowColor=c.shadowColor,Fr.shadowBlur=c.shadowBlur,Fr.shadowOffsetY=c.shadowOffsetY,Fr.shadowOffsetX=c.shadowOffsetX),Ir={...Ir,symbolSize:c.symbolSize,smooth:c.smooth,itemStyle:{color:c.colors[gr]},areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:c.colors[gr]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[gr],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...Fr}}}if(Er==="bar"){const{gradientShow:Fr,gradientColors:Or,gradientOffset:Nr}=c,zr={color:c.colors[gr]};if(c.barBorderRadius){const Rr=c.barBorderRadius.split(",");if(Rr!=null&&Rr.length){const Vr=[];for(const Hr of Rr){const Gr=parseFloat(Hr);isNaN(Gr)||Vr.push(Gr)}zr.borderRadius=Vr}}Fr&&(zr.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:c.colors[gr]},{offset:Nr,color:Or[gr]},{offset:1,color:Or[gr]}]}),Ir={...Ir,barWidth:c.barWidth.value+c.barWidth.suffix,itemStyle:zr}}c.isShowMarkLine&&(Ir.markLine={data:[{type:c.markLineType}]}),hr.push(Ir)}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],([dr])=>{(c.dataType==="static"||vue.unref(d)==="design")&&Yn(dr)},{immediate:!0,deep:!0});const sr=vue.computed(()=>{const dr=c.yAxis;return dr==null?void 0:dr.map((hr,yr)=>{const _r=zn.value[yr];let gr;return _r&&(gr=1e4*Math.pow(10,_r-1)),{type:"value",minInterval:c.yAxisMinInterval,splitLine:{show:yr===0?c.yAxisLeftSplitLineShow:c.yAxisRightSplitLineShow,lineStyle:{color:c.yAxisSplitLineStyleColor,type:yr===0?c.yAxisLeftSplitLineType:c.yAxisRightSplitLineType}},splitArea:{show:c.yAxisSplitAreaShow},axisLabel:{show:c.yAxisLabelShow,fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,formatter(br){let Er=br;return gr&&(Er=(+br/gr).toString()),In(hr.axisLabelFormatter,Er)}},axisLine:{show:c.yAxisLineAlwaysDisplay,lineStyle:{color:c.yAxisLineStyleColor}},name:ur(_r)+(yr===0?c.yAxisLeftName:c.yAxisRightName),nameTextStyle:{fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,align:yr===0?"right":"left"},max:c.yAxisMaxValue||null}})});function ur(dr){let hr="";switch(dr){case 1:hr="万";break;case 3:hr="百万";break;case 4:hr="千万";break}return hr}const Gn=vue.ref(!1),Wn=useRequestData(c),Rn=async()=>{var dr,hr;if(c.dataType==="request")try{Gn.value=!0;const yr=await Wn();Yn((hr=(dr=yr==null?void 0:yr.data)==null?void 0:dr.data)==null?void 0:hr.rows,!0)}catch(yr){console.error(yr)}finally{Gn.value=!1}},qn=dr=>{var gr;const{columns:hr=[],rows:yr=[]}=((gr=dr==null?void 0:dr.data)==null?void 0:gr.data)??{};let _r;hr.length>0&&(_r={name:hr[0],types:hr.slice(1).map(br=>({label:br,value:br}))}),Zn(yr,_r,!0)},Xn=useIndicatorData(c,dr=>{c.isViewRedrawing&&y.value.clear(),qn(dr)}),Hn=async()=>{try{Gn.value=!0;const dr=await Xn();qn(dr)}catch(dr){console.error(dr)}finally{Gn.value=!1}},{loadedData:tr}=vue.inject(LOADED_DATA,{loadedData:{}}),cr=vue.ref(!1);vue.watch(tr,dr=>{if(c.dataType==="indicator"){const hr=getFixedValueDatas(c.graphicConfig);hr!=null&&hr.length&&(!vue.unref(cr)&&canRequestIndicator(c.graphicConfig,dr)?(cr.value=!0,ir()):canRequestIndicator(c.graphicConfig,dr)||(cr.value=!1))}},{deep:!0});const ir=async()=>{switch(c.dataType){case"indicator":canRequestIndicator(c.graphicConfig,vue.unref(tr))&&await Hn();break;case"request":await Rn();break}},er=(dr,hr)=>!!vue.unref(j)[hr.value].value.includes(dr),pr=async()=>{Pn.value=!1;const dr=y.value.chart.getOption();for(let hr=0;hr<7;hr++)await lr(dr,hr)},lr=(dr,hr)=>new Promise(yr=>{setTimeout(()=>{const{series:_r,color:gr,xAxis:br}=dr,Er=y.value.chart,{splitArea:Mr={}}=br[0]||{};_r.forEach((Ir,Fr)=>{const Or=Ir.data;let Nr="";hr%2?Nr=gr[Fr]+"a8":Nr=gr[Fr],Or[b.value].itemStyle={color:Nr}}),hr%2?(Mr.show=!0,Mr.areaStyle.color=vue.unref(j).map((Ir,Fr)=>Fr===b.value?"#ff003b26":"")):Mr.show=!1,Er.setOption({series:_r,xAxis:br}),yr()},200)});u({refreshData:ir});const or=useEmitEvent(c);g(c.id,{type:c.type,RECORD:""});const ar=or("click",dr=>{const hr=m(c.id);g(c.id,{...hr,type:c.type,RECORD:c.tooltipShow?vn:dr==null?void 0:dr.data})}),vr=dr=>{y.value.chart.containPixel("grid",[dr.offsetX,dr.offsetY])&&ar()};c.tooltipShow?re.value["zr:click"]=vr:re.value.click=ar;const{setRequest:fr}=vue.inject(REQUEST_MODEL,{setRequest:dr=>{}});return typeof fr=="function"&&fr({id:c.id,requestFn:ir,sortNum:c.requestSort}),useOnEvent(c,{resetRecord:()=>{const dr=c.id,hr=m(dr);g(dr,{...hr,RECORD:""})},refreshData:ir,click:ar}),{style:Fn,option:Kn,click:ar,loading:Gn,onClose:Un,ecanModal:J,echartRef:y,handleLocationOk:pr,onFilterOption:er,locationVisible:Pn,locationValue:b,locationNames:j,eventObj:re,emptyData:f}}}),ComboGraph_vue_vue_type_style_index_0_lang="",ComboGraph_vue_vue_type_style_index_1_scoped_7f65c596_lang="",_withScopeId$2=c=>(vue.pushScopeId("data-v-7f65c596"),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,p){const v=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal"),y=vue.resolveComponent("a-select-option"),x=vue.resolveComponent("a-select"),Pn=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(v,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(v,{option:c.option,"update-options":{notMerge:!0},autoresize:"",onClick:c.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),vue.createVNode(Pn,{visible:c.locationVisible,"onUpdate:visible":u[1]||(u[1]=b=>c.locationVisible=b),title:"快速定位",onOk:c.handleLocationOk},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$7,[_hoisted_2$4,vue.createVNode(x,{value:c.locationValue,"onUpdate:value":u[0]||(u[0]=b=>c.locationValue=b),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,(b,j)=>(vue.openBlock(),vue.createBlock(y,{key:j,value:j},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(b.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-7f65c596"]]),EcanComboGraph=withInstall$1(ComboGraph),radarProps={...props,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:""}),p=vue.inject("showIndDetail",Wn=>{}),v=vue.ref(),m=vue.ref(!1),g=usePickComponentStyle(c),y=vue.ref([]),x=vue.ref(),Pn=vue.computed(()=>m.value?ZOOM_FONT_SIZE:12),b=vue.ref([]),j=vue.ref(c.valueTypeDataFieldNames.name),re=vue.computed(()=>{const Wn=vue.unref(b),Rn=Wn.length,qn=[];for(let Xn=0;Xn<Rn;Xn++){const{name:Hn,data:tr=[]}=Wn[Xn],cr=[{name:Hn,value:tr.map(pr=>pr.value)}];let ir=c.colors[Xn];if(c.gradientShow){const{gradientOffset:pr,gradientColors:lr}=c;ir={x:.7,y:0,x2:0,y2:0,colorStops:[{offset:0,color:c.colors[Xn]},{offset:pr,color:lr[Xn]},{offset:1,color:lr[Xn]}]}}const er={type:"radar",name:Hn,data:cr,areaStyle:{color:ir,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:pr=>{const{data:lr,value:or}=pr;let ar=0,vr="0%";if(lr)for(const fr of lr.value)ar+=+fr;return ar&&(vr=`${(or/ar*100).toFixed(2)}%`),hn(c.labelFormatter,{textData:{value:or,percent:vr}},{useNewline:!1,useSpace:!1})}}};qn.push(er)}return qn}),vn=vue.computed(()=>{var Hn;const Wn=[],Rn=[],qn=vue.unref(b),Xn=qn.length;for(let tr=0;tr<Xn;tr++){const{data:cr=[]}=qn[tr];for(let ir=0;ir<cr.length;ir++)Rn.push(cr[ir].value)}if((Hn=y.value)!=null&&Hn.length){const tr=Rn!=null&&Rn.length?Math.max(...Rn)*1.2:0;for(const cr of y.value)Wn.push({name:cr,max:tr})}return Wn}),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 Wn;m.value=!0,(Wn=x.value)==null||Wn.showModal()}},myInfo:{show:c.toolboxInfoShow,title:"详情",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){p(c)}}}},title:{text:c.titleText,subText:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},color:c.colors,tooltip:{trigger:"axis",textStyle:{fontSize:Pn.value},show:c.tooltipShow,formatter:Wn=>{let Rn="",qn=c.tooltipFormatter;qn===""&&(qn="{marker} {a} {c}");for(let Xn=0;Xn<vue.unref(vn).length;Xn++){const Hn=vue.unref(vn)[Xn],{marker:tr,seriesName:cr,value:ir}=Wn||{};Xn===0&&cr&&(Rn+=`${cr}<br/>`),Rn+=hn(qn,{textData:{marker:tr,name:Hn.name,value:ir[Xn],a:Hn.name,b:Hn.name,c:ir[Xn]||0,type:cr}},{useNewline:!0,useSpace:!0}),Rn+="<br/>"}return Rn},position:c.tooltipPosition||void 0},radar:{indicator:vue.unref(vn),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(b).map(Wn=>({name:Wn.name,icon:c.legendType})),formatter:Wn=>getLegendFormat(c.legendFormatter,{name:Wn})},series:vue.unref(re)})),Bn=()=>{m.value=!1},{getGlobalModel:w,setGlobalModel:J}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Wn=>{},setGlobalModel:(Wn,Rn)=>{}}),gn=(Wn=[],Rn=!1)=>{var Xn;let qn;if(c.dataFieldConfigType==="key"){const Hn=Rn?c.keyTypeDataFieldNames:null;qn=Mn(Wn,Hn)}else if(c.dataFieldConfigType==="value"){const Hn=Rn?c.valueTypeDataFieldNames:null;qn=En(Wn,Hn)}y.value=qn.dimensions,b.value=qn.dataset,(Xn=qn.dataset)!=null&&Xn.length?f.value=!1:f.value=!0},zn=(Wn=[],Rn,qn=!1)=>{var tr;const Hn=Mn(Wn,qn?Rn:null,!0);y.value=Hn.dimensions,b.value=Hn.dataset,(tr=Hn.dataset)!=null&&tr.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],([Wn])=>{(c.dataType==="static"||vue.unref(d)==="design")&&gn(Wn)},{immediate:!0,deep:!0});const Vn=vue.ref(!1),Kn=useRequestData(c),Un=async()=>{var Wn,Rn;if(c.dataType==="request")try{Vn.value=!0;const qn=await Kn();gn((Rn=(Wn=qn==null?void 0:qn.data)==null?void 0:Wn.data)==null?void 0:Rn.rows,!0)}catch(qn){console.error(qn)}finally{Vn.value=!1}},Qn=useEmitEvent(c);J(c.id,{type:c.type,RECORD:""});const Jn=Wn=>{const Rn=Wn.event.topTarget.__dimIdx;Rn!==void 0&&Qn("click",()=>{var tr;const{value:qn,name:Xn}=Wn.data||{},Hn=w(c.id);J(c.id,{...Hn,type:c.type,RECORD:{[vue.unref(j)]:((tr=vue.unref(vn)[Rn])==null?void 0:tr.name)||"",[Xn]:qn[Rn],seriesName:Xn}})})()},Yn=Wn=>{var Hn;const{columns:Rn=[],rows:qn=[]}=((Hn=Wn==null?void 0:Wn.data)==null?void 0:Hn.data)??{};let Xn;Rn.length>0&&(j.value=Rn[0],Xn={name:Rn[0],types:Rn.slice(1).map(tr=>({label:tr,value:tr}))}),zn(qn,Xn,!0)},Zn=useIndicatorData(c,Wn=>{c.isViewRedrawing&&v.value.clear(),Yn(Wn)}),nr=async()=>{try{Vn.value=!0;const Wn=await Zn();Yn(Wn)}catch(Wn){console.error(Wn)}finally{Vn.value=!1}},sr=async()=>{switch(c.dataType){case"indicator":await nr();break;case"request":await Un();break}};useOnEvent(c,{refreshData:sr,resetRecord:()=>{const Wn=c.id,Rn=w(Wn);J(Wn,{...Rn,RECORD:""})},click:Jn});const{setRequest:Gn}=vue.inject(REQUEST_MODEL,{setRequest:Wn=>{}});return typeof Gn=="function"&&Gn({id:c.id,requestFn:sr,sortNum:c.requestSort}),u({refreshData:sr}),{option:Fn,style:g,click:Jn,loading:Vn,onClose:Bn,ecanModal:x,echartRef:v,emptyData:f}}}),Radar_vue_vue_type_style_index_0_lang="",Radar_vue_vue_type_style_index_1_scoped_bf3210a4_lang="";function _sfc_render$c(c,u,f,d,h,p){const v=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[c.noDataTip&&c.emptyData?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"empty-wrap",style:vue.normalizeStyle({color:c.tipTextColor,fontSize:c.tipTextFontSize})},[vue.createElementVNode("span",null,vue.toDisplayString(c.tipText),1)],4)):(vue.openBlock(),vue.createBlock(v,{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(v,{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-bf3210a4"]]),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,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},borderComponentProps=transformToComponentProps(borderProps),borderEvents=["click"],_sfc_main$9=vue.defineComponent({name:"EcanBorder",props:{...borderComponentProps},setup(c){const u=usePickComponentStyle(c,["background","backgroundColor"]),f=vue.computed(()=>({})),d=vue.computed(()=>{const{events:re}=c;let vn={};return re!=null&&re.length&&re.find(Bn=>Bn.emit==="showModal")&&(vn={cursor:"pointer"}),vn}),{theme:h}=vue.inject(GLOBAL_CONFIG,{theme:"light"}),p=vue.computed(()=>{let re="";switch(c.titleMode){case"type-2":re="2";break}return re}),v=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${p.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${p.value}.png`],self.location).href),g=vue.computed(()=>({width:"100%",height:"100%"})),y=vue.computed(()=>{const{borderRadius:re}=c,vn=[],Fn={};if(re){const Bn=re.split(",");for(const w of Bn)(+w||+w==0)&&vn.push(+w+"px")}return vn!=null&&vn.length&&(Fn.borderRadius=vn.join(" ")),Fn}),Pn=useEmitEvent(c)("click",()=>{}),b=vue.ref([]);vue.watch(()=>c.data,re=>{b.value=re},{immediate:!0,deep:!0}),useOnEvent(c,{click:Pn});const{setGlobalModel:j}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(re,vn)=>{}});return j(c.id,{type:c.type,value:b}),{style:u,gradientStyle:f,click:Pn,borderStyle:g,theme:h,borderRadiusStyle:y,titleLeftIcon:v,titleRightIcon:m,cursorStyle:d}}}),Border_vue_vue_type_style_index_0_scoped_cfd7481a_lang="",_withScopeId$1=c=>(vue.pushScopeId("data-v-cfd7481a"),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,p){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]=(...v)=>c.click&&c.click(...v)),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)],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-cfd7481a"]]),EcanBorder=withInstall$1(Border),tabsProps$1={...props,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,Un=>{f.value=Un},{immediate:!0});const{pageMode:d}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),h=vue.inject("getContainerMap",()=>{}),p=vue.inject("componentList",[]),v=["ecanBorder","ecanTabs","ecanCirculate"],m=vue.computed(()=>h()||{}),g=Un=>{const Qn=vue.unref(m)[Un],Jn=[];if(Qn)for(const Yn in Qn)for(const Zn of Qn[Yn]){const nr=vue.unref(p).find(sr=>sr.id===Zn);Jn.push(Zn),v.includes(nr==null?void 0:nr.type)&&Jn.push(...g(Zn))}return Jn},y=vue.computed(()=>g(c.id));let x=null;const Pn=()=>{const Un=Array.isArray(vue.unref(j))?vue.unref(j).length-1:0;vue.unref(d)!=="design"&&!c.isAutoScroll&&c.autoSwitch&&Un>0&&(x=setInterval(()=>{const Qn=vue.unref(f)+1;Qn<=Un?f.value=Qn:f.value=0,re.value=vue.unref(j)[vue.unref(f)],w()},c.autoSwitchInterval*1e3))},b=()=>{clearInterval(x)};vue.onMounted(()=>{vue.unref(d)!=="design"&&Pn()}),vue.onBeforeUnmount(()=>{Bn(c.id,{activeKey:c.activeKey}),w(),b()});const j=vue.ref([]),re=vue.ref({});vue.watch(()=>c.data,Un=>{j.value=Un,re.value=Array.isArray(Un)&&Un.length>0?Un[0]:{}},{immediate:!0,deep:!0});const vn=Un=>f.value===Un,Fn=useEmitEvent(c),{setGlobalModel:Bn}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(Un,Qn)=>{}});Bn(c.id,{RECORD:vue.unref(re),value:vue.unref(re),activeKey:f});const{emitRefreshPage:w}=vue.inject(REFRESH_PAGE,{emitRefreshPage:()=>{}}),J=Un=>{let{tab:Qn,index:Jn}=Un||{};if(Un.label){const Yn=vue.unref(j).findIndex(Zn=>Zn.title===Un.label);Yn!==-1&&(Jn=Yn,Qn=vue.unref(j)[Yn])}Fn("tabChange",()=>{!isNaN(+Jn)&&Jn!==vue.unref(f)&&(re.value=Qn,f.value=Jn,Bn(c.id,{RECORD:Qn,value:Qn,activeKey:Jn}),w())})()},gn=vue.computed(()=>{const Un=c.componentList.map(Qn=>parseFloat(Qn.left)+parseFloat(Qn.width)).sort((Qn,Jn)=>Jn-Qn)[0];return{width:Un?Un+"px":"100%"}}),zn=()=>{vue.unref(d)!=="design"&&b()},Vn=Un=>{var Qn,Jn;return Un?(Jn=(Qn=Un==null?void 0:Un.parentNode)==null?void 0:Qn.className)!=null&&Jn.includes("ecan-")?Un.parentNode.getAttribute("cpntid"):Vn(Un.parentNode):""},Kn=Un=>{var Qn;if(vue.unref(d)!=="design"){const Jn=(Un==null?void 0:Un.toElement)||{};if((Qn=Jn==null?void 0:Jn.className)!=null&&Qn.includes("ecan-"))vue.unref(y).includes(Jn.getAttribute("cpntid"))||Pn();else if((Jn==null?void 0:Jn.className)==="page-config")Pn();else{const Yn=Vn(Jn);vue.unref(y).includes(Yn)||Pn()}}};return useOnEvent(c,{tabChange:J}),{style:u,activeKey:f,isActive:vn,tabChange:J,myData:j,useImagePath,pageMode:d,scrollWrapStyle:gn,onMouseEnter:zn,onMouseLeave:Kn}}}),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,p){const v=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,x)=>(vue.openBlock(),vue.createElementBlock("div",{class:"tab",style:vue.normalizeStyle({padding:`${c.tabVerticalPadding} ${c.tabHorizontalPadding}`,color:c.isActive(x)?c.activeTabColor:c.tabColor,backgroundImage:c.isActive(x)?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:x,onClick:vue.withModifiers(Pn=>c.tabChange({tab:y,index:x}),["prevent","stop"])},[vue.createElementVNode("div",{class:"tab-inner",style:vue.normalizeStyle({borderBottom:!c.activeTabBackgroundImage&&!c.tabBackgroundImage?`1px solid ${c.isActive(x)?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,x)=>(vue.openBlock(),vue.createBlock(v,{key:x,value:x,onClick:Pn=>c.tabChange({tab:y,index:x})},{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,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:p}=vue.inject(All_COMPONENT_RES_DATA,{allComponentResData:{}}),{globalVariable:v}=vue.inject(GLOBAL_VARIABLE,{globalVariable:{}}),m=vue.inject("usedComponentList",[]),g=vue.inject("isMobile",!1),{getGlobalModel:y,setGlobalModel:x}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Gn=>{},setGlobalModel:(Gn,Wn)=>{}}),Pn=vue.ref([]),b=vue.ref({}),{pageMode:j,width:re,height:vn}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",width:null,height:null}),Fn=vue.computed(()=>{if(vue.unref(g)){const Gn=document.body.clientWidth,Wn=c.sourceWidth||getFormatWh(c.width,vue.unref(re));return Gn/Wn||1}else return 1});function Bn(Gn){for(const Wn of Gn)Wn.left=parseFloat(Wn.left)-parseFloat(c.sourceLeft||c.left)+"px",Wn.top=parseFloat(Wn.top)-parseFloat(c.sourceTop||c.top)+"px"}const w=Gn=>{const Wn=Gn.sort((Hn,tr)=>parseFloat(Hn.top)-parseFloat(tr.top))[0],Rn=Gn.sort((Hn,tr)=>parseFloat(Hn.left)-parseFloat(tr.left))[0],qn=Gn.map(Hn=>parseFloat(Hn.left)+getFormatWh(Hn.width,vue.unref(re))).sort((Hn,tr)=>tr-Hn)[0],Xn=Gn.map(Hn=>parseFloat(Hn.top)+getFormatWh(Hn.height,vue.unref(vn))).sort((Hn,tr)=>tr-Hn)[0];if(Rn&&qn&&Wn&&Xn){const Hn=parseFloat(Rn.left),tr=parseFloat(Wn.top);return{width:qn-Hn,height:Xn-tr,left:Hn}}else return{width:0,height:0,left:0}},J=vue.ref({}),gn=Gn=>{var lr,or;const Wn=[],{graphicConfig:Rn,id:qn,componentList:Xn,keyFieldMap:Hn,unitInterval:tr,colNum:cr}=c;let ir=lodashEs.cloneDeep(Xn),er=[];if((lr=vue.unref(m))!=null&&lr.length)for(const ar of vue.unref(m))er.push(ar),(or=ar==null?void 0:ar.componentList)!=null&&or.length&&er.push(...ar.componentList);if(Rn.pageMode==="design"&&Rn.preview){const{containerMap:ar}=Rn.pageConfig||{};er=vue.unref(Rn.componentList)||[],ir=moveToComponentList(ar,lodashEs.cloneDeep(er),qn)}Bn(ir);const pr=w(ir);if(Gn!=null&&Gn.length){const{width:ar,left:vr,height:fr}=pr;let mr=0,dr=0;Gn.forEach((hr,yr)=>{hr.index=yr+1;const _r=nanoid(),gr=lodashEs.cloneDeep(ir);for(const br of gr){const Er=Hn.find(Ir=>Ir.keyName===br.keyName),Mr=nanoid();if(br.left=(parseFloat(br.left)+mr)*vue.unref(Fn)+"px",br.top=(parseFloat(br.top)+dr)*vue.unref(Fn)+"px",br.scale=vue.unref(Fn),br.id=Mr,br.keyName=br.name+"_"+Mr,br.unitId=_r,br.extendData={[c.keyName]:{index:hr.index}},Er!=null&&Er.fieldName){const Ir=br.text.match(/\{(.+?)\}/g);switch(br.type){case"ecanText":{br.data={value:String(hr[Er.fieldName])},Ir!=null&&Ir.length||(br.text="{value}");break}case"ecanProportion":{br.data={percent:String(hr[Er.fieldName])},Ir!=null&&Ir.length||(br.text="{percent}");break}}}for(const Ir in br){const Fr=br[Ir];if(typeof Fr=="string"&&Fr.includes("$page")){const Or=lodashEs.cloneDeep(br.extendData);let Nr=Fr.replace(/[{}]/g,"");const zr=Object.keys(Or);for(const Rr of zr)if(hasChinese(Rr)){const Hr="n_"+customAlphabet(f,6)();Nr=Nr.replace(new RegExp(Rr,"g"),Hr),Or[Hr]=Or[Rr]}br[Ir]=pn(Nr,{...vue.unref(v),...Or})}}}cr&&hr.index%cr===0?(mr=0,dr+=tr+fr):mr+=tr+ar,Wn.push(...gr),J.value[_r]=hr}),b.value={width:((cr||Gn.length)*(ar+tr)+vr)*vue.unref(Fn)+"px",height:(cr?Math.ceil(Gn.length/cr)*(tr+fr):tr+fr)*vue.unref(Fn)+"px"}}Pn.value=Wn},zn=Gn=>{var Rn;const{rows:Wn=[]}=((Rn=Gn==null?void 0:Gn.data)==null?void 0:Rn.data)??{};gn(Wn)},Vn=useIndicatorData(c,zn),Kn=async()=>{try{d.value=!0;const Gn=await Vn();zn(Gn)}catch(Gn){console.error(Gn)}finally{d.value=!1}},Un=useRequestData(c),Qn=async()=>{try{d.value=!0;const Gn=await Un();zn(Gn)}catch(Gn){console.error(Gn)}finally{d.value=!1}},Jn=vue.computed(()=>{if(c.dataType!=="component")return{};const{associatId:Gn}=c,Wn=vue.unref(m).find(Rn=>Rn.id===Gn);return(Wn==null?void 0:Wn.dataType)==="static"?{rows:(Wn==null?void 0:Wn.data)||[]}:Gn?vue.unref(p)[Gn]:{}});vue.watch(()=>Jn.value,Gn=>{c.dataType==="component"&&gn((Gn==null?void 0:Gn.rows)||[])},{deep:!0});const Yn=async()=>{var Gn;switch(c.dataType){case"indicator":await Kn();break;case"request":await Qn();break;case"component":gn(((Gn=vue.unref(Jn))==null?void 0:Gn.rows)||[]);break}};useOnEvent(c,{refreshData:Yn,resetRecord:()=>{const Gn=c.id,Wn=y(Gn);x(Gn,{...Wn,RECORD:""})}}),u({refreshData:Yn}),x(c.id,{type:c.type,RECORD:""});const{setRequest:nr}=vue.inject(REQUEST_MODEL,{setRequest:Gn=>{}});typeof nr=="function"&&nr({id:c.id,requestFn:Yn,sortNum:c.requestSort});const sr=useEmitEvent(c);return{loading:d,style:h,myComponentList:Pn,scrollWrapStyle:b,pageMode:j,click:Gn=>{let Wn=Gn.target;if(Wn){let Rn=Wn.getAttribute("unitId");for(;!Rn&&!Wn.className.includes("ecan-");)Wn=Wn.parentElement,Rn=Wn.getAttribute("unitId");Rn&&sr("click",()=>{const qn=y(c.id);x(c.id,{...qn,type:c.type,RECORD:vue.unref(J)[Rn]})})()}}}}}),Circulate_vue_vue_type_style_index_0_scoped_86a0142f_lang="",_hoisted_1$4=["id"];function _sfc_render$9(c,u,f,d,h,p){const v=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(v,{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,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,p)=>{}})||{};return useOnEvent(c,{refreshData:()=>{f("refreshTemplate",c.pageId)}}),{style:u}}});function _sfc_render$8(c,u,f,d,h,p){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,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 p in h)Object.prototype.hasOwnProperty.call(h,p)&&(u.prototype[p]=h[p])}}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,p=[],v;switch(f){case"int16":case"uint8c":v=1;break;default:v=1.1;break}for(h=0;h<d;h+=1)p.push(v);return p}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,p,v,m,g,y,x;switch(v=Math.floor(c*6),m=c*6-v,g=f*(1-u),y=f*(1-m*u),x=f*(1-(1-m)*u),v%6){case 0:d=f,h=x,p=g;break;case 1:d=y,h=f,p=g;break;case 2:d=g,h=f,p=x;break;case 3:d=g,h=y,p=f;break;case 4:d=x,h=g,p=f;break;case 5:d=f,h=g,p=y;break}return[d,h,p]}function RGBtoHSV(c,u,f){var d=Math.max(c,u,f),h=Math.min(c,u,f),p=d-h,v,m=d===0?0:p/d,g=d/255;switch(d){case h:v=0;break;case c:v=u-f+p*(u<f?6:0),v/=6*p;break;case u:v=f-c+p*2,v/=6*p;break;case f:v=c-u+p*4,v/=6*p;break}return[v,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,p){return d<0&&(d=0),h<0&&(h=0),p<0&&(p=0),"#"+c[d]+c[h]+c[p]}}(),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(j){f({data:j})}},p={postMessage:function(j){h.onmessage({data:j})}};function v(b){if(window.Worker&&window.Blob&&getWebWorker()){var j=new Blob(["var _workerSelf = self; self.onmessage = ",b.toString()],{type:"text/javascript"}),re=URL.createObjectURL(j);return new Worker(re)}return f=b,h}function m(){d||(d=v(function(j){function re(){function Fn(ur,Gn){var Wn,Rn,qn=ur.length,Xn,Hn,tr,cr;for(Rn=0;Rn<qn;Rn+=1)if(Wn=ur[Rn],"ks"in Wn&&!Wn.completed){if(Wn.completed=!0,Wn.hasMask){var ir=Wn.masksProperties;for(Hn=ir.length,Xn=0;Xn<Hn;Xn+=1)if(ir[Xn].pt.k.i)zn(ir[Xn].pt.k);else for(cr=ir[Xn].pt.k.length,tr=0;tr<cr;tr+=1)ir[Xn].pt.k[tr].s&&zn(ir[Xn].pt.k[tr].s[0]),ir[Xn].pt.k[tr].e&&zn(ir[Xn].pt.k[tr].e[0])}Wn.ty===0?(Wn.layers=J(Wn.refId,Gn),Fn(Wn.layers,Gn)):Wn.ty===4?gn(Wn.shapes):Wn.ty===5&&nr(Wn)}}function Bn(ur,Gn){if(ur){var Wn=0,Rn=ur.length;for(Wn=0;Wn<Rn;Wn+=1)ur[Wn].t===1&&(ur[Wn].data.layers=J(ur[Wn].data.refId,Gn),Fn(ur[Wn].data.layers,Gn))}}function w(ur,Gn){for(var Wn=0,Rn=Gn.length;Wn<Rn;){if(Gn[Wn].id===ur)return Gn[Wn];Wn+=1}return null}function J(ur,Gn){var Wn=w(ur,Gn);return Wn?Wn.layers.__used?JSON.parse(JSON.stringify(Wn.layers)):(Wn.layers.__used=!0,Wn.layers):null}function gn(ur){var Gn,Wn=ur.length,Rn,qn;for(Gn=Wn-1;Gn>=0;Gn-=1)if(ur[Gn].ty==="sh")if(ur[Gn].ks.k.i)zn(ur[Gn].ks.k);else for(qn=ur[Gn].ks.k.length,Rn=0;Rn<qn;Rn+=1)ur[Gn].ks.k[Rn].s&&zn(ur[Gn].ks.k[Rn].s[0]),ur[Gn].ks.k[Rn].e&&zn(ur[Gn].ks.k[Rn].e[0]);else ur[Gn].ty==="gr"&&gn(ur[Gn].it)}function zn(ur){var Gn,Wn=ur.i.length;for(Gn=0;Gn<Wn;Gn+=1)ur.i[Gn][0]+=ur.v[Gn][0],ur.i[Gn][1]+=ur.v[Gn][1],ur.o[Gn][0]+=ur.v[Gn][0],ur.o[Gn][1]+=ur.v[Gn][1]}function Vn(ur,Gn){var Wn=Gn?Gn.split("."):[100,100,100];return ur[0]>Wn[0]?!0:Wn[0]>ur[0]?!1:ur[1]>Wn[1]?!0:Wn[1]>ur[1]?!1:ur[2]>Wn[2]?!0:Wn[2]>ur[2]?!1:null}var Kn=function(){var ur=[4,4,14];function Gn(Rn){var qn=Rn.t.d;Rn.t.d={k:[{s:qn,t:0}]}}function Wn(Rn){var qn,Xn=Rn.length;for(qn=0;qn<Xn;qn+=1)Rn[qn].ty===5&&Gn(Rn[qn])}return function(Rn){if(Vn(ur,Rn.v)&&(Wn(Rn.layers),Rn.assets)){var qn,Xn=Rn.assets.length;for(qn=0;qn<Xn;qn+=1)Rn.assets[qn].layers&&Wn(Rn.assets[qn].layers)}}}(),Un=function(){var ur=[4,7,99];return function(Gn){if(Gn.chars&&!Vn(ur,Gn.v)){var Wn,Rn=Gn.chars.length;for(Wn=0;Wn<Rn;Wn+=1){var qn=Gn.chars[Wn];qn.data&&qn.data.shapes&&(gn(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}},Gn.chars[Wn].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"})))}}}}(),Qn=function(){var ur=[5,7,15];function Gn(Rn){var qn=Rn.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 Wn(Rn){var qn,Xn=Rn.length;for(qn=0;qn<Xn;qn+=1)Rn[qn].ty===5&&Gn(Rn[qn])}return function(Rn){if(Vn(ur,Rn.v)&&(Wn(Rn.layers),Rn.assets)){var qn,Xn=Rn.assets.length;for(qn=0;qn<Xn;qn+=1)Rn.assets[qn].layers&&Wn(Rn.assets[qn].layers)}}}(),Jn=function(){var ur=[4,1,9];function Gn(Rn){var qn,Xn=Rn.length,Hn,tr;for(qn=0;qn<Xn;qn+=1)if(Rn[qn].ty==="gr")Gn(Rn[qn].it);else if(Rn[qn].ty==="fl"||Rn[qn].ty==="st")if(Rn[qn].c.k&&Rn[qn].c.k[0].i)for(tr=Rn[qn].c.k.length,Hn=0;Hn<tr;Hn+=1)Rn[qn].c.k[Hn].s&&(Rn[qn].c.k[Hn].s[0]/=255,Rn[qn].c.k[Hn].s[1]/=255,Rn[qn].c.k[Hn].s[2]/=255,Rn[qn].c.k[Hn].s[3]/=255),Rn[qn].c.k[Hn].e&&(Rn[qn].c.k[Hn].e[0]/=255,Rn[qn].c.k[Hn].e[1]/=255,Rn[qn].c.k[Hn].e[2]/=255,Rn[qn].c.k[Hn].e[3]/=255);else Rn[qn].c.k[0]/=255,Rn[qn].c.k[1]/=255,Rn[qn].c.k[2]/=255,Rn[qn].c.k[3]/=255}function Wn(Rn){var qn,Xn=Rn.length;for(qn=0;qn<Xn;qn+=1)Rn[qn].ty===4&&Gn(Rn[qn].shapes)}return function(Rn){if(Vn(ur,Rn.v)&&(Wn(Rn.layers),Rn.assets)){var qn,Xn=Rn.assets.length;for(qn=0;qn<Xn;qn+=1)Rn.assets[qn].layers&&Wn(Rn.assets[qn].layers)}}}(),Yn=function(){var ur=[4,4,18];function Gn(Rn){var qn,Xn=Rn.length,Hn,tr;for(qn=Xn-1;qn>=0;qn-=1)if(Rn[qn].ty==="sh")if(Rn[qn].ks.k.i)Rn[qn].ks.k.c=Rn[qn].closed;else for(tr=Rn[qn].ks.k.length,Hn=0;Hn<tr;Hn+=1)Rn[qn].ks.k[Hn].s&&(Rn[qn].ks.k[Hn].s[0].c=Rn[qn].closed),Rn[qn].ks.k[Hn].e&&(Rn[qn].ks.k[Hn].e[0].c=Rn[qn].closed);else Rn[qn].ty==="gr"&&Gn(Rn[qn].it)}function Wn(Rn){var qn,Xn,Hn=Rn.length,tr,cr,ir,er;for(Xn=0;Xn<Hn;Xn+=1){if(qn=Rn[Xn],qn.hasMask){var pr=qn.masksProperties;for(cr=pr.length,tr=0;tr<cr;tr+=1)if(pr[tr].pt.k.i)pr[tr].pt.k.c=pr[tr].cl;else for(er=pr[tr].pt.k.length,ir=0;ir<er;ir+=1)pr[tr].pt.k[ir].s&&(pr[tr].pt.k[ir].s[0].c=pr[tr].cl),pr[tr].pt.k[ir].e&&(pr[tr].pt.k[ir].e[0].c=pr[tr].cl)}qn.ty===4&&Gn(qn.shapes)}}return function(Rn){if(Vn(ur,Rn.v)&&(Wn(Rn.layers),Rn.assets)){var qn,Xn=Rn.assets.length;for(qn=0;qn<Xn;qn+=1)Rn.assets[qn].layers&&Wn(Rn.assets[qn].layers)}}}();function Zn(ur){ur.__complete||(Jn(ur),Kn(ur),Un(ur),Qn(ur),Yn(ur),Fn(ur.layers,ur.assets),Bn(ur.chars,ur.assets),ur.__complete=!0)}function nr(ur){ur.t.a.length===0&&"m"in ur.t.p}var sr={};return sr.completeData=Zn,sr.checkColors=Jn,sr.checkChars=Un,sr.checkPathProperties=Qn,sr.checkShapes=Yn,sr.completeLayers=Fn,sr}if(p.dataManager||(p.dataManager=re()),p.assetLoader||(p.assetLoader=function(){function Fn(w){var J=w.getResponseHeader("content-type");return J&&w.responseType==="json"&&J.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,J,gn,zn){var Vn,Kn=new XMLHttpRequest;try{Kn.responseType="json"}catch{}Kn.onreadystatechange=function(){if(Kn.readyState===4)if(Kn.status===200)Vn=Fn(Kn),gn(Vn);else try{Vn=Fn(Kn),gn(Vn)}catch(Un){zn&&zn(Un)}};try{Kn.open(["G","E","T"].join(""),w,!0)}catch{Kn.open(["G","E","T"].join(""),J+"/"+w,!0)}Kn.send()}return{load:Bn}}()),j.data.type==="loadAnimation")p.assetLoader.load(j.data.path,j.data.fullPath,function(Fn){p.dataManager.completeData(Fn),p.postMessage({id:j.data.id,payload:Fn,status:"success"})},function(){p.postMessage({id:j.data.id,status:"error"})});else if(j.data.type==="complete"){var vn=j.data.animation;p.dataManager.completeData(vn),p.postMessage({id:j.data.id,payload:vn,status:"success"})}else j.data.type==="loadData"&&p.assetLoader.load(j.data.path,j.data.fullPath,function(Fn){p.postMessage({id:j.data.id,payload:Fn,status:"success"})},function(){p.postMessage({id:j.data.id,status:"error"})})}),d.onmessage=function(b){var j=b.data,re=j.id,vn=u[re];u[re]=null,j.status==="success"?vn.onComplete(j.payload):vn.onError&&vn.onError()})}function g(b,j){c+=1;var re="processId_"+c;return u[re]={onComplete:b,onError:j},re}function y(b,j,re){m();var vn=g(j,re);d.postMessage({type:"loadAnimation",path:b,fullPath:window.location.origin+window.location.pathname,id:vn})}function x(b,j,re){m();var vn=g(j,re);d.postMessage({type:"loadData",path:b,fullPath:window.location.origin+window.location.pathname,id:vn})}function Pn(b,j,re){m();var vn=g(j,re);d.postMessage({type:"complete",animation:b,id:vn})}return{loadAnimation:y,loadData:x,completeAnimation:Pn}}(),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,J){var gn="";if(Bn.e)gn=Bn.p;else if(w){var zn=Bn.p;zn.indexOf("images/")!==-1&&(zn=zn.split("/")[1]),gn=w+zn}else gn=J,gn+=Bn.u?Bn.u:"",gn+=Bn.p;return gn}function h(Bn){var w=0,J=setInterval((function(){var gn=Bn.getBBox();(gn.width||w>500)&&(this._imageLoaded(),clearInterval(J)),w+=1}).bind(this),50)}function p(Bn){var w=d(Bn,this.assetsPath,this.path),J=createNS("image");isSafari?this.testImageLoaded(J):J.addEventListener("load",this._imageLoaded,!1),J.addEventListener("error",(function(){gn.img=c,this._imageLoaded()}).bind(this),!1),J.setAttributeNS("http://www.w3.org/1999/xlink","href",w),this._elementHelper.append?this._elementHelper.append(J):this._elementHelper.appendChild(J);var gn={img:J,assetData:Bn};return gn}function v(Bn){var w=d(Bn,this.assetsPath,this.path),J=createTag("img");J.crossOrigin="anonymous",J.addEventListener("load",this._imageLoaded,!1),J.addEventListener("error",(function(){gn.img=c,this._imageLoaded()}).bind(this),!1),J.src=w;var gn={img:J,assetData:Bn};return gn}function m(Bn){var w={assetData:Bn},J=d(Bn,this.assetsPath,this.path);return dataManager.loadData(J,(function(gn){w.img=gn,this._footageLoaded()}).bind(this),(function(){w.img={},this._footageLoaded()}).bind(this)),w}function g(Bn,w){this.imagesLoadedCb=w;var J,gn=Bn.length;for(J=0;J<gn;J+=1)Bn[J].layers||(!Bn[J].t||Bn[J].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(Bn[J]))):Bn[J].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(Bn[J]))))}function y(Bn){this.path=Bn||""}function x(Bn){this.assetsPath=Bn||""}function Pn(Bn){for(var w=0,J=this.images.length;w<J;){if(this.images[w].assetData===Bn)return this.images[w].img;w+=1}return null}function b(){this.imagesLoadedCb=null,this.images.length=0}function j(){return this.totalImages===this.loadedAssets}function re(){return this.totalFootages===this.loadedFootagesCount}function vn(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:x,setPath:y,loadedImages:j,loadedFootages:re,destroy:b,getAsset:Pn,createImgData:v,createImageData:p,imageLoaded:u,footageLoaded:f,setCacheType:vn},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
172
172
  `),d={},h,p=0,v=0;v<f.length;v+=1)h=f[v].split(":"),h.length===2&&(d[h[0]]=h[1].trim(),p+=1);if(p===0)throw new Error;return d}return function(u){for(var f=[],d=0;d<u.length;d+=1){var h=u[d],p={time:h.tm,duration:h.dr};try{p.payload=JSON.parse(u[d].cm)}catch{try{p.payload=c(u[d].cm)}catch{p.payload={name:u[d].cm}}}f.push(p)}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 p=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=p!=="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 v=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:"";v==="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,p,v=h.length;for(p=0;p<v;p+=1)for(f=0;f<d;){if(u[f].id===h[p].id){u[f]=h[p];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,p=!0,v=!1;function m(Gn){for(var Wn=0,Rn=Gn.target;Wn<d;)u[Wn].animation===Rn&&(u.splice(Wn,1),Wn-=1,d-=1,Rn.isPaused||Pn()),Wn+=1}function g(Gn,Wn){if(!Gn)return null;for(var Rn=0;Rn<d;){if(u[Rn].elem===Gn&&u[Rn].elem!==null)return u[Rn].animation;Rn+=1}var qn=new AnimationItem;return b(qn,Gn),qn.setData(Gn,Wn),qn}function y(){var Gn,Wn=u.length,Rn=[];for(Gn=0;Gn<Wn;Gn+=1)Rn.push(u[Gn].animation);return Rn}function x(){h+=1,Jn()}function Pn(){h-=1}function b(Gn,Wn){Gn.addEventListener("destroy",m),Gn.addEventListener("_active",x),Gn.addEventListener("_idle",Pn),u.push({elem:Wn,animation:Gn}),d+=1}function j(Gn){var Wn=new AnimationItem;return b(Wn,null),Wn.setParams(Gn),Wn}function re(Gn,Wn){var Rn;for(Rn=0;Rn<d;Rn+=1)u[Rn].animation.setSpeed(Gn,Wn)}function vn(Gn,Wn){var Rn;for(Rn=0;Rn<d;Rn+=1)u[Rn].animation.setDirection(Gn,Wn)}function Fn(Gn){var Wn;for(Wn=0;Wn<d;Wn+=1)u[Wn].animation.play(Gn)}function Bn(Gn){var Wn=Gn-f,Rn;for(Rn=0;Rn<d;Rn+=1)u[Rn].animation.advanceTime(Wn);f=Gn,h&&!v?window.requestAnimationFrame(Bn):p=!0}function w(Gn){f=Gn,window.requestAnimationFrame(Bn)}function J(Gn){var Wn;for(Wn=0;Wn<d;Wn+=1)u[Wn].animation.pause(Gn)}function gn(Gn,Wn,Rn){var qn;for(qn=0;qn<d;qn+=1)u[qn].animation.goToAndStop(Gn,Wn,Rn)}function zn(Gn){var Wn;for(Wn=0;Wn<d;Wn+=1)u[Wn].animation.stop(Gn)}function Vn(Gn){var Wn;for(Wn=0;Wn<d;Wn+=1)u[Wn].animation.togglePause(Gn)}function Kn(Gn){var Wn;for(Wn=d-1;Wn>=0;Wn-=1)u[Wn].animation.destroy(Gn)}function Un(Gn,Wn,Rn){var qn=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Xn,Hn=qn.length;for(Xn=0;Xn<Hn;Xn+=1)Rn&&qn[Xn].setAttribute("data-bm-type",Rn),g(qn[Xn],Gn);if(Wn&&Hn===0){Rn||(Rn="svg");var tr=document.getElementsByTagName("body")[0];tr.innerText="";var cr=createTag("div");cr.style.width="100%",cr.style.height="100%",cr.setAttribute("data-bm-type",Rn),tr.appendChild(cr),g(cr,Gn)}}function Qn(){var Gn;for(Gn=0;Gn<d;Gn+=1)u[Gn].animation.resize()}function Jn(){!v&&h&&p&&(window.requestAnimationFrame(w),p=!1)}function Yn(){v=!0}function Zn(){v=!1,Jn()}function nr(Gn,Wn){var Rn;for(Rn=0;Rn<d;Rn+=1)u[Rn].animation.setVolume(Gn,Wn)}function sr(Gn){var Wn;for(Wn=0;Wn<d;Wn+=1)u[Wn].animation.mute(Gn)}function ur(Gn){var Wn;for(Wn=0;Wn<d;Wn+=1)u[Wn].animation.unmute(Gn)}return c.registerAnimation=g,c.loadAnimation=j,c.setSpeed=re,c.setDirection=vn,c.play=Fn,c.pause=J,c.stop=zn,c.togglePause=Vn,c.searchAnimations=Un,c.resize=Qn,c.goToAndStop=gn,c.destroy=Kn,c.freeze=Yn,c.unfreeze=Zn,c.setVolume=nr,c.mute=sr,c.unmute=ur,c.getRegisteredAnimations=y,c}(),BezierFactory=function(){var c={};c.getBezierEasing=f;var u={};function f(w,J,gn,zn,Vn){var Kn=Vn||("bez_"+w+"_"+J+"_"+gn+"_"+zn).replace(/\./g,"p");if(u[Kn])return u[Kn];var Un=new Bn([w,J,gn,zn]);return u[Kn]=Un,Un}var d=4,h=.001,p=1e-7,v=10,m=11,g=1/(m-1),y=typeof Float32Array=="function";function x(w,J){return 1-3*J+3*w}function Pn(w,J){return 3*J-6*w}function b(w){return 3*w}function j(w,J,gn){return((x(J,gn)*w+Pn(J,gn))*w+b(J))*w}function re(w,J,gn){return 3*x(J,gn)*w*w+2*Pn(J,gn)*w+b(J)}function vn(w,J,gn,zn,Vn){var Kn,Un,Qn=0;do Un=J+(gn-J)/2,Kn=j(Un,zn,Vn)-w,Kn>0?gn=Un:J=Un;while(Math.abs(Kn)>p&&++Qn<v);return Un}function Fn(w,J,gn,zn){for(var Vn=0;Vn<d;++Vn){var Kn=re(J,gn,zn);if(Kn===0)return J;var Un=j(J,gn,zn)-w;J-=Un/Kn}return J}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(J){var gn=this._p[0],zn=this._p[1],Vn=this._p[2],Kn=this._p[3];return this._precomputed||this._precompute(),gn===zn&&Vn===Kn?J:J===0?0:J===1?1:j(this._getTForX(J),zn,Kn)},_precompute:function(){var J=this._p[0],gn=this._p[1],zn=this._p[2],Vn=this._p[3];this._precomputed=!0,(J!==gn||zn!==Vn)&&this._calcSampleValues()},_calcSampleValues:function(){for(var J=this._p[0],gn=this._p[2],zn=0;zn<m;++zn)this._mSampleValues[zn]=j(zn*g,J,gn)},_getTForX:function(J){for(var gn=this._p[0],zn=this._p[2],Vn=this._mSampleValues,Kn=0,Un=1,Qn=m-1;Un!==Qn&&Vn[Un]<=J;++Un)Kn+=g;--Un;var Jn=(J-Vn[Un])/(Vn[Un+1]-Vn[Un]),Yn=Kn+Jn*g,Zn=re(Yn,gn,zn);return Zn>=h?Fn(J,Yn,gn,zn):Zn===0?Yn:vn(J,Kn,Kn+g,gn,zn)}},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,p=createSizedArray(h),v={newElement:m,release:g};function m(){var y;return d?(d-=1,y=p[d]):y=u(),y}function g(y){d===h&&(p=pooling.double(p),h*=2),f&&f(y),p[d]=y,d+=1}return v}}(),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(b,j,re,vn,Fn,Bn){var w=b*vn+j*Fn+re*Bn-Fn*vn-Bn*b-re*j;return w>-.001&&w<.001}function f(b,j,re,vn,Fn,Bn,w,J,gn){if(re===0&&Bn===0&&gn===0)return u(b,j,vn,Fn,w,J);var zn=c.sqrt(c.pow(vn-b,2)+c.pow(Fn-j,2)+c.pow(Bn-re,2)),Vn=c.sqrt(c.pow(w-b,2)+c.pow(J-j,2)+c.pow(gn-re,2)),Kn=c.sqrt(c.pow(w-vn,2)+c.pow(J-Fn,2)+c.pow(gn-Bn,2)),Un;return zn>Vn?zn>Kn?Un=zn-Vn-Kn:Un=Kn-Vn-zn:Kn>Vn?Un=Kn-Vn-zn:Un=Vn-zn-Kn,Un>-1e-4&&Un<1e-4}var d=function(){return function(b,j,re,vn){var Fn=getDefaultCurveSegments(),Bn,w,J,gn,zn,Vn=0,Kn,Un=[],Qn=[],Jn=bezierLengthPool.newElement();for(J=re.length,Bn=0;Bn<Fn;Bn+=1){for(zn=Bn/(Fn-1),Kn=0,w=0;w<J;w+=1)gn=bmPow(1-zn,3)*b[w]+3*bmPow(1-zn,2)*zn*re[w]+3*(1-zn)*bmPow(zn,2)*vn[w]+bmPow(zn,3)*j[w],Un[w]=gn,Qn[w]!==null&&(Kn+=bmPow(Un[w]-Qn[w],2)),Qn[w]=Un[w];Kn&&(Kn=bmSqrt(Kn),Vn+=Kn),Jn.percents[Bn]=zn,Jn.lengths[Bn]=Vn}return Jn.addedLength=Vn,Jn}}();function h(b){var j=segmentsLengthPool.newElement(),re=b.c,vn=b.v,Fn=b.o,Bn=b.i,w,J=b._length,gn=j.lengths,zn=0;for(w=0;w<J-1;w+=1)gn[w]=d(vn[w],vn[w+1],Fn[w],Bn[w+1]),zn+=gn[w].addedLength;return re&&J&&(gn[w]=d(vn[w],vn[0],Fn[w],Bn[0]),zn+=gn[w].addedLength),j.totalLength=zn,j}function p(b){this.segmentLength=0,this.points=new Array(b)}function v(b,j){this.partialLength=b,this.point=j}var m=function(){var b={};return function(j,re,vn,Fn){var Bn=(j[0]+"_"+j[1]+"_"+re[0]+"_"+re[1]+"_"+vn[0]+"_"+vn[1]+"_"+Fn[0]+"_"+Fn[1]).replace(/\./g,"p");if(!b[Bn]){var w=getDefaultCurveSegments(),J,gn,zn,Vn,Kn,Un=0,Qn,Jn,Yn=null;j.length===2&&(j[0]!==re[0]||j[1]!==re[1])&&u(j[0],j[1],re[0],re[1],j[0]+vn[0],j[1]+vn[1])&&u(j[0],j[1],re[0],re[1],re[0]+Fn[0],re[1]+Fn[1])&&(w=2);var Zn=new p(w);for(zn=vn.length,J=0;J<w;J+=1){for(Jn=createSizedArray(zn),Kn=J/(w-1),Qn=0,gn=0;gn<zn;gn+=1)Vn=bmPow(1-Kn,3)*j[gn]+3*bmPow(1-Kn,2)*Kn*(j[gn]+vn[gn])+3*(1-Kn)*bmPow(Kn,2)*(re[gn]+Fn[gn])+bmPow(Kn,3)*re[gn],Jn[gn]=Vn,Yn!==null&&(Qn+=bmPow(Jn[gn]-Yn[gn],2));Qn=bmSqrt(Qn),Un+=Qn,Zn.points[J]=new v(Qn,Jn),Yn=Jn}Zn.segmentLength=Un,b[Bn]=Zn}return b[Bn]}}();function g(b,j){var re=j.percents,vn=j.lengths,Fn=re.length,Bn=bmFloor((Fn-1)*b),w=b*j.addedLength,J=0;if(Bn===Fn-1||Bn===0||w===vn[Bn])return re[Bn];for(var gn=vn[Bn]>w?-1:1,zn=!0;zn;)if(vn[Bn]<=w&&vn[Bn+1]>w?(J=(w-vn[Bn])/(vn[Bn+1]-vn[Bn]),zn=!1):Bn+=gn,Bn<0||Bn>=Fn-1){if(Bn===Fn-1)return re[Bn];zn=!1}return re[Bn]+(re[Bn+1]-re[Bn])*J}function y(b,j,re,vn,Fn,Bn){var w=g(Fn,Bn),J=1-w,gn=c.round((J*J*J*b[0]+(w*J*J+J*w*J+J*J*w)*re[0]+(w*w*J+J*w*w+w*J*w)*vn[0]+w*w*w*j[0])*1e3)/1e3,zn=c.round((J*J*J*b[1]+(w*J*J+J*w*J+J*J*w)*re[1]+(w*w*J+J*w*w+w*J*w)*vn[1]+w*w*w*j[1])*1e3)/1e3;return[gn,zn]}var x=createTypedArray("float32",8);function Pn(b,j,re,vn,Fn,Bn,w){Fn<0?Fn=0:Fn>1&&(Fn=1);var J=g(Fn,w);Bn=Bn>1?1:Bn;var gn=g(Bn,w),zn,Vn=b.length,Kn=1-J,Un=1-gn,Qn=Kn*Kn*Kn,Jn=J*Kn*Kn*3,Yn=J*J*Kn*3,Zn=J*J*J,nr=Kn*Kn*Un,sr=J*Kn*Un+Kn*J*Un+Kn*Kn*gn,ur=J*J*Un+Kn*J*gn+J*Kn*gn,Gn=J*J*gn,Wn=Kn*Un*Un,Rn=J*Un*Un+Kn*gn*Un+Kn*Un*gn,qn=J*gn*Un+Kn*gn*gn+J*Un*gn,Xn=J*gn*gn,Hn=Un*Un*Un,tr=gn*Un*Un+Un*gn*Un+Un*Un*gn,cr=gn*gn*Un+Un*gn*gn+gn*Un*gn,ir=gn*gn*gn;for(zn=0;zn<Vn;zn+=1)x[zn*4]=c.round((Qn*b[zn]+Jn*re[zn]+Yn*vn[zn]+Zn*j[zn])*1e3)/1e3,x[zn*4+1]=c.round((nr*b[zn]+sr*re[zn]+ur*vn[zn]+Gn*j[zn])*1e3)/1e3,x[zn*4+2]=c.round((Wn*b[zn]+Rn*re[zn]+qn*vn[zn]+Xn*j[zn])*1e3)/1e3,x[zn*4+3]=c.round((Hn*b[zn]+tr*re[zn]+cr*vn[zn]+ir*j[zn])*1e3)/1e3;return x}return{getSegmentsLength:h,getNewSegment:Pn,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,p=h,v=this.keyframes.length-1,m=!0,g,y,x;m;){if(g=this.keyframes[p],y=this.keyframes[p+1],p===v-1&&c>=y.t-f){g.h&&(g=y),h=0;break}if(y.t-f>c){h=p;break}p<v-1?p+=1:(h=0,m=!1)}x=this.keyframesMetadata[p]||{};var Pn,b,j,re,vn,Fn,Bn=y.t-f,w=g.t-f,J;if(g.to){x.bezierData||(x.bezierData=bez.buildBezierData(g.s,y.s||g.e,g.to,g.ti));var gn=x.bezierData;if(c>=Bn||c<w){var zn=c>=Bn?gn.points.length-1:0;for(b=gn.points[zn].point.length,Pn=0;Pn<b;Pn+=1)d[Pn]=gn.points[zn].point[Pn]}else{x.__fnct?Fn=x.__fnct:(Fn=BezierFactory.getBezierEasing(g.o.x,g.o.y,g.i.x,g.i.y,g.n).get,x.__fnct=Fn),j=Fn((c-w)/(Bn-w));var Vn=gn.segmentLength*j,Kn,Un=u.lastFrame<c&&u._lastKeyframeIndex===p?u._lastAddedLength:0;for(vn=u.lastFrame<c&&u._lastKeyframeIndex===p?u._lastPoint:0,m=!0,re=gn.points.length;m;){if(Un+=gn.points[vn].partialLength,Vn===0||j===0||vn===gn.points.length-1){for(b=gn.points[vn].point.length,Pn=0;Pn<b;Pn+=1)d[Pn]=gn.points[vn].point[Pn];break}else if(Vn>=Un&&Vn<Un+gn.points[vn+1].partialLength){for(Kn=(Vn-Un)/gn.points[vn+1].partialLength,b=gn.points[vn].point.length,Pn=0;Pn<b;Pn+=1)d[Pn]=gn.points[vn].point[Pn]+(gn.points[vn+1].point[Pn]-gn.points[vn].point[Pn])*Kn;break}vn<re-1?vn+=1:m=!1}u._lastPoint=vn,u._lastAddedLength=Un-gn.points[vn].partialLength,u._lastKeyframeIndex=p}}else{var Qn,Jn,Yn,Zn,nr;if(v=g.s.length,J=y.s||g.e,this.sh&&g.h!==1)if(c>=Bn)d[0]=J[0],d[1]=J[1],d[2]=J[2];else if(c<=w)d[0]=g.s[0],d[1]=g.s[1],d[2]=g.s[2];else{var sr=createQuaternion(g.s),ur=createQuaternion(J),Gn=(c-w)/(Bn-w);quaternionToEuler(d,slerp(sr,ur,Gn))}else for(p=0;p<v;p+=1)g.h!==1&&(c>=Bn?j=1:c<w?j=0:(g.o.x.constructor===Array?(x.__fnct||(x.__fnct=[]),x.__fnct[p]?Fn=x.__fnct[p]:(Qn=g.o.x[p]===void 0?g.o.x[0]:g.o.x[p],Jn=g.o.y[p]===void 0?g.o.y[0]:g.o.y[p],Yn=g.i.x[p]===void 0?g.i.x[0]:g.i.x[p],Zn=g.i.y[p]===void 0?g.i.y[0]:g.i.y[p],Fn=BezierFactory.getBezierEasing(Qn,Jn,Yn,Zn).get,x.__fnct[p]=Fn)):x.__fnct?Fn=x.__fnct:(Qn=g.o.x,Jn=g.o.y,Yn=g.i.x,Zn=g.i.y,Fn=BezierFactory.getBezierEasing(Qn,Jn,Yn,Zn).get,g.keyframeMetadata=Fn),j=Fn((c-w)/(Bn-w)))),J=y.s||g.e,nr=g.h===1?g.s[p]:g.s[p]+(J[p]-g.s[p])*j,this.propType==="multidimensional"?d[p]=nr:d=nr}return u.lastIndex=h,d}function slerp(c,u,f){var d=[],h=c[0],p=c[1],v=c[2],m=c[3],g=u[0],y=u[1],x=u[2],Pn=u[3],b,j,re,vn,Fn;return j=h*g+p*y+v*x+m*Pn,j<0&&(j=-j,g=-g,y=-y,x=-x,Pn=-Pn),1-j>1e-6?(b=Math.acos(j),re=Math.sin(b),vn=Math.sin((1-f)*b)/re,Fn=Math.sin(f*b)/re):(vn=1-f,Fn=f),d[0]=vn*h+Fn*g,d[1]=vn*p+Fn*y,d[2]=vn*v+Fn*x,d[3]=vn*m+Fn*Pn,d}function quaternionToEuler(c,u){var f=u[0],d=u[1],h=u[2],p=u[3],v=Math.atan2(2*d*p-2*f*h,1-2*d*d-2*h*h),m=Math.asin(2*f*d+2*h*p),g=Math.atan2(2*f*p-2*d*h,1-2*f*f-2*h*h);c[0]=v/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),p=Math.cos(f/2),v=Math.cos(d/2),m=Math.sin(u/2),g=Math.sin(f/2),y=Math.sin(d/2),x=h*p*v-m*g*y,Pn=m*g*v+h*p*y,b=m*p*v+h*g*y,j=h*g*v-m*p*y;return[Pn,b,j,x]}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,p=u.k.length;for(this.v=createTypedArray("float32",p),this.pv=createTypedArray("float32",p),this.vel=createTypedArray("float32",p),h=0;h<p;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,p=u.k.length,v,m,g,y;for(h=0;h<p-1;h+=1)u.k[h].to&&u.k[h].s&&u.k[h+1]&&u.k[h+1].s&&(v=u.k[h].s,m=u.k[h+1].s,g=u.k[h].to,y=u.k[h].ti,(v.length===2&&!(v[0]===m[0]&&v[1]===m[1])&&bez.pointOnLine2D(v[0],v[1],m[0],m[1],v[0]+g[0],v[1]+g[1])&&bez.pointOnLine2D(v[0],v[1],m[0],m[1],m[0]+y[0],m[1]+y[1])||v.length===3&&!(v[0]===m[0]&&v[1]===m[1]&&v[2]===m[2])&&bez.pointOnLine3D(v[0],v[1],v[2],m[0],m[1],m[2],v[0]+g[0],v[1]+g[1],v[2]+g[2])&&bez.pointOnLine3D(v[0],v[1],v[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),v[0]===m[0]&&v[1]===m[1]&&g[0]===0&&g[1]===0&&y[0]===0&&y[1]===0&&(v.length===2||v[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 x=u.k[0].s.length;for(this.v=createTypedArray("float32",x),this.pv=createTypedArray("float32",x),h=0;h<x;h+=1)this.v[h]=initFrame,this.pv[h]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",x)},this.addEffect=addEffect}var PropertyFactory=function(){function c(f,d,h,p,v){d.sid&&(d=f.globalData.slotManager.getProp(d));var m;if(!d.k.length)m=new ValueProperty(f,d,p,v);else if(typeof d.k[0]=="number")m=new MultiDimensionalProperty(f,d,p,v);else switch(h){case 0:m=new KeyframedValueProperty(f,d,p,v);break;case 1:m=new KeyframedMultidimensionalProperty(f,d,p,v);break}return m.effectsSequence.length&&v.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 p;switch(this._length=Math.max(this._length,d+1),this._length>=this._maxLength&&this.doubleArrayLength(),f){case"v":p=this.v;break;case"i":p=this.i;break;case"o":p=this.o;break;default:p=[];break}(!p[d]||p[d]&&!h)&&(p[d]=pointPool.newElement()),p[d][0]=c,p[d][1]=u},ShapePath.prototype.setTripleAt=function(c,u,f,d,h,p,v,m){this.setXYAt(c,u,"v",v,m),this.setXYAt(f,d,"o",v,m),this.setXYAt(h,p,"i",v,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 p=this._length-1,v=this._length,m;for(m=h;m<v;m+=1)c.setTripleAt(u[p][0],u[p][1],d[p][0],d[p][1],f[p][0],f[p][1],m,!1),p-=1;return c},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function c(){return new ShapePath}function u(h){var p=h._length,v;for(v=0;v<p;v+=1)pointPool.release(h.v[v]),pointPool.release(h.i[v]),pointPool.release(h.o[v]),h.v[v]=null,h.i[v]=null,h.o[v]=null;h._length=0,h.c=!1}function f(h){var p=d.newElement(),v,m=h._length===void 0?h.v.length:h._length;for(p.setLength(m),p.c=h.c,v=0;v<m;v+=1)p.setTripleAt(h.v[v][0],h.v[v][1],h.o[v][0],h.o[v][1],h.i[v][0],h.i[v][1],v);return p}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:p},u=0,f=4,d=createSizedArray(f);function h(){var v;return u?(u-=1,v=d[u]):v=new ShapeCollection,v}function p(v){var m,g=v._length;for(m=0;m<g;m+=1)shapePool.release(v.shapes[m]);v._length=0,u===f&&(d=pooling.double(d),f*=2),d[u]=v,u+=1}return c}(),ShapePropertyFactory=function(){var c=-999999;function u(Bn,w,J){var gn=J.lastIndex,zn,Vn,Kn,Un,Qn,Jn,Yn,Zn,nr,sr=this.keyframes;if(Bn<sr[0].t-this.offsetTime)zn=sr[0].s[0],Kn=!0,gn=0;else if(Bn>=sr[sr.length-1].t-this.offsetTime)zn=sr[sr.length-1].s?sr[sr.length-1].s[0]:sr[sr.length-2].e[0],Kn=!0;else{for(var ur=gn,Gn=sr.length-1,Wn=!0,Rn,qn,Xn;Wn&&(Rn=sr[ur],qn=sr[ur+1],!(qn.t-this.offsetTime>Bn));)ur<Gn-1?ur+=1:Wn=!1;if(Xn=this.keyframesMetadata[ur]||{},Kn=Rn.h===1,gn=ur,!Kn){if(Bn>=qn.t-this.offsetTime)Zn=1;else if(Bn<Rn.t-this.offsetTime)Zn=0;else{var Hn;Xn.__fnct?Hn=Xn.__fnct:(Hn=BezierFactory.getBezierEasing(Rn.o.x,Rn.o.y,Rn.i.x,Rn.i.y).get,Xn.__fnct=Hn),Zn=Hn((Bn-(Rn.t-this.offsetTime))/(qn.t-this.offsetTime-(Rn.t-this.offsetTime)))}Vn=qn.s?qn.s[0]:Rn.e[0]}zn=Rn.s[0]}for(Jn=w._length,Yn=zn.i[0].length,J.lastIndex=gn,Un=0;Un<Jn;Un+=1)for(Qn=0;Qn<Yn;Qn+=1)nr=Kn?zn.i[Un][Qn]:zn.i[Un][Qn]+(Vn.i[Un][Qn]-zn.i[Un][Qn])*Zn,w.i[Un][Qn]=nr,nr=Kn?zn.o[Un][Qn]:zn.o[Un][Qn]+(Vn.o[Un][Qn]-zn.o[Un][Qn])*Zn,w.o[Un][Qn]=nr,nr=Kn?zn.v[Un][Qn]:zn.v[Un][Qn]+(Vn.v[Un][Qn]-zn.v[Un][Qn])*Zn,w.v[Un][Qn]=nr}function f(){var Bn=this.comp.renderedFrame-this.offsetTime,w=this.keyframes[0].t-this.offsetTime,J=this.keyframes[this.keyframes.length-1].t-this.offsetTime,gn=this._caching.lastFrame;return gn!==c&&(gn<w&&Bn<w||gn>J&&Bn>J)||(this._caching.lastIndex=gn<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 J,gn=Bn._length;for(J=0;J<gn;J+=1)if(Bn.v[J][0]!==w.v[J][0]||Bn.v[J][1]!==w.v[J][1]||Bn.o[J][0]!==w.o[J][0]||Bn.o[J][1]!==w.o[J][1]||Bn.i[J][0]!==w.i[J][0]||Bn.i[J][1]!==w.i[J][1])return!1;return!0}function p(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 v(){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,J=this.effectsSequence.length;for(w=0;w<J;w+=1)Bn=this.effectsSequence[w](Bn);this.setVValue(Bn),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function m(Bn,w,J){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 gn=J===3?w.pt.k:w.ks.k;this.v=shapePool.clone(gn),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=v,m.prototype.setVValue=p,m.prototype.addEffect=g;function y(Bn,w,J){this.propType="shape",this.comp=Bn.comp,this.elem=Bn,this.container=Bn,this.offsetTime=Bn.data.st,this.keyframes=J===3?w.pt.k:w.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var gn=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,gn),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=v,y.prototype.interpolateShape=u,y.prototype.setVValue=p,y.prototype.addEffect=g;var x=function(){var Bn=roundCorner;function w(J,gn){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=gn.d,this.elem=J,this.comp=J.comp,this.frameId=-1,this.initDynamicPropertyContainer(J),this.p=PropertyFactory.getProp(J,gn.p,1,0,this),this.s=PropertyFactory.getProp(J,gn.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 gn=this.p.v[0],zn=this.p.v[1],Vn=this.s.v[0]/2,Kn=this.s.v[1]/2,Un=this.d!==3,Qn=this.v;Qn.v[0][0]=gn,Qn.v[0][1]=zn-Kn,Qn.v[1][0]=Un?gn+Vn:gn-Vn,Qn.v[1][1]=zn,Qn.v[2][0]=gn,Qn.v[2][1]=zn+Kn,Qn.v[3][0]=Un?gn-Vn:gn+Vn,Qn.v[3][1]=zn,Qn.i[0][0]=Un?gn-Vn*Bn:gn+Vn*Bn,Qn.i[0][1]=zn-Kn,Qn.i[1][0]=Un?gn+Vn:gn-Vn,Qn.i[1][1]=zn-Kn*Bn,Qn.i[2][0]=Un?gn+Vn*Bn:gn-Vn*Bn,Qn.i[2][1]=zn+Kn,Qn.i[3][0]=Un?gn-Vn:gn+Vn,Qn.i[3][1]=zn+Kn*Bn,Qn.o[0][0]=Un?gn+Vn*Bn:gn-Vn*Bn,Qn.o[0][1]=zn-Kn,Qn.o[1][0]=Un?gn+Vn:gn-Vn,Qn.o[1][1]=zn+Kn*Bn,Qn.o[2][0]=Un?gn-Vn*Bn:gn+Vn*Bn,Qn.o[2][1]=zn+Kn,Qn.o[3][0]=Un?gn-Vn:gn+Vn,Qn.o[3][1]=zn-Kn*Bn}},extendPrototype([DynamicPropertyContainer],w),w}(),Pn=function(){function Bn(w,J){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=w,this.comp=w.comp,this.data=J,this.frameId=-1,this.d=J.d,this.initDynamicPropertyContainer(w),J.sy===1?(this.ir=PropertyFactory.getProp(w,J.ir,0,0,this),this.is=PropertyFactory.getProp(w,J.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(w,J.pt,0,0,this),this.p=PropertyFactory.getProp(w,J.p,1,0,this),this.r=PropertyFactory.getProp(w,J.r,0,degToRads,this),this.or=PropertyFactory.getProp(w,J.or,0,0,this),this.os=PropertyFactory.getProp(w,J.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 J=Math.floor(this.pt.v)*2,gn=Math.PI*2/J,zn=!0,Vn=this.or.v,Kn=this.ir.v,Un=this.os.v,Qn=this.is.v,Jn=2*Math.PI*Vn/(J*2),Yn=2*Math.PI*Kn/(J*2),Zn,nr,sr,ur,Gn=-Math.PI/2;Gn+=this.r.v;var Wn=this.data.d===3?-1:1;for(this.v._length=0,Zn=0;Zn<J;Zn+=1){nr=zn?Vn:Kn,sr=zn?Un:Qn,ur=zn?Jn:Yn;var Rn=nr*Math.cos(Gn),qn=nr*Math.sin(Gn),Xn=Rn===0&&qn===0?0:qn/Math.sqrt(Rn*Rn+qn*qn),Hn=Rn===0&&qn===0?0:-Rn/Math.sqrt(Rn*Rn+qn*qn);Rn+=+this.p.v[0],qn+=+this.p.v[1],this.v.setTripleAt(Rn,qn,Rn-Xn*ur*sr*Wn,qn-Hn*ur*sr*Wn,Rn+Xn*ur*sr*Wn,qn+Hn*ur*sr*Wn,Zn,!0),zn=!zn,Gn+=gn*Wn}},convertPolygonToPath:function(){var J=Math.floor(this.pt.v),gn=Math.PI*2/J,zn=this.or.v,Vn=this.os.v,Kn=2*Math.PI*zn/(J*4),Un,Qn=-Math.PI*.5,Jn=this.data.d===3?-1:1;for(Qn+=this.r.v,this.v._length=0,Un=0;Un<J;Un+=1){var Yn=zn*Math.cos(Qn),Zn=zn*Math.sin(Qn),nr=Yn===0&&Zn===0?0:Zn/Math.sqrt(Yn*Yn+Zn*Zn),sr=Yn===0&&Zn===0?0:-Yn/Math.sqrt(Yn*Yn+Zn*Zn);Yn+=+this.p.v[0],Zn+=+this.p.v[1],this.v.setTripleAt(Yn,Zn,Yn-nr*Kn*Vn*Jn,Zn-sr*Kn*Vn*Jn,Yn+nr*Kn*Vn*Jn,Zn+sr*Kn*Vn*Jn,Un,!0),Qn+=gn*Jn}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],Bn),Bn}(),b=function(){function Bn(w,J){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=J.d,this.initDynamicPropertyContainer(w),this.p=PropertyFactory.getProp(w,J.p,1,0,this),this.s=PropertyFactory.getProp(w,J.s,1,0,this),this.r=PropertyFactory.getProp(w,J.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return Bn.prototype={convertRectToPath:function(){var J=this.p.v[0],gn=this.p.v[1],zn=this.s.v[0]/2,Vn=this.s.v[1]/2,Kn=bmMin(zn,Vn,this.r.v),Un=Kn*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(J+zn,gn-Vn+Kn,J+zn,gn-Vn+Kn,J+zn,gn-Vn+Un,0,!0),this.v.setTripleAt(J+zn,gn+Vn-Kn,J+zn,gn+Vn-Un,J+zn,gn+Vn-Kn,1,!0),Kn!==0?(this.v.setTripleAt(J+zn-Kn,gn+Vn,J+zn-Kn,gn+Vn,J+zn-Un,gn+Vn,2,!0),this.v.setTripleAt(J-zn+Kn,gn+Vn,J-zn+Un,gn+Vn,J-zn+Kn,gn+Vn,3,!0),this.v.setTripleAt(J-zn,gn+Vn-Kn,J-zn,gn+Vn-Kn,J-zn,gn+Vn-Un,4,!0),this.v.setTripleAt(J-zn,gn-Vn+Kn,J-zn,gn-Vn+Un,J-zn,gn-Vn+Kn,5,!0),this.v.setTripleAt(J-zn+Kn,gn-Vn,J-zn+Kn,gn-Vn,J-zn+Un,gn-Vn,6,!0),this.v.setTripleAt(J+zn-Kn,gn-Vn,J+zn-Un,gn-Vn,J+zn-Kn,gn-Vn,7,!0)):(this.v.setTripleAt(J-zn,gn+Vn,J-zn+Un,gn+Vn,J-zn,gn+Vn,2),this.v.setTripleAt(J-zn,gn-Vn,J-zn,gn-Vn+Un,J-zn,gn-Vn,3))):(this.v.setTripleAt(J+zn,gn-Vn+Kn,J+zn,gn-Vn+Un,J+zn,gn-Vn+Kn,0,!0),Kn!==0?(this.v.setTripleAt(J+zn-Kn,gn-Vn,J+zn-Kn,gn-Vn,J+zn-Un,gn-Vn,1,!0),this.v.setTripleAt(J-zn+Kn,gn-Vn,J-zn+Un,gn-Vn,J-zn+Kn,gn-Vn,2,!0),this.v.setTripleAt(J-zn,gn-Vn+Kn,J-zn,gn-Vn+Kn,J-zn,gn-Vn+Un,3,!0),this.v.setTripleAt(J-zn,gn+Vn-Kn,J-zn,gn+Vn-Un,J-zn,gn+Vn-Kn,4,!0),this.v.setTripleAt(J-zn+Kn,gn+Vn,J-zn+Kn,gn+Vn,J-zn+Un,gn+Vn,5,!0),this.v.setTripleAt(J+zn-Kn,gn+Vn,J+zn-Un,gn+Vn,J+zn-Kn,gn+Vn,6,!0),this.v.setTripleAt(J+zn,gn+Vn-Kn,J+zn,gn+Vn-Kn,J+zn,gn+Vn-Un,7,!0)):(this.v.setTripleAt(J-zn,gn-Vn,J-zn+Un,gn-Vn,J-zn,gn-Vn,1,!0),this.v.setTripleAt(J-zn,gn+Vn,J-zn,gn+Vn-Un,J-zn,gn+Vn,2,!0),this.v.setTripleAt(J+zn,gn+Vn,J+zn-Un,gn+Vn,J+zn,gn+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 j(Bn,w,J){var gn;if(J===3||J===4){var zn=J===3?w.pt:w.ks,Vn=zn.k;Vn.length?gn=new y(Bn,w,J):gn=new m(Bn,w,J)}else J===5?gn=new b(Bn,w):J===6?gn=new x(Bn,w):J===7&&(gn=new Pn(Bn,w));return gn.k&&Bn.addDynamicProperty(gn),gn}function re(){return m}function vn(){return y}var Fn={};return Fn.getShapeProp=j,Fn.getConstructorFunction=re,Fn.getKeyframedConstructorFunction=vn,Fn}();/*!
173
173
  Transformation Matrix v2.0
174
174
  (c) Epistemex 2014-2015
@@ -176,8 +176,8 @@ Please report this to https://github.com/markedjs/marked.`,u.silent)return"<p>An
176
176
  By Ken Fyrstenberg
177
177
  Contributions by leeoniya.
178
178
  License: MIT, header required.
179
- */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 p(Rn){if(Rn===0)return this;var qn=c(Rn),Xn=u(Rn);return this._t(qn,-Xn,0,0,Xn,qn,0,0,0,0,1,0,0,0,0,1)}function v(Rn){if(Rn===0)return this;var qn=c(Rn),Xn=u(Rn);return this._t(1,0,0,0,0,qn,-Xn,0,0,Xn,qn,0,0,0,0,1)}function m(Rn){if(Rn===0)return this;var qn=c(Rn),Xn=u(Rn);return this._t(qn,0,Xn,0,0,1,0,0,-Xn,0,qn,0,0,0,0,1)}function g(Rn){if(Rn===0)return this;var qn=c(Rn),Xn=u(Rn);return this._t(qn,-Xn,0,0,Xn,qn,0,0,0,0,1,0,0,0,0,1)}function y(Rn,qn){return this._t(1,qn,Rn,1,0,0)}function x(Rn,qn){return this.shear(f(Rn),f(qn))}function Pn(Rn,qn){var Xn=c(qn),Hn=u(qn);return this._t(Xn,Hn,0,0,-Hn,Xn,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,f(Rn),1,0,0,0,0,1,0,0,0,0,1)._t(Xn,-Hn,0,0,Hn,Xn,0,0,0,0,1,0,0,0,0,1)}function b(Rn,qn,Xn){return!Xn&&Xn!==0&&(Xn=1),Rn===1&&qn===1&&Xn===1?this:this._t(Rn,0,0,0,0,qn,0,0,0,0,Xn,0,0,0,0,1)}function j(Rn,qn,Xn,Hn,tr,cr,ir,er,pr,lr,or,ar,vr,fr,mr,dr){return this.props[0]=Rn,this.props[1]=qn,this.props[2]=Xn,this.props[3]=Hn,this.props[4]=tr,this.props[5]=cr,this.props[6]=ir,this.props[7]=er,this.props[8]=pr,this.props[9]=lr,this.props[10]=or,this.props[11]=ar,this.props[12]=vr,this.props[13]=fr,this.props[14]=mr,this.props[15]=dr,this}function re(Rn,qn,Xn){return Xn=Xn||0,Rn!==0||qn!==0||Xn!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,Rn,qn,Xn,1):this}function vn(Rn,qn,Xn,Hn,tr,cr,ir,er,pr,lr,or,ar,vr,fr,mr,dr){var hr=this.props;if(Rn===1&&qn===0&&Xn===0&&Hn===0&&tr===0&&cr===1&&ir===0&&er===0&&pr===0&&lr===0&&or===1&&ar===0)return hr[12]=hr[12]*Rn+hr[15]*vr,hr[13]=hr[13]*cr+hr[15]*fr,hr[14]=hr[14]*or+hr[15]*mr,hr[15]*=dr,this._identityCalculated=!1,this;var yr=hr[0],_r=hr[1],gr=hr[2],br=hr[3],Er=hr[4],Mr=hr[5],Ir=hr[6],Fr=hr[7],Or=hr[8],Nr=hr[9],zr=hr[10],Rr=hr[11],Vr=hr[12],Hr=hr[13],Gr=hr[14],Ur=hr[15];return hr[0]=yr*Rn+_r*tr+gr*pr+br*vr,hr[1]=yr*qn+_r*cr+gr*lr+br*fr,hr[2]=yr*Xn+_r*ir+gr*or+br*mr,hr[3]=yr*Hn+_r*er+gr*ar+br*dr,hr[4]=Er*Rn+Mr*tr+Ir*pr+Fr*vr,hr[5]=Er*qn+Mr*cr+Ir*lr+Fr*fr,hr[6]=Er*Xn+Mr*ir+Ir*or+Fr*mr,hr[7]=Er*Hn+Mr*er+Ir*ar+Fr*dr,hr[8]=Or*Rn+Nr*tr+zr*pr+Rr*vr,hr[9]=Or*qn+Nr*cr+zr*lr+Rr*fr,hr[10]=Or*Xn+Nr*ir+zr*or+Rr*mr,hr[11]=Or*Hn+Nr*er+zr*ar+Rr*dr,hr[12]=Vr*Rn+Hr*tr+Gr*pr+Ur*vr,hr[13]=Vr*qn+Hr*cr+Gr*lr+Ur*fr,hr[14]=Vr*Xn+Hr*ir+Gr*or+Ur*mr,hr[15]=Vr*Hn+Hr*er+Gr*ar+Ur*dr,this._identityCalculated=!1,this}function Fn(Rn){var qn=Rn.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(Rn){for(var qn=0;qn<16;){if(Rn.props[qn]!==this.props[qn])return!1;qn+=1}return!0}function J(Rn){var qn;for(qn=0;qn<16;qn+=1)Rn.props[qn]=this.props[qn];return Rn}function gn(Rn){var qn;for(qn=0;qn<16;qn+=1)this.props[qn]=Rn[qn]}function zn(Rn,qn,Xn){return{x:Rn*this.props[0]+qn*this.props[4]+Xn*this.props[8]+this.props[12],y:Rn*this.props[1]+qn*this.props[5]+Xn*this.props[9]+this.props[13],z:Rn*this.props[2]+qn*this.props[6]+Xn*this.props[10]+this.props[14]}}function Vn(Rn,qn,Xn){return Rn*this.props[0]+qn*this.props[4]+Xn*this.props[8]+this.props[12]}function Kn(Rn,qn,Xn){return Rn*this.props[1]+qn*this.props[5]+Xn*this.props[9]+this.props[13]}function Un(Rn,qn,Xn){return Rn*this.props[2]+qn*this.props[6]+Xn*this.props[10]+this.props[14]}function Qn(){var Rn=this.props[0]*this.props[5]-this.props[1]*this.props[4],qn=this.props[5]/Rn,Xn=-this.props[1]/Rn,Hn=-this.props[4]/Rn,tr=this.props[0]/Rn,cr=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/Rn,ir=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/Rn,er=new Matrix;return er.props[0]=qn,er.props[1]=Xn,er.props[4]=Hn,er.props[5]=tr,er.props[12]=cr,er.props[13]=ir,er}function Jn(Rn){var qn=this.getInverseMatrix();return qn.applyToPointArray(Rn[0],Rn[1],Rn[2]||0)}function Yn(Rn){var qn,Xn=Rn.length,Hn=[];for(qn=0;qn<Xn;qn+=1)Hn[qn]=Jn(Rn[qn]);return Hn}function Zn(Rn,qn,Xn){var Hn=createTypedArray("float32",6);if(this.isIdentity())Hn[0]=Rn[0],Hn[1]=Rn[1],Hn[2]=qn[0],Hn[3]=qn[1],Hn[4]=Xn[0],Hn[5]=Xn[1];else{var tr=this.props[0],cr=this.props[1],ir=this.props[4],er=this.props[5],pr=this.props[12],lr=this.props[13];Hn[0]=Rn[0]*tr+Rn[1]*ir+pr,Hn[1]=Rn[0]*cr+Rn[1]*er+lr,Hn[2]=qn[0]*tr+qn[1]*ir+pr,Hn[3]=qn[0]*cr+qn[1]*er+lr,Hn[4]=Xn[0]*tr+Xn[1]*ir+pr,Hn[5]=Xn[0]*cr+Xn[1]*er+lr}return Hn}function nr(Rn,qn,Xn){var Hn;return this.isIdentity()?Hn=[Rn,qn,Xn]:Hn=[Rn*this.props[0]+qn*this.props[4]+Xn*this.props[8]+this.props[12],Rn*this.props[1]+qn*this.props[5]+Xn*this.props[9]+this.props[13],Rn*this.props[2]+qn*this.props[6]+Xn*this.props[10]+this.props[14]],Hn}function sr(Rn,qn){if(this.isIdentity())return Rn+","+qn;var Xn=this.props;return Math.round((Rn*Xn[0]+qn*Xn[4]+Xn[12])*100)/100+","+Math.round((Rn*Xn[1]+qn*Xn[5]+Xn[13])*100)/100}function ur(){for(var Rn=0,qn=this.props,Xn="matrix3d(",Hn=1e4;Rn<16;)Xn+=d(qn[Rn]*Hn)/Hn,Xn+=Rn===15?")":",",Rn+=1;return Xn}function Gn(Rn){var qn=1e4;return Rn<1e-6&&Rn>0||Rn>-1e-6&&Rn<0?d(Rn*qn)/qn:Rn}function Wn(){var Rn=this.props,qn=Gn(Rn[0]),Xn=Gn(Rn[1]),Hn=Gn(Rn[4]),tr=Gn(Rn[5]),cr=Gn(Rn[12]),ir=Gn(Rn[13]);return"matrix("+qn+","+Xn+","+Hn+","+tr+","+cr+","+ir+")"}return function(){this.reset=h,this.rotate=p,this.rotateX=v,this.rotateY=m,this.rotateZ=g,this.skew=x,this.skewFromAxis=Pn,this.shear=y,this.scale=b,this.setTransform=j,this.translate=re,this.transform=vn,this.multiply=Fn,this.applyToPoint=zn,this.applyToX=Vn,this.applyToY=Kn,this.applyToZ=Un,this.applyToPointArray=nr,this.applyToTriplePoints=Zn,this.applyToPointStringified=sr,this.toCSS=ur,this.to2dCSS=Wn,this.clone=J,this.cloneFromProps=gn,this.equals=w,this.inversePoints=Yn,this.inversePoint=Jn,this.getInverseMatrix=Qn,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,p){u[h]||(u[h]=p)}function d(h,p,v){return new u[h](p,v)}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 p=[];u<=1?p.push({s:c,e:u}):c>=1?p.push({s:c-1,e:u-1}):(p.push({s:c,e:1}),p.push({s:0,e:u-1}));var v=[],m,g=p.length,y;for(m=0;m<g;m+=1)if(y=p[m],!(y.e*h<d||y.s*h>d+f)){var x,Pn;y.s*h<=d?x=0:x=(y.s*h-d)/f,y.e*h>=d+f?Pn=1:Pn=(y.e*h-d)/f,v.push([x,Pn])}return v.length||v.push([0,0]),v},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 p,v,m=this.shapes.length,g,y,x,Pn,b,j=0;if(f===u)for(v=0;v<m;v+=1)this.shapes[v].localShapeCollection.releaseShapes(),this.shapes[v].shape._mdf=!0,this.shapes[v].shape.paths=this.shapes[v].localShapeCollection,this._mdf&&(this.shapes[v].pathsData.length=0);else if(f===1&&u===0||f===0&&u===1){if(this._mdf)for(v=0;v<m;v+=1)this.shapes[v].pathsData.length=0,this.shapes[v].shape._mdf=!0}else{var re=[],vn,Fn;for(v=0;v<m;v+=1)if(vn=this.shapes[v],!vn.shape._mdf&&!this._mdf&&!c&&this.m!==2)vn.shape.paths=vn.localShapeCollection;else{if(p=vn.shape.paths,y=p._length,b=0,!vn.shape._mdf&&vn.pathsData.length)b=vn.totalShapeLength;else{for(x=this.releasePathsData(vn.pathsData),g=0;g<y;g+=1)Pn=bez.getSegmentsLength(p.shapes[g]),x.push(Pn),b+=Pn.totalLength;vn.totalShapeLength=b,vn.pathsData=x}j+=b,vn.shape._mdf=!0}var Bn=u,w=f,J=0,gn;for(v=m-1;v>=0;v-=1)if(vn=this.shapes[v],vn.shape._mdf){for(Fn=vn.localShapeCollection,Fn.releaseShapes(),this.m===2&&m>1?(gn=this.calculateShapeEdges(u,f,vn.totalShapeLength,J,j),J+=vn.totalShapeLength):gn=[[Bn,w]],y=gn.length,g=0;g<y;g+=1){Bn=gn[g][0],w=gn[g][1],re.length=0,w<=1?re.push({s:vn.totalShapeLength*Bn,e:vn.totalShapeLength*w}):Bn>=1?re.push({s:vn.totalShapeLength*(Bn-1),e:vn.totalShapeLength*(w-1)}):(re.push({s:vn.totalShapeLength*Bn,e:vn.totalShapeLength}),re.push({s:0,e:vn.totalShapeLength*(w-1)}));var zn=this.addShapes(vn,re[0]);if(re[0].s!==re[0].e){if(re.length>1){var Vn=vn.shape.paths.shapes[vn.shape.paths._length-1];if(Vn.c){var Kn=zn.pop();this.addPaths(zn,Fn),zn=this.addShapes(vn,re[1],Kn)}else this.addPaths(zn,Fn),zn=this.addShapes(vn,re[1])}this.addPaths(zn,Fn)}}vn.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,p,v){h.setXYAt(u[0],u[1],"o",p),h.setXYAt(f[0],f[1],"i",p+1),v&&h.setXYAt(c[0],c[1],"v",p),h.setXYAt(d[0],d[1],"v",p+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,p,v=c.shape.paths._length,m,g,y=0,x,Pn,b,j,re=[],vn,Fn=!0;for(f?(Pn=f._length,vn=f._length):(f=shapePool.newElement(),Pn=0,vn=0),re.push(f),p=0;p<v;p+=1){for(b=d[p].lengths,f.c=h[p].c,g=h[p].c?b.length:b.length+1,m=1;m<g;m+=1)if(x=b[m-1],y+x.addedLength<u.s)y+=x.addedLength,f.c=!1;else if(y>u.e){f.c=!1;break}else u.s<=y&&u.e>=y+x.addedLength?(this.addSegment(h[p].v[m-1],h[p].o[m-1],h[p].i[m],h[p].v[m],f,Pn,Fn),Fn=!1):(j=bez.getNewSegment(h[p].v[m-1],h[p].v[m],h[p].o[m-1],h[p].i[m],(u.s-y)/x.addedLength,(u.e-y)/x.addedLength,b[m-1]),this.addSegmentFromArray(j,f,Pn,Fn),Fn=!1,f.c=!1),y+=x.addedLength,Pn+=1;if(h[p].c&&b.length){if(x=b[m-1],y<=u.e){var Bn=b[m-1].addedLength;u.s<=y&&u.e>=y+Bn?(this.addSegment(h[p].v[m-1],h[p].o[m-1],h[p].i[0],h[p].v[0],f,Pn,Fn),Fn=!1):(j=bez.getNewSegment(h[p].v[m-1],h[p].v[0],h[p].o[m-1],h[p].i[0],(u.s-y)/Bn,(u.e-y)/Bn,b[m-1]),this.addSegmentFromArray(j,f,Pn,Fn),Fn=!1,f.c=!1)}else f.c=!1;y+=x.addedLength,Pn+=1}if(f._length&&(f.setXYAt(f.v[vn][0],f.v[vn][1],"i",vn),f.setXYAt(f.v[f._length-1][0],f.v[f._length-1][1],"o",f._length-1)),y>u.e)break;p<v-1&&(f=shapePool.newElement(),Fn=!0,re.push(f),Pn=0)}return re};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,p=0;for(p=0;p<h;p+=1)d[0]+=c.v[p][0],d[1]+=c.v[p][1];d[0]/=h,d[1]/=h;var v=shapePool.newElement();v.c=c.c;var m,g,y,x,Pn,b;for(p=0;p<h;p+=1)m=c.v[p][0]+(d[0]-c.v[p][0])*f,g=c.v[p][1]+(d[1]-c.v[p][1])*f,y=c.o[p][0]+(d[0]-c.o[p][0])*-f,x=c.o[p][1]+(d[1]-c.o[p][1])*-f,Pn=c.i[p][0]+(d[0]-c.i[p][0])*-f,b=c.i[p][1]+(d[1]-c.i[p][1])*-f,v.setTripleAt(m,g,y,x,Pn,b,p);return v},PuckerAndBloatModifier.prototype.processShapes=function(c){var u,f,d=this.shapes.length,h,p,v=this.amount.v;if(v!==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,p=m.shape.paths._length,h=0;h<p;h+=1)g.addShape(this.processPath(u[h],v));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 x,Pn;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?(x=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/y,0),Pn=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?(x=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/y,0),Pn=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/y,0)):(x=this.p.pv,Pn=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){x=[],Pn=[];var b=this.px,j=this.py;b._caching.lastFrame+b.offsetTime<=b.keyframes[0].t?(x[0]=b.getValueAtTime((b.keyframes[0].t+.01)/y,0),x[1]=j.getValueAtTime((j.keyframes[0].t+.01)/y,0),Pn[0]=b.getValueAtTime(b.keyframes[0].t/y,0),Pn[1]=j.getValueAtTime(j.keyframes[0].t/y,0)):b._caching.lastFrame+b.offsetTime>=b.keyframes[b.keyframes.length-1].t?(x[0]=b.getValueAtTime(b.keyframes[b.keyframes.length-1].t/y,0),x[1]=j.getValueAtTime(j.keyframes[j.keyframes.length-1].t/y,0),Pn[0]=b.getValueAtTime((b.keyframes[b.keyframes.length-1].t-.01)/y,0),Pn[1]=j.getValueAtTime((j.keyframes[j.keyframes.length-1].t-.01)/y,0)):(x=[b.pv,j.pv],Pn[0]=b.getValueAtTime((b._caching.lastFrame+b.offsetTime-.01)/y,b.offsetTime),Pn[1]=j.getValueAtTime((j._caching.lastFrame+j.offsetTime-.01)/y,j.offsetTime))}else Pn=c,x=Pn;this.v.rotate(-Math.atan2(x[1]-Pn[1],x[0]-Pn[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 p(g){this._addDynamicProperty(g),this.elem.addDynamicProperty(g),this._isDirty=!0}function v(g,y,x){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(x||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 Pn,b=y.or.k.length;for(Pn=0;Pn<b;Pn+=1)y.or.k[Pn].to=null,y.or.k[Pn].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)}v.prototype={applyToMatrix:u,getValue:f,precalculateMatrix:d,autoOrient:h},extendPrototype([DynamicPropertyContainer],v),v.prototype.addDynamicProperty=p,v.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function m(g,y,x){return new v(g,y,x)}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,p){var v=p?-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]*v*h,d.p.v[1]*v*h,d.p.v[2]),u.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),u.rotate(-d.r.v*v*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(p?1/m:m,p?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,p,v=!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(),v=!0}p=0;var y;for(d=0;d<=this._groups.length-1;d+=1){if(y=p<m,this._groups[d]._render=y,this.changeGroupRender(this._groups[d].it,y),!y){var x=this.elemsData[d].it,Pn=x[x.length-1];Pn.transform.op.v!==0?(Pn.transform.op._mdf=!0,Pn.transform.op.v=0):Pn.transform.op._mdf=!1}p+=1}this._currentCopies=m;var b=this.o.v,j=b%1,re=b>0?Math.floor(b):Math.ceil(b),vn=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(b>0){for(;w<re;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),w+=1;j&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,j,!1),w+=j)}else if(b<0){for(;w>re;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),w-=1;j&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-j,!0),w-=j)}d=this.data.m===1?0:this._currentCopies-1,h=this.data.m===1?1:-1,p=this._currentCopies;for(var J,gn;p;){if(u=this.elemsData[d].it,f=u[u.length-1].transform.mProps.v.props,gn=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(vn[0],vn[1],vn[2],vn[3],vn[4],vn[5],vn[6],vn[7],vn[8],vn[9],vn[10],vn[11],vn[12],vn[13],vn[14],vn[15]),J=0;J<gn;J+=1)f[J]=this.matrix.props[J];this.matrix.reset()}else for(this.matrix.reset(),J=0;J<gn;J+=1)f[J]=this.matrix.props[J];w+=1,p-=1,d+=h}}else for(p=this._currentCopies,d=0,h=1;p;)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,p-=1,d+=h;return v},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,p,v,m,g,y,x,Pn=0,b,j,re,vn,Fn,Bn;for(d=0;d<h;d+=1)p=c.v[d],m=c.o[d],v=c.i[d],p[0]===m[0]&&p[1]===m[1]&&p[0]===v[0]&&p[1]===v[1]?(d===0||d===h-1)&&!c.c?(f.setTripleAt(p[0],p[1],m[0],m[1],v[0],v[1],Pn),Pn+=1):(d===0?g=c.v[h-1]:g=c.v[d-1],y=Math.sqrt(Math.pow(p[0]-g[0],2)+Math.pow(p[1]-g[1],2)),x=y?Math.min(y/2,u)/y:0,Fn=p[0]+(g[0]-p[0])*x,b=Fn,Bn=p[1]-(p[1]-g[1])*x,j=Bn,re=b-(b-p[0])*roundCorner,vn=j-(j-p[1])*roundCorner,f.setTripleAt(b,j,re,vn,Fn,Bn,Pn),Pn+=1,d===h-1?g=c.v[0]:g=c.v[d+1],y=Math.sqrt(Math.pow(p[0]-g[0],2)+Math.pow(p[1]-g[1],2)),x=y?Math.min(y/2,u)/y:0,re=p[0]+(g[0]-p[0])*x,b=re,vn=p[1]+(g[1]-p[1])*x,j=vn,Fn=b-(b-p[0])*roundCorner,Bn=j-(j-p[1])*roundCorner,f.setTripleAt(b,j,re,vn,Fn,Bn,Pn),Pn+=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],Pn),Pn+=1);return f},RoundCornersModifier.prototype.processShapes=function(c){var u,f,d=this.shapes.length,h,p,v=this.rd.v;if(v!==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,p=m.shape.paths._length,h=0;h<p;h+=1)g.addShape(this.processPath(u[h],v));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 p=Math.sqrt(d)/(2*c);return[h-p,h+p]}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 p=polynomialCoefficients(c[0],u[0],f[0],d[0]),v=polynomialCoefficients(c[1],u[1],f[1],d[1]);this.a=[p[0],v[0]],this.b=[p[1],v[1]],this.c=[p[2],v[2]],this.d=[p[3],v[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),p=lerpPoint(f,d,c),v=lerpPoint(h,p,c);return[new PolynomialBezier(this.points[0],u,h,v,!0),new PolynomialBezier(v,p,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 p=quadRoots(3*c.a[u],2*c.b[u],c.c[u]),v=0;v<p.length;v+=1)if(p[v]>0&&p[v]<1){var m=c.point(p[v])[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,p){if(boxIntersect(c,u)){if(f>=p||c.width<=d&&c.height<=d&&u.width<=d&&u.height<=d){h.push([c.t,u.t]);return}var v=splitData(c),m=splitData(u);intersectsImpl(v[0],m[0],f+1,d,h,p),intersectsImpl(v[0],m[1],f+1,d,h,p),intersectsImpl(v[1],m[0],f+1,d,h,p),intersectsImpl(v[1],m[1],f+1,d,h,p)}}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],p=[u[0],u[1],1],v=[f[0],f[1],1],m=[d[0],d[1],1],g=crossProduct(crossProduct(h,p),crossProduct(v,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,p,v){var m=f-Math.PI/2,g=f+Math.PI/2,y=u[0]+Math.cos(f)*d*h,x=u[1]-Math.sin(f)*d*h;c.setTripleAt(y,x,y+Math.cos(m)*p,x-Math.sin(m)*p,y+Math.cos(g)*v,x-Math.sin(g)*v,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],p=c.v[d],v=getPerpendicularVector(h,p);return Math.atan2(0,1)-Math.atan2(v[1],v[0])}function zigZagCorner(c,u,f,d,h,p,v){var m=getProjectingAngle(u,f),g=u.v[f%u._length],y=u.v[f===0?u._length-1:f-1],x=u.v[(f+1)%u._length],Pn=p===2?Math.sqrt(Math.pow(g[0]-y[0],2)+Math.pow(g[1]-y[1],2)):0,b=p===2?Math.sqrt(Math.pow(g[0]-x[0],2)+Math.pow(g[1]-x[1],2)):0;setPoint(c,u.v[f%u._length],m,v,d,b/((h+1)*2),Pn/((h+1)*2))}function zigZagSegment(c,u,f,d,h,p){for(var v=0;v<d;v+=1){var m=(v+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),x=u.point(m);setPoint(c,x,y,p,f,g/((d+1)*2),g/((d+1)*2)),p=-p}return p}ZigZagModifier.prototype.processPath=function(c,u,f,d){var h=c._length,p=shapePool.newElement();if(p.c=c.c,c.c||(h-=1),h===0)return p;var v=-1,m=PolynomialBezier.shapeSegment(c,0);zigZagCorner(p,c,0,u,f,d,v);for(var g=0;g<h;g+=1)v=zigZagSegment(p,m,u,f,d,-v),g===h-1&&!c.c?m=null:m=PolynomialBezier.shapeSegment(c,(g+1)%h),zigZagCorner(p,c,g+1,u,f,d,v);return p},ZigZagModifier.prototype.processShapes=function(c){var u,f,d=this.shapes.length,h,p,v=this.amplitude.v,m=Math.max(0,Math.round(this.frequency.v)),g=this.pointsType.v;if(v!==0){var y,x;for(f=0;f<d;f+=1){if(y=this.shapes[f],x=y.localShapeCollection,!(!y.shape._mdf&&!this._mdf&&!c))for(x.releaseShapes(),y.shape._mdf=!0,u=y.shape.paths.shapes,p=y.shape.paths._length,h=0;h<p;h+=1)x.addShape(this.processPath(u[h],v,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,p,v,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],p=g[1],g=linearOffset(c.points[2],c.points[3],u),v=g[0],m=g[1];var y=lineIntersection(f,d,h,p);y===null&&(y=d);var x=lineIntersection(v,m,h,p);return x===null&&(x=v),new PolynomialBezier(f,y,x,m)}function joinLines(c,u,f,d,h){var p=u.points[3],v=f.points[0];if(d===3||pointEqual(p,v))return p;if(d===2){var m=-u.tangentAngle(1),g=-f.tangentAngle(0)+Math.PI,y=lineIntersection(p,polarOffset(p,m+Math.PI/2,100),v,polarOffset(v,m+Math.PI/2,100)),x=y?pointDistance(y,p):pointDistance(p,v)/2,Pn=polarOffset(p,m,2*x*roundCorner);return c.setXYAt(Pn[0],Pn[1],"o",c.length()-1),Pn=polarOffset(v,g,2*x*roundCorner),c.setTripleAt(v[0],v[1],v[0],v[1],Pn[0],Pn[1],c.length()),v}var b=pointEqual(p,u.points[2])?u.points[0]:u.points[2],j=pointEqual(v,f.points[1])?f.points[3]:f.points[1],re=lineIntersection(b,p,v,j);return re&&pointDistance(re,p)<h?(c.setTripleAt(re[0],re[1],re[0],re[1],re[0],re[1],c.length()),re):p}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,p,v;if(f.length===0)return[offsetSegment(c,u)];if(f.length===1||floatEqual(f[1],1))return p=c.split(f[0]),d=p[0],h=p[1],[offsetSegment(d,u),offsetSegment(h,u)];p=c.split(f[0]),d=p[0];var m=(f[1]-f[0])/(1-f[0]);return p=p[1].split(m),v=p[0],h=p[1],[offsetSegment(d,u),offsetSegment(v,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 p=c.length();c.c||(p-=1);var v,m,g,y=[];for(v=0;v<p;v+=1)g=PolynomialBezier.shapeSegment(c,v),y.push(offsetSegmentSplit(g,u));if(!c.c)for(v=p-1;v>=0;v-=1)g=PolynomialBezier.shapeSegmentInverted(c,v),y.push(offsetSegmentSplit(g,u));y=pruneIntersections(y);var x=null,Pn=null;for(v=0;v<y.length;v+=1){var b=y[v];for(Pn&&(x=joinLines(h,Pn,b[0],f,d)),Pn=b[b.length-1],m=0;m<b.length;m+=1)g=b[m],x&&pointEqual(g.points[0],x)?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()),x=g.points[3]}return y.length&&joinLines(h,Pn,y[0][0],f,d),h},OffsetPathModifier.prototype.processShapes=function(c){var u,f,d=this.shapes.length,h,p,v=this.amount.v,m=this.miterLimit.v,g=this.lineJoin;if(v!==0){var y,x;for(f=0;f<d;f+=1){if(y=this.shapes[f],x=y.localShapeCollection,!(!y.shape._mdf&&!this._mdf&&!c))for(x.releaseShapes(),y.shape._mdf=!0,u=y.shape.paths.shapes,p=y.shape.paths._length,h=0;h<p;h+=1)x.addShape(this.processPath(u[h],v,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,p,v=0;v<h;v+=1)switch(p=u[v].toLowerCase(),p){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,p=917601,v=917626,m=65039,g=8205,y=127462,x=127487,Pn=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function b(Gn){var Wn=Gn.split(","),Rn,qn=Wn.length,Xn=[];for(Rn=0;Rn<qn;Rn+=1)Wn[Rn]!=="sans-serif"&&Wn[Rn]!=="monospace"&&Xn.push(Wn[Rn]);return Xn.join(",")}function j(Gn,Wn){var Rn=createTag("span");Rn.setAttribute("aria-hidden",!0),Rn.style.fontFamily=Wn;var qn=createTag("span");qn.innerText="giItT1WQy@!-/#",Rn.style.position="absolute",Rn.style.left="-10000px",Rn.style.top="-10000px",Rn.style.fontSize="300px",Rn.style.fontVariant="normal",Rn.style.fontStyle="normal",Rn.style.fontWeight="normal",Rn.style.letterSpacing="0",Rn.appendChild(qn),document.body.appendChild(Rn);var Xn=qn.offsetWidth;return qn.style.fontFamily=b(Gn)+", "+Wn,{node:qn,w:Xn,parent:Rn}}function re(){var Gn,Wn=this.fonts.length,Rn,qn,Xn=Wn;for(Gn=0;Gn<Wn;Gn+=1)this.fonts[Gn].loaded?Xn-=1:this.fonts[Gn].fOrigin==="n"||this.fonts[Gn].origin===0?this.fonts[Gn].loaded=!0:(Rn=this.fonts[Gn].monoCase.node,qn=this.fonts[Gn].monoCase.w,Rn.offsetWidth!==qn?(Xn-=1,this.fonts[Gn].loaded=!0):(Rn=this.fonts[Gn].sansCase.node,qn=this.fonts[Gn].sansCase.w,Rn.offsetWidth!==qn&&(Xn-=1,this.fonts[Gn].loaded=!0)),this.fonts[Gn].loaded&&(this.fonts[Gn].sansCase.parent.parentNode.removeChild(this.fonts[Gn].sansCase.parent),this.fonts[Gn].monoCase.parent.parentNode.removeChild(this.fonts[Gn].monoCase.parent)));Xn!==0&&Date.now()-this.initTime<c?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function vn(Gn,Wn){var Rn=document.body&&Wn?"svg":"canvas",qn,Xn=getFontProperties(Gn);if(Rn==="svg"){var Hn=createNS("text");Hn.style.fontSize="100px",Hn.setAttribute("font-family",Gn.fFamily),Hn.setAttribute("font-style",Xn.style),Hn.setAttribute("font-weight",Xn.weight),Hn.textContent="1",Gn.fClass?(Hn.style.fontFamily="inherit",Hn.setAttribute("class",Gn.fClass)):Hn.style.fontFamily=Gn.fFamily,Wn.appendChild(Hn),qn=Hn}else{var tr=new OffscreenCanvas(500,500).getContext("2d");tr.font=Xn.style+" "+Xn.weight+" 100px "+Gn.fFamily,qn=tr}function cr(ir){return Rn==="svg"?(qn.textContent=ir,qn.getComputedTextLength()):qn.measureText(ir).width}return{measureText:cr}}function Fn(Gn,Wn){if(!Gn){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=Gn.list;return}if(!document.body){this.isLoaded=!0,Gn.list.forEach(function(or){or.helper=vn(or),or.cache={}}),this.fonts=Gn.list;return}var Rn=Gn.list,qn,Xn=Rn.length,Hn=Xn;for(qn=0;qn<Xn;qn+=1){var tr=!0,cr,ir;if(Rn[qn].loaded=!1,Rn[qn].monoCase=j(Rn[qn].fFamily,"monospace"),Rn[qn].sansCase=j(Rn[qn].fFamily,"sans-serif"),!Rn[qn].fPath)Rn[qn].loaded=!0,Hn-=1;else if(Rn[qn].fOrigin==="p"||Rn[qn].origin===3){if(cr=document.querySelectorAll('style[f-forigin="p"][f-family="'+Rn[qn].fFamily+'"], style[f-origin="3"][f-family="'+Rn[qn].fFamily+'"]'),cr.length>0&&(tr=!1),tr){var er=createTag("style");er.setAttribute("f-forigin",Rn[qn].fOrigin),er.setAttribute("f-origin",Rn[qn].origin),er.setAttribute("f-family",Rn[qn].fFamily),er.type="text/css",er.innerText="@font-face {font-family: "+Rn[qn].fFamily+"; font-style: normal; src: url('"+Rn[qn].fPath+"');}",Wn.appendChild(er)}}else if(Rn[qn].fOrigin==="g"||Rn[qn].origin===1){for(cr=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),ir=0;ir<cr.length;ir+=1)cr[ir].href.indexOf(Rn[qn].fPath)!==-1&&(tr=!1);if(tr){var pr=createTag("link");pr.setAttribute("f-forigin",Rn[qn].fOrigin),pr.setAttribute("f-origin",Rn[qn].origin),pr.type="text/css",pr.rel="stylesheet",pr.href=Rn[qn].fPath,document.body.appendChild(pr)}}else if(Rn[qn].fOrigin==="t"||Rn[qn].origin===2){for(cr=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),ir=0;ir<cr.length;ir+=1)Rn[qn].fPath===cr[ir].src&&(tr=!1);if(tr){var lr=createTag("link");lr.setAttribute("f-forigin",Rn[qn].fOrigin),lr.setAttribute("f-origin",Rn[qn].origin),lr.setAttribute("rel","stylesheet"),lr.setAttribute("href",Rn[qn].fPath),Wn.appendChild(lr)}}Rn[qn].helper=vn(Rn[qn],Wn),Rn[qn].cache={},this.fonts.push(Rn[qn])}Hn===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function Bn(Gn){if(Gn){this.chars||(this.chars=[]);var Wn,Rn=Gn.length,qn,Xn=this.chars.length,Hn;for(Wn=0;Wn<Rn;Wn+=1){for(qn=0,Hn=!1;qn<Xn;)this.chars[qn].style===Gn[Wn].style&&this.chars[qn].fFamily===Gn[Wn].fFamily&&this.chars[qn].ch===Gn[Wn].ch&&(Hn=!0),qn+=1;Hn||(this.chars.push(Gn[Wn]),Xn+=1)}}}function w(Gn,Wn,Rn){for(var qn=0,Xn=this.chars.length;qn<Xn;){if(this.chars[qn].ch===Gn&&this.chars[qn].style===Wn&&this.chars[qn].fFamily===Rn)return this.chars[qn];qn+=1}return(typeof Gn=="string"&&Gn.charCodeAt(0)!==13||!Gn)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",Gn,Wn,Rn)),u}function J(Gn,Wn,Rn){var qn=this.getFontByName(Wn),Xn=Gn;if(!qn.cache[Xn]){var Hn=qn.helper;if(Gn===" "){var tr=Hn.measureText("|"+Gn+"|"),cr=Hn.measureText("||");qn.cache[Xn]=(tr-cr)/100}else qn.cache[Xn]=Hn.measureText(Gn)/100}return qn.cache[Xn]*Rn}function gn(Gn){for(var Wn=0,Rn=this.fonts.length;Wn<Rn;){if(this.fonts[Wn].fName===Gn)return this.fonts[Wn];Wn+=1}return this.fonts[0]}function zn(Gn){var Wn=0,Rn=Gn.charCodeAt(0);if(Rn>=55296&&Rn<=56319){var qn=Gn.charCodeAt(1);qn>=56320&&qn<=57343&&(Wn=(Rn-55296)*1024+qn-56320+65536)}return Wn}function Vn(Gn,Wn){var Rn=Gn.toString(16)+Wn.toString(16);return Pn.indexOf(Rn)!==-1}function Kn(Gn){return Gn===g}function Un(Gn){return Gn===m}function Qn(Gn){var Wn=zn(Gn);return Wn>=y&&Wn<=x}function Jn(Gn){return Qn(Gn.substr(0,2))&&Qn(Gn.substr(2,2))}function Yn(Gn){return f.indexOf(Gn)!==-1}function Zn(Gn,Wn){var Rn=zn(Gn.substr(Wn,2));if(Rn!==d)return!1;var qn=0;for(Wn+=2;qn<5;){if(Rn=zn(Gn.substr(Wn,2)),Rn<p||Rn>v)return!1;qn+=1,Wn+=2}return zn(Gn.substr(Wn,2))===h}function nr(){this.isLoaded=!0}var sr=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)};sr.isModifier=Vn,sr.isZeroWidthJoiner=Kn,sr.isFlagEmoji=Jn,sr.isRegionalCode=Qn,sr.isCombinedCharacter=Yn,sr.isRegionalFlag=Zn,sr.isVariationSelector=Un,sr.BLACK_FLAG_CODE_POINT=d;var ur={addChars:Bn,addFonts:Fn,getCharData:w,getFontByName:gn,measureText:J,checkLoadedFonts:re,setIsLoaded:nr};return sr.prototype=ur,sr}();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,p;for(d=0;d<h;d+=1)p=new GroupEffect(f[d],u),this.effectElements.push(p)}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,p=this.data.ef;for(f=0;f<d;f+=1){switch(h=null,p[f].ty){case 0:h=new SliderEffect(p[f],u,this);break;case 1:h=new AngleEffect(p[f],u,this);break;case 2:h=new ColorEffect(p[f],u,this);break;case 3:h=new PointEffect(p[f],u,this);break;case 4:case 7:h=new CheckboxEffect(p[f],u,this);break;case 10:h=new LayerIndexEffect(p[f],u,this);break;case 11:h=new MaskIndexEffect(p[f],u,this);break;case 5:h=new EffectsManager(p[f],u);break;default:h=new NoValueEffect(p[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"),p=u("text"),v=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=v(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=p(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,p=0,v=h.length;p<v;)h[p].ind==u&&(!d[p]||d[p]===!0?(this.buildItem(p),this.addPendingElement(c)):(f.push(d[p]),d[p].setAsParent(),h[p].parent!==void 0?this.buildElementParenting(c,h[p].parent,f):c.setHierarchy(f))),p+=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 p=this.finalTransform.localOpacity;for(u=0;u<f;u+=1)p*=this.localTransforms[u].opacity*.01;this.finalTransform.localOpacity=p}}},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 p,v=f.length,m;for(p=0;p<v;p+=1)m=f[p].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,p=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(p),this.solidPath="";var v,m=this.masksProperties,g=0,y=[],x,Pn,b=createElementID(),j,re,vn,Fn,Bn="clipPath",w="clip-path";for(h=0;h<p;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?(j=createNS("rect"),j.setAttribute("fill","#ffffff"),j.setAttribute("width",this.element.comp.data.w||0),j.setAttribute("height",this.element.comp.data.h||0),y.push(j)):j=null,v=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:v,lastPath:""},d.appendChild(v);else{g+=1,v.setAttribute("fill",m[h].mode==="s"?"#000000":"#ffffff"),v.setAttribute("clip-rule","nonzero");var J;if(m[h].x.k!==0?(Bn="mask",w="mask",Fn=PropertyFactory.getProp(this.element,m[h].x,0,null,this.element),J=createElementID(),re=createNS("filter"),re.setAttribute("id",J),vn=createNS("feMorphology"),vn.setAttribute("operator","erode"),vn.setAttribute("in","SourceGraphic"),vn.setAttribute("radius","0"),re.appendChild(vn),d.appendChild(re),v.setAttribute("stroke",m[h].mode==="s"?"#000000":"#ffffff")):(vn=null,Fn=null),this.storedData[h]={elem:v,x:Fn,expan:vn,lastPath:"",lastOperator:"",filterId:J,lastRadius:0},m[h].mode==="i"){Pn=y.length;var gn=createNS("g");for(x=0;x<Pn;x+=1)gn.appendChild(y[x]);var zn=createNS("mask");zn.setAttribute("mask-type","alpha"),zn.setAttribute("id",b+"_"+g),zn.appendChild(v),d.appendChild(zn),gn.setAttribute("mask","url("+getLocationHref()+"#"+b+"_"+g+")"),y.length=0,y.push(gn)}else y.push(v);m[h].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[h]={elem:v,lastPath:"",op:PropertyFactory.getProp(this.element,m[h].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,m[h],3),invRect:j},this.viewData[h].prop.k||this.drawPath(m[h],this.viewData[h].prop.v,this.viewData[h])}for(this.maskElement=createNS(Bn),p=y.length,h=0;h<p;h+=1)this.maskElement.appendChild(y[h]);g>0&&(this.maskElement.setAttribute("id",b),this.element.maskedElement.setAttribute(w,"url("+getLocationHref()+"#"+b+")"),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,p;for(p=u._length,h=1;h<p;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&&p>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 v="";f.elem&&(u.c&&(v=c.inv?this.solidPath+d:d),f.elem.setAttribute("d",v)),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 p=createNS("filter");return p.setAttribute("id",d),h!==!0&&(p.setAttribute("filterUnits","objectBoundingBox"),p.setAttribute("x","0%"),p.setAttribute("y","0%"),p.setAttribute("width","100%"),p.setAttribute("height","100%")),p}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(),p=filtersFactory.createFilter(h,!0),v=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(p,c.effectsManager.effectElements[u],c,idPrefix+v,f),f=idPrefix+v,registeredEffects$1[g].countsAsEffect&&(v+=1)}m&&this.filters.push(m)}v&&(c.globalData.defs.appendChild(p),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 p=createElementID();if(d.setAttribute("id",p),d.appendChild(h),this.globalData.defs.appendChild(d),this.checkMasks()){var v=createNS("g");v.setAttribute("clip-path","url("+getLocationHref()+"#"+p+")"),v.appendChild(this.layerElement),this.transformedElement=v,u?u.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+p+")")}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,p,v;if(u===1||u===3){var m=createNS("mask");m.setAttribute("id",f),m.setAttribute("mask-type",u===3?"luminance":"alpha"),p=createNS("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),m.appendChild(p),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()),v=createNS("g"),v.appendChild(p),m.appendChild(v),v.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 x=createNS("feComponentTransfer");x.setAttribute("in","SourceGraphic"),h.appendChild(x);var Pn=createNS("feFuncA");Pn.setAttribute("type","table"),Pn.setAttribute("tableValues","1.0 0.0"),x.appendChild(Pn),this.globalData.defs.appendChild(h);var b=createNS("rect");b.setAttribute("width",this.comp.data.w),b.setAttribute("height",this.comp.data.h),b.setAttribute("x","0"),b.setAttribute("y","0"),b.setAttribute("fill","#ffffff"),b.setAttribute("opacity","0"),y.setAttribute("filter","url("+getLocationHref()+"#"+d+")"),y.appendChild(b),p=createNS("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),y.appendChild(p),featureSupport.maskType||(g.setAttribute("mask-type","luminance"),h.appendChild(filtersFactory.createAlphaToLuminanceFilter()),v=createNS("g"),y.appendChild(b),v.appendChild(this.layerElement),y.appendChild(v)),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,p=u.length||0,v;for(h=0;h<p;h+=1)v=PropertyFactory.getProp(c,u[h].v,0,0,this),this.k=v.k||this.k,this.dataProps[h]={n:u[h].n,p:v};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=[],p,v,m;for(m=u.g.p*4,v=0;v<m;v+=4)p=createNS("stop"),d.appendChild(p),h.push(p);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,p=createNS("mask"),v=createNS("path");p.appendChild(v);var m=createElementID(),g=createElementID();p.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 x=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),x.push(f);v.setAttribute(c.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+m+")"),c.ty==="gs"&&(v.setAttribute("stroke-linecap",lineCapEnum[c.lc||2]),v.setAttribute("stroke-linejoin",lineJoinEnum[c.lj||2]),c.lj===1&&v.setAttribute("stroke-miterlimit",c.ml)),this.of=y,this.ms=p,this.ost=x,this.maskId=g,u.msElem=v}},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 p=u.o,v=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(p[g-1][0],p[g-1][1])+" "+h.applyToPointStringified(v[g][0],v[g][1])+" "+h.applyToPointStringified(m[g][0],m[g][1]);return d&&f&&(y+=" C"+h.applyToPointStringified(p[g-1][0],p[g-1][1])+" "+h.applyToPointStringified(v[0][0],v[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(Pn){switch(Pn.ty){case"fl":return m;case"gf":return y;case"gs":return g;case"st":return x;case"sh":case"el":case"rc":case"sr":return v;case"tr":return h;case"no":return p;default:return null}}function h(Pn,b,j){(j||b.transform.op._mdf)&&b.transform.container.setAttribute("opacity",b.transform.op.v),(j||b.transform.mProps._mdf)&&b.transform.container.setAttribute("transform",b.transform.mProps.v.to2dCSS())}function p(){}function v(Pn,b,j){var re,vn,Fn,Bn,w,J,gn=b.styles.length,zn=b.lvl,Vn,Kn,Un,Qn;for(J=0;J<gn;J+=1){if(Bn=b.sh._mdf||j,b.styles[J].lvl<zn){for(Kn=u.reset(),Un=zn-b.styles[J].lvl,Qn=b.transformers.length-1;!Bn&&Un>0;)Bn=b.transformers[Qn].mProps._mdf||Bn,Un-=1,Qn-=1;if(Bn)for(Un=zn-b.styles[J].lvl,Qn=b.transformers.length-1;Un>0;)Kn.multiply(b.transformers[Qn].mProps.v),Un-=1,Qn-=1}else Kn=c;if(Vn=b.sh.paths,vn=Vn._length,Bn){for(Fn="",re=0;re<vn;re+=1)w=Vn.shapes[re],w&&w._length&&(Fn+=buildShapeString(w,w._length,w.c,Kn));b.caches[J]=Fn}else Fn=b.caches[J];b.styles[J].d+=Pn.hd===!0?"":Fn,b.styles[J]._mdf=Bn||b.styles[J]._mdf}}function m(Pn,b,j){var re=b.style;(b.c._mdf||j)&&re.pElem.setAttribute("fill","rgb("+bmFloor(b.c.v[0])+","+bmFloor(b.c.v[1])+","+bmFloor(b.c.v[2])+")"),(b.o._mdf||j)&&re.pElem.setAttribute("fill-opacity",b.o.v)}function g(Pn,b,j){y(Pn,b,j),x(Pn,b,j)}function y(Pn,b,j){var re=b.gf,vn=b.g._hasOpacity,Fn=b.s.v,Bn=b.e.v;if(b.o._mdf||j){var w=Pn.ty==="gf"?"fill-opacity":"stroke-opacity";b.style.pElem.setAttribute(w,b.o.v)}if(b.s._mdf||j){var J=Pn.t===1?"x1":"cx",gn=J==="x1"?"y1":"cy";re.setAttribute(J,Fn[0]),re.setAttribute(gn,Fn[1]),vn&&!b.g._collapsable&&(b.of.setAttribute(J,Fn[0]),b.of.setAttribute(gn,Fn[1]))}var zn,Vn,Kn,Un;if(b.g._cmdf||j){zn=b.cst;var Qn=b.g.c;for(Kn=zn.length,Vn=0;Vn<Kn;Vn+=1)Un=zn[Vn],Un.setAttribute("offset",Qn[Vn*4]+"%"),Un.setAttribute("stop-color","rgb("+Qn[Vn*4+1]+","+Qn[Vn*4+2]+","+Qn[Vn*4+3]+")")}if(vn&&(b.g._omdf||j)){var Jn=b.g.o;for(b.g._collapsable?zn=b.cst:zn=b.ost,Kn=zn.length,Vn=0;Vn<Kn;Vn+=1)Un=zn[Vn],b.g._collapsable||Un.setAttribute("offset",Jn[Vn*2]+"%"),Un.setAttribute("stop-opacity",Jn[Vn*2+1])}if(Pn.t===1)(b.e._mdf||j)&&(re.setAttribute("x2",Bn[0]),re.setAttribute("y2",Bn[1]),vn&&!b.g._collapsable&&(b.of.setAttribute("x2",Bn[0]),b.of.setAttribute("y2",Bn[1])));else{var Yn;if((b.s._mdf||b.e._mdf||j)&&(Yn=Math.sqrt(Math.pow(Fn[0]-Bn[0],2)+Math.pow(Fn[1]-Bn[1],2)),re.setAttribute("r",Yn),vn&&!b.g._collapsable&&b.of.setAttribute("r",Yn)),b.e._mdf||b.h._mdf||b.a._mdf||j){Yn||(Yn=Math.sqrt(Math.pow(Fn[0]-Bn[0],2)+Math.pow(Fn[1]-Bn[1],2)));var Zn=Math.atan2(Bn[1]-Fn[1],Bn[0]-Fn[0]),nr=b.h.v;nr>=1?nr=.99:nr<=-1&&(nr=-.99);var sr=Yn*nr,ur=Math.cos(Zn+b.a.v)*sr+Fn[0],Gn=Math.sin(Zn+b.a.v)*sr+Fn[1];re.setAttribute("fx",ur),re.setAttribute("fy",Gn),vn&&!b.g._collapsable&&(b.of.setAttribute("fx",ur),b.of.setAttribute("fy",Gn))}}}function x(Pn,b,j){var re=b.style,vn=b.d;vn&&(vn._mdf||j)&&vn.dashStr&&(re.pElem.setAttribute("stroke-dasharray",vn.dashStr),re.pElem.setAttribute("stroke-dashoffset",vn.dashoffset[0])),b.c&&(b.c._mdf||j)&&re.pElem.setAttribute("stroke","rgb("+bmFloor(b.c.v[0])+","+bmFloor(b.c.v[1])+","+bmFloor(b.c.v[2])+")"),(b.o._mdf||j)&&re.pElem.setAttribute("stroke-opacity",b.o.v),(b.w._mdf||j)&&(re.pElem.setAttribute("stroke-width",b.w.v),re.msElem&&re.msElem.setAttribute("stroke-width",b.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,p,v=[],m=!1;for(d=0;d<h;d+=1){for(p=this.stylesList[d],m=!1,v.length=0,c=0;c<u;c+=1)f=this.shapes[c],f.styles.indexOf(p)!==-1&&(v.push(f),m=f._isAnimated||m);v.length>1&&m&&this.setShapesAsAnimated(v)}},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 p=c.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;f=new p(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),p=new SVGShapeData(u,f,h);return this.shapes.push(p),this.addShapeToModifiers(p),this.addToAnimatedContents(c,p),p},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,p,v){var m=[].concat(p),g,y=c.length-1,x,Pn,b=[],j=[],re,vn,Fn;for(g=y;g>=0;g-=1){if(Fn=this.searchProcessedElement(c[g]),Fn?u[g]=f[Fn-1]:c[g]._render=v,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),b.push(u[g].style);else if(c[g].ty==="gr"){if(!Fn)u[g]=this.createGroupElement(c[g]);else for(Pn=u[g].it.length,x=0;x<Pn;x+=1)u[g].prevViewData[x]=u[g].it[x];this.searchShapes(c[g].it,u[g].it,u[g].prevViewData,u[g].gr,h+1,m,v),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)),re=u[g].transform,m.push(re)):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?(vn=u[g],vn.closed=!1):(vn=ShapeModifiers.getModifier(c[g].ty),vn.init(this,c[g]),u[g]=vn,this.shapeModifiers.push(vn)),j.push(vn)):c[g].ty==="rp"&&(Fn?(vn=u[g],vn.closed=!0):(vn=ShapeModifiers.getModifier(c[g].ty),u[g]=vn,vn.init(this,c,g,u),this.shapeModifiers.push(vn),v=!1),j.push(vn));this.addProcessedElement(c[g],g+1)}for(y=b.length,g=0;g<y;g+=1)b[g].closed=!0;for(y=j.length,g=0;g<y;g+=1)j[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,p){this.o=c,this.sw=u,this.sc=f,this.fc=d,this.m=h,this.p=p,this._mdf={o:!0,sw:!!u,sc:!!f,fc:!!d,m:!0,p:!0}}LetterProps.prototype.update=function(c,u,f,d,h,p){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 v=!1;return this.o!==c&&(this.o=c,this._mdf.o=!0,v=!0),this.sw!==u&&(this.sw=u,this._mdf.sw=!0,v=!0),this.sc!==f&&(this.sc=f,this._mdf.sc=!0,v=!0),this.fc!==d&&(this.fc=d,this._mdf.fc=!0,v=!0),this.m!==h&&(this.m=h,this._mdf.m=!0,v=!0),p.length&&(this.p[0]!==p[0]||this.p[1]!==p[1]||this.p[4]!==p[4]||this.p[5]!==p[5]||this.p[12]!==p[12]||this.p[13]!==p[13])&&(this.p=p,this._mdf.p=!0,v=!0),v};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,p=c||this.data.d.k[this.keysIndex].s;for(d=0;d<h;d+=1)f!==this.keysIndex?p=this.effectsSequence[d](p,p.t):p=this.effectsSequence[d](this.currentData,p.t);u!==p&&this.setCurrentData(p),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,p,v=!1,m=!1,g="";f<d;)v=m,m=!1,h=c.charCodeAt(f),g=c.charAt(f),FontManager.isCombinedCharacter(h)?v=!0:h>=55296&&h<=56319?FontManager.isRegionalFlag(c,f)?g=c.substr(f,14):(p=c.charCodeAt(f+1),p>=56320&&p<=57343&&(FontManager.isModifier(h,p)?(g=c.substr(f,2),v=!0):FontManager.isFlagEmoji(c.substr(f,4))?g=c.substr(f,4):g=c.substr(f,2))):h>56319?(p=c.charCodeAt(f+1),FontManager.isVariationSelector(h)&&(v=!0)):FontManager.isZeroWidthJoiner(h)&&(v=!0,m=!0),v?(u[u.length-1]+=g,v=!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,p,v,m=0,g,y=f.m.g,x=0,Pn=0,b=0,j=[],re=0,vn=0,Fn,Bn,w=u.getFontByName(c.f),J,gn=0,zn=getFontProperties(w);c.fWeight=zn.weight,c.fStyle=zn.style,c.finalSize=c.s,c.finalText=this.buildFinalText(c.t),p=c.finalText.length,c.finalLineHeight=c.lh;var Vn=c.tr/1e3*c.finalSize,Kn;if(c.sz)for(var Un=!0,Qn=c.sz[0],Jn=c.sz[1],Yn,Zn;Un;){Zn=this.buildFinalText(c.t),Yn=0,re=0,p=Zn.length,Vn=c.tr/1e3*c.finalSize;var nr=-1;for(h=0;h<p;h+=1)Kn=Zn[h].charCodeAt(0),v=!1,Zn[h]===" "?nr=h:(Kn===13||Kn===3)&&(re=0,v=!0,Yn+=c.finalLineHeight||c.finalSize*1.2),u.chars?(J=u.getCharData(Zn[h],w.fStyle,w.fFamily),gn=v?0:J.w*c.finalSize/100):gn=u.measureText(Zn[h],c.f,c.finalSize),re+gn>Qn&&Zn[h]!==" "?(nr===-1?p+=1:h=nr,Yn+=c.finalLineHeight||c.finalSize*1.2,Zn.splice(h,nr===h?1:0,"\r"),nr=-1,re=0):(re+=gn,re+=Vn);Yn+=w.ascent*c.finalSize/100,this.canResize&&c.finalSize>this.minimumFontSize&&Jn<Yn?(c.finalSize-=1,c.finalLineHeight=c.finalSize*c.lh/c.s):(c.finalText=Zn,p=c.finalText.length,Un=!1)}re=-Vn,gn=0;var sr=0,ur;for(h=0;h<p;h+=1)if(v=!1,ur=c.finalText[h],Kn=ur.charCodeAt(0),Kn===13||Kn===3?(sr=0,j.push(re),vn=re>vn?re:vn,re=-2*Vn,g="",v=!0,b+=1):g=ur,u.chars?(J=u.getCharData(ur,w.fStyle,u.getFontByName(c.f).fFamily),gn=v?0:J.w*c.finalSize/100):gn=u.measureText(g,c.f,c.finalSize),ur===" "?sr+=gn+Vn:(re+=gn+Vn+sr,sr=0),d.push({l:gn,an:gn,add:x,n:v,anIndexes:[],val:g,line:b,animatorJustifyOffset:0}),y==2){if(x+=gn,g===""||g===" "||h===p-1){for((g===""||g===" ")&&(x-=gn);Pn<=h;)d[Pn].an=x,d[Pn].ind=m,d[Pn].extra=gn,Pn+=1;m+=1,x=0}}else if(y==3){if(x+=gn,g===""||h===p-1){for(g===""&&(x-=gn);Pn<=h;)d[Pn].an=x,d[Pn].ind=m,d[Pn].extra=gn,Pn+=1;x=0,m+=1}}else d[m].ind=m,d[m].extra=0,m+=1;if(c.l=d,vn=re>vn?re:vn,j.push(re),c.sz)c.boxWidth=c.sz[0],c.justifyOffset=0;else switch(c.boxWidth=vn,c.j){case 1:c.justifyOffset=-c.boxWidth;break;case 2:c.justifyOffset=-c.boxWidth/2;break;default:c.justifyOffset=0}c.lineWidths=j;var Gn=f.a,Wn,Rn;Bn=Gn.length;var qn,Xn,Hn=[];for(Fn=0;Fn<Bn;Fn+=1){for(Wn=Gn[Fn],Wn.a.sc&&(c.strokeColorAnim=!0),Wn.a.sw&&(c.strokeWidthAnim=!0),(Wn.a.fc||Wn.a.fh||Wn.a.fs||Wn.a.fb)&&(c.fillColorAnim=!0),Xn=0,qn=Wn.s.b,h=0;h<p;h+=1)Rn=d[h],Rn.anIndexes[Fn]=Xn,(qn==1&&Rn.val!==""||qn==2&&Rn.val!==""&&Rn.val!==" "||qn==3&&(Rn.n||Rn.val==" "||h==p-1)||qn==4&&(Rn.n||h==p-1))&&(Wn.s.rn===1&&Hn.push(Xn),Xn+=1);f.a[Fn].s.totalChars=Xn;var tr=-1,cr;if(Wn.s.rn===1)for(h=0;h<p;h+=1)Rn=d[h],tr!=Rn.anIndexes[Fn]&&(tr=Rn.anIndexes[Fn],cr=Hn.splice(Math.floor(Math.random()*Hn.length),1)[0]),Rn.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(p,v){this._currentTextLength=-1,this.k=!1,this.data=v,this.elem=p,this.comp=p.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(p),this.s=PropertyFactory.getProp(p,v.s||{k:0},0,0,this),"e"in v?this.e=PropertyFactory.getProp(p,v.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(p,v.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(p,v.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(p,v.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(p,v.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(p,v.a,0,.01,this),this.dynamicProperties.length||this.getValue()}d.prototype={getMult:function(v){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var m=0,g=0,y=1,x=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:x=1+this.xe.v/100;var Pn=BezierFactory.getBezierEasing(m,g,y,x).get,b=0,j=this.finalS,re=this.finalE,vn=this.data.sh;if(vn===2)re===j?b=v>=re?1:0:b=c(0,u(.5/(re-j)+(v-j)/(re-j),1)),b=Pn(b);else if(vn===3)re===j?b=v>=re?0:1:b=1-c(0,u(.5/(re-j)+(v-j)/(re-j),1)),b=Pn(b);else if(vn===4)re===j?b=0:(b=c(0,u(.5/(re-j)+(v-j)/(re-j),1)),b<.5?b*=2:b=1-2*(b-.5)),b=Pn(b);else if(vn===5){if(re===j)b=0;else{var Fn=re-j;v=u(c(0,v+.5-j),re-j);var Bn=-Fn/2+v,w=Fn/2;b=Math.sqrt(1-Bn*Bn/(w*w))}b=Pn(b)}else vn===6?(re===j?b=0:(v=u(c(0,v+.5-j),re-j),b=(1+Math.cos(Math.PI+Math.PI*2*v/(re-j)))/2),b=Pn(b)):(v>=f(j)&&(v-j<0?b=c(0,u(u(re,1)-(j-v),1)):b=c(0,u(re-v,1))),b=Pn(b));if(this.sm.v!==100){var J=this.sm.v*.01;J===0&&(J=1e-8);var gn=.5-J*.5;b<gn?b=0:(b=(b-gn)/J,b>1&&(b=1))}return b*this.a.v},getValue:function(v){this.iterateDynamicProperties(),this._mdf=v||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,v&&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,x=this.e.v/m+g;if(y>x){var Pn=y;y=x,x=Pn}this.finalS=y,this.finalE=x}},extendPrototype([DynamicPropertyContainer],d);function h(p,v,m){return new d(p,v)}return{getTextSelectorProp:h}}();function TextAnimatorDataProperty(c,u,f){var d={propType:!1},h=PropertyFactory.getProp,p=u.a;this.a={r:p.r?h(c,p.r,0,degToRads,f):d,rx:p.rx?h(c,p.rx,0,degToRads,f):d,ry:p.ry?h(c,p.ry,0,degToRads,f):d,sk:p.sk?h(c,p.sk,0,degToRads,f):d,sa:p.sa?h(c,p.sa,0,degToRads,f):d,s:p.s?h(c,p.s,1,.01,f):d,a:p.a?h(c,p.a,1,0,f):d,o:p.o?h(c,p.o,0,.01,f):d,p:p.p?h(c,p.p,1,0,f):d,sw:p.sw?h(c,p.sw,0,0,f):d,sc:p.sc?h(c,p.sc,1,0,f):d,fc:p.fc?h(c,p.fc,1,0,f):d,fh:p.fh?h(c,p.fh,0,0,f):d,fs:p.fs?h(c,p.fs,0,.01,f):d,fb:p.fb?h(c,p.fb,0,.01,f):d,t:p.t?h(c,p.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,p=this.mHelper,v=this._renderType,m=this.renderedLetters.length,g,y,x,Pn,b=c.l,j,re,vn,Fn,Bn,w,J,gn,zn,Vn,Kn,Un,Qn,Jn,Yn;if(this._hasMaskedPath){if(Yn=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Zn=Yn.v;this._pathData.r.v&&(Zn=Zn.reverse()),j={tLength:0,segments:[]},Pn=Zn._length-1;var nr;for(Un=0,x=0;x<Pn;x+=1)nr=bez.buildBezierData(Zn.v[x],Zn.v[x+1],[Zn.o[x][0]-Zn.v[x][0],Zn.o[x][1]-Zn.v[x][1]],[Zn.i[x+1][0]-Zn.v[x+1][0],Zn.i[x+1][1]-Zn.v[x+1][1]]),j.tLength+=nr.segmentLength,j.segments.push(nr),Un+=nr.segmentLength;x=Pn,Yn.v.c&&(nr=bez.buildBezierData(Zn.v[x],Zn.v[0],[Zn.o[x][0]-Zn.v[x][0],Zn.o[x][1]-Zn.v[x][1]],[Zn.i[0][0]-Zn.v[0][0],Zn.i[0][1]-Zn.v[0][1]]),j.tLength+=nr.segmentLength,j.segments.push(nr),Un+=nr.segmentLength),this._pathData.pi=j}if(j=this._pathData.pi,re=this._pathData.f.v,J=0,w=1,Fn=0,Bn=!0,Vn=j.segments,re<0&&Yn.v.c)for(j.tLength<Math.abs(re)&&(re=-Math.abs(re)%j.tLength),J=Vn.length-1,zn=Vn[J].points,w=zn.length-1;re<0;)re+=zn[w].partialLength,w-=1,w<0&&(J-=1,zn=Vn[J].points,w=zn.length-1);zn=Vn[J].points,gn=zn[w-1],vn=zn[w],Kn=vn.partialLength}Pn=b.length,g=0,y=0;var sr=c.finalSize*1.2*.714,ur=!0,Gn,Wn,Rn,qn,Xn;qn=d.length;var Hn,tr=-1,cr,ir,er,pr=re,lr=J,or=w,ar=-1,vr,fr,mr,dr,hr,yr,_r,gr,br="",Er=this.defaultPropsArray,Mr;if(c.j===2||c.j===1){var Ir=0,Fr=0,Or=c.j===2?-.5:-1,Nr=0,zr=!0;for(x=0;x<Pn;x+=1)if(b[x].n){for(Ir&&(Ir+=Fr);Nr<x;)b[Nr].animatorJustifyOffset=Ir,Nr+=1;Ir=0,zr=!0}else{for(Rn=0;Rn<qn;Rn+=1)Gn=d[Rn].a,Gn.t.propType&&(zr&&c.j===2&&(Fr+=Gn.t.v*Or),Wn=d[Rn].s,Hn=Wn.getMult(b[x].anIndexes[Rn],h.a[Rn].s.totalChars),Hn.length?Ir+=Gn.t.v*Hn[0]*Or:Ir+=Gn.t.v*Hn*Or);zr=!1}for(Ir&&(Ir+=Fr);Nr<x;)b[Nr].animatorJustifyOffset=Ir,Nr+=1}for(x=0;x<Pn;x+=1){if(p.reset(),vr=1,b[x].n)g=0,y+=c.yOffset,y+=ur?1:0,re=pr,ur=!1,this._hasMaskedPath&&(J=lr,w=or,zn=Vn[J].points,gn=zn[w-1],vn=zn[w],Kn=vn.partialLength,Fn=0),br="",gr="",yr="",Mr="",Er=this.defaultPropsArray;else{if(this._hasMaskedPath){if(ar!==b[x].line){switch(c.j){case 1:re+=Un-c.lineWidths[b[x].line];break;case 2:re+=(Un-c.lineWidths[b[x].line])/2;break}ar=b[x].line}tr!==b[x].ind&&(b[tr]&&(re+=b[tr].extra),re+=b[x].an/2,tr=b[x].ind),re+=f[0]*b[x].an*.005;var Rr=0;for(Rn=0;Rn<qn;Rn+=1)Gn=d[Rn].a,Gn.p.propType&&(Wn=d[Rn].s,Hn=Wn.getMult(b[x].anIndexes[Rn],h.a[Rn].s.totalChars),Hn.length?Rr+=Gn.p.v[0]*Hn[0]:Rr+=Gn.p.v[0]*Hn),Gn.a.propType&&(Wn=d[Rn].s,Hn=Wn.getMult(b[x].anIndexes[Rn],h.a[Rn].s.totalChars),Hn.length?Rr+=Gn.a.v[0]*Hn[0]:Rr+=Gn.a.v[0]*Hn);for(Bn=!0,this._pathData.a.v&&(re=b[0].an*.5+(Un-this._pathData.f.v-b[0].an*.5-b[b.length-1].an*.5)*tr/(Pn-1),re+=this._pathData.f.v);Bn;)Fn+Kn>=re+Rr||!zn?(Qn=(re+Rr-Fn)/vn.partialLength,ir=gn.point[0]+(vn.point[0]-gn.point[0])*Qn,er=gn.point[1]+(vn.point[1]-gn.point[1])*Qn,p.translate(-f[0]*b[x].an*.005,-(f[1]*sr)*.01),Bn=!1):zn&&(Fn+=vn.partialLength,w+=1,w>=zn.length&&(w=0,J+=1,Vn[J]?zn=Vn[J].points:Yn.v.c?(w=0,J=0,zn=Vn[J].points):(Fn-=vn.partialLength,zn=null)),zn&&(gn=vn,vn=zn[w],Kn=vn.partialLength));cr=b[x].an/2-b[x].add,p.translate(-cr,0,0)}else cr=b[x].an/2-b[x].add,p.translate(-cr,0,0),p.translate(-f[0]*b[x].an*.005,-f[1]*sr*.01,0);for(Rn=0;Rn<qn;Rn+=1)Gn=d[Rn].a,Gn.t.propType&&(Wn=d[Rn].s,Hn=Wn.getMult(b[x].anIndexes[Rn],h.a[Rn].s.totalChars),(g!==0||c.j!==0)&&(this._hasMaskedPath?Hn.length?re+=Gn.t.v*Hn[0]:re+=Gn.t.v*Hn:Hn.length?g+=Gn.t.v*Hn[0]:g+=Gn.t.v*Hn));for(c.strokeWidthAnim&&(mr=c.sw||0),c.strokeColorAnim&&(c.sc?fr=[c.sc[0],c.sc[1],c.sc[2]]:fr=[0,0,0]),c.fillColorAnim&&c.fc&&(dr=[c.fc[0],c.fc[1],c.fc[2]]),Rn=0;Rn<qn;Rn+=1)Gn=d[Rn].a,Gn.a.propType&&(Wn=d[Rn].s,Hn=Wn.getMult(b[x].anIndexes[Rn],h.a[Rn].s.totalChars),Hn.length?p.translate(-Gn.a.v[0]*Hn[0],-Gn.a.v[1]*Hn[1],Gn.a.v[2]*Hn[2]):p.translate(-Gn.a.v[0]*Hn,-Gn.a.v[1]*Hn,Gn.a.v[2]*Hn));for(Rn=0;Rn<qn;Rn+=1)Gn=d[Rn].a,Gn.s.propType&&(Wn=d[Rn].s,Hn=Wn.getMult(b[x].anIndexes[Rn],h.a[Rn].s.totalChars),Hn.length?p.scale(1+(Gn.s.v[0]-1)*Hn[0],1+(Gn.s.v[1]-1)*Hn[1],1):p.scale(1+(Gn.s.v[0]-1)*Hn,1+(Gn.s.v[1]-1)*Hn,1));for(Rn=0;Rn<qn;Rn+=1){if(Gn=d[Rn].a,Wn=d[Rn].s,Hn=Wn.getMult(b[x].anIndexes[Rn],h.a[Rn].s.totalChars),Gn.sk.propType&&(Hn.length?p.skewFromAxis(-Gn.sk.v*Hn[0],Gn.sa.v*Hn[1]):p.skewFromAxis(-Gn.sk.v*Hn,Gn.sa.v*Hn)),Gn.r.propType&&(Hn.length?p.rotateZ(-Gn.r.v*Hn[2]):p.rotateZ(-Gn.r.v*Hn)),Gn.ry.propType&&(Hn.length?p.rotateY(Gn.ry.v*Hn[1]):p.rotateY(Gn.ry.v*Hn)),Gn.rx.propType&&(Hn.length?p.rotateX(Gn.rx.v*Hn[0]):p.rotateX(Gn.rx.v*Hn)),Gn.o.propType&&(Hn.length?vr+=(Gn.o.v*Hn[0]-vr)*Hn[0]:vr+=(Gn.o.v*Hn-vr)*Hn),c.strokeWidthAnim&&Gn.sw.propType&&(Hn.length?mr+=Gn.sw.v*Hn[0]:mr+=Gn.sw.v*Hn),c.strokeColorAnim&&Gn.sc.propType)for(hr=0;hr<3;hr+=1)Hn.length?fr[hr]+=(Gn.sc.v[hr]-fr[hr])*Hn[0]:fr[hr]+=(Gn.sc.v[hr]-fr[hr])*Hn;if(c.fillColorAnim&&c.fc){if(Gn.fc.propType)for(hr=0;hr<3;hr+=1)Hn.length?dr[hr]+=(Gn.fc.v[hr]-dr[hr])*Hn[0]:dr[hr]+=(Gn.fc.v[hr]-dr[hr])*Hn;Gn.fh.propType&&(Hn.length?dr=addHueToRGB(dr,Gn.fh.v*Hn[0]):dr=addHueToRGB(dr,Gn.fh.v*Hn)),Gn.fs.propType&&(Hn.length?dr=addSaturationToRGB(dr,Gn.fs.v*Hn[0]):dr=addSaturationToRGB(dr,Gn.fs.v*Hn)),Gn.fb.propType&&(Hn.length?dr=addBrightnessToRGB(dr,Gn.fb.v*Hn[0]):dr=addBrightnessToRGB(dr,Gn.fb.v*Hn))}}for(Rn=0;Rn<qn;Rn+=1)Gn=d[Rn].a,Gn.p.propType&&(Wn=d[Rn].s,Hn=Wn.getMult(b[x].anIndexes[Rn],h.a[Rn].s.totalChars),this._hasMaskedPath?Hn.length?p.translate(0,Gn.p.v[1]*Hn[0],-Gn.p.v[2]*Hn[1]):p.translate(0,Gn.p.v[1]*Hn,-Gn.p.v[2]*Hn):Hn.length?p.translate(Gn.p.v[0]*Hn[0],Gn.p.v[1]*Hn[1],-Gn.p.v[2]*Hn[2]):p.translate(Gn.p.v[0]*Hn,Gn.p.v[1]*Hn,-Gn.p.v[2]*Hn));if(c.strokeWidthAnim&&(yr=mr<0?0:mr),c.strokeColorAnim&&(_r="rgb("+Math.round(fr[0]*255)+","+Math.round(fr[1]*255)+","+Math.round(fr[2]*255)+")"),c.fillColorAnim&&c.fc&&(gr="rgb("+Math.round(dr[0]*255)+","+Math.round(dr[1]*255)+","+Math.round(dr[2]*255)+")"),this._hasMaskedPath){if(p.translate(0,-c.ls),p.translate(0,f[1]*sr*.01+y,0),this._pathData.p.v){Jn=(vn.point[1]-gn.point[1])/(vn.point[0]-gn.point[0]);var Vr=Math.atan(Jn)*180/Math.PI;vn.point[0]<gn.point[0]&&(Vr+=180),p.rotate(-Vr*Math.PI/180)}p.translate(ir,er,0),re-=f[0]*b[x].an*.005,b[x+1]&&tr!==b[x+1].ind&&(re+=b[x].an/2,re+=c.tr*.001*c.finalSize)}else{switch(p.translate(g,y,0),c.ps&&p.translate(c.ps[0],c.ps[1]+c.ascent,0),c.j){case 1:p.translate(b[x].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[b[x].line]),0,0);break;case 2:p.translate(b[x].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[b[x].line])/2,0,0);break}p.translate(0,-c.ls),p.translate(cr,0,0),p.translate(f[0]*b[x].an*.005,f[1]*sr*.01,0),g+=b[x].l+c.tr*.001*c.finalSize}v==="html"?br=p.toCSS():v==="svg"?br=p.to2dCSS():Er=[p.props[0],p.props[1],p.props[2],p.props[3],p.props[4],p.props[5],p.props[6],p.props[7],p.props[8],p.props[9],p.props[10],p.props[11],p.props[12],p.props[13],p.props[14],p.props[15]],Mr=vr}m<=x?(Xn=new LetterProps(Mr,yr,_r,gr,br,Er),this.renderedLetters.push(Xn),m+=1,this.lettersChangedFlag=!0):(Xn=this.renderedLetters[x],this.lettersChangedFlag=Xn.update(Mr,yr,_r,gr,br,Er)||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,p="";for(f=0;f<d;f+=1)u[f].ty==="sh"&&(h=u[f].ks.k,p+=buildShapeString(h,h.i.length,!0,c));return p},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,p=f.fStyle;this.layerElement.setAttribute("font-style",p),this.layerElement.setAttribute("font-weight",h)}this.layerElement.setAttribute("aria-label",f.t);var v=f.l||[],m=!!this.globalData.fontManager.chars;u=v.length;var g,y=this.mHelper,x="",Pn=this.data.singleShape,b=0,j=0,re=!0,vn=f.tr*.001*f.finalSize;if(Pn&&!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",vn);var w=this.buildTextContents(f.finalText);for(u=w.length,j=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",j),g.style.display="inherit",Fn.appendChild(g),this.textSpans[c]||(this.textSpans[c]={span:null,glyph:null}),this.textSpans[c].span=g,j+=f.finalLineHeight;this.layerElement.appendChild(Fn)}else{var J=this.textSpans.length,gn;for(c=0;c<u;c+=1){if(this.textSpans[c]||(this.textSpans[c]={span:null,childSpan:null,glyph:null}),!m||!Pn||c===0){if(g=J>c?this.textSpans[c].span:createNS(m?"g":"text"),J<=c){if(g.setAttribute("stroke-linecap","butt"),g.setAttribute("stroke-linejoin","round"),g.setAttribute("stroke-miterlimit","4"),this.textSpans[c].span=g,m){var zn=createNS("g");g.appendChild(zn),this.textSpans[c].childSpan=zn}this.textSpans[c].span=g,this.layerElement.appendChild(g)}g.style.display="inherit"}if(y.reset(),Pn&&(v[c].n&&(b=-vn,j+=f.yOffset,j+=re?1:0,re=!1),this.applyTextPropertiesToMatrix(f,y,v[c].line,b,j),b+=v[c].l||0,b+=vn),m){gn=this.globalData.fontManager.getCharData(f.finalText[c],d.fStyle,this.globalData.fontManager.getFontByName(f.f).fFamily);var Vn;if(gn.t===1)Vn=new SVGCompElement(gn.data,this.globalData,this);else{var Kn=emptyShapeData;gn.data&&gn.data.shapes&&(Kn=this.buildShapeData(gn.data,f.finalSize)),Vn=new SVGShapeElement(Kn,this.globalData,this)}if(this.textSpans[c].glyph){var Un=this.textSpans[c].glyph;this.textSpans[c].childSpan.removeChild(Un.layerElement),Un.destroy()}this.textSpans[c].glyph=Vn,Vn._debug=!0,Vn.prepareFrame(0),Vn.renderFrame(),this.textSpans[c].childSpan.appendChild(Vn.layerElement),gn.t===1&&this.textSpans[c].childSpan.setAttribute("transform","scale("+f.finalSize/100+","+f.finalSize/100+")")}else Pn&&g.setAttribute("transform","translate("+y.props[12]+","+y.props[13]+")"),g.textContent=v[c].val,g.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}Pn&&g&&g.setAttribute("d",x)}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,p,v;for(c=0;c<u;c+=1)d[c].n||(h=f[c],p=this.textSpans[c].span,v=this.textSpans[c].glyph,v&&v.renderFrame(),h._mdf.m&&p.setAttribute("transform",h.m),h._mdf.o&&p.setAttribute("opacity",h.o),h._mdf.sw&&p.setAttribute("stroke-width",h.sw),h._mdf.sc&&p.setAttribute("stroke",h.sc),h._mdf.fc&&p.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],p=h.getMatte(this.layers[c].tt);f.setMatte(p)}}}},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],p=h.getMatte(this.layers[u].tt);c.setMatte(p);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 p=createNS("desc"),v=createElementID();p.setAttribute("id",v),p.textContent=u.description,this.svgElement.appendChild(p),f+=" "+v}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 p=this.sequences[h];return p||(p={transforms:[].concat(u),finalTransform:new Matrix,_mdf:!1},this.sequences[h]=p,this.sequenceList.push(p)),p},processSequence:function(u,f){for(var d=0,h=u.transforms.length,p=f;d<h&&!f;){if(u.transforms[d].transform.mProps._mdf){p=!0;break}d+=1}if(p)for(u.finalTransform.reset(),d=h-1;d>=0;d-=1)u.finalTransform.multiply(u.transforms[d].transform.mProps.v);u._mdf=p},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 p(){var g=createNS("svg"),y=createNS("filter"),x=createNS("feColorMatrix");return y.setAttribute("id",u),x.setAttribute("type","matrix"),x.setAttribute("color-interpolation-filters","sRGB"),x.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(x),g.appendChild(y),g.setAttribute("id",u+"_svg"),featureSupport.svgLumaHidden&&(g.style.display="none"),g}function v(){f||(h=p(),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||v(),f.width=g.width,f.height=g.height,d.filter="url(#"+u+")",f}return{load:v,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 p=registeredEffects[h].effect;d=new p(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,p,v;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)),v=this.viewData[f].v,h=c.applyToPointArray(v.v[0][0],v.v[0][1],0),u.moveTo(h[0],h[1]);var m,g=v._length;for(m=1;m<g;m+=1)p=c.applyToTriplePoints(v.o[m-1],v.i[m],v.v[m]),u.bezierCurveTo(p[0],p[1],p[2],p[3],p[4],p[5]);p=c.applyToTriplePoints(v.o[m-1],v.i[0],v.v[0]),u.bezierCurveTo(p[0],p[1],p[2],p[3],p[4],p[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),p=h.getContext("2d");p.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 p,v=f.length,m;for(p=0;p<v;p+=1)f[p].closed||(m={transforms:d.addTransformSequence(f[p].transforms),trNodes:[]},this.styledShapes.push(m),f[p].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 p,v=c.length-1,m,g,y=[],x=[],Pn,b,j,re=[].concat(h);for(p=v;p>=0;p-=1){if(Pn=this.searchProcessedElement(c[p]),Pn?u[p]=f[Pn-1]:c[p]._shouldRender=d,c[p].ty==="fl"||c[p].ty==="st"||c[p].ty==="gf"||c[p].ty==="gs")Pn?u[p].style.closed=!1:u[p]=this.createStyleElement(c[p],re),y.push(u[p].style);else if(c[p].ty==="gr"){if(!Pn)u[p]=this.createGroupElement(c[p]);else for(g=u[p].it.length,m=0;m<g;m+=1)u[p].prevViewData[m]=u[p].it[m];this.searchShapes(c[p].it,u[p].it,u[p].prevViewData,d,re)}else c[p].ty==="tr"?(Pn||(j=this.createTransformElement(c[p]),u[p]=j),re.push(u[p]),this.addTransformToStyleList(u[p])):c[p].ty==="sh"||c[p].ty==="rc"||c[p].ty==="el"||c[p].ty==="sr"?Pn||(u[p]=this.createShapeElement(c[p])):c[p].ty==="tm"||c[p].ty==="rd"||c[p].ty==="pb"||c[p].ty==="zz"||c[p].ty==="op"?(Pn?(b=u[p],b.closed=!1):(b=ShapeModifiers.getModifier(c[p].ty),b.init(this,c[p]),u[p]=b,this.shapeModifiers.push(b)),x.push(b)):c[p].ty==="rp"&&(Pn?(b=u[p],b.closed=!0):(b=ShapeModifiers.getModifier(c[p].ty),u[p]=b,b.init(this,c,p,u),this.shapeModifiers.push(b),d=!1),x.push(b));this.addProcessedElement(c[p],p+1)}for(this.removeTransformFromStyleList(),this.closeStyles(y),v=x.length,p=0;p<v;p+=1)x[p].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,p,v,m,g=this.globalData.renderer,y=this.globalData.canvasContext,x,Pn;for(c=0;c<u;c+=1)if(Pn=this.stylesList[c],x=Pn.type,!((x==="st"||x==="gs")&&Pn.wi===0||!Pn.data._shouldRender||Pn.coOp===0||this.globalData.currentGlobalAlpha===0)){for(g.save(),v=Pn.elements,x==="st"||x==="gs"?(g.ctxStrokeStyle(x==="st"?Pn.co:Pn.grd),g.ctxLineWidth(Pn.wi),g.ctxLineCap(Pn.lc),g.ctxLineJoin(Pn.lj),g.ctxMiterLimit(Pn.ml||0)):g.ctxFillStyle(x==="fl"?Pn.co:Pn.grd),g.ctxOpacity(Pn.coOp),x!=="st"&&x!=="gs"&&y.beginPath(),g.ctxTransform(Pn.preTransforms.finalTransform.props),d=v.length,f=0;f<d;f+=1){for((x==="st"||x==="gs")&&(y.beginPath(),Pn.da&&(y.setLineDash(Pn.da),y.lineDashOffset=Pn.do)),m=v[f].trNodes,p=m.length,h=0;h<p;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();(x==="st"||x==="gs")&&(g.ctxStroke(),Pn.da&&y.setLineDash(this.dashResetter))}x!=="st"&&x!=="gs"&&this.globalData.renderer.ctxFill(Pn.r),g.restore()}},CVShapeElement.prototype.renderShape=function(c,u,f,d){var h,p=u.length-1,v;for(v=c,h=p;h>=0;h-=1)u[h].ty==="tr"?(v=f[h].transform,this.renderShapeTransform(c,v)):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],v):u[h].ty==="st"?this.renderStroke(u[h],f[h],v):u[h].ty==="gf"||u[h].ty==="gs"?this.renderGradientFill(u[h],f[h],v):u[h].ty==="gr"?this.renderShape(v,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,p,v,m=d._length;f.length=0;var g=c.transforms.finalTransform;for(v=0;v<m;v+=1){var y=d.shapes[v];if(y&&y.v){for(p=y._length,h=1;h<p;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])});p===1&&f.push({t:"m",p:g.applyToPointArray(y.v[0][0],y.v[0][1],0)}),y.c&&p&&(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 p=this.globalData.canvasContext,v=u.s.v,m=u.e.v;if(c.t===1)h=p.createLinearGradient(v[0],v[1],m[0],m[1]);else{var g=Math.sqrt(Math.pow(v[0]-m[0],2)+Math.pow(v[1]-m[1],2)),y=Math.atan2(m[1]-v[1],m[0]-v[0]),x=u.h.v;x>=1?x=.99:x<=-1&&(x=-.99);var Pn=g*x,b=Math.cos(y+u.a.v)*Pn+v[0],j=Math.sin(y+u.a.v)*Pn+v[1];h=p.createRadialGradient(b,j,0,v[0],v[1],g)}var re,vn=c.g.p,Fn=u.g.c,Bn=1;for(re=0;re<vn;re+=1)u.g._hasOpacity&&u.g._collapsable&&(Bn=u.g.o[re*2+1]),h.addColorStop(Fn[re*4]/100,"rgba("+Fn[re*4+1]+","+Fn[re*4+2]+","+Fn[re*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,p,v=c.l,m=this.mHelper;this.stroke=f,this.values.fValue=c.finalSize+"px "+this.globalData.fontManager.getFontByName(c.f).fFamily,p=c.finalText.length;var g,y,x,Pn,b,j,re,vn,Fn,Bn,w=this.data.singleShape,J=c.tr*.001*c.finalSize,gn=0,zn=0,Vn=!0,Kn=0;for(h=0;h<p;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&&v[h].n&&(gn=-J,zn+=c.yOffset,zn+=Vn?1:0,Vn=!1),b=y.shapes?y.shapes[0].it:[],re=b.length,m.scale(c.finalSize/100,c.finalSize/100),w&&this.applyTextPropertiesToMatrix(c,m,v[h].line,gn,zn),Fn=createSizedArray(re-1);var Un=0;for(j=0;j<re;j+=1)if(b[j].ty==="sh"){for(Pn=b[j].ks.k.i.length,vn=b[j].ks.k,Bn=[],x=1;x<Pn;x+=1)x===1&&Bn.push(m.applyToX(vn.v[0][0],vn.v[0][1],0),m.applyToY(vn.v[0][0],vn.v[0][1],0)),Bn.push(m.applyToX(vn.o[x-1][0],vn.o[x-1][1],0),m.applyToY(vn.o[x-1][0],vn.o[x-1][1],0),m.applyToX(vn.i[x][0],vn.i[x][1],0),m.applyToY(vn.i[x][0],vn.i[x][1],0),m.applyToX(vn.v[x][0],vn.v[x][1],0),m.applyToY(vn.v[x][0],vn.v[x][1],0));Bn.push(m.applyToX(vn.o[x-1][0],vn.o[x-1][1],0),m.applyToY(vn.o[x-1][0],vn.o[x-1][1],0),m.applyToX(vn.i[0][0],vn.i[0][1],0),m.applyToY(vn.i[0][0],vn.i[0][1],0),m.applyToX(vn.v[0][0],vn.v[0][1],0),m.applyToY(vn.v[0][0],vn.v[0][1],0)),Fn[Un]=Bn,Un+=1}w&&(gn+=v[h].l,gn+=J),this.textSpans[Kn]?this.textSpans[Kn].elem=Fn:this.textSpans[Kn]={elem:Fn},Kn+=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,p,v,m=this.textAnimator.renderedLetters,g=this.textProperty.currentData.l;f=g.length;var y,x=null,Pn=null,b=null,j,re,vn=this.globalData.renderer;for(u=0;u<f;u+=1)if(!g[u].n){if(y=m[u],y&&(vn.save(),vn.ctxTransform(y.p),vn.ctxOpacity(y.o)),this.fill){for(y&&y.fc?x!==y.fc&&(vn.ctxFillStyle(y.fc),x=y.fc):x!==this.values.fill&&(x=this.values.fill,vn.ctxFillStyle(this.values.fill)),j=this.textSpans[u].elem,h=j.length,this.globalData.canvasContext.beginPath(),d=0;d<h;d+=1)for(re=j[d],v=re.length,this.globalData.canvasContext.moveTo(re[0],re[1]),p=2;p<v;p+=6)this.globalData.canvasContext.bezierCurveTo(re[p],re[p+1],re[p+2],re[p+3],re[p+4],re[p+5]);this.globalData.canvasContext.closePath(),vn.ctxFill()}if(this.stroke){for(y&&y.sw?b!==y.sw&&(b=y.sw,vn.ctxLineWidth(y.sw)):b!==this.values.sWidth&&(b=this.values.sWidth,vn.ctxLineWidth(this.values.sWidth)),y&&y.sc?Pn!==y.sc&&(Pn=y.sc,vn.ctxStrokeStyle(y.sc)):Pn!==this.values.stroke&&(Pn=this.values.stroke,vn.ctxStrokeStyle(this.values.stroke)),j=this.textSpans[u].elem,h=j.length,this.globalData.canvasContext.beginPath(),d=0;d<h;d+=1)for(re=j[d],v=re.length,this.globalData.canvasContext.moveTo(re[0],re[1]),p=2;p<v;p+=6)this.globalData.canvasContext.bezierCurveTo(re[p],re[p+1],re[p+2],re[p+3],re[p+4],re[p+5]);this.globalData.canvasContext.closePath(),vn.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,p=this.assetData.w/this.assetData.h,v,m,g=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;h>p&&g==="xMidYMid slice"||h<p&&g!=="xMidYMid slice"?(m=d,v=m*p):(v=f,m=v/p),u.drawImage(this.img,(f-v)/2,(d-m)/2,v,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,p;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var v=this.renderConfig.preserveAspectRatio.split(" "),m=v[1]||"meet",g=v[0]||"xMidYMid",y=g.substr(0,4),x=g.substr(4);h=f/d,p=this.transformCanvas.w/this.transformCanvas.h,p>h&&m==="meet"||p<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"&&(p<h&&m==="meet"||p>h&&m==="slice")?this.transformCanvas.tx=(f-this.transformCanvas.w*(d/this.transformCanvas.h))/2*this.renderConfig.dpr:y==="xMax"&&(p<h&&m==="meet"||p>h&&m==="slice")?this.transformCanvas.tx=(f-this.transformCanvas.w*(d/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,x==="YMid"&&(p>h&&m==="meet"||p<h&&m==="slice")?this.transformCanvas.ty=(d-this.transformCanvas.h*(f/this.transformCanvas.w))/2*this.renderConfig.dpr:x==="YMax"&&(p>h&&m==="meet"||p<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 p=this.stack[this.cArrPos+1];this.appliedFillStyle=p.fillStyle,this.appliedStrokeStyle=p.strokeStyle,this.appliedLineWidth=p.lineWidth,this.appliedLineCap=p.lineCap,this.appliedLineJoin=p.lineJoin,this.appliedMiterLimit=p.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,p=f._length,v,m,g,y;if(!(p<=1)){for(h=0;h<p-1;h+=1)v=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(v,m,g,y,u);f.c&&(v=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(v,m,g,y,u))}},HShapeElement.prototype.checkBounds=function(c,u,f,d,h){this.getBoundsOfCurve(c,u,f,d);var p=this.shapeBoundingBox;h.x=bmMin(p.left,h.x),h.xMax=bmMax(p.right,h.xMax),h.y=bmMin(p.top,h.y),h.yMax=bmMax(p.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]]],p,v,m,g,y,x,Pn,b=0;b<2;++b)v=6*c[b]-12*u[b]+6*f[b],p=-3*c[b]+9*u[b]-9*f[b]+3*d[b],m=3*u[b]-3*c[b],v|=0,p|=0,m|=0,p===0&&v===0||(p===0?(g=-m/v,g>0&&g<1&&h[b].push(this.calculateF(g,c,u,f,d,b))):(y=v*v-4*m*p,y>=0&&(x=(-v+bmSqrt(y))/(2*p),x>0&&x<1&&h[b].push(this.calculateF(x,c,u,f,d,b)),Pn=(-v-bmSqrt(y))/(2*p),Pn>0&&Pn<1&&h[b].push(this.calculateF(Pn,c,u,f,d,b)))));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,p){return bmPow(1-c,3)*u[p]+3*bmPow(1-c,2)*c*f[p]+3*(1-c)*bmPow(c,2)*d[p]+bmPow(c,3)*h[p]},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,p=c.fStyle;u.fontStyle=p,u.fontWeight=h}var v,m,g=c.l;m=g.length;var y,x,Pn,b=this.mHelper,j,re="",vn=0;for(v=0;v<m;v+=1){if(this.globalData.fontManager.chars?(this.textPaths[vn]?y=this.textPaths[vn]:(y=createNS("path"),y.setAttribute("stroke-linecap",lineCapEnum[1]),y.setAttribute("stroke-linejoin",lineJoinEnum[2]),y.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[vn]?(x=this.textSpans[vn],Pn=x.children[0]):(x=createTag("div"),x.style.lineHeight=0,Pn=createNS("svg"),Pn.appendChild(y),styleDiv(x)))):this.isMasked?y=this.textPaths[vn]?this.textPaths[vn]:createNS("text"):this.textSpans[vn]?(x=this.textSpans[vn],y=this.textPaths[vn]):(x=createTag("span"),styleDiv(x),y=createTag("span"),styleDiv(y),x.appendChild(y)),this.globalData.fontManager.chars){var Fn=this.globalData.fontManager.getCharData(c.finalText[v],d.fStyle,this.globalData.fontManager.getFontByName(c.f).fFamily),Bn;if(Fn?Bn=Fn.data:Bn=null,b.reset(),Bn&&Bn.shapes&&Bn.shapes.length&&(j=Bn.shapes[0].it,b.scale(c.finalSize/100,c.finalSize/100),re=this.createPathShape(b,j),y.setAttribute("d",re)),this.isMasked)this.innerElem.appendChild(y);else{if(this.innerElem.appendChild(x),Bn&&Bn.shapes){document.body.appendChild(Pn);var w=Pn.getBBox();Pn.setAttribute("width",w.width+2),Pn.setAttribute("height",w.height+2),Pn.setAttribute("viewBox",w.x-1+" "+(w.y-1)+" "+(w.width+2)+" "+(w.height+2));var J=Pn.style,gn="translate("+(w.x-1)+"px,"+(w.y-1)+"px)";J.transform=gn,J.webkitTransform=gn,g[v].yOffset=w.y-1}else Pn.setAttribute("width",1),Pn.setAttribute("height",1);x.appendChild(Pn)}}else if(y.textContent=g[v].val,y.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(y);else{this.innerElem.appendChild(x);var zn=y.style,Vn="translate3d(0,"+-c.finalSize/1.2+"px,0)";zn.transform=Vn,zn.webkitTransform=Vn}this.isMasked?this.textSpans[vn]=y:this.textSpans[vn]=x,this.textSpans[vn].style.display="block",this.textPaths[vn]=y,vn+=1}for(;vn<this.textSpans.length;)this.textSpans[vn].style.display="none",vn+=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,p=this.textAnimator.renderedLetters,v=this.textProperty.currentData.l;d=v.length;var m,g,y;for(f=0;f<d;f+=1)v[f].n?h+=1:(g=this.textSpans[f],y=this.textPaths[f],m=p[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 x=this.innerElem.getBBox();this.currentBBox.w!==x.width&&(this.currentBBox.w=x.width,this.svgElement.setAttribute("width",x.width)),this.currentBBox.h!==x.height&&(this.currentBBox.h=x.height,this.svgElement.setAttribute("height",x.height));var Pn=1;if(this.currentBBox.w!==x.width+Pn*2||this.currentBBox.h!==x.height+Pn*2||this.currentBBox.x!==x.x-Pn||this.currentBBox.y!==x.y-Pn){this.currentBBox.w=x.width+Pn*2,this.currentBBox.h=x.height+Pn*2,this.currentBBox.x=x.x-Pn,this.currentBBox.y=x.y-Pn,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),c=this.svgElement.style;var b="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";c.transform=b,c.webkitTransform=b}}}};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,p=c.ks.or.k.length;for(h=0;h<p;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 p=this.pe.v+"px",v="0px 0px 0px",m="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";d.perspective=p,d.webkitPerspective=p,h.transformOrigin=v,h.mozTransformOrigin=v,h.webkitTransformOrigin=v,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 p=Math.sqrt(Math.pow(h[0],2)+Math.pow(h[1],2)+Math.pow(h[2],2)),v=[h[0]/p,h[1]/p,h[2]/p],m=Math.sqrt(v[2]*v[2]+v[0]*v[0]),g=Math.atan2(v[1],m),y=Math.atan2(v[0],-v[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 x=!this._prevMat.equals(this.mat);if((x||this.pe._mdf)&&this.comp.threeDElements){f=this.comp.threeDElements.length;var Pn,b,j;for(u=0;u<f;u+=1)if(Pn=this.comp.threeDElements[u],Pn.type==="3d"){if(x){var re=this.mat.toCSS();j=Pn.container.style,j.transform=re,j.webkitTransform=re}this.pe._mdf&&(b=Pn.perspectiveElem.style,b.perspective=this.pe.v+"px",b.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,p,v,m;h<u;)this.elements[h]&&this.elements[h]!==!0&&this.elements[h].getBaseElement&&(v=this.elements[h],m=this.layers[h].ddd?this.getThreeDContainerByPos(h):v.getBaseElement(),p=m||p),h+=1;p?(!d.ddd||!this.supports3d)&&this.layerElement.insertBefore(f,p):(!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 p=createTag("div");if(styleDiv(p),u==="3d"){d=f.style,d.width=this.globalData.compSize.w+"px",d.height=this.globalData.compSize.h+"px";var v="50% 50%";d.webkitTransformOrigin=v,d.mozTransformOrigin=v,d.transformOrigin=v,h=p.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(p);var g={container:p,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,p;h<u;)this.elements[h]&&this.elements[h].getBaseElement&&(p=this.elements[h].getBaseElement()),h+=1;p?this.threeDElements[f].container.insertBefore(c,p):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 p=createNS("defs");h.appendChild(p),this.data=c,this.setupGlobalData(c,h),this.globalData.defs=p,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,p,v,m;d>f?(h=c/this.globalData.compSize.w,p=c/this.globalData.compSize.w,v=0,m=(u-this.globalData.compSize.h*(c/this.globalData.compSize.w))/2):(h=u/this.globalData.compSize.h,p=u/this.globalData.compSize.h,v=(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,"+p+",0,0,0,0,1,0,"+v+","+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,p=52,v="random",m=u.pow(d,h),g=u.pow(2,p),y=g*2,x=d-1,Pn;function b(J,gn,zn){var Vn=[];gn=gn===!0?{entropy:!0}:gn||{};var Kn=Fn(vn(gn.entropy?[J,w(c)]:J===null?Bn():J,3),Vn),Un=new j(Vn),Qn=function(){for(var Yn=Un.g(h),Zn=m,nr=0;Yn<g;)Yn=(Yn+nr)*d,Zn*=d,nr=Un.g(1);for(;Yn>=y;)Yn/=2,Zn/=2,nr>>>=1;return(Yn+nr)/Zn};return Qn.int32=function(){return Un.g(4)|0},Qn.quick=function(){return Un.g(4)/4294967296},Qn.double=Qn,Fn(w(Un.S),c),(gn.pass||zn||function(Jn,Yn,Zn,nr){return nr&&(nr.S&&re(nr,Un),Jn.state=function(){return re(Un,{})}),Zn?(u[v]=Jn,Yn):Jn})(Qn,Kn,"global"in gn?gn.global:this==u,gn.state)}u["seed"+v]=b;function j(J){var gn,zn=J.length,Vn=this,Kn=0,Un=Vn.i=Vn.j=0,Qn=Vn.S=[];for(zn||(J=[zn++]);Kn<d;)Qn[Kn]=Kn++;for(Kn=0;Kn<d;Kn++)Qn[Kn]=Qn[Un=x&Un+J[Kn%zn]+(gn=Qn[Kn])],Qn[Un]=gn;Vn.g=function(Jn){for(var Yn,Zn=0,nr=Vn.i,sr=Vn.j,ur=Vn.S;Jn--;)Yn=ur[nr=x&nr+1],Zn=Zn*d+ur[x&(ur[nr]=ur[sr=x&sr+Yn])+(ur[sr]=Yn)];return Vn.i=nr,Vn.j=sr,Zn}}function re(J,gn){return gn.i=J.i,gn.j=J.j,gn.S=J.S.slice(),gn}function vn(J,gn){var zn=[],Vn=_typeof$2(J),Kn;if(gn&&Vn=="object")for(Kn in J)try{zn.push(vn(J[Kn],gn-1))}catch{}return zn.length?zn:Vn=="string"?J:J+"\0"}function Fn(J,gn){for(var zn=J+"",Vn,Kn=0;Kn<zn.length;)gn[x&Kn]=x&(Vn^=gn[x&Kn]*19)+zn.charCodeAt(Kn++);return w(gn)}function Bn(){try{var J=new Uint8Array(d);return(f.crypto||f.msCrypto).getRandomValues(J),w(J)}catch{var gn=f.navigator,zn=gn&&gn.plugins;return[+new Date,f,zn,f.screen,w(c)]}}function w(J){return String.fromCharCode.apply(0,J)}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,p=c.length,v=u.length,m=[];h<p||h<v;)(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,p=c.length,v=u.length,m=[];h<p||h<v;)(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 p,v;if($bm_isInstanceOfArray(c)&&isNumerable(d,u)){for(v=c.length,h=createTypedArray("float32",v),p=0;p<v;p+=1)h[p]=c[p]*u;return h}if(isNumerable(f,c)&&$bm_isInstanceOfArray(u)){for(v=u.length,h=createTypedArray("float32",v),p=0;p<v;p+=1)h[p]=c*u[p];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 p,v;if($bm_isInstanceOfArray(c)&&isNumerable(d,u)){for(v=c.length,h=createTypedArray("float32",v),p=0;p<v;p+=1)h[p]=c[p]/u;return h}if(isNumerable(f,c)&&$bm_isInstanceOfArray(u)){for(v=u.length,h=createTypedArray("float32",v),p=0;p<v;p+=1)h[p]=c/u[p];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),p=Math.min(u,f,d),v,m,g=(h+p)/2;if(h===p)v=0,m=0;else{var y=h-p;switch(m=g>.5?y/(2-h-p):y/(h+p),h){case u:v=(f-d)/y+(f<d?6:0);break;case f:v=(d-u)/y+2;break;case d:v=(u-f)/y+4;break}v/=6}return[v,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,p,v;if(f===0)h=d,v=d,p=d;else{var m=d<.5?d*(1+f):d+f-d*f,g=2*d-m;h=hue2rgb(g,m,u+1/3),p=hue2rgb(g,m,u),v=hue2rgb(g,m,u-1/3)}return[h,p,v,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 p=f;f=u,u=p}if(c<=u)return d;if(c>=f)return h;var v=f===u?0:(c-u)/(f-u);if(!d.length)return d+(h-d)*v;var m,g=d.length,y=createTypedArray("float32",g);for(m=0;m<g;m+=1)y[m]=d[m]+(h[m]-d[m])*v;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),p=BMMath.random();for(f=0;f<d;f+=1)h[f]=c[f]+p*(u[f]-c[f]);return h}c===void 0&&(c=0);var v=BMMath.random();return c+v*(u-c)}function createPath(c,u,f,d){var h,p=c.length,v=shapePool.newElement();v.setPathData(!!d,p);var m=[0,0],g,y;for(h=0;h<p;h+=1)g=u&&u[h]?u[h]:m,y=f&&f[h]?f[h]:m,v.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 v}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,p=this.pv.length?this.pv.length:1,v=createTypedArray("float32",p);u=5;var m=Math.floor(time*u);for(d=0,h=0;d<m;){for(h=0;h<p;h+=1)v[h]+=-f+f*2*BMMath.random();d+=1}var g=time*u,y=g-Math.floor(g),x=createTypedArray("float32",p);if(p>1){for(h=0;h<p;h+=1)x[h]=this.pv[h]+v[h]+(-f+f*2*BMMath.random())*y;return x}return this.pv+v[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,p){h===void 0?(h=f,p=d):u=(u-f)/(d-f),u>1?u=1:u<0&&(u=0);var v=c(u);if($bm_isInstanceOfArray(h)){var m,g=h.length,y=createTypedArray("float32",g);for(m=0;m<g;m+=1)y[m]=(p[m]-h[m])*v+h[m];return y}return(p-h)*v+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 p={};return p.index=d,p.time=h/elem.comp.globalData.frameRate,p}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 p(){d+=1}function v(){d-=1,d===0&&g()}function m(y){h.indexOf(y)===-1&&h.push(y)}function g(){var y,x=h.length;for(y=0;y<x;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=p,f.renderer.globalData.popExpression=v,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),p,v=d.viewData.length;for(p=0;p<v;p+=1)h[p]=new c(d.viewData[p],d.masksProperties[p]);var m=function(y){for(p=0;p<v;){if(d.masksProperties[p].nm===y)return h[p];p+=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(v,m,g){Object.defineProperty(v,"velocity",{get:function(){return m.getVelocityAtTime(m.comp.currentFrame)}}),v.numKeys=m.keyframes?m.keyframes.length:0,v.key=function(y){if(!v.numKeys)return 0;var x="";"s"in m.keyframes[y-1]?x=m.keyframes[y-1].s:"e"in m.keyframes[y-2]?x=m.keyframes[y-2].e:x=m.keyframes[y-2].s;var Pn=g==="unidimensional"?new Number(x):Object.assign({},x);return Pn.time=m.keyframes[y-1].t/m.elem.comp.globalData.frameRate,Pn.value=g==="unidimensional"?x[0]:x,Pn},v.valueAtTime=m.getValueAtTime,v.speedAtTime=m.getSpeedAtTime,v.velocityAtTime=m.getVelocityAtTime,v.propertyGroup=m.propertyGroup}function d(v){(!v||!("pv"in v))&&(v=c);var m=1/v.mult,g=v.pv*m,y=new Number(g);return y.value=g,f(y,v,"unidimensional"),function(){return v.k&&v.getValue(),g=v.v*m,y.value!==g&&(y=new Number(g),y.value=g,f(y,v,"unidimensional")),y}}function h(v){(!v||!("pv"in v))&&(v=u);var m=1/v.mult,g=v.data&&v.data.l||v.pv.length,y=createTypedArray("float32",g),x=createTypedArray("float32",g);return y.value=x,f(y,v,"multidimensional"),function(){v.k&&v.getValue();for(var Pn=0;Pn<g;Pn+=1)x[Pn]=v.v[Pn]*m,y[Pn]=x[Pn];return y}}function p(){return c}return function(v){return v?v.propType==="unidimensional"?d(v):h(v):p}}(),TransformExpressionInterface=function(){return function(c){function u(v){switch(v){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,p;return c.p?p=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?p():[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 x=new Matrix;if(y!==void 0){var Pn=this._elem.finalTransform.mProp.getValueAtTime(y);Pn.clone(x)}else{var b=this._elem.finalTransform.mProp;b.applyToMatrix(x)}return x}function u(y,x){var Pn=this.getMatrix(x);return Pn.props[12]=0,Pn.props[13]=0,Pn.props[14]=0,this.applyPoint(Pn,y)}function f(y,x){var Pn=this.getMatrix(x);return this.applyPoint(Pn,y)}function d(y,x){var Pn=this.getMatrix(x);return Pn.props[12]=0,Pn.props[13]=0,Pn.props[14]=0,this.invertPoint(Pn,y)}function h(y,x){var Pn=this.getMatrix(x);return this.invertPoint(Pn,y)}function p(y,x){if(this._elem.hierarchy&&this._elem.hierarchy.length){var Pn,b=this._elem.hierarchy.length;for(Pn=0;Pn<b;Pn+=1)this._elem.hierarchy[Pn].finalTransform.mProp.applyToMatrix(y)}return y.applyToPointArray(x[0],x[1],x[2]||0)}function v(y,x){if(this._elem.hierarchy&&this._elem.hierarchy.length){var Pn,b=this._elem.hierarchy.length;for(Pn=0;Pn<b;Pn+=1)this._elem.hierarchy[Pn].finalTransform.mProp.applyToMatrix(y)}return y.inversePoint(x)}function m(y){var x=new Matrix;if(x.reset(),this._elem.finalTransform.mProp.applyToMatrix(x),this._elem.hierarchy&&this._elem.hierarchy.length){var Pn,b=this._elem.hierarchy.length;for(Pn=0;Pn<b;Pn+=1)this._elem.hierarchy[Pn].finalTransform.mProp.applyToMatrix(x);return x.inversePoint(y)}return x.inversePoint(y)}function g(){return[1,1,1,1]}return function(y){var x;function Pn(vn){j.mask=new MaskManagerInterface(vn,y)}function b(vn){j.effect=vn}function j(vn){switch(vn){case"ADBE Root Vectors Group":case"Contents":case 2:return j.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return x;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return j.effect;case"ADBE Text Properties":return j.textInterface;default:return null}}j.getMatrix=c,j.invertPoint=v,j.applyPoint=p,j.toWorld=f,j.toWorldVec=u,j.fromWorld=h,j.fromWorldVec=d,j.toComp=f,j.fromComp=m,j.sampleImage=g,j.sourceRectAtTime=y.sourceRectAtTime.bind(y),j._elem=y,x=TransformExpressionInterface(y.finalTransform.mProp);var re=getDescriptor(x,"anchorPoint");return Object.defineProperties(j,{hasParent:{get:function(){return y.hierarchy.length}},parent:{get:function(){return y.hierarchy[0].layerInterface}},rotation:getDescriptor(x,"rotation"),scale:getDescriptor(x,"scale"),position:getDescriptor(x,"position"),opacity:getDescriptor(x,"opacity"),anchorPoint:re,anchor_point:re,transform:{get:function(){return x}},active:{get:function(){return y.isInRange}}}),j.startTime=y.data.st,j.index=y.data.ind,j.source=y.data.refId,j.height=y.data.ty===0?y.data.h:100,j.width=y.data.ty===0?y.data.w:100,j.inPoint=y.data.ip/y.comp.globalData.frameRate,j.outPoint=y.data.op/y.comp.globalData.frameRate,j._name=y.data.nm,j.registerMaskInterface=Pn,j.registerEffectsInterface=b,j}}(),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,p){if(h.effectsManager){var v=[],m=h.data.ef,g,y=h.effectsManager.effectElements.length;for(g=0;g<y;g+=1)v.push(f(m[g],h.effectsManager.effectElements[g],p,h));var x=h.data.ef||[],Pn=function(j){for(g=0,y=x.length;g<y;){if(j===x[g].nm||j===x[g].mn||j===x[g].ix)return v[g];g+=1}return null};return Object.defineProperty(Pn,"numProperties",{get:function(){return x.length}}),Pn}return null}function f(h,p,v,m){function g(j){for(var re=h.ef,vn=0,Fn=re.length;vn<Fn;){if(j===re[vn].nm||j===re[vn].mn||j===re[vn].ix)return re[vn].ty===5?x[vn]:x[vn]();vn+=1}throw new Error}var y=propertyGroupFactory(g,v),x=[],Pn,b=h.ef.length;for(Pn=0;Pn<b;Pn+=1)h.ef[Pn].ty===5?x.push(f(h.ef[Pn],p.effectElements[Pn],p.effectElements[Pn].propertyGroup,m)):x.push(d(p.effectElements[Pn],h.ef[Pn].ty,m,y));return h.mn==="ADBE Color Control"&&Object.defineProperty(g,"color",{get:function(){return x[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,p,v,m){var g=ExpressionPropertyInterface(h.p);function y(){return p===10?v.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 p(m){return m==="Shape"||m==="shape"||m==="Path"||m==="path"||m==="ADBE Vector Shape"||m===2?p.path:null}var v=propertyGroupFactory(p,d);return h.setGroupProperty(PropertyInterface("Path",v)),Object.defineProperties(p,{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}}),p}}(),ShapeExpressionInterface=function(){function c(re,vn,Fn){var Bn=[],w,J=re?re.length:0;for(w=0;w<J;w+=1)re[w].ty==="gr"?Bn.push(f(re[w],vn[w],Fn)):re[w].ty==="fl"?Bn.push(d(re[w],vn[w],Fn)):re[w].ty==="st"?Bn.push(v(re[w],vn[w],Fn)):re[w].ty==="tm"?Bn.push(m(re[w],vn[w],Fn)):re[w].ty==="tr"||(re[w].ty==="el"?Bn.push(y(re[w],vn[w],Fn)):re[w].ty==="sr"?Bn.push(x(re[w],vn[w],Fn)):re[w].ty==="sh"?Bn.push(ShapePathInterface(re[w],vn[w],Fn)):re[w].ty==="rc"?Bn.push(Pn(re[w],vn[w],Fn)):re[w].ty==="rd"?Bn.push(b(re[w],vn[w],Fn)):re[w].ty==="rp"?Bn.push(j(re[w],vn[w],Fn)):re[w].ty==="gf"?Bn.push(h(re[w],vn[w],Fn)):Bn.push(p(re[w],vn[w])));return Bn}function u(re,vn,Fn){var Bn,w=function(zn){for(var Vn=0,Kn=Bn.length;Vn<Kn;){if(Bn[Vn]._name===zn||Bn[Vn].mn===zn||Bn[Vn].propertyIndex===zn||Bn[Vn].ix===zn||Bn[Vn].ind===zn)return Bn[Vn];Vn+=1}return typeof zn=="number"?Bn[zn-1]:null};w.propertyGroup=propertyGroupFactory(w,Fn),Bn=c(re.it,vn.it,w.propertyGroup),w.numProperties=Bn.length;var J=g(re.it[re.it.length-1],vn.it[vn.it.length-1],w.propertyGroup);return w.transform=J,w.propertyIndex=re.cix,w._name=re.nm,w}function f(re,vn,Fn){var Bn=function(zn){switch(zn){case"ADBE Vectors Group":case"Contents":case 2:return Bn.content;default:return Bn.transform}};Bn.propertyGroup=propertyGroupFactory(Bn,Fn);var w=u(re,vn,Bn.propertyGroup),J=g(re.it[re.it.length-1],vn.it[vn.it.length-1],Bn.propertyGroup);return Bn.content=w,Bn.transform=J,Object.defineProperty(Bn,"_name",{get:function(){return re.nm}}),Bn.numProperties=re.np,Bn.propertyIndex=re.ix,Bn.nm=re.nm,Bn.mn=re.mn,Bn}function d(re,vn,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(vn.c)},opacity:{get:ExpressionPropertyInterface(vn.o)},_name:{value:re.nm},mn:{value:re.mn}}),vn.c.setGroupProperty(PropertyInterface("Color",Fn)),vn.o.setGroupProperty(PropertyInterface("Opacity",Fn)),Bn}function h(re,vn,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(vn.s)},endPoint:{get:ExpressionPropertyInterface(vn.e)},opacity:{get:ExpressionPropertyInterface(vn.o)},type:{get:function(){return"a"}},_name:{value:re.nm},mn:{value:re.mn}}),vn.s.setGroupProperty(PropertyInterface("Start Point",Fn)),vn.e.setGroupProperty(PropertyInterface("End Point",Fn)),vn.o.setGroupProperty(PropertyInterface("Opacity",Fn)),Bn}function p(){function re(){return null}return re}function v(re,vn,Fn){var Bn=propertyGroupFactory(Kn,Fn),w=propertyGroupFactory(Vn,Bn);function J(Un){Object.defineProperty(Vn,re.d[Un].nm,{get:ExpressionPropertyInterface(vn.d.dataProps[Un].p)})}var gn,zn=re.d?re.d.length:0,Vn={};for(gn=0;gn<zn;gn+=1)J(gn),vn.d.dataProps[gn].p.setGroupProperty(w);function Kn(Un){return Un==="Color"||Un==="color"?Kn.color:Un==="Opacity"||Un==="opacity"?Kn.opacity:Un==="Stroke Width"||Un==="stroke width"?Kn.strokeWidth:null}return Object.defineProperties(Kn,{color:{get:ExpressionPropertyInterface(vn.c)},opacity:{get:ExpressionPropertyInterface(vn.o)},strokeWidth:{get:ExpressionPropertyInterface(vn.w)},dash:{get:function(){return Vn}},_name:{value:re.nm},mn:{value:re.mn}}),vn.c.setGroupProperty(PropertyInterface("Color",Bn)),vn.o.setGroupProperty(PropertyInterface("Opacity",Bn)),vn.w.setGroupProperty(PropertyInterface("Stroke Width",Bn)),Kn}function m(re,vn,Fn){function Bn(J){return J===re.e.ix||J==="End"||J==="end"?Bn.end:J===re.s.ix?Bn.start:J===re.o.ix?Bn.offset:null}var w=propertyGroupFactory(Bn,Fn);return Bn.propertyIndex=re.ix,vn.s.setGroupProperty(PropertyInterface("Start",w)),vn.e.setGroupProperty(PropertyInterface("End",w)),vn.o.setGroupProperty(PropertyInterface("Offset",w)),Bn.propertyIndex=re.ix,Bn.propertyGroup=Fn,Object.defineProperties(Bn,{start:{get:ExpressionPropertyInterface(vn.s)},end:{get:ExpressionPropertyInterface(vn.e)},offset:{get:ExpressionPropertyInterface(vn.o)},_name:{value:re.nm}}),Bn.mn=re.mn,Bn}function g(re,vn,Fn){function Bn(J){return re.a.ix===J||J==="Anchor Point"?Bn.anchorPoint:re.o.ix===J||J==="Opacity"?Bn.opacity:re.p.ix===J||J==="Position"?Bn.position:re.r.ix===J||J==="Rotation"||J==="ADBE Vector Rotation"?Bn.rotation:re.s.ix===J||J==="Scale"?Bn.scale:re.sk&&re.sk.ix===J||J==="Skew"?Bn.skew:re.sa&&re.sa.ix===J||J==="Skew Axis"?Bn.skewAxis:null}var w=propertyGroupFactory(Bn,Fn);return vn.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",w)),vn.transform.mProps.p.setGroupProperty(PropertyInterface("Position",w)),vn.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",w)),vn.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",w)),vn.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",w)),vn.transform.mProps.sk&&(vn.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",w)),vn.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",w))),vn.transform.op.setGroupProperty(PropertyInterface("Opacity",w)),Object.defineProperties(Bn,{opacity:{get:ExpressionPropertyInterface(vn.transform.mProps.o)},position:{get:ExpressionPropertyInterface(vn.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(vn.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(vn.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(vn.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(vn.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(vn.transform.mProps.sa)},_name:{value:re.nm}}),Bn.ty="tr",Bn.mn=re.mn,Bn.propertyGroup=Fn,Bn}function y(re,vn,Fn){function Bn(gn){return re.p.ix===gn?Bn.position:re.s.ix===gn?Bn.size:null}var w=propertyGroupFactory(Bn,Fn);Bn.propertyIndex=re.ix;var J=vn.sh.ty==="tm"?vn.sh.prop:vn.sh;return J.s.setGroupProperty(PropertyInterface("Size",w)),J.p.setGroupProperty(PropertyInterface("Position",w)),Object.defineProperties(Bn,{size:{get:ExpressionPropertyInterface(J.s)},position:{get:ExpressionPropertyInterface(J.p)},_name:{value:re.nm}}),Bn.mn=re.mn,Bn}function x(re,vn,Fn){function Bn(gn){return re.p.ix===gn?Bn.position:re.r.ix===gn?Bn.rotation:re.pt.ix===gn?Bn.points:re.or.ix===gn||gn==="ADBE Vector Star Outer Radius"?Bn.outerRadius:re.os.ix===gn?Bn.outerRoundness:re.ir&&(re.ir.ix===gn||gn==="ADBE Vector Star Inner Radius")?Bn.innerRadius:re.is&&re.is.ix===gn?Bn.innerRoundness:null}var w=propertyGroupFactory(Bn,Fn),J=vn.sh.ty==="tm"?vn.sh.prop:vn.sh;return Bn.propertyIndex=re.ix,J.or.setGroupProperty(PropertyInterface("Outer Radius",w)),J.os.setGroupProperty(PropertyInterface("Outer Roundness",w)),J.pt.setGroupProperty(PropertyInterface("Points",w)),J.p.setGroupProperty(PropertyInterface("Position",w)),J.r.setGroupProperty(PropertyInterface("Rotation",w)),re.ir&&(J.ir.setGroupProperty(PropertyInterface("Inner Radius",w)),J.is.setGroupProperty(PropertyInterface("Inner Roundness",w))),Object.defineProperties(Bn,{position:{get:ExpressionPropertyInterface(J.p)},rotation:{get:ExpressionPropertyInterface(J.r)},points:{get:ExpressionPropertyInterface(J.pt)},outerRadius:{get:ExpressionPropertyInterface(J.or)},outerRoundness:{get:ExpressionPropertyInterface(J.os)},innerRadius:{get:ExpressionPropertyInterface(J.ir)},innerRoundness:{get:ExpressionPropertyInterface(J.is)},_name:{value:re.nm}}),Bn.mn=re.mn,Bn}function Pn(re,vn,Fn){function Bn(gn){return re.p.ix===gn?Bn.position:re.r.ix===gn?Bn.roundness:re.s.ix===gn||gn==="Size"||gn==="ADBE Vector Rect Size"?Bn.size:null}var w=propertyGroupFactory(Bn,Fn),J=vn.sh.ty==="tm"?vn.sh.prop:vn.sh;return Bn.propertyIndex=re.ix,J.p.setGroupProperty(PropertyInterface("Position",w)),J.s.setGroupProperty(PropertyInterface("Size",w)),J.r.setGroupProperty(PropertyInterface("Rotation",w)),Object.defineProperties(Bn,{position:{get:ExpressionPropertyInterface(J.p)},roundness:{get:ExpressionPropertyInterface(J.r)},size:{get:ExpressionPropertyInterface(J.s)},_name:{value:re.nm}}),Bn.mn=re.mn,Bn}function b(re,vn,Fn){function Bn(gn){return re.r.ix===gn||gn==="Round Corners 1"?Bn.radius:null}var w=propertyGroupFactory(Bn,Fn),J=vn;return Bn.propertyIndex=re.ix,J.rd.setGroupProperty(PropertyInterface("Radius",w)),Object.defineProperties(Bn,{radius:{get:ExpressionPropertyInterface(J.rd)},_name:{value:re.nm}}),Bn.mn=re.mn,Bn}function j(re,vn,Fn){function Bn(gn){return re.c.ix===gn||gn==="Copies"?Bn.copies:re.o.ix===gn||gn==="Offset"?Bn.offset:null}var w=propertyGroupFactory(Bn,Fn),J=vn;return Bn.propertyIndex=re.ix,J.c.setGroupProperty(PropertyInterface("Copies",w)),J.o.setGroupProperty(PropertyInterface("Offset",w)),Object.defineProperties(Bn,{copies:{get:ExpressionPropertyInterface(J.c)},offset:{get:ExpressionPropertyInterface(J.o)},_name:{value:re.nm}}),Bn.mn=re.mn,Bn}return function(re,vn,Fn){var Bn;function w(gn){if(typeof gn=="number")return gn=gn===void 0?1:gn,gn===0?Fn:Bn[gn-1];for(var zn=0,Vn=Bn.length;zn<Vn;){if(Bn[zn]._name===gn)return Bn[zn];zn+=1}return null}function J(){return Fn}return w.propertyGroup=propertyGroupFactory(w,J),Bn=c(re,vn,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="",p=d.getFootageData();function v(){return h="",p=d.getFootageData(),m}function m(g){if(p[g])return h=g,p=p[g],_typeof(p)==="object"?m:p;var y=g.indexOf(h);if(y!==-1){var x=parseInt(g.substr(y+h.length),10);return p=p[x],_typeof(p)==="object"?m:p}return""}return v},u=function(d){function h(p){return p==="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(v,m,g){m.x&&(g.k=!0,g.x=!0,g.initiateExpression=ExpressionManager.initiateExpression,g.effectsSequence.push(g.initiateExpression(v,m,g).bind(g)))}function u(v){return v*=this.elem.globalData.frameRate,v-=this.offsetTime,v!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<v?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(v,this._cachingAtTime),this._cachingAtTime.lastFrame=v),this._cachingAtTime.value}function f(v){var m=-.01,g=this.getValueAtTime(v),y=this.getValueAtTime(v+m),x=0;if(g.length){var Pn;for(Pn=0;Pn<g.length;Pn+=1)x+=Math.pow(y[Pn]-g[Pn],2);x=Math.sqrt(x)*100}else x=0;return x}function d(v){if(this.vel!==void 0)return this.vel;var m=-.001,g=this.getValueAtTime(v),y=this.getValueAtTime(v+m),x;if(g.length){x=createTypedArray("float32",g.length);var Pn;for(Pn=0;Pn<g.length;Pn+=1)x[Pn]=(y[Pn]-g[Pn])/m}else x=(y-g)/m;return x}function h(){return this.pv}function p(v){this.propertyGroup=v}return{searchExpressions:c,getSpeedAtTime:f,getVelocityAtTime:d,getValueAtTime:u,getStaticValueAtTime:h,setGroupProperty:p}}();function addPropertyDecorator(){function c(b,j,re){if(!this.k||!this.keyframes)return this.pv;b=b?b.toLowerCase():"";var vn=this.comp.renderedFrame,Fn=this.keyframes,Bn=Fn[Fn.length-1].t;if(vn<=Bn)return this.pv;var w,J;re?(j?w=Math.abs(Bn-this.elem.comp.globalData.frameRate*j):w=Math.max(0,Bn-this.elem.data.ip),J=Bn-w):((!j||j>Fn.length-1)&&(j=Fn.length-1),J=Fn[Fn.length-1-j].t,w=Bn-J);var gn,zn,Vn;if(b==="pingpong"){var Kn=Math.floor((vn-J)/w);if(Kn%2!==0)return this.getValueAtTime((w-(vn-J)%w+J)/this.comp.globalData.frameRate,0)}else if(b==="offset"){var Un=this.getValueAtTime(J/this.comp.globalData.frameRate,0),Qn=this.getValueAtTime(Bn/this.comp.globalData.frameRate,0),Jn=this.getValueAtTime(((vn-J)%w+J)/this.comp.globalData.frameRate,0),Yn=Math.floor((vn-J)/w);if(this.pv.length){for(Vn=new Array(Un.length),zn=Vn.length,gn=0;gn<zn;gn+=1)Vn[gn]=(Qn[gn]-Un[gn])*Yn+Jn[gn];return Vn}return(Qn-Un)*Yn+Jn}else if(b==="continue"){var Zn=this.getValueAtTime(Bn/this.comp.globalData.frameRate,0),nr=this.getValueAtTime((Bn-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(Vn=new Array(Zn.length),zn=Vn.length,gn=0;gn<zn;gn+=1)Vn[gn]=Zn[gn]+(Zn[gn]-nr[gn])*((vn-Bn)/this.comp.globalData.frameRate)/5e-4;return Vn}return Zn+(Zn-nr)*((vn-Bn)/.001)}return this.getValueAtTime(((vn-J)%w+J)/this.comp.globalData.frameRate,0)}function u(b,j,re){if(!this.k)return this.pv;b=b?b.toLowerCase():"";var vn=this.comp.renderedFrame,Fn=this.keyframes,Bn=Fn[0].t;if(vn>=Bn)return this.pv;var w,J;re?(j?w=Math.abs(this.elem.comp.globalData.frameRate*j):w=Math.max(0,this.elem.data.op-Bn),J=Bn+w):((!j||j>Fn.length-1)&&(j=Fn.length-1),J=Fn[j].t,w=J-Bn);var gn,zn,Vn;if(b==="pingpong"){var Kn=Math.floor((Bn-vn)/w);if(Kn%2===0)return this.getValueAtTime(((Bn-vn)%w+Bn)/this.comp.globalData.frameRate,0)}else if(b==="offset"){var Un=this.getValueAtTime(Bn/this.comp.globalData.frameRate,0),Qn=this.getValueAtTime(J/this.comp.globalData.frameRate,0),Jn=this.getValueAtTime((w-(Bn-vn)%w+Bn)/this.comp.globalData.frameRate,0),Yn=Math.floor((Bn-vn)/w)+1;if(this.pv.length){for(Vn=new Array(Un.length),zn=Vn.length,gn=0;gn<zn;gn+=1)Vn[gn]=Jn[gn]-(Qn[gn]-Un[gn])*Yn;return Vn}return Jn-(Qn-Un)*Yn}else if(b==="continue"){var Zn=this.getValueAtTime(Bn/this.comp.globalData.frameRate,0),nr=this.getValueAtTime((Bn+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(Vn=new Array(Zn.length),zn=Vn.length,gn=0;gn<zn;gn+=1)Vn[gn]=Zn[gn]+(Zn[gn]-nr[gn])*(Bn-vn)/.001;return Vn}return Zn+(Zn-nr)*(Bn-vn)/.001}return this.getValueAtTime((w-((Bn-vn)%w+Bn))/this.comp.globalData.frameRate,0)}function f(b,j){if(!this.k)return this.pv;if(b=(b||.4)*.5,j=Math.floor(j||5),j<=1)return this.pv;var re=this.comp.renderedFrame/this.comp.globalData.frameRate,vn=re-b,Fn=re+b,Bn=j>1?(Fn-vn)/(j-1):1,w=0,J=0,gn;this.pv.length?gn=createTypedArray("float32",this.pv.length):gn=0;for(var zn;w<j;){if(zn=this.getValueAtTime(vn+w*Bn),this.pv.length)for(J=0;J<this.pv.length;J+=1)gn[J]+=zn[J];else gn+=zn;w+=1}if(this.pv.length)for(J=0;J<this.pv.length;J+=1)gn[J]/=j;else gn/=j;return gn}function d(b){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var j=this._transformCachingAtTime.v;if(j.cloneFromProps(this.pre.props),this.appliedTransformations<1){var re=this.a.getValueAtTime(b);j.translate(-re[0]*this.a.mult,-re[1]*this.a.mult,re[2]*this.a.mult)}if(this.appliedTransformations<2){var vn=this.s.getValueAtTime(b);j.scale(vn[0]*this.s.mult,vn[1]*this.s.mult,vn[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var Fn=this.sk.getValueAtTime(b),Bn=this.sa.getValueAtTime(b);j.skewFromAxis(-Fn*this.sk.mult,Bn*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var w=this.r.getValueAtTime(b);j.rotate(-w*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var J=this.rz.getValueAtTime(b),gn=this.ry.getValueAtTime(b),zn=this.rx.getValueAtTime(b),Vn=this.or.getValueAtTime(b);j.rotateZ(-J*this.rz.mult).rotateY(gn*this.ry.mult).rotateX(zn*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 Kn=this.px.getValueAtTime(b),Un=this.py.getValueAtTime(b);if(this.data.p.z){var Qn=this.pz.getValueAtTime(b);j.translate(Kn*this.px.mult,Un*this.py.mult,-Qn*this.pz.mult)}else j.translate(Kn*this.px.mult,Un*this.py.mult,0)}else{var Jn=this.p.getValueAtTime(b);j.translate(Jn[0]*this.p.mult,Jn[1]*this.p.mult,-Jn[2]*this.p.mult)}return j}function h(){return this.v.clone(new Matrix)}var p=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(b,j,re){var vn=p(b,j,re);return vn.dynamicProperties.length?vn.getValueAtTime=d.bind(vn):vn.getValueAtTime=h.bind(vn),vn.setGroupProperty=expressionHelpers.setGroupProperty,vn};var v=PropertyFactory.getProp;PropertyFactory.getProp=function(b,j,re,vn,Fn){var Bn=v(b,j,re,vn,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=j.a===1?j.k.length:0,Bn.propertyIndex=j.ix;var w=0;return re!==0&&(w=createTypedArray("float32",j.a===1?j.k[0].s.length:j.k.length)),Bn._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:w},expressionHelpers.searchExpressions(b,j,Bn),Bn.k&&Fn.addDynamicProperty(Bn),Bn};function m(b){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),b*=this.elem.globalData.frameRate,b-=this.offsetTime,b!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<b?this._caching.lastIndex:0,this._cachingAtTime.lastTime=b,this.interpolateShape(b,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var g=ShapePropertyFactory.getConstructorFunction(),y=ShapePropertyFactory.getKeyframedConstructorFunction();function x(){}x.prototype={vertices:function(j,re){this.k&&this.getValue();var vn=this.v;re!==void 0&&(vn=this.getValueAtTime(re,0));var Fn,Bn=vn._length,w=vn[j],J=vn.v,gn=createSizedArray(Bn);for(Fn=0;Fn<Bn;Fn+=1)j==="i"||j==="o"?gn[Fn]=[w[Fn][0]-J[Fn][0],w[Fn][1]-J[Fn][1]]:gn[Fn]=[w[Fn][0],w[Fn][1]];return gn},points:function(j){return this.vertices("v",j)},inTangents:function(j){return this.vertices("i",j)},outTangents:function(j){return this.vertices("o",j)},isClosed:function(){return this.v.c},pointOnPath:function(j,re){var vn=this.v;re!==void 0&&(vn=this.getValueAtTime(re,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(vn));for(var Fn=this._segmentsLength,Bn=Fn.lengths,w=Fn.totalLength*j,J=0,gn=Bn.length,zn=0,Vn;J<gn;){if(zn+Bn[J].addedLength>w){var Kn=J,Un=vn.c&&J===gn-1?0:J+1,Qn=(w-zn)/Bn[J].addedLength;Vn=bez.getPointInSegment(vn.v[Kn],vn.v[Un],vn.o[Kn],vn.i[Un],Qn,Bn[J]);break}else zn+=Bn[J].addedLength;J+=1}return Vn||(Vn=vn.c?[vn.v[0][0],vn.v[0][1]]:[vn.v[vn._length-1][0],vn.v[vn._length-1][1]]),Vn},vectorOnPath:function(j,re,vn){j==1?j=this.v.c:j==0&&(j=.999);var Fn=this.pointOnPath(j,re),Bn=this.pointOnPath(j+.001,re),w=Bn[0]-Fn[0],J=Bn[1]-Fn[1],gn=Math.sqrt(Math.pow(w,2)+Math.pow(J,2));if(gn===0)return[0,0];var zn=vn==="tangent"?[w/gn,J/gn]:[-J/gn,w/gn];return zn},tangentOnPath:function(j,re){return this.vectorOnPath(j,re,"tangent")},normalOnPath:function(j,re){return this.vectorOnPath(j,re,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([x],g),extendPrototype([x],y),y.prototype.getValueAtTime=m,y.prototype.initiateExpression=ExpressionManager.initiateExpression;var Pn=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(b,j,re,vn,Fn){var Bn=Pn(b,j,re,vn,Fn);return Bn.propertyIndex=j.ix,Bn.lock=!1,re===3?expressionHelpers.searchExpressions(b,j.pt,Bn):re===4&&expressionHelpers.searchExpressions(b,j.ks,Bn),Bn.k&&b.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,p;for(p=0;p<f.length;p+=1)h=createNS("feMergeNode"),h.setAttribute("in",f[p]),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 p=createNS("feColorMatrix");p.setAttribute("type","matrix"),p.setAttribute("color-interpolation-filters","linearRGB"),p.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=p,p.setAttribute("result",d+"_tint_1"),c.appendChild(p),p=createNS("feColorMatrix"),p.setAttribute("type","matrix"),p.setAttribute("color-interpolation-filters","sRGB"),p.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),p.setAttribute("result",d+"_tint_2"),c.appendChild(p),this.matrixFilter=p;var v=this.createMergeNode(d,[h,d+"_tint_1",d+"_tint_2"]);c.appendChild(v)}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 p=createNS("mask"),v=createElementID();p.setAttribute("id",v),p.setAttribute("mask-type","alpha"),p.appendChild(f),this.elem.globalData.defs.appendChild(p);var m=createNS("g");for(m.setAttribute("mask","url("+getLocationHref()+"#"+v+")");c[0];)m.appendChild(c[0]);this.elem.layerElement.appendChild(m),this.masker=p,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 p;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var v=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();p="0 0 0 "+g*v+" ";var y=g*(m-v),x=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,Pn=Math.floor(y/x),b;for(b=0;b<Pn;b+=1)p+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";p+="0 "+g*10+" 0 0"}else p="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;h.setAttribute("stroke-dasharray",p)}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 j=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(j[0]*255)+","+bmFloor(j[1]*255)+","+bmFloor(j[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 p=createNS("feComponentTransfer");p.setAttribute("color-interpolation-filters","sRGB"),p.setAttribute("result",d),this.matrixFilter=p;var v=createNS("feFuncR");v.setAttribute("type","table"),p.appendChild(v),this.feFuncR=v;var m=createNS("feFuncG");m.setAttribute("type","table"),p.appendChild(m),this.feFuncG=m;var g=createNS("feFuncB");g.setAttribute("type","table"),p.appendChild(g),this.feFuncB=g,c.appendChild(p)}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],p=d[1]+" "+f[1]+" "+u[1],v=d[2]+" "+f[2]+" "+u[2];this.feFuncR.setAttribute("tableValues",h),this.feFuncG.setAttribute("tableValues",p),this.feFuncB.setAttribute("tableValues",v)}};function SVGProLevelsFilter(c,u,f,d){this.filterManager=u;var h=this.filterManager.effectElements,p=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",p)),(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",p)),(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",p)),(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",p)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(p.setAttribute("color-interpolation-filters","sRGB"),c.appendChild(p)),(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)&&(p=createNS("feComponentTransfer"),p.setAttribute("color-interpolation-filters","sRGB"),p.setAttribute("result",d),c.appendChild(p),this.feFuncRComposed=this.createFeFunc("feFuncR",p),this.feFuncGComposed=this.createFeFunc("feFuncG",p),this.feFuncBComposed=this.createFeFunc("feFuncB",p))}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 p=0,v=256,m,g=Math.min(c,u),y=Math.max(c,u),x=Array.call(null,{length:v}),Pn,b=0,j=h-d,re=u-c;p<=256;)m=p/256,m<=g?Pn=re<0?h:d:m>=y?Pn=re<0?d:h:Pn=d+j*Math.pow((m-c)/re,1/f),x[b]=Pn,b+=1,p+=256/(v-1);return x.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 p=u.container.globalData.renderConfig.filterSize,v=u.data.fs||p;c.setAttribute("x",v.x||p.x),c.setAttribute("y",v.y||p.y),c.setAttribute("width",v.width||p.width),c.setAttribute("height",v.height||p.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 x=createNS("feComposite");x.setAttribute("in",d+"_drop_shadow_3"),x.setAttribute("in2",d+"_drop_shadow_2"),x.setAttribute("operator","in"),x.setAttribute("result",d+"_drop_shadow_4"),c.appendChild(x);var Pn=this.createMergeNode(d,[d+"_drop_shadow_4",h]);c.appendChild(Pn)}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),p=f*Math.sin(d);this.feOffset.setAttribute("dx",h),this.feOffset.setAttribute("dy",p)}}};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,p=d.length;h<p&&d[h]!==c.layerElement;)h+=1;var v;h<=p-2&&(v=d[h+1]);var m=createNS("use");m.setAttribute("href","#"+u),v?f.insertBefore(m,v):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 p=createNS("symbol");p.setAttribute("id",f),this.replaceInParent(u,f),p.appendChild(u.layerElement),h.appendChild(p);var v=createNS("use");v.setAttribute("href","#"+f),d.appendChild(v),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,p=d==2?0:f;this.feGaussianBlur.setAttribute("stdDeviation",h+" "+p);var v=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",v)}};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,p=u[3].p.v,v=h?p: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(v*.01,p*.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 re={},{actionType:vn,linkPage:Fn,href:Bn}=c,{requestParams:w={}}=window.config;return vue.unref(d)!=="design"&&vn==="close"&&c.isDrillShow&&!w.drillFlag&&(re.display="none"),(vn==="link"&&(Fn||Bn)||!vn&&(Fn||Bn)||vn==="close")&&(re.cursor="pointer"),{...vue.unref(u),...re}}),{getGlobalModel:p,setGlobalModel:v,getRecordValueByKeyName:m}=vue.inject(GLOBAL_MODEL,{getGlobalModel:re=>{},setGlobalModel:(re,vn)=>{},getRecordValueByKeyName:re=>{}}),{setTemplateData:g}=vue.inject("templateOperate",{setTemplateData:re=>{}}),x=useEmitEvent(c)("click",()=>{const re=p(c.id);if(v(c.id,{...re,type:c.type,RECORD:c.data||{}}),setTimeout(()=>{v(c.id,{...re,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()}),Pn=vue.ref(),b=vue.ref(),j=()=>{const{directory:re}=c.animationSource;c.isAnimation&&Pn.value&&re&&(b.value=lottie.loadAnimation({name:`${c.keyName}-lotTie`,container:Pn.value,renderer:"svg",loop:!0,autoplay:!0,path:useImagePath(re)+"data.json"}),vue.unref(b).setSpeed(1))};return vue.watch(()=>[c.isAnimation,c.animationSource],([re])=>{re&&vue.nextTick(()=>{j()})},{immediate:!0,deep:!0}),useOnEvent(c,{click:x}),{customStyle:h,myImgUrl:f,animation:Pn,pageMode:d,onClick:x}}}),__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,p){var v;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?!((v=c.animationSource)!=null&&v.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,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:p=>{}}),h=vue.computed(()=>{var v;let p=hn(c.link);if(c.linkType==="erd"&&p!=null){let m=vue.unref(f);m[m.length-1]==="/"?m+="erdReport":m+="/erdReport",p=`${ERD_URL||m}?_t=0&uid=${p}`}if((v=c.transParams)!=null&&v.length){p.includes("?")?p+="&":p+="?";const m=[];for(const g of c.transParams){const y=d(String(g.fieldName));m.push(`${g.keyName}=${y}`)}p+=m.join("&")}return p});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,p){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,zIndex:2,name:"表格",keyName:"表格",type:"ecanTable",width:"400px",height:"240px",bordered:!1,headerFontSize:"14px",headerFontColor:"",fontSize:"14px",isUseSeq:!1,size:"default",headerFontWeight:400,isUseExport:!1,fontWeight:400,columnsFixedNum:0,scrollX:0,paginationShow:!0,isReverse:!1,simple:!1,pageSizeShow:!1,cellBackgroundColor:"",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:[]},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"}),p=vue.ref(!1),v=vue.computed(()=>vue.unref(f)!=="design"&&c.isAutoScroll),m=vue.ref({}),g=vue.ref(!1),y=vue.computed(()=>{const Sr=lodashEs.cloneDeep(c.columns);return c.isUseSeq&&Sr.unshift({title:c.seqName,dataIndex:"SEQ",align:"center",width:c.seqWidth}),c.isUseAction&&Sr.push({title:"操作",dataIndex:"ACTION",width:c.actionColumnWidth}),Sr}),x=vue.ref(),Pn=vue.ref(!1),b=usePickComponentStyle(c),j=vue.ref([]),re=vue.computed(()=>{const{height:Sr}=c;return typeof Sr=="string"?Sr:Sr.suffix==="px"?Sr.value+"px":Sr.suffix==="%"?parseFloat(vue.unref(d))*(Sr.value/100)+"px":"0"}),vn=vue.computed(()=>c.scrollX),Fn=vue.ref(parseFloat(re.value)),Bn=()=>{let Sr=0;switch(c.size){case"small":Sr=50;break;case"middle":Sr=53;break;default:Sr=65;break}return Sr},w=vue.ref(0),J=vue.ref(""),gn=vue.ref(0);vue.watchEffect(()=>{var Sr;(Sr=j.value)!=null&&Sr.length&&re.value&&setTimeout(()=>{let kr=parseFloat(re.value),Pr=document.querySelector(`#ecanTable-${c.id} .ant-table-tbody`),Br=document.querySelector(`#ecanTable-${c.id} thead.ant-table-thead`);const xr=document.querySelector(`#ecanTable-${c.id} .ant-table-summary`);let wr=0;if(Br&&(kr-=(Br==null?void 0:Br.clientHeight)||0),xr&&c.isSummaryFixed&&(wr=(xr==null?void 0:xr.clientHeight)||0,kr-=wr),c.paginationShow&&!c.isAutoScroll){let Cr=0;Cr=Bn(),Cr&&(kr-=Cr)}(Pr==null?void 0:Pr.clientHeight)>kr?Fn.value=kr:Fn.value=0,vue.nextTick(()=>{if(wr){const Cr=document.querySelector(`#ecanTable-${c.id} .ant-table-summary`),Ar=(Cr==null?void 0:Cr.clientHeight)||0;wr!==Ar&&vue.unref(Fn)&&(Fn.value=kr+wr-Ar)}c.isAutoScroll&&p.value&&setTimeout(()=>{var Dr;const Cr=document.querySelector(`#ecanTable-${c.id} .ant-table-body`);Pr=document.querySelector(`#ecanTable-${c.id} .ant-table-tbody`),Br=document.querySelector(`#ecanTable-${c.id} thead.ant-table-thead`);const Ar=Cr||Pr;w.value=(Ar==null?void 0:Ar.clientHeight)||0,gn.value=(Br==null?void 0:Br.clientHeight)||0,m.value={height:((Pr==null?void 0:Pr.clientHeight)||0)+"px"};const Tr=document.querySelector(`#ecanTable-${c.id} .ant-table-body > table`);if(J.value=(Dr=document.querySelector(`#ecanTable-${c.id} .ant-table`))==null?void 0:Dr.className,Tr){const Lr=Tr.cloneNode(!0);Tr.style.visibility="hidden",setTimeout(()=>{Ar==null||Ar.setAttribute("id","hiddenTableBody")},0);const $r=document.querySelectorAll(`#ecanTable-${c.id} .scroll-wrap`);if($r!=null&&$r.length){for(const jr of $r)jr.append(Lr.cloneNode(!0));const qr=document.querySelectorAll(`#ecanTable-${c.id} .scroll-wrap .ant-table-cell`);if(qr!=null&&qr.length)for(const jr of qr)zn(jr);const Wr=document.querySelector(`#ecanTable-${c.id} .vue3-marquee`);Wr&&Wr.addEventListener("scroll",jr=>{var Kr;document.querySelector(`#ecanTable-${c.id} .ant-table-header`).scrollLeft=((Kr=jr==null?void 0:jr.target)==null?void 0:Kr.scrollLeft)||0})}}},0)})},0)});function zn(Sr){Sr.addEventListener("click",kr=>{const Br=Vn(kr.target).getAttribute("dix");if(Br){const xr=document.querySelector(`#ecanTable-${c.id} #hiddenTableBody td[dix="${Br}"]`);xr&&xr.click()}})}function Vn(Sr){return Sr.className.includes("ant-table-cell")?Sr:Vn(Sr.parentElement)}const Kn=vue.ref([]),Un=vue.ref([]),Qn=vue.ref([]),Jn=vue.ref([]),Yn=vue.ref(0),Zn=vue.ref(1),nr=vue.ref(c.paginationPageSize||10),sr=vue.reactive([]),ur=(Sr,kr)=>{let Pr="";return Sr.forEach((Br,xr)=>{const{value:wr,rule:Cr}=Br;Br.conditions?Pr+=`(${ur(Br.conditions,Br.join)})`:wr&&Cr&&(Pr+=`value ${Cr} '${wr}'`),Pr+=`${xr===Sr.length-1?"":kr?" "+kr+" ":""}`}),Pr},Gn=(Sr=[])=>{var kr,Pr;if(Array.isArray(Sr)&&Sr.length>0){let Br=Sr.length;const xr=c.columnsFixedNum;if(c.dataType==="indicator"&&((kr=vue.unref(y))!=null&&kr.length)&&!vue.unref(y).find(wr=>{var Cr;return(Cr=wr.children)==null?void 0:Cr.length})){const{graphicConfig:{indicators:wr=[]}}=c;Sr.forEach((Cr,Ar)=>{if(vue.unref(y)[Ar])for(const Lr in vue.unref(y)[Ar])["dataIndex","title"].includes(Lr)||(Cr[Lr]=vue.unref(y)[Ar][Lr]);const Tr=wr.find(Lr=>Lr.label===Cr.title),{showLabel:Dr=""}=Tr||{};Dr&&(Cr.title=Dr)})}for(let wr=Br-1;wr>=0;wr--)(Pr=Sr[wr])!=null&&Pr.isHidden&&Sr.splice(wr,1);Br=Sr.length;for(let wr=0;wr<Br;wr++){const Cr=Sr[wr];if(wr<xr?Cr.fixed="left":Cr.fixed=!1,c.isSortByFront&&Cr.sorter){const Xr=Cr.dataIndex;Cr.sorter=(li,ci)=>li[Xr]-ci[Xr]}const{cellAlign:Ar="center",cellColor:Tr,dataIndex:Dr,title:Lr,tableFilter:$r,headerCellAlign:qr,headerCellColor:Wr,overflow:jr,conditions:Kr}=Cr;$r&&(sr.push(Dr),Cr.filterOptionsInputValue="",Cr.filterCheckboxGroupValue=[],Cr.customFilterDropdown=!0,Cr.onFilter=(Xr,li)=>li[Dr].toString().toLowerCase().includes(Xr.toLowerCase())),Kr&&(Cr.conditionCode=ur(Kr)),Cr.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:c.headerFontSize,fontWeight:c.headerFontWeight,textAlign:qr||"center",color:Wr||c.headerFontColor,borderBottomColor:c.borderColor,backgroundColor:c.headerBackgroundColor}}),Cr.customCell=(Xr,li,ci)=>({style:{textAlign:Ar,color:Wn(ci)?c.linkTextColor:Tr||c.cellFontColor,backgroundColor:c.cellBackgroundColor,borderBottomColor:c.borderColor},class:{highlight:vue.unref(Nr)===li&&c.clickHighlight,linkText:Wn(ci)},dix:ci.dataIndex+"_"+li,onClick:_r("click",()=>{const ui=c.id,Jr=gr(ui);Xr={dataIndex:Dr,title:Lr,...Xr},br(ui,{...Jr,type:c.type,RECORD:Xr}),Nr.value=li,setTimeout(()=>{if(!c.linkPage&&!c.href)return;let ei=!1;(Wn(ci)||c.clickTarget!=="cell")&&(ei=!0),ei&&handleJumpLink(c,{pageMode:vue.unref(f),getRecordValueByKeyName:Er})},0)})}),jr==="ellipsis"?Cr.ellipsis=!0:Cr.ellipsis=!1,Array.isArray(Cr.children)&&Gn(Cr.children)}}};function Wn(Sr){let kr=!1;return c.clickTarget==="cell"&&c.clickTargetColumns.includes(Sr.dataIndex)&&(kr=!0),kr}const Rn=(Sr=[])=>{var Pr;let kr=lodashEs.cloneDeep(Sr);return(Pr=vue.unref(Jn))!=null&&Pr.length&&(kr=lodashEs.cloneDeep(vue.unref(Jn))),c.isUseSeq&&kr.unshift({title:c.seqName,dataIndex:"SEQ",align:"center",width:c.seqWidth}),c.isUseAction&&kr.push({title:"操作",dataIndex:"ACTION",width:c.actionColumnWidth}),Gn(kr),kr};vue.watch(nr,()=>{Zn.value=1,Vr(!1)}),vue.watch(x,Sr=>{Pn.value=!!Sr}),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],()=>{Kn.value=Rn(lodashEs.cloneDeep(c.columns))},{immediate:!0,deep:!0}),vue.watch(()=>[c.data,c.dataType],([Sr,kr])=>{kr==="static"&&(Un.value=Sr)},{immediate:!0});const qn=vue.ref({}),Xn=Sr=>{if(Array.isArray(Sr)){const kr=Sr.length,Pr=sr,Br=Pr.length,xr={};for(let Cr=0;Cr<kr;Cr++){const Ar=Sr[Cr];for(let Tr=0;Tr<Br;Tr++){const Dr=Pr[Tr];if(xr[Dr])xr[Dr].add(Ar[Dr]);else{const Lr=new Set;Lr.add(Ar[Dr]),xr[Dr]=Lr}}}const wr={};for(const Cr in xr)if(Object.prototype.hasOwnProperty.call(xr,Cr)){const Ar=xr[Cr],Tr=Array.from(Ar);wr[Cr]=Tr.map(Dr=>({label:Dr,value:Dr}))}qn.value=wr}};vue.watch(()=>[c.isReverse,Kn.value,Un.value],()=>{const Sr=vue.unref(Kn),kr=vue.unref(Un);if(Xn(kr),c.isReverse){const{columns:Pr,dataSource:Br}=Hn(lodashEs.cloneDeep(Sr),lodashEs.cloneDeep(kr));Qn.value=Pr,j.value=Br.map(xr=>({key:nanoid(6),...xr}))}else Qn.value=Sr,j.value=kr.map(Pr=>({key:nanoid(6),...Pr}))},{immediate:!0});const Hn=(Sr,kr)=>{const Pr=Sr[0],Br=[{title:Pr.title,dataIndex:"col0",key:"col0",align:"center"}];for(let wr=0;wr<kr.length;wr++){const Cr=kr[wr],Ar="col"+(wr+1);Br.push({title:Cr[Pr.dataIndex],dataIndex:Ar,key:Ar,align:"center"})}const xr=[];for(let wr=1;wr<Sr.length;wr++){const Cr=Sr[wr],Ar={col0:Cr.title};for(let Tr=0;Tr<kr.length;Tr++){const Dr=kr[Tr];Ar[`col${Tr+1}`]=Dr[Cr.dataIndex]}xr.push(Ar)}return{columns:Br,dataSource:xr}},tr=vue.ref(""),cr=Sr=>{var Br;const{rows:kr=[],total:Pr=0}=((Br=Sr==null?void 0:Sr.data)==null?void 0:Br.data)||{};if(Yn.value=Pr,Array.isArray(kr)&&(Un.value=kr),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:xr=[]}=c,wr=xr.find(Cr=>Cr.key==="dataSqlId");if((wr==null?void 0:wr.value)==="xt_jxzebg"){const Cr=kr.filter(Ar=>!Ar.绩效总额).map(Ar=>Ar.ORG_NAME);Cr!=null&&Cr.length&&vue.nextTick(()=>{antDesignVue.notification.warning({message:"提示",description:`当前时段${Cr.join("、")}绩效数据为空`,duration:3})})}}p.value=!0},ir=useRequestData(c),er=async(Sr=!0,kr={})=>{try{Sr&&(g.value=!0),vue.unref(tr)&&(kr.orderCondition=vue.unref(tr)),c.paginationShow&&(kr={pageNum:vue.unref(Zn),pageSize:vue.unref(nr)||"10",layer:"1",...kr});const Pr=await ir(kr);cr(Pr)}catch(Pr){console.error(Pr)}finally{g.value=!1}},pr=({current:Sr},kr,Pr)=>{if(Zn.value=Sr,Pr&&Object.keys(Pr).length>0){const{field:Br,order:xr}=Pr,Cr={ascend:"asc",descend:"desc"}[xr];Br!=null&&Cr!=null&&Cr?tr.value=Br+" "+Cr:Cr||(tr.value="")}c.isSortByFront||Vr(!1)},lr=vue.computed(()=>{const Sr=c.simple,kr=[c.paginationPosition],Pr={};return c.isShowTotal&&(Pr.showTotal=Br=>`共 ${Br} 条数据`),c.paginationShow&&{simple:Sr,position:kr,total:vue.unref(Yn),current:vue.unref(Zn),pageSize:vue.unref(nr)||"10",showSizeChanger:!1,size:"large",...Pr}}),or=Sr=>+Sr==1?"是":+Sr==0?"否":Sr,ar=(Sr,kr)=>{const{format:Pr,retentiondigit:Br,customFormatter:xr,defaultVal:wr}=kr;let Cr="";if(Pr==null||Pr==="")Cr=Sr;else{const Ar={money:formatMoney,percentage:formatPercentage,contrast:formatPercentage,boolean:or,decimals:formatDecimals,custom:formatCustom};Ar[Pr]||(Cr=""),Pr==="decimals"?Cr=Ar[Pr](Sr,Br)||"":Pr==="custom"?Cr=Ar[Pr](Sr,xr)||"":Cr=Ar[Pr](Sr)||""}return Cr||(Cr=wr),Cr},vr=Sr=>Sr==="contrast"?"upDown":"",fr=Sr=>{const{text:kr,format:Pr,declineColor:Br="#39cf93",increaseColor:xr="#ff512e"}=Sr,wr={fontSize:c.fontSize};if(ii(Sr.dataIndex))return wr.display="flex",wr.justifyContent="center",wr.alignItems="center",wr;if(Pr==="contrast"){const Cr=parseFloat(kr+"");return Cr>=0?wr.color=xr:Cr<0&&(wr.color=Br),wr}else return{}},mr=vue.computed(()=>{const{fontSize:Sr}=c;return{width:Sr,height:Sr,textIndent:`-${parseFloat(Sr)*2}px`,overflow:"hidden"}}),dr=Sr=>{const{text:kr,declineColor:Pr="#39cf93",increaseColor:Br="#ff512e"}=Sr,{fontSize:xr}=c,wr=parseFloat(kr+""),Cr={width:xr,verticalAlign:"unset"};return wr>=0?Cr.filter=`drop-shadow(${Br||"#ff512e"} ${xr} -1px)`:wr<0&&(Cr.filter=`drop-shadow(${Pr||"#39cf93"} ${xr} -1px)`),Cr},hr=Sr=>{const kr=parseFloat(Sr+"");if(kr>=0)return goUp;if(kr<0)return goDown},yr=(Sr,kr,Pr,Br)=>{var Ar,Tr,Dr;const xr="#39cf93",wr="#ff512e",Cr=c.conditionList.find(Lr=>Lr.dataIndex===Sr.dataIndex);if((Ar=Cr==null?void 0:Cr.conditions)!=null&&Ar.length){const{fontSize:Lr}=c,$r={style:{width:Lr,verticalAlign:"middle"},src:""};for(const qr of Cr.conditions){const Wr=((Tr=qr==null?void 0:qr.property)==null?void 0:Tr.icon)||"";let jr=((Dr=qr==null?void 0:qr.property)==null?void 0:Dr.iconColor)||"";if(Wr){let Kr=!1;if(qr.rule&&qr.value){const Xr=`${qr.field} ${qr.rule} '${qr.value}'`;Kr=pn(Xr,{...Pr,value:kr})}else Kr=!0;Kr&&(Wr==="increase"?$r.src=topArrow:Wr==="decline"&&($r.src=downArrow),jr||(Wr==="increase"?jr=wr:Wr==="decline"&&(jr=xr)),$r.style.filter=`drop-shadow(${jr} ${Lr} -1px)`)}}if(Br===1)return $r.style;if(Br===2)return $r.src}else return""},_r=useEmitEvent(c),{getGlobalModel:gr,setGlobalModel:br,getRecordValueByKeyName:Er}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Sr=>{},setGlobalModel:(Sr,kr)=>{},getRecordValueByKeyName:Sr=>{}});br(c.id,{type:c.type,RECORD:""});const Mr=(Sr=[],kr=[])=>{let Pr=Sr.map(Br=>({title:Br,dataIndex:Br,key:Br}));vue.unref(y).find(Br=>{var xr;return(xr=Br.children)==null?void 0:xr.length})&&(Pr=lodashEs.cloneDeep(vue.unref(y))),Jn.value=lodashEs.cloneDeep(Pr),Kn.value=Rn(Pr),Un.value=kr,p.value=!0},Ir=Sr=>{var kr,Pr,Br,xr;Mr((Pr=(kr=Sr==null?void 0:Sr.data)==null?void 0:kr.data)==null?void 0:Pr.columns,(xr=(Br=Sr==null?void 0:Sr.data)==null?void 0:Br.data)==null?void 0:xr.rows)},Fr=useIndicatorData(c,Ir),Or=async(Sr=!0)=>{try{Sr&&(g.value=!0);const kr=vue.unref(tr).split(" "),Pr={};c.isSortByFront||(Pr.sort={order:kr[1],field:kr[0]});const Br=await Fr(Pr);Ir(Br)}catch(kr){console.error(kr)}finally{g.value=!1}},Nr=vue.ref(-1),{loadedData:zr}=vue.inject(LOADED_DATA,{loadedData:{}}),Rr=vue.ref(!1);vue.watch(zr,Sr=>{if(c.dataType==="indicator"){const kr=getFixedValueDatas(c.graphicConfig);kr!=null&&kr.length&&(!vue.unref(Rr)&&canRequestIndicator(c.graphicConfig,Sr)?(Rr.value=!0,Vr()):canRequestIndicator(c.graphicConfig,Sr)||(Rr.value=!1))}},{deep:!0});const Vr=(Sr=!0)=>{switch(c.dataType){case"request":er(Sr);break;case"indicator":canRequestIndicator(c.graphicConfig,vue.unref(zr))&&Or(Sr);break}},Hr=()=>{const Sr=c.id,kr=gr(Sr);br(Sr,{...kr,type:c.type,RECORD:""})},Gr=vue.computed(()=>{const Sr=vue.unref(Qn);let kr=0;const{subTotalColumn:Pr,subTotalName:Br}=c;Pr&&(kr=Sr.findIndex(Tr=>Tr.dataIndex===Pr),kr<0&&(kr=0));const xr=[];let wr=0;for(let Tr=0;Tr<Sr.length;Tr++){const Dr=Sr[Tr],{isCalcTotal:Lr}=Dr;Tr===kr?xr.push({...Dr,total:Br}):Lr?(xr.push({...Dr,index:Tr,total:0}),wr++):xr.push({...Dr})}if(wr===0)return[];const Cr=vue.unref(j),Ar=Ur(xr);for(let Tr=0;Tr<Ar.length;Tr++){const Dr=Ar[Tr];let Lr=0;const{isCalcTotal:$r,dataIndex:qr}=Dr;if($r===!0){for(let Wr=0;Wr<Cr.length;Wr++){const Kr=+Cr[Wr][qr];isNaN(Kr)||(Lr=new big_js.Big(Lr).add(Kr).toNumber())}Dr.total=Lr}}return Ar});function Ur(Sr){var Pr;const kr=[];for(const Br of Sr)(Pr=Br.children)!=null&&Pr.length?kr.push(...Ur(Br.children)):kr.push(Br);return kr}const{setRequest:Yr}=vue.inject(REQUEST_MODEL,{setRequest:Sr=>{}});typeof Yr=="function"&&Yr({id:c.id,requestFn:Vr,sortNum:c.requestSort}),u({refreshData:Vr});const Qr=(Sr="",kr)=>hn(Sr,kr),ri=Sr=>{if(Sr!=="event")return{self:"_self",blank:"_blank"}[Sr]},ti=(Sr,kr="")=>{Sr==="event"&&window.parent.postMessage({type:"openPage",url:kr},"*")},ai=(Sr,kr)=>{Sr(kr.filterCheckboxGroupValue)},vi=(Sr,kr)=>{Sr({confirm:!0}),kr.filterOptionsInputValue="",kr.filterCheckboxGroupValue=[]},hi=()=>{},oi=Sr=>{const kr=Sr.dataIndex;if(typeof kr=="string"){let Pr=vue.unref(qn)[kr];const Br=vue.unref(Sr.filterOptionsInputValue).trim();return Array.isArray(Pr)?(Pr=Pr.filter(xr=>typeof xr.label=="string"?xr.label.toLowerCase().includes(Br.toLowerCase()):!0),Pr):[]}return[]},xi=async()=>{var Dr,Lr;const Sr="EXPORT_KEY";antDesignVue.message.loading({key:Sr,content:"正在导出...",duration:0});let kr=[];if(c.dataType==="static")kr=c.data;else if(c.dataType==="request"){const $r={layer:"1"};vue.unref(tr)&&($r.orderCondition=vue.unref(tr));const qr=await ir($r);kr=((Lr=(Dr=qr==null?void 0:qr.data)==null?void 0:Dr.data)==null?void 0:Lr.rows)||{}}const Pr=vue.unref(Qn),Br=[],xr=[];Pr==null||Pr.forEach($r=>{Br.push($r.dataIndex),xr.push($r.title)});const wr=kr.map($r=>lodashEs.pick($r,Br)),Cr=xlsx.utils.book_new(),Ar=xlsx.utils.aoa_to_sheet([xr]),Tr=xlsx.utils.sheet_add_json(Ar,wr,{skipHeader:!0,origin:"A2"});xlsx.utils.book_append_sheet(Cr,Tr,"sheet"),xlsx.writeFile(Cr,"表格数据.xlsx"),antDesignVue.message.success({key:Sr,content:"导出成功"})},Ci=(Sr,kr=2)=>{const Pr=+Sr*100;return isNaN(Pr)||Pr<=0?0:Pr>=100?100:Pr.toFixed(kr)};useOnEvent(c,{resetRecord:Hr,refreshData:Vr,exportTableData:xi});const Si=(Sr,kr)=>{let Pr=null;return c.stripedShow&&(Pr=kr%2===1?"table-striped":null),Pr},pi=vue.computed(()=>{var Pr;let Sr=0;const{isTableFill:kr}=c;if(kr&&re.value){let Br=0;c.paginationShow&&((Pr=vue.unref(j))!=null&&Pr.length)&&(Br=Bn()),Sr=parseFloat(vue.unref(re))-Br}return Sr?Sr+"px":"100%"}),wi=vue.computed(()=>{const Sr=vue.unref(h)==="darkBlue";let kr="";return c.isTableFill&&(kr=c.cellBackgroundColor,kr||(mi.value==="transparent"?Sr?kr="#071655":kr="transparent":Sr?kr=mi.value:kr="transparent")),kr}),ki=vue.computed(()=>{let Sr="#071655";return c.headerBackgroundColor&&(Sr="transparent"),Sr}),mi=vue.computed(()=>{let Sr="#071655";return(c.cellBackgroundColor||c.stripedShow&&c.stripedColor)&&(Sr="transparent"),Sr}),di=vue.computed(()=>parseFloat(c.fontSize)+16),Pi=vue.computed(()=>{let Sr="";const{paginationColor:kr,paginationBgColor:Pr,activePaginationColor:Br,activePaginationBgColor:xr,hoverBackgroundColor:wr}=c;return kr&&(Sr+="p-color "),Pr&&(Sr+="p-bg-color "),Br&&(Sr+="active-p-color "),xr&&(Sr+="active-p-bg-color "),wr&&(Sr+="hover-bg-color "),Sr}),gi=(Sr,kr)=>{if(ii(Sr.dataIndex))return!1;const{conditionCode:Pr}=Sr;return pn(Pr,{value:kr})},Ei=(Sr,kr,Pr)=>{var Tr,Dr;const{overflow:Br,conditionCode:xr,attribute:wr,dataIndex:Cr}=Sr,Ar={};if(Br==="ellipsis"&&(Ar.overflow="hidden",Ar.textOverflow="ellipsis"),xr&&(wr!=null&&wr.color)&&gi(Sr,kr)&&(Ar.color=wr.color),wr!=null&&wr.icon&&(Sr==null?void 0:Sr.cellAlign)==="right"&&(Ar.display="flex",Ar.alignItems="center",Ar.justifyContent="flex-end"),ii(Cr)){const Lr=c.conditionList.find($r=>$r.dataIndex===Cr);if((Tr=Lr==null?void 0:Lr.conditions)!=null&&Tr.length){for(const $r of Lr.conditions)if((Dr=$r==null?void 0:$r.property)!=null&&Dr.color){let qr=!1;if($r.rule&&$r.value){const Wr=`${$r.field} ${$r.rule} '${$r.value}'`;qr=pn(Wr,{...Pr,value:kr})}else qr=!0;qr&&(Ar.color=$r.property.color)}}else delete Ar.color}return Ar},Ii=Sr=>{const{attribute:kr}=Sr;let Pr="";return kr!=null&&kr.icon&&(Pr=useImagePath(kr.icon)),Pr},_i=Sr=>{let kr={};return(Sr==null?void 0:Sr.cellAlign)==="right"?kr={marginRight:"5px"}:kr={position:"absolute",marginLeft:"5px"},{width:"auto",height:parseFloat(c.fontSize)+6+"px",...kr}},ni=(Sr,kr)=>Sr||Sr===0?Sr:kr==null?void 0:kr.defaultVal;function ii(Sr){var Pr;const kr=c.conditionList.find(Br=>Br.dataIndex===Sr);return!!((Pr=kr==null?void 0:kr.conditions)!=null&&Pr.length)}return{x:vn,y:Fn,style:b,pagination:lr,formatFn:ar,contrastClass:vr,tableChange:pr,summaryList:Gr,loading:g,onTouchHrefEvent:ti,handleHref:Qr,handleHrefTarget:ri,useRowIndex:Nr,tableColumns:Qn,tableDataSource:j,useFilterOptions:oi,useSetSelectedKeys:ai,onResetFilter:vi,onSearchFilterOptions:hi,exportTableData:xi,handleProgressText:Ci,pageSizeVisible:Pn,pageSize:nr,tableRef:x,rowClassName:Si,tableHeight:pi,tableBgColor:wi,tableHeaderBgColor:ki,tableBodyBgColor:mi,getChgStyle:fr,chgBoxStyle:mr,getChgBoxImgStyle:dr,getChgBoxImgSrc:hr,seqIcon1,seqIcon2,seqIcon3,iconSize:di,containerClass:Pi,getCellStyle:Ei,isMatchCondition:gi,getAttrImgSrc:Ii,getAttrImgStyle:_i,getCellText:ni,autoScrollHeight:w,autoScrollClass:J,autoScrollTop:gn,isScroll:v,scrollWrapStyle:m,isLinkStyle:Wn,hasConditionConfig:ii,formatTextByConditions:(Sr,kr,Pr)=>{var xr,wr;const Br=c.conditionList.find(Cr=>Cr.dataIndex===Sr.dataIndex);if((xr=Br==null?void 0:Br.conditions)!=null&&xr.length){let Cr=kr;for(const Ar of Br.conditions){const Tr=((wr=Ar==null?void 0:Ar.property)==null?void 0:wr.formatText)||"";if(Tr){let Dr=!1;if(Ar.rule&&Ar.value){const Lr=`${Ar.field} ${Ar.rule} '${Ar.value}'`;Dr=pn(Lr,{...Pr,value:kr})}else Dr=!0;Dr&&(Cr=hn(Tr,{textData:{...Pr,value:kr}}))}}return Cr}else return""},getChgByCondition:yr}}}),__injectCSSVars__=()=>{vue.useCssVars(c=>({fb9838fa:c.stripedColor,"0e1e480c":c.tableHeaderBgColor,"5072ecf6":c.tableBodyBgColor,c2473026:c.paginationBgColor,"7971a8f2":c.paginationColor,d8ed4a72:c.activePaginationBgColor,"36918a4c":c.activePaginationColor,b5cbdae0:c.hoverBackgroundColor}))},__setup__=__default__.setup;__default__.setup=__setup__?(c,u)=>(__injectCSSVars__(),__setup__(c,u)):__injectCSSVars__;const Table_vue_vue_type_style_index_0_scoped_1de7c2c0_lang="",Table_vue_vue_type_style_index_1_lang="",_withScopeId=c=>(vue.pushScopeId("data-v-1de7c2c0"),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,p){const v=vue.resolveComponent("a-button"),m=vue.resolveComponent("down-outlined"),g=vue.resolveComponent("right-outlined"),y=vue.resolveComponent("a-input"),x=vue.resolveComponent("a-checkbox-group"),Pn=vue.resolveComponent("a-table-summary-cell"),b=vue.resolveComponent("a-table-summary-row"),j=vue.resolveComponent("a-table-summary"),re=vue.resolveComponent("a-table"),vn=vue.resolveComponent("marquee-scroll"),Fn=vue.resolveComponent("skeleton");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["ecan-table",c.containerClass]),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(v,{class:"export-button",onClick:c.exportTableData},{default:vue.withCtx(()=>[_hoisted_3]),_:1},8,["onClick"])])):vue.createCommentVNode("",!0),vue.createVNode(re,{ref:"tableRef",class:"table",style:vue.normalizeStyle({height:c.tableHeight,backgroundColor:c.tableBgColor}),columns:c.tableColumns,"data-source":c.tableDataSource,bordered:c.bordered,size:c.size,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 J;return[(J=w.record.children)!=null&&J.length?(vue.openBlock(),vue.createElementBlock("span",_hoisted_4,[w.expanded?(vue.openBlock(),vue.createBlock(m,{key:0,onClick:gn=>w.onExpand(w.record,gn)},null,8,["onClick"])):(vue.openBlock(),vue.createBlock(g,{key:1,onClick:gn=>w.onExpand(w.record,gn)},null,8,["onClick"]))])):(vue.openBlock(),vue.createElementBlock("span",_hoisted_5,[vue.createVNode(m)]))]}),customFilterDropdown:vue.withCtx(({column:w,setSelectedKeys:J,confirm:gn,clearFilters:zn})=>[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(x,{value:w.filterCheckboxGroupValue,"onUpdate:value":Vn=>w.filterCheckboxGroupValue=Vn,class:"filter-checkbox",options:c.useFilterOptions(w),onChange:Vn=>c.useSetSelectedKeys(J,w)},null,8,["value","onUpdate:value","options","onChange"]),vue.createElementVNode("div",null,[vue.createVNode(v,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>gn()},{default:vue.withCtx(()=>[_hoisted_6]),_:2},1032,["onClick"]),vue.createVNode(v,{size:"small",style:{width:"90px"},onClick:vue.withModifiers(Vn=>c.onResetFilter(zn,w),["stop"])},{default:vue.withCtx(()=>[_hoisted_7]),_:2},1032,["onClick"])])],4)]),bodyCell:vue.withCtx(({column:w,index:J,text:gn,record:zn})=>{var Vn,Kn,Un,Qn,Jn,Yn;return[w.dataIndex==="SEQ"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[c.seqIcon?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[J===0?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"seq-icon",src:c.seqIcon1,width:c.iconSize,height:c.iconSize},null,8,_hoisted_8)):J===1?(vue.openBlock(),vue.createElementBlock("img",{key:1,class:"seq-icon",src:c.seqIcon2,width:c.iconSize,height:c.iconSize},null,8,_hoisted_9)):J>=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(J+1),5)],64)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_11,vue.toDisplayString(J+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,(Zn,nr)=>(vue.openBlock(),vue.createElementBlock("div",{class:"action",key:nr},[vue.createElementVNode("a",{href:c.handleHref(Zn.href,zn),target:c.handleHrefTarget(Zn.target),style:vue.normalizeStyle({color:Zn.color,fontSize:c.fontSize,fontWeight:c.fontWeight}),onClick:sr=>c.onTouchHrefEvent(Zn.target,c.handleHref(Zn.href,zn))},vue.toDisplayString(Zn.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(gn,w.progressTextDecimalPlaces)}%`})},null,4),vue.createElementVNode("div",{class:"progress-text",style:vue.normalizeStyle({color:+c.handleProgressText(gn)<100?w.progressTextColor||"#333":w.progressFinishedTextColor||"#fff"})},vue.toDisplayString(c.handleProgressText(gn,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,gn,zn)})},[c.isMatchCondition(w,gn)&&(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:((Kn=w==null?void 0:w.customFormatter)==null?void 0:Kn.split("{value}")[0])||""},vue.toDisplayString(((Un=w==null?void 0:w.customFormatter)==null?void 0:Un.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:gn})),title:c.hasConditionConfig(w.dataIndex)?c.formatTextByConditions(w,gn,zn):w.format!=null?c.formatFn(gn,w):gn},[!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:gn})),src:c.getChgBoxImgSrc(gn)},null,12,_hoisted_18)],4)):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString(c.hasConditionConfig(w.dataIndex)?c.formatTextByConditions(w,gn,zn):w.format!=null?c.formatFn(gn,w):c.getCellText(gn,w))+" ",1),c.hasConditionConfig(w.dataIndex)&&c.getChgByCondition(w,gn,zn,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,gn,zn,1)),src:c.getChgByCondition(w,gn,zn,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:((Qn=w==null?void 0:w.customFormatter)==null?void 0:Qn.split("{value}")[1])||""},vue.toDisplayString(((Jn=w==null?void 0:w.customFormatter)==null?void 0:Jn.split("{value}")[1])||""),9,_hoisted_20)):vue.createCommentVNode("",!0),c.isMatchCondition(w,gn)&&(w==null?void 0:w.cellAlign)!=="right"&&((Yn=w==null?void 0:w.attribute)!=null&&Yn.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(j,{key:0,fixed:c.isSummaryFixed},{default:vue.withCtx(()=>[vue.createVNode(b,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.summaryList,(w,J)=>(vue.openBlock(),vue.createBlock(Pn,{key:J,index:J,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","size","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(vn,{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-1de7c2c0"]]),EcanTable=withInstall$1(Table),mapProps={...props,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(""),p=usePickComponentStyle(c,["backgroundImage"]),v=vue.ref(),m=vue.computed(()=>useImagePath(c.geoBackgroundImage)),g=vue.computed(()=>useImagePath(c.backgroundImage)),y=vue.ref([]),x=vue.computed(()=>c.geoBackgroundImage?{image:vue.unref(v),repeat:c.geoBackgroundImageRepeat}:c.geoItemStyleAreaColor),Pn=vue.computed(()=>{const ir=c.symbolImage;return c.symbolImage?"image://"+useImagePath(ir):"circle"}),b=ir=>{let er=c.tooltipFormatter;const pr=er.match(/\{(.+?)\}/g);if(pr==null||pr.length===0)return er;for(let lr=0;lr<pr.length;lr++){const or=pr[lr];let ar=or.slice(1,-1).trim();const vr=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,fr=ar.match(vr);for(let mr=0;mr<fr.length;mr++){const dr=fr[mr],hr=ir[dr];hr!=null&&(ar=ar.replace(dr,hr))}er=er.replace(or,ar)}return er.split(`
180
- `)},j=vue.ref(!1),re=vue.ref("");let vn=new AbortController;const Fn=(ir,er)=>{const pr=vn.signal;j.value=!0,d.value=ir,u({name:ir,signal:pr}).then(lr=>{var or,ar;if(lr){const vr=((ar=(or=lr==null?void 0:lr.data)==null?void 0:or.data)==null?void 0:ar.rows)||[];let fr="";for(const mr of vr){const dr=b(mr)||[];if(dr!=null&&dr.length)for(const hr of dr)fr+=`<div style="word-break: break-all;white-space: normal;">${hr}</div>`}fr=`<div style="max-width:200px;">${fr}</div>`,h.value=fr,er(vue.unref(re),fr)}else pr.aborted?h.value="Loading":h.value=ir,er(vue.unref(re),h.value);j.value=!1})},Bn=vue.ref(),w=vue.computed(()=>c.dataType==="request"?Bn.value:c.data),J=vue.computed(()=>{const ir=[],{mapAreaStyleConfig:er}=c;if(er!=null&&er.length)for(const pr of er)ir.push({...pr,key:nanoid(6)});return ir}),gn=vue.computed(()=>{const ir=[];for(const er of vue.unref(J)){let pr="";er.value1&&(pr+=`value ${er.rule1} ${er.value1}`),er.value2&&(pr+=`${er.value1?"&&":""} value ${er.rule2} ${er.value2}`),pr&&ir.push({rule:pr,color:er.color,key:er.key})}return ir.reverse()}),zn=vue.computed(()=>{var pr;const ir=[],{areaStyleKeyName:er}=c;if((pr=vue.unref(w))!=null&&pr.length)for(const lr of vue.unref(w)){const or=lr[er];if(or||or===0){const ar=vue.unref(gn).find(vr=>pn(vr.rule,{value:or}));ar&&ir.push({name:lr.name,itemStyle:{areaColor:vue.unref(y).includes(ar.key)?c.geoItemStyleAreaColor:ar.color}})}}return ir}),Vn=vue.computed(()=>{const ir=c.geoCenter;let er;return typeof ir=="string"&&ir!==""&&(er=ir.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:er,map:`map-${c.id}`,selectedMode:"single",tooltip:{show:c.tooltipShow,trigger:"item",backgroundColor:c.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:c.tooltipTextStyleColor},formatter:(pr,lr,or)=>{re.value=lr;const{name:ar=""}=pr,{requestUrl:vr}=c.tooltipRequestData;if(!vr){let fr="",mr=c.tooltipFormatter;mr===""&&(mr="{name}:{value}");const dr=vue.unref(w).find(hr=>hr.name===ar);return dr?(fr+=hn(mr,{textData:{name:ar,...dr}},{useNewline:!0,useSpace:!0}),fr):ar}if(vue.unref(j))vue.unref(d)!==ar&&(vn.abort(),vn=new AbortController);else{if(vue.unref(d)===ar)return vue.unref(h);Fn(ar,or)}return"Loading"}},label:{show:c.geoLabelShow,color:c.geoLabelColor,fontSize:c.geoLabelFontSize},itemStyle:{areaColor:vue.unref(x),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:zn.value},series:[{type:"scatter",coordinateSystem:"geo",itemStyle:{color:c.itemStyleColor},symbol:vue.unref(Pn),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}]}}),Kn=vue.ref(!1),Un=async()=>{var pr;Kn.value=!1;const ir=c.mapJson,er=`map-${c.id}`;if(ir!=null&&ir.path){const lr=await request(((pr=window==null?void 0:window.config)==null?void 0:pr.uploadPath)+ir.path);core$1.registerMap(er,(lr==null?void 0:lr.data)||{})}else core$1.registerMap(er,{});Kn.value=!0};vue.watch(()=>c.mapJson,()=>{Un()},{immediate:!0,deep:!0});const Qn=async ir=>{var lr,or,ar,vr;const er=(or=(lr=ir==null?void 0:ir.data)==null?void 0:lr.data)==null?void 0:or.rows,pr=`map-${c.id}`;if(er!=null&&er.path){const fr=await request(er.path);core$1.registerMap(pr,(fr==null?void 0:fr.data)||{})}else if(Array.isArray(er))if(Bn.value=er,(ar=er[0])!=null&&ar.mapUrl){const fr=await request((vr=er[0])==null?void 0:vr.mapUrl);core$1.registerMap(pr,(fr==null?void 0:fr.data)||{})}else core$1.registerMap(pr,{});else core$1.registerMap(pr,{});vue.nextTick(()=>{Kn.value=!0})},Jn=useRequestData(c),Yn=async()=>{if(c.dataType==="request"){Kn.value=!1;try{const ir=await Jn();Qn(ir)}catch(ir){console.error(ir),Kn.value=!0}}},Zn=()=>{const ir=nr(c.id);switch(sr(c.id,{...ir,RECORD:{}}),c.dataType){case"static":Un();break;case"request":Yn();break}},{getGlobalModel:nr,setGlobalModel:sr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:ir=>{},setGlobalModel:(ir,er)=>{}}),Gn=useEmitEvent(c)("click",()=>{var er,pr;const ir=nr(c.id);((er=ir==null?void 0:ir.RECORD)==null?void 0:er.name)===((pr=vue.unref(f))==null?void 0:pr.name)?sr(c.id,{...ir,RECORD:{}}):sr(c.id,{...ir,RECORD:vue.unref(f)})});useOnEvent(c,{refreshData:Zn});const{setRequest:Wn}=vue.inject(REQUEST_MODEL,{setRequest:ir=>{}});typeof Wn=="function"&&Wn({id:c.id,requestFn:Zn,sortNum:c.requestSort});const Rn=()=>{vue.unref(f)&&Gn()},qn=(ir={})=>{ir.componentType==="geo"&&ir.region?f.value=ir.region:f.value=null},Xn=vue.computed(()=>{const ir={},{legendTop:er,legendLeft:pr,legendBoxShadow:lr}=c;return lr&&(ir.boxShadow=lr),er==="bottom"?ir.bottom=0:er==="top"&&(ir.top=0),pr==="left"?ir.left=0:pr==="right"&&(ir.right=0),ir}),Hn=vue.computed(()=>{const ir={};return c.legendOrient==="vertical"&&(ir.flexDirection="column"),ir}),tr=vue.computed(()=>{var ir;if((ir=vue.unref(J))!=null&&ir.length){const er=[];for(const pr of vue.unref(J)){const{value1:lr,value2:or,rule1:ar,rule2:vr,color:fr}=pr;lr&&or?+lr<+or?ar.includes(">")&&vr.includes("<")&&er.push({text:`${lr} - ${or}`,color:fr,key:pr.key}):+lr>+or?ar.includes("<")&&vr.includes(">")&&er.push({text:`${or} - ${lr}`,color:fr,key:pr.key}):+lr==+or&&er.push({text:`${lr} - ${or}`,color:fr,key:pr.key}):lr?er.push({text:`${ar} ${lr}`,color:fr,key:pr.key}):or&&er.push({text:`${vr} ${or}`,color:fr,key:pr.key})}return er}else return[]});return{option:Vn,style:p,isLoadedData:Kn,geoBackgroundImageRef:v,myGeoBackgroundImage:m,mapLegendStyle:Xn,legendContainerStyle:Hn,mapLegendList:tr,hiddenLegendKey:y,customClick:Rn,onMouseOver:qn,handleToggleVisible:ir=>{const er=vue.unref(y).findIndex(pr=>pr===ir);er>=0?y.value.splice(er,1):y.value.push(ir)}}}}),Map_vue_vue_type_style_index_0_scoped_99122857_lang="",_hoisted_1=["src"],_hoisted_2=["title","onClick"];function _sfc_render$4(c,u,f,d,h,p){const v=vue.resolveComponent("echarts");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-map",style:vue.normalizeStyle(c.style)},[c.isLoadedData?(vue.openBlock(),vue.createBlock(v,{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-99122857"]]),EcanMap=withInstall$1(Map$1),dataSelectProps={...props,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||[]),p=vue.ref(),v=vue.computed({get:()=>{var ur;const{mode:sr}=c;return(ur=vue.unref(h))!=null&&ur.length?p.value:sr==="multiple"||sr==="tags"||sr==="combobox"?[]:""},set:sr=>{p.value=sr}}),{getGlobalModel:m,setGlobalModel:g,getRecordValueByKeyName:y}=vue.inject(GLOBAL_MODEL,{getGlobalModel:sr=>{},setGlobalModel:(sr,ur)=>{},getRecordValueByKeyName:sr=>{}}),x=c.dataFieldNames;vue.watch(()=>[c.value,c.mode,c.selectFirstOption,c.valueType,h.value],()=>{const{mode:sr,selectFirstOption:ur,value:Gn}=c,Wn=y(Gn),Rn=x.value;if(sr==="multiple"||sr==="tags"||sr==="combobox"){if(Wn)p.value=Wn.split(",");else if(ur){const qn=vue.unref(h)[0];p.value=qn?[qn[Rn]]:[]}}else if(Wn)p.value=Wn;else if(ur){const qn=vue.unref(h)[0];p.value=qn?qn[Rn]:""}},{immediate:!0});const Pn=(sr,ur)=>{const Gn=x.label,Wn=x.value;let Rn;const qn=ur[Gn],Xn=ur[Wn];return qn!=null?Rn=qn:Xn!=null&&(Rn=Xn),(Rn==null?void 0:Rn.toLowerCase().indexOf(sr==null?void 0:sr.toLowerCase()))>=0},b=sr=>{const{label:ur,value:Gn,options:Wn}=c.dataFieldNames;if(Wn&&Array.isArray(sr))if(sr.some(Rn=>Wn in Rn)){const Rn={},qn=[];sr.forEach(Xn=>{Rn[Xn[Wn]]||(Rn[Xn[Wn]]=[]),Rn[Xn[Wn]].push({[ur]:Xn[ur],[Gn]:Xn[Gn]})});for(const Xn in Rn)qn.push({[ur]:Xn,[Wn]:Rn[Xn]});return qn}else return sr;else if(!Wn)return sr},j=vue.ref(!1),re=sr=>{var ur,Gn;if(h.value=b(((Gn=(ur=sr==null?void 0:sr.data)==null?void 0:ur.data)==null?void 0:Gn.rows)||[]),c.selectFirstOption){let Wn=vue.unref(h)[0];if(x.options){const Rn=Wn[x.options];Rn&&Rn.length&&(Wn=Rn[0])}p.value=Wn[x.value]}},vn=useRequestData(c),Fn=async()=>{if(c.dataType==="request"){j.value=!0;try{const sr=await vn();re(sr)}catch(sr){console.error(sr)}finally{j.value=!1}}},Bn=vue.computed(()=>{let sr=p.value;if(c.valueType==="label"&&vue.unref(p)&&vue.unref(h)){const ur=x.label,Gn=x.value;if(c.mode==="multiple")sr=vue.unref(h).filter(Wn=>vue.unref(p).includes(Wn[Gn])).map(Wn=>Wn[ur]);else{const Wn=vue.unref(h).find(Rn=>vue.unref(p)===Rn[Gn]);Wn&&(sr=Wn[ur])}}return sr}),w=vue.ref([]),J=vue.computed(()=>{const sr={};if(c.mode!=="multiple"){const ur=vue.unref(w).find(Gn=>Gn.value===vue.unref(p));ur&&(sr.itemCodes=ur.item_codes)}return sr}),gn=vue.computed(()=>{const{value:sr,label:ur}=x,Gn=vue.unref(h).find(Wn=>Wn[sr]===vue.unref(v));return Gn?{label:Gn[ur],value:Gn[sr]}:{}}),{pageId:zn}=vue.inject("templateOperate",{pageId:""})||{};g(c.id,{type:c.type,value:Bn,...vue.unref(J),recordData:vue.unref(gn)});const Vn=useEmitEvent(c),Kn=Vn("selectChange",()=>{const sr=c.id,ur=m(sr);g(sr,{...ur,...vue.unref(J),RECORD:Bn,recordData:vue.unref(gn)});const Gn=getNewValueFromUrlParams(zn,c.keyName,"value");Gn&&(v.value=Gn)}),Un=Vn("refreshData",(sr=[])=>{if(h.value=b(sr),c.selectFirstOption){let ur=vue.unref(h)[0];if(x.options){const Gn=ur[x.options];Gn&&Gn.length&&(ur=Gn[0])}p.value=ur[x.value]}g(c.id,{type:c.type,value:Bn,...vue.unref(J),recordData:vue.unref(gn)})}),Qn=sr=>{var Rn;const{data:ur}=(sr==null?void 0:sr.data)||{},Gn=x.label,Wn=x.value;if(ur){const{rows:qn=[]}=((Rn=sr==null?void 0:sr.data)==null?void 0:Rn.data)||{};w.value=qn;const Xn=qn.map(cr=>({[Gn]:cr.label,[Wn]:cr.value})),{id:Hn}=c,tr=m(Hn);g(Hn,{...tr,...vue.unref(J)}),Un(Xn)}else Un([])},Jn=useIndicatorData(c,Qn),Yn=async()=>{try{j.value=!0;const sr=await Jn();Qn(sr)}catch(sr){console.error(sr)}finally{j.value=!1}},Zn=()=>{switch(c.dataType){case"indicator":{Yn();break}case"request":Fn();break}};useOnEvent(c,{selectChange:Kn,refreshData:Zn});const{setRequest:nr}=vue.inject(REQUEST_MODEL,{setRequest:({id:sr,sortNum:ur,requestFn:Gn})=>{}});return typeof nr=="function"&&nr({id:c.id,requestFn:Zn,sortNum:c.requestSort}),u({refreshData:Zn}),{style:f,getPopupContainer:d,myValue:p,selectChange:Kn,options:h,filterOption:Pn,loading:j,resultValue:v}}}),DataSelect_vue_vue_type_style_index_0_scoped_bc69a9ac_lang="",DataSelect_vue_vue_type_style_index_1_lang="";function _sfc_render$3(c,u,f,d,h,p){const v=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(v,{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-bc69a9ac"]]),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 gn,zn;const d=(gn=window==null?void 0:window.config)==null?void 0:gn.pageId,h=(zn=window==null?void 0:window.config)==null?void 0:zn.indicatorToken,p=usePickComponentStyle(c),v=vue.ref(),{pageMode:m,theme:g,width:y,height:x}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",theme:"light",width:"",height:""}),Pn=vue.inject("scaleValue",{widthScale:"1",heightScale:"1"}),{getAllGlobalModel:b}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),j=vue.computed(()=>{const{width:Vn,height:Kn}=c;let Un=0,Qn=0;return typeof Vn=="string"?Un=parseFloat(Vn):Vn.suffix==="px"?Un=+Vn.value:Vn.suffix==="%"&&(Un=parseFloat(vue.unref(y))*(Vn.value/100)),typeof Kn=="string"?Qn=parseFloat(Kn):Kn.suffix==="px"?Qn=+Kn.value:Kn.suffix==="%"&&(Qn=parseFloat(vue.unref(x))*(Kn.value/100)),{...c,width:Un+"px",height:Qn+"px",pageId:d,indicatorToken:h,context:CONTEXT,globalModel:b()}}),re=vue.computed(()=>INDICATOR_URL),vn=()=>{switch(c.dataType){case"indicator":vue.unref(v).refreshData();break}},{setRequest:Fn}=vue.inject(REQUEST_MODEL,{setRequest:({id:Vn,sortNum:Kn,requestFn:Un})=>{}});typeof Fn=="function"&&Fn({id:c.id,requestFn:vn,sortNum:c.requestSort}),f({refreshData:vn});const w=useEmitEvent(c)("click",()=>{vue.unref(v).click()});return useOnEvent(c,{refreshData:vn,click:w}),vue.onMounted(()=>{}),{props:c,style:p,pageMode:m,pivotTableRef:v,theme:g,customProps:j,indicatorUrl:re,scaleValue:Pn,click:w,onTableChange:({type:Vn,data:Kn})=>{u("tableChange",{type:Vn,data:Kn})}}}}),PivotTableContainer_vue_vue_type_style_index_0_scoped_46e3d7d4_lang="";function _sfc_render$2(c,u,f,d,h,p){const v=vue.resolveComponent("pivot-table");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-pivot-table",style:vue.normalizeStyle(c.style)},[vue.createVNode(v,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,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(),p=vue.ref(!1),v=usePickComponentStyle(c),m=vue.ref([]),g=vue.ref(),y=vue.computed(()=>p.value?ZOOM_FONT_SIZE:12),x=vue.ref({});let Pn;const b=vue.computed(()=>{const qn=c.xAxisLabelFormatter,Xn=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:p.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 Hn;p.value=!0,(Hn=g.value)==null||Hn.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:Hn=>{var er;const tr=Hn.length;let cr="",ir=c.tooltipFormatter;Pn=(er=Hn[0])==null?void 0:er.data,ir===""&&(ir="{marker} {a} {c}");for(let pr=0;pr<tr;pr++){const{marker:lr,seriesName:or,name:ar,value:vr,data:fr}=Hn[pr]||{};if(pr===0){let mr=ar;typeof ar=="string"&&ar[0]==="0"&&!isNaN(+ar)&&(mr=(+ar).toString()),cr+=`${In(qn,mr)}<br/>`}cr+=hn(ir,{textData:{marker:lr,a:or,b:vr[0],c:vr[1]||0,...fr==null?void 0:fr.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(Hn){return typeof Hn=="string"&&Hn[0]==="0"&&!isNaN(+Hn)&&(Hn=(+Hn).toString()),In(qn,Hn)}},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(Hn){return In(Xn,Hn)}},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:(p.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:p.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,formatter:Hn=>getLegendFormat(c.legendFormatter,{name:Hn})},series:vue.unref(m)}}),j=()=>{p.value=!1},{getGlobalModel:re,setGlobalModel:vn,getRecordValueByKeyName:Fn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:qn=>{},setGlobalModel:(qn,Xn)=>{},getRecordValueByKeyName:qn=>{}}),Bn=vue.computed(()=>c.isShowMarkLine?{markLine:{data:[{type:c.markLineType}]}}:{}),w=(qn,Xn,Hn,tr,cr,ir,er,pr)=>{const lr=(-(cr*pr-ir*er)/(er-cr)+(qn*tr-Xn*Hn)/(Hn-qn))/((tr-Xn)/(Hn-qn)-(pr-ir)/(er-cr)),or=(tr-Xn)/(Hn-qn)*(-(cr*pr-ir*er)/(er-cr)+(qn*tr-Xn*Hn)/(Hn-qn))/((tr-Xn)/(Hn-qn)-(pr-ir)/(er-cr))-(qn*tr-Xn*Hn)/(Hn-qn);return[lr,or]},J=()=>{var Hn;const qn={symbol:"circle",tooltip:{trigger:"item",formatter:tr=>{let cr="",ir=c.markPointFormatter;ir===""&&(ir="{x}, {y}");const{data:{coord:er=[]}}=tr||{};return cr+=hn(ir,{textData:{x:er[0]||0,y:er[1]||0}},{useNewline:!0,useSpace:!0}),cr+="<br/>",cr}},data:[]},{axisMarkPoint:Xn=[]}=c;for(const tr of Xn){const{coord:cr=""}=tr,ir=[];let er=[];if(cr.includes("getIntersectPoint")){const pr=(Hn=cr.match(/getIntersectPoint\((.*?)\)/)[1])==null?void 0:Hn.split(",");if((pr==null?void 0:pr.length)===8){const lr=[];for(const or of pr){const ar=or.replaceAll(" ","");(ar==null?void 0:ar.slice(0,1))==="{"&&(ar==null?void 0:ar.slice(-1))==="}"?lr.push(+Fn(ar)||0):lr.push(+ar)}er=w(...lr)}}else er=cr.split(",");(er==null?void 0:er.length)===2&&(ir[0]=+er[0],ir[1]=+er[1]),ir!=null&&ir.length&&qn.data.push({coord:ir,symbolSize:tr.symbolSize,itemStyle:{color:tr.pointColor||"transparent",borderWidth:tr.borderWidth||"transparent",borderColor:tr.borderColor||"transparent"},label:{formatter:tr.label,position:tr.labelPosition,color:tr.labelColor||"transparent"}})}return qn},gn=qn=>{var lr,or,ar;const Xn=lodashEs.cloneDeep(qn),{graphicConfig:Hn,customPoint:tr=""}=c,cr={},ir={},{formFields:er={}}=Hn;let pr=[];if(tr){pr=JSON.parse(tr);for(const vr of pr)for(const fr in vr)typeof vr[fr]=="string"&&((lr=vr[fr])==null?void 0:lr.slice(0,1))==="{"&&((or=vr[fr])==null?void 0:or.slice(-1))==="}"&&(vr[fr]=Fn(vr[fr])||0)}pr!=null&&pr.length&&Xn.push(...pr),c.dataType==="static"?(ir.name="name",ir.values=["value","value2"]):(ir.name=(er==null?void 0:er.labelField)||"name",ir.values=(er==null?void 0:er.valueField)||["value","value2"]);for(const vr of Xn){const{values:fr,name:mr}=ir;for(const dr of fr){const hr={value:[vr[mr],vr[dr]],record:vr};mn(cr,dr)?cr[dr].push(hr):cr[dr]=[hr]}}if((ar=Object.keys(cr))!=null&&ar.length){const vr=[];for(const fr in cr)vr.push({name:fr,data:cr[fr]});return vr}else return[]},zn=(qn=[])=>{const Xn=gn(qn),Hn=[],tr=Xn.length;for(let cr=0;cr<tr;cr++){const ir={},er={};cr===0&&(er.markPoint=J()),c.shadowColor&&(ir.shadowColor=c.shadowColor,ir.shadowBlur=c.shadowBlur,ir.shadowOffsetY=c.shadowOffsetY,ir.shadowOffsetX=c.shadowOffsetX),Hn.push({type:"line",...er,...Xn[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:c.colors[cr]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[cr],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...ir},...vue.unref(Bn)})}m.value=Hn},Vn=(qn=[])=>{const Xn=gn(qn),Hn=[],tr=Xn.length;for(let cr=0;cr<tr;cr++){const ir={};c.shadowColor&&(ir.shadowColor=c.shadowColor,ir.shadowBlur=c.shadowBlur,ir.shadowOffsetY=c.shadowOffsetY,ir.shadowOffsetX=c.shadowOffsetX);const er={};cr===0&&(er.markPoint=J()),Hn.push({type:"line",...Xn[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:c.colors[cr]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[cr],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...ir},...vue.unref(Bn),...er})}m.value=Hn};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")&&zn(qn)},{immediate:!0,deep:!0});const Kn=vue.ref(!1),Un=useRequestData(c),Qn=async()=>{var qn,Xn;if(c.dataType==="request")try{Kn.value=!0;const Hn=await Un();zn((Xn=(qn=Hn==null?void 0:Hn.data)==null?void 0:qn.data)==null?void 0:Xn.rows)}catch(Hn){console.error(Hn)}finally{Kn.value=!1}},Jn=useEmitEvent(c);vn(c.id,{type:c.type,RECORD:""});const Yn=Jn("click",qn=>{const Xn=re(c.id);vn(c.id,{...Xn,type:c.type,RECORD:c.tooltipShow?Pn:qn.data})}),Zn=qn=>{h.value.chart.containPixel("grid",[qn.offsetX,qn.offsetY])&&Yn()};c.tooltipShow?x.value["zr:click"]=Zn:x.value.click=Yn;const nr=qn=>{var Hn;const{rows:Xn=[]}=((Hn=qn==null?void 0:qn.data)==null?void 0:Hn.data)??{};Vn(Xn)},sr=useIndicatorData(c,qn=>{c.isViewRedrawing&&h.value.clear(),nr(qn)}),ur=async()=>{try{Kn.value=!0;const qn=await sr();nr(qn)}catch(qn){console.error(qn)}finally{Kn.value=!1}},Gn=()=>{switch(c.dataType){case"indicator":ur();break;case"request":Qn();break}};useOnEvent(c,{refreshData:Gn,resetRecord:()=>{const qn=c.id,Xn=re(qn);vn(qn,{...Xn,RECORD:""})},click:Yn});const{setRequest:Rn}=vue.inject(REQUEST_MODEL,{setRequest:qn=>{}});return typeof Rn=="function"&&Rn({id:c.id,requestFn:Gn,sortNum:c.requestSort}),u({refreshData:Gn}),{option:b,style:v,click:Yn,loading:Kn,onClose:j,ecanModal:g,eventObj:x,echartRef:h}}}),ValueLine_vue_vue_type_style_index_0_lang="";function _sfc_render$1(c,u,f,d,h,p){const v=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-value-line",style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(v,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(v,{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,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:p}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),v=vue.inject("triggerRefresh",Fn=>{}),m=vue.inject("usedComponentList",[]),g=vue.computed(()=>{const{borderRadius:Fn}=c,Bn=[],w={};if(Fn){const J=Fn.split(",");for(const gn of J)(+gn||+gn==0)&&Bn.push(+gn+"px")}return Bn!=null&&Bn.length&&(w.borderRadius=Bn.join(" ")),vue.unref(p)==="design"&&(w.border="1px solid #a8a8a8"),vue.unref(d)?w.backgroundColor=vue.unref(d):vue.unref(p)!=="design"&&(w.backgroundColor="#d3d3d3"),w}),y=Fn=>{var w;const{rows:Bn}=((w=Fn==null?void 0:Fn.data)==null?void 0:w.data)||{};if(Bn){const{componentIds:J,componentConfig:gn,graphicConfig:zn}=c,Vn=[],Kn=zn==null?void 0:zn.indicators.find(Un=>Un.show);d.value=Bn.color;for(const Un of J){const Qn=vue.unref(m).find(sr=>sr.id===Un),Jn=gn[Un],{text:Yn=""}=Qn||{};let Zn=Bn[Jn.key],nr="";if(Jn.key==="systemSource"){const sr=Zn.split(",");(sr==null?void 0:sr.length)>3&&(Zn=sr.slice(0,3).join(",")+"等",nr=Bn[Jn.key])}else Jn.key==="indexName"&&(Zn=Kn.label);Vn.push({id:Un,text:Yn.includes("{value}")||Yn.includes("{")||Yn.includes("}")?Yn:"{value}",data:{value:Zn},titleContent:nr})}v(Vn)}},x=useIndicatorData(c,y),Pn=async()=>{try{f.value=!0;const Fn=await x();y(Fn)}catch(Fn){console.error(Fn)}finally{f.value=!1}},b=()=>{switch(c.dataType){case"indicator":Pn();break}},{setRequest:j}=vue.inject(REQUEST_MODEL,{setRequest:({id:Fn,sortNum:Bn,requestFn:w})=>{}});typeof j=="function"&&j({id:c.id,requestFn:b,sortNum:c.requestSort});const vn=useEmitEvent(c)("click");return useOnEvent(c,{refreshData:b}),u({refreshData:b}),{loading:f,style:h,customStyle:g,click:vn}}});function _sfc_render(c,u,f,d,h,p){const v=vue.resolveComponent("skeleton");return c.loading?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:vue.normalizeStyle(c.style)},[vue.createVNode(v,{loading:c.loading},null,8,["loading"])],4)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"ecan-index-panel",style:vue.normalizeStyle({...c.style,...c.customStyle}),onClick:u[0]||(u[0]=(...m)=>c.click&&c.click(...m))},[vue.renderSlot(c.$slots,"toolbox")],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,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=()=>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 p;d=isObject$1(d)&&(p=d[h])!=null?p:""}),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),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:p}=u;d(f),vue.onUnmounted(()=>h(f));const v=vue.computed(()=>p.indexOf(f));return{parent:u,index:v}}return{parent:null,index:vue.ref(-1)}}function flattenVNodes(c){const u=[],f=d=>{Array.isArray(d)&&d.forEach(h=>{var p;vue.isVNode(h)&&(u.push(h),(p=h.component)!=null&&p.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((p,v)=>findVNodeIndex(d,p.vnode)-findVNodeIndex(d,v.vnode));const h=f.map(p=>p.proxy);u.sort((p,v)=>{const m=h.indexOf(p),g=h.indexOf(v);return m-g})}function useChildren(c){const u=vue.reactive([]),f=vue.reactive([]),d=vue.getCurrentInstance();return{children:u,linkChildren:p=>{const v=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:v,unlink:m,children:u,internalChildren:f},p))}}}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:p=!1}=f;let v=!1,m;const g=Pn=>{if(v)return;const b=vue.unref(Pn);b&&!m&&(b.addEventListener(c,u,{capture:p,passive:h}),m=!0)},y=Pn=>{if(v)return;const b=vue.unref(Pn);b&&m&&(b.removeEventListener(c,u,p),m=!1)};vue.onUnmounted(()=>y(d)),vue.onDeactivated(()=>y(d)),onMountedOrActivated(()=>g(d));let x;return vue.isRef(d)&&(x=vue.watch(d,(Pn,b)=>{y(b),g(Pn)})),()=>{x==null||x(),y(d),v=!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}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}isIOS();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),{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$h={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$h}),Locale={messages(){return messages[lang.value]},use(c,u){lang.value=c,this.add({[c]:u})},add(c={}){deepAssign(messages,c)}};var stdin_default$g=Locale;function createTranslate(c){const u=camelize(c)+".";return(f,...d)=>{const h=stdin_default$g.messages(),p=get(h,u+f)||get(h,f);return isFunction(p)?p(...d):p}}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",TAP_OFFSET=5;function callInterceptor(c,{args:u=[],done:f,canceled:d,error:h}){if(c){const p=c.apply(null,u);isPromise(p)?p.then(v=>{v?f():d&&d()}).catch(h||noop):p?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)}const[name$h,bem$f]=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$f=vue.defineComponent({name:name$h,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}`,p=vue.computed(()=>{const m={background:c.color};if(c.offset){const[g,y]=c.offset,{position:x}=c,[Pn,b]=x.split("-");u.default?(typeof y=="number"?m[Pn]=addUnit(Pn==="top"?y:-y):m[Pn]=Pn==="top"?addUnit(y):h(y),typeof g=="number"?m[b]=addUnit(b==="left"?g:-g):m[b]=b==="left"?addUnit(g):h(g)):(m.marginTop=addUnit(y),m.marginLeft=addUnit(g))}return m}),v=()=>{if(f()||c.dot)return vue.createVNode("div",{class:bem$f([c.position,{dot:c.dot,fixed:!!u.default}]),style:p.value},[d()])};return()=>{if(u.default){const{tag:m}=c;return vue.createVNode(m,{class:bem$f("wrapper")},{default:()=>[u.default(),v()]})}return v()}}});const Badge=withInstall(stdin_default$f);let globalZIndex=2e3;const useGlobalZIndex=()=>++globalZIndex,setGlobalZIndex=c=>{globalZIndex=c},[name$g,bem$e]=createNamespace("config-provider"),CONFIG_PROVIDER_KEY=Symbol(name$g),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$g,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=(p=c.theme)=>{document.documentElement.classList.remove(`van-theme-${p}`)};vue.watch(()=>c.theme,(p,v)=>{v&&h(v),d()},{immediate:!0}),vue.onActivated(d),vue.onDeactivated(h),vue.onBeforeUnmount(h),vue.watch(f,(p,v)=>{c.themeVarsScope==="global"&&syncThemeVarsOnRoot(p,v)}),vue.watch(()=>c.themeVarsScope,(p,v)=>{v==="global"&&syncThemeVarsOnRoot({},f.value),p==="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$e(),style:c.themeVarsScope==="local"?f.value:void 0},{default:()=>{var d;return[(d=u.default)==null?void 0:d.call(u)]}})}});const[name$f,bem$d]=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$e=vue.defineComponent({name:name$f,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$d());return()=>{const{tag:h,dot:p,name:v,size:m,badge:g,color:y}=c,x=isImage(v);return vue.createVNode(Badge,vue.mergeProps({dot:p,tag:h,class:[d.value,x?"":`${d.value}-${v}`],style:{color:y,fontSize:addUnit(m)},content:g},c.badgeProps),{default:()=>{var Pn;return[(Pn=u.default)==null?void 0:Pn.call(u),x&&vue.createVNode("img",{class:bem$d("image"),src:v},null)]}})}}});const Icon=withInstall(stdin_default$e),[name$e,bem$c]=createNamespace("loading"),SpinIcon=Array(12).fill(null).map((c,u)=>vue.createVNode("i",{class:bem$c("line",String(u+1))},null)),CircularIcon=vue.createVNode("svg",{class:bem$c("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$d=vue.defineComponent({name:name$e,props:loadingProps,setup(c,{slots:u}){const f=vue.computed(()=>extend({color:c.color},getSizeStyle(c.size))),d=()=>{const p=c.type==="spinner"?SpinIcon:CircularIcon;return vue.createVNode("span",{class:bem$c("spinner",c.type),style:f.value},[u.icon?u.icon():p])},h=()=>{var p;if(u.default)return vue.createVNode("span",{class:bem$c("text"),style:{fontSize:addUnit(c.textSize),color:(p=c.textColor)!=null?p:c.color}},[u.default()])};return()=>{const{type:p,vertical:v}=c;return vue.createVNode("div",{class:bem$c([p,{vertical:v}]),"aria-live":"polite","aria-busy":!0},[d(),h()])}}});const Loading=withInstall(stdin_default$d),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),p=vue.ref(0),v=vue.ref(""),m=vue.ref(!0),g=()=>v.value==="vertical",y=()=>v.value==="horizontal",x=()=>{f.value=0,d.value=0,h.value=0,p.value=0,v.value="",m.value=!0};return{move:j=>{const re=j.touches[0];f.value=(re.clientX<0?0:re.clientX)-c.value,d.value=re.clientY-u.value,h.value=Math.abs(f.value),p.value=Math.abs(d.value);const vn=10;(!v.value||h.value<vn&&p.value<vn)&&(v.value=getDirection(h.value,p.value)),m.value&&(h.value>TAP_OFFSET||p.value>TAP_OFFSET)&&(m.value=!1)},start:j=>{x(),c.value=j.touches[0].clientX,u.value=j.touches[0].clientY},reset:x,startX:c,startY:u,deltaX:f,deltaY:d,offsetX:h,offsetY:p,direction:v,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",p=x=>{f.move(x);const Pn=f.deltaY.value>0?h:d,b=getScrollParent(x.target,c.value),{scrollHeight:j,offsetHeight:re,scrollTop:vn}=b;let Fn="11";vn===0?Fn=re>=j?"00":"01":vn+re>=j&&(Fn="10"),Fn!=="11"&&f.isVertical()&&!(parseInt(Fn,2)&parseInt(Pn,2))&&preventDefault(x,!0)},v=()=>{document.addEventListener("touchstart",f.start),document.addEventListener("touchmove",p,{passive:!1}),totalLockCount||document.body.classList.add(BODY_LOCK_CLASS),totalLockCount++},m=()=>{totalLockCount&&(document.removeEventListener("touchstart",f.start),document.removeEventListener("touchmove",p),totalLockCount--,totalLockCount||document.body.classList.remove(BODY_LOCK_CLASS))},g=()=>u()&&v(),y=()=>u()&&m();onMountedOrActivated(g),vue.onDeactivated(y),vue.onBeforeUnmount(y),vue.watch(u,x=>{x?v():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$d,bem$b]=createNamespace("overlay"),overlayProps={show:Boolean,zIndex:numericProp,duration:numericProp,className:unknownProp,lockScroll:truthProp,lazyRender:truthProp,customStyle:Object,teleport:[String,Object]};var stdin_default$c=vue.defineComponent({name:name$d,props:overlayProps,setup(c,{slots:u}){const f=vue.ref(),d=useLazyRender(()=>c.show||!c.lazyRender),h=v=>{c.lockScroll&&preventDefault(v,!0)},p=d(()=>{var v;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$b(),c.className]},[(v=u.default)==null?void 0:v.call(u)]),[[vue.vShow,c.show]])});return useEventListener("touchmove",h,{target:f}),()=>{const v=vue.createVNode(vue.Transition,{name:"van-fade",appear:!0},{default:p});return c.teleport?vue.createVNode(vue.Teleport,{to:c.teleport},{default:()=>[v]}):v}}});const Overlay=withInstall(stdin_default$c),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$c,bem$a]=createNamespace("popup");var stdin_default$b=vue.defineComponent({name:name$c,inheritAttrs:!1,props:popupProps,emits:["open","close","opened","closed","keydown","update:show","clickOverlay","clickCloseIcon"],setup(c,{emit:u,attrs:f,slots:d}){let h,p;const v=vue.ref(),m=vue.ref(),g=useLazyRender(()=>c.show||!c.lazyRender),y=vue.computed(()=>{const Vn={zIndex:v.value};if(isDef(c.duration)){const Kn=c.position==="center"?"animationDuration":"transitionDuration";Vn[Kn]=`${c.duration}s`}return Vn}),x=()=>{h||(h=!0,v.value=c.zIndex!==void 0?+c.zIndex:useGlobalZIndex(),u("open"))},Pn=()=>{h&&callInterceptor(c.beforeClose,{done(){h=!1,u("close"),u("update:show",!1)}})},b=Vn=>{u("clickOverlay",Vn),c.closeOnClickOverlay&&Pn()},j=()=>{if(c.overlay)return vue.createVNode(Overlay,vue.mergeProps({show:c.show,class:c.overlayClass,zIndex:v.value,duration:c.duration,customStyle:c.overlayStyle,role:c.closeOnClickOverlay?"button":void 0,tabindex:c.closeOnClickOverlay?0:void 0},useScopeId(),{onClick:b}),{default:d["overlay-content"]})},re=Vn=>{u("clickCloseIcon",Vn),Pn()},vn=()=>{if(c.closeable)return vue.createVNode(Icon,{role:"button",tabindex:0,name:c.closeIcon,class:[bem$a("close-icon",c.closeIconPosition),HAPTICS_FEEDBACK],classPrefix:c.iconPrefix,onClick:re},null)};let Fn;const Bn=()=>{Fn&&clearTimeout(Fn),Fn=setTimeout(()=>{u("opened")})},w=()=>u("closed"),J=Vn=>u("keydown",Vn),gn=g(()=>{var Vn;const{round:Kn,position:Un,safeAreaInsetTop:Qn,safeAreaInsetBottom:Jn}=c;return vue.withDirectives(vue.createVNode("div",vue.mergeProps({ref:m,style:y.value,role:"dialog",tabindex:0,class:[bem$a({round:Kn,[Un]:Un}),{"van-safe-area-top":Qn,"van-safe-area-bottom":Jn}],onKeydown:J},f,useScopeId()),[(Vn=d.default)==null?void 0:Vn.call(d),vn()]),[[vue.vShow,c.show]])}),zn=()=>{const{position:Vn,transition:Kn,transitionAppear:Un}=c,Qn=Vn==="center"?"van-fade":`van-popup-slide-${Vn}`;return vue.createVNode(vue.Transition,{name:Kn||Qn,appear:Un,onAfterEnter:Bn,onAfterLeave:w},{default:gn})};return vue.watch(()=>c.show,Vn=>{Vn&&!h&&(x(),f.tabindex===0&&vue.nextTick(()=>{var Kn;(Kn=m.value)==null||Kn.focus()})),!Vn&&h&&(h=!1,u("close"))}),useExpose({popupRef:m}),useLockScroll(m,()=>c.show&&c.lockScroll),useEventListener("popstate",()=>{c.closeOnPopstate&&(Pn(),p=!1)}),vue.onMounted(()=>{c.show&&x()}),vue.onActivated(()=>{p&&(u("update:show",!0),p=!1)}),vue.onDeactivated(()=>{c.show&&c.teleport&&(Pn(),p=!0)}),vue.provide(POPUP_TOGGLE_KEY,()=>c.show),()=>c.teleport?vue.createVNode(vue.Teleport,{to:c.teleport},{default:()=>[j(),zn()]}):vue.createVNode(vue.Fragment,null,[j(),zn()])}});const Popup=withInstall(stdin_default$b),[name$b,bem$9,t]=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(p=>p[f.value]===u),h=findIndexOfEnabledOption(c,d);return c[h]}function formatCascadeColumns(c,u,f){const d=[];let h={[u.children]:c},p=0;for(;h&&h[u.children];){const v=h[u.children],m=f.value[p];if(h=isDef(m)?findOptionByValue(v,m,u):void 0,!h&&v.length){const g=getFirstEnabledOption(v)[u.value];h=findOptionByValue(v,g,u)}p++,d.push(v)}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$a,bem$8]=createNamespace("picker-column"),PICKER_KEY=Symbol(name$a);var stdin_default$a=vue.defineComponent({name:name$a,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,p,v,m;const g=vue.ref(),y=vue.ref(),x=vue.ref(0),Pn=vue.ref(0),b=useTouch(),j=()=>c.options.length,re=()=>c.optionHeight*(+c.visibleOptionNum-1)/2,vn=Jn=>{let Yn=findIndexOfEnabledOption(c.options,Jn);const Zn=-Yn*c.optionHeight,nr=()=>{Yn>j()-1&&(Yn=findIndexOfEnabledOption(c.options,Jn));const sr=c.options[Yn][c.fields.value];sr!==c.value&&u("change",sr)};d&&Zn!==x.value?m=nr:nr(),x.value=Zn},Fn=()=>c.readonly||!c.options.length,Bn=Jn=>{d||Fn()||(m=null,Pn.value=DEFAULT_DURATION,vn(Jn),u("clickOption",c.options[Jn]))},w=Jn=>clamp(Math.round(-Jn/c.optionHeight),0,j()-1),J=vue.computed(()=>w(x.value)),gn=(Jn,Yn)=>{const Zn=Math.abs(Jn/Yn);Jn=x.value+Zn/.003*(Jn<0?-1:1);const nr=w(Jn);Pn.value=+c.swipeDuration,vn(nr)},zn=()=>{d=!1,Pn.value=0,m&&(m(),m=null)},Vn=Jn=>{if(!Fn()){if(b.start(Jn),d){const Yn=getElementTranslateY(y.value);x.value=Math.min(0,Yn-re())}Pn.value=0,h=x.value,p=Date.now(),v=h,m=null}},Kn=Jn=>{if(Fn())return;b.move(Jn),b.isVertical()&&(d=!0,preventDefault(Jn,!0));const Yn=clamp(h+b.deltaY.value,-(j()*c.optionHeight),c.optionHeight),Zn=w(Yn);Zn!==J.value&&u("scrollInto",c.options[Zn]),x.value=Yn;const nr=Date.now();nr-p>MOMENTUM_TIME&&(p=nr,v=Yn)},Un=()=>{if(Fn())return;const Jn=x.value-v,Yn=Date.now()-p;if(Yn<MOMENTUM_TIME&&Math.abs(Jn)>MOMENTUM_DISTANCE){gn(Jn,Yn);return}const nr=w(x.value);Pn.value=DEFAULT_DURATION,vn(nr),setTimeout(()=>{d=!1},0)},Qn=()=>{const Jn={height:`${c.optionHeight}px`};return c.options.map((Yn,Zn)=>{const nr=Yn[c.fields.text],{disabled:sr}=Yn,ur=Yn[c.fields.value],Gn={role:"button",style:Jn,tabindex:sr?-1:0,class:[bem$8("item",{disabled:sr,selected:ur===c.value}),Yn.className],onClick:()=>Bn(Zn)},Wn={class:"van-ellipsis",[c.allowHtml?"innerHTML":"textContent"]:nr};return vue.createVNode("li",Gn,[f.option?f.option(Yn,Zn):vue.createVNode("div",Wn,null)])})};return useParent(PICKER_KEY),useExpose({stopMomentum:zn}),vue.watchEffect(()=>{const Jn=d?Math.floor(-x.value/c.optionHeight):c.options.findIndex(nr=>nr[c.fields.value]===c.value),Yn=findIndexOfEnabledOption(c.options,Jn),Zn=-Yn*c.optionHeight;d&&Yn<Jn&&zn(),x.value=Zn}),useEventListener("touchmove",Kn,{target:g}),()=>vue.createVNode("div",{ref:g,class:bem$8(),onTouchstartPassive:Vn,onTouchend:Un,onTouchcancel:Un},[vue.createVNode("ul",{ref:y,style:{transform:`translate3d(0, ${x.value+re()}px, 0)`,transitionDuration:`${Pn.value}ms`,transitionProperty:Pn.value?"all":"none"},class:bem$8("wrapper"),onTransitionend:zn},[Qn()])])}});const[name$9]=createNamespace("picker-toolbar"),pickerToolbarProps={title:String,cancelButtonText:String,confirmButtonText:String},pickerToolbarSlots=["cancel","confirm","title","toolbar"],pickerToolbarPropKeys=Object.keys(pickerToolbarProps);var stdin_default$9=vue.defineComponent({name:name$9,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$9("title"),"van-ellipsis"]},[c.title])},h=()=>u("cancel"),p=()=>u("confirm"),v=()=>{var g;const y=(g=c.cancelButtonText)!=null?g:t("cancel");if(!(!f.cancel&&!y))return vue.createVNode("button",{type:"button",class:[bem$9("cancel"),HAPTICS_FEEDBACK],onClick:h},[f.cancel?f.cancel():y])},m=()=>{var g;const y=(g=c.confirmButtonText)!=null?g:t("confirm");if(!(!f.confirm&&!y))return vue.createVNode("button",{type:"button",class:[bem$9("confirm"),HAPTICS_FEEDBACK],onClick:p},[f.confirm?f.confirm():y])};return()=>vue.createVNode("div",{class:bem$9("toolbar")},[f.toolbar?f.toolbar():[v(),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};/**
179
+ */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 p(Rn){if(Rn===0)return this;var qn=c(Rn),Xn=u(Rn);return this._t(qn,-Xn,0,0,Xn,qn,0,0,0,0,1,0,0,0,0,1)}function v(Rn){if(Rn===0)return this;var qn=c(Rn),Xn=u(Rn);return this._t(1,0,0,0,0,qn,-Xn,0,0,Xn,qn,0,0,0,0,1)}function m(Rn){if(Rn===0)return this;var qn=c(Rn),Xn=u(Rn);return this._t(qn,0,Xn,0,0,1,0,0,-Xn,0,qn,0,0,0,0,1)}function g(Rn){if(Rn===0)return this;var qn=c(Rn),Xn=u(Rn);return this._t(qn,-Xn,0,0,Xn,qn,0,0,0,0,1,0,0,0,0,1)}function y(Rn,qn){return this._t(1,qn,Rn,1,0,0)}function x(Rn,qn){return this.shear(f(Rn),f(qn))}function Pn(Rn,qn){var Xn=c(qn),Hn=u(qn);return this._t(Xn,Hn,0,0,-Hn,Xn,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,f(Rn),1,0,0,0,0,1,0,0,0,0,1)._t(Xn,-Hn,0,0,Hn,Xn,0,0,0,0,1,0,0,0,0,1)}function b(Rn,qn,Xn){return!Xn&&Xn!==0&&(Xn=1),Rn===1&&qn===1&&Xn===1?this:this._t(Rn,0,0,0,0,qn,0,0,0,0,Xn,0,0,0,0,1)}function j(Rn,qn,Xn,Hn,tr,cr,ir,er,pr,lr,or,ar,vr,fr,mr,dr){return this.props[0]=Rn,this.props[1]=qn,this.props[2]=Xn,this.props[3]=Hn,this.props[4]=tr,this.props[5]=cr,this.props[6]=ir,this.props[7]=er,this.props[8]=pr,this.props[9]=lr,this.props[10]=or,this.props[11]=ar,this.props[12]=vr,this.props[13]=fr,this.props[14]=mr,this.props[15]=dr,this}function re(Rn,qn,Xn){return Xn=Xn||0,Rn!==0||qn!==0||Xn!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,Rn,qn,Xn,1):this}function vn(Rn,qn,Xn,Hn,tr,cr,ir,er,pr,lr,or,ar,vr,fr,mr,dr){var hr=this.props;if(Rn===1&&qn===0&&Xn===0&&Hn===0&&tr===0&&cr===1&&ir===0&&er===0&&pr===0&&lr===0&&or===1&&ar===0)return hr[12]=hr[12]*Rn+hr[15]*vr,hr[13]=hr[13]*cr+hr[15]*fr,hr[14]=hr[14]*or+hr[15]*mr,hr[15]*=dr,this._identityCalculated=!1,this;var yr=hr[0],_r=hr[1],gr=hr[2],br=hr[3],Er=hr[4],Mr=hr[5],Ir=hr[6],Fr=hr[7],Or=hr[8],Nr=hr[9],zr=hr[10],Rr=hr[11],Vr=hr[12],Hr=hr[13],Gr=hr[14],Ur=hr[15];return hr[0]=yr*Rn+_r*tr+gr*pr+br*vr,hr[1]=yr*qn+_r*cr+gr*lr+br*fr,hr[2]=yr*Xn+_r*ir+gr*or+br*mr,hr[3]=yr*Hn+_r*er+gr*ar+br*dr,hr[4]=Er*Rn+Mr*tr+Ir*pr+Fr*vr,hr[5]=Er*qn+Mr*cr+Ir*lr+Fr*fr,hr[6]=Er*Xn+Mr*ir+Ir*or+Fr*mr,hr[7]=Er*Hn+Mr*er+Ir*ar+Fr*dr,hr[8]=Or*Rn+Nr*tr+zr*pr+Rr*vr,hr[9]=Or*qn+Nr*cr+zr*lr+Rr*fr,hr[10]=Or*Xn+Nr*ir+zr*or+Rr*mr,hr[11]=Or*Hn+Nr*er+zr*ar+Rr*dr,hr[12]=Vr*Rn+Hr*tr+Gr*pr+Ur*vr,hr[13]=Vr*qn+Hr*cr+Gr*lr+Ur*fr,hr[14]=Vr*Xn+Hr*ir+Gr*or+Ur*mr,hr[15]=Vr*Hn+Hr*er+Gr*ar+Ur*dr,this._identityCalculated=!1,this}function Fn(Rn){var qn=Rn.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(Rn){for(var qn=0;qn<16;){if(Rn.props[qn]!==this.props[qn])return!1;qn+=1}return!0}function J(Rn){var qn;for(qn=0;qn<16;qn+=1)Rn.props[qn]=this.props[qn];return Rn}function gn(Rn){var qn;for(qn=0;qn<16;qn+=1)this.props[qn]=Rn[qn]}function zn(Rn,qn,Xn){return{x:Rn*this.props[0]+qn*this.props[4]+Xn*this.props[8]+this.props[12],y:Rn*this.props[1]+qn*this.props[5]+Xn*this.props[9]+this.props[13],z:Rn*this.props[2]+qn*this.props[6]+Xn*this.props[10]+this.props[14]}}function Vn(Rn,qn,Xn){return Rn*this.props[0]+qn*this.props[4]+Xn*this.props[8]+this.props[12]}function Kn(Rn,qn,Xn){return Rn*this.props[1]+qn*this.props[5]+Xn*this.props[9]+this.props[13]}function Un(Rn,qn,Xn){return Rn*this.props[2]+qn*this.props[6]+Xn*this.props[10]+this.props[14]}function Qn(){var Rn=this.props[0]*this.props[5]-this.props[1]*this.props[4],qn=this.props[5]/Rn,Xn=-this.props[1]/Rn,Hn=-this.props[4]/Rn,tr=this.props[0]/Rn,cr=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/Rn,ir=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/Rn,er=new Matrix;return er.props[0]=qn,er.props[1]=Xn,er.props[4]=Hn,er.props[5]=tr,er.props[12]=cr,er.props[13]=ir,er}function Jn(Rn){var qn=this.getInverseMatrix();return qn.applyToPointArray(Rn[0],Rn[1],Rn[2]||0)}function Yn(Rn){var qn,Xn=Rn.length,Hn=[];for(qn=0;qn<Xn;qn+=1)Hn[qn]=Jn(Rn[qn]);return Hn}function Zn(Rn,qn,Xn){var Hn=createTypedArray("float32",6);if(this.isIdentity())Hn[0]=Rn[0],Hn[1]=Rn[1],Hn[2]=qn[0],Hn[3]=qn[1],Hn[4]=Xn[0],Hn[5]=Xn[1];else{var tr=this.props[0],cr=this.props[1],ir=this.props[4],er=this.props[5],pr=this.props[12],lr=this.props[13];Hn[0]=Rn[0]*tr+Rn[1]*ir+pr,Hn[1]=Rn[0]*cr+Rn[1]*er+lr,Hn[2]=qn[0]*tr+qn[1]*ir+pr,Hn[3]=qn[0]*cr+qn[1]*er+lr,Hn[4]=Xn[0]*tr+Xn[1]*ir+pr,Hn[5]=Xn[0]*cr+Xn[1]*er+lr}return Hn}function nr(Rn,qn,Xn){var Hn;return this.isIdentity()?Hn=[Rn,qn,Xn]:Hn=[Rn*this.props[0]+qn*this.props[4]+Xn*this.props[8]+this.props[12],Rn*this.props[1]+qn*this.props[5]+Xn*this.props[9]+this.props[13],Rn*this.props[2]+qn*this.props[6]+Xn*this.props[10]+this.props[14]],Hn}function sr(Rn,qn){if(this.isIdentity())return Rn+","+qn;var Xn=this.props;return Math.round((Rn*Xn[0]+qn*Xn[4]+Xn[12])*100)/100+","+Math.round((Rn*Xn[1]+qn*Xn[5]+Xn[13])*100)/100}function ur(){for(var Rn=0,qn=this.props,Xn="matrix3d(",Hn=1e4;Rn<16;)Xn+=d(qn[Rn]*Hn)/Hn,Xn+=Rn===15?")":",",Rn+=1;return Xn}function Gn(Rn){var qn=1e4;return Rn<1e-6&&Rn>0||Rn>-1e-6&&Rn<0?d(Rn*qn)/qn:Rn}function Wn(){var Rn=this.props,qn=Gn(Rn[0]),Xn=Gn(Rn[1]),Hn=Gn(Rn[4]),tr=Gn(Rn[5]),cr=Gn(Rn[12]),ir=Gn(Rn[13]);return"matrix("+qn+","+Xn+","+Hn+","+tr+","+cr+","+ir+")"}return function(){this.reset=h,this.rotate=p,this.rotateX=v,this.rotateY=m,this.rotateZ=g,this.skew=x,this.skewFromAxis=Pn,this.shear=y,this.scale=b,this.setTransform=j,this.translate=re,this.transform=vn,this.multiply=Fn,this.applyToPoint=zn,this.applyToX=Vn,this.applyToY=Kn,this.applyToZ=Un,this.applyToPointArray=nr,this.applyToTriplePoints=Zn,this.applyToPointStringified=sr,this.toCSS=ur,this.to2dCSS=Wn,this.clone=J,this.cloneFromProps=gn,this.equals=w,this.inversePoints=Yn,this.inversePoint=Jn,this.getInverseMatrix=Qn,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,p){u[h]||(u[h]=p)}function d(h,p,v){return new u[h](p,v)}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 p=[];u<=1?p.push({s:c,e:u}):c>=1?p.push({s:c-1,e:u-1}):(p.push({s:c,e:1}),p.push({s:0,e:u-1}));var v=[],m,g=p.length,y;for(m=0;m<g;m+=1)if(y=p[m],!(y.e*h<d||y.s*h>d+f)){var x,Pn;y.s*h<=d?x=0:x=(y.s*h-d)/f,y.e*h>=d+f?Pn=1:Pn=(y.e*h-d)/f,v.push([x,Pn])}return v.length||v.push([0,0]),v},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 p,v,m=this.shapes.length,g,y,x,Pn,b,j=0;if(f===u)for(v=0;v<m;v+=1)this.shapes[v].localShapeCollection.releaseShapes(),this.shapes[v].shape._mdf=!0,this.shapes[v].shape.paths=this.shapes[v].localShapeCollection,this._mdf&&(this.shapes[v].pathsData.length=0);else if(f===1&&u===0||f===0&&u===1){if(this._mdf)for(v=0;v<m;v+=1)this.shapes[v].pathsData.length=0,this.shapes[v].shape._mdf=!0}else{var re=[],vn,Fn;for(v=0;v<m;v+=1)if(vn=this.shapes[v],!vn.shape._mdf&&!this._mdf&&!c&&this.m!==2)vn.shape.paths=vn.localShapeCollection;else{if(p=vn.shape.paths,y=p._length,b=0,!vn.shape._mdf&&vn.pathsData.length)b=vn.totalShapeLength;else{for(x=this.releasePathsData(vn.pathsData),g=0;g<y;g+=1)Pn=bez.getSegmentsLength(p.shapes[g]),x.push(Pn),b+=Pn.totalLength;vn.totalShapeLength=b,vn.pathsData=x}j+=b,vn.shape._mdf=!0}var Bn=u,w=f,J=0,gn;for(v=m-1;v>=0;v-=1)if(vn=this.shapes[v],vn.shape._mdf){for(Fn=vn.localShapeCollection,Fn.releaseShapes(),this.m===2&&m>1?(gn=this.calculateShapeEdges(u,f,vn.totalShapeLength,J,j),J+=vn.totalShapeLength):gn=[[Bn,w]],y=gn.length,g=0;g<y;g+=1){Bn=gn[g][0],w=gn[g][1],re.length=0,w<=1?re.push({s:vn.totalShapeLength*Bn,e:vn.totalShapeLength*w}):Bn>=1?re.push({s:vn.totalShapeLength*(Bn-1),e:vn.totalShapeLength*(w-1)}):(re.push({s:vn.totalShapeLength*Bn,e:vn.totalShapeLength}),re.push({s:0,e:vn.totalShapeLength*(w-1)}));var zn=this.addShapes(vn,re[0]);if(re[0].s!==re[0].e){if(re.length>1){var Vn=vn.shape.paths.shapes[vn.shape.paths._length-1];if(Vn.c){var Kn=zn.pop();this.addPaths(zn,Fn),zn=this.addShapes(vn,re[1],Kn)}else this.addPaths(zn,Fn),zn=this.addShapes(vn,re[1])}this.addPaths(zn,Fn)}}vn.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,p,v){h.setXYAt(u[0],u[1],"o",p),h.setXYAt(f[0],f[1],"i",p+1),v&&h.setXYAt(c[0],c[1],"v",p),h.setXYAt(d[0],d[1],"v",p+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,p,v=c.shape.paths._length,m,g,y=0,x,Pn,b,j,re=[],vn,Fn=!0;for(f?(Pn=f._length,vn=f._length):(f=shapePool.newElement(),Pn=0,vn=0),re.push(f),p=0;p<v;p+=1){for(b=d[p].lengths,f.c=h[p].c,g=h[p].c?b.length:b.length+1,m=1;m<g;m+=1)if(x=b[m-1],y+x.addedLength<u.s)y+=x.addedLength,f.c=!1;else if(y>u.e){f.c=!1;break}else u.s<=y&&u.e>=y+x.addedLength?(this.addSegment(h[p].v[m-1],h[p].o[m-1],h[p].i[m],h[p].v[m],f,Pn,Fn),Fn=!1):(j=bez.getNewSegment(h[p].v[m-1],h[p].v[m],h[p].o[m-1],h[p].i[m],(u.s-y)/x.addedLength,(u.e-y)/x.addedLength,b[m-1]),this.addSegmentFromArray(j,f,Pn,Fn),Fn=!1,f.c=!1),y+=x.addedLength,Pn+=1;if(h[p].c&&b.length){if(x=b[m-1],y<=u.e){var Bn=b[m-1].addedLength;u.s<=y&&u.e>=y+Bn?(this.addSegment(h[p].v[m-1],h[p].o[m-1],h[p].i[0],h[p].v[0],f,Pn,Fn),Fn=!1):(j=bez.getNewSegment(h[p].v[m-1],h[p].v[0],h[p].o[m-1],h[p].i[0],(u.s-y)/Bn,(u.e-y)/Bn,b[m-1]),this.addSegmentFromArray(j,f,Pn,Fn),Fn=!1,f.c=!1)}else f.c=!1;y+=x.addedLength,Pn+=1}if(f._length&&(f.setXYAt(f.v[vn][0],f.v[vn][1],"i",vn),f.setXYAt(f.v[f._length-1][0],f.v[f._length-1][1],"o",f._length-1)),y>u.e)break;p<v-1&&(f=shapePool.newElement(),Fn=!0,re.push(f),Pn=0)}return re};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,p=0;for(p=0;p<h;p+=1)d[0]+=c.v[p][0],d[1]+=c.v[p][1];d[0]/=h,d[1]/=h;var v=shapePool.newElement();v.c=c.c;var m,g,y,x,Pn,b;for(p=0;p<h;p+=1)m=c.v[p][0]+(d[0]-c.v[p][0])*f,g=c.v[p][1]+(d[1]-c.v[p][1])*f,y=c.o[p][0]+(d[0]-c.o[p][0])*-f,x=c.o[p][1]+(d[1]-c.o[p][1])*-f,Pn=c.i[p][0]+(d[0]-c.i[p][0])*-f,b=c.i[p][1]+(d[1]-c.i[p][1])*-f,v.setTripleAt(m,g,y,x,Pn,b,p);return v},PuckerAndBloatModifier.prototype.processShapes=function(c){var u,f,d=this.shapes.length,h,p,v=this.amount.v;if(v!==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,p=m.shape.paths._length,h=0;h<p;h+=1)g.addShape(this.processPath(u[h],v));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 x,Pn;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?(x=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/y,0),Pn=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?(x=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/y,0),Pn=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/y,0)):(x=this.p.pv,Pn=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){x=[],Pn=[];var b=this.px,j=this.py;b._caching.lastFrame+b.offsetTime<=b.keyframes[0].t?(x[0]=b.getValueAtTime((b.keyframes[0].t+.01)/y,0),x[1]=j.getValueAtTime((j.keyframes[0].t+.01)/y,0),Pn[0]=b.getValueAtTime(b.keyframes[0].t/y,0),Pn[1]=j.getValueAtTime(j.keyframes[0].t/y,0)):b._caching.lastFrame+b.offsetTime>=b.keyframes[b.keyframes.length-1].t?(x[0]=b.getValueAtTime(b.keyframes[b.keyframes.length-1].t/y,0),x[1]=j.getValueAtTime(j.keyframes[j.keyframes.length-1].t/y,0),Pn[0]=b.getValueAtTime((b.keyframes[b.keyframes.length-1].t-.01)/y,0),Pn[1]=j.getValueAtTime((j.keyframes[j.keyframes.length-1].t-.01)/y,0)):(x=[b.pv,j.pv],Pn[0]=b.getValueAtTime((b._caching.lastFrame+b.offsetTime-.01)/y,b.offsetTime),Pn[1]=j.getValueAtTime((j._caching.lastFrame+j.offsetTime-.01)/y,j.offsetTime))}else Pn=c,x=Pn;this.v.rotate(-Math.atan2(x[1]-Pn[1],x[0]-Pn[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 p(g){this._addDynamicProperty(g),this.elem.addDynamicProperty(g),this._isDirty=!0}function v(g,y,x){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(x||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 Pn,b=y.or.k.length;for(Pn=0;Pn<b;Pn+=1)y.or.k[Pn].to=null,y.or.k[Pn].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)}v.prototype={applyToMatrix:u,getValue:f,precalculateMatrix:d,autoOrient:h},extendPrototype([DynamicPropertyContainer],v),v.prototype.addDynamicProperty=p,v.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function m(g,y,x){return new v(g,y,x)}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,p){var v=p?-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]*v*h,d.p.v[1]*v*h,d.p.v[2]),u.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),u.rotate(-d.r.v*v*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(p?1/m:m,p?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,p,v=!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(),v=!0}p=0;var y;for(d=0;d<=this._groups.length-1;d+=1){if(y=p<m,this._groups[d]._render=y,this.changeGroupRender(this._groups[d].it,y),!y){var x=this.elemsData[d].it,Pn=x[x.length-1];Pn.transform.op.v!==0?(Pn.transform.op._mdf=!0,Pn.transform.op.v=0):Pn.transform.op._mdf=!1}p+=1}this._currentCopies=m;var b=this.o.v,j=b%1,re=b>0?Math.floor(b):Math.ceil(b),vn=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(b>0){for(;w<re;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),w+=1;j&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,j,!1),w+=j)}else if(b<0){for(;w>re;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),w-=1;j&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-j,!0),w-=j)}d=this.data.m===1?0:this._currentCopies-1,h=this.data.m===1?1:-1,p=this._currentCopies;for(var J,gn;p;){if(u=this.elemsData[d].it,f=u[u.length-1].transform.mProps.v.props,gn=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(vn[0],vn[1],vn[2],vn[3],vn[4],vn[5],vn[6],vn[7],vn[8],vn[9],vn[10],vn[11],vn[12],vn[13],vn[14],vn[15]),J=0;J<gn;J+=1)f[J]=this.matrix.props[J];this.matrix.reset()}else for(this.matrix.reset(),J=0;J<gn;J+=1)f[J]=this.matrix.props[J];w+=1,p-=1,d+=h}}else for(p=this._currentCopies,d=0,h=1;p;)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,p-=1,d+=h;return v},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,p,v,m,g,y,x,Pn=0,b,j,re,vn,Fn,Bn;for(d=0;d<h;d+=1)p=c.v[d],m=c.o[d],v=c.i[d],p[0]===m[0]&&p[1]===m[1]&&p[0]===v[0]&&p[1]===v[1]?(d===0||d===h-1)&&!c.c?(f.setTripleAt(p[0],p[1],m[0],m[1],v[0],v[1],Pn),Pn+=1):(d===0?g=c.v[h-1]:g=c.v[d-1],y=Math.sqrt(Math.pow(p[0]-g[0],2)+Math.pow(p[1]-g[1],2)),x=y?Math.min(y/2,u)/y:0,Fn=p[0]+(g[0]-p[0])*x,b=Fn,Bn=p[1]-(p[1]-g[1])*x,j=Bn,re=b-(b-p[0])*roundCorner,vn=j-(j-p[1])*roundCorner,f.setTripleAt(b,j,re,vn,Fn,Bn,Pn),Pn+=1,d===h-1?g=c.v[0]:g=c.v[d+1],y=Math.sqrt(Math.pow(p[0]-g[0],2)+Math.pow(p[1]-g[1],2)),x=y?Math.min(y/2,u)/y:0,re=p[0]+(g[0]-p[0])*x,b=re,vn=p[1]+(g[1]-p[1])*x,j=vn,Fn=b-(b-p[0])*roundCorner,Bn=j-(j-p[1])*roundCorner,f.setTripleAt(b,j,re,vn,Fn,Bn,Pn),Pn+=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],Pn),Pn+=1);return f},RoundCornersModifier.prototype.processShapes=function(c){var u,f,d=this.shapes.length,h,p,v=this.rd.v;if(v!==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,p=m.shape.paths._length,h=0;h<p;h+=1)g.addShape(this.processPath(u[h],v));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 p=Math.sqrt(d)/(2*c);return[h-p,h+p]}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 p=polynomialCoefficients(c[0],u[0],f[0],d[0]),v=polynomialCoefficients(c[1],u[1],f[1],d[1]);this.a=[p[0],v[0]],this.b=[p[1],v[1]],this.c=[p[2],v[2]],this.d=[p[3],v[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),p=lerpPoint(f,d,c),v=lerpPoint(h,p,c);return[new PolynomialBezier(this.points[0],u,h,v,!0),new PolynomialBezier(v,p,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 p=quadRoots(3*c.a[u],2*c.b[u],c.c[u]),v=0;v<p.length;v+=1)if(p[v]>0&&p[v]<1){var m=c.point(p[v])[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,p){if(boxIntersect(c,u)){if(f>=p||c.width<=d&&c.height<=d&&u.width<=d&&u.height<=d){h.push([c.t,u.t]);return}var v=splitData(c),m=splitData(u);intersectsImpl(v[0],m[0],f+1,d,h,p),intersectsImpl(v[0],m[1],f+1,d,h,p),intersectsImpl(v[1],m[0],f+1,d,h,p),intersectsImpl(v[1],m[1],f+1,d,h,p)}}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],p=[u[0],u[1],1],v=[f[0],f[1],1],m=[d[0],d[1],1],g=crossProduct(crossProduct(h,p),crossProduct(v,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,p,v){var m=f-Math.PI/2,g=f+Math.PI/2,y=u[0]+Math.cos(f)*d*h,x=u[1]-Math.sin(f)*d*h;c.setTripleAt(y,x,y+Math.cos(m)*p,x-Math.sin(m)*p,y+Math.cos(g)*v,x-Math.sin(g)*v,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],p=c.v[d],v=getPerpendicularVector(h,p);return Math.atan2(0,1)-Math.atan2(v[1],v[0])}function zigZagCorner(c,u,f,d,h,p,v){var m=getProjectingAngle(u,f),g=u.v[f%u._length],y=u.v[f===0?u._length-1:f-1],x=u.v[(f+1)%u._length],Pn=p===2?Math.sqrt(Math.pow(g[0]-y[0],2)+Math.pow(g[1]-y[1],2)):0,b=p===2?Math.sqrt(Math.pow(g[0]-x[0],2)+Math.pow(g[1]-x[1],2)):0;setPoint(c,u.v[f%u._length],m,v,d,b/((h+1)*2),Pn/((h+1)*2))}function zigZagSegment(c,u,f,d,h,p){for(var v=0;v<d;v+=1){var m=(v+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),x=u.point(m);setPoint(c,x,y,p,f,g/((d+1)*2),g/((d+1)*2)),p=-p}return p}ZigZagModifier.prototype.processPath=function(c,u,f,d){var h=c._length,p=shapePool.newElement();if(p.c=c.c,c.c||(h-=1),h===0)return p;var v=-1,m=PolynomialBezier.shapeSegment(c,0);zigZagCorner(p,c,0,u,f,d,v);for(var g=0;g<h;g+=1)v=zigZagSegment(p,m,u,f,d,-v),g===h-1&&!c.c?m=null:m=PolynomialBezier.shapeSegment(c,(g+1)%h),zigZagCorner(p,c,g+1,u,f,d,v);return p},ZigZagModifier.prototype.processShapes=function(c){var u,f,d=this.shapes.length,h,p,v=this.amplitude.v,m=Math.max(0,Math.round(this.frequency.v)),g=this.pointsType.v;if(v!==0){var y,x;for(f=0;f<d;f+=1){if(y=this.shapes[f],x=y.localShapeCollection,!(!y.shape._mdf&&!this._mdf&&!c))for(x.releaseShapes(),y.shape._mdf=!0,u=y.shape.paths.shapes,p=y.shape.paths._length,h=0;h<p;h+=1)x.addShape(this.processPath(u[h],v,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,p,v,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],p=g[1],g=linearOffset(c.points[2],c.points[3],u),v=g[0],m=g[1];var y=lineIntersection(f,d,h,p);y===null&&(y=d);var x=lineIntersection(v,m,h,p);return x===null&&(x=v),new PolynomialBezier(f,y,x,m)}function joinLines(c,u,f,d,h){var p=u.points[3],v=f.points[0];if(d===3||pointEqual(p,v))return p;if(d===2){var m=-u.tangentAngle(1),g=-f.tangentAngle(0)+Math.PI,y=lineIntersection(p,polarOffset(p,m+Math.PI/2,100),v,polarOffset(v,m+Math.PI/2,100)),x=y?pointDistance(y,p):pointDistance(p,v)/2,Pn=polarOffset(p,m,2*x*roundCorner);return c.setXYAt(Pn[0],Pn[1],"o",c.length()-1),Pn=polarOffset(v,g,2*x*roundCorner),c.setTripleAt(v[0],v[1],v[0],v[1],Pn[0],Pn[1],c.length()),v}var b=pointEqual(p,u.points[2])?u.points[0]:u.points[2],j=pointEqual(v,f.points[1])?f.points[3]:f.points[1],re=lineIntersection(b,p,v,j);return re&&pointDistance(re,p)<h?(c.setTripleAt(re[0],re[1],re[0],re[1],re[0],re[1],c.length()),re):p}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,p,v;if(f.length===0)return[offsetSegment(c,u)];if(f.length===1||floatEqual(f[1],1))return p=c.split(f[0]),d=p[0],h=p[1],[offsetSegment(d,u),offsetSegment(h,u)];p=c.split(f[0]),d=p[0];var m=(f[1]-f[0])/(1-f[0]);return p=p[1].split(m),v=p[0],h=p[1],[offsetSegment(d,u),offsetSegment(v,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 p=c.length();c.c||(p-=1);var v,m,g,y=[];for(v=0;v<p;v+=1)g=PolynomialBezier.shapeSegment(c,v),y.push(offsetSegmentSplit(g,u));if(!c.c)for(v=p-1;v>=0;v-=1)g=PolynomialBezier.shapeSegmentInverted(c,v),y.push(offsetSegmentSplit(g,u));y=pruneIntersections(y);var x=null,Pn=null;for(v=0;v<y.length;v+=1){var b=y[v];for(Pn&&(x=joinLines(h,Pn,b[0],f,d)),Pn=b[b.length-1],m=0;m<b.length;m+=1)g=b[m],x&&pointEqual(g.points[0],x)?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()),x=g.points[3]}return y.length&&joinLines(h,Pn,y[0][0],f,d),h},OffsetPathModifier.prototype.processShapes=function(c){var u,f,d=this.shapes.length,h,p,v=this.amount.v,m=this.miterLimit.v,g=this.lineJoin;if(v!==0){var y,x;for(f=0;f<d;f+=1){if(y=this.shapes[f],x=y.localShapeCollection,!(!y.shape._mdf&&!this._mdf&&!c))for(x.releaseShapes(),y.shape._mdf=!0,u=y.shape.paths.shapes,p=y.shape.paths._length,h=0;h<p;h+=1)x.addShape(this.processPath(u[h],v,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,p,v=0;v<h;v+=1)switch(p=u[v].toLowerCase(),p){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,p=917601,v=917626,m=65039,g=8205,y=127462,x=127487,Pn=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function b(Gn){var Wn=Gn.split(","),Rn,qn=Wn.length,Xn=[];for(Rn=0;Rn<qn;Rn+=1)Wn[Rn]!=="sans-serif"&&Wn[Rn]!=="monospace"&&Xn.push(Wn[Rn]);return Xn.join(",")}function j(Gn,Wn){var Rn=createTag("span");Rn.setAttribute("aria-hidden",!0),Rn.style.fontFamily=Wn;var qn=createTag("span");qn.innerText="giItT1WQy@!-/#",Rn.style.position="absolute",Rn.style.left="-10000px",Rn.style.top="-10000px",Rn.style.fontSize="300px",Rn.style.fontVariant="normal",Rn.style.fontStyle="normal",Rn.style.fontWeight="normal",Rn.style.letterSpacing="0",Rn.appendChild(qn),document.body.appendChild(Rn);var Xn=qn.offsetWidth;return qn.style.fontFamily=b(Gn)+", "+Wn,{node:qn,w:Xn,parent:Rn}}function re(){var Gn,Wn=this.fonts.length,Rn,qn,Xn=Wn;for(Gn=0;Gn<Wn;Gn+=1)this.fonts[Gn].loaded?Xn-=1:this.fonts[Gn].fOrigin==="n"||this.fonts[Gn].origin===0?this.fonts[Gn].loaded=!0:(Rn=this.fonts[Gn].monoCase.node,qn=this.fonts[Gn].monoCase.w,Rn.offsetWidth!==qn?(Xn-=1,this.fonts[Gn].loaded=!0):(Rn=this.fonts[Gn].sansCase.node,qn=this.fonts[Gn].sansCase.w,Rn.offsetWidth!==qn&&(Xn-=1,this.fonts[Gn].loaded=!0)),this.fonts[Gn].loaded&&(this.fonts[Gn].sansCase.parent.parentNode.removeChild(this.fonts[Gn].sansCase.parent),this.fonts[Gn].monoCase.parent.parentNode.removeChild(this.fonts[Gn].monoCase.parent)));Xn!==0&&Date.now()-this.initTime<c?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function vn(Gn,Wn){var Rn=document.body&&Wn?"svg":"canvas",qn,Xn=getFontProperties(Gn);if(Rn==="svg"){var Hn=createNS("text");Hn.style.fontSize="100px",Hn.setAttribute("font-family",Gn.fFamily),Hn.setAttribute("font-style",Xn.style),Hn.setAttribute("font-weight",Xn.weight),Hn.textContent="1",Gn.fClass?(Hn.style.fontFamily="inherit",Hn.setAttribute("class",Gn.fClass)):Hn.style.fontFamily=Gn.fFamily,Wn.appendChild(Hn),qn=Hn}else{var tr=new OffscreenCanvas(500,500).getContext("2d");tr.font=Xn.style+" "+Xn.weight+" 100px "+Gn.fFamily,qn=tr}function cr(ir){return Rn==="svg"?(qn.textContent=ir,qn.getComputedTextLength()):qn.measureText(ir).width}return{measureText:cr}}function Fn(Gn,Wn){if(!Gn){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=Gn.list;return}if(!document.body){this.isLoaded=!0,Gn.list.forEach(function(or){or.helper=vn(or),or.cache={}}),this.fonts=Gn.list;return}var Rn=Gn.list,qn,Xn=Rn.length,Hn=Xn;for(qn=0;qn<Xn;qn+=1){var tr=!0,cr,ir;if(Rn[qn].loaded=!1,Rn[qn].monoCase=j(Rn[qn].fFamily,"monospace"),Rn[qn].sansCase=j(Rn[qn].fFamily,"sans-serif"),!Rn[qn].fPath)Rn[qn].loaded=!0,Hn-=1;else if(Rn[qn].fOrigin==="p"||Rn[qn].origin===3){if(cr=document.querySelectorAll('style[f-forigin="p"][f-family="'+Rn[qn].fFamily+'"], style[f-origin="3"][f-family="'+Rn[qn].fFamily+'"]'),cr.length>0&&(tr=!1),tr){var er=createTag("style");er.setAttribute("f-forigin",Rn[qn].fOrigin),er.setAttribute("f-origin",Rn[qn].origin),er.setAttribute("f-family",Rn[qn].fFamily),er.type="text/css",er.innerText="@font-face {font-family: "+Rn[qn].fFamily+"; font-style: normal; src: url('"+Rn[qn].fPath+"');}",Wn.appendChild(er)}}else if(Rn[qn].fOrigin==="g"||Rn[qn].origin===1){for(cr=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),ir=0;ir<cr.length;ir+=1)cr[ir].href.indexOf(Rn[qn].fPath)!==-1&&(tr=!1);if(tr){var pr=createTag("link");pr.setAttribute("f-forigin",Rn[qn].fOrigin),pr.setAttribute("f-origin",Rn[qn].origin),pr.type="text/css",pr.rel="stylesheet",pr.href=Rn[qn].fPath,document.body.appendChild(pr)}}else if(Rn[qn].fOrigin==="t"||Rn[qn].origin===2){for(cr=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),ir=0;ir<cr.length;ir+=1)Rn[qn].fPath===cr[ir].src&&(tr=!1);if(tr){var lr=createTag("link");lr.setAttribute("f-forigin",Rn[qn].fOrigin),lr.setAttribute("f-origin",Rn[qn].origin),lr.setAttribute("rel","stylesheet"),lr.setAttribute("href",Rn[qn].fPath),Wn.appendChild(lr)}}Rn[qn].helper=vn(Rn[qn],Wn),Rn[qn].cache={},this.fonts.push(Rn[qn])}Hn===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function Bn(Gn){if(Gn){this.chars||(this.chars=[]);var Wn,Rn=Gn.length,qn,Xn=this.chars.length,Hn;for(Wn=0;Wn<Rn;Wn+=1){for(qn=0,Hn=!1;qn<Xn;)this.chars[qn].style===Gn[Wn].style&&this.chars[qn].fFamily===Gn[Wn].fFamily&&this.chars[qn].ch===Gn[Wn].ch&&(Hn=!0),qn+=1;Hn||(this.chars.push(Gn[Wn]),Xn+=1)}}}function w(Gn,Wn,Rn){for(var qn=0,Xn=this.chars.length;qn<Xn;){if(this.chars[qn].ch===Gn&&this.chars[qn].style===Wn&&this.chars[qn].fFamily===Rn)return this.chars[qn];qn+=1}return(typeof Gn=="string"&&Gn.charCodeAt(0)!==13||!Gn)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",Gn,Wn,Rn)),u}function J(Gn,Wn,Rn){var qn=this.getFontByName(Wn),Xn=Gn;if(!qn.cache[Xn]){var Hn=qn.helper;if(Gn===" "){var tr=Hn.measureText("|"+Gn+"|"),cr=Hn.measureText("||");qn.cache[Xn]=(tr-cr)/100}else qn.cache[Xn]=Hn.measureText(Gn)/100}return qn.cache[Xn]*Rn}function gn(Gn){for(var Wn=0,Rn=this.fonts.length;Wn<Rn;){if(this.fonts[Wn].fName===Gn)return this.fonts[Wn];Wn+=1}return this.fonts[0]}function zn(Gn){var Wn=0,Rn=Gn.charCodeAt(0);if(Rn>=55296&&Rn<=56319){var qn=Gn.charCodeAt(1);qn>=56320&&qn<=57343&&(Wn=(Rn-55296)*1024+qn-56320+65536)}return Wn}function Vn(Gn,Wn){var Rn=Gn.toString(16)+Wn.toString(16);return Pn.indexOf(Rn)!==-1}function Kn(Gn){return Gn===g}function Un(Gn){return Gn===m}function Qn(Gn){var Wn=zn(Gn);return Wn>=y&&Wn<=x}function Jn(Gn){return Qn(Gn.substr(0,2))&&Qn(Gn.substr(2,2))}function Yn(Gn){return f.indexOf(Gn)!==-1}function Zn(Gn,Wn){var Rn=zn(Gn.substr(Wn,2));if(Rn!==d)return!1;var qn=0;for(Wn+=2;qn<5;){if(Rn=zn(Gn.substr(Wn,2)),Rn<p||Rn>v)return!1;qn+=1,Wn+=2}return zn(Gn.substr(Wn,2))===h}function nr(){this.isLoaded=!0}var sr=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)};sr.isModifier=Vn,sr.isZeroWidthJoiner=Kn,sr.isFlagEmoji=Jn,sr.isRegionalCode=Qn,sr.isCombinedCharacter=Yn,sr.isRegionalFlag=Zn,sr.isVariationSelector=Un,sr.BLACK_FLAG_CODE_POINT=d;var ur={addChars:Bn,addFonts:Fn,getCharData:w,getFontByName:gn,measureText:J,checkLoadedFonts:re,setIsLoaded:nr};return sr.prototype=ur,sr}();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,p;for(d=0;d<h;d+=1)p=new GroupEffect(f[d],u),this.effectElements.push(p)}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,p=this.data.ef;for(f=0;f<d;f+=1){switch(h=null,p[f].ty){case 0:h=new SliderEffect(p[f],u,this);break;case 1:h=new AngleEffect(p[f],u,this);break;case 2:h=new ColorEffect(p[f],u,this);break;case 3:h=new PointEffect(p[f],u,this);break;case 4:case 7:h=new CheckboxEffect(p[f],u,this);break;case 10:h=new LayerIndexEffect(p[f],u,this);break;case 11:h=new MaskIndexEffect(p[f],u,this);break;case 5:h=new EffectsManager(p[f],u);break;default:h=new NoValueEffect(p[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"),p=u("text"),v=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=v(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=p(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,p=0,v=h.length;p<v;)h[p].ind==u&&(!d[p]||d[p]===!0?(this.buildItem(p),this.addPendingElement(c)):(f.push(d[p]),d[p].setAsParent(),h[p].parent!==void 0?this.buildElementParenting(c,h[p].parent,f):c.setHierarchy(f))),p+=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 p=this.finalTransform.localOpacity;for(u=0;u<f;u+=1)p*=this.localTransforms[u].opacity*.01;this.finalTransform.localOpacity=p}}},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 p,v=f.length,m;for(p=0;p<v;p+=1)m=f[p].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,p=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(p),this.solidPath="";var v,m=this.masksProperties,g=0,y=[],x,Pn,b=createElementID(),j,re,vn,Fn,Bn="clipPath",w="clip-path";for(h=0;h<p;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?(j=createNS("rect"),j.setAttribute("fill","#ffffff"),j.setAttribute("width",this.element.comp.data.w||0),j.setAttribute("height",this.element.comp.data.h||0),y.push(j)):j=null,v=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:v,lastPath:""},d.appendChild(v);else{g+=1,v.setAttribute("fill",m[h].mode==="s"?"#000000":"#ffffff"),v.setAttribute("clip-rule","nonzero");var J;if(m[h].x.k!==0?(Bn="mask",w="mask",Fn=PropertyFactory.getProp(this.element,m[h].x,0,null,this.element),J=createElementID(),re=createNS("filter"),re.setAttribute("id",J),vn=createNS("feMorphology"),vn.setAttribute("operator","erode"),vn.setAttribute("in","SourceGraphic"),vn.setAttribute("radius","0"),re.appendChild(vn),d.appendChild(re),v.setAttribute("stroke",m[h].mode==="s"?"#000000":"#ffffff")):(vn=null,Fn=null),this.storedData[h]={elem:v,x:Fn,expan:vn,lastPath:"",lastOperator:"",filterId:J,lastRadius:0},m[h].mode==="i"){Pn=y.length;var gn=createNS("g");for(x=0;x<Pn;x+=1)gn.appendChild(y[x]);var zn=createNS("mask");zn.setAttribute("mask-type","alpha"),zn.setAttribute("id",b+"_"+g),zn.appendChild(v),d.appendChild(zn),gn.setAttribute("mask","url("+getLocationHref()+"#"+b+"_"+g+")"),y.length=0,y.push(gn)}else y.push(v);m[h].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[h]={elem:v,lastPath:"",op:PropertyFactory.getProp(this.element,m[h].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,m[h],3),invRect:j},this.viewData[h].prop.k||this.drawPath(m[h],this.viewData[h].prop.v,this.viewData[h])}for(this.maskElement=createNS(Bn),p=y.length,h=0;h<p;h+=1)this.maskElement.appendChild(y[h]);g>0&&(this.maskElement.setAttribute("id",b),this.element.maskedElement.setAttribute(w,"url("+getLocationHref()+"#"+b+")"),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,p;for(p=u._length,h=1;h<p;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&&p>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 v="";f.elem&&(u.c&&(v=c.inv?this.solidPath+d:d),f.elem.setAttribute("d",v)),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 p=createNS("filter");return p.setAttribute("id",d),h!==!0&&(p.setAttribute("filterUnits","objectBoundingBox"),p.setAttribute("x","0%"),p.setAttribute("y","0%"),p.setAttribute("width","100%"),p.setAttribute("height","100%")),p}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(),p=filtersFactory.createFilter(h,!0),v=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(p,c.effectsManager.effectElements[u],c,idPrefix+v,f),f=idPrefix+v,registeredEffects$1[g].countsAsEffect&&(v+=1)}m&&this.filters.push(m)}v&&(c.globalData.defs.appendChild(p),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 p=createElementID();if(d.setAttribute("id",p),d.appendChild(h),this.globalData.defs.appendChild(d),this.checkMasks()){var v=createNS("g");v.setAttribute("clip-path","url("+getLocationHref()+"#"+p+")"),v.appendChild(this.layerElement),this.transformedElement=v,u?u.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+p+")")}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,p,v;if(u===1||u===3){var m=createNS("mask");m.setAttribute("id",f),m.setAttribute("mask-type",u===3?"luminance":"alpha"),p=createNS("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),m.appendChild(p),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()),v=createNS("g"),v.appendChild(p),m.appendChild(v),v.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 x=createNS("feComponentTransfer");x.setAttribute("in","SourceGraphic"),h.appendChild(x);var Pn=createNS("feFuncA");Pn.setAttribute("type","table"),Pn.setAttribute("tableValues","1.0 0.0"),x.appendChild(Pn),this.globalData.defs.appendChild(h);var b=createNS("rect");b.setAttribute("width",this.comp.data.w),b.setAttribute("height",this.comp.data.h),b.setAttribute("x","0"),b.setAttribute("y","0"),b.setAttribute("fill","#ffffff"),b.setAttribute("opacity","0"),y.setAttribute("filter","url("+getLocationHref()+"#"+d+")"),y.appendChild(b),p=createNS("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),y.appendChild(p),featureSupport.maskType||(g.setAttribute("mask-type","luminance"),h.appendChild(filtersFactory.createAlphaToLuminanceFilter()),v=createNS("g"),y.appendChild(b),v.appendChild(this.layerElement),y.appendChild(v)),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,p=u.length||0,v;for(h=0;h<p;h+=1)v=PropertyFactory.getProp(c,u[h].v,0,0,this),this.k=v.k||this.k,this.dataProps[h]={n:u[h].n,p:v};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=[],p,v,m;for(m=u.g.p*4,v=0;v<m;v+=4)p=createNS("stop"),d.appendChild(p),h.push(p);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,p=createNS("mask"),v=createNS("path");p.appendChild(v);var m=createElementID(),g=createElementID();p.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 x=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),x.push(f);v.setAttribute(c.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+m+")"),c.ty==="gs"&&(v.setAttribute("stroke-linecap",lineCapEnum[c.lc||2]),v.setAttribute("stroke-linejoin",lineJoinEnum[c.lj||2]),c.lj===1&&v.setAttribute("stroke-miterlimit",c.ml)),this.of=y,this.ms=p,this.ost=x,this.maskId=g,u.msElem=v}},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 p=u.o,v=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(p[g-1][0],p[g-1][1])+" "+h.applyToPointStringified(v[g][0],v[g][1])+" "+h.applyToPointStringified(m[g][0],m[g][1]);return d&&f&&(y+=" C"+h.applyToPointStringified(p[g-1][0],p[g-1][1])+" "+h.applyToPointStringified(v[0][0],v[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(Pn){switch(Pn.ty){case"fl":return m;case"gf":return y;case"gs":return g;case"st":return x;case"sh":case"el":case"rc":case"sr":return v;case"tr":return h;case"no":return p;default:return null}}function h(Pn,b,j){(j||b.transform.op._mdf)&&b.transform.container.setAttribute("opacity",b.transform.op.v),(j||b.transform.mProps._mdf)&&b.transform.container.setAttribute("transform",b.transform.mProps.v.to2dCSS())}function p(){}function v(Pn,b,j){var re,vn,Fn,Bn,w,J,gn=b.styles.length,zn=b.lvl,Vn,Kn,Un,Qn;for(J=0;J<gn;J+=1){if(Bn=b.sh._mdf||j,b.styles[J].lvl<zn){for(Kn=u.reset(),Un=zn-b.styles[J].lvl,Qn=b.transformers.length-1;!Bn&&Un>0;)Bn=b.transformers[Qn].mProps._mdf||Bn,Un-=1,Qn-=1;if(Bn)for(Un=zn-b.styles[J].lvl,Qn=b.transformers.length-1;Un>0;)Kn.multiply(b.transformers[Qn].mProps.v),Un-=1,Qn-=1}else Kn=c;if(Vn=b.sh.paths,vn=Vn._length,Bn){for(Fn="",re=0;re<vn;re+=1)w=Vn.shapes[re],w&&w._length&&(Fn+=buildShapeString(w,w._length,w.c,Kn));b.caches[J]=Fn}else Fn=b.caches[J];b.styles[J].d+=Pn.hd===!0?"":Fn,b.styles[J]._mdf=Bn||b.styles[J]._mdf}}function m(Pn,b,j){var re=b.style;(b.c._mdf||j)&&re.pElem.setAttribute("fill","rgb("+bmFloor(b.c.v[0])+","+bmFloor(b.c.v[1])+","+bmFloor(b.c.v[2])+")"),(b.o._mdf||j)&&re.pElem.setAttribute("fill-opacity",b.o.v)}function g(Pn,b,j){y(Pn,b,j),x(Pn,b,j)}function y(Pn,b,j){var re=b.gf,vn=b.g._hasOpacity,Fn=b.s.v,Bn=b.e.v;if(b.o._mdf||j){var w=Pn.ty==="gf"?"fill-opacity":"stroke-opacity";b.style.pElem.setAttribute(w,b.o.v)}if(b.s._mdf||j){var J=Pn.t===1?"x1":"cx",gn=J==="x1"?"y1":"cy";re.setAttribute(J,Fn[0]),re.setAttribute(gn,Fn[1]),vn&&!b.g._collapsable&&(b.of.setAttribute(J,Fn[0]),b.of.setAttribute(gn,Fn[1]))}var zn,Vn,Kn,Un;if(b.g._cmdf||j){zn=b.cst;var Qn=b.g.c;for(Kn=zn.length,Vn=0;Vn<Kn;Vn+=1)Un=zn[Vn],Un.setAttribute("offset",Qn[Vn*4]+"%"),Un.setAttribute("stop-color","rgb("+Qn[Vn*4+1]+","+Qn[Vn*4+2]+","+Qn[Vn*4+3]+")")}if(vn&&(b.g._omdf||j)){var Jn=b.g.o;for(b.g._collapsable?zn=b.cst:zn=b.ost,Kn=zn.length,Vn=0;Vn<Kn;Vn+=1)Un=zn[Vn],b.g._collapsable||Un.setAttribute("offset",Jn[Vn*2]+"%"),Un.setAttribute("stop-opacity",Jn[Vn*2+1])}if(Pn.t===1)(b.e._mdf||j)&&(re.setAttribute("x2",Bn[0]),re.setAttribute("y2",Bn[1]),vn&&!b.g._collapsable&&(b.of.setAttribute("x2",Bn[0]),b.of.setAttribute("y2",Bn[1])));else{var Yn;if((b.s._mdf||b.e._mdf||j)&&(Yn=Math.sqrt(Math.pow(Fn[0]-Bn[0],2)+Math.pow(Fn[1]-Bn[1],2)),re.setAttribute("r",Yn),vn&&!b.g._collapsable&&b.of.setAttribute("r",Yn)),b.e._mdf||b.h._mdf||b.a._mdf||j){Yn||(Yn=Math.sqrt(Math.pow(Fn[0]-Bn[0],2)+Math.pow(Fn[1]-Bn[1],2)));var Zn=Math.atan2(Bn[1]-Fn[1],Bn[0]-Fn[0]),nr=b.h.v;nr>=1?nr=.99:nr<=-1&&(nr=-.99);var sr=Yn*nr,ur=Math.cos(Zn+b.a.v)*sr+Fn[0],Gn=Math.sin(Zn+b.a.v)*sr+Fn[1];re.setAttribute("fx",ur),re.setAttribute("fy",Gn),vn&&!b.g._collapsable&&(b.of.setAttribute("fx",ur),b.of.setAttribute("fy",Gn))}}}function x(Pn,b,j){var re=b.style,vn=b.d;vn&&(vn._mdf||j)&&vn.dashStr&&(re.pElem.setAttribute("stroke-dasharray",vn.dashStr),re.pElem.setAttribute("stroke-dashoffset",vn.dashoffset[0])),b.c&&(b.c._mdf||j)&&re.pElem.setAttribute("stroke","rgb("+bmFloor(b.c.v[0])+","+bmFloor(b.c.v[1])+","+bmFloor(b.c.v[2])+")"),(b.o._mdf||j)&&re.pElem.setAttribute("stroke-opacity",b.o.v),(b.w._mdf||j)&&(re.pElem.setAttribute("stroke-width",b.w.v),re.msElem&&re.msElem.setAttribute("stroke-width",b.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,p,v=[],m=!1;for(d=0;d<h;d+=1){for(p=this.stylesList[d],m=!1,v.length=0,c=0;c<u;c+=1)f=this.shapes[c],f.styles.indexOf(p)!==-1&&(v.push(f),m=f._isAnimated||m);v.length>1&&m&&this.setShapesAsAnimated(v)}},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 p=c.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;f=new p(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),p=new SVGShapeData(u,f,h);return this.shapes.push(p),this.addShapeToModifiers(p),this.addToAnimatedContents(c,p),p},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,p,v){var m=[].concat(p),g,y=c.length-1,x,Pn,b=[],j=[],re,vn,Fn;for(g=y;g>=0;g-=1){if(Fn=this.searchProcessedElement(c[g]),Fn?u[g]=f[Fn-1]:c[g]._render=v,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),b.push(u[g].style);else if(c[g].ty==="gr"){if(!Fn)u[g]=this.createGroupElement(c[g]);else for(Pn=u[g].it.length,x=0;x<Pn;x+=1)u[g].prevViewData[x]=u[g].it[x];this.searchShapes(c[g].it,u[g].it,u[g].prevViewData,u[g].gr,h+1,m,v),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)),re=u[g].transform,m.push(re)):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?(vn=u[g],vn.closed=!1):(vn=ShapeModifiers.getModifier(c[g].ty),vn.init(this,c[g]),u[g]=vn,this.shapeModifiers.push(vn)),j.push(vn)):c[g].ty==="rp"&&(Fn?(vn=u[g],vn.closed=!0):(vn=ShapeModifiers.getModifier(c[g].ty),u[g]=vn,vn.init(this,c,g,u),this.shapeModifiers.push(vn),v=!1),j.push(vn));this.addProcessedElement(c[g],g+1)}for(y=b.length,g=0;g<y;g+=1)b[g].closed=!0;for(y=j.length,g=0;g<y;g+=1)j[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,p){this.o=c,this.sw=u,this.sc=f,this.fc=d,this.m=h,this.p=p,this._mdf={o:!0,sw:!!u,sc:!!f,fc:!!d,m:!0,p:!0}}LetterProps.prototype.update=function(c,u,f,d,h,p){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 v=!1;return this.o!==c&&(this.o=c,this._mdf.o=!0,v=!0),this.sw!==u&&(this.sw=u,this._mdf.sw=!0,v=!0),this.sc!==f&&(this.sc=f,this._mdf.sc=!0,v=!0),this.fc!==d&&(this.fc=d,this._mdf.fc=!0,v=!0),this.m!==h&&(this.m=h,this._mdf.m=!0,v=!0),p.length&&(this.p[0]!==p[0]||this.p[1]!==p[1]||this.p[4]!==p[4]||this.p[5]!==p[5]||this.p[12]!==p[12]||this.p[13]!==p[13])&&(this.p=p,this._mdf.p=!0,v=!0),v};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,p=c||this.data.d.k[this.keysIndex].s;for(d=0;d<h;d+=1)f!==this.keysIndex?p=this.effectsSequence[d](p,p.t):p=this.effectsSequence[d](this.currentData,p.t);u!==p&&this.setCurrentData(p),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,p,v=!1,m=!1,g="";f<d;)v=m,m=!1,h=c.charCodeAt(f),g=c.charAt(f),FontManager.isCombinedCharacter(h)?v=!0:h>=55296&&h<=56319?FontManager.isRegionalFlag(c,f)?g=c.substr(f,14):(p=c.charCodeAt(f+1),p>=56320&&p<=57343&&(FontManager.isModifier(h,p)?(g=c.substr(f,2),v=!0):FontManager.isFlagEmoji(c.substr(f,4))?g=c.substr(f,4):g=c.substr(f,2))):h>56319?(p=c.charCodeAt(f+1),FontManager.isVariationSelector(h)&&(v=!0)):FontManager.isZeroWidthJoiner(h)&&(v=!0,m=!0),v?(u[u.length-1]+=g,v=!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,p,v,m=0,g,y=f.m.g,x=0,Pn=0,b=0,j=[],re=0,vn=0,Fn,Bn,w=u.getFontByName(c.f),J,gn=0,zn=getFontProperties(w);c.fWeight=zn.weight,c.fStyle=zn.style,c.finalSize=c.s,c.finalText=this.buildFinalText(c.t),p=c.finalText.length,c.finalLineHeight=c.lh;var Vn=c.tr/1e3*c.finalSize,Kn;if(c.sz)for(var Un=!0,Qn=c.sz[0],Jn=c.sz[1],Yn,Zn;Un;){Zn=this.buildFinalText(c.t),Yn=0,re=0,p=Zn.length,Vn=c.tr/1e3*c.finalSize;var nr=-1;for(h=0;h<p;h+=1)Kn=Zn[h].charCodeAt(0),v=!1,Zn[h]===" "?nr=h:(Kn===13||Kn===3)&&(re=0,v=!0,Yn+=c.finalLineHeight||c.finalSize*1.2),u.chars?(J=u.getCharData(Zn[h],w.fStyle,w.fFamily),gn=v?0:J.w*c.finalSize/100):gn=u.measureText(Zn[h],c.f,c.finalSize),re+gn>Qn&&Zn[h]!==" "?(nr===-1?p+=1:h=nr,Yn+=c.finalLineHeight||c.finalSize*1.2,Zn.splice(h,nr===h?1:0,"\r"),nr=-1,re=0):(re+=gn,re+=Vn);Yn+=w.ascent*c.finalSize/100,this.canResize&&c.finalSize>this.minimumFontSize&&Jn<Yn?(c.finalSize-=1,c.finalLineHeight=c.finalSize*c.lh/c.s):(c.finalText=Zn,p=c.finalText.length,Un=!1)}re=-Vn,gn=0;var sr=0,ur;for(h=0;h<p;h+=1)if(v=!1,ur=c.finalText[h],Kn=ur.charCodeAt(0),Kn===13||Kn===3?(sr=0,j.push(re),vn=re>vn?re:vn,re=-2*Vn,g="",v=!0,b+=1):g=ur,u.chars?(J=u.getCharData(ur,w.fStyle,u.getFontByName(c.f).fFamily),gn=v?0:J.w*c.finalSize/100):gn=u.measureText(g,c.f,c.finalSize),ur===" "?sr+=gn+Vn:(re+=gn+Vn+sr,sr=0),d.push({l:gn,an:gn,add:x,n:v,anIndexes:[],val:g,line:b,animatorJustifyOffset:0}),y==2){if(x+=gn,g===""||g===" "||h===p-1){for((g===""||g===" ")&&(x-=gn);Pn<=h;)d[Pn].an=x,d[Pn].ind=m,d[Pn].extra=gn,Pn+=1;m+=1,x=0}}else if(y==3){if(x+=gn,g===""||h===p-1){for(g===""&&(x-=gn);Pn<=h;)d[Pn].an=x,d[Pn].ind=m,d[Pn].extra=gn,Pn+=1;x=0,m+=1}}else d[m].ind=m,d[m].extra=0,m+=1;if(c.l=d,vn=re>vn?re:vn,j.push(re),c.sz)c.boxWidth=c.sz[0],c.justifyOffset=0;else switch(c.boxWidth=vn,c.j){case 1:c.justifyOffset=-c.boxWidth;break;case 2:c.justifyOffset=-c.boxWidth/2;break;default:c.justifyOffset=0}c.lineWidths=j;var Gn=f.a,Wn,Rn;Bn=Gn.length;var qn,Xn,Hn=[];for(Fn=0;Fn<Bn;Fn+=1){for(Wn=Gn[Fn],Wn.a.sc&&(c.strokeColorAnim=!0),Wn.a.sw&&(c.strokeWidthAnim=!0),(Wn.a.fc||Wn.a.fh||Wn.a.fs||Wn.a.fb)&&(c.fillColorAnim=!0),Xn=0,qn=Wn.s.b,h=0;h<p;h+=1)Rn=d[h],Rn.anIndexes[Fn]=Xn,(qn==1&&Rn.val!==""||qn==2&&Rn.val!==""&&Rn.val!==" "||qn==3&&(Rn.n||Rn.val==" "||h==p-1)||qn==4&&(Rn.n||h==p-1))&&(Wn.s.rn===1&&Hn.push(Xn),Xn+=1);f.a[Fn].s.totalChars=Xn;var tr=-1,cr;if(Wn.s.rn===1)for(h=0;h<p;h+=1)Rn=d[h],tr!=Rn.anIndexes[Fn]&&(tr=Rn.anIndexes[Fn],cr=Hn.splice(Math.floor(Math.random()*Hn.length),1)[0]),Rn.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(p,v){this._currentTextLength=-1,this.k=!1,this.data=v,this.elem=p,this.comp=p.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(p),this.s=PropertyFactory.getProp(p,v.s||{k:0},0,0,this),"e"in v?this.e=PropertyFactory.getProp(p,v.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(p,v.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(p,v.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(p,v.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(p,v.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(p,v.a,0,.01,this),this.dynamicProperties.length||this.getValue()}d.prototype={getMult:function(v){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var m=0,g=0,y=1,x=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:x=1+this.xe.v/100;var Pn=BezierFactory.getBezierEasing(m,g,y,x).get,b=0,j=this.finalS,re=this.finalE,vn=this.data.sh;if(vn===2)re===j?b=v>=re?1:0:b=c(0,u(.5/(re-j)+(v-j)/(re-j),1)),b=Pn(b);else if(vn===3)re===j?b=v>=re?0:1:b=1-c(0,u(.5/(re-j)+(v-j)/(re-j),1)),b=Pn(b);else if(vn===4)re===j?b=0:(b=c(0,u(.5/(re-j)+(v-j)/(re-j),1)),b<.5?b*=2:b=1-2*(b-.5)),b=Pn(b);else if(vn===5){if(re===j)b=0;else{var Fn=re-j;v=u(c(0,v+.5-j),re-j);var Bn=-Fn/2+v,w=Fn/2;b=Math.sqrt(1-Bn*Bn/(w*w))}b=Pn(b)}else vn===6?(re===j?b=0:(v=u(c(0,v+.5-j),re-j),b=(1+Math.cos(Math.PI+Math.PI*2*v/(re-j)))/2),b=Pn(b)):(v>=f(j)&&(v-j<0?b=c(0,u(u(re,1)-(j-v),1)):b=c(0,u(re-v,1))),b=Pn(b));if(this.sm.v!==100){var J=this.sm.v*.01;J===0&&(J=1e-8);var gn=.5-J*.5;b<gn?b=0:(b=(b-gn)/J,b>1&&(b=1))}return b*this.a.v},getValue:function(v){this.iterateDynamicProperties(),this._mdf=v||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,v&&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,x=this.e.v/m+g;if(y>x){var Pn=y;y=x,x=Pn}this.finalS=y,this.finalE=x}},extendPrototype([DynamicPropertyContainer],d);function h(p,v,m){return new d(p,v)}return{getTextSelectorProp:h}}();function TextAnimatorDataProperty(c,u,f){var d={propType:!1},h=PropertyFactory.getProp,p=u.a;this.a={r:p.r?h(c,p.r,0,degToRads,f):d,rx:p.rx?h(c,p.rx,0,degToRads,f):d,ry:p.ry?h(c,p.ry,0,degToRads,f):d,sk:p.sk?h(c,p.sk,0,degToRads,f):d,sa:p.sa?h(c,p.sa,0,degToRads,f):d,s:p.s?h(c,p.s,1,.01,f):d,a:p.a?h(c,p.a,1,0,f):d,o:p.o?h(c,p.o,0,.01,f):d,p:p.p?h(c,p.p,1,0,f):d,sw:p.sw?h(c,p.sw,0,0,f):d,sc:p.sc?h(c,p.sc,1,0,f):d,fc:p.fc?h(c,p.fc,1,0,f):d,fh:p.fh?h(c,p.fh,0,0,f):d,fs:p.fs?h(c,p.fs,0,.01,f):d,fb:p.fb?h(c,p.fb,0,.01,f):d,t:p.t?h(c,p.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,p=this.mHelper,v=this._renderType,m=this.renderedLetters.length,g,y,x,Pn,b=c.l,j,re,vn,Fn,Bn,w,J,gn,zn,Vn,Kn,Un,Qn,Jn,Yn;if(this._hasMaskedPath){if(Yn=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Zn=Yn.v;this._pathData.r.v&&(Zn=Zn.reverse()),j={tLength:0,segments:[]},Pn=Zn._length-1;var nr;for(Un=0,x=0;x<Pn;x+=1)nr=bez.buildBezierData(Zn.v[x],Zn.v[x+1],[Zn.o[x][0]-Zn.v[x][0],Zn.o[x][1]-Zn.v[x][1]],[Zn.i[x+1][0]-Zn.v[x+1][0],Zn.i[x+1][1]-Zn.v[x+1][1]]),j.tLength+=nr.segmentLength,j.segments.push(nr),Un+=nr.segmentLength;x=Pn,Yn.v.c&&(nr=bez.buildBezierData(Zn.v[x],Zn.v[0],[Zn.o[x][0]-Zn.v[x][0],Zn.o[x][1]-Zn.v[x][1]],[Zn.i[0][0]-Zn.v[0][0],Zn.i[0][1]-Zn.v[0][1]]),j.tLength+=nr.segmentLength,j.segments.push(nr),Un+=nr.segmentLength),this._pathData.pi=j}if(j=this._pathData.pi,re=this._pathData.f.v,J=0,w=1,Fn=0,Bn=!0,Vn=j.segments,re<0&&Yn.v.c)for(j.tLength<Math.abs(re)&&(re=-Math.abs(re)%j.tLength),J=Vn.length-1,zn=Vn[J].points,w=zn.length-1;re<0;)re+=zn[w].partialLength,w-=1,w<0&&(J-=1,zn=Vn[J].points,w=zn.length-1);zn=Vn[J].points,gn=zn[w-1],vn=zn[w],Kn=vn.partialLength}Pn=b.length,g=0,y=0;var sr=c.finalSize*1.2*.714,ur=!0,Gn,Wn,Rn,qn,Xn;qn=d.length;var Hn,tr=-1,cr,ir,er,pr=re,lr=J,or=w,ar=-1,vr,fr,mr,dr,hr,yr,_r,gr,br="",Er=this.defaultPropsArray,Mr;if(c.j===2||c.j===1){var Ir=0,Fr=0,Or=c.j===2?-.5:-1,Nr=0,zr=!0;for(x=0;x<Pn;x+=1)if(b[x].n){for(Ir&&(Ir+=Fr);Nr<x;)b[Nr].animatorJustifyOffset=Ir,Nr+=1;Ir=0,zr=!0}else{for(Rn=0;Rn<qn;Rn+=1)Gn=d[Rn].a,Gn.t.propType&&(zr&&c.j===2&&(Fr+=Gn.t.v*Or),Wn=d[Rn].s,Hn=Wn.getMult(b[x].anIndexes[Rn],h.a[Rn].s.totalChars),Hn.length?Ir+=Gn.t.v*Hn[0]*Or:Ir+=Gn.t.v*Hn*Or);zr=!1}for(Ir&&(Ir+=Fr);Nr<x;)b[Nr].animatorJustifyOffset=Ir,Nr+=1}for(x=0;x<Pn;x+=1){if(p.reset(),vr=1,b[x].n)g=0,y+=c.yOffset,y+=ur?1:0,re=pr,ur=!1,this._hasMaskedPath&&(J=lr,w=or,zn=Vn[J].points,gn=zn[w-1],vn=zn[w],Kn=vn.partialLength,Fn=0),br="",gr="",yr="",Mr="",Er=this.defaultPropsArray;else{if(this._hasMaskedPath){if(ar!==b[x].line){switch(c.j){case 1:re+=Un-c.lineWidths[b[x].line];break;case 2:re+=(Un-c.lineWidths[b[x].line])/2;break}ar=b[x].line}tr!==b[x].ind&&(b[tr]&&(re+=b[tr].extra),re+=b[x].an/2,tr=b[x].ind),re+=f[0]*b[x].an*.005;var Rr=0;for(Rn=0;Rn<qn;Rn+=1)Gn=d[Rn].a,Gn.p.propType&&(Wn=d[Rn].s,Hn=Wn.getMult(b[x].anIndexes[Rn],h.a[Rn].s.totalChars),Hn.length?Rr+=Gn.p.v[0]*Hn[0]:Rr+=Gn.p.v[0]*Hn),Gn.a.propType&&(Wn=d[Rn].s,Hn=Wn.getMult(b[x].anIndexes[Rn],h.a[Rn].s.totalChars),Hn.length?Rr+=Gn.a.v[0]*Hn[0]:Rr+=Gn.a.v[0]*Hn);for(Bn=!0,this._pathData.a.v&&(re=b[0].an*.5+(Un-this._pathData.f.v-b[0].an*.5-b[b.length-1].an*.5)*tr/(Pn-1),re+=this._pathData.f.v);Bn;)Fn+Kn>=re+Rr||!zn?(Qn=(re+Rr-Fn)/vn.partialLength,ir=gn.point[0]+(vn.point[0]-gn.point[0])*Qn,er=gn.point[1]+(vn.point[1]-gn.point[1])*Qn,p.translate(-f[0]*b[x].an*.005,-(f[1]*sr)*.01),Bn=!1):zn&&(Fn+=vn.partialLength,w+=1,w>=zn.length&&(w=0,J+=1,Vn[J]?zn=Vn[J].points:Yn.v.c?(w=0,J=0,zn=Vn[J].points):(Fn-=vn.partialLength,zn=null)),zn&&(gn=vn,vn=zn[w],Kn=vn.partialLength));cr=b[x].an/2-b[x].add,p.translate(-cr,0,0)}else cr=b[x].an/2-b[x].add,p.translate(-cr,0,0),p.translate(-f[0]*b[x].an*.005,-f[1]*sr*.01,0);for(Rn=0;Rn<qn;Rn+=1)Gn=d[Rn].a,Gn.t.propType&&(Wn=d[Rn].s,Hn=Wn.getMult(b[x].anIndexes[Rn],h.a[Rn].s.totalChars),(g!==0||c.j!==0)&&(this._hasMaskedPath?Hn.length?re+=Gn.t.v*Hn[0]:re+=Gn.t.v*Hn:Hn.length?g+=Gn.t.v*Hn[0]:g+=Gn.t.v*Hn));for(c.strokeWidthAnim&&(mr=c.sw||0),c.strokeColorAnim&&(c.sc?fr=[c.sc[0],c.sc[1],c.sc[2]]:fr=[0,0,0]),c.fillColorAnim&&c.fc&&(dr=[c.fc[0],c.fc[1],c.fc[2]]),Rn=0;Rn<qn;Rn+=1)Gn=d[Rn].a,Gn.a.propType&&(Wn=d[Rn].s,Hn=Wn.getMult(b[x].anIndexes[Rn],h.a[Rn].s.totalChars),Hn.length?p.translate(-Gn.a.v[0]*Hn[0],-Gn.a.v[1]*Hn[1],Gn.a.v[2]*Hn[2]):p.translate(-Gn.a.v[0]*Hn,-Gn.a.v[1]*Hn,Gn.a.v[2]*Hn));for(Rn=0;Rn<qn;Rn+=1)Gn=d[Rn].a,Gn.s.propType&&(Wn=d[Rn].s,Hn=Wn.getMult(b[x].anIndexes[Rn],h.a[Rn].s.totalChars),Hn.length?p.scale(1+(Gn.s.v[0]-1)*Hn[0],1+(Gn.s.v[1]-1)*Hn[1],1):p.scale(1+(Gn.s.v[0]-1)*Hn,1+(Gn.s.v[1]-1)*Hn,1));for(Rn=0;Rn<qn;Rn+=1){if(Gn=d[Rn].a,Wn=d[Rn].s,Hn=Wn.getMult(b[x].anIndexes[Rn],h.a[Rn].s.totalChars),Gn.sk.propType&&(Hn.length?p.skewFromAxis(-Gn.sk.v*Hn[0],Gn.sa.v*Hn[1]):p.skewFromAxis(-Gn.sk.v*Hn,Gn.sa.v*Hn)),Gn.r.propType&&(Hn.length?p.rotateZ(-Gn.r.v*Hn[2]):p.rotateZ(-Gn.r.v*Hn)),Gn.ry.propType&&(Hn.length?p.rotateY(Gn.ry.v*Hn[1]):p.rotateY(Gn.ry.v*Hn)),Gn.rx.propType&&(Hn.length?p.rotateX(Gn.rx.v*Hn[0]):p.rotateX(Gn.rx.v*Hn)),Gn.o.propType&&(Hn.length?vr+=(Gn.o.v*Hn[0]-vr)*Hn[0]:vr+=(Gn.o.v*Hn-vr)*Hn),c.strokeWidthAnim&&Gn.sw.propType&&(Hn.length?mr+=Gn.sw.v*Hn[0]:mr+=Gn.sw.v*Hn),c.strokeColorAnim&&Gn.sc.propType)for(hr=0;hr<3;hr+=1)Hn.length?fr[hr]+=(Gn.sc.v[hr]-fr[hr])*Hn[0]:fr[hr]+=(Gn.sc.v[hr]-fr[hr])*Hn;if(c.fillColorAnim&&c.fc){if(Gn.fc.propType)for(hr=0;hr<3;hr+=1)Hn.length?dr[hr]+=(Gn.fc.v[hr]-dr[hr])*Hn[0]:dr[hr]+=(Gn.fc.v[hr]-dr[hr])*Hn;Gn.fh.propType&&(Hn.length?dr=addHueToRGB(dr,Gn.fh.v*Hn[0]):dr=addHueToRGB(dr,Gn.fh.v*Hn)),Gn.fs.propType&&(Hn.length?dr=addSaturationToRGB(dr,Gn.fs.v*Hn[0]):dr=addSaturationToRGB(dr,Gn.fs.v*Hn)),Gn.fb.propType&&(Hn.length?dr=addBrightnessToRGB(dr,Gn.fb.v*Hn[0]):dr=addBrightnessToRGB(dr,Gn.fb.v*Hn))}}for(Rn=0;Rn<qn;Rn+=1)Gn=d[Rn].a,Gn.p.propType&&(Wn=d[Rn].s,Hn=Wn.getMult(b[x].anIndexes[Rn],h.a[Rn].s.totalChars),this._hasMaskedPath?Hn.length?p.translate(0,Gn.p.v[1]*Hn[0],-Gn.p.v[2]*Hn[1]):p.translate(0,Gn.p.v[1]*Hn,-Gn.p.v[2]*Hn):Hn.length?p.translate(Gn.p.v[0]*Hn[0],Gn.p.v[1]*Hn[1],-Gn.p.v[2]*Hn[2]):p.translate(Gn.p.v[0]*Hn,Gn.p.v[1]*Hn,-Gn.p.v[2]*Hn));if(c.strokeWidthAnim&&(yr=mr<0?0:mr),c.strokeColorAnim&&(_r="rgb("+Math.round(fr[0]*255)+","+Math.round(fr[1]*255)+","+Math.round(fr[2]*255)+")"),c.fillColorAnim&&c.fc&&(gr="rgb("+Math.round(dr[0]*255)+","+Math.round(dr[1]*255)+","+Math.round(dr[2]*255)+")"),this._hasMaskedPath){if(p.translate(0,-c.ls),p.translate(0,f[1]*sr*.01+y,0),this._pathData.p.v){Jn=(vn.point[1]-gn.point[1])/(vn.point[0]-gn.point[0]);var Vr=Math.atan(Jn)*180/Math.PI;vn.point[0]<gn.point[0]&&(Vr+=180),p.rotate(-Vr*Math.PI/180)}p.translate(ir,er,0),re-=f[0]*b[x].an*.005,b[x+1]&&tr!==b[x+1].ind&&(re+=b[x].an/2,re+=c.tr*.001*c.finalSize)}else{switch(p.translate(g,y,0),c.ps&&p.translate(c.ps[0],c.ps[1]+c.ascent,0),c.j){case 1:p.translate(b[x].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[b[x].line]),0,0);break;case 2:p.translate(b[x].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[b[x].line])/2,0,0);break}p.translate(0,-c.ls),p.translate(cr,0,0),p.translate(f[0]*b[x].an*.005,f[1]*sr*.01,0),g+=b[x].l+c.tr*.001*c.finalSize}v==="html"?br=p.toCSS():v==="svg"?br=p.to2dCSS():Er=[p.props[0],p.props[1],p.props[2],p.props[3],p.props[4],p.props[5],p.props[6],p.props[7],p.props[8],p.props[9],p.props[10],p.props[11],p.props[12],p.props[13],p.props[14],p.props[15]],Mr=vr}m<=x?(Xn=new LetterProps(Mr,yr,_r,gr,br,Er),this.renderedLetters.push(Xn),m+=1,this.lettersChangedFlag=!0):(Xn=this.renderedLetters[x],this.lettersChangedFlag=Xn.update(Mr,yr,_r,gr,br,Er)||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,p="";for(f=0;f<d;f+=1)u[f].ty==="sh"&&(h=u[f].ks.k,p+=buildShapeString(h,h.i.length,!0,c));return p},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,p=f.fStyle;this.layerElement.setAttribute("font-style",p),this.layerElement.setAttribute("font-weight",h)}this.layerElement.setAttribute("aria-label",f.t);var v=f.l||[],m=!!this.globalData.fontManager.chars;u=v.length;var g,y=this.mHelper,x="",Pn=this.data.singleShape,b=0,j=0,re=!0,vn=f.tr*.001*f.finalSize;if(Pn&&!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",vn);var w=this.buildTextContents(f.finalText);for(u=w.length,j=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",j),g.style.display="inherit",Fn.appendChild(g),this.textSpans[c]||(this.textSpans[c]={span:null,glyph:null}),this.textSpans[c].span=g,j+=f.finalLineHeight;this.layerElement.appendChild(Fn)}else{var J=this.textSpans.length,gn;for(c=0;c<u;c+=1){if(this.textSpans[c]||(this.textSpans[c]={span:null,childSpan:null,glyph:null}),!m||!Pn||c===0){if(g=J>c?this.textSpans[c].span:createNS(m?"g":"text"),J<=c){if(g.setAttribute("stroke-linecap","butt"),g.setAttribute("stroke-linejoin","round"),g.setAttribute("stroke-miterlimit","4"),this.textSpans[c].span=g,m){var zn=createNS("g");g.appendChild(zn),this.textSpans[c].childSpan=zn}this.textSpans[c].span=g,this.layerElement.appendChild(g)}g.style.display="inherit"}if(y.reset(),Pn&&(v[c].n&&(b=-vn,j+=f.yOffset,j+=re?1:0,re=!1),this.applyTextPropertiesToMatrix(f,y,v[c].line,b,j),b+=v[c].l||0,b+=vn),m){gn=this.globalData.fontManager.getCharData(f.finalText[c],d.fStyle,this.globalData.fontManager.getFontByName(f.f).fFamily);var Vn;if(gn.t===1)Vn=new SVGCompElement(gn.data,this.globalData,this);else{var Kn=emptyShapeData;gn.data&&gn.data.shapes&&(Kn=this.buildShapeData(gn.data,f.finalSize)),Vn=new SVGShapeElement(Kn,this.globalData,this)}if(this.textSpans[c].glyph){var Un=this.textSpans[c].glyph;this.textSpans[c].childSpan.removeChild(Un.layerElement),Un.destroy()}this.textSpans[c].glyph=Vn,Vn._debug=!0,Vn.prepareFrame(0),Vn.renderFrame(),this.textSpans[c].childSpan.appendChild(Vn.layerElement),gn.t===1&&this.textSpans[c].childSpan.setAttribute("transform","scale("+f.finalSize/100+","+f.finalSize/100+")")}else Pn&&g.setAttribute("transform","translate("+y.props[12]+","+y.props[13]+")"),g.textContent=v[c].val,g.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}Pn&&g&&g.setAttribute("d",x)}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,p,v;for(c=0;c<u;c+=1)d[c].n||(h=f[c],p=this.textSpans[c].span,v=this.textSpans[c].glyph,v&&v.renderFrame(),h._mdf.m&&p.setAttribute("transform",h.m),h._mdf.o&&p.setAttribute("opacity",h.o),h._mdf.sw&&p.setAttribute("stroke-width",h.sw),h._mdf.sc&&p.setAttribute("stroke",h.sc),h._mdf.fc&&p.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],p=h.getMatte(this.layers[c].tt);f.setMatte(p)}}}},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],p=h.getMatte(this.layers[u].tt);c.setMatte(p);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 p=createNS("desc"),v=createElementID();p.setAttribute("id",v),p.textContent=u.description,this.svgElement.appendChild(p),f+=" "+v}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 p=this.sequences[h];return p||(p={transforms:[].concat(u),finalTransform:new Matrix,_mdf:!1},this.sequences[h]=p,this.sequenceList.push(p)),p},processSequence:function(u,f){for(var d=0,h=u.transforms.length,p=f;d<h&&!f;){if(u.transforms[d].transform.mProps._mdf){p=!0;break}d+=1}if(p)for(u.finalTransform.reset(),d=h-1;d>=0;d-=1)u.finalTransform.multiply(u.transforms[d].transform.mProps.v);u._mdf=p},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 p(){var g=createNS("svg"),y=createNS("filter"),x=createNS("feColorMatrix");return y.setAttribute("id",u),x.setAttribute("type","matrix"),x.setAttribute("color-interpolation-filters","sRGB"),x.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(x),g.appendChild(y),g.setAttribute("id",u+"_svg"),featureSupport.svgLumaHidden&&(g.style.display="none"),g}function v(){f||(h=p(),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||v(),f.width=g.width,f.height=g.height,d.filter="url(#"+u+")",f}return{load:v,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 p=registeredEffects[h].effect;d=new p(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,p,v;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)),v=this.viewData[f].v,h=c.applyToPointArray(v.v[0][0],v.v[0][1],0),u.moveTo(h[0],h[1]);var m,g=v._length;for(m=1;m<g;m+=1)p=c.applyToTriplePoints(v.o[m-1],v.i[m],v.v[m]),u.bezierCurveTo(p[0],p[1],p[2],p[3],p[4],p[5]);p=c.applyToTriplePoints(v.o[m-1],v.i[0],v.v[0]),u.bezierCurveTo(p[0],p[1],p[2],p[3],p[4],p[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),p=h.getContext("2d");p.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 p,v=f.length,m;for(p=0;p<v;p+=1)f[p].closed||(m={transforms:d.addTransformSequence(f[p].transforms),trNodes:[]},this.styledShapes.push(m),f[p].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 p,v=c.length-1,m,g,y=[],x=[],Pn,b,j,re=[].concat(h);for(p=v;p>=0;p-=1){if(Pn=this.searchProcessedElement(c[p]),Pn?u[p]=f[Pn-1]:c[p]._shouldRender=d,c[p].ty==="fl"||c[p].ty==="st"||c[p].ty==="gf"||c[p].ty==="gs")Pn?u[p].style.closed=!1:u[p]=this.createStyleElement(c[p],re),y.push(u[p].style);else if(c[p].ty==="gr"){if(!Pn)u[p]=this.createGroupElement(c[p]);else for(g=u[p].it.length,m=0;m<g;m+=1)u[p].prevViewData[m]=u[p].it[m];this.searchShapes(c[p].it,u[p].it,u[p].prevViewData,d,re)}else c[p].ty==="tr"?(Pn||(j=this.createTransformElement(c[p]),u[p]=j),re.push(u[p]),this.addTransformToStyleList(u[p])):c[p].ty==="sh"||c[p].ty==="rc"||c[p].ty==="el"||c[p].ty==="sr"?Pn||(u[p]=this.createShapeElement(c[p])):c[p].ty==="tm"||c[p].ty==="rd"||c[p].ty==="pb"||c[p].ty==="zz"||c[p].ty==="op"?(Pn?(b=u[p],b.closed=!1):(b=ShapeModifiers.getModifier(c[p].ty),b.init(this,c[p]),u[p]=b,this.shapeModifiers.push(b)),x.push(b)):c[p].ty==="rp"&&(Pn?(b=u[p],b.closed=!0):(b=ShapeModifiers.getModifier(c[p].ty),u[p]=b,b.init(this,c,p,u),this.shapeModifiers.push(b),d=!1),x.push(b));this.addProcessedElement(c[p],p+1)}for(this.removeTransformFromStyleList(),this.closeStyles(y),v=x.length,p=0;p<v;p+=1)x[p].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,p,v,m,g=this.globalData.renderer,y=this.globalData.canvasContext,x,Pn;for(c=0;c<u;c+=1)if(Pn=this.stylesList[c],x=Pn.type,!((x==="st"||x==="gs")&&Pn.wi===0||!Pn.data._shouldRender||Pn.coOp===0||this.globalData.currentGlobalAlpha===0)){for(g.save(),v=Pn.elements,x==="st"||x==="gs"?(g.ctxStrokeStyle(x==="st"?Pn.co:Pn.grd),g.ctxLineWidth(Pn.wi),g.ctxLineCap(Pn.lc),g.ctxLineJoin(Pn.lj),g.ctxMiterLimit(Pn.ml||0)):g.ctxFillStyle(x==="fl"?Pn.co:Pn.grd),g.ctxOpacity(Pn.coOp),x!=="st"&&x!=="gs"&&y.beginPath(),g.ctxTransform(Pn.preTransforms.finalTransform.props),d=v.length,f=0;f<d;f+=1){for((x==="st"||x==="gs")&&(y.beginPath(),Pn.da&&(y.setLineDash(Pn.da),y.lineDashOffset=Pn.do)),m=v[f].trNodes,p=m.length,h=0;h<p;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();(x==="st"||x==="gs")&&(g.ctxStroke(),Pn.da&&y.setLineDash(this.dashResetter))}x!=="st"&&x!=="gs"&&this.globalData.renderer.ctxFill(Pn.r),g.restore()}},CVShapeElement.prototype.renderShape=function(c,u,f,d){var h,p=u.length-1,v;for(v=c,h=p;h>=0;h-=1)u[h].ty==="tr"?(v=f[h].transform,this.renderShapeTransform(c,v)):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],v):u[h].ty==="st"?this.renderStroke(u[h],f[h],v):u[h].ty==="gf"||u[h].ty==="gs"?this.renderGradientFill(u[h],f[h],v):u[h].ty==="gr"?this.renderShape(v,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,p,v,m=d._length;f.length=0;var g=c.transforms.finalTransform;for(v=0;v<m;v+=1){var y=d.shapes[v];if(y&&y.v){for(p=y._length,h=1;h<p;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])});p===1&&f.push({t:"m",p:g.applyToPointArray(y.v[0][0],y.v[0][1],0)}),y.c&&p&&(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 p=this.globalData.canvasContext,v=u.s.v,m=u.e.v;if(c.t===1)h=p.createLinearGradient(v[0],v[1],m[0],m[1]);else{var g=Math.sqrt(Math.pow(v[0]-m[0],2)+Math.pow(v[1]-m[1],2)),y=Math.atan2(m[1]-v[1],m[0]-v[0]),x=u.h.v;x>=1?x=.99:x<=-1&&(x=-.99);var Pn=g*x,b=Math.cos(y+u.a.v)*Pn+v[0],j=Math.sin(y+u.a.v)*Pn+v[1];h=p.createRadialGradient(b,j,0,v[0],v[1],g)}var re,vn=c.g.p,Fn=u.g.c,Bn=1;for(re=0;re<vn;re+=1)u.g._hasOpacity&&u.g._collapsable&&(Bn=u.g.o[re*2+1]),h.addColorStop(Fn[re*4]/100,"rgba("+Fn[re*4+1]+","+Fn[re*4+2]+","+Fn[re*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,p,v=c.l,m=this.mHelper;this.stroke=f,this.values.fValue=c.finalSize+"px "+this.globalData.fontManager.getFontByName(c.f).fFamily,p=c.finalText.length;var g,y,x,Pn,b,j,re,vn,Fn,Bn,w=this.data.singleShape,J=c.tr*.001*c.finalSize,gn=0,zn=0,Vn=!0,Kn=0;for(h=0;h<p;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&&v[h].n&&(gn=-J,zn+=c.yOffset,zn+=Vn?1:0,Vn=!1),b=y.shapes?y.shapes[0].it:[],re=b.length,m.scale(c.finalSize/100,c.finalSize/100),w&&this.applyTextPropertiesToMatrix(c,m,v[h].line,gn,zn),Fn=createSizedArray(re-1);var Un=0;for(j=0;j<re;j+=1)if(b[j].ty==="sh"){for(Pn=b[j].ks.k.i.length,vn=b[j].ks.k,Bn=[],x=1;x<Pn;x+=1)x===1&&Bn.push(m.applyToX(vn.v[0][0],vn.v[0][1],0),m.applyToY(vn.v[0][0],vn.v[0][1],0)),Bn.push(m.applyToX(vn.o[x-1][0],vn.o[x-1][1],0),m.applyToY(vn.o[x-1][0],vn.o[x-1][1],0),m.applyToX(vn.i[x][0],vn.i[x][1],0),m.applyToY(vn.i[x][0],vn.i[x][1],0),m.applyToX(vn.v[x][0],vn.v[x][1],0),m.applyToY(vn.v[x][0],vn.v[x][1],0));Bn.push(m.applyToX(vn.o[x-1][0],vn.o[x-1][1],0),m.applyToY(vn.o[x-1][0],vn.o[x-1][1],0),m.applyToX(vn.i[0][0],vn.i[0][1],0),m.applyToY(vn.i[0][0],vn.i[0][1],0),m.applyToX(vn.v[0][0],vn.v[0][1],0),m.applyToY(vn.v[0][0],vn.v[0][1],0)),Fn[Un]=Bn,Un+=1}w&&(gn+=v[h].l,gn+=J),this.textSpans[Kn]?this.textSpans[Kn].elem=Fn:this.textSpans[Kn]={elem:Fn},Kn+=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,p,v,m=this.textAnimator.renderedLetters,g=this.textProperty.currentData.l;f=g.length;var y,x=null,Pn=null,b=null,j,re,vn=this.globalData.renderer;for(u=0;u<f;u+=1)if(!g[u].n){if(y=m[u],y&&(vn.save(),vn.ctxTransform(y.p),vn.ctxOpacity(y.o)),this.fill){for(y&&y.fc?x!==y.fc&&(vn.ctxFillStyle(y.fc),x=y.fc):x!==this.values.fill&&(x=this.values.fill,vn.ctxFillStyle(this.values.fill)),j=this.textSpans[u].elem,h=j.length,this.globalData.canvasContext.beginPath(),d=0;d<h;d+=1)for(re=j[d],v=re.length,this.globalData.canvasContext.moveTo(re[0],re[1]),p=2;p<v;p+=6)this.globalData.canvasContext.bezierCurveTo(re[p],re[p+1],re[p+2],re[p+3],re[p+4],re[p+5]);this.globalData.canvasContext.closePath(),vn.ctxFill()}if(this.stroke){for(y&&y.sw?b!==y.sw&&(b=y.sw,vn.ctxLineWidth(y.sw)):b!==this.values.sWidth&&(b=this.values.sWidth,vn.ctxLineWidth(this.values.sWidth)),y&&y.sc?Pn!==y.sc&&(Pn=y.sc,vn.ctxStrokeStyle(y.sc)):Pn!==this.values.stroke&&(Pn=this.values.stroke,vn.ctxStrokeStyle(this.values.stroke)),j=this.textSpans[u].elem,h=j.length,this.globalData.canvasContext.beginPath(),d=0;d<h;d+=1)for(re=j[d],v=re.length,this.globalData.canvasContext.moveTo(re[0],re[1]),p=2;p<v;p+=6)this.globalData.canvasContext.bezierCurveTo(re[p],re[p+1],re[p+2],re[p+3],re[p+4],re[p+5]);this.globalData.canvasContext.closePath(),vn.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,p=this.assetData.w/this.assetData.h,v,m,g=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;h>p&&g==="xMidYMid slice"||h<p&&g!=="xMidYMid slice"?(m=d,v=m*p):(v=f,m=v/p),u.drawImage(this.img,(f-v)/2,(d-m)/2,v,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,p;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var v=this.renderConfig.preserveAspectRatio.split(" "),m=v[1]||"meet",g=v[0]||"xMidYMid",y=g.substr(0,4),x=g.substr(4);h=f/d,p=this.transformCanvas.w/this.transformCanvas.h,p>h&&m==="meet"||p<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"&&(p<h&&m==="meet"||p>h&&m==="slice")?this.transformCanvas.tx=(f-this.transformCanvas.w*(d/this.transformCanvas.h))/2*this.renderConfig.dpr:y==="xMax"&&(p<h&&m==="meet"||p>h&&m==="slice")?this.transformCanvas.tx=(f-this.transformCanvas.w*(d/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,x==="YMid"&&(p>h&&m==="meet"||p<h&&m==="slice")?this.transformCanvas.ty=(d-this.transformCanvas.h*(f/this.transformCanvas.w))/2*this.renderConfig.dpr:x==="YMax"&&(p>h&&m==="meet"||p<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 p=this.stack[this.cArrPos+1];this.appliedFillStyle=p.fillStyle,this.appliedStrokeStyle=p.strokeStyle,this.appliedLineWidth=p.lineWidth,this.appliedLineCap=p.lineCap,this.appliedLineJoin=p.lineJoin,this.appliedMiterLimit=p.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,p=f._length,v,m,g,y;if(!(p<=1)){for(h=0;h<p-1;h+=1)v=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(v,m,g,y,u);f.c&&(v=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(v,m,g,y,u))}},HShapeElement.prototype.checkBounds=function(c,u,f,d,h){this.getBoundsOfCurve(c,u,f,d);var p=this.shapeBoundingBox;h.x=bmMin(p.left,h.x),h.xMax=bmMax(p.right,h.xMax),h.y=bmMin(p.top,h.y),h.yMax=bmMax(p.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]]],p,v,m,g,y,x,Pn,b=0;b<2;++b)v=6*c[b]-12*u[b]+6*f[b],p=-3*c[b]+9*u[b]-9*f[b]+3*d[b],m=3*u[b]-3*c[b],v|=0,p|=0,m|=0,p===0&&v===0||(p===0?(g=-m/v,g>0&&g<1&&h[b].push(this.calculateF(g,c,u,f,d,b))):(y=v*v-4*m*p,y>=0&&(x=(-v+bmSqrt(y))/(2*p),x>0&&x<1&&h[b].push(this.calculateF(x,c,u,f,d,b)),Pn=(-v-bmSqrt(y))/(2*p),Pn>0&&Pn<1&&h[b].push(this.calculateF(Pn,c,u,f,d,b)))));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,p){return bmPow(1-c,3)*u[p]+3*bmPow(1-c,2)*c*f[p]+3*(1-c)*bmPow(c,2)*d[p]+bmPow(c,3)*h[p]},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,p=c.fStyle;u.fontStyle=p,u.fontWeight=h}var v,m,g=c.l;m=g.length;var y,x,Pn,b=this.mHelper,j,re="",vn=0;for(v=0;v<m;v+=1){if(this.globalData.fontManager.chars?(this.textPaths[vn]?y=this.textPaths[vn]:(y=createNS("path"),y.setAttribute("stroke-linecap",lineCapEnum[1]),y.setAttribute("stroke-linejoin",lineJoinEnum[2]),y.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[vn]?(x=this.textSpans[vn],Pn=x.children[0]):(x=createTag("div"),x.style.lineHeight=0,Pn=createNS("svg"),Pn.appendChild(y),styleDiv(x)))):this.isMasked?y=this.textPaths[vn]?this.textPaths[vn]:createNS("text"):this.textSpans[vn]?(x=this.textSpans[vn],y=this.textPaths[vn]):(x=createTag("span"),styleDiv(x),y=createTag("span"),styleDiv(y),x.appendChild(y)),this.globalData.fontManager.chars){var Fn=this.globalData.fontManager.getCharData(c.finalText[v],d.fStyle,this.globalData.fontManager.getFontByName(c.f).fFamily),Bn;if(Fn?Bn=Fn.data:Bn=null,b.reset(),Bn&&Bn.shapes&&Bn.shapes.length&&(j=Bn.shapes[0].it,b.scale(c.finalSize/100,c.finalSize/100),re=this.createPathShape(b,j),y.setAttribute("d",re)),this.isMasked)this.innerElem.appendChild(y);else{if(this.innerElem.appendChild(x),Bn&&Bn.shapes){document.body.appendChild(Pn);var w=Pn.getBBox();Pn.setAttribute("width",w.width+2),Pn.setAttribute("height",w.height+2),Pn.setAttribute("viewBox",w.x-1+" "+(w.y-1)+" "+(w.width+2)+" "+(w.height+2));var J=Pn.style,gn="translate("+(w.x-1)+"px,"+(w.y-1)+"px)";J.transform=gn,J.webkitTransform=gn,g[v].yOffset=w.y-1}else Pn.setAttribute("width",1),Pn.setAttribute("height",1);x.appendChild(Pn)}}else if(y.textContent=g[v].val,y.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(y);else{this.innerElem.appendChild(x);var zn=y.style,Vn="translate3d(0,"+-c.finalSize/1.2+"px,0)";zn.transform=Vn,zn.webkitTransform=Vn}this.isMasked?this.textSpans[vn]=y:this.textSpans[vn]=x,this.textSpans[vn].style.display="block",this.textPaths[vn]=y,vn+=1}for(;vn<this.textSpans.length;)this.textSpans[vn].style.display="none",vn+=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,p=this.textAnimator.renderedLetters,v=this.textProperty.currentData.l;d=v.length;var m,g,y;for(f=0;f<d;f+=1)v[f].n?h+=1:(g=this.textSpans[f],y=this.textPaths[f],m=p[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 x=this.innerElem.getBBox();this.currentBBox.w!==x.width&&(this.currentBBox.w=x.width,this.svgElement.setAttribute("width",x.width)),this.currentBBox.h!==x.height&&(this.currentBBox.h=x.height,this.svgElement.setAttribute("height",x.height));var Pn=1;if(this.currentBBox.w!==x.width+Pn*2||this.currentBBox.h!==x.height+Pn*2||this.currentBBox.x!==x.x-Pn||this.currentBBox.y!==x.y-Pn){this.currentBBox.w=x.width+Pn*2,this.currentBBox.h=x.height+Pn*2,this.currentBBox.x=x.x-Pn,this.currentBBox.y=x.y-Pn,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),c=this.svgElement.style;var b="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";c.transform=b,c.webkitTransform=b}}}};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,p=c.ks.or.k.length;for(h=0;h<p;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 p=this.pe.v+"px",v="0px 0px 0px",m="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";d.perspective=p,d.webkitPerspective=p,h.transformOrigin=v,h.mozTransformOrigin=v,h.webkitTransformOrigin=v,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 p=Math.sqrt(Math.pow(h[0],2)+Math.pow(h[1],2)+Math.pow(h[2],2)),v=[h[0]/p,h[1]/p,h[2]/p],m=Math.sqrt(v[2]*v[2]+v[0]*v[0]),g=Math.atan2(v[1],m),y=Math.atan2(v[0],-v[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 x=!this._prevMat.equals(this.mat);if((x||this.pe._mdf)&&this.comp.threeDElements){f=this.comp.threeDElements.length;var Pn,b,j;for(u=0;u<f;u+=1)if(Pn=this.comp.threeDElements[u],Pn.type==="3d"){if(x){var re=this.mat.toCSS();j=Pn.container.style,j.transform=re,j.webkitTransform=re}this.pe._mdf&&(b=Pn.perspectiveElem.style,b.perspective=this.pe.v+"px",b.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,p,v,m;h<u;)this.elements[h]&&this.elements[h]!==!0&&this.elements[h].getBaseElement&&(v=this.elements[h],m=this.layers[h].ddd?this.getThreeDContainerByPos(h):v.getBaseElement(),p=m||p),h+=1;p?(!d.ddd||!this.supports3d)&&this.layerElement.insertBefore(f,p):(!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 p=createTag("div");if(styleDiv(p),u==="3d"){d=f.style,d.width=this.globalData.compSize.w+"px",d.height=this.globalData.compSize.h+"px";var v="50% 50%";d.webkitTransformOrigin=v,d.mozTransformOrigin=v,d.transformOrigin=v,h=p.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(p);var g={container:p,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,p;h<u;)this.elements[h]&&this.elements[h].getBaseElement&&(p=this.elements[h].getBaseElement()),h+=1;p?this.threeDElements[f].container.insertBefore(c,p):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 p=createNS("defs");h.appendChild(p),this.data=c,this.setupGlobalData(c,h),this.globalData.defs=p,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,p,v,m;d>f?(h=c/this.globalData.compSize.w,p=c/this.globalData.compSize.w,v=0,m=(u-this.globalData.compSize.h*(c/this.globalData.compSize.w))/2):(h=u/this.globalData.compSize.h,p=u/this.globalData.compSize.h,v=(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,"+p+",0,0,0,0,1,0,"+v+","+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,p=52,v="random",m=u.pow(d,h),g=u.pow(2,p),y=g*2,x=d-1,Pn;function b(J,gn,zn){var Vn=[];gn=gn===!0?{entropy:!0}:gn||{};var Kn=Fn(vn(gn.entropy?[J,w(c)]:J===null?Bn():J,3),Vn),Un=new j(Vn),Qn=function(){for(var Yn=Un.g(h),Zn=m,nr=0;Yn<g;)Yn=(Yn+nr)*d,Zn*=d,nr=Un.g(1);for(;Yn>=y;)Yn/=2,Zn/=2,nr>>>=1;return(Yn+nr)/Zn};return Qn.int32=function(){return Un.g(4)|0},Qn.quick=function(){return Un.g(4)/4294967296},Qn.double=Qn,Fn(w(Un.S),c),(gn.pass||zn||function(Jn,Yn,Zn,nr){return nr&&(nr.S&&re(nr,Un),Jn.state=function(){return re(Un,{})}),Zn?(u[v]=Jn,Yn):Jn})(Qn,Kn,"global"in gn?gn.global:this==u,gn.state)}u["seed"+v]=b;function j(J){var gn,zn=J.length,Vn=this,Kn=0,Un=Vn.i=Vn.j=0,Qn=Vn.S=[];for(zn||(J=[zn++]);Kn<d;)Qn[Kn]=Kn++;for(Kn=0;Kn<d;Kn++)Qn[Kn]=Qn[Un=x&Un+J[Kn%zn]+(gn=Qn[Kn])],Qn[Un]=gn;Vn.g=function(Jn){for(var Yn,Zn=0,nr=Vn.i,sr=Vn.j,ur=Vn.S;Jn--;)Yn=ur[nr=x&nr+1],Zn=Zn*d+ur[x&(ur[nr]=ur[sr=x&sr+Yn])+(ur[sr]=Yn)];return Vn.i=nr,Vn.j=sr,Zn}}function re(J,gn){return gn.i=J.i,gn.j=J.j,gn.S=J.S.slice(),gn}function vn(J,gn){var zn=[],Vn=_typeof$2(J),Kn;if(gn&&Vn=="object")for(Kn in J)try{zn.push(vn(J[Kn],gn-1))}catch{}return zn.length?zn:Vn=="string"?J:J+"\0"}function Fn(J,gn){for(var zn=J+"",Vn,Kn=0;Kn<zn.length;)gn[x&Kn]=x&(Vn^=gn[x&Kn]*19)+zn.charCodeAt(Kn++);return w(gn)}function Bn(){try{var J=new Uint8Array(d);return(f.crypto||f.msCrypto).getRandomValues(J),w(J)}catch{var gn=f.navigator,zn=gn&&gn.plugins;return[+new Date,f,zn,f.screen,w(c)]}}function w(J){return String.fromCharCode.apply(0,J)}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,p=c.length,v=u.length,m=[];h<p||h<v;)(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,p=c.length,v=u.length,m=[];h<p||h<v;)(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 p,v;if($bm_isInstanceOfArray(c)&&isNumerable(d,u)){for(v=c.length,h=createTypedArray("float32",v),p=0;p<v;p+=1)h[p]=c[p]*u;return h}if(isNumerable(f,c)&&$bm_isInstanceOfArray(u)){for(v=u.length,h=createTypedArray("float32",v),p=0;p<v;p+=1)h[p]=c*u[p];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 p,v;if($bm_isInstanceOfArray(c)&&isNumerable(d,u)){for(v=c.length,h=createTypedArray("float32",v),p=0;p<v;p+=1)h[p]=c[p]/u;return h}if(isNumerable(f,c)&&$bm_isInstanceOfArray(u)){for(v=u.length,h=createTypedArray("float32",v),p=0;p<v;p+=1)h[p]=c/u[p];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),p=Math.min(u,f,d),v,m,g=(h+p)/2;if(h===p)v=0,m=0;else{var y=h-p;switch(m=g>.5?y/(2-h-p):y/(h+p),h){case u:v=(f-d)/y+(f<d?6:0);break;case f:v=(d-u)/y+2;break;case d:v=(u-f)/y+4;break}v/=6}return[v,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,p,v;if(f===0)h=d,v=d,p=d;else{var m=d<.5?d*(1+f):d+f-d*f,g=2*d-m;h=hue2rgb(g,m,u+1/3),p=hue2rgb(g,m,u),v=hue2rgb(g,m,u-1/3)}return[h,p,v,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 p=f;f=u,u=p}if(c<=u)return d;if(c>=f)return h;var v=f===u?0:(c-u)/(f-u);if(!d.length)return d+(h-d)*v;var m,g=d.length,y=createTypedArray("float32",g);for(m=0;m<g;m+=1)y[m]=d[m]+(h[m]-d[m])*v;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),p=BMMath.random();for(f=0;f<d;f+=1)h[f]=c[f]+p*(u[f]-c[f]);return h}c===void 0&&(c=0);var v=BMMath.random();return c+v*(u-c)}function createPath(c,u,f,d){var h,p=c.length,v=shapePool.newElement();v.setPathData(!!d,p);var m=[0,0],g,y;for(h=0;h<p;h+=1)g=u&&u[h]?u[h]:m,y=f&&f[h]?f[h]:m,v.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 v}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,p=this.pv.length?this.pv.length:1,v=createTypedArray("float32",p);u=5;var m=Math.floor(time*u);for(d=0,h=0;d<m;){for(h=0;h<p;h+=1)v[h]+=-f+f*2*BMMath.random();d+=1}var g=time*u,y=g-Math.floor(g),x=createTypedArray("float32",p);if(p>1){for(h=0;h<p;h+=1)x[h]=this.pv[h]+v[h]+(-f+f*2*BMMath.random())*y;return x}return this.pv+v[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,p){h===void 0?(h=f,p=d):u=(u-f)/(d-f),u>1?u=1:u<0&&(u=0);var v=c(u);if($bm_isInstanceOfArray(h)){var m,g=h.length,y=createTypedArray("float32",g);for(m=0;m<g;m+=1)y[m]=(p[m]-h[m])*v+h[m];return y}return(p-h)*v+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 p={};return p.index=d,p.time=h/elem.comp.globalData.frameRate,p}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 p(){d+=1}function v(){d-=1,d===0&&g()}function m(y){h.indexOf(y)===-1&&h.push(y)}function g(){var y,x=h.length;for(y=0;y<x;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=p,f.renderer.globalData.popExpression=v,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),p,v=d.viewData.length;for(p=0;p<v;p+=1)h[p]=new c(d.viewData[p],d.masksProperties[p]);var m=function(y){for(p=0;p<v;){if(d.masksProperties[p].nm===y)return h[p];p+=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(v,m,g){Object.defineProperty(v,"velocity",{get:function(){return m.getVelocityAtTime(m.comp.currentFrame)}}),v.numKeys=m.keyframes?m.keyframes.length:0,v.key=function(y){if(!v.numKeys)return 0;var x="";"s"in m.keyframes[y-1]?x=m.keyframes[y-1].s:"e"in m.keyframes[y-2]?x=m.keyframes[y-2].e:x=m.keyframes[y-2].s;var Pn=g==="unidimensional"?new Number(x):Object.assign({},x);return Pn.time=m.keyframes[y-1].t/m.elem.comp.globalData.frameRate,Pn.value=g==="unidimensional"?x[0]:x,Pn},v.valueAtTime=m.getValueAtTime,v.speedAtTime=m.getSpeedAtTime,v.velocityAtTime=m.getVelocityAtTime,v.propertyGroup=m.propertyGroup}function d(v){(!v||!("pv"in v))&&(v=c);var m=1/v.mult,g=v.pv*m,y=new Number(g);return y.value=g,f(y,v,"unidimensional"),function(){return v.k&&v.getValue(),g=v.v*m,y.value!==g&&(y=new Number(g),y.value=g,f(y,v,"unidimensional")),y}}function h(v){(!v||!("pv"in v))&&(v=u);var m=1/v.mult,g=v.data&&v.data.l||v.pv.length,y=createTypedArray("float32",g),x=createTypedArray("float32",g);return y.value=x,f(y,v,"multidimensional"),function(){v.k&&v.getValue();for(var Pn=0;Pn<g;Pn+=1)x[Pn]=v.v[Pn]*m,y[Pn]=x[Pn];return y}}function p(){return c}return function(v){return v?v.propType==="unidimensional"?d(v):h(v):p}}(),TransformExpressionInterface=function(){return function(c){function u(v){switch(v){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,p;return c.p?p=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?p():[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 x=new Matrix;if(y!==void 0){var Pn=this._elem.finalTransform.mProp.getValueAtTime(y);Pn.clone(x)}else{var b=this._elem.finalTransform.mProp;b.applyToMatrix(x)}return x}function u(y,x){var Pn=this.getMatrix(x);return Pn.props[12]=0,Pn.props[13]=0,Pn.props[14]=0,this.applyPoint(Pn,y)}function f(y,x){var Pn=this.getMatrix(x);return this.applyPoint(Pn,y)}function d(y,x){var Pn=this.getMatrix(x);return Pn.props[12]=0,Pn.props[13]=0,Pn.props[14]=0,this.invertPoint(Pn,y)}function h(y,x){var Pn=this.getMatrix(x);return this.invertPoint(Pn,y)}function p(y,x){if(this._elem.hierarchy&&this._elem.hierarchy.length){var Pn,b=this._elem.hierarchy.length;for(Pn=0;Pn<b;Pn+=1)this._elem.hierarchy[Pn].finalTransform.mProp.applyToMatrix(y)}return y.applyToPointArray(x[0],x[1],x[2]||0)}function v(y,x){if(this._elem.hierarchy&&this._elem.hierarchy.length){var Pn,b=this._elem.hierarchy.length;for(Pn=0;Pn<b;Pn+=1)this._elem.hierarchy[Pn].finalTransform.mProp.applyToMatrix(y)}return y.inversePoint(x)}function m(y){var x=new Matrix;if(x.reset(),this._elem.finalTransform.mProp.applyToMatrix(x),this._elem.hierarchy&&this._elem.hierarchy.length){var Pn,b=this._elem.hierarchy.length;for(Pn=0;Pn<b;Pn+=1)this._elem.hierarchy[Pn].finalTransform.mProp.applyToMatrix(x);return x.inversePoint(y)}return x.inversePoint(y)}function g(){return[1,1,1,1]}return function(y){var x;function Pn(vn){j.mask=new MaskManagerInterface(vn,y)}function b(vn){j.effect=vn}function j(vn){switch(vn){case"ADBE Root Vectors Group":case"Contents":case 2:return j.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return x;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return j.effect;case"ADBE Text Properties":return j.textInterface;default:return null}}j.getMatrix=c,j.invertPoint=v,j.applyPoint=p,j.toWorld=f,j.toWorldVec=u,j.fromWorld=h,j.fromWorldVec=d,j.toComp=f,j.fromComp=m,j.sampleImage=g,j.sourceRectAtTime=y.sourceRectAtTime.bind(y),j._elem=y,x=TransformExpressionInterface(y.finalTransform.mProp);var re=getDescriptor(x,"anchorPoint");return Object.defineProperties(j,{hasParent:{get:function(){return y.hierarchy.length}},parent:{get:function(){return y.hierarchy[0].layerInterface}},rotation:getDescriptor(x,"rotation"),scale:getDescriptor(x,"scale"),position:getDescriptor(x,"position"),opacity:getDescriptor(x,"opacity"),anchorPoint:re,anchor_point:re,transform:{get:function(){return x}},active:{get:function(){return y.isInRange}}}),j.startTime=y.data.st,j.index=y.data.ind,j.source=y.data.refId,j.height=y.data.ty===0?y.data.h:100,j.width=y.data.ty===0?y.data.w:100,j.inPoint=y.data.ip/y.comp.globalData.frameRate,j.outPoint=y.data.op/y.comp.globalData.frameRate,j._name=y.data.nm,j.registerMaskInterface=Pn,j.registerEffectsInterface=b,j}}(),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,p){if(h.effectsManager){var v=[],m=h.data.ef,g,y=h.effectsManager.effectElements.length;for(g=0;g<y;g+=1)v.push(f(m[g],h.effectsManager.effectElements[g],p,h));var x=h.data.ef||[],Pn=function(j){for(g=0,y=x.length;g<y;){if(j===x[g].nm||j===x[g].mn||j===x[g].ix)return v[g];g+=1}return null};return Object.defineProperty(Pn,"numProperties",{get:function(){return x.length}}),Pn}return null}function f(h,p,v,m){function g(j){for(var re=h.ef,vn=0,Fn=re.length;vn<Fn;){if(j===re[vn].nm||j===re[vn].mn||j===re[vn].ix)return re[vn].ty===5?x[vn]:x[vn]();vn+=1}throw new Error}var y=propertyGroupFactory(g,v),x=[],Pn,b=h.ef.length;for(Pn=0;Pn<b;Pn+=1)h.ef[Pn].ty===5?x.push(f(h.ef[Pn],p.effectElements[Pn],p.effectElements[Pn].propertyGroup,m)):x.push(d(p.effectElements[Pn],h.ef[Pn].ty,m,y));return h.mn==="ADBE Color Control"&&Object.defineProperty(g,"color",{get:function(){return x[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,p,v,m){var g=ExpressionPropertyInterface(h.p);function y(){return p===10?v.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 p(m){return m==="Shape"||m==="shape"||m==="Path"||m==="path"||m==="ADBE Vector Shape"||m===2?p.path:null}var v=propertyGroupFactory(p,d);return h.setGroupProperty(PropertyInterface("Path",v)),Object.defineProperties(p,{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}}),p}}(),ShapeExpressionInterface=function(){function c(re,vn,Fn){var Bn=[],w,J=re?re.length:0;for(w=0;w<J;w+=1)re[w].ty==="gr"?Bn.push(f(re[w],vn[w],Fn)):re[w].ty==="fl"?Bn.push(d(re[w],vn[w],Fn)):re[w].ty==="st"?Bn.push(v(re[w],vn[w],Fn)):re[w].ty==="tm"?Bn.push(m(re[w],vn[w],Fn)):re[w].ty==="tr"||(re[w].ty==="el"?Bn.push(y(re[w],vn[w],Fn)):re[w].ty==="sr"?Bn.push(x(re[w],vn[w],Fn)):re[w].ty==="sh"?Bn.push(ShapePathInterface(re[w],vn[w],Fn)):re[w].ty==="rc"?Bn.push(Pn(re[w],vn[w],Fn)):re[w].ty==="rd"?Bn.push(b(re[w],vn[w],Fn)):re[w].ty==="rp"?Bn.push(j(re[w],vn[w],Fn)):re[w].ty==="gf"?Bn.push(h(re[w],vn[w],Fn)):Bn.push(p(re[w],vn[w])));return Bn}function u(re,vn,Fn){var Bn,w=function(zn){for(var Vn=0,Kn=Bn.length;Vn<Kn;){if(Bn[Vn]._name===zn||Bn[Vn].mn===zn||Bn[Vn].propertyIndex===zn||Bn[Vn].ix===zn||Bn[Vn].ind===zn)return Bn[Vn];Vn+=1}return typeof zn=="number"?Bn[zn-1]:null};w.propertyGroup=propertyGroupFactory(w,Fn),Bn=c(re.it,vn.it,w.propertyGroup),w.numProperties=Bn.length;var J=g(re.it[re.it.length-1],vn.it[vn.it.length-1],w.propertyGroup);return w.transform=J,w.propertyIndex=re.cix,w._name=re.nm,w}function f(re,vn,Fn){var Bn=function(zn){switch(zn){case"ADBE Vectors Group":case"Contents":case 2:return Bn.content;default:return Bn.transform}};Bn.propertyGroup=propertyGroupFactory(Bn,Fn);var w=u(re,vn,Bn.propertyGroup),J=g(re.it[re.it.length-1],vn.it[vn.it.length-1],Bn.propertyGroup);return Bn.content=w,Bn.transform=J,Object.defineProperty(Bn,"_name",{get:function(){return re.nm}}),Bn.numProperties=re.np,Bn.propertyIndex=re.ix,Bn.nm=re.nm,Bn.mn=re.mn,Bn}function d(re,vn,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(vn.c)},opacity:{get:ExpressionPropertyInterface(vn.o)},_name:{value:re.nm},mn:{value:re.mn}}),vn.c.setGroupProperty(PropertyInterface("Color",Fn)),vn.o.setGroupProperty(PropertyInterface("Opacity",Fn)),Bn}function h(re,vn,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(vn.s)},endPoint:{get:ExpressionPropertyInterface(vn.e)},opacity:{get:ExpressionPropertyInterface(vn.o)},type:{get:function(){return"a"}},_name:{value:re.nm},mn:{value:re.mn}}),vn.s.setGroupProperty(PropertyInterface("Start Point",Fn)),vn.e.setGroupProperty(PropertyInterface("End Point",Fn)),vn.o.setGroupProperty(PropertyInterface("Opacity",Fn)),Bn}function p(){function re(){return null}return re}function v(re,vn,Fn){var Bn=propertyGroupFactory(Kn,Fn),w=propertyGroupFactory(Vn,Bn);function J(Un){Object.defineProperty(Vn,re.d[Un].nm,{get:ExpressionPropertyInterface(vn.d.dataProps[Un].p)})}var gn,zn=re.d?re.d.length:0,Vn={};for(gn=0;gn<zn;gn+=1)J(gn),vn.d.dataProps[gn].p.setGroupProperty(w);function Kn(Un){return Un==="Color"||Un==="color"?Kn.color:Un==="Opacity"||Un==="opacity"?Kn.opacity:Un==="Stroke Width"||Un==="stroke width"?Kn.strokeWidth:null}return Object.defineProperties(Kn,{color:{get:ExpressionPropertyInterface(vn.c)},opacity:{get:ExpressionPropertyInterface(vn.o)},strokeWidth:{get:ExpressionPropertyInterface(vn.w)},dash:{get:function(){return Vn}},_name:{value:re.nm},mn:{value:re.mn}}),vn.c.setGroupProperty(PropertyInterface("Color",Bn)),vn.o.setGroupProperty(PropertyInterface("Opacity",Bn)),vn.w.setGroupProperty(PropertyInterface("Stroke Width",Bn)),Kn}function m(re,vn,Fn){function Bn(J){return J===re.e.ix||J==="End"||J==="end"?Bn.end:J===re.s.ix?Bn.start:J===re.o.ix?Bn.offset:null}var w=propertyGroupFactory(Bn,Fn);return Bn.propertyIndex=re.ix,vn.s.setGroupProperty(PropertyInterface("Start",w)),vn.e.setGroupProperty(PropertyInterface("End",w)),vn.o.setGroupProperty(PropertyInterface("Offset",w)),Bn.propertyIndex=re.ix,Bn.propertyGroup=Fn,Object.defineProperties(Bn,{start:{get:ExpressionPropertyInterface(vn.s)},end:{get:ExpressionPropertyInterface(vn.e)},offset:{get:ExpressionPropertyInterface(vn.o)},_name:{value:re.nm}}),Bn.mn=re.mn,Bn}function g(re,vn,Fn){function Bn(J){return re.a.ix===J||J==="Anchor Point"?Bn.anchorPoint:re.o.ix===J||J==="Opacity"?Bn.opacity:re.p.ix===J||J==="Position"?Bn.position:re.r.ix===J||J==="Rotation"||J==="ADBE Vector Rotation"?Bn.rotation:re.s.ix===J||J==="Scale"?Bn.scale:re.sk&&re.sk.ix===J||J==="Skew"?Bn.skew:re.sa&&re.sa.ix===J||J==="Skew Axis"?Bn.skewAxis:null}var w=propertyGroupFactory(Bn,Fn);return vn.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",w)),vn.transform.mProps.p.setGroupProperty(PropertyInterface("Position",w)),vn.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",w)),vn.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",w)),vn.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",w)),vn.transform.mProps.sk&&(vn.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",w)),vn.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",w))),vn.transform.op.setGroupProperty(PropertyInterface("Opacity",w)),Object.defineProperties(Bn,{opacity:{get:ExpressionPropertyInterface(vn.transform.mProps.o)},position:{get:ExpressionPropertyInterface(vn.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(vn.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(vn.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(vn.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(vn.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(vn.transform.mProps.sa)},_name:{value:re.nm}}),Bn.ty="tr",Bn.mn=re.mn,Bn.propertyGroup=Fn,Bn}function y(re,vn,Fn){function Bn(gn){return re.p.ix===gn?Bn.position:re.s.ix===gn?Bn.size:null}var w=propertyGroupFactory(Bn,Fn);Bn.propertyIndex=re.ix;var J=vn.sh.ty==="tm"?vn.sh.prop:vn.sh;return J.s.setGroupProperty(PropertyInterface("Size",w)),J.p.setGroupProperty(PropertyInterface("Position",w)),Object.defineProperties(Bn,{size:{get:ExpressionPropertyInterface(J.s)},position:{get:ExpressionPropertyInterface(J.p)},_name:{value:re.nm}}),Bn.mn=re.mn,Bn}function x(re,vn,Fn){function Bn(gn){return re.p.ix===gn?Bn.position:re.r.ix===gn?Bn.rotation:re.pt.ix===gn?Bn.points:re.or.ix===gn||gn==="ADBE Vector Star Outer Radius"?Bn.outerRadius:re.os.ix===gn?Bn.outerRoundness:re.ir&&(re.ir.ix===gn||gn==="ADBE Vector Star Inner Radius")?Bn.innerRadius:re.is&&re.is.ix===gn?Bn.innerRoundness:null}var w=propertyGroupFactory(Bn,Fn),J=vn.sh.ty==="tm"?vn.sh.prop:vn.sh;return Bn.propertyIndex=re.ix,J.or.setGroupProperty(PropertyInterface("Outer Radius",w)),J.os.setGroupProperty(PropertyInterface("Outer Roundness",w)),J.pt.setGroupProperty(PropertyInterface("Points",w)),J.p.setGroupProperty(PropertyInterface("Position",w)),J.r.setGroupProperty(PropertyInterface("Rotation",w)),re.ir&&(J.ir.setGroupProperty(PropertyInterface("Inner Radius",w)),J.is.setGroupProperty(PropertyInterface("Inner Roundness",w))),Object.defineProperties(Bn,{position:{get:ExpressionPropertyInterface(J.p)},rotation:{get:ExpressionPropertyInterface(J.r)},points:{get:ExpressionPropertyInterface(J.pt)},outerRadius:{get:ExpressionPropertyInterface(J.or)},outerRoundness:{get:ExpressionPropertyInterface(J.os)},innerRadius:{get:ExpressionPropertyInterface(J.ir)},innerRoundness:{get:ExpressionPropertyInterface(J.is)},_name:{value:re.nm}}),Bn.mn=re.mn,Bn}function Pn(re,vn,Fn){function Bn(gn){return re.p.ix===gn?Bn.position:re.r.ix===gn?Bn.roundness:re.s.ix===gn||gn==="Size"||gn==="ADBE Vector Rect Size"?Bn.size:null}var w=propertyGroupFactory(Bn,Fn),J=vn.sh.ty==="tm"?vn.sh.prop:vn.sh;return Bn.propertyIndex=re.ix,J.p.setGroupProperty(PropertyInterface("Position",w)),J.s.setGroupProperty(PropertyInterface("Size",w)),J.r.setGroupProperty(PropertyInterface("Rotation",w)),Object.defineProperties(Bn,{position:{get:ExpressionPropertyInterface(J.p)},roundness:{get:ExpressionPropertyInterface(J.r)},size:{get:ExpressionPropertyInterface(J.s)},_name:{value:re.nm}}),Bn.mn=re.mn,Bn}function b(re,vn,Fn){function Bn(gn){return re.r.ix===gn||gn==="Round Corners 1"?Bn.radius:null}var w=propertyGroupFactory(Bn,Fn),J=vn;return Bn.propertyIndex=re.ix,J.rd.setGroupProperty(PropertyInterface("Radius",w)),Object.defineProperties(Bn,{radius:{get:ExpressionPropertyInterface(J.rd)},_name:{value:re.nm}}),Bn.mn=re.mn,Bn}function j(re,vn,Fn){function Bn(gn){return re.c.ix===gn||gn==="Copies"?Bn.copies:re.o.ix===gn||gn==="Offset"?Bn.offset:null}var w=propertyGroupFactory(Bn,Fn),J=vn;return Bn.propertyIndex=re.ix,J.c.setGroupProperty(PropertyInterface("Copies",w)),J.o.setGroupProperty(PropertyInterface("Offset",w)),Object.defineProperties(Bn,{copies:{get:ExpressionPropertyInterface(J.c)},offset:{get:ExpressionPropertyInterface(J.o)},_name:{value:re.nm}}),Bn.mn=re.mn,Bn}return function(re,vn,Fn){var Bn;function w(gn){if(typeof gn=="number")return gn=gn===void 0?1:gn,gn===0?Fn:Bn[gn-1];for(var zn=0,Vn=Bn.length;zn<Vn;){if(Bn[zn]._name===gn)return Bn[zn];zn+=1}return null}function J(){return Fn}return w.propertyGroup=propertyGroupFactory(w,J),Bn=c(re,vn,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="",p=d.getFootageData();function v(){return h="",p=d.getFootageData(),m}function m(g){if(p[g])return h=g,p=p[g],_typeof(p)==="object"?m:p;var y=g.indexOf(h);if(y!==-1){var x=parseInt(g.substr(y+h.length),10);return p=p[x],_typeof(p)==="object"?m:p}return""}return v},u=function(d){function h(p){return p==="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(v,m,g){m.x&&(g.k=!0,g.x=!0,g.initiateExpression=ExpressionManager.initiateExpression,g.effectsSequence.push(g.initiateExpression(v,m,g).bind(g)))}function u(v){return v*=this.elem.globalData.frameRate,v-=this.offsetTime,v!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<v?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(v,this._cachingAtTime),this._cachingAtTime.lastFrame=v),this._cachingAtTime.value}function f(v){var m=-.01,g=this.getValueAtTime(v),y=this.getValueAtTime(v+m),x=0;if(g.length){var Pn;for(Pn=0;Pn<g.length;Pn+=1)x+=Math.pow(y[Pn]-g[Pn],2);x=Math.sqrt(x)*100}else x=0;return x}function d(v){if(this.vel!==void 0)return this.vel;var m=-.001,g=this.getValueAtTime(v),y=this.getValueAtTime(v+m),x;if(g.length){x=createTypedArray("float32",g.length);var Pn;for(Pn=0;Pn<g.length;Pn+=1)x[Pn]=(y[Pn]-g[Pn])/m}else x=(y-g)/m;return x}function h(){return this.pv}function p(v){this.propertyGroup=v}return{searchExpressions:c,getSpeedAtTime:f,getVelocityAtTime:d,getValueAtTime:u,getStaticValueAtTime:h,setGroupProperty:p}}();function addPropertyDecorator(){function c(b,j,re){if(!this.k||!this.keyframes)return this.pv;b=b?b.toLowerCase():"";var vn=this.comp.renderedFrame,Fn=this.keyframes,Bn=Fn[Fn.length-1].t;if(vn<=Bn)return this.pv;var w,J;re?(j?w=Math.abs(Bn-this.elem.comp.globalData.frameRate*j):w=Math.max(0,Bn-this.elem.data.ip),J=Bn-w):((!j||j>Fn.length-1)&&(j=Fn.length-1),J=Fn[Fn.length-1-j].t,w=Bn-J);var gn,zn,Vn;if(b==="pingpong"){var Kn=Math.floor((vn-J)/w);if(Kn%2!==0)return this.getValueAtTime((w-(vn-J)%w+J)/this.comp.globalData.frameRate,0)}else if(b==="offset"){var Un=this.getValueAtTime(J/this.comp.globalData.frameRate,0),Qn=this.getValueAtTime(Bn/this.comp.globalData.frameRate,0),Jn=this.getValueAtTime(((vn-J)%w+J)/this.comp.globalData.frameRate,0),Yn=Math.floor((vn-J)/w);if(this.pv.length){for(Vn=new Array(Un.length),zn=Vn.length,gn=0;gn<zn;gn+=1)Vn[gn]=(Qn[gn]-Un[gn])*Yn+Jn[gn];return Vn}return(Qn-Un)*Yn+Jn}else if(b==="continue"){var Zn=this.getValueAtTime(Bn/this.comp.globalData.frameRate,0),nr=this.getValueAtTime((Bn-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(Vn=new Array(Zn.length),zn=Vn.length,gn=0;gn<zn;gn+=1)Vn[gn]=Zn[gn]+(Zn[gn]-nr[gn])*((vn-Bn)/this.comp.globalData.frameRate)/5e-4;return Vn}return Zn+(Zn-nr)*((vn-Bn)/.001)}return this.getValueAtTime(((vn-J)%w+J)/this.comp.globalData.frameRate,0)}function u(b,j,re){if(!this.k)return this.pv;b=b?b.toLowerCase():"";var vn=this.comp.renderedFrame,Fn=this.keyframes,Bn=Fn[0].t;if(vn>=Bn)return this.pv;var w,J;re?(j?w=Math.abs(this.elem.comp.globalData.frameRate*j):w=Math.max(0,this.elem.data.op-Bn),J=Bn+w):((!j||j>Fn.length-1)&&(j=Fn.length-1),J=Fn[j].t,w=J-Bn);var gn,zn,Vn;if(b==="pingpong"){var Kn=Math.floor((Bn-vn)/w);if(Kn%2===0)return this.getValueAtTime(((Bn-vn)%w+Bn)/this.comp.globalData.frameRate,0)}else if(b==="offset"){var Un=this.getValueAtTime(Bn/this.comp.globalData.frameRate,0),Qn=this.getValueAtTime(J/this.comp.globalData.frameRate,0),Jn=this.getValueAtTime((w-(Bn-vn)%w+Bn)/this.comp.globalData.frameRate,0),Yn=Math.floor((Bn-vn)/w)+1;if(this.pv.length){for(Vn=new Array(Un.length),zn=Vn.length,gn=0;gn<zn;gn+=1)Vn[gn]=Jn[gn]-(Qn[gn]-Un[gn])*Yn;return Vn}return Jn-(Qn-Un)*Yn}else if(b==="continue"){var Zn=this.getValueAtTime(Bn/this.comp.globalData.frameRate,0),nr=this.getValueAtTime((Bn+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(Vn=new Array(Zn.length),zn=Vn.length,gn=0;gn<zn;gn+=1)Vn[gn]=Zn[gn]+(Zn[gn]-nr[gn])*(Bn-vn)/.001;return Vn}return Zn+(Zn-nr)*(Bn-vn)/.001}return this.getValueAtTime((w-((Bn-vn)%w+Bn))/this.comp.globalData.frameRate,0)}function f(b,j){if(!this.k)return this.pv;if(b=(b||.4)*.5,j=Math.floor(j||5),j<=1)return this.pv;var re=this.comp.renderedFrame/this.comp.globalData.frameRate,vn=re-b,Fn=re+b,Bn=j>1?(Fn-vn)/(j-1):1,w=0,J=0,gn;this.pv.length?gn=createTypedArray("float32",this.pv.length):gn=0;for(var zn;w<j;){if(zn=this.getValueAtTime(vn+w*Bn),this.pv.length)for(J=0;J<this.pv.length;J+=1)gn[J]+=zn[J];else gn+=zn;w+=1}if(this.pv.length)for(J=0;J<this.pv.length;J+=1)gn[J]/=j;else gn/=j;return gn}function d(b){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var j=this._transformCachingAtTime.v;if(j.cloneFromProps(this.pre.props),this.appliedTransformations<1){var re=this.a.getValueAtTime(b);j.translate(-re[0]*this.a.mult,-re[1]*this.a.mult,re[2]*this.a.mult)}if(this.appliedTransformations<2){var vn=this.s.getValueAtTime(b);j.scale(vn[0]*this.s.mult,vn[1]*this.s.mult,vn[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var Fn=this.sk.getValueAtTime(b),Bn=this.sa.getValueAtTime(b);j.skewFromAxis(-Fn*this.sk.mult,Bn*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var w=this.r.getValueAtTime(b);j.rotate(-w*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var J=this.rz.getValueAtTime(b),gn=this.ry.getValueAtTime(b),zn=this.rx.getValueAtTime(b),Vn=this.or.getValueAtTime(b);j.rotateZ(-J*this.rz.mult).rotateY(gn*this.ry.mult).rotateX(zn*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 Kn=this.px.getValueAtTime(b),Un=this.py.getValueAtTime(b);if(this.data.p.z){var Qn=this.pz.getValueAtTime(b);j.translate(Kn*this.px.mult,Un*this.py.mult,-Qn*this.pz.mult)}else j.translate(Kn*this.px.mult,Un*this.py.mult,0)}else{var Jn=this.p.getValueAtTime(b);j.translate(Jn[0]*this.p.mult,Jn[1]*this.p.mult,-Jn[2]*this.p.mult)}return j}function h(){return this.v.clone(new Matrix)}var p=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(b,j,re){var vn=p(b,j,re);return vn.dynamicProperties.length?vn.getValueAtTime=d.bind(vn):vn.getValueAtTime=h.bind(vn),vn.setGroupProperty=expressionHelpers.setGroupProperty,vn};var v=PropertyFactory.getProp;PropertyFactory.getProp=function(b,j,re,vn,Fn){var Bn=v(b,j,re,vn,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=j.a===1?j.k.length:0,Bn.propertyIndex=j.ix;var w=0;return re!==0&&(w=createTypedArray("float32",j.a===1?j.k[0].s.length:j.k.length)),Bn._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:w},expressionHelpers.searchExpressions(b,j,Bn),Bn.k&&Fn.addDynamicProperty(Bn),Bn};function m(b){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),b*=this.elem.globalData.frameRate,b-=this.offsetTime,b!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<b?this._caching.lastIndex:0,this._cachingAtTime.lastTime=b,this.interpolateShape(b,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var g=ShapePropertyFactory.getConstructorFunction(),y=ShapePropertyFactory.getKeyframedConstructorFunction();function x(){}x.prototype={vertices:function(j,re){this.k&&this.getValue();var vn=this.v;re!==void 0&&(vn=this.getValueAtTime(re,0));var Fn,Bn=vn._length,w=vn[j],J=vn.v,gn=createSizedArray(Bn);for(Fn=0;Fn<Bn;Fn+=1)j==="i"||j==="o"?gn[Fn]=[w[Fn][0]-J[Fn][0],w[Fn][1]-J[Fn][1]]:gn[Fn]=[w[Fn][0],w[Fn][1]];return gn},points:function(j){return this.vertices("v",j)},inTangents:function(j){return this.vertices("i",j)},outTangents:function(j){return this.vertices("o",j)},isClosed:function(){return this.v.c},pointOnPath:function(j,re){var vn=this.v;re!==void 0&&(vn=this.getValueAtTime(re,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(vn));for(var Fn=this._segmentsLength,Bn=Fn.lengths,w=Fn.totalLength*j,J=0,gn=Bn.length,zn=0,Vn;J<gn;){if(zn+Bn[J].addedLength>w){var Kn=J,Un=vn.c&&J===gn-1?0:J+1,Qn=(w-zn)/Bn[J].addedLength;Vn=bez.getPointInSegment(vn.v[Kn],vn.v[Un],vn.o[Kn],vn.i[Un],Qn,Bn[J]);break}else zn+=Bn[J].addedLength;J+=1}return Vn||(Vn=vn.c?[vn.v[0][0],vn.v[0][1]]:[vn.v[vn._length-1][0],vn.v[vn._length-1][1]]),Vn},vectorOnPath:function(j,re,vn){j==1?j=this.v.c:j==0&&(j=.999);var Fn=this.pointOnPath(j,re),Bn=this.pointOnPath(j+.001,re),w=Bn[0]-Fn[0],J=Bn[1]-Fn[1],gn=Math.sqrt(Math.pow(w,2)+Math.pow(J,2));if(gn===0)return[0,0];var zn=vn==="tangent"?[w/gn,J/gn]:[-J/gn,w/gn];return zn},tangentOnPath:function(j,re){return this.vectorOnPath(j,re,"tangent")},normalOnPath:function(j,re){return this.vectorOnPath(j,re,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([x],g),extendPrototype([x],y),y.prototype.getValueAtTime=m,y.prototype.initiateExpression=ExpressionManager.initiateExpression;var Pn=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(b,j,re,vn,Fn){var Bn=Pn(b,j,re,vn,Fn);return Bn.propertyIndex=j.ix,Bn.lock=!1,re===3?expressionHelpers.searchExpressions(b,j.pt,Bn):re===4&&expressionHelpers.searchExpressions(b,j.ks,Bn),Bn.k&&b.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,p;for(p=0;p<f.length;p+=1)h=createNS("feMergeNode"),h.setAttribute("in",f[p]),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 p=createNS("feColorMatrix");p.setAttribute("type","matrix"),p.setAttribute("color-interpolation-filters","linearRGB"),p.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=p,p.setAttribute("result",d+"_tint_1"),c.appendChild(p),p=createNS("feColorMatrix"),p.setAttribute("type","matrix"),p.setAttribute("color-interpolation-filters","sRGB"),p.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),p.setAttribute("result",d+"_tint_2"),c.appendChild(p),this.matrixFilter=p;var v=this.createMergeNode(d,[h,d+"_tint_1",d+"_tint_2"]);c.appendChild(v)}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 p=createNS("mask"),v=createElementID();p.setAttribute("id",v),p.setAttribute("mask-type","alpha"),p.appendChild(f),this.elem.globalData.defs.appendChild(p);var m=createNS("g");for(m.setAttribute("mask","url("+getLocationHref()+"#"+v+")");c[0];)m.appendChild(c[0]);this.elem.layerElement.appendChild(m),this.masker=p,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 p;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var v=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();p="0 0 0 "+g*v+" ";var y=g*(m-v),x=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,Pn=Math.floor(y/x),b;for(b=0;b<Pn;b+=1)p+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";p+="0 "+g*10+" 0 0"}else p="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;h.setAttribute("stroke-dasharray",p)}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 j=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(j[0]*255)+","+bmFloor(j[1]*255)+","+bmFloor(j[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 p=createNS("feComponentTransfer");p.setAttribute("color-interpolation-filters","sRGB"),p.setAttribute("result",d),this.matrixFilter=p;var v=createNS("feFuncR");v.setAttribute("type","table"),p.appendChild(v),this.feFuncR=v;var m=createNS("feFuncG");m.setAttribute("type","table"),p.appendChild(m),this.feFuncG=m;var g=createNS("feFuncB");g.setAttribute("type","table"),p.appendChild(g),this.feFuncB=g,c.appendChild(p)}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],p=d[1]+" "+f[1]+" "+u[1],v=d[2]+" "+f[2]+" "+u[2];this.feFuncR.setAttribute("tableValues",h),this.feFuncG.setAttribute("tableValues",p),this.feFuncB.setAttribute("tableValues",v)}};function SVGProLevelsFilter(c,u,f,d){this.filterManager=u;var h=this.filterManager.effectElements,p=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",p)),(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",p)),(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",p)),(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",p)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(p.setAttribute("color-interpolation-filters","sRGB"),c.appendChild(p)),(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)&&(p=createNS("feComponentTransfer"),p.setAttribute("color-interpolation-filters","sRGB"),p.setAttribute("result",d),c.appendChild(p),this.feFuncRComposed=this.createFeFunc("feFuncR",p),this.feFuncGComposed=this.createFeFunc("feFuncG",p),this.feFuncBComposed=this.createFeFunc("feFuncB",p))}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 p=0,v=256,m,g=Math.min(c,u),y=Math.max(c,u),x=Array.call(null,{length:v}),Pn,b=0,j=h-d,re=u-c;p<=256;)m=p/256,m<=g?Pn=re<0?h:d:m>=y?Pn=re<0?d:h:Pn=d+j*Math.pow((m-c)/re,1/f),x[b]=Pn,b+=1,p+=256/(v-1);return x.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 p=u.container.globalData.renderConfig.filterSize,v=u.data.fs||p;c.setAttribute("x",v.x||p.x),c.setAttribute("y",v.y||p.y),c.setAttribute("width",v.width||p.width),c.setAttribute("height",v.height||p.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 x=createNS("feComposite");x.setAttribute("in",d+"_drop_shadow_3"),x.setAttribute("in2",d+"_drop_shadow_2"),x.setAttribute("operator","in"),x.setAttribute("result",d+"_drop_shadow_4"),c.appendChild(x);var Pn=this.createMergeNode(d,[d+"_drop_shadow_4",h]);c.appendChild(Pn)}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),p=f*Math.sin(d);this.feOffset.setAttribute("dx",h),this.feOffset.setAttribute("dy",p)}}};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,p=d.length;h<p&&d[h]!==c.layerElement;)h+=1;var v;h<=p-2&&(v=d[h+1]);var m=createNS("use");m.setAttribute("href","#"+u),v?f.insertBefore(m,v):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 p=createNS("symbol");p.setAttribute("id",f),this.replaceInParent(u,f),p.appendChild(u.layerElement),h.appendChild(p);var v=createNS("use");v.setAttribute("href","#"+f),d.appendChild(v),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,p=d==2?0:f;this.feGaussianBlur.setAttribute("stdDeviation",h+" "+p);var v=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",v)}};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,p=u[3].p.v,v=h?p: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(v*.01,p*.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 re={},{actionType:vn,linkPage:Fn,href:Bn}=c,{requestParams:w={}}=window.config;return vue.unref(d)!=="design"&&vn==="close"&&c.isDrillShow&&!w.drillFlag&&(re.display="none"),(vn==="link"&&(Fn||Bn)||!vn&&(Fn||Bn)||vn==="close")&&(re.cursor="pointer"),{...vue.unref(u),...re}}),{getGlobalModel:p,setGlobalModel:v,getRecordValueByKeyName:m}=vue.inject(GLOBAL_MODEL,{getGlobalModel:re=>{},setGlobalModel:(re,vn)=>{},getRecordValueByKeyName:re=>{}}),{setTemplateData:g}=vue.inject("templateOperate",{setTemplateData:re=>{}}),x=useEmitEvent(c)("click",()=>{const re=p(c.id);if(v(c.id,{...re,type:c.type,RECORD:c.data||{}}),setTimeout(()=>{v(c.id,{...re,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()}),Pn=vue.ref(),b=vue.ref(),j=()=>{const{directory:re}=c.animationSource;c.isAnimation&&Pn.value&&re&&(b.value=lottie.loadAnimation({name:`${c.keyName}-lotTie`,container:Pn.value,renderer:"svg",loop:!0,autoplay:!0,path:useImagePath(re)+"data.json"}),vue.unref(b).setSpeed(1))};return vue.watch(()=>[c.isAnimation,c.animationSource],([re])=>{re&&vue.nextTick(()=>{j()})},{immediate:!0,deep:!0}),useOnEvent(c,{click:x}),{customStyle:h,myImgUrl:f,animation:Pn,pageMode:d,onClick:x}}}),__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,p){var v;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?!((v=c.animationSource)!=null&&v.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,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:p=>{}}),h=vue.computed(()=>{var v;let p=hn(c.link);if(c.linkType==="erd"&&p!=null){let m=vue.unref(f);m[m.length-1]==="/"?m+="erdReport":m+="/erdReport",p=`${ERD_URL||m}?_t=0&uid=${p}`}if((v=c.transParams)!=null&&v.length){p.includes("?")?p+="&":p+="?";const m=[];for(const g of c.transParams){const y=d(String(g.fieldName));m.push(`${g.keyName}=${y}`)}p+=m.join("&")}return p});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,p){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,zIndex:2,name:"表格",keyName:"表格",type:"ecanTable",width:"400px",height:"240px",bordered:!1,headerFontSize:"14px",headerFontColor:"",fontSize:"14px",isUseSeq:!1,size:"default",headerFontWeight:400,isUseExport:!1,fontWeight:400,columnsFixedNum:0,scrollX:0,paginationShow:!0,isReverse:!1,simple:!1,pageSizeShow:!1,cellBackgroundColor:"",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:[]},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"}),p=vue.ref(!1),v=vue.computed(()=>vue.unref(f)!=="design"&&c.isAutoScroll),m=vue.ref({}),g=vue.ref(!1),y=vue.computed(()=>{const Sr=lodashEs.cloneDeep(c.columns);return c.isUseSeq&&Sr.unshift({title:c.seqName,dataIndex:"SEQ",align:"center",width:c.seqWidth}),c.isUseAction&&Sr.push({title:"操作",dataIndex:"ACTION",width:c.actionColumnWidth}),Sr}),x=vue.ref(),Pn=vue.ref(!1),b=usePickComponentStyle(c),j=vue.ref([]),re=vue.computed(()=>{const{height:Sr}=c;return typeof Sr=="string"?Sr:Sr.suffix==="px"?Sr.value+"px":Sr.suffix==="%"?parseFloat(vue.unref(d))*(Sr.value/100)+"px":"0"}),vn=vue.computed(()=>c.scrollX),Fn=vue.ref(parseFloat(re.value)),Bn=()=>{let Sr=0;switch(c.size){case"small":Sr=50;break;case"middle":Sr=53;break;default:Sr=65;break}return Sr},w=vue.ref(0),J=vue.ref(""),gn=vue.ref(0);vue.watchEffect(()=>{var Sr;(Sr=j.value)!=null&&Sr.length&&re.value&&setTimeout(()=>{let kr=parseFloat(re.value),Pr=document.querySelector(`#ecanTable-${c.id} .ant-table-tbody`),Br=document.querySelector(`#ecanTable-${c.id} thead.ant-table-thead`);const xr=document.querySelector(`#ecanTable-${c.id} .ant-table-summary`);let wr=0;if(Br&&(kr-=(Br==null?void 0:Br.clientHeight)||0),xr&&c.isSummaryFixed&&(wr=(xr==null?void 0:xr.clientHeight)||0,kr-=wr),c.paginationShow&&!c.isAutoScroll){let Cr=0;Cr=Bn(),Cr&&(kr-=Cr)}(Pr==null?void 0:Pr.clientHeight)>kr?Fn.value=kr:Fn.value=0,vue.nextTick(()=>{if(wr){const Cr=document.querySelector(`#ecanTable-${c.id} .ant-table-summary`),Ar=(Cr==null?void 0:Cr.clientHeight)||0;wr!==Ar&&vue.unref(Fn)&&(Fn.value=kr+wr-Ar)}c.isAutoScroll&&p.value&&setTimeout(()=>{var Dr;const Cr=document.querySelector(`#ecanTable-${c.id} .ant-table-body`);Pr=document.querySelector(`#ecanTable-${c.id} .ant-table-tbody`),Br=document.querySelector(`#ecanTable-${c.id} thead.ant-table-thead`);const Ar=Cr||Pr;w.value=(Ar==null?void 0:Ar.clientHeight)||0,gn.value=(Br==null?void 0:Br.clientHeight)||0,m.value={height:((Pr==null?void 0:Pr.clientHeight)||0)+"px"};const Tr=document.querySelector(`#ecanTable-${c.id} .ant-table-body > table`);if(J.value=(Dr=document.querySelector(`#ecanTable-${c.id} .ant-table`))==null?void 0:Dr.className,Tr){const Lr=Tr.cloneNode(!0);Tr.style.visibility="hidden",setTimeout(()=>{Ar==null||Ar.setAttribute("id","hiddenTableBody")},0);const $r=document.querySelectorAll(`#ecanTable-${c.id} .scroll-wrap`);if($r!=null&&$r.length){for(const jr of $r)jr.append(Lr.cloneNode(!0));const qr=document.querySelectorAll(`#ecanTable-${c.id} .scroll-wrap .ant-table-cell`);if(qr!=null&&qr.length)for(const jr of qr)zn(jr);const Wr=document.querySelector(`#ecanTable-${c.id} .vue3-marquee`);Wr&&Wr.addEventListener("scroll",jr=>{var Kr;document.querySelector(`#ecanTable-${c.id} .ant-table-header`).scrollLeft=((Kr=jr==null?void 0:jr.target)==null?void 0:Kr.scrollLeft)||0})}}},0)})},0)});function zn(Sr){Sr.addEventListener("click",kr=>{const Br=Vn(kr.target).getAttribute("dix");if(Br){const xr=document.querySelector(`#ecanTable-${c.id} #hiddenTableBody td[dix="${Br}"]`);xr&&xr.click()}})}function Vn(Sr){return Sr.className.includes("ant-table-cell")?Sr:Vn(Sr.parentElement)}const Kn=vue.ref([]),Un=vue.ref([]),Qn=vue.ref([]),Jn=vue.ref([]),Yn=vue.ref(0),Zn=vue.ref(1),nr=vue.ref(c.paginationPageSize||10),sr=vue.reactive([]),ur=(Sr,kr)=>{let Pr="";return Sr.forEach((Br,xr)=>{const{value:wr,rule:Cr}=Br;Br.conditions?Pr+=`(${ur(Br.conditions,Br.join)})`:wr&&Cr&&(Pr+=`value ${Cr} '${wr}'`),Pr+=`${xr===Sr.length-1?"":kr?" "+kr+" ":""}`}),Pr},Gn=(Sr=[])=>{var kr,Pr;if(Array.isArray(Sr)&&Sr.length>0){let Br=Sr.length;const xr=c.columnsFixedNum;if(c.dataType==="indicator"&&((kr=vue.unref(y))!=null&&kr.length)&&!vue.unref(y).find(wr=>{var Cr;return(Cr=wr.children)==null?void 0:Cr.length})){const{graphicConfig:{indicators:wr=[]}}=c;Sr.forEach((Cr,Ar)=>{if(vue.unref(y)[Ar])for(const Lr in vue.unref(y)[Ar])["dataIndex","title"].includes(Lr)||(Cr[Lr]=vue.unref(y)[Ar][Lr]);const Tr=wr.find(Lr=>Lr.label===Cr.title),{showLabel:Dr=""}=Tr||{};Dr&&(Cr.title=Dr)})}for(let wr=Br-1;wr>=0;wr--)(Pr=Sr[wr])!=null&&Pr.isHidden&&Sr.splice(wr,1);Br=Sr.length;for(let wr=0;wr<Br;wr++){const Cr=Sr[wr];if(wr<xr?Cr.fixed="left":Cr.fixed=!1,c.isSortByFront&&Cr.sorter){const Xr=Cr.dataIndex;Cr.sorter=(ci,ui)=>ci[Xr]-ui[Xr]}const{cellAlign:Ar="center",cellColor:Tr,dataIndex:Dr,title:Lr,tableFilter:$r,headerCellAlign:qr,headerCellColor:Wr,overflow:jr,conditions:Kr}=Cr;$r&&(sr.push(Dr),Cr.filterOptionsInputValue="",Cr.filterCheckboxGroupValue=[],Cr.customFilterDropdown=!0,Cr.onFilter=(Xr,ci)=>ci[Dr].toString().toLowerCase().includes(Xr.toLowerCase())),Kr&&(Cr.conditionCode=ur(Kr)),Cr.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:c.headerFontSize,fontWeight:c.headerFontWeight,textAlign:qr||"center",color:Wr||c.headerFontColor,borderBottomColor:c.borderColor,backgroundColor:c.headerBackgroundColor}}),Cr.customCell=(Xr,ci,ui)=>({style:{textAlign:Ar,color:Wn(ui)?c.linkTextColor:Tr||c.cellFontColor,backgroundColor:c.cellBackgroundColor,borderBottomColor:c.borderColor},class:{highlight:vue.unref(Nr)===ci&&c.clickHighlight,linkText:Wn(ui)},dix:ui.dataIndex+"_"+ci,onClick:_r("click",()=>{const si=c.id,Jr=gr(si);Xr={dataIndex:Dr,title:Lr,...Xr},br(si,{...Jr,type:c.type,RECORD:Xr}),Nr.value=ci,setTimeout(()=>{if(!c.linkPage&&!c.href)return;let ei=!1;(Wn(ui)||c.clickTarget!=="cell")&&(ei=!0),ei&&handleJumpLink(c,{pageMode:vue.unref(f),getRecordValueByKeyName:Er})},0)})}),jr==="ellipsis"?Cr.ellipsis=!0:Cr.ellipsis=!1,Array.isArray(Cr.children)&&Gn(Cr.children)}}};function Wn(Sr){let kr=!1;return c.clickTarget==="cell"&&c.clickTargetColumns.includes(Sr.dataIndex)&&(kr=!0),kr}const Rn=(Sr=[])=>{var Pr;let kr=lodashEs.cloneDeep(Sr);return(Pr=vue.unref(Jn))!=null&&Pr.length&&(kr=lodashEs.cloneDeep(vue.unref(Jn))),c.isUseSeq&&kr.unshift({title:c.seqName,dataIndex:"SEQ",align:"center",width:c.seqWidth}),c.isUseAction&&kr.push({title:"操作",dataIndex:"ACTION",width:c.actionColumnWidth}),Gn(kr),kr};vue.watch(nr,()=>{Zn.value=1,Vr(!1)}),vue.watch(x,Sr=>{Pn.value=!!Sr}),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],()=>{Kn.value=Rn(lodashEs.cloneDeep(c.columns))},{immediate:!0,deep:!0}),vue.watch(()=>[c.data,c.dataType],([Sr,kr])=>{kr==="static"&&(Un.value=Sr)},{immediate:!0});const qn=vue.ref({}),Xn=Sr=>{if(Array.isArray(Sr)){const kr=Sr.length,Pr=sr,Br=Pr.length,xr={};for(let Cr=0;Cr<kr;Cr++){const Ar=Sr[Cr];for(let Tr=0;Tr<Br;Tr++){const Dr=Pr[Tr];if(xr[Dr])xr[Dr].add(Ar[Dr]);else{const Lr=new Set;Lr.add(Ar[Dr]),xr[Dr]=Lr}}}const wr={};for(const Cr in xr)if(Object.prototype.hasOwnProperty.call(xr,Cr)){const Ar=xr[Cr],Tr=Array.from(Ar);wr[Cr]=Tr.map(Dr=>({label:Dr,value:Dr}))}qn.value=wr}};vue.watch(()=>[c.isReverse,Kn.value,Un.value],()=>{const Sr=vue.unref(Kn),kr=vue.unref(Un);if(Xn(kr),c.isReverse){const{columns:Pr,dataSource:Br}=Hn(lodashEs.cloneDeep(Sr),lodashEs.cloneDeep(kr));Qn.value=Pr,j.value=Br.map(xr=>({key:nanoid(6),...xr}))}else Qn.value=Sr,j.value=kr.map(Pr=>({key:nanoid(6),...Pr}))},{immediate:!0});const Hn=(Sr,kr)=>{const Pr=Sr[0],Br=[{title:Pr.title,dataIndex:"col0",key:"col0",align:"center"}];for(let wr=0;wr<kr.length;wr++){const Cr=kr[wr],Ar="col"+(wr+1);Br.push({title:Cr[Pr.dataIndex],dataIndex:Ar,key:Ar,align:"center"})}const xr=[];for(let wr=1;wr<Sr.length;wr++){const Cr=Sr[wr],Ar={col0:Cr.title};for(let Tr=0;Tr<kr.length;Tr++){const Dr=kr[Tr];Ar[`col${Tr+1}`]=Dr[Cr.dataIndex]}xr.push(Ar)}return{columns:Br,dataSource:xr}},tr=vue.ref(""),cr=Sr=>{var Br;const{rows:kr=[],total:Pr=0}=((Br=Sr==null?void 0:Sr.data)==null?void 0:Br.data)||{};if(Yn.value=Pr,Array.isArray(kr)&&(Un.value=kr),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:xr=[]}=c,wr=xr.find(Cr=>Cr.key==="dataSqlId");if((wr==null?void 0:wr.value)==="xt_jxzebg"){const Cr=kr.filter(Ar=>!Ar.绩效总额).map(Ar=>Ar.ORG_NAME);Cr!=null&&Cr.length&&vue.nextTick(()=>{antDesignVue.notification.warning({message:"提示",description:`当前时段${Cr.join("、")}绩效数据为空`,duration:3})})}}p.value=!0},ir=useRequestData(c),er=async(Sr=!0,kr={})=>{try{Sr&&(g.value=!0),vue.unref(tr)&&(kr.orderCondition=vue.unref(tr)),c.paginationShow&&(kr={pageNum:vue.unref(Zn),pageSize:vue.unref(nr)||"10",layer:"1",...kr});const Pr=await ir(kr);cr(Pr)}catch(Pr){console.error(Pr)}finally{g.value=!1}},pr=({current:Sr},kr,Pr)=>{if(Zn.value=Sr,Pr&&Object.keys(Pr).length>0){const{field:Br,order:xr}=Pr,Cr={ascend:"asc",descend:"desc"}[xr];Br!=null&&Cr!=null&&Cr?tr.value=Br+" "+Cr:Cr||(tr.value="")}c.isSortByFront||Vr(!1)},lr=vue.computed(()=>{const Sr=c.simple,kr=[c.paginationPosition],Pr={};return c.isShowTotal&&(Pr.showTotal=Br=>`共 ${Br} 条数据`),c.paginationShow&&{simple:Sr,position:kr,total:vue.unref(Yn),current:vue.unref(Zn),pageSize:vue.unref(nr)||"10",showSizeChanger:!1,size:"large",...Pr}}),or=Sr=>+Sr==1?"是":+Sr==0?"否":Sr,ar=(Sr,kr)=>{const{format:Pr,retentiondigit:Br,customFormatter:xr,defaultVal:wr}=kr;let Cr="";if(Pr==null||Pr==="")Cr=Sr;else{const Ar={money:formatMoney,percentage:formatPercentage,contrast:formatPercentage,boolean:or,decimals:formatDecimals,custom:formatCustom};Ar[Pr]||(Cr=""),Pr==="decimals"?Cr=Ar[Pr](Sr,Br)||"":Pr==="custom"?Cr=Ar[Pr](Sr,xr)||"":Cr=Ar[Pr](Sr)||""}return Cr||(Cr=wr),Cr},vr=Sr=>Sr==="contrast"?"upDown":"",fr=Sr=>{const{text:kr,format:Pr,declineColor:Br="#39cf93",increaseColor:xr="#ff512e"}=Sr,wr={fontSize:c.fontSize};if(ii(Sr.dataIndex))return wr.display="flex",wr.justifyContent="center",wr.alignItems="center",wr;if(Pr==="contrast"){const Cr=parseFloat(kr+"");return Cr>=0?wr.color=xr:Cr<0&&(wr.color=Br),wr}else return{}},mr=vue.computed(()=>{const{fontSize:Sr}=c;return{width:Sr,height:Sr,textIndent:`-${parseFloat(Sr)*2}px`,overflow:"hidden"}}),dr=Sr=>{const{text:kr,declineColor:Pr="#39cf93",increaseColor:Br="#ff512e"}=Sr,{fontSize:xr}=c,wr=parseFloat(kr+""),Cr={width:xr,verticalAlign:"unset"};return wr>=0?Cr.filter=`drop-shadow(${Br||"#ff512e"} ${xr} -1px)`:wr<0&&(Cr.filter=`drop-shadow(${Pr||"#39cf93"} ${xr} -1px)`),Cr},hr=Sr=>{const kr=parseFloat(Sr+"");if(kr>=0)return goUp;if(kr<0)return goDown},yr=(Sr,kr,Pr,Br)=>{var Ar,Tr,Dr;const xr="#39cf93",wr="#ff512e",Cr=c.conditionList.find(Lr=>Lr.dataIndex===Sr.dataIndex);if((Ar=Cr==null?void 0:Cr.conditions)!=null&&Ar.length){const{fontSize:Lr}=c,$r={style:{width:Lr,verticalAlign:"middle"},src:""};for(const qr of Cr.conditions){const Wr=((Tr=qr==null?void 0:qr.property)==null?void 0:Tr.icon)||"";let jr=((Dr=qr==null?void 0:qr.property)==null?void 0:Dr.iconColor)||"";if(Wr){let Kr=!1;if(qr.rule&&qr.value){const Xr=`${qr.field} ${qr.rule} '${qr.value}'`;Kr=pn(Xr,{...Pr,value:kr})}else Kr=!0;Kr&&(Wr==="increase"?$r.src=topArrow:Wr==="decline"&&($r.src=downArrow),jr||(Wr==="increase"?jr=wr:Wr==="decline"&&(jr=xr)),$r.style.filter=`drop-shadow(${jr} ${Lr} -1px)`)}}if(Br===1)return $r.style;if(Br===2)return $r.src}else return""},_r=useEmitEvent(c),{getGlobalModel:gr,setGlobalModel:br,getRecordValueByKeyName:Er}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Sr=>{},setGlobalModel:(Sr,kr)=>{},getRecordValueByKeyName:Sr=>{}});br(c.id,{type:c.type,RECORD:""});const Mr=(Sr=[],kr=[])=>{let Pr=Sr.map(Br=>({title:Br,dataIndex:Br,key:Br}));vue.unref(y).find(Br=>{var xr;return(xr=Br.children)==null?void 0:xr.length})&&(Pr=lodashEs.cloneDeep(vue.unref(y))),Jn.value=lodashEs.cloneDeep(Pr),Kn.value=Rn(Pr),Un.value=kr,p.value=!0},Ir=Sr=>{var kr,Pr,Br,xr;Mr((Pr=(kr=Sr==null?void 0:Sr.data)==null?void 0:kr.data)==null?void 0:Pr.columns,(xr=(Br=Sr==null?void 0:Sr.data)==null?void 0:Br.data)==null?void 0:xr.rows)},Fr=useIndicatorData(c,Ir),Or=async(Sr=!0)=>{try{Sr&&(g.value=!0);const kr=vue.unref(tr).split(" "),Pr={};c.isSortByFront||(Pr.sort={order:kr[1],field:kr[0]});const Br=await Fr(Pr);Ir(Br)}catch(kr){console.error(kr)}finally{g.value=!1}},Nr=vue.ref(-1),{loadedData:zr}=vue.inject(LOADED_DATA,{loadedData:{}}),Rr=vue.ref(!1);vue.watch(zr,Sr=>{if(c.dataType==="indicator"){const kr=getFixedValueDatas(c.graphicConfig);kr!=null&&kr.length&&(!vue.unref(Rr)&&canRequestIndicator(c.graphicConfig,Sr)?(Rr.value=!0,Vr()):canRequestIndicator(c.graphicConfig,Sr)||(Rr.value=!1))}},{deep:!0});const Vr=async(Sr=!0)=>{switch(c.dataType){case"request":await er(Sr);break;case"indicator":canRequestIndicator(c.graphicConfig,vue.unref(zr))&&await Or(Sr);break}},Hr=()=>{const Sr=c.id,kr=gr(Sr);br(Sr,{...kr,type:c.type,RECORD:""})},Gr=vue.computed(()=>{const Sr=vue.unref(Qn);let kr=0;const{subTotalColumn:Pr,subTotalName:Br}=c;Pr&&(kr=Sr.findIndex(Tr=>Tr.dataIndex===Pr),kr<0&&(kr=0));const xr=[];let wr=0;for(let Tr=0;Tr<Sr.length;Tr++){const Dr=Sr[Tr],{isCalcTotal:Lr}=Dr;Tr===kr?xr.push({...Dr,total:Br}):Lr?(xr.push({...Dr,index:Tr,total:0}),wr++):xr.push({...Dr})}if(wr===0)return[];const Cr=vue.unref(j),Ar=Ur(xr);for(let Tr=0;Tr<Ar.length;Tr++){const Dr=Ar[Tr];let Lr=0;const{isCalcTotal:$r,dataIndex:qr}=Dr;if($r===!0){for(let Wr=0;Wr<Cr.length;Wr++){const Kr=+Cr[Wr][qr];isNaN(Kr)||(Lr=new big_js.Big(Lr).add(Kr).toNumber())}Dr.total=Lr}}return Ar});function Ur(Sr){var Pr;const kr=[];for(const Br of Sr)(Pr=Br.children)!=null&&Pr.length?kr.push(...Ur(Br.children)):kr.push(Br);return kr}const{setRequest:Yr}=vue.inject(REQUEST_MODEL,{setRequest:Sr=>{}});typeof Yr=="function"&&Yr({id:c.id,requestFn:Vr,sortNum:c.requestSort}),u({refreshData:Vr});const Qr=(Sr="",kr)=>hn(Sr,kr),ri=Sr=>{if(Sr!=="event")return{self:"_self",blank:"_blank"}[Sr]},ti=(Sr,kr="")=>{Sr==="event"&&window.parent.postMessage({type:"openPage",url:kr},"*")},ai=(Sr,kr)=>{Sr(kr.filterCheckboxGroupValue)},vi=(Sr,kr)=>{Sr({confirm:!0}),kr.filterOptionsInputValue="",kr.filterCheckboxGroupValue=[]},hi=()=>{},oi=Sr=>{const kr=Sr.dataIndex;if(typeof kr=="string"){let Pr=vue.unref(qn)[kr];const Br=vue.unref(Sr.filterOptionsInputValue).trim();return Array.isArray(Pr)?(Pr=Pr.filter(xr=>typeof xr.label=="string"?xr.label.toLowerCase().includes(Br.toLowerCase()):!0),Pr):[]}return[]},xi=async()=>{var Dr,Lr;const Sr="EXPORT_KEY";antDesignVue.message.loading({key:Sr,content:"正在导出...",duration:0});let kr=[];if(c.dataType==="static")kr=c.data;else if(c.dataType==="request"){const $r={layer:"1"};vue.unref(tr)&&($r.orderCondition=vue.unref(tr));const qr=await ir($r);kr=((Lr=(Dr=qr==null?void 0:qr.data)==null?void 0:Dr.data)==null?void 0:Lr.rows)||{}}const Pr=vue.unref(Qn),Br=[],xr=[];Pr==null||Pr.forEach($r=>{Br.push($r.dataIndex),xr.push($r.title)});const wr=kr.map($r=>lodashEs.pick($r,Br)),Cr=xlsx.utils.book_new(),Ar=xlsx.utils.aoa_to_sheet([xr]),Tr=xlsx.utils.sheet_add_json(Ar,wr,{skipHeader:!0,origin:"A2"});xlsx.utils.book_append_sheet(Cr,Tr,"sheet"),xlsx.writeFile(Cr,"表格数据.xlsx"),antDesignVue.message.success({key:Sr,content:"导出成功"})},Ci=(Sr,kr=2)=>{const Pr=+Sr*100;return isNaN(Pr)||Pr<=0?0:Pr>=100?100:Pr.toFixed(kr)};useOnEvent(c,{resetRecord:Hr,refreshData:Vr,exportTableData:xi});const Si=(Sr,kr)=>{let Pr=null;return c.stripedShow&&(Pr=kr%2===1?"table-striped":null),Pr},pi=vue.computed(()=>{var Pr;let Sr=0;const{isTableFill:kr}=c;if(kr&&re.value){let Br=0;c.paginationShow&&((Pr=vue.unref(j))!=null&&Pr.length)&&(Br=Bn()),Sr=parseFloat(vue.unref(re))-Br}return Sr?Sr+"px":"100%"}),wi=vue.computed(()=>{const Sr=vue.unref(h)==="darkBlue";let kr="";return c.isTableFill&&(kr=c.cellBackgroundColor,kr||(mi.value==="transparent"?Sr?kr="#071655":kr="transparent":Sr?kr=mi.value:kr="transparent")),kr}),ki=vue.computed(()=>{let Sr="#071655";return c.headerBackgroundColor&&(Sr="transparent"),Sr}),mi=vue.computed(()=>{let Sr="#071655";return(c.cellBackgroundColor||c.stripedShow&&c.stripedColor)&&(Sr="transparent"),Sr}),di=vue.computed(()=>parseFloat(c.fontSize)+16),Pi=vue.computed(()=>{let Sr="";const{paginationColor:kr,paginationBgColor:Pr,activePaginationColor:Br,activePaginationBgColor:xr,hoverBackgroundColor:wr}=c;return kr&&(Sr+="p-color "),Pr&&(Sr+="p-bg-color "),Br&&(Sr+="active-p-color "),xr&&(Sr+="active-p-bg-color "),wr&&(Sr+="hover-bg-color "),Sr}),gi=(Sr,kr)=>{if(ii(Sr.dataIndex))return!1;const{conditionCode:Pr}=Sr;return pn(Pr,{value:kr})},Ei=(Sr,kr,Pr)=>{var Tr,Dr;const{overflow:Br,conditionCode:xr,attribute:wr,dataIndex:Cr}=Sr,Ar={};if(Br==="ellipsis"&&(Ar.overflow="hidden",Ar.textOverflow="ellipsis"),xr&&(wr!=null&&wr.color)&&gi(Sr,kr)&&(Ar.color=wr.color),wr!=null&&wr.icon&&(Sr==null?void 0:Sr.cellAlign)==="right"&&(Ar.display="flex",Ar.alignItems="center",Ar.justifyContent="flex-end"),ii(Cr)){const Lr=c.conditionList.find($r=>$r.dataIndex===Cr);if((Tr=Lr==null?void 0:Lr.conditions)!=null&&Tr.length){for(const $r of Lr.conditions)if((Dr=$r==null?void 0:$r.property)!=null&&Dr.color){let qr=!1;if($r.rule&&$r.value){const Wr=`${$r.field} ${$r.rule} '${$r.value}'`;qr=pn(Wr,{...Pr,value:kr})}else qr=!0;qr&&(Ar.color=$r.property.color)}}else delete Ar.color}return Ar},Ii=Sr=>{const{attribute:kr}=Sr;let Pr="";return kr!=null&&kr.icon&&(Pr=useImagePath(kr.icon)),Pr},_i=Sr=>{let kr={};return(Sr==null?void 0:Sr.cellAlign)==="right"?kr={marginRight:"5px"}:kr={position:"absolute",marginLeft:"5px"},{width:"auto",height:parseFloat(c.fontSize)+6+"px",...kr}},ni=(Sr,kr)=>Sr||Sr===0?Sr:kr==null?void 0:kr.defaultVal;function ii(Sr){var Pr;const kr=c.conditionList.find(Br=>Br.dataIndex===Sr);return!!((Pr=kr==null?void 0:kr.conditions)!=null&&Pr.length)}return{x:vn,y:Fn,style:b,pagination:lr,formatFn:ar,contrastClass:vr,tableChange:pr,summaryList:Gr,loading:g,onTouchHrefEvent:ti,handleHref:Qr,handleHrefTarget:ri,useRowIndex:Nr,tableColumns:Qn,tableDataSource:j,useFilterOptions:oi,useSetSelectedKeys:ai,onResetFilter:vi,onSearchFilterOptions:hi,exportTableData:xi,handleProgressText:Ci,pageSizeVisible:Pn,pageSize:nr,tableRef:x,rowClassName:Si,tableHeight:pi,tableBgColor:wi,tableHeaderBgColor:ki,tableBodyBgColor:mi,getChgStyle:fr,chgBoxStyle:mr,getChgBoxImgStyle:dr,getChgBoxImgSrc:hr,seqIcon1,seqIcon2,seqIcon3,iconSize:di,containerClass:Pi,getCellStyle:Ei,isMatchCondition:gi,getAttrImgSrc:Ii,getAttrImgStyle:_i,getCellText:ni,autoScrollHeight:w,autoScrollClass:J,autoScrollTop:gn,isScroll:v,scrollWrapStyle:m,isLinkStyle:Wn,hasConditionConfig:ii,formatTextByConditions:(Sr,kr,Pr)=>{var xr,wr;const Br=c.conditionList.find(Cr=>Cr.dataIndex===Sr.dataIndex);if((xr=Br==null?void 0:Br.conditions)!=null&&xr.length){let Cr=kr;for(const Ar of Br.conditions){const Tr=((wr=Ar==null?void 0:Ar.property)==null?void 0:wr.formatText)||"";if(Tr){let Dr=!1;if(Ar.rule&&Ar.value){const Lr=`${Ar.field} ${Ar.rule} '${Ar.value}'`;Dr=pn(Lr,{...Pr,value:kr})}else Dr=!0;Dr&&(Cr=hn(Tr,{textData:{...Pr,value:kr}}))}}return Cr}else return""},getChgByCondition:yr}}}),__injectCSSVars__=()=>{vue.useCssVars(c=>({"6e34feec":c.stripedColor,"5b8457c1":c.tableHeaderBgColor,"02c44b0c":c.tableBodyBgColor,"58d25174":c.paginationBgColor,"30821a8b":c.paginationColor,"0c7f2360":c.activePaginationBgColor,c13ab5b6:c.activePaginationColor,"9e848ed2":c.hoverBackgroundColor}))},__setup__=__default__.setup;__default__.setup=__setup__?(c,u)=>(__injectCSSVars__(),__setup__(c,u)):__injectCSSVars__;const Table_vue_vue_type_style_index_0_scoped_25ce906b_lang="",Table_vue_vue_type_style_index_1_lang="",_withScopeId=c=>(vue.pushScopeId("data-v-25ce906b"),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,p){const v=vue.resolveComponent("a-button"),m=vue.resolveComponent("down-outlined"),g=vue.resolveComponent("right-outlined"),y=vue.resolveComponent("a-input"),x=vue.resolveComponent("a-checkbox-group"),Pn=vue.resolveComponent("a-table-summary-cell"),b=vue.resolveComponent("a-table-summary-row"),j=vue.resolveComponent("a-table-summary"),re=vue.resolveComponent("a-table"),vn=vue.resolveComponent("marquee-scroll"),Fn=vue.resolveComponent("skeleton");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["ecan-table",c.containerClass]),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(v,{class:"export-button",onClick:c.exportTableData},{default:vue.withCtx(()=>[_hoisted_3]),_:1},8,["onClick"])])):vue.createCommentVNode("",!0),vue.createVNode(re,{ref:"tableRef",class:"table",style:vue.normalizeStyle({height:c.tableHeight,backgroundColor:c.tableBgColor}),columns:c.tableColumns,"data-source":c.tableDataSource,bordered:c.bordered,size:c.size,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 J;return[(J=w.record.children)!=null&&J.length?(vue.openBlock(),vue.createElementBlock("span",_hoisted_4,[w.expanded?(vue.openBlock(),vue.createBlock(m,{key:0,onClick:gn=>w.onExpand(w.record,gn)},null,8,["onClick"])):(vue.openBlock(),vue.createBlock(g,{key:1,onClick:gn=>w.onExpand(w.record,gn)},null,8,["onClick"]))])):(vue.openBlock(),vue.createElementBlock("span",_hoisted_5,[vue.createVNode(m)]))]}),customFilterDropdown:vue.withCtx(({column:w,setSelectedKeys:J,confirm:gn,clearFilters:zn})=>[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(x,{value:w.filterCheckboxGroupValue,"onUpdate:value":Vn=>w.filterCheckboxGroupValue=Vn,class:"filter-checkbox",options:c.useFilterOptions(w),onChange:Vn=>c.useSetSelectedKeys(J,w)},null,8,["value","onUpdate:value","options","onChange"]),vue.createElementVNode("div",null,[vue.createVNode(v,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>gn()},{default:vue.withCtx(()=>[_hoisted_6]),_:2},1032,["onClick"]),vue.createVNode(v,{size:"small",style:{width:"90px"},onClick:vue.withModifiers(Vn=>c.onResetFilter(zn,w),["stop"])},{default:vue.withCtx(()=>[_hoisted_7]),_:2},1032,["onClick"])])],4)]),bodyCell:vue.withCtx(({column:w,index:J,text:gn,record:zn})=>{var Vn,Kn,Un,Qn,Jn,Yn;return[w.dataIndex==="SEQ"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[c.seqIcon?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[J===0?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"seq-icon",src:c.seqIcon1,width:c.iconSize,height:c.iconSize},null,8,_hoisted_8)):J===1?(vue.openBlock(),vue.createElementBlock("img",{key:1,class:"seq-icon",src:c.seqIcon2,width:c.iconSize,height:c.iconSize},null,8,_hoisted_9)):J>=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(J+1),5)],64)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_11,vue.toDisplayString(J+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,(Zn,nr)=>(vue.openBlock(),vue.createElementBlock("div",{class:"action",key:nr},[vue.createElementVNode("a",{href:c.handleHref(Zn.href,zn),target:c.handleHrefTarget(Zn.target),style:vue.normalizeStyle({color:Zn.color,fontSize:c.fontSize,fontWeight:c.fontWeight}),onClick:sr=>c.onTouchHrefEvent(Zn.target,c.handleHref(Zn.href,zn))},vue.toDisplayString(Zn.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(gn,w.progressTextDecimalPlaces)}%`})},null,4),vue.createElementVNode("div",{class:"progress-text",style:vue.normalizeStyle({color:+c.handleProgressText(gn)<100?w.progressTextColor||"#333":w.progressFinishedTextColor||"#fff"})},vue.toDisplayString(c.handleProgressText(gn,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,gn,zn)})},[c.isMatchCondition(w,gn)&&(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:((Kn=w==null?void 0:w.customFormatter)==null?void 0:Kn.split("{value}")[0])||""},vue.toDisplayString(((Un=w==null?void 0:w.customFormatter)==null?void 0:Un.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:gn})),title:c.hasConditionConfig(w.dataIndex)?c.formatTextByConditions(w,gn,zn):w.format!=null?c.formatFn(gn,w):gn},[!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:gn})),src:c.getChgBoxImgSrc(gn)},null,12,_hoisted_18)],4)):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString(c.hasConditionConfig(w.dataIndex)?c.formatTextByConditions(w,gn,zn):w.format!=null?c.formatFn(gn,w):c.getCellText(gn,w))+" ",1),c.hasConditionConfig(w.dataIndex)&&c.getChgByCondition(w,gn,zn,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,gn,zn,1)),src:c.getChgByCondition(w,gn,zn,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:((Qn=w==null?void 0:w.customFormatter)==null?void 0:Qn.split("{value}")[1])||""},vue.toDisplayString(((Jn=w==null?void 0:w.customFormatter)==null?void 0:Jn.split("{value}")[1])||""),9,_hoisted_20)):vue.createCommentVNode("",!0),c.isMatchCondition(w,gn)&&(w==null?void 0:w.cellAlign)!=="right"&&((Yn=w==null?void 0:w.attribute)!=null&&Yn.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(j,{key:0,fixed:c.isSummaryFixed},{default:vue.withCtx(()=>[vue.createVNode(b,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.summaryList,(w,J)=>(vue.openBlock(),vue.createBlock(Pn,{key:J,index:J,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","size","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(vn,{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-25ce906b"]]),EcanTable=withInstall$1(Table),mapProps={...props,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(""),p=usePickComponentStyle(c,["backgroundImage"]),v=vue.ref(),m=vue.computed(()=>useImagePath(c.geoBackgroundImage)),g=vue.computed(()=>useImagePath(c.backgroundImage)),y=vue.ref([]),x=vue.computed(()=>c.geoBackgroundImage?{image:vue.unref(v),repeat:c.geoBackgroundImageRepeat}:c.geoItemStyleAreaColor),Pn=vue.computed(()=>{const ir=c.symbolImage;return c.symbolImage?"image://"+useImagePath(ir):"circle"}),b=ir=>{let er=c.tooltipFormatter;const pr=er.match(/\{(.+?)\}/g);if(pr==null||pr.length===0)return er;for(let lr=0;lr<pr.length;lr++){const or=pr[lr];let ar=or.slice(1,-1).trim();const vr=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,fr=ar.match(vr);for(let mr=0;mr<fr.length;mr++){const dr=fr[mr],hr=ir[dr];hr!=null&&(ar=ar.replace(dr,hr))}er=er.replace(or,ar)}return er.split(`
180
+ `)},j=vue.ref(!1),re=vue.ref("");let vn=new AbortController;const Fn=(ir,er)=>{const pr=vn.signal;j.value=!0,d.value=ir,u({name:ir,signal:pr}).then(lr=>{var or,ar;if(lr){const vr=((ar=(or=lr==null?void 0:lr.data)==null?void 0:or.data)==null?void 0:ar.rows)||[];let fr="";for(const mr of vr){const dr=b(mr)||[];if(dr!=null&&dr.length)for(const hr of dr)fr+=`<div style="word-break: break-all;white-space: normal;">${hr}</div>`}fr=`<div style="max-width:200px;">${fr}</div>`,h.value=fr,er(vue.unref(re),fr)}else pr.aborted?h.value="Loading":h.value=ir,er(vue.unref(re),h.value);j.value=!1})},Bn=vue.ref(),w=vue.computed(()=>c.dataType==="request"?Bn.value:c.data),J=vue.computed(()=>{const ir=[],{mapAreaStyleConfig:er}=c;if(er!=null&&er.length)for(const pr of er)ir.push({...pr,key:nanoid(6)});return ir}),gn=vue.computed(()=>{const ir=[];for(const er of vue.unref(J)){let pr="";er.value1&&(pr+=`value ${er.rule1} ${er.value1}`),er.value2&&(pr+=`${er.value1?"&&":""} value ${er.rule2} ${er.value2}`),pr&&ir.push({rule:pr,color:er.color,key:er.key})}return ir.reverse()}),zn=vue.computed(()=>{var pr;const ir=[],{areaStyleKeyName:er}=c;if((pr=vue.unref(w))!=null&&pr.length)for(const lr of vue.unref(w)){const or=lr[er];if(or||or===0){const ar=vue.unref(gn).find(vr=>pn(vr.rule,{value:or}));ar&&ir.push({name:lr.name,itemStyle:{areaColor:vue.unref(y).includes(ar.key)?c.geoItemStyleAreaColor:ar.color}})}}return ir}),Vn=vue.computed(()=>{const ir=c.geoCenter;let er;return typeof ir=="string"&&ir!==""&&(er=ir.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:er,map:`map-${c.id}`,selectedMode:"single",tooltip:{show:c.tooltipShow,trigger:"item",backgroundColor:c.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:c.tooltipTextStyleColor},formatter:(pr,lr,or)=>{re.value=lr;const{name:ar=""}=pr,{requestUrl:vr}=c.tooltipRequestData;if(!vr){let fr="",mr=c.tooltipFormatter;mr===""&&(mr="{name}:{value}");const dr=vue.unref(w).find(hr=>hr.name===ar);return dr?(fr+=hn(mr,{textData:{name:ar,...dr}},{useNewline:!0,useSpace:!0}),fr):ar}if(vue.unref(j))vue.unref(d)!==ar&&(vn.abort(),vn=new AbortController);else{if(vue.unref(d)===ar)return vue.unref(h);Fn(ar,or)}return"Loading"}},label:{show:c.geoLabelShow,color:c.geoLabelColor,fontSize:c.geoLabelFontSize},itemStyle:{areaColor:vue.unref(x),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:zn.value},series:[{type:"scatter",coordinateSystem:"geo",itemStyle:{color:c.itemStyleColor},symbol:vue.unref(Pn),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}]}}),Kn=vue.ref(!1),Un=async()=>{var pr;Kn.value=!1;const ir=c.mapJson,er=`map-${c.id}`;if(ir!=null&&ir.path){const lr=await request(((pr=window==null?void 0:window.config)==null?void 0:pr.uploadPath)+ir.path);core$1.registerMap(er,(lr==null?void 0:lr.data)||{})}else core$1.registerMap(er,{});Kn.value=!0};vue.watch(()=>c.mapJson,()=>{Un()},{immediate:!0,deep:!0});const Qn=async ir=>{var lr,or,ar,vr;const er=(or=(lr=ir==null?void 0:ir.data)==null?void 0:lr.data)==null?void 0:or.rows,pr=`map-${c.id}`;if(er!=null&&er.path){const fr=await request(er.path);core$1.registerMap(pr,(fr==null?void 0:fr.data)||{})}else if(Array.isArray(er))if(Bn.value=er,(ar=er[0])!=null&&ar.mapUrl){const fr=await request((vr=er[0])==null?void 0:vr.mapUrl);core$1.registerMap(pr,(fr==null?void 0:fr.data)||{})}else core$1.registerMap(pr,{});else core$1.registerMap(pr,{});vue.nextTick(()=>{Kn.value=!0})},Jn=useRequestData(c),Yn=async()=>{if(c.dataType==="request"){Kn.value=!1;try{const ir=await Jn();Qn(ir)}catch(ir){console.error(ir),Kn.value=!0}}},Zn=async()=>{const ir=nr(c.id);switch(sr(c.id,{...ir,RECORD:{}}),c.dataType){case"static":Un();break;case"request":await Yn();break}},{getGlobalModel:nr,setGlobalModel:sr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:ir=>{},setGlobalModel:(ir,er)=>{}}),Gn=useEmitEvent(c)("click",()=>{var er,pr;const ir=nr(c.id);((er=ir==null?void 0:ir.RECORD)==null?void 0:er.name)===((pr=vue.unref(f))==null?void 0:pr.name)?sr(c.id,{...ir,RECORD:{}}):sr(c.id,{...ir,RECORD:vue.unref(f)})});useOnEvent(c,{refreshData:Zn});const{setRequest:Wn}=vue.inject(REQUEST_MODEL,{setRequest:ir=>{}});typeof Wn=="function"&&Wn({id:c.id,requestFn:Zn,sortNum:c.requestSort});const Rn=()=>{vue.unref(f)&&Gn()},qn=(ir={})=>{ir.componentType==="geo"&&ir.region?f.value=ir.region:f.value=null},Xn=vue.computed(()=>{const ir={},{legendTop:er,legendLeft:pr,legendBoxShadow:lr}=c;return lr&&(ir.boxShadow=lr),er==="bottom"?ir.bottom=0:er==="top"&&(ir.top=0),pr==="left"?ir.left=0:pr==="right"&&(ir.right=0),ir}),Hn=vue.computed(()=>{const ir={};return c.legendOrient==="vertical"&&(ir.flexDirection="column"),ir}),tr=vue.computed(()=>{var ir;if((ir=vue.unref(J))!=null&&ir.length){const er=[];for(const pr of vue.unref(J)){const{value1:lr,value2:or,rule1:ar,rule2:vr,color:fr}=pr;lr&&or?+lr<+or?ar.includes(">")&&vr.includes("<")&&er.push({text:`${lr} - ${or}`,color:fr,key:pr.key}):+lr>+or?ar.includes("<")&&vr.includes(">")&&er.push({text:`${or} - ${lr}`,color:fr,key:pr.key}):+lr==+or&&er.push({text:`${lr} - ${or}`,color:fr,key:pr.key}):lr?er.push({text:`${ar} ${lr}`,color:fr,key:pr.key}):or&&er.push({text:`${vr} ${or}`,color:fr,key:pr.key})}return er}else return[]});return{option:Vn,style:p,isLoadedData:Kn,geoBackgroundImageRef:v,myGeoBackgroundImage:m,mapLegendStyle:Xn,legendContainerStyle:Hn,mapLegendList:tr,hiddenLegendKey:y,customClick:Rn,onMouseOver:qn,handleToggleVisible:ir=>{const er=vue.unref(y).findIndex(pr=>pr===ir);er>=0?y.value.splice(er,1):y.value.push(ir)}}}}),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,p){const v=vue.resolveComponent("echarts");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-map",style:vue.normalizeStyle(c.style)},[c.isLoadedData?(vue.openBlock(),vue.createBlock(v,{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,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||[]),p=vue.ref(),v=vue.computed({get:()=>{var ur;const{mode:sr}=c;return(ur=vue.unref(h))!=null&&ur.length?p.value:sr==="multiple"||sr==="tags"||sr==="combobox"?[]:""},set:sr=>{p.value=sr}}),{getGlobalModel:m,setGlobalModel:g,getRecordValueByKeyName:y}=vue.inject(GLOBAL_MODEL,{getGlobalModel:sr=>{},setGlobalModel:(sr,ur)=>{},getRecordValueByKeyName:sr=>{}}),x=c.dataFieldNames;vue.watch(()=>[c.value,c.mode,c.selectFirstOption,c.valueType,h.value],()=>{const{mode:sr,selectFirstOption:ur,value:Gn}=c,Wn=y(Gn),Rn=x.value;if(sr==="multiple"||sr==="tags"||sr==="combobox"){if(Wn)p.value=Wn.split(",");else if(ur){const qn=vue.unref(h)[0];p.value=qn?[qn[Rn]]:[]}}else if(Wn)p.value=Wn;else if(ur){const qn=vue.unref(h)[0];p.value=qn?qn[Rn]:""}},{immediate:!0});const Pn=(sr,ur)=>{const Gn=x.label,Wn=x.value;let Rn;const qn=ur[Gn],Xn=ur[Wn];return qn!=null?Rn=qn:Xn!=null&&(Rn=Xn),(Rn==null?void 0:Rn.toLowerCase().indexOf(sr==null?void 0:sr.toLowerCase()))>=0},b=sr=>{const{label:ur,value:Gn,options:Wn}=c.dataFieldNames;if(Wn&&Array.isArray(sr))if(sr.some(Rn=>Wn in Rn)){const Rn={},qn=[];sr.forEach(Xn=>{Rn[Xn[Wn]]||(Rn[Xn[Wn]]=[]),Rn[Xn[Wn]].push({[ur]:Xn[ur],[Gn]:Xn[Gn]})});for(const Xn in Rn)qn.push({[ur]:Xn,[Wn]:Rn[Xn]});return qn}else return sr;else if(!Wn)return sr},j=vue.ref(!1),re=sr=>{var ur,Gn;if(h.value=b(((Gn=(ur=sr==null?void 0:sr.data)==null?void 0:ur.data)==null?void 0:Gn.rows)||[]),c.selectFirstOption){let Wn=vue.unref(h)[0];if(x.options){const Rn=Wn[x.options];Rn&&Rn.length&&(Wn=Rn[0])}p.value=Wn[x.value]}},vn=useRequestData(c),Fn=async()=>{if(c.dataType==="request"){j.value=!0;try{const sr=await vn();re(sr)}catch(sr){console.error(sr)}finally{j.value=!1}}},Bn=vue.computed(()=>{let sr=p.value;if(c.valueType==="label"&&vue.unref(p)&&vue.unref(h)){const ur=x.label,Gn=x.value;if(c.mode==="multiple")sr=vue.unref(h).filter(Wn=>vue.unref(p).includes(Wn[Gn])).map(Wn=>Wn[ur]);else{const Wn=vue.unref(h).find(Rn=>vue.unref(p)===Rn[Gn]);Wn&&(sr=Wn[ur])}}return sr}),w=vue.ref([]),J=vue.computed(()=>{const sr={};if(c.mode!=="multiple"){const ur=vue.unref(w).find(Gn=>Gn.value===vue.unref(p));ur&&(sr.itemCodes=ur.item_codes)}return sr}),gn=vue.computed(()=>{const{value:sr,label:ur}=x,Gn=vue.unref(h).find(Wn=>Wn[sr]===vue.unref(v));return Gn?{label:Gn[ur],value:Gn[sr]}:{}}),{pageId:zn}=vue.inject("templateOperate",{pageId:""})||{};g(c.id,{type:c.type,value:Bn,...vue.unref(J),recordData:vue.unref(gn)});const Vn=useEmitEvent(c),Kn=Vn("selectChange",()=>{const sr=c.id,ur=m(sr);g(sr,{...ur,...vue.unref(J),RECORD:Bn,recordData:vue.unref(gn)});const Gn=getNewValueFromUrlParams(zn,c.keyName,"value");Gn&&(v.value=Gn)}),Un=Vn("refreshData",(sr=[])=>{if(h.value=b(sr),c.selectFirstOption){let ur=vue.unref(h)[0];if(x.options){const Gn=ur[x.options];Gn&&Gn.length&&(ur=Gn[0])}p.value=ur[x.value]}g(c.id,{type:c.type,value:Bn,...vue.unref(J),recordData:vue.unref(gn)})}),Qn=sr=>{var Rn;const{data:ur}=(sr==null?void 0:sr.data)||{},Gn=x.label,Wn=x.value;if(ur){const{rows:qn=[]}=((Rn=sr==null?void 0:sr.data)==null?void 0:Rn.data)||{};w.value=qn;const Xn=qn.map(cr=>({[Gn]:cr.label,[Wn]:cr.value})),{id:Hn}=c,tr=m(Hn);g(Hn,{...tr,...vue.unref(J)}),Un(Xn)}else Un([])},Jn=useIndicatorData(c,Qn),Yn=async()=>{try{j.value=!0;const sr=await Jn();Qn(sr)}catch(sr){console.error(sr)}finally{j.value=!1}},Zn=async()=>{switch(c.dataType){case"indicator":{await Yn();break}case"request":await Fn();break}};useOnEvent(c,{selectChange:Kn,refreshData:Zn});const{setRequest:nr}=vue.inject(REQUEST_MODEL,{setRequest:({id:sr,sortNum:ur,requestFn:Gn})=>{}});return typeof nr=="function"&&nr({id:c.id,requestFn:Zn,sortNum:c.requestSort}),u({refreshData:Zn}),{style:f,getPopupContainer:d,myValue:p,selectChange:Kn,options:h,filterOption:Pn,loading:j,resultValue:v}}}),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,p){const v=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(v,{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 gn,zn;const d=(gn=window==null?void 0:window.config)==null?void 0:gn.pageId,h=(zn=window==null?void 0:window.config)==null?void 0:zn.indicatorToken,p=usePickComponentStyle(c),v=vue.ref(),{pageMode:m,theme:g,width:y,height:x}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",theme:"light",width:"",height:""}),Pn=vue.inject("scaleValue",{widthScale:"1",heightScale:"1"}),{getAllGlobalModel:b}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),j=vue.computed(()=>{const{width:Vn,height:Kn}=c;let Un=0,Qn=0;return typeof Vn=="string"?Un=parseFloat(Vn):Vn.suffix==="px"?Un=+Vn.value:Vn.suffix==="%"&&(Un=parseFloat(vue.unref(y))*(Vn.value/100)),typeof Kn=="string"?Qn=parseFloat(Kn):Kn.suffix==="px"?Qn=+Kn.value:Kn.suffix==="%"&&(Qn=parseFloat(vue.unref(x))*(Kn.value/100)),{...c,width:Un+"px",height:Qn+"px",pageId:d,indicatorToken:h,context:CONTEXT,globalModel:b()}}),re=vue.computed(()=>INDICATOR_URL),vn=()=>{switch(c.dataType){case"indicator":vue.unref(v).refreshData();break}},{setRequest:Fn}=vue.inject(REQUEST_MODEL,{setRequest:({id:Vn,sortNum:Kn,requestFn:Un})=>{}});typeof Fn=="function"&&Fn({id:c.id,requestFn:vn,sortNum:c.requestSort}),f({refreshData:vn});const w=useEmitEvent(c)("click",()=>{vue.unref(v).click()});return useOnEvent(c,{refreshData:vn,click:w}),vue.onMounted(()=>{}),{props:c,style:p,pageMode:m,pivotTableRef:v,theme:g,customProps:j,indicatorUrl:re,scaleValue:Pn,click:w,onTableChange:({type:Vn,data:Kn})=>{u("tableChange",{type:Vn,data:Kn})}}}}),PivotTableContainer_vue_vue_type_style_index_0_scoped_46e3d7d4_lang="";function _sfc_render$2(c,u,f,d,h,p){const v=vue.resolveComponent("pivot-table");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-pivot-table",style:vue.normalizeStyle(c.style)},[vue.createVNode(v,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,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(),p=vue.ref(!1),v=usePickComponentStyle(c),m=vue.ref([]),g=vue.ref(),y=vue.computed(()=>p.value?ZOOM_FONT_SIZE:12),x=vue.ref({});let Pn;const b=vue.computed(()=>{const qn=c.xAxisLabelFormatter,Xn=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:p.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 Hn;p.value=!0,(Hn=g.value)==null||Hn.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:Hn=>{var er;const tr=Hn.length;let cr="",ir=c.tooltipFormatter;Pn=(er=Hn[0])==null?void 0:er.data,ir===""&&(ir="{marker} {a} {c}");for(let pr=0;pr<tr;pr++){const{marker:lr,seriesName:or,name:ar,value:vr,data:fr}=Hn[pr]||{};if(pr===0){let mr=ar;typeof ar=="string"&&ar[0]==="0"&&!isNaN(+ar)&&(mr=(+ar).toString()),cr+=`${In(qn,mr)}<br/>`}cr+=hn(ir,{textData:{marker:lr,a:or,b:vr[0],c:vr[1]||0,...fr==null?void 0:fr.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(Hn){return typeof Hn=="string"&&Hn[0]==="0"&&!isNaN(+Hn)&&(Hn=(+Hn).toString()),In(qn,Hn)}},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(Hn){return In(Xn,Hn)}},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:(p.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:p.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,formatter:Hn=>getLegendFormat(c.legendFormatter,{name:Hn})},series:vue.unref(m)}}),j=()=>{p.value=!1},{getGlobalModel:re,setGlobalModel:vn,getRecordValueByKeyName:Fn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:qn=>{},setGlobalModel:(qn,Xn)=>{},getRecordValueByKeyName:qn=>{}}),Bn=vue.computed(()=>c.isShowMarkLine?{markLine:{data:[{type:c.markLineType}]}}:{}),w=(qn,Xn,Hn,tr,cr,ir,er,pr)=>{const lr=(-(cr*pr-ir*er)/(er-cr)+(qn*tr-Xn*Hn)/(Hn-qn))/((tr-Xn)/(Hn-qn)-(pr-ir)/(er-cr)),or=(tr-Xn)/(Hn-qn)*(-(cr*pr-ir*er)/(er-cr)+(qn*tr-Xn*Hn)/(Hn-qn))/((tr-Xn)/(Hn-qn)-(pr-ir)/(er-cr))-(qn*tr-Xn*Hn)/(Hn-qn);return[lr,or]},J=()=>{var Hn;const qn={symbol:"circle",tooltip:{trigger:"item",formatter:tr=>{let cr="",ir=c.markPointFormatter;ir===""&&(ir="{x}, {y}");const{data:{coord:er=[]}}=tr||{};return cr+=hn(ir,{textData:{x:er[0]||0,y:er[1]||0}},{useNewline:!0,useSpace:!0}),cr+="<br/>",cr}},data:[]},{axisMarkPoint:Xn=[]}=c;for(const tr of Xn){const{coord:cr=""}=tr,ir=[];let er=[];if(cr.includes("getIntersectPoint")){const pr=(Hn=cr.match(/getIntersectPoint\((.*?)\)/)[1])==null?void 0:Hn.split(",");if((pr==null?void 0:pr.length)===8){const lr=[];for(const or of pr){const ar=or.replaceAll(" ","");(ar==null?void 0:ar.slice(0,1))==="{"&&(ar==null?void 0:ar.slice(-1))==="}"?lr.push(+Fn(ar)||0):lr.push(+ar)}er=w(...lr)}}else er=cr.split(",");(er==null?void 0:er.length)===2&&(ir[0]=+er[0],ir[1]=+er[1]),ir!=null&&ir.length&&qn.data.push({coord:ir,symbolSize:tr.symbolSize,itemStyle:{color:tr.pointColor||"transparent",borderWidth:tr.borderWidth||"transparent",borderColor:tr.borderColor||"transparent"},label:{formatter:tr.label,position:tr.labelPosition,color:tr.labelColor||"transparent"}})}return qn},gn=qn=>{var lr,or,ar;const Xn=lodashEs.cloneDeep(qn),{graphicConfig:Hn,customPoint:tr=""}=c,cr={},ir={},{formFields:er={}}=Hn;let pr=[];if(tr){pr=JSON.parse(tr);for(const vr of pr)for(const fr in vr)typeof vr[fr]=="string"&&((lr=vr[fr])==null?void 0:lr.slice(0,1))==="{"&&((or=vr[fr])==null?void 0:or.slice(-1))==="}"&&(vr[fr]=Fn(vr[fr])||0)}pr!=null&&pr.length&&Xn.push(...pr),c.dataType==="static"?(ir.name="name",ir.values=["value","value2"]):(ir.name=(er==null?void 0:er.labelField)||"name",ir.values=(er==null?void 0:er.valueField)||["value","value2"]);for(const vr of Xn){const{values:fr,name:mr}=ir;for(const dr of fr){const hr={value:[vr[mr],vr[dr]],record:vr};mn(cr,dr)?cr[dr].push(hr):cr[dr]=[hr]}}if((ar=Object.keys(cr))!=null&&ar.length){const vr=[];for(const fr in cr)vr.push({name:fr,data:cr[fr]});return vr}else return[]},zn=(qn=[])=>{const Xn=gn(qn),Hn=[],tr=Xn.length;for(let cr=0;cr<tr;cr++){const ir={},er={};cr===0&&(er.markPoint=J()),c.shadowColor&&(ir.shadowColor=c.shadowColor,ir.shadowBlur=c.shadowBlur,ir.shadowOffsetY=c.shadowOffsetY,ir.shadowOffsetX=c.shadowOffsetX),Hn.push({type:"line",...er,...Xn[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:c.colors[cr]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[cr],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...ir},...vue.unref(Bn)})}m.value=Hn},Vn=(qn=[])=>{const Xn=gn(qn),Hn=[],tr=Xn.length;for(let cr=0;cr<tr;cr++){const ir={};c.shadowColor&&(ir.shadowColor=c.shadowColor,ir.shadowBlur=c.shadowBlur,ir.shadowOffsetY=c.shadowOffsetY,ir.shadowOffsetX=c.shadowOffsetX);const er={};cr===0&&(er.markPoint=J()),Hn.push({type:"line",...Xn[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:c.colors[cr]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[cr],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...ir},...vue.unref(Bn),...er})}m.value=Hn};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")&&zn(qn)},{immediate:!0,deep:!0});const Kn=vue.ref(!1),Un=useRequestData(c),Qn=async()=>{var qn,Xn;if(c.dataType==="request")try{Kn.value=!0;const Hn=await Un();zn((Xn=(qn=Hn==null?void 0:Hn.data)==null?void 0:qn.data)==null?void 0:Xn.rows)}catch(Hn){console.error(Hn)}finally{Kn.value=!1}},Jn=useEmitEvent(c);vn(c.id,{type:c.type,RECORD:""});const Yn=Jn("click",qn=>{const Xn=re(c.id);vn(c.id,{...Xn,type:c.type,RECORD:c.tooltipShow?Pn:qn.data})}),Zn=qn=>{h.value.chart.containPixel("grid",[qn.offsetX,qn.offsetY])&&Yn()};c.tooltipShow?x.value["zr:click"]=Zn:x.value.click=Yn;const nr=qn=>{var Hn;const{rows:Xn=[]}=((Hn=qn==null?void 0:qn.data)==null?void 0:Hn.data)??{};Vn(Xn)},sr=useIndicatorData(c,qn=>{c.isViewRedrawing&&h.value.clear(),nr(qn)}),ur=async()=>{try{Kn.value=!0;const qn=await sr();nr(qn)}catch(qn){console.error(qn)}finally{Kn.value=!1}},Gn=async()=>{switch(c.dataType){case"indicator":await ur();break;case"request":await Qn();break}};useOnEvent(c,{refreshData:Gn,resetRecord:()=>{const qn=c.id,Xn=re(qn);vn(qn,{...Xn,RECORD:""})},click:Yn});const{setRequest:Rn}=vue.inject(REQUEST_MODEL,{setRequest:qn=>{}});return typeof Rn=="function"&&Rn({id:c.id,requestFn:Gn,sortNum:c.requestSort}),u({refreshData:Gn}),{option:b,style:v,click:Yn,loading:Kn,onClose:j,ecanModal:g,eventObj:x,echartRef:h}}}),ValueLine_vue_vue_type_style_index_0_lang="";function _sfc_render$1(c,u,f,d,h,p){const v=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-value-line",style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(v,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(v,{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,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:p}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),v=vue.inject("triggerRefresh",Fn=>{}),m=vue.inject("usedComponentList",[]),g=vue.computed(()=>{const{borderRadius:Fn}=c,Bn=[],w={};if(Fn){const J=Fn.split(",");for(const gn of J)(+gn||+gn==0)&&Bn.push(+gn+"px")}return Bn!=null&&Bn.length&&(w.borderRadius=Bn.join(" ")),vue.unref(p)==="design"&&(w.border="1px solid #a8a8a8"),vue.unref(d)?w.backgroundColor=vue.unref(d):vue.unref(p)!=="design"&&(w.backgroundColor="#d3d3d3"),w}),y=Fn=>{var w;const{rows:Bn}=((w=Fn==null?void 0:Fn.data)==null?void 0:w.data)||{};if(Bn){const{componentIds:J,componentConfig:gn,graphicConfig:zn}=c,Vn=[],Kn=zn==null?void 0:zn.indicators.find(Un=>Un.show);d.value=Bn.color;for(const Un of J){const Qn=vue.unref(m).find(sr=>sr.id===Un),Jn=gn[Un],{text:Yn=""}=Qn||{};let Zn=Bn[Jn.key],nr="";if(Jn.key==="systemSource"){const sr=Zn.split(",");(sr==null?void 0:sr.length)>3&&(Zn=sr.slice(0,3).join(",")+"等",nr=Bn[Jn.key])}else Jn.key==="indexName"&&(Zn=Kn.label);Vn.push({id:Un,text:Yn.includes("{value}")||Yn.includes("{")||Yn.includes("}")?Yn:"{value}",data:{value:Zn},titleContent:nr})}v(Vn)}},x=useIndicatorData(c,y),Pn=async()=>{try{f.value=!0;const Fn=await x();y(Fn)}catch(Fn){console.error(Fn)}finally{f.value=!1}},b=async()=>{switch(c.dataType){case"indicator":await Pn();break}},{setRequest:j}=vue.inject(REQUEST_MODEL,{setRequest:({id:Fn,sortNum:Bn,requestFn:w})=>{}});typeof j=="function"&&j({id:c.id,requestFn:b,sortNum:c.requestSort});const vn=useEmitEvent(c)("click");return useOnEvent(c,{refreshData:b}),u({refreshData:b}),{loading:f,style:h,customStyle:g,click:vn}}});function _sfc_render(c,u,f,d,h,p){const v=vue.resolveComponent("skeleton");return c.loading?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:vue.normalizeStyle(c.style)},[vue.createVNode(v,{loading:c.loading},null,8,["loading"])],4)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"ecan-index-panel",style:vue.normalizeStyle({...c.style,...c.customStyle}),onClick:u[0]||(u[0]=(...m)=>c.click&&c.click(...m))},[vue.renderSlot(c.$slots,"toolbox")],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,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=()=>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 p;d=isObject$1(d)&&(p=d[h])!=null?p:""}),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),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:p}=u;d(f),vue.onUnmounted(()=>h(f));const v=vue.computed(()=>p.indexOf(f));return{parent:u,index:v}}return{parent:null,index:vue.ref(-1)}}function flattenVNodes(c){const u=[],f=d=>{Array.isArray(d)&&d.forEach(h=>{var p;vue.isVNode(h)&&(u.push(h),(p=h.component)!=null&&p.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((p,v)=>findVNodeIndex(d,p.vnode)-findVNodeIndex(d,v.vnode));const h=f.map(p=>p.proxy);u.sort((p,v)=>{const m=h.indexOf(p),g=h.indexOf(v);return m-g})}function useChildren(c){const u=vue.reactive([]),f=vue.reactive([]),d=vue.getCurrentInstance();return{children:u,linkChildren:p=>{const v=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:v,unlink:m,children:u,internalChildren:f},p))}}}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:p=!1}=f;let v=!1,m;const g=Pn=>{if(v)return;const b=vue.unref(Pn);b&&!m&&(b.addEventListener(c,u,{capture:p,passive:h}),m=!0)},y=Pn=>{if(v)return;const b=vue.unref(Pn);b&&m&&(b.removeEventListener(c,u,p),m=!1)};vue.onUnmounted(()=>y(d)),vue.onDeactivated(()=>y(d)),onMountedOrActivated(()=>g(d));let x;return vue.isRef(d)&&(x=vue.watch(d,(Pn,b)=>{y(b),g(Pn)})),()=>{x==null||x(),y(d),v=!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}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}isIOS();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),{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$h={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$h}),Locale={messages(){return messages[lang.value]},use(c,u){lang.value=c,this.add({[c]:u})},add(c={}){deepAssign(messages,c)}};var stdin_default$g=Locale;function createTranslate(c){const u=camelize(c)+".";return(f,...d)=>{const h=stdin_default$g.messages(),p=get(h,u+f)||get(h,f);return isFunction(p)?p(...d):p}}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",TAP_OFFSET=5;function callInterceptor(c,{args:u=[],done:f,canceled:d,error:h}){if(c){const p=c.apply(null,u);isPromise(p)?p.then(v=>{v?f():d&&d()}).catch(h||noop):p?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)}const[name$h,bem$f]=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$f=vue.defineComponent({name:name$h,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}`,p=vue.computed(()=>{const m={background:c.color};if(c.offset){const[g,y]=c.offset,{position:x}=c,[Pn,b]=x.split("-");u.default?(typeof y=="number"?m[Pn]=addUnit(Pn==="top"?y:-y):m[Pn]=Pn==="top"?addUnit(y):h(y),typeof g=="number"?m[b]=addUnit(b==="left"?g:-g):m[b]=b==="left"?addUnit(g):h(g)):(m.marginTop=addUnit(y),m.marginLeft=addUnit(g))}return m}),v=()=>{if(f()||c.dot)return vue.createVNode("div",{class:bem$f([c.position,{dot:c.dot,fixed:!!u.default}]),style:p.value},[d()])};return()=>{if(u.default){const{tag:m}=c;return vue.createVNode(m,{class:bem$f("wrapper")},{default:()=>[u.default(),v()]})}return v()}}});const Badge=withInstall(stdin_default$f);let globalZIndex=2e3;const useGlobalZIndex=()=>++globalZIndex,setGlobalZIndex=c=>{globalZIndex=c},[name$g,bem$e]=createNamespace("config-provider"),CONFIG_PROVIDER_KEY=Symbol(name$g),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$g,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=(p=c.theme)=>{document.documentElement.classList.remove(`van-theme-${p}`)};vue.watch(()=>c.theme,(p,v)=>{v&&h(v),d()},{immediate:!0}),vue.onActivated(d),vue.onDeactivated(h),vue.onBeforeUnmount(h),vue.watch(f,(p,v)=>{c.themeVarsScope==="global"&&syncThemeVarsOnRoot(p,v)}),vue.watch(()=>c.themeVarsScope,(p,v)=>{v==="global"&&syncThemeVarsOnRoot({},f.value),p==="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$e(),style:c.themeVarsScope==="local"?f.value:void 0},{default:()=>{var d;return[(d=u.default)==null?void 0:d.call(u)]}})}});const[name$f,bem$d]=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$e=vue.defineComponent({name:name$f,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$d());return()=>{const{tag:h,dot:p,name:v,size:m,badge:g,color:y}=c,x=isImage(v);return vue.createVNode(Badge,vue.mergeProps({dot:p,tag:h,class:[d.value,x?"":`${d.value}-${v}`],style:{color:y,fontSize:addUnit(m)},content:g},c.badgeProps),{default:()=>{var Pn;return[(Pn=u.default)==null?void 0:Pn.call(u),x&&vue.createVNode("img",{class:bem$d("image"),src:v},null)]}})}}});const Icon=withInstall(stdin_default$e),[name$e,bem$c]=createNamespace("loading"),SpinIcon=Array(12).fill(null).map((c,u)=>vue.createVNode("i",{class:bem$c("line",String(u+1))},null)),CircularIcon=vue.createVNode("svg",{class:bem$c("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$d=vue.defineComponent({name:name$e,props:loadingProps,setup(c,{slots:u}){const f=vue.computed(()=>extend({color:c.color},getSizeStyle(c.size))),d=()=>{const p=c.type==="spinner"?SpinIcon:CircularIcon;return vue.createVNode("span",{class:bem$c("spinner",c.type),style:f.value},[u.icon?u.icon():p])},h=()=>{var p;if(u.default)return vue.createVNode("span",{class:bem$c("text"),style:{fontSize:addUnit(c.textSize),color:(p=c.textColor)!=null?p:c.color}},[u.default()])};return()=>{const{type:p,vertical:v}=c;return vue.createVNode("div",{class:bem$c([p,{vertical:v}]),"aria-live":"polite","aria-busy":!0},[d(),h()])}}});const Loading=withInstall(stdin_default$d),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),p=vue.ref(0),v=vue.ref(""),m=vue.ref(!0),g=()=>v.value==="vertical",y=()=>v.value==="horizontal",x=()=>{f.value=0,d.value=0,h.value=0,p.value=0,v.value="",m.value=!0};return{move:j=>{const re=j.touches[0];f.value=(re.clientX<0?0:re.clientX)-c.value,d.value=re.clientY-u.value,h.value=Math.abs(f.value),p.value=Math.abs(d.value);const vn=10;(!v.value||h.value<vn&&p.value<vn)&&(v.value=getDirection(h.value,p.value)),m.value&&(h.value>TAP_OFFSET||p.value>TAP_OFFSET)&&(m.value=!1)},start:j=>{x(),c.value=j.touches[0].clientX,u.value=j.touches[0].clientY},reset:x,startX:c,startY:u,deltaX:f,deltaY:d,offsetX:h,offsetY:p,direction:v,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",p=x=>{f.move(x);const Pn=f.deltaY.value>0?h:d,b=getScrollParent(x.target,c.value),{scrollHeight:j,offsetHeight:re,scrollTop:vn}=b;let Fn="11";vn===0?Fn=re>=j?"00":"01":vn+re>=j&&(Fn="10"),Fn!=="11"&&f.isVertical()&&!(parseInt(Fn,2)&parseInt(Pn,2))&&preventDefault(x,!0)},v=()=>{document.addEventListener("touchstart",f.start),document.addEventListener("touchmove",p,{passive:!1}),totalLockCount||document.body.classList.add(BODY_LOCK_CLASS),totalLockCount++},m=()=>{totalLockCount&&(document.removeEventListener("touchstart",f.start),document.removeEventListener("touchmove",p),totalLockCount--,totalLockCount||document.body.classList.remove(BODY_LOCK_CLASS))},g=()=>u()&&v(),y=()=>u()&&m();onMountedOrActivated(g),vue.onDeactivated(y),vue.onBeforeUnmount(y),vue.watch(u,x=>{x?v():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$d,bem$b]=createNamespace("overlay"),overlayProps={show:Boolean,zIndex:numericProp,duration:numericProp,className:unknownProp,lockScroll:truthProp,lazyRender:truthProp,customStyle:Object,teleport:[String,Object]};var stdin_default$c=vue.defineComponent({name:name$d,props:overlayProps,setup(c,{slots:u}){const f=vue.ref(),d=useLazyRender(()=>c.show||!c.lazyRender),h=v=>{c.lockScroll&&preventDefault(v,!0)},p=d(()=>{var v;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$b(),c.className]},[(v=u.default)==null?void 0:v.call(u)]),[[vue.vShow,c.show]])});return useEventListener("touchmove",h,{target:f}),()=>{const v=vue.createVNode(vue.Transition,{name:"van-fade",appear:!0},{default:p});return c.teleport?vue.createVNode(vue.Teleport,{to:c.teleport},{default:()=>[v]}):v}}});const Overlay=withInstall(stdin_default$c),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$c,bem$a]=createNamespace("popup");var stdin_default$b=vue.defineComponent({name:name$c,inheritAttrs:!1,props:popupProps,emits:["open","close","opened","closed","keydown","update:show","clickOverlay","clickCloseIcon"],setup(c,{emit:u,attrs:f,slots:d}){let h,p;const v=vue.ref(),m=vue.ref(),g=useLazyRender(()=>c.show||!c.lazyRender),y=vue.computed(()=>{const Vn={zIndex:v.value};if(isDef(c.duration)){const Kn=c.position==="center"?"animationDuration":"transitionDuration";Vn[Kn]=`${c.duration}s`}return Vn}),x=()=>{h||(h=!0,v.value=c.zIndex!==void 0?+c.zIndex:useGlobalZIndex(),u("open"))},Pn=()=>{h&&callInterceptor(c.beforeClose,{done(){h=!1,u("close"),u("update:show",!1)}})},b=Vn=>{u("clickOverlay",Vn),c.closeOnClickOverlay&&Pn()},j=()=>{if(c.overlay)return vue.createVNode(Overlay,vue.mergeProps({show:c.show,class:c.overlayClass,zIndex:v.value,duration:c.duration,customStyle:c.overlayStyle,role:c.closeOnClickOverlay?"button":void 0,tabindex:c.closeOnClickOverlay?0:void 0},useScopeId(),{onClick:b}),{default:d["overlay-content"]})},re=Vn=>{u("clickCloseIcon",Vn),Pn()},vn=()=>{if(c.closeable)return vue.createVNode(Icon,{role:"button",tabindex:0,name:c.closeIcon,class:[bem$a("close-icon",c.closeIconPosition),HAPTICS_FEEDBACK],classPrefix:c.iconPrefix,onClick:re},null)};let Fn;const Bn=()=>{Fn&&clearTimeout(Fn),Fn=setTimeout(()=>{u("opened")})},w=()=>u("closed"),J=Vn=>u("keydown",Vn),gn=g(()=>{var Vn;const{round:Kn,position:Un,safeAreaInsetTop:Qn,safeAreaInsetBottom:Jn}=c;return vue.withDirectives(vue.createVNode("div",vue.mergeProps({ref:m,style:y.value,role:"dialog",tabindex:0,class:[bem$a({round:Kn,[Un]:Un}),{"van-safe-area-top":Qn,"van-safe-area-bottom":Jn}],onKeydown:J},f,useScopeId()),[(Vn=d.default)==null?void 0:Vn.call(d),vn()]),[[vue.vShow,c.show]])}),zn=()=>{const{position:Vn,transition:Kn,transitionAppear:Un}=c,Qn=Vn==="center"?"van-fade":`van-popup-slide-${Vn}`;return vue.createVNode(vue.Transition,{name:Kn||Qn,appear:Un,onAfterEnter:Bn,onAfterLeave:w},{default:gn})};return vue.watch(()=>c.show,Vn=>{Vn&&!h&&(x(),f.tabindex===0&&vue.nextTick(()=>{var Kn;(Kn=m.value)==null||Kn.focus()})),!Vn&&h&&(h=!1,u("close"))}),useExpose({popupRef:m}),useLockScroll(m,()=>c.show&&c.lockScroll),useEventListener("popstate",()=>{c.closeOnPopstate&&(Pn(),p=!1)}),vue.onMounted(()=>{c.show&&x()}),vue.onActivated(()=>{p&&(u("update:show",!0),p=!1)}),vue.onDeactivated(()=>{c.show&&c.teleport&&(Pn(),p=!0)}),vue.provide(POPUP_TOGGLE_KEY,()=>c.show),()=>c.teleport?vue.createVNode(vue.Teleport,{to:c.teleport},{default:()=>[j(),zn()]}):vue.createVNode(vue.Fragment,null,[j(),zn()])}});const Popup=withInstall(stdin_default$b),[name$b,bem$9,t]=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(p=>p[f.value]===u),h=findIndexOfEnabledOption(c,d);return c[h]}function formatCascadeColumns(c,u,f){const d=[];let h={[u.children]:c},p=0;for(;h&&h[u.children];){const v=h[u.children],m=f.value[p];if(h=isDef(m)?findOptionByValue(v,m,u):void 0,!h&&v.length){const g=getFirstEnabledOption(v)[u.value];h=findOptionByValue(v,g,u)}p++,d.push(v)}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$a,bem$8]=createNamespace("picker-column"),PICKER_KEY=Symbol(name$a);var stdin_default$a=vue.defineComponent({name:name$a,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,p,v,m;const g=vue.ref(),y=vue.ref(),x=vue.ref(0),Pn=vue.ref(0),b=useTouch(),j=()=>c.options.length,re=()=>c.optionHeight*(+c.visibleOptionNum-1)/2,vn=Jn=>{let Yn=findIndexOfEnabledOption(c.options,Jn);const Zn=-Yn*c.optionHeight,nr=()=>{Yn>j()-1&&(Yn=findIndexOfEnabledOption(c.options,Jn));const sr=c.options[Yn][c.fields.value];sr!==c.value&&u("change",sr)};d&&Zn!==x.value?m=nr:nr(),x.value=Zn},Fn=()=>c.readonly||!c.options.length,Bn=Jn=>{d||Fn()||(m=null,Pn.value=DEFAULT_DURATION,vn(Jn),u("clickOption",c.options[Jn]))},w=Jn=>clamp(Math.round(-Jn/c.optionHeight),0,j()-1),J=vue.computed(()=>w(x.value)),gn=(Jn,Yn)=>{const Zn=Math.abs(Jn/Yn);Jn=x.value+Zn/.003*(Jn<0?-1:1);const nr=w(Jn);Pn.value=+c.swipeDuration,vn(nr)},zn=()=>{d=!1,Pn.value=0,m&&(m(),m=null)},Vn=Jn=>{if(!Fn()){if(b.start(Jn),d){const Yn=getElementTranslateY(y.value);x.value=Math.min(0,Yn-re())}Pn.value=0,h=x.value,p=Date.now(),v=h,m=null}},Kn=Jn=>{if(Fn())return;b.move(Jn),b.isVertical()&&(d=!0,preventDefault(Jn,!0));const Yn=clamp(h+b.deltaY.value,-(j()*c.optionHeight),c.optionHeight),Zn=w(Yn);Zn!==J.value&&u("scrollInto",c.options[Zn]),x.value=Yn;const nr=Date.now();nr-p>MOMENTUM_TIME&&(p=nr,v=Yn)},Un=()=>{if(Fn())return;const Jn=x.value-v,Yn=Date.now()-p;if(Yn<MOMENTUM_TIME&&Math.abs(Jn)>MOMENTUM_DISTANCE){gn(Jn,Yn);return}const nr=w(x.value);Pn.value=DEFAULT_DURATION,vn(nr),setTimeout(()=>{d=!1},0)},Qn=()=>{const Jn={height:`${c.optionHeight}px`};return c.options.map((Yn,Zn)=>{const nr=Yn[c.fields.text],{disabled:sr}=Yn,ur=Yn[c.fields.value],Gn={role:"button",style:Jn,tabindex:sr?-1:0,class:[bem$8("item",{disabled:sr,selected:ur===c.value}),Yn.className],onClick:()=>Bn(Zn)},Wn={class:"van-ellipsis",[c.allowHtml?"innerHTML":"textContent"]:nr};return vue.createVNode("li",Gn,[f.option?f.option(Yn,Zn):vue.createVNode("div",Wn,null)])})};return useParent(PICKER_KEY),useExpose({stopMomentum:zn}),vue.watchEffect(()=>{const Jn=d?Math.floor(-x.value/c.optionHeight):c.options.findIndex(nr=>nr[c.fields.value]===c.value),Yn=findIndexOfEnabledOption(c.options,Jn),Zn=-Yn*c.optionHeight;d&&Yn<Jn&&zn(),x.value=Zn}),useEventListener("touchmove",Kn,{target:g}),()=>vue.createVNode("div",{ref:g,class:bem$8(),onTouchstartPassive:Vn,onTouchend:Un,onTouchcancel:Un},[vue.createVNode("ul",{ref:y,style:{transform:`translate3d(0, ${x.value+re()}px, 0)`,transitionDuration:`${Pn.value}ms`,transitionProperty:Pn.value?"all":"none"},class:bem$8("wrapper"),onTransitionend:zn},[Qn()])])}});const[name$9]=createNamespace("picker-toolbar"),pickerToolbarProps={title:String,cancelButtonText:String,confirmButtonText:String},pickerToolbarSlots=["cancel","confirm","title","toolbar"],pickerToolbarPropKeys=Object.keys(pickerToolbarProps);var stdin_default$9=vue.defineComponent({name:name$9,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$9("title"),"van-ellipsis"]},[c.title])},h=()=>u("cancel"),p=()=>u("confirm"),v=()=>{var g;const y=(g=c.cancelButtonText)!=null?g:t("cancel");if(!(!f.cancel&&!y))return vue.createVNode("button",{type:"button",class:[bem$9("cancel"),HAPTICS_FEEDBACK],onClick:h},[f.cancel?f.cancel():y])},m=()=>{var g;const y=(g=c.confirmButtonText)!=null?g:t("confirm");if(!(!f.confirm&&!y))return vue.createVNode("button",{type:"button",class:[bem$9("confirm"),HAPTICS_FEEDBACK],onClick:p},[f.confirm?f.confirm():y])};return()=>vue.createVNode("div",{class:bem$9("toolbar")},[f.toolbar?f.toolbar():[v(),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};/**
181
181
  * @vue/shared v3.5.4
182
182
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
183
183
  * @license MIT