@ecan-bi/datav 1.6.45 → 1.6.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +290 -290
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +10 -10
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.6.
|
|
1
|
+
/*! @ecan-bi/datav@1.6.46 */
|
|
2
2
|
(function(Fa,Ka){typeof exports=="object"&&typeof module<"u"?Ka(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("ant-design-vue/es/divider/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","ant-design-vue/es/divider/style","echarts","ant-design-vue/es/table/style","ant-design-vue/es/notification/style","xlsx","big.js"],Ka):(Fa=typeof globalThis<"u"?globalThis:Fa||self,Ka(Fa["@ecan/bi-datav"]={},Fa.Vue,Fa["echarts/core"],Fa.ResizeDetector,Fa.AntDesignVue,null,null,Fa.LodashEs,Fa.Dayjs,Fa.Axios,Fa.Mitt,Fa["echarts/renderers"],Fa["echarts/charts"],Fa["echarts/components"],null,null,null,null,Fa["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,null,Fa.Echarts,null,null,Fa.Xlsx,Fa.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,style$b,echarts,style$c,style$d,XLSX,big_js){var Fa,Ka,as,ss;"use strict";function _interopNamespaceDefault(ct){const Dn=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(ct){for(const ur in ct)if(ur!=="default"){const dr=Object.getOwnPropertyDescriptor(ct,ur);Object.defineProperty(Dn,ur,dr.get?dr:{enumerable:!0,get:()=>ct[ur]})}}return Dn.default=ct,Object.freeze(Dn)}const echarts__namespace=_interopNamespaceDefault(echarts),XLSX__namespace=_interopNamespaceDefault(XLSX),METHOD_NAMES=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function usePublicAPI(ct,Dn){function ur(fr){return(...hr)=>{if(ct.value||Dn(),!ct.value)throw new Error("ECharts is not initialized yet.");return ct.value[fr].apply(ct.value,hr)}}function dr(){const fr=Object.create(null);return METHOD_NAMES.forEach(hr=>{fr[hr]=ur(hr)}),fr}return dr()}function useAutoresize(ct,Dn,ur){let dr=null;vue.watch([ur,ct,Dn],([fr,hr,vr],pr,mr)=>{fr&&hr&&vr&&(dr=core$1.throttle(()=>{hr.resize()},100),resizeDetector.addListener(fr,dr)),mr(()=>{dr&&fr&&resizeDetector.removeListener(fr,dr)})})}const autoresizeProps={autoresize:Boolean},LOADING_OPTIONS_KEY="ecLoadingOptions";function useLoading(ct,Dn,ur){const dr=vue.inject(LOADING_OPTIONS_KEY,{}),fr=vue.computed(()=>({...vue.unref(dr),...ur==null?void 0:ur.value}));vue.watchEffect(()=>{const hr=ct.value;hr&&(Dn.value?hr.showLoading(fr.value):hr.hideLoading())})}const loadingProps$1={loading:Boolean,loadingOptions:Object},style="",onRE=/^on[^a-z]/,isOn=ct=>onRE.test(ct);function omitOn(ct){const Dn={};for(const ur in ct)isOn(ur)||(Dn[ur]=ct[ur]);return Dn}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(ct,{attrs:Dn,listeners:ur}){const dr=vue.shallowRef(),fr=vue.shallowRef(),hr=vue.shallowRef(),vr=vue.inject(THEME_KEY,null),pr=vue.inject(INIT_OPTIONS_KEY,null),mr=vue.inject(UPDATE_OPTIONS_KEY,null),{autoresize:gr,manualUpdate:yr,loading:Cr,loadingOptions:br}=vue.toRefs(ct),Ar=vue.computed(()=>hr.value||ct.option||Object.create(null)),wr=vue.computed(()=>ct.theme||vue.unref(vr)||{}),_r=vue.computed(()=>ct.initOptions||vue.unref(pr)||{}),Tr=vue.computed(()=>ct.updateOptions||vue.unref(mr)||{}),Er=vue.computed(()=>omitOn(Dn));function xr(Br){if(fr.value||!dr.value)return;const Or=fr.value=core$1.init(dr.value,wr.value,_r.value);ct.group&&(Or.group=ct.group);let Nr=ur;Nr||(Nr={},Object.keys(Dn).filter($r=>$r.indexOf("on")===0&&$r.length>2).forEach($r=>{const zr=$r.charAt(2).toLowerCase()+$r.slice(3);Nr[zr]=Dn[$r]})),Object.keys(Nr).forEach($r=>{const zr=Nr[$r];zr&&($r.indexOf("zr:")===0?Or.getZr().on($r.slice(3).toLowerCase(),zr):Or.on($r.toLowerCase(),zr))});function jr(){if(Or&&!Or.isDisposed())try{Or.resize()}catch($r){if($r.message==="Cannot read property 'get' of undefined")return;throw $r}}function Vr(){Or.setOption(Br||Ar.value,Tr.value)}gr.value?vue.nextTick(()=>{jr(),Vr()}):Vr()}function Sr(Br,Or){ct.manualUpdate&&(hr.value=Br),fr.value?fr.value.setOption(Br,Or||{}):xr(Br)}function kr(){fr.value&&(fr.value.dispose(),fr.value=void 0)}let Pr=null;vue.watch(yr,Br=>{typeof Pr=="function"&&(Pr(),Pr=null),Br||(Pr=vue.watch(()=>ct.option,Or=>{Or&&(fr.value?fr.value.setOption(Or,Tr.value):xr())},{deep:!0}))},{immediate:!0}),vue.watch([wr,_r],()=>{kr(),xr()},{deep:!0}),vue.watchEffect(()=>{ct.group&&fr.value&&(fr.value.group=ct.group)});const Ir=usePublicAPI(fr,xr);return useLoading(fr,Cr,br),useAutoresize(fr,gr,dr),vue.onMounted(()=>{ct.option&&xr()}),vue.onUnmounted(kr),{chart:fr,root:dr,setOption:Sr,nonEventAttrs:Er,...Ir}},render(){const ct={...this.nonEventAttrs};return ct.ref="root",ct.class=ct.class?["echarts"].concat(ct.class):"echarts",vue.h(TAG_NAME,ct)}});function bound01(ct,Dn){isOnePointZero(ct)&&(ct="100%");var ur=isPercentage(ct);return ct=Dn===360?ct:Math.min(Dn,Math.max(0,parseFloat(ct))),ur&&(ct=parseInt(String(ct*Dn),10)/100),Math.abs(ct-Dn)<1e-6?1:(Dn===360?ct=(ct<0?ct%Dn+Dn:ct%Dn)/parseFloat(String(Dn)):ct=ct%Dn/parseFloat(String(Dn)),ct)}function isOnePointZero(ct){return typeof ct=="string"&&ct.indexOf(".")!==-1&&parseFloat(ct)===1}function isPercentage(ct){return typeof ct=="string"&&ct.indexOf("%")!==-1}function boundAlpha(ct){return ct=parseFloat(ct),(isNaN(ct)||ct<0||ct>1)&&(ct=1),ct}function convertToPercentage(ct){return ct<=1?"".concat(Number(ct)*100,"%"):ct}function pad2(ct){return ct.length===1?"0"+ct:String(ct)}function rgbToRgb(ct,Dn,ur){return{r:bound01(ct,255)*255,g:bound01(Dn,255)*255,b:bound01(ur,255)*255}}function hue2rgb(ct,Dn,ur){return ur<0&&(ur+=1),ur>1&&(ur-=1),ur<1/6?ct+(Dn-ct)*(6*ur):ur<1/2?Dn:ur<2/3?ct+(Dn-ct)*(2/3-ur)*6:ct}function hslToRgb(ct,Dn,ur){var dr,fr,hr;if(ct=bound01(ct,360),Dn=bound01(Dn,100),ur=bound01(ur,100),Dn===0)fr=ur,hr=ur,dr=ur;else{var vr=ur<.5?ur*(1+Dn):ur+Dn-ur*Dn,pr=2*ur-vr;dr=hue2rgb(pr,vr,ct+1/3),fr=hue2rgb(pr,vr,ct),hr=hue2rgb(pr,vr,ct-1/3)}return{r:dr*255,g:fr*255,b:hr*255}}function rgbToHsv(ct,Dn,ur){ct=bound01(ct,255),Dn=bound01(Dn,255),ur=bound01(ur,255);var dr=Math.max(ct,Dn,ur),fr=Math.min(ct,Dn,ur),hr=0,vr=dr,pr=dr-fr,mr=dr===0?0:pr/dr;if(dr===fr)hr=0;else{switch(dr){case ct:hr=(Dn-ur)/pr+(Dn<ur?6:0);break;case Dn:hr=(ur-ct)/pr+2;break;case ur:hr=(ct-Dn)/pr+4;break}hr/=6}return{h:hr,s:mr,v:vr}}function hsvToRgb(ct,Dn,ur){ct=bound01(ct,360)*6,Dn=bound01(Dn,100),ur=bound01(ur,100);var dr=Math.floor(ct),fr=ct-dr,hr=ur*(1-Dn),vr=ur*(1-fr*Dn),pr=ur*(1-(1-fr)*Dn),mr=dr%6,gr=[ur,vr,hr,hr,pr,ur][mr],yr=[pr,ur,ur,vr,hr,hr][mr],Cr=[hr,hr,pr,ur,ur,vr][mr];return{r:gr*255,g:yr*255,b:Cr*255}}function rgbToHex(ct,Dn,ur,dr){var fr=[pad2(Math.round(ct).toString(16)),pad2(Math.round(Dn).toString(16)),pad2(Math.round(ur).toString(16))];return dr&&fr[0].startsWith(fr[0].charAt(1))&&fr[1].startsWith(fr[1].charAt(1))&&fr[2].startsWith(fr[2].charAt(1))?fr[0].charAt(0)+fr[1].charAt(0)+fr[2].charAt(0):fr.join("")}function convertHexToDecimal(ct){return parseIntFromHex(ct)/255}function parseIntFromHex(ct){return parseInt(ct,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(ct){var Dn={r:0,g:0,b:0},ur=1,dr=null,fr=null,hr=null,vr=!1,pr=!1;return typeof ct=="string"&&(ct=stringInputToObject(ct)),typeof ct=="object"&&(isValidCSSUnit(ct.r)&&isValidCSSUnit(ct.g)&&isValidCSSUnit(ct.b)?(Dn=rgbToRgb(ct.r,ct.g,ct.b),vr=!0,pr=String(ct.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(ct.h)&&isValidCSSUnit(ct.s)&&isValidCSSUnit(ct.v)?(dr=convertToPercentage(ct.s),fr=convertToPercentage(ct.v),Dn=hsvToRgb(ct.h,dr,fr),vr=!0,pr="hsv"):isValidCSSUnit(ct.h)&&isValidCSSUnit(ct.s)&&isValidCSSUnit(ct.l)&&(dr=convertToPercentage(ct.s),hr=convertToPercentage(ct.l),Dn=hslToRgb(ct.h,dr,hr),vr=!0,pr="hsl"),Object.prototype.hasOwnProperty.call(ct,"a")&&(ur=ct.a)),ur=boundAlpha(ur),{ok:vr,format:ct.format||pr,r:Math.min(255,Math.max(Dn.r,0)),g:Math.min(255,Math.max(Dn.g,0)),b:Math.min(255,Math.max(Dn.b,0)),a:ur}}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(ct){if(ct=ct.trim().toLowerCase(),ct.length===0)return!1;var Dn=!1;if(names[ct])ct=names[ct],Dn=!0;else if(ct==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ur=matchers.rgb.exec(ct);return ur?{r:ur[1],g:ur[2],b:ur[3]}:(ur=matchers.rgba.exec(ct),ur?{r:ur[1],g:ur[2],b:ur[3],a:ur[4]}:(ur=matchers.hsl.exec(ct),ur?{h:ur[1],s:ur[2],l:ur[3]}:(ur=matchers.hsla.exec(ct),ur?{h:ur[1],s:ur[2],l:ur[3],a:ur[4]}:(ur=matchers.hsv.exec(ct),ur?{h:ur[1],s:ur[2],v:ur[3]}:(ur=matchers.hsva.exec(ct),ur?{h:ur[1],s:ur[2],v:ur[3],a:ur[4]}:(ur=matchers.hex8.exec(ct),ur?{r:parseIntFromHex(ur[1]),g:parseIntFromHex(ur[2]),b:parseIntFromHex(ur[3]),a:convertHexToDecimal(ur[4]),format:Dn?"name":"hex8"}:(ur=matchers.hex6.exec(ct),ur?{r:parseIntFromHex(ur[1]),g:parseIntFromHex(ur[2]),b:parseIntFromHex(ur[3]),format:Dn?"name":"hex"}:(ur=matchers.hex4.exec(ct),ur?{r:parseIntFromHex(ur[1]+ur[1]),g:parseIntFromHex(ur[2]+ur[2]),b:parseIntFromHex(ur[3]+ur[3]),a:convertHexToDecimal(ur[4]+ur[4]),format:Dn?"name":"hex8"}:(ur=matchers.hex3.exec(ct),ur?{r:parseIntFromHex(ur[1]+ur[1]),g:parseIntFromHex(ur[2]+ur[2]),b:parseIntFromHex(ur[3]+ur[3]),format:Dn?"name":"hex"}:!1)))))))))}function isValidCSSUnit(ct){return!!matchers.CSS_UNIT.exec(String(ct))}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(ct){var Dn=ct.r,ur=ct.g,dr=ct.b,fr=rgbToHsv(Dn,ur,dr);return{h:fr.h*360,s:fr.s,v:fr.v}}function toHex(ct){var Dn=ct.r,ur=ct.g,dr=ct.b;return"#".concat(rgbToHex(Dn,ur,dr,!1))}function mix(ct,Dn,ur){var dr=ur/100,fr={r:(Dn.r-ct.r)*dr+ct.r,g:(Dn.g-ct.g)*dr+ct.g,b:(Dn.b-ct.b)*dr+ct.b};return fr}function getHue(ct,Dn,ur){var dr;return Math.round(ct.h)>=60&&Math.round(ct.h)<=240?dr=ur?Math.round(ct.h)-hueStep*Dn:Math.round(ct.h)+hueStep*Dn:dr=ur?Math.round(ct.h)+hueStep*Dn:Math.round(ct.h)-hueStep*Dn,dr<0?dr+=360:dr>=360&&(dr-=360),dr}function getSaturation(ct,Dn,ur){if(ct.h===0&&ct.s===0)return ct.s;var dr;return ur?dr=ct.s-saturationStep*Dn:Dn===darkColorCount?dr=ct.s+saturationStep:dr=ct.s+saturationStep2*Dn,dr>1&&(dr=1),ur&&Dn===lightColorCount&&dr>.1&&(dr=.1),dr<.06&&(dr=.06),Number(dr.toFixed(2))}function getValue(ct,Dn,ur){var dr;return ur?dr=ct.v+brightnessStep1*Dn:dr=ct.v-brightnessStep2*Dn,dr>1&&(dr=1),Number(dr.toFixed(2))}function generate$1(ct){for(var Dn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ur=[],dr=inputToRGB(ct),fr=lightColorCount;fr>0;fr-=1){var hr=toHsv(dr),vr=toHex(inputToRGB({h:getHue(hr,fr,!0),s:getSaturation(hr,fr,!0),v:getValue(hr,fr,!0)}));ur.push(vr)}ur.push(toHex(dr));for(var pr=1;pr<=darkColorCount;pr+=1){var mr=toHsv(dr),gr=toHex(inputToRGB({h:getHue(mr,pr),s:getSaturation(mr,pr),v:getValue(mr,pr)}));ur.push(gr)}return Dn.theme==="dark"?darkColorMap.map(function(yr){var Cr=yr.index,br=yr.opacity,Ar=toHex(mix(inputToRGB(Dn.backgroundColor||"#141414"),inputToRGB(ur[Cr]),br*100));return Ar}):ur}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(ct){presetPalettes[ct]=generate$1(presetPrimaryColors[ct]),presetPalettes[ct].primary=presetPalettes[ct][5],presetDarkPalettes[ct]=generate$1(presetPrimaryColors[ct],{theme:"dark",backgroundColor:"#141414"}),presetDarkPalettes[ct].primary=presetDarkPalettes[ct][5]});var containers=[],styleElements=[],usage="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function createStyleElement(){var ct=document.createElement("style");return ct.setAttribute("type","text/css"),ct}function insertCss(ct,Dn){if(Dn=Dn||{},ct===void 0)throw new Error(usage);var ur=Dn.prepend===!0?"prepend":"append",dr=Dn.container!==void 0?Dn.container:document.querySelector("head"),fr=containers.indexOf(dr);fr===-1&&(fr=containers.push(dr)-1,styleElements[fr]={});var hr;return styleElements[fr]!==void 0&&styleElements[fr][ur]!==void 0?hr=styleElements[fr][ur]:(hr=styleElements[fr][ur]=createStyleElement(),ur==="prepend"?dr.insertBefore(hr,dr.childNodes[0]):dr.appendChild(hr)),ct.charCodeAt(0)===65279&&(ct=ct.substr(1,ct.length)),hr.styleSheet?hr.styleSheet.cssText+=ct:hr.textContent+=ct,hr}function _objectSpread$e(ct){for(var Dn=1;Dn<arguments.length;Dn++){var ur=arguments[Dn]!=null?Object(arguments[Dn]):{},dr=Object.keys(ur);typeof Object.getOwnPropertySymbols=="function"&&(dr=dr.concat(Object.getOwnPropertySymbols(ur).filter(function(fr){return Object.getOwnPropertyDescriptor(ur,fr).enumerable}))),dr.forEach(function(fr){_defineProperty$f(ct,fr,ur[fr])})}return ct}function _defineProperty$f(ct,Dn,ur){return Dn in ct?Object.defineProperty(ct,Dn,{value:ur,enumerable:!0,configurable:!0,writable:!0}):ct[Dn]=ur,ct}function warn(ct,Dn){process.env.NODE_ENV!=="production"&&!ct&&console!==void 0&&console.error("Warning: ".concat(Dn))}function warning(ct,Dn){warn(ct,"[@ant-design/icons-vue] ".concat(Dn))}function isIconDefinition(ct){return typeof ct=="object"&&typeof ct.name=="string"&&typeof ct.theme=="string"&&(typeof ct.icon=="object"||typeof ct.icon=="function")}function generate(ct,Dn,ur){return ur?vue.h(ct.tag,_objectSpread$e({key:Dn},ur,ct.attrs),(ct.children||[]).map(function(dr,fr){return generate(dr,"".concat(Dn,"-").concat(ct.tag,"-").concat(fr))})):vue.h(ct.tag,_objectSpread$e({key:Dn},ct.attrs),(ct.children||[]).map(function(dr,fr){return generate(dr,"".concat(Dn,"-").concat(ct.tag,"-").concat(fr))}))}function getSecondaryColor(ct){return generate$1(ct)[0]}function normalizeTwoToneColors(ct){return ct?Array.isArray(ct)?ct:[ct]:[]}var iconStyles=`
|
|
3
3
|
.anticon {
|
|
4
4
|
display: inline-block;
|
|
@@ -60,9 +60,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
60
60
|
`,...function(vr){const pr=[];return vr.forEach((mr,gr)=>{pr.push(...gr===0?[]:[`
|
|
61
61
|
`],...function({vnode:yr,recurseCount:Cr}){const br=Cr>0?`... (${Cr} recursive calls)`:"",Ar=!!yr.component&&yr.component.parent==null,wr=` at <${yt(yr.component,yr.type,Ar)}`,_r=">"+br;return yr.props?[wr,...Re(yr.props),_r]:[wr+_r]}(mr))}),pr}(fr)),console.warn(...hr)}F()}function Re(ct){const Dn=[],ur=Object.keys(ct);return ur.slice(0,3).forEach(dr=>{Dn.push(...Pe(dr,ct[dr]))}),ur.length>3&&Dn.push(" ..."),Dn}function Pe(ct,Dn,ur){return u(Dn)?(Dn=JSON.stringify(Dn),ur?Dn:[`${ct}=${Dn}`]):typeof Dn=="number"||typeof Dn=="boolean"||Dn==null?ur?Dn:[`${ct}=${Dn}`]:De(Dn)?(Dn=Pe(ct,je(Dn.value),!0),ur?Dn:[`${ct}=Ref<`,Dn,">"]):c(Dn)?[`${ct}=fn${Dn.name?`<${Dn.name}>`:""}`]:(Dn=je(Dn),ur?Dn:[`${ct}=`,Dn])}const We={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"};function He(ct,Dn,ur,dr){let fr;try{fr=dr?ct(...dr):ct()}catch(hr){(function(vr,pr,mr,gr=!0){const yr=pr?pr.vnode:null;if(pr){let Cr=pr.parent;const br=pr.proxy,Ar=process.env.NODE_ENV!=="production"?We[mr]:mr;for(;Cr;){const _r=Cr.ec;if(_r){for(let Tr=0;Tr<_r.length;Tr++)if(_r[Tr](vr,br,Ar)===!1)return}Cr=Cr.parent}const wr=pr.appContext.config.errorHandler;if(wr)return void He(wr,null,10,[vr,br,Ar])}(function(Cr,br,Ar,wr=!0){if(process.env.NODE_ENV!=="production"){const Tr=We[br];if(Ar&&(_r=Ar,ze.push(_r)),Ie("Unhandled error"+(Tr?` during execution of ${Tr}`:"")),Ar&&ze.pop(),wr)throw Cr;console.error(Cr)}else console.error(Cr);var _r})(vr,mr,yr,gr)})(hr,Dn,ur)}return fr}let Ge=!1,Ue=!1;const Ye=[];let Ke=0;const Be=[];let qe=null,Qe=0;const Ze=Promise.resolve();function Xe(ct){Ye.length&&Ye.includes(ct,Ge&&ct.allowRecurse?Ke+1:Ke)||(ct.id==null?Ye.push(ct):Ye.splice(function(Dn){let ur=Ke+1,dr=Ye.length;for(;ur<dr;){const fr=ur+dr>>>1,hr=Ye[fr],vr=et(hr);vr<Dn||vr===Dn&&hr.pre?ur=fr+1:dr=fr}return ur}(ct.id),0,ct),Je())}function Je(){Ge||Ue||(Ue=!0,Ze.then(ot))}const et=ct=>ct.id==null?1/0:ct.id,tt=(ct,Dn)=>{const ur=et(ct)-et(Dn);if(ur===0){if(ct.pre&&!Dn.pre)return-1;if(Dn.pre&&!ct.pre)return 1}return ur};function ot(ct){Ue=!1,Ge=!0,process.env.NODE_ENV!=="production"&&(ct=ct||new Map),Ye.sort(tt);const Dn=process.env.NODE_ENV!=="production"?ur=>nt(ct,ur):n;try{for(Ke=0;Ke<Ye.length;Ke++){const ur=Ye[Ke];if(ur&&ur.active!==!1){if(process.env.NODE_ENV!=="production"&&Dn(ur))continue;He(ur,null,14)}}}finally{Ke=0,Ye.length=0,function(ur){if(Be.length){const dr=[...new Set(Be)];if(Be.length=0,qe)return void qe.push(...dr);for(qe=dr,process.env.NODE_ENV!=="production"&&(ur=ur||new Map),qe.sort((fr,hr)=>et(fr)-et(hr)),Qe=0;Qe<qe.length;Qe++)process.env.NODE_ENV!=="production"&&nt(ur,qe[Qe])||qe[Qe]();qe=null,Qe=0}}(ct),Ge=!1,(Ye.length||Be.length)&&ot(ct)}}function nt(ct,Dn){if(ct.has(Dn)){const ur=ct.get(Dn);if(ur>100){const dr=Dn.ownerInstance,fr=dr&&ht(dr.type);return Ie(`Maximum recursive updates exceeded${fr?` in component <${fr}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}ct.set(Dn,ur+1)}else ct.set(Dn,1)}const rt=new Set;process.env.NODE_ENV!=="production"&&(x().__VUE_HMR_RUNTIME__={createRecord:st(function(ct,Dn){return it.has(ct)?!1:(it.set(ct,{initialDef:at(Dn),instances:new Set}),!0)}),rerender:st(function(ct,Dn){const ur=it.get(ct);ur&&(ur.initialDef.render=Dn,[...ur.instances].forEach(dr=>{Dn&&(dr.render=Dn,at(dr.type).render=Dn),dr.renderCache=[],dr.update()}))}),reload:st(function(ct,Dn){const ur=it.get(ct);if(!ur)return;Dn=at(Dn),lt(ur.initialDef,Dn);const dr=[...ur.instances];for(const hr of dr){const vr=at(hr.type);rt.has(vr)||(vr!==ur.initialDef&<(vr,Dn),rt.add(vr)),hr.appContext.propsCache.delete(hr.type),hr.appContext.emitsCache.delete(hr.type),hr.appContext.optionsCache.delete(hr.type),hr.ceReload?(rt.add(vr),hr.ceReload(Dn.styles),rt.delete(vr)):hr.parent?Xe(hr.parent.update):hr.appContext.reload?hr.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}fr=()=>{for(const hr of dr)rt.delete(at(hr.type))},l(fr)?Be.push(...fr):qe&&qe.includes(fr,fr.allowRecurse?Qe+1:Qe)||Be.push(fr),Je();var fr})});const it=new Map;function at(ct){return c(Dn=ct)&&"__vccOpts"in Dn?ct.__vccOpts:ct;var Dn}function lt(ct,Dn){r(ct,Dn);for(const ur in ct)ur==="__file"||ur in Dn||delete ct[ur]}function st(ct){return(Dn,ur)=>{try{return ct(Dn,ur)}catch(dr){console.error(dr),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let ut;process.env.NODE_ENV;let dt="__VUE_INSTANCE_SETTERS__";(ut=x()[dt])||(ut=x()[dt]=[]),ut.push(ct=>ct);const ft=/(?:^|[-_])(\w)/g,pt=ct=>ct.replace(ft,Dn=>Dn.toUpperCase()).replace(/[-_]/g,"");function ht(ct,Dn=!0){return c(ct)?ct.displayName||ct.name:ct.name||Dn&&ct.__name}function yt(ct,Dn,ur=!1){let dr=ht(Dn);if(!dr&&Dn.__file){const fr=Dn.__file.match(/([^/\\]+)\.\w+$/);fr&&(dr=fr[1])}if(!dr&&ct&&ct.parent){const fr=hr=>{for(const vr in hr)if(hr[vr]===Dn)return vr};dr=fr(ct.components||ct.parent.type.components)||fr(ct.appContext.components)}return dr?pt(dr):ur?"App":"Anonymous"}const mt=(ct,Dn)=>function(ur,dr,fr=!1){let hr,vr;const pr=c(ur);return pr?(hr=ur,vr=process.env.NODE_ENV!=="production"?()=>{console.warn("Write operation failed: computed value is readonly")}:n):(hr=ur.get,vr=ur.set),new Ve(hr,vr,pr||!vr,fr)}(ct,0,!1);function gt(ct){return ct&&ct.__esModule&&Object.prototype.hasOwnProperty.call(ct,"default")?ct.default:ct}var vt,bt={exports:{}};function xt(){return vt||(vt=1,bt.exports=function(){var ct=1e3,Dn=6e4,ur=36e5,dr="millisecond",fr="second",hr="minute",vr="hour",pr="day",mr="week",gr="month",yr="quarter",Cr="year",br="date",Ar="Invalid Date",wr=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_r=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Tr={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function($r){var zr=["th","st","nd","rd"],Wr=$r%100;return"["+$r+(zr[(Wr-20)%10]||zr[Wr]||zr[0])+"]"}},Er=function($r,zr,Wr){var qr=String($r);return!qr||qr.length>=zr?$r:""+Array(zr+1-qr.length).join(Wr)+$r},xr={s:Er,z:function($r){var zr=-$r.utcOffset(),Wr=Math.abs(zr),qr=Math.floor(Wr/60),Mr=Wr%60;return(zr<=0?"+":"-")+Er(qr,2,"0")+":"+Er(Mr,2,"0")},m:function $r(zr,Wr){if(zr.date()<Wr.date())return-$r(Wr,zr);var qr=12*(Wr.year()-zr.year())+(Wr.month()-zr.month()),Mr=zr.clone().add(qr,gr),Lr=Wr-Mr<0,Fr=zr.clone().add(qr+(Lr?-1:1),gr);return+(-(qr+(Wr-Mr)/(Lr?Mr-Fr:Fr-Mr))||0)},a:function($r){return $r<0?Math.ceil($r)||0:Math.floor($r)},p:function($r){return{M:gr,y:Cr,w:mr,d:pr,D:br,h:vr,m:hr,s:fr,ms:dr,Q:yr}[$r]||String($r||"").toLowerCase().replace(/s$/,"")},u:function($r){return $r===void 0}},Sr="en",kr={};kr[Sr]=Tr;var Pr="$isDayjsObject",Ir=function($r){return $r instanceof jr||!(!$r||!$r[Pr])},Br=function $r(zr,Wr,qr){var Mr;if(!zr)return Sr;if(typeof zr=="string"){var Lr=zr.toLowerCase();kr[Lr]&&(Mr=Lr),Wr&&(kr[Lr]=Wr,Mr=Lr);var Fr=zr.split("-");if(!Mr&&Fr.length>1)return $r(Fr[0])}else{var Dr=zr.name;kr[Dr]=zr,Mr=Dr}return!qr&&Mr&&(Sr=Mr),Mr||!qr&&Sr},Or=function($r,zr){if(Ir($r))return $r.clone();var Wr=typeof zr=="object"?zr:{};return Wr.date=$r,Wr.args=arguments,new jr(Wr)},Nr=xr;Nr.l=Br,Nr.i=Ir,Nr.w=function($r,zr){return Or($r,{locale:zr.$L,utc:zr.$u,x:zr.$x,$offset:zr.$offset})};var jr=function(){function $r(Wr){this.$L=Br(Wr.locale,null,!0),this.parse(Wr),this.$x=this.$x||Wr.x||{},this[Pr]=!0}var zr=$r.prototype;return zr.parse=function(Wr){this.$d=function(qr){var Mr=qr.date,Lr=qr.utc;if(Mr===null)return new Date(NaN);if(Nr.u(Mr))return new Date;if(Mr instanceof Date)return new Date(Mr);if(typeof Mr=="string"&&!/Z$/i.test(Mr)){var Fr=Mr.match(wr);if(Fr){var Dr=Fr[2]-1||0,Gr=(Fr[7]||"0").substring(0,3);return Lr?new Date(Date.UTC(Fr[1],Dr,Fr[3]||1,Fr[4]||0,Fr[5]||0,Fr[6]||0,Gr)):new Date(Fr[1],Dr,Fr[3]||1,Fr[4]||0,Fr[5]||0,Fr[6]||0,Gr)}}return new Date(Mr)}(Wr),this.init()},zr.init=function(){var Wr=this.$d;this.$y=Wr.getFullYear(),this.$M=Wr.getMonth(),this.$D=Wr.getDate(),this.$W=Wr.getDay(),this.$H=Wr.getHours(),this.$m=Wr.getMinutes(),this.$s=Wr.getSeconds(),this.$ms=Wr.getMilliseconds()},zr.$utils=function(){return Nr},zr.isValid=function(){return this.$d.toString()!==Ar},zr.isSame=function(Wr,qr){var Mr=Or(Wr);return this.startOf(qr)<=Mr&&Mr<=this.endOf(qr)},zr.isAfter=function(Wr,qr){return Or(Wr)<this.startOf(qr)},zr.isBefore=function(Wr,qr){return this.endOf(qr)<Or(Wr)},zr.$g=function(Wr,qr,Mr){return Nr.u(Wr)?this[qr]:this.set(Mr,Wr)},zr.unix=function(){return Math.floor(this.valueOf()/1e3)},zr.valueOf=function(){return this.$d.getTime()},zr.startOf=function(Wr,qr){var Mr=this,Lr=!!Nr.u(qr)||qr,Fr=Nr.p(Wr),Dr=function(Yr,si){var fi=Nr.w(Mr.$u?Date.UTC(Mr.$y,si,Yr):new Date(Mr.$y,si,Yr),Mr);return Lr?fi:fi.endOf(pr)},Gr=function(Yr,si){return Nr.w(Mr.toDate()[Yr].apply(Mr.toDate("s"),(Lr?[0,0,0,0]:[23,59,59,999]).slice(si)),Mr)},Rr=this.$W,Qr=this.$M,Kr=this.$D,Hr="set"+(this.$u?"UTC":"");switch(Fr){case Cr:return Lr?Dr(1,0):Dr(31,11);case gr:return Lr?Dr(1,Qr):Dr(0,Qr+1);case mr:var Ur=this.$locale().weekStart||0,Jr=(Rr<Ur?Rr+7:Rr)-Ur;return Dr(Lr?Kr-Jr:Kr+(6-Jr),Qr);case pr:case br:return Gr(Hr+"Hours",0);case vr:return Gr(Hr+"Minutes",1);case hr:return Gr(Hr+"Seconds",2);case fr:return Gr(Hr+"Milliseconds",3);default:return this.clone()}},zr.endOf=function(Wr){return this.startOf(Wr,!1)},zr.$set=function(Wr,qr){var Mr,Lr=Nr.p(Wr),Fr="set"+(this.$u?"UTC":""),Dr=(Mr={},Mr[pr]=Fr+"Date",Mr[br]=Fr+"Date",Mr[gr]=Fr+"Month",Mr[Cr]=Fr+"FullYear",Mr[vr]=Fr+"Hours",Mr[hr]=Fr+"Minutes",Mr[fr]=Fr+"Seconds",Mr[dr]=Fr+"Milliseconds",Mr)[Lr],Gr=Lr===pr?this.$D+(qr-this.$W):qr;if(Lr===gr||Lr===Cr){var Rr=this.clone().set(br,1);Rr.$d[Dr](Gr),Rr.init(),this.$d=Rr.set(br,Math.min(this.$D,Rr.daysInMonth())).$d}else Dr&&this.$d[Dr](Gr);return this.init(),this},zr.set=function(Wr,qr){return this.clone().$set(Wr,qr)},zr.get=function(Wr){return this[Nr.p(Wr)]()},zr.add=function(Wr,qr){var Mr,Lr=this;Wr=Number(Wr);var Fr=Nr.p(qr),Dr=function(Qr){var Kr=Or(Lr);return Nr.w(Kr.date(Kr.date()+Math.round(Qr*Wr)),Lr)};if(Fr===gr)return this.set(gr,this.$M+Wr);if(Fr===Cr)return this.set(Cr,this.$y+Wr);if(Fr===pr)return Dr(1);if(Fr===mr)return Dr(7);var Gr=(Mr={},Mr[hr]=Dn,Mr[vr]=ur,Mr[fr]=ct,Mr)[Fr]||1,Rr=this.$d.getTime()+Wr*Gr;return Nr.w(Rr,this)},zr.subtract=function(Wr,qr){return this.add(-1*Wr,qr)},zr.format=function(Wr){var qr=this,Mr=this.$locale();if(!this.isValid())return Mr.invalidDate||Ar;var Lr=Wr||"YYYY-MM-DDTHH:mm:ssZ",Fr=Nr.z(this),Dr=this.$H,Gr=this.$m,Rr=this.$M,Qr=Mr.weekdays,Kr=Mr.months,Hr=Mr.meridiem,Ur=function(si,fi,_i,bi){return si&&(si[fi]||si(qr,Lr))||_i[fi].slice(0,bi)},Jr=function(si){return Nr.s(Dr%12||12,si,"0")},Yr=Hr||function(si,fi,_i){var bi=si<12?"AM":"PM";return _i?bi.toLowerCase():bi};return Lr.replace(_r,function(si,fi){return fi||function(_i){switch(_i){case"YY":return String(qr.$y).slice(-2);case"YYYY":return Nr.s(qr.$y,4,"0");case"M":return Rr+1;case"MM":return Nr.s(Rr+1,2,"0");case"MMM":return Ur(Mr.monthsShort,Rr,Kr,3);case"MMMM":return Ur(Kr,Rr);case"D":return qr.$D;case"DD":return Nr.s(qr.$D,2,"0");case"d":return String(qr.$W);case"dd":return Ur(Mr.weekdaysMin,qr.$W,Qr,2);case"ddd":return Ur(Mr.weekdaysShort,qr.$W,Qr,3);case"dddd":return Qr[qr.$W];case"H":return String(Dr);case"HH":return Nr.s(Dr,2,"0");case"h":return Jr(1);case"hh":return Jr(2);case"a":return Yr(Dr,Gr,!0);case"A":return Yr(Dr,Gr,!1);case"m":return String(Gr);case"mm":return Nr.s(Gr,2,"0");case"s":return String(qr.$s);case"ss":return Nr.s(qr.$s,2,"0");case"SSS":return Nr.s(qr.$ms,3,"0");case"Z":return Fr}return null}(si)||Fr.replace(":","")})},zr.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},zr.diff=function(Wr,qr,Mr){var Lr,Fr=this,Dr=Nr.p(qr),Gr=Or(Wr),Rr=(Gr.utcOffset()-this.utcOffset())*Dn,Qr=this-Gr,Kr=function(){return Nr.m(Fr,Gr)};switch(Dr){case Cr:Lr=Kr()/12;break;case gr:Lr=Kr();break;case yr:Lr=Kr()/3;break;case mr:Lr=(Qr-Rr)/6048e5;break;case pr:Lr=(Qr-Rr)/864e5;break;case vr:Lr=Qr/ur;break;case hr:Lr=Qr/Dn;break;case fr:Lr=Qr/ct;break;default:Lr=Qr}return Mr?Lr:Nr.a(Lr)},zr.daysInMonth=function(){return this.endOf(gr).$D},zr.$locale=function(){return kr[this.$L]},zr.locale=function(Wr,qr){if(!Wr)return this.$L;var Mr=this.clone(),Lr=Br(Wr,qr,!0);return Lr&&(Mr.$L=Lr),Mr},zr.clone=function(){return Nr.w(this.$d,this)},zr.toDate=function(){return new Date(this.valueOf())},zr.toJSON=function(){return this.isValid()?this.toISOString():null},zr.toISOString=function(){return this.$d.toISOString()},zr.toString=function(){return this.$d.toUTCString()},$r}(),Vr=jr.prototype;return Or.prototype=Vr,[["$ms",dr],["$s",fr],["$m",hr],["$H",vr],["$W",pr],["$M",gr],["$y",Cr],["$D",br]].forEach(function($r){Vr[$r[1]]=function(zr){return this.$g(zr,$r[0],$r[1])}}),Or.extend=function($r,zr){return $r.$i||($r(zr,jr,Or),$r.$i=!0),Or},Or.locale=Br,Or.isDayjs=Ir,Or.unix=function($r){return Or(1e3*$r)},Or.en=kr[Sr],Or.Ls=kr,Or.p={},Or}()),bt.exports}var wt=gt(xt()),St=typeof global=="object"&&global&&global.Object===Object&&global,At=typeof self=="object"&&self&&self.Object===Object&&self,_t=St||At||Function("return this")(),Lt=_t.Symbol,Ot=Object.prototype,Ct=Ot.hasOwnProperty,jt=Ot.toString,Nt=Lt?Lt.toStringTag:void 0,Tt=Object.prototype.toString,Mt=Lt?Lt.toStringTag:void 0;function kt(ct){return ct==null?ct===void 0?"[object Undefined]":"[object Null]":Mt&&Mt in Object(ct)?function(Dn){var ur=Ct.call(Dn,Nt),dr=Dn[Nt];try{Dn[Nt]=void 0;var fr=!0}catch{}var hr=jt.call(Dn);return fr&&(ur?Dn[Nt]=dr:delete Dn[Nt]),hr}(ct):function(Dn){return Tt.call(Dn)}(ct)}function Dt(ct){return ct!=null&&typeof ct=="object"}var $t=Array.isArray;function Et(ct){var Dn=typeof ct;return ct!=null&&(Dn=="object"||Dn=="function")}function Ft(ct){if(!Et(ct))return!1;var Dn=kt(ct);return Dn=="[object Function]"||Dn=="[object GeneratorFunction]"||Dn=="[object AsyncFunction]"||Dn=="[object Proxy]"}var Vt,zt=_t["__core-js_shared__"],It=(Vt=/[^.]+$/.exec(zt&&zt.keys&&zt.keys.IE_PROTO||""))?"Symbol(src)_1."+Vt:"",Rt=Function.prototype.toString;function Pt(ct){if(ct!=null){try{return Rt.call(ct)}catch{}try{return ct+""}catch{}}return""}var Wt=/^\[object .+?Constructor\]$/,Ht=Function.prototype,Gt=Object.prototype,Ut=Ht.toString,Yt=Gt.hasOwnProperty,Kt=RegExp("^"+Ut.call(Yt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Bt(ct){return!(!Et(ct)||(Dn=ct,It&&It in Dn))&&(Ft(ct)?Kt:Wt).test(Pt(ct));var Dn}function qt(ct,Dn){var ur=function(dr,fr){return dr==null?void 0:dr[fr]}(ct,Dn);return Bt(ur)?ur:void 0}var Qt=qt(_t,"WeakMap"),Zt=Object.create,Xt=function(){function ct(){}return function(Dn){if(!Et(Dn))return{};if(Zt)return Zt(Dn);ct.prototype=Dn;var ur=new ct;return ct.prototype=void 0,ur}}(),Jt=function(){try{var ct=qt(Object,"defineProperty");return ct({},"",{}),ct}catch{}}(),eo=/^(?:0|[1-9]\d*)$/;function to(ct,Dn){var ur=typeof ct;return!!(Dn=Dn??9007199254740991)&&(ur=="number"||ur!="symbol"&&eo.test(ct))&&ct>-1&&ct%1==0&&ct<Dn}function oo(ct,Dn){return ct===Dn||ct!=ct&&Dn!=Dn}var no=Object.prototype.hasOwnProperty;function ro(ct,Dn,ur){var dr=ct[Dn];no.call(ct,Dn)&&oo(dr,ur)&&(ur!==void 0||Dn in ct)||function(fr,hr,vr){hr=="__proto__"&&Jt?Jt(fr,hr,{configurable:!0,enumerable:!0,value:vr,writable:!0}):fr[hr]=vr}(ct,Dn,ur)}function io(ct){return typeof ct=="number"&&ct>-1&&ct%1==0&&ct<=9007199254740991}var ao=Object.prototype;function lo(ct){var Dn=ct&&ct.constructor;return ct===(typeof Dn=="function"&&Dn.prototype||ao)}function so(ct){return Dt(ct)&&kt(ct)=="[object Arguments]"}var co=Object.prototype,uo=co.hasOwnProperty,fo=co.propertyIsEnumerable,po=so(function(){return arguments}())?so:function(ct){return Dt(ct)&&uo.call(ct,"callee")&&!fo.call(ct,"callee")},ho=typeof exports=="object"&&exports&&!exports.nodeType&&exports,yo=ho&&typeof module=="object"&&module&&!module.nodeType&&module,mo=yo&&yo.exports===ho?_t.Buffer:void 0,go=(mo?mo.isBuffer:void 0)||function(){return!1},vo={};function bo(ct){return function(Dn){return ct(Dn)}}vo["[object Float32Array]"]=vo["[object Float64Array]"]=vo["[object Int8Array]"]=vo["[object Int16Array]"]=vo["[object Int32Array]"]=vo["[object Uint8Array]"]=vo["[object Uint8ClampedArray]"]=vo["[object Uint16Array]"]=vo["[object Uint32Array]"]=!0,vo["[object Arguments]"]=vo["[object Array]"]=vo["[object ArrayBuffer]"]=vo["[object Boolean]"]=vo["[object DataView]"]=vo["[object Date]"]=vo["[object Error]"]=vo["[object Function]"]=vo["[object Map]"]=vo["[object Number]"]=vo["[object Object]"]=vo["[object RegExp]"]=vo["[object Set]"]=vo["[object String]"]=vo["[object WeakMap]"]=!1;var xo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,wo=xo&&typeof module=="object"&&module&&!module.nodeType&&module,So=wo&&wo.exports===xo&&St.process,Ao=function(){try{var ct=wo&&wo.require&&wo.require("util").types;return ct||So&&So.binding&&So.binding("util")}catch{}}(),_o=Ao&&Ao.isTypedArray,Lo=_o?bo(_o):function(ct){return Dt(ct)&&io(ct.length)&&!!vo[kt(ct)]},Oo=Object.prototype.hasOwnProperty;function Co(ct,Dn){var ur=$t(ct),dr=!ur&&po(ct),fr=!ur&&!dr&&go(ct),hr=!ur&&!dr&&!fr&&Lo(ct),vr=ur||dr||fr||hr,pr=vr?function(yr,Cr){for(var br=-1,Ar=Array(yr);++br<yr;)Ar[br]=Cr(br);return Ar}(ct.length,String):[],mr=pr.length;for(var gr in ct)!Oo.call(ct,gr)||vr&&(gr=="length"||fr&&(gr=="offset"||gr=="parent")||hr&&(gr=="buffer"||gr=="byteLength"||gr=="byteOffset")||to(gr,mr))||pr.push(gr);return pr}function jo(ct,Dn){return function(ur){return ct(Dn(ur))}}var No=jo(Object.keys,Object),To=Object.prototype.hasOwnProperty;function Mo(ct){return(Dn=ct)!=null&&io(Dn.length)&&!Ft(Dn)?Co(ct):function(ur){if(!lo(ur))return No(ur);var dr=[];for(var fr in Object(ur))To.call(ur,fr)&&fr!="constructor"&&dr.push(fr);return dr}(ct);var Dn}var ko=qt(Object,"create"),Do=Object.prototype.hasOwnProperty,$o=Object.prototype.hasOwnProperty;function Eo(ct){var Dn=-1,ur=ct==null?0:ct.length;for(this.clear();++Dn<ur;){var dr=ct[Dn];this.set(dr[0],dr[1])}}function Fo(ct,Dn){for(var ur=ct.length;ur--;)if(oo(ct[ur][0],Dn))return ur;return-1}Eo.prototype.clear=function(){this.__data__=ko?ko(null):{},this.size=0},Eo.prototype.delete=function(ct){var Dn=this.has(ct)&&delete this.__data__[ct];return this.size-=Dn?1:0,Dn},Eo.prototype.get=function(ct){var Dn=this.__data__;if(ko){var ur=Dn[ct];return ur==="__lodash_hash_undefined__"?void 0:ur}return Do.call(Dn,ct)?Dn[ct]:void 0},Eo.prototype.has=function(ct){var Dn=this.__data__;return ko?Dn[ct]!==void 0:$o.call(Dn,ct)},Eo.prototype.set=function(ct,Dn){var ur=this.__data__;return this.size+=this.has(ct)?0:1,ur[ct]=ko&&Dn===void 0?"__lodash_hash_undefined__":Dn,this};var Vo=Array.prototype.splice;function zo(ct){var Dn=-1,ur=ct==null?0:ct.length;for(this.clear();++Dn<ur;){var dr=ct[Dn];this.set(dr[0],dr[1])}}zo.prototype.clear=function(){this.__data__=[],this.size=0},zo.prototype.delete=function(ct){var Dn=this.__data__,ur=Fo(Dn,ct);return!(ur<0)&&(ur==Dn.length-1?Dn.pop():Vo.call(Dn,ur,1),--this.size,!0)},zo.prototype.get=function(ct){var Dn=this.__data__,ur=Fo(Dn,ct);return ur<0?void 0:Dn[ur][1]},zo.prototype.has=function(ct){return Fo(this.__data__,ct)>-1},zo.prototype.set=function(ct,Dn){var ur=this.__data__,dr=Fo(ur,ct);return dr<0?(++this.size,ur.push([ct,Dn])):ur[dr][1]=Dn,this};var Io=qt(_t,"Map");function Ro(ct,Dn){var ur,dr,fr=ct.__data__;return((dr=typeof(ur=Dn))=="string"||dr=="number"||dr=="symbol"||dr=="boolean"?ur!=="__proto__":ur===null)?fr[typeof Dn=="string"?"string":"hash"]:fr.map}function Po(ct){var Dn=-1,ur=ct==null?0:ct.length;for(this.clear();++Dn<ur;){var dr=ct[Dn];this.set(dr[0],dr[1])}}Po.prototype.clear=function(){this.size=0,this.__data__={hash:new Eo,map:new(Io||zo),string:new Eo}},Po.prototype.delete=function(ct){var Dn=Ro(this,ct).delete(ct);return this.size-=Dn?1:0,Dn},Po.prototype.get=function(ct){return Ro(this,ct).get(ct)},Po.prototype.has=function(ct){return Ro(this,ct).has(ct)},Po.prototype.set=function(ct,Dn){var ur=Ro(this,ct),dr=ur.size;return ur.set(ct,Dn),this.size+=ur.size==dr?0:1,this};var Wo=jo(Object.getPrototypeOf,Object);function Ho(ct){var Dn=this.__data__=new zo(ct);this.size=Dn.size}Ho.prototype.clear=function(){this.__data__=new zo,this.size=0},Ho.prototype.delete=function(ct){var Dn=this.__data__,ur=Dn.delete(ct);return this.size=Dn.size,ur},Ho.prototype.get=function(ct){return this.__data__.get(ct)},Ho.prototype.has=function(ct){return this.__data__.has(ct)},Ho.prototype.set=function(ct,Dn){var ur=this.__data__;if(ur instanceof zo){var dr=ur.__data__;if(!Io||dr.length<199)return dr.push([ct,Dn]),this.size=++ur.size,this;ur=this.__data__=new Po(dr)}return ur.set(ct,Dn),this.size=ur.size,this};var Go=Object.prototype.propertyIsEnumerable,Uo=Object.getOwnPropertySymbols,Yo=Uo?function(ct){return ct==null?[]:(ct=Object(ct),function(Dn,ur){for(var dr=-1,fr=Dn==null?0:Dn.length,hr=0,vr=[];++dr<fr;){var pr=Dn[dr];ur(pr,dr,Dn)&&(vr[hr++]=pr)}return vr}(Uo(ct),function(Dn){return Go.call(ct,Dn)}))}:function(){return[]};function Ko(ct){return function(Dn,ur,dr){var fr=ur(Dn);return $t(Dn)?fr:function(hr,vr){for(var pr=-1,mr=vr.length,gr=hr.length;++pr<mr;)hr[gr+pr]=vr[pr];return hr}(fr,dr(Dn))}(ct,Mo,Yo)}var Bo=qt(_t,"DataView"),qo=qt(_t,"Promise"),Qo=qt(_t,"Set"),Zo="[object Map]",Xo="[object Promise]",Jo="[object Set]",en="[object WeakMap]",tn="[object DataView]",on$1=Pt(Bo),nn=Pt(Io),rn=Pt(qo),an=Pt(Qo),ln=Pt(Qt),sn=kt;(Bo&&sn(new Bo(new ArrayBuffer(1)))!=tn||Io&&sn(new Io)!=Zo||qo&&sn(qo.resolve())!=Xo||Qo&&sn(new Qo)!=Jo||Qt&&sn(new Qt)!=en)&&(sn=function(ct){var Dn=kt(ct),ur=Dn=="[object Object]"?ct.constructor:void 0,dr=ur?Pt(ur):"";if(dr)switch(dr){case on$1:return tn;case nn:return Zo;case rn:return Xo;case an:return Jo;case ln:return en}return Dn});var cn=Object.prototype.hasOwnProperty,un=_t.Uint8Array;function dn(ct){var Dn=new ct.constructor(ct.byteLength);return new un(Dn).set(new un(ct)),Dn}var fn=/\w*$/,pn=Lt?Lt.prototype:void 0,hn=pn?pn.valueOf:void 0;function yn(ct,Dn,ur){var dr,fr,hr,vr,pr,mr=ct.constructor;switch(Dn){case"[object ArrayBuffer]":return dn(ct);case"[object Boolean]":case"[object Date]":return new mr(+ct);case"[object DataView]":return pr=dn((vr=ct).buffer),new vr.constructor(pr,vr.byteOffset,vr.byteLength);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(gr){var yr=dn(gr.buffer);return new gr.constructor(yr,gr.byteOffset,gr.length)}(ct);case"[object Map]":case"[object Set]":return new mr;case"[object Number]":case"[object String]":return new mr(ct);case"[object RegExp]":return(hr=new(fr=ct).constructor(fr.source,fn.exec(fr))).lastIndex=fr.lastIndex,hr;case"[object Symbol]":return dr=ct,hn?Object(hn.call(dr)):{}}}var mn=Ao&&Ao.isMap,gn=mn?bo(mn):function(ct){return Dt(ct)&&sn(ct)=="[object Map]"},vn=Ao&&Ao.isSet,bn=vn?bo(vn):function(ct){return Dt(ct)&&sn(ct)=="[object Set]"},xn="[object Arguments]",wn="[object Function]",Sn="[object Object]",An={};function _n(ct,Dn,ur,dr,fr,hr){var vr;if(vr!==void 0)return vr;if(!Et(ct))return ct;var pr=$t(ct);if(pr)vr=function(br){var Ar=br.length,wr=new br.constructor(Ar);return Ar&&typeof br[0]=="string"&&cn.call(br,"index")&&(wr.index=br.index,wr.input=br.input),wr}(ct);else{var mr=sn(ct),gr=mr==wn||mr=="[object GeneratorFunction]";if(go(ct))return ct.slice();if(mr==Sn||mr==xn||gr&&!fr)vr=gr?{}:function(br){return typeof br.constructor!="function"||lo(br)?{}:Xt(Wo(br))}(ct);else{if(!An[mr])return fr?ct:{};vr=yn(ct,mr)}}hr||(hr=new Ho);var yr=hr.get(ct);if(yr)return yr;hr.set(ct,vr),bn(ct)?ct.forEach(function(br){vr.add(_n(br,Dn,ur,br,ct,hr))}):gn(ct)&&ct.forEach(function(br,Ar){vr.set(Ar,_n(br,Dn,ur,Ar,ct,hr))});var Cr=pr?void 0:Ko(ct);return function(br,Ar){for(var wr=-1,_r=br==null?0:br.length;++wr<_r&&Ar(br[wr],wr,br)!==!1;);}(Cr||ct,function(br,Ar){Cr&&(br=ct[Ar=br]),ro(vr,Ar,_n(br,Dn,ur,Ar,ct,hr))}),vr}An[xn]=An["[object Array]"]=An["[object ArrayBuffer]"]=An["[object DataView]"]=An["[object Boolean]"]=An["[object Date]"]=An["[object Float32Array]"]=An["[object Float64Array]"]=An["[object Int8Array]"]=An["[object Int16Array]"]=An["[object Int32Array]"]=An["[object Map]"]=An["[object Number]"]=An[Sn]=An["[object RegExp]"]=An["[object Set]"]=An["[object String]"]=An["[object Symbol]"]=An["[object Uint8Array]"]=An["[object Uint8ClampedArray]"]=An["[object Uint16Array]"]=An["[object Uint32Array]"]=!0,An["[object Error]"]=An[wn]=An["[object WeakMap]"]=!1;function Ln(ct){return _n(ct,5)}let On=(ct,Dn)=>()=>{let ur="",dr=Dn;for(;dr--;)ur+=ct[Math.random()*ct.length|0];return ur};const Cn=(ct,Dn)=>{let ur=ct;const dr=/[.*+?^${}()()\-|[\]\\]/,fr=Object.assign({dayjs:wt},Dn);let hr="";const vr=[];for(const gr in fr){let yr=gr;dr.test(gr)&&(yr=On("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",6)(),ur=ur.split(gr).join(yr)),hr+=`${yr},`,vr.push(fr[gr])}hr=hr.replace(/,$/,"");const pr=`function (${hr}){return ${ur}}`;let mr;try{mr=Function(`"use strict";return (${pr})`)()(...vr)}catch{return ct}return mr},jn=(ct="",{textData:Dn,codeData:ur}={},{useNewline:dr=!1,useSpace:fr=!1}={})=>{const hr=En,vr=$n,pr=window.config||{},mr=Object.assign(Object.assign({},pr),Dn),gr=String(ct||"").match(/\{(.+?)\}/g);if(gr==null||gr.length===0)return ct;for(let yr=0;yr<gr.length;yr++){const Cr=gr[yr];let br=Cr.slice(1,-1).trim();const Ar=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,wr=br.match(Ar);for(let _r=0;_r<wr.length;_r++){const Tr=wr[_r],Er=mr[Tr];Er!=null&&typeof Er!="function"&&(br=br.replace(Tr,Er))}(/\(.*\)/g.test(br)||/[+/\\*]/g.test(br))&&(br=Cn(br,ur)),ct=ct.replace(Cr,br)}return dr&&(ct=ct==null?void 0:ct.replace(/\n|\\n/g,"<br/>")),fr&&(ct=ct==null?void 0:ct.replace(/\s{2,}?/g," ")),ct=(ct=ct.replace(/Qfw\((.*?)\)/g,(yr,Cr)=>hr(Cr))).replace(/QwfFixed\((.*?)\)/g,(yr,Cr)=>vr(Cr))},Nn=(ct,Dn)=>{if(typeof ct=="string"&&typeof Dn=="string")return ct.toLocaleLowerCase().includes(Dn.toLocaleLowerCase());if(typeof ct=="string"&&Array.isArray(Dn)){const ur=Dn.length;for(let dr=0;dr<ur;dr++){const fr=Dn[dr];if(typeof fr=="string"&&ct.toLocaleLowerCase().includes(fr.toLocaleLowerCase()))return!0}}return!1},Tn=(ct,Dn)=>Object.prototype.hasOwnProperty.call(ct,Dn),Mn=ct=>{const Dn=[];for(const ur of ct)ur.conditions?Dn.push(...Mn(ur.conditions)):(ur==null?void 0:ur.dataType)==="component"&&Dn.push(ur);return Dn},kn=(ct="",Dn)=>{var ur;const dr=ct.match(/\{(.+?)\}/g),fr=((ur=ct.split(`
|
|
62
62
|
`))===null||ur===void 0?void 0:ur.length)-1;let hr="";if(fr)for(let pr=0;pr<fr;pr++)hr+=`
|
|
63
|
-
`;let vr=ct;if(dr!=null&&dr.length){for(const pr of dr){const mr=jn(pr,{textData:Dn},{useNewline:!1,useSpace:!1});mr&&(vr=vr.replace(pr,mr))}return`${hr}{text|${vr}}`}return ct};function $n(ct){return Number(ct).toLocaleString("zh-CN",{minimumFractionDigits:2,maximumFractionDigits:2})}function En(ct){return Number(ct).toLocaleString()}const Fn=["table","bar","combograph","line","pie","radar","scatter","list","circulate"];let Vn=new Map,zn=[];const In=["keyValue","conditionKey","conditionLabel","conditionName","conditionValueType","customValue","id","keyName"],Rn=ct=>Vn.get(ct),Pn=(ct,Dn)=>{if(Dn)Tn(ct,"indexCode")&&(ct.hrpIndexCode=ct.indexCode,delete ct.indexCode),Tn(ct,"indexCodeNum")&&(ct.hrpIndexCodeNum=ct.indexCodeNum,delete ct.indexCodeNum),Tn(ct,"dataType")&&delete ct.dataType,ct.fieldValue||delete ct.fieldValue;else{const{calcWays:ur=[],dateCalcTypes:dr=[],activeKey:fr,componentId:hr=""}=ct;if(fr===5&&(ur!=null&&ur.length)&&(dr!=null&&dr.length)&&hr){const vr=ur[0].split("-");(vr==null?void 0:vr.length)>1&&vr[0]==="rangeValue"&&(ct.calcWays=((pr,mr={})=>{const{around:gr,unit:yr,id:Cr}=pr;let br="";const{pageMode:Ar="",componentList:wr=[]}=(mr==null?void 0:mr.graphicConfig)||{};let _r=null,Tr=null;if(Ar==="design"){const Er=wr==null?void 0:wr.find(Or=>Or.id===Cr);if(!Er)return[];const{interval:xr,intervalUnit:Sr,startTime:kr,endTime:Pr,operate:Ir,useCurrentTime:Br}=Er||{};if(Br&&(_r=wt().subtract(xr,Sr),Tr=wt()),kr&&(_r=wt(kr)),Pr&&(Tr=wt(Pr)),Ir){const{type:Or,value:Nr,mode:jr}=Ir;switch(Or){case"add":_r=_r&&_r.add(Nr,jr),Tr=Tr&&Tr.add(Nr,jr);break;case"minus":_r=_r&&_r.subtract(Nr,jr),Tr=Tr&&Tr.subtract(Nr,jr)}}}else{const Er=Rn(Cr)||{};Fe(Er.startTime)&&(_r=wt(Fe(Er.startTime))),Fe(Er.endTime)&&(Tr=wt(Fe(Er.endTime)))}return _r&&Tr&&(br=`${gr==="before"?"-":""}${Tr.diff(_r,yr.toLowerCase())+1}`),br?[br]:[]})({around:vr[1],unit:dr[0],id:hr})),delete ct.radioValue}if(Tn(ct,"dataType")){if(ct.fieldType==="DATE"&&(ct.label=ct.fieldName),ct.dataType==="component")if(ct.fieldValue==="PARENT"){let vr=ct.modelKey;vr&&ct.prop&&(vr+=`-${ct.prop}`),ct.fieldValue="${"+vr+"}"}else ct.fieldValue="${"+Gn(ct.componentId,ct.fieldValue)+"}";delete ct.dataType}Tn(ct,"activeKey")&&delete ct.activeKey,Tn(ct,"radioValue")&&delete ct.radioValue,Tn(ct,"indexCode")&&(ct.hrpIndexCode=ct.indexCode,delete ct.indexCode),Tn(ct,"indexCodeNum")&&(ct.hrpIndexCodeNum=ct.indexCodeNum,delete ct.indexCodeNum),ct.dataType!=="component"&&ct.useCurrentTime&&(ct.fieldValue=wt().format(ct.dateFormat)),Tn(ct,"modelKey")&&delete ct.modelKey,Tn(ct,"prop")&&delete ct.prop,delete ct.useCurrentTime}},Wn=(ct,Dn)=>{const ur=[];return ct!=null&&ct.length&&Ln(ct).forEach(dr=>{if(dr.join&&dr.conditions){const fr=!dr.conditions.some(hr=>hr.join&&hr.conditions);dr.conditions.forEach((hr,vr)=>{Pn(hr,Dn);const pr={};if(vr<dr.conditions.length-1&&(pr.join=dr.join),fr)ur.push(Object.assign(Object.assign({},pr),hr));else if(hr.join&&hr.conditions){const mr=Dn?"sqlConditions":"conditions";ur.push(Object.assign({[mr]:Wn([hr],Dn)},pr))}else ur.push(Object.assign(Object.assign({},pr),hr))})}else Pn(dr,Dn),ur.push(dr)}),ur},Hn=(ct={},Dn)=>{if(ct!=null&&ct.sortCpnts&&Dn){const Pr=Qn(ct);Pr&&(Dn.sort=Pr)}const{label:ur,name:dr,location:fr,show:hr,indexCode:vr,indexCodeNum:pr,calcType:mr="COLUMN",builtInFormula:gr,builtInValueSource:yr,builtInCalcWay:Cr,formula:br,conditions:Ar,aggregate:wr,distinct:_r,dimByCount:Tr,dataTo:Er,sort:xr}=ct;let Sr;if(Ar&&(Sr=Wn(Ar)),mr==="COMPONENT"){const Pr={};return Bn(Pr,yr),{label:ur.trim(),columnName:dr,show:hr,calcType:mr,componentAlias:Cr,componentValue:Pr.fieldValue||null}}const kr={label:ur.trim(),columnName:dr,location:fr,show:hr,calcType:Er==="1"?"VIEW":mr,hrpIndexCode:vr,hrpIndexCodeNum:pr,aggregate:wr,builtInFormula:gr,builtInValueSource:yr,formula:br,conditions:Sr};if(xr&&(kr.sort={columnName:dr,label:kr.label,order:xr,type:"NORMAL"}),gr!=="DATE_OFFSET")return dr==="the_count"&&(kr.calcType="AGGREGATE",kr.distinct=!!_r,kr.typeGuid=Tr),Object.assign(Object.assign({},kr),{builtInCalcWay:Cr});{const Pr=Cr.split("-");if((Pr==null?void 0:Pr.length)===3){let Ir=Pr[0];return Pr[2]==="before"&&Pr[0]!=="0"&&(Ir=`-${Pr[0]}`),Object.assign(Object.assign({},kr),{calcWays:[Ir],dateCalcTypes:[Pr[1]]})}}},Gn=(ct,Dn)=>{const ur=zn.find(fr=>fr.id===ct),{keyName:dr}=ur||{};if(dr){const fr=/-(startTime|endTime)/g,hr=Dn.match(fr);return hr!=null&&hr.length?`${dr}${hr[0]}`:dr}return Dn||""},Un=ct=>{if(!ct)return[];const Dn=Ln((ct==null?void 0:ct.controlList)||[]).filter(Tr=>Tr.conditionKey!=="parentCode"),{classificationList:ur=[],rowHeaderList:dr=[],dimensionList:fr=[],seriesList:hr=[],leftAxisList:vr=[],rightAxisList:pr=[],queryColumnList:mr=[],indexLibColumns:gr=[],indicators:yr=[],specialIndicators:Cr=[]}=ct;Kn(Dn);const br=[...ur,...dr,...fr,...hr,...vr,...pr,...mr,...gr,...yr,...Cr],Ar=[];for(const Tr of br){const Er=Mn((Tr==null?void 0:Tr.conditions)||[]);if(Er!=null&&Er.length){const xr=Er.filter(Sr=>(Sr==null?void 0:Sr.dataType)==="component").map(Sr=>{const kr={};return Sr!=null&&Sr.dateFormat&&(kr.format=Sr.dateFormat),Sr.fieldValue==="PARENT"&&(kr.id="PARENT",kr.keyName=Sr.modelKey,kr.modelKey=Sr.modelKey,kr.prop=Sr.prop),Object.assign({conditionKey:Sr.fieldName,conditionLabel:Sr.fieldName,conditionName:Sr.fieldName,conditionValueType:Sr.fieldType,id:Sr.componentId,keyName:Sr.fieldValue,rule:Sr.rule,notGlobal:!0,indexCode:Sr.indexCode,typeGuid:Sr.typeGuid,indexCodeNum:Sr.indexCodeNum},kr)});if(xr!=null&&xr.length)for(const Sr of xr)Ar.find(kr=>kr.keyName===Sr.keyName)||Ar.push(Sr)}}const wr=Ar.length,_r=Dn;for(let Tr=0;Tr<wr;Tr++){const Er=Ar[Tr];if((Er==null?void 0:Er.conditionKey)==="parentCode")continue;const{id:xr,keyName:Sr,prop:kr,format:Pr,modelKey:Ir,dataType:Br="component",customValue:Or}=Er,Nr=Gn(xr,Sr),jr=Yn(Er);Bn(jr,xr,{prop:kr,dateFormat:Pr,modelKey:Ir,keyName:Nr}),Br===""&&(jr.fieldValue=Or||""),_r.push(jr)}for(let Tr=_r.length-1;Tr>=0;Tr--){const Er=_r[Tr];Er.globalCondition||Mn(_r).find(xr=>xr.alias===Er.alias&&xr.globalCondition)&&_r.splice(Tr,1)}return _r};function Yn(ct){const{id:Dn,keyName:ur,conditionLabel:dr,conditionKey:fr,conditionValueType:hr,prop:vr,rule:pr="NONE",notGlobal:mr=!1,indexCode:gr,typeGuid:yr,indexCodeNum:Cr,dataType:br="component",isExtProperty:Ar}=ct,wr=Gn(Dn,ur);let _r=wr||Dn;_r&&vr&&(_r+=`-${vr}`);let Tr=pr;return Tr==="NONE"&&(Tr=["startTime","endTime"].includes(vr)?vr==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":wr!=null&&wr.includes("startTime")?vr==="GREATER_EQUAL":wr!=null&&wr.includes("endTime")?vr==="LESS_EQUAL":"EQUAL"),Dn==="PARENT"&&(_r=ct.modelKey,_r&&vr&&(_r+=`-${vr}`),Tr=pr),{rule:Tr,label:dr,fieldName:fr,fieldValue:"",valueType:hr,alias:_r,globalCondition:!mr,indexCode:gr,typeGuid:yr,indexCodeNum:Cr,dataType:br,isExtProperty:Ar}}function Kn(ct){if(ct!=null&&ct.length)for(const Dn of ct)if(Dn!=null&&Dn.conditions)Kn(Dn.conditions);else{const{id:ur,keyName:dr,prop:fr,modelKey:hr,format:vr,dataType:pr="component",customValue:mr}=Dn,gr=Gn(ur,dr),yr=Yn(Dn);Bn(yr,ur,{prop:fr,dateFormat:vr,modelKey:hr,keyName:gr}),pr===""&&(yr.fieldValue=mr||"");for(const Cr in yr)Dn[Cr]=yr[Cr];for(const Cr of In)delete Dn[Cr]}}function Bn(ct,Dn,ur){const{prop:dr="",dateFormat:fr="",modelKey:hr="",keyName:vr="",operateValue:pr,operateMode:mr,operateType:gr}=ur||{},yr=hr||vr;if(Dn==="PARENT"&&yr&&dr){const xr=window.config.record;let Sr=dr,kr=fr;const Pr=dr.match(/\{(.+?)\}/g);if(Pr!=null&&Pr.length){const Ir=Pr[0].slice(1,-1).trim();Sr=dr.replace(Pr[0],""),kr=Ir,ct.dateFormat=kr}if(xr&&xr[yr]){const Ir=Fe(xr[yr][Sr]);wt.isDayjs(Ir)?ct.fieldValue=Ir.format(kr||"YYYY-MM-DD"):ct.fieldValue=Ir}return}const Cr=Rn(Dn)||{},{value:br,format:Ar="YYYY-MM-DD",type:wr="",useCurrentTime:_r,RECORD:Tr}=Cr||{},Er=fr||Ar;if(Nn(wr,"date")){let xr;if(xr=_r?br?Fe(br):wt():Fe(br),typeof xr=="string"&&(xr=wt(xr)),pr&&mr&&gr)switch(gr){case"add":xr=xr.add(pr,mr);break;case"minus":xr=xr.subtract(pr,mr)}ct.fieldValue=xr==null?void 0:xr.format(Er),ct.dateFormat=Er}else if(Nn(wr,"rangepicker")){let xr=dr;if(!dr){const kr=vr&&vr.split("-");kr!=null&&kr.length&&(xr=kr[kr.length-1])}if(!xr)return;let Sr=null;if(Fe(Cr[xr])&&(Sr=wt(Fe(Cr[xr]))),pr&&mr&&gr){if(pr==="rangeValue"){if(Cr.startTime&&Cr.endTime){const kr=Fe(Cr.endTime).diff(Fe(Cr.startTime),mr)+1;switch(gr){case"add":Sr=Sr&&Sr.add(kr,mr);break;case"minus":Sr=Sr&&Sr.subtract(kr,mr)}}}else if(!isNaN(+pr))switch(gr){case"add":Sr=Sr&&Sr.add(pr,mr);break;case"minus":Sr=Sr&&Sr.subtract(pr,mr)}}if(Sr&&(ct.fieldValue=Sr==null?void 0:Sr.format(Er)),xr==="rangeValue"&&Cr.startTime&&Cr.endTime){const kr=function(Pr){const Ir=Pr.split("-");let Br="";if(Ir!=null&&Ir.length)switch(Ir[Ir.length-1]){case"YYYY":Br="year";break;case"MM":Br="month";break;case"DD":Br="day"}return Br}(Er);kr&&(ct.fieldValue=Fe(Cr.endTime).diff(Fe(Cr.startTime),kr)+1)}ct.dateFormat=Er}else Nn(wr,Fn)?ct.fieldValue=hr&&Tr?Tr[hr]:!hr&&Tr?Tr.value:Fe(br):Nn(wr,"select")&&Array.isArray(Fe(br))?ct.fieldValue=Fe(br).join(","):ct.fieldValue=Fe(br)}const qn=ct=>{if(ct){const Dn=Array.isArray(ct)?Ln(ct):[Ln(ct)];let ur="",dr=[];const fr=[],hr=[],vr=[];for(const pr of Dn){let mr=pr.label,gr=pr.columnName;if(pr.defaultCode&&(mr=pr.columnName,delete pr.defaultCode),gr==="component-value"&&pr.componentId){const yr=Rn(pr.componentId)||{},{value:Cr}=yr;Fe(Cr)&&(mr=gr=Fe(Cr))}ur=pr.type,ur==="CUSTOM"&&(dr=pr.customOrderColumns),fr.push(mr),hr.push(gr),vr.push(pr.order)}return ur!=="CUSTOM"&&(fr==null?void 0:fr.length)>1&&(ur="COMBINATION"),ur==="CUSTOM"?{label:fr.join(","),columnName:hr.join(","),type:ur,customOrderColumns:dr}:{label:fr.join(","),columnName:hr.join(","),order:vr.join(","),type:ur}}return ct},Qn=ct=>{const{sortCpnts:Dn=[]}=ct;let ur,dr="";for(const fr of Dn){const hr=Rn(fr)||{},{type:vr,RECORD:pr}=hr;if(Nn(vr,"image")&&Nn(pr==null?void 0:pr.value,["asc","desc"])){dr=pr.value.toUpperCase();break}}return dr&&(ur={label:ct.label,columnName:ct.name,order:dr,type:"NORMAL"}),ur},Zn=(ct,Dn={})=>{var ur,dr,fr,hr,vr,pr,mr,gr;const{graphicConfig:yr,type:Cr,globalModel:br,isGroupTable:Ar=!1,allComponentList:wr}=ct;br&&(Vn=br),wr!=null&&wr.length&&(zn=wr);const _r=Nn(Cr,"pivottable");let Tr,{source:Er,dataViewId:xr,plugin:Sr="1",layer:kr,chartType:Pr,classificationList:Ir=[],rowHeaderList:Br=[],dimensionList:Or=[],seriesList:Nr=[],leftAxisList:jr=[],rightAxisList:Vr=[],queryColumnList:$r=[],indexLibColumns:zr=[],indicators:Wr=[],specialIndicators:qr=[],controlList:Mr=[],formFields:Lr={},variableList:Fr=[],variableConditions:Dr=[],dataSourceId:Gr="",idxLibMode:Rr,preview:Qr=!1,edvDataSetId:Kr,compositeIndicator:Hr}=yr||{},Ur=[];if((yr==null?void 0:yr.pageMode)==="design"?(Ur=((ur=yr.sqlConditions)!==null&&ur!==void 0?ur:[]).map(ri=>{const yi={};if(Tn(ri,"globalCondition")||ri.join||(yi.globalCondition=!0),!ri.join){const di=ri.rule||"EQUAL";yi.rule=di==="NONE"?"EQUAL":di}return Object.assign(Object.assign({},ri),yi)}),Dr!=null&&Dr.length&&(Ur=Ur.concat(Dr))):(Ur=Un(yr),Fr!=null&&Fr.length&&(Ur=Ur.concat(function(ri){const yi=[];if(ri!=null&&ri.length){for(const di of ri)if(di.variableName){const Ei=Gn(di.id,di.keyName),Oi={variateName:di.variableName,globalCondition:di.globalCondition||!1,valueType:di.variableType,alias:Ei||""};Bn(Oi,di.id,{dateFormat:di.format,prop:di.dateTypeValue,keyName:Ei,operateType:di.operateType,operateMode:di.operateMode,operateValue:di.operateValue}),di.dataType===""&&(Oi.fieldValue=di.variableValue),di.format&&(Oi.dateFormat=di.format),di.label&&(Oi.label=di.label),yi.push(Oi)}}return yi}(Fr)))),Ur==null?void 0:Ur.length){const ri=Ur.filter(di=>di.globalCondition),yi=Ur.filter(di=>!di.globalCondition);(ri==null?void 0:ri.length)>1&&(Ur=[{join:"&&",conditions:ri},...yi])}Ur!=null&&Ur.length&&(Ur=Wn(Ur,"1")),kr==null&&(kr=Nn(Cr,["table","card"])||Nn(Cr,["list","circulate"])&&(Ir==null?void 0:Ir.length)>1?"1":Nn(Cr,["select","checkbox","radio","treeSelect"])?"3":Nn(Cr,["indexPanel"])?"4":"2"),Nn(Cr,["indexPanel"])&&(Sr="3");const Jr=[];let Yr,si="";if(Array.isArray(Ir)&&Ir.length>0&&(!["ecanList","ecanCirculate"].includes(Cr)||(Ir==null?void 0:Ir.length)===1)){const ri=Ir.length;for(let yi=0;yi<ri;yi++){const di=Ir[yi]||{},{label:Ei="",name:Oi="",show:Li=!1,sort:Ri,customGroup:hi,conditions:Ci,dateFormat:Di,typeGuid:$i="",truncations:Fi=[],isExtProperty:qi}=di;if(Li||ri===1){si=$i,Tr={label:Ei.trim(),columnName:Oi,show:Li,sort:Qn(di)||qn(Ri)||Ri,customGroup:hi,conditions:Wn(Ci),typeGuid:$i},Di&&(Tr.dateFormat=Di),Oi!=="the_date"||Tr.dateFormat||(Tr.dateFormat="YYYY-MM-DD"),qi&&(Tr.isExtProperty=qi);const Ji={};if(Array.isArray(Fi)&&Fi.length>0){const ua=Fi.length;for(let da=0;da<ua;da++){const va=Fi[da]||{},{rule:ya="",num:xa=0,name:Sa=""}=va;ya&&xa&&(Ji.num=xa,Ji.rule=ya,Sa&&(Ji.otherGroupName=Sa))}}if(!((dr=Object.keys(Ji))===null||dr===void 0)&&dr.length&&(Tr.truncation=Ji),!Nn(Cr,["scatter","valueline"]))break;Jr.push(Tr)}}}if(Array.isArray(Nr)&&Nr.length>0){const ri=Nr.length;for(let yi=0;yi<ri;yi++){const di=Nr[yi]||{},{label:Ei="",name:Oi="",show:Li=!1,sort:Ri,customGroup:hi,conditions:Ci,typeGuid:Di,dateFormat:$i=""}=di;if(Li||ri===1){Yr={label:Ei.trim(),columnName:Oi,show:Li,sort:qn(Ri),customGroup:hi,conditions:Wn(Ci),typeGuid:Di},$i?Yr.dateFormat=$i:Oi==="the_date"&&(Yr.dateFormat="YYYY-MM-DD");break}}}const fi=[];jr==null||jr.forEach(ri=>{ri.location="LEFT",fi.push(Hn(ri,Tr))}),Vr==null||Vr.forEach(ri=>{ri.location="RIGHT",fi.push(Hn(ri,Tr))});let _i=Wr;Dn!=null&&Dn.pivotTableCal&&(_i=((fr=Dn.pivotTableCal)===null||fr===void 0?void 0:fr.indicators)||[]),_i==null||_i.forEach(ri=>{ri.location="LEFT",fi.push(Hn(ri,Tr))});const bi=[];qr==null||qr.forEach(ri=>{ri.location="LEFT",bi.push(Hn(ri,Tr))});const pi=[];["ecanList","ecanCirculate"].includes(Cr)&&(Ir==null?void 0:Ir.length)>1&&($r=Ir),Dn!=null&&Dn.pivotTableCal&&($r=((hr=Dn.pivotTableCal)===null||hr===void 0?void 0:hr.dimensions)||[]),$r==null||$r.forEach(ri=>{const{label:yi,name:di,location:Ei,show:Oi,indexCode:Li,sort:Ri,typeGuid:hi,indexCodeNum:Ci,dateFormat:Di,conditions:$i,isExtProperty:Fi}=ri;let qi=qn(Ri);if(Dn.sort){const{field:ua,order:da}=Dn.sort;let va=fi.find(ya=>ya.label===ua);va||yi!==ua||(va=ri),va&&(qi={columnName:va.columnName,label:Dn.sort.field,order:da.toUpperCase(),type:"NORMAL"})}const Ji={label:yi,columnName:di,location:Ei,show:Oi,sort:qi,calcType:"COLUMN",hrpIndexCode:Li,hrpIndexCodeNum:Ci,conditions:Wn($i),typeGuid:hi};Di&&(Ji.dateFormat=Di),di!=="the_date"||Ji.dateFormat||(Ji.dateFormat="YYYY-MM-DD"),Fi&&(Ji.isExtProperty=Fi),pi.push(Ji)});const mi=[];["ecanTable"].includes(Cr)&&yr.isIndexSet&&zr.forEach(ri=>{const yi={label:ri.label,calcType:ri.calcType,show:ri.show};ri.formula&&(yi.formula=ri.formula),mi.push(yi)});let xi=[],ni=[];if(Array.isArray(Br)&&Br.length>0?ni=Br:Array.isArray(Or)&&Or.length>0&&(ni=Or),ni==null?void 0:ni.length){const ri=ni.length;for(let yi=0;yi<ri;yi++){const di=ni[yi]||{},{label:Ei="",name:Oi="",show:Li=!1,sort:Ri,customGroup:hi,conditions:Ci,truncations:Di,typeGuid:$i="",dateFormat:Fi,isExtProperty:qi}=di;let Ji=qn(Ri);if(Dn.sort){const{field:va,order:ya}=Dn.sort;let xa=fi.find(Sa=>Sa.label===va);xa||di.label!==va||(xa=di),xa&&(Ji={columnName:xa.columnName,label:Dn.sort.field,order:ya.toUpperCase(),type:"NORMAL"})}const ua={label:Ei.trim(),columnName:Oi,show:Li,sort:Ji,customGroup:hi,conditions:Wn(Ci),typeGuid:$i};Fi&&(ua.dateFormat=Fi),Oi!=="the_date"||ua.dateFormat||(ua.dateFormat="YYYY-MM-DD"),qi&&(ua.isExtProperty=qi);const da={};if(Array.isArray(Di)&&Di.length>0){const va=Di.length;for(let ya=0;ya<va;ya++){const xa=Di[ya]||{},{rule:Sa="",num:La=0,name:qa=""}=xa;Sa&&La&&(da.num=La,da.rule=Sa,qa&&(da.otherGroupName=qa))}}!((vr=Object.keys(da))===null||vr===void 0)&&vr.length&&(ua.truncation=da),xi.push(ua)}}let ai,Xr=[];const vi=[];if(Dn!=null&&Dn.pivotTableCal){let ri=[];const{calc:yi=[],filter:di=[],truncations:Ei=[],sorts:Oi=[],aggregateMethod:Li=[],rowDimensionKeys:Ri=[],colDimensionKeys:hi=[]}=Dn.pivotTableCal;if(fi.push(...yi),di==null?void 0:di.length){const Ci=function Di($i){const Fi=[];for(const qi of $i)qi.conditions?Fi.push(...Di(qi.conditions)):qi.conditionKey==="the_date"&&Fi.push(qi);return Fi}(Mr);for(const Di of di){const{type:$i}=Di,Fi=e(Di,["type"]);$i==="indicators"?ri=fi:$i==="dimension"&&(ri=pi);const qi=ri.find(Ji=>Ji.columnName===Di.fieldName&&Ji.label===Di.label);if(qi){if($i==="indicators")qi.filter={rule:Fi.rule,fieldValue:Fi.fieldValue};else if($i==="dimension"){let Ji=!0;Fi.fieldName==="the_date"&&(Ci==null?void 0:Ci.length)===2&&(Ji=!1,vi.push(Fi)),Ji&&(qi.conditions||(qi.conditions=[]),qi.conditions.push(Fi))}}}}if(Ei!=null&&Ei.length)for(const Ci of Ei){const Di=pi.find($i=>$i.label===Ci.key);Di&&(Di.truncation={num:Ci.num,rule:Ci.rule})}if(Oi!=null&&Oi.length)for(const Ci of Oi){const{fieldType:Di,columnData:$i}=Ci,Fi=e(Ci,["fieldType","columnData"]);Di==="indicators"?(ri=fi,ai=$i):Di==="dimension"&&(ri=pi);const qi=ri.find(Ji=>Ji.label===Fi.label);qi&&(qi.sort=Object.assign(Object.assign({},Fi),{columnName:qi.columnName}))}if(!((pr=Object.keys(Li))===null||pr===void 0)&&pr.length)for(const Ci in Li){const Di=pi.find($i=>$i.label===Ci);Di&&(!((mr=Li[Ci])===null||mr===void 0)&&mr.length)&&(Di.aggregateMethod=Li[Ci])}xi=[],Xr=[];for(const Ci of pi)Ri.includes(Ci.columnName)?xi.push(Ci):hi.includes(Ci.columnName)&&Xr.push(Ci)}if(Nn(Cr,["text","proportion","counter","gauge"])?Pr="zb":Nn(Cr,["valueline"])?Pr="valueline":Nn(Cr,["indexPanel"])?Pr="indexPanel":Nn(Cr,["boxplot"])?Pr="boxplot":Nn(Cr,["budget"])&&(Pr="budget"),Ar||Cr==="card"){if(xi.length===0||fi.length===0)return;Pr="grouptable"}else if(kr==="1"&&!pi.length&&!mi.length||["2","4"].includes(kr)&&fi.length===0||!(kr!=="3"||(si||Er==="EDV_DATA_SET")&&Lr.labelField&&Lr.valueField)||kr==="3"&&Cr==="ecanDataSelect"&&fi.length===0)return;let Si;if(Or!=null&&Or.length&&(kr="1",Pr="grouptable"),_r||Nn(Cr,["scatter","valueline"])||!(!((gr=Object.keys(Lr))===null||gr===void 0)&&gr.length)){let ri={};ri=Nn(Cr,["scatter","valueline"])?{classifications:Jr}:{classification:Tr},mi!=null&&mi.length&&(ri.indexLibColumns=mi,ri.isIndexSet=!0),bi!=null&&bi.length&&(ri.specialIndicatorList=bi),Nn(Cr,"table")&&yr.isIndexSet&&(ri.compositeIndicator=Hr),yr.isIndexQuery&&(ri.isIndexQuery=yr.isIndexQuery);const yi=Ur.map(di=>{const{fieldValue:Ei}=di,Oi={};return Ei&&Array.isArray(Ei)&&(Oi.fieldValue=JSON.stringify(Ei)),Object.assign(Object.assign({},di),Oi)});vi!=null&&vi.length&&function di(Ei){for(const Oi of Ei)if(Oi.sqlConditions)di(Oi.sqlConditions);else if(Oi.fieldName==="the_date"){const Li=vi.find(Ri=>Ri.prop===Oi.prop);Li&&(Oi.fieldValue=Li.fieldValue)}}(yi),Si=Object.assign({url:"/diagram",source:Er,dataViewId:xr,plugin:_r?"5":Sr,layer:kr,chartType:_r?"pivot-table":Pr,series:Yr,indicatorList:fi,queryColumns:Ar?[]:pi,pageFlag:!0,edvDataSetId:Kr||"",sqlConditions:yi,idxLibMode:Rr,dataSourceId:Gr,preview:Qr,rowHeaders:xi,keyName:ct.keyName,columnData:ai,columnHeaders:Xr},ri)}else{const ri=Mn(Mr).find(Ei=>Ei.conditionKey==="parentCode"),yi={};if(ri){const Ei=Rn(ri.id)||{};Ei!=null&&Ei.itemCodes?yi.parentItemCodes=Ei.itemCodes:yi.parentItemCodes=null}Cr==="ecanDataSelect"&&(yi.indicatorList=fi.filter(Ei=>Ei.show)),Er==="EDV_DATA_SET"&&(yi.edvDataSetId=Kr),Tr!=null&&Tr.sort&&(yi.sort=Tr.sort);let di="normalSelect";Cr==="ecanDataSelect"?di="normalSelectData":Cr==="ecanTreeSelect"&&(di="treeSelect"),Si=Object.assign({url:"/diagram/formData",source:Er,dataViewId:xr,plugin:"4",layer:kr,chartType:Cr==="ecanTreeSelect"?"treeSelect":"normalSelect",rangeIndexTypeGuid:si,type:di,labelField:Lr.labelField,valueField:Lr.valueField,parentField:Lr.parentField,sqlConditions:Ur,idxLibMode:"WITH_DATE_DIM_TABLE",dataSourceId:Gr,keyName:ct.keyName},yi)}return Si},Xn=(ct=[],Dn,ur=!1)=>{let{name:dr="name",types:fr=[]}=Dn||{};dr=(dr==null?void 0:dr.trim())||dr;const hr=new Set,vr=new Map,pr=ct.length,mr=fr.length;if(pr!==1||ur)for(let Cr=0;Cr<pr;Cr++){const br=ct[Cr],Ar=br[dr];hr.add(Ar);for(let wr=0;wr<mr;wr++){const _r=fr[wr],{label:Tr,value:Er}=_r,xr=Object.assign(Object.assign({},br),{value:br[Er]});if(vr.has(Tr)){const Sr=vr.get(Tr);Sr.push(xr),vr.set(Tr,Sr)}else vr.set(Tr,[xr])}}else{const Cr=[];for(let Ar=0;Ar<mr;Ar++){const wr=fr[Ar],{label:_r,value:Tr}=wr,Er=Object.assign(Object.assign({},ct[0]),{value:ct[0][Tr]});hr.add(_r),Cr.push(Er)}const br=ct[0][dr]||"";vr.set(br,Cr)}const gr=Array.from(hr),yr=[];for(const[Cr,br]of vr)yr.push({name:Cr,data:br});return{dimensions:gr,dataset:yr}},Jn=(ct,Dn)=>{let{name:ur="name",value:dr="value",type:fr="type"}=Dn||{};ur=ur==null?void 0:ur.trim(),dr=dr==null?void 0:dr.trim(),fr=fr==null?void 0:fr.trim();const hr=new Map,vr=ct.length;for(let gr=0;gr<vr;gr++){const yr=ct[gr],Cr=yr[ur]||"",br=yr[dr]||"",Ar=yr[fr]||"";if(hr.has(Ar)){const wr=hr.get(Ar);wr.push(Object.assign({name:Cr,value:br},yr)),hr.set(Ar,wr)}else hr.set(Ar,[Object.assign({name:Cr,value:br},yr)])}const pr=[],mr=[];for(const[gr,yr]of hr)if(mr.push({name:gr,data:yr}),yr==null?void 0:yr.length)if(pr.length)for(const Cr of yr)pr.includes(Cr.name)||pr.push(Cr.name);else pr.push(...yr.map(Cr=>Cr.name));return{dimensions:pr,dataset:mr}},er=(ct,Dn)=>{var ur;if(ct==null)return Dn;const dr=ct.match(/\{.*\}/g);if(dr==null||dr.length===0)return Dn;const fr=dr.length;for(let hr=0;hr<fr;hr++){const vr=dr[hr];if(vr==null||vr==="")break;let pr=(ur=vr.slice(1,-1))===null||ur===void 0?void 0:ur.trim();pr=pr==null?void 0:pr.replace(/value/g,Dn);try{let mr=pr;(/\(.*\)/g.test(pr)||/[+/\\*]/g.test(pr))&&(mr=Cn(pr)),ct=ct.replace(vr,mr)}catch{ct=ct.replace(vr,pr)}}return ct},tr=(ct,Dn,ur)=>{let dr=ct.dataFieldNames;if(ct.dataType==="indicator"&&(ur==null?void 0:ur.pageMode)!=="design"&&Dn){const{formFields:fr={}}=Dn;fr!=null&&fr.labelField&&(fr!=null&&fr.valueField)&&(dr={name:fr.labelField,value:fr.valueField})}return dr},or=ct=>{const Dn=ct==null?void 0:ct.chart.getModel().getComponent("yAxis").axis.scale._extent,ur=ct==null?void 0:ct.chart.getModel().getComponent("xAxis").axis.scale._extent;let dr={};return ur&&Dn&&(dr={xAxisMinValue:ur[0],xAxisMaxValue:ur[1],yAxisMinValue:Dn[0],yAxisMaxValue:Dn[1]}),dr};function nr(ct,Dn,ur){switch(Dn){case"startX":ct[0].coord[0]=+ur;break;case"startY":ct[0].coord[1]=+ur;break;case"endX":ct[1].coord[0]=+ur;break;case"endY":ct[1].coord[1]=+ur}}const rr$1=(ct,Dn,ur)=>{let dr=0,fr=[];switch(Dn.x?fr=Fe(ur).map(vr=>vr.value[0]):Dn.y&&(fr=Fe(ur).map(vr=>vr.value[1])),ct){case"max":dr=Math.max(...fr);break;case"min":dr=Math.min(...fr);break;case"average":hr=fr,dr=Array.isArray(hr)&&hr.length!==0?hr.reduce((vr,pr)=>vr+pr,0)/hr.length:0;break;case"median":dr=function(vr){if(!Array.isArray(vr)||vr.length===0)return 0;const pr=[...vr].sort((yr,Cr)=>yr-Cr),mr=pr.length,gr=Math.floor(mr/2);return mr%2!=0?pr[gr]:(pr[gr-1]+pr[gr])/2}(fr)}var hr;return dr},ir={最大值:"{max}",最小值:"{min}",平均值:"{average}",中位数:"{median}"};function ar(ct,Dn,ur,dr,fr,hr,vr){const pr=tr(ct,dr,vr),mr=ct.xAxisLabelFormatter,gr=ct.yAxisLabelFormatter,yr=fr?((Br,Or,Nr,jr)=>{const{xAxisMarkLineValue:Vr=[],yAxisMarkLineValue:$r=[]}=Br,{xAxisMinValue:zr,xAxisMaxValue:Wr,yAxisMinValue:qr,yAxisMaxValue:Mr}=Or,Lr=Vr.map(Gr=>Object.assign(Object.assign({},Gr),{x:!0})),Fr=$r.map(Gr=>Object.assign(Object.assign({},Gr),{y:!0})),Dr=Lr.concat(Fr);if(Dr!=null&&Dr.length){const Gr=[];for(const Rr of Dr){const Qr={label:{show:!0,formatter:"",rich:{ft:{}}}},Kr={};let Hr=Rr.value;const Ur=Hr==null?void 0:Hr.match(/\{(.+?)\}/g);let Jr="";if(Qr.label.formatter=Rr.label?`{ft|${Rr.label}}`:"",(Rr.offsetHorizontal||Rr.offsetVertical)&&(Rr.x?Qr.label.rich.ft.padding=[0,Rr.offsetHorizontal||0,Rr.offsetVertical||0,0]:Rr.y&&(Qr.label.rich.ft.padding=[Rr.offsetVertical||0,0,0,Rr.offsetHorizontal||0])),Rr.labelColor&&(Qr.label.rich.ft.color=Rr.labelColor),Rr.lineColor&&(Kr.color=Rr.lineColor),Rr.lineType&&(Kr.type=Rr.lineType),Rr.x?Jr="xAxis":Rr.y&&(Jr="yAxis"),Ur==null?void 0:Ur.length){for(const Yr of Ur)Hr=Hr.replace(Yr,Yr.slice(1,-1));if(Hr){let Yr;Yr=jr&&jr.value[Hr]?Fe(jr)[Hr]:Cn(Hr,{axisMax:Rr.x?Fe(Wr):Rr.y?Fe(Mr):0,axisMin:Rr.x?Fe(zr):Rr.y?Fe(qr):0,max:rr$1("max",Rr,Nr),min:rr$1("min",Rr,Nr),average:rr$1("average",Rr,Nr),median:rr$1("median",Rr,Nr)}),isNaN(+Yr)||Gr.push(Object.assign({[Jr]:+Yr,lineStyle:Kr},Qr))}}else isNaN(+Rr.value)||Gr.push(Object.assign({[Jr]:Rr.value,lineStyle:Kr},Qr))}return{symbol:["none","none"],data:Gr}}return{data:[]}})(ct,fr,Dn,hr):void 0,Cr=fr?((Br,Or,Nr)=>{const{axisMarkArea:jr=[]}=Br,{xAxisMinValue:Vr,xAxisMaxValue:$r,yAxisMinValue:zr,yAxisMaxValue:Wr}=Or;if(jr!=null&&jr.length){const qr=[];for(const Mr of jr){const Lr=[{name:Mr.label||"",coord:[],itemStyle:{color:Mr.color||"transparent"},label:{show:!!Mr.label,position:"inside",fontSize:16,color:"#000"}},{coord:[]}];for(const Fr in Mr)if(["startX","startY","endX","endY"].includes(Fr)){let Dr=ir[Mr[Fr]]||Mr[Fr];const Gr=Dr==null?void 0:Dr.match(/\{(.+?)\}/g);if(Gr!=null&&Gr.length){for(const Rr of Gr)Dr=Dr.replace(Rr,Rr.slice(1,-1));if(Dr){const Rr={x:Fr.includes("X"),y:Fr.includes("Y")},Qr=Cn(Dr,{xMax:Fe($r),xMin:Fe(Vr),yMax:Fe(Wr),yMin:Fe(zr),max:rr$1("max",Rr,Nr),min:rr$1("min",Rr,Nr),average:rr$1("average",Rr,Nr),median:rr$1("median",Rr,Nr)});isNaN(+Qr)||nr(Lr,Fr,Qr)}}else isNaN(+Mr[Fr])||nr(Lr,Fr,Mr[Fr])}Lr.every(Fr=>{var Dr;return(Dr=Fr.coord)===null||Dr===void 0?void 0:Dr.length})&&qr.push(Lr)}return{data:qr}}return{data:[]}})(ct,fr,Dn):void 0,{visualColorKey:br,visualColorCondition:Ar,visualSizeKey:wr,visualSizeCondition:_r}=ct;let Tr;br&&(Tr=function(Br,Or,Nr){const jr=$r=>{if($r.name)return $r.name;const zr=!!($r!=null&&$r.value1),Wr=!!($r!=null&&$r.value2);return zr&&!Wr?`${$r.rule1}${$r.value1}`:!zr&&Wr?`${$r.rule2}${$r.value2}`:`${$r.value1}-${$r.value2}`},Vr={};return Nr.forEach($r=>{($r.value1||$r.value2)&&(Vr[jr($r)]={data:[],color:$r.color})}),Vr.其他={data:[]},Br.forEach($r=>{const zr=Number($r.record[Or]);let Wr=!1;for(const qr of Nr){if(!qr.value1&&!qr.value2)continue;const Mr=qr.value1?Number(qr.value1):-1/0,Lr=qr.value2?Number(qr.value2):1/0;let Fr=!0,Dr=!0;if(qr.rule1===">="?Fr=zr>=Mr:qr.rule1===">"?Fr=zr>Mr:qr.rule1==="<="?Fr=zr<=Mr:qr.rule1==="<"?Fr=zr<Mr:qr.rule1==="=="&&(Fr=zr===Mr),qr.value2!==""&&(qr.rule2===">="?Dr=zr>=Lr:qr.rule2===">"?Dr=zr>Lr:qr.rule2==="<="?Dr=zr<=Lr:qr.rule2==="<"?Dr=zr<Lr:qr.rule2==="=="&&(Dr=zr===Lr)),Fr&&Dr){Vr[jr(qr)].data.push($r),Wr=!0;break}}Wr||Vr.其他.data.push($r)}),Vr}(Dn,br,Ln(Ar).reverse()));const Er=Br=>{var Or;let Nr="",jr=ct.labelFormatter;jr===""&&(jr="{c}");const{seriesName:Vr,data:$r}=Br||{},zr=(Or=$r==null?void 0:$r.record)!==null&&Or!==void 0?Or:{},Wr=zr[pr.name],qr=zr[pr.value];return Nr+=jn(jr,{textData:Object.assign({name:Wr,value:qr,a:Vr,b:Wr,c:qr||0},zr)},{useNewline:!0,useSpace:!0}),Nr},xr=function(Br){const Or=[];for(const Nr of Br){let jr="";Nr.value1&&(jr+=`value ${Nr.rule1} ${Nr.value1}`),Nr.value2&&(jr+=`${Nr.value1?"&&":""} value ${Nr.rule2} ${Nr.value2}`),jr&&Or.push({rule:jr,size:Nr.size})}return Or.reverse()}(_r),Sr=(Br,Or)=>{if(wr){const{record:Nr={}}=Or.data||{},jr=Nr[wr],Vr=xr.find($r=>Cn($r.rule,{value:jr}));if(Vr)return Vr.size}return ct.symbolSize},kr={type:"scatter",data:Fe(Dn),symbolSize:Sr,itemStyle:{color:ct.symbolColor},label:{show:ct.labelShow,fontSize:ct.labelFontSize,position:ct.labelPosition,color:ct.labelColor,width:ct.labelWidth,overflow:ct.labelOverflow,formatter:Er},markLine:yr,markArea:Cr},Pr=[],Ir=[];if(Tr)for(const Br in Tr){const Or=Tr[Br],Nr=Ln(kr);Nr.symbolSize=Sr,Nr.label.formatter=Er,Nr.itemStyle.color=Or.color||ct.symbolColor,Nr.data=Or.data,Nr.name=Br,Ir.push(Nr),Pr.push(Br)}else Ir.push(kr);return{xAxis:{z:5,splitLine:{show:ct.xAxisSplitLineShow,lineStyle:{color:ct.xAxisSplitLineStyleColor},interval:ct.xAxisSplitLineInterval},splitArea:{show:ct.xAxisSplitAreaShow},axisLabel:{show:ct.xAxisLabelShow,fontSize:ct.xAxisLabelFontSize,color:ct.xAxisLabelColor,interval:ct.xAxisLabelInterval||0,rotate:ct.xAxisLabelRotate,width:ct.xAxisLabelWidth,overflow:ct.xAxisLabelOverflow,formatter:Br=>(typeof Br!="string"||Br[0]!=="0"||isNaN(+Br)||(Br=(+Br).toString()),er(mr,Br))},axisLine:{lineStyle:{color:ct.xAxisLineStyleColor},symbol:["none",ct.showXAxisLineArrow?"arrow":"none"],symbolSize:[8,12],onZero:!1},axisTick:{show:ct.xAxisTickShow},name:ct.xAxisName,nameLocation:ct.xAxisLineInverse?"start":"end",nameTextStyle:{fontSize:ct.xAxisLabelFontSize,color:ct.xAxisLabelColor,align:"left"},inverse:ct.xAxisLineInverse,max:ct.xAxisMax,min:ct.xAxisMin},yAxis:{z:5,splitLine:{show:ct.yAxisSplitLineShow,lineStyle:{color:ct.yAxisSplitLineStyleColor,type:ct.yAxisSplitLineType}},axisTick:{show:ct.yAxisTickShow},splitArea:{show:ct.yAxisSplitAreaShow},axisLabel:{show:ct.yAxisLabelShow,fontSize:ct.yAxisLabelFontSize,color:ct.yAxisLabelColor,formatter:Br=>er(gr,Br)},axisLine:{show:ct.yAxisLineAlwaysDisplay,lineStyle:{color:ct.yAxisLineStyleColor},symbol:["none",ct.showYAxisLineArrow?"arrow":"none"],symbolSize:[8,12],onZero:!1},name:ct.yAxisName,nameLocation:ct.yAxisLineInverse?"start":"end",nameTextStyle:{fontSize:ct.yAxisLabelFontSize,color:ct.yAxisLabelColor,align:"right"},inverse:ct.yAxisLineInverse,max:ct.yAxisMax,min:ct.yAxisMin},tooltip:{show:ct.tooltipShow,trigger:ct.tooltipTrigger,formatter(Br){var Or,Nr;const{marker:jr,seriesName:Vr,componentType:$r}=Br,zr=(Nr=(Or=Br==null?void 0:Br.data)===null||Or===void 0?void 0:Or.record)!==null&&Nr!==void 0?Nr:{},Wr=zr[pr.name],qr=zr[pr.value];return["markLine","markArea"].includes($r)?"":jn(ct.tooltipFormatter,{textData:Object.assign({marker:jr,seriesName:Vr,a:Vr,b:Wr,c:qr},zr)},{useNewline:!0,useSpace:!0})},axisPointer:{type:ct.crossShow||ct.crossShow===void 0?"cross":""},textStyle:{fontSize:Fe(ur)},position:ct.tooltipPosition||void 0},legend:{show:ct.legendShow,orient:ct.legendOrient,top:ct.legendTop,left:ct.legendLeft,textStyle:{color:ct.legendTextStyleColor,fontSize:ur},data:Pr},series:Ir}}function lr(ct){let Dn="";switch(ct){case 1:Dn="万";break;case 3:Dn="百万";break;case 4:Dn="千万"}return Dn}const sr=(ct,Dn,ur,dr,fr,hr,vr)=>{switch(((pr,mr)=>{if(!pr)return pr||"";if(pr.toLowerCase().startsWith(mr.toLowerCase())){const gr=pr.slice(mr.length);return gr?gr.charAt(0).toLowerCase()+gr.slice(1):""}return pr})(ct.type,"ecan")){case"bar":return function(pr,mr,gr,yr){const Cr=pr.yAxisLabelFormatter,br=pr.xAxisLabelFormatter,Ar=$e(mr.dataset),wr=$e(mr.dimensions),_r=mt(()=>{const{gradientShow:Er,gradientColors:xr,gradientOffset:Sr,barBorderRadius:kr}=pr,Pr=Fe(Ar),Ir=Pr.length,Br=[];for(let Or=0;Or<Ir;Or++){const Nr=Object.assign(Object.assign({},Pr[Or]),{type:"bar",barWidth:pr.barWidth.value+pr.barWidth.suffix,showBackground:pr.showBarBackground});if(pr.isStack&&(Nr.stack="stack"),Nr.label={show:pr.labelShow,fontSize:pr.labelFontSize,position:pr.labelPosition,color:pr.labelColor,width:pr.labelWidth,overflow:pr.labelOverflow,formatter:jr=>{let Vr="",$r=pr.labelFormatter;$r===""&&($r="{c}");const{seriesName:zr,name:Wr,value:qr,data:Mr}=jr||{};return Vr+=jn($r,{textData:Object.assign({name:Wr,value:qr,a:zr,b:Wr,c:qr||0},Mr)},{useNewline:!0,useSpace:!0}),Vr}},Nr.itemStyle={},Er){let jr=pr.colors[Or];if(!jr&&pr.colors.length){const Vr=(Or+1)%pr.colors.length-1;jr=Vr>0?pr.colors[Vr]:pr.colors[0]}jr||(jr="#5470C6"),Nr.itemStyle={color:{x:pr.isUseHorizontalAxis?1:0,y:0,x2:0,y2:pr.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:jr},{offset:Sr,color:xr[Or]},{offset:1,color:xr[Or]}]}}}if(kr&&(!pr.isStack||Or===Ir-1)){const jr=kr.split(",");if(jr!=null&&jr.length){const Vr=[];for(const $r of jr){const zr=parseFloat($r);isNaN(zr)||Vr.push(zr)}Nr.itemStyle.borderRadius=Vr}}pr.isShowMarkLine&&(Nr.markLine={data:[{type:pr.markLineType}]}),Br.push(Nr)}return Br}),Tr=mt(()=>Fe(wr).map(Er=>{let xr={};return xr=Er&&typeof Er=="object"?Object.assign(Object.assign({},Er),{textStyle:{fontSize:gr}}):{value:Er,textStyle:{fontSize:gr}},xr}));return{tooltip:{trigger:"axis",show:pr.tooltipShow,formatter:Er=>{var xr;const Sr=Er.length;let kr="",Pr=pr.tooltipFormatter;yr!=null&&yr.getCurrentData&&yr.getCurrentData((xr=Er[0])===null||xr===void 0?void 0:xr.data),Pr===""&&(Pr="{marker} {a} {c}");for(let Ir=0;Ir<Sr;Ir++){const{marker:Br,seriesName:Or,name:Nr,value:jr,data:Vr}=Er[Ir]||{};if(Ir===0){let $r=Nr;Nr==="undefined"&&($r=""),typeof Nr!="string"||Nr[0]!=="0"||isNaN(+Nr)||($r=(+Nr).toString()),kr+=`${er(br,$r)}${$r?"<br/>":""}`}kr+=jn(Pr,{textData:Object.assign({marker:Br,name:Nr,value:jr,a:Or,b:Nr,c:Vr.sourceValue||jr||0},Vr)},{useNewline:!0,useSpace:!0}),kr+="<br/>"}return kr},textStyle:{color:pr.tooltipTextStyleColor,fontSize:gr.value},position:pr.tooltipPosition||void 0},legend:{type:pr.legendScroll?"scroll":"plain",width:pr.legendWidth,height:pr.legendHeight,show:pr.legendShow,orient:pr.legendOrient,top:pr.legendTop,left:pr.legendLeft,textStyle:{rich:{text:{width:pr.legendTextWidth,color:pr.legendTextStyleColor}}},itemHeight:pr.legendItemHeight,itemWidth:pr.legendItemWidth,itemGap:pr.legendItemGap,data:Fe(Ar).map((Er,xr)=>({name:Er.name,itemStyle:{color:pr.colors[xr]},icon:pr.legendType})),formatter:Er=>kn(pr.legendFormatter,{name:Er})},xAxis:{type:pr.isUseHorizontalAxis?"value":"category",data:pr.isUseHorizontalAxis?null:Fe(Tr),inverse:pr.isUseHorizontalAxis?pr.xAxisInverse:pr.axisInverse,minInterval:pr.xAxisMinInterval,splitLine:{show:pr.xAxisSplitLineShow,lineStyle:{color:pr.xAxisSplitLineStyleColor,type:pr.xAxisSplitLineType},interval:pr.xAxisSplitLineInterval},splitArea:{show:pr.xAxisSplitAreaShow},axisLabel:{show:pr.xAxisLabelShow,color:pr.xAxisLabelColor,interval:pr.xAxisLabelInterval||0,rotate:pr.xAxisLabelRotate,width:pr.xAxisLabelWidth,overflow:pr.xAxisLabelOverflow,fontSize:pr.xAxisLabelFontSize,formatter:Er=>(typeof Er!="string"||Er[0]!=="0"||isNaN(+Er)||(Er=(+Er).toString()),er(br,Er))},axisLine:{show:pr.xAxisLineShow,lineStyle:{color:pr.xAxisLineStyleColor}},axisTick:{show:pr.xAxisTickShow},name:pr.xAxisName,nameTextStyle:{fontSize:pr.xAxisLabelFontSize,color:pr.xAxisLabelColor,align:"left"},max:pr.xAxisMaxValue||null},yAxis:{type:pr.isUseHorizontalAxis?"category":"value",data:pr.isUseHorizontalAxis?Fe(wr):null,inverse:pr.isUseHorizontalAxis?pr.axisInverse:pr.yAxisInverse,minInterval:pr.yAxisMinInterval,splitLine:{show:pr.yAxisSplitLineShow,lineStyle:{color:pr.yAxisSplitLineStyleColor,type:pr.yAxisSplitLineType}},splitArea:{show:pr.yAxisSplitAreaShow},axisTick:{show:pr.yAxisTickShow},axisLabel:{show:pr.yAxisLabelShow,fontSize:pr.yAxisLabelFontSize,color:pr.yAxisLabelColor,rotate:pr.yAxisLabelRotate,width:pr.yAxisLabelWidth,overflow:pr.yAxisLabelOverflow,formatter:Er=>er(Cr,Er)},axisLine:{show:pr.yAxisLineAlwaysDisplay,lineStyle:{color:pr.yAxisLineStyleColor}},name:pr.yAxisName,nameTextStyle:{fontSize:pr.yAxisLabelFontSize,color:pr.yAxisLabelColor,align:"right"},max:pr.yAxisMaxValue||null},series:Fe(_r)}}(ct,Dn,ur,vr);case"line":return function(pr,mr,gr,yr){const Cr=pr.yAxisLabelFormatter,br=pr.xAxisLabelFormatter,Ar=$e(mr.dataset),wr=$e(mr.dimensions),_r=mr.dataset,Tr=mt(()=>{const Er=[],xr=_r.length;for(let kr=0;kr<xr;kr++){const Pr={};pr.shadowColor&&(Pr.shadowColor=pr.shadowColor,Pr.shadowBlur=pr.shadowBlur,Pr.shadowOffsetY=pr.shadowOffsetY,Pr.shadowOffsetX=pr.shadowOffsetX);let Ir=pr.colors[kr];if(!Ir&&pr.colors.length){const Br=(kr+1)%pr.colors.length-1;Ir=Br>0?pr.colors[Br]:pr.colors[0]}Ir||(Ir="#5470C6"),Er.push(Object.assign(Object.assign(Object.assign({type:"line"},_r[kr]),{symbolSize:pr.symbolSize,smooth:pr.smooth,areaStyle:{color:pr.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:Ir},{offset:1,color:pr.areaGradientColor||"transparent"}],global:!1}:Ir,opacity:pr.areaStyleOpacity},lineStyle:Object.assign({width:pr.lineStyleWidth},Pr)}),(Sr=pr).isShowMarkLine?{markLine:{data:[{type:Sr.markLineType}]}}:{}))}var Sr;return Er});return{tooltip:{trigger:"axis",textStyle:{fontSize:gr.value,color:pr.tooltipTextStyleColor},show:pr.tooltipShow,formatter:Er=>{var xr;const Sr=Er.length;let kr="",Pr=pr.tooltipFormatter;yr!=null&&yr.getCurrentData&&yr.getCurrentData((xr=Er[0])===null||xr===void 0?void 0:xr.data),Pr===""&&(Pr="{marker} {a} {c}");for(let Ir=0;Ir<Sr;Ir++){const{marker:Br,seriesName:Or,name:Nr,value:jr,data:Vr}=Er[Ir]||{};if(Ir===0){let $r=Nr;typeof Nr!="string"||Nr[0]!=="0"||isNaN(+Nr)||($r=(+Nr).toString()),kr+=`${er(br,$r)}<br/>`}kr+=jn(Pr,{textData:Object.assign({marker:Br,name:Nr,value:jr,a:Or,b:Nr,c:jr||0},Vr)},{useNewline:!0,useSpace:!0}),kr+="<br/>"}return kr},position:pr.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:pr.isBoundaryGap,data:Fe(wr).map(Er=>{let xr={};return xr=Er&&typeof Er=="object"?Object.assign({},Er):{value:Er},xr}),minInterval:pr.xAxisMinInterval,splitLine:{show:pr.xAxisSplitLineShow,lineStyle:{color:pr.xAxisSplitLineStyleColor},interval:pr.xAxisSplitLineInterval},splitArea:{show:pr.xAxisSplitAreaShow},axisLabel:{show:pr.xAxisLabelShow,color:pr.xAxisLabelColor,interval:pr.xAxisLabelInterval||0,rotate:pr.xAxisLabelRotate,width:pr.xAxisLabelWidth,overflow:pr.xAxisLabelOverflow,fontSize:pr.xAxisLabelFontSize,formatter:Er=>(typeof Er!="string"||Er[0]!=="0"||isNaN(+Er)||(Er=(+Er).toString()),er(br,Er))},axisLine:{show:pr.xAxisLineShow,lineStyle:{color:pr.xAxisLineStyleColor}},axisTick:{show:pr.xAxisTickShow},name:pr.xAxisName,nameTextStyle:{fontSize:pr.xAxisLabelFontSize,color:pr.xAxisLabelColor,align:"left"},max:pr.xAxisMaxValue||null},yAxis:{type:"value",minInterval:pr.yAxisMinInterval,splitLine:{show:pr.yAxisSplitLineShow,lineStyle:{color:pr.yAxisSplitLineStyleColor,type:pr.yAxisSplitLineType}},splitArea:{show:pr.yAxisSplitAreaShow},axisLabel:{show:pr.yAxisLabelShow,fontSize:pr.yAxisLabelFontSize,color:pr.yAxisLabelColor,formatter:Er=>er(Cr,Er)},axisLine:{show:pr.yAxisLineAlwaysDisplay,lineStyle:{color:pr.yAxisLineStyleColor}},name:pr.yAxisName,nameTextStyle:{fontSize:pr.yAxisLabelFontSize,color:pr.yAxisLabelColor,align:"right"},max:pr.yAxisMaxValue||null},legend:{type:pr.legendScroll?"scroll":"plain",width:pr.legendWidth,height:pr.legendHeight,show:pr.legendShow,orient:pr.legendOrient,top:pr.legendTop,left:pr.legendLeft,textStyle:{lineHeight:parseFloat(pr.legendFontSize)+8,rich:{text:{width:pr.legendTextWidth,color:pr.legendTextStyleColor,fontSize:pr.legendFontSize}}},itemHeight:pr.legendItemHeight,itemWidth:pr.legendItemWidth,itemGap:pr.legendItemGap,data:Fe(Ar).map(Er=>({name:Er.name,icon:pr.legendType})),formatter:Er=>kn(pr.legendFormatter,{name:Er})},series:Fe(Tr)}}(ct,Dn,ur,vr);case"pie":return function(pr,mr,gr){var yr,Cr;const br=$e(mr.dataset);let{data:Ar=[]}=Fe(br)[0]||{};if(Array.isArray(pr.colors)){const wr=pr.isUseLabelColors,_r=pr.colors;Ar=Ar.map((Tr,Er)=>Object.assign({label:wr?{color:_r[Er]}:{}},Tr))}return{tooltip:{show:pr.tooltipShow,trigger:pr.tooltipTrigger,formatter:wr=>{const{marker:_r,seriesName:Tr,name:Er,value:xr,percent:Sr,data:kr}=wr||{};return jn(pr.tooltipFormatter,{textData:Object.assign({marker:_r,name:Er,value:xr,percent:Sr,a:Tr,b:Er,c:xr,d:Sr},kr)},{useNewline:!0,useSpace:!0})},textStyle:{color:pr.tooltipTextStyleColor},position:pr.tooltipPosition||void 0},legend:{type:pr.legendScroll?"scroll":"plain",width:pr.legendWidth,height:pr.legendHeight,show:pr.legendShow,orient:pr.legendOrient,top:pr.legendTop,left:pr.legendLeft,align:"left",textStyle:{lineHeight:gr+8,rich:{text:{width:pr.legendTextWidth,color:pr.legendTextStyleColor,fontSize:gr}}},itemHeight:pr.legendItemHeight,itemWidth:pr.legendItemWidth,itemGap:pr.legendItemGap,data:(Cr=(yr=Fe(br)[0])===null||yr===void 0?void 0:yr.data)===null||Cr===void 0?void 0:Cr.map(wr=>({name:wr.name,icon:pr.legendType})),formatter:wr=>{const{data:_r}=br.value[0]||{};let Tr,Er=0,xr="0%";if(_r)for(const Sr of _r)Sr.name===wr&&(Tr=+Sr.value),Er+=+Sr.value;return Er&&(xr=`${(Tr/Er*100).toFixed(2)}%`),kn(pr.legendFormatter,{name:wr,value:Tr,percent:xr})}},series:[{data:Ar,type:"pie",radius:[pr.innerRadius,pr.outerRadius],center:[pr.centerLeft,pr.centerTop],roseType:pr.roseType,avoidLabelOverlap:!0,minAngle:pr.minAngle,label:{show:pr.labelPosition!=="center"&&pr.labelShow,color:pr.labelColor,fontSize:pr.labelFontSize,position:pr.labelPosition,formatter:wr=>{let _r="",Tr=pr.labelFormatter;Tr===""&&(Tr=`{b}
|
|
63
|
+
`;let vr=ct;if(dr!=null&&dr.length){for(const pr of dr){const mr=jn(pr,{textData:Dn},{useNewline:!1,useSpace:!1});mr&&(vr=vr.replace(pr,mr))}return`${hr}{text|${vr}}`}return ct};function $n(ct){return Number(ct).toLocaleString("zh-CN",{minimumFractionDigits:2,maximumFractionDigits:2})}function En(ct){return Number(ct).toLocaleString()}const Fn=["table","bar","combograph","line","pie","radar","scatter","list","circulate"];let Vn=new Map,zn=[];const In=["keyValue","conditionKey","conditionLabel","conditionName","conditionValueType","customValue","id","keyName"],Rn=ct=>Vn.get(ct),Pn=(ct,Dn)=>{if(Dn)Tn(ct,"indexCode")&&(ct.hrpIndexCode=ct.indexCode,delete ct.indexCode),Tn(ct,"indexCodeNum")&&(ct.hrpIndexCodeNum=ct.indexCodeNum,delete ct.indexCodeNum),Tn(ct,"dataType")&&delete ct.dataType,ct.fieldValue||delete ct.fieldValue;else{const{calcWays:ur=[],dateCalcTypes:dr=[],activeKey:fr,componentId:hr=""}=ct;if(fr===5&&(ur!=null&&ur.length)&&(dr!=null&&dr.length)&&hr){const vr=ur[0].split("-");(vr==null?void 0:vr.length)>1&&vr[0]==="rangeValue"&&(ct.calcWays=((pr,mr={})=>{const{around:gr,unit:yr,id:Cr}=pr;let br="";const{pageMode:Ar="",componentList:wr=[]}=(mr==null?void 0:mr.graphicConfig)||{};let _r=null,Tr=null;if(Ar==="design"){const Er=wr==null?void 0:wr.find(Or=>Or.id===Cr);if(!Er)return[];const{interval:xr,intervalUnit:Sr,startTime:kr,endTime:Pr,operate:Ir,useCurrentTime:Br}=Er||{};if(Br&&(_r=wt().subtract(xr,Sr),Tr=wt()),kr&&(_r=wt(kr)),Pr&&(Tr=wt(Pr)),Ir){const{type:Or,value:Nr,mode:jr}=Ir;switch(Or){case"add":_r=_r&&_r.add(Nr,jr),Tr=Tr&&Tr.add(Nr,jr);break;case"minus":_r=_r&&_r.subtract(Nr,jr),Tr=Tr&&Tr.subtract(Nr,jr)}}}else{const Er=Rn(Cr)||{};Fe(Er.startTime)&&(_r=wt(Fe(Er.startTime))),Fe(Er.endTime)&&(Tr=wt(Fe(Er.endTime)))}return _r&&Tr&&(br=`${gr==="before"?"-":""}${Tr.diff(_r,yr.toLowerCase())+1}`),br?[br]:[]})({around:vr[1],unit:dr[0],id:hr})),delete ct.radioValue}if(Tn(ct,"dataType")){if(ct.fieldType==="DATE"&&(ct.label=ct.fieldName),ct.dataType==="component")if(ct.fieldValue==="PARENT"){let vr=ct.modelKey;vr&&ct.prop&&(vr+=`-${ct.prop}`),ct.fieldValue="${"+vr+"}"}else ct.fieldValue="${"+Gn(ct.componentId,ct.fieldValue)+"}";delete ct.dataType}Tn(ct,"activeKey")&&delete ct.activeKey,Tn(ct,"radioValue")&&delete ct.radioValue,Tn(ct,"indexCode")&&(ct.hrpIndexCode=ct.indexCode,delete ct.indexCode),Tn(ct,"indexCodeNum")&&(ct.hrpIndexCodeNum=ct.indexCodeNum,delete ct.indexCodeNum),ct.dataType!=="component"&&ct.useCurrentTime&&(ct.fieldValue=wt().format(ct.dateFormat)),Tn(ct,"modelKey")&&delete ct.modelKey,Tn(ct,"prop")&&delete ct.prop,delete ct.useCurrentTime}},Wn=(ct,Dn)=>{const ur=[];return ct!=null&&ct.length&&Ln(ct).forEach(dr=>{if(dr.join&&dr.conditions){const fr=!dr.conditions.some(hr=>hr.join&&hr.conditions);dr.conditions.forEach((hr,vr)=>{Pn(hr,Dn);const pr={};if(vr<dr.conditions.length-1&&(pr.join=dr.join),fr)ur.push(Object.assign(Object.assign({},pr),hr));else if(hr.join&&hr.conditions){const mr=Dn?"sqlConditions":"conditions";ur.push(Object.assign({[mr]:Wn([hr],Dn)},pr))}else ur.push(Object.assign(Object.assign({},pr),hr))})}else Pn(dr,Dn),ur.push(dr)}),ur},Hn=(ct={},Dn)=>{if(ct!=null&&ct.sortCpnts&&Dn){const Pr=Qn(ct);Pr&&(Dn.sort=Pr)}const{label:ur,name:dr,location:fr,show:hr,indexCode:vr,indexCodeNum:pr,calcType:mr="COLUMN",builtInFormula:gr,builtInValueSource:yr,builtInCalcWay:Cr,formula:br,conditions:Ar,aggregate:wr,distinct:_r,dimByCount:Tr,dataTo:Er,sort:xr}=ct;let Sr;if(Ar&&(Sr=Wn(Ar)),mr==="COMPONENT"){const Pr={};return Bn(Pr,yr),{label:ur.trim(),columnName:dr,show:hr,calcType:mr,componentAlias:Cr,componentValue:Pr.fieldValue||null}}const kr={label:ur.trim(),columnName:dr,location:fr,show:hr,calcType:Er==="1"?"VIEW":mr,hrpIndexCode:vr,hrpIndexCodeNum:pr,aggregate:wr,builtInFormula:gr,builtInValueSource:yr,formula:br,conditions:Sr};if(xr&&(kr.sort={columnName:dr,label:kr.label,order:xr,type:"NORMAL"}),gr!=="DATE_OFFSET")return dr==="the_count"&&(kr.calcType="AGGREGATE",kr.distinct=!!_r,kr.typeGuid=Tr),Object.assign(Object.assign({},kr),{builtInCalcWay:Cr});{const Pr=Cr.split("-");if((Pr==null?void 0:Pr.length)===3){let Ir=Pr[0];return Pr[2]==="before"&&Pr[0]!=="0"&&(Ir=`-${Pr[0]}`),Object.assign(Object.assign({},kr),{calcWays:[Ir],dateCalcTypes:[Pr[1]]})}}},Gn=(ct,Dn)=>{const ur=zn.find(fr=>fr.id===ct),{keyName:dr}=ur||{};if(dr){const fr=/-(startTime|endTime)/g,hr=Dn.match(fr);return hr!=null&&hr.length?`${dr}${hr[0]}`:dr}return Dn||""},Un=ct=>{if(!ct)return[];const Dn=Ln((ct==null?void 0:ct.controlList)||[]).filter(Tr=>Tr.conditionKey!=="parentCode"),{classificationList:ur=[],rowHeaderList:dr=[],dimensionList:fr=[],seriesList:hr=[],leftAxisList:vr=[],rightAxisList:pr=[],queryColumnList:mr=[],indexLibColumns:gr=[],indicators:yr=[],specialIndicators:Cr=[]}=ct;Kn(Dn);const br=[...ur,...dr,...fr,...hr,...vr,...pr,...mr,...gr,...yr,...Cr],Ar=[];for(const Tr of br){const Er=Mn((Tr==null?void 0:Tr.conditions)||[]);if(Er!=null&&Er.length){const xr=Er.filter(Sr=>(Sr==null?void 0:Sr.dataType)==="component").map(Sr=>{const kr={};return Sr!=null&&Sr.dateFormat&&(kr.format=Sr.dateFormat),Sr.fieldValue==="PARENT"&&(kr.id="PARENT",kr.keyName=Sr.modelKey,kr.modelKey=Sr.modelKey,kr.prop=Sr.prop),Object.assign({conditionKey:Sr.fieldName,conditionLabel:Sr.fieldName,conditionName:Sr.fieldName,conditionValueType:Sr.fieldType,id:Sr.componentId,keyName:Sr.fieldValue,rule:Sr.rule,notGlobal:!0,indexCode:Sr.indexCode,typeGuid:Sr.typeGuid,indexCodeNum:Sr.indexCodeNum},kr)});if(xr!=null&&xr.length)for(const Sr of xr)Ar.find(kr=>kr.keyName===Sr.keyName)||Ar.push(Sr)}}const wr=Ar.length,_r=Dn;for(let Tr=0;Tr<wr;Tr++){const Er=Ar[Tr];if((Er==null?void 0:Er.conditionKey)==="parentCode")continue;const{id:xr,keyName:Sr,prop:kr,format:Pr,modelKey:Ir,dataType:Br="component",customValue:Or}=Er,Nr=Gn(xr,Sr),jr=Yn(Er);Bn(jr,xr,{prop:kr,dateFormat:Pr,modelKey:Ir,keyName:Nr}),Br===""&&(jr.fieldValue=Or||""),_r.push(jr)}for(let Tr=_r.length-1;Tr>=0;Tr--){const Er=_r[Tr];Er.globalCondition||Mn(_r).find(xr=>xr.alias===Er.alias&&xr.globalCondition)&&_r.splice(Tr,1)}return _r};function Yn(ct){const{id:Dn,keyName:ur,conditionLabel:dr,conditionKey:fr,conditionValueType:hr,prop:vr,rule:pr="NONE",notGlobal:mr=!1,indexCode:gr,typeGuid:yr,indexCodeNum:Cr,dataType:br="component",isExtProperty:Ar}=ct,wr=Gn(Dn,ur);let _r=wr||Dn;_r&&vr&&(_r+=`-${vr}`);let Tr=pr;return Tr==="NONE"&&(Tr=["startTime","endTime"].includes(vr)?vr==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":wr!=null&&wr.includes("startTime")?vr==="GREATER_EQUAL":wr!=null&&wr.includes("endTime")?vr==="LESS_EQUAL":"EQUAL"),Dn==="PARENT"&&(_r=ct.modelKey,_r&&vr&&(_r+=`-${vr}`),Tr=pr),{rule:Tr,label:dr,fieldName:fr,fieldValue:"",valueType:hr,alias:_r,globalCondition:!mr,indexCode:gr,typeGuid:yr,indexCodeNum:Cr,dataType:br,isExtProperty:Ar}}function Kn(ct){if(ct!=null&&ct.length)for(const Dn of ct)if(Dn!=null&&Dn.conditions)Kn(Dn.conditions);else{const{id:ur,keyName:dr,prop:fr,modelKey:hr,format:vr,dataType:pr="component",customValue:mr}=Dn,gr=Gn(ur,dr),yr=Yn(Dn);Bn(yr,ur,{prop:fr,dateFormat:vr,modelKey:hr,keyName:gr}),pr===""&&(yr.fieldValue=mr||"");for(const Cr in yr)Dn[Cr]=yr[Cr];for(const Cr of In)delete Dn[Cr]}}function Bn(ct,Dn,ur){const{prop:dr="",dateFormat:fr="",modelKey:hr="",keyName:vr="",operateValue:pr,operateMode:mr,operateType:gr}=ur||{},yr=hr||vr;if(Dn==="PARENT"&&yr&&dr){const xr=window.config.record;let Sr=dr,kr=fr;const Pr=dr.match(/\{(.+?)\}/g);if(Pr!=null&&Pr.length){const Ir=Pr[0].slice(1,-1).trim();Sr=dr.replace(Pr[0],""),kr=Ir,ct.dateFormat=kr}if(xr&&xr[yr]){const Ir=Fe(xr[yr][Sr]);wt.isDayjs(Ir)?ct.fieldValue=Ir.format(kr||"YYYY-MM-DD"):ct.fieldValue=Ir}return}const Cr=Rn(Dn)||{},{value:br,format:Ar="YYYY-MM-DD",type:wr="",useCurrentTime:_r,RECORD:Tr}=Cr||{},Er=fr||Ar;if(Nn(wr,"date")){let xr;if(xr=_r?br?Fe(br):wt():Fe(br),typeof xr=="string"&&(xr=wt(xr)),pr&&mr&&gr)switch(gr){case"add":xr=xr.add(pr,mr);break;case"minus":xr=xr.subtract(pr,mr)}ct.fieldValue=xr==null?void 0:xr.format(Er),ct.dateFormat=Er}else if(Nn(wr,"rangepicker")){let xr=dr;if(!dr){const kr=vr&&vr.split("-");kr!=null&&kr.length&&(xr=kr[kr.length-1])}if(!xr)return;let Sr=null;if(Fe(Cr[xr])&&(Sr=wt(Fe(Cr[xr]))),pr&&mr&&gr){if(pr==="rangeValue"){if(Cr.startTime&&Cr.endTime){const kr=Fe(Cr.endTime).diff(Fe(Cr.startTime),mr)+1;switch(gr){case"add":Sr=Sr&&Sr.add(kr,mr);break;case"minus":Sr=Sr&&Sr.subtract(kr,mr)}}}else if(!isNaN(+pr))switch(gr){case"add":Sr=Sr&&Sr.add(pr,mr);break;case"minus":Sr=Sr&&Sr.subtract(pr,mr)}}if(Sr&&(ct.fieldValue=Sr==null?void 0:Sr.format(Er)),xr==="rangeValue"&&Cr.startTime&&Cr.endTime){const kr=function(Pr){const Ir=Pr.split("-");let Br="";if(Ir!=null&&Ir.length)switch(Ir[Ir.length-1]){case"YYYY":Br="year";break;case"MM":Br="month";break;case"DD":Br="day"}return Br}(Er);kr&&(ct.fieldValue=Fe(Cr.endTime).diff(Fe(Cr.startTime),kr)+1)}ct.dateFormat=Er}else Nn(wr,Fn)?ct.fieldValue=hr&&Tr?Tr[hr]:!hr&&Tr?Tr.value:Fe(br):Nn(wr,"select")&&Array.isArray(Fe(br))?ct.fieldValue=Fe(br).join(","):ct.fieldValue=Fe(br)}const qn=ct=>{if(ct){const Dn=Array.isArray(ct)?Ln(ct):[Ln(ct)];let ur="",dr=[];const fr=[],hr=[],vr=[];for(const pr of Dn){let mr=pr.label,gr=pr.columnName;if(pr.defaultCode&&(mr=pr.columnName,delete pr.defaultCode),gr==="component-value"&&pr.componentId){const yr=Rn(pr.componentId)||{},{value:Cr}=yr;Fe(Cr)&&(mr=gr=Fe(Cr))}ur=pr.type,ur==="CUSTOM"&&(dr=pr.customOrderColumns),fr.push(mr),hr.push(gr),vr.push(pr.order)}return ur!=="CUSTOM"&&(fr==null?void 0:fr.length)>1&&(ur="COMBINATION"),ur==="CUSTOM"?{label:fr.join(","),columnName:hr.join(","),type:ur,customOrderColumns:dr}:{label:fr.join(","),columnName:hr.join(","),order:vr.join(","),type:ur}}return ct},Qn=ct=>{const{sortCpnts:Dn=[]}=ct;let ur,dr="";for(const fr of Dn){const hr=Rn(fr)||{},{type:vr,RECORD:pr}=hr;if(Nn(vr,"image")&&Nn(pr==null?void 0:pr.value,["asc","desc"])){dr=pr.value.toUpperCase();break}}return dr&&(ur={label:ct.label,columnName:ct.name,order:dr,type:"NORMAL"}),ur},Zn=(ct,Dn={})=>{var ur,dr,fr,hr,vr,pr,mr,gr;const{graphicConfig:yr,type:Cr,globalModel:br,isGroupTable:Ar=!1,allComponentList:wr}=ct;br&&(Vn=br),wr!=null&&wr.length&&(zn=wr);const _r=Nn(Cr,"pivottable");let Tr,{source:Er,dataViewId:xr,plugin:Sr="1",layer:kr,chartType:Pr,classificationList:Ir=[],rowHeaderList:Br=[],dimensionList:Or=[],seriesList:Nr=[],leftAxisList:jr=[],rightAxisList:Vr=[],queryColumnList:$r=[],indexLibColumns:zr=[],indicators:Wr=[],specialIndicators:qr=[],controlList:Mr=[],formFields:Lr={},variableList:Fr=[],variableConditions:Dr=[],dataSourceId:Gr="",idxLibMode:Rr,preview:Qr=!1,edvDataSetId:Kr,compositeIndicator:Hr}=yr||{},Ur=[];if((yr==null?void 0:yr.pageMode)==="design"?(Ur=((ur=yr.sqlConditions)!==null&&ur!==void 0?ur:[]).map(ri=>{const yi={};if(Tn(ri,"globalCondition")||ri.join||(yi.globalCondition=!0),!ri.join){const di=ri.rule||"EQUAL";yi.rule=di==="NONE"?"EQUAL":di}return Object.assign(Object.assign({},ri),yi)}),Dr!=null&&Dr.length&&(Ur=Ur.concat(Dr))):(Ur=Un(yr),Fr!=null&&Fr.length&&(Ur=Ur.concat(function(ri){const yi=[];if(ri!=null&&ri.length){for(const di of ri)if(di.variableName){const Ei=Gn(di.id,di.keyName),Oi={variateName:di.variableName,globalCondition:di.globalCondition||!1,valueType:di.variableType,alias:Ei||""};Bn(Oi,di.id,{dateFormat:di.format,prop:di.dateTypeValue,keyName:Ei,operateType:di.operateType,operateMode:di.operateMode,operateValue:di.operateValue}),di.dataType===""&&(Oi.fieldValue=di.variableValue),di.format&&(Oi.dateFormat=di.format),di.label&&(Oi.label=di.label),yi.push(Oi)}}return yi}(Fr)))),Ur==null?void 0:Ur.length){const ri=Ur.filter(di=>di.globalCondition),yi=Ur.filter(di=>!di.globalCondition);(ri==null?void 0:ri.length)>1&&(Ur=[{join:"&&",conditions:ri},...yi])}Ur!=null&&Ur.length&&(Ur=Wn(Ur,"1")),kr==null&&(kr=Nn(Cr,["table","card"])||Nn(Cr,["list","circulate"])&&(Ir==null?void 0:Ir.length)>1?"1":Nn(Cr,["select","checkbox","radio","treeSelect"])?"3":Nn(Cr,["indexPanel"])?"4":"2"),Nn(Cr,["indexPanel"])&&(Sr="3");const Jr=[];let Yr,si="";if(Array.isArray(Ir)&&Ir.length>0&&(!["ecanList","ecanCirculate"].includes(Cr)||(Ir==null?void 0:Ir.length)===1)){const ri=Ir.length;for(let yi=0;yi<ri;yi++){const di=Ir[yi]||{},{label:Ei="",name:Oi="",show:Li=!1,sort:Ri,customGroup:hi,conditions:Ci,dateFormat:Di,typeGuid:$i="",truncations:Fi=[],isExtProperty:qi}=di;if(Li||ri===1){si=$i,Tr={label:Ei.trim(),columnName:Oi,show:Li,sort:Qn(di)||qn(Ri)||Ri,customGroup:hi,conditions:Wn(Ci),typeGuid:$i},Di&&(Tr.dateFormat=Di),Oi!=="the_date"||Tr.dateFormat||(Tr.dateFormat="YYYY-MM-DD"),qi&&(Tr.isExtProperty=qi);const Qi={};if(Array.isArray(Fi)&&Fi.length>0){const la=Fi.length;for(let da=0;da<la;da++){const va=Fi[da]||{},{rule:ya="",num:ba=0,name:Sa=""}=va;ya&&ba&&(Qi.num=ba,Qi.rule=ya,Sa&&(Qi.otherGroupName=Sa))}}if(!((dr=Object.keys(Qi))===null||dr===void 0)&&dr.length&&(Tr.truncation=Qi),!Nn(Cr,["scatter","valueline"]))break;Jr.push(Tr)}}}if(Array.isArray(Nr)&&Nr.length>0){const ri=Nr.length;for(let yi=0;yi<ri;yi++){const di=Nr[yi]||{},{label:Ei="",name:Oi="",show:Li=!1,sort:Ri,customGroup:hi,conditions:Ci,typeGuid:Di,dateFormat:$i=""}=di;if(Li||ri===1){Yr={label:Ei.trim(),columnName:Oi,show:Li,sort:qn(Ri),customGroup:hi,conditions:Wn(Ci),typeGuid:Di},$i?Yr.dateFormat=$i:Oi==="the_date"&&(Yr.dateFormat="YYYY-MM-DD");break}}}const fi=[];jr==null||jr.forEach(ri=>{ri.location="LEFT",fi.push(Hn(ri,Tr))}),Vr==null||Vr.forEach(ri=>{ri.location="RIGHT",fi.push(Hn(ri,Tr))});let _i=Wr;Dn!=null&&Dn.pivotTableCal&&(_i=((fr=Dn.pivotTableCal)===null||fr===void 0?void 0:fr.indicators)||[]),_i==null||_i.forEach(ri=>{ri.location="LEFT",fi.push(Hn(ri,Tr))});const bi=[];qr==null||qr.forEach(ri=>{ri.location="LEFT",bi.push(Hn(ri,Tr))});const pi=[];["ecanList","ecanCirculate"].includes(Cr)&&(Ir==null?void 0:Ir.length)>1&&($r=Ir),Dn!=null&&Dn.pivotTableCal&&($r=((hr=Dn.pivotTableCal)===null||hr===void 0?void 0:hr.dimensions)||[]),$r==null||$r.forEach(ri=>{const{label:yi,name:di,location:Ei,show:Oi,indexCode:Li,sort:Ri,typeGuid:hi,indexCodeNum:Ci,dateFormat:Di,conditions:$i,isExtProperty:Fi,customGroup:qi}=ri;let Qi=qn(Ri);if(Dn.sort){const{field:da,order:va}=Dn.sort;let ya=fi.find(ba=>ba.label===da);ya||yi!==da||(ya=ri),ya&&(Qi={columnName:ya.columnName,label:Dn.sort.field,order:va.toUpperCase(),type:"NORMAL"})}const la={label:yi,columnName:di,location:Ei,show:Oi,sort:Qi,calcType:"COLUMN",hrpIndexCode:Li,hrpIndexCodeNum:Ci,conditions:Wn($i),typeGuid:hi,customGroup:qi};Di&&(la.dateFormat=Di),di!=="the_date"||la.dateFormat||(la.dateFormat="YYYY-MM-DD"),Fi&&(la.isExtProperty=Fi),pi.push(la)});const mi=[];["ecanTable"].includes(Cr)&&yr.isIndexSet&&zr.forEach(ri=>{const yi={label:ri.label,calcType:ri.calcType,show:ri.show};ri.formula&&(yi.formula=ri.formula),mi.push(yi)});let xi=[],ni=[];if(Array.isArray(Br)&&Br.length>0?ni=Br:Array.isArray(Or)&&Or.length>0&&(ni=Or),ni==null?void 0:ni.length){const ri=ni.length;for(let yi=0;yi<ri;yi++){const di=ni[yi]||{},{label:Ei="",name:Oi="",show:Li=!1,sort:Ri,customGroup:hi,conditions:Ci,truncations:Di,typeGuid:$i="",dateFormat:Fi,isExtProperty:qi}=di;let Qi=qn(Ri);if(Dn.sort){const{field:va,order:ya}=Dn.sort;let ba=fi.find(Sa=>Sa.label===va);ba||di.label!==va||(ba=di),ba&&(Qi={columnName:ba.columnName,label:Dn.sort.field,order:ya.toUpperCase(),type:"NORMAL"})}const la={label:Ei.trim(),columnName:Oi,show:Li,sort:Qi,customGroup:hi,conditions:Wn(Ci),typeGuid:$i};Fi&&(la.dateFormat=Fi),Oi!=="the_date"||la.dateFormat||(la.dateFormat="YYYY-MM-DD"),qi&&(la.isExtProperty=qi);const da={};if(Array.isArray(Di)&&Di.length>0){const va=Di.length;for(let ya=0;ya<va;ya++){const ba=Di[ya]||{},{rule:Sa="",num:La=0,name:qa=""}=ba;Sa&&La&&(da.num=La,da.rule=Sa,qa&&(da.otherGroupName=qa))}}!((vr=Object.keys(da))===null||vr===void 0)&&vr.length&&(la.truncation=da),xi.push(la)}}let ai,Xr=[];const vi=[];if(Dn!=null&&Dn.pivotTableCal){let ri=[];const{calc:yi=[],filter:di=[],truncations:Ei=[],sorts:Oi=[],aggregateMethod:Li=[],rowDimensionKeys:Ri=[],colDimensionKeys:hi=[]}=Dn.pivotTableCal;if(fi.push(...yi),di==null?void 0:di.length){const Ci=function Di($i){const Fi=[];for(const qi of $i)qi.conditions?Fi.push(...Di(qi.conditions)):qi.conditionKey==="the_date"&&Fi.push(qi);return Fi}(Mr);for(const Di of di){const{type:$i}=Di,Fi=e(Di,["type"]);$i==="indicators"?ri=fi:$i==="dimension"&&(ri=pi);const qi=ri.find(Qi=>Qi.columnName===Di.fieldName&&Qi.label===Di.label);if(qi){if($i==="indicators")qi.filter={rule:Fi.rule,fieldValue:Fi.fieldValue};else if($i==="dimension"){let Qi=!0;Fi.fieldName==="the_date"&&(Ci==null?void 0:Ci.length)===2&&(Qi=!1,vi.push(Fi)),Qi&&(qi.conditions||(qi.conditions=[]),qi.conditions.push(Fi))}}}}if(Ei!=null&&Ei.length)for(const Ci of Ei){const Di=pi.find($i=>$i.label===Ci.key);Di&&(Di.truncation={num:Ci.num,rule:Ci.rule})}if(Oi!=null&&Oi.length)for(const Ci of Oi){const{fieldType:Di,columnData:$i}=Ci,Fi=e(Ci,["fieldType","columnData"]);Di==="indicators"?(ri=fi,ai=$i):Di==="dimension"&&(ri=pi);const qi=ri.find(Qi=>Qi.label===Fi.label);qi&&(qi.sort=Object.assign(Object.assign({},Fi),{columnName:qi.columnName}))}if(!((pr=Object.keys(Li))===null||pr===void 0)&&pr.length)for(const Ci in Li){const Di=pi.find($i=>$i.label===Ci);Di&&(!((mr=Li[Ci])===null||mr===void 0)&&mr.length)&&(Di.aggregateMethod=Li[Ci])}xi=[],Xr=[];for(const Ci of pi)Ri.includes(Ci.columnName)?xi.push(Ci):hi.includes(Ci.columnName)&&Xr.push(Ci)}if(Nn(Cr,["text","proportion","counter","gauge"])?Pr="zb":Nn(Cr,["valueline"])?Pr="valueline":Nn(Cr,["indexPanel"])?Pr="indexPanel":Nn(Cr,["boxplot"])?Pr="boxplot":Nn(Cr,["budget"])&&(Pr="budget"),Ar||Cr==="card"){if(xi.length===0||fi.length===0)return;Pr="grouptable"}else if(kr==="1"&&!pi.length&&!mi.length||["2","4"].includes(kr)&&fi.length===0||!(kr!=="3"||(si||Er==="EDV_DATA_SET")&&Lr.labelField&&Lr.valueField)||kr==="3"&&Cr==="ecanDataSelect"&&fi.length===0)return;let Si;if(Or!=null&&Or.length&&(kr="1",Pr="grouptable"),_r||Nn(Cr,["scatter","valueline"])||!(!((gr=Object.keys(Lr))===null||gr===void 0)&&gr.length)){let ri={};ri=Nn(Cr,["scatter","valueline"])?{classifications:Jr}:{classification:Tr},mi!=null&&mi.length&&(ri.indexLibColumns=mi,ri.isIndexSet=!0),bi!=null&&bi.length&&(ri.specialIndicatorList=bi),Nn(Cr,"table")&&yr.isIndexSet&&(ri.compositeIndicator=Hr),yr.isIndexQuery&&(ri.isIndexQuery=yr.isIndexQuery);const yi=Ur.map(di=>{const{fieldValue:Ei}=di,Oi={};return Ei&&Array.isArray(Ei)&&(Oi.fieldValue=JSON.stringify(Ei)),Object.assign(Object.assign({},di),Oi)});vi!=null&&vi.length&&function di(Ei){for(const Oi of Ei)if(Oi.sqlConditions)di(Oi.sqlConditions);else if(Oi.fieldName==="the_date"){const Li=vi.find(Ri=>Ri.prop===Oi.prop);Li&&(Oi.fieldValue=Li.fieldValue)}}(yi),Si=Object.assign({url:"/diagram",source:Er,dataViewId:xr,plugin:_r?"5":Sr,layer:kr,chartType:_r?"pivot-table":Pr,series:Yr,indicatorList:fi,queryColumns:Ar?[]:pi,pageFlag:!0,edvDataSetId:Kr||"",sqlConditions:yi,idxLibMode:Rr,dataSourceId:Gr,preview:Qr,rowHeaders:xi,keyName:ct.keyName,columnData:ai,columnHeaders:Xr},ri)}else{const ri=Mn(Mr).find(Ei=>Ei.conditionKey==="parentCode"),yi={};if(ri){const Ei=Rn(ri.id)||{};Ei!=null&&Ei.itemCodes?yi.parentItemCodes=Ei.itemCodes:yi.parentItemCodes=null}Cr==="ecanDataSelect"&&(yi.indicatorList=fi.filter(Ei=>Ei.show)),Er==="EDV_DATA_SET"&&(yi.edvDataSetId=Kr),Tr!=null&&Tr.sort&&(yi.sort=Tr.sort);let di="normalSelect";Cr==="ecanDataSelect"?di="normalSelectData":Cr==="ecanTreeSelect"&&(di="treeSelect"),Si=Object.assign({url:"/diagram/formData",source:Er,dataViewId:xr,plugin:"4",layer:kr,chartType:Cr==="ecanTreeSelect"?"treeSelect":"normalSelect",rangeIndexTypeGuid:si,type:di,labelField:Lr.labelField,valueField:Lr.valueField,parentField:Lr.parentField,sqlConditions:Ur,idxLibMode:"WITH_DATE_DIM_TABLE",dataSourceId:Gr,keyName:ct.keyName},yi)}return Si},Xn=(ct=[],Dn,ur=!1)=>{let{name:dr="name",types:fr=[]}=Dn||{};dr=(dr==null?void 0:dr.trim())||dr;const hr=new Set,vr=new Map,pr=ct.length,mr=fr.length;if(pr!==1||ur)for(let Cr=0;Cr<pr;Cr++){const br=ct[Cr],Ar=br[dr];hr.add(Ar);for(let wr=0;wr<mr;wr++){const _r=fr[wr],{label:Tr,value:Er}=_r,xr=Object.assign(Object.assign({},br),{value:br[Er]});if(vr.has(Tr)){const Sr=vr.get(Tr);Sr.push(xr),vr.set(Tr,Sr)}else vr.set(Tr,[xr])}}else{const Cr=[];for(let Ar=0;Ar<mr;Ar++){const wr=fr[Ar],{label:_r,value:Tr}=wr,Er=Object.assign(Object.assign({},ct[0]),{value:ct[0][Tr]});hr.add(_r),Cr.push(Er)}const br=ct[0][dr]||"";vr.set(br,Cr)}const gr=Array.from(hr),yr=[];for(const[Cr,br]of vr)yr.push({name:Cr,data:br});return{dimensions:gr,dataset:yr}},Jn=(ct,Dn)=>{let{name:ur="name",value:dr="value",type:fr="type"}=Dn||{};ur=ur==null?void 0:ur.trim(),dr=dr==null?void 0:dr.trim(),fr=fr==null?void 0:fr.trim();const hr=new Map,vr=ct.length;for(let gr=0;gr<vr;gr++){const yr=ct[gr],Cr=yr[ur]||"",br=yr[dr]||"",Ar=yr[fr]||"";if(hr.has(Ar)){const wr=hr.get(Ar);wr.push(Object.assign({name:Cr,value:br},yr)),hr.set(Ar,wr)}else hr.set(Ar,[Object.assign({name:Cr,value:br},yr)])}const pr=[],mr=[];for(const[gr,yr]of hr)if(mr.push({name:gr,data:yr}),yr==null?void 0:yr.length)if(pr.length)for(const Cr of yr)pr.includes(Cr.name)||pr.push(Cr.name);else pr.push(...yr.map(Cr=>Cr.name));return{dimensions:pr,dataset:mr}},er=(ct,Dn)=>{var ur;if(ct==null)return Dn;const dr=ct.match(/\{.*\}/g);if(dr==null||dr.length===0)return Dn;const fr=dr.length;for(let hr=0;hr<fr;hr++){const vr=dr[hr];if(vr==null||vr==="")break;let pr=(ur=vr.slice(1,-1))===null||ur===void 0?void 0:ur.trim();pr=pr==null?void 0:pr.replace(/value/g,Dn);try{let mr=pr;(/\(.*\)/g.test(pr)||/[+/\\*]/g.test(pr))&&(mr=Cn(pr)),ct=ct.replace(vr,mr)}catch{ct=ct.replace(vr,pr)}}return ct},tr=(ct,Dn,ur)=>{let dr=ct.dataFieldNames;if(ct.dataType==="indicator"&&(ur==null?void 0:ur.pageMode)!=="design"&&Dn){const{formFields:fr={}}=Dn;fr!=null&&fr.labelField&&(fr!=null&&fr.valueField)&&(dr={name:fr.labelField,value:fr.valueField})}return dr},or=ct=>{const Dn=ct==null?void 0:ct.chart.getModel().getComponent("yAxis").axis.scale._extent,ur=ct==null?void 0:ct.chart.getModel().getComponent("xAxis").axis.scale._extent;let dr={};return ur&&Dn&&(dr={xAxisMinValue:ur[0],xAxisMaxValue:ur[1],yAxisMinValue:Dn[0],yAxisMaxValue:Dn[1]}),dr};function nr(ct,Dn,ur){switch(Dn){case"startX":ct[0].coord[0]=+ur;break;case"startY":ct[0].coord[1]=+ur;break;case"endX":ct[1].coord[0]=+ur;break;case"endY":ct[1].coord[1]=+ur}}const rr$1=(ct,Dn,ur)=>{let dr=0,fr=[];switch(Dn.x?fr=Fe(ur).map(vr=>vr.value[0]):Dn.y&&(fr=Fe(ur).map(vr=>vr.value[1])),ct){case"max":dr=Math.max(...fr);break;case"min":dr=Math.min(...fr);break;case"average":hr=fr,dr=Array.isArray(hr)&&hr.length!==0?hr.reduce((vr,pr)=>vr+pr,0)/hr.length:0;break;case"median":dr=function(vr){if(!Array.isArray(vr)||vr.length===0)return 0;const pr=[...vr].sort((yr,Cr)=>yr-Cr),mr=pr.length,gr=Math.floor(mr/2);return mr%2!=0?pr[gr]:(pr[gr-1]+pr[gr])/2}(fr)}var hr;return dr},ir={最大值:"{max}",最小值:"{min}",平均值:"{average}",中位数:"{median}"};function ar(ct,Dn,ur,dr,fr,hr,vr){const pr=tr(ct,dr,vr),mr=ct.xAxisLabelFormatter,gr=ct.yAxisLabelFormatter,yr=fr?((Br,Or,Nr,jr)=>{const{xAxisMarkLineValue:Vr=[],yAxisMarkLineValue:$r=[]}=Br,{xAxisMinValue:zr,xAxisMaxValue:Wr,yAxisMinValue:qr,yAxisMaxValue:Mr}=Or,Lr=Vr.map(Gr=>Object.assign(Object.assign({},Gr),{x:!0})),Fr=$r.map(Gr=>Object.assign(Object.assign({},Gr),{y:!0})),Dr=Lr.concat(Fr);if(Dr!=null&&Dr.length){const Gr=[];for(const Rr of Dr){const Qr={label:{show:!0,formatter:"",rich:{ft:{}}}},Kr={};let Hr=Rr.value;const Ur=Hr==null?void 0:Hr.match(/\{(.+?)\}/g);let Jr="";if(Qr.label.formatter=Rr.label?`{ft|${Rr.label}}`:"",(Rr.offsetHorizontal||Rr.offsetVertical)&&(Rr.x?Qr.label.rich.ft.padding=[0,Rr.offsetHorizontal||0,Rr.offsetVertical||0,0]:Rr.y&&(Qr.label.rich.ft.padding=[Rr.offsetVertical||0,0,0,Rr.offsetHorizontal||0])),Rr.labelColor&&(Qr.label.rich.ft.color=Rr.labelColor),Rr.lineColor&&(Kr.color=Rr.lineColor),Rr.lineType&&(Kr.type=Rr.lineType),Rr.x?Jr="xAxis":Rr.y&&(Jr="yAxis"),Ur==null?void 0:Ur.length){for(const Yr of Ur)Hr=Hr.replace(Yr,Yr.slice(1,-1));if(Hr){let Yr;Yr=jr&&jr.value[Hr]?Fe(jr)[Hr]:Cn(Hr,{axisMax:Rr.x?Fe(Wr):Rr.y?Fe(Mr):0,axisMin:Rr.x?Fe(zr):Rr.y?Fe(qr):0,max:rr$1("max",Rr,Nr),min:rr$1("min",Rr,Nr),average:rr$1("average",Rr,Nr),median:rr$1("median",Rr,Nr)}),isNaN(+Yr)||Gr.push(Object.assign({[Jr]:+Yr,lineStyle:Kr},Qr))}}else isNaN(+Rr.value)||Gr.push(Object.assign({[Jr]:Rr.value,lineStyle:Kr},Qr))}return{symbol:["none","none"],data:Gr}}return{data:[]}})(ct,fr,Dn,hr):void 0,Cr=fr?((Br,Or,Nr)=>{const{axisMarkArea:jr=[]}=Br,{xAxisMinValue:Vr,xAxisMaxValue:$r,yAxisMinValue:zr,yAxisMaxValue:Wr}=Or;if(jr!=null&&jr.length){const qr=[];for(const Mr of jr){const Lr=[{name:Mr.label||"",coord:[],itemStyle:{color:Mr.color||"transparent"},label:{show:!!Mr.label,position:"inside",fontSize:16,color:"#000"}},{coord:[]}];for(const Fr in Mr)if(["startX","startY","endX","endY"].includes(Fr)){let Dr=ir[Mr[Fr]]||Mr[Fr];const Gr=Dr==null?void 0:Dr.match(/\{(.+?)\}/g);if(Gr!=null&&Gr.length){for(const Rr of Gr)Dr=Dr.replace(Rr,Rr.slice(1,-1));if(Dr){const Rr={x:Fr.includes("X"),y:Fr.includes("Y")},Qr=Cn(Dr,{xMax:Fe($r),xMin:Fe(Vr),yMax:Fe(Wr),yMin:Fe(zr),max:rr$1("max",Rr,Nr),min:rr$1("min",Rr,Nr),average:rr$1("average",Rr,Nr),median:rr$1("median",Rr,Nr)});isNaN(+Qr)||nr(Lr,Fr,Qr)}}else isNaN(+Mr[Fr])||nr(Lr,Fr,Mr[Fr])}Lr.every(Fr=>{var Dr;return(Dr=Fr.coord)===null||Dr===void 0?void 0:Dr.length})&&qr.push(Lr)}return{data:qr}}return{data:[]}})(ct,fr,Dn):void 0,{visualColorKey:br,visualColorCondition:Ar,visualSizeKey:wr,visualSizeCondition:_r}=ct;let Tr;br&&(Tr=function(Br,Or,Nr){const jr=$r=>{if($r.name)return $r.name;const zr=!!($r!=null&&$r.value1),Wr=!!($r!=null&&$r.value2);return zr&&!Wr?`${$r.rule1}${$r.value1}`:!zr&&Wr?`${$r.rule2}${$r.value2}`:`${$r.value1}-${$r.value2}`},Vr={};return Nr.forEach($r=>{($r.value1||$r.value2)&&(Vr[jr($r)]={data:[],color:$r.color})}),Vr.其他={data:[]},Br.forEach($r=>{const zr=Number($r.record[Or]);let Wr=!1;for(const qr of Nr){if(!qr.value1&&!qr.value2)continue;const Mr=qr.value1?Number(qr.value1):-1/0,Lr=qr.value2?Number(qr.value2):1/0;let Fr=!0,Dr=!0;if(qr.rule1===">="?Fr=zr>=Mr:qr.rule1===">"?Fr=zr>Mr:qr.rule1==="<="?Fr=zr<=Mr:qr.rule1==="<"?Fr=zr<Mr:qr.rule1==="=="&&(Fr=zr===Mr),qr.value2!==""&&(qr.rule2===">="?Dr=zr>=Lr:qr.rule2===">"?Dr=zr>Lr:qr.rule2==="<="?Dr=zr<=Lr:qr.rule2==="<"?Dr=zr<Lr:qr.rule2==="=="&&(Dr=zr===Lr)),Fr&&Dr){Vr[jr(qr)].data.push($r),Wr=!0;break}}Wr||Vr.其他.data.push($r)}),Vr}(Dn,br,Ln(Ar).reverse()));const Er=Br=>{var Or;let Nr="",jr=ct.labelFormatter;jr===""&&(jr="{c}");const{seriesName:Vr,data:$r}=Br||{},zr=(Or=$r==null?void 0:$r.record)!==null&&Or!==void 0?Or:{},Wr=zr[pr.name],qr=zr[pr.value];return Nr+=jn(jr,{textData:Object.assign({name:Wr,value:qr,a:Vr,b:Wr,c:qr||0},zr)},{useNewline:!0,useSpace:!0}),Nr},xr=function(Br){const Or=[];for(const Nr of Br){let jr="";Nr.value1&&(jr+=`value ${Nr.rule1} ${Nr.value1}`),Nr.value2&&(jr+=`${Nr.value1?"&&":""} value ${Nr.rule2} ${Nr.value2}`),jr&&Or.push({rule:jr,size:Nr.size})}return Or.reverse()}(_r),Sr=(Br,Or)=>{if(wr){const{record:Nr={}}=Or.data||{},jr=Nr[wr],Vr=xr.find($r=>Cn($r.rule,{value:jr}));if(Vr)return Vr.size}return ct.symbolSize},kr={type:"scatter",data:Fe(Dn),symbolSize:Sr,itemStyle:{color:ct.symbolColor},label:{show:ct.labelShow,fontSize:ct.labelFontSize,position:ct.labelPosition,color:ct.labelColor,width:ct.labelWidth,overflow:ct.labelOverflow,formatter:Er},markLine:yr,markArea:Cr},Pr=[],Ir=[];if(Tr)for(const Br in Tr){const Or=Tr[Br],Nr=Ln(kr);Nr.symbolSize=Sr,Nr.label.formatter=Er,Nr.itemStyle.color=Or.color||ct.symbolColor,Nr.data=Or.data,Nr.name=Br,Ir.push(Nr),Pr.push(Br)}else Ir.push(kr);return{xAxis:{z:5,splitLine:{show:ct.xAxisSplitLineShow,lineStyle:{color:ct.xAxisSplitLineStyleColor},interval:ct.xAxisSplitLineInterval},splitArea:{show:ct.xAxisSplitAreaShow},axisLabel:{show:ct.xAxisLabelShow,fontSize:ct.xAxisLabelFontSize,color:ct.xAxisLabelColor,interval:ct.xAxisLabelInterval||0,rotate:ct.xAxisLabelRotate,width:ct.xAxisLabelWidth,overflow:ct.xAxisLabelOverflow,formatter:Br=>(typeof Br!="string"||Br[0]!=="0"||isNaN(+Br)||(Br=(+Br).toString()),er(mr,Br))},axisLine:{lineStyle:{color:ct.xAxisLineStyleColor},symbol:["none",ct.showXAxisLineArrow?"arrow":"none"],symbolSize:[8,12],onZero:!1},axisTick:{show:ct.xAxisTickShow},name:ct.xAxisName,nameLocation:ct.xAxisLineInverse?"start":"end",nameTextStyle:{fontSize:ct.xAxisLabelFontSize,color:ct.xAxisLabelColor,align:"left"},inverse:ct.xAxisLineInverse,max:ct.xAxisMax,min:ct.xAxisMin},yAxis:{z:5,splitLine:{show:ct.yAxisSplitLineShow,lineStyle:{color:ct.yAxisSplitLineStyleColor,type:ct.yAxisSplitLineType}},axisTick:{show:ct.yAxisTickShow},splitArea:{show:ct.yAxisSplitAreaShow},axisLabel:{show:ct.yAxisLabelShow,fontSize:ct.yAxisLabelFontSize,color:ct.yAxisLabelColor,formatter:Br=>er(gr,Br)},axisLine:{show:ct.yAxisLineAlwaysDisplay,lineStyle:{color:ct.yAxisLineStyleColor},symbol:["none",ct.showYAxisLineArrow?"arrow":"none"],symbolSize:[8,12],onZero:!1},name:ct.yAxisName,nameLocation:ct.yAxisLineInverse?"start":"end",nameTextStyle:{fontSize:ct.yAxisLabelFontSize,color:ct.yAxisLabelColor,align:"right"},inverse:ct.yAxisLineInverse,max:ct.yAxisMax,min:ct.yAxisMin},tooltip:{show:ct.tooltipShow,trigger:ct.tooltipTrigger,formatter(Br){var Or,Nr;const{marker:jr,seriesName:Vr,componentType:$r}=Br,zr=(Nr=(Or=Br==null?void 0:Br.data)===null||Or===void 0?void 0:Or.record)!==null&&Nr!==void 0?Nr:{},Wr=zr[pr.name],qr=zr[pr.value];return["markLine","markArea"].includes($r)?"":jn(ct.tooltipFormatter,{textData:Object.assign({marker:jr,seriesName:Vr,a:Vr,b:Wr,c:qr},zr)},{useNewline:!0,useSpace:!0})},axisPointer:{type:ct.crossShow||ct.crossShow===void 0?"cross":""},textStyle:{fontSize:Fe(ur)},position:ct.tooltipPosition||void 0},legend:{show:ct.legendShow,orient:ct.legendOrient,top:ct.legendTop,left:ct.legendLeft,textStyle:{color:ct.legendTextStyleColor,fontSize:ur},data:Pr},series:Ir}}function lr(ct){let Dn="";switch(ct){case 1:Dn="万";break;case 3:Dn="百万";break;case 4:Dn="千万"}return Dn}const sr=(ct,Dn,ur,dr,fr,hr,vr)=>{switch(((pr,mr)=>{if(!pr)return pr||"";if(pr.toLowerCase().startsWith(mr.toLowerCase())){const gr=pr.slice(mr.length);return gr?gr.charAt(0).toLowerCase()+gr.slice(1):""}return pr})(ct.type,"ecan")){case"bar":return function(pr,mr,gr,yr){const Cr=pr.yAxisLabelFormatter,br=pr.xAxisLabelFormatter,Ar=$e(mr.dataset),wr=$e(mr.dimensions),_r=mt(()=>{const{gradientShow:Er,gradientColors:xr,gradientOffset:Sr,barBorderRadius:kr}=pr,Pr=Fe(Ar),Ir=Pr.length,Br=[];for(let Or=0;Or<Ir;Or++){const Nr=Object.assign(Object.assign({},Pr[Or]),{type:"bar",barWidth:pr.barWidth.value+pr.barWidth.suffix,showBackground:pr.showBarBackground});if(pr.isStack&&(Nr.stack="stack"),Nr.label={show:pr.labelShow,fontSize:pr.labelFontSize,position:pr.labelPosition,color:pr.labelColor,width:pr.labelWidth,overflow:pr.labelOverflow,formatter:jr=>{let Vr="",$r=pr.labelFormatter;$r===""&&($r="{c}");const{seriesName:zr,name:Wr,value:qr,data:Mr}=jr||{};return Vr+=jn($r,{textData:Object.assign({name:Wr,value:qr,a:zr,b:Wr,c:qr||0},Mr)},{useNewline:!0,useSpace:!0}),Vr}},Nr.itemStyle={},Er){let jr=pr.colors[Or];if(!jr&&pr.colors.length){const Vr=(Or+1)%pr.colors.length-1;jr=Vr>0?pr.colors[Vr]:pr.colors[0]}jr||(jr="#5470C6"),Nr.itemStyle={color:{x:pr.isUseHorizontalAxis?1:0,y:0,x2:0,y2:pr.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:jr},{offset:Sr,color:xr[Or]},{offset:1,color:xr[Or]}]}}}if(kr&&(!pr.isStack||Or===Ir-1)){const jr=kr.split(",");if(jr!=null&&jr.length){const Vr=[];for(const $r of jr){const zr=parseFloat($r);isNaN(zr)||Vr.push(zr)}Nr.itemStyle.borderRadius=Vr}}pr.isShowMarkLine&&(Nr.markLine={data:[{type:pr.markLineType}]}),Br.push(Nr)}return Br}),Tr=mt(()=>Fe(wr).map(Er=>{let xr={};return xr=Er&&typeof Er=="object"?Object.assign(Object.assign({},Er),{textStyle:{fontSize:gr}}):{value:Er,textStyle:{fontSize:gr}},xr}));return{tooltip:{trigger:"axis",show:pr.tooltipShow,formatter:Er=>{var xr;const Sr=Er.length;let kr="",Pr=pr.tooltipFormatter;yr!=null&&yr.getCurrentData&&yr.getCurrentData((xr=Er[0])===null||xr===void 0?void 0:xr.data),Pr===""&&(Pr="{marker} {a} {c}");for(let Ir=0;Ir<Sr;Ir++){const{marker:Br,seriesName:Or,name:Nr,value:jr,data:Vr}=Er[Ir]||{};if(Ir===0){let $r=Nr;Nr==="undefined"&&($r=""),typeof Nr!="string"||Nr[0]!=="0"||isNaN(+Nr)||($r=(+Nr).toString()),kr+=`${er(br,$r)}${$r?"<br/>":""}`}kr+=jn(Pr,{textData:Object.assign({marker:Br,name:Nr,value:jr,a:Or,b:Nr,c:Vr.sourceValue||jr||0},Vr)},{useNewline:!0,useSpace:!0}),kr+="<br/>"}return kr},textStyle:{color:pr.tooltipTextStyleColor,fontSize:gr.value},position:pr.tooltipPosition||void 0},legend:{type:pr.legendScroll?"scroll":"plain",width:pr.legendWidth,height:pr.legendHeight,show:pr.legendShow,orient:pr.legendOrient,top:pr.legendTop,left:pr.legendLeft,textStyle:{rich:{text:{width:pr.legendTextWidth,color:pr.legendTextStyleColor}}},itemHeight:pr.legendItemHeight,itemWidth:pr.legendItemWidth,itemGap:pr.legendItemGap,data:Fe(Ar).map((Er,xr)=>({name:Er.name,itemStyle:{color:pr.colors[xr]},icon:pr.legendType})),formatter:Er=>kn(pr.legendFormatter,{name:Er})},xAxis:{type:pr.isUseHorizontalAxis?"value":"category",data:pr.isUseHorizontalAxis?null:Fe(Tr),inverse:pr.isUseHorizontalAxis?pr.xAxisInverse:pr.axisInverse,minInterval:pr.xAxisMinInterval,splitLine:{show:pr.xAxisSplitLineShow,lineStyle:{color:pr.xAxisSplitLineStyleColor,type:pr.xAxisSplitLineType},interval:pr.xAxisSplitLineInterval},splitArea:{show:pr.xAxisSplitAreaShow},axisLabel:{show:pr.xAxisLabelShow,color:pr.xAxisLabelColor,interval:pr.xAxisLabelInterval||0,rotate:pr.xAxisLabelRotate,width:pr.xAxisLabelWidth,overflow:pr.xAxisLabelOverflow,fontSize:pr.xAxisLabelFontSize,formatter:Er=>(typeof Er!="string"||Er[0]!=="0"||isNaN(+Er)||(Er=(+Er).toString()),er(br,Er))},axisLine:{show:pr.xAxisLineShow,lineStyle:{color:pr.xAxisLineStyleColor}},axisTick:{show:pr.xAxisTickShow},name:pr.xAxisName,nameTextStyle:{fontSize:pr.xAxisLabelFontSize,color:pr.xAxisLabelColor,align:"left"},max:pr.xAxisMaxValue||null},yAxis:{type:pr.isUseHorizontalAxis?"category":"value",data:pr.isUseHorizontalAxis?Fe(wr):null,inverse:pr.isUseHorizontalAxis?pr.axisInverse:pr.yAxisInverse,minInterval:pr.yAxisMinInterval,splitLine:{show:pr.yAxisSplitLineShow,lineStyle:{color:pr.yAxisSplitLineStyleColor,type:pr.yAxisSplitLineType}},splitArea:{show:pr.yAxisSplitAreaShow},axisTick:{show:pr.yAxisTickShow},axisLabel:{show:pr.yAxisLabelShow,fontSize:pr.yAxisLabelFontSize,color:pr.yAxisLabelColor,rotate:pr.yAxisLabelRotate,width:pr.yAxisLabelWidth,overflow:pr.yAxisLabelOverflow,formatter:Er=>er(Cr,Er)},axisLine:{show:pr.yAxisLineAlwaysDisplay,lineStyle:{color:pr.yAxisLineStyleColor}},name:pr.yAxisName,nameTextStyle:{fontSize:pr.yAxisLabelFontSize,color:pr.yAxisLabelColor,align:"right"},max:pr.yAxisMaxValue||null},series:Fe(_r)}}(ct,Dn,ur,vr);case"line":return function(pr,mr,gr,yr){const Cr=pr.yAxisLabelFormatter,br=pr.xAxisLabelFormatter,Ar=$e(mr.dataset),wr=$e(mr.dimensions),_r=mr.dataset,Tr=mt(()=>{const Er=[],xr=_r.length;for(let kr=0;kr<xr;kr++){const Pr={};pr.shadowColor&&(Pr.shadowColor=pr.shadowColor,Pr.shadowBlur=pr.shadowBlur,Pr.shadowOffsetY=pr.shadowOffsetY,Pr.shadowOffsetX=pr.shadowOffsetX);let Ir=pr.colors[kr];if(!Ir&&pr.colors.length){const Br=(kr+1)%pr.colors.length-1;Ir=Br>0?pr.colors[Br]:pr.colors[0]}Ir||(Ir="#5470C6"),Er.push(Object.assign(Object.assign(Object.assign({type:"line"},_r[kr]),{symbolSize:pr.symbolSize,smooth:pr.smooth,areaStyle:{color:pr.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:Ir},{offset:1,color:pr.areaGradientColor||"transparent"}],global:!1}:Ir,opacity:pr.areaStyleOpacity},lineStyle:Object.assign({width:pr.lineStyleWidth},Pr)}),(Sr=pr).isShowMarkLine?{markLine:{data:[{type:Sr.markLineType}]}}:{}))}var Sr;return Er});return{tooltip:{trigger:"axis",textStyle:{fontSize:gr.value,color:pr.tooltipTextStyleColor},show:pr.tooltipShow,formatter:Er=>{var xr;const Sr=Er.length;let kr="",Pr=pr.tooltipFormatter;yr!=null&&yr.getCurrentData&&yr.getCurrentData((xr=Er[0])===null||xr===void 0?void 0:xr.data),Pr===""&&(Pr="{marker} {a} {c}");for(let Ir=0;Ir<Sr;Ir++){const{marker:Br,seriesName:Or,name:Nr,value:jr,data:Vr}=Er[Ir]||{};if(Ir===0){let $r=Nr;typeof Nr!="string"||Nr[0]!=="0"||isNaN(+Nr)||($r=(+Nr).toString()),kr+=`${er(br,$r)}<br/>`}kr+=jn(Pr,{textData:Object.assign({marker:Br,name:Nr,value:jr,a:Or,b:Nr,c:jr||0},Vr)},{useNewline:!0,useSpace:!0}),kr+="<br/>"}return kr},position:pr.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:pr.isBoundaryGap,data:Fe(wr).map(Er=>{let xr={};return xr=Er&&typeof Er=="object"?Object.assign({},Er):{value:Er},xr}),minInterval:pr.xAxisMinInterval,splitLine:{show:pr.xAxisSplitLineShow,lineStyle:{color:pr.xAxisSplitLineStyleColor},interval:pr.xAxisSplitLineInterval},splitArea:{show:pr.xAxisSplitAreaShow},axisLabel:{show:pr.xAxisLabelShow,color:pr.xAxisLabelColor,interval:pr.xAxisLabelInterval||0,rotate:pr.xAxisLabelRotate,width:pr.xAxisLabelWidth,overflow:pr.xAxisLabelOverflow,fontSize:pr.xAxisLabelFontSize,formatter:Er=>(typeof Er!="string"||Er[0]!=="0"||isNaN(+Er)||(Er=(+Er).toString()),er(br,Er))},axisLine:{show:pr.xAxisLineShow,lineStyle:{color:pr.xAxisLineStyleColor}},axisTick:{show:pr.xAxisTickShow},name:pr.xAxisName,nameTextStyle:{fontSize:pr.xAxisLabelFontSize,color:pr.xAxisLabelColor,align:"left"},max:pr.xAxisMaxValue||null},yAxis:{type:"value",minInterval:pr.yAxisMinInterval,splitLine:{show:pr.yAxisSplitLineShow,lineStyle:{color:pr.yAxisSplitLineStyleColor,type:pr.yAxisSplitLineType}},splitArea:{show:pr.yAxisSplitAreaShow},axisLabel:{show:pr.yAxisLabelShow,fontSize:pr.yAxisLabelFontSize,color:pr.yAxisLabelColor,formatter:Er=>er(Cr,Er)},axisLine:{show:pr.yAxisLineAlwaysDisplay,lineStyle:{color:pr.yAxisLineStyleColor}},name:pr.yAxisName,nameTextStyle:{fontSize:pr.yAxisLabelFontSize,color:pr.yAxisLabelColor,align:"right"},max:pr.yAxisMaxValue||null},legend:{type:pr.legendScroll?"scroll":"plain",width:pr.legendWidth,height:pr.legendHeight,show:pr.legendShow,orient:pr.legendOrient,top:pr.legendTop,left:pr.legendLeft,textStyle:{lineHeight:parseFloat(pr.legendFontSize)+8,rich:{text:{width:pr.legendTextWidth,color:pr.legendTextStyleColor,fontSize:pr.legendFontSize}}},itemHeight:pr.legendItemHeight,itemWidth:pr.legendItemWidth,itemGap:pr.legendItemGap,data:Fe(Ar).map(Er=>({name:Er.name,icon:pr.legendType})),formatter:Er=>kn(pr.legendFormatter,{name:Er})},series:Fe(Tr)}}(ct,Dn,ur,vr);case"pie":return function(pr,mr,gr){var yr,Cr;const br=$e(mr.dataset);let{data:Ar=[]}=Fe(br)[0]||{};if(Array.isArray(pr.colors)){const wr=pr.isUseLabelColors,_r=pr.colors;Ar=Ar.map((Tr,Er)=>Object.assign({label:wr?{color:_r[Er]}:{}},Tr))}return{tooltip:{show:pr.tooltipShow,trigger:pr.tooltipTrigger,formatter:wr=>{const{marker:_r,seriesName:Tr,name:Er,value:xr,percent:Sr,data:kr}=wr||{};return jn(pr.tooltipFormatter,{textData:Object.assign({marker:_r,name:Er,value:xr,percent:Sr,a:Tr,b:Er,c:xr,d:Sr},kr)},{useNewline:!0,useSpace:!0})},textStyle:{color:pr.tooltipTextStyleColor},position:pr.tooltipPosition||void 0},legend:{type:pr.legendScroll?"scroll":"plain",width:pr.legendWidth,height:pr.legendHeight,show:pr.legendShow,orient:pr.legendOrient,top:pr.legendTop,left:pr.legendLeft,align:"left",textStyle:{lineHeight:gr+8,rich:{text:{width:pr.legendTextWidth,color:pr.legendTextStyleColor,fontSize:gr}}},itemHeight:pr.legendItemHeight,itemWidth:pr.legendItemWidth,itemGap:pr.legendItemGap,data:(Cr=(yr=Fe(br)[0])===null||yr===void 0?void 0:yr.data)===null||Cr===void 0?void 0:Cr.map(wr=>({name:wr.name,icon:pr.legendType})),formatter:wr=>{const{data:_r}=br.value[0]||{};let Tr,Er=0,xr="0%";if(_r)for(const Sr of _r)Sr.name===wr&&(Tr=+Sr.value),Er+=+Sr.value;return Er&&(xr=`${(Tr/Er*100).toFixed(2)}%`),kn(pr.legendFormatter,{name:wr,value:Tr,percent:xr})}},series:[{data:Ar,type:"pie",radius:[pr.innerRadius,pr.outerRadius],center:[pr.centerLeft,pr.centerTop],roseType:pr.roseType,avoidLabelOverlap:!0,minAngle:pr.minAngle,label:{show:pr.labelPosition!=="center"&&pr.labelShow,color:pr.labelColor,fontSize:pr.labelFontSize,position:pr.labelPosition,formatter:wr=>{let _r="",Tr=pr.labelFormatter;Tr===""&&(Tr=`{b}
|
|
64
64
|
{d}%`),Tr=Tr.replace(/\\n/g,`
|
|
65
|
-
`);const{name:Er,value:xr,data:Sr,percent:kr}=wr||{};return _r+=jn(Tr,{textData:Object.assign({name:Er,value:xr,b:Er,d:xr||0,percent:kr},Sr)},{useNewline:!1,useSpace:!1}),_r},width:pr.labelWidth,overflow:pr.labelOverflow},labelLine:{show:pr.labelLineShow,length:pr.labelLineLength,length2:pr.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}}(ct,Dn,ur);case"radar":return function(pr,mr,gr){const yr=$e(mr.dimensions),Cr=$e(mr.dataset),br=mt(()=>{var _r;const Tr=[],Er=[],xr=Fe(Cr),Sr=xr.length;for(let kr=0;kr<Sr;kr++){const{data:Pr=[]}=xr[kr];for(let Ir=0;Ir<Pr.length;Ir++)Er.push(Pr[Ir].value)}if(!((_r=yr.value)===null||_r===void 0)&&_r.length){const kr=Er!=null&&Er.length?1.2*Math.max(...Er):0;for(const Pr of yr.value)Tr.push({name:Pr,max:kr})}return Tr}),Ar=mt(()=>{const _r=Fe(Cr),Tr=_r.length,Er=[];for(let xr=0;xr<Tr;xr++){const{name:Sr,data:kr=[]}=_r[xr],Pr=[{name:Sr,value:kr.map(Nr=>Nr.value)}];let Ir=pr.colors[xr];if(!Ir&&pr.colors.length){const Nr=(xr+1)%pr.colors.length-1;Ir=Nr>0?pr.colors[Nr]:pr.colors[0]}Ir||(Ir="#5470C6");let Br=Ir;if(pr.gradientShow){const{gradientOffset:Nr,gradientColors:jr}=pr;Br={x:.7,y:0,x2:0,y2:0,colorStops:[{offset:0,color:Ir},{offset:Nr,color:jr[xr]},{offset:1,color:jr[xr]}]}}const Or={type:"radar",name:Sr,data:Pr,areaStyle:{color:Br,opacity:pr.areaStyleOpacity},tooltip:{trigger:"item"},symbolSize:pr.symbolSize,lineStyle:{width:pr.lineStyleWidth},label:{show:pr.labelShow,fontSize:pr.labelFontSize,position:pr.labelPosition,color:pr.labelColor,width:pr.labelWidth,overflow:pr.labelOverflow,formatter:Nr=>{const{data:jr,value:Vr}=Nr;let $r=0,zr="0%";if(jr)for(const Wr of jr.value)$r+=+Wr;return $r&&(zr=`${(Vr/$r*100).toFixed(2)}%`),jn(pr.labelFormatter,{textData:{value:Vr,percent:zr}},{useNewline:!1,useSpace:!1})}}};Er.push(Or)}return Er}),wr=mt(()=>({tooltip:{trigger:"axis",textStyle:{fontSize:gr.value},show:pr.tooltipShow,formatter:_r=>{let Tr="",Er=pr.tooltipFormatter;Er===""&&(Er="{marker} {a} {c}");for(let xr=0;xr<Fe(br).length;xr++){const Sr=Fe(br)[xr],{marker:kr,seriesName:Pr,value:Ir}=_r||{};xr===0&&Pr&&(Tr+=`${Pr}<br/>`),Tr+=jn(Er,{textData:{marker:kr,name:Sr.name,value:Ir[xr],a:Sr.name,b:Sr.name,c:Ir[xr]||0,type:Pr}},{useNewline:!0,useSpace:!0}),Tr+="<br/>"}return Tr},position:pr.tooltipPosition||void 0},radar:{indicator:Fe(br),axisName:{color:pr.axisNameColor}},legend:{type:pr.legendScroll?"scroll":"plain",width:pr.legendWidth,height:pr.legendHeight,show:pr.legendShow,orient:pr.legendOrient,top:pr.legendTop,left:pr.legendLeft,textStyle:{lineHeight:parseFloat(pr.legendFontSize)+8,rich:{text:{width:pr.legendTextWidth,color:pr.legendTextStyleColor,fontSize:pr.legendFontSize}}},itemHeight:pr.legendItemHeight,itemWidth:pr.legendItemWidth,itemGap:pr.legendItemGap,data:Fe(Cr).map(_r=>({name:_r.name,icon:pr.legendType})),formatter:_r=>kn(pr.legendFormatter,{name:_r})},series:Fe(Ar)}));return Fe(wr)}(ct,Dn,ur);case"scatter":return ar(ct,Dn,ur,dr,fr,hr,vr);case"comboGraph":return function(pr,mr,gr,yr){const Cr=$e(mr.dimensions),br=$e(mr.dataset),Ar=mr.dataset,wr=xr=>{const Sr=[];let kr=0;return pr.seriesTypes.forEach((Pr,Ir)=>{var Br,Or;Pr.axisIndex===xr&&(!((Or=(Br=Fe(br)[Ir])===null||Br===void 0?void 0:Br.data)===null||Or===void 0)&&Or.length)&&Sr.push(...Fe(br)[Ir].data.map(Nr=>+Nr.value))}),Sr.some(Pr=>Pr>=1e7)?kr=4:Sr.some(Pr=>Pr>=1e6)?kr=3:Sr.some(Pr=>Pr>=1e4)&&(kr=1),kr},_r=$e([0,0]),Tr=mt(()=>{const xr=pr.yAxis;return xr==null?void 0:xr.map((Sr,kr)=>{const Pr=_r.value[kr];let Ir;return Pr&&(Ir=1e4*Math.pow(10,Pr-1)),{type:"value",minInterval:pr.yAxisMinInterval,splitLine:{show:kr===0?pr.yAxisLeftSplitLineShow:pr.yAxisRightSplitLineShow,lineStyle:{color:pr.yAxisSplitLineStyleColor,type:kr===0?pr.yAxisLeftSplitLineType:pr.yAxisRightSplitLineType}},splitArea:{show:pr.yAxisSplitAreaShow},axisLabel:{show:pr.yAxisLabelShow,fontSize:pr.yAxisLabelFontSize,color:pr.yAxisLabelColor,formatter(Br){let Or=Br;return Ir&&(Or=(+Br/Ir).toString()),er(Sr.axisLabelFormatter,Or)}},axisLine:{show:pr.yAxisLineAlwaysDisplay,lineStyle:{color:pr.yAxisLineStyleColor}},name:lr(Pr)+(kr===0?pr.yAxisLeftName:pr.yAxisRightName),nameTextStyle:{fontSize:pr.yAxisLabelFontSize,color:pr.yAxisLabelColor,align:kr===0?"right":"left"},max:pr.yAxisMaxValue||null}})});return _r.value[0]=pr.yAxisLeftUnitAdapt?wr(0):0,_r.value[1]=pr.yAxisRightUnitAdapt?wr(1):0,{legend:{type:pr.legendScroll?"scroll":"plain",width:pr.legendWidth,height:pr.legendHeight,show:pr.legendShow,orient:pr.legendOrient,top:pr.legendTop,left:pr.legendLeft,textStyle:{lineHeight:parseFloat(pr.legendFontSize)+8,rich:{text:{width:pr.legendTextWidth,color:pr.legendTextStyleColor,fontSize:pr.legendFontSize}}},itemHeight:pr.legendItemHeight,itemWidth:pr.legendItemWidth,itemGap:pr.legendItemGap,data:Fe(br).map((xr,Sr)=>({name:xr.name,itemStyle:{color:pr.colors[Sr]},icon:pr.legendType})),formatter:xr=>kn(pr.legendFormatter,{name:xr})},tooltip:{trigger:"axis",show:pr.tooltipShow,formatter:xr=>{var Sr;const kr=xr.length;let Pr="",Ir=pr.tooltipFormatter;yr!=null&&yr.getCurrentData&&yr.getCurrentData((Sr=xr[0])===null||Sr===void 0?void 0:Sr.data),Ir===""&&(Ir="{marker} {a} {c}");const Br=pr.seriesTypes;for(let Or=0;Or<kr;Or++){const Nr=Br[Or],{tooltipFormatter:jr}=Nr||{},{marker:Vr,seriesName:$r,name:zr,value:Wr,data:qr}=xr[Or]||{};if(Or===0){let Mr=zr;typeof zr!="string"||zr[0]!=="0"||isNaN(+zr)||(Mr=(+zr).toString()),Pr+=`${er(pr.xAxisLabelFormatter,Mr)}<br/>`}Pr+=jn(jr||Ir,{textData:Object.assign({marker:Vr,name:zr,value:Wr,seriesName:$r,a:$r,b:zr,c:Wr||0},qr)},{useNewline:!0,useSpace:!0}),Pr+="<br/>"}return Pr},textStyle:{color:pr.tooltipTextStyleColor,fontSize:gr.value},position:pr.tooltipPosition||void 0},xAxis:{minInterval:pr.xAxisMinInterval,type:"category",data:Fe(Cr).map(xr=>{let Sr={};return Sr=xr&&typeof xr=="object"?Object.assign({},xr):{value:xr},Sr}),splitLine:{show:pr.xAxisSplitLineShow,lineStyle:{color:pr.xAxisSplitLineStyleColor},interval:pr.xAxisSplitLineInterval},splitArea:{show:pr.xAxisSplitAreaShow},axisLabel:{show:pr.xAxisLabelShow,color:pr.xAxisLabelColor,interval:pr.xAxisLabelInterval||0,rotate:pr.xAxisLabelRotate,width:pr.xAxisLabelWidth,overflow:pr.xAxisLabelOverflow,fontSize:pr.xAxisLabelFontSize,formatter:xr=>(typeof xr!="string"||xr[0]!=="0"||isNaN(+xr)||(xr=(+xr).toString()),er(pr.xAxisLabelFormatter,xr))},axisLine:{show:pr.xAxisLineShow,lineStyle:{color:pr.xAxisLineStyleColor}},axisTick:{show:pr.xAxisTickShow},name:pr.xAxisName,nameTextStyle:{fontSize:pr.xAxisLabelFontSize,color:pr.xAxisLabelColor,align:"left"},max:pr.xAxisMaxValue||null},yAxis:Fe(Tr),series:function(xr){const Sr=[],kr=xr.length,Pr=pr.seriesTypes;for(let Ir=0;Ir<kr;Ir++){const Br=Pr[Ir],{type:Or,axisIndex:Nr}=Br||{};let jr=Object.assign({type:Or,yAxisIndex:Nr},xr[Ir]),Vr=pr.colors[Ir];if(!Vr&&pr.colors.length){const $r=(Ir+1)%pr.colors.length-1;Vr=$r>0?pr.colors[$r]:pr.colors[0]}if(Vr||(Vr="#5470C6"),Or==="line"){const $r={};pr.shadowColor&&($r.shadowColor=pr.shadowColor,$r.shadowBlur=pr.shadowBlur,$r.shadowOffsetY=pr.shadowOffsetY,$r.shadowOffsetX=pr.shadowOffsetX),jr=Object.assign(Object.assign({},jr),{symbolSize:pr.symbolSize,smooth:pr.smooth,itemStyle:{color:Vr},areaStyle:{color:pr.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:Vr},{offset:1,color:pr.areaGradientColor||"transparent"}],global:!1}:Vr,opacity:pr.areaStyleOpacity},lineStyle:Object.assign({width:pr.lineStyleWidth},$r)})}if(Or==="bar"){const{gradientShow:$r,gradientColors:zr,gradientOffset:Wr}=pr,qr={color:Vr};if(pr.barBorderRadius){const Mr=pr.barBorderRadius.split(",");if(Mr!=null&&Mr.length){const Lr=[];for(const Fr of Mr){const Dr=parseFloat(Fr);isNaN(Dr)||Lr.push(Dr)}qr.borderRadius=Lr}}$r&&(qr.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:Vr},{offset:Wr,color:zr[Ir]},{offset:1,color:zr[Ir]}]}),jr=Object.assign(Object.assign({},jr),{barWidth:pr.barWidth.value+pr.barWidth.suffix,itemStyle:qr,label:{show:pr.labelShow,fontSize:pr.labelFontSize,position:pr.labelPosition,color:pr.labelColor,width:pr.labelWidth,overflow:pr.labelOverflow,formatter:Mr=>{let Lr="",Fr=pr.labelFormatter;Fr===""&&(Fr="{c}");const{seriesName:Dr,name:Gr,value:Rr,data:Qr}=Mr||{};return Lr+=jn(Fr,{textData:Object.assign({name:Gr,value:Rr,a:Dr,b:Gr,c:Rr||0},Qr)},{useNewline:!0,useSpace:!0}),Lr}}})}pr.isShowMarkLine&&(jr.markLine={data:[{type:pr.markLineType}]}),Sr.push(jr)}return Sr}(Ar)}}(ct,Dn,ur,vr);default:return{}}},cr=(ct,Dn,{fontSize:ur=12,graphicConfig:dr={},maxValueObj:fr={},fontFamily:hr=null,componentValues:vr=null,callBackMethodMap:pr={}})=>Object.assign(Object.assign({},function(mr,gr,yr){return{textStyle:{fontFamily:Fe(gr)},toolbox:{show:mr.toolboxShow,left:mr.toolboxLeft,top:mr.toolboxTop,itemSize:mr.toolboxItemSize,itemGap:mr.toolboxItemGap,feature:{myLocation:{show:!!mr.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(){yr.toolboxLocationFun&&yr.toolboxLocationFun(mr)}},myDownload:{show:mr.toolboxDownloadUrl&&mr.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(){yr.toolboxDownloadShowFun&&yr.toolboxDownloadShowFun(mr)}},myDataZoom:{show:mr.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(){yr.toolboxDataZoomShowFun&&yr.toolboxDataZoomShowFun(mr)}},myInfo:{show:mr.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(){yr.toolboxInfoShowFun&&yr.toolboxInfoShowFun(mr)}},mySource:{show:mr.toolboxInfoSource,title:"指标来源",icon:"path://M473 71a8 8 0 0 1 8-8h64a8 8 0 0 1 8 8v77.161C722.848 166.622 857.812 301.289 876.729 471H952a8 8 0 0 1 8 8v64a8 8 0 0 1-8 8h-75.053C858.871 721.652 723.515 857.305 553 875.839V951a8 8 0 0 1-8 8h-64a8 8 0 0 1-8-8v-75.161C302.818 857.341 167.659 722.182 149.161 552H72a8 8 0 0 1-8-8v-64a8 8 0 0 1 8-8h77.161C167.659 301.818 302.818 166.659 473 148.161V71z m326 441c0-157.953-128.047-286-286-286S227 354.047 227 512s128.047 286 286 286 286-128.047 286-286z m-286 60c33.137 0 60-26.863 60-60s-26.863-60-60-60-60 26.863-60 60 26.863 60 60 60z",onclick(){yr.toolboxSourceShowFun&&yr.toolboxSourceShowFun(mr)}}}},title:{text:mr.titleText,subtext:mr.titleSubtext,textStyle:{fontSize:mr.titleFontSize,fontWeight:mr.fontWeight,color:mr.titleColor},left:mr.textAlign},grid:{top:mr.gridTop,bottom:mr.gridBottom,left:mr.gridLeft,right:mr.gridRight,containLabel:mr.gridContainLabel},color:mr.colors}}(ct,hr,pr)),sr(ct,Dn,ur,dr,fr,vr,pr)),styleList=["width","height","color","position","top","left","rotate","fontSize","fontFamily","fontWeight","textDecoration","textAlign","lineHeight","verticalAlign","overflow","backgroundColor","backgroundImage","backgroundSize","borderWidth","borderStyle","borderRadius","borderColor","textShadow","justifyContent","alignItems","zIndex","scale"],usePickComponentStyle=(ct,Dn=[])=>{const{pageMode:ur}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),dr=lodashEs.without(styleList,...Dn);return vue.computed(()=>{var vr,pr;const fr=lodashEs.pick(ct,dr),hr=["width","height","top","left"];for(const mr of hr)Tn(fr,mr)&&(["width","height"].includes(mr)&&((vr=ct[mr])==null?void 0:vr.suffix)==="%"&&vue.unref(ur)==="design"?fr[mr]="100%":(pr=ct[mr])!=null&&pr.suffix&&(fr[mr]=(ct[mr].value||0)+ct[mr].suffix));return fr})},useOnEvent=(ct,Dn)=>{vue.watch(()=>ct.id,ur=>{const dr=vue.inject(EVENT_BUS,{onEvent:(fr,hr,vr)=>{}});ur!=null&&ur!==""&&dr.onEvent(ur,Dn,ct.requestSort)},{immediate:!0})},ignoreClickType=["ecanTable"],useEmitEvent=ct=>{const Dn=ct.events,ur=ct.id,dr=vue.inject(EVENT_BUS,{emitEvent:(vr,pr)=>{}}),fr=vue.inject(COMMON_OPERATE,{operateAction:(vr,pr)=>{}}),{touchEventId:hr}=vue.inject(GLOBAL_CONFIG,{touchEventId:vue.ref("")});return(vr,pr=()=>{},mr)=>function(){pr.call(this,...arguments);const{emitEvent:gr}=dr,{operateAction:yr}=fr;vr==="click"&&!Dn.find(br=>br.on==="click")&&(!ignoreClickType.includes(ct.type)&&ct.dataType==="indicator"||ct.parentId)&&yr("SHOW_INDICATOR_DETAIL_MODAL",{props:ct}),hr.value=ur;try{gr(Dn.filter(Cr=>Cr.on===vr),mr)}catch(Cr){console.error(Cr)}}};var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(ct){return ct&&ct.__esModule&&Object.prototype.hasOwnProperty.call(ct,"default")?ct.default:ct}function getAugmentedNamespace(ct){if(ct.__esModule)return ct;var Dn=ct.default;if(typeof Dn=="function"){var ur=function dr(){return this instanceof dr?Reflect.construct(Dn,arguments,this.constructor):Dn.apply(this,arguments)};ur.prototype=Dn.prototype}else ur={};return Object.defineProperty(ur,"__esModule",{value:!0}),Object.keys(ct).forEach(function(dr){var fr=Object.getOwnPropertyDescriptor(ct,dr);Object.defineProperty(ur,dr,fr.get?fr:{enumerable:!0,get:function(){return ct[dr]}})}),ur}var cryptoJs={exports:{}};function commonjsRequire(ct){throw new Error('Could not dynamically require "'+ct+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var core={exports:{}};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);var hasRequiredCore;function requireCore(){return hasRequiredCore||(hasRequiredCore=1,function(ct,Dn){(function(ur,dr){ct.exports=dr()})(commonjsGlobal,function(){var ur=ur||function(dr,fr){var hr;if(typeof window<"u"&&window.crypto&&(hr=window.crypto),typeof self<"u"&&self.crypto&&(hr=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(hr=globalThis.crypto),!hr&&typeof window<"u"&&window.msCrypto&&(hr=window.msCrypto),!hr&&typeof commonjsGlobal<"u"&&commonjsGlobal.crypto&&(hr=commonjsGlobal.crypto),!hr&&typeof commonjsRequire=="function")try{hr=require$$0}catch{}var vr=function(){if(hr){if(typeof hr.getRandomValues=="function")try{return hr.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof hr.randomBytes=="function")try{return hr.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},pr=Object.create||function(){function xr(){}return function(Sr){var kr;return xr.prototype=Sr,kr=new xr,xr.prototype=null,kr}}(),mr={},gr=mr.lib={},yr=gr.Base=function(){return{extend:function(xr){var Sr=pr(this);return xr&&Sr.mixIn(xr),(!Sr.hasOwnProperty("init")||this.init===Sr.init)&&(Sr.init=function(){Sr.$super.init.apply(this,arguments)}),Sr.init.prototype=Sr,Sr.$super=this,Sr},create:function(){var xr=this.extend();return xr.init.apply(xr,arguments),xr},init:function(){},mixIn:function(xr){for(var Sr in xr)xr.hasOwnProperty(Sr)&&(this[Sr]=xr[Sr]);xr.hasOwnProperty("toString")&&(this.toString=xr.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),Cr=gr.WordArray=yr.extend({init:function(xr,Sr){xr=this.words=xr||[],Sr!=fr?this.sigBytes=Sr:this.sigBytes=xr.length*4},toString:function(xr){return(xr||Ar).stringify(this)},concat:function(xr){var Sr=this.words,kr=xr.words,Pr=this.sigBytes,Ir=xr.sigBytes;if(this.clamp(),Pr%4)for(var Br=0;Br<Ir;Br++){var Or=kr[Br>>>2]>>>24-Br%4*8&255;Sr[Pr+Br>>>2]|=Or<<24-(Pr+Br)%4*8}else for(var Nr=0;Nr<Ir;Nr+=4)Sr[Pr+Nr>>>2]=kr[Nr>>>2];return this.sigBytes+=Ir,this},clamp:function(){var xr=this.words,Sr=this.sigBytes;xr[Sr>>>2]&=4294967295<<32-Sr%4*8,xr.length=dr.ceil(Sr/4)},clone:function(){var xr=yr.clone.call(this);return xr.words=this.words.slice(0),xr},random:function(xr){for(var Sr=[],kr=0;kr<xr;kr+=4)Sr.push(vr());return new Cr.init(Sr,xr)}}),br=mr.enc={},Ar=br.Hex={stringify:function(xr){for(var Sr=xr.words,kr=xr.sigBytes,Pr=[],Ir=0;Ir<kr;Ir++){var Br=Sr[Ir>>>2]>>>24-Ir%4*8&255;Pr.push((Br>>>4).toString(16)),Pr.push((Br&15).toString(16))}return Pr.join("")},parse:function(xr){for(var Sr=xr.length,kr=[],Pr=0;Pr<Sr;Pr+=2)kr[Pr>>>3]|=parseInt(xr.substr(Pr,2),16)<<24-Pr%8*4;return new Cr.init(kr,Sr/2)}},wr=br.Latin1={stringify:function(xr){for(var Sr=xr.words,kr=xr.sigBytes,Pr=[],Ir=0;Ir<kr;Ir++){var Br=Sr[Ir>>>2]>>>24-Ir%4*8&255;Pr.push(String.fromCharCode(Br))}return Pr.join("")},parse:function(xr){for(var Sr=xr.length,kr=[],Pr=0;Pr<Sr;Pr++)kr[Pr>>>2]|=(xr.charCodeAt(Pr)&255)<<24-Pr%4*8;return new Cr.init(kr,Sr)}},_r=br.Utf8={stringify:function(xr){try{return decodeURIComponent(escape(wr.stringify(xr)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(xr){return wr.parse(unescape(encodeURIComponent(xr)))}},Tr=gr.BufferedBlockAlgorithm=yr.extend({reset:function(){this._data=new Cr.init,this._nDataBytes=0},_append:function(xr){typeof xr=="string"&&(xr=_r.parse(xr)),this._data.concat(xr),this._nDataBytes+=xr.sigBytes},_process:function(xr){var Sr,kr=this._data,Pr=kr.words,Ir=kr.sigBytes,Br=this.blockSize,Or=Br*4,Nr=Ir/Or;xr?Nr=dr.ceil(Nr):Nr=dr.max((Nr|0)-this._minBufferSize,0);var jr=Nr*Br,Vr=dr.min(jr*4,Ir);if(jr){for(var $r=0;$r<jr;$r+=Br)this._doProcessBlock(Pr,$r);Sr=Pr.splice(0,jr),kr.sigBytes-=Vr}return new Cr.init(Sr,Vr)},clone:function(){var xr=yr.clone.call(this);return xr._data=this._data.clone(),xr},_minBufferSize:0});gr.Hasher=Tr.extend({cfg:yr.extend(),init:function(xr){this.cfg=this.cfg.extend(xr),this.reset()},reset:function(){Tr.reset.call(this),this._doReset()},update:function(xr){return this._append(xr),this._process(),this},finalize:function(xr){xr&&this._append(xr);var Sr=this._doFinalize();return Sr},blockSize:16,_createHelper:function(xr){return function(Sr,kr){return new xr.init(kr).finalize(Sr)}},_createHmacHelper:function(xr){return function(Sr,kr){return new Er.HMAC.init(xr,kr).finalize(Sr)}}});var Er=mr.algo={};return mr}(Math);return ur})}(core)),core.exports}var x64Core={exports:{}},hasRequiredX64Core;function requireX64Core(){return hasRequiredX64Core||(hasRequiredX64Core=1,function(ct,Dn){(function(ur,dr){ct.exports=dr(requireCore())})(commonjsGlobal,function(ur){return function(dr){var fr=ur,hr=fr.lib,vr=hr.Base,pr=hr.WordArray,mr=fr.x64={};mr.Word=vr.extend({init:function(gr,yr){this.high=gr,this.low=yr}}),mr.WordArray=vr.extend({init:function(gr,yr){gr=this.words=gr||[],yr!=dr?this.sigBytes=yr:this.sigBytes=gr.length*8},toX32:function(){for(var gr=this.words,yr=gr.length,Cr=[],br=0;br<yr;br++){var Ar=gr[br];Cr.push(Ar.high),Cr.push(Ar.low)}return pr.create(Cr,this.sigBytes)},clone:function(){for(var gr=vr.clone.call(this),yr=gr.words=this.words.slice(0),Cr=yr.length,br=0;br<Cr;br++)yr[br]=yr[br].clone();return gr}})}(),ur})}(x64Core)),x64Core.exports}var libTypedarrays={exports:{}},hasRequiredLibTypedarrays;function requireLibTypedarrays(){return hasRequiredLibTypedarrays||(hasRequiredLibTypedarrays=1,function(ct,Dn){(function(ur,dr){ct.exports=dr(requireCore())})(commonjsGlobal,function(ur){return function(){if(typeof ArrayBuffer=="function"){var dr=ur,fr=dr.lib,hr=fr.WordArray,vr=hr.init,pr=hr.init=function(mr){if(mr instanceof ArrayBuffer&&(mr=new Uint8Array(mr)),(mr instanceof Int8Array||typeof Uint8ClampedArray<"u"&&mr instanceof Uint8ClampedArray||mr instanceof Int16Array||mr instanceof Uint16Array||mr instanceof Int32Array||mr instanceof Uint32Array||mr instanceof Float32Array||mr instanceof Float64Array)&&(mr=new Uint8Array(mr.buffer,mr.byteOffset,mr.byteLength)),mr instanceof Uint8Array){for(var gr=mr.byteLength,yr=[],Cr=0;Cr<gr;Cr++)yr[Cr>>>2]|=mr[Cr]<<24-Cr%4*8;vr.call(this,yr,gr)}else vr.apply(this,arguments)};pr.prototype=hr}}(),ur.lib.WordArray})}(libTypedarrays)),libTypedarrays.exports}var encUtf16={exports:{}},hasRequiredEncUtf16;function requireEncUtf16(){return hasRequiredEncUtf16||(hasRequiredEncUtf16=1,function(ct,Dn){(function(ur,dr){ct.exports=dr(requireCore())})(commonjsGlobal,function(ur){return function(){var dr=ur,fr=dr.lib,hr=fr.WordArray,vr=dr.enc;vr.Utf16=vr.Utf16BE={stringify:function(mr){for(var gr=mr.words,yr=mr.sigBytes,Cr=[],br=0;br<yr;br+=2){var Ar=gr[br>>>2]>>>16-br%4*8&65535;Cr.push(String.fromCharCode(Ar))}return Cr.join("")},parse:function(mr){for(var gr=mr.length,yr=[],Cr=0;Cr<gr;Cr++)yr[Cr>>>1]|=mr.charCodeAt(Cr)<<16-Cr%2*16;return hr.create(yr,gr*2)}},vr.Utf16LE={stringify:function(mr){for(var gr=mr.words,yr=mr.sigBytes,Cr=[],br=0;br<yr;br+=2){var Ar=pr(gr[br>>>2]>>>16-br%4*8&65535);Cr.push(String.fromCharCode(Ar))}return Cr.join("")},parse:function(mr){for(var gr=mr.length,yr=[],Cr=0;Cr<gr;Cr++)yr[Cr>>>1]|=pr(mr.charCodeAt(Cr)<<16-Cr%2*16);return hr.create(yr,gr*2)}};function pr(mr){return mr<<8&4278255360|mr>>>8&16711935}}(),ur.enc.Utf16})}(encUtf16)),encUtf16.exports}var encBase64={exports:{}},hasRequiredEncBase64;function requireEncBase64(){return hasRequiredEncBase64||(hasRequiredEncBase64=1,function(ct,Dn){(function(ur,dr){ct.exports=dr(requireCore())})(commonjsGlobal,function(ur){return function(){var dr=ur,fr=dr.lib,hr=fr.WordArray,vr=dr.enc;vr.Base64={stringify:function(mr){var gr=mr.words,yr=mr.sigBytes,Cr=this._map;mr.clamp();for(var br=[],Ar=0;Ar<yr;Ar+=3)for(var wr=gr[Ar>>>2]>>>24-Ar%4*8&255,_r=gr[Ar+1>>>2]>>>24-(Ar+1)%4*8&255,Tr=gr[Ar+2>>>2]>>>24-(Ar+2)%4*8&255,Er=wr<<16|_r<<8|Tr,xr=0;xr<4&&Ar+xr*.75<yr;xr++)br.push(Cr.charAt(Er>>>6*(3-xr)&63));var Sr=Cr.charAt(64);if(Sr)for(;br.length%4;)br.push(Sr);return br.join("")},parse:function(mr){var gr=mr.length,yr=this._map,Cr=this._reverseMap;if(!Cr){Cr=this._reverseMap=[];for(var br=0;br<yr.length;br++)Cr[yr.charCodeAt(br)]=br}var Ar=yr.charAt(64);if(Ar){var wr=mr.indexOf(Ar);wr!==-1&&(gr=wr)}return pr(mr,gr,Cr)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function pr(mr,gr,yr){for(var Cr=[],br=0,Ar=0;Ar<gr;Ar++)if(Ar%4){var wr=yr[mr.charCodeAt(Ar-1)]<<Ar%4*2,_r=yr[mr.charCodeAt(Ar)]>>>6-Ar%4*2,Tr=wr|_r;Cr[br>>>2]|=Tr<<24-br%4*8,br++}return hr.create(Cr,br)}}(),ur.enc.Base64})}(encBase64)),encBase64.exports}var encBase64url={exports:{}},hasRequiredEncBase64url;function requireEncBase64url(){return hasRequiredEncBase64url||(hasRequiredEncBase64url=1,function(ct,Dn){(function(ur,dr){ct.exports=dr(requireCore())})(commonjsGlobal,function(ur){return function(){var dr=ur,fr=dr.lib,hr=fr.WordArray,vr=dr.enc;vr.Base64url={stringify:function(mr,gr=!0){var yr=mr.words,Cr=mr.sigBytes,br=gr?this._safe_map:this._map;mr.clamp();for(var Ar=[],wr=0;wr<Cr;wr+=3)for(var _r=yr[wr>>>2]>>>24-wr%4*8&255,Tr=yr[wr+1>>>2]>>>24-(wr+1)%4*8&255,Er=yr[wr+2>>>2]>>>24-(wr+2)%4*8&255,xr=_r<<16|Tr<<8|Er,Sr=0;Sr<4&&wr+Sr*.75<Cr;Sr++)Ar.push(br.charAt(xr>>>6*(3-Sr)&63));var kr=br.charAt(64);if(kr)for(;Ar.length%4;)Ar.push(kr);return Ar.join("")},parse:function(mr,gr=!0){var yr=mr.length,Cr=gr?this._safe_map:this._map,br=this._reverseMap;if(!br){br=this._reverseMap=[];for(var Ar=0;Ar<Cr.length;Ar++)br[Cr.charCodeAt(Ar)]=Ar}var wr=Cr.charAt(64);if(wr){var _r=mr.indexOf(wr);_r!==-1&&(yr=_r)}return pr(mr,yr,br)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function pr(mr,gr,yr){for(var Cr=[],br=0,Ar=0;Ar<gr;Ar++)if(Ar%4){var wr=yr[mr.charCodeAt(Ar-1)]<<Ar%4*2,_r=yr[mr.charCodeAt(Ar)]>>>6-Ar%4*2,Tr=wr|_r;Cr[br>>>2]|=Tr<<24-br%4*8,br++}return hr.create(Cr,br)}}(),ur.enc.Base64url})}(encBase64url)),encBase64url.exports}var md5={exports:{}},hasRequiredMd5;function requireMd5(){return hasRequiredMd5||(hasRequiredMd5=1,function(ct,Dn){(function(ur,dr){ct.exports=dr(requireCore())})(commonjsGlobal,function(ur){return function(dr){var fr=ur,hr=fr.lib,vr=hr.WordArray,pr=hr.Hasher,mr=fr.algo,gr=[];(function(){for(var _r=0;_r<64;_r++)gr[_r]=dr.abs(dr.sin(_r+1))*4294967296|0})();var yr=mr.MD5=pr.extend({_doReset:function(){this._hash=new vr.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(_r,Tr){for(var Er=0;Er<16;Er++){var xr=Tr+Er,Sr=_r[xr];_r[xr]=(Sr<<8|Sr>>>24)&16711935|(Sr<<24|Sr>>>8)&4278255360}var kr=this._hash.words,Pr=_r[Tr+0],Ir=_r[Tr+1],Br=_r[Tr+2],Or=_r[Tr+3],Nr=_r[Tr+4],jr=_r[Tr+5],Vr=_r[Tr+6],$r=_r[Tr+7],zr=_r[Tr+8],Wr=_r[Tr+9],qr=_r[Tr+10],Mr=_r[Tr+11],Lr=_r[Tr+12],Fr=_r[Tr+13],Dr=_r[Tr+14],Gr=_r[Tr+15],Rr=kr[0],Qr=kr[1],Kr=kr[2],Hr=kr[3];Rr=Cr(Rr,Qr,Kr,Hr,Pr,7,gr[0]),Hr=Cr(Hr,Rr,Qr,Kr,Ir,12,gr[1]),Kr=Cr(Kr,Hr,Rr,Qr,Br,17,gr[2]),Qr=Cr(Qr,Kr,Hr,Rr,Or,22,gr[3]),Rr=Cr(Rr,Qr,Kr,Hr,Nr,7,gr[4]),Hr=Cr(Hr,Rr,Qr,Kr,jr,12,gr[5]),Kr=Cr(Kr,Hr,Rr,Qr,Vr,17,gr[6]),Qr=Cr(Qr,Kr,Hr,Rr,$r,22,gr[7]),Rr=Cr(Rr,Qr,Kr,Hr,zr,7,gr[8]),Hr=Cr(Hr,Rr,Qr,Kr,Wr,12,gr[9]),Kr=Cr(Kr,Hr,Rr,Qr,qr,17,gr[10]),Qr=Cr(Qr,Kr,Hr,Rr,Mr,22,gr[11]),Rr=Cr(Rr,Qr,Kr,Hr,Lr,7,gr[12]),Hr=Cr(Hr,Rr,Qr,Kr,Fr,12,gr[13]),Kr=Cr(Kr,Hr,Rr,Qr,Dr,17,gr[14]),Qr=Cr(Qr,Kr,Hr,Rr,Gr,22,gr[15]),Rr=br(Rr,Qr,Kr,Hr,Ir,5,gr[16]),Hr=br(Hr,Rr,Qr,Kr,Vr,9,gr[17]),Kr=br(Kr,Hr,Rr,Qr,Mr,14,gr[18]),Qr=br(Qr,Kr,Hr,Rr,Pr,20,gr[19]),Rr=br(Rr,Qr,Kr,Hr,jr,5,gr[20]),Hr=br(Hr,Rr,Qr,Kr,qr,9,gr[21]),Kr=br(Kr,Hr,Rr,Qr,Gr,14,gr[22]),Qr=br(Qr,Kr,Hr,Rr,Nr,20,gr[23]),Rr=br(Rr,Qr,Kr,Hr,Wr,5,gr[24]),Hr=br(Hr,Rr,Qr,Kr,Dr,9,gr[25]),Kr=br(Kr,Hr,Rr,Qr,Or,14,gr[26]),Qr=br(Qr,Kr,Hr,Rr,zr,20,gr[27]),Rr=br(Rr,Qr,Kr,Hr,Fr,5,gr[28]),Hr=br(Hr,Rr,Qr,Kr,Br,9,gr[29]),Kr=br(Kr,Hr,Rr,Qr,$r,14,gr[30]),Qr=br(Qr,Kr,Hr,Rr,Lr,20,gr[31]),Rr=Ar(Rr,Qr,Kr,Hr,jr,4,gr[32]),Hr=Ar(Hr,Rr,Qr,Kr,zr,11,gr[33]),Kr=Ar(Kr,Hr,Rr,Qr,Mr,16,gr[34]),Qr=Ar(Qr,Kr,Hr,Rr,Dr,23,gr[35]),Rr=Ar(Rr,Qr,Kr,Hr,Ir,4,gr[36]),Hr=Ar(Hr,Rr,Qr,Kr,Nr,11,gr[37]),Kr=Ar(Kr,Hr,Rr,Qr,$r,16,gr[38]),Qr=Ar(Qr,Kr,Hr,Rr,qr,23,gr[39]),Rr=Ar(Rr,Qr,Kr,Hr,Fr,4,gr[40]),Hr=Ar(Hr,Rr,Qr,Kr,Pr,11,gr[41]),Kr=Ar(Kr,Hr,Rr,Qr,Or,16,gr[42]),Qr=Ar(Qr,Kr,Hr,Rr,Vr,23,gr[43]),Rr=Ar(Rr,Qr,Kr,Hr,Wr,4,gr[44]),Hr=Ar(Hr,Rr,Qr,Kr,Lr,11,gr[45]),Kr=Ar(Kr,Hr,Rr,Qr,Gr,16,gr[46]),Qr=Ar(Qr,Kr,Hr,Rr,Br,23,gr[47]),Rr=wr(Rr,Qr,Kr,Hr,Pr,6,gr[48]),Hr=wr(Hr,Rr,Qr,Kr,$r,10,gr[49]),Kr=wr(Kr,Hr,Rr,Qr,Dr,15,gr[50]),Qr=wr(Qr,Kr,Hr,Rr,jr,21,gr[51]),Rr=wr(Rr,Qr,Kr,Hr,Lr,6,gr[52]),Hr=wr(Hr,Rr,Qr,Kr,Or,10,gr[53]),Kr=wr(Kr,Hr,Rr,Qr,qr,15,gr[54]),Qr=wr(Qr,Kr,Hr,Rr,Ir,21,gr[55]),Rr=wr(Rr,Qr,Kr,Hr,zr,6,gr[56]),Hr=wr(Hr,Rr,Qr,Kr,Gr,10,gr[57]),Kr=wr(Kr,Hr,Rr,Qr,Vr,15,gr[58]),Qr=wr(Qr,Kr,Hr,Rr,Fr,21,gr[59]),Rr=wr(Rr,Qr,Kr,Hr,Nr,6,gr[60]),Hr=wr(Hr,Rr,Qr,Kr,Mr,10,gr[61]),Kr=wr(Kr,Hr,Rr,Qr,Br,15,gr[62]),Qr=wr(Qr,Kr,Hr,Rr,Wr,21,gr[63]),kr[0]=kr[0]+Rr|0,kr[1]=kr[1]+Qr|0,kr[2]=kr[2]+Kr|0,kr[3]=kr[3]+Hr|0},_doFinalize:function(){var _r=this._data,Tr=_r.words,Er=this._nDataBytes*8,xr=_r.sigBytes*8;Tr[xr>>>5]|=128<<24-xr%32;var Sr=dr.floor(Er/4294967296),kr=Er;Tr[(xr+64>>>9<<4)+15]=(Sr<<8|Sr>>>24)&16711935|(Sr<<24|Sr>>>8)&4278255360,Tr[(xr+64>>>9<<4)+14]=(kr<<8|kr>>>24)&16711935|(kr<<24|kr>>>8)&4278255360,_r.sigBytes=(Tr.length+1)*4,this._process();for(var Pr=this._hash,Ir=Pr.words,Br=0;Br<4;Br++){var Or=Ir[Br];Ir[Br]=(Or<<8|Or>>>24)&16711935|(Or<<24|Or>>>8)&4278255360}return Pr},clone:function(){var _r=pr.clone.call(this);return _r._hash=this._hash.clone(),_r}});function Cr(_r,Tr,Er,xr,Sr,kr,Pr){var Ir=_r+(Tr&Er|~Tr&xr)+Sr+Pr;return(Ir<<kr|Ir>>>32-kr)+Tr}function br(_r,Tr,Er,xr,Sr,kr,Pr){var Ir=_r+(Tr&xr|Er&~xr)+Sr+Pr;return(Ir<<kr|Ir>>>32-kr)+Tr}function Ar(_r,Tr,Er,xr,Sr,kr,Pr){var Ir=_r+(Tr^Er^xr)+Sr+Pr;return(Ir<<kr|Ir>>>32-kr)+Tr}function wr(_r,Tr,Er,xr,Sr,kr,Pr){var Ir=_r+(Er^(Tr|~xr))+Sr+Pr;return(Ir<<kr|Ir>>>32-kr)+Tr}fr.MD5=pr._createHelper(yr),fr.HmacMD5=pr._createHmacHelper(yr)}(Math),ur.MD5})}(md5)),md5.exports}var sha1={exports:{}},hasRequiredSha1;function requireSha1(){return hasRequiredSha1||(hasRequiredSha1=1,function(ct,Dn){(function(ur,dr){ct.exports=dr(requireCore())})(commonjsGlobal,function(ur){return function(){var dr=ur,fr=dr.lib,hr=fr.WordArray,vr=fr.Hasher,pr=dr.algo,mr=[],gr=pr.SHA1=vr.extend({_doReset:function(){this._hash=new hr.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(yr,Cr){for(var br=this._hash.words,Ar=br[0],wr=br[1],_r=br[2],Tr=br[3],Er=br[4],xr=0;xr<80;xr++){if(xr<16)mr[xr]=yr[Cr+xr]|0;else{var Sr=mr[xr-3]^mr[xr-8]^mr[xr-14]^mr[xr-16];mr[xr]=Sr<<1|Sr>>>31}var kr=(Ar<<5|Ar>>>27)+Er+mr[xr];xr<20?kr+=(wr&_r|~wr&Tr)+1518500249:xr<40?kr+=(wr^_r^Tr)+1859775393:xr<60?kr+=(wr&_r|wr&Tr|_r&Tr)-1894007588:kr+=(wr^_r^Tr)-899497514,Er=Tr,Tr=_r,_r=wr<<30|wr>>>2,wr=Ar,Ar=kr}br[0]=br[0]+Ar|0,br[1]=br[1]+wr|0,br[2]=br[2]+_r|0,br[3]=br[3]+Tr|0,br[4]=br[4]+Er|0},_doFinalize:function(){var yr=this._data,Cr=yr.words,br=this._nDataBytes*8,Ar=yr.sigBytes*8;return Cr[Ar>>>5]|=128<<24-Ar%32,Cr[(Ar+64>>>9<<4)+14]=Math.floor(br/4294967296),Cr[(Ar+64>>>9<<4)+15]=br,yr.sigBytes=Cr.length*4,this._process(),this._hash},clone:function(){var yr=vr.clone.call(this);return yr._hash=this._hash.clone(),yr}});dr.SHA1=vr._createHelper(gr),dr.HmacSHA1=vr._createHmacHelper(gr)}(),ur.SHA1})}(sha1)),sha1.exports}var sha256={exports:{}},hasRequiredSha256;function requireSha256(){return hasRequiredSha256||(hasRequiredSha256=1,function(ct,Dn){(function(ur,dr){ct.exports=dr(requireCore())})(commonjsGlobal,function(ur){return function(dr){var fr=ur,hr=fr.lib,vr=hr.WordArray,pr=hr.Hasher,mr=fr.algo,gr=[],yr=[];(function(){function Ar(Er){for(var xr=dr.sqrt(Er),Sr=2;Sr<=xr;Sr++)if(!(Er%Sr))return!1;return!0}function wr(Er){return(Er-(Er|0))*4294967296|0}for(var _r=2,Tr=0;Tr<64;)Ar(_r)&&(Tr<8&&(gr[Tr]=wr(dr.pow(_r,1/2))),yr[Tr]=wr(dr.pow(_r,1/3)),Tr++),_r++})();var Cr=[],br=mr.SHA256=pr.extend({_doReset:function(){this._hash=new vr.init(gr.slice(0))},_doProcessBlock:function(Ar,wr){for(var _r=this._hash.words,Tr=_r[0],Er=_r[1],xr=_r[2],Sr=_r[3],kr=_r[4],Pr=_r[5],Ir=_r[6],Br=_r[7],Or=0;Or<64;Or++){if(Or<16)Cr[Or]=Ar[wr+Or]|0;else{var Nr=Cr[Or-15],jr=(Nr<<25|Nr>>>7)^(Nr<<14|Nr>>>18)^Nr>>>3,Vr=Cr[Or-2],$r=(Vr<<15|Vr>>>17)^(Vr<<13|Vr>>>19)^Vr>>>10;Cr[Or]=jr+Cr[Or-7]+$r+Cr[Or-16]}var zr=kr&Pr^~kr&Ir,Wr=Tr&Er^Tr&xr^Er&xr,qr=(Tr<<30|Tr>>>2)^(Tr<<19|Tr>>>13)^(Tr<<10|Tr>>>22),Mr=(kr<<26|kr>>>6)^(kr<<21|kr>>>11)^(kr<<7|kr>>>25),Lr=Br+Mr+zr+yr[Or]+Cr[Or],Fr=qr+Wr;Br=Ir,Ir=Pr,Pr=kr,kr=Sr+Lr|0,Sr=xr,xr=Er,Er=Tr,Tr=Lr+Fr|0}_r[0]=_r[0]+Tr|0,_r[1]=_r[1]+Er|0,_r[2]=_r[2]+xr|0,_r[3]=_r[3]+Sr|0,_r[4]=_r[4]+kr|0,_r[5]=_r[5]+Pr|0,_r[6]=_r[6]+Ir|0,_r[7]=_r[7]+Br|0},_doFinalize:function(){var Ar=this._data,wr=Ar.words,_r=this._nDataBytes*8,Tr=Ar.sigBytes*8;return wr[Tr>>>5]|=128<<24-Tr%32,wr[(Tr+64>>>9<<4)+14]=dr.floor(_r/4294967296),wr[(Tr+64>>>9<<4)+15]=_r,Ar.sigBytes=wr.length*4,this._process(),this._hash},clone:function(){var Ar=pr.clone.call(this);return Ar._hash=this._hash.clone(),Ar}});fr.SHA256=pr._createHelper(br),fr.HmacSHA256=pr._createHmacHelper(br)}(Math),ur.SHA256})}(sha256)),sha256.exports}var sha224={exports:{}},hasRequiredSha224;function requireSha224(){return hasRequiredSha224||(hasRequiredSha224=1,function(ct,Dn){(function(ur,dr,fr){ct.exports=dr(requireCore(),requireSha256())})(commonjsGlobal,function(ur){return function(){var dr=ur,fr=dr.lib,hr=fr.WordArray,vr=dr.algo,pr=vr.SHA256,mr=vr.SHA224=pr.extend({_doReset:function(){this._hash=new hr.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var gr=pr._doFinalize.call(this);return gr.sigBytes-=4,gr}});dr.SHA224=pr._createHelper(mr),dr.HmacSHA224=pr._createHmacHelper(mr)}(),ur.SHA224})}(sha224)),sha224.exports}var sha512={exports:{}},hasRequiredSha512;function requireSha512(){return hasRequiredSha512||(hasRequiredSha512=1,function(ct,Dn){(function(ur,dr,fr){ct.exports=dr(requireCore(),requireX64Core())})(commonjsGlobal,function(ur){return function(){var dr=ur,fr=dr.lib,hr=fr.Hasher,vr=dr.x64,pr=vr.Word,mr=vr.WordArray,gr=dr.algo;function yr(){return pr.create.apply(pr,arguments)}var Cr=[yr(1116352408,3609767458),yr(1899447441,602891725),yr(3049323471,3964484399),yr(3921009573,2173295548),yr(961987163,4081628472),yr(1508970993,3053834265),yr(2453635748,2937671579),yr(2870763221,3664609560),yr(3624381080,2734883394),yr(310598401,1164996542),yr(607225278,1323610764),yr(1426881987,3590304994),yr(1925078388,4068182383),yr(2162078206,991336113),yr(2614888103,633803317),yr(3248222580,3479774868),yr(3835390401,2666613458),yr(4022224774,944711139),yr(264347078,2341262773),yr(604807628,2007800933),yr(770255983,1495990901),yr(1249150122,1856431235),yr(1555081692,3175218132),yr(1996064986,2198950837),yr(2554220882,3999719339),yr(2821834349,766784016),yr(2952996808,2566594879),yr(3210313671,3203337956),yr(3336571891,1034457026),yr(3584528711,2466948901),yr(113926993,3758326383),yr(338241895,168717936),yr(666307205,1188179964),yr(773529912,1546045734),yr(1294757372,1522805485),yr(1396182291,2643833823),yr(1695183700,2343527390),yr(1986661051,1014477480),yr(2177026350,1206759142),yr(2456956037,344077627),yr(2730485921,1290863460),yr(2820302411,3158454273),yr(3259730800,3505952657),yr(3345764771,106217008),yr(3516065817,3606008344),yr(3600352804,1432725776),yr(4094571909,1467031594),yr(275423344,851169720),yr(430227734,3100823752),yr(506948616,1363258195),yr(659060556,3750685593),yr(883997877,3785050280),yr(958139571,3318307427),yr(1322822218,3812723403),yr(1537002063,2003034995),yr(1747873779,3602036899),yr(1955562222,1575990012),yr(2024104815,1125592928),yr(2227730452,2716904306),yr(2361852424,442776044),yr(2428436474,593698344),yr(2756734187,3733110249),yr(3204031479,2999351573),yr(3329325298,3815920427),yr(3391569614,3928383900),yr(3515267271,566280711),yr(3940187606,3454069534),yr(4118630271,4000239992),yr(116418474,1914138554),yr(174292421,2731055270),yr(289380356,3203993006),yr(460393269,320620315),yr(685471733,587496836),yr(852142971,1086792851),yr(1017036298,365543100),yr(1126000580,2618297676),yr(1288033470,3409855158),yr(1501505948,4234509866),yr(1607167915,987167468),yr(1816402316,1246189591)],br=[];(function(){for(var wr=0;wr<80;wr++)br[wr]=yr()})();var Ar=gr.SHA512=hr.extend({_doReset:function(){this._hash=new mr.init([new pr.init(1779033703,4089235720),new pr.init(3144134277,2227873595),new pr.init(1013904242,4271175723),new pr.init(2773480762,1595750129),new pr.init(1359893119,2917565137),new pr.init(2600822924,725511199),new pr.init(528734635,4215389547),new pr.init(1541459225,327033209)])},_doProcessBlock:function(wr,_r){for(var Tr=this._hash.words,Er=Tr[0],xr=Tr[1],Sr=Tr[2],kr=Tr[3],Pr=Tr[4],Ir=Tr[5],Br=Tr[6],Or=Tr[7],Nr=Er.high,jr=Er.low,Vr=xr.high,$r=xr.low,zr=Sr.high,Wr=Sr.low,qr=kr.high,Mr=kr.low,Lr=Pr.high,Fr=Pr.low,Dr=Ir.high,Gr=Ir.low,Rr=Br.high,Qr=Br.low,Kr=Or.high,Hr=Or.low,Ur=Nr,Jr=jr,Yr=Vr,si=$r,fi=zr,_i=Wr,bi=qr,pi=Mr,mi=Lr,xi=Fr,ni=Dr,ai=Gr,Xr=Rr,vi=Qr,Si=Kr,ri=Hr,yi=0;yi<80;yi++){var di,Ei,Oi=br[yi];if(yi<16)Ei=Oi.high=wr[_r+yi*2]|0,di=Oi.low=wr[_r+yi*2+1]|0;else{var Li=br[yi-15],Ri=Li.high,hi=Li.low,Ci=(Ri>>>1|hi<<31)^(Ri>>>8|hi<<24)^Ri>>>7,Di=(hi>>>1|Ri<<31)^(hi>>>8|Ri<<24)^(hi>>>7|Ri<<25),$i=br[yi-2],Fi=$i.high,qi=$i.low,Ji=(Fi>>>19|qi<<13)^(Fi<<3|qi>>>29)^Fi>>>6,ua=(qi>>>19|Fi<<13)^(qi<<3|Fi>>>29)^(qi>>>6|Fi<<26),da=br[yi-7],va=da.high,ya=da.low,xa=br[yi-16],Sa=xa.high,La=xa.low;di=Di+ya,Ei=Ci+va+(di>>>0<Di>>>0?1:0),di=di+ua,Ei=Ei+Ji+(di>>>0<ua>>>0?1:0),di=di+La,Ei=Ei+Sa+(di>>>0<La>>>0?1:0),Oi.high=Ei,Oi.low=di}var qa=mi&ni^~mi&Xr,ka=xi&ai^~xi&vi,Ba=Ur&Yr^Ur&fi^Yr&fi,Ha=Jr&si^Jr&_i^si&_i,Ia=(Ur>>>28|Jr<<4)^(Ur<<30|Jr>>>2)^(Ur<<25|Jr>>>7),Ga=(Jr>>>28|Ur<<4)^(Jr<<30|Ur>>>2)^(Jr<<25|Ur>>>7),Va=(mi>>>14|xi<<18)^(mi>>>18|xi<<14)^(mi<<23|xi>>>9),Ua=(xi>>>14|mi<<18)^(xi>>>18|mi<<14)^(xi<<23|mi>>>9),Vi=Cr[yi],Wi=Vi.high,Hi=Vi.low,Xi=ri+Ua,ea=Si+Va+(Xi>>>0<ri>>>0?1:0),Xi=Xi+ka,ea=ea+qa+(Xi>>>0<ka>>>0?1:0),Xi=Xi+Hi,ea=ea+Wi+(Xi>>>0<Hi>>>0?1:0),Xi=Xi+di,ea=ea+Ei+(Xi>>>0<di>>>0?1:0),ta=Ga+Ha,la=Ia+Ba+(ta>>>0<Ga>>>0?1:0);Si=Xr,ri=vi,Xr=ni,vi=ai,ni=mi,ai=xi,xi=pi+Xi|0,mi=bi+ea+(xi>>>0<pi>>>0?1:0)|0,bi=fi,pi=_i,fi=Yr,_i=si,Yr=Ur,si=Jr,Jr=Xi+ta|0,Ur=ea+la+(Jr>>>0<Xi>>>0?1:0)|0}jr=Er.low=jr+Jr,Er.high=Nr+Ur+(jr>>>0<Jr>>>0?1:0),$r=xr.low=$r+si,xr.high=Vr+Yr+($r>>>0<si>>>0?1:0),Wr=Sr.low=Wr+_i,Sr.high=zr+fi+(Wr>>>0<_i>>>0?1:0),Mr=kr.low=Mr+pi,kr.high=qr+bi+(Mr>>>0<pi>>>0?1:0),Fr=Pr.low=Fr+xi,Pr.high=Lr+mi+(Fr>>>0<xi>>>0?1:0),Gr=Ir.low=Gr+ai,Ir.high=Dr+ni+(Gr>>>0<ai>>>0?1:0),Qr=Br.low=Qr+vi,Br.high=Rr+Xr+(Qr>>>0<vi>>>0?1:0),Hr=Or.low=Hr+ri,Or.high=Kr+Si+(Hr>>>0<ri>>>0?1:0)},_doFinalize:function(){var wr=this._data,_r=wr.words,Tr=this._nDataBytes*8,Er=wr.sigBytes*8;_r[Er>>>5]|=128<<24-Er%32,_r[(Er+128>>>10<<5)+30]=Math.floor(Tr/4294967296),_r[(Er+128>>>10<<5)+31]=Tr,wr.sigBytes=_r.length*4,this._process();var xr=this._hash.toX32();return xr},clone:function(){var wr=hr.clone.call(this);return wr._hash=this._hash.clone(),wr},blockSize:1024/32});dr.SHA512=hr._createHelper(Ar),dr.HmacSHA512=hr._createHmacHelper(Ar)}(),ur.SHA512})}(sha512)),sha512.exports}var sha384={exports:{}},hasRequiredSha384;function requireSha384(){return hasRequiredSha384||(hasRequiredSha384=1,function(ct,Dn){(function(ur,dr,fr){ct.exports=dr(requireCore(),requireX64Core(),requireSha512())})(commonjsGlobal,function(ur){return function(){var dr=ur,fr=dr.x64,hr=fr.Word,vr=fr.WordArray,pr=dr.algo,mr=pr.SHA512,gr=pr.SHA384=mr.extend({_doReset:function(){this._hash=new vr.init([new hr.init(3418070365,3238371032),new hr.init(1654270250,914150663),new hr.init(2438529370,812702999),new hr.init(355462360,4144912697),new hr.init(1731405415,4290775857),new hr.init(2394180231,1750603025),new hr.init(3675008525,1694076839),new hr.init(1203062813,3204075428)])},_doFinalize:function(){var yr=mr._doFinalize.call(this);return yr.sigBytes-=16,yr}});dr.SHA384=mr._createHelper(gr),dr.HmacSHA384=mr._createHmacHelper(gr)}(),ur.SHA384})}(sha384)),sha384.exports}var sha3={exports:{}},hasRequiredSha3;function requireSha3(){return hasRequiredSha3||(hasRequiredSha3=1,function(ct,Dn){(function(ur,dr,fr){ct.exports=dr(requireCore(),requireX64Core())})(commonjsGlobal,function(ur){return function(dr){var fr=ur,hr=fr.lib,vr=hr.WordArray,pr=hr.Hasher,mr=fr.x64,gr=mr.Word,yr=fr.algo,Cr=[],br=[],Ar=[];(function(){for(var Tr=1,Er=0,xr=0;xr<24;xr++){Cr[Tr+5*Er]=(xr+1)*(xr+2)/2%64;var Sr=Er%5,kr=(2*Tr+3*Er)%5;Tr=Sr,Er=kr}for(var Tr=0;Tr<5;Tr++)for(var Er=0;Er<5;Er++)br[Tr+5*Er]=Er+(2*Tr+3*Er)%5*5;for(var Pr=1,Ir=0;Ir<24;Ir++){for(var Br=0,Or=0,Nr=0;Nr<7;Nr++){if(Pr&1){var jr=(1<<Nr)-1;jr<32?Or^=1<<jr:Br^=1<<jr-32}Pr&128?Pr=Pr<<1^113:Pr<<=1}Ar[Ir]=gr.create(Br,Or)}})();var wr=[];(function(){for(var Tr=0;Tr<25;Tr++)wr[Tr]=gr.create()})();var _r=yr.SHA3=pr.extend({cfg:pr.cfg.extend({outputLength:512}),_doReset:function(){for(var Tr=this._state=[],Er=0;Er<25;Er++)Tr[Er]=new gr.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(Tr,Er){for(var xr=this._state,Sr=this.blockSize/2,kr=0;kr<Sr;kr++){var Pr=Tr[Er+2*kr],Ir=Tr[Er+2*kr+1];Pr=(Pr<<8|Pr>>>24)&16711935|(Pr<<24|Pr>>>8)&4278255360,Ir=(Ir<<8|Ir>>>24)&16711935|(Ir<<24|Ir>>>8)&4278255360;var Br=xr[kr];Br.high^=Ir,Br.low^=Pr}for(var Or=0;Or<24;Or++){for(var Nr=0;Nr<5;Nr++){for(var jr=0,Vr=0,$r=0;$r<5;$r++){var Br=xr[Nr+5*$r];jr^=Br.high,Vr^=Br.low}var zr=wr[Nr];zr.high=jr,zr.low=Vr}for(var Nr=0;Nr<5;Nr++)for(var Wr=wr[(Nr+4)%5],qr=wr[(Nr+1)%5],Mr=qr.high,Lr=qr.low,jr=Wr.high^(Mr<<1|Lr>>>31),Vr=Wr.low^(Lr<<1|Mr>>>31),$r=0;$r<5;$r++){var Br=xr[Nr+5*$r];Br.high^=jr,Br.low^=Vr}for(var Fr=1;Fr<25;Fr++){var jr,Vr,Br=xr[Fr],Dr=Br.high,Gr=Br.low,Rr=Cr[Fr];Rr<32?(jr=Dr<<Rr|Gr>>>32-Rr,Vr=Gr<<Rr|Dr>>>32-Rr):(jr=Gr<<Rr-32|Dr>>>64-Rr,Vr=Dr<<Rr-32|Gr>>>64-Rr);var Qr=wr[br[Fr]];Qr.high=jr,Qr.low=Vr}var Kr=wr[0],Hr=xr[0];Kr.high=Hr.high,Kr.low=Hr.low;for(var Nr=0;Nr<5;Nr++)for(var $r=0;$r<5;$r++){var Fr=Nr+5*$r,Br=xr[Fr],Ur=wr[Fr],Jr=wr[(Nr+1)%5+5*$r],Yr=wr[(Nr+2)%5+5*$r];Br.high=Ur.high^~Jr.high&Yr.high,Br.low=Ur.low^~Jr.low&Yr.low}var Br=xr[0],si=Ar[Or];Br.high^=si.high,Br.low^=si.low}},_doFinalize:function(){var Tr=this._data,Er=Tr.words;this._nDataBytes*8;var xr=Tr.sigBytes*8,Sr=this.blockSize*32;Er[xr>>>5]|=1<<24-xr%32,Er[(dr.ceil((xr+1)/Sr)*Sr>>>5)-1]|=128,Tr.sigBytes=Er.length*4,this._process();for(var kr=this._state,Pr=this.cfg.outputLength/8,Ir=Pr/8,Br=[],Or=0;Or<Ir;Or++){var Nr=kr[Or],jr=Nr.high,Vr=Nr.low;jr=(jr<<8|jr>>>24)&16711935|(jr<<24|jr>>>8)&4278255360,Vr=(Vr<<8|Vr>>>24)&16711935|(Vr<<24|Vr>>>8)&4278255360,Br.push(Vr),Br.push(jr)}return new vr.init(Br,Pr)},clone:function(){for(var Tr=pr.clone.call(this),Er=Tr._state=this._state.slice(0),xr=0;xr<25;xr++)Er[xr]=Er[xr].clone();return Tr}});fr.SHA3=pr._createHelper(_r),fr.HmacSHA3=pr._createHmacHelper(_r)}(Math),ur.SHA3})}(sha3)),sha3.exports}var ripemd160={exports:{}},hasRequiredRipemd160;function requireRipemd160(){return hasRequiredRipemd160||(hasRequiredRipemd160=1,function(ct,Dn){(function(ur,dr){ct.exports=dr(requireCore())})(commonjsGlobal,function(ur){/** @preserve
|
|
65
|
+
`);const{name:Er,value:xr,data:Sr,percent:kr}=wr||{};return _r+=jn(Tr,{textData:Object.assign({name:Er,value:xr,b:Er,d:xr||0,percent:kr},Sr)},{useNewline:!1,useSpace:!1}),_r},width:pr.labelWidth,overflow:pr.labelOverflow},labelLine:{show:pr.labelLineShow,length:pr.labelLineLength,length2:pr.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}}(ct,Dn,ur);case"radar":return function(pr,mr,gr){const yr=$e(mr.dimensions),Cr=$e(mr.dataset),br=mt(()=>{var _r;const Tr=[],Er=[],xr=Fe(Cr),Sr=xr.length;for(let kr=0;kr<Sr;kr++){const{data:Pr=[]}=xr[kr];for(let Ir=0;Ir<Pr.length;Ir++)Er.push(Pr[Ir].value)}if(!((_r=yr.value)===null||_r===void 0)&&_r.length){const kr=Er!=null&&Er.length?1.2*Math.max(...Er):0;for(const Pr of yr.value)Tr.push({name:Pr,max:kr})}return Tr}),Ar=mt(()=>{const _r=Fe(Cr),Tr=_r.length,Er=[];for(let xr=0;xr<Tr;xr++){const{name:Sr,data:kr=[]}=_r[xr],Pr=[{name:Sr,value:kr.map(Nr=>Nr.value)}];let Ir=pr.colors[xr];if(!Ir&&pr.colors.length){const Nr=(xr+1)%pr.colors.length-1;Ir=Nr>0?pr.colors[Nr]:pr.colors[0]}Ir||(Ir="#5470C6");let Br=Ir;if(pr.gradientShow){const{gradientOffset:Nr,gradientColors:jr}=pr;Br={x:.7,y:0,x2:0,y2:0,colorStops:[{offset:0,color:Ir},{offset:Nr,color:jr[xr]},{offset:1,color:jr[xr]}]}}const Or={type:"radar",name:Sr,data:Pr,areaStyle:{color:Br,opacity:pr.areaStyleOpacity},tooltip:{trigger:"item"},symbolSize:pr.symbolSize,lineStyle:{width:pr.lineStyleWidth},label:{show:pr.labelShow,fontSize:pr.labelFontSize,position:pr.labelPosition,color:pr.labelColor,width:pr.labelWidth,overflow:pr.labelOverflow,formatter:Nr=>{const{data:jr,value:Vr}=Nr;let $r=0,zr="0%";if(jr)for(const Wr of jr.value)$r+=+Wr;return $r&&(zr=`${(Vr/$r*100).toFixed(2)}%`),jn(pr.labelFormatter,{textData:{value:Vr,percent:zr}},{useNewline:!1,useSpace:!1})}}};Er.push(Or)}return Er}),wr=mt(()=>({tooltip:{trigger:"axis",textStyle:{fontSize:gr.value},show:pr.tooltipShow,formatter:_r=>{let Tr="",Er=pr.tooltipFormatter;Er===""&&(Er="{marker} {a} {c}");for(let xr=0;xr<Fe(br).length;xr++){const Sr=Fe(br)[xr],{marker:kr,seriesName:Pr,value:Ir}=_r||{};xr===0&&Pr&&(Tr+=`${Pr}<br/>`),Tr+=jn(Er,{textData:{marker:kr,name:Sr.name,value:Ir[xr],a:Sr.name,b:Sr.name,c:Ir[xr]||0,type:Pr}},{useNewline:!0,useSpace:!0}),Tr+="<br/>"}return Tr},position:pr.tooltipPosition||void 0},radar:{indicator:Fe(br),axisName:{color:pr.axisNameColor}},legend:{type:pr.legendScroll?"scroll":"plain",width:pr.legendWidth,height:pr.legendHeight,show:pr.legendShow,orient:pr.legendOrient,top:pr.legendTop,left:pr.legendLeft,textStyle:{lineHeight:parseFloat(pr.legendFontSize)+8,rich:{text:{width:pr.legendTextWidth,color:pr.legendTextStyleColor,fontSize:pr.legendFontSize}}},itemHeight:pr.legendItemHeight,itemWidth:pr.legendItemWidth,itemGap:pr.legendItemGap,data:Fe(Cr).map(_r=>({name:_r.name,icon:pr.legendType})),formatter:_r=>kn(pr.legendFormatter,{name:_r})},series:Fe(Ar)}));return Fe(wr)}(ct,Dn,ur);case"scatter":return ar(ct,Dn,ur,dr,fr,hr,vr);case"comboGraph":return function(pr,mr,gr,yr){const Cr=$e(mr.dimensions),br=$e(mr.dataset),Ar=mr.dataset,wr=xr=>{const Sr=[];let kr=0;return pr.seriesTypes.forEach((Pr,Ir)=>{var Br,Or;Pr.axisIndex===xr&&(!((Or=(Br=Fe(br)[Ir])===null||Br===void 0?void 0:Br.data)===null||Or===void 0)&&Or.length)&&Sr.push(...Fe(br)[Ir].data.map(Nr=>+Nr.value))}),Sr.some(Pr=>Pr>=1e7)?kr=4:Sr.some(Pr=>Pr>=1e6)?kr=3:Sr.some(Pr=>Pr>=1e4)&&(kr=1),kr},_r=$e([0,0]),Tr=mt(()=>{const xr=pr.yAxis;return xr==null?void 0:xr.map((Sr,kr)=>{const Pr=_r.value[kr];let Ir;return Pr&&(Ir=1e4*Math.pow(10,Pr-1)),{type:"value",minInterval:pr.yAxisMinInterval,splitLine:{show:kr===0?pr.yAxisLeftSplitLineShow:pr.yAxisRightSplitLineShow,lineStyle:{color:pr.yAxisSplitLineStyleColor,type:kr===0?pr.yAxisLeftSplitLineType:pr.yAxisRightSplitLineType}},splitArea:{show:pr.yAxisSplitAreaShow},axisLabel:{show:pr.yAxisLabelShow,fontSize:pr.yAxisLabelFontSize,color:pr.yAxisLabelColor,formatter(Br){let Or=Br;return Ir&&(Or=(+Br/Ir).toString()),er(Sr.axisLabelFormatter,Or)}},axisLine:{show:pr.yAxisLineAlwaysDisplay,lineStyle:{color:pr.yAxisLineStyleColor}},name:lr(Pr)+(kr===0?pr.yAxisLeftName:pr.yAxisRightName),nameTextStyle:{fontSize:pr.yAxisLabelFontSize,color:pr.yAxisLabelColor,align:kr===0?"right":"left"},max:pr.yAxisMaxValue||null}})});return _r.value[0]=pr.yAxisLeftUnitAdapt?wr(0):0,_r.value[1]=pr.yAxisRightUnitAdapt?wr(1):0,{legend:{type:pr.legendScroll?"scroll":"plain",width:pr.legendWidth,height:pr.legendHeight,show:pr.legendShow,orient:pr.legendOrient,top:pr.legendTop,left:pr.legendLeft,textStyle:{lineHeight:parseFloat(pr.legendFontSize)+8,rich:{text:{width:pr.legendTextWidth,color:pr.legendTextStyleColor,fontSize:pr.legendFontSize}}},itemHeight:pr.legendItemHeight,itemWidth:pr.legendItemWidth,itemGap:pr.legendItemGap,data:Fe(br).map((xr,Sr)=>({name:xr.name,itemStyle:{color:pr.colors[Sr]},icon:pr.legendType})),formatter:xr=>kn(pr.legendFormatter,{name:xr})},tooltip:{trigger:"axis",show:pr.tooltipShow,formatter:xr=>{var Sr;const kr=xr.length;let Pr="",Ir=pr.tooltipFormatter;yr!=null&&yr.getCurrentData&&yr.getCurrentData((Sr=xr[0])===null||Sr===void 0?void 0:Sr.data),Ir===""&&(Ir="{marker} {a} {c}");const Br=pr.seriesTypes;for(let Or=0;Or<kr;Or++){const Nr=Br[Or],{tooltipFormatter:jr}=Nr||{},{marker:Vr,seriesName:$r,name:zr,value:Wr,data:qr}=xr[Or]||{};if(Or===0){let Mr=zr;typeof zr!="string"||zr[0]!=="0"||isNaN(+zr)||(Mr=(+zr).toString()),Pr+=`${er(pr.xAxisLabelFormatter,Mr)}<br/>`}Pr+=jn(jr||Ir,{textData:Object.assign({marker:Vr,name:zr,value:Wr,seriesName:$r,a:$r,b:zr,c:Wr||0},qr)},{useNewline:!0,useSpace:!0}),Pr+="<br/>"}return Pr},textStyle:{color:pr.tooltipTextStyleColor,fontSize:gr.value},position:pr.tooltipPosition||void 0},xAxis:{minInterval:pr.xAxisMinInterval,type:"category",data:Fe(Cr).map(xr=>{let Sr={};return Sr=xr&&typeof xr=="object"?Object.assign({},xr):{value:xr},Sr}),splitLine:{show:pr.xAxisSplitLineShow,lineStyle:{color:pr.xAxisSplitLineStyleColor},interval:pr.xAxisSplitLineInterval},splitArea:{show:pr.xAxisSplitAreaShow},axisLabel:{show:pr.xAxisLabelShow,color:pr.xAxisLabelColor,interval:pr.xAxisLabelInterval||0,rotate:pr.xAxisLabelRotate,width:pr.xAxisLabelWidth,overflow:pr.xAxisLabelOverflow,fontSize:pr.xAxisLabelFontSize,formatter:xr=>(typeof xr!="string"||xr[0]!=="0"||isNaN(+xr)||(xr=(+xr).toString()),er(pr.xAxisLabelFormatter,xr))},axisLine:{show:pr.xAxisLineShow,lineStyle:{color:pr.xAxisLineStyleColor}},axisTick:{show:pr.xAxisTickShow},name:pr.xAxisName,nameTextStyle:{fontSize:pr.xAxisLabelFontSize,color:pr.xAxisLabelColor,align:"left"},max:pr.xAxisMaxValue||null},yAxis:Fe(Tr),series:function(xr){const Sr=[],kr=xr.length,Pr=pr.seriesTypes;for(let Ir=0;Ir<kr;Ir++){const Br=Pr[Ir],{type:Or,axisIndex:Nr}=Br||{};let jr=Object.assign({type:Or,yAxisIndex:Nr},xr[Ir]),Vr=pr.colors[Ir];if(!Vr&&pr.colors.length){const $r=(Ir+1)%pr.colors.length-1;Vr=$r>0?pr.colors[$r]:pr.colors[0]}if(Vr||(Vr="#5470C6"),Or==="line"){const $r={};pr.shadowColor&&($r.shadowColor=pr.shadowColor,$r.shadowBlur=pr.shadowBlur,$r.shadowOffsetY=pr.shadowOffsetY,$r.shadowOffsetX=pr.shadowOffsetX),jr=Object.assign(Object.assign({},jr),{symbolSize:pr.symbolSize,smooth:pr.smooth,itemStyle:{color:Vr},areaStyle:{color:pr.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:Vr},{offset:1,color:pr.areaGradientColor||"transparent"}],global:!1}:Vr,opacity:pr.areaStyleOpacity},lineStyle:Object.assign({width:pr.lineStyleWidth},$r)})}if(Or==="bar"){const{gradientShow:$r,gradientColors:zr,gradientOffset:Wr}=pr,qr={color:Vr};if(pr.barBorderRadius){const Mr=pr.barBorderRadius.split(",");if(Mr!=null&&Mr.length){const Lr=[];for(const Fr of Mr){const Dr=parseFloat(Fr);isNaN(Dr)||Lr.push(Dr)}qr.borderRadius=Lr}}$r&&(qr.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:Vr},{offset:Wr,color:zr[Ir]},{offset:1,color:zr[Ir]}]}),jr=Object.assign(Object.assign({},jr),{barWidth:pr.barWidth.value+pr.barWidth.suffix,itemStyle:qr,label:{show:pr.labelShow,fontSize:pr.labelFontSize,position:pr.labelPosition,color:pr.labelColor,width:pr.labelWidth,overflow:pr.labelOverflow,formatter:Mr=>{let Lr="",Fr=pr.labelFormatter;Fr===""&&(Fr="{c}");const{seriesName:Dr,name:Gr,value:Rr,data:Qr}=Mr||{};return Lr+=jn(Fr,{textData:Object.assign({name:Gr,value:Rr,a:Dr,b:Gr,c:Rr||0},Qr)},{useNewline:!0,useSpace:!0}),Lr}}})}pr.isShowMarkLine&&(jr.markLine={data:[{type:pr.markLineType}]}),Sr.push(jr)}return Sr}(Ar)}}(ct,Dn,ur,vr);default:return{}}},cr=(ct,Dn,{fontSize:ur=12,graphicConfig:dr={},maxValueObj:fr={},fontFamily:hr=null,componentValues:vr=null,callBackMethodMap:pr={}})=>Object.assign(Object.assign({},function(mr,gr,yr){return{textStyle:{fontFamily:Fe(gr)},toolbox:{show:mr.toolboxShow,left:mr.toolboxLeft,top:mr.toolboxTop,itemSize:mr.toolboxItemSize,itemGap:mr.toolboxItemGap,feature:{myLocation:{show:!!mr.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(){yr.toolboxLocationFun&&yr.toolboxLocationFun(mr)}},myDownload:{show:mr.toolboxDownloadUrl&&mr.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(){yr.toolboxDownloadShowFun&&yr.toolboxDownloadShowFun(mr)}},myDataZoom:{show:mr.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(){yr.toolboxDataZoomShowFun&&yr.toolboxDataZoomShowFun(mr)}},myInfo:{show:mr.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(){yr.toolboxInfoShowFun&&yr.toolboxInfoShowFun(mr)}},mySource:{show:mr.toolboxInfoSource,title:"指标来源",icon:"path://M473 71a8 8 0 0 1 8-8h64a8 8 0 0 1 8 8v77.161C722.848 166.622 857.812 301.289 876.729 471H952a8 8 0 0 1 8 8v64a8 8 0 0 1-8 8h-75.053C858.871 721.652 723.515 857.305 553 875.839V951a8 8 0 0 1-8 8h-64a8 8 0 0 1-8-8v-75.161C302.818 857.341 167.659 722.182 149.161 552H72a8 8 0 0 1-8-8v-64a8 8 0 0 1 8-8h77.161C167.659 301.818 302.818 166.659 473 148.161V71z m326 441c0-157.953-128.047-286-286-286S227 354.047 227 512s128.047 286 286 286 286-128.047 286-286z m-286 60c33.137 0 60-26.863 60-60s-26.863-60-60-60-60 26.863-60 60 26.863 60 60 60z",onclick(){yr.toolboxSourceShowFun&&yr.toolboxSourceShowFun(mr)}}}},title:{text:mr.titleText,subtext:mr.titleSubtext,textStyle:{fontSize:mr.titleFontSize,fontWeight:mr.fontWeight,color:mr.titleColor},left:mr.textAlign},grid:{top:mr.gridTop,bottom:mr.gridBottom,left:mr.gridLeft,right:mr.gridRight,containLabel:mr.gridContainLabel},color:mr.colors}}(ct,hr,pr)),sr(ct,Dn,ur,dr,fr,vr,pr)),styleList=["width","height","color","position","top","left","rotate","fontSize","fontFamily","fontWeight","textDecoration","textAlign","lineHeight","verticalAlign","overflow","backgroundColor","backgroundImage","backgroundSize","borderWidth","borderStyle","borderRadius","borderColor","textShadow","justifyContent","alignItems","zIndex","scale"],usePickComponentStyle=(ct,Dn=[])=>{const{pageMode:ur}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),dr=lodashEs.without(styleList,...Dn);return vue.computed(()=>{var vr,pr;const fr=lodashEs.pick(ct,dr),hr=["width","height","top","left"];for(const mr of hr)Tn(fr,mr)&&(["width","height"].includes(mr)&&((vr=ct[mr])==null?void 0:vr.suffix)==="%"&&vue.unref(ur)==="design"?fr[mr]="100%":(pr=ct[mr])!=null&&pr.suffix&&(fr[mr]=(ct[mr].value||0)+ct[mr].suffix));return fr})},useOnEvent=(ct,Dn)=>{vue.watch(()=>ct.id,ur=>{const dr=vue.inject(EVENT_BUS,{onEvent:(fr,hr,vr)=>{}});ur!=null&&ur!==""&&dr.onEvent(ur,Dn,ct.requestSort)},{immediate:!0})},ignoreClickType=["ecanTable"],useEmitEvent=ct=>{const Dn=ct.events,ur=ct.id,dr=vue.inject(EVENT_BUS,{emitEvent:(vr,pr)=>{}}),fr=vue.inject(COMMON_OPERATE,{operateAction:(vr,pr)=>{}}),{touchEventId:hr}=vue.inject(GLOBAL_CONFIG,{touchEventId:vue.ref("")});return(vr,pr=()=>{},mr)=>function(){pr.call(this,...arguments);const{emitEvent:gr}=dr,{operateAction:yr}=fr;vr==="click"&&!Dn.find(br=>br.on==="click")&&(!ignoreClickType.includes(ct.type)&&ct.dataType==="indicator"||ct.parentId)&&yr("SHOW_INDICATOR_DETAIL_MODAL",{props:ct}),hr.value=ur;try{gr(Dn.filter(Cr=>Cr.on===vr),mr)}catch(Cr){console.error(Cr)}}};var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(ct){return ct&&ct.__esModule&&Object.prototype.hasOwnProperty.call(ct,"default")?ct.default:ct}function getAugmentedNamespace(ct){if(ct.__esModule)return ct;var Dn=ct.default;if(typeof Dn=="function"){var ur=function dr(){return this instanceof dr?Reflect.construct(Dn,arguments,this.constructor):Dn.apply(this,arguments)};ur.prototype=Dn.prototype}else ur={};return Object.defineProperty(ur,"__esModule",{value:!0}),Object.keys(ct).forEach(function(dr){var fr=Object.getOwnPropertyDescriptor(ct,dr);Object.defineProperty(ur,dr,fr.get?fr:{enumerable:!0,get:function(){return ct[dr]}})}),ur}var cryptoJs={exports:{}};function commonjsRequire(ct){throw new Error('Could not dynamically require "'+ct+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var core={exports:{}};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);var hasRequiredCore;function requireCore(){return hasRequiredCore||(hasRequiredCore=1,function(ct,Dn){(function(ur,dr){ct.exports=dr()})(commonjsGlobal,function(){var ur=ur||function(dr,fr){var hr;if(typeof window<"u"&&window.crypto&&(hr=window.crypto),typeof self<"u"&&self.crypto&&(hr=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(hr=globalThis.crypto),!hr&&typeof window<"u"&&window.msCrypto&&(hr=window.msCrypto),!hr&&typeof commonjsGlobal<"u"&&commonjsGlobal.crypto&&(hr=commonjsGlobal.crypto),!hr&&typeof commonjsRequire=="function")try{hr=require$$0}catch{}var vr=function(){if(hr){if(typeof hr.getRandomValues=="function")try{return hr.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof hr.randomBytes=="function")try{return hr.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},pr=Object.create||function(){function xr(){}return function(Sr){var kr;return xr.prototype=Sr,kr=new xr,xr.prototype=null,kr}}(),mr={},gr=mr.lib={},yr=gr.Base=function(){return{extend:function(xr){var Sr=pr(this);return xr&&Sr.mixIn(xr),(!Sr.hasOwnProperty("init")||this.init===Sr.init)&&(Sr.init=function(){Sr.$super.init.apply(this,arguments)}),Sr.init.prototype=Sr,Sr.$super=this,Sr},create:function(){var xr=this.extend();return xr.init.apply(xr,arguments),xr},init:function(){},mixIn:function(xr){for(var Sr in xr)xr.hasOwnProperty(Sr)&&(this[Sr]=xr[Sr]);xr.hasOwnProperty("toString")&&(this.toString=xr.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),Cr=gr.WordArray=yr.extend({init:function(xr,Sr){xr=this.words=xr||[],Sr!=fr?this.sigBytes=Sr:this.sigBytes=xr.length*4},toString:function(xr){return(xr||Ar).stringify(this)},concat:function(xr){var Sr=this.words,kr=xr.words,Pr=this.sigBytes,Ir=xr.sigBytes;if(this.clamp(),Pr%4)for(var Br=0;Br<Ir;Br++){var Or=kr[Br>>>2]>>>24-Br%4*8&255;Sr[Pr+Br>>>2]|=Or<<24-(Pr+Br)%4*8}else for(var Nr=0;Nr<Ir;Nr+=4)Sr[Pr+Nr>>>2]=kr[Nr>>>2];return this.sigBytes+=Ir,this},clamp:function(){var xr=this.words,Sr=this.sigBytes;xr[Sr>>>2]&=4294967295<<32-Sr%4*8,xr.length=dr.ceil(Sr/4)},clone:function(){var xr=yr.clone.call(this);return xr.words=this.words.slice(0),xr},random:function(xr){for(var Sr=[],kr=0;kr<xr;kr+=4)Sr.push(vr());return new Cr.init(Sr,xr)}}),br=mr.enc={},Ar=br.Hex={stringify:function(xr){for(var Sr=xr.words,kr=xr.sigBytes,Pr=[],Ir=0;Ir<kr;Ir++){var Br=Sr[Ir>>>2]>>>24-Ir%4*8&255;Pr.push((Br>>>4).toString(16)),Pr.push((Br&15).toString(16))}return Pr.join("")},parse:function(xr){for(var Sr=xr.length,kr=[],Pr=0;Pr<Sr;Pr+=2)kr[Pr>>>3]|=parseInt(xr.substr(Pr,2),16)<<24-Pr%8*4;return new Cr.init(kr,Sr/2)}},wr=br.Latin1={stringify:function(xr){for(var Sr=xr.words,kr=xr.sigBytes,Pr=[],Ir=0;Ir<kr;Ir++){var Br=Sr[Ir>>>2]>>>24-Ir%4*8&255;Pr.push(String.fromCharCode(Br))}return Pr.join("")},parse:function(xr){for(var Sr=xr.length,kr=[],Pr=0;Pr<Sr;Pr++)kr[Pr>>>2]|=(xr.charCodeAt(Pr)&255)<<24-Pr%4*8;return new Cr.init(kr,Sr)}},_r=br.Utf8={stringify:function(xr){try{return decodeURIComponent(escape(wr.stringify(xr)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(xr){return wr.parse(unescape(encodeURIComponent(xr)))}},Tr=gr.BufferedBlockAlgorithm=yr.extend({reset:function(){this._data=new Cr.init,this._nDataBytes=0},_append:function(xr){typeof xr=="string"&&(xr=_r.parse(xr)),this._data.concat(xr),this._nDataBytes+=xr.sigBytes},_process:function(xr){var Sr,kr=this._data,Pr=kr.words,Ir=kr.sigBytes,Br=this.blockSize,Or=Br*4,Nr=Ir/Or;xr?Nr=dr.ceil(Nr):Nr=dr.max((Nr|0)-this._minBufferSize,0);var jr=Nr*Br,Vr=dr.min(jr*4,Ir);if(jr){for(var $r=0;$r<jr;$r+=Br)this._doProcessBlock(Pr,$r);Sr=Pr.splice(0,jr),kr.sigBytes-=Vr}return new Cr.init(Sr,Vr)},clone:function(){var xr=yr.clone.call(this);return xr._data=this._data.clone(),xr},_minBufferSize:0});gr.Hasher=Tr.extend({cfg:yr.extend(),init:function(xr){this.cfg=this.cfg.extend(xr),this.reset()},reset:function(){Tr.reset.call(this),this._doReset()},update:function(xr){return this._append(xr),this._process(),this},finalize:function(xr){xr&&this._append(xr);var Sr=this._doFinalize();return Sr},blockSize:16,_createHelper:function(xr){return function(Sr,kr){return new xr.init(kr).finalize(Sr)}},_createHmacHelper:function(xr){return function(Sr,kr){return new Er.HMAC.init(xr,kr).finalize(Sr)}}});var Er=mr.algo={};return mr}(Math);return ur})}(core)),core.exports}var x64Core={exports:{}},hasRequiredX64Core;function requireX64Core(){return hasRequiredX64Core||(hasRequiredX64Core=1,function(ct,Dn){(function(ur,dr){ct.exports=dr(requireCore())})(commonjsGlobal,function(ur){return function(dr){var fr=ur,hr=fr.lib,vr=hr.Base,pr=hr.WordArray,mr=fr.x64={};mr.Word=vr.extend({init:function(gr,yr){this.high=gr,this.low=yr}}),mr.WordArray=vr.extend({init:function(gr,yr){gr=this.words=gr||[],yr!=dr?this.sigBytes=yr:this.sigBytes=gr.length*8},toX32:function(){for(var gr=this.words,yr=gr.length,Cr=[],br=0;br<yr;br++){var Ar=gr[br];Cr.push(Ar.high),Cr.push(Ar.low)}return pr.create(Cr,this.sigBytes)},clone:function(){for(var gr=vr.clone.call(this),yr=gr.words=this.words.slice(0),Cr=yr.length,br=0;br<Cr;br++)yr[br]=yr[br].clone();return gr}})}(),ur})}(x64Core)),x64Core.exports}var libTypedarrays={exports:{}},hasRequiredLibTypedarrays;function requireLibTypedarrays(){return hasRequiredLibTypedarrays||(hasRequiredLibTypedarrays=1,function(ct,Dn){(function(ur,dr){ct.exports=dr(requireCore())})(commonjsGlobal,function(ur){return function(){if(typeof ArrayBuffer=="function"){var dr=ur,fr=dr.lib,hr=fr.WordArray,vr=hr.init,pr=hr.init=function(mr){if(mr instanceof ArrayBuffer&&(mr=new Uint8Array(mr)),(mr instanceof Int8Array||typeof Uint8ClampedArray<"u"&&mr instanceof Uint8ClampedArray||mr instanceof Int16Array||mr instanceof Uint16Array||mr instanceof Int32Array||mr instanceof Uint32Array||mr instanceof Float32Array||mr instanceof Float64Array)&&(mr=new Uint8Array(mr.buffer,mr.byteOffset,mr.byteLength)),mr instanceof Uint8Array){for(var gr=mr.byteLength,yr=[],Cr=0;Cr<gr;Cr++)yr[Cr>>>2]|=mr[Cr]<<24-Cr%4*8;vr.call(this,yr,gr)}else vr.apply(this,arguments)};pr.prototype=hr}}(),ur.lib.WordArray})}(libTypedarrays)),libTypedarrays.exports}var encUtf16={exports:{}},hasRequiredEncUtf16;function requireEncUtf16(){return hasRequiredEncUtf16||(hasRequiredEncUtf16=1,function(ct,Dn){(function(ur,dr){ct.exports=dr(requireCore())})(commonjsGlobal,function(ur){return function(){var dr=ur,fr=dr.lib,hr=fr.WordArray,vr=dr.enc;vr.Utf16=vr.Utf16BE={stringify:function(mr){for(var gr=mr.words,yr=mr.sigBytes,Cr=[],br=0;br<yr;br+=2){var Ar=gr[br>>>2]>>>16-br%4*8&65535;Cr.push(String.fromCharCode(Ar))}return Cr.join("")},parse:function(mr){for(var gr=mr.length,yr=[],Cr=0;Cr<gr;Cr++)yr[Cr>>>1]|=mr.charCodeAt(Cr)<<16-Cr%2*16;return hr.create(yr,gr*2)}},vr.Utf16LE={stringify:function(mr){for(var gr=mr.words,yr=mr.sigBytes,Cr=[],br=0;br<yr;br+=2){var Ar=pr(gr[br>>>2]>>>16-br%4*8&65535);Cr.push(String.fromCharCode(Ar))}return Cr.join("")},parse:function(mr){for(var gr=mr.length,yr=[],Cr=0;Cr<gr;Cr++)yr[Cr>>>1]|=pr(mr.charCodeAt(Cr)<<16-Cr%2*16);return hr.create(yr,gr*2)}};function pr(mr){return mr<<8&4278255360|mr>>>8&16711935}}(),ur.enc.Utf16})}(encUtf16)),encUtf16.exports}var encBase64={exports:{}},hasRequiredEncBase64;function requireEncBase64(){return hasRequiredEncBase64||(hasRequiredEncBase64=1,function(ct,Dn){(function(ur,dr){ct.exports=dr(requireCore())})(commonjsGlobal,function(ur){return function(){var dr=ur,fr=dr.lib,hr=fr.WordArray,vr=dr.enc;vr.Base64={stringify:function(mr){var gr=mr.words,yr=mr.sigBytes,Cr=this._map;mr.clamp();for(var br=[],Ar=0;Ar<yr;Ar+=3)for(var wr=gr[Ar>>>2]>>>24-Ar%4*8&255,_r=gr[Ar+1>>>2]>>>24-(Ar+1)%4*8&255,Tr=gr[Ar+2>>>2]>>>24-(Ar+2)%4*8&255,Er=wr<<16|_r<<8|Tr,xr=0;xr<4&&Ar+xr*.75<yr;xr++)br.push(Cr.charAt(Er>>>6*(3-xr)&63));var Sr=Cr.charAt(64);if(Sr)for(;br.length%4;)br.push(Sr);return br.join("")},parse:function(mr){var gr=mr.length,yr=this._map,Cr=this._reverseMap;if(!Cr){Cr=this._reverseMap=[];for(var br=0;br<yr.length;br++)Cr[yr.charCodeAt(br)]=br}var Ar=yr.charAt(64);if(Ar){var wr=mr.indexOf(Ar);wr!==-1&&(gr=wr)}return pr(mr,gr,Cr)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function pr(mr,gr,yr){for(var Cr=[],br=0,Ar=0;Ar<gr;Ar++)if(Ar%4){var wr=yr[mr.charCodeAt(Ar-1)]<<Ar%4*2,_r=yr[mr.charCodeAt(Ar)]>>>6-Ar%4*2,Tr=wr|_r;Cr[br>>>2]|=Tr<<24-br%4*8,br++}return hr.create(Cr,br)}}(),ur.enc.Base64})}(encBase64)),encBase64.exports}var encBase64url={exports:{}},hasRequiredEncBase64url;function requireEncBase64url(){return hasRequiredEncBase64url||(hasRequiredEncBase64url=1,function(ct,Dn){(function(ur,dr){ct.exports=dr(requireCore())})(commonjsGlobal,function(ur){return function(){var dr=ur,fr=dr.lib,hr=fr.WordArray,vr=dr.enc;vr.Base64url={stringify:function(mr,gr=!0){var yr=mr.words,Cr=mr.sigBytes,br=gr?this._safe_map:this._map;mr.clamp();for(var Ar=[],wr=0;wr<Cr;wr+=3)for(var _r=yr[wr>>>2]>>>24-wr%4*8&255,Tr=yr[wr+1>>>2]>>>24-(wr+1)%4*8&255,Er=yr[wr+2>>>2]>>>24-(wr+2)%4*8&255,xr=_r<<16|Tr<<8|Er,Sr=0;Sr<4&&wr+Sr*.75<Cr;Sr++)Ar.push(br.charAt(xr>>>6*(3-Sr)&63));var kr=br.charAt(64);if(kr)for(;Ar.length%4;)Ar.push(kr);return Ar.join("")},parse:function(mr,gr=!0){var yr=mr.length,Cr=gr?this._safe_map:this._map,br=this._reverseMap;if(!br){br=this._reverseMap=[];for(var Ar=0;Ar<Cr.length;Ar++)br[Cr.charCodeAt(Ar)]=Ar}var wr=Cr.charAt(64);if(wr){var _r=mr.indexOf(wr);_r!==-1&&(yr=_r)}return pr(mr,yr,br)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function pr(mr,gr,yr){for(var Cr=[],br=0,Ar=0;Ar<gr;Ar++)if(Ar%4){var wr=yr[mr.charCodeAt(Ar-1)]<<Ar%4*2,_r=yr[mr.charCodeAt(Ar)]>>>6-Ar%4*2,Tr=wr|_r;Cr[br>>>2]|=Tr<<24-br%4*8,br++}return hr.create(Cr,br)}}(),ur.enc.Base64url})}(encBase64url)),encBase64url.exports}var md5={exports:{}},hasRequiredMd5;function requireMd5(){return hasRequiredMd5||(hasRequiredMd5=1,function(ct,Dn){(function(ur,dr){ct.exports=dr(requireCore())})(commonjsGlobal,function(ur){return function(dr){var fr=ur,hr=fr.lib,vr=hr.WordArray,pr=hr.Hasher,mr=fr.algo,gr=[];(function(){for(var _r=0;_r<64;_r++)gr[_r]=dr.abs(dr.sin(_r+1))*4294967296|0})();var yr=mr.MD5=pr.extend({_doReset:function(){this._hash=new vr.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(_r,Tr){for(var Er=0;Er<16;Er++){var xr=Tr+Er,Sr=_r[xr];_r[xr]=(Sr<<8|Sr>>>24)&16711935|(Sr<<24|Sr>>>8)&4278255360}var kr=this._hash.words,Pr=_r[Tr+0],Ir=_r[Tr+1],Br=_r[Tr+2],Or=_r[Tr+3],Nr=_r[Tr+4],jr=_r[Tr+5],Vr=_r[Tr+6],$r=_r[Tr+7],zr=_r[Tr+8],Wr=_r[Tr+9],qr=_r[Tr+10],Mr=_r[Tr+11],Lr=_r[Tr+12],Fr=_r[Tr+13],Dr=_r[Tr+14],Gr=_r[Tr+15],Rr=kr[0],Qr=kr[1],Kr=kr[2],Hr=kr[3];Rr=Cr(Rr,Qr,Kr,Hr,Pr,7,gr[0]),Hr=Cr(Hr,Rr,Qr,Kr,Ir,12,gr[1]),Kr=Cr(Kr,Hr,Rr,Qr,Br,17,gr[2]),Qr=Cr(Qr,Kr,Hr,Rr,Or,22,gr[3]),Rr=Cr(Rr,Qr,Kr,Hr,Nr,7,gr[4]),Hr=Cr(Hr,Rr,Qr,Kr,jr,12,gr[5]),Kr=Cr(Kr,Hr,Rr,Qr,Vr,17,gr[6]),Qr=Cr(Qr,Kr,Hr,Rr,$r,22,gr[7]),Rr=Cr(Rr,Qr,Kr,Hr,zr,7,gr[8]),Hr=Cr(Hr,Rr,Qr,Kr,Wr,12,gr[9]),Kr=Cr(Kr,Hr,Rr,Qr,qr,17,gr[10]),Qr=Cr(Qr,Kr,Hr,Rr,Mr,22,gr[11]),Rr=Cr(Rr,Qr,Kr,Hr,Lr,7,gr[12]),Hr=Cr(Hr,Rr,Qr,Kr,Fr,12,gr[13]),Kr=Cr(Kr,Hr,Rr,Qr,Dr,17,gr[14]),Qr=Cr(Qr,Kr,Hr,Rr,Gr,22,gr[15]),Rr=br(Rr,Qr,Kr,Hr,Ir,5,gr[16]),Hr=br(Hr,Rr,Qr,Kr,Vr,9,gr[17]),Kr=br(Kr,Hr,Rr,Qr,Mr,14,gr[18]),Qr=br(Qr,Kr,Hr,Rr,Pr,20,gr[19]),Rr=br(Rr,Qr,Kr,Hr,jr,5,gr[20]),Hr=br(Hr,Rr,Qr,Kr,qr,9,gr[21]),Kr=br(Kr,Hr,Rr,Qr,Gr,14,gr[22]),Qr=br(Qr,Kr,Hr,Rr,Nr,20,gr[23]),Rr=br(Rr,Qr,Kr,Hr,Wr,5,gr[24]),Hr=br(Hr,Rr,Qr,Kr,Dr,9,gr[25]),Kr=br(Kr,Hr,Rr,Qr,Or,14,gr[26]),Qr=br(Qr,Kr,Hr,Rr,zr,20,gr[27]),Rr=br(Rr,Qr,Kr,Hr,Fr,5,gr[28]),Hr=br(Hr,Rr,Qr,Kr,Br,9,gr[29]),Kr=br(Kr,Hr,Rr,Qr,$r,14,gr[30]),Qr=br(Qr,Kr,Hr,Rr,Lr,20,gr[31]),Rr=Ar(Rr,Qr,Kr,Hr,jr,4,gr[32]),Hr=Ar(Hr,Rr,Qr,Kr,zr,11,gr[33]),Kr=Ar(Kr,Hr,Rr,Qr,Mr,16,gr[34]),Qr=Ar(Qr,Kr,Hr,Rr,Dr,23,gr[35]),Rr=Ar(Rr,Qr,Kr,Hr,Ir,4,gr[36]),Hr=Ar(Hr,Rr,Qr,Kr,Nr,11,gr[37]),Kr=Ar(Kr,Hr,Rr,Qr,$r,16,gr[38]),Qr=Ar(Qr,Kr,Hr,Rr,qr,23,gr[39]),Rr=Ar(Rr,Qr,Kr,Hr,Fr,4,gr[40]),Hr=Ar(Hr,Rr,Qr,Kr,Pr,11,gr[41]),Kr=Ar(Kr,Hr,Rr,Qr,Or,16,gr[42]),Qr=Ar(Qr,Kr,Hr,Rr,Vr,23,gr[43]),Rr=Ar(Rr,Qr,Kr,Hr,Wr,4,gr[44]),Hr=Ar(Hr,Rr,Qr,Kr,Lr,11,gr[45]),Kr=Ar(Kr,Hr,Rr,Qr,Gr,16,gr[46]),Qr=Ar(Qr,Kr,Hr,Rr,Br,23,gr[47]),Rr=wr(Rr,Qr,Kr,Hr,Pr,6,gr[48]),Hr=wr(Hr,Rr,Qr,Kr,$r,10,gr[49]),Kr=wr(Kr,Hr,Rr,Qr,Dr,15,gr[50]),Qr=wr(Qr,Kr,Hr,Rr,jr,21,gr[51]),Rr=wr(Rr,Qr,Kr,Hr,Lr,6,gr[52]),Hr=wr(Hr,Rr,Qr,Kr,Or,10,gr[53]),Kr=wr(Kr,Hr,Rr,Qr,qr,15,gr[54]),Qr=wr(Qr,Kr,Hr,Rr,Ir,21,gr[55]),Rr=wr(Rr,Qr,Kr,Hr,zr,6,gr[56]),Hr=wr(Hr,Rr,Qr,Kr,Gr,10,gr[57]),Kr=wr(Kr,Hr,Rr,Qr,Vr,15,gr[58]),Qr=wr(Qr,Kr,Hr,Rr,Fr,21,gr[59]),Rr=wr(Rr,Qr,Kr,Hr,Nr,6,gr[60]),Hr=wr(Hr,Rr,Qr,Kr,Mr,10,gr[61]),Kr=wr(Kr,Hr,Rr,Qr,Br,15,gr[62]),Qr=wr(Qr,Kr,Hr,Rr,Wr,21,gr[63]),kr[0]=kr[0]+Rr|0,kr[1]=kr[1]+Qr|0,kr[2]=kr[2]+Kr|0,kr[3]=kr[3]+Hr|0},_doFinalize:function(){var _r=this._data,Tr=_r.words,Er=this._nDataBytes*8,xr=_r.sigBytes*8;Tr[xr>>>5]|=128<<24-xr%32;var Sr=dr.floor(Er/4294967296),kr=Er;Tr[(xr+64>>>9<<4)+15]=(Sr<<8|Sr>>>24)&16711935|(Sr<<24|Sr>>>8)&4278255360,Tr[(xr+64>>>9<<4)+14]=(kr<<8|kr>>>24)&16711935|(kr<<24|kr>>>8)&4278255360,_r.sigBytes=(Tr.length+1)*4,this._process();for(var Pr=this._hash,Ir=Pr.words,Br=0;Br<4;Br++){var Or=Ir[Br];Ir[Br]=(Or<<8|Or>>>24)&16711935|(Or<<24|Or>>>8)&4278255360}return Pr},clone:function(){var _r=pr.clone.call(this);return _r._hash=this._hash.clone(),_r}});function Cr(_r,Tr,Er,xr,Sr,kr,Pr){var Ir=_r+(Tr&Er|~Tr&xr)+Sr+Pr;return(Ir<<kr|Ir>>>32-kr)+Tr}function br(_r,Tr,Er,xr,Sr,kr,Pr){var Ir=_r+(Tr&xr|Er&~xr)+Sr+Pr;return(Ir<<kr|Ir>>>32-kr)+Tr}function Ar(_r,Tr,Er,xr,Sr,kr,Pr){var Ir=_r+(Tr^Er^xr)+Sr+Pr;return(Ir<<kr|Ir>>>32-kr)+Tr}function wr(_r,Tr,Er,xr,Sr,kr,Pr){var Ir=_r+(Er^(Tr|~xr))+Sr+Pr;return(Ir<<kr|Ir>>>32-kr)+Tr}fr.MD5=pr._createHelper(yr),fr.HmacMD5=pr._createHmacHelper(yr)}(Math),ur.MD5})}(md5)),md5.exports}var sha1={exports:{}},hasRequiredSha1;function requireSha1(){return hasRequiredSha1||(hasRequiredSha1=1,function(ct,Dn){(function(ur,dr){ct.exports=dr(requireCore())})(commonjsGlobal,function(ur){return function(){var dr=ur,fr=dr.lib,hr=fr.WordArray,vr=fr.Hasher,pr=dr.algo,mr=[],gr=pr.SHA1=vr.extend({_doReset:function(){this._hash=new hr.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(yr,Cr){for(var br=this._hash.words,Ar=br[0],wr=br[1],_r=br[2],Tr=br[3],Er=br[4],xr=0;xr<80;xr++){if(xr<16)mr[xr]=yr[Cr+xr]|0;else{var Sr=mr[xr-3]^mr[xr-8]^mr[xr-14]^mr[xr-16];mr[xr]=Sr<<1|Sr>>>31}var kr=(Ar<<5|Ar>>>27)+Er+mr[xr];xr<20?kr+=(wr&_r|~wr&Tr)+1518500249:xr<40?kr+=(wr^_r^Tr)+1859775393:xr<60?kr+=(wr&_r|wr&Tr|_r&Tr)-1894007588:kr+=(wr^_r^Tr)-899497514,Er=Tr,Tr=_r,_r=wr<<30|wr>>>2,wr=Ar,Ar=kr}br[0]=br[0]+Ar|0,br[1]=br[1]+wr|0,br[2]=br[2]+_r|0,br[3]=br[3]+Tr|0,br[4]=br[4]+Er|0},_doFinalize:function(){var yr=this._data,Cr=yr.words,br=this._nDataBytes*8,Ar=yr.sigBytes*8;return Cr[Ar>>>5]|=128<<24-Ar%32,Cr[(Ar+64>>>9<<4)+14]=Math.floor(br/4294967296),Cr[(Ar+64>>>9<<4)+15]=br,yr.sigBytes=Cr.length*4,this._process(),this._hash},clone:function(){var yr=vr.clone.call(this);return yr._hash=this._hash.clone(),yr}});dr.SHA1=vr._createHelper(gr),dr.HmacSHA1=vr._createHmacHelper(gr)}(),ur.SHA1})}(sha1)),sha1.exports}var sha256={exports:{}},hasRequiredSha256;function requireSha256(){return hasRequiredSha256||(hasRequiredSha256=1,function(ct,Dn){(function(ur,dr){ct.exports=dr(requireCore())})(commonjsGlobal,function(ur){return function(dr){var fr=ur,hr=fr.lib,vr=hr.WordArray,pr=hr.Hasher,mr=fr.algo,gr=[],yr=[];(function(){function Ar(Er){for(var xr=dr.sqrt(Er),Sr=2;Sr<=xr;Sr++)if(!(Er%Sr))return!1;return!0}function wr(Er){return(Er-(Er|0))*4294967296|0}for(var _r=2,Tr=0;Tr<64;)Ar(_r)&&(Tr<8&&(gr[Tr]=wr(dr.pow(_r,1/2))),yr[Tr]=wr(dr.pow(_r,1/3)),Tr++),_r++})();var Cr=[],br=mr.SHA256=pr.extend({_doReset:function(){this._hash=new vr.init(gr.slice(0))},_doProcessBlock:function(Ar,wr){for(var _r=this._hash.words,Tr=_r[0],Er=_r[1],xr=_r[2],Sr=_r[3],kr=_r[4],Pr=_r[5],Ir=_r[6],Br=_r[7],Or=0;Or<64;Or++){if(Or<16)Cr[Or]=Ar[wr+Or]|0;else{var Nr=Cr[Or-15],jr=(Nr<<25|Nr>>>7)^(Nr<<14|Nr>>>18)^Nr>>>3,Vr=Cr[Or-2],$r=(Vr<<15|Vr>>>17)^(Vr<<13|Vr>>>19)^Vr>>>10;Cr[Or]=jr+Cr[Or-7]+$r+Cr[Or-16]}var zr=kr&Pr^~kr&Ir,Wr=Tr&Er^Tr&xr^Er&xr,qr=(Tr<<30|Tr>>>2)^(Tr<<19|Tr>>>13)^(Tr<<10|Tr>>>22),Mr=(kr<<26|kr>>>6)^(kr<<21|kr>>>11)^(kr<<7|kr>>>25),Lr=Br+Mr+zr+yr[Or]+Cr[Or],Fr=qr+Wr;Br=Ir,Ir=Pr,Pr=kr,kr=Sr+Lr|0,Sr=xr,xr=Er,Er=Tr,Tr=Lr+Fr|0}_r[0]=_r[0]+Tr|0,_r[1]=_r[1]+Er|0,_r[2]=_r[2]+xr|0,_r[3]=_r[3]+Sr|0,_r[4]=_r[4]+kr|0,_r[5]=_r[5]+Pr|0,_r[6]=_r[6]+Ir|0,_r[7]=_r[7]+Br|0},_doFinalize:function(){var Ar=this._data,wr=Ar.words,_r=this._nDataBytes*8,Tr=Ar.sigBytes*8;return wr[Tr>>>5]|=128<<24-Tr%32,wr[(Tr+64>>>9<<4)+14]=dr.floor(_r/4294967296),wr[(Tr+64>>>9<<4)+15]=_r,Ar.sigBytes=wr.length*4,this._process(),this._hash},clone:function(){var Ar=pr.clone.call(this);return Ar._hash=this._hash.clone(),Ar}});fr.SHA256=pr._createHelper(br),fr.HmacSHA256=pr._createHmacHelper(br)}(Math),ur.SHA256})}(sha256)),sha256.exports}var sha224={exports:{}},hasRequiredSha224;function requireSha224(){return hasRequiredSha224||(hasRequiredSha224=1,function(ct,Dn){(function(ur,dr,fr){ct.exports=dr(requireCore(),requireSha256())})(commonjsGlobal,function(ur){return function(){var dr=ur,fr=dr.lib,hr=fr.WordArray,vr=dr.algo,pr=vr.SHA256,mr=vr.SHA224=pr.extend({_doReset:function(){this._hash=new hr.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var gr=pr._doFinalize.call(this);return gr.sigBytes-=4,gr}});dr.SHA224=pr._createHelper(mr),dr.HmacSHA224=pr._createHmacHelper(mr)}(),ur.SHA224})}(sha224)),sha224.exports}var sha512={exports:{}},hasRequiredSha512;function requireSha512(){return hasRequiredSha512||(hasRequiredSha512=1,function(ct,Dn){(function(ur,dr,fr){ct.exports=dr(requireCore(),requireX64Core())})(commonjsGlobal,function(ur){return function(){var dr=ur,fr=dr.lib,hr=fr.Hasher,vr=dr.x64,pr=vr.Word,mr=vr.WordArray,gr=dr.algo;function yr(){return pr.create.apply(pr,arguments)}var Cr=[yr(1116352408,3609767458),yr(1899447441,602891725),yr(3049323471,3964484399),yr(3921009573,2173295548),yr(961987163,4081628472),yr(1508970993,3053834265),yr(2453635748,2937671579),yr(2870763221,3664609560),yr(3624381080,2734883394),yr(310598401,1164996542),yr(607225278,1323610764),yr(1426881987,3590304994),yr(1925078388,4068182383),yr(2162078206,991336113),yr(2614888103,633803317),yr(3248222580,3479774868),yr(3835390401,2666613458),yr(4022224774,944711139),yr(264347078,2341262773),yr(604807628,2007800933),yr(770255983,1495990901),yr(1249150122,1856431235),yr(1555081692,3175218132),yr(1996064986,2198950837),yr(2554220882,3999719339),yr(2821834349,766784016),yr(2952996808,2566594879),yr(3210313671,3203337956),yr(3336571891,1034457026),yr(3584528711,2466948901),yr(113926993,3758326383),yr(338241895,168717936),yr(666307205,1188179964),yr(773529912,1546045734),yr(1294757372,1522805485),yr(1396182291,2643833823),yr(1695183700,2343527390),yr(1986661051,1014477480),yr(2177026350,1206759142),yr(2456956037,344077627),yr(2730485921,1290863460),yr(2820302411,3158454273),yr(3259730800,3505952657),yr(3345764771,106217008),yr(3516065817,3606008344),yr(3600352804,1432725776),yr(4094571909,1467031594),yr(275423344,851169720),yr(430227734,3100823752),yr(506948616,1363258195),yr(659060556,3750685593),yr(883997877,3785050280),yr(958139571,3318307427),yr(1322822218,3812723403),yr(1537002063,2003034995),yr(1747873779,3602036899),yr(1955562222,1575990012),yr(2024104815,1125592928),yr(2227730452,2716904306),yr(2361852424,442776044),yr(2428436474,593698344),yr(2756734187,3733110249),yr(3204031479,2999351573),yr(3329325298,3815920427),yr(3391569614,3928383900),yr(3515267271,566280711),yr(3940187606,3454069534),yr(4118630271,4000239992),yr(116418474,1914138554),yr(174292421,2731055270),yr(289380356,3203993006),yr(460393269,320620315),yr(685471733,587496836),yr(852142971,1086792851),yr(1017036298,365543100),yr(1126000580,2618297676),yr(1288033470,3409855158),yr(1501505948,4234509866),yr(1607167915,987167468),yr(1816402316,1246189591)],br=[];(function(){for(var wr=0;wr<80;wr++)br[wr]=yr()})();var Ar=gr.SHA512=hr.extend({_doReset:function(){this._hash=new mr.init([new pr.init(1779033703,4089235720),new pr.init(3144134277,2227873595),new pr.init(1013904242,4271175723),new pr.init(2773480762,1595750129),new pr.init(1359893119,2917565137),new pr.init(2600822924,725511199),new pr.init(528734635,4215389547),new pr.init(1541459225,327033209)])},_doProcessBlock:function(wr,_r){for(var Tr=this._hash.words,Er=Tr[0],xr=Tr[1],Sr=Tr[2],kr=Tr[3],Pr=Tr[4],Ir=Tr[5],Br=Tr[6],Or=Tr[7],Nr=Er.high,jr=Er.low,Vr=xr.high,$r=xr.low,zr=Sr.high,Wr=Sr.low,qr=kr.high,Mr=kr.low,Lr=Pr.high,Fr=Pr.low,Dr=Ir.high,Gr=Ir.low,Rr=Br.high,Qr=Br.low,Kr=Or.high,Hr=Or.low,Ur=Nr,Jr=jr,Yr=Vr,si=$r,fi=zr,_i=Wr,bi=qr,pi=Mr,mi=Lr,xi=Fr,ni=Dr,ai=Gr,Xr=Rr,vi=Qr,Si=Kr,ri=Hr,yi=0;yi<80;yi++){var di,Ei,Oi=br[yi];if(yi<16)Ei=Oi.high=wr[_r+yi*2]|0,di=Oi.low=wr[_r+yi*2+1]|0;else{var Li=br[yi-15],Ri=Li.high,hi=Li.low,Ci=(Ri>>>1|hi<<31)^(Ri>>>8|hi<<24)^Ri>>>7,Di=(hi>>>1|Ri<<31)^(hi>>>8|Ri<<24)^(hi>>>7|Ri<<25),$i=br[yi-2],Fi=$i.high,qi=$i.low,Qi=(Fi>>>19|qi<<13)^(Fi<<3|qi>>>29)^Fi>>>6,la=(qi>>>19|Fi<<13)^(qi<<3|Fi>>>29)^(qi>>>6|Fi<<26),da=br[yi-7],va=da.high,ya=da.low,ba=br[yi-16],Sa=ba.high,La=ba.low;di=Di+ya,Ei=Ci+va+(di>>>0<Di>>>0?1:0),di=di+la,Ei=Ei+Qi+(di>>>0<la>>>0?1:0),di=di+La,Ei=Ei+Sa+(di>>>0<La>>>0?1:0),Oi.high=Ei,Oi.low=di}var qa=mi&ni^~mi&Xr,ka=xi&ai^~xi&vi,Ba=Ur&Yr^Ur&fi^Yr&fi,Ha=Jr&si^Jr&_i^si&_i,Ia=(Ur>>>28|Jr<<4)^(Ur<<30|Jr>>>2)^(Ur<<25|Jr>>>7),Ga=(Jr>>>28|Ur<<4)^(Jr<<30|Ur>>>2)^(Jr<<25|Ur>>>7),Va=(mi>>>14|xi<<18)^(mi>>>18|xi<<14)^(mi<<23|xi>>>9),Ua=(xi>>>14|mi<<18)^(xi>>>18|mi<<14)^(xi<<23|mi>>>9),Vi=Cr[yi],Wi=Vi.high,Hi=Vi.low,Ji=ri+Ua,ea=Si+Va+(Ji>>>0<ri>>>0?1:0),Ji=Ji+ka,ea=ea+qa+(Ji>>>0<ka>>>0?1:0),Ji=Ji+Hi,ea=ea+Wi+(Ji>>>0<Hi>>>0?1:0),Ji=Ji+di,ea=ea+Ei+(Ji>>>0<di>>>0?1:0),ta=Ga+Ha,ca=Ia+Ba+(ta>>>0<Ga>>>0?1:0);Si=Xr,ri=vi,Xr=ni,vi=ai,ni=mi,ai=xi,xi=pi+Ji|0,mi=bi+ea+(xi>>>0<pi>>>0?1:0)|0,bi=fi,pi=_i,fi=Yr,_i=si,Yr=Ur,si=Jr,Jr=Ji+ta|0,Ur=ea+ca+(Jr>>>0<Ji>>>0?1:0)|0}jr=Er.low=jr+Jr,Er.high=Nr+Ur+(jr>>>0<Jr>>>0?1:0),$r=xr.low=$r+si,xr.high=Vr+Yr+($r>>>0<si>>>0?1:0),Wr=Sr.low=Wr+_i,Sr.high=zr+fi+(Wr>>>0<_i>>>0?1:0),Mr=kr.low=Mr+pi,kr.high=qr+bi+(Mr>>>0<pi>>>0?1:0),Fr=Pr.low=Fr+xi,Pr.high=Lr+mi+(Fr>>>0<xi>>>0?1:0),Gr=Ir.low=Gr+ai,Ir.high=Dr+ni+(Gr>>>0<ai>>>0?1:0),Qr=Br.low=Qr+vi,Br.high=Rr+Xr+(Qr>>>0<vi>>>0?1:0),Hr=Or.low=Hr+ri,Or.high=Kr+Si+(Hr>>>0<ri>>>0?1:0)},_doFinalize:function(){var wr=this._data,_r=wr.words,Tr=this._nDataBytes*8,Er=wr.sigBytes*8;_r[Er>>>5]|=128<<24-Er%32,_r[(Er+128>>>10<<5)+30]=Math.floor(Tr/4294967296),_r[(Er+128>>>10<<5)+31]=Tr,wr.sigBytes=_r.length*4,this._process();var xr=this._hash.toX32();return xr},clone:function(){var wr=hr.clone.call(this);return wr._hash=this._hash.clone(),wr},blockSize:1024/32});dr.SHA512=hr._createHelper(Ar),dr.HmacSHA512=hr._createHmacHelper(Ar)}(),ur.SHA512})}(sha512)),sha512.exports}var sha384={exports:{}},hasRequiredSha384;function requireSha384(){return hasRequiredSha384||(hasRequiredSha384=1,function(ct,Dn){(function(ur,dr,fr){ct.exports=dr(requireCore(),requireX64Core(),requireSha512())})(commonjsGlobal,function(ur){return function(){var dr=ur,fr=dr.x64,hr=fr.Word,vr=fr.WordArray,pr=dr.algo,mr=pr.SHA512,gr=pr.SHA384=mr.extend({_doReset:function(){this._hash=new vr.init([new hr.init(3418070365,3238371032),new hr.init(1654270250,914150663),new hr.init(2438529370,812702999),new hr.init(355462360,4144912697),new hr.init(1731405415,4290775857),new hr.init(2394180231,1750603025),new hr.init(3675008525,1694076839),new hr.init(1203062813,3204075428)])},_doFinalize:function(){var yr=mr._doFinalize.call(this);return yr.sigBytes-=16,yr}});dr.SHA384=mr._createHelper(gr),dr.HmacSHA384=mr._createHmacHelper(gr)}(),ur.SHA384})}(sha384)),sha384.exports}var sha3={exports:{}},hasRequiredSha3;function requireSha3(){return hasRequiredSha3||(hasRequiredSha3=1,function(ct,Dn){(function(ur,dr,fr){ct.exports=dr(requireCore(),requireX64Core())})(commonjsGlobal,function(ur){return function(dr){var fr=ur,hr=fr.lib,vr=hr.WordArray,pr=hr.Hasher,mr=fr.x64,gr=mr.Word,yr=fr.algo,Cr=[],br=[],Ar=[];(function(){for(var Tr=1,Er=0,xr=0;xr<24;xr++){Cr[Tr+5*Er]=(xr+1)*(xr+2)/2%64;var Sr=Er%5,kr=(2*Tr+3*Er)%5;Tr=Sr,Er=kr}for(var Tr=0;Tr<5;Tr++)for(var Er=0;Er<5;Er++)br[Tr+5*Er]=Er+(2*Tr+3*Er)%5*5;for(var Pr=1,Ir=0;Ir<24;Ir++){for(var Br=0,Or=0,Nr=0;Nr<7;Nr++){if(Pr&1){var jr=(1<<Nr)-1;jr<32?Or^=1<<jr:Br^=1<<jr-32}Pr&128?Pr=Pr<<1^113:Pr<<=1}Ar[Ir]=gr.create(Br,Or)}})();var wr=[];(function(){for(var Tr=0;Tr<25;Tr++)wr[Tr]=gr.create()})();var _r=yr.SHA3=pr.extend({cfg:pr.cfg.extend({outputLength:512}),_doReset:function(){for(var Tr=this._state=[],Er=0;Er<25;Er++)Tr[Er]=new gr.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(Tr,Er){for(var xr=this._state,Sr=this.blockSize/2,kr=0;kr<Sr;kr++){var Pr=Tr[Er+2*kr],Ir=Tr[Er+2*kr+1];Pr=(Pr<<8|Pr>>>24)&16711935|(Pr<<24|Pr>>>8)&4278255360,Ir=(Ir<<8|Ir>>>24)&16711935|(Ir<<24|Ir>>>8)&4278255360;var Br=xr[kr];Br.high^=Ir,Br.low^=Pr}for(var Or=0;Or<24;Or++){for(var Nr=0;Nr<5;Nr++){for(var jr=0,Vr=0,$r=0;$r<5;$r++){var Br=xr[Nr+5*$r];jr^=Br.high,Vr^=Br.low}var zr=wr[Nr];zr.high=jr,zr.low=Vr}for(var Nr=0;Nr<5;Nr++)for(var Wr=wr[(Nr+4)%5],qr=wr[(Nr+1)%5],Mr=qr.high,Lr=qr.low,jr=Wr.high^(Mr<<1|Lr>>>31),Vr=Wr.low^(Lr<<1|Mr>>>31),$r=0;$r<5;$r++){var Br=xr[Nr+5*$r];Br.high^=jr,Br.low^=Vr}for(var Fr=1;Fr<25;Fr++){var jr,Vr,Br=xr[Fr],Dr=Br.high,Gr=Br.low,Rr=Cr[Fr];Rr<32?(jr=Dr<<Rr|Gr>>>32-Rr,Vr=Gr<<Rr|Dr>>>32-Rr):(jr=Gr<<Rr-32|Dr>>>64-Rr,Vr=Dr<<Rr-32|Gr>>>64-Rr);var Qr=wr[br[Fr]];Qr.high=jr,Qr.low=Vr}var Kr=wr[0],Hr=xr[0];Kr.high=Hr.high,Kr.low=Hr.low;for(var Nr=0;Nr<5;Nr++)for(var $r=0;$r<5;$r++){var Fr=Nr+5*$r,Br=xr[Fr],Ur=wr[Fr],Jr=wr[(Nr+1)%5+5*$r],Yr=wr[(Nr+2)%5+5*$r];Br.high=Ur.high^~Jr.high&Yr.high,Br.low=Ur.low^~Jr.low&Yr.low}var Br=xr[0],si=Ar[Or];Br.high^=si.high,Br.low^=si.low}},_doFinalize:function(){var Tr=this._data,Er=Tr.words;this._nDataBytes*8;var xr=Tr.sigBytes*8,Sr=this.blockSize*32;Er[xr>>>5]|=1<<24-xr%32,Er[(dr.ceil((xr+1)/Sr)*Sr>>>5)-1]|=128,Tr.sigBytes=Er.length*4,this._process();for(var kr=this._state,Pr=this.cfg.outputLength/8,Ir=Pr/8,Br=[],Or=0;Or<Ir;Or++){var Nr=kr[Or],jr=Nr.high,Vr=Nr.low;jr=(jr<<8|jr>>>24)&16711935|(jr<<24|jr>>>8)&4278255360,Vr=(Vr<<8|Vr>>>24)&16711935|(Vr<<24|Vr>>>8)&4278255360,Br.push(Vr),Br.push(jr)}return new vr.init(Br,Pr)},clone:function(){for(var Tr=pr.clone.call(this),Er=Tr._state=this._state.slice(0),xr=0;xr<25;xr++)Er[xr]=Er[xr].clone();return Tr}});fr.SHA3=pr._createHelper(_r),fr.HmacSHA3=pr._createHmacHelper(_r)}(Math),ur.SHA3})}(sha3)),sha3.exports}var ripemd160={exports:{}},hasRequiredRipemd160;function requireRipemd160(){return hasRequiredRipemd160||(hasRequiredRipemd160=1,function(ct,Dn){(function(ur,dr){ct.exports=dr(requireCore())})(commonjsGlobal,function(ur){/** @preserve
|
|
66
66
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
67
67
|
|
|
68
68
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
@@ -102,14 +102,14 @@ version: 2.9.0
|
|
|
102
102
|
`;return ur+=Dn.wordwrap(this.getPublicBaseKeyB64())+`
|
|
103
103
|
`,ur+="-----END PUBLIC KEY-----",ur},Dn.hasPublicKeyProperty=function(ur){return ur=ur||{},ur.hasOwnProperty("n")&&ur.hasOwnProperty("e")},Dn.hasPrivateKeyProperty=function(ur){return ur=ur||{},ur.hasOwnProperty("n")&&ur.hasOwnProperty("e")&&ur.hasOwnProperty("d")&&ur.hasOwnProperty("p")&&ur.hasOwnProperty("q")&&ur.hasOwnProperty("dmp1")&&ur.hasOwnProperty("dmq1")&&ur.hasOwnProperty("coeff")},Dn.prototype.parsePropertiesFrom=function(ur){this.n=ur.n,this.e=ur.e,ur.hasOwnProperty("d")&&(this.d=ur.d,this.p=ur.p,this.q=ur.q,this.dmp1=ur.dmp1,this.dmq1=ur.dmq1,this.coeff=ur.coeff)},Dn}(RSAKey),_a,version$1=typeof process<"u"?(_a=process.env)===null||_a===void 0?void 0:_a.npm_package_version:void 0,JSEncrypt=function(){function ct(Dn){Dn===void 0&&(Dn={}),Dn=Dn||{},this.default_key_size=Dn.default_key_size?parseInt(Dn.default_key_size,10):1024,this.default_public_exponent=Dn.default_public_exponent||"010001",this.log=Dn.log||!1,this.key=null}return ct.prototype.setKey=function(Dn){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new JSEncryptRSAKey(Dn)},ct.prototype.setPrivateKey=function(Dn){this.setKey(Dn)},ct.prototype.setPublicKey=function(Dn){this.setKey(Dn)},ct.prototype.decrypt=function(Dn){try{return this.getKey().decrypt(b64tohex(Dn))}catch{return!1}},ct.prototype.encrypt=function(Dn){try{return hex2b64(this.getKey().encrypt(Dn))}catch{return!1}},ct.prototype.sign=function(Dn,ur,dr){try{return hex2b64(this.getKey().sign(Dn,ur,dr))}catch{return!1}},ct.prototype.verify=function(Dn,ur,dr){try{return this.getKey().verify(Dn,b64tohex(ur),dr)}catch{return!1}},ct.prototype.getKey=function(Dn){if(!this.key){if(this.key=new JSEncryptRSAKey,Dn&&{}.toString.call(Dn)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,Dn);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},ct.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},ct.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},ct.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},ct.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},ct.version=version$1,ct}();const encryptor=new JSEncrypt,aesKey=createAesKey();function createAesKey(){let Dn=Math.random().toString(36).substr(2);for(;Dn.length<16;)Dn+=Math.random().toString(36).substr(2);return Dn=Dn.substr(0,16),Dn}const iv=CryptoJS.enc.Utf8.parse("ABCDEF1234123412");function aesEncrypt(ct,Dn){Dn=Dn||aesKey;const ur=CryptoJS.enc.Utf8.parse(Dn);let dr="";switch(typeof ct){case"string":dr=CryptoJS.enc.Utf8.parse(ct);break;case"object":dr=CryptoJS.enc.Utf8.parse(JSON.stringify(ct));break;default:dr=CryptoJS.enc.Utf8.parse(ct.toString())}return CryptoJS.AES.encrypt(dr,ur,{iv,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.ZeroPadding}).toString()}function aesDecrypt(ct,Dn){Dn=Dn||aesKey;const ur=CryptoJS.enc.Utf8.parse(Dn),dr=CryptoJS.AES.decrypt(ct,ur,{iv,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.ZeroPadding});return CryptoJS.enc.Utf8.stringify(dr).toString()}function setPublicKey(ct){encryptor.setPublicKey(ct)}function rsaEncrypt(ct){return encryptor.encrypt(ct)}function hasEncryptUrl(ct=""){ct.startsWith("/")||(ct="/"+ct),ct=ct.split("?")[0];const ur=["/diagram","/dataview"].map(dr=>`^(.*?)${dr}(/|$)`);for(const dr of ur)if(new RegExp(dr).test(ct))return!0;return!1}function EncryptConfigParam(ct){const{paramType:Dn,data:ur,params:dr,method:fr}=ct;Dn==="form"?["get","delete"].includes(fr)?ct.params=getEncryptParam(dr,"string"):ct.data=getEncryptParam(ur,"string"):["get","delete"].includes(fr)?ct.params=getEncryptParam(dr,"string"):ct.data=getEncryptParam(ur)}function getEncryptParam(ct,Dn){let ur=ct||{};if(Dn==="string"){ur="";for(const pr in ct)if(Object.hasOwnProperty.call(ct,pr)){const mr=ct[pr];ur+=`${pr}=${encodeURIComponent(mr)}&`}}setPublicKey("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMKaTbS1XHH7u/4dhao1n5Lcegpy6AHKX2TjmTP7IDW6N4wznqlL3Tt+U0/Il1TlNp1/EN+tffYYg4dPrrCUDwcCAwEAAQ==");const fr=rsaEncrypt(aesKey);return{c:aesEncrypt(ur,aesKey),p:fr}}window.getEncryptParam=getEncryptParam;function encryptData(ct,Dn){var ur;(ur=window==null?void 0:window.config)!=null&&ur.encryptFlag&&hasEncryptUrl(ct.url)&&(ct.data instanceof FormData?ct.data=getEncryptFileParam(ct.data):EncryptConfigParam(ct))}function getEncryptFileParam(ct){const Dn=ct.entries(),ur=new FormData,dr={};for(const hr of Dn){const vr=hr[0],pr=hr[1];pr instanceof Blob?ur.append(vr,pr):dr[vr]=pr}const fr=getEncryptParam(dr,"json");return typeof fr=="object"&&(ur.append("c",fr.c),ur.append("p",fr.p)),ur}window.xhaesKey=aesKey,window.xhaesDecrypt=aesDecrypt;function decryptData(ct,Dn){var ur;if((ur=window==null?void 0:window.config)!=null&&ur.encryptFlag&&hasEncryptUrl(ct.config.url)&&!(ct.data instanceof Blob)&&ct.data.data!==void 0){const dr=aesDecrypt(ct.data.data.content,aesKey);ct.data=JSON.parse(dr)}}const requestErrorTip=window.config.requestErrorTip,request=axios.create({timeout:1e3*180});request.interceptors.request.use(ct=>{const{requestParams:Dn={},dataSourceKey:ur=""}=window.config;return Dn!=null&&Dn.pltToken&&(ct.headers["Plt-Token"]=Dn.pltToken),ur&&(ct.headers.dataSourceKey=ur),encryptData(ct),ct},ct=>Promise.reject(ct)),request.interceptors.response.use(ct=>{var Dn,ur,dr;return requestErrorTip&&+((Dn=ct==null?void 0:ct.data)==null?void 0:Dn.code)==500&&antDesignVue.message.error({content:((ur=ct==null?void 0:ct.data)==null?void 0:ur.msg)||((dr=ct==null?void 0:ct.data)==null?void 0:dr.message)||"服务器异常",key:"SERVER_ERROR",duration:2}),decryptData(ct),ct},ct=>{if(decryptData(ct==null?void 0:ct.response),requestErrorTip)if(ct.message.includes("timeout"))antDesignVue.message.error({content:"网络连接超时,请重试!",key:"TIMEOUT",duration:2});else{const{status:Dn}=(ct==null?void 0:ct.response)||{};Dn>=400&&Dn<500&&antDesignVue.message.error({content:"请求异常",key:"REQUEST_ERROR",duration:2}),Dn>=500&&antDesignVue.message.error({content:"服务器异常",key:"REQUEST_ERROR",duration:2})}return Promise.reject(ct)});const formatMoney=(ct,Dn=2)=>{const ur=parseFloat(ct+"");return isNaN(ur)?ct:ur.toFixed(Dn).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},formatThousands=ct=>{const Dn=parseFloat(ct+"");return isNaN(Dn)?ct:(Dn+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},formatPercentage=(ct,Dn=2)=>{const ur=ct+"";if(ur.includes("%"))return ct;const dr=parseFloat(ur);return isNaN(dr)?ct:`${(dr*100).toFixed(Dn)}%`},formatDecimals=(ct,Dn=2)=>{const ur=ct+"",dr=parseFloat(ur);return isNaN(dr)?ct:dr.toFixed(Dn)},formatCustom=(ct,Dn)=>er(Dn,ct),getFixedValueDatas=ct=>{const{leftAxisList:Dn=[],rightAxisList:ur=[],queryColumnList:dr=[],indicators:fr=[]}=ct;return[...Dn,...ur,...dr,...fr].filter(hr=>(hr==null?void 0:hr.calcType)==="COMPONENT").map(hr=>({keyName:hr.builtInCalcWay,id:hr.builtInValueSource}))},canRequestIndicator=(ct,Dn)=>{let ur=!0;const dr=getFixedValueDatas(ct);return dr!=null&&dr.length&&(ur=dr.map(fr=>Dn[fr.id]).every(fr=>fr)),ur},getLegendFormat=(ct,Dn)=>{var vr;const ur=ct.match(/\{(.+?)\}/g),dr=((vr=ct.split(`
|
|
104
104
|
`))==null?void 0:vr.length)-1;let fr="";if(dr)for(let pr=0;pr<dr;pr++)fr+=`
|
|
105
|
-
`;let hr=ct;if(ur!=null&&ur.length){for(const pr of ur){const mr=jn(pr,{textData:Dn},{useNewline:!1,useSpace:!1});mr&&(hr=hr.replace(pr,mr))}return`${fr}{text|${hr}}`}else return ct},setDefaultRangeVal=(ct,Dn)=>{const{props:ur,componentList:dr,getGlobalModel:fr}=ct,{graphicConfig:hr={},startValue:vr,endValue:pr}=ur,mr=getdefCompleteData({graphicConfig:hr,startValue:vr,endValue:pr,componentList:dr,getGlobalModel:fr}),{dimensions:gr,dataset:yr}=Dn,{classificationList:Cr=[]}=hr,Ar=Cr.find(wr=>wr.show).label||"";for(const wr of mr)!gr.find(_r=>+_r==+wr)&&!isNaN(+wr)&&gr.push(+wr);gr.sort((wr,_r)=>dayjs(wr).isBefore(dayjs(_r))?-1:1);for(const wr of yr){const{data:_r}=wr;if(_r!=null&&_r.length){const Tr=[];for(const Er of mr)if(!_r.find(xr=>+xr[Ar]==+Er)&&!isNaN(+Er)){const xr=lodashEs.cloneDeep(_r[0]);for(const Sr in xr)Sr===Ar?xr[Sr]=+Er:xr[Sr]=0;Tr.push(xr)}wr.data.push(...Tr),wr.data.sort((Er,xr)=>dayjs(Er[Ar]).isBefore(dayjs(xr[Ar]))?-1:1)}}},getConditions=ct=>{const Dn=[];for(const ur of ct)ur.conditions?Dn.push(...getConditions(ur.conditions)):(ur==null?void 0:ur.dataType)==="component"&&Dn.push(ur);return Dn};function getdefCompleteData(ct){const{startValue:Dn,endValue:ur,componentList:dr,graphicConfig:fr,getGlobalModel:hr}=ct,vr=getVariableAndField(Dn),pr=getVariableAndField(ur),mr=[];if(vr&&pr){const gr=dr.find(Cr=>Cr.keyName===vr.keyName),yr=dr.find(Cr=>Cr.keyName===pr.keyName);if(gr&&yr){const Cr=hr(gr.id),br=hr(yr.id),{classificationList:Ar=[]}=fr,wr=Ar.find(_r=>_r.show);if(wr){let _r="YYYY-MM";switch(wr.name){case"the_year":_r="YYYY";break;case"the_month":_r="MM";break;case"the_day":_r="DD";break;case"the_date":_r=(wr==null?void 0:wr.dateFormat)||_r;break}const Tr=getFormatStep(_r);if(_r){const Er=vue.unref(Cr[vr.field]),xr=vue.unref(br[pr.field]);let Sr=dayjs(Er);const kr=dayjs(xr);for(mr.push(kr.format(_r));Sr.isBefore(kr);)mr.push(Sr.format(_r)),Sr=Sr.add(1,Tr)}}}}return mr}function getVariableAndField(ct){let Dn=null;if(ct){const ur=ct.match(/\{(.+?)\}/g);if(ur!=null&&ur.length){let dr=ur[0].slice(1,-1).trim();const fr=dr.match(/\[(.+?)\]/g);let hr="";fr!=null&&fr.length&&(dr=dr.replace(fr[0],""),hr=fr[0].slice(1,-1).trim()),Dn={keyName:dr,field:hr}}}return Dn}function getFormatStep(ct){const Dn=ct.split("-");let ur="";if(Dn!=null&&Dn.length)switch(Dn[Dn.length-1]){case"YYYY":ur="year";break;case"MM":ur="month";break;case"DD":ur="day";break}return ur}function handleJumpLink(ct,Dn){var br;const{pageMode:ur,targetTemplate:dr,getRecordValueByKeyName:fr,setTemplateData:hr,isHandClick:vr=!0}=Dn,pr=ct.linkPage||"",mr=usePageUrl(ur,pr),gr=ct.href;let yr=gr||mr;yr=jn(yr);const Cr=ct.target;if(Cr)if(Cr==="event")window.parent.postMessage({type:"openPage",url:gr},"*");else{const Ar={pageId:pr,componentId:dr};if((br=ct.transParams)!=null&&br.length){yr.includes("?")?yr+="&":yr+="?";const wr=[];for(const _r of ct.transParams){const Tr=fr(String(_r.fieldName),ct);wr.push(`${_r.keyName}=${Tr}`),Ar[_r.keyName]=Tr}yr+=wr.join("&")}Cr==="template"?(vr&&(window.controller.abort(),window.controller=new AbortController),hr(Ar)):(Cr==="blank"&&(yr+=`${yr.includes("?")?"&":"?"}drillFlag=1`),window.open(yr,"_"+Cr))}}function getPageUrlParams(ct){var ur,dr;let Dn={};if(ct){const fr=(((ur=window.config)==null?void 0:ur.urlParams)||{})[ct]||{};for(const hr in fr)hr.includes("{")||(Dn[hr]=fr[hr])}else Dn=((dr=window.config)==null?void 0:dr.requestParams)||{};return Dn}function getNewValueFromUrlParams(ct,Dn,ur){let dr="";const{urlParams:fr}=window.config;if(ct&&fr[ct])for(const hr in fr[ct]){const vr=fr[ct][hr];if(hr===`{${Dn}[${ur}]}`&&vr){dr=vr;break}}return dr}function getFormatWh(ct,Dn){return typeof ct=="number"?ct:typeof ct=="string"?parseFloat(ct):ct.suffix==="px"?+ct.value:ct.suffix==="%"?parseFloat(Dn)*(ct.value/100):0}const hasChinese=ct=>/[\u4e00-\u9fa5]/.test(ct),dragModalAction=(ct,Dn)=>{const ur=document.querySelector(Dn);if(!ur)return;ur.style.cursor="move",ur.style.userSelect="none";const dr=ur.parentElement,fr=200,hr=dr.getBoundingClientRect(),{width:vr,left:pr,top:mr}=hr,gr=window.innerWidth,yr=window.innerHeight,Cr=ct.clientX,br=ct.clientY,Ar=parseFloat(dr.style.left)||0,wr=parseFloat(dr.style.top)||0,_r=-(pr+vr-fr-Ar),Tr=gr-pr+Ar-fr,Er=-(mr-wr),xr=yr-mr+wr-fr,Sr=Pr=>{Pr.preventDefault();const Ir=Pr.clientX-Cr,Br=Pr.clientY-br;let Or=Ar+Ir,Nr=wr+Br;Or=Math.max(_r,Math.min(Or,Tr)),Nr=Math.max(Er,Math.min(Nr,xr)),dr.style.left=`${Or}px`,dr.style.top=`${Nr}px`},kr=()=>{ur.style.cursor="",ur.style.userSelect="",document.removeEventListener("mousemove",Sr),document.removeEventListener("mouseup",kr)};document.addEventListener("mousemove",Sr),document.addEventListener("mouseup",kr)},getPageId=()=>{var Dn;let ct=((Dn=window==null?void 0:window.config)==null?void 0:Dn.pageId)||"";if(!ct){const{pathname:ur}=window==null?void 0:window.location;if(ur){const dr=ur.split("/");dr!=null&&dr.length&&(ct=dr[dr.length-1])}}return ct};function loopConditions(ct,Dn,ur){const dr=[];for(const fr of ct)fr[Dn]?dr.push(...loopConditions(fr[Dn],Dn,ur)):fr.filter?dr.push({...fr.filter,label:fr.label}):(!ur||fr.dataType!=="component"&&!(fr.fieldValue.startsWith("${")&&fr.fieldValue.endsWith("}")))&&dr.push(fr);return dr}function swapArrItem(ct,Dn,ur){return Dn<0||ur<0||Dn>=ct.length||ur>=ct.length||([ct[Dn],ct[ur]]=[ct[ur],ct[Dn]]),ct}function estimateWidth(ct,Dn){const ur=parseFloat(Dn),dr=(ct.match(/[\u4e00-\u9fa5]/g)||[]).length,fr=ct.length-dr;return dr*ur+fr*ur*.55}const useRequestData=(ct,Dn,ur=()=>{})=>{var zr;const{requestUrl:dr,requestMethod:fr,requestHeaders:hr,requestParams:vr,requestInterval:pr,isOpenRequestTimer:mr,openCustomRequestData:gr,projectRequestUrl:yr="",getModel:Cr,requestParamsMode:br,customRequestParams:Ar,dataSetParam:wr,requestType:_r,dataType:Tr,dataSetchecked:Er}=ct,{pageMode:xr}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"})||{},{pageId:Sr}=vue.inject("templateOperate",{pageId:""})||{},{contextRequestUrl:kr,touchEventId:Pr}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:"",touchEventId:""})||{},{getGlobalModel:Ir}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Wr=>{}})||{},Br=vue.inject(COMMON_OPERATE,{operateAction:(Wr,qr)=>{}}),Or=Cr||Ir;let Nr=jn(dr),jr=vue.unref(kr)||yr||"";(Tr==="request"&&Er||_r===1)&&(jr="",Nr=((zr=window.config)==null?void 0:zr.dataSetUrl)||"/api/datav/dataset/data2");const Vr=async(Wr={},qr={})=>{var Hr;if(vue.unref(xr)==="design")return;if(Tr!=="request"&&$r){clearInterval($r);return}if(!Nr||!fr||!hr)return;let Mr={};for(const Ur of vr){const{key:Jr,value:Yr}=Ur;if((Yr==null?void 0:Yr.id)==="PARENT"&&(Yr!=null&&Yr.prop)){const fi=(((Hr=window.config)==null?void 0:Hr.record)||{})[Yr.prop];if(fi){const _i=fi[Yr.propKey||"value"];_i&&(["date","range"].some(pi=>Nn(fi==null?void 0:fi.type,pi))?Mr[Jr]=vue.unref(_i).format(fi.format||"YYYY-MM-DD"):Mr[Jr]=vue.unref(_i))}continue}if(typeof Yr=="object"&&Yr!=null&&Yr.id){let si={};const{id:fi,prop:_i,propKey:bi,operate:pi}=Yr;let mi=!1;try{JSON.parse(fi),mi=!0}catch{mi=!1}fi==="THIS"?si=Or(vue.unref(Pr))||{}:si=Or(fi)||{};const xi=vue.unref(si[_i]);let ni=null;if(["date","range"].some(Xr=>Nn(si==null?void 0:si.type,Xr))){const{value:Xr,type:vi,mode:Si}=pi||{};if(Xr&&vi&&Si)switch(vi){case"add":ni=vue.unref(xi).add(Xr,Si);break;case"minus":ni=vue.unref(xi).subtract(Xr,Si);break}ni==null&&(ni=vue.unref(xi)),ni=ni&&(ni==null?void 0:ni.format((bi==null?void 0:bi.trim())||si.format))||""}else Object.prototype.toString.call(xi)==="[object Object]"?bi?ni=xi[bi]:ni=_i?xi[_i]:xi:Nn(si==null?void 0:si.type,"select")&&vue.unref(xi)&&_i&&Array.isArray(vue.unref(xi))?ni=vue.unref(xi).map(Xr=>Object.prototype.hasOwnProperty.call(Xr,_i)?Xr[_i]:Xr):mi?ni=JSON.parse(fi).value:ni=xi;Mr[Jr]=ni}else typeof Yr=="object"&&!Yr.id&&_r===1?Mr[Jr]=Yr.propKey:typeof Yr=="string"&&(Mr[Jr]=jn(Yr))}if(_r===1){const Ur=Object.entries(Mr);let Jr=wr;if(!wr.param&&Array.isArray(wr)){const Yr={};for(const si of wr)Yr[si.key]=si.value;Jr=Yr}Jr.param=Jr.param.map((Yr,si)=>({...Yr,paramKey:Ur[si][0],defaultValue:Ur[si][1]||""})),Mr=Jr}if(br==="2"&&Ar!=="{}"){const Ur=JSON.parse(Ar);Lr(Ur),Ur&&(Mr=Ur)}function Lr(Ur){const Jr={...Mr,...getPageUrlParams(Sr)};if(Array.isArray(Ur))Ur.forEach((Yr,si)=>{if(typeof Yr=="string"){const fi=Yr.match(/\${(.+?)\}/g);if(fi!=null&&fi.length){const _i=fi[0].slice(2,-1);_i&&Jr[_i]?Ur[si]=Jr[_i]:Ur[si]=""}}else Lr(Yr)});else if(Object.prototype.toString.call(Ur)==="[object Object]")for(const Yr in Ur)if(typeof Ur[Yr]=="string"){const si=Ur[Yr].match(/\${(.+?)\}/g);if(si!=null&&si.length){const fi=si[0].slice(2,-1);fi&&Jr[fi]?Ur[Yr]=Jr[fi]:Ur[Yr]=""}}else Lr(Ur[Yr])}const Fr=getPageUrlParams(Sr);for(const Ur in Fr)Fr[Ur]&&(Fr[Ur]=decodeURIComponent(Fr[Ur]));if(Mr={...Fr,...Wr,...Mr},qr){const{callback:Ur,pageParams:Jr}=qr;Jr&&(Mr={...Mr,...Jr}),Ur&&Ur(Mr)}let Dr="";const Gr=Object.keys(Mr),Rr=Gr.length-1,Qr=Gr.length;Gr.forEach((Ur,Jr)=>{let Yr=Mr[Ur];Object.prototype.toString.call(Yr)==="[object Object]"&&(Yr=JSON.stringify(Yr)),Jr===0?Qr!==1?Dr+=`?${Ur}=${Yr}&`:Dr+=`?${Ur}=${Yr}`:Jr===Rr?Dr+=`${Ur}=${Yr}`:Dr+=`${Ur}=${Yr}&`}),Nr.includes("?")&&(Dr=Dr.replace("?","&"));function Kr(Ur){var Jr;if(_r===1)return{Authentication:(Jr=window==null?void 0:window.config)==null?void 0:Jr.indicatorToken};if(typeof Ur=="string"){const Yr=JSON.parse(Ur),si=getPageUrlParams(Sr);if(Object.prototype.toString.call(Yr)==="[object Object]"){for(const fi in Yr)if(typeof Yr[fi]=="string"){const _i=Yr[fi].match(/\${(.+?)\}/g);if(_i!=null&&_i.length){const bi=_i[0].slice(2,-1);bi&&si[bi]?Yr[fi]=si[bi]:Yr[fi]=""}}}return Yr}else return Ur}try{const Ur=["get","head"].includes(fr),Jr={};let Yr=Ur?Nr+Dr:Nr;Mr.dataSqlId&&!Yr.includes("dataSqlId")&&(Yr+=`${Yr.includes("?")?"&":"?"}dataSqlId=${Mr.dataSqlId}`),Object.prototype.hasOwnProperty.call(Mr,"signal")?Jr.signal=Mr.signal:window.controller&&(Jr.signal=window.controller.signal);const si=await request({baseURL:jr,url:Yr,method:fr,headers:hr?Kr(hr):{},data:Ur?{}:Mr,...Jr});return ur(si),Br==null||Br.operateAction("SAVE_COMPONENT_RES_DATA",{id:ct.id,data:(si==null?void 0:si.data)||{}}),si}catch(Ur){console.error(Ur)}},$r=vue.unref(xr)!=="design"&&mr&&(gr||gr===void 0)&&setInterval(Vr,pr*1e3);return vue.onUnmounted(()=>{clearInterval($r)}),Vr},useImagePath=(ct,Dn=!1)=>{var dr;if(!ct)return ct;let ur="";return ct!=null&&ct.includes("://")?ur=ct:ur=((dr=window==null?void 0:window.config)==null?void 0:dr.uploadPath)+ct,Dn&&(ur=`url(${ur})`),ur},usePageUrl=(ct,Dn)=>{const ur=`${BASE_URL}/preview?pageId=${Dn}`,dr=`${BASE_URL}/${Dn}`;return ct==="preview"?ur:dr},DEFAULT_BATCH_URL="/diagram/list",DEFAULT_BATCH_INTERVAL=200,DEFAULT_BATCH_SIZE=10,queueMap=new Map,pendingSorts=new Set,runningCount=new Map;let dispatcherPromise=null,notifyResolvers=[];const getBatchOptions=()=>{const ct=(window==null?void 0:window.config)||{};return{enabled:!!ct.indicatorBatchEnabled,url:ct.indicatorBatchUrl||DEFAULT_BATCH_URL,interval:Number(ct.indicatorBatchInterval)||DEFAULT_BATCH_INTERVAL,size:Number(ct.indicatorBatchSize)||DEFAULT_BATCH_SIZE}},notifyChange=()=>{const ct=notifyResolvers;notifyResolvers=[],ct.forEach(Dn=>Dn())},waitForChange=()=>new Promise(ct=>{notifyResolvers.push(ct)}),hasRunningHigherSort=ct=>{for(const Dn of runningCount.keys())if(Dn>ct)return!0;return!1},kick=()=>{dispatcherPromise||(dispatcherPromise=runDispatcher().finally(()=>{dispatcherPromise=null,pendingSorts.size&&kick()}))},markReady=ct=>{pendingSorts.add(ct),kick()},flushBatch=async(ct,Dn)=>{var dr,fr;const{url:ur}=getBatchOptions();try{const hr=await request({url:`${INDICATOR_URL}${ur}`,method:"post",headers:{Authentication:(dr=window==null?void 0:window.config)==null?void 0:dr.indicatorToken,operateContext:CONTEXT},data:Dn.map(gr=>gr.payload),signal:((fr=window.controller)==null?void 0:fr.signal)||""}),vr=hr==null?void 0:hr.data,pr=Array.isArray(vr)?vr:vr==null?void 0:vr.data;if(!Array.isArray(pr)||pr.length!==Dn.length)throw new Error("批量指标库接口返回结果数量不一致");const mr=vr&&!Array.isArray(vr)?{...vr}:{};delete mr.data,Dn.forEach((gr,yr)=>{gr.resolve({data:{...mr,data:pr[yr]}})})}catch(hr){Dn.forEach(vr=>{vr.reject(hr)})}},runDispatcher=async()=>{for(;pendingSorts.size;){let ct=-1/0;for(const hr of pendingSorts)hr>ct&&(ct=hr);for(;hasRunningHigherSort(ct);)await waitForChange();const Dn=queueMap.get(ct);if(!Dn||!Dn.items.length){pendingSorts.delete(ct);continue}const{size:ur,interval:dr}=getBatchOptions(),fr=Dn.items.splice(0,ur);runningCount.set(ct,(runningCount.get(ct)||0)+1),flushBatch(ct,fr).finally(()=>{const hr=runningCount.get(ct)||0;hr<=1?runningCount.delete(ct):runningCount.set(ct,hr-1),notifyChange(),kick()}),Dn.items.length>=ur||(Dn.items.length>0?(pendingSorts.delete(ct),Dn.timer||(Dn.timer=setTimeout(()=>{Dn.timer=null,markReady(ct)},dr))):(pendingSorts.delete(ct),Dn.timer&&(clearTimeout(Dn.timer),Dn.timer=null),queueMap.delete(ct)))}},enqueueIndicatorRequest=(ct,Dn)=>{const{enabled:ur,interval:dr,size:fr}=getBatchOptions();return ur?new Promise((hr,vr)=>{let pr=queueMap.get(ct);pr||(pr={items:[],timer:null},queueMap.set(ct,pr)),pr.items.push({payload:Dn.data,resolve:hr,reject:vr}),pr.items.length>=fr?(pr.timer&&(clearTimeout(pr.timer),pr.timer=null),markReady(ct)):pr.timer||(pr.timer=setTimeout(()=>{pr.timer=null,markReady(ct)},dr))}):request(Dn)};let modelValue=new Map,componentList=[];const excludeAttr=["keyValue","conditionKey","conditionLabel","conditionName","conditionValueType","customValue","id","keyName"],getGlobalModel=ct=>modelValue.get(ct),getCalcWays=(ct,Dn={})=>{const{around:ur,unit:dr,id:fr}=ct;let hr="";const{pageMode:vr="",componentList:pr=[]}=(Dn==null?void 0:Dn.graphicConfig)||{};let mr=null,gr=null;if(vr==="design"){const yr=pr==null?void 0:pr.find(Er=>Er.id===fr);if(!yr)return[];const{interval:Cr,intervalUnit:br,startTime:Ar,endTime:wr,operate:_r,useCurrentTime:Tr}=yr||{};if(Tr&&(mr=dayjs().subtract(Cr,br),gr=dayjs()),Ar&&(mr=dayjs(Ar)),wr&&(gr=dayjs(wr)),_r){const{type:Er,value:xr,mode:Sr}=_r;switch(Er){case"add":mr=mr&&mr.add(xr,Sr),gr=gr&&gr.add(xr,Sr);break;case"minus":mr=mr&&mr.subtract(xr,Sr),gr=gr&&gr.subtract(xr,Sr)}}}else{const yr=getGlobalModel(fr)||{};vue.unref(yr.startTime)&&(mr=dayjs(vue.unref(yr.startTime))),vue.unref(yr.endTime)&&(gr=dayjs(vue.unref(yr.endTime)))}if(mr&&gr){const yr=gr.diff(mr,dr.toLowerCase());hr=`${ur==="before"?"-":""}${yr+1}`}return hr?[hr]:[]},handleParams=(ct,Dn)=>{if(Dn)Tn(ct,"indexCode")&&(ct.hrpIndexCode=ct.indexCode,delete ct.indexCode),Tn(ct,"indexCodeNum")&&(ct.hrpIndexCodeNum=ct.indexCodeNum,delete ct.indexCodeNum),Tn(ct,"dataType")&&delete ct.dataType,ct.fieldValue||delete ct.fieldValue;else{const{calcWays:ur=[],dateCalcTypes:dr=[],activeKey:fr,componentId:hr=""}=ct;if(fr===5&&(ur!=null&&ur.length)&&(dr!=null&&dr.length)&&hr){const vr=ur[0].split("-");(vr==null?void 0:vr.length)>1&&vr[0]==="rangeValue"&&(ct.calcWays=getCalcWays({around:vr[1],unit:dr[0],id:hr})),delete ct.radioValue}if(Tn(ct,"dataType")){if(ct.fieldType==="DATE"&&(ct.label=ct.fieldName),ct.dataType==="component")if(ct.fieldValue==="PARENT"){let vr=ct.modelKey;vr&&ct.prop&&(vr+=`-${ct.prop}`),ct.fieldValue="${"+vr+"}"}else ct.fieldValue="${"+getKeyNameById(ct.componentId,ct.fieldValue)+"}";delete ct.dataType}Tn(ct,"activeKey")&&delete ct.activeKey,Tn(ct,"radioValue")&&delete ct.radioValue,Tn(ct,"indexCode")&&(ct.hrpIndexCode=ct.indexCode,delete ct.indexCode),Tn(ct,"indexCodeNum")&&(ct.hrpIndexCodeNum=ct.indexCodeNum,delete ct.indexCodeNum),ct.dataType!=="component"&&ct.useCurrentTime&&(ct.fieldValue=dayjs().format(ct.dateFormat)),Tn(ct,"modelKey")&&delete ct.modelKey,Tn(ct,"prop")&&delete ct.prop,delete ct.useCurrentTime}},handleConditions=(ct,Dn)=>{const ur=[];return ct!=null&&ct.length&&lodashEs.cloneDeep(ct).forEach(dr=>{if(dr.join&&dr.conditions){const fr=!dr.conditions.some(hr=>hr.join&&hr.conditions);dr.conditions.forEach((hr,vr)=>{handleParams(hr,Dn);const pr={};if(vr<dr.conditions.length-1&&(pr.join=dr.join),fr)ur.push({...pr,...hr});else if(hr.join&&hr.conditions){const mr=Dn?"sqlConditions":"conditions";ur.push({[mr]:handleConditions([hr],Dn),...pr})}else ur.push({...pr,...hr})})}else handleParams(dr,Dn),ur.push(dr)}),ur},handleIndicator=(ct={},Dn)=>{if(ct!=null&&ct.sortCpnts&&Dn){const Pr=getCpntSortData(ct);Pr&&(Dn.sort=Pr)}const{label:ur,name:dr,location:fr,show:hr,indexCode:vr,indexCodeNum:pr,calcType:mr="COLUMN",builtInFormula:gr,builtInValueSource:yr,builtInCalcWay:Cr,formula:br,conditions:Ar,aggregate:wr,distinct:_r,dimByCount:Tr,dataTo:Er,sort:xr}=ct;let Sr;if(Ar&&(Sr=handleConditions(Ar)),mr==="COMPONENT"){const Pr={};return setFieldValue(Pr,yr),{label:ur.trim(),columnName:dr,show:hr,calcType:mr,componentAlias:Cr,componentValue:Pr.fieldValue||null}}const kr={label:ur.trim(),columnName:dr,location:fr,show:hr,calcType:Er==="1"?"VIEW":mr,hrpIndexCode:vr,hrpIndexCodeNum:pr,aggregate:wr,builtInFormula:gr,builtInValueSource:yr,formula:br,conditions:Sr};if(xr&&(kr.sort={columnName:dr,label:kr.label,order:xr,type:"NORMAL"}),gr==="DATE_OFFSET"){const Pr=Cr.split("-");if((Pr==null?void 0:Pr.length)===3){let Ir=Pr[0];return Pr[2]==="before"&&Pr[0]!=="0"&&(Ir=`-${Pr[0]}`),{...kr,calcWays:[Ir],dateCalcTypes:[Pr[1]]}}}else return dr==="the_count"&&(kr.calcType="AGGREGATE",kr.distinct=!!_r,kr.typeGuid=Tr),{...kr,builtInCalcWay:Cr}},getKeyNameById=(ct,Dn)=>{const ur=componentList.find(fr=>fr.id===ct),{keyName:dr}=ur||{};if(dr){const fr=/-(startTime|endTime)/g,hr=Dn.match(fr);return hr!=null&&hr.length?`${dr}${hr[0]}`:dr}else return Dn||""},handleSqlConditions=ct=>{if(!ct)return[];const Dn=lodashEs.cloneDeep((ct==null?void 0:ct.controlList)||[]).filter(Tr=>Tr.conditionKey!=="parentCode"),{classificationList:ur=[],rowHeaderList:dr=[],dimensionList:fr=[],seriesList:hr=[],leftAxisList:vr=[],rightAxisList:pr=[],queryColumnList:mr=[],indexLibColumns:gr=[],indicators:yr=[],specialIndicators:Cr=[]}=ct;handleControlList(Dn);const br=[...ur,...dr,...fr,...hr,...vr,...pr,...mr,...gr,...yr,...Cr],Ar=[];for(const Tr of br){const Er=getConditions((Tr==null?void 0:Tr.conditions)||[]);if(Er!=null&&Er.length){const xr=Er.filter(Sr=>(Sr==null?void 0:Sr.dataType)==="component").map(Sr=>{const kr={};return Sr!=null&&Sr.dateFormat&&(kr.format=Sr.dateFormat),Sr.fieldValue==="PARENT"&&(kr.id="PARENT",kr.keyName=Sr.modelKey,kr.modelKey=Sr.modelKey,kr.prop=Sr.prop),{conditionKey:Sr.fieldName,conditionLabel:Sr.fieldName,conditionName:Sr.fieldName,conditionValueType:Sr.fieldType,id:Sr.componentId,keyName:Sr.fieldValue,rule:Sr.rule,notGlobal:!0,indexCode:Sr.indexCode,typeGuid:Sr.typeGuid,indexCodeNum:Sr.indexCodeNum,...kr}});if(xr!=null&&xr.length)for(const Sr of xr)Ar.find(kr=>kr.keyName===Sr.keyName)||Ar.push(Sr)}}const wr=Ar.length,_r=Dn;for(let Tr=0;Tr<wr;Tr++){const Er=Ar[Tr];if((Er==null?void 0:Er.conditionKey)==="parentCode")continue;const{id:xr,keyName:Sr,prop:kr,format:Pr,modelKey:Ir,dataType:Br="component",customValue:Or}=Er,Nr=getKeyNameById(xr,Sr),jr=getConditionItem(Er);setFieldValue(jr,xr,{prop:kr,dateFormat:Pr,modelKey:Ir,keyName:Nr}),Br===""&&(jr.fieldValue=Or||""),_r.push(jr)}for(let Tr=_r.length-1;Tr>=0;Tr--){const Er=_r[Tr];Er.globalCondition||getConditions(_r).find(Sr=>Sr.alias===Er.alias&&Sr.globalCondition)&&_r.splice(Tr,1)}return _r};function getConditionItem(ct){const{id:Dn,keyName:ur,conditionLabel:dr,conditionKey:fr,conditionValueType:hr,prop:vr,rule:pr="NONE",notGlobal:mr=!1,indexCode:gr,typeGuid:yr,indexCodeNum:Cr,dataType:br="component",isExtProperty:Ar}=ct,wr=getKeyNameById(Dn,ur);let _r=wr||Dn;_r&&vr&&(_r+=`-${vr}`);let Tr=pr;return Tr==="NONE"&&(["startTime","endTime"].includes(vr)?Tr=vr==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":wr!=null&&wr.includes("startTime")?Tr=vr==="GREATER_EQUAL":wr!=null&&wr.includes("endTime")?Tr=vr==="LESS_EQUAL":Tr="EQUAL"),Dn==="PARENT"&&(_r=ct.modelKey,_r&&vr&&(_r+=`-${vr}`),Tr=pr),{rule:Tr,label:dr,fieldName:fr,fieldValue:"",valueType:hr,alias:_r,globalCondition:!mr,indexCode:gr,typeGuid:yr,indexCodeNum:Cr,dataType:br,isExtProperty:Ar}}function handleControlList(ct){if(ct!=null&&ct.length)for(const Dn of ct)if(Dn!=null&&Dn.conditions)handleControlList(Dn.conditions);else{const{id:ur,keyName:dr,prop:fr,modelKey:hr,format:vr,dataType:pr="component",customValue:mr}=Dn,gr=getKeyNameById(ur,dr),yr=getConditionItem(Dn);setFieldValue(yr,ur,{prop:fr,dateFormat:vr,modelKey:hr,keyName:gr}),pr===""&&(yr.fieldValue=mr||"");for(const Cr in yr)Dn[Cr]=yr[Cr];for(const Cr of excludeAttr)delete Dn[Cr]}}function handleVariableList(ct){const Dn=[];if(ct!=null&&ct.length){for(const ur of ct)if(ur.variableName){const dr=getKeyNameById(ur.id,ur.keyName),fr={variateName:ur.variableName,globalCondition:ur.globalCondition||!1,valueType:ur.variableType,alias:dr||""};setFieldValue(fr,ur.id,{dateFormat:ur.format,prop:ur.dateTypeValue,keyName:dr,operateType:ur.operateType,operateMode:ur.operateMode,operateValue:ur.operateValue}),ur.dataType===""&&(fr.fieldValue=ur.variableValue),ur.format&&(fr.dateFormat=ur.format),ur.label&&(fr.label=ur.label),Dn.push(fr)}}return Dn}function setFieldValue(ct,Dn,ur){const{prop:dr="",dateFormat:fr="",modelKey:hr="",keyName:vr="",operateValue:pr,operateMode:mr,operateType:gr}=ur||{},yr=hr||vr;if(Dn==="PARENT"&&yr&&dr){const xr=window.config.record;let Sr=dr,kr=fr;const Pr=dr.match(/\{(.+?)\}/g);if(Pr!=null&&Pr.length){const Ir=Pr[0].slice(1,-1).trim();Sr=dr.replace(Pr[0],""),kr=Ir,ct.dateFormat=kr}if(xr&&xr[yr]){const Ir=vue.unref(xr[yr][Sr]);dayjs.isDayjs(Ir)?ct.fieldValue=Ir.format(kr||"YYYY-MM-DD"):ct.fieldValue=Ir}return}const Cr=getGlobalModel(Dn)||{},{value:br,format:Ar="YYYY-MM-DD",type:wr="",useCurrentTime:_r,RECORD:Tr}=Cr||{},Er=fr||Ar;if(Nn(wr,"date")){let xr;if(_r?br?xr=vue.unref(br):xr=dayjs():xr=vue.unref(br),typeof xr=="string"&&(xr=dayjs(xr)),pr&&mr&&gr)switch(gr){case"add":xr=xr.add(pr,mr);break;case"minus":xr=xr.subtract(pr,mr);break}ct.fieldValue=xr==null?void 0:xr.format(Er),ct.dateFormat=Er}else if(Nn(wr,"rangepicker")){let xr=dr;if(!dr){const kr=vr&&vr.split("-");kr!=null&&kr.length&&(xr=kr[kr.length-1])}if(!xr)return;let Sr=null;if(vue.unref(Cr[xr])&&(Sr=dayjs(vue.unref(Cr[xr]))),pr&&mr&&gr){if(pr==="rangeValue"){if(Cr.startTime&&Cr.endTime){const kr=vue.unref(Cr.endTime).diff(vue.unref(Cr.startTime),mr)+1;switch(gr){case"add":Sr=Sr&&Sr.add(kr,mr);break;case"minus":Sr=Sr&&Sr.subtract(kr,mr)}}}else if(!isNaN(+pr))switch(gr){case"add":Sr=Sr&&Sr.add(pr,mr);break;case"minus":Sr=Sr&&Sr.subtract(pr,mr)}}if(Sr&&(ct.fieldValue=Sr==null?void 0:Sr.format(Er)),xr==="rangeValue"&&Cr.startTime&&Cr.endTime){const kr=getFormatStep(Er);kr&&(ct.fieldValue=vue.unref(Cr.endTime).diff(vue.unref(Cr.startTime),kr)+1)}ct.dateFormat=Er}else Nn(wr,MODEL_KEY_LIST)?hr&&Tr?ct.fieldValue=Tr[hr]:!hr&&Tr?ct.fieldValue=Tr.value:ct.fieldValue=vue.unref(br):Nn(wr,"select")&&Array.isArray(vue.unref(br))?ct.fieldValue=vue.unref(br).join(","):ct.fieldValue=vue.unref(br)}const handleSort=ct=>{if(ct){const Dn=Array.isArray(ct)?lodashEs.cloneDeep(ct):[lodashEs.cloneDeep(ct)];let ur="",dr=[];const fr=[],hr=[],vr=[];for(const pr of Dn){let mr=pr.label,gr=pr.columnName;if(pr.defaultCode&&(mr=pr.columnName,delete pr.defaultCode),gr==="component-value"&&pr.componentId){const yr=getGlobalModel(pr.componentId)||{},{value:Cr}=yr;vue.unref(Cr)&&(mr=gr=vue.unref(Cr))}ur=pr.type,ur==="CUSTOM"&&(dr=pr.customOrderColumns),fr.push(mr),hr.push(gr),vr.push(pr.order)}return ur!=="CUSTOM"&&(fr==null?void 0:fr.length)>1&&(ur="COMBINATION"),ur==="CUSTOM"?{label:fr.join(","),columnName:hr.join(","),type:ur,customOrderColumns:dr}:{label:fr.join(","),columnName:hr.join(","),order:vr.join(","),type:ur}}else return ct},getCpntSortData=ct=>{const{sortCpnts:Dn=[]}=ct;let ur,dr="";for(const fr of Dn){const hr=getGlobalModel(fr)||{},{type:vr,RECORD:pr}=hr;if(Nn(vr,"image")&&Nn(pr==null?void 0:pr.value,["asc","desc"])){dr=pr.value.toUpperCase();break}}return dr&&(ur={label:ct.label,columnName:ct.name,order:dr,type:"NORMAL"}),ur},formatIndicatorParams=(ct,Dn={})=>{var _i,bi,pi,mi,xi,ni,ai;const{graphicConfig:ur,type:dr,globalModel:fr,isGroupTable:hr=!1,allComponentList:vr}=ct;fr&&(modelValue=fr),vr!=null&&vr.length&&(componentList=vr);const pr=Nn(dr,"pivottable");let{source:mr,dataViewId:gr,plugin:yr="1",layer:Cr,chartType:br,classificationList:Ar=[],rowHeaderList:wr=[],dimensionList:_r=[],seriesList:Tr=[],leftAxisList:Er=[],rightAxisList:xr=[],queryColumnList:Sr=[],indexLibColumns:kr=[],indicators:Pr=[],specialIndicators:Ir=[],controlList:Br=[],formFields:Or={},variableList:Nr=[],variableConditions:jr=[],dataSourceId:Vr="",idxLibMode:$r,preview:zr=!1,edvDataSetId:Wr}=ur||{},qr=[];if((ur==null?void 0:ur.pageMode)==="design"?(qr=(ur.sqlConditions??[]).map(Xr=>{const vi={};if(!Tn(Xr,"globalCondition")&&!Xr.join&&(vi.globalCondition=!0),!Xr.join){const Si=Xr.rule||"EQUAL";vi.rule=Si==="NONE"?"EQUAL":Si}return{...Xr,...vi}}),jr!=null&&jr.length&&(qr=qr.concat(jr))):(qr=handleSqlConditions(ur),Nr!=null&&Nr.length&&(qr=qr.concat(handleVariableList(Nr)))),qr!=null&&qr.length){const Xr=qr.filter(Si=>Si.globalCondition),vi=qr.filter(Si=>!Si.globalCondition);(Xr==null?void 0:Xr.length)>1&&(qr=[{join:"&&",conditions:Xr},...vi])}qr!=null&&qr.length&&(qr=handleConditions(qr,"1")),Cr==null&&(Nn(dr,["table","card"])||Nn(dr,["list","circulate"])&&(Ar==null?void 0:Ar.length)>1?Cr="1":Nn(dr,["select","checkbox","radio","treeSelect"])?Cr="3":Nn(dr,["indexPanel"])?Cr="4":Cr="2"),Nn(dr,["indexPanel"])&&(yr="3");let Mr;const Lr=[];let Fr="";if(Array.isArray(Ar)&&Ar.length>0&&(!["ecanList","ecanCirculate"].includes(dr)||(Ar==null?void 0:Ar.length)===1)){const Xr=Ar.length;for(let vi=0;vi<Xr;vi++){const Si=Ar[vi]||{},{label:ri="",name:yi="",show:di=!1,sort:Ei,customGroup:Oi,conditions:Li,dateFormat:Ri,typeGuid:hi="",truncations:Ci=[],isExtProperty:Di,aggregate:$i}=Si;if(di||Xr===1){Fr=hi,Mr={label:ri.trim(),columnName:yi,show:di,sort:getCpntSortData(Si)||handleSort(Ei)||Ei,customGroup:Oi,conditions:handleConditions(Li),typeGuid:hi},Ri&&(Mr.dateFormat=Ri),yi==="the_date"&&!Mr.dateFormat&&(Mr.dateFormat="YYYY-MM-DD"),Di&&(Mr.isExtProperty=Di),$i&&(Mr.aggregate=$i);const Fi={};if(Array.isArray(Ci)&&Ci.length>0){const qi=Ci.length;for(let Ji=0;Ji<qi;Ji++){const ua=Ci[Ji]||{},{rule:da="",num:va=0,name:ya=""}=ua;da&&va&&(Fi.num=va,Fi.rule=da,ya&&(Fi.otherGroupName=ya))}}if((_i=Object.keys(Fi))!=null&&_i.length&&(Mr.truncation=Fi),Nn(dr,["scatter","valueline"]))Lr.push(Mr);else break}}}let Dr;if(Array.isArray(Tr)&&Tr.length>0){const Xr=Tr.length;for(let vi=0;vi<Xr;vi++){const Si=Tr[vi]||{},{label:ri="",name:yi="",show:di=!1,sort:Ei,customGroup:Oi,conditions:Li,typeGuid:Ri,dateFormat:hi=""}=Si;if(di||Xr===1){Dr={label:ri.trim(),columnName:yi,show:di,sort:handleSort(Ei),customGroup:Oi,conditions:handleConditions(Li),typeGuid:Ri},hi?Dr.dateFormat=hi:yi==="the_date"&&(Dr.dateFormat="YYYY-MM-DD");break}}}const Gr=[];Er==null||Er.forEach(Xr=>{Xr.location="LEFT",Gr.push(handleIndicator(Xr,Mr))}),xr==null||xr.forEach(Xr=>{Xr.location="RIGHT",Gr.push(handleIndicator(Xr,Mr))});let Rr=Pr;Dn!=null&&Dn.pivotTableCal&&(Rr=((bi=Dn.pivotTableCal)==null?void 0:bi.indicators)||[]),Rr==null||Rr.forEach(Xr=>{Xr.location="LEFT",Gr.push(handleIndicator(Xr,Mr))});const Qr=[];Ir==null||Ir.forEach(Xr=>{Xr.location="LEFT",Qr.push(handleIndicator(Xr,Mr))});const Kr=[];["ecanList","ecanCirculate"].includes(dr)&&(Ar==null?void 0:Ar.length)>1&&(Sr=Ar),Dn!=null&&Dn.pivotTableCal&&(Sr=((pi=Dn.pivotTableCal)==null?void 0:pi.dimensions)||[]),Sr==null||Sr.forEach(Xr=>{const{label:vi,name:Si,location:ri,show:yi,indexCode:di,sort:Ei,typeGuid:Oi,indexCodeNum:Li,dateFormat:Ri,conditions:hi,isExtProperty:Ci,aggregate:Di}=Xr;let $i=handleSort(Ei);if(Dn.sort){const{field:qi,order:Ji}=Dn.sort;let ua=Gr.find(da=>da.label===qi);!ua&&vi===qi&&(ua=Xr),ua&&($i={columnName:ua.columnName,label:Dn.sort.field,order:Ji.toUpperCase(),type:"NORMAL"})}const Fi={label:vi,columnName:Si,location:ri,show:yi,sort:$i,calcType:"COLUMN",hrpIndexCode:di,hrpIndexCodeNum:Li,conditions:handleConditions(hi),typeGuid:Oi};Ri&&(Fi.dateFormat=Ri),Si==="the_date"&&!Fi.dateFormat&&(Fi.dateFormat="YYYY-MM"),Ci&&(Fi.isExtProperty=Ci),Di&&(Fi.aggregate=Di),Kr.push(Fi)});const Hr=[];["ecanTable"].includes(dr)&&ur.isIndexSet&&kr.forEach(Xr=>{const vi={label:Xr.label,calcType:Xr.calcType,show:Xr.show};Xr.formula&&(vi.formula=Xr.formula),Hr.push(vi)});let Ur=[],Jr=[];if(Array.isArray(wr)&&wr.length>0?Jr=wr:Array.isArray(_r)&&_r.length>0&&(Jr=_r),Jr!=null&&Jr.length){const Xr=Jr.length;for(let vi=0;vi<Xr;vi++){const Si=Jr[vi]||{},{label:ri="",name:yi="",show:di=!1,sort:Ei,customGroup:Oi,conditions:Li,truncations:Ri,typeGuid:hi="",dateFormat:Ci,isExtProperty:Di,aggregate:$i}=Si;let Fi=handleSort(Ei);if(Dn.sort){const{field:ua,order:da}=Dn.sort;let va=Gr.find(ya=>ya.label===ua);!va&&Si.label===ua&&(va=Si),va&&(Fi={columnName:va.columnName,label:Dn.sort.field,order:da.toUpperCase(),type:"NORMAL"})}const qi={label:ri.trim(),columnName:yi,show:di,sort:Fi,customGroup:Oi,conditions:handleConditions(Li),typeGuid:hi};Ci&&(qi.dateFormat=Ci),yi==="the_date"&&!qi.dateFormat&&(qi.dateFormat="YYYY-MM"),Di&&(qi.isExtProperty=Di),$i&&(qi.aggregate=$i);const Ji={};if(Array.isArray(Ri)&&Ri.length>0){const ua=Ri.length;for(let da=0;da<ua;da++){const va=Ri[da]||{},{rule:ya="",num:xa=0,name:Sa=""}=va;ya&&xa&&(Ji.num=xa,Ji.rule=ya,Sa&&(Ji.otherGroupName=Sa))}}(mi=Object.keys(Ji))!=null&&mi.length&&(qi.truncation=Ji),Ur.push(qi)}}let Yr=[],si;if(Dn!=null&&Dn.pivotTableCal){let Xr=[];const{calc:vi=[],filter:Si=[],truncations:ri=[],sorts:yi=[],aggregateMethod:di=[],rowDimensionKeys:Ei=[],colDimensionKeys:Oi=[]}=Dn.pivotTableCal;if(Gr.push(...vi),Si!=null&&Si.length)for(const Li of Si){const{type:Ri,...hi}=Li;Ri==="indicators"?Xr=Gr:Ri==="dimension"&&(Xr=Kr);const Ci=Xr.find(Di=>Di.columnName===Li.fieldName&&Di.label===Li.label);Ci&&(Ri==="indicators"?Ci.filter={rule:hi.rule,fieldValue:hi.fieldValue}:Ri==="dimension"&&(Ci.conditions||(Ci.conditions=[]),Ci.conditions.push(hi)))}if(ri!=null&&ri.length)for(const Li of ri){const Ri=Kr.find(hi=>hi.columnName===Li.key);Ri&&(Ri.truncation={num:Li.num,rule:Li.rule})}if(yi!=null&&yi.length)for(const Li of yi){const{fieldType:Ri,columnData:hi,...Ci}=Li;Ri==="indicators"?(Xr=Gr,si=hi):Ri==="dimension"&&(Xr=Kr);const Di=Xr.find($i=>$i.label===Ci.label);Di&&(Di.sort={...Ci,columnName:Di.columnName})}if((xi=Object.keys(di))!=null&&xi.length)for(const Li in di){const Ri=Kr.find(hi=>hi.label===Li);Ri&&((ni=di[Li])!=null&&ni.length)&&(Ri.aggregateMethod=di[Li])}Ur=[],Yr=[];for(const Li of Kr)Ei.includes(Li.columnName)?Ur.push(Li):Oi.includes(Li.columnName)&&Yr.push(Li)}if(Nn(dr,["text","proportion","counter","gauge"])?br="zb":Nn(dr,["valueline"])?br="valueline":Nn(dr,["indexPanel"])?br="indexPanel":Nn(dr,["boxplot"])?br="boxplot":Nn(dr,["budget"])&&(br="budget"),hr||dr==="card"){if(Ur.length===0||Gr.length===0)return;br="grouptable"}else{if(Cr==="1"&&!Kr.length&&!Hr.length)return;if(["2","4"].includes(Cr)&&Gr.length===0)return;if(Cr==="3"&&(!Fr&&mr!=="EDV_DATA_SET"||!Or.labelField||!Or.valueField))return;if(Cr==="3"&&dr==="ecanDataSelect"&&Gr.length===0)return}_r!=null&&_r.length&&(Cr="1",br="grouptable");let fi;if(!Nn(dr,["scatter","valueline"])&&((ai=Object.keys(Or))!=null&&ai.length)){const Xr=getConditions(Br).find(ri=>ri.conditionKey==="parentCode"),vi={};if(Xr){const ri=getGlobalModel(Xr.id)||{};ri!=null&&ri.itemCodes?vi.parentItemCodes=ri.itemCodes:vi.parentItemCodes=null}dr==="ecanDataSelect"&&(vi.indicatorList=Gr.filter(ri=>ri.show)),mr==="EDV_DATA_SET"&&(vi.edvDataSetId=Wr),Mr.sort&&(vi.sort=Mr.sort);let Si="normalSelect";dr==="ecanDataSelect"?Si="normalSelectData":dr==="ecanTreeSelect"&&(Si="treeSelect"),fi={url:"/diagram/formData",source:mr,dataViewId:gr,plugin:"4",layer:Cr,chartType:dr==="ecanTreeSelect"?"treeSelect":"normalSelect",rangeIndexTypeGuid:Fr,type:Si,labelField:Or.labelField,valueField:Or.valueField,parentField:Or.parentField,sqlConditions:qr,idxLibMode:"WITH_DATE_DIM_TABLE",dataSourceId:Vr,keyName:ct.keyName,...vi}}else{let Xr={};Nn(dr,["scatter","valueline"])?Xr={classifications:Lr}:Xr={classification:Mr},Hr!=null&&Hr.length&&(Xr.indexLibColumns=Hr,Xr.isIndexSet=!0),Qr!=null&&Qr.length&&(Xr.specialIndicatorList=Qr),ur.isIndexQuery&&(Xr.isIndexQuery=ur.isIndexQuery),fi={url:"/diagram",source:mr,dataViewId:gr,plugin:pr?"5":yr,layer:Cr,chartType:pr?"pivot-table":br,series:Dr,indicatorList:Gr,queryColumns:hr?[]:Kr,pageFlag:!0,edvDataSetId:Wr||"",sqlConditions:qr.map(vi=>{const{fieldValue:Si}=vi,ri={};return Si&&Array.isArray(Si)&&(ri.fieldValue=JSON.stringify(Si)),{...vi,...ri}}),idxLibMode:$r,dataSourceId:Vr,preview:zr,rowHeaders:Ur,keyName:ct.keyName,columnData:si,columnHeaders:Yr,...Xr}}return fi},useIndicatorData=(ct={},Dn=()=>{})=>{var Cr;const{pageMode:ur}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),{requestToken:dr}=vue.inject(GLOBAL_TOKEN,{requestToken:()=>{}}),{setLoadedData:fr}=vue.inject(LOADED_DATA,{setLoadedData:(br,Ar)=>{}}),{getAllGlobalModel:hr}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),{pageId:vr}=vue.inject("templateOperate",{pageId:""})||{},pr=vue.inject(COMMON_OPERATE,{operateAction:(br,Ar)=>{}}),mr=vue.inject("componentList",[]);ct.dataType==="indicator"&&dr();const gr=async(br={})=>{var kr,Pr,Ir,Br,Or;if(vue.unref(ur)==="design")return;const Ar=hr();fr(ct.id,!1);const wr=formatIndicatorParams({...ct,globalModel:Ar,allComponentList:vue.unref(mr)},br),{url:_r,...Tr}=wr||{},{pathname:Er,search:xr}=window==null?void 0:window.location;let Sr=vr||((kr=window==null?void 0:window.config)==null?void 0:kr.pageId);if(!Sr&&Er){const Nr=Er.split("/");if(Nr!=null&&Nr.length){const jr=Nr[Nr.length-1];/^\d+$/.test(jr)&&(Sr=jr)}}if(_r&&Tr){let Nr,jr;if(ct.type==="ecanIndexPanel"&&(Nr=ct.theFlag),["/diagram/formData","/diagram"].includes(_r)){jr={};const $r=xr.slice(1,xr.length).split("&");for(const zr of $r)if(zr){const Wr=zr.split("=");if(Wr[0])if(Wr[0]==="userInfo")try{jr.token=(Ir=(Pr=JSON.parse(decodeURIComponent(Wr[1])))==null?void 0:Pr.baseInfo)==null?void 0:Ir.hrpToken}catch(qr){console.log(qr)}else jr[Wr[0]]=Wr[1]}}try{const Vr={url:`${INDICATOR_URL}${_r}`,method:"post",headers:{Authentication:(Br=window==null?void 0:window.config)==null?void 0:Br.indicatorToken,operateContext:CONTEXT},data:{...Tr,pageId:Sr,theFlag:Nr,extParam:jr},signal:((Or=window.controller)==null?void 0:Or.signal)||""},$r=_r==="/diagram"?await enqueueIndicatorRequest(ct.requestSort||0,Vr):await request(Vr);return br!=null&&br.isTimer&&Dn($r),pr==null||pr.operateAction("SAVE_COMPONENT_RES_DATA",{id:ct.id,data:($r==null?void 0:$r.data)||{}}),ct.type==="ecanIndexPanel"&&(pr==null||pr.operateAction("SAVE_INDEX_PANEL_REQ_PARAMS",Tr)),$r}catch(Vr){console.error(Vr)}}},yr=vue.unref(ur)!=="design"&&((Cr=ct==null?void 0:ct.graphicConfig)==null?void 0:Cr.pageMode)!=="design"&&ct.isOpenRequestTimer&&ct.requestInterval&&setInterval(()=>{gr({isTimer:!0})},ct.requestInterval*1e3);return vue.onUnmounted(()=>{clearInterval(yr)}),gr},useHrefParamsToGlobalVariables=()=>{const Dn=window.location.search.slice(1).split("&"),ur=Dn.length,dr={};for(let fr=0;fr<ur;fr++){const hr=Dn[fr];if(hr==null||hr==="")continue;const vr=hr.split("=");if(Array.isArray(vr)){const pr=vr[0];pr.includes("{")||(dr[pr]=vr[1])}}window.config.requestParams={...window.config.requestParams,...dr},window.config={...window.config,...dr}},useDataSource=ct=>{const{props:Dn,loading:ur,setData:dr}=ct,{allComponentResData:fr}=vue.inject(All_COMPONENT_RES_DATA,{allComponentResData:{}}),hr=vue.inject(COMMON_OPERATE,{operateAction:(wr,_r)=>{}}),vr=vue.inject("usedComponentList",[]),pr=wr=>{hr==null||hr.operateAction("SAVE_COMPONENT_RES_DATA",{id:Dn.id,data:wr?(wr==null?void 0:wr.data)||{}:{}})},mr=vue.computed(()=>{let wr={};if(Dn.dataType==="component"){const{associatId:_r}=Dn,Tr=vue.unref(vr).find(Er=>Er.id===_r);(Tr==null?void 0:Tr.dataType)==="static"?wr=Tr!=null&&Tr.data?{rows:Tr==null?void 0:Tr.data}:{}:_r&&(wr=vue.unref(fr)[_r]||{})}return{data:{data:wr,success:!0}}});vue.watch(()=>mr.value,wr=>{Dn.dataType==="component"&&(pr(wr),dr(wr))},{deep:!0});const gr=useRequestData(Dn),yr=async()=>{try{ur&&(ur.value=!0);const wr=await gr();dr(wr)}catch(wr){console.error(wr)}finally{ur&&(ur.value=!1)}},Cr=useIndicatorData(Dn,dr),br=async()=>{try{ur&&(ur.value=!0);const wr=await Cr();dr(wr)}catch(wr){console.error(wr)}finally{ur&&(ur.value=!1)}};return async()=>{switch(Dn.dataType){case"indicator":await br();break;case"request":await yr();break;case"component":{const wr=vue.unref(mr);pr(wr),dr(wr);break}}}},_sfc_main$I=vue.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...pageConfigComponentProps,pageId:{type:String,default:""},customId:{type:String,default:"container"},portId:{type:String,default:"norPageConfig"}},setup(ct,{expose:Dn}){const{width:ur,height:dr,isCompatible:fr}=vue.inject(GLOBAL_CONFIG,{width:null,height:null,isCompatible:null}),hr=vue.ref(dr.value);vue.watch(()=>dr.value,Nr=>{hr.value=Nr});const vr=vue.inject("setPageHeight",(Nr,jr)=>{}),pr=vue.inject("isMobile",!1),mr=vue.computed(()=>{const Nr={};return(!fr.value||!pr)&&(Nr.width=ur.value,Nr.height=hr.value),{...Nr,backgroundColor:ct.pageId?"transparent":ct.backgroundColor,backgroundImage:useImagePath(ct.backgroundImage,!0),backgroundSize:ct.backgroundSize}}),gr=vue.ref(0),yr=vue.ref(0),Cr=vue.ref(0),br=vue.ref(0),Ar=vue.ref(!1),wr=vue.ref();let _r;const Tr=Nr=>{hr.value=Nr},Er=()=>new Promise(Nr=>{vue.nextTick(()=>{ur.value&&hr.value?(gr.value=parseFloat(ur.value),yr.value=parseFloat(hr.value)):(gr.value=wr.value.clientWidth,yr.value=wr.value.clientHeight),(!Cr.value||!br.value)&&(Cr.value=window.screen.width,br.value=window.screen.height),Nr()})}),xr=()=>{gr.value&&yr.value?(wr.value.style.width=`${gr.value}px`,wr.value.style.height=`${yr.value}px`):(wr.value.style.width=`${Cr.value}px`,wr.value.style.height=`${br.value}px`)};vue.watch([ur,hr],async()=>{ct.pageId||(await Er(),xr(),kr(),window.addEventListener("resize",Ir),Br()),Ar.value=!0},{immediate:!0});const Sr=vue.ref({});vue.provide("scaleValue",Sr);const kr=()=>{if(fr.value&&pr){wr.value.style.width="100%",wr.value.style.height="auto",vr("auto",yr.value);return}const Nr=document.body.clientWidth,jr=document.body.clientHeight,Vr=gr.value||Cr.value,$r=yr.value||br.value,zr=Nr/Vr;let Wr=jr/$r;(gr.value!==1920||yr.value!==1080)&&(Wr=yr.value/gr.value*Nr/$r),Sr.value={widthScale:zr,heightScale:Wr},wr.value&&(wr.value.style.transform=`scale(${zr}, ${Wr})`),vr(Sr.value,yr.value)},Pr=vue.computed(()=>{var jr;let Nr={};return ct.customId==="modalContainer"&&((jr=vue.unref(Sr))!=null&&jr.heightScale)&&(Nr.height=100/vue.unref(Sr).heightScale+"vh"),Nr}),Ir=lodashEs.debounce(async()=>{await Er(),kr()},100),Br=()=>{const Nr=window.MutationObserver;_r=new Nr(Ir),_r.observe(wr.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},Or=()=>{_r&&(_r.disconnect(),_r.takeRecords(),_r=null)};return vue.onMounted(()=>{Ar.value=!1}),vue.onUnmounted(()=>{window.removeEventListener("resize",Ir),Or()}),Dn({changePageHeight:Tr}),{style:mr,container:wr,ready:Ar,scaleValue:Sr,containerStyle:Pr}}}),PageConfig_vue_vue_type_style_index_0_scoped_d121a727_lang="",_hoisted_1$w=["id"],_hoisted_2$j=["id"];function _sfc_render$N(ct,Dn,ur,dr,fr,hr){return vue.openBlock(),vue.createElementBlock("div",{class:"page-config-container",id:ct.customId,style:vue.normalizeStyle(ct.containerStyle),ref:"container"},[ct.customId!=="modalContainer"&&(ct.ready||ct.pageId)?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"page-config",id:ct.portId,style:vue.normalizeStyle(ct.style)},[vue.renderSlot(ct.$slots,"default",{},void 0,!0)],12,_hoisted_2$j)):vue.createCommentVNode("",!0)],12,_hoisted_1$w)}const PageConfig=_export_sfc$1(_sfc_main$I,[["render",_sfc_render$N],["__scopeId","data-v-d121a727"]]),EcanPageConfig=withInstall$1(PageConfig),providerConfig={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px",pageFontFamily:"",textColor:"",jumpType:"page",jumpTime:null,jumpPage:"",jumpLink:"",requestList:[],events:[],isCompatible:!0,variableList:[],drillingMode:"pivotTable",pivotTableFontSize:"16px",drillDetailUrl:"",hideLoading:!1,groupMap:{}},providerConfigComponentProps=transformToComponentProps(providerConfig),_sfc_main$H=vue.defineComponent({name:"IndicatorDetailModal",components:{BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1,CloseOutlined:CloseOutlined$1,ZoomInOutlined:ZoomInOutlined$1,ZoomOutOutlined:ZoomOutOutlined$1,RedoOutlined:RedoOutlined$1},props:{theme:{type:String,default:"light"}},setup(ct,{expose:Dn}){const ur=vue.ref(!1),dr=vue.ref([]),fr=vue.ref(!1),hr=vue.ref(),vr=vue.ref(!0),pr=vue.ref(1),mr=vue.inject("isMobile",!1),gr=vue.computed(()=>ct.theme),yr=vue.computed(()=>pr.value!==1?{transform:`scale(${pr.value})`,transformOrigin:"left top"}:{}),Cr=async({data:Ir,indicatorUrl:Br,indicatorToken:Or,context:Nr,pageId:jr})=>{var Wr,qr;vr.value=!0,fr.value=!0,ur.value=!0;let Vr=[];const{graphicConfig:$r,theFlag:zr}=vue.unref(Ir)||{};if($r){const{leftAxisList:Mr=[],rightAxisList:Lr=[],indicators:Fr=[]}=$r,Dr=Mr.concat(Lr).concat(Fr);Dr!=null&&Dr.length&&(Vr=Dr.map(Gr=>({calcType:Gr.calcType||"COLUMN",columnName:Gr.name,hrpIndexCode:Gr.indexCode,hrpIndexCodeNum:Gr.indexCodeNum,label:Gr.label,show:Gr.show,formula:Gr.formula})))}if(Vr!=null&&Vr.length)try{const Mr=await request({url:`${vue.unref(Br)}/diagram/obtainIndicatorInfo`,method:"post",headers:{Authentication:Or,operateContext:Nr},data:{source:"INDICATOR_LIB",pageId:jr,indicatorList:Vr,theFlag:zr}}),Lr=((Wr=Mr==null?void 0:Mr.data)==null?void 0:Wr.data)||[];(qr=Lr[0])!=null&&qr.remark?(hr.value=Lr[0].remark,dr.value=[]):(hr.value=null,dr.value=Lr)}catch{}finally{fr.value=!1}vue.nextTick(()=>{wr(!0),_r(!0)})},br=()=>document.querySelector("#modalContainer")||document.body,Ar=vue.computed(()=>{let Ir="ind-detail-modal";return(vr.value||vue.unref(mr))&&(Ir+=" full",vue.unref(mr)&&(Ir+=" mobile")),vue.unref(gr)==="darkBlue"&&(Ir+=" darkBlue"),Ir}),wr=Ir=>{const Br=document.querySelector(".ind-detail-modal .ant-modal-header");Br&&(Ir?Br.addEventListener("dblclick",Er):Br.removeEventListener("dblclick",Er))},_r=Ir=>{const Br=document.querySelector(".ind-detail-modal .ant-modal-header");if(Br)if(Ir)Br.addEventListener("mousedown",Tr);else{const Or=Br.parentElement;Or&&(Or.style.left="",Or.style.top=""),Br.removeEventListener("mousedown",Tr)}};function Tr(Ir){dragModalAction(Ir,".ind-detail-modal .ant-modal-header")}const Er=()=>{vr.value=!vr.value,vue.nextTick(()=>{vr.value?_r(!1):_r(!0)})},xr=()=>{wr(!1),_r(!1)},Sr=()=>{pr.value+=.5},kr=()=>{vue.unref(pr)>1&&(pr.value-=.5)},Pr=()=>{pr.value=1};return vue.watch(pr,Ir=>{localStorage.setItem("indDetailZoom",String(Ir))}),vue.watch(ur,Ir=>{Ir?document.documentElement.style.overflow="hidden":document.documentElement.style.overflow="hidden auto"}),vue.onMounted(()=>{var Br,Or;const Ir=localStorage.getItem("indDetailZoom");if(Ir&&(pr.value=+Ir),vue.unref(mr)){const Nr=document.querySelector("#modalContainer");vr.value=!0,(Br=Nr==null?void 0:Nr.style)==null||Br.setProperty("--window-screen-width",document.body.clientWidth+"px"),(Or=Nr==null?void 0:Nr.style)==null||Or.setProperty("--window-screen-height",document.body.clientHeight+"px")}}),Dn({showModal:Cr}),{visible:ur,dataList:dr,isLoading:fr,hasOwn:Tn,remarkData:hr,wrapClassName:Ar,isIndFullScreen:vr,infoStyle:yr,indDetailZoom:pr,isMobile:mr,getContainer:br,toggleFullScreen:Er,onDetailCancel:xr,handleZoomIn:Sr,handleZoomOut:kr,handleResetZoom:Pr}}}),IndicatorDetailModal_vue_vue_type_style_index_0_scoped_3af47b3e_lang="",IndicatorDetailModal_vue_vue_type_style_index_1_lang="",_withScopeId$b=ct=>(vue.pushScopeId("data-v-3af47b3e"),ct=ct(),vue.popScopeId(),ct),_hoisted_1$v=_withScopeId$b(()=>vue.createElementVNode("div",{class:"modal-title"},"指标详情",-1)),_hoisted_2$i={class:"zoom-btn"},_hoisted_3$b={key:0,class:"spin-container"},_hoisted_4$6=["innerHTML"],_hoisted_5$6={class:"index-name"},_hoisted_6$6={key:0,class:"card-row"},_hoisted_7$6=_withScopeId$b(()=>vue.createElementVNode("div",{class:"label"},"计量单位:",-1)),_hoisted_8$5={class:"content"},_hoisted_9$4={key:1,class:"card-row"},_hoisted_10$3=_withScopeId$b(()=>vue.createElementVNode("div",{class:"label"},"指标定义:",-1)),_hoisted_11$3={class:"content"},_hoisted_12$3={key:2,class:"card-row"},_hoisted_13$3=_withScopeId$b(()=>vue.createElementVNode("div",{class:"label"},"计算方法:",-1)),_hoisted_14$3={class:"content"},_hoisted_15$2={key:3,class:"card-row"},_hoisted_16$1=_withScopeId$b(()=>vue.createElementVNode("div",{class:"label"},"指标说明:",-1)),_hoisted_17$1={class:"content"};function _sfc_render$M(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("close-outlined"),pr=vue.resolveComponent("redo-outlined"),mr=vue.resolveComponent("zoom-out-outlined"),gr=vue.resolveComponent("zoom-in-outlined"),yr=vue.resolveComponent("switcher-outlined"),Cr=vue.resolveComponent("border-outlined"),br=vue.resolveComponent("a-spin"),Ar=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(Ar,{visible:ct.visible,"onUpdate:visible":Dn[0]||(Dn[0]=wr=>ct.visible=wr),width:"55%",getContainer:ct.getContainer,footer:null,destroyOnClose:!0,bodyStyle:{maxHeight:ct.isIndFullScreen?"":"70vh",height:ct.isIndFullScreen?"100vh":"",overflow:"auto",padding:"20px 24px 24px"},"wrap-class-name":ct.wrapClassName,onCancel:ct.onDetailCancel},{title:vue.withCtx(()=>[_hoisted_1$v]),closeIcon:vue.withCtx(()=>[vue.createVNode(vr,{class:vue.normalizeClass(["close-icon",ct.theme])},null,8,["class"])]),default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$i,[ct.indDetailZoom>1?(vue.openBlock(),vue.createBlock(pr,{key:0,class:"modal-icon",title:"还原",onClick:ct.handleResetZoom},null,8,["onClick"])):vue.createCommentVNode("",!0),ct.indDetailZoom>1?(vue.openBlock(),vue.createBlock(mr,{key:1,class:"modal-icon",title:"缩小内容",onClick:ct.handleZoomOut},null,8,["onClick"])):vue.createCommentVNode("",!0),vue.createVNode(gr,{class:"modal-icon",title:"放大内容",onClick:vue.withModifiers(ct.handleZoomIn,["stop","prevent"])},null,8,["onClick"]),!ct.isMobile&&ct.isIndFullScreen?(vue.openBlock(),vue.createBlock(yr,{key:2,class:vue.normalizeClass(["modal-icon",ct.theme]),title:"取消全屏",onClick:ct.toggleFullScreen},null,8,["class","onClick"])):ct.isMobile?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(Cr,{key:3,class:vue.normalizeClass(["modal-icon",ct.theme]),title:"全屏",onClick:ct.toggleFullScreen},null,8,["class","onClick"]))]),ct.isLoading?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$b,[vue.createVNode(br,{size:"large"})])):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"info-container",style:vue.normalizeStyle(ct.infoStyle)},[ct.remarkData?(vue.openBlock(),vue.createElementBlock("div",{key:0,innerHTML:ct.remarkData},null,8,_hoisted_4$6)):ct.dataList.length?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:1},vue.renderList(ct.dataList,(wr,_r)=>(vue.openBlock(),vue.createElementBlock("div",{class:"detail-wrap",key:_r},[vue.createElementVNode("div",_hoisted_5$6,vue.toDisplayString(wr.indexName||"--"),1),ct.hasOwn(wr,"theUnit")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$6,[_hoisted_7$6,vue.createElementVNode("div",_hoisted_8$5,vue.toDisplayString(wr.theUnit||"--"),1)])):vue.createCommentVNode("",!0),ct.hasOwn(wr,"meaning")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_9$4,[_hoisted_10$3,vue.createElementVNode("div",_hoisted_11$3,vue.toDisplayString(wr.meaning||"--"),1)])):vue.createCommentVNode("",!0),ct.hasOwn(wr,"theFormula")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_12$3,[_hoisted_13$3,vue.createElementVNode("div",_hoisted_14$3,vue.toDisplayString(wr.theFormula||"--"),1)])):vue.createCommentVNode("",!0),ct.hasOwn(wr,"theExplain")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_15$2,[_hoisted_16$1,vue.createElementVNode("div",_hoisted_17$1,vue.toDisplayString(wr.theExplain||"--"),1)])):vue.createCommentVNode("",!0)]))),128)):vue.createCommentVNode("",!0)],4))]),_:1},8,["visible","getContainer","bodyStyle","wrap-class-name","onCancel"])}const IndicatorDetailModal=_export_sfc$1(_sfc_main$H,[["render",_sfc_render$M],["__scopeId","data-v-3af47b3e"]]),lineProps={...props$1,id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"}],titleText:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxInfoSource:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanLine",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,tooltipTextStyleColor:"",noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px",defaultRangeValue:!1,startValue:"",endValue:"",isForbidClick:!1,backgroundColor:"",associatId:""},lineComponentProps=transformToComponentProps(lineProps),lineEvents=["click","refreshData","resetRecord"],useDownloadFile=async(ct,Dn={},ur={})=>{var yr;const dr=await request.post(ct,Dn,{responseType:"blob",headers:ur}),{data:fr,headers:hr}=dr,vr=hr["content-disposition"].split("filename=")[1],pr=new Blob([fr]),mr=document.createElement("a"),gr=window.URL.createObjectURL(pr);mr.href=gr,mr.download=decodeURI(vr),mr.style.display="none",document.body.appendChild(mr),mr.click(),(yr=mr.parentNode)==null||yr.removeChild(mr),window.URL.revokeObjectURL(gr)},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(ct){const{containerMap:Dn={},sourceList:ur=[],pageConfig:dr={}}=ct,fr=lodashEs.cloneDeep(ct.componentList),hr=fr.filter(vr=>vr.type==="ecanTabs"&&vr.isAutoScroll);if(hr!=null&&hr.length)for(const vr of hr){const pr=Dn[vr.id],mr=[];if((!Tn(vr,"componentList")||!(vr!=null&&vr.componentList))&&(vr.componentList=[]),pr){let gr=0;for(const yr in pr){const Cr=pr[yr],br=[];if(Cr!=null&&Cr.length)for(const Ar of Cr){let wr=fr.find(_r=>_r.id===Ar);wr||(wr=ur.find(_r=>_r.id===Ar)),wr&&(br.push(wr),containerType.includes(wr.type)&&br.push(...getComponentByContainer(wr.id,Dn,ur)))}for(const Ar of br)Tn(Ar,"scale")?parseFloat(yr)>0&&(Ar.left=parseFloat(Ar.left)+gr+"px"):(Ar.left=parseFloat(Ar.sourceLeft||Ar.left)-parseFloat(vr.sourceLeft||vr.left)+gr+"px",Ar.top=parseFloat(Ar.sourceTop||Ar.top)-parseFloat(vr.sourceTop||vr.top)+"px"),mr.includes(Ar.id)||mr.push(Ar.id);vr.componentList.push(...br),gr=getMaxLeftInComponents(br,dr)}}for(const gr of mr){const yr=fr.findIndex(Cr=>Cr.id===gr);yr!==-1&&fr.splice(yr,1)}}return fr}function compatibleMobileList(ct){var mr,gr,yr,Cr,br;const Dn=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap","ecanTable"],ur=document.body.clientWidth,{combinationMap:dr={},sourceList:fr=[],pageConfig:hr={}}=ct,vr=ct.containerMap,pr=lodashEs.cloneDeep([...ct.componentList,...getTabsSomeComponentList(vr,fr)]);if(handleContainerMap(vr,pr),(mr=Object.keys(vr))!=null&&mr.length||(gr=Object.keys(dr))!=null&&gr.length){for(const Er in vr){const xr=pr.find(Sr=>Sr.id===Er);if(xr){if(xr!=null&&xr.isFlowGrid){xr.sourceLeft=xr.left,xr.sourceTop=xr.top;continue}Tn(xr,"parentId")||(xr.parentId="",xr.sourceLeft=xr.left,xr.sourceTop=xr.top);let Sr;if(xr.type==="ecanBorder"&&((yr=vr[Er][0])==null?void 0:yr.length)===1&&(Sr=pr.find(kr=>kr.id===vr[Er][0][0]),Dn.includes(Sr==null?void 0:Sr.type)||(Sr=null)),Sr){if(xr.width=ur,xr.height=getFormatWh(Sr.height,hr==null?void 0:hr.height),Sr.parentId=Er,Sr.width=ur-20+"px",Sr.sourceLeft=Sr.left,Sr.sourceTop=Sr.top,Sr.left="10px",Sr.top="0px",Sr.type==="ecanTable"){const{columns:kr=[]}=Sr;Sr.scrollX="max-content";for(const Pr of kr)(Cr=Pr==null?void 0:Pr.width)!=null&&Cr.includes("%")&&(Pr.width=parseFloat(Pr.width)/100*ur+"px")}}else for(const kr in vr[Er])if(vr[Er][kr])for(const Pr of vr[Er][kr]){const Ir=pr.find(Br=>Br.id===Pr);if(Ir&&(Ir.parentId=Er,Ir.sourceLeft=Ir.left,Ir.sourceTop=Ir.top,Ir.left=parseFloat(Ir.left)-parseFloat(xr.sourceLeft||xr.left)+"px",Ir.top=parseFloat(Ir.top)-parseFloat(xr.sourceTop||xr.top)+"px",Ir.type==="ecanIndexPanel")){const{componentIds:Br}=Ir;for(const Or of Br){const Nr=pr.find(jr=>jr.id===Or);Nr&&(Nr.left=parseFloat(Nr.left)-parseFloat(Ir.sourceLeft)+"px",Nr.top=parseFloat(Nr.top)-parseFloat(Ir.sourceTop)+"px")}}}}}const Ar=Array.from(new Set(pr.filter(Er=>(!Tn(Er,"parentId")||Er.parentId==="")&&Er.combinationId).map(Er=>Er.combinationId))),wr=getCombinationList(Ar,{...ct,componentList:pr,pageConfig:hr});wr!=null&&wr.length&&pr.unshift(...wr);const _r=pr.filter(Er=>Dn.includes(Er.type)&&!Tn(Er,"parentId")),Tr=[];for(const Er of _r)if(Er){const xr=Er.id+"_vir";if(Tr.push({id:xr,keyName:Er.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:ur,height:getFormatWh(Er.height,hr==null?void 0:hr.height),left:Er.left,top:Er.top,sourceLeft:Er.left,sourceTop:Er.top}),Er.parentId=xr,Er.sourceLeft=Er.left,Er.sourceTop=Er.top,Er.left=10,Er.top=0,Er.width=ur-20+"px",Er.type==="ecanTable"){const{columns:Sr=[]}=Er;Er.scrollX="max-content";for(const kr of Sr)(br=kr==null?void 0:kr.width)!=null&&br.includes("%")&&(kr.width=parseFloat(kr.width)/100*ur+"px")}}Tr!=null&&Tr.length&&pr.unshift(...Tr);for(const Er of pr){if(Er.parentId===""&&containerType.includes(Er.type))Er.sourceWidth=getFormatWh(Er.width,hr==null?void 0:hr.width),Er.height=(ur/(Er.sourceWidth/getFormatWh(Er.height,hr==null?void 0:hr.height))).toFixed(2)+"px",Er.width="100%",Er.position="relative",Er.top="auto",Er.left="auto";else{const xr=pr.find(Sr=>Sr.id===Er.parentId);if((xr==null?void 0:xr.parentId)===""){const Sr=xr.sourceWidth||getFormatWh(xr.width,hr==null?void 0:hr.width),kr=ur/Sr;Er.scale=kr,Er.top=parseFloat(Er.top)*kr-getFormatWh(Er.height,hr==null?void 0:hr.height)*(1-kr)/2+"px",Er.left=parseFloat(Er.left)*kr-getFormatWh(Er.width,hr==null?void 0:hr.width)*(1-kr)/2+"px"}}Er.type==="ecanModal"&&(Er.parentId="",Er.fullModal=!0)}return sortList(pr)}return pr}function handleContainerMap(ct,Dn){const ur=lodashEs.cloneDeep(ct),dr=Dn.filter(fr=>fr.type==="ecanTabs"&&fr.isAutoScroll);if(dr!=null&&dr.length)for(const fr of dr){const hr=ur[fr.id];for(const vr in hr)for(const pr of hr[vr]){const mr=Dn.find(gr=>gr.id===pr);if(mr&&containerType.includes(mr.type)){const gr=getComponentByContainer(mr.id,ur,Dn);for(const yr of gr)ct[fr.id][vr].push(yr.id),containerType.includes(yr.type)&&delete ct[yr.id];delete ct[mr.id]}}}}function getTabsSomeComponentList(ct,Dn){const ur=[],dr=Dn.filter(fr=>fr.type==="ecanTabs"&&fr.isAutoScroll);if(dr!=null&&dr.length)for(const fr of dr){const hr=ct[fr.id];for(const vr in hr)if(parseFloat(vr)>0)for(const pr of hr[vr]){const mr=Dn.find(gr=>gr.id===pr);mr&&(ur.push(mr),containerType.includes(mr.type)&&ur.push(...getComponentByContainer(mr.id,ct,Dn)))}}return ur}function getComponentByContainer(ct,Dn,ur){const dr=[],fr=Dn[ct];for(const hr in fr)for(const vr of fr[hr]){const pr=ur.find(mr=>mr.id===vr);pr&&(dr.push(pr),containerType.includes(pr.type)&&dr.push(...getComponentByContainer(pr.id,Dn,ur)))}return dr}function getCombinationList(ct,Dn,ur){const{combinationMap:dr={},componentList:fr=[],pageConfig:hr={}}=Dn,vr=[];for(const pr of ct){const mr=dr[pr];if(mr!=null&&mr.length){const gr=fr.filter(yr=>mr.includes(yr.id));if(gr!=null&&gr.length){const yr=getCombinateRect(gr,hr);if(yr){vr.push({...yr,id:pr,keyName:pr,parentId:ur||"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:yr.left,sourceTop:yr.top});for(const Cr of gr)Cr&&(Cr.parentId=pr,Cr.sourceLeft=Cr.left,Cr.sourceTop=Cr.top,Cr.left=parseFloat(Cr.left)-parseFloat(yr.left)+"px",Cr.top=parseFloat(Cr.top)-parseFloat(yr.top)+"px")}}}}return vr}function sortList(ct){const ur=ct.filter(dr=>dr.parentId===""||(dr==null?void 0:dr.isFlowGrid)).sort((dr,fr)=>{const hr=dr.sourceTop?typeof dr.sourceTop=="object"?parseFloat(dr.sourceTop.value):parseFloat(dr.sourceTop):0,vr=fr.sourceTop?typeof fr.sourceTop=="object"?parseFloat(fr.sourceTop.value):parseFloat(fr.sourceTop):0;return isNaN(hr)||isNaN(vr)?0:hr-vr});if(ur!=null&&ur.length){const dr=lodashEs.cloneDeep(ur).map(fr=>({...fr,sourceTop:parseFloat(fr.sourceTop),sourceLeft:parseFloat(fr.sourceLeft)}));for(let fr=0;fr<dr.length-1;fr++)for(let hr=0;hr<dr.length-fr-1;hr++){let vr=!1;if((dr[hr].sourceTop-dr[hr+1].sourceTop>40||Math.abs(dr[hr+1].sourceTop-dr[hr].sourceTop)<=40&&dr[hr].sourceLeft>dr[hr+1].sourceLeft)&&(vr=!0),vr){const pr=dr[hr];dr[hr]=dr[hr+1],dr[hr+1]=pr}}for(const fr of dr){const hr=ct.findIndex(vr=>vr.id===fr.id);hr!==-1&&ct.splice(hr,1)}return[...dr,...ct]}return ct}function getCombinateRect(ct,Dn){const ur=ct.sort((vr,pr)=>parseFloat(vr.top)-parseFloat(pr.top))[0],dr=ct.sort((vr,pr)=>parseFloat(vr.left)-parseFloat(pr.left))[0],fr=ct.map(vr=>({...vr,computedTop:parseFloat(vr.top)+getFormatWh(vr.height,Dn==null?void 0:Dn.height)})).sort((vr,pr)=>pr.computedTop-vr.computedTop)[0],hr=ct.map(vr=>({...vr,computedLeft:parseFloat(vr.left)+getFormatWh(vr.width,Dn==null?void 0:Dn.width)})).sort((vr,pr)=>pr.computedLeft-vr.computedLeft)[0];return ur&&dr&&fr&&hr?{left:dr.left,top:ur.top,width:hr.computedLeft-parseFloat(dr.left)+"px",height:fr.computedTop-parseFloat(ur.top)+"px"}:null}function getMaxLeftInComponents(ct,Dn){const ur=ct.map(dr=>parseFloat(dr.left)+getFormatWh(dr.width,Dn==null?void 0:Dn.width)).sort((dr,fr)=>fr-dr)[0];return ur||0}function moveToComponentList(ct,Dn,ur){const dr=ct[ur],fr=[];if(dr)for(const hr in dr){const vr=dr[hr];for(const pr of vr){const mr=Dn.find(gr=>gr.id===pr);mr&&(fr.push(mr),containerType.includes(mr.type)&&fr.push(...getComponentByContainer(mr.id,ct,Dn)))}}return fr}const _sfc_main$G=vue.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(ct,{emit:Dn}){Dn("ready",ct.component.id)}});function _sfc_render$L(ct,Dn,ur,dr,fr,hr){return ct.component.parentId?(vue.openBlock(),vue.createBlock(vue.Teleport,{key:0,to:"#container_"+ct.component.parentId},[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(ct.component.type),vue.mergeProps({style:{scale:ct.component.scale}},ct.component),null,16,["style"]))],8,["to"])):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(ct.component.type),vue.normalizeProps(vue.mergeProps({key:1},ct.component)),null,16))}const Render=_export_sfc$1(_sfc_main$G,[["render",_sfc_render$L]]),EcanRender=withInstall$1(Render),_sfc_main$F=vue.defineComponent({name:"EcanModal",components:{AModal:antDesignVue.Modal,CloseOutlined:CloseOutlined$1,Render:EcanRender},props:{...modalComponentProps},setup(ct,{emit:Dn}){const ur=vue.ref([]),dr=vue.inject("isMobile",!1),{width:fr,height:hr}=vue.inject(GLOBAL_CONFIG,{width:null,height:null}),vr=vue.computed(()=>ct.fullModal),pr=vue.inject("getContainerMap",()=>{}),mr=vue.inject("getCombinationMap",()=>{}),{clearInteractiveData:gr,interactiveData:yr,setRequestData:Cr}=vue.inject(GLOBAL_MODEL,{setRequestData:(ai,Xr)=>{},clearInteractiveData:()=>{},interactiveData:null}),br=()=>document.getElementById("ProviderConfig")||document.body,Ar=vue.computed(()=>{const ai=ct.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[ai]}}),wr=ct.fullModal?"1920px":ct.width,_r=ct.fullModal?"1080px":ct.height,Tr=ct.originalWidth,Er=ct.originalHeight,xr=vue.ref("80%"),Sr=vue.ref(0),kr=vue.ref(),Pr=vue.ref(0),Ir=vue.ref({}),Br=usePickComponentStyle(ct),Or=vue.ref({}),Nr=vue.ref(!1),jr=vue.ref();let Vr;const $r=()=>{kr.value=parseFloat(wr)/parseFloat(Tr);const ai=parseFloat(_r)/parseFloat(Er),Xr=document.body.offsetWidth,vi=document.body.offsetHeight;if(Sr.value=Xr*vue.unref(kr),Pr.value=vi*ai,xr.value=`${vue.unref(kr)*100}%`,Ir.value={width:`${vue.unref(Sr)}px`,height:`${vue.unref(Pr)}px`,border:`${ct.borderWidth} solid ${ct.borderColor}`,borderRadius:ct.borderRadius+"px",boxShadow:ct.boxShadow},Or.value={...vue.unref(Br),backgroundImage:useImagePath(ct.backgroundImage,!0)},dr)Or.value={...Or.value,width:"100%",height:"100%"};else{const Si={...Or.value,width:wr,height:_r};ct.banScale&&vue.unref(vr)?(Si.width="100%",Si.height="100%"):Si.transform=`scale(${vue.unref(Sr)/parseFloat(wr)},${vue.unref(Pr)/parseFloat(_r)})`,Or.value=Si}},zr=lodashEs.debounce(()=>{$r()},100),Wr=()=>{const ai=window.MutationObserver;Vr=new ai(zr),Vr.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},qr=()=>{Vr&&(Vr.disconnect(),Vr.takeRecords(),Vr=null)},Mr=vue.ref(!1),{touchRequest:Lr}=vue.inject(REQUEST_MODEL,{touchRequest:()=>{}}),Fr=vue.ref(""),Dr=()=>{var vi;const{title:ai}=ct,Xr=(vi=vue.unref(yr))==null?void 0:vi.RECORD;return Xr?jn(ai,{textData:Xr},{useNewline:!1,useSpace:!1}):ai},Gr=useEmitEvent(ct),Rr=ai=>{const{changeIframeStyle:Xr}=window.parent;Xr&&typeof Xr=="function"&&Xr({iframeId:ct.parentIframeId||"",action:ai})},Qr=()=>{vue.unref(vr)&&Rr("open"),dr&&(document.documentElement.style.overflow="hidden"),Fr.value=Dr(),Mr.value=!0},Kr=Gr("hideModal",()=>{vue.unref(vr)&&Rr("close"),Dn("close"),dr&&(document.documentElement.style.overflow="hidden auto",ur.value=[]),Mr.value=!1}),Hr=()=>{Kr()},Ur=()=>{Kr(),gr()},{setModalModel:Jr,pushUseModalIds:Yr,popUseModalIds:si}=vue.inject(MODAL_MODEL,{pushUseModalIds:ai=>{},popUseModalIds:()=>{},setModalModel:(ai,Xr)=>{}}),fi=vue.computed(()=>{let ai=ct.componentList;const Xr=lodashEs.cloneDeep(ct.componentList),vi=pr(),Si=mr(),ri={containerMap:vi,combinationMap:Si};dr&&(ai=compatibleMobileList({...ri,componentList:Xr,sourceList:ct.allComponentList,pageConfig:{width:vue.unref(fr),height:vue.unref(hr)}})),ai=handleScrollCombinations({...ri,componentList:ai,sourceList:ct.allComponentList,pageConfig:{width:vue.unref(fr),height:vue.unref(hr)}});const yi=[];for(const di of ai)if(di.type==="ecanCirculate"){const Ei=moveToComponentList(vi,vue.unref(Xr),di.id);di.componentList=Ei,yi.push(...Ei.map(Oi=>Oi.id))}else if(di.type==="ecanTable"){const{headerFontSize:Ei,fontSize:Oi,size:Li,bodyRowHeight:Ri,headRowHeight:hi}=di;if(!Ri||!hi)if(di.size){let Ci=0;switch(Li){case"default":Ci=16;break;case"middle":Ci=12;break;case"small":Ci=8;break}Ri||(di.bodyRowHeight=(Ci*2+parseFloat(Oi)*1.5715).toFixed(0)+"px"),hi||(di.headRowHeight=(Ci*2+parseFloat(Ei)*1.5715).toFixed(0)+"px")}else Ri||(di.bodyRowHeight="54px"),hi||(di.headRowHeight="54px")}if(yi!=null&&yi.length)for(const di of yi){const Ei=ai.findIndex(Oi=>Oi.id===di);Ei!==-1&&ai.splice(Ei,1)}return ai}),_i=()=>{const ai=ct.id;let Xr=[];const vi=ct.componentList;Array.isArray(vi)&&(Xr=vi.map(Si=>Si.id),Jr(ai,[...new Set(Xr)]))},bi=vue.ref(!1),pi={};for(const ai of ct.requestList)pi[ai.requestName]=useRequestData(ai);vue.watch(()=>Mr.value,async ai=>{if(ai)Nr.value=!1,Yr(ct.id),_i(),await vue.nextTick(()=>{$r(),window.addEventListener("resize",zr),Wr(),Nr.value=!0}),Lr();else{if(Cr)for(const Xr in pi)Cr(Xr,{});si(),window.removeEventListener("resize",zr),qr()}});const mi=vue.computed(()=>vue.unref(kr)>=1),xi=vue.computed(()=>{let ai="ecan-modal";return vue.unref(mi)&&(ai+=" ecan-full-width-modal"),vue.unref(vr)&&(ai+=" ecan-full-modal"),ai});return useOnEvent(ct,{showModal:Qr,hideModal:Kr}),{modalRef:jr,containStyle:Ir,contentStyle:Or,getContainer:br,modalStyle:Ar,modalWith:xr,isFullModal:vr,style:Br,visible:Mr,showModal:Qr,onOk:Hr,onCancel:Ur,isFullWidth:mi,wrapClassName:xi,ready:Nr,usedComponentList:fi,isMobile:dr,readyIds:ur,hasOwn:Tn,onComponentReady:ai=>{ur.value.push(ai)},formatTitle:Fr,requestLoaded:bi}}}),Modal_vue_vue_type_style_index_0_scoped_e8d3acb6_lang="",Modal_vue_vue_type_style_index_1_lang="";function _sfc_render$K(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("close-outlined"),pr=vue.resolveComponent("render"),mr=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(mr,{getContainer:ct.getContainer,wrapClassName:ct.wrapClassName,centered:"",visible:ct.visible,footer:null,width:ct.isFullModal||ct.isFullWidth?"100%":ct.modalWith,destroyOnClose:ct.destroyOnClose,style:vue.normalizeStyle(ct.modalStyle),closable:!1,onOk:ct.onOk,onCancel:ct.onCancel,ref:"modalRef",id:"container_"+ct.id},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"contain",ref:"containRef",style:vue.normalizeStyle(ct.containStyle)},[ct.ready?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"content",style:vue.normalizeStyle(ct.contentStyle)},[vue.createElementVNode("div",{class:"header-bar",style:vue.normalizeStyle({backgroundColor:ct.backgroundColor,padding:"20px 30px",height:ct.isMobile?"62px":""})},[ct.formatTitle?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"ant-modal-title",style:vue.normalizeStyle({fontSize:ct.titleFontSize,color:ct.titleColor})},vue.toDisplayString(ct.formatTitle),5)):vue.createCommentVNode("",!0),ct.isShowCloseBtn?(vue.openBlock(),vue.createBlock(vr,{key:1,class:"close-icon",style:vue.normalizeStyle({color:ct.closeBtnColor}),onClick:ct.onCancel},null,8,["style","onClick"])):vue.createCommentVNode("",!0)],4),ct.usedComponentList.length?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(ct.isMobile?"mobile-wrap":"")},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ct.usedComponentList,(gr,yr)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:gr.id+yr},[ct.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[ct.hasOwn(gr,"parentId")&&(ct.readyIds.includes(gr.parentId)||gr.parentId==="")?(vue.openBlock(),vue.createBlock(pr,{key:0,component:gr,onReady:ct.onComponentReady},null,8,["component","onReady"])):vue.createCommentVNode("",!0)],64)):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(gr.type),vue.mergeProps({key:1},gr,{cpntid:gr.id}),null,16,["cpntid"]))],64))),128))],2)):vue.renderSlot(ct.$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$F,[["render",_sfc_render$K],["__scopeId","data-v-e8d3acb6"]]),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$E=vue.defineComponent({name:"EcanLine",props:{...lineComponentProps},components:{Spin,Echarts,EcanModal},setup(ct,{expose:Dn}){const ur=vue.ref(!1),dr=vue.ref(!1),{pageMode:fr,fontFamily:hr}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),vr=vue.inject("showIndDetail",Mr=>{}),pr=vue.inject("showIndSource",Mr=>{}),mr=vue.inject("usedComponentList",[]),gr=vue.ref(),yr=vue.ref(!1),Cr=usePickComponentStyle(ct),br=vue.ref(),Ar=vue.computed(()=>yr.value?ZOOM_FONT_SIZE:12),wr=vue.ref({});let _r;const Tr=vue.ref({}),Er=vue.ref({}),xr=Mr=>{Tr.value=Mr;const Lr=cr(ct,Mr,{fontSize:vue.unref(Ar),fontFamily:vue.unref(hr),callBackMethodMap:{getCurrentData:Dr=>{_r=Dr},toolboxDownloadShowFun:()=>{useDownloadFile(ct.toolboxDownloadUrl)},toolboxDataZoomShowFun:()=>{var Dr;yr.value=!0,(Dr=br.value)==null||Dr.showModal()},toolboxInfoShowFun:()=>{vr(ct)},toolboxSourceShowFun:()=>{pr(ct)}}});let Fr=parseFloat(ct.legendFontSize);vue.unref(yr)&&(Fr=ZOOM_FONT_SIZE,Lr.toolbox.feature.myDataZoom.show=!1),Lr.legend.textStyle.lineHeight=Fr+8,Lr.legend.textStyle.rich.text.fontSize=Fr,Er.value=Lr},Sr=()=>{yr.value=!1},{getGlobalModel:kr,setGlobalModel:Pr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Mr=>{},setGlobalModel:(Mr,Lr)=>{}}),Ir=(Mr=[],Lr=!1)=>{var Dr;let Fr;if(ct.dataFieldConfigType==="key"){const Gr=Lr?ct.keyTypeDataFieldNames:null;Fr=Xn(Mr,Gr)}else if(ct.dataFieldConfigType==="value"){const Gr=Lr?ct.valueTypeDataFieldNames:null;Fr=Jn(Mr,Gr)}xr(Fr),(Dr=Fr.dataset)!=null&&Dr.length?dr.value=!1:dr.value=!0},Br=(Mr=[],Lr,Fr=!1)=>{var Rr,Qr,Kr;const Gr=Xn(Mr,Fr?Lr:null,!0);if(ct.defaultRangeValue&&setDefaultRangeVal({props:ct,componentList:vue.unref(mr),getGlobalModel:kr},Gr),(Rr=Gr.dataset)!=null&&Rr.length){for(const Hr of Gr.dataset)if((Qr=Hr.data)!=null&&Qr.length)for(const Ur of Hr.data)(Ur.value===null||Ur.value===void 0)&&(Ur.value=0)}xr(Gr),(Kr=Gr.dataset)!=null&&Kr.length?dr.value=!1:dr.value=!0},Or=vue.computed(()=>Object.keys(ct).reduce((Mr,Lr)=>(IGNORE_WATCH_KEYS.has(Lr)||(Mr[Lr]=ct[Lr]),Mr),{}));vue.watch(()=>[ct.data,Or.value],([Mr])=>{(ct.dataType==="static"||vue.unref(fr)==="design")&&Ir(Mr)},{immediate:!0,deep:!0}),vue.watch(yr,()=>{xr(vue.unref(Tr))});const Nr=useEmitEvent(ct);Pr(ct.id,{type:ct.type,RECORD:""});const jr=Nr("click",Mr=>{const Lr=kr(ct.id);Pr(ct.id,{...Lr,type:ct.type,RECORD:ct.tooltipShow?_r:Mr.data})}),Vr=Mr=>{gr.value.chart.containPixel("grid",[Mr.offsetX,Mr.offsetY])&&jr()};ct.isForbidClick||(ct.tooltipShow?wr.value["zr:click"]=Vr:wr.value.click=jr);const $r=Mr=>{var Qr;const{columns:Lr=[],rows:Fr=[]}=((Qr=Mr==null?void 0:Mr.data)==null?void 0:Qr.data)??{};let Dr;Lr.length>0&&(Dr={name:Lr[0],types:Lr.slice(1).map(Kr=>({label:Kr,value:Kr}))});const{leftAxisList:Gr=[]}=ct.graphicConfig,Rr=Gr.filter(Kr=>Kr.show).map(Kr=>Kr.label);for(const Kr of Fr)if(Kr)for(const Hr in Kr)typeof Kr[Hr]=="string"&&Rr.includes(Hr)&&!isNaN(parseFloat(Kr[Hr]))&&(Kr[Hr]=parseFloat(Kr[Hr]));Br(Fr,Dr,!0)},zr=useDataSource({props:ct,loading:ur,setData:Mr=>{var Dr,Gr;ct.dataType!=="component"&&ct.isViewRedrawing&&gr.value.clear();const{columns:Lr=[],rows:Fr=[]}=((Dr=Mr==null?void 0:Mr.data)==null?void 0:Dr.data)||{};(Gr=Lr==null?void 0:Lr.filter(Rr=>Rr&&Rr!=="null"))!=null&&Gr.length?$r(Mr):Ir(Fr,!0)}});useOnEvent(ct,{refreshData:zr,resetRecord:()=>{const Mr=ct.id,Lr=kr(Mr);Pr(Mr,{...Lr,RECORD:""})},click:jr});const{setRequest:qr}=vue.inject(REQUEST_MODEL,{setRequest:Mr=>{}});return typeof qr=="function"&&qr({id:ct.id,requestFn:zr,sortNum:ct.requestSort}),Dn({refreshData:zr}),{option:Er,style:Cr,click:jr,loading:ur,onClose:Sr,ecanModal:br,eventObj:wr,echartRef:gr,emptyData:dr}}}),Line_vue_vue_type_style_index_0_lang="",Line_vue_vue_type_style_index_1_scoped_47a475f9_lang="";function _sfc_render$J(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("echarts"),pr=vue.resolveComponent("spin"),mr=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(ct.style)},[vue.createVNode(pr,{spinning:ct.loading},{default:vue.withCtx(()=>[ct.noDataTip&&ct.emptyData?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"empty-wrap",style:vue.normalizeStyle({color:ct.tipTextColor,fontSize:ct.tipTextFontSize})},[vue.createElementVNode("span",null,vue.toDisplayString(ct.tipText),1)],4)):(vue.openBlock(),vue.createBlock(vr,vue.mergeProps({key:1,ref:"echartRef",option:ct.option,autoresize:""},vue.toHandlers(ct.eventObj)),null,16,["option"]))]),_:1},8,["spinning"]),vue.createVNode(mr,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:ct.onClose},{default:vue.withCtx(()=>[vue.createVNode(pr,{class:"spin-wrap",spinning:ct.loading},{default:vue.withCtx(()=>[vue.createVNode(vr,{option:ct.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Line=_export_sfc$1(_sfc_main$E,[["render",_sfc_render$J],["__scopeId","data-v-47a475f9"]]),EcanLine=withInstall$1(Line);let random=ct=>crypto.getRandomValues(new Uint8Array(ct)),customRandom=(ct,Dn,ur)=>{let dr=(2<<Math.log(ct.length-1)/Math.LN2)-1,fr=-~(1.6*dr*Dn/ct.length);return()=>{let hr="";for(;;){let vr=ur(fr),pr=fr;for(;pr--;)if(hr+=ct[vr[pr]&dr]||"",hr.length===Dn)return hr}}},customAlphabet=(ct,Dn)=>customRandom(ct,Dn,random),nanoid=(ct=21)=>{let Dn="",ur=crypto.getRandomValues(new Uint8Array(ct));for(;ct--;){let dr=ur[ct]&63;dr<36?Dn+=dr.toString(36):dr<62?Dn+=(dr-26).toString(36).toUpperCase():dr<63?Dn+="_":Dn+="-"}return Dn};const _sfc_main$D=vue.defineComponent({name:"TrendModal",components:{EcanLine,CloseOutlined:CloseOutlined$1,BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1},props:{theme:{type:String,default:"light"}},setup(ct,{expose:Dn}){const ur=vue.ref(!1),dr=vue.ref(),fr=vue.ref(),hr=vue.ref(!0),vr=vue.ref({}),pr=vue.ref(!0),mr=vue.inject("isMobile",!1),gr=async({data:Er,pageConfig:xr,unitText:Sr})=>{if(Er){hr.value=!0,vr.value=xr;const{graphicConfig:kr}=Er,Pr=nanoid(6),Ir={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:(kr==null?void 0:kr.indicators)||[],controlList:(kr==null?void 0:kr.controlList)||[],variableList:(kr==null?void 0:kr.variableList)||[],variableConditions:(kr==null?void 0:kr.variableConditions)||[]};dr.value={...lodashEs.cloneDeep(lineProps),id:Pr,keyName:`折线图_${Pr}`,position:"relative",top:0,left:0,width:vue.unref(mr)||vue.unref(hr)?"100%":parseFloat(xr.width)*.57+"px",height:vue.unref(mr)||vue.unref(hr)?"100%":parseFloat(xr.height)*.4+"px",dataType:"indicator",tooltipFormatter:"{marker} {a} {c}"+Sr,xAxisLabelRotate:45,yAxisLabelFormatter:Sr?`{value}${Sr}`:"{value}",isForbidClick:!0,graphicConfig:Ir},ur.value=!0,vue.nextTick(()=>{br(!0),Ar(!0),vue.unref(fr).refreshData()})}},yr=()=>document.querySelector("#modalContainer")||document.body,Cr=vue.computed(()=>{let Er="trend-modal";return vue.unref(mr)?Er+=" mobile":hr.value&&(Er+=" full"),ct.theme==="darkBlue"&&(Er+=" darkBlue"),Er});vue.watch(ur,Er=>{Er?document.documentElement.style.overflow="hidden":document.documentElement.style.overflow="hidden auto"}),vue.watch(hr,Er=>{pr.value=!1,vue.unref(dr).width=Er?"100%":parseFloat(vue.unref(vr).width)*.57+"px",vue.unref(dr).height=Er?"100%":parseFloat(vue.unref(vr).height)*.4+"px",vue.nextTick(()=>{pr.value=!0,vue.nextTick(()=>{vue.unref(fr).refreshData()})})});const br=Er=>{const xr=document.querySelector(".trend-modal .ant-modal-header");xr&&(Er?xr.addEventListener("dblclick",_r):xr.removeEventListener("dblclick",_r))},Ar=Er=>{const xr=document.querySelector(".trend-modal .ant-modal-header");if(xr)if(Er)xr.addEventListener("mousedown",wr);else{const Sr=xr.parentElement;Sr&&(Sr.style.left="",Sr.style.top=""),xr.removeEventListener("mousedown",wr)}};function wr(Er){dragModalAction(Er,".trend-modal .ant-modal-header")}const _r=()=>{hr.value=!hr.value,vue.nextTick(()=>{hr.value?Ar(!1):Ar(!0)})},Tr=()=>{br(!1),Ar(!1)};return vue.onMounted(()=>{var Er,xr;if(vue.unref(mr)){const Sr=document.querySelector("#modalContainer");hr.value=!0,(Er=Sr==null?void 0:Sr.style)==null||Er.setProperty("--window-screen-width",document.body.clientWidth+"px"),(xr=Sr==null?void 0:Sr.style)==null||xr.setProperty("--window-screen-height",document.body.clientHeight+"px")}}),Dn({showModal:gr}),{visible:ur,componentConfig:dr,lineRef:fr,wrapClassName:Cr,isMobile:mr,isIndFullScreen:hr,isRender:pr,getContainer:yr,toggleFullScreen:_r,onDetailCancel:Tr}}}),TrendModal_vue_vue_type_style_index_0_scoped_a24645dd_lang="",TrendModal_vue_vue_type_style_index_1_lang="",_withScopeId$a=ct=>(vue.pushScopeId("data-v-a24645dd"),ct=ct(),vue.popScopeId(),ct),_hoisted_1$u=_withScopeId$a(()=>vue.createElementVNode("div",{class:"modal-title"},"趋势图",-1)),_hoisted_2$h={class:"zoom-btn"};function _sfc_render$I(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("close-outlined"),pr=vue.resolveComponent("switcher-outlined"),mr=vue.resolveComponent("border-outlined"),gr=vue.resolveComponent("ecan-line"),yr=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(yr,{visible:ct.visible,"onUpdate:visible":Dn[0]||(Dn[0]=Cr=>ct.visible=Cr),width:"60%",getContainer:ct.getContainer,footer:null,destroyOnClose:!0,bodyStyle:{maxHeight:ct.isMobile||ct.isIndFullScreen?"":"70vh",height:ct.isMobile||ct.isIndFullScreen?"100vh":"",overflow:"auto",padding:"20px 24px 24px"},"wrap-class-name":ct.wrapClassName,onCancel:ct.onDetailCancel},{title:vue.withCtx(()=>[_hoisted_1$u]),closeIcon:vue.withCtx(()=>[vue.createVNode(vr,{class:vue.normalizeClass(["close-icon",ct.theme])},null,8,["class"])]),default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$h,[!ct.isMobile&&ct.isIndFullScreen?(vue.openBlock(),vue.createBlock(pr,{key:0,class:vue.normalizeClass(["modal-icon",ct.theme]),title:"取消全屏",onClick:ct.toggleFullScreen},null,8,["class","onClick"])):ct.isMobile?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(mr,{key:1,class:vue.normalizeClass(["modal-icon",ct.theme]),title:"全屏",onClick:ct.toggleFullScreen},null,8,["class","onClick"]))]),ct.componentConfig&&ct.isRender?(vue.openBlock(),vue.createBlock(gr,vue.mergeProps({key:0},ct.componentConfig,{ref:"lineRef"}),null,16)):vue.createCommentVNode("",!0)]),_:1},8,["visible","getContainer","bodyStyle","wrap-class-name","onCancel"])}const TrendModal=_export_sfc$1(_sfc_main$D,[["render",_sfc_render$I],["__scopeId","data-v-a24645dd"]]),_sfc_main$C=vue.defineComponent({name:"SourceModal",components:{CloseOutlined:CloseOutlined$1,BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1,ATable:antDesignVue.Table},props:{theme:{type:String,default:"light"}},setup(ct,{expose:Dn}){const ur=[{title:"指标名称",dataIndex:"indexName"},{title:"指标编码",dataIndex:"indexCode"},{title:"指标内涵",dataIndex:"meaning",width:300},{title:"公式",dataIndex:"theFormula"}],dr=vue.ref([]),fr=vue.ref(!1),hr=vue.ref(!1),vr=vue.ref(!0),pr=vue.inject("isMobile",!1),mr=async({data:Tr,indicatorUrl:Er,indicatorToken:xr,context:Sr,pageId:kr})=>{var Pr;if(Tr){vr.value=!0,fr.value=!0,hr.value=!0;let Ir=[];const{graphicConfig:Br,theFlag:Or}=vue.unref(Tr)||{};if(Br){const{leftAxisList:Nr=[],rightAxisList:jr=[],indicators:Vr=[]}=Br,$r=Nr.concat(jr).concat(Vr);$r!=null&&$r.length&&(Ir=$r.map(zr=>({calcType:zr.calcType||"COLUMN",columnName:zr.name,hrpIndexCode:zr.indexCode,hrpIndexCodeNum:zr.indexCodeNum,label:zr.label,show:zr.show,formula:zr.formula})))}if(Ir!=null&&Ir.length)try{const Nr=await request({url:`${vue.unref(Er)}/diagram/obtainIndexInfo`,method:"post",headers:{Authentication:xr,operateContext:Sr},data:{source:"INDICATOR_LIB",pageId:kr,indicatorList:Ir,theFlag:Or}});dr.value=((Pr=Nr==null?void 0:Nr.data)==null?void 0:Pr.data)||[]}catch{}finally{fr.value=!1}vue.nextTick(()=>{Cr(!0),br(!0)})}},gr=()=>document.querySelector("#modalContainer")||document.body,yr=vue.computed(()=>{let Tr="source-modal";return vue.unref(pr)?Tr+=" mobile":vr.value&&(Tr+=" full"),ct.theme==="darkBlue"&&(Tr+=" darkBlue"),Tr});vue.watch(hr,Tr=>{Tr?document.documentElement.style.overflow="hidden":document.documentElement.style.overflow="hidden auto"});const Cr=Tr=>{const Er=document.querySelector(".source-modal .ant-modal-header");Er&&(Tr?Er.addEventListener("dblclick",wr):Er.removeEventListener("dblclick",wr))},br=Tr=>{const Er=document.querySelector(".source-modal .ant-modal-header");if(Er)if(Tr)Er.addEventListener("mousedown",Ar);else{const xr=Er.parentElement;xr&&(xr.style.left="",xr.style.top=""),Er.removeEventListener("mousedown",Ar)}};function Ar(Tr){dragModalAction(Tr,".source-modal .ant-modal-header")}const wr=()=>{vr.value=!vr.value,vue.nextTick(()=>{vr.value?br(!1):br(!0)})},_r=()=>{Cr(!1),br(!1)};return vue.onMounted(()=>{var Tr,Er;if(vue.unref(pr)){const xr=document.querySelector("#modalContainer");vr.value=!0,(Tr=xr==null?void 0:xr.style)==null||Tr.setProperty("--window-screen-width",document.body.clientWidth+"px"),(Er=xr==null?void 0:xr.style)==null||Er.setProperty("--window-screen-height",document.body.clientHeight+"px")}}),Dn({showModal:mr}),{columns:ur,dataSource:dr,visible:hr,wrapClassName:yr,isMobile:pr,isIndFullScreen:vr,isLoading:fr,getContainer:gr,toggleFullScreen:wr,onDetailCancel:_r}}}),SourceModal_vue_vue_type_style_index_0_scoped_ac0aee1b_lang="",SourceModal_vue_vue_type_style_index_1_lang="",_withScopeId$9=ct=>(vue.pushScopeId("data-v-ac0aee1b"),ct=ct(),vue.popScopeId(),ct),_hoisted_1$t=_withScopeId$9(()=>vue.createElementVNode("div",{class:"modal-title"},"指标来源",-1)),_hoisted_2$g={class:"zoom-btn"},_hoisted_3$a={key:0,class:"spin-container"};function _sfc_render$H(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("close-outlined"),pr=vue.resolveComponent("switcher-outlined"),mr=vue.resolveComponent("border-outlined"),gr=vue.resolveComponent("a-spin"),yr=vue.resolveComponent("a-table"),Cr=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(Cr,{visible:ct.visible,"onUpdate:visible":Dn[0]||(Dn[0]=br=>ct.visible=br),width:"60%",getContainer:ct.getContainer,footer:null,destroyOnClose:!0,bodyStyle:{maxHeight:ct.isMobile||ct.isIndFullScreen?"":"70vh",height:ct.isMobile||ct.isIndFullScreen?"100vh":"",overflow:"auto",padding:"20px 24px 24px"},"wrap-class-name":ct.wrapClassName,onCancel:ct.onDetailCancel},{title:vue.withCtx(()=>[_hoisted_1$t]),closeIcon:vue.withCtx(()=>[vue.createVNode(vr,{class:vue.normalizeClass(["close-icon",ct.theme])},null,8,["class"])]),default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$g,[!ct.isMobile&&ct.isIndFullScreen?(vue.openBlock(),vue.createBlock(pr,{key:0,class:vue.normalizeClass(["modal-icon",ct.theme]),title:"取消全屏",onClick:ct.toggleFullScreen},null,8,["class","onClick"])):ct.isMobile?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(mr,{key:1,class:vue.normalizeClass(["modal-icon",ct.theme]),title:"全屏",onClick:ct.toggleFullScreen},null,8,["class","onClick"]))]),ct.isLoading?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$a,[vue.createVNode(gr,{size:"large"})])):(vue.openBlock(),vue.createBlock(yr,{key:1,columns:ct.columns,"row-key":br=>br.uuid,"data-source":ct.dataSource,pagination:!1},null,8,["columns","row-key","data-source"]))]),_:1},8,["visible","getContainer","bodyStyle","wrap-class-name","onCancel"])}const SourceModal=_export_sfc$1(_sfc_main$C,[["render",_sfc_render$H],["__scopeId","data-v-ac0aee1b"]]),pivotTableProps={...props$1,name:"透视表",keyName:"透视表",width:"800px",height:"400px",type:"ecanPivotTable",graphicConfig:{},dataType:"indicator",data:[],dimensionList:[],indicatorList:[],styleConfig:{borderColor:"#E3E3E3",headerBgColor:"#ECF1F5",headerColor:"#000000",bodyBgColor:"#FFFFFF",bodyColor:"#000000",indicatorsHeaderBgColor:"#ECF1F5",indicatorsHeaderColor:"#000000",indicatorsBodyBgColor:"#FFFFFF",indicatorsBodyColor:"#000000",aggregateBgColor:"#ECF1F5",aggregateColor:"#000000",sortNotActiveColor:"#CCCCCC",sortActiveColor:"#416EFF",dropDownMenuBgColor:"#FFFFFF",dropDownMenuColor:"#141414",dropDownMenuHightLightColor:"#2E68CF"},configMode:"halfMode"},pivotTableComponentProps=transformToComponentProps(pivotTableProps),pivotTableEvents=["refreshData"];var zhCn={exports:{}};(function(ct,Dn){(function(ur,dr){ct.exports=dr(dayjs)})(commonjsGlobal,function(ur){function dr(vr){return vr&&typeof vr=="object"&&"default"in vr?vr:{default:vr}}var fr=dr(ur),hr={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(vr,pr){return pr==="W"?vr+"周":vr+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(vr,pr){var mr=100*vr+pr;return mr<600?"凌晨":mr<900?"早上":mr<1100?"上午":mr<1300?"中午":mr<1800?"下午":"晚上"}};return fr.default.locale(hr,null,!0),hr})})(zhCn);const _imports_0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABHNCSVQICAgIfAhkiAAABE1JREFUaEPdWk1sTUEUdtmxEREWVMtay0LSxoqIhaBsRBC8IIQgCI1/9S+StuI3EWmIIGLTVtiI6IaQWEhqZeHfgpVI2Mnzfc+ZZzrv3ndn5s57rzXJl/vevffMnG/OOTNnZm40IkDJ5/NjUc0SoAGYD9QDk42qP+P/B+AR8B7ojaLoe9bmI98KROm1kN8gir/C9RPwGvgKfDPqnoD/E4HpQB0wU4hcw/WGLxlnAlCcvbwTyAHPgZdy9emLFgjNAni9DnSBCK1jXZwIQPkjqHkj8ERg9rJ1wzHWmYt7xFWQOGpbkRUBKE5z3wR+AN1AKMVNPelm24CRQKuNNVIJQHm6ykngHvDYtmcyvjcP8suAAyBB10osZQmI8hcgfRB4m1EpV/FpEDhBi5QjkUhAlN+HCi7XQHlFliS2AKeTSMQSqHHPm5ZSllgNEj3mwxICErAP8OLZGvZ8HIljuDnDDOw4AgMSrNUKWNvYaMWLzSDQpAsMIoDeb8fDpcAh21qr/N5xtNcDEtSzUIoEZIZ9inuHgUqN81n5cp7o1F1JJ3AeD8YBd7O2UmH55YxNWIEd/dcCkpgxU9wE/HRUYKq8/65KcsoK9UwAFYEdaHwBcNFDiVMisx9XWxIk7SOn1NuKH3c4NygCHHn6AGaXtkUpMUYEaDkbEr5yul7MXpkrNUbiPszjV9pqLu+ZivB2Gok4GVqNxF1d9zZk6kgghx/rAU5crsWFREjlqWcb0EECHH3G06dctXewRGjl2fQK4A0JcOxn6sA48C3lLME6GbAqVvjf1210/RrxZyEJ0P/bgayTVxIJNhpaedbJJG83CeTxg3lGiBJHQq83RM/r9fWFJsDKk0iEVp5tVZVA2hDr4wHBCaS5UGgSBQLcMeN2SSWCmG7D3EUP4lAkGMR7KjmMKp8nAXMYDUGiOIyek14KOZGZAesyY9vGQnEiy0EiZCqRNNqEJlFMJbiz/BFYZUtd3vNJD0KSuAU9pmRJpxmY9G19QWOTVZokfOaHf+k0exMjke+CRpFgNTbKKyMrEhz5XOSUfMmCRrkRt81dh1N9QePihSTBtlzXARzVugruo5aUYoXhsqhfB30HBi3qhUADrsNhW4W936R26P6fjS3lvAjooby12MKFvB5ocXujPI0Zipu73FYsuo4iUUJA4iGHK4Oae6TVPtgwRzImbVR+jdX2uuZKJLEXuFJDElR+M3DG6YDDIFErS6ie3+51xKSR4Hb7JeAhwN27ahSu0bmJG+s2ZYM4TjvZer+PZ78BHvq5zta2pNUx6ygILA5yzKq3LAcgu3CvF+gPSISKLwJ4vNqpH2CkMY8dhcoJiTVIIgc8A/ipwYu0hhKeN+M+PzWYDXBh1W3T684ulOBWTABJgoshfp3Cjz24vuZE+Aswh18G5WiAExG/ZOF8wzOJDoDHRl5frjhboAyZOaKU+txmkvHuF1GYn9uQbL+v0nq9fwCcDKEjLNL6QQAAAABJRU5ErkJggg==",CustomModal_vue_vue_type_style_index_0_scoped_2ef6cccf_lang="",CustomModal_vue_vue_type_style_index_1_lang="";dayjs.locale("zh-cn");const _sfc_main$B=vue.defineComponent({name:"LastDetail",components:{BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1,CloseOutlined:CloseOutlined$1},props:{theme:{type:String,default:"light"}},setup(ct,{emit:Dn,expose:ur}){const dr=window.screen.height*.6,fr=`cutmodal_${nanoid(6)}`,hr=vue.ref(!0),vr=vue.ref(!1),pr=vue.ref(""),mr=vue.ref(""),gr=vue.ref(""),yr=vue.inject("isMobile",!1);vue.computed(()=>INDICATOR_URL);const Cr=()=>document.querySelector("#modalContainer")||document.body,br=Pr=>{const Ir=document.querySelector(`.${fr} .ant-modal-header`);if(Ir)if(Pr)Ir.addEventListener("mousedown",wr);else{const Br=Ir.parentElement;Br&&(Br.style.left="",Br.style.top=""),Ir.removeEventListener("mousedown",wr)}},Ar=Pr=>{const Ir=document.querySelector(`.${fr} .ant-modal-header`);Ir&&(Pr?Ir.addEventListener("dblclick",_r):Ir.removeEventListener("dblclick",_r))},wr=Pr=>{dragModalAction(Pr,`.${fr} .ant-modal-header`)},_r=()=>{hr.value=!hr.value,vue.nextTick(()=>{hr.value?br(!1):br(!0)})},Tr=()=>{Ar(!1),br(!1),Dn("close")};async function Er(Pr){var Nr;vr.value=!0,(Nr=window==null?void 0:window.config)!=null&&Nr.indicatorToken;const{record:Ir,linkUrl:Br,title:Or}=Pr;if(gr.value=Or,Br){hr.value=!0,pr.value=Br;const jr=[],Vr=["orgCode","visitId","mpiId"];for(const $r in Ir)Vr.includes($r)&&jr.push(`${$r}=${Ir[$r]}`);mr.value=jr.join("&")}vue.nextTick(()=>{Ar(!0)})}const xr=vue.computed(()=>{let Pr=`custom-content-modal ${fr}`;return(vue.unref(yr)||hr.value)&&(Pr+=" full"),ct.theme==="darkBlue"&&(Pr+=" darkBlue"),Pr}),Sr=vue.computed(()=>vue.unref(yr)?{padding:"10px 0"}:{height:vue.unref(hr)?"":dr+48+"px",overflow:"hidden",padding:0}),kr=()=>{vr.value=!1,Tr()};return ur({showModal:Er,visible:vr}),{visible:vr,wrapClassName:xr,detailBodyStyle:Sr,isMobile:yr,urlJsonStr:mr,linkUrl:pr,isIndFullScreen:hr,modalTitle:gr,handleClose:kr,getContainer:Cr,onCancel:Tr,toggleFullScreen:_r}}}),_withScopeId$8=ct=>(vue.pushScopeId("data-v-2ef6cccf"),ct=ct(),vue.popScopeId(),ct),_hoisted_1$s=_withScopeId$8(()=>vue.createElementVNode("img",{src:_imports_0,alt:"",width:"48",height:"48"},null,-1)),_hoisted_2$f=[_hoisted_1$s],_hoisted_3$9=["src"];function _sfc_render$G(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(vr,{wrapClassName:ct.wrapClassName,visible:ct.visible,"onUpdate:visible":Dn[1]||(Dn[1]=pr=>ct.visible=pr),width:"60%",destroyOnClose:!0,footer:null,bodyStyle:ct.detailBodyStyle,getContainer:ct.getContainer,closable:!1,onCancel:ct.onCancel},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"custom-close-icon",onClick:Dn[0]||(Dn[0]=(...pr)=>ct.handleClose&&ct.handleClose(...pr))},_hoisted_2$f),ct.linkUrl&&ct.urlJsonStr?(vue.openBlock(),vue.createElementBlock("iframe",{key:0,src:`${ct.linkUrl}${ct.linkUrl.includes("?")?"&":"?"}${ct.urlJsonStr}`,frameborder:"0",width:"100%",height:"100%"},`\r
|
|
105
|
+
`;let hr=ct;if(ur!=null&&ur.length){for(const pr of ur){const mr=jn(pr,{textData:Dn},{useNewline:!1,useSpace:!1});mr&&(hr=hr.replace(pr,mr))}return`${fr}{text|${hr}}`}else return ct},setDefaultRangeVal=(ct,Dn)=>{const{props:ur,componentList:dr,getGlobalModel:fr}=ct,{graphicConfig:hr={},startValue:vr,endValue:pr}=ur,mr=getdefCompleteData({graphicConfig:hr,startValue:vr,endValue:pr,componentList:dr,getGlobalModel:fr}),{dimensions:gr,dataset:yr}=Dn,{classificationList:Cr=[]}=hr,Ar=Cr.find(wr=>wr.show).label||"";for(const wr of mr)!gr.find(_r=>+_r==+wr)&&!isNaN(+wr)&&gr.push(+wr);gr.sort((wr,_r)=>dayjs(wr).isBefore(dayjs(_r))?-1:1);for(const wr of yr){const{data:_r}=wr;if(_r!=null&&_r.length){const Tr=[];for(const Er of mr)if(!_r.find(xr=>+xr[Ar]==+Er)&&!isNaN(+Er)){const xr=lodashEs.cloneDeep(_r[0]);for(const Sr in xr)Sr===Ar?xr[Sr]=+Er:xr[Sr]=0;Tr.push(xr)}wr.data.push(...Tr),wr.data.sort((Er,xr)=>dayjs(Er[Ar]).isBefore(dayjs(xr[Ar]))?-1:1)}}},getConditions=ct=>{const Dn=[];for(const ur of ct)ur.conditions?Dn.push(...getConditions(ur.conditions)):(ur==null?void 0:ur.dataType)==="component"&&Dn.push(ur);return Dn};function getdefCompleteData(ct){const{startValue:Dn,endValue:ur,componentList:dr,graphicConfig:fr,getGlobalModel:hr}=ct,vr=getVariableAndField(Dn),pr=getVariableAndField(ur),mr=[];if(vr&&pr){const gr=dr.find(Cr=>Cr.keyName===vr.keyName),yr=dr.find(Cr=>Cr.keyName===pr.keyName);if(gr&&yr){const Cr=hr(gr.id),br=hr(yr.id),{classificationList:Ar=[]}=fr,wr=Ar.find(_r=>_r.show);if(wr){let _r="YYYY-MM";switch(wr.name){case"the_year":_r="YYYY";break;case"the_month":_r="MM";break;case"the_day":_r="DD";break;case"the_date":_r=(wr==null?void 0:wr.dateFormat)||_r;break}const Tr=getFormatStep(_r);if(_r){const Er=vue.unref(Cr[vr.field]),xr=vue.unref(br[pr.field]);let Sr=dayjs(Er);const kr=dayjs(xr);for(mr.push(kr.format(_r));Sr.isBefore(kr);)mr.push(Sr.format(_r)),Sr=Sr.add(1,Tr)}}}}return mr}function getVariableAndField(ct){let Dn=null;if(ct){const ur=ct.match(/\{(.+?)\}/g);if(ur!=null&&ur.length){let dr=ur[0].slice(1,-1).trim();const fr=dr.match(/\[(.+?)\]/g);let hr="";fr!=null&&fr.length&&(dr=dr.replace(fr[0],""),hr=fr[0].slice(1,-1).trim()),Dn={keyName:dr,field:hr}}}return Dn}function getFormatStep(ct){const Dn=ct.split("-");let ur="";if(Dn!=null&&Dn.length)switch(Dn[Dn.length-1]){case"YYYY":ur="year";break;case"MM":ur="month";break;case"DD":ur="day";break}return ur}function handleJumpLink(ct,Dn){var br;const{pageMode:ur,targetTemplate:dr,getRecordValueByKeyName:fr,setTemplateData:hr,isHandClick:vr=!0}=Dn,pr=ct.linkPage||"",mr=usePageUrl(ur,pr),gr=ct.href;let yr=gr||mr;yr=jn(yr);const Cr=ct.target;if(Cr)if(Cr==="event")window.parent.postMessage({type:"openPage",url:gr},"*");else{const Ar={pageId:pr,componentId:dr};if((br=ct.transParams)!=null&&br.length){yr.includes("?")?yr+="&":yr+="?";const wr=[];for(const _r of ct.transParams){const Tr=fr(String(_r.fieldName),ct);wr.push(`${_r.keyName}=${Tr}`),Ar[_r.keyName]=Tr}yr+=wr.join("&")}Cr==="template"?(vr&&(window.controller.abort(),window.controller=new AbortController),hr(Ar)):(Cr==="blank"&&(yr+=`${yr.includes("?")?"&":"?"}drillFlag=1`),window.open(yr,"_"+Cr))}}function getPageUrlParams(ct){var ur,dr;let Dn={};if(ct){const fr=(((ur=window.config)==null?void 0:ur.urlParams)||{})[ct]||{};for(const hr in fr)hr.includes("{")||(Dn[hr]=fr[hr])}else Dn=((dr=window.config)==null?void 0:dr.requestParams)||{};return Dn}function getNewValueFromUrlParams(ct,Dn,ur){let dr="";const{urlParams:fr}=window.config;if(ct&&fr[ct])for(const hr in fr[ct]){const vr=fr[ct][hr];if(hr===`{${Dn}[${ur}]}`&&vr){dr=vr;break}}return dr}function getFormatWh(ct,Dn){return typeof ct=="number"?ct:typeof ct=="string"?parseFloat(ct):ct.suffix==="px"?+ct.value:ct.suffix==="%"?parseFloat(Dn)*(ct.value/100):0}const hasChinese=ct=>/[\u4e00-\u9fa5]/.test(ct),dragModalAction=(ct,Dn)=>{const ur=document.querySelector(Dn);if(!ur)return;ur.style.cursor="move",ur.style.userSelect="none";const dr=ur.parentElement,fr=200,hr=dr.getBoundingClientRect(),{width:vr,left:pr,top:mr}=hr,gr=window.innerWidth,yr=window.innerHeight,Cr=ct.clientX,br=ct.clientY,Ar=parseFloat(dr.style.left)||0,wr=parseFloat(dr.style.top)||0,_r=-(pr+vr-fr-Ar),Tr=gr-pr+Ar-fr,Er=-(mr-wr),xr=yr-mr+wr-fr,Sr=Pr=>{Pr.preventDefault();const Ir=Pr.clientX-Cr,Br=Pr.clientY-br;let Or=Ar+Ir,Nr=wr+Br;Or=Math.max(_r,Math.min(Or,Tr)),Nr=Math.max(Er,Math.min(Nr,xr)),dr.style.left=`${Or}px`,dr.style.top=`${Nr}px`},kr=()=>{ur.style.cursor="",ur.style.userSelect="",document.removeEventListener("mousemove",Sr),document.removeEventListener("mouseup",kr)};document.addEventListener("mousemove",Sr),document.addEventListener("mouseup",kr)},getPageId=()=>{var Dn;let ct=((Dn=window==null?void 0:window.config)==null?void 0:Dn.pageId)||"";if(!ct){const{pathname:ur}=window==null?void 0:window.location;if(ur){const dr=ur.split("/");dr!=null&&dr.length&&(ct=dr[dr.length-1])}}return ct};function loopConditions(ct,Dn,ur){const dr=[];for(const fr of ct)fr[Dn]?dr.push(...loopConditions(fr[Dn],Dn,ur)):fr.filter?dr.push({...fr.filter,label:fr.label}):(!ur||fr.dataType!=="component"&&!(fr.fieldValue.startsWith("${")&&fr.fieldValue.endsWith("}")))&&dr.push(fr);return dr}function swapArrItem(ct,Dn,ur){return Dn<0||ur<0||Dn>=ct.length||ur>=ct.length||([ct[Dn],ct[ur]]=[ct[ur],ct[Dn]]),ct}function estimateWidth(ct,Dn){const ur=parseFloat(Dn),dr=(ct.match(/[\u4e00-\u9fa5]/g)||[]).length,fr=ct.length-dr;return dr*ur+fr*ur*.55}const useRequestData=(ct,Dn,ur=()=>{})=>{var zr;const{requestUrl:dr,requestMethod:fr,requestHeaders:hr,requestParams:vr,requestInterval:pr,isOpenRequestTimer:mr,openCustomRequestData:gr,projectRequestUrl:yr="",getModel:Cr,requestParamsMode:br,customRequestParams:Ar,dataSetParam:wr,requestType:_r,dataType:Tr,dataSetchecked:Er}=ct,{pageMode:xr}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"})||{},{pageId:Sr}=vue.inject("templateOperate",{pageId:""})||{},{contextRequestUrl:kr,touchEventId:Pr}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:"",touchEventId:""})||{},{getGlobalModel:Ir}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Wr=>{}})||{},Br=vue.inject(COMMON_OPERATE,{operateAction:(Wr,qr)=>{}}),Or=Cr||Ir;let Nr=jn(dr),jr=vue.unref(kr)||yr||"";(Tr==="request"&&Er||_r===1)&&(jr="",Nr=((zr=window.config)==null?void 0:zr.dataSetUrl)||"/api/datav/dataset/data2");const Vr=async(Wr={},qr={})=>{var Hr;if(vue.unref(xr)==="design")return;if(Tr!=="request"&&$r){clearInterval($r);return}if(!Nr||!fr||!hr)return;let Mr={};for(const Ur of vr){const{key:Jr,value:Yr}=Ur;if((Yr==null?void 0:Yr.id)==="PARENT"&&(Yr!=null&&Yr.prop)){const fi=(((Hr=window.config)==null?void 0:Hr.record)||{})[Yr.prop];if(fi){const _i=fi[Yr.propKey||"value"];_i&&(["date","range"].some(pi=>Nn(fi==null?void 0:fi.type,pi))?Mr[Jr]=vue.unref(_i).format(fi.format||"YYYY-MM-DD"):Mr[Jr]=vue.unref(_i))}continue}if(typeof Yr=="object"&&Yr!=null&&Yr.id){let si={};const{id:fi,prop:_i,propKey:bi,operate:pi}=Yr;let mi=!1;try{JSON.parse(fi),mi=!0}catch{mi=!1}fi==="THIS"?si=Or(vue.unref(Pr))||{}:si=Or(fi)||{};const xi=vue.unref(si[_i]);let ni=null;if(["date","range"].some(Xr=>Nn(si==null?void 0:si.type,Xr))){const{value:Xr,type:vi,mode:Si}=pi||{};if(Xr&&vi&&Si)switch(vi){case"add":ni=vue.unref(xi).add(Xr,Si);break;case"minus":ni=vue.unref(xi).subtract(Xr,Si);break}ni==null&&(ni=vue.unref(xi)),ni=ni&&(ni==null?void 0:ni.format((bi==null?void 0:bi.trim())||si.format))||""}else Object.prototype.toString.call(xi)==="[object Object]"?bi?ni=xi[bi]:ni=_i?xi[_i]:xi:Nn(si==null?void 0:si.type,"select")&&vue.unref(xi)&&_i&&Array.isArray(vue.unref(xi))?ni=vue.unref(xi).map(Xr=>Object.prototype.hasOwnProperty.call(Xr,_i)?Xr[_i]:Xr):mi?ni=JSON.parse(fi).value:ni=xi;Mr[Jr]=ni}else typeof Yr=="object"&&!Yr.id&&_r===1?Mr[Jr]=Yr.propKey:typeof Yr=="string"&&(Mr[Jr]=jn(Yr))}if(_r===1){const Ur=Object.entries(Mr);let Jr=wr;if(!wr.param&&Array.isArray(wr)){const Yr={};for(const si of wr)Yr[si.key]=si.value;Jr=Yr}Jr.param=Jr.param.map((Yr,si)=>({...Yr,paramKey:Ur[si][0],defaultValue:Ur[si][1]||""})),Mr=Jr}if(br==="2"&&Ar!=="{}"){const Ur=JSON.parse(Ar);Lr(Ur),Ur&&(Mr=Ur)}function Lr(Ur){const Jr={...Mr,...getPageUrlParams(Sr)};if(Array.isArray(Ur))Ur.forEach((Yr,si)=>{if(typeof Yr=="string"){const fi=Yr.match(/\${(.+?)\}/g);if(fi!=null&&fi.length){const _i=fi[0].slice(2,-1);_i&&Jr[_i]?Ur[si]=Jr[_i]:Ur[si]=""}}else Lr(Yr)});else if(Object.prototype.toString.call(Ur)==="[object Object]")for(const Yr in Ur)if(typeof Ur[Yr]=="string"){const si=Ur[Yr].match(/\${(.+?)\}/g);if(si!=null&&si.length){const fi=si[0].slice(2,-1);fi&&Jr[fi]?Ur[Yr]=Jr[fi]:Ur[Yr]=""}}else Lr(Ur[Yr])}const Fr=getPageUrlParams(Sr);for(const Ur in Fr)Fr[Ur]&&(Fr[Ur]=decodeURIComponent(Fr[Ur]));if(Mr={...Fr,...Wr,...Mr},qr){const{callback:Ur,pageParams:Jr}=qr;Jr&&(Mr={...Mr,...Jr}),Ur&&Ur(Mr)}let Dr="";const Gr=Object.keys(Mr),Rr=Gr.length-1,Qr=Gr.length;Gr.forEach((Ur,Jr)=>{let Yr=Mr[Ur];Object.prototype.toString.call(Yr)==="[object Object]"&&(Yr=JSON.stringify(Yr)),Jr===0?Qr!==1?Dr+=`?${Ur}=${Yr}&`:Dr+=`?${Ur}=${Yr}`:Jr===Rr?Dr+=`${Ur}=${Yr}`:Dr+=`${Ur}=${Yr}&`}),Nr.includes("?")&&(Dr=Dr.replace("?","&"));function Kr(Ur){var Jr;if(_r===1)return{Authentication:(Jr=window==null?void 0:window.config)==null?void 0:Jr.indicatorToken};if(typeof Ur=="string"){const Yr=JSON.parse(Ur),si=getPageUrlParams(Sr);if(Object.prototype.toString.call(Yr)==="[object Object]"){for(const fi in Yr)if(typeof Yr[fi]=="string"){const _i=Yr[fi].match(/\${(.+?)\}/g);if(_i!=null&&_i.length){const bi=_i[0].slice(2,-1);bi&&si[bi]?Yr[fi]=si[bi]:Yr[fi]=""}}}return Yr}else return Ur}try{const Ur=["get","head"].includes(fr),Jr={};let Yr=Ur?Nr+Dr:Nr;Mr.dataSqlId&&!Yr.includes("dataSqlId")&&(Yr+=`${Yr.includes("?")?"&":"?"}dataSqlId=${Mr.dataSqlId}`),Object.prototype.hasOwnProperty.call(Mr,"signal")?Jr.signal=Mr.signal:window.controller&&(Jr.signal=window.controller.signal);const si=await request({baseURL:jr,url:Yr,method:fr,headers:hr?Kr(hr):{},data:Ur?{}:Mr,...Jr});return ur(si),Br==null||Br.operateAction("SAVE_COMPONENT_RES_DATA",{id:ct.id,data:(si==null?void 0:si.data)||{}}),si}catch(Ur){console.error(Ur)}},$r=vue.unref(xr)!=="design"&&mr&&(gr||gr===void 0)&&setInterval(Vr,pr*1e3);return vue.onUnmounted(()=>{clearInterval($r)}),Vr},useImagePath=(ct,Dn=!1)=>{var dr;if(!ct)return ct;let ur="";return ct!=null&&ct.includes("://")?ur=ct:ur=((dr=window==null?void 0:window.config)==null?void 0:dr.uploadPath)+ct,Dn&&(ur=`url(${ur})`),ur},usePageUrl=(ct,Dn)=>{const ur=`${BASE_URL}/preview?pageId=${Dn}`,dr=`${BASE_URL}/${Dn}`;return ct==="preview"?ur:dr},DEFAULT_BATCH_URL="/diagram/list",DEFAULT_BATCH_INTERVAL=200,DEFAULT_BATCH_SIZE=10,queueMap=new Map,pendingSorts=new Set,runningCount=new Map;let dispatcherPromise=null,notifyResolvers=[];const getBatchOptions=()=>{const ct=(window==null?void 0:window.config)||{};return{enabled:!!ct.indicatorBatchEnabled,url:ct.indicatorBatchUrl||DEFAULT_BATCH_URL,interval:Number(ct.indicatorBatchInterval)||DEFAULT_BATCH_INTERVAL,size:Number(ct.indicatorBatchSize)||DEFAULT_BATCH_SIZE}},notifyChange=()=>{const ct=notifyResolvers;notifyResolvers=[],ct.forEach(Dn=>Dn())},waitForChange=()=>new Promise(ct=>{notifyResolvers.push(ct)}),hasRunningHigherSort=ct=>{for(const Dn of runningCount.keys())if(Dn>ct)return!0;return!1},kick=()=>{dispatcherPromise||(dispatcherPromise=runDispatcher().finally(()=>{dispatcherPromise=null,pendingSorts.size&&kick()}))},markReady=ct=>{pendingSorts.add(ct),kick()},flushBatch=async(ct,Dn)=>{var dr,fr;const{url:ur}=getBatchOptions();try{const hr=await request({url:`${INDICATOR_URL}${ur}`,method:"post",headers:{Authentication:(dr=window==null?void 0:window.config)==null?void 0:dr.indicatorToken,operateContext:CONTEXT},data:Dn.map(gr=>gr.payload),signal:((fr=window.controller)==null?void 0:fr.signal)||""}),vr=hr==null?void 0:hr.data,pr=Array.isArray(vr)?vr:vr==null?void 0:vr.data;if(!Array.isArray(pr)||pr.length!==Dn.length)throw new Error("批量指标库接口返回结果数量不一致");const mr=vr&&!Array.isArray(vr)?{...vr}:{};delete mr.data,Dn.forEach((gr,yr)=>{gr.resolve({data:{...mr,data:pr[yr]}})})}catch(hr){Dn.forEach(vr=>{vr.reject(hr)})}},runDispatcher=async()=>{for(;pendingSorts.size;){let ct=-1/0;for(const hr of pendingSorts)hr>ct&&(ct=hr);for(;hasRunningHigherSort(ct);)await waitForChange();const Dn=queueMap.get(ct);if(!Dn||!Dn.items.length){pendingSorts.delete(ct);continue}const{size:ur,interval:dr}=getBatchOptions(),fr=Dn.items.splice(0,ur);runningCount.set(ct,(runningCount.get(ct)||0)+1),flushBatch(ct,fr).finally(()=>{const hr=runningCount.get(ct)||0;hr<=1?runningCount.delete(ct):runningCount.set(ct,hr-1),notifyChange(),kick()}),Dn.items.length>=ur||(Dn.items.length>0?(pendingSorts.delete(ct),Dn.timer||(Dn.timer=setTimeout(()=>{Dn.timer=null,markReady(ct)},dr))):(pendingSorts.delete(ct),Dn.timer&&(clearTimeout(Dn.timer),Dn.timer=null),queueMap.delete(ct)))}},enqueueIndicatorRequest=(ct,Dn)=>{const{enabled:ur,interval:dr,size:fr}=getBatchOptions();return ur?new Promise((hr,vr)=>{let pr=queueMap.get(ct);pr||(pr={items:[],timer:null},queueMap.set(ct,pr)),pr.items.push({payload:Dn.data,resolve:hr,reject:vr}),pr.items.length>=fr?(pr.timer&&(clearTimeout(pr.timer),pr.timer=null),markReady(ct)):pr.timer||(pr.timer=setTimeout(()=>{pr.timer=null,markReady(ct)},dr))}):request(Dn)};let modelValue=new Map,componentList=[];const excludeAttr=["keyValue","conditionKey","conditionLabel","conditionName","conditionValueType","customValue","id","keyName"],getGlobalModel=ct=>modelValue.get(ct),getCalcWays=(ct,Dn={})=>{const{around:ur,unit:dr,id:fr}=ct;let hr="";const{pageMode:vr="",componentList:pr=[]}=(Dn==null?void 0:Dn.graphicConfig)||{};let mr=null,gr=null;if(vr==="design"){const yr=pr==null?void 0:pr.find(Er=>Er.id===fr);if(!yr)return[];const{interval:Cr,intervalUnit:br,startTime:Ar,endTime:wr,operate:_r,useCurrentTime:Tr}=yr||{};if(Tr&&(mr=dayjs().subtract(Cr,br),gr=dayjs()),Ar&&(mr=dayjs(Ar)),wr&&(gr=dayjs(wr)),_r){const{type:Er,value:xr,mode:Sr}=_r;switch(Er){case"add":mr=mr&&mr.add(xr,Sr),gr=gr&&gr.add(xr,Sr);break;case"minus":mr=mr&&mr.subtract(xr,Sr),gr=gr&&gr.subtract(xr,Sr)}}}else{const yr=getGlobalModel(fr)||{};vue.unref(yr.startTime)&&(mr=dayjs(vue.unref(yr.startTime))),vue.unref(yr.endTime)&&(gr=dayjs(vue.unref(yr.endTime)))}if(mr&&gr){const yr=gr.diff(mr,dr.toLowerCase());hr=`${ur==="before"?"-":""}${yr+1}`}return hr?[hr]:[]},handleParams=(ct,Dn)=>{if(Dn)Tn(ct,"indexCode")&&(ct.hrpIndexCode=ct.indexCode,delete ct.indexCode),Tn(ct,"indexCodeNum")&&(ct.hrpIndexCodeNum=ct.indexCodeNum,delete ct.indexCodeNum),Tn(ct,"dataType")&&delete ct.dataType,ct.fieldValue||delete ct.fieldValue;else{const{calcWays:ur=[],dateCalcTypes:dr=[],activeKey:fr,componentId:hr=""}=ct;if(fr===5&&(ur!=null&&ur.length)&&(dr!=null&&dr.length)&&hr){const vr=ur[0].split("-");(vr==null?void 0:vr.length)>1&&vr[0]==="rangeValue"&&(ct.calcWays=getCalcWays({around:vr[1],unit:dr[0],id:hr})),delete ct.radioValue}if(Tn(ct,"dataType")){if(ct.fieldType==="DATE"&&(ct.label=ct.fieldName),ct.dataType==="component")if(ct.fieldValue==="PARENT"){let vr=ct.modelKey;vr&&ct.prop&&(vr+=`-${ct.prop}`),ct.fieldValue="${"+vr+"}"}else ct.fieldValue="${"+getKeyNameById(ct.componentId,ct.fieldValue)+"}";delete ct.dataType}Tn(ct,"activeKey")&&delete ct.activeKey,Tn(ct,"radioValue")&&delete ct.radioValue,Tn(ct,"indexCode")&&(ct.hrpIndexCode=ct.indexCode,delete ct.indexCode),Tn(ct,"indexCodeNum")&&(ct.hrpIndexCodeNum=ct.indexCodeNum,delete ct.indexCodeNum),ct.dataType!=="component"&&ct.useCurrentTime&&(ct.fieldValue=dayjs().format(ct.dateFormat)),Tn(ct,"modelKey")&&delete ct.modelKey,Tn(ct,"prop")&&delete ct.prop,delete ct.useCurrentTime}},handleConditions=(ct,Dn)=>{const ur=[];return ct!=null&&ct.length&&lodashEs.cloneDeep(ct).forEach(dr=>{if(dr.join&&dr.conditions){const fr=!dr.conditions.some(hr=>hr.join&&hr.conditions);dr.conditions.forEach((hr,vr)=>{handleParams(hr,Dn);const pr={};if(vr<dr.conditions.length-1&&(pr.join=dr.join),fr)ur.push({...pr,...hr});else if(hr.join&&hr.conditions){const mr=Dn?"sqlConditions":"conditions";ur.push({[mr]:handleConditions([hr],Dn),...pr})}else ur.push({...pr,...hr})})}else handleParams(dr,Dn),ur.push(dr)}),ur},handleIndicator=(ct={},Dn)=>{if(ct!=null&&ct.sortCpnts&&Dn){const Pr=getCpntSortData(ct);Pr&&(Dn.sort=Pr)}const{label:ur,name:dr,location:fr,show:hr,indexCode:vr,indexCodeNum:pr,calcType:mr="COLUMN",builtInFormula:gr,builtInValueSource:yr,builtInCalcWay:Cr,formula:br,conditions:Ar,aggregate:wr,distinct:_r,dimByCount:Tr,dataTo:Er,sort:xr}=ct;let Sr;if(Ar&&(Sr=handleConditions(Ar)),mr==="COMPONENT"){const Pr={};return setFieldValue(Pr,yr),{label:ur.trim(),columnName:dr,show:hr,calcType:mr,componentAlias:Cr,componentValue:Pr.fieldValue||null}}const kr={label:ur.trim(),columnName:dr,location:fr,show:hr,calcType:Er==="1"?"VIEW":mr,hrpIndexCode:vr,hrpIndexCodeNum:pr,aggregate:wr,builtInFormula:gr,builtInValueSource:yr,formula:br,conditions:Sr};if(xr&&(kr.sort={columnName:dr,label:kr.label,order:xr,type:"NORMAL"}),gr==="DATE_OFFSET"){const Pr=Cr.split("-");if((Pr==null?void 0:Pr.length)===3){let Ir=Pr[0];return Pr[2]==="before"&&Pr[0]!=="0"&&(Ir=`-${Pr[0]}`),{...kr,calcWays:[Ir],dateCalcTypes:[Pr[1]]}}}else return dr==="the_count"&&(kr.calcType="AGGREGATE",kr.distinct=!!_r,kr.typeGuid=Tr),{...kr,builtInCalcWay:Cr}},getKeyNameById=(ct,Dn)=>{const ur=componentList.find(fr=>fr.id===ct),{keyName:dr}=ur||{};if(dr){const fr=/-(startTime|endTime)/g,hr=Dn.match(fr);return hr!=null&&hr.length?`${dr}${hr[0]}`:dr}else return Dn||""},handleSqlConditions=ct=>{if(!ct)return[];const Dn=lodashEs.cloneDeep((ct==null?void 0:ct.controlList)||[]).filter(Tr=>Tr.conditionKey!=="parentCode"),{classificationList:ur=[],rowHeaderList:dr=[],dimensionList:fr=[],seriesList:hr=[],leftAxisList:vr=[],rightAxisList:pr=[],queryColumnList:mr=[],indexLibColumns:gr=[],indicators:yr=[],specialIndicators:Cr=[]}=ct;handleControlList(Dn);const br=[...ur,...dr,...fr,...hr,...vr,...pr,...mr,...gr,...yr,...Cr],Ar=[];for(const Tr of br){const Er=getConditions((Tr==null?void 0:Tr.conditions)||[]);if(Er!=null&&Er.length){const xr=Er.filter(Sr=>(Sr==null?void 0:Sr.dataType)==="component").map(Sr=>{const kr={};return Sr!=null&&Sr.dateFormat&&(kr.format=Sr.dateFormat),Sr.fieldValue==="PARENT"&&(kr.id="PARENT",kr.keyName=Sr.modelKey,kr.modelKey=Sr.modelKey,kr.prop=Sr.prop),{conditionKey:Sr.fieldName,conditionLabel:Sr.fieldName,conditionName:Sr.fieldName,conditionValueType:Sr.fieldType,id:Sr.componentId,keyName:Sr.fieldValue,rule:Sr.rule,notGlobal:!0,indexCode:Sr.indexCode,typeGuid:Sr.typeGuid,indexCodeNum:Sr.indexCodeNum,...kr}});if(xr!=null&&xr.length)for(const Sr of xr)Ar.find(kr=>kr.keyName===Sr.keyName)||Ar.push(Sr)}}const wr=Ar.length,_r=Dn;for(let Tr=0;Tr<wr;Tr++){const Er=Ar[Tr];if((Er==null?void 0:Er.conditionKey)==="parentCode")continue;const{id:xr,keyName:Sr,prop:kr,format:Pr,modelKey:Ir,dataType:Br="component",customValue:Or}=Er,Nr=getKeyNameById(xr,Sr),jr=getConditionItem(Er);setFieldValue(jr,xr,{prop:kr,dateFormat:Pr,modelKey:Ir,keyName:Nr}),Br===""&&(jr.fieldValue=Or||""),_r.push(jr)}for(let Tr=_r.length-1;Tr>=0;Tr--){const Er=_r[Tr];Er.globalCondition||getConditions(_r).find(Sr=>Sr.alias===Er.alias&&Sr.globalCondition)&&_r.splice(Tr,1)}return _r};function getConditionItem(ct){const{id:Dn,keyName:ur,conditionLabel:dr,conditionKey:fr,conditionValueType:hr,prop:vr,rule:pr="NONE",notGlobal:mr=!1,indexCode:gr,typeGuid:yr,indexCodeNum:Cr,dataType:br="component",isExtProperty:Ar}=ct,wr=getKeyNameById(Dn,ur);let _r=wr||Dn;_r&&vr&&(_r+=`-${vr}`);let Tr=pr;return Tr==="NONE"&&(["startTime","endTime"].includes(vr)?Tr=vr==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":wr!=null&&wr.includes("startTime")?Tr=vr==="GREATER_EQUAL":wr!=null&&wr.includes("endTime")?Tr=vr==="LESS_EQUAL":Tr="EQUAL"),Dn==="PARENT"&&(_r=ct.modelKey,_r&&vr&&(_r+=`-${vr}`),Tr=pr),{rule:Tr,label:dr,fieldName:fr,fieldValue:"",valueType:hr,alias:_r,globalCondition:!mr,indexCode:gr,typeGuid:yr,indexCodeNum:Cr,dataType:br,isExtProperty:Ar}}function handleControlList(ct){if(ct!=null&&ct.length)for(const Dn of ct)if(Dn!=null&&Dn.conditions)handleControlList(Dn.conditions);else{const{id:ur,keyName:dr,prop:fr,modelKey:hr,format:vr,dataType:pr="component",customValue:mr}=Dn,gr=getKeyNameById(ur,dr),yr=getConditionItem(Dn);setFieldValue(yr,ur,{prop:fr,dateFormat:vr,modelKey:hr,keyName:gr}),pr===""&&(yr.fieldValue=mr||"");for(const Cr in yr)Dn[Cr]=yr[Cr];for(const Cr of excludeAttr)delete Dn[Cr]}}function handleVariableList(ct){const Dn=[];if(ct!=null&&ct.length){for(const ur of ct)if(ur.variableName){const dr=getKeyNameById(ur.id,ur.keyName),fr={variateName:ur.variableName,globalCondition:ur.globalCondition||!1,valueType:ur.variableType,alias:dr||""};setFieldValue(fr,ur.id,{dateFormat:ur.format,prop:ur.dateTypeValue,keyName:dr,operateType:ur.operateType,operateMode:ur.operateMode,operateValue:ur.operateValue}),ur.dataType===""&&(fr.fieldValue=ur.variableValue),ur.format&&(fr.dateFormat=ur.format),ur.label&&(fr.label=ur.label),Dn.push(fr)}}return Dn}function setFieldValue(ct,Dn,ur){const{prop:dr="",dateFormat:fr="",modelKey:hr="",keyName:vr="",operateValue:pr,operateMode:mr,operateType:gr}=ur||{},yr=hr||vr;if(Dn==="PARENT"&&yr&&dr){const xr=window.config.record;let Sr=dr,kr=fr;const Pr=dr.match(/\{(.+?)\}/g);if(Pr!=null&&Pr.length){const Ir=Pr[0].slice(1,-1).trim();Sr=dr.replace(Pr[0],""),kr=Ir,ct.dateFormat=kr}if(xr&&xr[yr]){const Ir=vue.unref(xr[yr][Sr]);dayjs.isDayjs(Ir)?ct.fieldValue=Ir.format(kr||"YYYY-MM-DD"):ct.fieldValue=Ir}return}const Cr=getGlobalModel(Dn)||{},{value:br,format:Ar="YYYY-MM-DD",type:wr="",useCurrentTime:_r,RECORD:Tr}=Cr||{},Er=fr||Ar;if(Nn(wr,"date")){let xr;if(_r?br?xr=vue.unref(br):xr=dayjs():xr=vue.unref(br),typeof xr=="string"&&(xr=dayjs(xr)),pr&&mr&&gr)switch(gr){case"add":xr=xr.add(pr,mr);break;case"minus":xr=xr.subtract(pr,mr);break}ct.fieldValue=xr==null?void 0:xr.format(Er),ct.dateFormat=Er}else if(Nn(wr,"rangepicker")){let xr=dr;if(!dr){const kr=vr&&vr.split("-");kr!=null&&kr.length&&(xr=kr[kr.length-1])}if(!xr)return;let Sr=null;if(vue.unref(Cr[xr])&&(Sr=dayjs(vue.unref(Cr[xr]))),pr&&mr&&gr){if(pr==="rangeValue"){if(Cr.startTime&&Cr.endTime){const kr=vue.unref(Cr.endTime).diff(vue.unref(Cr.startTime),mr)+1;switch(gr){case"add":Sr=Sr&&Sr.add(kr,mr);break;case"minus":Sr=Sr&&Sr.subtract(kr,mr)}}}else if(!isNaN(+pr))switch(gr){case"add":Sr=Sr&&Sr.add(pr,mr);break;case"minus":Sr=Sr&&Sr.subtract(pr,mr)}}if(Sr&&(ct.fieldValue=Sr==null?void 0:Sr.format(Er)),xr==="rangeValue"&&Cr.startTime&&Cr.endTime){const kr=getFormatStep(Er);kr&&(ct.fieldValue=vue.unref(Cr.endTime).diff(vue.unref(Cr.startTime),kr)+1)}ct.dateFormat=Er}else Nn(wr,MODEL_KEY_LIST)?hr&&Tr?ct.fieldValue=Tr[hr]:!hr&&Tr?ct.fieldValue=Tr.value:ct.fieldValue=vue.unref(br):Nn(wr,"select")&&Array.isArray(vue.unref(br))?ct.fieldValue=vue.unref(br).join(","):ct.fieldValue=vue.unref(br)}const handleSort=ct=>{if(ct){const Dn=Array.isArray(ct)?lodashEs.cloneDeep(ct):[lodashEs.cloneDeep(ct)];let ur="",dr=[];const fr=[],hr=[],vr=[];for(const pr of Dn){let mr=pr.label,gr=pr.columnName;if(pr.defaultCode&&(mr=pr.columnName,delete pr.defaultCode),gr==="component-value"&&pr.componentId){const yr=getGlobalModel(pr.componentId)||{},{value:Cr}=yr;vue.unref(Cr)&&(mr=gr=vue.unref(Cr))}ur=pr.type,ur==="CUSTOM"&&(dr=pr.customOrderColumns),fr.push(mr),hr.push(gr),vr.push(pr.order)}return ur!=="CUSTOM"&&(fr==null?void 0:fr.length)>1&&(ur="COMBINATION"),ur==="CUSTOM"?{label:fr.join(","),columnName:hr.join(","),type:ur,customOrderColumns:dr}:{label:fr.join(","),columnName:hr.join(","),order:vr.join(","),type:ur}}else return ct},getCpntSortData=ct=>{const{sortCpnts:Dn=[]}=ct;let ur,dr="";for(const fr of Dn){const hr=getGlobalModel(fr)||{},{type:vr,RECORD:pr}=hr;if(Nn(vr,"image")&&Nn(pr==null?void 0:pr.value,["asc","desc"])){dr=pr.value.toUpperCase();break}}return dr&&(ur={label:ct.label,columnName:ct.name,order:dr,type:"NORMAL"}),ur},formatIndicatorParams=(ct,Dn={})=>{var _i,bi,pi,mi,xi,ni,ai;const{graphicConfig:ur,type:dr,globalModel:fr,isGroupTable:hr=!1,allComponentList:vr}=ct;fr&&(modelValue=fr),vr!=null&&vr.length&&(componentList=vr);const pr=Nn(dr,"pivottable");let{source:mr,dataViewId:gr,plugin:yr="1",layer:Cr,chartType:br,classificationList:Ar=[],rowHeaderList:wr=[],dimensionList:_r=[],seriesList:Tr=[],leftAxisList:Er=[],rightAxisList:xr=[],queryColumnList:Sr=[],indexLibColumns:kr=[],indicators:Pr=[],specialIndicators:Ir=[],controlList:Br=[],formFields:Or={},variableList:Nr=[],variableConditions:jr=[],dataSourceId:Vr="",idxLibMode:$r,preview:zr=!1,edvDataSetId:Wr}=ur||{},qr=[];if((ur==null?void 0:ur.pageMode)==="design"?(qr=(ur.sqlConditions??[]).map(Xr=>{const vi={};if(!Tn(Xr,"globalCondition")&&!Xr.join&&(vi.globalCondition=!0),!Xr.join){const Si=Xr.rule||"EQUAL";vi.rule=Si==="NONE"?"EQUAL":Si}return{...Xr,...vi}}),jr!=null&&jr.length&&(qr=qr.concat(jr))):(qr=handleSqlConditions(ur),Nr!=null&&Nr.length&&(qr=qr.concat(handleVariableList(Nr)))),qr!=null&&qr.length){const Xr=qr.filter(Si=>Si.globalCondition),vi=qr.filter(Si=>!Si.globalCondition);(Xr==null?void 0:Xr.length)>1&&(qr=[{join:"&&",conditions:Xr},...vi])}qr!=null&&qr.length&&(qr=handleConditions(qr,"1")),Cr==null&&(Nn(dr,["table","card"])||Nn(dr,["list","circulate"])&&(Ar==null?void 0:Ar.length)>1?Cr="1":Nn(dr,["select","checkbox","radio","treeSelect"])?Cr="3":Nn(dr,["indexPanel"])?Cr="4":Cr="2"),Nn(dr,["indexPanel"])&&(yr="3");let Mr;const Lr=[];let Fr="";if(Array.isArray(Ar)&&Ar.length>0&&(!["ecanList","ecanCirculate"].includes(dr)||(Ar==null?void 0:Ar.length)===1)){const Xr=Ar.length;for(let vi=0;vi<Xr;vi++){const Si=Ar[vi]||{},{label:ri="",name:yi="",show:di=!1,sort:Ei,customGroup:Oi,conditions:Li,dateFormat:Ri,typeGuid:hi="",truncations:Ci=[],isExtProperty:Di,aggregate:$i}=Si;if(di||Xr===1){Fr=hi,Mr={label:ri.trim(),columnName:yi,show:di,sort:getCpntSortData(Si)||handleSort(Ei)||Ei,customGroup:Oi,conditions:handleConditions(Li),typeGuid:hi},Ri&&(Mr.dateFormat=Ri),yi==="the_date"&&!Mr.dateFormat&&(Mr.dateFormat="YYYY-MM-DD"),Di&&(Mr.isExtProperty=Di),$i&&(Mr.aggregate=$i);const Fi={};if(Array.isArray(Ci)&&Ci.length>0){const qi=Ci.length;for(let Qi=0;Qi<qi;Qi++){const la=Ci[Qi]||{},{rule:da="",num:va=0,name:ya=""}=la;da&&va&&(Fi.num=va,Fi.rule=da,ya&&(Fi.otherGroupName=ya))}}if((_i=Object.keys(Fi))!=null&&_i.length&&(Mr.truncation=Fi),Nn(dr,["scatter","valueline"]))Lr.push(Mr);else break}}}let Dr;if(Array.isArray(Tr)&&Tr.length>0){const Xr=Tr.length;for(let vi=0;vi<Xr;vi++){const Si=Tr[vi]||{},{label:ri="",name:yi="",show:di=!1,sort:Ei,customGroup:Oi,conditions:Li,typeGuid:Ri,dateFormat:hi=""}=Si;if(di||Xr===1){Dr={label:ri.trim(),columnName:yi,show:di,sort:handleSort(Ei),customGroup:Oi,conditions:handleConditions(Li),typeGuid:Ri},hi?Dr.dateFormat=hi:yi==="the_date"&&(Dr.dateFormat="YYYY-MM-DD");break}}}const Gr=[];Er==null||Er.forEach(Xr=>{Xr.location="LEFT",Gr.push(handleIndicator(Xr,Mr))}),xr==null||xr.forEach(Xr=>{Xr.location="RIGHT",Gr.push(handleIndicator(Xr,Mr))});let Rr=Pr;Dn!=null&&Dn.pivotTableCal&&(Rr=((bi=Dn.pivotTableCal)==null?void 0:bi.indicators)||[]),Rr==null||Rr.forEach(Xr=>{Xr.location="LEFT",Gr.push(handleIndicator(Xr,Mr))});const Qr=[];Ir==null||Ir.forEach(Xr=>{Xr.location="LEFT",Qr.push(handleIndicator(Xr,Mr))});const Kr=[];["ecanList","ecanCirculate"].includes(dr)&&(Ar==null?void 0:Ar.length)>1&&(Sr=Ar),Dn!=null&&Dn.pivotTableCal&&(Sr=((pi=Dn.pivotTableCal)==null?void 0:pi.dimensions)||[]),Sr==null||Sr.forEach(Xr=>{const{label:vi,name:Si,location:ri,show:yi,indexCode:di,sort:Ei,typeGuid:Oi,indexCodeNum:Li,dateFormat:Ri,conditions:hi,isExtProperty:Ci,aggregate:Di}=Xr;let $i=handleSort(Ei);if(Dn.sort){const{field:qi,order:Qi}=Dn.sort;let la=Gr.find(da=>da.label===qi);!la&&vi===qi&&(la=Xr),la&&($i={columnName:la.columnName,label:Dn.sort.field,order:Qi.toUpperCase(),type:"NORMAL"})}const Fi={label:vi,columnName:Si,location:ri,show:yi,sort:$i,calcType:"COLUMN",hrpIndexCode:di,hrpIndexCodeNum:Li,conditions:handleConditions(hi),typeGuid:Oi};Ri&&(Fi.dateFormat=Ri),Si==="the_date"&&!Fi.dateFormat&&(Fi.dateFormat="YYYY-MM"),Ci&&(Fi.isExtProperty=Ci),Di&&(Fi.aggregate=Di),Kr.push(Fi)});const Hr=[];["ecanTable"].includes(dr)&&ur.isIndexSet&&kr.forEach(Xr=>{const vi={label:Xr.label,calcType:Xr.calcType,show:Xr.show};Xr.formula&&(vi.formula=Xr.formula),Hr.push(vi)});let Ur=[],Jr=[];if(Array.isArray(wr)&&wr.length>0?Jr=wr:Array.isArray(_r)&&_r.length>0&&(Jr=_r),Jr!=null&&Jr.length){const Xr=Jr.length;for(let vi=0;vi<Xr;vi++){const Si=Jr[vi]||{},{label:ri="",name:yi="",show:di=!1,sort:Ei,customGroup:Oi,conditions:Li,truncations:Ri,typeGuid:hi="",dateFormat:Ci,isExtProperty:Di,aggregate:$i}=Si;let Fi=handleSort(Ei);if(Dn.sort){const{field:la,order:da}=Dn.sort;let va=Gr.find(ya=>ya.label===la);!va&&Si.label===la&&(va=Si),va&&(Fi={columnName:va.columnName,label:Dn.sort.field,order:da.toUpperCase(),type:"NORMAL"})}const qi={label:ri.trim(),columnName:yi,show:di,sort:Fi,customGroup:Oi,conditions:handleConditions(Li),typeGuid:hi};Ci&&(qi.dateFormat=Ci),yi==="the_date"&&!qi.dateFormat&&(qi.dateFormat="YYYY-MM"),Di&&(qi.isExtProperty=Di),$i&&(qi.aggregate=$i);const Qi={};if(Array.isArray(Ri)&&Ri.length>0){const la=Ri.length;for(let da=0;da<la;da++){const va=Ri[da]||{},{rule:ya="",num:ba=0,name:Sa=""}=va;ya&&ba&&(Qi.num=ba,Qi.rule=ya,Sa&&(Qi.otherGroupName=Sa))}}(mi=Object.keys(Qi))!=null&&mi.length&&(qi.truncation=Qi),Ur.push(qi)}}let Yr=[],si;if(Dn!=null&&Dn.pivotTableCal){let Xr=[];const{calc:vi=[],filter:Si=[],truncations:ri=[],sorts:yi=[],aggregateMethod:di=[],rowDimensionKeys:Ei=[],colDimensionKeys:Oi=[]}=Dn.pivotTableCal;if(Gr.push(...vi),Si!=null&&Si.length)for(const Li of Si){const{type:Ri,...hi}=Li;Ri==="indicators"?Xr=Gr:Ri==="dimension"&&(Xr=Kr);const Ci=Xr.find(Di=>Di.columnName===Li.fieldName&&Di.label===Li.label);Ci&&(Ri==="indicators"?Ci.filter={rule:hi.rule,fieldValue:hi.fieldValue}:Ri==="dimension"&&(Ci.conditions||(Ci.conditions=[]),Ci.conditions.push(hi)))}if(ri!=null&&ri.length)for(const Li of ri){const Ri=Kr.find(hi=>hi.columnName===Li.key);Ri&&(Ri.truncation={num:Li.num,rule:Li.rule})}if(yi!=null&&yi.length)for(const Li of yi){const{fieldType:Ri,columnData:hi,...Ci}=Li;Ri==="indicators"?(Xr=Gr,si=hi):Ri==="dimension"&&(Xr=Kr);const Di=Xr.find($i=>$i.label===Ci.label);Di&&(Di.sort={...Ci,columnName:Di.columnName})}if((xi=Object.keys(di))!=null&&xi.length)for(const Li in di){const Ri=Kr.find(hi=>hi.label===Li);Ri&&((ni=di[Li])!=null&&ni.length)&&(Ri.aggregateMethod=di[Li])}Ur=[],Yr=[];for(const Li of Kr)Ei.includes(Li.columnName)?Ur.push(Li):Oi.includes(Li.columnName)&&Yr.push(Li)}if(Nn(dr,["text","proportion","counter","gauge"])?br="zb":Nn(dr,["valueline"])?br="valueline":Nn(dr,["indexPanel"])?br="indexPanel":Nn(dr,["boxplot"])?br="boxplot":Nn(dr,["budget"])&&(br="budget"),hr||dr==="card"){if(Ur.length===0||Gr.length===0)return;br="grouptable"}else{if(Cr==="1"&&!Kr.length&&!Hr.length)return;if(["2","4"].includes(Cr)&&Gr.length===0)return;if(Cr==="3"&&(!Fr&&mr!=="EDV_DATA_SET"||!Or.labelField||!Or.valueField))return;if(Cr==="3"&&dr==="ecanDataSelect"&&Gr.length===0)return}_r!=null&&_r.length&&(Cr="1",br="grouptable");let fi;if(!Nn(dr,["scatter","valueline"])&&((ai=Object.keys(Or))!=null&&ai.length)){const Xr=getConditions(Br).find(ri=>ri.conditionKey==="parentCode"),vi={};if(Xr){const ri=getGlobalModel(Xr.id)||{};ri!=null&&ri.itemCodes?vi.parentItemCodes=ri.itemCodes:vi.parentItemCodes=null}dr==="ecanDataSelect"&&(vi.indicatorList=Gr.filter(ri=>ri.show)),mr==="EDV_DATA_SET"&&(vi.edvDataSetId=Wr),Mr.sort&&(vi.sort=Mr.sort);let Si="normalSelect";dr==="ecanDataSelect"?Si="normalSelectData":dr==="ecanTreeSelect"&&(Si="treeSelect"),fi={url:"/diagram/formData",source:mr,dataViewId:gr,plugin:"4",layer:Cr,chartType:dr==="ecanTreeSelect"?"treeSelect":"normalSelect",rangeIndexTypeGuid:Fr,type:Si,labelField:Or.labelField,valueField:Or.valueField,parentField:Or.parentField,sqlConditions:qr,idxLibMode:"WITH_DATE_DIM_TABLE",dataSourceId:Vr,keyName:ct.keyName,...vi}}else{let Xr={};Nn(dr,["scatter","valueline"])?Xr={classifications:Lr}:Xr={classification:Mr},Hr!=null&&Hr.length&&(Xr.indexLibColumns=Hr,Xr.isIndexSet=!0),Qr!=null&&Qr.length&&(Xr.specialIndicatorList=Qr),ur.isIndexQuery&&(Xr.isIndexQuery=ur.isIndexQuery),fi={url:"/diagram",source:mr,dataViewId:gr,plugin:pr?"5":yr,layer:Cr,chartType:pr?"pivot-table":br,series:Dr,indicatorList:Gr,queryColumns:hr?[]:Kr,pageFlag:!0,edvDataSetId:Wr||"",sqlConditions:qr.map(vi=>{const{fieldValue:Si}=vi,ri={};return Si&&Array.isArray(Si)&&(ri.fieldValue=JSON.stringify(Si)),{...vi,...ri}}),idxLibMode:$r,dataSourceId:Vr,preview:zr,rowHeaders:Ur,keyName:ct.keyName,columnData:si,columnHeaders:Yr,...Xr}}return fi},useIndicatorData=(ct={},Dn=()=>{})=>{var Cr;const{pageMode:ur}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),{requestToken:dr}=vue.inject(GLOBAL_TOKEN,{requestToken:()=>{}}),{setLoadedData:fr}=vue.inject(LOADED_DATA,{setLoadedData:(br,Ar)=>{}}),{getAllGlobalModel:hr}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),{pageId:vr}=vue.inject("templateOperate",{pageId:""})||{},pr=vue.inject(COMMON_OPERATE,{operateAction:(br,Ar)=>{}}),mr=vue.inject("componentList",[]);ct.dataType==="indicator"&&dr();const gr=async(br={})=>{var kr,Pr,Ir,Br,Or;if(vue.unref(ur)==="design")return;const Ar=hr();fr(ct.id,!1);const wr=formatIndicatorParams({...ct,globalModel:Ar,allComponentList:vue.unref(mr)},br),{url:_r,...Tr}=wr||{},{pathname:Er,search:xr}=window==null?void 0:window.location;let Sr=vr||((kr=window==null?void 0:window.config)==null?void 0:kr.pageId);if(!Sr&&Er){const Nr=Er.split("/");if(Nr!=null&&Nr.length){const jr=Nr[Nr.length-1];/^\d+$/.test(jr)&&(Sr=jr)}}if(_r&&Tr){let Nr,jr;if(ct.type==="ecanIndexPanel"&&(Nr=ct.theFlag),["/diagram/formData","/diagram"].includes(_r)){jr={};const $r=xr.slice(1,xr.length).split("&");for(const zr of $r)if(zr){const Wr=zr.split("=");if(Wr[0])if(Wr[0]==="userInfo")try{jr.token=(Ir=(Pr=JSON.parse(decodeURIComponent(Wr[1])))==null?void 0:Pr.baseInfo)==null?void 0:Ir.hrpToken}catch(qr){console.log(qr)}else jr[Wr[0]]=Wr[1]}}try{const Vr={url:`${INDICATOR_URL}${_r}`,method:"post",headers:{Authentication:(Br=window==null?void 0:window.config)==null?void 0:Br.indicatorToken,operateContext:CONTEXT},data:{...Tr,pageId:Sr,theFlag:Nr,extParam:jr},signal:((Or=window.controller)==null?void 0:Or.signal)||""},$r=_r==="/diagram"?await enqueueIndicatorRequest(ct.requestSort||0,Vr):await request(Vr);return br!=null&&br.isTimer&&Dn($r),pr==null||pr.operateAction("SAVE_COMPONENT_RES_DATA",{id:ct.id,data:($r==null?void 0:$r.data)||{}}),ct.type==="ecanIndexPanel"&&(pr==null||pr.operateAction("SAVE_INDEX_PANEL_REQ_PARAMS",Tr)),$r}catch(Vr){console.error(Vr)}}},yr=vue.unref(ur)!=="design"&&((Cr=ct==null?void 0:ct.graphicConfig)==null?void 0:Cr.pageMode)!=="design"&&ct.isOpenRequestTimer&&ct.requestInterval&&setInterval(()=>{gr({isTimer:!0})},ct.requestInterval*1e3);return vue.onUnmounted(()=>{clearInterval(yr)}),gr},useHrefParamsToGlobalVariables=()=>{const Dn=window.location.search.slice(1).split("&"),ur=Dn.length,dr={};for(let fr=0;fr<ur;fr++){const hr=Dn[fr];if(hr==null||hr==="")continue;const vr=hr.split("=");if(Array.isArray(vr)){const pr=vr[0];pr.includes("{")||(dr[pr]=vr[1])}}window.config.requestParams={...window.config.requestParams,...dr},window.config={...window.config,...dr}},useDataSource=ct=>{const{props:Dn,loading:ur,setData:dr}=ct,{allComponentResData:fr}=vue.inject(All_COMPONENT_RES_DATA,{allComponentResData:{}}),hr=vue.inject(COMMON_OPERATE,{operateAction:(wr,_r)=>{}}),vr=vue.inject("usedComponentList",[]),pr=wr=>{hr==null||hr.operateAction("SAVE_COMPONENT_RES_DATA",{id:Dn.id,data:wr?(wr==null?void 0:wr.data)||{}:{}})},mr=vue.computed(()=>{let wr={};if(Dn.dataType==="component"){const{associatId:_r}=Dn,Tr=vue.unref(vr).find(Er=>Er.id===_r);(Tr==null?void 0:Tr.dataType)==="static"?wr=Tr!=null&&Tr.data?{rows:Tr==null?void 0:Tr.data}:{}:_r&&(wr=vue.unref(fr)[_r]||{})}return{data:{data:wr,success:!0}}});vue.watch(()=>mr.value,wr=>{Dn.dataType==="component"&&(pr(wr),dr(wr))},{deep:!0});const gr=useRequestData(Dn),yr=async()=>{try{ur&&(ur.value=!0);const wr=await gr();dr(wr)}catch(wr){console.error(wr)}finally{ur&&(ur.value=!1)}},Cr=useIndicatorData(Dn,dr),br=async()=>{try{ur&&(ur.value=!0);const wr=await Cr();dr(wr)}catch(wr){console.error(wr)}finally{ur&&(ur.value=!1)}};return async()=>{switch(Dn.dataType){case"indicator":await br();break;case"request":await yr();break;case"component":{const wr=vue.unref(mr);pr(wr),dr(wr);break}}}},_sfc_main$I=vue.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...pageConfigComponentProps,pageId:{type:String,default:""},customId:{type:String,default:"container"},portId:{type:String,default:"norPageConfig"}},setup(ct,{expose:Dn}){const{width:ur,height:dr,isCompatible:fr}=vue.inject(GLOBAL_CONFIG,{width:null,height:null,isCompatible:null}),hr=vue.ref(dr.value);vue.watch(()=>dr.value,Nr=>{hr.value=Nr});const vr=vue.inject("setPageHeight",(Nr,jr)=>{}),pr=vue.inject("isMobile",!1),mr=vue.computed(()=>{const Nr={};return(!fr.value||!pr)&&(Nr.width=ur.value,Nr.height=hr.value),{...Nr,backgroundColor:ct.pageId?"transparent":ct.backgroundColor,backgroundImage:useImagePath(ct.backgroundImage,!0),backgroundSize:ct.backgroundSize}}),gr=vue.ref(0),yr=vue.ref(0),Cr=vue.ref(0),br=vue.ref(0),Ar=vue.ref(!1),wr=vue.ref();let _r;const Tr=Nr=>{hr.value=Nr},Er=()=>new Promise(Nr=>{vue.nextTick(()=>{ur.value&&hr.value?(gr.value=parseFloat(ur.value),yr.value=parseFloat(hr.value)):(gr.value=wr.value.clientWidth,yr.value=wr.value.clientHeight),(!Cr.value||!br.value)&&(Cr.value=window.screen.width,br.value=window.screen.height),Nr()})}),xr=()=>{gr.value&&yr.value?(wr.value.style.width=`${gr.value}px`,wr.value.style.height=`${yr.value}px`):(wr.value.style.width=`${Cr.value}px`,wr.value.style.height=`${br.value}px`)};vue.watch([ur,hr],async()=>{ct.pageId||(await Er(),xr(),kr(),window.addEventListener("resize",Ir),Br()),Ar.value=!0},{immediate:!0});const Sr=vue.ref({});vue.provide("scaleValue",Sr);const kr=()=>{if(fr.value&&pr){wr.value.style.width="100%",wr.value.style.height="auto",vr("auto",yr.value);return}const Nr=document.body.clientWidth,jr=document.body.clientHeight,Vr=gr.value||Cr.value,$r=yr.value||br.value,zr=Nr/Vr;let Wr=jr/$r;(gr.value!==1920||yr.value!==1080)&&(Wr=yr.value/gr.value*Nr/$r),Sr.value={widthScale:zr,heightScale:Wr},wr.value&&(wr.value.style.transform=`scale(${zr}, ${Wr})`),vr(Sr.value,yr.value)},Pr=vue.computed(()=>{var jr;let Nr={};return ct.customId==="modalContainer"&&((jr=vue.unref(Sr))!=null&&jr.heightScale)&&(Nr.height=100/vue.unref(Sr).heightScale+"vh"),Nr}),Ir=lodashEs.debounce(async()=>{await Er(),kr()},100),Br=()=>{const Nr=window.MutationObserver;_r=new Nr(Ir),_r.observe(wr.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},Or=()=>{_r&&(_r.disconnect(),_r.takeRecords(),_r=null)};return vue.onMounted(()=>{Ar.value=!1}),vue.onUnmounted(()=>{window.removeEventListener("resize",Ir),Or()}),Dn({changePageHeight:Tr}),{style:mr,container:wr,ready:Ar,scaleValue:Sr,containerStyle:Pr}}}),PageConfig_vue_vue_type_style_index_0_scoped_d121a727_lang="",_hoisted_1$w=["id"],_hoisted_2$j=["id"];function _sfc_render$N(ct,Dn,ur,dr,fr,hr){return vue.openBlock(),vue.createElementBlock("div",{class:"page-config-container",id:ct.customId,style:vue.normalizeStyle(ct.containerStyle),ref:"container"},[ct.customId!=="modalContainer"&&(ct.ready||ct.pageId)?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"page-config",id:ct.portId,style:vue.normalizeStyle(ct.style)},[vue.renderSlot(ct.$slots,"default",{},void 0,!0)],12,_hoisted_2$j)):vue.createCommentVNode("",!0)],12,_hoisted_1$w)}const PageConfig=_export_sfc$1(_sfc_main$I,[["render",_sfc_render$N],["__scopeId","data-v-d121a727"]]),EcanPageConfig=withInstall$1(PageConfig),providerConfig={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px",pageFontFamily:"",textColor:"",jumpType:"page",jumpTime:null,jumpPage:"",jumpLink:"",requestList:[],events:[],isCompatible:!0,variableList:[],drillingMode:"pivotTable",pivotTableFontSize:"16px",drillDetailUrl:"",hideLoading:!1,groupMap:{}},providerConfigComponentProps=transformToComponentProps(providerConfig),_sfc_main$H=vue.defineComponent({name:"IndicatorDetailModal",components:{BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1,CloseOutlined:CloseOutlined$1,ZoomInOutlined:ZoomInOutlined$1,ZoomOutOutlined:ZoomOutOutlined$1,RedoOutlined:RedoOutlined$1},props:{theme:{type:String,default:"light"}},setup(ct,{expose:Dn}){const ur=vue.ref(!1),dr=vue.ref([]),fr=vue.ref(!1),hr=vue.ref(),vr=vue.ref(!0),pr=vue.ref(1),mr=vue.inject("isMobile",!1),gr=vue.computed(()=>ct.theme),yr=vue.computed(()=>pr.value!==1?{transform:`scale(${pr.value})`,transformOrigin:"left top"}:{}),Cr=async({data:Ir,indicatorUrl:Br,indicatorToken:Or,context:Nr,pageId:jr})=>{var Wr,qr;vr.value=!0,fr.value=!0,ur.value=!0;let Vr=[];const{graphicConfig:$r,theFlag:zr}=vue.unref(Ir)||{};if($r){const{leftAxisList:Mr=[],rightAxisList:Lr=[],indicators:Fr=[]}=$r,Dr=Mr.concat(Lr).concat(Fr);Dr!=null&&Dr.length&&(Vr=Dr.map(Gr=>({calcType:Gr.calcType||"COLUMN",columnName:Gr.name,hrpIndexCode:Gr.indexCode,hrpIndexCodeNum:Gr.indexCodeNum,label:Gr.label,show:Gr.show,formula:Gr.formula})))}if(Vr!=null&&Vr.length)try{const Mr=await request({url:`${vue.unref(Br)}/diagram/obtainIndicatorInfo`,method:"post",headers:{Authentication:Or,operateContext:Nr},data:{source:"INDICATOR_LIB",pageId:jr,indicatorList:Vr,theFlag:zr}}),Lr=((Wr=Mr==null?void 0:Mr.data)==null?void 0:Wr.data)||[];(qr=Lr[0])!=null&&qr.remark?(hr.value=Lr[0].remark,dr.value=[]):(hr.value=null,dr.value=Lr)}catch{}finally{fr.value=!1}vue.nextTick(()=>{wr(!0),_r(!0)})},br=()=>document.querySelector("#modalContainer")||document.body,Ar=vue.computed(()=>{let Ir="ind-detail-modal";return(vr.value||vue.unref(mr))&&(Ir+=" full",vue.unref(mr)&&(Ir+=" mobile")),vue.unref(gr)==="darkBlue"&&(Ir+=" darkBlue"),Ir}),wr=Ir=>{const Br=document.querySelector(".ind-detail-modal .ant-modal-header");Br&&(Ir?Br.addEventListener("dblclick",Er):Br.removeEventListener("dblclick",Er))},_r=Ir=>{const Br=document.querySelector(".ind-detail-modal .ant-modal-header");if(Br)if(Ir)Br.addEventListener("mousedown",Tr);else{const Or=Br.parentElement;Or&&(Or.style.left="",Or.style.top=""),Br.removeEventListener("mousedown",Tr)}};function Tr(Ir){dragModalAction(Ir,".ind-detail-modal .ant-modal-header")}const Er=()=>{vr.value=!vr.value,vue.nextTick(()=>{vr.value?_r(!1):_r(!0)})},xr=()=>{wr(!1),_r(!1)},Sr=()=>{pr.value+=.5},kr=()=>{vue.unref(pr)>1&&(pr.value-=.5)},Pr=()=>{pr.value=1};return vue.watch(pr,Ir=>{localStorage.setItem("indDetailZoom",String(Ir))}),vue.watch(ur,Ir=>{Ir?document.documentElement.style.overflow="hidden":document.documentElement.style.overflow="hidden auto"}),vue.onMounted(()=>{var Br,Or;const Ir=localStorage.getItem("indDetailZoom");if(Ir&&(pr.value=+Ir),vue.unref(mr)){const Nr=document.querySelector("#modalContainer");vr.value=!0,(Br=Nr==null?void 0:Nr.style)==null||Br.setProperty("--window-screen-width",document.body.clientWidth+"px"),(Or=Nr==null?void 0:Nr.style)==null||Or.setProperty("--window-screen-height",document.body.clientHeight+"px")}}),Dn({showModal:Cr}),{visible:ur,dataList:dr,isLoading:fr,hasOwn:Tn,remarkData:hr,wrapClassName:Ar,isIndFullScreen:vr,infoStyle:yr,indDetailZoom:pr,isMobile:mr,getContainer:br,toggleFullScreen:Er,onDetailCancel:xr,handleZoomIn:Sr,handleZoomOut:kr,handleResetZoom:Pr}}}),IndicatorDetailModal_vue_vue_type_style_index_0_scoped_3af47b3e_lang="",IndicatorDetailModal_vue_vue_type_style_index_1_lang="",_withScopeId$b=ct=>(vue.pushScopeId("data-v-3af47b3e"),ct=ct(),vue.popScopeId(),ct),_hoisted_1$v=_withScopeId$b(()=>vue.createElementVNode("div",{class:"modal-title"},"指标详情",-1)),_hoisted_2$i={class:"zoom-btn"},_hoisted_3$b={key:0,class:"spin-container"},_hoisted_4$6=["innerHTML"],_hoisted_5$6={class:"index-name"},_hoisted_6$6={key:0,class:"card-row"},_hoisted_7$6=_withScopeId$b(()=>vue.createElementVNode("div",{class:"label"},"计量单位:",-1)),_hoisted_8$5={class:"content"},_hoisted_9$4={key:1,class:"card-row"},_hoisted_10$3=_withScopeId$b(()=>vue.createElementVNode("div",{class:"label"},"指标定义:",-1)),_hoisted_11$3={class:"content"},_hoisted_12$3={key:2,class:"card-row"},_hoisted_13$3=_withScopeId$b(()=>vue.createElementVNode("div",{class:"label"},"计算方法:",-1)),_hoisted_14$3={class:"content"},_hoisted_15$2={key:3,class:"card-row"},_hoisted_16$1=_withScopeId$b(()=>vue.createElementVNode("div",{class:"label"},"指标说明:",-1)),_hoisted_17$1={class:"content"};function _sfc_render$M(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("close-outlined"),pr=vue.resolveComponent("redo-outlined"),mr=vue.resolveComponent("zoom-out-outlined"),gr=vue.resolveComponent("zoom-in-outlined"),yr=vue.resolveComponent("switcher-outlined"),Cr=vue.resolveComponent("border-outlined"),br=vue.resolveComponent("a-spin"),Ar=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(Ar,{visible:ct.visible,"onUpdate:visible":Dn[0]||(Dn[0]=wr=>ct.visible=wr),width:"55%",getContainer:ct.getContainer,footer:null,destroyOnClose:!0,bodyStyle:{maxHeight:ct.isIndFullScreen?"":"70vh",height:ct.isIndFullScreen?"100vh":"",overflow:"auto",padding:"20px 24px 24px"},"wrap-class-name":ct.wrapClassName,onCancel:ct.onDetailCancel},{title:vue.withCtx(()=>[_hoisted_1$v]),closeIcon:vue.withCtx(()=>[vue.createVNode(vr,{class:vue.normalizeClass(["close-icon",ct.theme])},null,8,["class"])]),default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$i,[ct.indDetailZoom>1?(vue.openBlock(),vue.createBlock(pr,{key:0,class:"modal-icon",title:"还原",onClick:ct.handleResetZoom},null,8,["onClick"])):vue.createCommentVNode("",!0),ct.indDetailZoom>1?(vue.openBlock(),vue.createBlock(mr,{key:1,class:"modal-icon",title:"缩小内容",onClick:ct.handleZoomOut},null,8,["onClick"])):vue.createCommentVNode("",!0),vue.createVNode(gr,{class:"modal-icon",title:"放大内容",onClick:vue.withModifiers(ct.handleZoomIn,["stop","prevent"])},null,8,["onClick"]),!ct.isMobile&&ct.isIndFullScreen?(vue.openBlock(),vue.createBlock(yr,{key:2,class:vue.normalizeClass(["modal-icon",ct.theme]),title:"取消全屏",onClick:ct.toggleFullScreen},null,8,["class","onClick"])):ct.isMobile?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(Cr,{key:3,class:vue.normalizeClass(["modal-icon",ct.theme]),title:"全屏",onClick:ct.toggleFullScreen},null,8,["class","onClick"]))]),ct.isLoading?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$b,[vue.createVNode(br,{size:"large"})])):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"info-container",style:vue.normalizeStyle(ct.infoStyle)},[ct.remarkData?(vue.openBlock(),vue.createElementBlock("div",{key:0,innerHTML:ct.remarkData},null,8,_hoisted_4$6)):ct.dataList.length?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:1},vue.renderList(ct.dataList,(wr,_r)=>(vue.openBlock(),vue.createElementBlock("div",{class:"detail-wrap",key:_r},[vue.createElementVNode("div",_hoisted_5$6,vue.toDisplayString(wr.indexName||"--"),1),ct.hasOwn(wr,"theUnit")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$6,[_hoisted_7$6,vue.createElementVNode("div",_hoisted_8$5,vue.toDisplayString(wr.theUnit||"--"),1)])):vue.createCommentVNode("",!0),ct.hasOwn(wr,"meaning")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_9$4,[_hoisted_10$3,vue.createElementVNode("div",_hoisted_11$3,vue.toDisplayString(wr.meaning||"--"),1)])):vue.createCommentVNode("",!0),ct.hasOwn(wr,"theFormula")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_12$3,[_hoisted_13$3,vue.createElementVNode("div",_hoisted_14$3,vue.toDisplayString(wr.theFormula||"--"),1)])):vue.createCommentVNode("",!0),ct.hasOwn(wr,"theExplain")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_15$2,[_hoisted_16$1,vue.createElementVNode("div",_hoisted_17$1,vue.toDisplayString(wr.theExplain||"--"),1)])):vue.createCommentVNode("",!0)]))),128)):vue.createCommentVNode("",!0)],4))]),_:1},8,["visible","getContainer","bodyStyle","wrap-class-name","onCancel"])}const IndicatorDetailModal=_export_sfc$1(_sfc_main$H,[["render",_sfc_render$M],["__scopeId","data-v-3af47b3e"]]),lineProps={...props$1,id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"}],titleText:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxInfoSource:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanLine",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,tooltipTextStyleColor:"",noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px",defaultRangeValue:!1,startValue:"",endValue:"",isForbidClick:!1,backgroundColor:"",associatId:""},lineComponentProps=transformToComponentProps(lineProps),lineEvents=["click","refreshData","resetRecord"],useDownloadFile=async(ct,Dn={},ur={})=>{var yr;const dr=await request.post(ct,Dn,{responseType:"blob",headers:ur}),{data:fr,headers:hr}=dr,vr=hr["content-disposition"].split("filename=")[1],pr=new Blob([fr]),mr=document.createElement("a"),gr=window.URL.createObjectURL(pr);mr.href=gr,mr.download=decodeURI(vr),mr.style.display="none",document.body.appendChild(mr),mr.click(),(yr=mr.parentNode)==null||yr.removeChild(mr),window.URL.revokeObjectURL(gr)},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(ct){const{containerMap:Dn={},sourceList:ur=[],pageConfig:dr={}}=ct,fr=lodashEs.cloneDeep(ct.componentList),hr=fr.filter(vr=>vr.type==="ecanTabs"&&vr.isAutoScroll);if(hr!=null&&hr.length)for(const vr of hr){const pr=Dn[vr.id],mr=[];if((!Tn(vr,"componentList")||!(vr!=null&&vr.componentList))&&(vr.componentList=[]),pr){let gr=0;for(const yr in pr){const Cr=pr[yr],br=[];if(Cr!=null&&Cr.length)for(const Ar of Cr){let wr=fr.find(_r=>_r.id===Ar);wr||(wr=ur.find(_r=>_r.id===Ar)),wr&&(br.push(wr),containerType.includes(wr.type)&&br.push(...getComponentByContainer(wr.id,Dn,ur)))}for(const Ar of br)Tn(Ar,"scale")?parseFloat(yr)>0&&(Ar.left=parseFloat(Ar.left)+gr+"px"):(Ar.left=parseFloat(Ar.sourceLeft||Ar.left)-parseFloat(vr.sourceLeft||vr.left)+gr+"px",Ar.top=parseFloat(Ar.sourceTop||Ar.top)-parseFloat(vr.sourceTop||vr.top)+"px"),mr.includes(Ar.id)||mr.push(Ar.id);vr.componentList.push(...br),gr=getMaxLeftInComponents(br,dr)}}for(const gr of mr){const yr=fr.findIndex(Cr=>Cr.id===gr);yr!==-1&&fr.splice(yr,1)}}return fr}function compatibleMobileList(ct){var mr,gr,yr,Cr,br;const Dn=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap","ecanTable"],ur=document.body.clientWidth,{combinationMap:dr={},sourceList:fr=[],pageConfig:hr={}}=ct,vr=ct.containerMap,pr=lodashEs.cloneDeep([...ct.componentList,...getTabsSomeComponentList(vr,fr)]);if(handleContainerMap(vr,pr),(mr=Object.keys(vr))!=null&&mr.length||(gr=Object.keys(dr))!=null&&gr.length){for(const Er in vr){const xr=pr.find(Sr=>Sr.id===Er);if(xr){if(xr!=null&&xr.isFlowGrid){xr.sourceLeft=xr.left,xr.sourceTop=xr.top;continue}Tn(xr,"parentId")||(xr.parentId="",xr.sourceLeft=xr.left,xr.sourceTop=xr.top);let Sr;if(xr.type==="ecanBorder"&&((yr=vr[Er][0])==null?void 0:yr.length)===1&&(Sr=pr.find(kr=>kr.id===vr[Er][0][0]),Dn.includes(Sr==null?void 0:Sr.type)||(Sr=null)),Sr){if(xr.width=ur,xr.height=getFormatWh(Sr.height,hr==null?void 0:hr.height),Sr.parentId=Er,Sr.width=ur-20+"px",Sr.sourceLeft=Sr.left,Sr.sourceTop=Sr.top,Sr.left="10px",Sr.top="0px",Sr.type==="ecanTable"){const{columns:kr=[]}=Sr;Sr.scrollX="max-content";for(const Pr of kr)(Cr=Pr==null?void 0:Pr.width)!=null&&Cr.includes("%")&&(Pr.width=parseFloat(Pr.width)/100*ur+"px")}}else for(const kr in vr[Er])if(vr[Er][kr])for(const Pr of vr[Er][kr]){const Ir=pr.find(Br=>Br.id===Pr);if(Ir&&(Ir.parentId=Er,Ir.sourceLeft=Ir.left,Ir.sourceTop=Ir.top,Ir.left=parseFloat(Ir.left)-parseFloat(xr.sourceLeft||xr.left)+"px",Ir.top=parseFloat(Ir.top)-parseFloat(xr.sourceTop||xr.top)+"px",Ir.type==="ecanIndexPanel")){const{componentIds:Br}=Ir;for(const Or of Br){const Nr=pr.find(jr=>jr.id===Or);Nr&&(Nr.left=parseFloat(Nr.left)-parseFloat(Ir.sourceLeft)+"px",Nr.top=parseFloat(Nr.top)-parseFloat(Ir.sourceTop)+"px")}}}}}const Ar=Array.from(new Set(pr.filter(Er=>(!Tn(Er,"parentId")||Er.parentId==="")&&Er.combinationId).map(Er=>Er.combinationId))),wr=getCombinationList(Ar,{...ct,componentList:pr,pageConfig:hr});wr!=null&&wr.length&&pr.unshift(...wr);const _r=pr.filter(Er=>Dn.includes(Er.type)&&!Tn(Er,"parentId")),Tr=[];for(const Er of _r)if(Er){const xr=Er.id+"_vir";if(Tr.push({id:xr,keyName:Er.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:ur,height:getFormatWh(Er.height,hr==null?void 0:hr.height),left:Er.left,top:Er.top,sourceLeft:Er.left,sourceTop:Er.top}),Er.parentId=xr,Er.sourceLeft=Er.left,Er.sourceTop=Er.top,Er.left=10,Er.top=0,Er.width=ur-20+"px",Er.type==="ecanTable"){const{columns:Sr=[]}=Er;Er.scrollX="max-content";for(const kr of Sr)(br=kr==null?void 0:kr.width)!=null&&br.includes("%")&&(kr.width=parseFloat(kr.width)/100*ur+"px")}}Tr!=null&&Tr.length&&pr.unshift(...Tr);for(const Er of pr){if(Er.parentId===""&&containerType.includes(Er.type))Er.sourceWidth=getFormatWh(Er.width,hr==null?void 0:hr.width),Er.height=(ur/(Er.sourceWidth/getFormatWh(Er.height,hr==null?void 0:hr.height))).toFixed(2)+"px",Er.width="100%",Er.position="relative",Er.top="auto",Er.left="auto";else{const xr=pr.find(Sr=>Sr.id===Er.parentId);if((xr==null?void 0:xr.parentId)===""){const Sr=xr.sourceWidth||getFormatWh(xr.width,hr==null?void 0:hr.width),kr=ur/Sr;Er.scale=kr,Er.top=parseFloat(Er.top)*kr-getFormatWh(Er.height,hr==null?void 0:hr.height)*(1-kr)/2+"px",Er.left=parseFloat(Er.left)*kr-getFormatWh(Er.width,hr==null?void 0:hr.width)*(1-kr)/2+"px"}}Er.type==="ecanModal"&&(Er.parentId="",Er.fullModal=!0)}return sortList(pr)}return pr}function handleContainerMap(ct,Dn){const ur=lodashEs.cloneDeep(ct),dr=Dn.filter(fr=>fr.type==="ecanTabs"&&fr.isAutoScroll);if(dr!=null&&dr.length)for(const fr of dr){const hr=ur[fr.id];for(const vr in hr)for(const pr of hr[vr]){const mr=Dn.find(gr=>gr.id===pr);if(mr&&containerType.includes(mr.type)){const gr=getComponentByContainer(mr.id,ur,Dn);for(const yr of gr)ct[fr.id][vr].push(yr.id),containerType.includes(yr.type)&&delete ct[yr.id];delete ct[mr.id]}}}}function getTabsSomeComponentList(ct,Dn){const ur=[],dr=Dn.filter(fr=>fr.type==="ecanTabs"&&fr.isAutoScroll);if(dr!=null&&dr.length)for(const fr of dr){const hr=ct[fr.id];for(const vr in hr)if(parseFloat(vr)>0)for(const pr of hr[vr]){const mr=Dn.find(gr=>gr.id===pr);mr&&(ur.push(mr),containerType.includes(mr.type)&&ur.push(...getComponentByContainer(mr.id,ct,Dn)))}}return ur}function getComponentByContainer(ct,Dn,ur){const dr=[],fr=Dn[ct];for(const hr in fr)for(const vr of fr[hr]){const pr=ur.find(mr=>mr.id===vr);pr&&(dr.push(pr),containerType.includes(pr.type)&&dr.push(...getComponentByContainer(pr.id,Dn,ur)))}return dr}function getCombinationList(ct,Dn,ur){const{combinationMap:dr={},componentList:fr=[],pageConfig:hr={}}=Dn,vr=[];for(const pr of ct){const mr=dr[pr];if(mr!=null&&mr.length){const gr=fr.filter(yr=>mr.includes(yr.id));if(gr!=null&&gr.length){const yr=getCombinateRect(gr,hr);if(yr){vr.push({...yr,id:pr,keyName:pr,parentId:ur||"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:yr.left,sourceTop:yr.top});for(const Cr of gr)Cr&&(Cr.parentId=pr,Cr.sourceLeft=Cr.left,Cr.sourceTop=Cr.top,Cr.left=parseFloat(Cr.left)-parseFloat(yr.left)+"px",Cr.top=parseFloat(Cr.top)-parseFloat(yr.top)+"px")}}}}return vr}function sortList(ct){const ur=ct.filter(dr=>dr.parentId===""||(dr==null?void 0:dr.isFlowGrid)).sort((dr,fr)=>{const hr=dr.sourceTop?typeof dr.sourceTop=="object"?parseFloat(dr.sourceTop.value):parseFloat(dr.sourceTop):0,vr=fr.sourceTop?typeof fr.sourceTop=="object"?parseFloat(fr.sourceTop.value):parseFloat(fr.sourceTop):0;return isNaN(hr)||isNaN(vr)?0:hr-vr});if(ur!=null&&ur.length){const dr=lodashEs.cloneDeep(ur).map(fr=>({...fr,sourceTop:parseFloat(fr.sourceTop),sourceLeft:parseFloat(fr.sourceLeft)}));for(let fr=0;fr<dr.length-1;fr++)for(let hr=0;hr<dr.length-fr-1;hr++){let vr=!1;if((dr[hr].sourceTop-dr[hr+1].sourceTop>40||Math.abs(dr[hr+1].sourceTop-dr[hr].sourceTop)<=40&&dr[hr].sourceLeft>dr[hr+1].sourceLeft)&&(vr=!0),vr){const pr=dr[hr];dr[hr]=dr[hr+1],dr[hr+1]=pr}}for(const fr of dr){const hr=ct.findIndex(vr=>vr.id===fr.id);hr!==-1&&ct.splice(hr,1)}return[...dr,...ct]}return ct}function getCombinateRect(ct,Dn){const ur=ct.sort((vr,pr)=>parseFloat(vr.top)-parseFloat(pr.top))[0],dr=ct.sort((vr,pr)=>parseFloat(vr.left)-parseFloat(pr.left))[0],fr=ct.map(vr=>({...vr,computedTop:parseFloat(vr.top)+getFormatWh(vr.height,Dn==null?void 0:Dn.height)})).sort((vr,pr)=>pr.computedTop-vr.computedTop)[0],hr=ct.map(vr=>({...vr,computedLeft:parseFloat(vr.left)+getFormatWh(vr.width,Dn==null?void 0:Dn.width)})).sort((vr,pr)=>pr.computedLeft-vr.computedLeft)[0];return ur&&dr&&fr&&hr?{left:dr.left,top:ur.top,width:hr.computedLeft-parseFloat(dr.left)+"px",height:fr.computedTop-parseFloat(ur.top)+"px"}:null}function getMaxLeftInComponents(ct,Dn){const ur=ct.map(dr=>parseFloat(dr.left)+getFormatWh(dr.width,Dn==null?void 0:Dn.width)).sort((dr,fr)=>fr-dr)[0];return ur||0}function moveToComponentList(ct,Dn,ur){const dr=ct[ur],fr=[];if(dr)for(const hr in dr){const vr=dr[hr];for(const pr of vr){const mr=Dn.find(gr=>gr.id===pr);mr&&(fr.push(mr),containerType.includes(mr.type)&&fr.push(...getComponentByContainer(mr.id,ct,Dn)))}}return fr}const _sfc_main$G=vue.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(ct,{emit:Dn}){Dn("ready",ct.component.id)}});function _sfc_render$L(ct,Dn,ur,dr,fr,hr){return ct.component.parentId?(vue.openBlock(),vue.createBlock(vue.Teleport,{key:0,to:"#container_"+ct.component.parentId},[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(ct.component.type),vue.mergeProps({style:{scale:ct.component.scale}},ct.component),null,16,["style"]))],8,["to"])):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(ct.component.type),vue.normalizeProps(vue.mergeProps({key:1},ct.component)),null,16))}const Render=_export_sfc$1(_sfc_main$G,[["render",_sfc_render$L]]),EcanRender=withInstall$1(Render),_sfc_main$F=vue.defineComponent({name:"EcanModal",components:{AModal:antDesignVue.Modal,CloseOutlined:CloseOutlined$1,Render:EcanRender},props:{...modalComponentProps},setup(ct,{emit:Dn}){const ur=vue.ref([]),dr=vue.inject("isMobile",!1),{width:fr,height:hr}=vue.inject(GLOBAL_CONFIG,{width:null,height:null}),vr=vue.computed(()=>ct.fullModal),pr=vue.inject("getContainerMap",()=>{}),mr=vue.inject("getCombinationMap",()=>{}),{clearInteractiveData:gr,interactiveData:yr,setRequestData:Cr}=vue.inject(GLOBAL_MODEL,{setRequestData:(ai,Xr)=>{},clearInteractiveData:()=>{},interactiveData:null}),br=()=>document.getElementById("ProviderConfig")||document.body,Ar=vue.computed(()=>{const ai=ct.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[ai]}}),wr=ct.fullModal?"1920px":ct.width,_r=ct.fullModal?"1080px":ct.height,Tr=ct.originalWidth,Er=ct.originalHeight,xr=vue.ref("80%"),Sr=vue.ref(0),kr=vue.ref(),Pr=vue.ref(0),Ir=vue.ref({}),Br=usePickComponentStyle(ct),Or=vue.ref({}),Nr=vue.ref(!1),jr=vue.ref();let Vr;const $r=()=>{kr.value=parseFloat(wr)/parseFloat(Tr);const ai=parseFloat(_r)/parseFloat(Er),Xr=document.body.offsetWidth,vi=document.body.offsetHeight;if(Sr.value=Xr*vue.unref(kr),Pr.value=vi*ai,xr.value=`${vue.unref(kr)*100}%`,Ir.value={width:`${vue.unref(Sr)}px`,height:`${vue.unref(Pr)}px`,border:`${ct.borderWidth} solid ${ct.borderColor}`,borderRadius:ct.borderRadius+"px",boxShadow:ct.boxShadow},Or.value={...vue.unref(Br),backgroundImage:useImagePath(ct.backgroundImage,!0)},dr)Or.value={...Or.value,width:"100%",height:"100%"};else{const Si={...Or.value,width:wr,height:_r};ct.banScale&&vue.unref(vr)?(Si.width="100%",Si.height="100%"):Si.transform=`scale(${vue.unref(Sr)/parseFloat(wr)},${vue.unref(Pr)/parseFloat(_r)})`,Or.value=Si}},zr=lodashEs.debounce(()=>{$r()},100),Wr=()=>{const ai=window.MutationObserver;Vr=new ai(zr),Vr.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},qr=()=>{Vr&&(Vr.disconnect(),Vr.takeRecords(),Vr=null)},Mr=vue.ref(!1),{touchRequest:Lr}=vue.inject(REQUEST_MODEL,{touchRequest:()=>{}}),Fr=vue.ref(""),Dr=()=>{var vi;const{title:ai}=ct,Xr=(vi=vue.unref(yr))==null?void 0:vi.RECORD;return Xr?jn(ai,{textData:Xr},{useNewline:!1,useSpace:!1}):ai},Gr=useEmitEvent(ct),Rr=ai=>{const{changeIframeStyle:Xr}=window.parent;Xr&&typeof Xr=="function"&&Xr({iframeId:ct.parentIframeId||"",action:ai})},Qr=()=>{vue.unref(vr)&&Rr("open"),dr&&(document.documentElement.style.overflow="hidden"),Fr.value=Dr(),Mr.value=!0},Kr=Gr("hideModal",()=>{vue.unref(vr)&&Rr("close"),Dn("close"),dr&&(document.documentElement.style.overflow="hidden auto",ur.value=[]),Mr.value=!1}),Hr=()=>{Kr()},Ur=()=>{Kr(),gr()},{setModalModel:Jr,pushUseModalIds:Yr,popUseModalIds:si}=vue.inject(MODAL_MODEL,{pushUseModalIds:ai=>{},popUseModalIds:()=>{},setModalModel:(ai,Xr)=>{}}),fi=vue.computed(()=>{let ai=ct.componentList;const Xr=lodashEs.cloneDeep(ct.componentList),vi=pr(),Si=mr(),ri={containerMap:vi,combinationMap:Si};dr&&(ai=compatibleMobileList({...ri,componentList:Xr,sourceList:ct.allComponentList,pageConfig:{width:vue.unref(fr),height:vue.unref(hr)}})),ai=handleScrollCombinations({...ri,componentList:ai,sourceList:ct.allComponentList,pageConfig:{width:vue.unref(fr),height:vue.unref(hr)}});const yi=[];for(const di of ai)if(di.type==="ecanCirculate"){const Ei=moveToComponentList(vi,vue.unref(Xr),di.id);di.componentList=Ei,yi.push(...Ei.map(Oi=>Oi.id))}else if(di.type==="ecanTable"){const{headerFontSize:Ei,fontSize:Oi,size:Li,bodyRowHeight:Ri,headRowHeight:hi}=di;if(!Ri||!hi)if(di.size){let Ci=0;switch(Li){case"default":Ci=16;break;case"middle":Ci=12;break;case"small":Ci=8;break}Ri||(di.bodyRowHeight=(Ci*2+parseFloat(Oi)*1.5715).toFixed(0)+"px"),hi||(di.headRowHeight=(Ci*2+parseFloat(Ei)*1.5715).toFixed(0)+"px")}else Ri||(di.bodyRowHeight="54px"),hi||(di.headRowHeight="54px")}if(yi!=null&&yi.length)for(const di of yi){const Ei=ai.findIndex(Oi=>Oi.id===di);Ei!==-1&&ai.splice(Ei,1)}return ai}),_i=()=>{const ai=ct.id;let Xr=[];const vi=ct.componentList;Array.isArray(vi)&&(Xr=vi.map(Si=>Si.id),Jr(ai,[...new Set(Xr)]))},bi=vue.ref(!1),pi={};for(const ai of ct.requestList)pi[ai.requestName]=useRequestData(ai);vue.watch(()=>Mr.value,async ai=>{if(ai)Nr.value=!1,Yr(ct.id),_i(),await vue.nextTick(()=>{$r(),window.addEventListener("resize",zr),Wr(),Nr.value=!0}),Lr();else{if(Cr)for(const Xr in pi)Cr(Xr,{});si(),window.removeEventListener("resize",zr),qr()}});const mi=vue.computed(()=>vue.unref(kr)>=1),xi=vue.computed(()=>{let ai="ecan-modal";return vue.unref(mi)&&(ai+=" ecan-full-width-modal"),vue.unref(vr)&&(ai+=" ecan-full-modal"),ai});return useOnEvent(ct,{showModal:Qr,hideModal:Kr}),{modalRef:jr,containStyle:Ir,contentStyle:Or,getContainer:br,modalStyle:Ar,modalWith:xr,isFullModal:vr,style:Br,visible:Mr,showModal:Qr,onOk:Hr,onCancel:Ur,isFullWidth:mi,wrapClassName:xi,ready:Nr,usedComponentList:fi,isMobile:dr,readyIds:ur,hasOwn:Tn,onComponentReady:ai=>{ur.value.push(ai)},formatTitle:Fr,requestLoaded:bi}}}),Modal_vue_vue_type_style_index_0_scoped_e8d3acb6_lang="",Modal_vue_vue_type_style_index_1_lang="";function _sfc_render$K(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("close-outlined"),pr=vue.resolveComponent("render"),mr=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(mr,{getContainer:ct.getContainer,wrapClassName:ct.wrapClassName,centered:"",visible:ct.visible,footer:null,width:ct.isFullModal||ct.isFullWidth?"100%":ct.modalWith,destroyOnClose:ct.destroyOnClose,style:vue.normalizeStyle(ct.modalStyle),closable:!1,onOk:ct.onOk,onCancel:ct.onCancel,ref:"modalRef",id:"container_"+ct.id},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"contain",ref:"containRef",style:vue.normalizeStyle(ct.containStyle)},[ct.ready?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"content",style:vue.normalizeStyle(ct.contentStyle)},[vue.createElementVNode("div",{class:"header-bar",style:vue.normalizeStyle({backgroundColor:ct.backgroundColor,padding:"20px 30px",height:ct.isMobile?"62px":""})},[ct.formatTitle?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"ant-modal-title",style:vue.normalizeStyle({fontSize:ct.titleFontSize,color:ct.titleColor})},vue.toDisplayString(ct.formatTitle),5)):vue.createCommentVNode("",!0),ct.isShowCloseBtn?(vue.openBlock(),vue.createBlock(vr,{key:1,class:"close-icon",style:vue.normalizeStyle({color:ct.closeBtnColor}),onClick:ct.onCancel},null,8,["style","onClick"])):vue.createCommentVNode("",!0)],4),ct.usedComponentList.length?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(ct.isMobile?"mobile-wrap":"")},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ct.usedComponentList,(gr,yr)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:gr.id+yr},[ct.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[ct.hasOwn(gr,"parentId")&&(ct.readyIds.includes(gr.parentId)||gr.parentId==="")?(vue.openBlock(),vue.createBlock(pr,{key:0,component:gr,onReady:ct.onComponentReady},null,8,["component","onReady"])):vue.createCommentVNode("",!0)],64)):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(gr.type),vue.mergeProps({key:1},gr,{cpntid:gr.id}),null,16,["cpntid"]))],64))),128))],2)):vue.renderSlot(ct.$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$F,[["render",_sfc_render$K],["__scopeId","data-v-e8d3acb6"]]),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$E=vue.defineComponent({name:"EcanLine",props:{...lineComponentProps},components:{Spin,Echarts,EcanModal},setup(ct,{expose:Dn}){const ur=vue.ref(!1),dr=vue.ref(!1),{pageMode:fr,fontFamily:hr}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),vr=vue.inject("showIndDetail",Mr=>{}),pr=vue.inject("showIndSource",Mr=>{}),mr=vue.inject("usedComponentList",[]),gr=vue.ref(),yr=vue.ref(!1),Cr=usePickComponentStyle(ct),br=vue.ref(),Ar=vue.computed(()=>yr.value?ZOOM_FONT_SIZE:12),wr=vue.ref({});let _r;const Tr=vue.ref({}),Er=vue.ref({}),xr=Mr=>{Tr.value=Mr;const Lr=cr(ct,Mr,{fontSize:vue.unref(Ar),fontFamily:vue.unref(hr),callBackMethodMap:{getCurrentData:Dr=>{_r=Dr},toolboxDownloadShowFun:()=>{useDownloadFile(ct.toolboxDownloadUrl)},toolboxDataZoomShowFun:()=>{var Dr;yr.value=!0,(Dr=br.value)==null||Dr.showModal()},toolboxInfoShowFun:()=>{vr(ct)},toolboxSourceShowFun:()=>{pr(ct)}}});let Fr=parseFloat(ct.legendFontSize);vue.unref(yr)&&(Fr=ZOOM_FONT_SIZE,Lr.toolbox.feature.myDataZoom.show=!1),Lr.legend.textStyle.lineHeight=Fr+8,Lr.legend.textStyle.rich.text.fontSize=Fr,Er.value=Lr},Sr=()=>{yr.value=!1},{getGlobalModel:kr,setGlobalModel:Pr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Mr=>{},setGlobalModel:(Mr,Lr)=>{}}),Ir=(Mr=[],Lr=!1)=>{var Dr;let Fr;if(ct.dataFieldConfigType==="key"){const Gr=Lr?ct.keyTypeDataFieldNames:null;Fr=Xn(Mr,Gr)}else if(ct.dataFieldConfigType==="value"){const Gr=Lr?ct.valueTypeDataFieldNames:null;Fr=Jn(Mr,Gr)}xr(Fr),(Dr=Fr.dataset)!=null&&Dr.length?dr.value=!1:dr.value=!0},Br=(Mr=[],Lr,Fr=!1)=>{var Rr,Qr,Kr;const Gr=Xn(Mr,Fr?Lr:null,!0);if(ct.defaultRangeValue&&setDefaultRangeVal({props:ct,componentList:vue.unref(mr),getGlobalModel:kr},Gr),(Rr=Gr.dataset)!=null&&Rr.length){for(const Hr of Gr.dataset)if((Qr=Hr.data)!=null&&Qr.length)for(const Ur of Hr.data)(Ur.value===null||Ur.value===void 0)&&(Ur.value=0)}xr(Gr),(Kr=Gr.dataset)!=null&&Kr.length?dr.value=!1:dr.value=!0},Or=vue.computed(()=>Object.keys(ct).reduce((Mr,Lr)=>(IGNORE_WATCH_KEYS.has(Lr)||(Mr[Lr]=ct[Lr]),Mr),{}));vue.watch(()=>[ct.data,Or.value],([Mr])=>{(ct.dataType==="static"||vue.unref(fr)==="design")&&Ir(Mr)},{immediate:!0,deep:!0}),vue.watch(yr,()=>{xr(vue.unref(Tr))});const Nr=useEmitEvent(ct);Pr(ct.id,{type:ct.type,RECORD:""});const jr=Nr("click",Mr=>{const Lr=kr(ct.id);Pr(ct.id,{...Lr,type:ct.type,RECORD:ct.tooltipShow?_r:Mr.data})}),Vr=Mr=>{gr.value.chart.containPixel("grid",[Mr.offsetX,Mr.offsetY])&&jr()};ct.isForbidClick||(ct.tooltipShow?wr.value["zr:click"]=Vr:wr.value.click=jr);const $r=Mr=>{var Qr;const{columns:Lr=[],rows:Fr=[]}=((Qr=Mr==null?void 0:Mr.data)==null?void 0:Qr.data)??{};let Dr;Lr.length>0&&(Dr={name:Lr[0],types:Lr.slice(1).map(Kr=>({label:Kr,value:Kr}))});const{leftAxisList:Gr=[]}=ct.graphicConfig,Rr=Gr.filter(Kr=>Kr.show).map(Kr=>Kr.label);for(const Kr of Fr)if(Kr)for(const Hr in Kr)typeof Kr[Hr]=="string"&&Rr.includes(Hr)&&!isNaN(parseFloat(Kr[Hr]))&&(Kr[Hr]=parseFloat(Kr[Hr]));Br(Fr,Dr,!0)},zr=useDataSource({props:ct,loading:ur,setData:Mr=>{var Dr,Gr;ct.dataType!=="component"&&ct.isViewRedrawing&&gr.value.clear();const{columns:Lr=[],rows:Fr=[]}=((Dr=Mr==null?void 0:Mr.data)==null?void 0:Dr.data)||{};(Gr=Lr==null?void 0:Lr.filter(Rr=>Rr&&Rr!=="null"))!=null&&Gr.length?$r(Mr):Ir(Fr,!0)}});useOnEvent(ct,{refreshData:zr,resetRecord:()=>{const Mr=ct.id,Lr=kr(Mr);Pr(Mr,{...Lr,RECORD:""})},click:jr});const{setRequest:qr}=vue.inject(REQUEST_MODEL,{setRequest:Mr=>{}});return typeof qr=="function"&&qr({id:ct.id,requestFn:zr,sortNum:ct.requestSort}),Dn({refreshData:zr}),{option:Er,style:Cr,click:jr,loading:ur,onClose:Sr,ecanModal:br,eventObj:wr,echartRef:gr,emptyData:dr}}}),Line_vue_vue_type_style_index_0_lang="",Line_vue_vue_type_style_index_1_scoped_47a475f9_lang="";function _sfc_render$J(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("echarts"),pr=vue.resolveComponent("spin"),mr=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(ct.style)},[vue.createVNode(pr,{spinning:ct.loading},{default:vue.withCtx(()=>[ct.noDataTip&&ct.emptyData?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"empty-wrap",style:vue.normalizeStyle({color:ct.tipTextColor,fontSize:ct.tipTextFontSize})},[vue.createElementVNode("span",null,vue.toDisplayString(ct.tipText),1)],4)):(vue.openBlock(),vue.createBlock(vr,vue.mergeProps({key:1,ref:"echartRef",option:ct.option,autoresize:""},vue.toHandlers(ct.eventObj)),null,16,["option"]))]),_:1},8,["spinning"]),vue.createVNode(mr,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:ct.onClose},{default:vue.withCtx(()=>[vue.createVNode(pr,{class:"spin-wrap",spinning:ct.loading},{default:vue.withCtx(()=>[vue.createVNode(vr,{option:ct.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Line=_export_sfc$1(_sfc_main$E,[["render",_sfc_render$J],["__scopeId","data-v-47a475f9"]]),EcanLine=withInstall$1(Line);let random=ct=>crypto.getRandomValues(new Uint8Array(ct)),customRandom=(ct,Dn,ur)=>{let dr=(2<<Math.log(ct.length-1)/Math.LN2)-1,fr=-~(1.6*dr*Dn/ct.length);return()=>{let hr="";for(;;){let vr=ur(fr),pr=fr;for(;pr--;)if(hr+=ct[vr[pr]&dr]||"",hr.length===Dn)return hr}}},customAlphabet=(ct,Dn)=>customRandom(ct,Dn,random),nanoid=(ct=21)=>{let Dn="",ur=crypto.getRandomValues(new Uint8Array(ct));for(;ct--;){let dr=ur[ct]&63;dr<36?Dn+=dr.toString(36):dr<62?Dn+=(dr-26).toString(36).toUpperCase():dr<63?Dn+="_":Dn+="-"}return Dn};const _sfc_main$D=vue.defineComponent({name:"TrendModal",components:{EcanLine,CloseOutlined:CloseOutlined$1,BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1},props:{theme:{type:String,default:"light"}},setup(ct,{expose:Dn}){const ur=vue.ref(!1),dr=vue.ref(),fr=vue.ref(),hr=vue.ref(!0),vr=vue.ref({}),pr=vue.ref(!0),mr=vue.inject("isMobile",!1),gr=async({data:Er,pageConfig:xr,unitText:Sr})=>{if(Er){hr.value=!0,vr.value=xr;const{graphicConfig:kr}=Er,Pr=nanoid(6),Ir={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:(kr==null?void 0:kr.indicators)||[],controlList:(kr==null?void 0:kr.controlList)||[],variableList:(kr==null?void 0:kr.variableList)||[],variableConditions:(kr==null?void 0:kr.variableConditions)||[]};dr.value={...lodashEs.cloneDeep(lineProps),id:Pr,keyName:`折线图_${Pr}`,position:"relative",top:0,left:0,width:vue.unref(mr)||vue.unref(hr)?"100%":parseFloat(xr.width)*.57+"px",height:vue.unref(mr)||vue.unref(hr)?"100%":parseFloat(xr.height)*.4+"px",dataType:"indicator",tooltipFormatter:"{marker} {a} {c}"+Sr,xAxisLabelRotate:45,yAxisLabelFormatter:Sr?`{value}${Sr}`:"{value}",isForbidClick:!0,graphicConfig:Ir},ur.value=!0,vue.nextTick(()=>{br(!0),Ar(!0),vue.unref(fr).refreshData()})}},yr=()=>document.querySelector("#modalContainer")||document.body,Cr=vue.computed(()=>{let Er="trend-modal";return vue.unref(mr)?Er+=" mobile":hr.value&&(Er+=" full"),ct.theme==="darkBlue"&&(Er+=" darkBlue"),Er});vue.watch(ur,Er=>{Er?document.documentElement.style.overflow="hidden":document.documentElement.style.overflow="hidden auto"}),vue.watch(hr,Er=>{pr.value=!1,vue.unref(dr).width=Er?"100%":parseFloat(vue.unref(vr).width)*.57+"px",vue.unref(dr).height=Er?"100%":parseFloat(vue.unref(vr).height)*.4+"px",vue.nextTick(()=>{pr.value=!0,vue.nextTick(()=>{vue.unref(fr).refreshData()})})});const br=Er=>{const xr=document.querySelector(".trend-modal .ant-modal-header");xr&&(Er?xr.addEventListener("dblclick",_r):xr.removeEventListener("dblclick",_r))},Ar=Er=>{const xr=document.querySelector(".trend-modal .ant-modal-header");if(xr)if(Er)xr.addEventListener("mousedown",wr);else{const Sr=xr.parentElement;Sr&&(Sr.style.left="",Sr.style.top=""),xr.removeEventListener("mousedown",wr)}};function wr(Er){dragModalAction(Er,".trend-modal .ant-modal-header")}const _r=()=>{hr.value=!hr.value,vue.nextTick(()=>{hr.value?Ar(!1):Ar(!0)})},Tr=()=>{br(!1),Ar(!1)};return vue.onMounted(()=>{var Er,xr;if(vue.unref(mr)){const Sr=document.querySelector("#modalContainer");hr.value=!0,(Er=Sr==null?void 0:Sr.style)==null||Er.setProperty("--window-screen-width",document.body.clientWidth+"px"),(xr=Sr==null?void 0:Sr.style)==null||xr.setProperty("--window-screen-height",document.body.clientHeight+"px")}}),Dn({showModal:gr}),{visible:ur,componentConfig:dr,lineRef:fr,wrapClassName:Cr,isMobile:mr,isIndFullScreen:hr,isRender:pr,getContainer:yr,toggleFullScreen:_r,onDetailCancel:Tr}}}),TrendModal_vue_vue_type_style_index_0_scoped_a24645dd_lang="",TrendModal_vue_vue_type_style_index_1_lang="",_withScopeId$a=ct=>(vue.pushScopeId("data-v-a24645dd"),ct=ct(),vue.popScopeId(),ct),_hoisted_1$u=_withScopeId$a(()=>vue.createElementVNode("div",{class:"modal-title"},"趋势图",-1)),_hoisted_2$h={class:"zoom-btn"};function _sfc_render$I(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("close-outlined"),pr=vue.resolveComponent("switcher-outlined"),mr=vue.resolveComponent("border-outlined"),gr=vue.resolveComponent("ecan-line"),yr=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(yr,{visible:ct.visible,"onUpdate:visible":Dn[0]||(Dn[0]=Cr=>ct.visible=Cr),width:"60%",getContainer:ct.getContainer,footer:null,destroyOnClose:!0,bodyStyle:{maxHeight:ct.isMobile||ct.isIndFullScreen?"":"70vh",height:ct.isMobile||ct.isIndFullScreen?"100vh":"",overflow:"auto",padding:"20px 24px 24px"},"wrap-class-name":ct.wrapClassName,onCancel:ct.onDetailCancel},{title:vue.withCtx(()=>[_hoisted_1$u]),closeIcon:vue.withCtx(()=>[vue.createVNode(vr,{class:vue.normalizeClass(["close-icon",ct.theme])},null,8,["class"])]),default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$h,[!ct.isMobile&&ct.isIndFullScreen?(vue.openBlock(),vue.createBlock(pr,{key:0,class:vue.normalizeClass(["modal-icon",ct.theme]),title:"取消全屏",onClick:ct.toggleFullScreen},null,8,["class","onClick"])):ct.isMobile?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(mr,{key:1,class:vue.normalizeClass(["modal-icon",ct.theme]),title:"全屏",onClick:ct.toggleFullScreen},null,8,["class","onClick"]))]),ct.componentConfig&&ct.isRender?(vue.openBlock(),vue.createBlock(gr,vue.mergeProps({key:0},ct.componentConfig,{ref:"lineRef"}),null,16)):vue.createCommentVNode("",!0)]),_:1},8,["visible","getContainer","bodyStyle","wrap-class-name","onCancel"])}const TrendModal=_export_sfc$1(_sfc_main$D,[["render",_sfc_render$I],["__scopeId","data-v-a24645dd"]]),_sfc_main$C=vue.defineComponent({name:"SourceModal",components:{CloseOutlined:CloseOutlined$1,BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1,ATable:antDesignVue.Table},props:{theme:{type:String,default:"light"}},setup(ct,{expose:Dn}){const ur=[{title:"指标名称",dataIndex:"indexName"},{title:"指标编码",dataIndex:"indexCode"},{title:"指标内涵",dataIndex:"meaning",width:300},{title:"公式",dataIndex:"theFormula"}],dr=vue.ref([]),fr=vue.ref(!1),hr=vue.ref(!1),vr=vue.ref(!0),pr=vue.inject("isMobile",!1),mr=async({data:Tr,indicatorUrl:Er,indicatorToken:xr,context:Sr,pageId:kr})=>{var Pr;if(Tr){vr.value=!0,fr.value=!0,hr.value=!0;let Ir=[];const{graphicConfig:Br,theFlag:Or}=vue.unref(Tr)||{};if(Br){const{leftAxisList:Nr=[],rightAxisList:jr=[],indicators:Vr=[]}=Br,$r=Nr.concat(jr).concat(Vr);$r!=null&&$r.length&&(Ir=$r.map(zr=>({calcType:zr.calcType||"COLUMN",columnName:zr.name,hrpIndexCode:zr.indexCode,hrpIndexCodeNum:zr.indexCodeNum,label:zr.label,show:zr.show,formula:zr.formula})))}if(Ir!=null&&Ir.length)try{const Nr=await request({url:`${vue.unref(Er)}/diagram/obtainIndexInfo`,method:"post",headers:{Authentication:xr,operateContext:Sr},data:{source:"INDICATOR_LIB",pageId:kr,indicatorList:Ir,theFlag:Or}});dr.value=((Pr=Nr==null?void 0:Nr.data)==null?void 0:Pr.data)||[]}catch{}finally{fr.value=!1}vue.nextTick(()=>{Cr(!0),br(!0)})}},gr=()=>document.querySelector("#modalContainer")||document.body,yr=vue.computed(()=>{let Tr="source-modal";return vue.unref(pr)?Tr+=" mobile":vr.value&&(Tr+=" full"),ct.theme==="darkBlue"&&(Tr+=" darkBlue"),Tr});vue.watch(hr,Tr=>{Tr?document.documentElement.style.overflow="hidden":document.documentElement.style.overflow="hidden auto"});const Cr=Tr=>{const Er=document.querySelector(".source-modal .ant-modal-header");Er&&(Tr?Er.addEventListener("dblclick",wr):Er.removeEventListener("dblclick",wr))},br=Tr=>{const Er=document.querySelector(".source-modal .ant-modal-header");if(Er)if(Tr)Er.addEventListener("mousedown",Ar);else{const xr=Er.parentElement;xr&&(xr.style.left="",xr.style.top=""),Er.removeEventListener("mousedown",Ar)}};function Ar(Tr){dragModalAction(Tr,".source-modal .ant-modal-header")}const wr=()=>{vr.value=!vr.value,vue.nextTick(()=>{vr.value?br(!1):br(!0)})},_r=()=>{Cr(!1),br(!1)};return vue.onMounted(()=>{var Tr,Er;if(vue.unref(pr)){const xr=document.querySelector("#modalContainer");vr.value=!0,(Tr=xr==null?void 0:xr.style)==null||Tr.setProperty("--window-screen-width",document.body.clientWidth+"px"),(Er=xr==null?void 0:xr.style)==null||Er.setProperty("--window-screen-height",document.body.clientHeight+"px")}}),Dn({showModal:mr}),{columns:ur,dataSource:dr,visible:hr,wrapClassName:yr,isMobile:pr,isIndFullScreen:vr,isLoading:fr,getContainer:gr,toggleFullScreen:wr,onDetailCancel:_r}}}),SourceModal_vue_vue_type_style_index_0_scoped_ac0aee1b_lang="",SourceModal_vue_vue_type_style_index_1_lang="",_withScopeId$9=ct=>(vue.pushScopeId("data-v-ac0aee1b"),ct=ct(),vue.popScopeId(),ct),_hoisted_1$t=_withScopeId$9(()=>vue.createElementVNode("div",{class:"modal-title"},"指标来源",-1)),_hoisted_2$g={class:"zoom-btn"},_hoisted_3$a={key:0,class:"spin-container"};function _sfc_render$H(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("close-outlined"),pr=vue.resolveComponent("switcher-outlined"),mr=vue.resolveComponent("border-outlined"),gr=vue.resolveComponent("a-spin"),yr=vue.resolveComponent("a-table"),Cr=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(Cr,{visible:ct.visible,"onUpdate:visible":Dn[0]||(Dn[0]=br=>ct.visible=br),width:"60%",getContainer:ct.getContainer,footer:null,destroyOnClose:!0,bodyStyle:{maxHeight:ct.isMobile||ct.isIndFullScreen?"":"70vh",height:ct.isMobile||ct.isIndFullScreen?"100vh":"",overflow:"auto",padding:"20px 24px 24px"},"wrap-class-name":ct.wrapClassName,onCancel:ct.onDetailCancel},{title:vue.withCtx(()=>[_hoisted_1$t]),closeIcon:vue.withCtx(()=>[vue.createVNode(vr,{class:vue.normalizeClass(["close-icon",ct.theme])},null,8,["class"])]),default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$g,[!ct.isMobile&&ct.isIndFullScreen?(vue.openBlock(),vue.createBlock(pr,{key:0,class:vue.normalizeClass(["modal-icon",ct.theme]),title:"取消全屏",onClick:ct.toggleFullScreen},null,8,["class","onClick"])):ct.isMobile?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(mr,{key:1,class:vue.normalizeClass(["modal-icon",ct.theme]),title:"全屏",onClick:ct.toggleFullScreen},null,8,["class","onClick"]))]),ct.isLoading?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$a,[vue.createVNode(gr,{size:"large"})])):(vue.openBlock(),vue.createBlock(yr,{key:1,columns:ct.columns,"row-key":br=>br.uuid,"data-source":ct.dataSource,pagination:!1},null,8,["columns","row-key","data-source"]))]),_:1},8,["visible","getContainer","bodyStyle","wrap-class-name","onCancel"])}const SourceModal=_export_sfc$1(_sfc_main$C,[["render",_sfc_render$H],["__scopeId","data-v-ac0aee1b"]]),pivotTableProps={...props$1,name:"透视表",keyName:"透视表",width:"800px",height:"400px",type:"ecanPivotTable",graphicConfig:{},dataType:"indicator",data:[],dimensionList:[],indicatorList:[],styleConfig:{borderColor:"#E3E3E3",headerBgColor:"#ECF1F5",headerColor:"#000000",bodyBgColor:"#FFFFFF",bodyColor:"#000000",indicatorsHeaderBgColor:"#ECF1F5",indicatorsHeaderColor:"#000000",indicatorsBodyBgColor:"#FFFFFF",indicatorsBodyColor:"#000000",aggregateBgColor:"#ECF1F5",aggregateColor:"#000000",sortNotActiveColor:"#CCCCCC",sortActiveColor:"#416EFF",dropDownMenuBgColor:"#FFFFFF",dropDownMenuColor:"#141414",dropDownMenuHightLightColor:"#2E68CF"},configMode:"halfMode"},pivotTableComponentProps=transformToComponentProps(pivotTableProps),pivotTableEvents=["refreshData"];var zhCn={exports:{}};(function(ct,Dn){(function(ur,dr){ct.exports=dr(dayjs)})(commonjsGlobal,function(ur){function dr(vr){return vr&&typeof vr=="object"&&"default"in vr?vr:{default:vr}}var fr=dr(ur),hr={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(vr,pr){return pr==="W"?vr+"周":vr+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(vr,pr){var mr=100*vr+pr;return mr<600?"凌晨":mr<900?"早上":mr<1100?"上午":mr<1300?"中午":mr<1800?"下午":"晚上"}};return fr.default.locale(hr,null,!0),hr})})(zhCn);const _imports_0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABHNCSVQICAgIfAhkiAAABE1JREFUaEPdWk1sTUEUdtmxEREWVMtay0LSxoqIhaBsRBC8IIQgCI1/9S+StuI3EWmIIGLTVtiI6IaQWEhqZeHfgpVI2Mnzfc+ZZzrv3ndn5s57rzXJl/vevffMnG/OOTNnZm40IkDJ5/NjUc0SoAGYD9QDk42qP+P/B+AR8B7ojaLoe9bmI98KROm1kN8gir/C9RPwGvgKfDPqnoD/E4HpQB0wU4hcw/WGLxlnAlCcvbwTyAHPgZdy9emLFgjNAni9DnSBCK1jXZwIQPkjqHkj8ERg9rJ1wzHWmYt7xFWQOGpbkRUBKE5z3wR+AN1AKMVNPelm24CRQKuNNVIJQHm6ykngHvDYtmcyvjcP8suAAyBB10osZQmI8hcgfRB4m1EpV/FpEDhBi5QjkUhAlN+HCi7XQHlFliS2AKeTSMQSqHHPm5ZSllgNEj3mwxICErAP8OLZGvZ8HIljuDnDDOw4AgMSrNUKWNvYaMWLzSDQpAsMIoDeb8fDpcAh21qr/N5xtNcDEtSzUIoEZIZ9inuHgUqN81n5cp7o1F1JJ3AeD8YBd7O2UmH55YxNWIEd/dcCkpgxU9wE/HRUYKq8/65KcsoK9UwAFYEdaHwBcNFDiVMisx9XWxIk7SOn1NuKH3c4NygCHHn6AGaXtkUpMUYEaDkbEr5yul7MXpkrNUbiPszjV9pqLu+ZivB2Gok4GVqNxF1d9zZk6kgghx/rAU5crsWFREjlqWcb0EECHH3G06dctXewRGjl2fQK4A0JcOxn6sA48C3lLME6GbAqVvjf1210/RrxZyEJ0P/bgayTVxIJNhpaedbJJG83CeTxg3lGiBJHQq83RM/r9fWFJsDKk0iEVp5tVZVA2hDr4wHBCaS5UGgSBQLcMeN2SSWCmG7D3EUP4lAkGMR7KjmMKp8nAXMYDUGiOIyek14KOZGZAesyY9vGQnEiy0EiZCqRNNqEJlFMJbiz/BFYZUtd3vNJD0KSuAU9pmRJpxmY9G19QWOTVZokfOaHf+k0exMjke+CRpFgNTbKKyMrEhz5XOSUfMmCRrkRt81dh1N9QePihSTBtlzXARzVugruo5aUYoXhsqhfB30HBi3qhUADrsNhW4W936R26P6fjS3lvAjooby12MKFvB5ocXujPI0Zipu73FYsuo4iUUJA4iGHK4Oae6TVPtgwRzImbVR+jdX2uuZKJLEXuFJDElR+M3DG6YDDIFErS6ie3+51xKSR4Hb7JeAhwN27ahSu0bmJG+s2ZYM4TjvZer+PZ78BHvq5zta2pNUx6ygILA5yzKq3LAcgu3CvF+gPSISKLwJ4vNqpH2CkMY8dhcoJiTVIIgc8A/ipwYu0hhKeN+M+PzWYDXBh1W3T684ulOBWTABJgoshfp3Cjz24vuZE+Aswh18G5WiAExG/ZOF8wzOJDoDHRl5frjhboAyZOaKU+txmkvHuF1GYn9uQbL+v0nq9fwCcDKEjLNL6QQAAAABJRU5ErkJggg==",CustomModal_vue_vue_type_style_index_0_scoped_2ef6cccf_lang="",CustomModal_vue_vue_type_style_index_1_lang="";dayjs.locale("zh-cn");const _sfc_main$B=vue.defineComponent({name:"LastDetail",components:{BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1,CloseOutlined:CloseOutlined$1},props:{theme:{type:String,default:"light"}},setup(ct,{emit:Dn,expose:ur}){const dr=window.screen.height*.6,fr=`cutmodal_${nanoid(6)}`,hr=vue.ref(!0),vr=vue.ref(!1),pr=vue.ref(""),mr=vue.ref(""),gr=vue.ref(""),yr=vue.inject("isMobile",!1);vue.computed(()=>INDICATOR_URL);const Cr=()=>document.querySelector("#modalContainer")||document.body,br=Pr=>{const Ir=document.querySelector(`.${fr} .ant-modal-header`);if(Ir)if(Pr)Ir.addEventListener("mousedown",wr);else{const Br=Ir.parentElement;Br&&(Br.style.left="",Br.style.top=""),Ir.removeEventListener("mousedown",wr)}},Ar=Pr=>{const Ir=document.querySelector(`.${fr} .ant-modal-header`);Ir&&(Pr?Ir.addEventListener("dblclick",_r):Ir.removeEventListener("dblclick",_r))},wr=Pr=>{dragModalAction(Pr,`.${fr} .ant-modal-header`)},_r=()=>{hr.value=!hr.value,vue.nextTick(()=>{hr.value?br(!1):br(!0)})},Tr=()=>{Ar(!1),br(!1),Dn("close")};async function Er(Pr){var Nr;vr.value=!0,(Nr=window==null?void 0:window.config)!=null&&Nr.indicatorToken;const{record:Ir,linkUrl:Br,title:Or}=Pr;if(gr.value=Or,Br){hr.value=!0,pr.value=Br;const jr=[],Vr=["orgCode","visitId","mpiId"];for(const $r in Ir)Vr.includes($r)&&jr.push(`${$r}=${Ir[$r]}`);mr.value=jr.join("&")}vue.nextTick(()=>{Ar(!0)})}const xr=vue.computed(()=>{let Pr=`custom-content-modal ${fr}`;return(vue.unref(yr)||hr.value)&&(Pr+=" full"),ct.theme==="darkBlue"&&(Pr+=" darkBlue"),Pr}),Sr=vue.computed(()=>vue.unref(yr)?{padding:"10px 0"}:{height:vue.unref(hr)?"":dr+48+"px",overflow:"hidden",padding:0}),kr=()=>{vr.value=!1,Tr()};return ur({showModal:Er,visible:vr}),{visible:vr,wrapClassName:xr,detailBodyStyle:Sr,isMobile:yr,urlJsonStr:mr,linkUrl:pr,isIndFullScreen:hr,modalTitle:gr,handleClose:kr,getContainer:Cr,onCancel:Tr,toggleFullScreen:_r}}}),_withScopeId$8=ct=>(vue.pushScopeId("data-v-2ef6cccf"),ct=ct(),vue.popScopeId(),ct),_hoisted_1$s=_withScopeId$8(()=>vue.createElementVNode("img",{src:_imports_0,alt:"",width:"48",height:"48"},null,-1)),_hoisted_2$f=[_hoisted_1$s],_hoisted_3$9=["src"];function _sfc_render$G(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(vr,{wrapClassName:ct.wrapClassName,visible:ct.visible,"onUpdate:visible":Dn[1]||(Dn[1]=pr=>ct.visible=pr),width:"60%",destroyOnClose:!0,footer:null,bodyStyle:ct.detailBodyStyle,getContainer:ct.getContainer,closable:!1,onCancel:ct.onCancel},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"custom-close-icon",onClick:Dn[0]||(Dn[0]=(...pr)=>ct.handleClose&&ct.handleClose(...pr))},_hoisted_2$f),ct.linkUrl&&ct.urlJsonStr?(vue.openBlock(),vue.createElementBlock("iframe",{key:0,src:`${ct.linkUrl}${ct.linkUrl.includes("?")?"&":"?"}${ct.urlJsonStr}`,frameborder:"0",width:"100%",height:"100%"},`\r
|
|
106
106
|
`,8,_hoisted_3$9)):vue.createCommentVNode("",!0)]),_:1},8,["wrapClassName","visible","bodyStyle","getContainer","onCancel"])}const CustomModal=_export_sfc$1(_sfc_main$B,[["render",_sfc_render$G],["__scopeId","data-v-2ef6cccf"]]);/**!
|
|
107
107
|
* Sortable 1.10.2
|
|
108
108
|
* @author RubaXa <trash@rubaxa.org>
|
|
109
109
|
* @author owenm <owen23355@gmail.com>
|
|
110
110
|
* @license MIT
|
|
111
|
-
*/function _typeof$2(ct){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function(Dn){return typeof Dn}:_typeof$2=function(Dn){return Dn&&typeof Symbol=="function"&&Dn.constructor===Symbol&&Dn!==Symbol.prototype?"symbol":typeof Dn},_typeof$2(ct)}function _defineProperty$1(ct,Dn,ur){return Dn in ct?Object.defineProperty(ct,Dn,{value:ur,enumerable:!0,configurable:!0,writable:!0}):ct[Dn]=ur,ct}function _extends(){return _extends=Object.assign||function(ct){for(var Dn=1;Dn<arguments.length;Dn++){var ur=arguments[Dn];for(var dr in ur)Object.prototype.hasOwnProperty.call(ur,dr)&&(ct[dr]=ur[dr])}return ct},_extends.apply(this,arguments)}function _objectSpread(ct){for(var Dn=1;Dn<arguments.length;Dn++){var ur=arguments[Dn]!=null?arguments[Dn]:{},dr=Object.keys(ur);typeof Object.getOwnPropertySymbols=="function"&&(dr=dr.concat(Object.getOwnPropertySymbols(ur).filter(function(fr){return Object.getOwnPropertyDescriptor(ur,fr).enumerable}))),dr.forEach(function(fr){_defineProperty$1(ct,fr,ur[fr])})}return ct}function _objectWithoutPropertiesLoose(ct,Dn){if(ct==null)return{};var ur={},dr=Object.keys(ct),fr,hr;for(hr=0;hr<dr.length;hr++)fr=dr[hr],!(Dn.indexOf(fr)>=0)&&(ur[fr]=ct[fr]);return ur}function _objectWithoutProperties(ct,Dn){if(ct==null)return{};var ur=_objectWithoutPropertiesLoose(ct,Dn),dr,fr;if(Object.getOwnPropertySymbols){var hr=Object.getOwnPropertySymbols(ct);for(fr=0;fr<hr.length;fr++)dr=hr[fr],!(Dn.indexOf(dr)>=0)&&Object.prototype.propertyIsEnumerable.call(ct,dr)&&(ur[dr]=ct[dr])}return ur}var version="1.10.2";function userAgent(ct){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(ct)}var IE11OrLess=userAgent(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Edge=userAgent(/Edge/i),FireFox=userAgent(/firefox/i),Safari=userAgent(/safari/i)&&!userAgent(/chrome/i)&&!userAgent(/android/i),IOS=userAgent(/iP(ad|od|hone)/i),ChromeForAndroid=userAgent(/chrome/i)&&userAgent(/android/i),captureMode={capture:!1,passive:!1};function on(ct,Dn,ur){ct.addEventListener(Dn,ur,!IE11OrLess&&captureMode)}function off(ct,Dn,ur){ct.removeEventListener(Dn,ur,!IE11OrLess&&captureMode)}function matches(ct,Dn){if(Dn){if(Dn[0]===">"&&(Dn=Dn.substring(1)),ct)try{if(ct.matches)return ct.matches(Dn);if(ct.msMatchesSelector)return ct.msMatchesSelector(Dn);if(ct.webkitMatchesSelector)return ct.webkitMatchesSelector(Dn)}catch{return!1}return!1}}function getParentOrHost(ct){return ct.host&&ct!==document&&ct.host.nodeType?ct.host:ct.parentNode}function closest(ct,Dn,ur,dr){if(ct){ur=ur||document;do{if(Dn!=null&&(Dn[0]===">"?ct.parentNode===ur&&matches(ct,Dn):matches(ct,Dn))||dr&&ct===ur)return ct;if(ct===ur)break}while(ct=getParentOrHost(ct))}return null}var R_SPACE=/\s+/g;function toggleClass(ct,Dn,ur){if(ct&&Dn)if(ct.classList)ct.classList[ur?"add":"remove"](Dn);else{var dr=(" "+ct.className+" ").replace(R_SPACE," ").replace(" "+Dn+" "," ");ct.className=(dr+(ur?" "+Dn:"")).replace(R_SPACE," ")}}function css(ct,Dn,ur){var dr=ct&&ct.style;if(dr){if(ur===void 0)return document.defaultView&&document.defaultView.getComputedStyle?ur=document.defaultView.getComputedStyle(ct,""):ct.currentStyle&&(ur=ct.currentStyle),Dn===void 0?ur:ur[Dn];!(Dn in dr)&&Dn.indexOf("webkit")===-1&&(Dn="-webkit-"+Dn),dr[Dn]=ur+(typeof ur=="string"?"":"px")}}function matrix(ct,Dn){var ur="";if(typeof ct=="string")ur=ct;else do{var dr=css(ct,"transform");dr&&dr!=="none"&&(ur=dr+" "+ur)}while(!Dn&&(ct=ct.parentNode));var fr=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return fr&&new fr(ur)}function find(ct,Dn,ur){if(ct){var dr=ct.getElementsByTagName(Dn),fr=0,hr=dr.length;if(ur)for(;fr<hr;fr++)ur(dr[fr],fr);return dr}return[]}function getWindowScrollingElement(){var ct=document.scrollingElement;return ct||document.documentElement}function getRect(ct,Dn,ur,dr,fr){if(!(!ct.getBoundingClientRect&&ct!==window)){var hr,vr,pr,mr,gr,yr,Cr;if(ct!==window&&ct!==getWindowScrollingElement()?(hr=ct.getBoundingClientRect(),vr=hr.top,pr=hr.left,mr=hr.bottom,gr=hr.right,yr=hr.height,Cr=hr.width):(vr=0,pr=0,mr=window.innerHeight,gr=window.innerWidth,yr=window.innerHeight,Cr=window.innerWidth),(Dn||ur)&&ct!==window&&(fr=fr||ct.parentNode,!IE11OrLess))do if(fr&&fr.getBoundingClientRect&&(css(fr,"transform")!=="none"||ur&&css(fr,"position")!=="static")){var br=fr.getBoundingClientRect();vr-=br.top+parseInt(css(fr,"border-top-width")),pr-=br.left+parseInt(css(fr,"border-left-width")),mr=vr+hr.height,gr=pr+hr.width;break}while(fr=fr.parentNode);if(dr&&ct!==window){var Ar=matrix(fr||ct),wr=Ar&&Ar.a,_r=Ar&&Ar.d;Ar&&(vr/=_r,pr/=wr,Cr/=wr,yr/=_r,mr=vr+yr,gr=pr+Cr)}return{top:vr,left:pr,bottom:mr,right:gr,width:Cr,height:yr}}}function isScrolledPast(ct,Dn,ur){for(var dr=getParentAutoScrollElement(ct,!0),fr=getRect(ct)[Dn];dr;){var hr=getRect(dr)[ur],vr=void 0;if(ur==="top"||ur==="left"?vr=fr>=hr:vr=fr<=hr,!vr)return dr;if(dr===getWindowScrollingElement())break;dr=getParentAutoScrollElement(dr,!1)}return!1}function getChild(ct,Dn,ur){for(var dr=0,fr=0,hr=ct.children;fr<hr.length;){if(hr[fr].style.display!=="none"&&hr[fr]!==Sortable.ghost&&hr[fr]!==Sortable.dragged&&closest(hr[fr],ur.draggable,ct,!1)){if(dr===Dn)return hr[fr];dr++}fr++}return null}function lastChild(ct,Dn){for(var ur=ct.lastElementChild;ur&&(ur===Sortable.ghost||css(ur,"display")==="none"||Dn&&!matches(ur,Dn));)ur=ur.previousElementSibling;return ur||null}function index$2(ct,Dn){var ur=0;if(!ct||!ct.parentNode)return-1;for(;ct=ct.previousElementSibling;)ct.nodeName.toUpperCase()!=="TEMPLATE"&&ct!==Sortable.clone&&(!Dn||matches(ct,Dn))&&ur++;return ur}function getRelativeScrollOffset(ct){var Dn=0,ur=0,dr=getWindowScrollingElement();if(ct)do{var fr=matrix(ct),hr=fr.a,vr=fr.d;Dn+=ct.scrollLeft*hr,ur+=ct.scrollTop*vr}while(ct!==dr&&(ct=ct.parentNode));return[Dn,ur]}function indexOfObject(ct,Dn){for(var ur in ct)if(ct.hasOwnProperty(ur)){for(var dr in Dn)if(Dn.hasOwnProperty(dr)&&Dn[dr]===ct[ur][dr])return Number(ur)}return-1}function getParentAutoScrollElement(ct,Dn){if(!ct||!ct.getBoundingClientRect)return getWindowScrollingElement();var ur=ct,dr=!1;do if(ur.clientWidth<ur.scrollWidth||ur.clientHeight<ur.scrollHeight){var fr=css(ur);if(ur.clientWidth<ur.scrollWidth&&(fr.overflowX=="auto"||fr.overflowX=="scroll")||ur.clientHeight<ur.scrollHeight&&(fr.overflowY=="auto"||fr.overflowY=="scroll")){if(!ur.getBoundingClientRect||ur===document.body)return getWindowScrollingElement();if(dr||Dn)return ur;dr=!0}}while(ur=ur.parentNode);return getWindowScrollingElement()}function extend$1(ct,Dn){if(ct&&Dn)for(var ur in Dn)Dn.hasOwnProperty(ur)&&(ct[ur]=Dn[ur]);return ct}function isRectEqual(ct,Dn){return Math.round(ct.top)===Math.round(Dn.top)&&Math.round(ct.left)===Math.round(Dn.left)&&Math.round(ct.height)===Math.round(Dn.height)&&Math.round(ct.width)===Math.round(Dn.width)}var _throttleTimeout;function throttle$1(ct,Dn){return function(){if(!_throttleTimeout){var ur=arguments,dr=this;ur.length===1?ct.call(dr,ur[0]):ct.apply(dr,ur),_throttleTimeout=setTimeout(function(){_throttleTimeout=void 0},Dn)}}}function cancelThrottle(){clearTimeout(_throttleTimeout),_throttleTimeout=void 0}function scrollBy(ct,Dn,ur){ct.scrollLeft+=Dn,ct.scrollTop+=ur}function clone(ct){var Dn=window.Polymer,ur=window.jQuery||window.Zepto;return Dn&&Dn.dom?Dn.dom(ct).cloneNode(!0):ur?ur(ct).clone(!0)[0]:ct.cloneNode(!0)}var expando="Sortable"+new Date().getTime();function AnimationStateManager(){var ct=[],Dn;return{captureAnimationState:function(){if(ct=[],!!this.options.animation){var dr=[].slice.call(this.el.children);dr.forEach(function(fr){if(!(css(fr,"display")==="none"||fr===Sortable.ghost)){ct.push({target:fr,rect:getRect(fr)});var hr=_objectSpread({},ct[ct.length-1].rect);if(fr.thisAnimationDuration){var vr=matrix(fr,!0);vr&&(hr.top-=vr.f,hr.left-=vr.e)}fr.fromRect=hr}})}},addAnimationState:function(dr){ct.push(dr)},removeAnimationState:function(dr){ct.splice(indexOfObject(ct,{target:dr}),1)},animateAll:function(dr){var fr=this;if(!this.options.animation){clearTimeout(Dn),typeof dr=="function"&&dr();return}var hr=!1,vr=0;ct.forEach(function(pr){var mr=0,gr=pr.target,yr=gr.fromRect,Cr=getRect(gr),br=gr.prevFromRect,Ar=gr.prevToRect,wr=pr.rect,_r=matrix(gr,!0);_r&&(Cr.top-=_r.f,Cr.left-=_r.e),gr.toRect=Cr,gr.thisAnimationDuration&&isRectEqual(br,Cr)&&!isRectEqual(yr,Cr)&&(wr.top-Cr.top)/(wr.left-Cr.left)===(yr.top-Cr.top)/(yr.left-Cr.left)&&(mr=calculateRealTime(wr,br,Ar,fr.options)),isRectEqual(Cr,yr)||(gr.prevFromRect=yr,gr.prevToRect=Cr,mr||(mr=fr.options.animation),fr.animate(gr,wr,Cr,mr)),mr&&(hr=!0,vr=Math.max(vr,mr),clearTimeout(gr.animationResetTimer),gr.animationResetTimer=setTimeout(function(){gr.animationTime=0,gr.prevFromRect=null,gr.fromRect=null,gr.prevToRect=null,gr.thisAnimationDuration=null},mr),gr.thisAnimationDuration=mr)}),clearTimeout(Dn),hr?Dn=setTimeout(function(){typeof dr=="function"&&dr()},vr):typeof dr=="function"&&dr(),ct=[]},animate:function(dr,fr,hr,vr){if(vr){css(dr,"transition",""),css(dr,"transform","");var pr=matrix(this.el),mr=pr&&pr.a,gr=pr&&pr.d,yr=(fr.left-hr.left)/(mr||1),Cr=(fr.top-hr.top)/(gr||1);dr.animatingX=!!yr,dr.animatingY=!!Cr,css(dr,"transform","translate3d("+yr+"px,"+Cr+"px,0)"),repaint(dr),css(dr,"transition","transform "+vr+"ms"+(this.options.easing?" "+this.options.easing:"")),css(dr,"transform","translate3d(0,0,0)"),typeof dr.animated=="number"&&clearTimeout(dr.animated),dr.animated=setTimeout(function(){css(dr,"transition",""),css(dr,"transform",""),dr.animated=!1,dr.animatingX=!1,dr.animatingY=!1},vr)}}}}function repaint(ct){return ct.offsetWidth}function calculateRealTime(ct,Dn,ur,dr){return Math.sqrt(Math.pow(Dn.top-ct.top,2)+Math.pow(Dn.left-ct.left,2))/Math.sqrt(Math.pow(Dn.top-ur.top,2)+Math.pow(Dn.left-ur.left,2))*dr.animation}var plugins=[],defaults$6={initializeByDefault:!0},PluginManager={mount:function(Dn){for(var ur in defaults$6)defaults$6.hasOwnProperty(ur)&&!(ur in Dn)&&(Dn[ur]=defaults$6[ur]);plugins.push(Dn)},pluginEvent:function(Dn,ur,dr){var fr=this;this.eventCanceled=!1,dr.cancel=function(){fr.eventCanceled=!0};var hr=Dn+"Global";plugins.forEach(function(vr){ur[vr.pluginName]&&(ur[vr.pluginName][hr]&&ur[vr.pluginName][hr](_objectSpread({sortable:ur},dr)),ur.options[vr.pluginName]&&ur[vr.pluginName][Dn]&&ur[vr.pluginName][Dn](_objectSpread({sortable:ur},dr)))})},initializePlugins:function(Dn,ur,dr,fr){plugins.forEach(function(pr){var mr=pr.pluginName;if(!(!Dn.options[mr]&&!pr.initializeByDefault)){var gr=new pr(Dn,ur,Dn.options);gr.sortable=Dn,gr.options=Dn.options,Dn[mr]=gr,_extends(dr,gr.defaults)}});for(var hr in Dn.options)if(Dn.options.hasOwnProperty(hr)){var vr=this.modifyOption(Dn,hr,Dn.options[hr]);typeof vr<"u"&&(Dn.options[hr]=vr)}},getEventProperties:function(Dn,ur){var dr={};return plugins.forEach(function(fr){typeof fr.eventProperties=="function"&&_extends(dr,fr.eventProperties.call(ur[fr.pluginName],Dn))}),dr},modifyOption:function(Dn,ur,dr){var fr;return plugins.forEach(function(hr){Dn[hr.pluginName]&&hr.optionListeners&&typeof hr.optionListeners[ur]=="function"&&(fr=hr.optionListeners[ur].call(Dn[hr.pluginName],dr))}),fr}};function dispatchEvent(ct){var Dn=ct.sortable,ur=ct.rootEl,dr=ct.name,fr=ct.targetEl,hr=ct.cloneEl,vr=ct.toEl,pr=ct.fromEl,mr=ct.oldIndex,gr=ct.newIndex,yr=ct.oldDraggableIndex,Cr=ct.newDraggableIndex,br=ct.originalEvent,Ar=ct.putSortable,wr=ct.extraEventProperties;if(Dn=Dn||ur&&ur[expando],!!Dn){var _r,Tr=Dn.options,Er="on"+dr.charAt(0).toUpperCase()+dr.substr(1);window.CustomEvent&&!IE11OrLess&&!Edge?_r=new CustomEvent(dr,{bubbles:!0,cancelable:!0}):(_r=document.createEvent("Event"),_r.initEvent(dr,!0,!0)),_r.to=vr||ur,_r.from=pr||ur,_r.item=fr||ur,_r.clone=hr,_r.oldIndex=mr,_r.newIndex=gr,_r.oldDraggableIndex=yr,_r.newDraggableIndex=Cr,_r.originalEvent=br,_r.pullMode=Ar?Ar.lastPutMode:void 0;var xr=_objectSpread({},wr,PluginManager.getEventProperties(dr,Dn));for(var Sr in xr)_r[Sr]=xr[Sr];ur&&ur.dispatchEvent(_r),Tr[Er]&&Tr[Er].call(Dn,_r)}}var pluginEvent=function(Dn,ur){var dr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},fr=dr.evt,hr=_objectWithoutProperties(dr,["evt"]);PluginManager.pluginEvent.bind(Sortable)(Dn,ur,_objectSpread({dragEl,parentEl,ghostEl,rootEl,nextEl,lastDownEl,cloneEl,cloneHidden,dragStarted:moved,putSortable,activeSortable:Sortable.active,originalEvent:fr,oldIndex,oldDraggableIndex,newIndex,newDraggableIndex,hideGhostForTarget:_hideGhostForTarget,unhideGhostForTarget:_unhideGhostForTarget,cloneNowHidden:function(){cloneHidden=!0},cloneNowShown:function(){cloneHidden=!1},dispatchSortableEvent:function(pr){_dispatchEvent({sortable:ur,name:pr,originalEvent:fr})}},hr))};function _dispatchEvent(ct){dispatchEvent(_objectSpread({putSortable,cloneEl,targetEl:dragEl,rootEl,oldIndex,oldDraggableIndex,newIndex,newDraggableIndex},ct))}var dragEl,parentEl,ghostEl,rootEl,nextEl,lastDownEl,cloneEl,cloneHidden,oldIndex,newIndex,oldDraggableIndex,newDraggableIndex,activeGroup,putSortable,awaitingDragStarted=!1,ignoreNextClick=!1,sortables=[],tapEvt,touchEvt,lastDx,lastDy,tapDistanceLeft,tapDistanceTop,moved,lastTarget,lastDirection,pastFirstInvertThresh=!1,isCircumstantialInvert=!1,targetMoveDistance,ghostRelativeParent,ghostRelativeParentInitialScroll=[],_silent=!1,savedInputChecked=[],documentExists=typeof document<"u",PositionGhostAbsolutely=IOS,CSSFloatProperty=Edge||IE11OrLess?"cssFloat":"float",supportDraggable=documentExists&&!ChromeForAndroid&&!IOS&&"draggable"in document.createElement("div"),supportCssPointerEvents=function(){if(documentExists){if(IE11OrLess)return!1;var ct=document.createElement("x");return ct.style.cssText="pointer-events:auto",ct.style.pointerEvents==="auto"}}(),_detectDirection=function(Dn,ur){var dr=css(Dn),fr=parseInt(dr.width)-parseInt(dr.paddingLeft)-parseInt(dr.paddingRight)-parseInt(dr.borderLeftWidth)-parseInt(dr.borderRightWidth),hr=getChild(Dn,0,ur),vr=getChild(Dn,1,ur),pr=hr&&css(hr),mr=vr&&css(vr),gr=pr&&parseInt(pr.marginLeft)+parseInt(pr.marginRight)+getRect(hr).width,yr=mr&&parseInt(mr.marginLeft)+parseInt(mr.marginRight)+getRect(vr).width;if(dr.display==="flex")return dr.flexDirection==="column"||dr.flexDirection==="column-reverse"?"vertical":"horizontal";if(dr.display==="grid")return dr.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(hr&&pr.float&&pr.float!=="none"){var Cr=pr.float==="left"?"left":"right";return vr&&(mr.clear==="both"||mr.clear===Cr)?"vertical":"horizontal"}return hr&&(pr.display==="block"||pr.display==="flex"||pr.display==="table"||pr.display==="grid"||gr>=fr&&dr[CSSFloatProperty]==="none"||vr&&dr[CSSFloatProperty]==="none"&&gr+yr>fr)?"vertical":"horizontal"},_dragElInRowColumn=function(Dn,ur,dr){var fr=dr?Dn.left:Dn.top,hr=dr?Dn.right:Dn.bottom,vr=dr?Dn.width:Dn.height,pr=dr?ur.left:ur.top,mr=dr?ur.right:ur.bottom,gr=dr?ur.width:ur.height;return fr===pr||hr===mr||fr+vr/2===pr+gr/2},_detectNearestEmptySortable=function(Dn,ur){var dr;return sortables.some(function(fr){if(!lastChild(fr)){var hr=getRect(fr),vr=fr[expando].options.emptyInsertThreshold,pr=Dn>=hr.left-vr&&Dn<=hr.right+vr,mr=ur>=hr.top-vr&&ur<=hr.bottom+vr;if(vr&&pr&&mr)return dr=fr}}),dr},_prepareGroup=function(Dn){function ur(hr,vr){return function(pr,mr,gr,yr){var Cr=pr.options.group.name&&mr.options.group.name&&pr.options.group.name===mr.options.group.name;if(hr==null&&(vr||Cr))return!0;if(hr==null||hr===!1)return!1;if(vr&&hr==="clone")return hr;if(typeof hr=="function")return ur(hr(pr,mr,gr,yr),vr)(pr,mr,gr,yr);var br=(vr?pr:mr).options.group.name;return hr===!0||typeof hr=="string"&&hr===br||hr.join&&hr.indexOf(br)>-1}}var dr={},fr=Dn.group;(!fr||_typeof$2(fr)!="object")&&(fr={name:fr}),dr.name=fr.name,dr.checkPull=ur(fr.pull,!0),dr.checkPut=ur(fr.put),dr.revertClone=fr.revertClone,Dn.group=dr},_hideGhostForTarget=function(){!supportCssPointerEvents&&ghostEl&&css(ghostEl,"display","none")},_unhideGhostForTarget=function(){!supportCssPointerEvents&&ghostEl&&css(ghostEl,"display","")};documentExists&&document.addEventListener("click",function(ct){if(ignoreNextClick)return ct.preventDefault(),ct.stopPropagation&&ct.stopPropagation(),ct.stopImmediatePropagation&&ct.stopImmediatePropagation(),ignoreNextClick=!1,!1},!0);var nearestEmptyInsertDetectEvent=function(Dn){if(dragEl){Dn=Dn.touches?Dn.touches[0]:Dn;var ur=_detectNearestEmptySortable(Dn.clientX,Dn.clientY);if(ur){var dr={};for(var fr in Dn)Dn.hasOwnProperty(fr)&&(dr[fr]=Dn[fr]);dr.target=dr.rootEl=ur,dr.preventDefault=void 0,dr.stopPropagation=void 0,ur[expando]._onDragOver(dr)}}},_checkOutsideTargetEl=function(Dn){dragEl&&dragEl.parentNode[expando]._isOutsideThisEl(Dn.target)};function Sortable(ct,Dn){if(!(ct&&ct.nodeType&&ct.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(ct));this.el=ct,this.options=Dn=_extends({},Dn),ct[expando]=this;var ur={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(ct.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return _detectDirection(ct,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(vr,pr){vr.setData("Text",pr.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Sortable.supportPointer!==!1&&"PointerEvent"in window,emptyInsertThreshold:5};PluginManager.initializePlugins(this,ct,ur);for(var dr in ur)!(dr in Dn)&&(Dn[dr]=ur[dr]);_prepareGroup(Dn);for(var fr in this)fr.charAt(0)==="_"&&typeof this[fr]=="function"&&(this[fr]=this[fr].bind(this));this.nativeDraggable=Dn.forceFallback?!1:supportDraggable,this.nativeDraggable&&(this.options.touchStartThreshold=1),Dn.supportPointer?on(ct,"pointerdown",this._onTapStart):(on(ct,"mousedown",this._onTapStart),on(ct,"touchstart",this._onTapStart)),this.nativeDraggable&&(on(ct,"dragover",this),on(ct,"dragenter",this)),sortables.push(this.el),Dn.store&&Dn.store.get&&this.sort(Dn.store.get(this)||[]),_extends(this,AnimationStateManager())}Sortable.prototype={constructor:Sortable,_isOutsideThisEl:function(Dn){!this.el.contains(Dn)&&Dn!==this.el&&(lastTarget=null)},_getDirection:function(Dn,ur){return typeof this.options.direction=="function"?this.options.direction.call(this,Dn,ur,dragEl):this.options.direction},_onTapStart:function(Dn){if(Dn.cancelable){var ur=this,dr=this.el,fr=this.options,hr=fr.preventOnFilter,vr=Dn.type,pr=Dn.touches&&Dn.touches[0]||Dn.pointerType&&Dn.pointerType==="touch"&&Dn,mr=(pr||Dn).target,gr=Dn.target.shadowRoot&&(Dn.path&&Dn.path[0]||Dn.composedPath&&Dn.composedPath()[0])||mr,yr=fr.filter;if(_saveInputCheckedState(dr),!dragEl&&!(/mousedown|pointerdown/.test(vr)&&Dn.button!==0||fr.disabled)&&!gr.isContentEditable&&(mr=closest(mr,fr.draggable,dr,!1),!(mr&&mr.animated)&&lastDownEl!==mr)){if(oldIndex=index$2(mr),oldDraggableIndex=index$2(mr,fr.draggable),typeof yr=="function"){if(yr.call(this,Dn,mr,this)){_dispatchEvent({sortable:ur,rootEl:gr,name:"filter",targetEl:mr,toEl:dr,fromEl:dr}),pluginEvent("filter",ur,{evt:Dn}),hr&&Dn.cancelable&&Dn.preventDefault();return}}else if(yr&&(yr=yr.split(",").some(function(Cr){if(Cr=closest(gr,Cr.trim(),dr,!1),Cr)return _dispatchEvent({sortable:ur,rootEl:Cr,name:"filter",targetEl:mr,fromEl:dr,toEl:dr}),pluginEvent("filter",ur,{evt:Dn}),!0}),yr)){hr&&Dn.cancelable&&Dn.preventDefault();return}fr.handle&&!closest(gr,fr.handle,dr,!1)||this._prepareDragStart(Dn,pr,mr)}}},_prepareDragStart:function(Dn,ur,dr){var fr=this,hr=fr.el,vr=fr.options,pr=hr.ownerDocument,mr;if(dr&&!dragEl&&dr.parentNode===hr){var gr=getRect(dr);if(rootEl=hr,dragEl=dr,parentEl=dragEl.parentNode,nextEl=dragEl.nextSibling,lastDownEl=dr,activeGroup=vr.group,Sortable.dragged=dragEl,tapEvt={target:dragEl,clientX:(ur||Dn).clientX,clientY:(ur||Dn).clientY},tapDistanceLeft=tapEvt.clientX-gr.left,tapDistanceTop=tapEvt.clientY-gr.top,this._lastX=(ur||Dn).clientX,this._lastY=(ur||Dn).clientY,dragEl.style["will-change"]="all",mr=function(){if(pluginEvent("delayEnded",fr,{evt:Dn}),Sortable.eventCanceled){fr._onDrop();return}fr._disableDelayedDragEvents(),!FireFox&&fr.nativeDraggable&&(dragEl.draggable=!0),fr._triggerDragStart(Dn,ur),_dispatchEvent({sortable:fr,name:"choose",originalEvent:Dn}),toggleClass(dragEl,vr.chosenClass,!0)},vr.ignore.split(",").forEach(function(yr){find(dragEl,yr.trim(),_disableDraggable)}),on(pr,"dragover",nearestEmptyInsertDetectEvent),on(pr,"mousemove",nearestEmptyInsertDetectEvent),on(pr,"touchmove",nearestEmptyInsertDetectEvent),on(pr,"mouseup",fr._onDrop),on(pr,"touchend",fr._onDrop),on(pr,"touchcancel",fr._onDrop),FireFox&&this.nativeDraggable&&(this.options.touchStartThreshold=4,dragEl.draggable=!0),pluginEvent("delayStart",this,{evt:Dn}),vr.delay&&(!vr.delayOnTouchOnly||ur)&&(!this.nativeDraggable||!(Edge||IE11OrLess))){if(Sortable.eventCanceled){this._onDrop();return}on(pr,"mouseup",fr._disableDelayedDrag),on(pr,"touchend",fr._disableDelayedDrag),on(pr,"touchcancel",fr._disableDelayedDrag),on(pr,"mousemove",fr._delayedDragTouchMoveHandler),on(pr,"touchmove",fr._delayedDragTouchMoveHandler),vr.supportPointer&&on(pr,"pointermove",fr._delayedDragTouchMoveHandler),fr._dragStartTimer=setTimeout(mr,vr.delay)}else mr()}},_delayedDragTouchMoveHandler:function(Dn){var ur=Dn.touches?Dn.touches[0]:Dn;Math.max(Math.abs(ur.clientX-this._lastX),Math.abs(ur.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){dragEl&&_disableDraggable(dragEl),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var Dn=this.el.ownerDocument;off(Dn,"mouseup",this._disableDelayedDrag),off(Dn,"touchend",this._disableDelayedDrag),off(Dn,"touchcancel",this._disableDelayedDrag),off(Dn,"mousemove",this._delayedDragTouchMoveHandler),off(Dn,"touchmove",this._delayedDragTouchMoveHandler),off(Dn,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(Dn,ur){ur=ur||Dn.pointerType=="touch"&&Dn,!this.nativeDraggable||ur?this.options.supportPointer?on(document,"pointermove",this._onTouchMove):ur?on(document,"touchmove",this._onTouchMove):on(document,"mousemove",this._onTouchMove):(on(dragEl,"dragend",this),on(rootEl,"dragstart",this._onDragStart));try{document.selection?_nextTick(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(Dn,ur){if(awaitingDragStarted=!1,rootEl&&dragEl){pluginEvent("dragStarted",this,{evt:ur}),this.nativeDraggable&&on(document,"dragover",_checkOutsideTargetEl);var dr=this.options;!Dn&&toggleClass(dragEl,dr.dragClass,!1),toggleClass(dragEl,dr.ghostClass,!0),Sortable.active=this,Dn&&this._appendGhost(),_dispatchEvent({sortable:this,name:"start",originalEvent:ur})}else this._nulling()},_emulateDragOver:function(){if(touchEvt){this._lastX=touchEvt.clientX,this._lastY=touchEvt.clientY,_hideGhostForTarget();for(var Dn=document.elementFromPoint(touchEvt.clientX,touchEvt.clientY),ur=Dn;Dn&&Dn.shadowRoot&&(Dn=Dn.shadowRoot.elementFromPoint(touchEvt.clientX,touchEvt.clientY),Dn!==ur);)ur=Dn;if(dragEl.parentNode[expando]._isOutsideThisEl(Dn),ur)do{if(ur[expando]){var dr=void 0;if(dr=ur[expando]._onDragOver({clientX:touchEvt.clientX,clientY:touchEvt.clientY,target:Dn,rootEl:ur}),dr&&!this.options.dragoverBubble)break}Dn=ur}while(ur=ur.parentNode);_unhideGhostForTarget()}},_onTouchMove:function(Dn){if(tapEvt){var ur=this.options,dr=ur.fallbackTolerance,fr=ur.fallbackOffset,hr=Dn.touches?Dn.touches[0]:Dn,vr=ghostEl&&matrix(ghostEl,!0),pr=ghostEl&&vr&&vr.a,mr=ghostEl&&vr&&vr.d,gr=PositionGhostAbsolutely&&ghostRelativeParent&&getRelativeScrollOffset(ghostRelativeParent),yr=(hr.clientX-tapEvt.clientX+fr.x)/(pr||1)+(gr?gr[0]-ghostRelativeParentInitialScroll[0]:0)/(pr||1),Cr=(hr.clientY-tapEvt.clientY+fr.y)/(mr||1)+(gr?gr[1]-ghostRelativeParentInitialScroll[1]:0)/(mr||1);if(!Sortable.active&&!awaitingDragStarted){if(dr&&Math.max(Math.abs(hr.clientX-this._lastX),Math.abs(hr.clientY-this._lastY))<dr)return;this._onDragStart(Dn,!0)}if(ghostEl){vr?(vr.e+=yr-(lastDx||0),vr.f+=Cr-(lastDy||0)):vr={a:1,b:0,c:0,d:1,e:yr,f:Cr};var br="matrix(".concat(vr.a,",").concat(vr.b,",").concat(vr.c,",").concat(vr.d,",").concat(vr.e,",").concat(vr.f,")");css(ghostEl,"webkitTransform",br),css(ghostEl,"mozTransform",br),css(ghostEl,"msTransform",br),css(ghostEl,"transform",br),lastDx=yr,lastDy=Cr,touchEvt=hr}Dn.cancelable&&Dn.preventDefault()}},_appendGhost:function(){if(!ghostEl){var Dn=this.options.fallbackOnBody?document.body:rootEl,ur=getRect(dragEl,!0,PositionGhostAbsolutely,!0,Dn),dr=this.options;if(PositionGhostAbsolutely){for(ghostRelativeParent=Dn;css(ghostRelativeParent,"position")==="static"&&css(ghostRelativeParent,"transform")==="none"&&ghostRelativeParent!==document;)ghostRelativeParent=ghostRelativeParent.parentNode;ghostRelativeParent!==document.body&&ghostRelativeParent!==document.documentElement?(ghostRelativeParent===document&&(ghostRelativeParent=getWindowScrollingElement()),ur.top+=ghostRelativeParent.scrollTop,ur.left+=ghostRelativeParent.scrollLeft):ghostRelativeParent=getWindowScrollingElement(),ghostRelativeParentInitialScroll=getRelativeScrollOffset(ghostRelativeParent)}ghostEl=dragEl.cloneNode(!0),toggleClass(ghostEl,dr.ghostClass,!1),toggleClass(ghostEl,dr.fallbackClass,!0),toggleClass(ghostEl,dr.dragClass,!0),css(ghostEl,"transition",""),css(ghostEl,"transform",""),css(ghostEl,"box-sizing","border-box"),css(ghostEl,"margin",0),css(ghostEl,"top",ur.top),css(ghostEl,"left",ur.left),css(ghostEl,"width",ur.width),css(ghostEl,"height",ur.height),css(ghostEl,"opacity","0.8"),css(ghostEl,"position",PositionGhostAbsolutely?"absolute":"fixed"),css(ghostEl,"zIndex","100000"),css(ghostEl,"pointerEvents","none"),Sortable.ghost=ghostEl,Dn.appendChild(ghostEl),css(ghostEl,"transform-origin",tapDistanceLeft/parseInt(ghostEl.style.width)*100+"% "+tapDistanceTop/parseInt(ghostEl.style.height)*100+"%")}},_onDragStart:function(Dn,ur){var dr=this,fr=Dn.dataTransfer,hr=dr.options;if(pluginEvent("dragStart",this,{evt:Dn}),Sortable.eventCanceled){this._onDrop();return}pluginEvent("setupClone",this),Sortable.eventCanceled||(cloneEl=clone(dragEl),cloneEl.draggable=!1,cloneEl.style["will-change"]="",this._hideClone(),toggleClass(cloneEl,this.options.chosenClass,!1),Sortable.clone=cloneEl),dr.cloneId=_nextTick(function(){pluginEvent("clone",dr),!Sortable.eventCanceled&&(dr.options.removeCloneOnHide||rootEl.insertBefore(cloneEl,dragEl),dr._hideClone(),_dispatchEvent({sortable:dr,name:"clone"}))}),!ur&&toggleClass(dragEl,hr.dragClass,!0),ur?(ignoreNextClick=!0,dr._loopId=setInterval(dr._emulateDragOver,50)):(off(document,"mouseup",dr._onDrop),off(document,"touchend",dr._onDrop),off(document,"touchcancel",dr._onDrop),fr&&(fr.effectAllowed="move",hr.setData&&hr.setData.call(dr,fr,dragEl)),on(document,"drop",dr),css(dragEl,"transform","translateZ(0)")),awaitingDragStarted=!0,dr._dragStartId=_nextTick(dr._dragStarted.bind(dr,ur,Dn)),on(document,"selectstart",dr),moved=!0,Safari&&css(document.body,"user-select","none")},_onDragOver:function(Dn){var ur=this.el,dr=Dn.target,fr,hr,vr,pr=this.options,mr=pr.group,gr=Sortable.active,yr=activeGroup===mr,Cr=pr.sort,br=putSortable||gr,Ar,wr=this,_r=!1;if(_silent)return;function Tr(Lr,Fr){pluginEvent(Lr,wr,_objectSpread({evt:Dn,isOwner:yr,axis:Ar?"vertical":"horizontal",revert:vr,dragRect:fr,targetRect:hr,canSort:Cr,fromSortable:br,target:dr,completed:xr,onMove:function(Gr,Rr){return _onMove(rootEl,ur,dragEl,fr,Gr,getRect(Gr),Dn,Rr)},changed:Sr},Fr))}function Er(){Tr("dragOverAnimationCapture"),wr.captureAnimationState(),wr!==br&&br.captureAnimationState()}function xr(Lr){return Tr("dragOverCompleted",{insertion:Lr}),Lr&&(yr?gr._hideClone():gr._showClone(wr),wr!==br&&(toggleClass(dragEl,putSortable?putSortable.options.ghostClass:gr.options.ghostClass,!1),toggleClass(dragEl,pr.ghostClass,!0)),putSortable!==wr&&wr!==Sortable.active?putSortable=wr:wr===Sortable.active&&putSortable&&(putSortable=null),br===wr&&(wr._ignoreWhileAnimating=dr),wr.animateAll(function(){Tr("dragOverAnimationComplete"),wr._ignoreWhileAnimating=null}),wr!==br&&(br.animateAll(),br._ignoreWhileAnimating=null)),(dr===dragEl&&!dragEl.animated||dr===ur&&!dr.animated)&&(lastTarget=null),!pr.dragoverBubble&&!Dn.rootEl&&dr!==document&&(dragEl.parentNode[expando]._isOutsideThisEl(Dn.target),!Lr&&nearestEmptyInsertDetectEvent(Dn)),!pr.dragoverBubble&&Dn.stopPropagation&&Dn.stopPropagation(),_r=!0}function Sr(){newIndex=index$2(dragEl),newDraggableIndex=index$2(dragEl,pr.draggable),_dispatchEvent({sortable:wr,name:"change",toEl:ur,newIndex,newDraggableIndex,originalEvent:Dn})}if(Dn.preventDefault!==void 0&&Dn.cancelable&&Dn.preventDefault(),dr=closest(dr,pr.draggable,ur,!0),Tr("dragOver"),Sortable.eventCanceled)return _r;if(dragEl.contains(Dn.target)||dr.animated&&dr.animatingX&&dr.animatingY||wr._ignoreWhileAnimating===dr)return xr(!1);if(ignoreNextClick=!1,gr&&!pr.disabled&&(yr?Cr||(vr=!rootEl.contains(dragEl)):putSortable===this||(this.lastPutMode=activeGroup.checkPull(this,gr,dragEl,Dn))&&mr.checkPut(this,gr,dragEl,Dn))){if(Ar=this._getDirection(Dn,dr)==="vertical",fr=getRect(dragEl),Tr("dragOverValid"),Sortable.eventCanceled)return _r;if(vr)return parentEl=rootEl,Er(),this._hideClone(),Tr("revert"),Sortable.eventCanceled||(nextEl?rootEl.insertBefore(dragEl,nextEl):rootEl.appendChild(dragEl)),xr(!0);var kr=lastChild(ur,pr.draggable);if(!kr||_ghostIsLast(Dn,Ar,this)&&!kr.animated){if(kr===dragEl)return xr(!1);if(kr&&ur===Dn.target&&(dr=kr),dr&&(hr=getRect(dr)),_onMove(rootEl,ur,dragEl,fr,dr,hr,Dn,!!dr)!==!1)return Er(),ur.appendChild(dragEl),parentEl=ur,Sr(),xr(!0)}else if(dr.parentNode===ur){hr=getRect(dr);var Pr=0,Ir,Br=dragEl.parentNode!==ur,Or=!_dragElInRowColumn(dragEl.animated&&dragEl.toRect||fr,dr.animated&&dr.toRect||hr,Ar),Nr=Ar?"top":"left",jr=isScrolledPast(dr,"top","top")||isScrolledPast(dragEl,"top","top"),Vr=jr?jr.scrollTop:void 0;lastTarget!==dr&&(Ir=hr[Nr],pastFirstInvertThresh=!1,isCircumstantialInvert=!Or&&pr.invertSwap||Br),Pr=_getSwapDirection(Dn,dr,hr,Ar,Or?1:pr.swapThreshold,pr.invertedSwapThreshold==null?pr.swapThreshold:pr.invertedSwapThreshold,isCircumstantialInvert,lastTarget===dr);var $r;if(Pr!==0){var zr=index$2(dragEl);do zr-=Pr,$r=parentEl.children[zr];while($r&&(css($r,"display")==="none"||$r===ghostEl))}if(Pr===0||$r===dr)return xr(!1);lastTarget=dr,lastDirection=Pr;var Wr=dr.nextElementSibling,qr=!1;qr=Pr===1;var Mr=_onMove(rootEl,ur,dragEl,fr,dr,hr,Dn,qr);if(Mr!==!1)return(Mr===1||Mr===-1)&&(qr=Mr===1),_silent=!0,setTimeout(_unsilent,30),Er(),qr&&!Wr?ur.appendChild(dragEl):dr.parentNode.insertBefore(dragEl,qr?Wr:dr),jr&&scrollBy(jr,0,Vr-jr.scrollTop),parentEl=dragEl.parentNode,Ir!==void 0&&!isCircumstantialInvert&&(targetMoveDistance=Math.abs(Ir-getRect(dr)[Nr])),Sr(),xr(!0)}if(ur.contains(dragEl))return xr(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){off(document,"mousemove",this._onTouchMove),off(document,"touchmove",this._onTouchMove),off(document,"pointermove",this._onTouchMove),off(document,"dragover",nearestEmptyInsertDetectEvent),off(document,"mousemove",nearestEmptyInsertDetectEvent),off(document,"touchmove",nearestEmptyInsertDetectEvent)},_offUpEvents:function(){var Dn=this.el.ownerDocument;off(Dn,"mouseup",this._onDrop),off(Dn,"touchend",this._onDrop),off(Dn,"pointerup",this._onDrop),off(Dn,"touchcancel",this._onDrop),off(document,"selectstart",this)},_onDrop:function(Dn){var ur=this.el,dr=this.options;if(newIndex=index$2(dragEl),newDraggableIndex=index$2(dragEl,dr.draggable),pluginEvent("drop",this,{evt:Dn}),parentEl=dragEl&&dragEl.parentNode,newIndex=index$2(dragEl),newDraggableIndex=index$2(dragEl,dr.draggable),Sortable.eventCanceled){this._nulling();return}awaitingDragStarted=!1,isCircumstantialInvert=!1,pastFirstInvertThresh=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),_cancelNextTick(this.cloneId),_cancelNextTick(this._dragStartId),this.nativeDraggable&&(off(document,"drop",this),off(ur,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Safari&&css(document.body,"user-select",""),css(dragEl,"transform",""),Dn&&(moved&&(Dn.cancelable&&Dn.preventDefault(),!dr.dropBubble&&Dn.stopPropagation()),ghostEl&&ghostEl.parentNode&&ghostEl.parentNode.removeChild(ghostEl),(rootEl===parentEl||putSortable&&putSortable.lastPutMode!=="clone")&&cloneEl&&cloneEl.parentNode&&cloneEl.parentNode.removeChild(cloneEl),dragEl&&(this.nativeDraggable&&off(dragEl,"dragend",this),_disableDraggable(dragEl),dragEl.style["will-change"]="",moved&&!awaitingDragStarted&&toggleClass(dragEl,putSortable?putSortable.options.ghostClass:this.options.ghostClass,!1),toggleClass(dragEl,this.options.chosenClass,!1),_dispatchEvent({sortable:this,name:"unchoose",toEl:parentEl,newIndex:null,newDraggableIndex:null,originalEvent:Dn}),rootEl!==parentEl?(newIndex>=0&&(_dispatchEvent({rootEl:parentEl,name:"add",toEl:parentEl,fromEl:rootEl,originalEvent:Dn}),_dispatchEvent({sortable:this,name:"remove",toEl:parentEl,originalEvent:Dn}),_dispatchEvent({rootEl:parentEl,name:"sort",toEl:parentEl,fromEl:rootEl,originalEvent:Dn}),_dispatchEvent({sortable:this,name:"sort",toEl:parentEl,originalEvent:Dn})),putSortable&&putSortable.save()):newIndex!==oldIndex&&newIndex>=0&&(_dispatchEvent({sortable:this,name:"update",toEl:parentEl,originalEvent:Dn}),_dispatchEvent({sortable:this,name:"sort",toEl:parentEl,originalEvent:Dn})),Sortable.active&&((newIndex==null||newIndex===-1)&&(newIndex=oldIndex,newDraggableIndex=oldDraggableIndex),_dispatchEvent({sortable:this,name:"end",toEl:parentEl,originalEvent:Dn}),this.save()))),this._nulling()},_nulling:function(){pluginEvent("nulling",this),rootEl=dragEl=parentEl=ghostEl=nextEl=cloneEl=lastDownEl=cloneHidden=tapEvt=touchEvt=moved=newIndex=newDraggableIndex=oldIndex=oldDraggableIndex=lastTarget=lastDirection=putSortable=activeGroup=Sortable.dragged=Sortable.ghost=Sortable.clone=Sortable.active=null,savedInputChecked.forEach(function(Dn){Dn.checked=!0}),savedInputChecked.length=lastDx=lastDy=0},handleEvent:function(Dn){switch(Dn.type){case"drop":case"dragend":this._onDrop(Dn);break;case"dragenter":case"dragover":dragEl&&(this._onDragOver(Dn),_globalDragOver(Dn));break;case"selectstart":Dn.preventDefault();break}},toArray:function(){for(var Dn=[],ur,dr=this.el.children,fr=0,hr=dr.length,vr=this.options;fr<hr;fr++)ur=dr[fr],closest(ur,vr.draggable,this.el,!1)&&Dn.push(ur.getAttribute(vr.dataIdAttr)||_generateId(ur));return Dn},sort:function(Dn){var ur={},dr=this.el;this.toArray().forEach(function(fr,hr){var vr=dr.children[hr];closest(vr,this.options.draggable,dr,!1)&&(ur[fr]=vr)},this),Dn.forEach(function(fr){ur[fr]&&(dr.removeChild(ur[fr]),dr.appendChild(ur[fr]))})},save:function(){var Dn=this.options.store;Dn&&Dn.set&&Dn.set(this)},closest:function(Dn,ur){return closest(Dn,ur||this.options.draggable,this.el,!1)},option:function(Dn,ur){var dr=this.options;if(ur===void 0)return dr[Dn];var fr=PluginManager.modifyOption(this,Dn,ur);typeof fr<"u"?dr[Dn]=fr:dr[Dn]=ur,Dn==="group"&&_prepareGroup(dr)},destroy:function(){pluginEvent("destroy",this);var Dn=this.el;Dn[expando]=null,off(Dn,"mousedown",this._onTapStart),off(Dn,"touchstart",this._onTapStart),off(Dn,"pointerdown",this._onTapStart),this.nativeDraggable&&(off(Dn,"dragover",this),off(Dn,"dragenter",this)),Array.prototype.forEach.call(Dn.querySelectorAll("[draggable]"),function(ur){ur.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),sortables.splice(sortables.indexOf(this.el),1),this.el=Dn=null},_hideClone:function(){if(!cloneHidden){if(pluginEvent("hideClone",this),Sortable.eventCanceled)return;css(cloneEl,"display","none"),this.options.removeCloneOnHide&&cloneEl.parentNode&&cloneEl.parentNode.removeChild(cloneEl),cloneHidden=!0}},_showClone:function(Dn){if(Dn.lastPutMode!=="clone"){this._hideClone();return}if(cloneHidden){if(pluginEvent("showClone",this),Sortable.eventCanceled)return;rootEl.contains(dragEl)&&!this.options.group.revertClone?rootEl.insertBefore(cloneEl,dragEl):nextEl?rootEl.insertBefore(cloneEl,nextEl):rootEl.appendChild(cloneEl),this.options.group.revertClone&&this.animate(dragEl,cloneEl),css(cloneEl,"display",""),cloneHidden=!1}}};function _globalDragOver(ct){ct.dataTransfer&&(ct.dataTransfer.dropEffect="move"),ct.cancelable&&ct.preventDefault()}function _onMove(ct,Dn,ur,dr,fr,hr,vr,pr){var mr,gr=ct[expando],yr=gr.options.onMove,Cr;return window.CustomEvent&&!IE11OrLess&&!Edge?mr=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(mr=document.createEvent("Event"),mr.initEvent("move",!0,!0)),mr.to=Dn,mr.from=ct,mr.dragged=ur,mr.draggedRect=dr,mr.related=fr||Dn,mr.relatedRect=hr||getRect(Dn),mr.willInsertAfter=pr,mr.originalEvent=vr,ct.dispatchEvent(mr),yr&&(Cr=yr.call(gr,mr,vr)),Cr}function _disableDraggable(ct){ct.draggable=!1}function _unsilent(){_silent=!1}function _ghostIsLast(ct,Dn,ur){var dr=getRect(lastChild(ur.el,ur.options.draggable)),fr=10;return Dn?ct.clientX>dr.right+fr||ct.clientX<=dr.right&&ct.clientY>dr.bottom&&ct.clientX>=dr.left:ct.clientX>dr.right&&ct.clientY>dr.top||ct.clientX<=dr.right&&ct.clientY>dr.bottom+fr}function _getSwapDirection(ct,Dn,ur,dr,fr,hr,vr,pr){var mr=dr?ct.clientY:ct.clientX,gr=dr?ur.height:ur.width,yr=dr?ur.top:ur.left,Cr=dr?ur.bottom:ur.right,br=!1;if(!vr){if(pr&&targetMoveDistance<gr*fr){if(!pastFirstInvertThresh&&(lastDirection===1?mr>yr+gr*hr/2:mr<Cr-gr*hr/2)&&(pastFirstInvertThresh=!0),pastFirstInvertThresh)br=!0;else if(lastDirection===1?mr<yr+targetMoveDistance:mr>Cr-targetMoveDistance)return-lastDirection}else if(mr>yr+gr*(1-fr)/2&&mr<Cr-gr*(1-fr)/2)return _getInsertDirection(Dn)}return br=br||vr,br&&(mr<yr+gr*hr/2||mr>Cr-gr*hr/2)?mr>yr+gr/2?1:-1:0}function _getInsertDirection(ct){return index$2(dragEl)<index$2(ct)?1:-1}function _generateId(ct){for(var Dn=ct.tagName+ct.className+ct.src+ct.href+ct.textContent,ur=Dn.length,dr=0;ur--;)dr+=Dn.charCodeAt(ur);return dr.toString(36)}function _saveInputCheckedState(ct){savedInputChecked.length=0;for(var Dn=ct.getElementsByTagName("input"),ur=Dn.length;ur--;){var dr=Dn[ur];dr.checked&&savedInputChecked.push(dr)}}function _nextTick(ct){return setTimeout(ct,0)}function _cancelNextTick(ct){return clearTimeout(ct)}documentExists&&on(document,"touchmove",function(ct){(Sortable.active||awaitingDragStarted)&&ct.cancelable&&ct.preventDefault()}),Sortable.utils={on,off,css,find,is:function(Dn,ur){return!!closest(Dn,ur,Dn,!1)},extend:extend$1,throttle:throttle$1,closest,toggleClass,clone,index:index$2,nextTick:_nextTick,cancelNextTick:_cancelNextTick,detectDirection:_detectDirection,getChild},Sortable.get=function(ct){return ct[expando]},Sortable.mount=function(){for(var ct=arguments.length,Dn=new Array(ct),ur=0;ur<ct;ur++)Dn[ur]=arguments[ur];Dn[0].constructor===Array&&(Dn=Dn[0]),Dn.forEach(function(dr){if(!dr.prototype||!dr.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(dr));dr.utils&&(Sortable.utils=_objectSpread({},Sortable.utils,dr.utils)),PluginManager.mount(dr)})},Sortable.create=function(ct,Dn){return new Sortable(ct,Dn)},Sortable.version=version;var autoScrolls=[],scrollEl,scrollRootEl,scrolling=!1,lastAutoScrollX,lastAutoScrollY,touchEvt$1,pointerElemChangedInterval;function AutoScrollPlugin(){function ct(){this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var Dn in this)Dn.charAt(0)==="_"&&typeof this[Dn]=="function"&&(this[Dn]=this[Dn].bind(this))}return ct.prototype={dragStarted:function(ur){var dr=ur.originalEvent;this.sortable.nativeDraggable?on(document,"dragover",this._handleAutoScroll):this.options.supportPointer?on(document,"pointermove",this._handleFallbackAutoScroll):dr.touches?on(document,"touchmove",this._handleFallbackAutoScroll):on(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(ur){var dr=ur.originalEvent;!this.options.dragOverBubble&&!dr.rootEl&&this._handleAutoScroll(dr)},drop:function(){this.sortable.nativeDraggable?off(document,"dragover",this._handleAutoScroll):(off(document,"pointermove",this._handleFallbackAutoScroll),off(document,"touchmove",this._handleFallbackAutoScroll),off(document,"mousemove",this._handleFallbackAutoScroll)),clearPointerElemChangedInterval(),clearAutoScrolls(),cancelThrottle()},nulling:function(){touchEvt$1=scrollRootEl=scrollEl=scrolling=pointerElemChangedInterval=lastAutoScrollX=lastAutoScrollY=null,autoScrolls.length=0},_handleFallbackAutoScroll:function(ur){this._handleAutoScroll(ur,!0)},_handleAutoScroll:function(ur,dr){var fr=this,hr=(ur.touches?ur.touches[0]:ur).clientX,vr=(ur.touches?ur.touches[0]:ur).clientY,pr=document.elementFromPoint(hr,vr);if(touchEvt$1=ur,dr||Edge||IE11OrLess||Safari){autoScroll(ur,this.options,pr,dr);var mr=getParentAutoScrollElement(pr,!0);scrolling&&(!pointerElemChangedInterval||hr!==lastAutoScrollX||vr!==lastAutoScrollY)&&(pointerElemChangedInterval&&clearPointerElemChangedInterval(),pointerElemChangedInterval=setInterval(function(){var gr=getParentAutoScrollElement(document.elementFromPoint(hr,vr),!0);gr!==mr&&(mr=gr,clearAutoScrolls()),autoScroll(ur,fr.options,gr,dr)},10),lastAutoScrollX=hr,lastAutoScrollY=vr)}else{if(!this.options.bubbleScroll||getParentAutoScrollElement(pr,!0)===getWindowScrollingElement()){clearAutoScrolls();return}autoScroll(ur,this.options,getParentAutoScrollElement(pr,!1),!1)}}},_extends(ct,{pluginName:"scroll",initializeByDefault:!0})}function clearAutoScrolls(){autoScrolls.forEach(function(ct){clearInterval(ct.pid)}),autoScrolls=[]}function clearPointerElemChangedInterval(){clearInterval(pointerElemChangedInterval)}var autoScroll=throttle$1(function(ct,Dn,ur,dr){if(Dn.scroll){var fr=(ct.touches?ct.touches[0]:ct).clientX,hr=(ct.touches?ct.touches[0]:ct).clientY,vr=Dn.scrollSensitivity,pr=Dn.scrollSpeed,mr=getWindowScrollingElement(),gr=!1,yr;scrollRootEl!==ur&&(scrollRootEl=ur,clearAutoScrolls(),scrollEl=Dn.scroll,yr=Dn.scrollFn,scrollEl===!0&&(scrollEl=getParentAutoScrollElement(ur,!0)));var Cr=0,br=scrollEl;do{var Ar=br,wr=getRect(Ar),_r=wr.top,Tr=wr.bottom,Er=wr.left,xr=wr.right,Sr=wr.width,kr=wr.height,Pr=void 0,Ir=void 0,Br=Ar.scrollWidth,Or=Ar.scrollHeight,Nr=css(Ar),jr=Ar.scrollLeft,Vr=Ar.scrollTop;Ar===mr?(Pr=Sr<Br&&(Nr.overflowX==="auto"||Nr.overflowX==="scroll"||Nr.overflowX==="visible"),Ir=kr<Or&&(Nr.overflowY==="auto"||Nr.overflowY==="scroll"||Nr.overflowY==="visible")):(Pr=Sr<Br&&(Nr.overflowX==="auto"||Nr.overflowX==="scroll"),Ir=kr<Or&&(Nr.overflowY==="auto"||Nr.overflowY==="scroll"));var $r=Pr&&(Math.abs(xr-fr)<=vr&&jr+Sr<Br)-(Math.abs(Er-fr)<=vr&&!!jr),zr=Ir&&(Math.abs(Tr-hr)<=vr&&Vr+kr<Or)-(Math.abs(_r-hr)<=vr&&!!Vr);if(!autoScrolls[Cr])for(var Wr=0;Wr<=Cr;Wr++)autoScrolls[Wr]||(autoScrolls[Wr]={});(autoScrolls[Cr].vx!=$r||autoScrolls[Cr].vy!=zr||autoScrolls[Cr].el!==Ar)&&(autoScrolls[Cr].el=Ar,autoScrolls[Cr].vx=$r,autoScrolls[Cr].vy=zr,clearInterval(autoScrolls[Cr].pid),($r!=0||zr!=0)&&(gr=!0,autoScrolls[Cr].pid=setInterval((function(){dr&&this.layer===0&&Sortable.active._onTouchMove(touchEvt$1);var qr=autoScrolls[this.layer].vy?autoScrolls[this.layer].vy*pr:0,Mr=autoScrolls[this.layer].vx?autoScrolls[this.layer].vx*pr:0;typeof yr=="function"&&yr.call(Sortable.dragged.parentNode[expando],Mr,qr,ct,touchEvt$1,autoScrolls[this.layer].el)!=="continue"||scrollBy(autoScrolls[this.layer].el,Mr,qr)}).bind({layer:Cr}),24))),Cr++}while(Dn.bubbleScroll&&br!==mr&&(br=getParentAutoScrollElement(br,!1)));scrolling=gr}},30),drop=function(Dn){var ur=Dn.originalEvent,dr=Dn.putSortable,fr=Dn.dragEl,hr=Dn.activeSortable,vr=Dn.dispatchSortableEvent,pr=Dn.hideGhostForTarget,mr=Dn.unhideGhostForTarget;if(ur){var gr=dr||hr;pr();var yr=ur.changedTouches&&ur.changedTouches.length?ur.changedTouches[0]:ur,Cr=document.elementFromPoint(yr.clientX,yr.clientY);mr(),gr&&!gr.el.contains(Cr)&&(vr("spill"),this.onSpill({dragEl:fr,putSortable:dr}))}};function Revert(){}Revert.prototype={startIndex:null,dragStart:function(Dn){var ur=Dn.oldDraggableIndex;this.startIndex=ur},onSpill:function(Dn){var ur=Dn.dragEl,dr=Dn.putSortable;this.sortable.captureAnimationState(),dr&&dr.captureAnimationState();var fr=getChild(this.sortable.el,this.startIndex,this.options);fr?this.sortable.el.insertBefore(ur,fr):this.sortable.el.appendChild(ur),this.sortable.animateAll(),dr&&dr.animateAll()},drop},_extends(Revert,{pluginName:"revertOnSpill"});function Remove(){}Remove.prototype={onSpill:function(Dn){var ur=Dn.dragEl,dr=Dn.putSortable,fr=dr||this.sortable;fr.captureAnimationState(),ur.parentNode&&ur.parentNode.removeChild(ur),fr.animateAll()},drop},_extends(Remove,{pluginName:"removeOnSpill"}),Sortable.mount(new AutoScrollPlugin),Sortable.mount(Remove,Revert);const LastDetail_vue_vue_type_style_index_0_scoped_81782539_lang="",LastDetail_vue_vue_type_style_index_1_lang="";dayjs.locale("zh-cn");const _sfc_main$A=vue.defineComponent({name:"LastDetail",components:{ATable:antDesignVue.Table,ATableSummary:antDesignVue.TableSummary,ATableSummaryRow:antDesignVue.TableSummaryRow,ATableSummaryCell:antDesignVue.TableSummaryCell,APagination:antDesignVue.Pagination,AButton:antDesignVue.Button,BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1,CloseOutlined:CloseOutlined$1,CustomModal},props:{theme:{type:String,default:"light"},theDateInfo:{type:Object,default:()=>({})},scaleValue:{type:Object,default:()=>({})},fontSize:{type:Number,default:16},allDimensions:{type:Array,default:()=>[]},isOutDrill:{type:Boolean,default:!1}},setup(ct,{emit:Dn,expose:ur}){const dr="-",fr=window.screen.height*.6,hr=`dtmodal_${nanoid(6)}`,vr=vue.ref(!1),pr=vue.ref(!0),mr=vue.ref(!1),gr=vue.ref(!1),yr=vue.ref(!1),Cr=vue.ref(!1),br=vue.ref([]),Ar=vue.ref([]),wr=vue.ref({x:"max-content"}),_r=vue.ref(),Tr=vue.ref(),Er=vue.reactive({current:1,pageSize:20,total:0,showSizeChanger:!1,showQuickJumper:!1,showLessItems:!0,showTotal:bi=>`共 ${bi} 条数据`}),xr=vue.ref(""),Sr=vue.ref(""),kr=vue.ref(),Pr=vue.ref({}),Ir=vue.ref({}),Br=vue.ref(!1),Or=vue.ref([]),Nr=vue.ref(50),jr=vue.inject("isMobile",!1),Vr=vue.inject("componentList",[]),{getAllGlobalModel:$r}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),zr=vue.computed(()=>INDICATOR_URL),Wr=vue.computed(()=>vue.unref(jr)?"16px":ct.fontSize+"px"),qr=()=>document.querySelector("#modalContainer")||document.body,Mr=bi=>{const pi=document.querySelector(`.${hr} .ant-modal-header`);if(pi)if(bi)pi.addEventListener("mousedown",Fr);else{const mi=pi.parentElement;mi&&(mi.style.left="",mi.style.top=""),pi.removeEventListener("mousedown",Fr)}},Lr=bi=>{const pi=document.querySelector(`.${hr} .ant-modal-header`);pi&&(bi?pi.addEventListener("dblclick",Dr):pi.removeEventListener("dblclick",Dr))},Fr=bi=>{dragModalAction(bi,`.${hr} .ant-modal-header`)},Dr=()=>{if(ct.isOutDrill){Dn("zoom");return}pr.value=!pr.value,vue.nextTick(()=>{pr.value?Mr(!1):Mr(!0),Rr()})},Gr=()=>{Lr(!1),Mr(!1),Dn("close")},Rr=()=>{var bi;(bi=vue.unref(Ar))!=null&&bi.length?setTimeout(()=>{var xi;const pi=vue.unref(_r),mi=pi==null?void 0:pi.querySelector(".last-detail-table .ant-table-thead");if(mi!=null&&mi.clientHeight){let ni=fr;if(vue.unref(pr)){const ai=document.querySelector(`.${hr} .ant-modal-content`);ai&&(ni=ai.clientHeight-((xi=ai.querySelector(".ant-modal-header"))==null?void 0:xi.clientHeight)-24)}if(!isNaN(ni)){let ai=ni-mi.clientHeight-60;const Xr=pi==null?void 0:pi.querySelector(".last-detail-table .ant-table-summary");Xr&&(ai-=Xr.clientHeight);const vi=pi==null?void 0:pi.querySelector(".last-detail-table .ant-table-tbody");vi&&vi.clientHeight>ai+4?vue.unref(wr).y=ai+"px":delete vue.unref(wr).y}}yr.value=!0},200):(wr.value={},yr.value=!0)},Qr=()=>{var bi;(bi=vue.unref(Ar))!=null&&bi.length&&setTimeout(()=>{var pi;Sortable.create((pi=vue.unref(_r))==null?void 0:pi.querySelector(".last-detail-table .ant-table-thead > tr"),{handle:"th.ant-table-cell",onEnd:({newIndex:mi,oldIndex:xi})=>{mi!==xi&&swapArrItem(vue.unref(br),mi,xi)}})},200)},Kr=async()=>{var pi,mi,xi,ni;Br.value=!0;const bi=((pi=window==null?void 0:window.config)==null?void 0:pi.indicatorToken)||"";try{const{param:ai,...Xr}=vue.unref(Ir),vi={},{order:Si,column:ri}=vue.unref(Pr);Si&&(vi.sortField=ri==null?void 0:ri.dataIndex,vi.sortOrder=Si==="ascend"?"asc":"desc");const yi=await request.post(`${vue.unref(zr)}/diagram/obtainDataSetData`,{...Xr,param:{...ai,pageNum:Er.current,pageSize:Er.pageSize,...vi}},{headers:{Authentication:bi,operateContext:CONTEXT}}),{columns:di=[],data:Ei=[],total:Oi=0,totalObj:Li}=((mi=yi==null?void 0:yi.data)==null?void 0:mi.data)||{};if(Er.total=Oi,(xi=vue.unref(br))!=null&&xi.length||(br.value=di.filter(Ri=>Ri).map(Ri=>({title:Ri,dataIndex:Ri,width:120,customHeaderCell:()=>({class:{"left-align":!0}}),customCell:(hi,Ci,Di)=>({[vue.unref(jr)?"onClick":"onDblclick"]:()=>{var qi,Ji;const $i=((qi=window==null?void 0:window.config)==null?void 0:qi.detailDrillUrl)||"",Fi=((Ji=window==null?void 0:window.config)==null?void 0:Ji.detailDrillTitle)||"";$i&&Tn(hi,"orgCode")&&Tn(hi,"visitId")&&Tn(hi,"mpiId")&&(vr.value=!0,vue.nextTick(()=>{vue.unref(Tr).showModal({record:hi,linkUrl:$i,title:Fi})}))}}),sorter:!0}))),Li&&((ni=Object.keys(Li))!=null&&ni.length)){const Ri=[];for(const hi of vue.unref(br))Ri.push({value:Li[hi.dataIndex],dataIndex:hi.dataIndex});Or.value=Ri}Ar.value=Ei.map(Ri=>({...Ri,uid:nanoid(6)}))}catch{br.value=[],Ar.value=[]}finally{Br.value=!1}};async function Hr(bi){gr.value=!0,mr.value=!0;const{record:pi,dimOpts:mi,column:xi,formatParams:ni,cpntProps:ai={},drillDetailUrl:Xr,drillConditions:vi}=bi,{indicatorList:Si=[]}=ni,ri=Si.find(Li=>Li.label===xi.dataIndex),yi={};for(const Li in pi){const Ri=mi.find(hi=>hi.name===Li);Ri&&(yi[Ri.typeGuid]=pi[Li])}const{startTime:di,endTime:Ei,rangeFormat:Oi}=ct.theDateInfo;di&&Ei&&(yi.startTime=dayjs(di).format(Oi),yi.endTime=dayjs(Ei).format(Oi)),kr.value=yi,Xr?(pr.value=!0,xr.value=Xr,Sr.value=encodeURIComponent(JSON.stringify({indexCode:(ri==null?void 0:ri.hrpIndexCode)||"",indexName:ri.label,theFlag:ai.theFlag,param:yi,conditions:vi})),gr.value=!1):(Ir.value={pageId:getPageId(),indexCode:(ri==null?void 0:ri.hrpIndexCode)||"",indexName:ri.label,theFlag:ai.theFlag,param:yi},await Kr(),gr.value=!1,Rr(),Qr()),vue.nextTick(()=>{Lr(!0)})}const Ur=vue.computed(()=>{let bi=`last-detail-modal ${hr}`;return(vue.unref(jr)||pr.value)&&(bi+=" full"),ct.theme==="darkBlue"&&(bi+=" darkBlue"),vue.unref(xr)||(bi+=" table"),bi}),Jr=vue.computed(()=>{var bi;return vue.unref(jr)?{padding:"10px 0"}:{height:vue.unref(pr)?"":fr+48+"px",overflow:"hidden",paddingTop:(bi=vue.unref(Ar))!=null&&bi.length?"0px":""}}),Yr=()=>{const bi=vue.unref(kr).the_date,{startTime:pi,endTime:mi}=vue.unref(kr),xi={};bi?xi.时间范围=bi:xi.时间范围=`${pi}至${mi}`;for(const ni in vue.unref(kr))if(!["startTime","endTime","the_date"].includes(ni)){const ai=ct.allDimensions.find(Xr=>Xr.typeGuid===ni);ai&&(xi[ai.title||ai.label]=vue.unref(kr)[ni])}return{drillContext:xi,data:vue.toRaw(vue.unref(Ar)),type:"detailTable"}},si=async(bi,pi,mi)=>{Pr.value=mi,await Kr(),Rr()},fi=async(bi,pi)=>{Er.current=bi,Er.pageSize=pi,await Kr(),Rr()},_i=async()=>{var bi,pi,mi;Cr.value=!0;try{const{param:xi,...ni}=vue.unref(Ir),ai=vue.unref(Vr).find(vi=>vi.keyName==="机构");let Xr="";ai&&(Xr=((pi=(bi=vue.unref($r()))==null?void 0:bi.get(ai.id))==null?void 0:pi.itemLabels)||""),await useDownloadFile(`${vue.unref(zr)}/diagram/obtainDataSetData/download`,{...ni,param:{...xi,officeName:Xr}},{Authentication:((mi=window==null?void 0:window.config)==null?void 0:mi.indicatorToken)||"",operateContext:CONTEXT})}finally{Cr.value=!1}};return ur({getRecordData:Yr,showModal:Hr,visible:mr}),{visible:mr,requestLoading:gr,pagination:Er,columns:br,dataSource:Ar,wrapClassName:Ur,detailBodyStyle:Jr,isMobile:jr,urlJsonStr:Sr,drillDetailUrl:xr,isIndFullScreen:pr,tableFontSize:Wr,tableScroll:wr,tableRef:_r,customModalRef:Tr,isLoadedTable:yr,isShowCustomModal:vr,defaultValue:dr,searchLoading:Br,downloading:Cr,summaryList:Or,summaryHeight:Nr,handleTableChange:si,handlePageChange:fi,getContainer:qr,onDetailCancel:Gr,toggleFullScreen:Dr,handleExport:_i}}}),_withScopeId$7=ct=>(vue.pushScopeId("data-v-81782539"),ct=ct(),vue.popScopeId(),ct),_hoisted_1$r=_withScopeId$7(()=>vue.createElementVNode("div",{style:{"font-size":"18px"}},"指标明细",-1)),_hoisted_2$e=["src"],_hoisted_3$8={key:0,class:"spin-container"},_hoisted_4$5={key:0,class:"tool-bar"},_hoisted_5$5=vue.createTextVNode("导出为Excel"),_hoisted_6$5=["title"],_hoisted_7$5=["title"];function _sfc_render$F(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("close-outlined"),pr=vue.resolveComponent("switcher-outlined"),mr=vue.resolveComponent("border-outlined"),gr=vue.resolveComponent("a-spin"),yr=vue.resolveComponent("a-pagination"),Cr=vue.resolveComponent("a-button"),br=vue.resolveComponent("a-table-summary-cell"),Ar=vue.resolveComponent("a-table-summary-row"),wr=vue.resolveComponent("a-table-summary"),_r=vue.resolveComponent("a-table"),Tr=vue.resolveComponent("a-modal"),Er=vue.resolveComponent("custom-modal");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(Tr,{wrapClassName:ct.wrapClassName,visible:ct.visible,"onUpdate:visible":Dn[3]||(Dn[3]=xr=>ct.visible=xr),width:"60%",destroyOnClose:!0,footer:null,bodyStyle:ct.detailBodyStyle,getContainer:ct.getContainer,onCancel:ct.onDetailCancel},{title:vue.withCtx(()=>[_hoisted_1$r]),closeIcon:vue.withCtx(()=>[vue.createVNode(vr,{class:vue.normalizeClass(["modal-icon",ct.theme])},null,8,["class"])]),default:vue.withCtx(()=>{var xr,Sr;return[ct.isOutDrill?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"zoom-btn",onClick:Dn[0]||(Dn[0]=(...kr)=>ct.toggleFullScreen&&ct.toggleFullScreen(...kr))},[ct.isIndFullScreen?(vue.openBlock(),vue.createBlock(pr,{key:0,class:vue.normalizeClass(["modal-icon",ct.theme])},null,8,["class"])):(vue.openBlock(),vue.createBlock(mr,{key:1,class:vue.normalizeClass(["modal-icon",ct.theme])},null,8,["class"]))])),ct.drillDetailUrl&&ct.urlJsonStr?(vue.openBlock(),vue.createElementBlock("iframe",{key:1,src:`${ct.drillDetailUrl}${ct.drillDetailUrl.includes("?")?"&":"?"}params=${ct.urlJsonStr}`,frameborder:"0",width:"100%",height:"100%"},`\r
|
|
112
|
-
`,8,_hoisted_2$e)):ct.drillDetailUrl?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:2},[ct.isLoadedTable?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$8,[vue.createVNode(gr,{size:"large"})])),ct.requestLoading?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",{key:1,ref:"tableRef",style:vue.normalizeStyle({visibility:ct.isLoadedTable?"visible":"hidden"})},[(xr=ct.dataSource)!=null&&xr.length?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$5,[vue.createVNode(yr,{current:ct.pagination.current,"onUpdate:current":Dn[1]||(Dn[1]=kr=>ct.pagination.current=kr),"page-size":ct.pagination.pageSize,"onUpdate:page-size":Dn[2]||(Dn[2]=kr=>ct.pagination.pageSize=kr),total:ct.pagination.total,"show-total":ct.pagination.showTotal,showLessItems:ct.pagination.showLessItems,showSizeChanger:ct.pagination.showSizeChanger,disabled:ct.searchLoading,onChange:ct.handlePageChange},null,8,["current","page-size","total","show-total","showLessItems","showSizeChanger","disabled","onChange"]),vue.createVNode(Cr,{loading:ct.downloading,onClick:ct.handleExport,style:{"margin-left":"15px"}},{default:vue.withCtx(()=>[_hoisted_5$5]),_:1},8,["loading","onClick"])])):vue.createCommentVNode("",!0),vue.createVNode(_r,{class:"last-detail-table",size:"small","row-key":kr=>kr.uid,columns:ct.columns,"data-source":ct.dataSource,pagination:!1,"row-class-name":(kr,Pr)=>Pr%2===1?"table-striped":null,scroll:ct.isMobile?{x:"max-content",y:"70vh"}:ct.tableScroll,showHeader:!!((Sr=ct.dataSource)!=null&&Sr.length),loading:ct.searchLoading,onChange:ct.handleTableChange},{headerCell:vue.withCtx(({title:kr})=>[vue.createElementVNode("div",{title:kr,style:vue.normalizeStyle({fontSize:ct.tableFontSize,fontWeight:600})},vue.toDisplayString(kr),13,_hoisted_6$5)]),bodyCell:vue.withCtx(({text:kr})=>[vue.createElementVNode("div",{title:kr,style:vue.normalizeStyle({fontSize:ct.tableFontSize})},vue.toDisplayString(kr||ct.defaultValue),13,_hoisted_7$5)]),summary:vue.withCtx(()=>[vue.createVNode(wr,{fixed:""},{default:vue.withCtx(()=>[vue.createVNode(Ar,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ct.summaryList,(kr,Pr)=>(vue.openBlock(),vue.createBlock(br,{key:Pr,index:Pr,style:vue.normalizeStyle({height:ct.summaryHeight+"px",fontSize:ct.tableFontSize,fontWeight:600,color:"rgba(0, 0, 0, 0.85)",padding:"8px"})},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(kr.value),1)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1})]),_:1},8,["row-key","columns","data-source","row-class-name","scroll","showHeader","loading","onChange"])],4))],64))]}),_:1},8,["wrapClassName","visible","bodyStyle","getContainer","onCancel"]),ct.isShowCustomModal?(vue.openBlock(),vue.createBlock(Er,{key:0,ref:"customModalRef",theme:ct.theme,onClose:ct.onCloseCustomModal},null,8,["theme","onClose"])):vue.createCommentVNode("",!0)],64)}const LastDetail=_export_sfc$1(_sfc_main$A,[["render",_sfc_render$F],["__scopeId","data-v-81782539"]]);dayjs.locale("zh-cn");const _sfc_main$z=vue.defineComponent({name:"DrillModal",components:{ATable:antDesignVue.Table,ATableSummary:antDesignVue.TableSummary,ATableSummaryRow:antDesignVue.TableSummaryRow,ATableSummaryCell:antDesignVue.TableSummaryCell,APagination:antDesignVue.Pagination,AButton:antDesignVue.Button,BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1,CloseOutlined:CloseOutlined$1,LastDetail},props:{theme:{type:String,default:"light"},drillingMode:{type:String,default:"default"},pageMode:{type:String,default:"normal"},scaleValue:{type:Object,default:()=>({})},pivotTableFontSize:{type:Number,default:16},width:{type:String,default:""},drillDetailUrl:{type:String,default:""},isShowMask:{type:Boolean,default:!0},isOutDrill:{type:Boolean,default:!1}},setup(ct,{expose:Dn,emit:ur}){const dr=["LAST_DATA","MOM_DATA","SAME_DATA","YOY_DATA"],fr="-",hr="c-"+nanoid(6),vr=.57,pr=.6,mr=.97,gr=.9,yr=window.screen.height*pr,Cr=["人","次","人次","个","张","例","台"],br=vue.ref({}),Ar=vue.ref(!1),wr=vue.ref(50),_r={IN:"属于",NOT_IN:"不属于",LIKE:"包含",NOT_LIKE:"不包含","LIKE%":"开头是","%LIKE":"结尾是",EQUAL:"等于",LESS:"小于",LESS_EQUAL:"小于等于",GREATER:"大于",GREATER_EQUAL:"大于等于",NOT_EQUAL:"不等于"},Tr={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"},Er=[{label:"10 条/页",value:10},{label:"20 条/页",value:20},{label:"50 条/页",value:50},{label:"100 条/页",value:100}],xr=vue.ref({}),Sr=vue.ref(),kr=vue.ref(!1),Pr=vue.ref(!1),Ir=vue.ref(),Br=vue.ref(),Or=vue.ref(),Nr=vue.ref(!0),jr=vue.ref({}),Vr=vue.ref([]),$r=vue.ref([]),zr=vue.ref([]),Wr=vue.ref(!1),qr=vue.ref(!1),Mr=vue.ref(!1),Lr=vue.ref({}),Fr=vue.ref(""),Dr=vue.ref(""),Gr=vue.ref(""),Rr=vue.ref({x:"max-content"}),Qr=vue.ref(),Kr=vue.ref([]),Hr=vue.ref({dateFormat:"YYYY-MM-DD"}),Ur=vue.ref(!1),Jr=vue.reactive({keyName:"",visible:!1,dataSource:[],columns:[],title:""}),Yr=vue.reactive({current:1,pageSize:20,total:0,showSizeChanger:!1,showQuickJumper:!1,showLessItems:!1,showTotal:zi=>`共 ${zi} 条数据`}),si=vue.ref({}),fi=vue.ref({}),_i=vue.ref(""),bi=vue.ref({}),pi=vue.ref({}),mi=vue.ref([]),xi=vue.ref({}),ni=vue.inject("isMobile",!1),ai=vue.inject("usedComponentList",[]),Xr=vue.inject("componentList",[]),{getAllGlobalModel:vi}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),Si=vue.computed(()=>INDICATOR_URL);vue.watch(()=>Jr.visible,zi=>{zi?document.documentElement.style.overflow="hidden":document.documentElement.style.overflow="hidden auto"});function ri(){Ar.value=!1}vue.watch(Ar,zi=>{zi?document.addEventListener("click",ri):document.removeEventListener("click",ri)});const yi=vue.computed(()=>vue.unref(ni)?"16px":ct.pivotTableFontSize+"px"),di=vue.computed(()=>vue.unref(ni)?"12px":ct.pivotTableFontSize-4+"px"),Ei=vue.computed(()=>({width:vue.unref(jr).width,height:vue.unref(jr).height})),Oi=vue.computed(()=>vue.unref(ni)?{padding:"10px 0"}:ct.drillingMode==="normalTable"?Nr.value?{paddingTop:0}:{height:yr+48+"px",overflow:"hidden",paddingTop:0}:{}),Li=vue.computed(()=>{let zi=`datav-drill-modal ${hr}`;return(Nr.value||vue.unref(ni))&&(zi+=" full"),ct.theme==="darkBlue"&&(zi+=" darkBlue"),zi}),Ri=(zi,ei)=>{const gi=hi(ei.graphicConfig).filter(Ni=>Ni.conditions),Ai=loopConditions(gi,"conditions",!0),wi=loopConditions(zi.sqlConditions,"sqlConditions",!1);$r.value=Ai.concat(wi).filter(Ni=>Ni.label)||[]};function hi(zi){const{leftAxisList:ei=[],rightAxisList:li=[],indicators:gi=[],classificationList:Ai=[],rowHeaderList:wi=[],dimensionList:Ni=[],seriesList:Mi=[],queryColumns:ji=[],indexLibColumns:Ui=[]}=zi;return ei.concat(li).concat(gi).concat(Ai).concat(wi).concat(Ni).concat(Mi).concat(ji).concat(Ui)}const Ci=()=>document.querySelector("#modalContainer")||document.body,Di=async zi=>{var Mi,ji,Ui;const{cpntProps:ei,pageId:li,formatParams:gi,classifications:Ai,indicatorToken:wi,drillingMode:Ni}=zi;return await request({url:`${vue.unref(Si)}/diagram/obtainDrillAbleDimensionOptions`,method:"post",headers:{Authentication:wi,operateContext:CONTEXT},data:{source:((Mi=ei==null?void 0:ei.graphicConfig)==null?void 0:Mi.source)||"INDICATOR_LIB",pageId:li,indicatorList:(gi==null?void 0:gi.indicatorList)||[],classifications:Ai,dataSourceId:((ji=ei==null?void 0:ei.graphicConfig)==null?void 0:ji.dataSourceId)||"",drillingMode:Ni},signal:((Ui=window.controller)==null?void 0:Ui.signal)||""})},$i=async({indicatorList:zi,indicatorToken:ei})=>{var li;return await request({url:`${vue.unref(Si)}/diagram/obtainIndexDrillDetail`,method:"post",headers:{Authentication:ei,operateContext:CONTEXT},data:{indicatorList:zi},signal:((li=window.controller)==null?void 0:li.signal)||""})},Fi=async({indicatorList:zi,indicatorToken:ei,pageId:li,theFlag:gi})=>{var Ai;return await request({url:`${vue.unref(Si)}/diagram/obtainIndicatorInfo`,method:"post",headers:{Authentication:ei,operateContext:CONTEXT},data:{source:"INDICATOR_LIB",pageId:li,indicatorList:zi,theFlag:gi},signal:((Ai=window.controller)==null?void 0:Ai.signal)||""})},qi=zi=>{let ei="",li="";const{componentConfig:gi={}}=zi;for(const wi in gi)if(gi[wi].key==="currentValue"){li=wi;break}const Ai=vue.unref(Xr).find(wi=>wi.id===li);return Ai!=null&&Ai.unitText&&(ei=Ai.unitText),ei};function Ji(zi){const ei=[];for(const li of zi)li.sqlConditions?ei.push(...Ji(li.sqlConditions)):li.fieldName==="the_date"&&ei.push(li);return ei}const ua=zi=>{var wi;const{sqlConditions:ei=[],queryColumns:li=[]}=zi||{},gi=Ji(ei),Ai=li.find(Ni=>Ni.typeGuid==="the_date");if(Ai&&(Hr.value={dateFormat:Ai.dateFormat||"YYYY-MM-DD"}),gi!=null&&gi.length)for(const Ni of gi)["startTime","endTime"].includes(Ni.prop)&&(vue.unref(Hr)[Ni.prop]=Ni.fieldValue||"",(wi=vue.unref(Hr))!=null&&wi.rangeFormat||(vue.unref(Hr).rangeFormat=Ni.dateFormat||"YYYY-MM-DD"))},da=()=>{var zi;(zi=Jr.dataSource)!=null&&zi.length?setTimeout(()=>{var ei;if(ct.drillingMode==="normalTable"){const li=vue.unref(Qr),gi=li==null?void 0:li.querySelector(".normal-table .ant-table-thead");if(gi!=null&&gi.clientHeight){let Ai=yr;if(vue.unref(Nr)){const wi=document.querySelector(`.${hr} .ant-modal-content`);wi&&(Ai=wi.clientHeight-((ei=wi.querySelector(".ant-modal-header"))==null?void 0:ei.clientHeight)-24)}if(!isNaN(Ai)){let wi=Ai-gi.clientHeight-60;const Ni=li==null?void 0:li.querySelector(".normal-table .ant-table-summary");Ni&&(wi-=Ni.clientHeight);const Mi=li==null?void 0:li.querySelector(".normal-table .ant-table-tbody");Mi&&Mi.clientHeight>wi+4?vue.unref(Rr).y=wi+"px":delete vue.unref(Rr).y}}}qr.value=!0},200):(Rr.value={},qr.value=!0)},va=()=>{var zi;(zi=Jr.dataSource)!=null&&zi.length&&setTimeout(()=>{var ei;Sortable.create((ei=vue.unref(Qr))==null?void 0:ei.querySelector(".normal-table .ant-table-thead > tr"),{handle:"th.ant-table-cell",onEnd:({newIndex:li,oldIndex:gi})=>{if(li!==gi){let Ai=function(Ni){for(const Mi of Ni)if(Mi.children)Ai(Mi.children);else{const ji=vue.unref(Kr).find(Ui=>Ui.dataIndex===Mi.dataIndex);ji&&wi.push(ji)}};swapArrItem(Jr.columns,li,gi);const wi=[];Ai(Jr.columns),Kr.value=wi}}})},200)},ya=async()=>{var Mi,ji,Ui,oa;Ur.value=!0;const zi=((Mi=window==null?void 0:window.config)==null?void 0:Mi.indicatorToken)||"",{indicatorList:ei,queryColumns:li}=vue.unref(fi),gi={},{order:Ai,column:wi}=vue.unref(bi);if(Ai){const ia=Ai==="ascend"?"ASC":"DESC";if(wi!=null&&wi.isIndicator){const Yi=lodashEs.cloneDeep(ei),aa=Yi.find(Ca=>Ca.label===(wi==null?void 0:wi.dataIndex));aa&&(aa.sort={columnName:aa.columnName,label:aa.label,order:ia,type:"NORMA"}),gi.indicatorList=Yi}else{const Yi=lodashEs.cloneDeep(li),aa=Yi.find(Ca=>Ca.label===(wi==null?void 0:wi.dataIndex));aa&&(aa.sort={columnName:aa.columnName,label:aa.label,order:ia,type:"COMBINATION"}),gi.queryColumns=Yi,gi.rowHeaders=Yi}}const Ni=[new Promise(ia=>{request({url:`${vue.unref(Si)}${vue.unref(_i)}`,method:"post",headers:{Authentication:zi,operateContext:CONTEXT},data:{...vue.unref(fi),...gi,pageNum:Yr.current,pageSize:Yr.pageSize,pageId:getPageId()}}).then(Yi=>{ia(Yi)}).catch(()=>{ia({})})})];(ji=vue.unref(Kr))!=null&&ji.length||Ni.push(new Promise(ia=>{request({url:`${vue.unref(Si)}${vue.unref(_i)}`,method:"post",headers:{Authentication:zi,operateContext:CONTEXT},data:{...vue.unref(fi),queryColumns:[],rowHeaders:[],pageId:getPageId()}}).then(Yi=>{ia(Yi)}).catch(()=>{ia({})})}));try{const[ia,Yi]=await Promise.all(Ni),{rows:aa=[],total:Ca=0}=((Ui=ia==null?void 0:ia.data)==null?void 0:Ui.data)||{};if(Jr.dataSource=(Array.isArray(aa)?aa:[aa]).map(ba=>({...ba,uuid:nanoid(6)})),Yr.total=Ca,Yi){const{rows:ba=[]}=((oa=Yi==null?void 0:Yi.data)==null?void 0:oa.data)||{};ba!=null&&ba.length&&Jr.columns.forEach(Aa=>{if(Aa.children)for(const wa of Aa.children){let Oa=ba[0][wa.dataIndex]||"-",Ra=vue.unref(pi)[wa.dataIndex];if(Ra||(wa.dataIndex.includes("@LAST_DATA")?Ra=vue.unref(pi)[wa.dataIndex.replace("@LAST_DATA","")]:wa.dataIndex.includes("@SAME_DATA")&&(Ra=vue.unref(pi)[wa.dataIndex.replace("@SAME_DATA","")])),!Cr.includes(Ra)){const Wa=parseFloat(Oa);isNaN(Wa)||(Oa=Wa.toFixed(2))}(Ra&&Ra==="%"||["同比(%)","环比(%)"].includes(xa(wa.dataIndex)))&&(Oa+="%"),vue.unref(Kr).push({value:Oa,align:wa.align,dataIndex:wa.dataIndex})}else vue.unref(Kr).push({value:"-",align:Aa.align,dataIndex:Aa.dataIndex})})}}catch(ia){console.error(ia)}finally{Ur.value=!1}},xa=zi=>{let ei="";return zi.includes("@MOM_DATA")?ei="环比(%)":zi.includes("@YOY_DATA")?ei="同比(%)":zi.includes("@LAST_DATA")?ei="上期":zi.includes("@SAME_DATA")&&(ei="同期"),ei},Sa=(zi,ei)=>{let li=zi;const{dataIndex:gi}=ei,Ai=xa(gi);let wi=vue.unref(pi)[gi];wi||(gi.includes("@LAST_DATA")?wi=vue.unref(pi)[gi.replace("@LAST_DATA","")]:gi.includes("@SAME_DATA")&&(wi=vue.unref(pi)[gi.replace("@SAME_DATA","")]));const Ni=!Cr.includes(wi);if(zi||(ei.align==="left"?li=fr:li=Ni?"0.00":"0"),Ni){const Mi=parseFloat(li);isNaN(Mi)||(li=Mi.toFixed(2))}return(wi&&wi==="%"||["同比(%)","环比(%)"].includes(Ai))&&(li+="%"),li},La=(zi,ei)=>{var wi;let li="";const{dataIndex:gi}=ei;if(vue.unref(pi)[gi]!=="%"){let Ni=!1;const Mi=xa(gi);if(!Mi)Ni=!0;else{let ji="";Mi==="上期"?ji=gi.replace("@LAST_DATA",""):Mi==="同期"&&(ji=gi.replace("@SAME_DATA","")),ji&&vue.unref(pi)[ji]!=="%"&&(Ni=!0)}if(Ni){const ji=parseFloat(zi||0);if(!isNaN(ji)){const Ui=parseFloat((wi=vue.unref(Kr).find(oa=>oa.dataIndex===gi))==null?void 0:wi.value);Ui&&!isNaN(Ui)&&(li=(ji/Ui*100).toFixed(2)+"%")}}}return li?`(${li})`:""},qa=(zi,ei)=>{zi.stopPropagation(),ri(),kr.value=!0,vue.nextTick(()=>{vue.unref(Ir).showModal({...vue.unref(xi),appointTypeGuid:ei})})},ka=async zi=>{var Aa,wa,Oa,Ra,Wa,Za,Ya,es,ts,Ja;if(ct.drillingMode==="default"||ct.pageMode==="design")return;let ei=lodashEs.cloneDeep(zi).props;if(ei.parentId){const Ma=vue.unref(ai).find(Na=>Na.id===ei.parentId);if((Ma==null?void 0:Ma.dataType)==="indicator")ei=lodashEs.cloneDeep(Ma);else return}const li=Nn(ei.type,"indexPanel");Jr.keyName=ei==null?void 0:ei.keyName;const gi=((Aa=window==null?void 0:window.config)==null?void 0:Aa.indicatorToken)||"",Ai=getPageId(),wi=(ei==null?void 0:ei.graphicConfig)||{},{leftAxisList:Ni=[],rightAxisList:Mi=[],indicators:ji=[]}=wi;let Ui=((wi==null?void 0:wi.drillGroupList)||[]).filter(Ma=>{var Na;return(Na=Ma.dimensions)==null?void 0:Na.length});const oa=Ni.concat(Mi).concat(ji);if(!(oa!=null&&oa.length))return;const ia=oa.filter(Ma=>Ma.show).map(Ma=>Ma.label);ia!=null&&ia.length&&(Jr.title=`下钻:${ia.join("、")}`);const Yi=Zn({...ei,allComponentList:vue.unref(Xr),globalModel:vi()}),{indicatorList:aa=[]}=Yi,Ca=await Fi({indicatorList:aa,indicatorToken:gi,pageId:Ai,theFlag:(ei==null?void 0:ei.theFlag)||""}),ba=((wa=Ca==null?void 0:Ca.data)==null?void 0:wa.data)||[];for(const Ma of ba){const Na=aa.find(za=>{let Zr="columnName";return za.formula&&(Zr="label"),za[Zr]===Ma.indexName});Na&&(vue.unref(pi)[Na.label]=Ma.theUnit||"")}if(ct.drillingMode==="normalTable"||vue.unref(ni)){Wr.value=!0,Jr.visible=!0;const Na=hi(wi).filter(oi=>oi.showInDrillTable==="hide").map(oi=>oi.label);Yr.current=1;let za=(Yi==null?void 0:Yi.classification)||(Yi==null?void 0:Yi.classifications)||[];Fr.value=(Oa=aa.find(oi=>oi.show))==null?void 0:Oa.label,Dr.value=((Ra=aa.find(oi=>oi.show))==null?void 0:Ra.hrpIndexCode)||"",Gr.value=(ei==null?void 0:ei.theFlag)||"";const Zr=await $i({indicatorList:aa,indicatorToken:gi}),ui=((Wa=Zr==null?void 0:Zr.data)==null?void 0:Wa.data)||[];if(ui!=null&&ui.length)for(const oi of ui)(Za=oi.detailList)!=null&&Za.length&&oi.detailList.forEach((ci,Ti)=>{if(Ti>0){const Bi=aa.find(ki=>ki.label===ci);Bi&&!Na.includes(Bi.label)&&(Bi.show=!0)}});const ti=aa.filter(oi=>oi.show),ii=[];for(const oi of ti)for(const ci of dr)ii.push({builtInFormula:ci,builtInValueSource:oi.label,calcType:"BUILT_IN",columnName:`${oi.label}@${ci}`,label:`${oi.label}@${ci}`,location:"LEFT",show:!0});if(ii!=null&&ii.length)for(const oi of ii){const ci=aa.findIndex(Ti=>Ti.label===oi.builtInValueSource);ci!==-1&&aa.splice(ci+1,0,oi)}Array.isArray(za)||(za=[za]);try{const oi=await Di({cpntProps:ei,pageId:Ai,formatParams:Yi,classifications:[],indicatorToken:gi,drillingMode:ct.drillingMode}),ci=((Ya=oi==null?void 0:oi.data)==null?void 0:Ya.data)||[];zr.value=ci;let Ti=[],Bi=[];const{usedDimensions:ki=[],params:Ii={},record:Pi={},appointTypeGuid:Gi}=zi;if(Lr.value=Pi,ki!=null&&ki.length){if(Gi){const ga=ci.find(Pa=>Pa.typeGuid===Gi);ga&&Bi.push(ga),delete zi.appointTypeGuid}else if(Ui!=null&&Ui.length)for(const ga of Ui){const Pa=ga.dimensions.map(Da=>Da.typeGuid);for(const Da of Pa)ki.find(Ta=>Ta.typeGuid===Da)||Bi.push(ci.find(Ta=>Ta.typeGuid===Da));if(Bi!=null&&Bi.length)break}else for(const ga of ci)if(!ki.find(Pa=>Pa.label===ga.name)){Bi.push(ga);break}Ii.sqlConditions&&(Yi.sqlConditions=lodashEs.cloneDeep(Ii.sqlConditions));const{sqlConditions:Qi=[]}=Yi,{record:ha={}}=zi;ki.forEach((ga,Pa)=>{if(Tn(ha,ga.label)){const Da=ci.find(ja=>ja.name===ga.label),Ta={fieldName:ga.label,fieldValue:ha[ga.label],globalCondition:!0,hrpIndexCode:null,hrpIndexCodeNum:null,label:ga.label,rule:"EQUAL",typeGuid:ga.typeGuid,valueType:(Da==null?void 0:Da.genericType)||"TEXT"};Pa!==ki.length-1&&(Ta.join="&&"),Pa===0&&(Qi!=null&&Qi.length)&&(Qi[Qi.length-1].join="&&"),Qi.find(ja=>ja.fieldName===Ta.fieldName)||Qi.push(Ta)}})}else if(Ti=za.map(Qi=>({...Qi,calcType:"COLUMN"})),Ui!=null&&Ui.length){const Qi=Ui[0].dimensions.map(ha=>ha.typeGuid);for(const ha of Qi)Bi.push(ci.find(ga=>ga.typeGuid===ha))}else Bi=ci.filter(Qi=>!Qi.isExtProperty).slice(0,2).sort((Qi,ha)=>Qi.typeGuid-ha.typeGuid);Ri(Yi,lodashEs.cloneDeep(zi.props));for(const Qi of Bi)Ti.find(ha=>ha.typeGuid===Qi.typeGuid)||Ti.push({calcType:"COLUMN",columnName:Qi.name,label:Qi.name,show:!0,typeGuid:Qi.typeGuid,isExtProperty:Qi.isExtProperty});Yi.queryColumns=Ti,Yi.layer="1",Yi.plugin="5",delete Yi.classification,delete Yi.classifications;const{url:Zi,...ra}=Yi||{};ra.chartType="pivot-table-list",ra.rowHeaders=ra.queryColumns,fi.value=ra,_i.value=Zi,ua(Yi);const Ki=Ti.map(Qi=>Qi.label).concat(...Yi.indicatorList.filter(Qi=>Qi.show).map(Qi=>Qi.label)).filter(Qi=>!Na.includes(Qi.label));if(li){const Qi=wi.indicators.find(ga=>ga.show),ha=qi(ei);ha&&Qi&&(si.value={[Qi.label]:ha})}const na=ki.concat(Ti),pa=[];if(Ui!=null&&Ui.length)for(const Qi of Ui)pa.push(...((es=Qi==null?void 0:Qi.dimensions)==null?void 0:es.map(ha=>ha.typeGuid))||[]);mi.value=ci.filter(Qi=>!na.find(ha=>ha.label===Qi.name)&&(!pa.length||pa.includes(Qi.typeGuid)));const Ea=Ki.filter(Qi=>!!Qi).map(Qi=>{let ha=Qi;const ga=ci.find(Pa=>Pa.name===Qi);if(ga)ha=ga.title||ga.label;else{ha=xa(ha),ha||(ha="本期");const Pa={...vue.unref(si),...vue.unref(pi)};let Da=Qi;ha==="上期"?Da=Qi.replace("@LAST_DATA",""):ha==="同期"&&(Da=Qi.replace("@SAME_DATA",""));const Ta=Pa[Da];Ta&&(ha+=`(${Ta})`)}return{title:ha,dataIndex:Qi,align:ga?"left":"right",fixed:ga?"left":"",isIndicator:!ga,sorter:!0,customHeaderCell:()=>({class:{"left-align":!!ga,"right-align":!ga}}),customCell:(Pa,Da,Ta)=>({class:{"dimension-column":!!ga},style:{minWidth:ga?"":estimateWidth(ha,vue.unref(yi))+30+"px"},[vue.unref(ni)?"onClick":"onDblclick"]:()=>{const ja={...Pi,...Pa},$a=ci.find(Qa=>Ta.dataIndex===Qa.name);let Xa=ci.length;if(Ui!=null&&Ui.length){Xa=0;for(const Qa of Ui)Xa+=Qa.dimensions.length}Xa>na.length?(kr.value=!0,vue.nextTick(()=>{vue.unref(Ir).showModal({...zi,record:ja,usedDimensions:na,params:Yi})})):!$a&&!xa(Ta.dataIndex)&&(Pr.value=!0,vue.nextTick(()=>{vue.unref(Br).showModal({record:ja,dimOpts:ci,column:Ta,formatParams:Yi,cpntProps:ei,drillDetailUrl:ct.drillDetailUrl,drillConditions:vue.unref(Xi)})}))},onContextmenu(ja){var ps;if(ja.preventDefault(),!((ps=vue.unref(mi))!=null&&ps.length))return;xi.value={...zi,record:{...Pi,...Pa},usedDimensions:na,params:Yi};const $a=5,Xa=32,Qa=8,vs=200,ms=ci.length-ki.length,{clientX:ns,clientY:rs}=ja,{clientWidth:ls,clientHeight:cs}=document.body,{widthScale:gs=1,heightScale:ys=1}=ct.scaleValue||{};let us=rs,ds="top",fs=ns,hs="left";cs-rs-ms*Xa-Qa<0&&(ds="bottom",us=cs-rs),ls-ns<vs&&(hs="right",fs=ls-ns),br.value={[hs]:fs/gs+$a+"px",[ds]:us/ys+$a+"px"},Ar.value=!0}})}});Jr.columns=[];for(const Qi of Ea)if(Qi.isIndicator){const{dataIndex:ha}=Qi;if(xa(ha))continue;{const ga={title:ha,dataIndex:nanoid(6),children:[Qi]};for(const Pa of dr){const Da=Ea.find(Ta=>Ta.dataIndex===`${ha}@${Pa}`);Da&&ga.children.push(Da)}Jr.columns.push(ga)}}else Qi.width=180,Jr.columns.push(Qi);await ya(),Wr.value=!1,da(),va()}catch(oi){console.error(oi)}}else if(ct.drillingMode==="pivotTable"){const Ma=await Di({cpntProps:ei,pageId:Ai,formatParams:Yi,classifications:[],indicatorToken:gi});zr.value=((ts=Ma==null?void 0:Ma.data)==null?void 0:ts.data)||[];const Na=nanoid(6);wi.queryColumnList||(wi.queryColumnList=[]),wi!=null&&wi.classificationList&&(wi.queryColumnList=wi.classificationList,delete wi.classificationList),wi!=null&&wi.seriesList&&(wi.queryColumnList=wi.queryColumnList.concat(wi.seriesList),delete wi.seriesList),wi.indicators=lodashEs.cloneDeep(oa||[]),delete wi.leftAxisList,delete wi.rightAxisList;const za={},Zr=wi.indicators.find(ti=>ti.show);if(li){const ti=vue.unref(zr).filter(oi=>!oi.isExtProperty).slice(0,2).sort((oi,ci)=>oi.typeGuid-ci.typeGuid).map(oi=>({...oi,show:!0,edit:!1,dataTo:"0",width:oi.name==="the_date"?15:0,dataSetParams:{}}));ti!=null&&ti.length&&(wi.queryColumnList=ti);const ii=qi(ei);if(ii&&Zr){const{label:oi}=Zr;za.defaultConfig={indexFormatConfig:{[oi]:{fieldName:oi,indicatorKey:oi,position:"right",unit:ii}}}}}ei!=null&&ei.theFlag&&(za.theFlag=ei.theFlag),(Ja=wi.queryColumnList)!=null&&Ja.length||(wi.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 ui={...lodashEs.cloneDeep(pivotTableProps),id:Na,keyName:`透视表_${Na}`,position:"relative",top:0,left:0,width:parseFloat(ct.width)*mr+"px",height:window.screen.height*gr+"px",pageId:Ai,indicatorToken:gi,context:CONTEXT,globalModel:vi(),graphicConfig:wi,pageConfig:ct,...za};ct.theme==="darkBlue"&&(ui.styleConfig=Tr),li&&(ui.defalutCalcList=["MOM_DATA","YOY_DATA"]),jr.value=ui,Jr.visible=!0,vue.nextTick(()=>{vue.unref(Or).refreshData()})}vue.nextTick(()=>{Ga(!0)})},Ba=async zi=>{Yr.current=zi,await ya(),da()},Ha=zi=>{Yr.pageSize=zi,Ba(1)},Ia=async(zi,ei,li)=>{bi.value=li,await ya(),da()},Ga=zi=>{const ei=document.querySelector(`.datav-drill-modal.${hr} .ant-modal-header`);ei&&(zi?ei.addEventListener("dblclick",Vi):ei.removeEventListener("dblclick",Vi))},Va=zi=>{const ei=document.querySelector(`.datav-drill-modal.${hr} .ant-modal-header`);if(ei)if(zi)ei.addEventListener("mousedown",Ua);else{const li=ei.parentElement;li&&(li.style.left="",li.style.top=""),ei.removeEventListener("mousedown",Ua)}};function Ua(zi){dragModalAction(zi,`.datav-drill-modal.${hr} .ant-modal-header`)}const Vi=()=>{if(ct.isOutDrill){ur("zoom");return}Nr.value=!Nr.value,vue.nextTick(()=>{Nr.value?(vue.unref(jr).width=parseFloat(ct.width)*mr+"px",vue.unref(jr).height=window.screen.height*gr+"px",Va(!1)):(vue.unref(jr).width=parseFloat(ct.width)*vr+"px",vue.unref(jr).height=window.screen.height*pr+"px",Va(!0)),da()})},Wi=()=>{document.documentElement.style.overflow="hidden auto",Ga(!1),Va(!1),ur("close")},Hi=({type:zi,data:ei})=>{if(zi==="11"&&ei){const{indicatorList:li=[],queryColumns:gi=[]}=ei,wi=li.concat(gi).filter(ji=>ji.conditions||ji.filter),Ni=loopConditions(wi,"conditions",!0),Mi=loopConditions(ei.sqlConditions,"sqlConditions",!1);$r.value=Ni.concat(Mi).filter(ji=>ji.label)||[]}};vue.watch($r,(zi=[])=>{Vr.value=zi.map(ei=>{let li=ei.fieldValue;if(li&&typeof li=="string"){const gi=li.split(",");(gi==null?void 0:gi.length)>3&&(li=gi.slice(0,3).join(",")+"等")}else li||(li='""');if(ct.drillingMode==="normalTable")return`${ei.label} ${_r[ei.rule]} ${li}`;{const gi=vue.unref(zr).find(Ai=>Ai.label===ei.label);return`${(gi==null?void 0:gi.title)||ei.label} ${_r[ei.rule]} ${li}`}})||[]},{deep:!0});const Xi=vue.computed(()=>vue.unref($r).map(zi=>({label:zi.title||zi.label,typeGuid:zi.typeGuid,rule:zi.rule,value:zi.fieldValue}))),ea=()=>{Pr.value=!1},ta=()=>{kr.value=!1},la=()=>{ct.isOutDrill&&ur("zoom")},ca=()=>{var zi,ei,li,gi,Ai,wi,Ni,Mi,ji,Ui;if(ct.drillingMode==="normalTable"){if((zi=vue.unref(Br))!=null&&zi.visible)return(ei=vue.unref(Br))==null?void 0:ei.getRecordData();if((gi=(li=vue.unref(Ir))==null?void 0:li.indDetailInfo)!=null&&gi.visible)return(Ai=vue.unref(Ir))==null?void 0:Ai.getPivotRecordData();{const{sqlConditions:oa,...ia}=vue.unref(fi);for(const Yi of oa){const aa=vue.unref(zr).find(Ca=>Ca.typeGuid===Yi.typeGuid);aa!=null&&aa.title&&(Yi.title=aa.title)}return{data:vue.toRaw(Jr.dataSource),columns:[],rows:((Ni=(wi=vue.unref(fi))==null?void 0:wi.queryColumns)==null?void 0:Ni.map(Yi=>({title:Yi.label})))||[],indicators:((ji=(Mi=vue.unref(fi))==null?void 0:Mi.indicatorList)==null?void 0:ji.map(Yi=>({title:Yi.label})))||[],requestParams:{...ia,sqlConditions:oa},type:"pivotTable"}}}else if(ct.drillingMode==="pivotTable")return(Ui=vue.unref(Or))==null?void 0:Ui.getPivotRecordData()},sa=async()=>{var zi,ei,li;Mr.value=!0;try{const gi={indexName:vue.unref(Fr),indexCode:vue.unref(Dr),theFlag:vue.unref(Gr)},{startTime:Ai,endTime:wi,rangeFormat:Ni}=vue.unref(Hr),Mi=vue.unref(Xr).find(ji=>ji.keyName==="机构");for(const ji in vue.unref(Lr)){const Ui=vue.unref(zr).find(oa=>oa.name===ji);Ui&&(gi[Ui.typeGuid]=vue.unref(Lr)[ji])}Ai&&wi&&(gi.startTime=dayjs(Ai).format(Ni),gi.endTime=dayjs(wi).format(Ni)),Mi&&(gi.officeName=((ei=(zi=vue.unref(vi()))==null?void 0:zi.get(Mi.id))==null?void 0:ei.itemLabels)||""),await useDownloadFile(`${vue.unref(Si)}/diagram/download`,{...vue.unref(fi),pageId:getPageId(),unitMap:vue.unref(pi),param:gi},{Authentication:((li=window==null?void 0:window.config)==null?void 0:li.indicatorToken)||"",operateContext:CONTEXT})}finally{Mr.value=!1}},fa=()=>document.getElementsByClassName(`datav-drill-modal ${hr}`)[0]||document.body,ma=zi=>{var ei,li,gi;if(zi){const Ai=(ei=vue.unref(Sr))==null?void 0:ei.getBoundingClientRect();if(Ai){const wi=Ai.left/(((li=ct.scaleValue)==null?void 0:li.widthScale)||1)+"px",Ni=(Ai.top+Ai.height)/(((gi=ct.scaleValue)==null?void 0:gi.heightScale)||1)+"px";setTimeout(()=>{var Ui,oa;const Mi=document.querySelectorAll(".ant-select-dropdown"),ji=Array.from(Mi).filter(ia=>window.getComputedStyle(ia).display!=="none");if(ji!=null&&ji.length){const ia=document.getElementsByClassName(`datav-drill-modal ${hr}`)[0];ji[0].classList.add("ps-select-dropdown"),(Ui=ia==null?void 0:ia.style)==null||Ui.setProperty("--drop-down-left",wi),(oa=ia==null?void 0:ia.style)==null||oa.setProperty("--drop-down-top",Ni),xr.value={visibility:"visible"}}},200)}}else xr.value={}};return Dn({indDetailInfo:Jr,showModal:ka,getPivotRecordData:ca}),{indDetailInfo:Jr,pivotTableConfig:jr,pivotTableStyle:Ei,detailBodyStyle:Oi,wrapClassName:Li,isIndFullScreen:Nr,isMobile:ni,conditionInfo:Vr,indicatorUrl:Si,allDimensions:zr,requestLoading:Wr,isLoadedTable:qr,pivotTableRef:Or,lastDetailRef:Br,subDrillModalRef:Ir,theDateInfo:Hr,isShowSubDrillModal:kr,normalTableUnits:si,drillConditions:Xi,allComponentList:Xr,tableFontSize:yi,miniFontSize:di,tableScroll:Rr,tableRef:Qr,summaryList:Kr,summaryHeight:wr,isShowDetailMpdal:Pr,defaultValue:fr,pagination:Yr,searchLoading:Ur,downloading:Mr,dropDownMenuStyle:br,dropDownMenuVisible:Ar,toBeSelectedDims:mi,unitMap:pi,pageSizeOptions:Er,pageSizeSelectRef:Sr,pageSizeDropdownStyle:xr,getContainer:Ci,toggleFullScreen:Vi,onDetailCancel:Wi,onPivotTableChange:Hi,handlePageChange:Ba,handleTableChange:Ia,onCloseDetailModal:ea,onCloseModal:ta,onZoomModal:la,getCalcLabel:xa,formatMainCell:Sa,formatCellPercent:La,handleExport:sa,drillByDimension:qa,getPageSizeSelectContainer:fa,pageSizeDropdownVisibleChange:ma,onPageSizeChange:Ha}}}),DrillModal_vue_vue_type_style_index_0_scoped_ca6c06b3_lang="",DrillModal_vue_vue_type_style_index_1_lang="",_hoisted_1$q=["title"],_hoisted_2$d={key:0,class:"spin-container"},_hoisted_3$7={class:"tool-bar"},_hoisted_4$4={ref:"pageSizeSelectRef",style:{"margin-left":"15px"}},_hoisted_5$4=vue.createTextVNode("导出为Excel"),_hoisted_6$4=["title"],_hoisted_7$4=["title"],_hoisted_8$4=["title","onClick"];function _sfc_render$E(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("close-outlined"),pr=vue.resolveComponent("switcher-outlined"),mr=vue.resolveComponent("border-outlined"),gr=vue.resolveComponent("a-spin"),yr=vue.resolveComponent("a-pagination"),Cr=vue.resolveComponent("a-select"),br=vue.resolveComponent("a-button"),Ar=vue.resolveComponent("a-table-summary-cell"),wr=vue.resolveComponent("a-table-summary-row"),_r=vue.resolveComponent("a-table-summary"),Tr=vue.resolveComponent("a-table"),Er=vue.resolveComponent("pivot-table"),xr=vue.resolveComponent("a-modal"),Sr=vue.resolveComponent("last-detail"),kr=vue.resolveComponent("drill-modal",!0);return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(xr,{visible:ct.indDetailInfo.visible,"onUpdate:visible":Dn[4]||(Dn[4]=Pr=>ct.indDetailInfo.visible=Pr),width:"60%",getContainer:ct.getContainer,footer:null,destroyOnClose:!0,"wrap-class-name":ct.wrapClassName,bodyStyle:ct.detailBodyStyle,mask:ct.isShowMask,onCancel:ct.onDetailCancel},{title:vue.withCtx(()=>[vue.createElementVNode("div",{class:"detail-modal-title",title:ct.conditionInfo.join("、")},vue.toDisplayString(ct.indDetailInfo.title)+" "+vue.toDisplayString(ct.conditionInfo.join("、")),9,_hoisted_1$q)]),closeIcon:vue.withCtx(()=>[vue.createVNode(vr,{class:vue.normalizeClass(["modal-icon",ct.theme])},null,8,["class"])]),default:vue.withCtx(()=>{var Pr;return[!ct.isMobile&&!ct.isOutDrill?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"zoom-btn",onClick:Dn[0]||(Dn[0]=(...Ir)=>ct.toggleFullScreen&&ct.toggleFullScreen(...Ir))},[ct.isIndFullScreen?(vue.openBlock(),vue.createBlock(pr,{key:0,class:vue.normalizeClass(["modal-icon",ct.theme])},null,8,["class"])):(vue.openBlock(),vue.createBlock(mr,{key:1,class:vue.normalizeClass(["modal-icon",ct.theme])},null,8,["class"]))])):vue.createCommentVNode("",!0),ct.drillingMode==="normalTable"||ct.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[ct.isLoadedTable?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$d,[vue.createVNode(gr,{size:"large"})])),ct.requestLoading?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",{key:1,ref:"tableRef",style:vue.normalizeStyle({visibility:ct.isLoadedTable?"visible":"hidden"})},[vue.createElementVNode("div",_hoisted_3$7,[vue.createVNode(yr,{current:ct.pagination.current,"onUpdate:current":Dn[1]||(Dn[1]=Ir=>ct.pagination.current=Ir),"page-size":ct.pagination.pageSize,"onUpdate:page-size":Dn[2]||(Dn[2]=Ir=>ct.pagination.pageSize=Ir),total:ct.pagination.total,"show-total":ct.pagination.showTotal,showLessItems:ct.pagination.showLessItems,showSizeChanger:ct.pagination.showSizeChanger,responsive:!1,disabled:ct.searchLoading,onChange:ct.handlePageChange},null,8,["current","page-size","total","show-total","showLessItems","showSizeChanger","disabled","onChange"]),vue.createElementVNode("div",_hoisted_4$4,[vue.createVNode(Cr,{value:ct.pagination.pageSize,"onUpdate:value":Dn[3]||(Dn[3]=Ir=>ct.pagination.pageSize=Ir),dropdownClassName:"page-size-select-dropdown",options:ct.pageSizeOptions,getPopupContainer:ct.getPageSizeSelectContainer,dropdownStyle:ct.pageSizeDropdownStyle,onDropdownVisibleChange:ct.pageSizeDropdownVisibleChange,onChange:ct.onPageSizeChange},null,8,["value","options","getPopupContainer","dropdownStyle","onDropdownVisibleChange","onChange"])],512),vue.createVNode(br,{loading:ct.downloading,onClick:ct.handleExport,style:{"margin-left":"15px"}},{default:vue.withCtx(()=>[_hoisted_5$4]),_:1},8,["loading","onClick"])]),vue.createVNode(Tr,{class:"normal-table",size:"small",scroll:ct.isMobile?{x:"max-content",y:"70vh"}:ct.tableScroll,"row-key":Ir=>Ir.uuid,columns:ct.indDetailInfo.columns,"data-source":ct.indDetailInfo.dataSource,pagination:!1,"row-class-name":(Ir,Br)=>Br%2===1?"table-striped":null,showHeader:!!((Pr=ct.indDetailInfo.dataSource)!=null&&Pr.length),loading:ct.searchLoading,"table-layout":"auto",onChange:ct.handleTableChange},{headerCell:vue.withCtx(({title:Ir})=>[vue.createElementVNode("div",{class:"detail-table-header-cell",title:Ir,style:vue.normalizeStyle({fontSize:ct.tableFontSize})},vue.toDisplayString(Ir&&Ir.includes("(主指标)")?Ir.replace("(主指标)",""):Ir),13,_hoisted_6$4)]),bodyCell:vue.withCtx(({text:Ir,column:Br})=>[vue.createElementVNode("div",{title:Ir,style:vue.normalizeStyle({fontSize:ct.tableFontSize})},[vue.createTextVNode(vue.toDisplayString(ct.formatMainCell(Ir,Br))+" ",1),vue.createElementVNode("span",{style:vue.normalizeStyle({fontSize:ct.miniFontSize,color:"#0BBBEE"})},vue.toDisplayString(ct.formatCellPercent(Ir,Br)),5)],12,_hoisted_7$4)]),summary:vue.withCtx(()=>[vue.createVNode(_r,{fixed:""},{default:vue.withCtx(()=>[vue.createVNode(wr,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ct.summaryList,(Ir,Br)=>(vue.openBlock(),vue.createBlock(Ar,{key:Br,index:Br,style:vue.normalizeStyle({textAlign:Ir.align||"left",height:ct.summaryHeight+"px",fontSize:ct.tableFontSize,fontWeight:600,color:"rgba(0, 0, 0, 0.85)",padding:"8px 16px",whiteSpace:"nowrap"})},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Br?Ir.value:"合计"),1)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1})]),_:1},8,["scroll","row-key","columns","data-source","row-class-name","showHeader","loading","onChange"])],4))],64)):ct.drillingMode==="pivotTable"?(vue.openBlock(),vue.createElementBlock("div",{key:2,style:vue.normalizeStyle({position:"relative",...ct.pivotTableStyle})},[vue.createVNode(Er,vue.mergeProps({ref:"pivotTableRef"},ct.pivotTableConfig,{pageMode:ct.pageMode,theme:ct.theme,fullMode:!1,allowDrill:!0,showFullScreen:!1,indicatorUrl:ct.indicatorUrl,relateKeyName:ct.indDetailInfo.keyName,allDimensions:ct.allDimensions,scaleValue:ct.scaleValue,defaultFontSize:ct.pivotTableFontSize,drillDetailUrl:ct.drillDetailUrl,drillConditions:ct.drillConditions,isMobile:ct.isMobile,isNeedEmptyRow:!1,componentList:ct.allComponentList,unitMap:ct.unitMap,enlargeContainer:"#norPageConfig",onTableChange:ct.onPivotTableChange}),null,16,["pageMode","theme","indicatorUrl","relateKeyName","allDimensions","scaleValue","defaultFontSize","drillDetailUrl","drillConditions","isMobile","componentList","unitMap","onTableChange"])],4)):vue.createCommentVNode("",!0),ct.dropDownMenuVisible?(vue.openBlock(),vue.createElementBlock("div",{key:3,class:"drop-down-menu",style:vue.normalizeStyle(ct.dropDownMenuStyle)},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ct.toBeSelectedDims,Ir=>(vue.openBlock(),vue.createElementBlock("div",{key:Ir.typeGuid,class:"drop-down-menu-item",title:Ir.name,onClick:Br=>ct.drillByDimension(Br,Ir.typeGuid)},vue.toDisplayString(Ir.name),9,_hoisted_8$4))),128))],4)):vue.createCommentVNode("",!0)]}),_:1},8,["visible","getContainer","wrap-class-name","bodyStyle","mask","onCancel"]),ct.isShowDetailMpdal?(vue.openBlock(),vue.createBlock(Sr,{key:0,ref:"lastDetailRef",theme:ct.theme,theDateInfo:ct.theDateInfo,scaleValue:ct.scaleValue,fontSize:ct.pivotTableFontSize,allDimensions:ct.allDimensions,isOutDrill:ct.isOutDrill,onClose:ct.onCloseDetailModal,onZoom:ct.onZoomModal},null,8,["theme","theDateInfo","scaleValue","fontSize","allDimensions","isOutDrill","onClose","onZoom"])):vue.createCommentVNode("",!0),ct.isShowSubDrillModal?(vue.openBlock(),vue.createBlock(kr,{key:1,ref:"subDrillModalRef",width:ct.width,theme:ct.theme,drillingMode:ct.drillingMode,pageMode:ct.pageMode,scaleValue:ct.scaleValue,pivotTableFontSize:ct.pivotTableFontSize,drillDetailUrl:ct.drillDetailUrl,isShowMask:ct.isIndFullScreen,isOutDrill:ct.isOutDrill,onClose:ct.onCloseModal,onZoom:ct.onZoomModal},null,8,["width","theme","drillingMode","pageMode","scaleValue","pivotTableFontSize","drillDetailUrl","isShowMask","isOutDrill","onClose","onZoom"])):vue.createCommentVNode("",!0)],64)}const DrillModal=_export_sfc$1(_sfc_main$z,[["render",_sfc_render$E],["__scopeId","data-v-ca6c06b3"]]),_sfc_main$y=vue.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,components:{IndicatorDetailModal,TrendModal,DrillModal,SourceModal},props:{...providerConfigComponentProps,pageId:{type:String,default:""},customId:{type:String,default:"ProviderConfig"},customStyle:{type:Object,default:()=>({})},fixedHeight:{type:String,default:"0px"},isOutDrill:{type:Boolean,default:!1}},setup(ct,{expose:Dn,emit:ur}){ct.pageId||useHrefParamsToGlobalVariables();const dr=vue.ref(!1),fr=vue.ref(),hr=vue.ref(),vr=vue.ref(),pr=vue.ref(),mr=vue.computed(()=>INDICATOR_URL),gr=vue.computed(()=>jn(ct.contextRequestUrl)),yr=vue.computed(()=>ct.pageMode),Cr=vue.computed(()=>ct.theme),br=vue.computed(()=>ct.width),Ar=vue.computed(()=>ct.height),wr=vue.computed(()=>ct.pageFontFamily),_r=vue.computed(()=>ct.textColor),Tr=vue.computed(()=>ct.fixedHeight?parseFloat(ct.fixedHeight):0),Er=vue.computed(()=>ct.isCompatible),xr=vue.computed(()=>ct.variableList),Sr=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)),kr=vue.computed(()=>parseFloat(ct.pivotTableFontSize)),Pr=vue.ref(),Ir=vue.ref({}),Br=vue.ref(!0),Or=()=>{Pr.value.setAttribute("datav-theme",ct.theme)},Nr=vue.ref(!1),jr=vue.ref({currentYmd:dayjs().format("YYYY-MM-DD"),currentYear:dayjs().format("YYYY"),currentMonth:dayjs().format("MM"),currentDay:dayjs().format("DD")}),Vr=vue.computed(()=>{const Vi={};if(vue.unref(xr))for(const Hi of vue.unref(xr))Vi[Hi.label]=Hi.value;return{$page:{...vue.unref(jr),...Vi}}});vue.provide(GLOBAL_VARIABLE,{globalVariable:Vr});const $r=vue.inject("usedComponentList",[]),zr=vue.inject("componentList",[]),Wr=vue.inject("setPageLoading",Vi=>{});vue.watch(Vr,()=>{ur("setGlobalVar",vue.unref(jr))},{deep:!0,immediate:!0});const qr=vue.computed(()=>{const Vi=[];for(const Wi of vue.unref($r))Wi.type==="ecanModal"?Vi.push(...Wi.componentList):Vi.push(Wi);return Vi});vue.watch(()=>ct.theme,()=>{Or()}),vue.onMounted(()=>{Or()});const Mr=vue.computed(()=>{const Vi=[],Wi=vue.unref(zr).filter(Hi=>Hi.type==="ecanModal");for(const Hi of Wi)Hi!=null&&Hi.requestList&&Vi.push(...Hi.requestList);return[...Vi,...ct.requestList]}),Lr=Vi=>Object.prototype.toString.call(Vi)==="[object Object]",Fr=Vi=>{const Wi=Vi.split(".");let Hi=vue.unref(Vr);for(const Xi of Wi)if(Hi&&Lr(Hi))Hi=Hi[Xi];else{Hi="";break}return Hi},Dr=vue.ref("");vue.provide(GLOBAL_CONFIG,{contextRequestUrl:gr,pageMode:yr,theme:Cr,touchEventId:Dr,width:br,height:Ar,fontFamily:wr,textColor:_r,requestList:Mr,isCompatible:Er,fixedHeight:Tr,getGlobalVar:Fr});const Gr=vue.ref({height:"100%",overflow:ct.pageMode==="design"?"":"hidden"});vue.provide("setPageHeight",(Vi,Wi)=>{let Hi=0;Vi==="auto"?(Hi=Vi,Ir.value={widthScale:1,heightScale:1}):(Hi=Vi.heightScale,Ir.value=Vi),(!Er.value||!Sr.value)&&(Hi=parseFloat(Wi||Ar.value)*Hi+"px"),Gr.value.height=Hi}),vue.provide("isMobile",Sr.value),vue.provide("getContainerMap",()=>ct.containerMap),vue.provide("getCombinationMap",()=>ct.combinationMap),vue.provide("templateOperate",{pageId:ct.pageId,templateEmit:ur,setTemplateData:Vi=>{var Wi;if(Vi!=null&&Vi.pageId){const{componentId:Hi,...Xi}=Vi;(Wi=window.config)!=null&&Wi.urlParams||(window.config.urlParams={}),window.config.urlParams[Vi.pageId]=Xi,ur("templateChange",Vi)}}});const Rr=vue.ref(),Qr=new Map,Kr=()=>Qr,Hr=Vi=>{let Wi=Qr.get(Vi);if(!Wi){const Hi=vue.unref(zr).find(Xi=>Xi.keyName===Vi);Hi&&(Wi=Qr.get(Hi.id))}return Wi},Ur=(Vi,Wi)=>{var Hi;if(Rr.value=Wi,Qr.set(Vi,Wi),!ct.pageId){const Xi=vue.unref($r).find(ea=>ea.id===Vi);Xi&&((Hi=window.config)!=null&&Hi.record||(window.config.record={}),window.config.record[Xi.keyName]=Wi)}},Jr=()=>{Rr.value=null},Yr=(Vi,Wi)=>{var Xi;let Hi=Vi;if(Hi){const ea=Vi.match(/\{(.+?)\}/g);if(ea!=null&&ea.length){let ta=ea[0].slice(1,-1).trim();const la=ta.match(/\[(.+?)\]/g);let ca="";la!=null&&la.length&&(ta=ta.replace(la[0],""),ca=la[0].slice(1,-1).trim());const sa=vue.unref(qr).find(fa=>fa.keyName===ta);if(sa)if(sa.type==="ecanCirculate"){const{rows:fa=[]}=vue.unref(da)[sa.id]||{},{extendData:ma={}}=Wi||{},{circulateKeyName:zi}=ma,ei=(Xi=ma[zi])==null?void 0:Xi.index;ei&&fa[ei-1]&&(Hi=fa[ei-1][ca])}else{const fa=Hr(sa.id),{type:ma,value:zi,RECORD:ei,recordData:li={}}=fa||{};Nn(ma,MODEL_KEY_LIST)?Hi=ei[ca]:Nn(ma,"select")?li[ca]?Hi=li[ca]:Hi=vue.unref(zi):Nn(ma,["rangePicker","date"])?dayjs.isDayjs(vue.unref(fa[ca]))?Hi=vue.unref(fa[ca]).format(fa.format):Hi=vue.unref(fa[ca]):Hi=zi}else{const fa=window.config.requestParams||{},ma=window.location.search.slice(1).split("&"),zi={};for(const li of ma)if(li!=null&&li.includes("=")){const gi=li.split("=");zi[gi[0]]=gi[1]||""}Hi={...zi,...fa}[ta]||""}}}return Hi},si=Vi=>{let Wi=Vi;if(Wi){const Hi=Vi.match(/\{(.+?)\}/g);if(Hi!=null&&Hi.length){let Xi=Hi[0].slice(1,-1).trim();const ea=Xi.match(/\[(.+?)\]/g);let ta="";ea!=null&&ea.length&&(Xi=Xi.replace(ea[0],""),ta=ea[0].slice(1,-1).trim());const la=vue.unref(qr).find(ca=>ca.keyName===Xi);if(la){const ca=Hr(la.id),{type:sa,value:fa,RECORD:ma,recordData:zi={}}=ca||{};Nn(sa,MODEL_KEY_LIST)?Wi=ma[ta]:Nn(sa,"select")?zi[ta]?Wi=zi[ta]:Wi=vue.unref(fa):Nn(sa,["rangePicker","date"])?dayjs.isDayjs(vue.unref(ca[ta]))?Wi=vue.unref(ca[ta]).format(ca.format):Wi=vue.unref(ca[ta]):Wi=fa}else{const ca=window.config.requestParams||{},sa=window.location.search.slice(1).split("&"),fa={};for(const zi of sa)if(zi!=null&&zi.includes("=")){const ei=zi.split("=");fa[ei[0]]=ei[1]||""}Wi={...fa,...ca}[Xi]||""}}}return Wi},fi=new Map,_i={},bi=async(Vi,Wi)=>{var la;const{requestName:Hi}=Vi,Xi=await useRequestData({...Vi,projectRequestUrl:vue.unref(gr),getModel:Hr})(),ea=((la=Xi==null?void 0:Xi.data)==null?void 0:la.data)||{};Vi.requestKeyName&&(jr.value[Vi.requestKeyName]=ea);const ta=fi.get(Hi);if(ta!=null&&ta.length&&(!Wi||_i[Hi])){for(const ca of ta)ca(ea);Wi||fi.delete(Hi)}},pi=(Vi,Wi)=>{_i[Vi]&&(clearInterval(_i[Vi]),delete _i[Vi],fi.delete(Vi));const Hi=vue.unref(qr).filter(ea=>ea.dataType==="request"&&!ea.openCustomRequestData&&ea.customRequestName===Vi),Xi=fi.get(Vi)||[];if((Hi==null?void 0:Hi.length)>Xi.length&&(Xi.push(Wi),fi.set(Vi,Xi),(Hi==null?void 0:Hi.length)===Xi.length)){const ea=vue.unref(Mr).find(ta=>ta.requestName===Vi);ea&&(ea!=null&&ea.isOpenRequestTimer&&(ea!=null&&ea.requestInterval)?(bi(ea,!0),_i[Vi]=setInterval(()=>{bi(ea,!0)},ea.requestInterval*1e3)):bi(ea))}};vue.provide(GLOBAL_MODEL,{getGlobalModel:Hr,setGlobalModel:Ur,getAllGlobalModel:Kr,clearInteractiveData:Jr,getRecordValueByKeyName:si,getValueFromCirculate:Yr,hanldePageRequestData:pi,interactiveData:Rr});const mi=vue.ref({}),xi=(Vi,Wi)=>{mi.value[Vi]=Wi};vue.provide(LOADED_DATA,{loadedData:mi,setLoadedData:xi});const ni=[],ai=()=>{ni.pop()},Xr=Vi=>{ni.push(Vi)},vi=new Map,Si=Vi=>vi.get(Vi),ri=(Vi,Wi)=>{vi.set(Vi,Wi)};vue.provide(MODAL_MODEL,{popUseModalIds:ai,pushUseModalIds:Xr,getModalModel:Si,setModalModel:ri});const yi=mitt(),di=new Set,Ei=new Map,Oi=(Vi,Wi,Hi)=>{di.add(Vi),Ei.set(Vi,{sort:Hi,events:Wi}),vue.onBeforeUnmount(()=>{Ei.delete(Vi)})},Li=async(Vi=[],Wi,Hi)=>{const Xi=new Map,{type:ea}=Hi||{};if(ea==="refreshTemplate")for(const ca of Vi){const sa=Ei.get(ca.target),{updateByUrlParams:fa}=(sa==null?void 0:sa.events)||{};typeof fa=="function"&&fa()}function ta({key:ca,eventName:sa,params:fa}){if(!ca||!sa)return;const ma=Ei.get(ca);if(typeof(ma==null?void 0:ma.events[sa])=="function"){const{sort:zi}=ma,ei={fn:ma.events[sa],params:fa};if(Xi.has(zi)){const li=Xi.get(zi);li==null||li.push(ei)}else Xi.set(zi,[ei])}}for(const ca of Vi){const{target:sa,emit:fa}=ca;if(sa==="PAGE"){const ma=ni.length;let zi=[];if(ma===0)zi=[...di];else{const ei=ni[ma-1];zi=[...Si(ei)]}zi.forEach(ei=>{ta({key:ei,eventName:fa,params:Wi})})}else(!vue.unref(Br)||fa!=="refreshData")&&ta({key:sa,eventName:fa,params:Wi})}const la=Array.from(Xi);la.sort((ca,sa)=>sa[0]-ca[0]);try{for(let ca=0;ca<la.length;ca++){const sa=la[ca][1];await Fi(sa)}}catch(ca){console.error(ca)}};vue.provide(EVENT_BUS,{onEvent:Oi,emitEvent:Li});const Ri=vue.ref(0),hi=()=>{Ri.value=vue.unref(Ri)+1};vue.provide(GLOBAL_TOKEN,{requestToken:hi});const Ci=new Map,Di=new Map,$i=({requestFn:Vi=()=>{},sortNum:Wi=0,id:Hi=""})=>{if(Ci.has(Wi)){const Xi=Ci.get(Wi);Xi==null||Xi.push(Vi)}else Ci.set(Wi,[Vi]);Di.set(Hi,Vi)};function Fi(Vi){return new Promise((Wi,Hi)=>{const Xi=[];for(const ea of Vi)Xi.push(new Promise(async ta=>{if(typeof ea=="function")await ea();else{const{fn:la,params:ca}=ea;typeof la=="function"&&(ca?await la(ca):await la())}ta()}));Promise.all(Xi).then(ea=>{Wi(ea)}).catch(ea=>{Hi(ea)})})}const qi=Vi=>new Promise(async(Wi,Hi)=>{if(Vi){if(typeof Vi=="string"){const Xi=Di.get(Vi);if(typeof Xi=="function"){const ea=request.interceptors.response.use(ta=>(Wi(ta),ta),ta=>(Hi(ta),Promise.reject(ta)));Xi(),request.interceptors.response.eject(ea)}}}else{const Xi=Array.from(Ci);Xi.sort((ta,la)=>la[0]-ta[0]);const ea=Xi.length;ea&&Wr(!0);try{ct.pageMode!=="design"&&vue.unref(Ri)>0;for(let ta=0;ta<ea;ta++){const la=Xi[ta][1];await Fi(la)}}catch(ta){console.error(ta)}finally{Ci.clear(),Wi(null),Br.value=!1,Wr(!1)}}});vue.provide(REQUEST_MODEL,{setRequest:$i,touchRequest:qi});const Ji=()=>{yi.emit(REFRESH_PAGE)};vue.provide(REFRESH_PAGE,{emitRefreshPage:Ji});const ua=Vi=>{yi.on(REFRESH_PAGE,()=>Vi()),vue.onMounted(()=>{yi.off(REFRESH_PAGE)})},da=vue.ref({}),va=vue.ref();vue.provide(All_COMPONENT_RES_DATA,{allComponentResData:da});const ya=Vi=>{const{id:Wi,data:Hi}=Vi;Hi.success&&(da.value[Wi]=(Hi==null?void 0:Hi.data)||{})},xa=Vi=>{va.value=Vi},Sa=(Vi,Wi)=>{switch(Vi){case"SHOW_INDICATOR_DETAIL_MODAL":dr.value=!0,vue.nextTick(()=>{vue.unref(fr).showModal(Wi)});break;case"SAVE_COMPONENT_RES_DATA":ya(Wi);break;case"SAVE_INDEX_PANEL_REQ_PARAMS":xa(Wi);break}};vue.provide(COMMON_OPERATE,{operateAction:(Vi,Wi)=>{Sa(Vi,Wi)}}),vue.watchEffect(()=>{var Vi;if((Vi=vue.unref($r))!=null&&Vi.length&&vue.unref(yr)!=="design"){const{jumpType:Wi,jumpTime:Hi,jumpPage:Xi,jumpLink:ea}=ct;if(Hi!=null&&Hi.value){let ta=0;switch(Hi==null?void 0:Hi.suffix){case"hours":ta=Hi.value*60*60*1e3;break;case"minute":ta=Hi.value*60*1e3;break;case"seconds":ta=Hi.value*1e3;break}setTimeout(()=>{let la="";Wi==="page"&&Xi?la=usePageUrl(vue.unref(yr),Xi):Wi==="link"&&ea&&(la=ea),la=jn(la),window.open(la,"_self")},ta)}}});const La=Vi=>{var Wi;vue.unref(hr).showModal({data:Vi,indicatorUrl:vue.unref(mr),indicatorToken:((Wi=window==null?void 0:window.config)==null?void 0:Wi.indicatorToken)||"",context:CONTEXT,pageId:getPageId()})},qa=Vi=>{vue.unref(vr).showModal({data:Vi,pageConfig:ct,unitText:Ba(Vi)})},ka=Vi=>{var Wi;vue.unref(pr).showModal({data:Vi,indicatorUrl:vue.unref(mr),indicatorToken:((Wi=window==null?void 0:window.config)==null?void 0:Wi.indicatorToken)||"",context:CONTEXT,pageId:getPageId()})},Ba=Vi=>{let Wi="",Hi="";const{componentConfig:Xi}=Vi;for(const ta in Xi)if(Xi[ta].key==="currentValue"){Hi=ta;break}const ea=vue.unref(zr).find(ta=>ta.id===Hi);return ea!=null&&ea.unitText&&(Wi=ea.unitText),Wi};vue.provide("showIndDetail",La),vue.provide("showIndSource",ka);const Ha={indexName:"指标名",currentValue:"当前值",refValue:"目标值",lastValueRate:"同比",lastCycleValueRate:"环比",systemSource:"指标标记"};let Ia=null;window.addEventListener("message",async Vi=>{var Wi,Hi;if(Vi.source!==window&&(Ia=Vi,ct.customId==="ProviderConfig")){const Xi=Vi.data||{};let ea={data:{}};try{const ta=(Wi=vue.unref($r))==null?void 0:Wi.filter(la=>la.type==="ecanIndexPanel");if(Xi.type==="checkData")ea={type:"checkDataRes",hasData:!!(ta!=null&&ta.length),data:{}};else if(Xi.type==="getData"){const la={};let ca="";if(ta!=null&&ta.length)if((Hi=vue.unref(fr).indDetailInfo)!=null&&Hi.visible){const sa=vue.unref(fr).getPivotRecordData(),{columns:fa,rows:ma,indicators:zi,requestParams:ei,data:li,type:gi,drillContext:Ai}=sa;gi==="pivotTable"?(ei&&(la.全局筛选条件=Ga({params:ei,onlySql:!1})),la.当前表结构声明={分析维度:ma.concat(fa).map(wi=>wi.title),绝对值指标:zi.filter(wi=>!wi.calculateType).map(wi=>wi.title),"趋势/比率指标":zi.filter(wi=>wi.calculateType).map(wi=>wi.title)},la.明细数据=li):(la.钻取上下文=Ai,la.流水日志=li),ca=gi}else{la.运营数据=[];for(const sa of ta){const fa={};for(const ma in sa.componentConfig){const zi=sa.componentConfig[ma];if(zi.show){const li=(ma?document.querySelector(`div[cpntid="${ma}"]`).textContent:"").split(/:|:/);li!=null&&li.length&&(fa[Ha[zi.key]]=li[li.length-1])}}la.运营数据.push(fa)}vue.unref(va)&&(la.分析背景=Ga({params:vue.unref(va),onlySql:!0}))}ea={type:"getDataRes",data:la},ca&&(ea.dataType=ca)}else Xi.type==="triggerDrill"&&(dr.value=!0,Nr.value=!0,vue.nextTick(()=>{vue.unref(fr).showModal(Xi.data)}))}catch(ta){ea={error:ta.message,data:{}}}["getData","checkData"].includes(Xi.type)&&Vi.source.postMessage(ea,Vi.origin)}});function Ga({params:Vi,onlySql:Wi}){var zi;const{sqlConditions:Hi,queryColumns:Xi,indicatorList:ea}=Vi,ta=Xi.concat(ea).filter(ei=>ei.conditions),la=loopConditions(ta,"conditions",!0),ca=loopConditions(Hi,"sqlConditions",!1);let sa=[];const fa={};if(Wi)sa=ca;else{sa=lodashEs.cloneDeep(la);for(const ei of ca)if(!la.find(li=>li.typeGuid===ei.typeGuid)){const li=sa.findIndex(gi=>ei.typeGuid!=="the_date"&&(gi.typeGuid===ei.typeGuid||gi.typeGuid+"_code"===ei.typeGuid)||gi.typeGuid===ei.typeGuid+"_code");li!==-1&&sa.splice(li,1),sa.push(ei)}}if(!sa.find(ei=>ei.typeGuid==="the_date"&&!ei.alias)){const ei=sa.find(gi=>gi.alias.includes("-startTime")),li=sa.find(gi=>gi.alias.includes("-endTime"));if(ei&&li){const gi=ei.alias.replace("-startTime","");gi&&(fa[gi]=`${ei.fieldValue}至${li.fieldValue}`)}}for(const ei of sa){const{alias:li,label:gi,title:Ai,fieldValue:wi,variateName:Ni}=ei;if(li){if(!li.includes("-startTime")&&!li.includes("-endTime")&&!Ni){const Mi=vue.unref($r).find(ji=>ji.keyName===li);if(["ecanSelect"].includes(Mi==null?void 0:Mi.type)){const ji=((zi=vue.unref(da)[Mi.id])==null?void 0:zi.rows)||[];if(Mi.mode==="multiple"){const Ui=wi.split(",");(Ui==null?void 0:Ui.length)===(ji==null?void 0:ji.length)?fa[li]="全院":fa[li]=ji.filter(oa=>Ui.includes(oa.value)).map(oa=>oa.label).join(",")}else{const Ui=ji.find(oa=>oa.value===wi);Ui&&(fa[li]=Ui.label)}}else fa[li]=wi}}else fa[Ai||gi]=wi}return fa}const Va=()=>{var Vi;(Vi=Ia==null?void 0:Ia.source)==null||Vi.postMessage({type:"close"},Ia==null?void 0:Ia.origin),dr.value=!1},Ua=()=>{var Vi;(Vi=Ia==null?void 0:Ia.source)==null||Vi.postMessage({type:"zoom"},Ia==null?void 0:Ia.origin)};return vue.onBeforeUnmount(()=>{Ci==null||Ci.clear(),Di==null||Di.clear()}),Dn({touchRequest:qi,getGlobalModel:Hr,onRefreshPage:ua,emitEvent:Li,getRecordValueByKeyName:si,showIndDetail:La,showTrend:qa,showSource:ka,props:ct,systemVariable:jr}),{providerConfig:Pr,configStyle:Gr,indicatorUrl:mr,theme:Cr,drillModalRef:fr,indDetailModalRef:hr,trendModalRef:vr,sourceModalRef:pr,scaleValue:Ir,defaultPivotTableFontSize:kr,isMobile:Sr,isShowDrillModal:dr,isOutTriggerDrill:Nr,onCloseModal:Va,onZoomModal:Ua}}}),ProviderConfig_vue_vue_type_style_index_0_scoped_426efc47_lang="",ProviderConfig_vue_vue_type_style_index_1_lang="",_hoisted_1$p=["id"];function _sfc_render$D(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("drill-modal"),pr=vue.resolveComponent("indicator-detail-modal"),mr=vue.resolveComponent("trend-modal"),gr=vue.resolveComponent("source-modal");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",{class:"provider-config-container",id:ct.customId,ref:"providerConfig",style:vue.normalizeStyle({...ct.configStyle,fontFamily:ct.pageFontFamily,...ct.customStyle})},[vue.renderSlot(ct.$slots,"default",{},void 0,!0)],12,_hoisted_1$p),ct.isShowDrillModal?(vue.openBlock(),vue.createBlock(vr,{key:0,ref:"drillModalRef",width:ct.width,theme:ct.theme,drillingMode:ct.isOutTriggerDrill?"normalTable":ct.drillingMode,pageMode:ct.pageMode,scaleValue:ct.scaleValue,pivotTableFontSize:ct.defaultPivotTableFontSize,drillDetailUrl:ct.drillDetailUrl,isOutDrill:ct.isOutDrill,onClose:ct.onCloseModal,onZoom:ct.onZoomModal},null,8,["width","theme","drillingMode","pageMode","scaleValue","pivotTableFontSize","drillDetailUrl","isOutDrill","onClose","onZoom"])):vue.createCommentVNode("",!0),vue.createVNode(pr,{ref:"indDetailModalRef",theme:ct.theme},null,8,["theme"]),vue.createVNode(mr,{ref:"trendModalRef",theme:ct.theme},null,8,["theme"]),vue.createVNode(gr,{ref:"sourceModalRef",theme:ct.theme},null,8,["theme"])],64)}const ProviderConfig=_export_sfc$1(_sfc_main$y,[["render",_sfc_render$D],["__scopeId","data-v-426efc47"]]),EcanProviderConfig=withInstall$1(ProviderConfig),textProps={...props$1,name:"文本",keyName:"文本",type:"ecanText",width:"100px",height:"40px",text:"文字",lineHeight:"18px",color:"",variableColor:"",fontSize:"14px",fontFamily:"",fontWeight:400,textShadow:"",justifyContent:"center",alignItems:"center",variableFontSize:"14px",variableDefaultValue:"0",format:"",target:"self",href:"",linkPage:"",data:{},percentageSide:"left",increaseColor:"",declineColor:"",minusSignShow:!0,unitShow:!0,unitText:"",unitFontSize:"14px",unitFontWeight:400,unitColor:"#333",unitTop:"",unitLeft:"",graphicConfig:{},targetShow:!1,targetRule:"",targetValue:"",notExpectColor:"",gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",openCustomRequestData:!0,customRequestName:"",customRequestField:"",showEllipsis:!1,showAnimation:!1,transParams:[],exceedConfig:"",targetTemplate:"",dataSetchecked:!1,titleContent:"",titleBackgroundColor:"#ffffff",titleFontColor:"#000000",isMarkDown:!1,isContentMarkDown:!1,parentId:"",associatId:"",useWarningStatus:!1,unitDefaultText:""},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(ct){defaults$5.exports.defaults=ct}defaults$5.exports={defaults:getDefaults$1(),getDefaults:getDefaults$1,changeDefaults:changeDefaults$1};const escapeTest=/[&<>"']/,escapeReplace=/[&<>"']/g,escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g,escapeReplacements={"&":"&","<":"<",">":">",'"':""","'":"'"},getEscapeReplacement=ct=>escapeReplacements[ct];function escape$3(ct,Dn){if(Dn){if(escapeTest.test(ct))return ct.replace(escapeReplace,getEscapeReplacement)}else if(escapeTestNoEncode.test(ct))return ct.replace(escapeReplaceNoEncode,getEscapeReplacement);return ct}const unescapeTest=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function unescape$1(ct){return ct.replace(unescapeTest,(Dn,ur)=>(ur=ur.toLowerCase(),ur==="colon"?":":ur.charAt(0)==="#"?ur.charAt(1)==="x"?String.fromCharCode(parseInt(ur.substring(2),16)):String.fromCharCode(+ur.substring(1)):""))}const caret=/(^|[^\[])\^/g;function edit$1(ct,Dn){ct=ct.source||ct,Dn=Dn||"";const ur={replace:(dr,fr)=>(fr=fr.source||fr,fr=fr.replace(caret,"$1"),ct=ct.replace(dr,fr),ur),getRegex:()=>new RegExp(ct,Dn)};return ur}const nonWordAndColonTest=/[^\w:]/g,originIndependentUrl=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function cleanUrl$1(ct,Dn,ur){if(ct){let dr;try{dr=decodeURIComponent(unescape$1(ur)).replace(nonWordAndColonTest,"").toLowerCase()}catch{return null}if(dr.indexOf("javascript:")===0||dr.indexOf("vbscript:")===0||dr.indexOf("data:")===0)return null}Dn&&!originIndependentUrl.test(ur)&&(ur=resolveUrl(Dn,ur));try{ur=encodeURI(ur).replace(/%25/g,"%")}catch{return null}return ur}const baseUrls={},justDomain=/^[^:]+:\/*[^/]*$/,protocol=/^([^:]+:)[\s\S]*$/,domain=/^([^:]+:\/*[^/]*)[\s\S]*$/;function resolveUrl(ct,Dn){baseUrls[" "+ct]||(justDomain.test(ct)?baseUrls[" "+ct]=ct+"/":baseUrls[" "+ct]=rtrim$1(ct,"/",!0)),ct=baseUrls[" "+ct];const ur=ct.indexOf(":")===-1;return Dn.substring(0,2)==="//"?ur?Dn:ct.replace(protocol,"$1")+Dn:Dn.charAt(0)==="/"?ur?Dn:ct.replace(domain,"$1")+Dn:ct+Dn}const noopTest$1={exec:function(){}};function merge$2(ct){let Dn=1,ur,dr;for(;Dn<arguments.length;Dn++){ur=arguments[Dn];for(dr in ur)Object.prototype.hasOwnProperty.call(ur,dr)&&(ct[dr]=ur[dr])}return ct}function splitCells$1(ct,Dn){const ur=ct.replace(/\|/g,(hr,vr,pr)=>{let mr=!1,gr=vr;for(;--gr>=0&&pr[gr]==="\\";)mr=!mr;return mr?"|":" |"}),dr=ur.split(/ \|/);let fr=0;if(dr[0].trim()||dr.shift(),dr[dr.length-1].trim()||dr.pop(),dr.length>Dn)dr.splice(Dn);else for(;dr.length<Dn;)dr.push("");for(;fr<dr.length;fr++)dr[fr]=dr[fr].trim().replace(/\\\|/g,"|");return dr}function rtrim$1(ct,Dn,ur){const dr=ct.length;if(dr===0)return"";let fr=0;for(;fr<dr;){const hr=ct.charAt(dr-fr-1);if(hr===Dn&&!ur)fr++;else if(hr!==Dn&&ur)fr++;else break}return ct.substr(0,dr-fr)}function findClosingBracket$1(ct,Dn){if(ct.indexOf(Dn[1])===-1)return-1;const ur=ct.length;let dr=0,fr=0;for(;fr<ur;fr++)if(ct[fr]==="\\")fr++;else if(ct[fr]===Dn[0])dr++;else if(ct[fr]===Dn[1]&&(dr--,dr<0))return fr;return-1}function checkSanitizeDeprecation$1(ct){ct&&ct.sanitize&&!ct.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(ct,Dn){if(Dn<1)return"";let ur="";for(;Dn>1;)Dn&1&&(ur+=ct),Dn>>=1,ct+=ct;return ur+ct}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(ct,Dn,ur,dr){const fr=Dn.href,hr=Dn.title?escape$2(Dn.title):null,vr=ct[1].replace(/\\([\[\]])/g,"$1");if(ct[0].charAt(0)!=="!"){dr.state.inLink=!0;const pr={type:"link",raw:ur,href:fr,title:hr,text:vr,tokens:dr.inlineTokens(vr,[])};return dr.state.inLink=!1,pr}else return{type:"image",raw:ur,href:fr,title:hr,text:escape$2(vr)}}function indentCodeCompensation(ct,Dn){const ur=ct.match(/^(\s+)(?:```)/);if(ur===null)return Dn;const dr=ur[1];return Dn.split(`
|
|
111
|
+
*/function _typeof$2(ct){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function(Dn){return typeof Dn}:_typeof$2=function(Dn){return Dn&&typeof Symbol=="function"&&Dn.constructor===Symbol&&Dn!==Symbol.prototype?"symbol":typeof Dn},_typeof$2(ct)}function _defineProperty$1(ct,Dn,ur){return Dn in ct?Object.defineProperty(ct,Dn,{value:ur,enumerable:!0,configurable:!0,writable:!0}):ct[Dn]=ur,ct}function _extends(){return _extends=Object.assign||function(ct){for(var Dn=1;Dn<arguments.length;Dn++){var ur=arguments[Dn];for(var dr in ur)Object.prototype.hasOwnProperty.call(ur,dr)&&(ct[dr]=ur[dr])}return ct},_extends.apply(this,arguments)}function _objectSpread(ct){for(var Dn=1;Dn<arguments.length;Dn++){var ur=arguments[Dn]!=null?arguments[Dn]:{},dr=Object.keys(ur);typeof Object.getOwnPropertySymbols=="function"&&(dr=dr.concat(Object.getOwnPropertySymbols(ur).filter(function(fr){return Object.getOwnPropertyDescriptor(ur,fr).enumerable}))),dr.forEach(function(fr){_defineProperty$1(ct,fr,ur[fr])})}return ct}function _objectWithoutPropertiesLoose(ct,Dn){if(ct==null)return{};var ur={},dr=Object.keys(ct),fr,hr;for(hr=0;hr<dr.length;hr++)fr=dr[hr],!(Dn.indexOf(fr)>=0)&&(ur[fr]=ct[fr]);return ur}function _objectWithoutProperties(ct,Dn){if(ct==null)return{};var ur=_objectWithoutPropertiesLoose(ct,Dn),dr,fr;if(Object.getOwnPropertySymbols){var hr=Object.getOwnPropertySymbols(ct);for(fr=0;fr<hr.length;fr++)dr=hr[fr],!(Dn.indexOf(dr)>=0)&&Object.prototype.propertyIsEnumerable.call(ct,dr)&&(ur[dr]=ct[dr])}return ur}var version="1.10.2";function userAgent(ct){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(ct)}var IE11OrLess=userAgent(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Edge=userAgent(/Edge/i),FireFox=userAgent(/firefox/i),Safari=userAgent(/safari/i)&&!userAgent(/chrome/i)&&!userAgent(/android/i),IOS=userAgent(/iP(ad|od|hone)/i),ChromeForAndroid=userAgent(/chrome/i)&&userAgent(/android/i),captureMode={capture:!1,passive:!1};function on(ct,Dn,ur){ct.addEventListener(Dn,ur,!IE11OrLess&&captureMode)}function off(ct,Dn,ur){ct.removeEventListener(Dn,ur,!IE11OrLess&&captureMode)}function matches(ct,Dn){if(Dn){if(Dn[0]===">"&&(Dn=Dn.substring(1)),ct)try{if(ct.matches)return ct.matches(Dn);if(ct.msMatchesSelector)return ct.msMatchesSelector(Dn);if(ct.webkitMatchesSelector)return ct.webkitMatchesSelector(Dn)}catch{return!1}return!1}}function getParentOrHost(ct){return ct.host&&ct!==document&&ct.host.nodeType?ct.host:ct.parentNode}function closest(ct,Dn,ur,dr){if(ct){ur=ur||document;do{if(Dn!=null&&(Dn[0]===">"?ct.parentNode===ur&&matches(ct,Dn):matches(ct,Dn))||dr&&ct===ur)return ct;if(ct===ur)break}while(ct=getParentOrHost(ct))}return null}var R_SPACE=/\s+/g;function toggleClass(ct,Dn,ur){if(ct&&Dn)if(ct.classList)ct.classList[ur?"add":"remove"](Dn);else{var dr=(" "+ct.className+" ").replace(R_SPACE," ").replace(" "+Dn+" "," ");ct.className=(dr+(ur?" "+Dn:"")).replace(R_SPACE," ")}}function css(ct,Dn,ur){var dr=ct&&ct.style;if(dr){if(ur===void 0)return document.defaultView&&document.defaultView.getComputedStyle?ur=document.defaultView.getComputedStyle(ct,""):ct.currentStyle&&(ur=ct.currentStyle),Dn===void 0?ur:ur[Dn];!(Dn in dr)&&Dn.indexOf("webkit")===-1&&(Dn="-webkit-"+Dn),dr[Dn]=ur+(typeof ur=="string"?"":"px")}}function matrix(ct,Dn){var ur="";if(typeof ct=="string")ur=ct;else do{var dr=css(ct,"transform");dr&&dr!=="none"&&(ur=dr+" "+ur)}while(!Dn&&(ct=ct.parentNode));var fr=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return fr&&new fr(ur)}function find(ct,Dn,ur){if(ct){var dr=ct.getElementsByTagName(Dn),fr=0,hr=dr.length;if(ur)for(;fr<hr;fr++)ur(dr[fr],fr);return dr}return[]}function getWindowScrollingElement(){var ct=document.scrollingElement;return ct||document.documentElement}function getRect(ct,Dn,ur,dr,fr){if(!(!ct.getBoundingClientRect&&ct!==window)){var hr,vr,pr,mr,gr,yr,Cr;if(ct!==window&&ct!==getWindowScrollingElement()?(hr=ct.getBoundingClientRect(),vr=hr.top,pr=hr.left,mr=hr.bottom,gr=hr.right,yr=hr.height,Cr=hr.width):(vr=0,pr=0,mr=window.innerHeight,gr=window.innerWidth,yr=window.innerHeight,Cr=window.innerWidth),(Dn||ur)&&ct!==window&&(fr=fr||ct.parentNode,!IE11OrLess))do if(fr&&fr.getBoundingClientRect&&(css(fr,"transform")!=="none"||ur&&css(fr,"position")!=="static")){var br=fr.getBoundingClientRect();vr-=br.top+parseInt(css(fr,"border-top-width")),pr-=br.left+parseInt(css(fr,"border-left-width")),mr=vr+hr.height,gr=pr+hr.width;break}while(fr=fr.parentNode);if(dr&&ct!==window){var Ar=matrix(fr||ct),wr=Ar&&Ar.a,_r=Ar&&Ar.d;Ar&&(vr/=_r,pr/=wr,Cr/=wr,yr/=_r,mr=vr+yr,gr=pr+Cr)}return{top:vr,left:pr,bottom:mr,right:gr,width:Cr,height:yr}}}function isScrolledPast(ct,Dn,ur){for(var dr=getParentAutoScrollElement(ct,!0),fr=getRect(ct)[Dn];dr;){var hr=getRect(dr)[ur],vr=void 0;if(ur==="top"||ur==="left"?vr=fr>=hr:vr=fr<=hr,!vr)return dr;if(dr===getWindowScrollingElement())break;dr=getParentAutoScrollElement(dr,!1)}return!1}function getChild(ct,Dn,ur){for(var dr=0,fr=0,hr=ct.children;fr<hr.length;){if(hr[fr].style.display!=="none"&&hr[fr]!==Sortable.ghost&&hr[fr]!==Sortable.dragged&&closest(hr[fr],ur.draggable,ct,!1)){if(dr===Dn)return hr[fr];dr++}fr++}return null}function lastChild(ct,Dn){for(var ur=ct.lastElementChild;ur&&(ur===Sortable.ghost||css(ur,"display")==="none"||Dn&&!matches(ur,Dn));)ur=ur.previousElementSibling;return ur||null}function index$2(ct,Dn){var ur=0;if(!ct||!ct.parentNode)return-1;for(;ct=ct.previousElementSibling;)ct.nodeName.toUpperCase()!=="TEMPLATE"&&ct!==Sortable.clone&&(!Dn||matches(ct,Dn))&&ur++;return ur}function getRelativeScrollOffset(ct){var Dn=0,ur=0,dr=getWindowScrollingElement();if(ct)do{var fr=matrix(ct),hr=fr.a,vr=fr.d;Dn+=ct.scrollLeft*hr,ur+=ct.scrollTop*vr}while(ct!==dr&&(ct=ct.parentNode));return[Dn,ur]}function indexOfObject(ct,Dn){for(var ur in ct)if(ct.hasOwnProperty(ur)){for(var dr in Dn)if(Dn.hasOwnProperty(dr)&&Dn[dr]===ct[ur][dr])return Number(ur)}return-1}function getParentAutoScrollElement(ct,Dn){if(!ct||!ct.getBoundingClientRect)return getWindowScrollingElement();var ur=ct,dr=!1;do if(ur.clientWidth<ur.scrollWidth||ur.clientHeight<ur.scrollHeight){var fr=css(ur);if(ur.clientWidth<ur.scrollWidth&&(fr.overflowX=="auto"||fr.overflowX=="scroll")||ur.clientHeight<ur.scrollHeight&&(fr.overflowY=="auto"||fr.overflowY=="scroll")){if(!ur.getBoundingClientRect||ur===document.body)return getWindowScrollingElement();if(dr||Dn)return ur;dr=!0}}while(ur=ur.parentNode);return getWindowScrollingElement()}function extend$1(ct,Dn){if(ct&&Dn)for(var ur in Dn)Dn.hasOwnProperty(ur)&&(ct[ur]=Dn[ur]);return ct}function isRectEqual(ct,Dn){return Math.round(ct.top)===Math.round(Dn.top)&&Math.round(ct.left)===Math.round(Dn.left)&&Math.round(ct.height)===Math.round(Dn.height)&&Math.round(ct.width)===Math.round(Dn.width)}var _throttleTimeout;function throttle$1(ct,Dn){return function(){if(!_throttleTimeout){var ur=arguments,dr=this;ur.length===1?ct.call(dr,ur[0]):ct.apply(dr,ur),_throttleTimeout=setTimeout(function(){_throttleTimeout=void 0},Dn)}}}function cancelThrottle(){clearTimeout(_throttleTimeout),_throttleTimeout=void 0}function scrollBy(ct,Dn,ur){ct.scrollLeft+=Dn,ct.scrollTop+=ur}function clone(ct){var Dn=window.Polymer,ur=window.jQuery||window.Zepto;return Dn&&Dn.dom?Dn.dom(ct).cloneNode(!0):ur?ur(ct).clone(!0)[0]:ct.cloneNode(!0)}var expando="Sortable"+new Date().getTime();function AnimationStateManager(){var ct=[],Dn;return{captureAnimationState:function(){if(ct=[],!!this.options.animation){var dr=[].slice.call(this.el.children);dr.forEach(function(fr){if(!(css(fr,"display")==="none"||fr===Sortable.ghost)){ct.push({target:fr,rect:getRect(fr)});var hr=_objectSpread({},ct[ct.length-1].rect);if(fr.thisAnimationDuration){var vr=matrix(fr,!0);vr&&(hr.top-=vr.f,hr.left-=vr.e)}fr.fromRect=hr}})}},addAnimationState:function(dr){ct.push(dr)},removeAnimationState:function(dr){ct.splice(indexOfObject(ct,{target:dr}),1)},animateAll:function(dr){var fr=this;if(!this.options.animation){clearTimeout(Dn),typeof dr=="function"&&dr();return}var hr=!1,vr=0;ct.forEach(function(pr){var mr=0,gr=pr.target,yr=gr.fromRect,Cr=getRect(gr),br=gr.prevFromRect,Ar=gr.prevToRect,wr=pr.rect,_r=matrix(gr,!0);_r&&(Cr.top-=_r.f,Cr.left-=_r.e),gr.toRect=Cr,gr.thisAnimationDuration&&isRectEqual(br,Cr)&&!isRectEqual(yr,Cr)&&(wr.top-Cr.top)/(wr.left-Cr.left)===(yr.top-Cr.top)/(yr.left-Cr.left)&&(mr=calculateRealTime(wr,br,Ar,fr.options)),isRectEqual(Cr,yr)||(gr.prevFromRect=yr,gr.prevToRect=Cr,mr||(mr=fr.options.animation),fr.animate(gr,wr,Cr,mr)),mr&&(hr=!0,vr=Math.max(vr,mr),clearTimeout(gr.animationResetTimer),gr.animationResetTimer=setTimeout(function(){gr.animationTime=0,gr.prevFromRect=null,gr.fromRect=null,gr.prevToRect=null,gr.thisAnimationDuration=null},mr),gr.thisAnimationDuration=mr)}),clearTimeout(Dn),hr?Dn=setTimeout(function(){typeof dr=="function"&&dr()},vr):typeof dr=="function"&&dr(),ct=[]},animate:function(dr,fr,hr,vr){if(vr){css(dr,"transition",""),css(dr,"transform","");var pr=matrix(this.el),mr=pr&&pr.a,gr=pr&&pr.d,yr=(fr.left-hr.left)/(mr||1),Cr=(fr.top-hr.top)/(gr||1);dr.animatingX=!!yr,dr.animatingY=!!Cr,css(dr,"transform","translate3d("+yr+"px,"+Cr+"px,0)"),repaint(dr),css(dr,"transition","transform "+vr+"ms"+(this.options.easing?" "+this.options.easing:"")),css(dr,"transform","translate3d(0,0,0)"),typeof dr.animated=="number"&&clearTimeout(dr.animated),dr.animated=setTimeout(function(){css(dr,"transition",""),css(dr,"transform",""),dr.animated=!1,dr.animatingX=!1,dr.animatingY=!1},vr)}}}}function repaint(ct){return ct.offsetWidth}function calculateRealTime(ct,Dn,ur,dr){return Math.sqrt(Math.pow(Dn.top-ct.top,2)+Math.pow(Dn.left-ct.left,2))/Math.sqrt(Math.pow(Dn.top-ur.top,2)+Math.pow(Dn.left-ur.left,2))*dr.animation}var plugins=[],defaults$6={initializeByDefault:!0},PluginManager={mount:function(Dn){for(var ur in defaults$6)defaults$6.hasOwnProperty(ur)&&!(ur in Dn)&&(Dn[ur]=defaults$6[ur]);plugins.push(Dn)},pluginEvent:function(Dn,ur,dr){var fr=this;this.eventCanceled=!1,dr.cancel=function(){fr.eventCanceled=!0};var hr=Dn+"Global";plugins.forEach(function(vr){ur[vr.pluginName]&&(ur[vr.pluginName][hr]&&ur[vr.pluginName][hr](_objectSpread({sortable:ur},dr)),ur.options[vr.pluginName]&&ur[vr.pluginName][Dn]&&ur[vr.pluginName][Dn](_objectSpread({sortable:ur},dr)))})},initializePlugins:function(Dn,ur,dr,fr){plugins.forEach(function(pr){var mr=pr.pluginName;if(!(!Dn.options[mr]&&!pr.initializeByDefault)){var gr=new pr(Dn,ur,Dn.options);gr.sortable=Dn,gr.options=Dn.options,Dn[mr]=gr,_extends(dr,gr.defaults)}});for(var hr in Dn.options)if(Dn.options.hasOwnProperty(hr)){var vr=this.modifyOption(Dn,hr,Dn.options[hr]);typeof vr<"u"&&(Dn.options[hr]=vr)}},getEventProperties:function(Dn,ur){var dr={};return plugins.forEach(function(fr){typeof fr.eventProperties=="function"&&_extends(dr,fr.eventProperties.call(ur[fr.pluginName],Dn))}),dr},modifyOption:function(Dn,ur,dr){var fr;return plugins.forEach(function(hr){Dn[hr.pluginName]&&hr.optionListeners&&typeof hr.optionListeners[ur]=="function"&&(fr=hr.optionListeners[ur].call(Dn[hr.pluginName],dr))}),fr}};function dispatchEvent(ct){var Dn=ct.sortable,ur=ct.rootEl,dr=ct.name,fr=ct.targetEl,hr=ct.cloneEl,vr=ct.toEl,pr=ct.fromEl,mr=ct.oldIndex,gr=ct.newIndex,yr=ct.oldDraggableIndex,Cr=ct.newDraggableIndex,br=ct.originalEvent,Ar=ct.putSortable,wr=ct.extraEventProperties;if(Dn=Dn||ur&&ur[expando],!!Dn){var _r,Tr=Dn.options,Er="on"+dr.charAt(0).toUpperCase()+dr.substr(1);window.CustomEvent&&!IE11OrLess&&!Edge?_r=new CustomEvent(dr,{bubbles:!0,cancelable:!0}):(_r=document.createEvent("Event"),_r.initEvent(dr,!0,!0)),_r.to=vr||ur,_r.from=pr||ur,_r.item=fr||ur,_r.clone=hr,_r.oldIndex=mr,_r.newIndex=gr,_r.oldDraggableIndex=yr,_r.newDraggableIndex=Cr,_r.originalEvent=br,_r.pullMode=Ar?Ar.lastPutMode:void 0;var xr=_objectSpread({},wr,PluginManager.getEventProperties(dr,Dn));for(var Sr in xr)_r[Sr]=xr[Sr];ur&&ur.dispatchEvent(_r),Tr[Er]&&Tr[Er].call(Dn,_r)}}var pluginEvent=function(Dn,ur){var dr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},fr=dr.evt,hr=_objectWithoutProperties(dr,["evt"]);PluginManager.pluginEvent.bind(Sortable)(Dn,ur,_objectSpread({dragEl,parentEl,ghostEl,rootEl,nextEl,lastDownEl,cloneEl,cloneHidden,dragStarted:moved,putSortable,activeSortable:Sortable.active,originalEvent:fr,oldIndex,oldDraggableIndex,newIndex,newDraggableIndex,hideGhostForTarget:_hideGhostForTarget,unhideGhostForTarget:_unhideGhostForTarget,cloneNowHidden:function(){cloneHidden=!0},cloneNowShown:function(){cloneHidden=!1},dispatchSortableEvent:function(pr){_dispatchEvent({sortable:ur,name:pr,originalEvent:fr})}},hr))};function _dispatchEvent(ct){dispatchEvent(_objectSpread({putSortable,cloneEl,targetEl:dragEl,rootEl,oldIndex,oldDraggableIndex,newIndex,newDraggableIndex},ct))}var dragEl,parentEl,ghostEl,rootEl,nextEl,lastDownEl,cloneEl,cloneHidden,oldIndex,newIndex,oldDraggableIndex,newDraggableIndex,activeGroup,putSortable,awaitingDragStarted=!1,ignoreNextClick=!1,sortables=[],tapEvt,touchEvt,lastDx,lastDy,tapDistanceLeft,tapDistanceTop,moved,lastTarget,lastDirection,pastFirstInvertThresh=!1,isCircumstantialInvert=!1,targetMoveDistance,ghostRelativeParent,ghostRelativeParentInitialScroll=[],_silent=!1,savedInputChecked=[],documentExists=typeof document<"u",PositionGhostAbsolutely=IOS,CSSFloatProperty=Edge||IE11OrLess?"cssFloat":"float",supportDraggable=documentExists&&!ChromeForAndroid&&!IOS&&"draggable"in document.createElement("div"),supportCssPointerEvents=function(){if(documentExists){if(IE11OrLess)return!1;var ct=document.createElement("x");return ct.style.cssText="pointer-events:auto",ct.style.pointerEvents==="auto"}}(),_detectDirection=function(Dn,ur){var dr=css(Dn),fr=parseInt(dr.width)-parseInt(dr.paddingLeft)-parseInt(dr.paddingRight)-parseInt(dr.borderLeftWidth)-parseInt(dr.borderRightWidth),hr=getChild(Dn,0,ur),vr=getChild(Dn,1,ur),pr=hr&&css(hr),mr=vr&&css(vr),gr=pr&&parseInt(pr.marginLeft)+parseInt(pr.marginRight)+getRect(hr).width,yr=mr&&parseInt(mr.marginLeft)+parseInt(mr.marginRight)+getRect(vr).width;if(dr.display==="flex")return dr.flexDirection==="column"||dr.flexDirection==="column-reverse"?"vertical":"horizontal";if(dr.display==="grid")return dr.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(hr&&pr.float&&pr.float!=="none"){var Cr=pr.float==="left"?"left":"right";return vr&&(mr.clear==="both"||mr.clear===Cr)?"vertical":"horizontal"}return hr&&(pr.display==="block"||pr.display==="flex"||pr.display==="table"||pr.display==="grid"||gr>=fr&&dr[CSSFloatProperty]==="none"||vr&&dr[CSSFloatProperty]==="none"&&gr+yr>fr)?"vertical":"horizontal"},_dragElInRowColumn=function(Dn,ur,dr){var fr=dr?Dn.left:Dn.top,hr=dr?Dn.right:Dn.bottom,vr=dr?Dn.width:Dn.height,pr=dr?ur.left:ur.top,mr=dr?ur.right:ur.bottom,gr=dr?ur.width:ur.height;return fr===pr||hr===mr||fr+vr/2===pr+gr/2},_detectNearestEmptySortable=function(Dn,ur){var dr;return sortables.some(function(fr){if(!lastChild(fr)){var hr=getRect(fr),vr=fr[expando].options.emptyInsertThreshold,pr=Dn>=hr.left-vr&&Dn<=hr.right+vr,mr=ur>=hr.top-vr&&ur<=hr.bottom+vr;if(vr&&pr&&mr)return dr=fr}}),dr},_prepareGroup=function(Dn){function ur(hr,vr){return function(pr,mr,gr,yr){var Cr=pr.options.group.name&&mr.options.group.name&&pr.options.group.name===mr.options.group.name;if(hr==null&&(vr||Cr))return!0;if(hr==null||hr===!1)return!1;if(vr&&hr==="clone")return hr;if(typeof hr=="function")return ur(hr(pr,mr,gr,yr),vr)(pr,mr,gr,yr);var br=(vr?pr:mr).options.group.name;return hr===!0||typeof hr=="string"&&hr===br||hr.join&&hr.indexOf(br)>-1}}var dr={},fr=Dn.group;(!fr||_typeof$2(fr)!="object")&&(fr={name:fr}),dr.name=fr.name,dr.checkPull=ur(fr.pull,!0),dr.checkPut=ur(fr.put),dr.revertClone=fr.revertClone,Dn.group=dr},_hideGhostForTarget=function(){!supportCssPointerEvents&&ghostEl&&css(ghostEl,"display","none")},_unhideGhostForTarget=function(){!supportCssPointerEvents&&ghostEl&&css(ghostEl,"display","")};documentExists&&document.addEventListener("click",function(ct){if(ignoreNextClick)return ct.preventDefault(),ct.stopPropagation&&ct.stopPropagation(),ct.stopImmediatePropagation&&ct.stopImmediatePropagation(),ignoreNextClick=!1,!1},!0);var nearestEmptyInsertDetectEvent=function(Dn){if(dragEl){Dn=Dn.touches?Dn.touches[0]:Dn;var ur=_detectNearestEmptySortable(Dn.clientX,Dn.clientY);if(ur){var dr={};for(var fr in Dn)Dn.hasOwnProperty(fr)&&(dr[fr]=Dn[fr]);dr.target=dr.rootEl=ur,dr.preventDefault=void 0,dr.stopPropagation=void 0,ur[expando]._onDragOver(dr)}}},_checkOutsideTargetEl=function(Dn){dragEl&&dragEl.parentNode[expando]._isOutsideThisEl(Dn.target)};function Sortable(ct,Dn){if(!(ct&&ct.nodeType&&ct.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(ct));this.el=ct,this.options=Dn=_extends({},Dn),ct[expando]=this;var ur={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(ct.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return _detectDirection(ct,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(vr,pr){vr.setData("Text",pr.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Sortable.supportPointer!==!1&&"PointerEvent"in window,emptyInsertThreshold:5};PluginManager.initializePlugins(this,ct,ur);for(var dr in ur)!(dr in Dn)&&(Dn[dr]=ur[dr]);_prepareGroup(Dn);for(var fr in this)fr.charAt(0)==="_"&&typeof this[fr]=="function"&&(this[fr]=this[fr].bind(this));this.nativeDraggable=Dn.forceFallback?!1:supportDraggable,this.nativeDraggable&&(this.options.touchStartThreshold=1),Dn.supportPointer?on(ct,"pointerdown",this._onTapStart):(on(ct,"mousedown",this._onTapStart),on(ct,"touchstart",this._onTapStart)),this.nativeDraggable&&(on(ct,"dragover",this),on(ct,"dragenter",this)),sortables.push(this.el),Dn.store&&Dn.store.get&&this.sort(Dn.store.get(this)||[]),_extends(this,AnimationStateManager())}Sortable.prototype={constructor:Sortable,_isOutsideThisEl:function(Dn){!this.el.contains(Dn)&&Dn!==this.el&&(lastTarget=null)},_getDirection:function(Dn,ur){return typeof this.options.direction=="function"?this.options.direction.call(this,Dn,ur,dragEl):this.options.direction},_onTapStart:function(Dn){if(Dn.cancelable){var ur=this,dr=this.el,fr=this.options,hr=fr.preventOnFilter,vr=Dn.type,pr=Dn.touches&&Dn.touches[0]||Dn.pointerType&&Dn.pointerType==="touch"&&Dn,mr=(pr||Dn).target,gr=Dn.target.shadowRoot&&(Dn.path&&Dn.path[0]||Dn.composedPath&&Dn.composedPath()[0])||mr,yr=fr.filter;if(_saveInputCheckedState(dr),!dragEl&&!(/mousedown|pointerdown/.test(vr)&&Dn.button!==0||fr.disabled)&&!gr.isContentEditable&&(mr=closest(mr,fr.draggable,dr,!1),!(mr&&mr.animated)&&lastDownEl!==mr)){if(oldIndex=index$2(mr),oldDraggableIndex=index$2(mr,fr.draggable),typeof yr=="function"){if(yr.call(this,Dn,mr,this)){_dispatchEvent({sortable:ur,rootEl:gr,name:"filter",targetEl:mr,toEl:dr,fromEl:dr}),pluginEvent("filter",ur,{evt:Dn}),hr&&Dn.cancelable&&Dn.preventDefault();return}}else if(yr&&(yr=yr.split(",").some(function(Cr){if(Cr=closest(gr,Cr.trim(),dr,!1),Cr)return _dispatchEvent({sortable:ur,rootEl:Cr,name:"filter",targetEl:mr,fromEl:dr,toEl:dr}),pluginEvent("filter",ur,{evt:Dn}),!0}),yr)){hr&&Dn.cancelable&&Dn.preventDefault();return}fr.handle&&!closest(gr,fr.handle,dr,!1)||this._prepareDragStart(Dn,pr,mr)}}},_prepareDragStart:function(Dn,ur,dr){var fr=this,hr=fr.el,vr=fr.options,pr=hr.ownerDocument,mr;if(dr&&!dragEl&&dr.parentNode===hr){var gr=getRect(dr);if(rootEl=hr,dragEl=dr,parentEl=dragEl.parentNode,nextEl=dragEl.nextSibling,lastDownEl=dr,activeGroup=vr.group,Sortable.dragged=dragEl,tapEvt={target:dragEl,clientX:(ur||Dn).clientX,clientY:(ur||Dn).clientY},tapDistanceLeft=tapEvt.clientX-gr.left,tapDistanceTop=tapEvt.clientY-gr.top,this._lastX=(ur||Dn).clientX,this._lastY=(ur||Dn).clientY,dragEl.style["will-change"]="all",mr=function(){if(pluginEvent("delayEnded",fr,{evt:Dn}),Sortable.eventCanceled){fr._onDrop();return}fr._disableDelayedDragEvents(),!FireFox&&fr.nativeDraggable&&(dragEl.draggable=!0),fr._triggerDragStart(Dn,ur),_dispatchEvent({sortable:fr,name:"choose",originalEvent:Dn}),toggleClass(dragEl,vr.chosenClass,!0)},vr.ignore.split(",").forEach(function(yr){find(dragEl,yr.trim(),_disableDraggable)}),on(pr,"dragover",nearestEmptyInsertDetectEvent),on(pr,"mousemove",nearestEmptyInsertDetectEvent),on(pr,"touchmove",nearestEmptyInsertDetectEvent),on(pr,"mouseup",fr._onDrop),on(pr,"touchend",fr._onDrop),on(pr,"touchcancel",fr._onDrop),FireFox&&this.nativeDraggable&&(this.options.touchStartThreshold=4,dragEl.draggable=!0),pluginEvent("delayStart",this,{evt:Dn}),vr.delay&&(!vr.delayOnTouchOnly||ur)&&(!this.nativeDraggable||!(Edge||IE11OrLess))){if(Sortable.eventCanceled){this._onDrop();return}on(pr,"mouseup",fr._disableDelayedDrag),on(pr,"touchend",fr._disableDelayedDrag),on(pr,"touchcancel",fr._disableDelayedDrag),on(pr,"mousemove",fr._delayedDragTouchMoveHandler),on(pr,"touchmove",fr._delayedDragTouchMoveHandler),vr.supportPointer&&on(pr,"pointermove",fr._delayedDragTouchMoveHandler),fr._dragStartTimer=setTimeout(mr,vr.delay)}else mr()}},_delayedDragTouchMoveHandler:function(Dn){var ur=Dn.touches?Dn.touches[0]:Dn;Math.max(Math.abs(ur.clientX-this._lastX),Math.abs(ur.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){dragEl&&_disableDraggable(dragEl),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var Dn=this.el.ownerDocument;off(Dn,"mouseup",this._disableDelayedDrag),off(Dn,"touchend",this._disableDelayedDrag),off(Dn,"touchcancel",this._disableDelayedDrag),off(Dn,"mousemove",this._delayedDragTouchMoveHandler),off(Dn,"touchmove",this._delayedDragTouchMoveHandler),off(Dn,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(Dn,ur){ur=ur||Dn.pointerType=="touch"&&Dn,!this.nativeDraggable||ur?this.options.supportPointer?on(document,"pointermove",this._onTouchMove):ur?on(document,"touchmove",this._onTouchMove):on(document,"mousemove",this._onTouchMove):(on(dragEl,"dragend",this),on(rootEl,"dragstart",this._onDragStart));try{document.selection?_nextTick(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(Dn,ur){if(awaitingDragStarted=!1,rootEl&&dragEl){pluginEvent("dragStarted",this,{evt:ur}),this.nativeDraggable&&on(document,"dragover",_checkOutsideTargetEl);var dr=this.options;!Dn&&toggleClass(dragEl,dr.dragClass,!1),toggleClass(dragEl,dr.ghostClass,!0),Sortable.active=this,Dn&&this._appendGhost(),_dispatchEvent({sortable:this,name:"start",originalEvent:ur})}else this._nulling()},_emulateDragOver:function(){if(touchEvt){this._lastX=touchEvt.clientX,this._lastY=touchEvt.clientY,_hideGhostForTarget();for(var Dn=document.elementFromPoint(touchEvt.clientX,touchEvt.clientY),ur=Dn;Dn&&Dn.shadowRoot&&(Dn=Dn.shadowRoot.elementFromPoint(touchEvt.clientX,touchEvt.clientY),Dn!==ur);)ur=Dn;if(dragEl.parentNode[expando]._isOutsideThisEl(Dn),ur)do{if(ur[expando]){var dr=void 0;if(dr=ur[expando]._onDragOver({clientX:touchEvt.clientX,clientY:touchEvt.clientY,target:Dn,rootEl:ur}),dr&&!this.options.dragoverBubble)break}Dn=ur}while(ur=ur.parentNode);_unhideGhostForTarget()}},_onTouchMove:function(Dn){if(tapEvt){var ur=this.options,dr=ur.fallbackTolerance,fr=ur.fallbackOffset,hr=Dn.touches?Dn.touches[0]:Dn,vr=ghostEl&&matrix(ghostEl,!0),pr=ghostEl&&vr&&vr.a,mr=ghostEl&&vr&&vr.d,gr=PositionGhostAbsolutely&&ghostRelativeParent&&getRelativeScrollOffset(ghostRelativeParent),yr=(hr.clientX-tapEvt.clientX+fr.x)/(pr||1)+(gr?gr[0]-ghostRelativeParentInitialScroll[0]:0)/(pr||1),Cr=(hr.clientY-tapEvt.clientY+fr.y)/(mr||1)+(gr?gr[1]-ghostRelativeParentInitialScroll[1]:0)/(mr||1);if(!Sortable.active&&!awaitingDragStarted){if(dr&&Math.max(Math.abs(hr.clientX-this._lastX),Math.abs(hr.clientY-this._lastY))<dr)return;this._onDragStart(Dn,!0)}if(ghostEl){vr?(vr.e+=yr-(lastDx||0),vr.f+=Cr-(lastDy||0)):vr={a:1,b:0,c:0,d:1,e:yr,f:Cr};var br="matrix(".concat(vr.a,",").concat(vr.b,",").concat(vr.c,",").concat(vr.d,",").concat(vr.e,",").concat(vr.f,")");css(ghostEl,"webkitTransform",br),css(ghostEl,"mozTransform",br),css(ghostEl,"msTransform",br),css(ghostEl,"transform",br),lastDx=yr,lastDy=Cr,touchEvt=hr}Dn.cancelable&&Dn.preventDefault()}},_appendGhost:function(){if(!ghostEl){var Dn=this.options.fallbackOnBody?document.body:rootEl,ur=getRect(dragEl,!0,PositionGhostAbsolutely,!0,Dn),dr=this.options;if(PositionGhostAbsolutely){for(ghostRelativeParent=Dn;css(ghostRelativeParent,"position")==="static"&&css(ghostRelativeParent,"transform")==="none"&&ghostRelativeParent!==document;)ghostRelativeParent=ghostRelativeParent.parentNode;ghostRelativeParent!==document.body&&ghostRelativeParent!==document.documentElement?(ghostRelativeParent===document&&(ghostRelativeParent=getWindowScrollingElement()),ur.top+=ghostRelativeParent.scrollTop,ur.left+=ghostRelativeParent.scrollLeft):ghostRelativeParent=getWindowScrollingElement(),ghostRelativeParentInitialScroll=getRelativeScrollOffset(ghostRelativeParent)}ghostEl=dragEl.cloneNode(!0),toggleClass(ghostEl,dr.ghostClass,!1),toggleClass(ghostEl,dr.fallbackClass,!0),toggleClass(ghostEl,dr.dragClass,!0),css(ghostEl,"transition",""),css(ghostEl,"transform",""),css(ghostEl,"box-sizing","border-box"),css(ghostEl,"margin",0),css(ghostEl,"top",ur.top),css(ghostEl,"left",ur.left),css(ghostEl,"width",ur.width),css(ghostEl,"height",ur.height),css(ghostEl,"opacity","0.8"),css(ghostEl,"position",PositionGhostAbsolutely?"absolute":"fixed"),css(ghostEl,"zIndex","100000"),css(ghostEl,"pointerEvents","none"),Sortable.ghost=ghostEl,Dn.appendChild(ghostEl),css(ghostEl,"transform-origin",tapDistanceLeft/parseInt(ghostEl.style.width)*100+"% "+tapDistanceTop/parseInt(ghostEl.style.height)*100+"%")}},_onDragStart:function(Dn,ur){var dr=this,fr=Dn.dataTransfer,hr=dr.options;if(pluginEvent("dragStart",this,{evt:Dn}),Sortable.eventCanceled){this._onDrop();return}pluginEvent("setupClone",this),Sortable.eventCanceled||(cloneEl=clone(dragEl),cloneEl.draggable=!1,cloneEl.style["will-change"]="",this._hideClone(),toggleClass(cloneEl,this.options.chosenClass,!1),Sortable.clone=cloneEl),dr.cloneId=_nextTick(function(){pluginEvent("clone",dr),!Sortable.eventCanceled&&(dr.options.removeCloneOnHide||rootEl.insertBefore(cloneEl,dragEl),dr._hideClone(),_dispatchEvent({sortable:dr,name:"clone"}))}),!ur&&toggleClass(dragEl,hr.dragClass,!0),ur?(ignoreNextClick=!0,dr._loopId=setInterval(dr._emulateDragOver,50)):(off(document,"mouseup",dr._onDrop),off(document,"touchend",dr._onDrop),off(document,"touchcancel",dr._onDrop),fr&&(fr.effectAllowed="move",hr.setData&&hr.setData.call(dr,fr,dragEl)),on(document,"drop",dr),css(dragEl,"transform","translateZ(0)")),awaitingDragStarted=!0,dr._dragStartId=_nextTick(dr._dragStarted.bind(dr,ur,Dn)),on(document,"selectstart",dr),moved=!0,Safari&&css(document.body,"user-select","none")},_onDragOver:function(Dn){var ur=this.el,dr=Dn.target,fr,hr,vr,pr=this.options,mr=pr.group,gr=Sortable.active,yr=activeGroup===mr,Cr=pr.sort,br=putSortable||gr,Ar,wr=this,_r=!1;if(_silent)return;function Tr(Lr,Fr){pluginEvent(Lr,wr,_objectSpread({evt:Dn,isOwner:yr,axis:Ar?"vertical":"horizontal",revert:vr,dragRect:fr,targetRect:hr,canSort:Cr,fromSortable:br,target:dr,completed:xr,onMove:function(Gr,Rr){return _onMove(rootEl,ur,dragEl,fr,Gr,getRect(Gr),Dn,Rr)},changed:Sr},Fr))}function Er(){Tr("dragOverAnimationCapture"),wr.captureAnimationState(),wr!==br&&br.captureAnimationState()}function xr(Lr){return Tr("dragOverCompleted",{insertion:Lr}),Lr&&(yr?gr._hideClone():gr._showClone(wr),wr!==br&&(toggleClass(dragEl,putSortable?putSortable.options.ghostClass:gr.options.ghostClass,!1),toggleClass(dragEl,pr.ghostClass,!0)),putSortable!==wr&&wr!==Sortable.active?putSortable=wr:wr===Sortable.active&&putSortable&&(putSortable=null),br===wr&&(wr._ignoreWhileAnimating=dr),wr.animateAll(function(){Tr("dragOverAnimationComplete"),wr._ignoreWhileAnimating=null}),wr!==br&&(br.animateAll(),br._ignoreWhileAnimating=null)),(dr===dragEl&&!dragEl.animated||dr===ur&&!dr.animated)&&(lastTarget=null),!pr.dragoverBubble&&!Dn.rootEl&&dr!==document&&(dragEl.parentNode[expando]._isOutsideThisEl(Dn.target),!Lr&&nearestEmptyInsertDetectEvent(Dn)),!pr.dragoverBubble&&Dn.stopPropagation&&Dn.stopPropagation(),_r=!0}function Sr(){newIndex=index$2(dragEl),newDraggableIndex=index$2(dragEl,pr.draggable),_dispatchEvent({sortable:wr,name:"change",toEl:ur,newIndex,newDraggableIndex,originalEvent:Dn})}if(Dn.preventDefault!==void 0&&Dn.cancelable&&Dn.preventDefault(),dr=closest(dr,pr.draggable,ur,!0),Tr("dragOver"),Sortable.eventCanceled)return _r;if(dragEl.contains(Dn.target)||dr.animated&&dr.animatingX&&dr.animatingY||wr._ignoreWhileAnimating===dr)return xr(!1);if(ignoreNextClick=!1,gr&&!pr.disabled&&(yr?Cr||(vr=!rootEl.contains(dragEl)):putSortable===this||(this.lastPutMode=activeGroup.checkPull(this,gr,dragEl,Dn))&&mr.checkPut(this,gr,dragEl,Dn))){if(Ar=this._getDirection(Dn,dr)==="vertical",fr=getRect(dragEl),Tr("dragOverValid"),Sortable.eventCanceled)return _r;if(vr)return parentEl=rootEl,Er(),this._hideClone(),Tr("revert"),Sortable.eventCanceled||(nextEl?rootEl.insertBefore(dragEl,nextEl):rootEl.appendChild(dragEl)),xr(!0);var kr=lastChild(ur,pr.draggable);if(!kr||_ghostIsLast(Dn,Ar,this)&&!kr.animated){if(kr===dragEl)return xr(!1);if(kr&&ur===Dn.target&&(dr=kr),dr&&(hr=getRect(dr)),_onMove(rootEl,ur,dragEl,fr,dr,hr,Dn,!!dr)!==!1)return Er(),ur.appendChild(dragEl),parentEl=ur,Sr(),xr(!0)}else if(dr.parentNode===ur){hr=getRect(dr);var Pr=0,Ir,Br=dragEl.parentNode!==ur,Or=!_dragElInRowColumn(dragEl.animated&&dragEl.toRect||fr,dr.animated&&dr.toRect||hr,Ar),Nr=Ar?"top":"left",jr=isScrolledPast(dr,"top","top")||isScrolledPast(dragEl,"top","top"),Vr=jr?jr.scrollTop:void 0;lastTarget!==dr&&(Ir=hr[Nr],pastFirstInvertThresh=!1,isCircumstantialInvert=!Or&&pr.invertSwap||Br),Pr=_getSwapDirection(Dn,dr,hr,Ar,Or?1:pr.swapThreshold,pr.invertedSwapThreshold==null?pr.swapThreshold:pr.invertedSwapThreshold,isCircumstantialInvert,lastTarget===dr);var $r;if(Pr!==0){var zr=index$2(dragEl);do zr-=Pr,$r=parentEl.children[zr];while($r&&(css($r,"display")==="none"||$r===ghostEl))}if(Pr===0||$r===dr)return xr(!1);lastTarget=dr,lastDirection=Pr;var Wr=dr.nextElementSibling,qr=!1;qr=Pr===1;var Mr=_onMove(rootEl,ur,dragEl,fr,dr,hr,Dn,qr);if(Mr!==!1)return(Mr===1||Mr===-1)&&(qr=Mr===1),_silent=!0,setTimeout(_unsilent,30),Er(),qr&&!Wr?ur.appendChild(dragEl):dr.parentNode.insertBefore(dragEl,qr?Wr:dr),jr&&scrollBy(jr,0,Vr-jr.scrollTop),parentEl=dragEl.parentNode,Ir!==void 0&&!isCircumstantialInvert&&(targetMoveDistance=Math.abs(Ir-getRect(dr)[Nr])),Sr(),xr(!0)}if(ur.contains(dragEl))return xr(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){off(document,"mousemove",this._onTouchMove),off(document,"touchmove",this._onTouchMove),off(document,"pointermove",this._onTouchMove),off(document,"dragover",nearestEmptyInsertDetectEvent),off(document,"mousemove",nearestEmptyInsertDetectEvent),off(document,"touchmove",nearestEmptyInsertDetectEvent)},_offUpEvents:function(){var Dn=this.el.ownerDocument;off(Dn,"mouseup",this._onDrop),off(Dn,"touchend",this._onDrop),off(Dn,"pointerup",this._onDrop),off(Dn,"touchcancel",this._onDrop),off(document,"selectstart",this)},_onDrop:function(Dn){var ur=this.el,dr=this.options;if(newIndex=index$2(dragEl),newDraggableIndex=index$2(dragEl,dr.draggable),pluginEvent("drop",this,{evt:Dn}),parentEl=dragEl&&dragEl.parentNode,newIndex=index$2(dragEl),newDraggableIndex=index$2(dragEl,dr.draggable),Sortable.eventCanceled){this._nulling();return}awaitingDragStarted=!1,isCircumstantialInvert=!1,pastFirstInvertThresh=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),_cancelNextTick(this.cloneId),_cancelNextTick(this._dragStartId),this.nativeDraggable&&(off(document,"drop",this),off(ur,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Safari&&css(document.body,"user-select",""),css(dragEl,"transform",""),Dn&&(moved&&(Dn.cancelable&&Dn.preventDefault(),!dr.dropBubble&&Dn.stopPropagation()),ghostEl&&ghostEl.parentNode&&ghostEl.parentNode.removeChild(ghostEl),(rootEl===parentEl||putSortable&&putSortable.lastPutMode!=="clone")&&cloneEl&&cloneEl.parentNode&&cloneEl.parentNode.removeChild(cloneEl),dragEl&&(this.nativeDraggable&&off(dragEl,"dragend",this),_disableDraggable(dragEl),dragEl.style["will-change"]="",moved&&!awaitingDragStarted&&toggleClass(dragEl,putSortable?putSortable.options.ghostClass:this.options.ghostClass,!1),toggleClass(dragEl,this.options.chosenClass,!1),_dispatchEvent({sortable:this,name:"unchoose",toEl:parentEl,newIndex:null,newDraggableIndex:null,originalEvent:Dn}),rootEl!==parentEl?(newIndex>=0&&(_dispatchEvent({rootEl:parentEl,name:"add",toEl:parentEl,fromEl:rootEl,originalEvent:Dn}),_dispatchEvent({sortable:this,name:"remove",toEl:parentEl,originalEvent:Dn}),_dispatchEvent({rootEl:parentEl,name:"sort",toEl:parentEl,fromEl:rootEl,originalEvent:Dn}),_dispatchEvent({sortable:this,name:"sort",toEl:parentEl,originalEvent:Dn})),putSortable&&putSortable.save()):newIndex!==oldIndex&&newIndex>=0&&(_dispatchEvent({sortable:this,name:"update",toEl:parentEl,originalEvent:Dn}),_dispatchEvent({sortable:this,name:"sort",toEl:parentEl,originalEvent:Dn})),Sortable.active&&((newIndex==null||newIndex===-1)&&(newIndex=oldIndex,newDraggableIndex=oldDraggableIndex),_dispatchEvent({sortable:this,name:"end",toEl:parentEl,originalEvent:Dn}),this.save()))),this._nulling()},_nulling:function(){pluginEvent("nulling",this),rootEl=dragEl=parentEl=ghostEl=nextEl=cloneEl=lastDownEl=cloneHidden=tapEvt=touchEvt=moved=newIndex=newDraggableIndex=oldIndex=oldDraggableIndex=lastTarget=lastDirection=putSortable=activeGroup=Sortable.dragged=Sortable.ghost=Sortable.clone=Sortable.active=null,savedInputChecked.forEach(function(Dn){Dn.checked=!0}),savedInputChecked.length=lastDx=lastDy=0},handleEvent:function(Dn){switch(Dn.type){case"drop":case"dragend":this._onDrop(Dn);break;case"dragenter":case"dragover":dragEl&&(this._onDragOver(Dn),_globalDragOver(Dn));break;case"selectstart":Dn.preventDefault();break}},toArray:function(){for(var Dn=[],ur,dr=this.el.children,fr=0,hr=dr.length,vr=this.options;fr<hr;fr++)ur=dr[fr],closest(ur,vr.draggable,this.el,!1)&&Dn.push(ur.getAttribute(vr.dataIdAttr)||_generateId(ur));return Dn},sort:function(Dn){var ur={},dr=this.el;this.toArray().forEach(function(fr,hr){var vr=dr.children[hr];closest(vr,this.options.draggable,dr,!1)&&(ur[fr]=vr)},this),Dn.forEach(function(fr){ur[fr]&&(dr.removeChild(ur[fr]),dr.appendChild(ur[fr]))})},save:function(){var Dn=this.options.store;Dn&&Dn.set&&Dn.set(this)},closest:function(Dn,ur){return closest(Dn,ur||this.options.draggable,this.el,!1)},option:function(Dn,ur){var dr=this.options;if(ur===void 0)return dr[Dn];var fr=PluginManager.modifyOption(this,Dn,ur);typeof fr<"u"?dr[Dn]=fr:dr[Dn]=ur,Dn==="group"&&_prepareGroup(dr)},destroy:function(){pluginEvent("destroy",this);var Dn=this.el;Dn[expando]=null,off(Dn,"mousedown",this._onTapStart),off(Dn,"touchstart",this._onTapStart),off(Dn,"pointerdown",this._onTapStart),this.nativeDraggable&&(off(Dn,"dragover",this),off(Dn,"dragenter",this)),Array.prototype.forEach.call(Dn.querySelectorAll("[draggable]"),function(ur){ur.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),sortables.splice(sortables.indexOf(this.el),1),this.el=Dn=null},_hideClone:function(){if(!cloneHidden){if(pluginEvent("hideClone",this),Sortable.eventCanceled)return;css(cloneEl,"display","none"),this.options.removeCloneOnHide&&cloneEl.parentNode&&cloneEl.parentNode.removeChild(cloneEl),cloneHidden=!0}},_showClone:function(Dn){if(Dn.lastPutMode!=="clone"){this._hideClone();return}if(cloneHidden){if(pluginEvent("showClone",this),Sortable.eventCanceled)return;rootEl.contains(dragEl)&&!this.options.group.revertClone?rootEl.insertBefore(cloneEl,dragEl):nextEl?rootEl.insertBefore(cloneEl,nextEl):rootEl.appendChild(cloneEl),this.options.group.revertClone&&this.animate(dragEl,cloneEl),css(cloneEl,"display",""),cloneHidden=!1}}};function _globalDragOver(ct){ct.dataTransfer&&(ct.dataTransfer.dropEffect="move"),ct.cancelable&&ct.preventDefault()}function _onMove(ct,Dn,ur,dr,fr,hr,vr,pr){var mr,gr=ct[expando],yr=gr.options.onMove,Cr;return window.CustomEvent&&!IE11OrLess&&!Edge?mr=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(mr=document.createEvent("Event"),mr.initEvent("move",!0,!0)),mr.to=Dn,mr.from=ct,mr.dragged=ur,mr.draggedRect=dr,mr.related=fr||Dn,mr.relatedRect=hr||getRect(Dn),mr.willInsertAfter=pr,mr.originalEvent=vr,ct.dispatchEvent(mr),yr&&(Cr=yr.call(gr,mr,vr)),Cr}function _disableDraggable(ct){ct.draggable=!1}function _unsilent(){_silent=!1}function _ghostIsLast(ct,Dn,ur){var dr=getRect(lastChild(ur.el,ur.options.draggable)),fr=10;return Dn?ct.clientX>dr.right+fr||ct.clientX<=dr.right&&ct.clientY>dr.bottom&&ct.clientX>=dr.left:ct.clientX>dr.right&&ct.clientY>dr.top||ct.clientX<=dr.right&&ct.clientY>dr.bottom+fr}function _getSwapDirection(ct,Dn,ur,dr,fr,hr,vr,pr){var mr=dr?ct.clientY:ct.clientX,gr=dr?ur.height:ur.width,yr=dr?ur.top:ur.left,Cr=dr?ur.bottom:ur.right,br=!1;if(!vr){if(pr&&targetMoveDistance<gr*fr){if(!pastFirstInvertThresh&&(lastDirection===1?mr>yr+gr*hr/2:mr<Cr-gr*hr/2)&&(pastFirstInvertThresh=!0),pastFirstInvertThresh)br=!0;else if(lastDirection===1?mr<yr+targetMoveDistance:mr>Cr-targetMoveDistance)return-lastDirection}else if(mr>yr+gr*(1-fr)/2&&mr<Cr-gr*(1-fr)/2)return _getInsertDirection(Dn)}return br=br||vr,br&&(mr<yr+gr*hr/2||mr>Cr-gr*hr/2)?mr>yr+gr/2?1:-1:0}function _getInsertDirection(ct){return index$2(dragEl)<index$2(ct)?1:-1}function _generateId(ct){for(var Dn=ct.tagName+ct.className+ct.src+ct.href+ct.textContent,ur=Dn.length,dr=0;ur--;)dr+=Dn.charCodeAt(ur);return dr.toString(36)}function _saveInputCheckedState(ct){savedInputChecked.length=0;for(var Dn=ct.getElementsByTagName("input"),ur=Dn.length;ur--;){var dr=Dn[ur];dr.checked&&savedInputChecked.push(dr)}}function _nextTick(ct){return setTimeout(ct,0)}function _cancelNextTick(ct){return clearTimeout(ct)}documentExists&&on(document,"touchmove",function(ct){(Sortable.active||awaitingDragStarted)&&ct.cancelable&&ct.preventDefault()}),Sortable.utils={on,off,css,find,is:function(Dn,ur){return!!closest(Dn,ur,Dn,!1)},extend:extend$1,throttle:throttle$1,closest,toggleClass,clone,index:index$2,nextTick:_nextTick,cancelNextTick:_cancelNextTick,detectDirection:_detectDirection,getChild},Sortable.get=function(ct){return ct[expando]},Sortable.mount=function(){for(var ct=arguments.length,Dn=new Array(ct),ur=0;ur<ct;ur++)Dn[ur]=arguments[ur];Dn[0].constructor===Array&&(Dn=Dn[0]),Dn.forEach(function(dr){if(!dr.prototype||!dr.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(dr));dr.utils&&(Sortable.utils=_objectSpread({},Sortable.utils,dr.utils)),PluginManager.mount(dr)})},Sortable.create=function(ct,Dn){return new Sortable(ct,Dn)},Sortable.version=version;var autoScrolls=[],scrollEl,scrollRootEl,scrolling=!1,lastAutoScrollX,lastAutoScrollY,touchEvt$1,pointerElemChangedInterval;function AutoScrollPlugin(){function ct(){this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var Dn in this)Dn.charAt(0)==="_"&&typeof this[Dn]=="function"&&(this[Dn]=this[Dn].bind(this))}return ct.prototype={dragStarted:function(ur){var dr=ur.originalEvent;this.sortable.nativeDraggable?on(document,"dragover",this._handleAutoScroll):this.options.supportPointer?on(document,"pointermove",this._handleFallbackAutoScroll):dr.touches?on(document,"touchmove",this._handleFallbackAutoScroll):on(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(ur){var dr=ur.originalEvent;!this.options.dragOverBubble&&!dr.rootEl&&this._handleAutoScroll(dr)},drop:function(){this.sortable.nativeDraggable?off(document,"dragover",this._handleAutoScroll):(off(document,"pointermove",this._handleFallbackAutoScroll),off(document,"touchmove",this._handleFallbackAutoScroll),off(document,"mousemove",this._handleFallbackAutoScroll)),clearPointerElemChangedInterval(),clearAutoScrolls(),cancelThrottle()},nulling:function(){touchEvt$1=scrollRootEl=scrollEl=scrolling=pointerElemChangedInterval=lastAutoScrollX=lastAutoScrollY=null,autoScrolls.length=0},_handleFallbackAutoScroll:function(ur){this._handleAutoScroll(ur,!0)},_handleAutoScroll:function(ur,dr){var fr=this,hr=(ur.touches?ur.touches[0]:ur).clientX,vr=(ur.touches?ur.touches[0]:ur).clientY,pr=document.elementFromPoint(hr,vr);if(touchEvt$1=ur,dr||Edge||IE11OrLess||Safari){autoScroll(ur,this.options,pr,dr);var mr=getParentAutoScrollElement(pr,!0);scrolling&&(!pointerElemChangedInterval||hr!==lastAutoScrollX||vr!==lastAutoScrollY)&&(pointerElemChangedInterval&&clearPointerElemChangedInterval(),pointerElemChangedInterval=setInterval(function(){var gr=getParentAutoScrollElement(document.elementFromPoint(hr,vr),!0);gr!==mr&&(mr=gr,clearAutoScrolls()),autoScroll(ur,fr.options,gr,dr)},10),lastAutoScrollX=hr,lastAutoScrollY=vr)}else{if(!this.options.bubbleScroll||getParentAutoScrollElement(pr,!0)===getWindowScrollingElement()){clearAutoScrolls();return}autoScroll(ur,this.options,getParentAutoScrollElement(pr,!1),!1)}}},_extends(ct,{pluginName:"scroll",initializeByDefault:!0})}function clearAutoScrolls(){autoScrolls.forEach(function(ct){clearInterval(ct.pid)}),autoScrolls=[]}function clearPointerElemChangedInterval(){clearInterval(pointerElemChangedInterval)}var autoScroll=throttle$1(function(ct,Dn,ur,dr){if(Dn.scroll){var fr=(ct.touches?ct.touches[0]:ct).clientX,hr=(ct.touches?ct.touches[0]:ct).clientY,vr=Dn.scrollSensitivity,pr=Dn.scrollSpeed,mr=getWindowScrollingElement(),gr=!1,yr;scrollRootEl!==ur&&(scrollRootEl=ur,clearAutoScrolls(),scrollEl=Dn.scroll,yr=Dn.scrollFn,scrollEl===!0&&(scrollEl=getParentAutoScrollElement(ur,!0)));var Cr=0,br=scrollEl;do{var Ar=br,wr=getRect(Ar),_r=wr.top,Tr=wr.bottom,Er=wr.left,xr=wr.right,Sr=wr.width,kr=wr.height,Pr=void 0,Ir=void 0,Br=Ar.scrollWidth,Or=Ar.scrollHeight,Nr=css(Ar),jr=Ar.scrollLeft,Vr=Ar.scrollTop;Ar===mr?(Pr=Sr<Br&&(Nr.overflowX==="auto"||Nr.overflowX==="scroll"||Nr.overflowX==="visible"),Ir=kr<Or&&(Nr.overflowY==="auto"||Nr.overflowY==="scroll"||Nr.overflowY==="visible")):(Pr=Sr<Br&&(Nr.overflowX==="auto"||Nr.overflowX==="scroll"),Ir=kr<Or&&(Nr.overflowY==="auto"||Nr.overflowY==="scroll"));var $r=Pr&&(Math.abs(xr-fr)<=vr&&jr+Sr<Br)-(Math.abs(Er-fr)<=vr&&!!jr),zr=Ir&&(Math.abs(Tr-hr)<=vr&&Vr+kr<Or)-(Math.abs(_r-hr)<=vr&&!!Vr);if(!autoScrolls[Cr])for(var Wr=0;Wr<=Cr;Wr++)autoScrolls[Wr]||(autoScrolls[Wr]={});(autoScrolls[Cr].vx!=$r||autoScrolls[Cr].vy!=zr||autoScrolls[Cr].el!==Ar)&&(autoScrolls[Cr].el=Ar,autoScrolls[Cr].vx=$r,autoScrolls[Cr].vy=zr,clearInterval(autoScrolls[Cr].pid),($r!=0||zr!=0)&&(gr=!0,autoScrolls[Cr].pid=setInterval((function(){dr&&this.layer===0&&Sortable.active._onTouchMove(touchEvt$1);var qr=autoScrolls[this.layer].vy?autoScrolls[this.layer].vy*pr:0,Mr=autoScrolls[this.layer].vx?autoScrolls[this.layer].vx*pr:0;typeof yr=="function"&&yr.call(Sortable.dragged.parentNode[expando],Mr,qr,ct,touchEvt$1,autoScrolls[this.layer].el)!=="continue"||scrollBy(autoScrolls[this.layer].el,Mr,qr)}).bind({layer:Cr}),24))),Cr++}while(Dn.bubbleScroll&&br!==mr&&(br=getParentAutoScrollElement(br,!1)));scrolling=gr}},30),drop=function(Dn){var ur=Dn.originalEvent,dr=Dn.putSortable,fr=Dn.dragEl,hr=Dn.activeSortable,vr=Dn.dispatchSortableEvent,pr=Dn.hideGhostForTarget,mr=Dn.unhideGhostForTarget;if(ur){var gr=dr||hr;pr();var yr=ur.changedTouches&&ur.changedTouches.length?ur.changedTouches[0]:ur,Cr=document.elementFromPoint(yr.clientX,yr.clientY);mr(),gr&&!gr.el.contains(Cr)&&(vr("spill"),this.onSpill({dragEl:fr,putSortable:dr}))}};function Revert(){}Revert.prototype={startIndex:null,dragStart:function(Dn){var ur=Dn.oldDraggableIndex;this.startIndex=ur},onSpill:function(Dn){var ur=Dn.dragEl,dr=Dn.putSortable;this.sortable.captureAnimationState(),dr&&dr.captureAnimationState();var fr=getChild(this.sortable.el,this.startIndex,this.options);fr?this.sortable.el.insertBefore(ur,fr):this.sortable.el.appendChild(ur),this.sortable.animateAll(),dr&&dr.animateAll()},drop},_extends(Revert,{pluginName:"revertOnSpill"});function Remove(){}Remove.prototype={onSpill:function(Dn){var ur=Dn.dragEl,dr=Dn.putSortable,fr=dr||this.sortable;fr.captureAnimationState(),ur.parentNode&&ur.parentNode.removeChild(ur),fr.animateAll()},drop},_extends(Remove,{pluginName:"removeOnSpill"}),Sortable.mount(new AutoScrollPlugin),Sortable.mount(Remove,Revert);const LastDetail_vue_vue_type_style_index_0_scoped_81782539_lang="",LastDetail_vue_vue_type_style_index_1_lang="";dayjs.locale("zh-cn");const _sfc_main$A=vue.defineComponent({name:"LastDetail",components:{ATable:antDesignVue.Table,ATableSummary:antDesignVue.TableSummary,ATableSummaryRow:antDesignVue.TableSummaryRow,ATableSummaryCell:antDesignVue.TableSummaryCell,APagination:antDesignVue.Pagination,AButton:antDesignVue.Button,BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1,CloseOutlined:CloseOutlined$1,CustomModal},props:{theme:{type:String,default:"light"},theDateInfo:{type:Object,default:()=>({})},scaleValue:{type:Object,default:()=>({})},fontSize:{type:Number,default:16},allDimensions:{type:Array,default:()=>[]},isOutDrill:{type:Boolean,default:!1}},setup(ct,{emit:Dn,expose:ur}){const dr="-",fr=window.screen.height*.6,hr=`dtmodal_${nanoid(6)}`,vr=vue.ref(!1),pr=vue.ref(!0),mr=vue.ref(!1),gr=vue.ref(!1),yr=vue.ref(!1),Cr=vue.ref(!1),br=vue.ref([]),Ar=vue.ref([]),wr=vue.ref({x:"max-content"}),_r=vue.ref(),Tr=vue.ref(),Er=vue.reactive({current:1,pageSize:20,total:0,showSizeChanger:!1,showQuickJumper:!1,showLessItems:!0,showTotal:bi=>`共 ${bi} 条数据`}),xr=vue.ref(""),Sr=vue.ref(""),kr=vue.ref(),Pr=vue.ref({}),Ir=vue.ref({}),Br=vue.ref(!1),Or=vue.ref([]),Nr=vue.ref(50),jr=vue.inject("isMobile",!1),Vr=vue.inject("componentList",[]),{getAllGlobalModel:$r}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),zr=vue.computed(()=>INDICATOR_URL),Wr=vue.computed(()=>vue.unref(jr)?"16px":ct.fontSize+"px"),qr=()=>document.querySelector("#modalContainer")||document.body,Mr=bi=>{const pi=document.querySelector(`.${hr} .ant-modal-header`);if(pi)if(bi)pi.addEventListener("mousedown",Fr);else{const mi=pi.parentElement;mi&&(mi.style.left="",mi.style.top=""),pi.removeEventListener("mousedown",Fr)}},Lr=bi=>{const pi=document.querySelector(`.${hr} .ant-modal-header`);pi&&(bi?pi.addEventListener("dblclick",Dr):pi.removeEventListener("dblclick",Dr))},Fr=bi=>{dragModalAction(bi,`.${hr} .ant-modal-header`)},Dr=()=>{if(ct.isOutDrill){Dn("zoom");return}pr.value=!pr.value,vue.nextTick(()=>{pr.value?Mr(!1):Mr(!0),Rr()})},Gr=()=>{Lr(!1),Mr(!1),Dn("close")},Rr=()=>{var bi;(bi=vue.unref(Ar))!=null&&bi.length?setTimeout(()=>{var xi;const pi=vue.unref(_r),mi=pi==null?void 0:pi.querySelector(".last-detail-table .ant-table-thead");if(mi!=null&&mi.clientHeight){let ni=fr;if(vue.unref(pr)){const ai=document.querySelector(`.${hr} .ant-modal-content`);ai&&(ni=ai.clientHeight-((xi=ai.querySelector(".ant-modal-header"))==null?void 0:xi.clientHeight)-24)}if(!isNaN(ni)){let ai=ni-mi.clientHeight-60;const Xr=pi==null?void 0:pi.querySelector(".last-detail-table .ant-table-summary");Xr&&(ai-=Xr.clientHeight);const vi=pi==null?void 0:pi.querySelector(".last-detail-table .ant-table-tbody");vi&&vi.clientHeight>ai+4?vue.unref(wr).y=ai+"px":delete vue.unref(wr).y}}yr.value=!0},200):(wr.value={},yr.value=!0)},Qr=()=>{var bi;(bi=vue.unref(Ar))!=null&&bi.length&&setTimeout(()=>{var pi;Sortable.create((pi=vue.unref(_r))==null?void 0:pi.querySelector(".last-detail-table .ant-table-thead > tr"),{handle:"th.ant-table-cell",onEnd:({newIndex:mi,oldIndex:xi})=>{mi!==xi&&swapArrItem(vue.unref(br),mi,xi)}})},200)},Kr=async()=>{var pi,mi,xi,ni;Br.value=!0;const bi=((pi=window==null?void 0:window.config)==null?void 0:pi.indicatorToken)||"";try{const{param:ai,...Xr}=vue.unref(Ir),vi={},{order:Si,column:ri}=vue.unref(Pr);Si&&(vi.sortField=ri==null?void 0:ri.dataIndex,vi.sortOrder=Si==="ascend"?"asc":"desc");const yi=await request.post(`${vue.unref(zr)}/diagram/obtainDataSetData`,{...Xr,param:{...ai,pageNum:Er.current,pageSize:Er.pageSize,...vi}},{headers:{Authentication:bi,operateContext:CONTEXT}}),{columns:di=[],data:Ei=[],total:Oi=0,totalObj:Li}=((mi=yi==null?void 0:yi.data)==null?void 0:mi.data)||{};if(Er.total=Oi,(xi=vue.unref(br))!=null&&xi.length||(br.value=di.filter(Ri=>Ri).map(Ri=>({title:Ri,dataIndex:Ri,width:120,customHeaderCell:()=>({class:{"left-align":!0}}),customCell:(hi,Ci,Di)=>({[vue.unref(jr)?"onClick":"onDblclick"]:()=>{var qi,Qi;const $i=((qi=window==null?void 0:window.config)==null?void 0:qi.detailDrillUrl)||"",Fi=((Qi=window==null?void 0:window.config)==null?void 0:Qi.detailDrillTitle)||"";$i&&Tn(hi,"orgCode")&&Tn(hi,"visitId")&&Tn(hi,"mpiId")&&(vr.value=!0,vue.nextTick(()=>{vue.unref(Tr).showModal({record:hi,linkUrl:$i,title:Fi})}))}}),sorter:!0}))),Li&&((ni=Object.keys(Li))!=null&&ni.length)){const Ri=[];for(const hi of vue.unref(br))Ri.push({value:Li[hi.dataIndex],dataIndex:hi.dataIndex});Or.value=Ri}Ar.value=Ei.map(Ri=>({...Ri,uid:nanoid(6)}))}catch{br.value=[],Ar.value=[]}finally{Br.value=!1}};async function Hr(bi){gr.value=!0,mr.value=!0;const{record:pi,dimOpts:mi,column:xi,formatParams:ni,cpntProps:ai={},drillDetailUrl:Xr,drillConditions:vi}=bi,{indicatorList:Si=[]}=ni,ri=Si.find(Li=>Li.label===xi.dataIndex),yi={};for(const Li in pi){const Ri=mi.find(hi=>hi.name===Li);Ri&&(yi[Ri.typeGuid]=pi[Li])}const{startTime:di,endTime:Ei,rangeFormat:Oi}=ct.theDateInfo;di&&Ei&&(yi.startTime=dayjs(di).format(Oi),yi.endTime=dayjs(Ei).format(Oi)),kr.value=yi,Xr?(pr.value=!0,xr.value=Xr,Sr.value=encodeURIComponent(JSON.stringify({indexCode:(ri==null?void 0:ri.hrpIndexCode)||"",indexName:ri.label,theFlag:ai.theFlag,param:yi,conditions:vi})),gr.value=!1):(Ir.value={pageId:getPageId(),indexCode:(ri==null?void 0:ri.hrpIndexCode)||"",indexName:ri.label,theFlag:ai.theFlag,param:yi},await Kr(),gr.value=!1,Rr(),Qr()),vue.nextTick(()=>{Lr(!0)})}const Ur=vue.computed(()=>{let bi=`last-detail-modal ${hr}`;return(vue.unref(jr)||pr.value)&&(bi+=" full"),ct.theme==="darkBlue"&&(bi+=" darkBlue"),vue.unref(xr)||(bi+=" table"),bi}),Jr=vue.computed(()=>{var bi;return vue.unref(jr)?{padding:"10px 0"}:{height:vue.unref(pr)?"":fr+48+"px",overflow:"hidden",paddingTop:(bi=vue.unref(Ar))!=null&&bi.length?"0px":""}}),Yr=()=>{const bi=vue.unref(kr).the_date,{startTime:pi,endTime:mi}=vue.unref(kr),xi={};bi?xi.时间范围=bi:xi.时间范围=`${pi}至${mi}`;for(const ni in vue.unref(kr))if(!["startTime","endTime","the_date"].includes(ni)){const ai=ct.allDimensions.find(Xr=>Xr.typeGuid===ni);ai&&(xi[ai.title||ai.label]=vue.unref(kr)[ni])}return{drillContext:xi,data:vue.toRaw(vue.unref(Ar)),type:"detailTable"}},si=async(bi,pi,mi)=>{Pr.value=mi,await Kr(),Rr()},fi=async(bi,pi)=>{Er.current=bi,Er.pageSize=pi,await Kr(),Rr()},_i=async()=>{var bi,pi,mi;Cr.value=!0;try{const{param:xi,...ni}=vue.unref(Ir),ai=vue.unref(Vr).find(vi=>vi.keyName==="机构");let Xr="";ai&&(Xr=((pi=(bi=vue.unref($r()))==null?void 0:bi.get(ai.id))==null?void 0:pi.itemLabels)||""),await useDownloadFile(`${vue.unref(zr)}/diagram/obtainDataSetData/download`,{...ni,param:{...xi,officeName:Xr}},{Authentication:((mi=window==null?void 0:window.config)==null?void 0:mi.indicatorToken)||"",operateContext:CONTEXT})}finally{Cr.value=!1}};return ur({getRecordData:Yr,showModal:Hr,visible:mr}),{visible:mr,requestLoading:gr,pagination:Er,columns:br,dataSource:Ar,wrapClassName:Ur,detailBodyStyle:Jr,isMobile:jr,urlJsonStr:Sr,drillDetailUrl:xr,isIndFullScreen:pr,tableFontSize:Wr,tableScroll:wr,tableRef:_r,customModalRef:Tr,isLoadedTable:yr,isShowCustomModal:vr,defaultValue:dr,searchLoading:Br,downloading:Cr,summaryList:Or,summaryHeight:Nr,handleTableChange:si,handlePageChange:fi,getContainer:qr,onDetailCancel:Gr,toggleFullScreen:Dr,handleExport:_i}}}),_withScopeId$7=ct=>(vue.pushScopeId("data-v-81782539"),ct=ct(),vue.popScopeId(),ct),_hoisted_1$r=_withScopeId$7(()=>vue.createElementVNode("div",{style:{"font-size":"18px"}},"指标明细",-1)),_hoisted_2$e=["src"],_hoisted_3$8={key:0,class:"spin-container"},_hoisted_4$5={key:0,class:"tool-bar"},_hoisted_5$5=vue.createTextVNode("导出为Excel"),_hoisted_6$5=["title"],_hoisted_7$5=["title"];function _sfc_render$F(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("close-outlined"),pr=vue.resolveComponent("switcher-outlined"),mr=vue.resolveComponent("border-outlined"),gr=vue.resolveComponent("a-spin"),yr=vue.resolveComponent("a-pagination"),Cr=vue.resolveComponent("a-button"),br=vue.resolveComponent("a-table-summary-cell"),Ar=vue.resolveComponent("a-table-summary-row"),wr=vue.resolveComponent("a-table-summary"),_r=vue.resolveComponent("a-table"),Tr=vue.resolveComponent("a-modal"),Er=vue.resolveComponent("custom-modal");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(Tr,{wrapClassName:ct.wrapClassName,visible:ct.visible,"onUpdate:visible":Dn[3]||(Dn[3]=xr=>ct.visible=xr),width:"60%",destroyOnClose:!0,footer:null,bodyStyle:ct.detailBodyStyle,getContainer:ct.getContainer,onCancel:ct.onDetailCancel},{title:vue.withCtx(()=>[_hoisted_1$r]),closeIcon:vue.withCtx(()=>[vue.createVNode(vr,{class:vue.normalizeClass(["modal-icon",ct.theme])},null,8,["class"])]),default:vue.withCtx(()=>{var xr,Sr;return[ct.isOutDrill?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"zoom-btn",onClick:Dn[0]||(Dn[0]=(...kr)=>ct.toggleFullScreen&&ct.toggleFullScreen(...kr))},[ct.isIndFullScreen?(vue.openBlock(),vue.createBlock(pr,{key:0,class:vue.normalizeClass(["modal-icon",ct.theme])},null,8,["class"])):(vue.openBlock(),vue.createBlock(mr,{key:1,class:vue.normalizeClass(["modal-icon",ct.theme])},null,8,["class"]))])),ct.drillDetailUrl&&ct.urlJsonStr?(vue.openBlock(),vue.createElementBlock("iframe",{key:1,src:`${ct.drillDetailUrl}${ct.drillDetailUrl.includes("?")?"&":"?"}params=${ct.urlJsonStr}`,frameborder:"0",width:"100%",height:"100%"},`\r
|
|
112
|
+
`,8,_hoisted_2$e)):ct.drillDetailUrl?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:2},[ct.isLoadedTable?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$8,[vue.createVNode(gr,{size:"large"})])),ct.requestLoading?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",{key:1,ref:"tableRef",style:vue.normalizeStyle({visibility:ct.isLoadedTable?"visible":"hidden"})},[(xr=ct.dataSource)!=null&&xr.length?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$5,[vue.createVNode(yr,{current:ct.pagination.current,"onUpdate:current":Dn[1]||(Dn[1]=kr=>ct.pagination.current=kr),"page-size":ct.pagination.pageSize,"onUpdate:page-size":Dn[2]||(Dn[2]=kr=>ct.pagination.pageSize=kr),total:ct.pagination.total,"show-total":ct.pagination.showTotal,showLessItems:ct.pagination.showLessItems,showSizeChanger:ct.pagination.showSizeChanger,disabled:ct.searchLoading,onChange:ct.handlePageChange},null,8,["current","page-size","total","show-total","showLessItems","showSizeChanger","disabled","onChange"]),vue.createVNode(Cr,{loading:ct.downloading,onClick:ct.handleExport,style:{"margin-left":"15px"}},{default:vue.withCtx(()=>[_hoisted_5$5]),_:1},8,["loading","onClick"])])):vue.createCommentVNode("",!0),vue.createVNode(_r,{class:"last-detail-table",size:"small","row-key":kr=>kr.uid,columns:ct.columns,"data-source":ct.dataSource,pagination:!1,"row-class-name":(kr,Pr)=>Pr%2===1?"table-striped":null,scroll:ct.isMobile?{x:"max-content",y:"70vh"}:ct.tableScroll,showHeader:!!((Sr=ct.dataSource)!=null&&Sr.length),loading:ct.searchLoading,onChange:ct.handleTableChange},{headerCell:vue.withCtx(({title:kr})=>[vue.createElementVNode("div",{title:kr,style:vue.normalizeStyle({fontSize:ct.tableFontSize,fontWeight:600})},vue.toDisplayString(kr),13,_hoisted_6$5)]),bodyCell:vue.withCtx(({text:kr})=>[vue.createElementVNode("div",{title:kr,style:vue.normalizeStyle({fontSize:ct.tableFontSize})},vue.toDisplayString(kr||ct.defaultValue),13,_hoisted_7$5)]),summary:vue.withCtx(()=>[vue.createVNode(wr,{fixed:""},{default:vue.withCtx(()=>[vue.createVNode(Ar,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ct.summaryList,(kr,Pr)=>(vue.openBlock(),vue.createBlock(br,{key:Pr,index:Pr,style:vue.normalizeStyle({height:ct.summaryHeight+"px",fontSize:ct.tableFontSize,fontWeight:600,color:"rgba(0, 0, 0, 0.85)",padding:"8px"})},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(kr.value),1)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1})]),_:1},8,["row-key","columns","data-source","row-class-name","scroll","showHeader","loading","onChange"])],4))],64))]}),_:1},8,["wrapClassName","visible","bodyStyle","getContainer","onCancel"]),ct.isShowCustomModal?(vue.openBlock(),vue.createBlock(Er,{key:0,ref:"customModalRef",theme:ct.theme,onClose:ct.onCloseCustomModal},null,8,["theme","onClose"])):vue.createCommentVNode("",!0)],64)}const LastDetail=_export_sfc$1(_sfc_main$A,[["render",_sfc_render$F],["__scopeId","data-v-81782539"]]);dayjs.locale("zh-cn");const _sfc_main$z=vue.defineComponent({name:"DrillModal",components:{ATable:antDesignVue.Table,ATableSummary:antDesignVue.TableSummary,ATableSummaryRow:antDesignVue.TableSummaryRow,ATableSummaryCell:antDesignVue.TableSummaryCell,APagination:antDesignVue.Pagination,AButton:antDesignVue.Button,BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1,CloseOutlined:CloseOutlined$1,LastDetail},props:{theme:{type:String,default:"light"},drillingMode:{type:String,default:"default"},pageMode:{type:String,default:"normal"},scaleValue:{type:Object,default:()=>({})},pivotTableFontSize:{type:Number,default:16},width:{type:String,default:""},drillDetailUrl:{type:String,default:""},isShowMask:{type:Boolean,default:!0},isOutDrill:{type:Boolean,default:!1}},setup(ct,{expose:Dn,emit:ur}){const dr=["LAST_DATA","MOM_DATA","SAME_DATA","YOY_DATA"],fr="-",hr="c-"+nanoid(6),vr=.57,pr=.6,mr=.97,gr=.9,yr=window.screen.height*pr,Cr=["人","次","人次","个","张","例","台"],br=vue.ref({}),Ar=vue.ref(!1),wr=vue.ref(50),_r={IN:"属于",NOT_IN:"不属于",LIKE:"包含",NOT_LIKE:"不包含","LIKE%":"开头是","%LIKE":"结尾是",EQUAL:"等于",LESS:"小于",LESS_EQUAL:"小于等于",GREATER:"大于",GREATER_EQUAL:"大于等于",NOT_EQUAL:"不等于"},Tr={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"},Er=[{label:"10 条/页",value:10},{label:"20 条/页",value:20},{label:"50 条/页",value:50},{label:"100 条/页",value:100}],xr=vue.ref({}),Sr=vue.ref(),kr=vue.ref(!1),Pr=vue.ref(!1),Ir=vue.ref(),Br=vue.ref(),Or=vue.ref(),Nr=vue.ref(!0),jr=vue.ref({}),Vr=vue.ref([]),$r=vue.ref([]),zr=vue.ref([]),Wr=vue.ref(!1),qr=vue.ref(!1),Mr=vue.ref(!1),Lr=vue.ref({}),Fr=vue.ref(""),Dr=vue.ref(""),Gr=vue.ref(""),Rr=vue.ref({x:"max-content"}),Qr=vue.ref(),Kr=vue.ref([]),Hr=vue.ref({dateFormat:"YYYY-MM-DD"}),Ur=vue.ref(!1),Jr=vue.reactive({keyName:"",visible:!1,dataSource:[],columns:[],title:""}),Yr=vue.reactive({current:1,pageSize:20,total:0,showSizeChanger:!1,showQuickJumper:!1,showLessItems:!1,showTotal:zi=>`共 ${zi} 条数据`}),si=vue.ref({}),fi=vue.ref({}),_i=vue.ref(""),bi=vue.ref({}),pi=vue.ref({}),mi=vue.ref([]),xi=vue.ref({}),ni=vue.inject("isMobile",!1),ai=vue.inject("usedComponentList",[]),Xr=vue.inject("componentList",[]),{getAllGlobalModel:vi}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),Si=vue.computed(()=>INDICATOR_URL);vue.watch(()=>Jr.visible,zi=>{zi?document.documentElement.style.overflow="hidden":document.documentElement.style.overflow="hidden auto"});function ri(){Ar.value=!1}vue.watch(Ar,zi=>{zi?document.addEventListener("click",ri):document.removeEventListener("click",ri)});const yi=vue.computed(()=>vue.unref(ni)?"16px":ct.pivotTableFontSize+"px"),di=vue.computed(()=>vue.unref(ni)?"12px":ct.pivotTableFontSize-4+"px"),Ei=vue.computed(()=>({width:vue.unref(jr).width,height:vue.unref(jr).height})),Oi=vue.computed(()=>vue.unref(ni)?{padding:"10px 0"}:ct.drillingMode==="normalTable"?Nr.value?{paddingTop:0}:{height:yr+48+"px",overflow:"hidden",paddingTop:0}:{}),Li=vue.computed(()=>{let zi=`datav-drill-modal ${hr}`;return(Nr.value||vue.unref(ni))&&(zi+=" full"),ct.theme==="darkBlue"&&(zi+=" darkBlue"),zi}),Ri=(zi,ei)=>{const gi=hi(ei.graphicConfig).filter(Ni=>Ni.conditions),Ai=loopConditions(gi,"conditions",!0),wi=loopConditions(zi.sqlConditions,"sqlConditions",!1);$r.value=Ai.concat(wi).filter(Ni=>Ni.label)||[]};function hi(zi){const{leftAxisList:ei=[],rightAxisList:li=[],indicators:gi=[],classificationList:Ai=[],rowHeaderList:wi=[],dimensionList:Ni=[],seriesList:Mi=[],queryColumns:ji=[],indexLibColumns:Ui=[]}=zi;return ei.concat(li).concat(gi).concat(Ai).concat(wi).concat(Ni).concat(Mi).concat(ji).concat(Ui)}const Ci=()=>document.querySelector("#modalContainer")||document.body,Di=async zi=>{var Mi,ji,Ui;const{cpntProps:ei,pageId:li,formatParams:gi,classifications:Ai,indicatorToken:wi,drillingMode:Ni}=zi;return await request({url:`${vue.unref(Si)}/diagram/obtainDrillAbleDimensionOptions`,method:"post",headers:{Authentication:wi,operateContext:CONTEXT},data:{source:((Mi=ei==null?void 0:ei.graphicConfig)==null?void 0:Mi.source)||"INDICATOR_LIB",pageId:li,indicatorList:(gi==null?void 0:gi.indicatorList)||[],classifications:Ai,dataSourceId:((ji=ei==null?void 0:ei.graphicConfig)==null?void 0:ji.dataSourceId)||"",drillingMode:Ni},signal:((Ui=window.controller)==null?void 0:Ui.signal)||""})},$i=async({indicatorList:zi,indicatorToken:ei})=>{var li;return await request({url:`${vue.unref(Si)}/diagram/obtainIndexDrillDetail`,method:"post",headers:{Authentication:ei,operateContext:CONTEXT},data:{indicatorList:zi},signal:((li=window.controller)==null?void 0:li.signal)||""})},Fi=async({indicatorList:zi,indicatorToken:ei,pageId:li,theFlag:gi})=>{var Ai;return await request({url:`${vue.unref(Si)}/diagram/obtainIndicatorInfo`,method:"post",headers:{Authentication:ei,operateContext:CONTEXT},data:{source:"INDICATOR_LIB",pageId:li,indicatorList:zi,theFlag:gi},signal:((Ai=window.controller)==null?void 0:Ai.signal)||""})},qi=zi=>{let ei="",li="";const{componentConfig:gi={}}=zi;for(const wi in gi)if(gi[wi].key==="currentValue"){li=wi;break}const Ai=vue.unref(Xr).find(wi=>wi.id===li);return Ai!=null&&Ai.unitText&&(ei=Ai.unitText),ei};function Qi(zi){const ei=[];for(const li of zi)li.sqlConditions?ei.push(...Qi(li.sqlConditions)):li.fieldName==="the_date"&&ei.push(li);return ei}const la=zi=>{var wi;const{sqlConditions:ei=[],queryColumns:li=[]}=zi||{},gi=Qi(ei),Ai=li.find(Ni=>Ni.typeGuid==="the_date");if(Ai&&(Hr.value={dateFormat:Ai.dateFormat||"YYYY-MM-DD"}),gi!=null&&gi.length)for(const Ni of gi)["startTime","endTime"].includes(Ni.prop)&&(vue.unref(Hr)[Ni.prop]=Ni.fieldValue||"",(wi=vue.unref(Hr))!=null&&wi.rangeFormat||(vue.unref(Hr).rangeFormat=Ni.dateFormat||"YYYY-MM-DD"))},da=()=>{var zi;(zi=Jr.dataSource)!=null&&zi.length?setTimeout(()=>{var ei;if(ct.drillingMode==="normalTable"){const li=vue.unref(Qr),gi=li==null?void 0:li.querySelector(".normal-table .ant-table-thead");if(gi!=null&&gi.clientHeight){let Ai=yr;if(vue.unref(Nr)){const wi=document.querySelector(`.${hr} .ant-modal-content`);wi&&(Ai=wi.clientHeight-((ei=wi.querySelector(".ant-modal-header"))==null?void 0:ei.clientHeight)-24)}if(!isNaN(Ai)){let wi=Ai-gi.clientHeight-60;const Ni=li==null?void 0:li.querySelector(".normal-table .ant-table-summary");Ni&&(wi-=Ni.clientHeight);const Mi=li==null?void 0:li.querySelector(".normal-table .ant-table-tbody");Mi&&Mi.clientHeight>wi+4?vue.unref(Rr).y=wi+"px":delete vue.unref(Rr).y}}}qr.value=!0},200):(Rr.value={},qr.value=!0)},va=()=>{var zi;(zi=Jr.dataSource)!=null&&zi.length&&setTimeout(()=>{var ei;Sortable.create((ei=vue.unref(Qr))==null?void 0:ei.querySelector(".normal-table .ant-table-thead > tr"),{handle:"th.ant-table-cell",onEnd:({newIndex:li,oldIndex:gi})=>{if(li!==gi){let Ai=function(Ni){for(const Mi of Ni)if(Mi.children)Ai(Mi.children);else{const ji=vue.unref(Kr).find(Ui=>Ui.dataIndex===Mi.dataIndex);ji&&wi.push(ji)}};swapArrItem(Jr.columns,li,gi);const wi=[];Ai(Jr.columns),Kr.value=wi}}})},200)},ya=async()=>{var Mi,ji,Ui,oa;Ur.value=!0;const zi=((Mi=window==null?void 0:window.config)==null?void 0:Mi.indicatorToken)||"",{indicatorList:ei,queryColumns:li}=vue.unref(fi),gi={},{order:Ai,column:wi}=vue.unref(bi);if(Ai){const ia=Ai==="ascend"?"ASC":"DESC";if(wi!=null&&wi.isIndicator){const Yi=lodashEs.cloneDeep(ei),aa=Yi.find(Ca=>Ca.label===(wi==null?void 0:wi.dataIndex));aa&&(aa.sort={columnName:aa.columnName,label:aa.label,order:ia,type:"NORMA"}),gi.indicatorList=Yi}else{const Yi=lodashEs.cloneDeep(li),aa=Yi.find(Ca=>Ca.label===(wi==null?void 0:wi.dataIndex));aa&&(aa.sort={columnName:aa.columnName,label:aa.label,order:ia,type:"COMBINATION"}),gi.queryColumns=Yi,gi.rowHeaders=Yi}}const Ni=[new Promise(ia=>{request({url:`${vue.unref(Si)}${vue.unref(_i)}`,method:"post",headers:{Authentication:zi,operateContext:CONTEXT},data:{...vue.unref(fi),...gi,pageNum:Yr.current,pageSize:Yr.pageSize,pageId:getPageId()}}).then(Yi=>{ia(Yi)}).catch(()=>{ia({})})})];(ji=vue.unref(Kr))!=null&&ji.length||Ni.push(new Promise(ia=>{request({url:`${vue.unref(Si)}${vue.unref(_i)}`,method:"post",headers:{Authentication:zi,operateContext:CONTEXT},data:{...vue.unref(fi),queryColumns:[],rowHeaders:[],pageId:getPageId()}}).then(Yi=>{ia(Yi)}).catch(()=>{ia({})})}));try{const[ia,Yi]=await Promise.all(Ni),{rows:aa=[],total:Ca=0}=((Ui=ia==null?void 0:ia.data)==null?void 0:Ui.data)||{};if(Jr.dataSource=(Array.isArray(aa)?aa:[aa]).map(xa=>({...xa,uuid:nanoid(6)})),Yr.total=Ca,Yi){const{rows:xa=[]}=((oa=Yi==null?void 0:Yi.data)==null?void 0:oa.data)||{};xa!=null&&xa.length&&Jr.columns.forEach(Aa=>{if(Aa.children)for(const wa of Aa.children){let Oa=xa[0][wa.dataIndex]||"-",Ra=vue.unref(pi)[wa.dataIndex];if(Ra||(wa.dataIndex.includes("@LAST_DATA")?Ra=vue.unref(pi)[wa.dataIndex.replace("@LAST_DATA","")]:wa.dataIndex.includes("@SAME_DATA")&&(Ra=vue.unref(pi)[wa.dataIndex.replace("@SAME_DATA","")])),!Cr.includes(Ra)){const Wa=parseFloat(Oa);isNaN(Wa)||(Oa=Wa.toFixed(2))}(Ra&&Ra==="%"||["同比(%)","环比(%)"].includes(ba(wa.dataIndex)))&&(Oa+="%"),vue.unref(Kr).push({value:Oa,align:wa.align,dataIndex:wa.dataIndex})}else vue.unref(Kr).push({value:"-",align:Aa.align,dataIndex:Aa.dataIndex})})}}catch(ia){console.error(ia)}finally{Ur.value=!1}},ba=zi=>{let ei="";return zi.includes("@MOM_DATA")?ei="环比(%)":zi.includes("@YOY_DATA")?ei="同比(%)":zi.includes("@LAST_DATA")?ei="上期":zi.includes("@SAME_DATA")&&(ei="同期"),ei},Sa=(zi,ei)=>{let li=zi;const{dataIndex:gi}=ei,Ai=ba(gi);let wi=vue.unref(pi)[gi];wi||(gi.includes("@LAST_DATA")?wi=vue.unref(pi)[gi.replace("@LAST_DATA","")]:gi.includes("@SAME_DATA")&&(wi=vue.unref(pi)[gi.replace("@SAME_DATA","")]));const Ni=!Cr.includes(wi);if(zi||(ei.align==="left"?li=fr:li=Ni?"0.00":"0"),Ni){const Mi=parseFloat(li);isNaN(Mi)||(li=Mi.toFixed(2))}return(wi&&wi==="%"||["同比(%)","环比(%)"].includes(Ai))&&(li+="%"),li},La=(zi,ei)=>{var wi;let li="";const{dataIndex:gi}=ei;if(vue.unref(pi)[gi]!=="%"){let Ni=!1;const Mi=ba(gi);if(!Mi)Ni=!0;else{let ji="";Mi==="上期"?ji=gi.replace("@LAST_DATA",""):Mi==="同期"&&(ji=gi.replace("@SAME_DATA","")),ji&&vue.unref(pi)[ji]!=="%"&&(Ni=!0)}if(Ni){const ji=parseFloat(zi||0);if(!isNaN(ji)){const Ui=parseFloat((wi=vue.unref(Kr).find(oa=>oa.dataIndex===gi))==null?void 0:wi.value);Ui&&!isNaN(Ui)&&(li=(ji/Ui*100).toFixed(2)+"%")}}}return li?`(${li})`:""},qa=(zi,ei)=>{zi.stopPropagation(),ri(),kr.value=!0,vue.nextTick(()=>{vue.unref(Ir).showModal({...vue.unref(xi),appointTypeGuid:ei})})},ka=async zi=>{var Aa,wa,Oa,Ra,Wa,Za,Ya,es,ts,Ja;if(ct.drillingMode==="default"||ct.pageMode==="design")return;let ei=lodashEs.cloneDeep(zi).props;if(ei.parentId){const Ma=vue.unref(ai).find(Na=>Na.id===ei.parentId);if((Ma==null?void 0:Ma.dataType)==="indicator")ei=lodashEs.cloneDeep(Ma);else return}const li=Nn(ei.type,"indexPanel");Jr.keyName=ei==null?void 0:ei.keyName;const gi=((Aa=window==null?void 0:window.config)==null?void 0:Aa.indicatorToken)||"",Ai=getPageId(),wi=(ei==null?void 0:ei.graphicConfig)||{},{leftAxisList:Ni=[],rightAxisList:Mi=[],indicators:ji=[]}=wi;let Ui=((wi==null?void 0:wi.drillGroupList)||[]).filter(Ma=>{var Na;return(Na=Ma.dimensions)==null?void 0:Na.length});const oa=Ni.concat(Mi).concat(ji);if(!(oa!=null&&oa.length))return;const ia=oa.filter(Ma=>Ma.show).map(Ma=>Ma.label);ia!=null&&ia.length&&(Jr.title=`下钻:${ia.join("、")}`);const Yi=Zn({...ei,allComponentList:vue.unref(Xr),globalModel:vi()}),{indicatorList:aa=[]}=Yi,Ca=await Fi({indicatorList:aa,indicatorToken:gi,pageId:Ai,theFlag:(ei==null?void 0:ei.theFlag)||""}),xa=((wa=Ca==null?void 0:Ca.data)==null?void 0:wa.data)||[];for(const Ma of xa){const Na=aa.find(za=>{let Zr="columnName";return za.formula&&(Zr="label"),za[Zr]===Ma.indexName});Na&&(vue.unref(pi)[Na.label]=Ma.theUnit||"")}if(ct.drillingMode==="normalTable"||vue.unref(ni)){Wr.value=!0,Jr.visible=!0;const Na=hi(wi).filter(oi=>oi.showInDrillTable==="hide").map(oi=>oi.label);Yr.current=1;let za=(Yi==null?void 0:Yi.classification)||(Yi==null?void 0:Yi.classifications)||[];Fr.value=(Oa=aa.find(oi=>oi.show))==null?void 0:Oa.label,Dr.value=((Ra=aa.find(oi=>oi.show))==null?void 0:Ra.hrpIndexCode)||"",Gr.value=(ei==null?void 0:ei.theFlag)||"";const Zr=await $i({indicatorList:aa,indicatorToken:gi}),ui=((Wa=Zr==null?void 0:Zr.data)==null?void 0:Wa.data)||[];if(ui!=null&&ui.length)for(const oi of ui)(Za=oi.detailList)!=null&&Za.length&&oi.detailList.forEach((ci,Ti)=>{if(Ti>0){const Bi=aa.find(ki=>ki.label===ci);Bi&&!Na.includes(Bi.label)&&(Bi.show=!0)}});const ti=aa.filter(oi=>oi.show),ii=[];for(const oi of ti)for(const ci of dr)ii.push({builtInFormula:ci,builtInValueSource:oi.label,calcType:"BUILT_IN",columnName:`${oi.label}@${ci}`,label:`${oi.label}@${ci}`,location:"LEFT",show:!0});if(ii!=null&&ii.length)for(const oi of ii){const ci=aa.findIndex(Ti=>Ti.label===oi.builtInValueSource);ci!==-1&&aa.splice(ci+1,0,oi)}Array.isArray(za)||(za=[za]);try{const oi=await Di({cpntProps:ei,pageId:Ai,formatParams:Yi,classifications:[],indicatorToken:gi,drillingMode:ct.drillingMode}),ci=((Ya=oi==null?void 0:oi.data)==null?void 0:Ya.data)||[];zr.value=ci;let Ti=[],Bi=[];const{usedDimensions:ki=[],params:Ii={},record:Pi={},appointTypeGuid:Gi}=zi;if(Lr.value=Pi,ki!=null&&ki.length){if(Gi){const ga=ci.find(Pa=>Pa.typeGuid===Gi);ga&&Bi.push(ga),delete zi.appointTypeGuid}else if(Ui!=null&&Ui.length)for(const ga of Ui){const Pa=ga.dimensions.map(Da=>Da.typeGuid);for(const Da of Pa)ki.find(Ta=>Ta.typeGuid===Da)||Bi.push(ci.find(Ta=>Ta.typeGuid===Da));if(Bi!=null&&Bi.length)break}else for(const ga of ci)if(!ki.find(Pa=>Pa.label===ga.name)){Bi.push(ga);break}Ii.sqlConditions&&(Yi.sqlConditions=lodashEs.cloneDeep(Ii.sqlConditions));const{sqlConditions:Xi=[]}=Yi,{record:ha={}}=zi;ki.forEach((ga,Pa)=>{if(Tn(ha,ga.label)){const Da=ci.find(ja=>ja.name===ga.label),Ta={fieldName:ga.label,fieldValue:ha[ga.label],globalCondition:!0,hrpIndexCode:null,hrpIndexCodeNum:null,label:ga.label,rule:"EQUAL",typeGuid:ga.typeGuid,valueType:(Da==null?void 0:Da.genericType)||"TEXT"};Pa!==ki.length-1&&(Ta.join="&&"),Pa===0&&(Xi!=null&&Xi.length)&&(Xi[Xi.length-1].join="&&"),Xi.find(ja=>ja.fieldName===Ta.fieldName)||Xi.push(Ta)}})}else if(Ti=za.map(Xi=>({...Xi,calcType:"COLUMN"})),Ui!=null&&Ui.length){const Xi=Ui[0].dimensions.map(ha=>ha.typeGuid);for(const ha of Xi)Bi.push(ci.find(ga=>ga.typeGuid===ha))}else Bi=ci.filter(Xi=>!Xi.isExtProperty).slice(0,2).sort((Xi,ha)=>Xi.typeGuid-ha.typeGuid);Ri(Yi,lodashEs.cloneDeep(zi.props));for(const Xi of Bi)Ti.find(ha=>ha.typeGuid===Xi.typeGuid)||Ti.push({calcType:"COLUMN",columnName:Xi.name,label:Xi.name,show:!0,typeGuid:Xi.typeGuid,isExtProperty:Xi.isExtProperty});Yi.queryColumns=Ti,Yi.layer="1",Yi.plugin="5",delete Yi.classification,delete Yi.classifications;const{url:Zi,...ra}=Yi||{};ra.chartType="pivot-table-list",ra.rowHeaders=ra.queryColumns,fi.value=ra,_i.value=Zi,la(Yi);const Ki=Ti.map(Xi=>Xi.label).concat(...Yi.indicatorList.filter(Xi=>Xi.show).map(Xi=>Xi.label)).filter(Xi=>!Na.includes(Xi.label));if(li){const Xi=wi.indicators.find(ga=>ga.show),ha=qi(ei);ha&&Xi&&(si.value={[Xi.label]:ha})}const na=ki.concat(Ti),pa=[];if(Ui!=null&&Ui.length)for(const Xi of Ui)pa.push(...((es=Xi==null?void 0:Xi.dimensions)==null?void 0:es.map(ha=>ha.typeGuid))||[]);mi.value=ci.filter(Xi=>!na.find(ha=>ha.label===Xi.name)&&(!pa.length||pa.includes(Xi.typeGuid)));const Ea=Ki.filter(Xi=>!!Xi).map(Xi=>{let ha=Xi;const ga=ci.find(Pa=>Pa.name===Xi);if(ga)ha=ga.title||ga.label;else{ha=ba(ha),ha||(ha="本期");const Pa={...vue.unref(si),...vue.unref(pi)};let Da=Xi;ha==="上期"?Da=Xi.replace("@LAST_DATA",""):ha==="同期"&&(Da=Xi.replace("@SAME_DATA",""));const Ta=Pa[Da];Ta&&(ha+=`(${Ta})`)}return{title:ha,dataIndex:Xi,align:ga?"left":"right",fixed:ga?"left":"",isIndicator:!ga,sorter:!0,customHeaderCell:()=>({class:{"left-align":!!ga,"right-align":!ga}}),customCell:(Pa,Da,Ta)=>({class:{"dimension-column":!!ga},style:{minWidth:ga?"":estimateWidth(ha,vue.unref(yi))+30+"px"},[vue.unref(ni)?"onClick":"onDblclick"]:()=>{const ja={...Pi,...Pa},$a=ci.find(Qa=>Ta.dataIndex===Qa.name);let Xa=ci.length;if(Ui!=null&&Ui.length){Xa=0;for(const Qa of Ui)Xa+=Qa.dimensions.length}Xa>na.length?(kr.value=!0,vue.nextTick(()=>{vue.unref(Ir).showModal({...zi,record:ja,usedDimensions:na,params:Yi})})):!$a&&!ba(Ta.dataIndex)&&(Pr.value=!0,vue.nextTick(()=>{vue.unref(Br).showModal({record:ja,dimOpts:ci,column:Ta,formatParams:Yi,cpntProps:ei,drillDetailUrl:ct.drillDetailUrl,drillConditions:vue.unref(Ji)})}))},onContextmenu(ja){var ps;if(ja.preventDefault(),!((ps=vue.unref(mi))!=null&&ps.length))return;xi.value={...zi,record:{...Pi,...Pa},usedDimensions:na,params:Yi};const $a=5,Xa=32,Qa=8,vs=200,ms=ci.length-ki.length,{clientX:ns,clientY:rs}=ja,{clientWidth:ls,clientHeight:cs}=document.body,{widthScale:gs=1,heightScale:ys=1}=ct.scaleValue||{};let us=rs,ds="top",fs=ns,hs="left";cs-rs-ms*Xa-Qa<0&&(ds="bottom",us=cs-rs),ls-ns<vs&&(hs="right",fs=ls-ns),br.value={[hs]:fs/gs+$a+"px",[ds]:us/ys+$a+"px"},Ar.value=!0}})}});Jr.columns=[];for(const Xi of Ea)if(Xi.isIndicator){const{dataIndex:ha}=Xi;if(ba(ha))continue;{const ga={title:ha,dataIndex:nanoid(6),children:[Xi]};for(const Pa of dr){const Da=Ea.find(Ta=>Ta.dataIndex===`${ha}@${Pa}`);Da&&ga.children.push(Da)}Jr.columns.push(ga)}}else Xi.width=180,Jr.columns.push(Xi);await ya(),Wr.value=!1,da(),va()}catch(oi){console.error(oi)}}else if(ct.drillingMode==="pivotTable"){const Ma=await Di({cpntProps:ei,pageId:Ai,formatParams:Yi,classifications:[],indicatorToken:gi});zr.value=((ts=Ma==null?void 0:Ma.data)==null?void 0:ts.data)||[];const Na=nanoid(6);wi.queryColumnList||(wi.queryColumnList=[]),wi!=null&&wi.classificationList&&(wi.queryColumnList=wi.classificationList,delete wi.classificationList),wi!=null&&wi.seriesList&&(wi.queryColumnList=wi.queryColumnList.concat(wi.seriesList),delete wi.seriesList),wi.indicators=lodashEs.cloneDeep(oa||[]),delete wi.leftAxisList,delete wi.rightAxisList;const za={},Zr=wi.indicators.find(ti=>ti.show);if(li){const ti=vue.unref(zr).filter(oi=>!oi.isExtProperty).slice(0,2).sort((oi,ci)=>oi.typeGuid-ci.typeGuid).map(oi=>({...oi,show:!0,edit:!1,dataTo:"0",width:oi.name==="the_date"?15:0,dataSetParams:{}}));ti!=null&&ti.length&&(wi.queryColumnList=ti);const ii=qi(ei);if(ii&&Zr){const{label:oi}=Zr;za.defaultConfig={indexFormatConfig:{[oi]:{fieldName:oi,indicatorKey:oi,position:"right",unit:ii}}}}}ei!=null&&ei.theFlag&&(za.theFlag=ei.theFlag),(Ja=wi.queryColumnList)!=null&&Ja.length||(wi.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 ui={...lodashEs.cloneDeep(pivotTableProps),id:Na,keyName:`透视表_${Na}`,position:"relative",top:0,left:0,width:parseFloat(ct.width)*mr+"px",height:window.screen.height*gr+"px",pageId:Ai,indicatorToken:gi,context:CONTEXT,globalModel:vi(),graphicConfig:wi,pageConfig:ct,...za};ct.theme==="darkBlue"&&(ui.styleConfig=Tr),li&&(ui.defalutCalcList=["MOM_DATA","YOY_DATA"]),jr.value=ui,Jr.visible=!0,vue.nextTick(()=>{vue.unref(Or).refreshData()})}vue.nextTick(()=>{Ga(!0)})},Ba=async zi=>{Yr.current=zi,await ya(),da()},Ha=zi=>{Yr.pageSize=zi,Ba(1)},Ia=async(zi,ei,li)=>{bi.value=li,await ya(),da()},Ga=zi=>{const ei=document.querySelector(`.datav-drill-modal.${hr} .ant-modal-header`);ei&&(zi?ei.addEventListener("dblclick",Vi):ei.removeEventListener("dblclick",Vi))},Va=zi=>{const ei=document.querySelector(`.datav-drill-modal.${hr} .ant-modal-header`);if(ei)if(zi)ei.addEventListener("mousedown",Ua);else{const li=ei.parentElement;li&&(li.style.left="",li.style.top=""),ei.removeEventListener("mousedown",Ua)}};function Ua(zi){dragModalAction(zi,`.datav-drill-modal.${hr} .ant-modal-header`)}const Vi=()=>{if(ct.isOutDrill){ur("zoom");return}Nr.value=!Nr.value,vue.nextTick(()=>{Nr.value?(vue.unref(jr).width=parseFloat(ct.width)*mr+"px",vue.unref(jr).height=window.screen.height*gr+"px",Va(!1)):(vue.unref(jr).width=parseFloat(ct.width)*vr+"px",vue.unref(jr).height=window.screen.height*pr+"px",Va(!0)),da()})},Wi=()=>{document.documentElement.style.overflow="hidden auto",Ga(!1),Va(!1),ur("close")},Hi=({type:zi,data:ei})=>{if(zi==="11"&&ei){const{indicatorList:li=[],queryColumns:gi=[]}=ei,wi=li.concat(gi).filter(ji=>ji.conditions||ji.filter),Ni=loopConditions(wi,"conditions",!0),Mi=loopConditions(ei.sqlConditions,"sqlConditions",!1);$r.value=Ni.concat(Mi).filter(ji=>ji.label)||[]}};vue.watch($r,(zi=[])=>{Vr.value=zi.map(ei=>{let li=ei.fieldValue;if(li&&typeof li=="string"){const gi=li.split(",");(gi==null?void 0:gi.length)>3&&(li=gi.slice(0,3).join(",")+"等")}else li||(li='""');if(ct.drillingMode==="normalTable")return`${ei.label} ${_r[ei.rule]} ${li}`;{const gi=vue.unref(zr).find(Ai=>Ai.label===ei.label);return`${(gi==null?void 0:gi.title)||ei.label} ${_r[ei.rule]} ${li}`}})||[]},{deep:!0});const Ji=vue.computed(()=>vue.unref($r).map(zi=>({label:zi.title||zi.label,typeGuid:zi.typeGuid,rule:zi.rule,value:zi.fieldValue}))),ea=()=>{Pr.value=!1},ta=()=>{kr.value=!1},ca=()=>{ct.isOutDrill&&ur("zoom")},ua=()=>{var zi,ei,li,gi,Ai,wi,Ni,Mi,ji,Ui;if(ct.drillingMode==="normalTable"){if((zi=vue.unref(Br))!=null&&zi.visible)return(ei=vue.unref(Br))==null?void 0:ei.getRecordData();if((gi=(li=vue.unref(Ir))==null?void 0:li.indDetailInfo)!=null&&gi.visible)return(Ai=vue.unref(Ir))==null?void 0:Ai.getPivotRecordData();{const{sqlConditions:oa,...ia}=vue.unref(fi);for(const Yi of oa){const aa=vue.unref(zr).find(Ca=>Ca.typeGuid===Yi.typeGuid);aa!=null&&aa.title&&(Yi.title=aa.title)}return{data:vue.toRaw(Jr.dataSource),columns:[],rows:((Ni=(wi=vue.unref(fi))==null?void 0:wi.queryColumns)==null?void 0:Ni.map(Yi=>({title:Yi.label})))||[],indicators:((ji=(Mi=vue.unref(fi))==null?void 0:Mi.indicatorList)==null?void 0:ji.map(Yi=>({title:Yi.label})))||[],requestParams:{...ia,sqlConditions:oa},type:"pivotTable"}}}else if(ct.drillingMode==="pivotTable")return(Ui=vue.unref(Or))==null?void 0:Ui.getPivotRecordData()},sa=async()=>{var zi,ei,li;Mr.value=!0;try{const gi={indexName:vue.unref(Fr),indexCode:vue.unref(Dr),theFlag:vue.unref(Gr)},{startTime:Ai,endTime:wi,rangeFormat:Ni}=vue.unref(Hr),Mi=vue.unref(Xr).find(ji=>ji.keyName==="机构");for(const ji in vue.unref(Lr)){const Ui=vue.unref(zr).find(oa=>oa.name===ji);Ui&&(gi[Ui.typeGuid]=vue.unref(Lr)[ji])}Ai&&wi&&(gi.startTime=dayjs(Ai).format(Ni),gi.endTime=dayjs(wi).format(Ni)),Mi&&(gi.officeName=((ei=(zi=vue.unref(vi()))==null?void 0:zi.get(Mi.id))==null?void 0:ei.itemLabels)||""),await useDownloadFile(`${vue.unref(Si)}/diagram/download`,{...vue.unref(fi),pageId:getPageId(),unitMap:vue.unref(pi),param:gi},{Authentication:((li=window==null?void 0:window.config)==null?void 0:li.indicatorToken)||"",operateContext:CONTEXT})}finally{Mr.value=!1}},fa=()=>document.getElementsByClassName(`datav-drill-modal ${hr}`)[0]||document.body,ma=zi=>{var ei,li,gi;if(zi){const Ai=(ei=vue.unref(Sr))==null?void 0:ei.getBoundingClientRect();if(Ai){const wi=Ai.left/(((li=ct.scaleValue)==null?void 0:li.widthScale)||1)+"px",Ni=(Ai.top+Ai.height)/(((gi=ct.scaleValue)==null?void 0:gi.heightScale)||1)+"px";setTimeout(()=>{var Ui,oa;const Mi=document.querySelectorAll(".ant-select-dropdown"),ji=Array.from(Mi).filter(ia=>window.getComputedStyle(ia).display!=="none");if(ji!=null&&ji.length){const ia=document.getElementsByClassName(`datav-drill-modal ${hr}`)[0];ji[0].classList.add("ps-select-dropdown"),(Ui=ia==null?void 0:ia.style)==null||Ui.setProperty("--drop-down-left",wi),(oa=ia==null?void 0:ia.style)==null||oa.setProperty("--drop-down-top",Ni),xr.value={visibility:"visible"}}},200)}}else xr.value={}};return Dn({indDetailInfo:Jr,showModal:ka,getPivotRecordData:ua}),{indDetailInfo:Jr,pivotTableConfig:jr,pivotTableStyle:Ei,detailBodyStyle:Oi,wrapClassName:Li,isIndFullScreen:Nr,isMobile:ni,conditionInfo:Vr,indicatorUrl:Si,allDimensions:zr,requestLoading:Wr,isLoadedTable:qr,pivotTableRef:Or,lastDetailRef:Br,subDrillModalRef:Ir,theDateInfo:Hr,isShowSubDrillModal:kr,normalTableUnits:si,drillConditions:Ji,allComponentList:Xr,tableFontSize:yi,miniFontSize:di,tableScroll:Rr,tableRef:Qr,summaryList:Kr,summaryHeight:wr,isShowDetailMpdal:Pr,defaultValue:fr,pagination:Yr,searchLoading:Ur,downloading:Mr,dropDownMenuStyle:br,dropDownMenuVisible:Ar,toBeSelectedDims:mi,unitMap:pi,pageSizeOptions:Er,pageSizeSelectRef:Sr,pageSizeDropdownStyle:xr,getContainer:Ci,toggleFullScreen:Vi,onDetailCancel:Wi,onPivotTableChange:Hi,handlePageChange:Ba,handleTableChange:Ia,onCloseDetailModal:ea,onCloseModal:ta,onZoomModal:ca,getCalcLabel:ba,formatMainCell:Sa,formatCellPercent:La,handleExport:sa,drillByDimension:qa,getPageSizeSelectContainer:fa,pageSizeDropdownVisibleChange:ma,onPageSizeChange:Ha}}}),DrillModal_vue_vue_type_style_index_0_scoped_ca6c06b3_lang="",DrillModal_vue_vue_type_style_index_1_lang="",_hoisted_1$q=["title"],_hoisted_2$d={key:0,class:"spin-container"},_hoisted_3$7={class:"tool-bar"},_hoisted_4$4={ref:"pageSizeSelectRef",style:{"margin-left":"15px"}},_hoisted_5$4=vue.createTextVNode("导出为Excel"),_hoisted_6$4=["title"],_hoisted_7$4=["title"],_hoisted_8$4=["title","onClick"];function _sfc_render$E(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("close-outlined"),pr=vue.resolveComponent("switcher-outlined"),mr=vue.resolveComponent("border-outlined"),gr=vue.resolveComponent("a-spin"),yr=vue.resolveComponent("a-pagination"),Cr=vue.resolveComponent("a-select"),br=vue.resolveComponent("a-button"),Ar=vue.resolveComponent("a-table-summary-cell"),wr=vue.resolveComponent("a-table-summary-row"),_r=vue.resolveComponent("a-table-summary"),Tr=vue.resolveComponent("a-table"),Er=vue.resolveComponent("pivot-table"),xr=vue.resolveComponent("a-modal"),Sr=vue.resolveComponent("last-detail"),kr=vue.resolveComponent("drill-modal",!0);return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(xr,{visible:ct.indDetailInfo.visible,"onUpdate:visible":Dn[4]||(Dn[4]=Pr=>ct.indDetailInfo.visible=Pr),width:"60%",getContainer:ct.getContainer,footer:null,destroyOnClose:!0,"wrap-class-name":ct.wrapClassName,bodyStyle:ct.detailBodyStyle,mask:ct.isShowMask,onCancel:ct.onDetailCancel},{title:vue.withCtx(()=>[vue.createElementVNode("div",{class:"detail-modal-title",title:ct.conditionInfo.join("、")},vue.toDisplayString(ct.indDetailInfo.title)+" "+vue.toDisplayString(ct.conditionInfo.join("、")),9,_hoisted_1$q)]),closeIcon:vue.withCtx(()=>[vue.createVNode(vr,{class:vue.normalizeClass(["modal-icon",ct.theme])},null,8,["class"])]),default:vue.withCtx(()=>{var Pr;return[!ct.isMobile&&!ct.isOutDrill?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"zoom-btn",onClick:Dn[0]||(Dn[0]=(...Ir)=>ct.toggleFullScreen&&ct.toggleFullScreen(...Ir))},[ct.isIndFullScreen?(vue.openBlock(),vue.createBlock(pr,{key:0,class:vue.normalizeClass(["modal-icon",ct.theme])},null,8,["class"])):(vue.openBlock(),vue.createBlock(mr,{key:1,class:vue.normalizeClass(["modal-icon",ct.theme])},null,8,["class"]))])):vue.createCommentVNode("",!0),ct.drillingMode==="normalTable"||ct.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[ct.isLoadedTable?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$d,[vue.createVNode(gr,{size:"large"})])),ct.requestLoading?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",{key:1,ref:"tableRef",style:vue.normalizeStyle({visibility:ct.isLoadedTable?"visible":"hidden"})},[vue.createElementVNode("div",_hoisted_3$7,[vue.createVNode(yr,{current:ct.pagination.current,"onUpdate:current":Dn[1]||(Dn[1]=Ir=>ct.pagination.current=Ir),"page-size":ct.pagination.pageSize,"onUpdate:page-size":Dn[2]||(Dn[2]=Ir=>ct.pagination.pageSize=Ir),total:ct.pagination.total,"show-total":ct.pagination.showTotal,showLessItems:ct.pagination.showLessItems,showSizeChanger:ct.pagination.showSizeChanger,responsive:!1,disabled:ct.searchLoading,onChange:ct.handlePageChange},null,8,["current","page-size","total","show-total","showLessItems","showSizeChanger","disabled","onChange"]),vue.createElementVNode("div",_hoisted_4$4,[vue.createVNode(Cr,{value:ct.pagination.pageSize,"onUpdate:value":Dn[3]||(Dn[3]=Ir=>ct.pagination.pageSize=Ir),dropdownClassName:"page-size-select-dropdown",options:ct.pageSizeOptions,getPopupContainer:ct.getPageSizeSelectContainer,dropdownStyle:ct.pageSizeDropdownStyle,onDropdownVisibleChange:ct.pageSizeDropdownVisibleChange,onChange:ct.onPageSizeChange},null,8,["value","options","getPopupContainer","dropdownStyle","onDropdownVisibleChange","onChange"])],512),vue.createVNode(br,{loading:ct.downloading,onClick:ct.handleExport,style:{"margin-left":"15px"}},{default:vue.withCtx(()=>[_hoisted_5$4]),_:1},8,["loading","onClick"])]),vue.createVNode(Tr,{class:"normal-table",size:"small",scroll:ct.isMobile?{x:"max-content",y:"70vh"}:ct.tableScroll,"row-key":Ir=>Ir.uuid,columns:ct.indDetailInfo.columns,"data-source":ct.indDetailInfo.dataSource,pagination:!1,"row-class-name":(Ir,Br)=>Br%2===1?"table-striped":null,showHeader:!!((Pr=ct.indDetailInfo.dataSource)!=null&&Pr.length),loading:ct.searchLoading,"table-layout":"auto",onChange:ct.handleTableChange},{headerCell:vue.withCtx(({title:Ir})=>[vue.createElementVNode("div",{class:"detail-table-header-cell",title:Ir,style:vue.normalizeStyle({fontSize:ct.tableFontSize})},vue.toDisplayString(Ir&&Ir.includes("(主指标)")?Ir.replace("(主指标)",""):Ir),13,_hoisted_6$4)]),bodyCell:vue.withCtx(({text:Ir,column:Br})=>[vue.createElementVNode("div",{title:Ir,style:vue.normalizeStyle({fontSize:ct.tableFontSize})},[vue.createTextVNode(vue.toDisplayString(ct.formatMainCell(Ir,Br))+" ",1),vue.createElementVNode("span",{style:vue.normalizeStyle({fontSize:ct.miniFontSize,color:"#0BBBEE"})},vue.toDisplayString(ct.formatCellPercent(Ir,Br)),5)],12,_hoisted_7$4)]),summary:vue.withCtx(()=>[vue.createVNode(_r,{fixed:""},{default:vue.withCtx(()=>[vue.createVNode(wr,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ct.summaryList,(Ir,Br)=>(vue.openBlock(),vue.createBlock(Ar,{key:Br,index:Br,style:vue.normalizeStyle({textAlign:Ir.align||"left",height:ct.summaryHeight+"px",fontSize:ct.tableFontSize,fontWeight:600,color:"rgba(0, 0, 0, 0.85)",padding:"8px 16px",whiteSpace:"nowrap"})},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Br?Ir.value:"合计"),1)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1})]),_:1},8,["scroll","row-key","columns","data-source","row-class-name","showHeader","loading","onChange"])],4))],64)):ct.drillingMode==="pivotTable"?(vue.openBlock(),vue.createElementBlock("div",{key:2,style:vue.normalizeStyle({position:"relative",...ct.pivotTableStyle})},[vue.createVNode(Er,vue.mergeProps({ref:"pivotTableRef"},ct.pivotTableConfig,{pageMode:ct.pageMode,theme:ct.theme,fullMode:!1,allowDrill:!0,showFullScreen:!1,indicatorUrl:ct.indicatorUrl,relateKeyName:ct.indDetailInfo.keyName,allDimensions:ct.allDimensions,scaleValue:ct.scaleValue,defaultFontSize:ct.pivotTableFontSize,drillDetailUrl:ct.drillDetailUrl,drillConditions:ct.drillConditions,isMobile:ct.isMobile,isNeedEmptyRow:!1,componentList:ct.allComponentList,unitMap:ct.unitMap,enlargeContainer:"#norPageConfig",onTableChange:ct.onPivotTableChange}),null,16,["pageMode","theme","indicatorUrl","relateKeyName","allDimensions","scaleValue","defaultFontSize","drillDetailUrl","drillConditions","isMobile","componentList","unitMap","onTableChange"])],4)):vue.createCommentVNode("",!0),ct.dropDownMenuVisible?(vue.openBlock(),vue.createElementBlock("div",{key:3,class:"drop-down-menu",style:vue.normalizeStyle(ct.dropDownMenuStyle)},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ct.toBeSelectedDims,Ir=>(vue.openBlock(),vue.createElementBlock("div",{key:Ir.typeGuid,class:"drop-down-menu-item",title:Ir.name,onClick:Br=>ct.drillByDimension(Br,Ir.typeGuid)},vue.toDisplayString(Ir.name),9,_hoisted_8$4))),128))],4)):vue.createCommentVNode("",!0)]}),_:1},8,["visible","getContainer","wrap-class-name","bodyStyle","mask","onCancel"]),ct.isShowDetailMpdal?(vue.openBlock(),vue.createBlock(Sr,{key:0,ref:"lastDetailRef",theme:ct.theme,theDateInfo:ct.theDateInfo,scaleValue:ct.scaleValue,fontSize:ct.pivotTableFontSize,allDimensions:ct.allDimensions,isOutDrill:ct.isOutDrill,onClose:ct.onCloseDetailModal,onZoom:ct.onZoomModal},null,8,["theme","theDateInfo","scaleValue","fontSize","allDimensions","isOutDrill","onClose","onZoom"])):vue.createCommentVNode("",!0),ct.isShowSubDrillModal?(vue.openBlock(),vue.createBlock(kr,{key:1,ref:"subDrillModalRef",width:ct.width,theme:ct.theme,drillingMode:ct.drillingMode,pageMode:ct.pageMode,scaleValue:ct.scaleValue,pivotTableFontSize:ct.pivotTableFontSize,drillDetailUrl:ct.drillDetailUrl,isShowMask:ct.isIndFullScreen,isOutDrill:ct.isOutDrill,onClose:ct.onCloseModal,onZoom:ct.onZoomModal},null,8,["width","theme","drillingMode","pageMode","scaleValue","pivotTableFontSize","drillDetailUrl","isShowMask","isOutDrill","onClose","onZoom"])):vue.createCommentVNode("",!0)],64)}const DrillModal=_export_sfc$1(_sfc_main$z,[["render",_sfc_render$E],["__scopeId","data-v-ca6c06b3"]]),_sfc_main$y=vue.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,components:{IndicatorDetailModal,TrendModal,DrillModal,SourceModal},props:{...providerConfigComponentProps,pageId:{type:String,default:""},customId:{type:String,default:"ProviderConfig"},customStyle:{type:Object,default:()=>({})},fixedHeight:{type:String,default:"0px"},isOutDrill:{type:Boolean,default:!1}},setup(ct,{expose:Dn,emit:ur}){ct.pageId||useHrefParamsToGlobalVariables();const dr=vue.ref(!1),fr=vue.ref(),hr=vue.ref(),vr=vue.ref(),pr=vue.ref(),mr=vue.computed(()=>INDICATOR_URL),gr=vue.computed(()=>jn(ct.contextRequestUrl)),yr=vue.computed(()=>ct.pageMode),Cr=vue.computed(()=>ct.theme),br=vue.computed(()=>ct.width),Ar=vue.computed(()=>ct.height),wr=vue.computed(()=>ct.pageFontFamily),_r=vue.computed(()=>ct.textColor),Tr=vue.computed(()=>ct.fixedHeight?parseFloat(ct.fixedHeight):0),Er=vue.computed(()=>ct.isCompatible),xr=vue.computed(()=>ct.variableList),Sr=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)),kr=vue.computed(()=>parseFloat(ct.pivotTableFontSize)),Pr=vue.ref(),Ir=vue.ref({}),Br=vue.ref(!0),Or=()=>{Pr.value.setAttribute("datav-theme",ct.theme)},Nr=vue.ref(!1),jr=vue.ref({currentYmd:dayjs().format("YYYY-MM-DD"),currentYear:dayjs().format("YYYY"),currentMonth:dayjs().format("MM"),currentDay:dayjs().format("DD")}),Vr=vue.computed(()=>{const Vi={};if(vue.unref(xr))for(const Hi of vue.unref(xr))Vi[Hi.label]=Hi.value;return{$page:{...vue.unref(jr),...Vi}}});vue.provide(GLOBAL_VARIABLE,{globalVariable:Vr});const $r=vue.inject("usedComponentList",[]),zr=vue.inject("componentList",[]),Wr=vue.inject("setPageLoading",Vi=>{});vue.watch(Vr,()=>{ur("setGlobalVar",vue.unref(jr))},{deep:!0,immediate:!0});const qr=vue.computed(()=>{const Vi=[];for(const Wi of vue.unref($r))Wi.type==="ecanModal"?Vi.push(...Wi.componentList):Vi.push(Wi);return Vi});vue.watch(()=>ct.theme,()=>{Or()}),vue.onMounted(()=>{Or()});const Mr=vue.computed(()=>{const Vi=[],Wi=vue.unref(zr).filter(Hi=>Hi.type==="ecanModal");for(const Hi of Wi)Hi!=null&&Hi.requestList&&Vi.push(...Hi.requestList);return[...Vi,...ct.requestList]}),Lr=Vi=>Object.prototype.toString.call(Vi)==="[object Object]",Fr=Vi=>{const Wi=Vi.split(".");let Hi=vue.unref(Vr);for(const Ji of Wi)if(Hi&&Lr(Hi))Hi=Hi[Ji];else{Hi="";break}return Hi},Dr=vue.ref("");vue.provide(GLOBAL_CONFIG,{contextRequestUrl:gr,pageMode:yr,theme:Cr,touchEventId:Dr,width:br,height:Ar,fontFamily:wr,textColor:_r,requestList:Mr,isCompatible:Er,fixedHeight:Tr,getGlobalVar:Fr});const Gr=vue.ref({height:"100%",overflow:ct.pageMode==="design"?"":"hidden"});vue.provide("setPageHeight",(Vi,Wi)=>{let Hi=0;Vi==="auto"?(Hi=Vi,Ir.value={widthScale:1,heightScale:1}):(Hi=Vi.heightScale,Ir.value=Vi),(!Er.value||!Sr.value)&&(Hi=parseFloat(Wi||Ar.value)*Hi+"px"),Gr.value.height=Hi}),vue.provide("isMobile",Sr.value),vue.provide("getContainerMap",()=>ct.containerMap),vue.provide("getCombinationMap",()=>ct.combinationMap),vue.provide("templateOperate",{pageId:ct.pageId,templateEmit:ur,setTemplateData:Vi=>{var Wi;if(Vi!=null&&Vi.pageId){const{componentId:Hi,...Ji}=Vi;(Wi=window.config)!=null&&Wi.urlParams||(window.config.urlParams={}),window.config.urlParams[Vi.pageId]=Ji,ur("templateChange",Vi)}}});const Rr=vue.ref(),Qr=new Map,Kr=()=>Qr,Hr=Vi=>{let Wi=Qr.get(Vi);if(!Wi){const Hi=vue.unref(zr).find(Ji=>Ji.keyName===Vi);Hi&&(Wi=Qr.get(Hi.id))}return Wi},Ur=(Vi,Wi)=>{var Hi;if(Rr.value=Wi,Qr.set(Vi,Wi),!ct.pageId){const Ji=vue.unref($r).find(ea=>ea.id===Vi);Ji&&((Hi=window.config)!=null&&Hi.record||(window.config.record={}),window.config.record[Ji.keyName]=Wi)}},Jr=()=>{Rr.value=null},Yr=(Vi,Wi)=>{var Ji;let Hi=Vi;if(Hi){const ea=Vi.match(/\{(.+?)\}/g);if(ea!=null&&ea.length){let ta=ea[0].slice(1,-1).trim();const ca=ta.match(/\[(.+?)\]/g);let ua="";ca!=null&&ca.length&&(ta=ta.replace(ca[0],""),ua=ca[0].slice(1,-1).trim());const sa=vue.unref(qr).find(fa=>fa.keyName===ta);if(sa)if(sa.type==="ecanCirculate"){const{rows:fa=[]}=vue.unref(da)[sa.id]||{},{extendData:ma={}}=Wi||{},{circulateKeyName:zi}=ma,ei=(Ji=ma[zi])==null?void 0:Ji.index;ei&&fa[ei-1]&&(Hi=fa[ei-1][ua])}else{const fa=Hr(sa.id),{type:ma,value:zi,RECORD:ei,recordData:li={}}=fa||{};Nn(ma,MODEL_KEY_LIST)?Hi=ei[ua]:Nn(ma,"select")?li[ua]?Hi=li[ua]:Hi=vue.unref(zi):Nn(ma,["rangePicker","date"])?dayjs.isDayjs(vue.unref(fa[ua]))?Hi=vue.unref(fa[ua]).format(fa.format):Hi=vue.unref(fa[ua]):Hi=zi}else{const fa=window.config.requestParams||{},ma=window.location.search.slice(1).split("&"),zi={};for(const li of ma)if(li!=null&&li.includes("=")){const gi=li.split("=");zi[gi[0]]=gi[1]||""}Hi={...zi,...fa}[ta]||""}}}return Hi},si=Vi=>{let Wi=Vi;if(Wi){const Hi=Vi.match(/\{(.+?)\}/g);if(Hi!=null&&Hi.length){let Ji=Hi[0].slice(1,-1).trim();const ea=Ji.match(/\[(.+?)\]/g);let ta="";ea!=null&&ea.length&&(Ji=Ji.replace(ea[0],""),ta=ea[0].slice(1,-1).trim());const ca=vue.unref(qr).find(ua=>ua.keyName===Ji);if(ca){const ua=Hr(ca.id),{type:sa,value:fa,RECORD:ma,recordData:zi={}}=ua||{};Nn(sa,MODEL_KEY_LIST)?Wi=ma[ta]:Nn(sa,"select")?zi[ta]?Wi=zi[ta]:Wi=vue.unref(fa):Nn(sa,["rangePicker","date"])?dayjs.isDayjs(vue.unref(ua[ta]))?Wi=vue.unref(ua[ta]).format(ua.format):Wi=vue.unref(ua[ta]):Wi=fa}else{const ua=window.config.requestParams||{},sa=window.location.search.slice(1).split("&"),fa={};for(const zi of sa)if(zi!=null&&zi.includes("=")){const ei=zi.split("=");fa[ei[0]]=ei[1]||""}Wi={...fa,...ua}[Ji]||""}}}return Wi},fi=new Map,_i={},bi=async(Vi,Wi)=>{var ca;const{requestName:Hi}=Vi,Ji=await useRequestData({...Vi,projectRequestUrl:vue.unref(gr),getModel:Hr})(),ea=((ca=Ji==null?void 0:Ji.data)==null?void 0:ca.data)||{};Vi.requestKeyName&&(jr.value[Vi.requestKeyName]=ea);const ta=fi.get(Hi);if(ta!=null&&ta.length&&(!Wi||_i[Hi])){for(const ua of ta)ua(ea);Wi||fi.delete(Hi)}},pi=(Vi,Wi)=>{_i[Vi]&&(clearInterval(_i[Vi]),delete _i[Vi],fi.delete(Vi));const Hi=vue.unref(qr).filter(ea=>ea.dataType==="request"&&!ea.openCustomRequestData&&ea.customRequestName===Vi),Ji=fi.get(Vi)||[];if((Hi==null?void 0:Hi.length)>Ji.length&&(Ji.push(Wi),fi.set(Vi,Ji),(Hi==null?void 0:Hi.length)===Ji.length)){const ea=vue.unref(Mr).find(ta=>ta.requestName===Vi);ea&&(ea!=null&&ea.isOpenRequestTimer&&(ea!=null&&ea.requestInterval)?(bi(ea,!0),_i[Vi]=setInterval(()=>{bi(ea,!0)},ea.requestInterval*1e3)):bi(ea))}};vue.provide(GLOBAL_MODEL,{getGlobalModel:Hr,setGlobalModel:Ur,getAllGlobalModel:Kr,clearInteractiveData:Jr,getRecordValueByKeyName:si,getValueFromCirculate:Yr,hanldePageRequestData:pi,interactiveData:Rr});const mi=vue.ref({}),xi=(Vi,Wi)=>{mi.value[Vi]=Wi};vue.provide(LOADED_DATA,{loadedData:mi,setLoadedData:xi});const ni=[],ai=()=>{ni.pop()},Xr=Vi=>{ni.push(Vi)},vi=new Map,Si=Vi=>vi.get(Vi),ri=(Vi,Wi)=>{vi.set(Vi,Wi)};vue.provide(MODAL_MODEL,{popUseModalIds:ai,pushUseModalIds:Xr,getModalModel:Si,setModalModel:ri});const yi=mitt(),di=new Set,Ei=new Map,Oi=(Vi,Wi,Hi)=>{di.add(Vi),Ei.set(Vi,{sort:Hi,events:Wi}),vue.onBeforeUnmount(()=>{Ei.delete(Vi)})},Li=async(Vi=[],Wi,Hi)=>{const Ji=new Map,{type:ea}=Hi||{};if(ea==="refreshTemplate")for(const ua of Vi){const sa=Ei.get(ua.target),{updateByUrlParams:fa}=(sa==null?void 0:sa.events)||{};typeof fa=="function"&&fa()}function ta({key:ua,eventName:sa,params:fa}){if(!ua||!sa)return;const ma=Ei.get(ua);if(typeof(ma==null?void 0:ma.events[sa])=="function"){const{sort:zi}=ma,ei={fn:ma.events[sa],params:fa};if(Ji.has(zi)){const li=Ji.get(zi);li==null||li.push(ei)}else Ji.set(zi,[ei])}}for(const ua of Vi){const{target:sa,emit:fa}=ua;if(sa==="PAGE"){const ma=ni.length;let zi=[];if(ma===0)zi=[...di];else{const ei=ni[ma-1];zi=[...Si(ei)]}zi.forEach(ei=>{ta({key:ei,eventName:fa,params:Wi})})}else(!vue.unref(Br)||fa!=="refreshData")&&ta({key:sa,eventName:fa,params:Wi})}const ca=Array.from(Ji);ca.sort((ua,sa)=>sa[0]-ua[0]);try{for(let ua=0;ua<ca.length;ua++){const sa=ca[ua][1];await Fi(sa)}}catch(ua){console.error(ua)}};vue.provide(EVENT_BUS,{onEvent:Oi,emitEvent:Li});const Ri=vue.ref(0),hi=()=>{Ri.value=vue.unref(Ri)+1};vue.provide(GLOBAL_TOKEN,{requestToken:hi});const Ci=new Map,Di=new Map,$i=({requestFn:Vi=()=>{},sortNum:Wi=0,id:Hi=""})=>{if(Ci.has(Wi)){const Ji=Ci.get(Wi);Ji==null||Ji.push(Vi)}else Ci.set(Wi,[Vi]);Di.set(Hi,Vi)};function Fi(Vi){return new Promise((Wi,Hi)=>{const Ji=[];for(const ea of Vi)Ji.push(new Promise(async ta=>{if(typeof ea=="function")await ea();else{const{fn:ca,params:ua}=ea;typeof ca=="function"&&(ua?await ca(ua):await ca())}ta()}));Promise.all(Ji).then(ea=>{Wi(ea)}).catch(ea=>{Hi(ea)})})}const qi=Vi=>new Promise(async(Wi,Hi)=>{if(Vi){if(typeof Vi=="string"){const Ji=Di.get(Vi);if(typeof Ji=="function"){const ea=request.interceptors.response.use(ta=>(Wi(ta),ta),ta=>(Hi(ta),Promise.reject(ta)));Ji(),request.interceptors.response.eject(ea)}}}else{const Ji=Array.from(Ci);Ji.sort((ta,ca)=>ca[0]-ta[0]);const ea=Ji.length;ea&&Wr(!0);try{ct.pageMode!=="design"&&vue.unref(Ri)>0;for(let ta=0;ta<ea;ta++){const ca=Ji[ta][1];await Fi(ca)}}catch(ta){console.error(ta)}finally{Ci.clear(),Wi(null),Br.value=!1,Wr(!1)}}});vue.provide(REQUEST_MODEL,{setRequest:$i,touchRequest:qi});const Qi=()=>{yi.emit(REFRESH_PAGE)};vue.provide(REFRESH_PAGE,{emitRefreshPage:Qi});const la=Vi=>{yi.on(REFRESH_PAGE,()=>Vi()),vue.onMounted(()=>{yi.off(REFRESH_PAGE)})},da=vue.ref({}),va=vue.ref();vue.provide(All_COMPONENT_RES_DATA,{allComponentResData:da});const ya=Vi=>{const{id:Wi,data:Hi}=Vi;Hi.success&&(da.value[Wi]=(Hi==null?void 0:Hi.data)||{})},ba=Vi=>{va.value=Vi},Sa=(Vi,Wi)=>{switch(Vi){case"SHOW_INDICATOR_DETAIL_MODAL":dr.value=!0,vue.nextTick(()=>{vue.unref(fr).showModal(Wi)});break;case"SAVE_COMPONENT_RES_DATA":ya(Wi);break;case"SAVE_INDEX_PANEL_REQ_PARAMS":ba(Wi);break}};vue.provide(COMMON_OPERATE,{operateAction:(Vi,Wi)=>{Sa(Vi,Wi)}}),vue.watchEffect(()=>{var Vi;if((Vi=vue.unref($r))!=null&&Vi.length&&vue.unref(yr)!=="design"){const{jumpType:Wi,jumpTime:Hi,jumpPage:Ji,jumpLink:ea}=ct;if(Hi!=null&&Hi.value){let ta=0;switch(Hi==null?void 0:Hi.suffix){case"hours":ta=Hi.value*60*60*1e3;break;case"minute":ta=Hi.value*60*1e3;break;case"seconds":ta=Hi.value*1e3;break}setTimeout(()=>{let ca="";Wi==="page"&&Ji?ca=usePageUrl(vue.unref(yr),Ji):Wi==="link"&&ea&&(ca=ea),ca=jn(ca),window.open(ca,"_self")},ta)}}});const La=Vi=>{var Wi;vue.unref(hr).showModal({data:Vi,indicatorUrl:vue.unref(mr),indicatorToken:((Wi=window==null?void 0:window.config)==null?void 0:Wi.indicatorToken)||"",context:CONTEXT,pageId:getPageId()})},qa=Vi=>{vue.unref(vr).showModal({data:Vi,pageConfig:ct,unitText:Ba(Vi)})},ka=Vi=>{var Wi;vue.unref(pr).showModal({data:Vi,indicatorUrl:vue.unref(mr),indicatorToken:((Wi=window==null?void 0:window.config)==null?void 0:Wi.indicatorToken)||"",context:CONTEXT,pageId:getPageId()})},Ba=Vi=>{let Wi="",Hi="";const{componentConfig:Ji}=Vi;for(const ta in Ji)if(Ji[ta].key==="currentValue"){Hi=ta;break}const ea=vue.unref(zr).find(ta=>ta.id===Hi);return ea!=null&&ea.unitText&&(Wi=ea.unitText),Wi};vue.provide("showIndDetail",La),vue.provide("showIndSource",ka);const Ha={indexName:"指标名",currentValue:"当前值",refValue:"目标值",lastValueRate:"同比",lastCycleValueRate:"环比",systemSource:"指标标记"};let Ia=null;window.addEventListener("message",async Vi=>{var Wi,Hi;if(Vi.source!==window&&(Ia=Vi,ct.customId==="ProviderConfig")){const Ji=Vi.data||{};let ea={data:{}};try{const ta=(Wi=vue.unref($r))==null?void 0:Wi.filter(ca=>ca.type==="ecanIndexPanel");if(Ji.type==="checkData")ea={type:"checkDataRes",hasData:!!(ta!=null&&ta.length),data:{}};else if(Ji.type==="getData"){const ca={};let ua="";if(ta!=null&&ta.length)if((Hi=vue.unref(fr).indDetailInfo)!=null&&Hi.visible){const sa=vue.unref(fr).getPivotRecordData(),{columns:fa,rows:ma,indicators:zi,requestParams:ei,data:li,type:gi,drillContext:Ai}=sa;gi==="pivotTable"?(ei&&(ca.全局筛选条件=Ga({params:ei,onlySql:!1})),ca.当前表结构声明={分析维度:ma.concat(fa).map(wi=>wi.title),绝对值指标:zi.filter(wi=>!wi.calculateType).map(wi=>wi.title),"趋势/比率指标":zi.filter(wi=>wi.calculateType).map(wi=>wi.title)},ca.明细数据=li):(ca.钻取上下文=Ai,ca.流水日志=li),ua=gi}else{ca.运营数据=[];for(const sa of ta){const fa={};for(const ma in sa.componentConfig){const zi=sa.componentConfig[ma];if(zi.show){const li=(ma?document.querySelector(`div[cpntid="${ma}"]`).textContent:"").split(/:|:/);li!=null&&li.length&&(fa[Ha[zi.key]]=li[li.length-1])}}ca.运营数据.push(fa)}vue.unref(va)&&(ca.分析背景=Ga({params:vue.unref(va),onlySql:!0}))}ea={type:"getDataRes",data:ca},ua&&(ea.dataType=ua)}else Ji.type==="triggerDrill"&&(dr.value=!0,Nr.value=!0,vue.nextTick(()=>{vue.unref(fr).showModal(Ji.data)}))}catch(ta){ea={error:ta.message,data:{}}}["getData","checkData"].includes(Ji.type)&&Vi.source.postMessage(ea,Vi.origin)}});function Ga({params:Vi,onlySql:Wi}){var zi;const{sqlConditions:Hi,queryColumns:Ji,indicatorList:ea}=Vi,ta=Ji.concat(ea).filter(ei=>ei.conditions),ca=loopConditions(ta,"conditions",!0),ua=loopConditions(Hi,"sqlConditions",!1);let sa=[];const fa={};if(Wi)sa=ua;else{sa=lodashEs.cloneDeep(ca);for(const ei of ua)if(!ca.find(li=>li.typeGuid===ei.typeGuid)){const li=sa.findIndex(gi=>ei.typeGuid!=="the_date"&&(gi.typeGuid===ei.typeGuid||gi.typeGuid+"_code"===ei.typeGuid)||gi.typeGuid===ei.typeGuid+"_code");li!==-1&&sa.splice(li,1),sa.push(ei)}}if(!sa.find(ei=>ei.typeGuid==="the_date"&&!ei.alias)){const ei=sa.find(gi=>gi.alias.includes("-startTime")),li=sa.find(gi=>gi.alias.includes("-endTime"));if(ei&&li){const gi=ei.alias.replace("-startTime","");gi&&(fa[gi]=`${ei.fieldValue}至${li.fieldValue}`)}}for(const ei of sa){const{alias:li,label:gi,title:Ai,fieldValue:wi,variateName:Ni}=ei;if(li){if(!li.includes("-startTime")&&!li.includes("-endTime")&&!Ni){const Mi=vue.unref($r).find(ji=>ji.keyName===li);if(["ecanSelect"].includes(Mi==null?void 0:Mi.type)){const ji=((zi=vue.unref(da)[Mi.id])==null?void 0:zi.rows)||[];if(Mi.mode==="multiple"){const Ui=wi.split(",");(Ui==null?void 0:Ui.length)===(ji==null?void 0:ji.length)?fa[li]="全院":fa[li]=ji.filter(oa=>Ui.includes(oa.value)).map(oa=>oa.label).join(",")}else{const Ui=ji.find(oa=>oa.value===wi);Ui&&(fa[li]=Ui.label)}}else fa[li]=wi}}else fa[Ai||gi]=wi}return fa}const Va=()=>{var Vi;(Vi=Ia==null?void 0:Ia.source)==null||Vi.postMessage({type:"close"},Ia==null?void 0:Ia.origin),dr.value=!1},Ua=()=>{var Vi;(Vi=Ia==null?void 0:Ia.source)==null||Vi.postMessage({type:"zoom"},Ia==null?void 0:Ia.origin)};return vue.onBeforeUnmount(()=>{Ci==null||Ci.clear(),Di==null||Di.clear()}),Dn({touchRequest:qi,getGlobalModel:Hr,onRefreshPage:la,emitEvent:Li,getRecordValueByKeyName:si,showIndDetail:La,showTrend:qa,showSource:ka,props:ct,systemVariable:jr}),{providerConfig:Pr,configStyle:Gr,indicatorUrl:mr,theme:Cr,drillModalRef:fr,indDetailModalRef:hr,trendModalRef:vr,sourceModalRef:pr,scaleValue:Ir,defaultPivotTableFontSize:kr,isMobile:Sr,isShowDrillModal:dr,isOutTriggerDrill:Nr,onCloseModal:Va,onZoomModal:Ua}}}),ProviderConfig_vue_vue_type_style_index_0_scoped_426efc47_lang="",ProviderConfig_vue_vue_type_style_index_1_lang="",_hoisted_1$p=["id"];function _sfc_render$D(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("drill-modal"),pr=vue.resolveComponent("indicator-detail-modal"),mr=vue.resolveComponent("trend-modal"),gr=vue.resolveComponent("source-modal");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",{class:"provider-config-container",id:ct.customId,ref:"providerConfig",style:vue.normalizeStyle({...ct.configStyle,fontFamily:ct.pageFontFamily,...ct.customStyle})},[vue.renderSlot(ct.$slots,"default",{},void 0,!0)],12,_hoisted_1$p),ct.isShowDrillModal?(vue.openBlock(),vue.createBlock(vr,{key:0,ref:"drillModalRef",width:ct.width,theme:ct.theme,drillingMode:ct.isOutTriggerDrill?"normalTable":ct.drillingMode,pageMode:ct.pageMode,scaleValue:ct.scaleValue,pivotTableFontSize:ct.defaultPivotTableFontSize,drillDetailUrl:ct.drillDetailUrl,isOutDrill:ct.isOutDrill,onClose:ct.onCloseModal,onZoom:ct.onZoomModal},null,8,["width","theme","drillingMode","pageMode","scaleValue","pivotTableFontSize","drillDetailUrl","isOutDrill","onClose","onZoom"])):vue.createCommentVNode("",!0),vue.createVNode(pr,{ref:"indDetailModalRef",theme:ct.theme},null,8,["theme"]),vue.createVNode(mr,{ref:"trendModalRef",theme:ct.theme},null,8,["theme"]),vue.createVNode(gr,{ref:"sourceModalRef",theme:ct.theme},null,8,["theme"])],64)}const ProviderConfig=_export_sfc$1(_sfc_main$y,[["render",_sfc_render$D],["__scopeId","data-v-426efc47"]]),EcanProviderConfig=withInstall$1(ProviderConfig),textProps={...props$1,name:"文本",keyName:"文本",type:"ecanText",width:"100px",height:"40px",text:"文字",lineHeight:"18px",color:"",variableColor:"",fontSize:"14px",fontFamily:"",fontWeight:400,textShadow:"",justifyContent:"center",alignItems:"center",variableFontSize:"14px",variableDefaultValue:"0",format:"",target:"self",href:"",linkPage:"",data:{},percentageSide:"left",increaseColor:"",declineColor:"",minusSignShow:!0,unitShow:!0,unitText:"",unitFontSize:"14px",unitFontWeight:400,unitColor:"#333",unitTop:"",unitLeft:"",graphicConfig:{},targetShow:!1,targetRule:"",targetValue:"",notExpectColor:"",gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",openCustomRequestData:!0,customRequestName:"",customRequestField:"",showEllipsis:!1,showAnimation:!1,transParams:[],exceedConfig:"",targetTemplate:"",dataSetchecked:!1,titleContent:"",titleBackgroundColor:"#ffffff",titleFontColor:"#000000",isMarkDown:!1,isContentMarkDown:!1,parentId:"",associatId:"",useWarningStatus:!1,unitDefaultText:""},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(ct){defaults$5.exports.defaults=ct}defaults$5.exports={defaults:getDefaults$1(),getDefaults:getDefaults$1,changeDefaults:changeDefaults$1};const escapeTest=/[&<>"']/,escapeReplace=/[&<>"']/g,escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g,escapeReplacements={"&":"&","<":"<",">":">",'"':""","'":"'"},getEscapeReplacement=ct=>escapeReplacements[ct];function escape$3(ct,Dn){if(Dn){if(escapeTest.test(ct))return ct.replace(escapeReplace,getEscapeReplacement)}else if(escapeTestNoEncode.test(ct))return ct.replace(escapeReplaceNoEncode,getEscapeReplacement);return ct}const unescapeTest=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function unescape$1(ct){return ct.replace(unescapeTest,(Dn,ur)=>(ur=ur.toLowerCase(),ur==="colon"?":":ur.charAt(0)==="#"?ur.charAt(1)==="x"?String.fromCharCode(parseInt(ur.substring(2),16)):String.fromCharCode(+ur.substring(1)):""))}const caret=/(^|[^\[])\^/g;function edit$1(ct,Dn){ct=ct.source||ct,Dn=Dn||"";const ur={replace:(dr,fr)=>(fr=fr.source||fr,fr=fr.replace(caret,"$1"),ct=ct.replace(dr,fr),ur),getRegex:()=>new RegExp(ct,Dn)};return ur}const nonWordAndColonTest=/[^\w:]/g,originIndependentUrl=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function cleanUrl$1(ct,Dn,ur){if(ct){let dr;try{dr=decodeURIComponent(unescape$1(ur)).replace(nonWordAndColonTest,"").toLowerCase()}catch{return null}if(dr.indexOf("javascript:")===0||dr.indexOf("vbscript:")===0||dr.indexOf("data:")===0)return null}Dn&&!originIndependentUrl.test(ur)&&(ur=resolveUrl(Dn,ur));try{ur=encodeURI(ur).replace(/%25/g,"%")}catch{return null}return ur}const baseUrls={},justDomain=/^[^:]+:\/*[^/]*$/,protocol=/^([^:]+:)[\s\S]*$/,domain=/^([^:]+:\/*[^/]*)[\s\S]*$/;function resolveUrl(ct,Dn){baseUrls[" "+ct]||(justDomain.test(ct)?baseUrls[" "+ct]=ct+"/":baseUrls[" "+ct]=rtrim$1(ct,"/",!0)),ct=baseUrls[" "+ct];const ur=ct.indexOf(":")===-1;return Dn.substring(0,2)==="//"?ur?Dn:ct.replace(protocol,"$1")+Dn:Dn.charAt(0)==="/"?ur?Dn:ct.replace(domain,"$1")+Dn:ct+Dn}const noopTest$1={exec:function(){}};function merge$2(ct){let Dn=1,ur,dr;for(;Dn<arguments.length;Dn++){ur=arguments[Dn];for(dr in ur)Object.prototype.hasOwnProperty.call(ur,dr)&&(ct[dr]=ur[dr])}return ct}function splitCells$1(ct,Dn){const ur=ct.replace(/\|/g,(hr,vr,pr)=>{let mr=!1,gr=vr;for(;--gr>=0&&pr[gr]==="\\";)mr=!mr;return mr?"|":" |"}),dr=ur.split(/ \|/);let fr=0;if(dr[0].trim()||dr.shift(),dr[dr.length-1].trim()||dr.pop(),dr.length>Dn)dr.splice(Dn);else for(;dr.length<Dn;)dr.push("");for(;fr<dr.length;fr++)dr[fr]=dr[fr].trim().replace(/\\\|/g,"|");return dr}function rtrim$1(ct,Dn,ur){const dr=ct.length;if(dr===0)return"";let fr=0;for(;fr<dr;){const hr=ct.charAt(dr-fr-1);if(hr===Dn&&!ur)fr++;else if(hr!==Dn&&ur)fr++;else break}return ct.substr(0,dr-fr)}function findClosingBracket$1(ct,Dn){if(ct.indexOf(Dn[1])===-1)return-1;const ur=ct.length;let dr=0,fr=0;for(;fr<ur;fr++)if(ct[fr]==="\\")fr++;else if(ct[fr]===Dn[0])dr++;else if(ct[fr]===Dn[1]&&(dr--,dr<0))return fr;return-1}function checkSanitizeDeprecation$1(ct){ct&&ct.sanitize&&!ct.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(ct,Dn){if(Dn<1)return"";let ur="";for(;Dn>1;)Dn&1&&(ur+=ct),Dn>>=1,ct+=ct;return ur+ct}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(ct,Dn,ur,dr){const fr=Dn.href,hr=Dn.title?escape$2(Dn.title):null,vr=ct[1].replace(/\\([\[\]])/g,"$1");if(ct[0].charAt(0)!=="!"){dr.state.inLink=!0;const pr={type:"link",raw:ur,href:fr,title:hr,text:vr,tokens:dr.inlineTokens(vr,[])};return dr.state.inLink=!1,pr}else return{type:"image",raw:ur,href:fr,title:hr,text:escape$2(vr)}}function indentCodeCompensation(ct,Dn){const ur=ct.match(/^(\s+)(?:```)/);if(ur===null)return Dn;const dr=ur[1];return Dn.split(`
|
|
113
113
|
`).map(fr=>{const hr=fr.match(/^\s+/);if(hr===null)return fr;const[vr]=hr;return vr.length>=dr.length?fr.slice(dr.length):fr}).join(`
|
|
114
114
|
`)}var Tokenizer_1$1=class{constructor(Dn){this.options=Dn||defaults$4}space(Dn){const ur=this.rules.block.newline.exec(Dn);if(ur)return ur[0].length>1?{type:"space",raw:ur[0]}:{raw:`
|
|
115
115
|
`}}code(Dn){const ur=this.rules.block.code.exec(Dn);if(ur){const dr=ur[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:ur[0],codeBlockStyle:"indented",text:this.options.pedantic?dr:rtrim(dr,`
|
|
@@ -178,8 +178,8 @@ Please report this to https://github.com/markedjs/marked.`,Dn.silent)return"<p>A
|
|
|
178
178
|
<img style="width: ${vue.unref(hr)};filter: ${`drop-shadow(${Oi||Xr||"#6ACB97"} ${vue.unref(hr)} 0px)`};" src="${goDown}"/>
|
|
179
179
|
</div>
|
|
180
180
|
<span style="color: ${Oi||ct.color};${vue.unref(Or)}">${ct.minusSignShow?"-":""}${Math.abs(+Fi).toFixed(2)}%</span>
|
|
181
|
-
</span>`))):ct.format==="percent"?(isNaN(+Fi)||(Fi=(+Fi*100).toFixed(2)+"%"),ri=ri.replace(Ci,`<span class="${Ei}" style="color:${qr(Fi)||ct.variableColor};font-size:${vue.unref(hr)};${vue.unref(Or)}">${Fi}</span>`)):ct.format==="money"?(isNaN(+Fi)||(Fi=formatMoney(+Fi)),ri=ri.replace(Ci,`<span class="${Ei}" style="color:${qr(Fi)||ct.variableColor};font-size:${vue.unref(hr)};${vue.unref(Or)}">${Fi}</span>`)):qi==="thousands"?(isNaN(+Fi)||(Fi=formatThousands(+Fi)),ri=ri.replace(Ci,`<span class="${Ei}" style="color:${qr(Fi)||ct.variableColor};font-size:${vue.unref(hr)};${vue.unref(Or)}">${Fi}</span>`)):ri=ri.replace(Ci,`<span class="${Ei}" style="color:${qr(Fi)||ct.variableColor};font-size:${vue.unref(hr)};${vue.unref(Or)}">${Fi}</span>`)}}if(di||(di=`<span class="${Ei}" style="color: ${Oi};${vue.unref(Or)}">${ri}</span>`),ct.unitShow&&ct.unitText){let hi=ct.unitText;const Ci=hi.match(/\{(.+?)\}/g)||[];for(let qi=0;qi<Ci.length;qi++){const Ji=Ci[qi],ua=(Ri=Ji==null?void 0:Ji.slice(1,Ji.length-1))==null?void 0:Ri.trim();let da=ua;if(ua.includes("$page"))da=Ar(ua)||"";else{const va=Cn(da,vi);va&&["null","undefined"].includes(va)||(da=va)}da===ua?hi=ct.unitDefaultText:hi=hi.replace(new RegExp(Ji,"g"),da)}const{unitTop:Di,unitLeft:$i}=ct;let Fi="position:relative;";Di&&(Fi+=`top:${Di};`),$i&&(Fi+=`margin-left:${$i};`),di+=`<span style='color:${ct.unitColor};font-size:${ct.unitFontSize};font-weight:${ct.unitFontWeight};${Fi};${vue.unref(Or)}'>${hi}</span>`}return ct.exceedConfig&&(di=`<span class="${Ei}" style="display: inline-block;color: ${qr(di)};">${di}</span>`),di.includes("span")||(di=`<span class="${Ei}" style="color: ${qr(di)};">${di}</span>`),di});function qr(ni){let ai="",Xr=!1;const{targetValue:vi,targetShow:Si,notExpectColor:ri}=ct;if(Si){switch(ct.targetRule){case"equal":ni!==vi&&(Xr=!0);break;case"greater":ni<=vi&&(Xr=!0);break;case"greater_equal":ni<vi&&(Xr=!0);break;case"less":ni>=vi&&(Xr=!0);break;case"less_equal":ni>vi&&(Xr=!0);break}Xr&&(ai=ri)}return ai}const{pageId:Mr}=vue.inject("templateOperate",{pageId:""})||{},Lr=useRequestData(ct),Fr=vue.ref(!1),Dr=async()=>{var ni,ai,Xr;try{Fr.value=!0;const vi=await Lr();(ni=vi==null?void 0:vi.data)!=null&&ni.data.rowsToData?Br(((ai=vi==null?void 0:vi.data)==null?void 0:ai.data.rowsToData)||{}):Br(((Xr=vi==null?void 0:vi.data)==null?void 0:Xr.data)||{})}catch(vi){console.error(vi)}finally{Fr.value=!1}},Gr=()=>{Ir()},Rr=ni=>{var Xr,vi;const{data:ai}=(ni==null?void 0:ni.data)||{};if(ai){ur.value=!1;const{columns:Si=[],rows:ri=[]}=((Xr=ni==null?void 0:ni.data)==null?void 0:Xr.data)??{},{graphicConfig:yi}=ct;let di={};if(Si.length>0){const Ei=Si.filter(Oi=>!!Oi);if(Ei!=null&&Ei.length){let Oi=ri;if((vi=yi==null?void 0:yi.dimensionList)!=null&&vi.length){const Li=Si[0];Li&&(ri!=null&&ri.length)&&(Oi=ri[0],di={value:Oi[Li]})}Ei.forEach((Li,Ri)=>{var Ci;let hi=Oi[Li];typeof hi=="number"?hi=isNaN(hi)?0:hi||0:hi=hi||0,di[Li]=hi,Ri===0&&!((Ci=yi==null?void 0:yi.dimensionList)!=null&&Ci.length)&&(di.value=hi)})}}Ir(di==null?void 0:di.value),Br(di)}else ur.value=!0,Ir(ct.variableDefaultValue),Br({value:ct.variableDefaultValue})},Qr=useIndicatorData(ct,Rr),Kr=async()=>{try{Fr.value=!0;const ni=await Qr();Rr(ni)}catch(ni){console.error(ni)}finally{Fr.value=!1,Sr(ct.id,!0)}},Hr=vue.ref(!1);vue.watch(kr,ni=>{if(ct.dataType==="indicator"){const ai=getFixedValueDatas(ct.graphicConfig);ai!=null&&ai.length&&(!vue.unref(Hr)&&canRequestIndicator(ct.graphicConfig,ni)?(Hr.value=!0,Yr()):canRequestIndicator(ct.graphicConfig,ni)||(Hr.value=!1))}},{deep:!0});const Ur=vue.computed(()=>{var Xr;if(ct.dataType!=="component")return{};const{associatId:ni}=ct,ai=vue.unref(yr).find(vi=>vi.id===ni);return(ai==null?void 0:ai.dataType)==="static"?(ai==null?void 0:ai.data)||{}:ni?((Xr=vue.unref(gr)[ni])==null?void 0:Xr.rows)||{}:{}}),Jr=ni=>{vue.nextTick(()=>{if(ct.useWarningStatus){const ai=vue.unref(yr).find(Xr=>Xr.id===ct.associatId);if((ai==null?void 0:ai.type)==="ecanGauge"){const Xr=vue.unref(yr).find(vi=>vi.id===ct.id);if(Xr){const{color:vi,variableColor:Si}=Xr;Tn(Xr,"cacheColor")||(Xr.cacheColor=vi),Tn(Xr,"cacheVariableColor")||(Xr.cacheVariableColor=Si),ni.warningStatus?Xr.color=Xr.variableColor=ni.warningColor:(Tn(Xr,"cacheColor")&&(Xr.color=Xr.cacheColor),Tn(Xr,"cacheVariableColor")&&(Xr.variableColor=Xr.cacheVariableColor))}}}Br(ni)})};vue.watch(()=>Ur.value,ni=>{ct.dataType==="component"&&Jr(ni)},{deep:!0});const Yr=async()=>{switch(ct.dataType){case"indicator":await Kr();break;case"request":{const{openCustomRequestData:ni,customRequestName:ai}=ct;ni||ni===void 0?await Dr():(Fr.value=!0,xr(ai,Xr=>{Xr&&(Xr.rowsToData?Br(Xr.rowsToData):Br(Xr)),Fr.value=!1}));break}case"component":Jr(vue.unref(Ur));break}},{setRequest:si}=vue.inject(REQUEST_MODEL,{setRequest:({id:ni,sortNum:ai,requestFn:Xr})=>{}});typeof si=="function"&&si({id:ct.id,requestFn:Yr,sortNum:ct.requestSort}),Dn({refreshData:Yr});const fi=useEmitEvent(ct),_i=fi("click",(ni=!0)=>{var ai,Xr;Ir((ai=document.querySelector(`div[cpntid="${ct.id}"]`))==null?void 0:ai.textContent),setTimeout(()=>{Ir()},0),!(!ct.linkPage&&!ct.href)&&handleJumpLink(ct,{pageMode:vue.unref(Cr),targetTemplate:ct.targetTemplate,isHandClick:ni,getRecordValueByKeyName:(Xr=ct.extendData)!=null&&Xr.circulateKeyName?Er:Tr,setTemplateData:Pr})}),bi=vue.inject("insideIndexPanel",!1),pi=ni=>{bi||ni.stopPropagation(),_i()},mi=()=>{_i(!1)},xi=fi("valueChange",()=>{$r.value++});return useOnEvent(ct,{refreshData:Yr,resetRecord:Gr,click:mi,valueChange:xi}),vue.watch(()=>Wr.value,(ni,ai)=>{ni!==ai&&xi()}),{style:dr,clickHandler:pi,myText:Wr,loading:Fr,click:_i,textIndent:vr,vFontSize:hr,gradientStyle:Nr,cursorStyle:jr,myTitle:pr,wrapStyle:Vr,textRef:mr,globalColor:zr}}}),__injectCSSVars__$4=()=>{vue.useCssVars(ct=>({"62a9efa3":ct.vFontSize,ca97e088:ct.textIndent,"88fd9dd8":ct.percentageSide,"4b2f1242":ct.titleFontColor,"6e5e03e4":ct.variableColor}))},__setup__$4=__default__$4.setup;__default__$4.setup=__setup__$4?(ct,Dn)=>(__injectCSSVars__$4(),__setup__$4(ct,Dn)):__injectCSSVars__$4;const Text_vue_vue_type_style_index_0_scoped_6056e029_lang="",Text_vue_vue_type_style_index_1_lang="",_hoisted_1$o=["innerHTML"],_hoisted_2$c=["innerHTML"],_hoisted_3$6=["innerHTML"];function _sfc_render$C(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("skeleton"),pr=vue.resolveComponent("a-tooltip");return ct.loading?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:vue.normalizeStyle(ct.style)},[vue.createVNode(vr,{loading:ct.loading},null,8,["loading"])],4)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"ecan-text",style:vue.normalizeStyle(ct.style),onClick:Dn[0]||(Dn[0]=(...mr)=>ct.clickHandler&&ct.clickHandler(...mr))},[ct.myTitle?(vue.openBlock(),vue.createBlock(pr,{key:0,overlayClassName:"ecan-text-tooltip",color:ct.titleBackgroundColor||"#ffffff"},{title:vue.withCtx(()=>[vue.createElementVNode("div",{style:vue.normalizeStyle({padding:"10px",maxHeight:"500px",overflow:"auto",color:ct.titleFontColor||"#000000"}),innerHTML:ct.myTitle},null,12,_hoisted_1$o)]),default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass("ecan-text_"+ct.id),style:vue.normalizeStyle({...ct.gradientStyle,...ct.cursorStyle}),innerHTML:ct.myText},null,14,_hoisted_2$c)]),_:1},8,["color"])):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:vue.normalizeClass(["ecantext_"+ct.id,ct.isContentMarkDown?"markdown-content-tenxt":""]),style:vue.normalizeStyle({color:ct.globalColor,...ct.gradientStyle,...ct.cursorStyle,...ct.wrapStyle}),ref:"textRef",innerHTML:ct.myText},null,14,_hoisted_3$6)),vue.renderSlot(ct.$slots,"toolbox",{},void 0,!0)],4))}const Text=_export_sfc$1(__default__$4,[["render",_sfc_render$C],["__scopeId","data-v-6056e029"]]),EcanText=withInstall$1(Text),_sfc_main$x=vue.defineComponent({name:"EcanScrollText",setup(){return{text:vue.ref("基础文本")}}}),ScrollText_vue_vue_type_style_index_0_scoped_4dd9c03e_lang="",_hoisted_1$n={class:"red"};function _sfc_render$B(ct,Dn,ur,dr,fr,hr){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$n,vue.toDisplayString(ct.text),1)}const ScrollText=_export_sfc$1(_sfc_main$x,[["render",_sfc_render$B],["__scopeId","data-v-4dd9c03e"]]),EcanScrollText=withInstall$1(ScrollText),timeDisplayProps={...props$1,name:"时间展示",keyName:"时间展示",type:"ecanTimeDisplay",format:"YYYY-MM-DD dddd HH:mm:ss",fontSize:"16px",color:"#333",width:"240px",height:"40px",fontFamily:"",fontWeight:400,textShadow:"",alignItems:"center",justifyContent:"center",operate:null,updateInterval:{value:1,mode:"second"}},timeDisplayComponentProps=transformToComponentProps(timeDisplayProps),timeDisplayEvents=["timeChange"],_sfc_main$w=vue.defineComponent({name:"EcanTimeDisplay",props:{...timeDisplayComponentProps},setup(ct){const{pageMode:Dn}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),ur=usePickComponentStyle(ct),dr=()=>{const{format:yr,operate:Cr}=ct;let br=dayjs();if(Cr){const{type:Ar,value:wr,mode:_r}=Cr;switch(Ar){case"add":br=br.add(wr,_r);break;case"minus":br=br.subtract(wr,_r)}}return br.format(yr)},fr=vue.ref();vue.watch(()=>[ct.operate,ct.format],()=>{fr.value=dr()},{immediate:!0,deep:!0}),vue.watch(()=>ct.updateInterval,()=>{gr()},{deep:!0});let hr=null;const vr=()=>{clearInterval(hr),hr=null},mr=useEmitEvent(ct)("timeChange",()=>{}),gr=()=>{hr&&vr();let yr=1e3;const{value:Cr,mode:br}=ct.updateInterval||{};Cr&&(yr=yr*Cr);const Ar={second:1,minute:60,hour:60*60,day:24*60*60};br&&(yr=yr*Ar[br]),hr=setInterval(()=>{fr.value=dr(),vue.unref(Dn)!=="design"&&mr()},yr)};return useOnEvent(ct,{timeChange:mr}),vue.onMounted(()=>{gr()}),vue.onUnmounted(()=>{vr()}),{style:ur,time:fr}}}),TimeDisplay_vue_vue_type_style_index_0_scoped_b9216314_lang="";function _sfc_render$A(ct,Dn,ur,dr,fr,hr){return vue.openBlock(),vue.createElementBlock("div",{class:"time-display",style:vue.normalizeStyle(ct.style)},vue.toDisplayString(ct.time),5)}const TimeDisplay=_export_sfc$1(_sfc_main$w,[["render",_sfc_render$A],["__scopeId","data-v-b9216314"]]),EcanTimeDisplay=withInstall$1(TimeDisplay),listProps={...props$1,type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#0d215e",itemColSpan:"0px",itemRowSpan:"10px",itemPadding:"20px",useRanking:!1,useTitle:!1,sliceCount:6,columnCount:1,itemHeight:"32px",data:[{name:"a",age:12},{name:"b",age:14}],columns:[{key:"name"},{key:"age"}],seqIcon:!1,isUseSeq:!1,seqWidth:"10%",seqName:"序号",seqFontSize:"14px",isAutoScroll:!1,scrollSpeed:10,graphicConfig:{},seqIconWidth:"",seqIconHeight:"",seqIconConfig:[],seqIconOffsetX:0,seqIconOffsetY:0,seqIndexFormatter:"{index}",itemWidth:"100%",associatId:""},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$v=vue.defineComponent({name:"EcanList",components:{Skeleton,ATooltip:antDesignVue.Tooltip,MarqueeScroll},props:{...listComponentProps},setup(ct,{expose:Dn}){const ur=vue.ref(!1),dr=vue.ref(),fr=usePickComponentStyle(ct,["backgroundColor"]),hr=(zr,Wr)=>{const{format:qr,customFormatter:Mr}=Wr;if(qr==null||qr==="")return zr;const Lr={money:formatMoney,percentage:formatPercentage,contrast:formatPercentage,custom:formatCustom};return Lr[qr]?qr==="custom"?Lr[qr](zr,Mr)||"":Lr[qr](zr)||"":""},vr=(zr,Wr)=>{const qr=parseFloat(zr+"");if(Wr!=="contrast")return"";switch(!0){case qr>=0:return"goUp";case qr<0:return"goDown"}};vue.watch(()=>ct.data,()=>{(ct.dataType==="static"||!vue.unref(dr))&&(dr.value=ct.data)},{immediate:!0,deep:!0});const pr=vue.computed(()=>({key:"SEQ",width:ct.seqWidth,title:ct.seqName,align:"center",fontSize:ct.seqFontSize})),mr=vue.computed(()=>{const{columns:zr,isUseSeq:Wr}=ct;return Wr?[vue.unref(pr),...zr]:zr}),gr=useDataSource({props:ct,loading:ur,setData:zr=>{var Mr;const{columns:Wr=[],rows:qr=[]}=((Mr=zr==null?void 0:zr.data)==null?void 0:Mr.data)??{};ct.dataType==="indicator"&&(ct.isUseSeq&&Wr.unshift(ct.seqName),mr.value.forEach((Lr,Fr)=>{const Dr=Wr[Fr];Dr&&(!ct.isUseSeq||Fr!==0)&&(Lr.title=Dr,Lr.key=Dr)})),dr.value=qr}}),yr=useEmitEvent(ct),{getGlobalModel:Cr,setGlobalModel:br}=vue.inject(GLOBAL_MODEL,{getGlobalModel:zr=>{},setGlobalModel:(zr,Wr)=>{}}),Ar=zr=>{yr("click",()=>{const Wr=Cr(ct.id);br(ct.id,{...Wr,type:ct.type,RECORD:zr})})()};useOnEvent(ct,{refreshData:gr,resetRecord:()=>{const zr=ct.id,Wr=Cr(zr);br(zr,{...Wr,type:ct.type,RECORD:""})}});const{setRequest:_r}=vue.inject(REQUEST_MODEL,{setRequest:({id:zr,sortNum:Wr,requestFn:qr})=>{}});typeof _r=="function"&&_r({id:ct.id,requestFn:gr,sortNum:ct.requestSort}),Dn({refreshData:gr});const Tr=(zr,Wr)=>({flex:zr.width?"none":"1",width:zr.width,height:ct.itemHeight,lineHeight:ct.itemHeight,textAlign:(Wr?zr.cellAlign:zr.align)||"left",backgroundColor:zr.cellColor}),Er=(zr,Wr)=>{let qr=0;const Mr=vue.unref(dr).map(Fr=>Fr[Wr]),Lr=Math.max(...Mr);return Lr&&(qr=zr[Wr]/Lr*100),qr},xr=zr=>{const{progressColor:Wr="#1890ff",progressGradientColor:qr=""}=zr;return qr?{background:`linear-gradient(to right, ${Wr} 0%, ${qr} 100%)`}:{backgroundColor:Wr||"#1890ff"}},Sr=vue.computed(()=>{const zr=parseFloat(ct.seqFontSize)+5;return{width:zr+10,height:zr}}),{pageMode:kr}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),Pr=vue.computed(()=>vue.unref(kr)!=="design"&&ct.isAutoScroll),Ir=zr=>{const{seqIconConfig:Wr}=ct;let qr=Wr.find(Mr=>Mr.key===zr+1);return qr||(qr=Wr.find(Mr=>Mr.key==="other")),!!(qr!=null&&qr.icon)},Br=(zr,Wr)=>{const{seqIconConfig:qr}=ct;let Mr=qr.find(Lr=>Lr.key===zr+1);return Mr||(Mr=qr.find(Lr=>Lr.key==="other")),Wr===1?Mr!=null&&Mr.icon?useImagePath(Mr.icon):"":Wr===2?(Mr==null?void 0:Mr.color)||"#fff":Wr===3?(Mr==null?void 0:Mr.showText)===void 0?!0:(Mr==null?void 0:Mr.showText)||"":""},Or=zr=>{const{seqIndexFormatter:Wr}=ct,qr=zr+1;return Wr?jn(Wr,{textData:{index:qr}},{useNewline:!1,useSpace:!0}):qr},Nr=(zr,Wr)=>{const{key:qr,progressTooltip:Mr}=Wr;return jn(Mr||"{value}",{textData:{value:zr[qr]}},{useNewline:!1,useSpace:!0})},jr=vue.computed(()=>parseFloat(ct.itemWidth)!==100?{height:"100%"}:{}),Vr=vue.computed(()=>!ct.itemWidth||ct.itemWidth==="100%"?"0":ct.itemColSpan);return{style:fr,formatFn:hr,contrastClass:vr,dataSource:dr,loading:ur,myColumns:mr,click:Ar,getColumnStyle:Tr,getPercentage:Er,getBackgroundColor:xr,isShowSeqIcon:Ir,getSeqIconData:Br,seqIcon4,seqIcon5,seqIcon6,seqIcon7,iconSize:Sr,isScroll:Pr,formatSeq:Or,formatTooltip:Nr,wrapStyle:jr,colSpan:Vr,getText:(zr,Wr)=>(zr.format!=null||zr.format!=="")&&hr(Wr[zr.key],zr)}}}),List_vue_vue_type_style_index_0_scoped_8612c8ea_lang="",List_vue_vue_type_style_index_1_lang="",_withScopeId$6=ct=>(vue.pushScopeId("data-v-8612c8ea"),ct=ct(),vue.popScopeId(),ct),_hoisted_1$m={key:0,class:"title"},_hoisted_2$b={key:0,class:"ranking"},_hoisted_3$5=["onClick"],_hoisted_4$3={key:0,class:"ranking"},_hoisted_5$3=_withScopeId$6(()=>vue.createElementVNode("div",{class:"icon"},null,-1)),_hoisted_6$3={class:"sort"},_hoisted_7$3=["src"],_hoisted_8$3={key:1},_hoisted_9$3=["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$z(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("a-tooltip"),pr=vue.resolveComponent("marquee-scroll"),mr=vue.resolveComponent("skeleton");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-list",style:vue.normalizeStyle(ct.style)},[vue.createVNode(mr,{loading:ct.loading},{default:vue.withCtx(()=>[ct.useTitle?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$m,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ct.columnCount,gr=>(vue.openBlock(),vue.createElementBlock("div",{class:"title-inner",style:vue.normalizeStyle({backgroundColor:ct.backgroundColor,height:ct.itemHeight,width:`calc(100% / ${ct.columnCount} - ${ct.itemColSpan} * ${ct.columnCount-1}/ ${ct.columnCount})`,marginRight:gr%ct.columnCount!==0?ct.itemColSpan:"",padding:`0 ${ct.itemPadding}`}),key:gr},[ct.useRanking?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$b)):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ct.myColumns,(yr,Cr)=>(vue.openBlock(),vue.createElementBlock("div",{class:"column",key:yr.key||Cr,style:vue.normalizeStyle({color:yr.titleColor,fontSize:yr.fontSize,...ct.getColumnStyle(yr)})},vue.toDisplayString(yr.title),5))),128))],4))),128))])):vue.createCommentVNode("",!0),ct.dataSource.length>0?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"ecan-list-content",style:vue.normalizeStyle({paddingTop:ct.useTitle?ct.itemRowSpan:0,height:ct.useTitle?"calc(100% - 40px)":"100%"})},[vue.createVNode(pr,{visible:ct.isScroll,step:ct.scrollSpeed,wrapStyle:{display:"flex",flexDirection:"column",flexWrap:"wrap",...ct.wrapStyle}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ct.dataSource.slice(0,ct.sliceCount),(gr,yr)=>(vue.openBlock(),vue.createElementBlock("div",{class:"item",style:vue.normalizeStyle({backgroundColor:ct.backgroundColor,height:ct.itemHeight,width:`calc(${ct.itemWidth} - ${ct.colSpan})`,marginRight:ct.colSpan,marginBottom:ct.itemRowSpan,padding:`0 ${ct.itemPadding}`}),key:gr.id||yr,onClick:Cr=>ct.click(gr)},[ct.useRanking?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$3,[_hoisted_5$3,vue.createElementVNode("div",_hoisted_6$3," Top "+vue.toDisplayString(yr+1),1)])):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ct.myColumns,Cr=>{var br;return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["column",ct.contrastClass(gr[Cr.key],Cr.format),Cr.key==="SEQ"?"seq-column":""]),key:Cr.key,style:vue.normalizeStyle({fontSize:Cr.fontSize,color:ct.contrastClass(gr[Cr.key],Cr.format)===""?Cr.color:"",fontWeight:Cr.fontWeight,...ct.getColumnStyle(Cr,"cell")})},[Cr.key==="SEQ"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[ct.seqIcon?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[(br=ct.seqIconConfig)!=null&&br.length?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"icon-box",style:vue.normalizeStyle({width:ct.seqIconWidth||"",height:ct.seqIconHeight||""})},[ct.seqIconWidth&&ct.seqIconHeight&&ct.isShowSeqIcon(yr)?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"custom-seq-icon",src:ct.getSeqIconData(yr,1),style:vue.normalizeStyle({width:ct.seqIconWidth,height:ct.seqIconHeight})},null,12,_hoisted_7$3)):vue.createCommentVNode("",!0),ct.getSeqIconData(yr,3)?(vue.openBlock(),vue.createElementBlock("span",{key:1,class:"custom-seq-text",style:vue.normalizeStyle({fontSize:ct.seqFontSize,color:ct.getSeqIconData(yr,2),lineHeight:ct.seqIconHeight||"",left:ct.seqIconOffsetX,top:ct.seqIconOffsetY})},vue.toDisplayString(ct.formatSeq(yr)),5)):vue.createCommentVNode("",!0)],4)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_8$3,[yr===0?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"seq-icon",src:ct.seqIcon4,width:ct.iconSize.width,height:ct.iconSize.height},null,8,_hoisted_9$3)):yr===1?(vue.openBlock(),vue.createElementBlock("img",{key:1,class:"seq-icon",src:ct.seqIcon5,width:ct.iconSize.width,height:ct.iconSize.height},null,8,_hoisted_10$2)):yr===2?(vue.openBlock(),vue.createElementBlock("img",{key:2,class:"seq-icon",src:ct.seqIcon6,width:ct.iconSize.width,height:ct.iconSize.height},null,8,_hoisted_11$2)):yr>=3?(vue.openBlock(),vue.createElementBlock("img",{key:3,class:"seq-icon",src:ct.seqIcon7,width:ct.iconSize.width,height:ct.iconSize.height},null,8,_hoisted_12$2)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:"seq-icon seq-text",style:vue.normalizeStyle({fontSize:ct.seqFontSize})},vue.toDisplayString(ct.formatSeq(yr)),5)]))],64)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_13$2,vue.toDisplayString(ct.formatSeq(yr)),1))],64)):Cr.format==="progress"?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"progress-cell",style:vue.normalizeStyle({height:ct.itemHeight})},[vue.createElementVNode("div",{class:"progress",style:vue.normalizeStyle({height:Cr.progressWidth||"14px",backgroundColor:Cr.progressBaseColor})},[vue.createVNode(vr,{title:ct.formatTooltip(gr,Cr),overlayClassName:"ecan-list-tooltip",color:"#fff"},{default:vue.withCtx(()=>[vue.createElementVNode("div",{style:vue.normalizeStyle({borderRadius:"10px",height:Cr.progressWidth||"14px",width:`${ct.getPercentage(gr,Cr.key)}%`,...ct.getBackgroundColor(Cr)})},null,4)]),_:2},1032,["title"])],4)],4)):(vue.openBlock(),vue.createElementBlock("span",{key:2,title:ct.getText(Cr,gr)},vue.toDisplayString(ct.getText(Cr,gr)),9,_hoisted_14$2))],6)}),128))],12,_hoisted_3$5))),128))]),_:1},8,["visible","step","wrapStyle"])],4)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_15$1," 暂无数据 "))]),_:1},8,["loading"]),vue.renderSlot(ct.$slots,"toolbox",{},void 0,!0)],4)}const List=_export_sfc$1(_sfc_main$v,[["render",_sfc_render$z],["__scopeId","data-v-8612c8ea"]]),EcanList=withInstall$1(List),proportionProps={...props$1,name:"占比图",keyName:"占比图",type:"ecanProportion",strokeType:"circle",width:"200px",height:"200px",strokeColor:"#4091f7",strokeLinecap:"round",trailColor:"#f5f5f5",data:{percent:.3},text:"{percent}{%}",fontSize:"26px",color:"#4091f7",variableColor:"#4091f7",strokeWidth:6,fontWeight:400,strokeTextWidth:"100%",lineHeight:"26px",decimalFormat:!0,variableDefaultValue:"0",strokeTextShow:!0,gradientShow:!0,gradientColor:"",gradientOffset:1,graphicConfig:{},lineTextPosition:"right",associatId:""},proportionComponentProps=transformToComponentProps(proportionProps),proportionEvents=["refreshData","click"],_sfc_main$u=vue.defineComponent({name:"EcanProportion",components:{AProgress:antDesignVue.Progress,Skeleton},props:{...proportionComponentProps},setup(ct,{expose:Dn}){const ur=vue.ref(!1),dr=vue.ref(!1),{pageMode:fr}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),hr=usePickComponentStyle(ct),vr=vue.computed(()=>{const xr=ct.width;return parseFloat(xr)}),pr=vue.ref({});vue.watch(()=>ct.data,()=>{(ct.dataType==="static"||vue.unref(fr)==="design")&&(pr.value=ct.data)},{immediate:!0,deep:!0});const mr=vue.computed(()=>{var Br;const xr=vue.unref(pr),Sr=+ct.variableDefaultValue;if(xr==null)return isNaN(Sr)?0:Sr;const kr=ct.text.match(/\{(.+?)\}/g)||[];let Pr;const Ir=new Set(Object.keys(xr));for(let Or=0;Or<kr.length;Or++){const Nr=kr[Or],jr=Nr.slice(1,Nr.length-1);if(Ir.has(jr)){Pr=xr[jr];break}}return typeof Pr=="number"?Pr=Pr*100:typeof Pr=="string"?isNaN(+Pr)?isNaN(parseFloat(Pr))||(Pr=parseFloat(Pr)):Pr=+Pr*100:isNaN(Sr)?Pr=0:Pr=Sr*100,ct.decimalFormat&&(Pr=+((Br=Number(Pr))==null?void 0:Br.toFixed(2))),Pr}),gr=vue.computed(()=>{var Ir;let xr=ct.text;if(xr==="")return vue.unref(mr);const Sr=ct.variableDefaultValue,kr=vue.unref(pr),Pr=xr.match(/\{(.+?)\}/g)||[];for(let Br=0;Br<Pr.length;Br++){const Or=Pr[Br];let Nr=Or.slice(1,Or.length-1);const jr=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,Vr=Or.match(jr);for(let zr=0;zr<(Vr==null?void 0:Vr.length);zr++){const Wr=(Ir=Vr[zr])==null?void 0:Ir.trim();kr[Wr]!=null&&(Nr=Nr.replace(Wr,kr[Wr]))}let $r=Nr;try{(/\(.*\)/g.test(Nr)||/[+/\\*]/g.test(Nr))&&($r=Cn(Nr))}catch(zr){console.error(zr)}typeof+$r=="number"&&!isNaN(+$r)?($r=+$r*100,ct.decimalFormat&&($r=$r==null?void 0:$r.toFixed(2))):typeof $r!="string"&&($r=Sr),$r==="percent"&&($r=Sr),xr=xr.replace(Or,`<span style="color: ${ct.variableColor};">${$r+""}</span>`)}return xr=xr==null?void 0:xr.replace(/\n|\\n/g,"<br/>"),vue.unref(dr)?"NaN":xr}),yr=(xr={})=>{pr.value=xr},Cr=xr=>{var kr;const{data:Sr}=(xr==null?void 0:xr.data)||{};if(Sr){dr.value=!1;const{columns:Pr=[],rows:Ir=[]}=((kr=xr==null?void 0:xr.data)==null?void 0:kr.data)??{};let Br={};if(Pr.length>0){const Or=Pr.find(Nr=>!!Nr);Or&&(Br={percent:Ir[Or]})}yr(Br)}else dr.value=!0,yr({percent:"NaN"})},br=useDataSource({props:ct,loading:ur,setData:xr=>{var Sr,kr;if(ct.dataType==="indicator")Cr(xr);else{const{rowsToData:Pr,rows:Ir}=((Sr=xr==null?void 0:xr.data)==null?void 0:Sr.data)||{};pr.value=((kr=xr==null?void 0:xr.data)==null?void 0:kr.data)||{},(Pr||Ir)&&(pr.value=Pr||Ir||{})}}});useOnEvent(ct,{refreshData:br}),Dn({refreshData:br});const wr=useEmitEvent(ct)("click",()=>{}),{setRequest:_r}=vue.inject(REQUEST_MODEL,{setRequest:({id:xr,sortNum:Sr,requestFn:kr})=>{}});typeof _r=="function"&&_r({id:ct.id,requestFn:br,sortNum:ct.requestSort});const Tr=vue.computed(()=>{const{gradientShow:xr,gradientColor:Sr,gradientOffset:kr,strokeColor:Pr}=ct;let Ir=Pr;return xr&&(ct.strokeType==="line"?Ir=`linear-gradient(90deg, ${Pr||"transparent"}, ${Sr||"transparent"} ${kr*100}%)`:Ir={"0%":Pr||"transparent",[`${kr*100}%`]:Sr||"transparent"}),Ir}),Er=vue.computed(()=>{let xr={};if(ct.lineTextPosition==="shadow"){const Sr=parseFloat(ct.height)/2-ct.strokeWidth/2-parseFloat(ct.fontSize)*1.5715+"px",kr=vue.unref(mr)-8;xr={position:"absolute",left:kr>0?kr+"%":"0",top:Sr}}return xr});return{style:hr,myWidth:vr,text:gr,myValue:mr,loading:ur,click:wr,customStrokeColor:Tr,shaDowStyle:Er}}}),Proportion_vue_vue_type_style_index_0_scoped_e0c8f182_lang="",_hoisted_1$l=["innerHTML"],_hoisted_2$a=["innerHTML"];function _sfc_render$y(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("skeleton"),pr=vue.resolveComponent("a-progress");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-proportion",style:vue.normalizeStyle(ct.style)},[ct.strokeType==="line"?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"progress",style:{"line-height":"1.5715"},onClick:Dn[0]||(Dn[0]=(...mr)=>ct.click&&ct.click(...mr))},[vue.createElementVNode("div",{class:"progress-main",style:vue.normalizeStyle({backgroundColor:ct.trailColor||"transparent",height:ct.strokeWidth+"px",flex:ct.lineTextPosition==="right"?1:"",marginRight:ct.strokeTextShow&&ct.lineTextPosition==="right"?"10px":""})},[vue.createElementVNode("div",{class:"progress-active",style:vue.normalizeStyle({background:ct.customStrokeColor,width:ct.myValue+"%"})},null,4)],4),ct.strokeTextShow?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"format",style:vue.normalizeStyle({fontSize:ct.fontSize,color:ct.color,fontWeight:ct.fontWeight,...ct.shaDowStyle})},[vue.createElementVNode("span",{style:{"white-space":"nowrap"},innerHTML:ct.text},null,8,_hoisted_1$l)],4)):vue.createCommentVNode("",!0)])):(vue.openBlock(),vue.createBlock(pr,{key:1,class:vue.normalizeClass(["progress",ct.gradientShow?"gradient":""]),percent:ct.myValue,width:ct.myWidth,type:ct.strokeType,strokeColor:ct.customStrokeColor,strokeLinecap:ct.strokeLinecap,trailColor:ct.trailColor||"transparent",strokeWidth:ct.strokeWidth,showInfo:ct.strokeTextShow,gapDegree:ct.strokeType==="dashboard"?75:0,onClick:ct.click},{format:vue.withCtx(()=>[ct.loading?(vue.openBlock(),vue.createBlock(vr,{key:0,loading:ct.loading},null,8,["loading"])):ct.strokeTextShow?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"format",style:vue.normalizeStyle({width:ct.strokeTextWidth,fontSize:ct.fontSize,color:ct.color,fontWeight:ct.fontWeight,lineHeight:ct.lineHeight})},[vue.createElementVNode("span",{style:{"white-space":"nowrap"},innerHTML:ct.text},null,8,_hoisted_2$a)],4)):vue.createCommentVNode("",!0)]),_:1},8,["class","percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","showInfo","gapDegree","onClick"])),vue.renderSlot(ct.$slots,"toolbox",{},void 0,!0)],4)}const Proportion=_export_sfc$1(_sfc_main$u,[["render",_sfc_render$y],["__scopeId","data-v-e0c8f182"]]),EcanProportion=withInstall$1(Proportion),counterProps={...props$1,name:"计数器",type:"ecanCounter",keyName:"计数器",width:"400px",height:"80px",zIndex:0,digits:5,counterBackgroundImage:"",color:"#333",unitInterval:15,fontSize:"20px",fontWeight:700,fontStyle:"normal",unitWidth:"65px",unitHeight:"72px",data:"",graphicConfig:{},associatId:"",text:"{value}"},counterComponentProps=transformToComponentProps(counterProps),counterEvents=["refreshData","click","resetRecord"],_sfc_main$t=vue.defineComponent({name:"EcanCounter",components:{Skeleton},props:{...counterComponentProps},setup(ct,{expose:Dn}){const ur=vue.ref(!1),dr=vue.ref(),fr=usePickComponentStyle(ct),hr=vue.computed(()=>({width:ct.unitWidth,height:ct.unitHeight,marginRight:ct.unitInterval+"px"})),vr=vue.computed(()=>({color:ct.color,fontSize:ct.fontSize,fontWeight:ct.fontWeight,fontStyle:ct.fontStyle}));vue.watch(()=>[ct.data,ct.dataType],([_r,Tr])=>{Tr==="static"&&(dr.value=_r)},{immediate:!0});const{getGlobalModel:pr,setGlobalModel:mr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:_r=>{},setGlobalModel:(_r,Tr)=>{}}),yr=useEmitEvent(ct)("click",()=>{const _r=pr(ct.id);mr(ct.id,{..._r,type:ct.type,value:vue.unref(dr)})}),Cr=()=>{const _r=ct.id,Tr=pr(_r);mr(_r,{...Tr,type:ct.type,value:""})},br=useDataSource({props:ct,loading:ur,setData:_r=>{var kr;const{columns:Tr,rows:Er,value:xr}=((kr=_r==null?void 0:_r.data)==null?void 0:kr.data)||{};let Sr={};if(xr&&(Sr.value=xr),Er&&typeof Er=="object"&&!Array.isArray(Er)&&Tr){const Pr=Tr.find(Ir=>!!Ir&&Ir!=="null");Sr={...Sr,...Er},Pr&&(Sr.value=Er[Pr]||"")}if(ct.text){const Pr=ct.text.match(/\{(.+?)\}/g)||[],Ir=new Set(Object.keys(Sr));for(let Br=0;Br<Pr.length;Br++){const Or=Pr[Br],Nr=Or.slice(1,Or.length-1);if(Ir.has(Nr)){dr.value=String(Sr[Nr]);break}}}else dr.value=String(Sr.value)||""}}),Ar=vue.computed(()=>{const _r=[],{digits:Tr}=ct,Er=vue.unref(dr)?vue.unref(dr).split("").reverse().join(""):"";for(let xr=0;xr<Tr;xr++)Er&&Er[xr]?_r.push(Er[xr]):_r.push("0");return _r.reverse()});useOnEvent(ct,{refreshData:br,resetRecord:Cr});const{setRequest:wr}=vue.inject(REQUEST_MODEL,{setRequest:({id:_r,sortNum:Tr,requestFn:Er})=>{}});return typeof wr=="function"&&wr({id:ct.id,requestFn:br,sortNum:ct.requestSort}),Dn({refreshData:br}),{style:fr,valueList:Ar,digitsStyle:hr,fontStyle:vr,loading:ur,useImagePath,click:yr}}}),Counter_vue_vue_type_style_index_0_scoped_e38bd147_lang="",_hoisted_1$k=["src"];function _sfc_render$x(ct,Dn,ur,dr,fr,hr){var pr;const vr=vue.resolveComponent("skeleton");return ct.loading?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:vue.normalizeStyle(ct.style)},[vue.createVNode(vr,{loading:ct.loading},null,8,["loading"])],4)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"ecan-counter",style:vue.normalizeStyle(ct.style),onClick:Dn[0]||(Dn[0]=(...mr)=>ct.click&&ct.click(...mr))},[(pr=ct.valueList)!=null&&pr.length?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:0},vue.renderList(ct.valueList,(mr,gr)=>(vue.openBlock(),vue.createElementBlock("div",{class:"digits-item",style:vue.normalizeStyle(ct.digitsStyle),key:gr},[ct.counterBackgroundImage?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"item-image",src:ct.useImagePath(ct.counterBackgroundImage)},null,8,_hoisted_1$k)):vue.createCommentVNode("",!0),vue.createElementVNode("div",{class:"item-text",style:vue.normalizeStyle(ct.fontStyle)},vue.toDisplayString(mr),5)],4))),128)):vue.createCommentVNode("",!0),vue.renderSlot(ct.$slots,"toolbox",{},void 0,!0)],4))}const Counter=_export_sfc$1(_sfc_main$t,[["render",_sfc_render$x],["__scopeId","data-v-e38bd147"]]),EcanCounter=withInstall$1(Counter),rectangleProps={...props$1,name:"矩形",keyName:"矩形",type:"ecanRectangle",width:"100px",height:"100px",zIndex:0,borderColor:"#eee",borderRadius:"5",borderStyle:"solid",borderWidth:"2px",backgroundColor:"#ffffff",textShadow:"",gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",isTransparent:!1},rectangleComponentProps=transformToComponentProps(rectangleProps),rectangleEvents=["click"],_sfc_main$s=vue.defineComponent({name:"EcanRectangle",props:{...rectangleComponentProps},setup(ct){const Dn=usePickComponentStyle(ct,["background"]),ur=vue.computed(()=>{const{isTransparent:mr,gradientShow:gr,gradientColor:yr,gradientOffset:Cr,gradientAngle:br,backgroundColor:Ar}=ct;if(gr){let wr=yr;return mr&&(wr="transparent"),wr?{background:`linear-gradient(${br}, ${Ar}, ${wr} ${Cr*100}%)`}:{}}else return{}}),{theme:dr}=vue.inject(GLOBAL_CONFIG,{theme:"light"}),fr=vue.computed(()=>({width:"100%",height:"100%"})),hr=vue.computed(()=>{const{borderRadius:mr}=ct,gr=[],yr={};if(mr){const Cr=mr.split(",");for(const br of Cr)(+br||+br==0)&&gr.push(+br+"px")}return gr!=null&&gr.length&&(yr.borderRadius=gr.join(" ")),yr}),pr=useEmitEvent(ct)("click",()=>{});return useOnEvent(ct,{click:pr}),{style:Dn,gradientStyle:ur,borderStyle:fr,theme:dr,borderRadiusStyle:hr,click:pr}}}),Rectangle_vue_vue_type_style_index_0_scoped_c2e91e7f_lang="";function _sfc_render$w(ct,Dn,ur,dr,fr,hr){return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-rectangle",style:vue.normalizeStyle({...ct.style,...ct.gradientStyle,...ct.borderRadiusStyle}),onClick:Dn[0]||(Dn[0]=(...vr)=>ct.click&&ct.click(...vr))},[vue.createElementVNode("div",{class:"no-title",style:vue.normalizeStyle(ct.borderStyle)},null,4)],4)}const Rectangle=_export_sfc$1(_sfc_main$s,[["render",_sfc_render$w],["__scopeId","data-v-c2e91e7f"]]),EcanRectangle=withInstall$1(Rectangle),inputProps={...props$1,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px",limitNumber:!1},inputComponentProps=transformToComponentProps(inputProps),inputEvents=["inputChange","inputBlur"],_sfc_main$r=vue.defineComponent({name:"EcanInput",components:{AInput:antDesignVue.Input},props:{...inputComponentProps},setup(ct){const Dn=usePickComponentStyle(ct),ur=vue.ref(""),{getGlobalModel:dr,setGlobalModel:fr,getRecordValueByKeyName:hr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Cr=>{},setGlobalModel:(Cr,br)=>{},getRecordValueByKeyName:Cr=>{}});vue.watch(()=>ct.value,Cr=>{const br=hr(Cr);ur.value=decodeURIComponent([void 0,null].includes(br)||typeof br=="number"&&isNaN(br)?"":br)},{immediate:!0}),fr(ct.id,{type:ct.type,value:ur});const vr=()=>{const Cr=dr(ct.id);fr(ct.id,{...Cr,RECORD:ur})},pr=useEmitEvent(ct),mr=lodashEs.debounce(pr("inputChange",()=>{vr()}),300),gr=pr("inputBlur",()=>{});return{style:Dn,myValue:ur,inputBlur:gr,inputInput:()=>{ct.limitNumber&&(ur.value=ur.value.replace(/\D/g,""))},inputChange:mr}}}),Input_vue_vue_type_style_index_0_lang="";function _sfc_render$v(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("a-input");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-input",style:vue.normalizeStyle(ct.style)},[vue.createVNode(vr,{class:"input",value:ct.myValue,"onUpdate:value":Dn[0]||(Dn[0]=pr=>ct.myValue=pr),placeholder:ct.placeholder,onChange:ct.inputChange,onBlur:ct.inputBlur,onInput:ct.inputInput,style:vue.normalizeStyle({fontSize:ct.optionFontSize})},null,8,["value","placeholder","onChange","onBlur","onInput","style"])],4)}const Input=_export_sfc$1(_sfc_main$r,[["render",_sfc_render$v]]),EcanInput=withInstall$1(Input),datePickerProps$1={...props$1,height:"33px",width:"130px",id:"",left:"0px",top:"0px",name:"日期选择器",keyName:"日期选择器",rotate:"",type:"ecanDatePicker",value:"",picker:"date",format:"YYYY-MM-DD",showTime:!1,useCurrentTime:!0,operate:null,optionFontSize:"14px",limitStartTime:"",limitEndTime:"",data:""},datePickerComponentProps=transformToComponentProps(datePickerProps$1),datePickerEvents=["dateChange","refreshData"],__default__$3=vue.defineComponent({name:"EcanDatePicker",props:{...datePickerComponentProps},components:{ADatePicker:antDesignVue.DatePicker,AInput:antDesignVue.Input,CalendarOutlined:CalendarOutlined$1,CloseCircleFilled:CloseCircleFilled$1},setup(ct){const Dn=vue.inject("isMobile",!1),ur=vue.inject("scaleValue",{widthScale:1,heightScale:1}),dr=usePickComponentStyle(ct),fr=()=>document.getElementById("norPageConfig")||document.body,hr=vue.ref(),vr=vue.ref(0),pr=vue.ref(null),mr=vue.ref(null),gr=vue.ref(""),yr=vue.ref(!1),Cr=vue.ref([]),br=vue.ref(""),Ar=vue.computed(()=>{let Kr=["year","month","day"];switch(ct.picker){case"year":Kr=["year"];break;case"month":Kr=["year","month"];break}return Kr}),{setGlobalModel:wr,getGlobalModel:_r}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Kr=>{},setGlobalModel:(Kr,Hr)=>{}}),{pageId:Tr}=vue.inject("templateOperate",{pageId:""})||{};wr(ct.id,{type:ct.type,format:ct.format,useCurrentTime:ct.useCurrentTime,value:pr,RECORD:pr});const{getGlobalVar:Er}=vue.inject(GLOBAL_CONFIG,{getGlobalVar:Kr=>{}}),xr=useEmitEvent(ct),Sr=Kr=>{const Hr=ct.id,Ur=_r(Hr);wr(Hr,{...Ur,value:Kr||"",RECORD:Kr||""})},kr=xr("refreshData",Kr=>{Sr(Kr)});vue.watch(()=>[ct.value,ct.useCurrentTime,ct.operate,br.value],([Kr,Hr,Ur,Jr])=>{let Yr=null,si=Kr;if(ct.dataType==="request"&&(si=Jr),si){const fi=si.match(/\{(.+?)\}/g);if(fi){const _i={};for(let bi of fi){const pi=bi.slice(1,-1).trim(),mi=_r(pi);if(mi)_i[pi]=mi.value.format(mi.format);else if(pi.includes("$page")){const xi=pi.replace(/[$.]/g,""),ni=pi.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");si=si.replace(new RegExp(ni,"g"),xi),_i[xi]=Er(pi)}}Yr=dayjs(jn(si,{textData:_i}))}else Yr=dayjs(jn(si))}else Hr&&(Yr=dayjs());if(Ur&&Yr){const{type:fi,value:_i,mode:bi}=Ur;switch(fi){case"add":Yr=Yr.add(_i,bi);break;case"minus":Yr=Yr.subtract(_i,bi)}}pr.value=Yr,mr.value=Yr,vue.unref(Dn)&&Wr(Yr),kr(Yr)},{deep:!0,immediate:!0});const Pr=xr("dateChange",()=>{Sr(vue.unref(pr))}),Ir=()=>{const Kr=getNewValueFromUrlParams(Tr,ct.keyName,"value");Kr&&(pr.value=dayjs(Kr)),Sr(vue.unref(pr))},Br=()=>{vue.unref(pr)&&Pr()};useOnEvent(ct,{dateChange:Pr,updateByUrlParams:Ir});const Or=vue.ref({fontSize:ct.optionFontSize}),Nr=Kr=>{var Hr,Ur,Jr;if(Kr){const Yr=(Hr=vue.unref(hr))==null?void 0:Hr.getBoundingClientRect();if(Yr){const si=Yr.left/(((Ur=vue.unref(ur))==null?void 0:Ur.widthScale)||1)+"px",fi=(Yr.top+Yr.height)/(((Jr=vue.unref(ur))==null?void 0:Jr.heightScale)||1)+"px";setTimeout(()=>{var pi,mi,xi,ni,ai;const _i=document.querySelectorAll(".ecan-date-picker-dropdown"),bi=Array.from(_i).filter(Xr=>window.getComputedStyle(Xr).display!=="none");if(bi!=null&&bi.length){const Xr=document.getElementById("norPageConfig");bi[0].classList.add("fl-date-picker-dropdown"),(pi=Xr==null?void 0:Xr.style)==null||pi.setProperty("--date-picker-dropdown-top",fi),vue.unref(vr)?((mi=Xr==null?void 0:Xr.style)==null||mi.setProperty("--date-picker-dropdown-left","auto"),(xi=Xr==null?void 0:Xr.style)==null||xi.setProperty("--date-picker-dropdown-right",vue.unref(vr)+"px")):((ni=Xr==null?void 0:Xr.style)==null||ni.setProperty("--date-picker-dropdown-left",si),(ai=Xr==null?void 0:Xr.style)==null||ai.setProperty("--date-picker-dropdown-right","auto")),vue.unref(Or).visibility="visible"}},200)}}else delete vue.unref(Or).visibility};vue.onMounted(()=>{setTimeout(()=>{const Kr=document.querySelector(`#ecan-date-picker-${ct.id}`);if(Kr){const Hr=Kr.getBoundingClientRect(),Ur=vue.unref(ur).widthScale*280,Jr=document.body.clientWidth;Jr-Hr.left<Ur&&(vr.value=(Jr-Hr.left-Hr.width)/vue.unref(ur).widthScale)}},0)});const jr=()=>{Wr(vue.unref(pr)),yr.value=!0},Vr=()=>{Wr(),pr.value=null},$r=()=>{const Kr=dayjs(vue.unref(Cr).join("-"));pr.value=Kr,Wr(Kr),yr.value=!1,Br()},zr=()=>{pr.value=dayjs(),Wr(),gr.value=dayjs().format(ct.format),yr.value=!1};function Wr(Kr){Cr.value=qr(Kr||dayjs()),gr.value=(Kr==null?void 0:Kr.format(ct.format))||""}function qr(Kr){const Hr=[];for(const Ur of vue.unref(Ar))Ur==="day"?Hr.push(Kr.date()):Hr.push(Kr[Ur]()+(Ur==="month"?1:0));return Hr}const Mr=Kr=>{let Hr=!1,{limitStartTime:Ur,limitEndTime:Jr}=ct,Yr=ct.picker;const si={current:vue.unref(mr)};return ct.picker==="date"&&(Yr="day"),Ur=jn(Ur,{textData:si}),Jr=jn(Jr,{textData:si}),Ur&&Jr?Hr=!(dayjs(Ur).isBefore(Kr,Yr)&&Kr.isBefore(dayjs(Jr),Yr)):Ur?Hr=Kr.isBefore(dayjs(Ur),Yr):Jr&&(Hr=dayjs(Jr).isBefore(Kr,Yr)),Hr},Lr=(Kr={})=>{var Hr;if((Hr=Object.keys(Kr))!=null&&Hr.length)for(const Ur in Kr)br.value=Kr[Ur]},Fr=useRequestData(ct),Dr=vue.ref(!1),Gr=async()=>{var Kr,Hr,Ur;try{Dr.value=!0;const Jr=await Fr();(Kr=Jr==null?void 0:Jr.data)!=null&&Kr.data.rowsToData?Lr(((Hr=Jr==null?void 0:Jr.data)==null?void 0:Hr.data.rowsToData)||{}):Lr(((Ur=Jr==null?void 0:Jr.data)==null?void 0:Ur.data)||{})}catch(Jr){console.error(Jr)}finally{Dr.value=!1}},Rr=async()=>{switch(ct.dataType){case"request":{await Gr();break}}},{setRequest:Qr}=vue.inject(REQUEST_MODEL,{setRequest:({id:Kr,sortNum:Hr,requestFn:Ur})=>{}});return typeof Qr=="function"&&Qr({id:ct.id,requestFn:Rr,sortNum:ct.requestSort}),{style:dr,getPopupContainer:fr,myValue:pr,locale,change:Br,scaleValue:ur,popupStyle:Or,openChange:Nr,isMobile:Dn,mobileDateStr:gr,handleClearDate:Vr,openDatePick:jr,datePickVisible:yr,columnsType:Ar,mobileDate:Cr,datePickerRef:hr,onConfirmDate:$r,onCancelDate:zr,disabledDate:Mr}}}),__injectCSSVars__$3=()=>{vue.useCssVars(ct=>({"60120e64":ct.optionFontSize}))},__setup__$3=__default__$3.setup;__default__$3.setup=__setup__$3?(ct,Dn)=>(__injectCSSVars__$3(),__setup__$3(ct,Dn)):__injectCSSVars__$3;const DatePicker_vue_vue_type_style_index_0_scoped_d3fec5b5_lang="",DatePicker_vue_vue_type_style_index_1_lang="",_hoisted_1$j=["id"];function _sfc_render$u(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("calendar-outlined"),pr=vue.resolveComponent("close-circle-filled"),mr=vue.resolveComponent("a-input"),gr=vue.resolveComponent("van-date-picker"),yr=vue.resolveComponent("van-popup"),Cr=vue.resolveComponent("a-date-picker");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-date-picker",style:vue.normalizeStyle(ct.style),id:"ecan-date-picker-"+ct.id,ref:"datePickerRef"},[ct.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(mr,{value:ct.mobileDateStr,placeholder:"请选择日期",readonly:"",onClick:ct.openDatePick},vue.createSlots({prefix:vue.withCtx(()=>[vue.createVNode(vr,{style:{color:"#b0b0b0","padding-right":"5px"}})]),_:2},[ct.mobileDateStr?{name:"suffix",fn:vue.withCtx(()=>[vue.createVNode(pr,{style:{color:"#b0b0b0"},onClick:vue.withModifiers(ct.handleClearDate,["stop"])},null,8,["onClick"])])}:void 0]),1032,["value","onClick"]),vue.createVNode(yr,{show:ct.datePickVisible,"onUpdate:show":Dn[1]||(Dn[1]=br=>ct.datePickVisible=br),style:{"z-index":"999999"},"overlay-style":{background:"rgba(0, 0, 0, .3)",zIndex:999999},position:"bottom",teleport:"#app"},{default:vue.withCtx(()=>[ct.datePickVisible?(vue.openBlock(),vue.createBlock(gr,{key:0,modelValue:ct.mobileDate,"onUpdate:modelValue":Dn[0]||(Dn[0]=br=>ct.mobileDate=br),"columns-type":ct.columnsType,"cancel-button-text":"此刻",onConfirm:ct.onConfirmDate,onCancel:ct.onCancelDate},null,8,["modelValue","columns-type","onConfirm","onCancel"])):vue.createCommentVNode("",!0)]),_:1},8,["show","overlay-style"])],64)):(vue.openBlock(),vue.createBlock(Cr,{key:1,class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:ct.myValue,"onUpdate:value":Dn[2]||(Dn[2]=br=>ct.myValue=br),format:ct.format,picker:ct.picker,showTime:ct.showTime,locale:ct.locale,onChange:ct.change,onOpenChange:ct.openChange,"disabled-date":ct.disabledDate,getPopupContainer:ct.getPopupContainer,popupStyle:ct.popupStyle},null,8,["value","format","picker","showTime","locale","onChange","onOpenChange","disabled-date","getPopupContainer","popupStyle"]))],12,_hoisted_1$j)}const DatePicker$1=_export_sfc$1(__default__$3,[["render",_sfc_render$u],["__scopeId","data-v-d3fec5b5"]]),EcanDatePicker=withInstall$1(DatePicker$1),rangePickerProps={...props$1,name:"日期范围选择器",keyName:"日期范围选择器",type:"ecanRangePicker",width:"250px",height:"35px",picker:"date",format:"YYYY-MM-DD",startTime:"",endTime:"",useCurrentTime:!0,interval:1,intervalUnit:"year",operate:null,limitStartTime:"",limitEndTime:"",associated:"",optionFontSize:"14px",isAllowSpanYear:!0,limitInterval:null},rangePickerComponentProps=transformToComponentProps(rangePickerProps),rangePickerEvents=["dateChange"];var quarterOfYear$1={exports:{}};(function(ct,Dn){(function(ur,dr){ct.exports=dr()})(commonjsGlobal,function(){var ur="month",dr="quarter";return function(fr,hr){var vr=hr.prototype;vr.quarter=function(gr){return this.$utils().u(gr)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(gr-1))};var pr=vr.add;vr.add=function(gr,yr){return gr=Number(gr),this.$utils().p(yr)===dr?this.add(3*gr,ur):pr.bind(this)(gr,yr)};var mr=vr.startOf;vr.startOf=function(gr,yr){var Cr=this.$utils(),br=!!Cr.u(yr)||yr;if(Cr.p(gr)===dr){var Ar=this.quarter()-1;return br?this.month(3*Ar).startOf(ur).startOf("day"):this.month(3*Ar+2).endOf(ur).endOf("day")}return mr.bind(this)(gr,yr)}}})})(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(ct){const Dn=vue.inject("isMobile",!1),ur=vue.inject("scaleValue",{widthScale:1,heightScale:1}),{pageMode:dr,getGlobalVar:fr}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",getGlobalVar:ai=>{}}),{getGlobalModel:hr,setGlobalModel:vr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:ai=>{},setGlobalModel:(ai,Xr)=>{}}),pr=vue.ref(0),mr=vue.ref(),gr=vue.ref({fontSize:ct.optionFontSize}),yr=usePickComponentStyle(ct),Cr=()=>document.getElementById("norPageConfig")||document.body,br=vue.ref([null,null]),Ar=vue.ref(!1),wr=vue.ref([]),_r=vue.ref([]),Tr=vue.ref(),Er=vue.ref(),xr=vue.ref(),Sr=vue.ref(),kr=vue.ref(0),Pr=vue.ref({}),Ir=vue.ref(""),Br=vue.computed(()=>{let ai=["year","month","day"];switch(ct.picker){case"year":ai=["year"];break;case"month":ai=["year","month"];break}return ai}),Or=ai=>{const Xr=ai?String(ai).match(/\{(.+?)\}/g):"";let vi;if(Xr){const Si={};for(let ri of Xr){const yi=ri.slice(1,-1).trim(),di=hr(yi);if(di)Si[yi]=di.value.format(di.format);else if(yi.includes("$page")){const Ei=yi.replace(/[$.]/g,""),Oi=yi.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");ai=ai.replace(new RegExp(Oi,"g"),Ei),Si[Ei]=fr(yi)}}vi=dayjs(jn(ai,{textData:Si}))}else vi=dayjs(jn(ai));return vi};vue.watch(()=>[ct.startTime,ct.endTime,ct.useCurrentTime,ct.interval,ct.intervalUnit,ct.operate],([ai,Xr,vi,Si,ri,yi])=>{if(vue.unref(br).every(di=>!di)||vue.unref(dr)==="design"){let di=null,Ei=null;if(vi&&(di=dayjs().subtract(Si,ri),Ei=dayjs()),ai&&(di=Or(ai)),Xr&&(Ei=Or(Xr)),yi){const{type:Oi,value:Li,mode:Ri}=yi;switch(Oi){case"add":di=di&&di.add(Li,Ri),Ei=Ei&&Ei.add(Li,Ri);break;case"minus":di=di&&di.subtract(Li,Ri),Ei=Ei&&Ei.subtract(Li,Ri)}}br.value=[di,Ei],vue.unref(Dn)&&xi()}},{immediate:!0});let Nr=vue.unref(br)[0],jr=vue.unref(br)[1],Vr="";const $r=(ai,Xr,vi)=>{Array.isArray(ai)?(Nr=ai[0],jr=ai[1],Vr=vi.range):(Nr=null,jr=null)},zr=ai=>{let Xr=!1,{limitStartTime:vi,limitEndTime:Si}=ct;const ri={startTime:`${Nr||""}`,endTime:`${jr||""}`};if(vi=jn(vi,{codeData:ri}),Si=jn(Si,{codeData:ri}),vi&&Si?Xr=!(dayjs(vi)<ai&&ai<dayjs(Si)):vi?Xr=dayjs(vi)>ai:Si&&(Xr=dayjs(Si)<ai),!ct.isAllowSpanYear&&Vr){let yi=null;if(Vr==="start"?yi=Nr:Vr==="end"&&(yi=jr),yi){const di=yi.startOf("year"),Ei=yi.endOf("year");Xr=!(di<=ai&&ai<Ei)}}if(!Xr){const{value:yi=0,mode:di="year"}=ct.limitInterval||{};yi&&(Vr==="start"?Xr=Nr.add(yi,di)<ai:Vr==="end"&&(Xr=jr.subtract(yi,di)>ai))}return Xr},Wr=vue.computed(()=>Array.isArray(vue.unref(br))?vue.unref(br)[0]:null),qr=vue.computed(()=>Array.isArray(vue.unref(br))?vue.unref(br)[1]:null);vue.watch(()=>[Wr.value,qr.value],([ai,Xr])=>{ai&&Xr&&(Ir.value=`${dayjs(ai).format(ct.format)} 至 ${dayjs(Xr).format(ct.format)}`)});const{pageId:Mr}=vue.inject("templateOperate",{pageId:""})||{};vr(ct.id,{type:ct.type,format:ct.format,startTime:Wr,endTime:qr,interval:ct.interval,intervalUnit:ct.intervalUnit,useCurrentTime:ct.useCurrentTime,operate:ct.operate});const Lr=useEmitEvent(ct);let Fr=!1;const Dr=Lr("dateChange",()=>{}),Gr=()=>{var vi;const ai=getNewValueFromUrlParams(Mr,ct.keyName,"startTime"),Xr=getNewValueFromUrlParams(Mr,ct.keyName,"endTime");(vi=br.value)!=null&&vi.length||(br.value=[null,null]),ai&&(br.value[0]=dayjs(ai)),Xr&&(br.value[1]=dayjs(Xr))},Rr=ai=>{var Si,ri,yi;const Xr=vue.unref(br),vi=Xr&&Xr[0]&&Xr[1];if(ai===!1&&Fr===!0&&vi&&(Dr(),Fr=!1),!ai)Vr="",delete vue.unref(gr).visibility;else{const di=(Si=vue.unref(mr))==null?void 0:Si.getBoundingClientRect();if(di){const Ei=di.left/(((ri=vue.unref(ur))==null?void 0:ri.widthScale)||1)+"px",Oi=(di.top+di.height)/(((yi=vue.unref(ur))==null?void 0:yi.heightScale)||1)+"px";setTimeout(()=>{var hi,Ci,Di,$i,Fi;const Li=document.querySelectorAll(".ecan-range-picker-dropdown"),Ri=Array.from(Li).filter(qi=>window.getComputedStyle(qi).display!=="none");if(Ri!=null&&Ri.length){const qi=document.getElementById("norPageConfig");Ri[0].classList.add("fl-range-picker-dropdown"),(hi=qi==null?void 0:qi.style)==null||hi.setProperty("--range-picker-dropdown-top",Oi),vue.unref(pr)?((Ci=qi==null?void 0:qi.style)==null||Ci.setProperty("--range-picker-dropdown-left","auto"),(Di=qi==null?void 0:qi.style)==null||Di.setProperty("--range-picker-dropdown-right",vue.unref(pr)+"px")):(($i=qi==null?void 0:qi.style)==null||$i.setProperty("--range-picker-dropdown-left",Ei),(Fi=qi==null?void 0:qi.style)==null||Fi.setProperty("--date-picker-dropdown-right","auto")),vue.unref(gr).visibility="visible"}},200)}}},Qr=()=>{Fr=!0},Kr=()=>{const{associated:ai}=ct;if(ai){const Xr=hr(ai)||{};if(Xr){const{value:vi}=Xr;if(vi)switch(vue.unref(vi)){case"day":br.value=[dayjs().startOf("day"),dayjs().endOf("day")];break;case"month":br.value=[dayjs().startOf("month"),dayjs().endOf("month")];break;case"lastMonth":br.value=[dayjs().subtract(1,"month").startOf("month"),dayjs().subtract(1,"month").endOf("month")];break;case"monthStartToToday":br.value=[dayjs().startOf("month"),dayjs().endOf("day")];break;case"quarter":br.value=[dayjs().startOf("quarter"),dayjs().endOf("quarter")];break;case"year":br.value=[dayjs().startOf("year"),dayjs().endOf("year")];break;case"yesterday":br.value=[dayjs().startOf("day").subtract(1,"days"),dayjs().endOf("day").subtract(1,"days")];break;case"week":br.value=[dayjs().startOf("week"),dayjs().endOf("week")];break}}}Dr()},Hr=()=>{pi(vue.unref(br)),Ar.value=!0},Ur=()=>{pi(),Ir.value="",br.value=[null,null]},Jr=()=>{br.value=[dayjs(vue.unref(wr).join("-")),dayjs(vue.unref(_r).join("-"))],pi(vue.unref(br)),mi(),_i(),Ar.value=!1,Dr()},Yr=()=>{bi(),Ar.value=!1},si=()=>{var ai,Xr;(ai=vue.unref(wr))!=null&&ai.length&&ct.format&&(xr.value=new Date(vue.unref(wr).join("-")),(Xr=vue.unref(_r))!=null&&Xr.length&&dayjs(vue.unref(_r).join("-")).isBefore(dayjs(vue.unref(wr).join("-")))&&(_r.value=lodashEs.cloneDeep(vue.unref(wr))))},fi=()=>{var ai,Xr;(ai=vue.unref(_r))!=null&&ai.length&&ct.format&&(Er.value=new Date(vue.unref(_r).join("-")),(Xr=vue.unref(wr))!=null&&Xr.length&&dayjs(vue.unref(wr).join("-")).isAfter(dayjs(vue.unref(_r).join("-")))&&(wr.value=lodashEs.cloneDeep(vue.unref(_r))))};function _i(){Pr.value={startMinDate:lodashEs.cloneDeep(vue.unref(Tr)),startMaxDate:lodashEs.cloneDeep(vue.unref(Er)),endMinDate:lodashEs.cloneDeep(vue.unref(xr)),endMaxDate:lodashEs.cloneDeep(vue.unref(Sr))}}function bi(){Tr.value=vue.unref(Pr).startMinDate,Er.value=vue.unref(Pr).startMaxDate,xr.value=vue.unref(Pr).endMinDate,Sr.value=vue.unref(Pr).endMaxDate}function pi(ai=[]){wr.value=ni(ai[0]||dayjs()),_r.value=ni(ai[1]||dayjs())}function mi(){var vi,Si;const ai=(vi=vue.unref(wr))!=null&&vi.length?dayjs(vue.unref(wr).join("-")):"",Xr=(Si=vue.unref(_r))!=null&&Si.length?dayjs(vue.unref(_r).join("-")):"";Ir.value=ai&&Xr&&`${ai.format(ct.format)} 至 ${Xr.format(ct.format)}`}function xi(){const{limitStartTime:ai,limitEndTime:Xr,limitInterval:vi,isAllowSpanYear:Si}=ct;pi(vue.unref(br)),ai&&(Tr.value=new Date(ai),xr.value=new Date(ai),vue.unref(br)[0].isBefore(dayjs(ai))&&(vue.unref(br)[0]=dayjs(ai),wr.value=ni(vue.unref(br)[0]))),Xr&&(Er.value=new Date(Xr),Sr.value=new Date(Xr),vue.unref(br)[1].isAfter(dayjs(Xr))&&(vue.unref(br)[1]=dayjs(Xr),_r.value=ni(vue.unref(br)[1]))),vue.unref(br).every(ri=>ri)&&(vi!=null&&vi.value)&&vue.unref(br)[1].diff(vue.unref(br)[0],vi.mode)>vi.value&&(vue.unref(br)[0]=vue.unref(br)[1].subtract(vi.value,vi.mode),wr.value=ni(vue.unref(br)[0])),vue.unref(br).every(ri=>ri)&&!Si&&vue.unref(br)[0].year()!==vue.unref(br)[1].year()&&(vue.unref(br)[0]=dayjs(`${vue.unref(br)[1].year()}-01-01`),wr.value=ni(vue.unref(br)[0])),_i(),mi()}function ni(ai){const Xr=[];for(const vi of vue.unref(Br))vi==="day"?Xr.push(ai.date()):Xr.push(ai[vi]()+(vi==="month"?1:0));return Xr}return vue.onMounted(()=>{setTimeout(()=>{const ai=document.querySelector(`#ecan-range-picker-${ct.id}`);if(ai){const Xr=ai.getBoundingClientRect(),vi=vue.unref(ur).widthScale*560,Si=document.body.clientWidth;Si-Xr.left<vi&&(pr.value=(Si-Xr.left-Xr.width)/vue.unref(ur).widthScale)}},0)}),useOnEvent(ct,{dateChange:Kr,updateByUrlParams:Gr}),{style:yr,getPopupContainer:Cr,locale,dateChange:Dr,myValue:br,disabledDate:zr,calendarChange:$r,openChange:Rr,change:Qr,isMobile:Dn,mobileDateStr:Ir,datePickVisible:Ar,columnsType:Br,openDatePick:Hr,handleClearDate:Ur,onConfirmDate:Jr,onCancelDate:Yr,mobileStartDate:wr,mobileEndDate:_r,startMinDate:Tr,startMaxDate:Er,endMinDate:xr,endMaxDate:Sr,pickerTabKey:kr,rangePickerRef:mr,popupStyle:gr,onStartDateChange:si,onEndDateChange:fi}}}),__injectCSSVars__$2=()=>{vue.useCssVars(ct=>({"3ad444e3":ct.optionFontSize}))},__setup__$2=__default__$2.setup;__default__$2.setup=__setup__$2?(ct,Dn)=>(__injectCSSVars__$2(),__setup__$2(ct,Dn)):__injectCSSVars__$2;const RangePicker_vue_vue_type_style_index_0_scoped_ef43e030_lang="",RangePicker_vue_vue_type_style_index_1_lang="",_hoisted_1$i=["id"];function _sfc_render$t(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("calendar-outlined"),pr=vue.resolveComponent("close-circle-filled"),mr=vue.resolveComponent("a-input"),gr=vue.resolveComponent("van-date-picker"),yr=vue.resolveComponent("van-picker-group"),Cr=vue.resolveComponent("van-popup"),br=vue.resolveComponent("a-range-picker");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-range-picker",style:vue.normalizeStyle(ct.style),id:"ecan-range-picker-"+ct.id,ref:"rangePickerRef"},[ct.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(mr,{value:ct.mobileDateStr,placeholder:"请选择日期范围",readonly:"",onClick:ct.openDatePick},vue.createSlots({prefix:vue.withCtx(()=>[vue.createVNode(vr,{style:{color:"#b0b0b0","padding-right":"5px"}})]),_:2},[ct.mobileDateStr?{name:"suffix",fn:vue.withCtx(()=>[vue.createVNode(pr,{style:{color:"#b0b0b0"},onClick:vue.withModifiers(ct.handleClearDate,["stop"])},null,8,["onClick"])])}:void 0]),1032,["value","onClick"]),vue.createVNode(Cr,{show:ct.datePickVisible,"onUpdate:show":Dn[3]||(Dn[3]=Ar=>ct.datePickVisible=Ar),style:{"z-index":"999999"},"overlay-style":{background:"rgba(0, 0, 0, .3)",zIndex:999999},position:"bottom",teleport:"#app"},{default:vue.withCtx(()=>[ct.datePickVisible?(vue.openBlock(),vue.createBlock(yr,{key:0,"active-tab":ct.pickerTabKey,"onUpdate:active-tab":Dn[2]||(Dn[2]=Ar=>ct.pickerTabKey=Ar),tabs:["开始日期","结束日期"],onConfirm:ct.onConfirmDate,onCancel:ct.onCancelDate},{default:vue.withCtx(()=>[vue.createVNode(gr,{modelValue:ct.mobileStartDate,"onUpdate:modelValue":Dn[0]||(Dn[0]=Ar=>ct.mobileStartDate=Ar),"min-date":ct.startMinDate,"max-date":ct.startMaxDate,"columns-type":ct.columnsType,onChange:ct.onStartDateChange},null,8,["modelValue","min-date","max-date","columns-type","onChange"]),vue.createVNode(gr,{modelValue:ct.mobileEndDate,"onUpdate:modelValue":Dn[1]||(Dn[1]=Ar=>ct.mobileEndDate=Ar),"min-date":ct.endMinDate,"max-date":ct.endMaxDate,"columns-type":ct.columnsType,onChange:ct.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(br,{key:1,class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:ct.myValue,"onUpdate:value":Dn[4]||(Dn[4]=Ar=>ct.myValue=Ar),format:ct.format,picker:ct.picker,locale:ct.locale,getPopupContainer:ct.getPopupContainer,"disabled-date":ct.disabledDate,onChange:ct.change,onCalendarChange:ct.calendarChange,onOpenChange:ct.openChange,popupStyle:ct.popupStyle},null,8,["value","format","picker","locale","getPopupContainer","disabled-date","onChange","onCalendarChange","onOpenChange","popupStyle"]))],12,_hoisted_1$i)}const RangePicker=_export_sfc$1(__default__$2,[["render",_sfc_render$t],["__scopeId","data-v-ef43e030"]]),EcanRangePicker=withInstall$1(RangePicker),buttonProps={...props$1,width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton",text:"按钮",mode:"default",danger:!1,shape:"default",href:"",target:"self",fontSize:"14px",fontWeight:400,tooltipTextStyleColor:"",buttonBackgroundColor:"#FFFFFF",borderColor:"#d9d9d9"},buttonComponentProps=transformToComponentProps(buttonProps),buttonEvents=["click"],_sfc_main$q=vue.defineComponent({name:"EcanButton",components:{AButton:antDesignVue.Button},props:{...buttonComponentProps},setup(ct){const Dn=usePickComponentStyle(ct),dr=useEmitEvent(ct)("click",()=>{const mr=vue.unref(vr);mr&&ct.target==="event"&&window.parent.postMessage({type:"openPage",url:mr},"*")}),fr=vue.computed(()=>{const mr={};return ct.mode!=="primary"&&(mr.backgroundColor=ct.buttonBackgroundColor||"transparent",mr.color=ct.tooltipTextStyleColor,mr.borderColor=ct.borderColor||"transparent"),{height:ct.height,...mr}}),hr=vue.computed(()=>jn(ct.text)),vr=vue.computed(()=>jn(ct.href)||null),pr=vue.computed(()=>{const mr=ct.target;if(!(mr==="event"||vue.unref(vr)==null))return{self:"_self",blank:"_blank"}[mr]});return useOnEvent(ct,{click:dr}),{style:Dn,click:dr,myText:hr,myHref:vr,myTarget:pr,buttonStyle:fr}}}),Button_vue_vue_type_style_index_0_lang="";function _sfc_render$s(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("a-button");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-button",style:vue.normalizeStyle(ct.style)},[vue.createVNode(vr,{block:"",onClick:ct.click,type:ct.mode,danger:ct.danger,shape:ct.shape,href:ct.myHref,target:ct.myTarget,style:vue.normalizeStyle(ct.buttonStyle),class:vue.normalizeClass(ct.tooltipTextStyleColor?"custom-color":"")},{default:vue.withCtx(()=>[vue.createElementVNode("span",{style:vue.normalizeStyle({fontSize:ct.fontSize,fontWeight:ct.fontWeight})},vue.toDisplayString(ct.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target","style","class"])],4)}const Button=_export_sfc$1(_sfc_main$q,[["render",_sfc_render$s]]),EcanButton=withInstall$1(Button),checkboxProps$1={...props$1,width:"240px",id:"",left:"0px",top:"0px",name:"复选框",keyName:"复选框",rotate:"",type:"ecanCheckbox",value:[],data:[{label:"选项一",value:"1",checked:!0},{label:"选项二",value:"2",checked:!0},{label:"选项三",value:"3"}],graphicConfig:{}},checkboxComponentProps=transformToComponentProps(checkboxProps$1),checkboxEvents=["checkboxChange"],_sfc_main$p=vue.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:antDesignVue.CheckboxGroup},props:{...checkboxComponentProps},setup(ct,{expose:Dn}){const ur=usePickComponentStyle(ct),dr=vue.ref([]),fr=vue.ref([]),hr=Er=>{const xr=ct.value;let Sr=[];Er.forEach(kr=>{kr.checked&&Sr.push(kr.value)}),typeof xr=="string"&&xr!==""?Sr=Sr.concat(xr.split(",")):Array.isArray(xr)&&(Sr=Sr.concat(xr)),dr.value=Er,fr.value=Sr};vue.watch(()=>[ct.data,ct.value],([Er])=>{hr(Er)},{immediate:!0,deep:!0});const vr=useRequestData(ct),pr=async()=>{var Sr,kr;if(ct.dataType!=="request")return;const Er=await vr(),xr=((kr=(Sr=Er==null?void 0:Er.data)==null?void 0:Sr.data)==null?void 0:kr.rows)||[];hr(xr)},{getGlobalModel:mr,setGlobalModel:gr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Er=>{},setGlobalModel:(Er,xr)=>{}});gr(ct.id,{type:ct.type,value:fr});const Cr=useEmitEvent(ct)("checkboxChange",()=>{const Er=mr(ct.id);gr(ct.id,{...Er,RECORD:fr})}),br=Er=>{var Sr;const{data:xr}=(Er==null?void 0:Er.data)||{};if(xr){const Pr=(((Sr=Er==null?void 0:Er.data)==null?void 0:Sr.data)??[]).map(Ir=>({label:Ir.label,value:Ir.value}));hr(Pr)}else hr([])},Ar=useIndicatorData(ct,br),wr=async()=>{try{const Er=await Ar();br(Er)}catch(Er){console.error(Er)}},_r=async()=>{switch(ct.dataType){case"indicator":await wr();break;case"request":await pr();break}},{setRequest:Tr}=vue.inject(REQUEST_MODEL,{setRequest:({id:Er,sortNum:xr,requestFn:Sr})=>{}});return typeof Tr=="function"&&Tr({id:ct.id,requestFn:_r,sortNum:ct.requestSort}),Dn({refreshData:_r}),{myOption:dr,style:ur,myValue:fr,checkboxChange:Cr}}}),Checkbox_vue_vue_type_style_index_0_lang="";function _sfc_render$r(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("a-checkbox-group");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-checkbox",style:vue.normalizeStyle(ct.style)},[vue.createVNode(vr,{options:ct.myOption,value:ct.myValue,"onUpdate:value":Dn[0]||(Dn[0]=pr=>ct.myValue=pr),onChange:ct.checkboxChange},null,8,["options","value","onChange"]),vue.renderSlot(ct.$slots,"toolbox")],4)}const Checkbox$1=_export_sfc$1(_sfc_main$p,[["render",_sfc_render$r]]),EcanCheckbox=withInstall$1(Checkbox$1),selectProps={...props$1,name:"下拉框选择器",keyName:"下拉框选择器",width:"120px",height:"33px",type:"ecanSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,selectAllOption:!1,graphicConfig:{},valueType:"value",isAllowClear:!0,optionFontSize:"14px",hasAllCheck:!1,minTagCount:null,maxTagTextLength:4},selectComponentProps=transformToComponentProps(selectProps),selectEvents=["selectChange","refreshData","clearValue"];function getInternetExplorerVersion(){const ct=window.navigator.userAgent,Dn=ct.indexOf("MSIE ");if(Dn>0)return parseInt(ct.substring(Dn+5,ct.indexOf(".",Dn)),10);if(ct.indexOf("Trident/")>0){const fr=ct.indexOf("rv:");return parseInt(ct.substring(fr+3,ct.indexOf(".",fr)),10)}const dr=ct.indexOf("Edge/");return dr>0?parseInt(ct.substring(dr+5,ct.indexOf(".",dr)),10):-1}let isIE;function initCompat(){initCompat.init||(initCompat.init=!0,isIE=getInternetExplorerVersion()!==-1)}var script$1={name:"ResizeObserver",props:{showTrigger:{type:Boolean,default:!1}},emits:["notify"],setup(ct,{emit:Dn}){let ur=0,dr=0;const fr=vue.ref(null);let hr=null;const vr=()=>{(ur!==fr.value.offsetWidth||dr!==fr.value.offsetHeight)&&(ur=fr.value.offsetWidth,dr=fr.value.offsetHeight,Dn("notify",{width:ur,height:dr}))},pr=()=>{hr.contentDocument.defaultView.addEventListener("resize",vr),vr()},mr=()=>{hr&&hr.onload&&(!isIE&&hr.contentDocument&&hr.contentDocument.defaultView.removeEventListener("resize",vr),fr.value.removeChild(hr),hr.onload=null,hr=null)};return vue.onMounted(()=>{initCompat(),ur=fr.value.offsetWidth,dr=fr.value.offsetHeight;const gr=document.createElement("object");hr=gr,gr.setAttribute("aria-hidden","true"),gr.setAttribute("tabindex","-1"),gr.onload=pr,gr.type="text/html",isIE&&fr.value.appendChild(gr),gr.data="about:blank",isIE||fr.value.appendChild(gr),ct.showTrigger&&vr()}),vue.onBeforeUnmount(()=>{mr()}),{elRef:fr}}};const _hoisted_1$h={ref:"elRef",class:"vue3-resize-observer",tabindex:"-1"};function render$1(ct,Dn,ur,dr,fr,hr){return vue.openBlock(),vue.createBlock("div",_hoisted_1$h,null,512)}script$1.render=render$1,script$1.__file="src/package/ResizeObserver/ResizeObserver.vue",script$1.install=function(ct){ct.component(script$1.name,script$1)};var config={itemsLimit:1e3};function _typeof(ct){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(Dn){return typeof Dn}:_typeof=function(Dn){return Dn&&typeof Symbol=="function"&&Dn.constructor===Symbol&&Dn!==Symbol.prototype?"symbol":typeof Dn},_typeof(ct)}function _defineProperty(ct,Dn,ur){return Dn in ct?Object.defineProperty(ct,Dn,{value:ur,enumerable:!0,configurable:!0,writable:!0}):ct[Dn]=ur,ct}function ownKeys(ct,Dn){var ur=Object.keys(ct);if(Object.getOwnPropertySymbols){var dr=Object.getOwnPropertySymbols(ct);Dn&&(dr=dr.filter(function(fr){return Object.getOwnPropertyDescriptor(ct,fr).enumerable})),ur.push.apply(ur,dr)}return ur}function _objectSpread2(ct){for(var Dn=1;Dn<arguments.length;Dn++){var ur=arguments[Dn]!=null?arguments[Dn]:{};Dn%2?ownKeys(Object(ur),!0).forEach(function(dr){_defineProperty(ct,dr,ur[dr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ct,Object.getOwnPropertyDescriptors(ur)):ownKeys(Object(ur)).forEach(function(dr){Object.defineProperty(ct,dr,Object.getOwnPropertyDescriptor(ur,dr))})}return ct}function _unsupportedIterableToArray(ct,Dn){if(ct){if(typeof ct=="string")return _arrayLikeToArray(ct,Dn);var ur=Object.prototype.toString.call(ct).slice(8,-1);if(ur==="Object"&&ct.constructor&&(ur=ct.constructor.name),ur==="Map"||ur==="Set")return Array.from(ur);if(ur==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ur))return _arrayLikeToArray(ct,Dn)}}function _arrayLikeToArray(ct,Dn){(Dn==null||Dn>ct.length)&&(Dn=ct.length);for(var ur=0,dr=new Array(Dn);ur<Dn;ur++)dr[ur]=ct[ur];return dr}function _createForOfIteratorHelper(ct){if(typeof Symbol>"u"||ct[Symbol.iterator]==null){if(Array.isArray(ct)||(ct=_unsupportedIterableToArray(ct))){var Dn=0,ur=function(){};return{s:ur,n:function(){return Dn>=ct.length?{done:!0}:{done:!1,value:ct[Dn++]}},e:function(pr){throw pr},f:ur}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
182
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var dr,fr=!0,hr=!1,vr;return{s:function(){dr=ct[Symbol.iterator]()},n:function(){var pr=dr.next();return fr=pr.done,pr},e:function(pr){hr=!0,vr=pr},f:function(){try{!fr&&dr.return!=null&&dr.return()}finally{if(hr)throw vr}}}}function _typeof$1(ct){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(Dn){return typeof Dn}:_typeof$1=function(Dn){return Dn&&typeof Symbol=="function"&&Dn.constructor===Symbol&&Dn!==Symbol.prototype?"symbol":typeof Dn},_typeof$1(ct)}function _classCallCheck(ct,Dn){if(!(ct instanceof Dn))throw new TypeError("Cannot call a class as a function")}function _defineProperties(ct,Dn){for(var ur=0;ur<Dn.length;ur++){var dr=Dn[ur];dr.enumerable=dr.enumerable||!1,dr.configurable=!0,"value"in dr&&(dr.writable=!0),Object.defineProperty(ct,dr.key,dr)}}function _createClass(ct,Dn,ur){return Dn&&_defineProperties(ct.prototype,Dn),ur&&_defineProperties(ct,ur),ct}function _toConsumableArray(ct){return _arrayWithoutHoles(ct)||_iterableToArray(ct)||_nonIterableSpread()}function _arrayWithoutHoles(ct){if(Array.isArray(ct)){for(var Dn=0,ur=new Array(ct.length);Dn<ct.length;Dn++)ur[Dn]=ct[Dn];return ur}}function _iterableToArray(ct){if(Symbol.iterator in Object(ct)||Object.prototype.toString.call(ct)==="[object Arguments]")return Array.from(ct)}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function processOptions(ct){var Dn;return typeof ct=="function"?Dn={callback:ct}:Dn=ct,Dn}function throttle(ct,Dn){var ur=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},dr,fr,hr,vr=function(mr){for(var gr=arguments.length,yr=new Array(gr>1?gr-1:0),Cr=1;Cr<gr;Cr++)yr[Cr-1]=arguments[Cr];if(hr=yr,!(dr&&mr===fr)){var br=ur.leading;typeof br=="function"&&(br=br(mr,fr)),(!dr||mr!==fr)&&br&&ct.apply(void 0,[mr].concat(_toConsumableArray(hr))),fr=mr,clearTimeout(dr),dr=setTimeout(function(){ct.apply(void 0,[mr].concat(_toConsumableArray(hr))),dr=0},Dn)}};return vr._clear=function(){clearTimeout(dr),dr=null},vr}function deepEqual(ct,Dn){if(ct===Dn)return!0;if(_typeof$1(ct)==="object"){for(var ur in ct)if(!deepEqual(ct[ur],Dn[ur]))return!1;return!0}return!1}var VisibilityState=function(){function ct(Dn,ur,dr){_classCallCheck(this,ct),this.el=Dn,this.observer=null,this.frozen=!1,this.createObserver(ur,dr)}return _createClass(ct,[{key:"createObserver",value:function(ur){var dr=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=processOptions(ur),this.callback=function(vr,pr){dr.options.callback(vr,pr),vr&&dr.options.once&&(dr.frozen=!0,dr.destroyObserver())},this.callback&&this.options.throttle){var fr=this.options.throttleOptions||{},hr=fr.leading;this.callback=throttle(this.callback,this.options.throttle,{leading:function(pr){return hr==="both"||hr==="visible"&&pr||hr==="hidden"&&!pr}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(vr){var pr=vr[0];if(vr.length>1){var mr=vr.find(function(yr){return yr.isIntersecting});mr&&(pr=mr)}if(dr.callback){var gr=pr.isIntersecting&&pr.intersectionRatio>=dr.threshold;if(gr===dr.oldResult)return;dr.oldResult=gr,dr.callback(gr,pr)}},this.options.intersection),setTimeout(function(){dr.observer&&dr.observer.observe(dr.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&this.options.intersection.threshold||0}}]),ct}();function mounted(ct,Dn,ur){var dr=Dn.value;if(dr)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var fr=new VisibilityState(ct,dr,ur);ct._vue_visibilityState=fr}}function unmounted(ct){var Dn=ct._vue_visibilityState;Dn&&(Dn.destroyObserver(),delete ct._vue_visibilityState)}function componentUpdated(ct,Dn,ur){var dr=Dn.value,fr=Dn.oldValue;if(!deepEqual(dr,fr)){var hr=ct._vue_visibilityState;if(!dr){unmounted(ct);return}hr?hr.createObserver(dr,ur):mounted(ct,{value:dr},ur)}}var ObserveVisibility={mounted,componentUpdated,unmounted},props={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(Dn){return["vertical","horizontal"].includes(Dn)}}},scrollParent=function(Dn){var ur=/(auto|scroll)/;function dr(mr,gr){return mr.parentNode===null?gr:dr(mr.parentNode,gr.concat([mr]))}function fr(mr,gr){return getComputedStyle(mr,null).getPropertyValue(gr)}function hr(mr){return fr(mr,"overflow")+fr(mr,"overflow-y")+fr(mr,"overflow-x")}function vr(mr){return ur.test(hr(mr))}function pr(mr){if(mr instanceof HTMLElement||mr instanceof SVGElement){for(var gr=dr(mr.parentNode,[]),yr=0;yr<gr.length;yr+=1)if(vr(gr[yr]))return gr[yr];return document.scrollingElement||document.documentElement}}return pr(Dn)};function simpleArray(){return this.items.length&&_typeof(this.items[0])!=="object"}var supportsPassive=!1;if(typeof window<"u"){supportsPassive=!1;try{var opts=Object.defineProperty({},"passive",{get:function(){supportsPassive=!0}});window.addEventListener("test",null,opts)}catch{}}var uid=0,script=vue.defineComponent({name:"RecycleScroller",components:{ResizeObserver:script$1},directives:{ObserveVisibility},props:_objectSpread2({},props,{itemSize:{type:Number,default:null},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1}}),emits:["visible","hidden","resize","update"],data:function(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes:function(){if(this.itemSize===null){for(var Dn={"-1":{accumulator:0}},ur=this.items,dr=this.sizeField,fr=this.minItemSize,hr=1e4,vr=0,pr,mr=0,gr=ur.length;mr<gr;mr++)pr=ur[mr][dr]||fr,pr<hr&&(hr=pr),vr+=pr,Dn[mr]={accumulator:vr,size:pr};return this.$_computedMinItemSize=hr,Dn}return[]},simpleArray},watch:{items:function(){this.updateVisibleItems(!0)},pageMode:function(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler:function(){this.updateVisibleItems(!1)},deep:!0}},created:function(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1))},mounted:function(){var Dn=this;this.applyPageMode(),this.$nextTick(function(){Dn.$_prerender=!1,Dn.updateVisibleItems(!0),Dn.ready=!0})},beforeUnmount:function(){this.removeListeners()},methods:{addView:function(Dn,ur,dr,fr,hr){var vr={item:dr,position:0};return vr.nr={id:uid++,index:ur,used:!0,key:fr,type:hr},Dn.push(vr),vr},unuseView:function(Dn){var ur=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,dr=this.$_unusedViews,fr=Dn.nr.type,hr=dr.get(fr);hr||(hr=[],dr.set(fr,hr)),hr.push(Dn),ur||(Dn.nr.used=!1,Dn.position=-9999,this.$_views.delete(Dn.nr.key))},handleResize:function(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll:function(Dn){var ur=this;this.$_scrollDirty||(this.$_scrollDirty=!0,requestAnimationFrame(function(){ur.$_scrollDirty=!1;var dr=ur.updateVisibleItems(!1,!0),fr=dr.continuous;fr||(clearTimeout(ur.$_refreshTimout),ur.$_refreshTimout=setTimeout(ur.handleScroll,100))}))},handleVisibilityChange:function(Dn,ur){var dr=this;this.ready&&(Dn||ur.boundingClientRect.width!==0||ur.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(function(){dr.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems:function(Dn){var ur=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,dr=this.itemSize,fr=this.$_computedMinItemSize,hr=this.typeField,vr=this.simpleArray?null:this.keyField,pr=this.items,mr=pr.length,gr=this.sizes,yr=this.$_views,Cr=this.$_unusedViews,br=this.pool,Ar,wr,_r;if(!mr)Ar=wr=_r=0;else if(this.$_prerender)Ar=0,wr=this.prerender,_r=null;else{var Tr=this.getScroll();if(ur){var Er=Tr.start-this.$_lastUpdateScrollPosition;if(Er<0&&(Er=-Er),dr===null&&Er<fr||Er<dr)return{continuous:!0}}this.$_lastUpdateScrollPosition=Tr.start;var xr=this.buffer;if(Tr.start-=xr,Tr.end+=xr,dr===null){var Sr,kr=0,Pr=mr-1,Ir=~~(mr/2),Br;do Br=Ir,Sr=gr[Ir].accumulator,Sr<Tr.start?kr=Ir:Ir<mr-1&&gr[Ir+1].accumulator>Tr.start&&(Pr=Ir),Ir=~~((kr+Pr)/2);while(Ir!==Br);for(Ir<0&&(Ir=0),Ar=Ir,_r=gr[mr-1].accumulator,wr=Ir;wr<mr&&gr[wr].accumulator<Tr.end;wr++);wr===-1?wr=pr.length-1:(wr++,wr>mr&&(wr=mr))}else Ar=~~(Tr.start/dr),wr=Math.ceil(Tr.end/dr),Ar<0&&(Ar=0),wr>mr&&(wr=mr),_r=mr*dr}wr-Ar>config.itemsLimit&&this.itemsLimitError(),this.totalSize=_r;var Or,Nr=Ar<=this.$_endIndex&&wr>=this.$_startIndex;if(this.$_continuous!==Nr){if(Nr){yr.clear(),Cr.clear();for(var jr=0,Vr=br.length;jr<Vr;jr++)Or=br[jr],this.unuseView(Or)}this.$_continuous=Nr}else if(Nr)for(var $r=0,zr=br.length;$r<zr;$r++)Or=br[$r],Or.nr.used&&(Dn&&(Or.nr.index=pr.findIndex(function(Rr){return vr?Rr[vr]===Or.item[vr]:Rr===Or.item})),(Or.nr.index===-1||Or.nr.index<Ar||Or.nr.index>=wr)&&this.unuseView(Or));for(var Wr=Nr?null:new Map,qr,Mr,Lr,Fr,Dr=Ar;Dr<wr;Dr++){qr=pr[Dr];var Gr=vr?qr[vr]:qr;if(Gr==null)throw new Error("Key is ".concat(Gr," on item (keyField is '").concat(vr,"')"));if(Or=yr.get(Gr),!dr&&!gr[Dr].size){Or&&this.unuseView(Or);continue}Or?(Or.nr.used=!0,Or.item=qr):(Mr=qr[hr],Lr=Cr.get(Mr),Nr?Lr&&Lr.length?(Or=Lr.pop(),Or.item=qr,Or.nr.used=!0,Or.nr.index=Dr,Or.nr.key=Gr,Or.nr.type=Mr):Or=this.addView(br,Dr,qr,Gr,Mr):(Fr=Wr.get(Mr)||0,(!Lr||Fr>=Lr.length)&&(Or=this.addView(br,Dr,qr,Gr,Mr),this.unuseView(Or,!0),Lr=Cr.get(Mr)),Or=Lr[Fr],Or.item=qr,Or.nr.used=!0,Or.nr.index=Dr,Or.nr.key=Gr,Or.nr.type=Mr,Wr.set(Mr,Fr+1),Fr++),yr.set(Gr,Or)),dr===null?Or.position=gr[Dr-1].accumulator:Or.position=Dr*dr}return this.$_startIndex=Ar,this.$_endIndex=wr,this.emitUpdate&&this.$emit("update",Ar,wr),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,300),{continuous:Nr}},getListenerTarget:function(){var Dn=scrollParent(this.$el);return window.document&&(Dn===window.document.documentElement||Dn===window.document.body)&&(Dn=window),Dn},getScroll:function(){var Dn=this.$el,ur=this.direction,dr=ur==="vertical",fr;if(this.pageMode){var hr=Dn.getBoundingClientRect(),vr=dr?hr.height:hr.width,pr=-(dr?hr.top:hr.left),mr=dr?window.innerHeight:window.innerWidth;pr<0&&(mr+=pr,pr=0),pr+mr>vr&&(mr=vr-pr),fr={start:pr,end:pr+mr}}else dr?fr={start:Dn.scrollTop,end:Dn.scrollTop+Dn.clientHeight}:fr={start:Dn.scrollLeft,end:Dn.scrollLeft+Dn.clientWidth};return fr},applyPageMode:function(){this.pageMode?this.addListeners():this.removeListeners()},addListeners:function(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,supportsPassive?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners:function(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem:function(Dn){var ur;this.itemSize===null?ur=Dn>0?this.sizes[Dn-1].accumulator:0:ur=Dn*this.itemSize,this.scrollToPosition(ur)},scrollToPosition:function(Dn){this.direction==="vertical"?this.$el.scrollTop=Dn:this.$el.scrollLeft=Dn},itemsLimitError:function(){var Dn=this;throw setTimeout(function(){console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",Dn.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews:function(){this.pool.sort(function(Dn,ur){return Dn.nr.index-ur.nr.index})}}}),_hoisted_1$g={key:0,class:"vue-recycle-scroller__slot"},_hoisted_2$9={key:1,class:"vue-recycle-scroller__slot"};function render(ct,Dn,ur,dr,fr,hr){var vr=vue.resolveComponent("ResizeObserver"),pr=vue.resolveDirective("observe-visibility");return vue.withDirectives((vue.openBlock(),vue.createBlock("div",{class:["vue-recycle-scroller",_defineProperty({ready:ct.ready,"page-mode":ct.pageMode},"direction-".concat(ct.direction),!0)],onScrollPassive:Dn[2]||(Dn[2]=function(){return ct.handleScroll.apply(ct,arguments)})},[ct.$slots.before?(vue.openBlock(),vue.createBlock("div",_hoisted_1$g,[vue.renderSlot(ct.$slots,"before")])):vue.createCommentVNode("v-if",!0),vue.createVNode("div",{ref:"wrapper",style:_defineProperty({},ct.direction==="vertical"?"minHeight":"minWidth",ct.totalSize+"px"),class:"vue-recycle-scroller__item-wrapper"},[(vue.openBlock(!0),vue.createBlock(vue.Fragment,null,vue.renderList(ct.pool,function(mr){return vue.openBlock(),vue.createBlock("div",{key:mr.nr.id,style:ct.ready?{transform:"translate".concat(ct.direction==="vertical"?"Y":"X","(").concat(mr.position,"px)")}:null,class:["vue-recycle-scroller__item-view",{hover:ct.hoverKey===mr.nr.key}],onMouseenter:function(yr){return ct.hoverKey=mr.nr.key},onMouseleave:Dn[1]||(Dn[1]=function(gr){return ct.hoverKey=null})},[vue.renderSlot(ct.$slots,"default",{item:mr.item,index:mr.nr.index,active:mr.nr.used})],46,["onMouseenter"])}),128))],4),ct.$slots.after?(vue.openBlock(),vue.createBlock("div",_hoisted_2$9,[vue.renderSlot(ct.$slots,"after")])):vue.createCommentVNode("v-if",!0),vue.createVNode(vr,{onNotify:ct.handleResize},null,8,["onNotify"])],34)),[[pr,ct.handleVisibilityChange]])}script.render=render,script.__file="src/components/RecycleScroller.vue",_objectSpread2({},props,{minItemSize:{type:[Number,String],required:!0}});const vue3VirtualScroller="",_sfc_main$o=vue.defineComponent({name:"EcanSelect",components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption,AInput:antDesignVue.Input,ADivider:antDesignVue.Divider,ACheckbox:antDesignVue.Checkbox,DownOutlined:DownOutlined$1,CloseOutlined:CloseOutlined$1,RecycleScroller:script,VNodes:(ct,{attrs:Dn})=>Dn.vnodes},props:{...selectComponentProps},setup(ct,{expose:Dn}){var Oi,Li,Ri;const ur=vue.inject("isMobile",!1),dr=vue.inject("scaleValue",{widthScale:1,heightScale:1}),fr=vue.ref(),hr=vue.ref({}),vr=vue.ref(!1),pr={text:((Oi=ct.dataFieldNames)==null?void 0:Oi.label)||"label",value:((Li=ct.dataFieldNames)==null?void 0:Li.value)||"value"},mr=vue.ref([]),gr=usePickComponentStyle(ct),yr=()=>document.getElementById("norPageConfig")||document.body,Cr=vue.ref(ct.data||[]),br=vue.ref(),Ar=vue.ref(!1),wr=vue.ref(!1),_r=vue.ref(),Tr=vue.ref(!1),Er=vue.ref(!1),xr=vue.computed(()=>ct.maxTagTextLength?ct.maxTagTextLength:0),Sr=(hi,Ci=!1)=>{var $i,Fi;let Di="";return typeof hi=="string"||typeof hi=="number"?Di=String(hi):Array.isArray(hi)&&(($i=hi[0])!=null&&$i.children)&&(typeof hi[0].children=="string"||typeof hi[0].children=="number")?Di=String(hi[0].children):Di="",((Fi=vue.unref(Pr))==null?void 0:Fi.length)===1||!Ci||!vue.unref(xr)||Di.length<=vue.unref(xr)?Di:`${Di.slice(0,vue.unref(xr))}...`},kr=()=>{Er.value=!vue.unref(Er)},Pr=vue.computed({get:()=>{var Ci;const{mode:hi}=ct;return(Ci=vue.unref(Cr))!=null&&Ci.length?br.value:hi==="multiple"||hi==="tags"||hi==="combobox"?[]:""},set:hi=>{br.value=hi}}),Ir=vue.computed(()=>{const hi=[];if(Array.isArray(vue.unref(Pr)))for(const Ci of vue.unref(Pr)){const Di=vue.unref(Cr).find($i=>$i.value===Ci);Di&&hi.push(Di.label)}else{const Ci=vue.unref(Cr).find(Di=>Di.value===vue.unref(Pr));Ci&&hi.push(Ci.label)}return hi.join(",")}),Br=vue.computed(()=>vue.unref(_r)?vue.unref(Cr).filter(hi=>hi.label.includes(vue.unref(_r))):vue.unref(Cr)),{getGlobalModel:Or,setGlobalModel:Nr,getRecordValueByKeyName:jr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:hi=>{},setGlobalModel:(hi,Ci)=>{},getRecordValueByKeyName:hi=>{}}),Vr=ct.dataFieldNames;vue.watch(()=>[ct.value,ct.mode,ct.selectFirstOption,ct.selectAllOption,ct.valueType,Cr.value],()=>{const{mode:hi,selectFirstOption:Ci,selectAllOption:Di,value:$i}=ct,Fi=jr($i),qi=Vr.value;if(hi==="multiple"||hi==="tags"||hi==="combobox"){if(Fi)br.value=vue.unref(Fi).split(",");else if(Ci){const Ji=vue.unref(Cr)[0];br.value=Ji?[Ji[qi]]:[]}Di&&(br.value=vue.unref(Cr).map(Ji=>Ji[qi]),Ar.value=!0,wr.value=!1)}else if(Fi)br.value=vue.unref(Fi);else if(Ci){const Ji=vue.unref(Cr)[0];br.value=Ji?Ji[qi]:""}},{immediate:!0});const $r=(hi,Ci)=>{var ua;const Di=Vr.label,$i=Vr.value;let Fi;const qi=Ci[Di],Ji=Ci[$i];return qi!=null?Fi=qi:Ji!=null&&(Fi=Ji),Fi?(Fi==null?void 0:Fi.toLowerCase().indexOf(hi==null?void 0:hi.toLowerCase()))>=0:((ua=Ci.label)==null?void 0:ua.toLowerCase().indexOf(hi==null?void 0:hi.toLowerCase()))>=0},zr=hi=>{const{label:Ci,value:Di,options:$i}=ct.dataFieldNames;if($i&&Array.isArray(hi))if(hi.some(Fi=>$i in Fi)){const Fi={},qi=[];hi.forEach(Ji=>{Fi[Ji[$i]]||(Fi[Ji[$i]]=[]),Fi[Ji[$i]].push({[Ci]:Ji[Ci],[Di]:Ji[Di]})});for(const Ji in Fi)qi.push({[Ci]:Ji,[$i]:Fi[Ji]});return qi}else return hi;else{if(!$i&&Array.isArray(hi))return hi=hi.map(Fi=>({label:Fi[Ci],value:Fi[Di],[Ci]:Fi[Ci],[Di]:Fi[Di]})),hi;if(!$i&&!Array.isArray(hi))return hi}},Wr=vue.ref(!1),qr=hi=>{var Ci,Di;if(Cr.value=zr(((Di=(Ci=hi==null?void 0:hi.data)==null?void 0:Ci.data)==null?void 0:Di.rows)||[]),ct.selectFirstOption){let $i=vue.unref(Cr)[0];if(Vr.options){const Fi=$i[Vr.options];Fi&&Fi.length&&($i=Fi[0])}br.value=$i[Vr.value]}ct.mode==="multiple"&&ct.selectAllOption&&(br.value=vue.unref(Cr).map($i=>$i[Vr.value])),vue.nextTick(()=>{ct.dataType!=="static"&&Jr()})},Mr=useRequestData(ct),Lr=async()=>{if(ct.dataType==="request"){Wr.value=!0;try{const hi=await Mr();qr(hi)}catch(hi){console.error(hi)}finally{Wr.value=!1}}},Fr=vue.computed(()=>{let hi=br.value;if(ct.valueType==="label"&&vue.unref(br)&&vue.unref(Cr)){const Ci=Vr.label,Di=Vr.value;if(ct.mode==="multiple")hi=vue.unref(Cr).filter($i=>vue.unref(br).includes($i[Di])).map($i=>$i[Ci]);else{const $i=vue.unref(Cr).find(Fi=>vue.unref(br)===Fi[Di]);$i&&(hi=$i[Ci])}}return hi}),Dr=vue.ref([]),Gr=vue.computed(()=>{const hi={};let Ci=vue.toRaw(vue.unref(br));ct.mode!=="multiple"&&(Ci=[Ci]);const Di=vue.unref(Dr).filter($i=>Ci==null?void 0:Ci.includes($i.value));return Di!=null&&Di.length?(hi.itemCodes=Di.map($i=>$i[Vr.value]).join(","),hi.itemLabels=Di.map($i=>$i[Vr.label]).join(",")):(hi.itemCodes="",hi.itemLabels=""),hi}),Rr=vue.computed(()=>{const{value:hi,label:Ci}=Vr,Di=vue.unref(Cr).find($i=>$i[hi]===vue.unref(Pr));return Di?{label:Di[Ci],value:Di[hi]}:{}}),{pageId:Qr}=vue.inject("templateOperate",{pageId:""})||{};Nr(ct.id,{type:ct.type,dataType:ct.dataType,value:Fr,label:(Ri=vue.unref(Rr))==null?void 0:Ri.label,...vue.unref(Gr),recordData:vue.unref(Rr)});const Kr=useEmitEvent(ct),Hr=()=>{const hi=ct.id,Ci=Or(hi);Nr(hi,{...Ci,...vue.unref(Gr),value:Fr,RECORD:vue.unref(Rr),recordData:vue.unref(Rr),dataType:ct.dataType,type:ct.type})},Ur=()=>{const hi=getNewValueFromUrlParams(Qr,ct.keyName,"value");hi&&(Pr.value=hi)},Jr=Kr("selectChange",()=>{Hr()}),Yr=Kr("clearValue",()=>{["multiple","tags","combobox"].includes(ct.mode)?br.value=[]:br.value=null;const hi=ct.id;Nr(hi,{RECORD:"",recordData:vue.unref(Rr),dataType:ct.dataType})}),si=Kr("refreshData",(hi=[])=>{var Di,$i;const Ci=zr(hi);if(($i=(Di=ct==null?void 0:ct.graphicConfig)==null?void 0:Di.formFields)!=null&&$i.hasAllOption){const Fi=Vr.label,qi=Vr.value;Ci.unshift({[Fi]:"全部",[qi]:""})}if(Cr.value=Ci,ct.selectFirstOption){let Fi=vue.unref(Cr)[0]||{};if(Vr.options){const qi=Fi[Vr.options];qi&&qi.length&&(Fi=qi[0])}br.value=Fi[Vr.value]}ct.mode==="multiple"&&ct.selectAllOption&&(br.value=vue.unref(Cr).map(Fi=>Fi[Vr.value])),Nr(ct.id,{type:ct.type,value:Fr,...vue.unref(Gr),recordData:vue.unref(Rr),RECORD:vue.unref(Rr),dataType:ct.dataType})}),fi=hi=>{var Fi;const{data:Ci}=(hi==null?void 0:hi.data)||{},Di=Vr.label,$i=Vr.value;if(Ci){const{rows:qi=[]}=((Fi=hi==null?void 0:hi.data)==null?void 0:Fi.data)||{};Dr.value=qi||[];const Ji=vue.unref(Dr).map(va=>({[Di]:va.label,[$i]:va.value})),{id:ua}=ct,da=Or(ua);Nr(ua,{...da,...vue.unref(Gr),dataType:ct.dataType}),si(Ji)}else si([])},_i=useIndicatorData(ct,fi),bi=async()=>{try{Wr.value=!0;const hi=await _i();fi(hi)}catch(hi){console.error(hi)}finally{Wr.value=!1}},pi=async()=>{switch(ct.dataType){case"indicator":{await bi();break}case"request":await Lr();break}};useOnEvent(ct,{selectChange:Jr,refreshData:pi,clearValue:Yr,updateByUrlParams:Ur});const{setRequest:mi}=vue.inject(REQUEST_MODEL,{setRequest:({id:hi,sortNum:Ci,requestFn:Di})=>{}});typeof mi=="function"&&mi({id:ct.id,requestFn:pi,sortNum:ct.requestSort}),Dn({refreshData:pi});const xi=()=>{ct.mode==="multiple"?Pr.value=vue.unref(mr):Pr.value=vue.unref(mr)[0],Jr(),Xr()},ni=()=>{var hi;if((hi=vue.unref(Cr))!=null&&hi.length&&ct.dataFieldNames.value){let Ci;Array.isArray(vue.unref(Pr))?Ci=vue.unref(Pr):vue.unref(Pr)&&(Ci=[vue.unref(Pr)]),mr.value=Ci||[vue.unref(Cr)[0][ct.dataFieldNames.value]]}di(),vr.value=!0},ai=hi=>{const Ci=vue.unref(mr).findIndex(Di=>Di===hi);Ci===-1?vue.unref(mr).push(hi):vue.unref(mr).splice(Ci,1)},Xr=()=>{vr.value=!1,vue.nextTick(()=>{di()})},vi=hi=>{hi?mr.value=vue.unref(Cr).map(Ci=>Ci[Vr.value]):mr.value=[]};vue.watch(()=>Pr.value,(hi,Ci)=>{var Di;ct.mode==="multiple"&&((hi==null?void 0:hi.length)===((Di=vue.unref(Cr))==null?void 0:Di.length)?(wr.value=!1,Ar.value=!0):hi!=null&&hi.length?(wr.value=!0,Ar.value=!1):Ci!=null&&Ci.length&&ct.minTagCount?Pr.value=Ci.slice(0,ct.minTagCount):(wr.value=!1,Ar.value=!1))}),vue.watch(()=>mr.value,hi=>{var Ci;ct.mode==="multiple"&&((hi==null?void 0:hi.length)===((Ci=vue.unref(Cr))==null?void 0:Ci.length)?(wr.value=!1,Ar.value=!0):hi!=null&&hi.length?(wr.value=!0,Ar.value=!1):(wr.value=!1,Ar.value=!1))},{deep:!0});const Si=hi=>{hi.target.checked?Pr.value=vue.unref(Cr).map(Ci=>Ci.value):Pr.value=[]},ri=(hi,Ci)=>{var Di;ct.mode==="multiple"&&ct.minTagCount&&((Di=vue.unref(Pr))==null?void 0:Di.length)<ct.minTagCount&&vue.unref(Pr).push(Ci.value)},yi=hi=>{_r.value=hi},di=()=>{ct.autoClearSearchValue&&(_r.value="")},Ei=hi=>{var Ci,Di,$i,Fi;if(Er.value=hi,hi){if(((Ci=ct==null?void 0:ct.graphicConfig)==null?void 0:Ci.pageMode)!=="design"){const qi=(Di=vue.unref(fr))==null?void 0:Di.getBoundingClientRect();if(qi){const Ji=qi.left/((($i=vue.unref(dr))==null?void 0:$i.widthScale)||1)+"px",ua=(qi.top+qi.height)/(((Fi=vue.unref(dr))==null?void 0:Fi.heightScale)||1)+"px";setTimeout(()=>{var ya,xa;const da=document.querySelectorAll(".ant-select-dropdown"),va=Array.from(da).filter(Sa=>window.getComputedStyle(Sa).display!=="none");if(va!=null&&va.length){const Sa=document.getElementById("norPageConfig");va[0].classList.add("ecan-select-drop-down"),(ya=Sa==null?void 0:Sa.style)==null||ya.setProperty("--drop-down-left",Ji),(xa=Sa==null?void 0:Sa.style)==null||xa.setProperty("--drop-down-top",ua),hr.value={visibility:"visible"}}},200)}}}else _r.value="",hr.value={}};return vue.watch(_r,hi=>{Tr.value=!!hi}),vue.onMounted(()=>{Hr()}),{searchValue:_r,style:gr,getPopupContainer:yr,myValue:br,selectChange:Jr,options:Cr,filterOption:$r,loading:Wr,resultValue:Pr,isMobile:ur,customFieldName:pr,pickVisible:vr,onConfirmPicker:xi,mobileValue:Ir,openPicker:ni,mobileSelectValue:mr,isCheckAll:Ar,indeterminate:wr,hideCheckAll:Tr,selectOpen:Er,getTagLabelText:Sr,openDropdown:kr,onSearch:yi,onSelect:di,onOptionAll:Si,onDeselect:ri,onDropdownVisibleChange:Ei,onCheckClick:ai,onCancelPicker:Xr,onCheckAll:vi,mobileMultOptions:Br,selectWrapRef:fr,dropdownStyle:hr}}}),Select_vue_vue_type_style_index_0_scoped_3763a86e_lang="",Select_vue_vue_type_style_index_1_lang="",_withScopeId$5=ct=>(vue.pushScopeId("data-v-3763a86e"),ct=ct(),vue.popScopeId(),ct),_hoisted_1$f={class:"popup-toolbar"},_hoisted_2$8={class:"operate"},_hoisted_3$4={key:0,class:"cancel-tool"},_hoisted_4$2=vue.createTextVNode(" 全选 "),_hoisted_5$2=_withScopeId$5(()=>vue.createElementVNode("div",{class:"title-tool"},null,-1)),_hoisted_6$2={style:{flex:"1",overflow:"auto"}},_hoisted_7$2=["title"],_hoisted_8$2={style:{padding:"4px 10px",cursor:"pointer"}},_hoisted_9$2=vue.createTextVNode(" 全选 ");function _sfc_render$q(ct,Dn,ur,dr,fr,hr){var Ir,Br;const vr=vue.resolveComponent("down-outlined"),pr=vue.resolveComponent("a-input"),mr=vue.resolveComponent("van-checkbox"),gr=vue.resolveComponent("van-search"),yr=vue.resolveComponent("van-cell"),Cr=vue.resolveComponent("van-cell-group"),br=vue.resolveComponent("recycle-scroller"),Ar=vue.resolveComponent("van-checkbox-group"),wr=vue.resolveComponent("van-picker"),_r=vue.resolveComponent("van-popup"),Tr=vue.resolveComponent("a-select-option"),Er=vue.resolveComponent("close-outlined"),xr=vue.resolveComponent("v-nodes"),Sr=vue.resolveComponent("a-divider"),kr=vue.resolveComponent("a-checkbox"),Pr=vue.resolveComponent("a-select");return vue.openBlock(),vue.createElementBlock("div",{ref:"selectWrapRef",class:"ecan-select",style:vue.normalizeStyle(ct.style)},[ct.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(pr,{value:ct.mobileValue,placeholder:ct.placeholder,readonly:"",onClick:ct.openPicker},{suffix:vue.withCtx(()=>[vue.createVNode(vr,{onClick:ct.openPicker},null,8,["onClick"])]),_:1},8,["value","placeholder","onClick"]),vue.createVNode(_r,{show:ct.pickVisible,"onUpdate:show":Dn[5]||(Dn[5]=Or=>ct.pickVisible=Or),style:vue.normalizeStyle({zIndex:999999,height:ct.mode==="multiple"?"50%":"",display:ct.mode==="multiple"?"flex":"",flexDirection:ct.mode==="multiple"?"column":""}),"overlay-style":{background:"rgba(0, 0, 0, .3)",zIndex:999999},position:"bottom",teleport:"#app"},{default:vue.withCtx(()=>[ct.pickVisible?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[ct.mode==="multiple"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createElementVNode("div",_hoisted_1$f,[vue.createElementVNode("div",_hoisted_2$8,[!ct.hideCheckAll&&ct.hasAllCheck?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$4,[vue.createVNode(mr,{modelValue:ct.isCheckAll,"onUpdate:modelValue":Dn[0]||(Dn[0]=Or=>ct.isCheckAll=Or),indeterminate:ct.indeterminate,shape:"square",onChange:ct.onCheckAll},{default:vue.withCtx(()=>[_hoisted_4$2]),_:1},8,["modelValue","indeterminate","onChange"])])):vue.createCommentVNode("",!0),_hoisted_5$2,vue.createElementVNode("div",{class:"confirm-tool",onClick:Dn[1]||(Dn[1]=(...Or)=>ct.onConfirmPicker&&ct.onConfirmPicker(...Or))},"确认")]),vue.createVNode(gr,{class:"search-wrap",modelValue:ct.searchValue,"onUpdate:modelValue":Dn[2]||(Dn[2]=Or=>ct.searchValue=Or),placeholder:"请输入搜索关键词"},null,8,["modelValue"])]),vue.createElementVNode("div",_hoisted_6$2,[ct.mobileMultOptions.length?(vue.openBlock(),vue.createBlock(Ar,{key:0,modelValue:ct.mobileSelectValue,"onUpdate:modelValue":Dn[3]||(Dn[3]=Or=>ct.mobileSelectValue=Or),style:{height:"100%"},shape:"square"},{default:vue.withCtx(()=>[vue.withDirectives(vue.createVNode(br,{class:"scroller",items:ct.mobileMultOptions,"item-size":44,"key-field":ct.customFieldName.value},{default:vue.withCtx(({item:Or})=>[vue.createVNode(Cr,null,{default:vue.withCtx(()=>[vue.createVNode(yr,{title:Or[ct.customFieldName.text],clickable:"",onClick:Nr=>ct.onCheckClick(Or[ct.customFieldName.value])},{"right-icon":vue.withCtx(()=>[vue.createVNode(mr,{name:Or[ct.customFieldName.value],onClick:Nr=>ct.onCheckClick(Or[ct.customFieldName.value])},null,8,["name","onClick"])]),_:2},1032,["title","onClick"])]),_:2},1024)]),_:1},8,["items","key-field"]),[[vue.vShow,ct.mobileMultOptions.length]])]),_:1},8,["modelValue"])):vue.createCommentVNode("",!0)])],64)):(vue.openBlock(),vue.createBlock(wr,{key:1,modelValue:ct.mobileSelectValue,"onUpdate:modelValue":Dn[4]||(Dn[4]=Or=>ct.mobileSelectValue=Or),"columns-field-names":ct.customFieldName,columns:ct.options,"cancel-button-text":" ",onConfirm:ct.onConfirmPicker},null,8,["modelValue","columns-field-names","columns","onConfirm"]))],64)):vue.createCommentVNode("",!0)]),_:1},8,["show","style","overlay-style"])],64)):(vue.openBlock(),vue.createBlock(Pr,{key:1,class:"select",value:ct.resultValue,"onUpdate:value":Dn[11]||(Dn[11]=Or=>ct.resultValue=Or),placeholder:ct.placeholder,showSearch:"",dropdownClassName:((Ir=ct.graphicConfig)==null?void 0:Ir.pageMode)==="design"?"":"select-dropdown-class",allowClear:ct.isAllowClear&&(ct.mode!=="multiple"||!ct.minTagCount||((Br=ct.resultValue)==null?void 0:Br.length)>ct.minTagCount),mode:ct.mode,getPopupContainer:ct.getPopupContainer,maxTagCount:ct.maxTagCount,filterOption:ct.filterOption,loading:ct.loading,autoClearSearchValue:ct.autoClearSearchValue,open:ct.selectOpen,dropdownStyle:ct.dropdownStyle,onSearch:ct.onSearch,onSelect:ct.onSelect,onChange:ct.selectChange,onDeselect:ct.onDeselect,onDropdownVisibleChange:ct.onDropdownVisibleChange,style:vue.normalizeStyle({fontSize:ct.optionFontSize})},vue.createSlots({removeIcon:vue.withCtx(()=>{var Or;return[ct.mode==="multiple"&&(!ct.minTagCount||((Or=ct.resultValue)==null?void 0:Or.length)>ct.minTagCount)?(vue.openBlock(),vue.createBlock(Er,{key:0})):vue.createCommentVNode("",!0)]}),default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ct.options,(Or,Nr)=>(vue.openBlock(),vue.createBlock(Tr,{key:Nr,value:Or.value,style:vue.normalizeStyle({fontSize:ct.optionFontSize}),label:Or.label},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Or.label),1)]),_:2},1032,["value","style","label"]))),128))]),_:2},[ct.mode==="multiple"?{name:"tagRender",fn:vue.withCtx(({label:Or,closable:Nr,onClose:jr})=>[vue.createElementVNode("span",{class:"ant-select-selection-item custom-tag",onMousedown:Dn[7]||(Dn[7]=vue.withModifiers(()=>{},["prevent"])),onClick:Dn[8]||(Dn[8]=(...Vr)=>ct.openDropdown&&ct.openDropdown(...Vr))},[vue.createElementVNode("span",{class:"ant-select-selection-item-content",title:ct.getTagLabelText(Or)},vue.toDisplayString(ct.getTagLabelText(Or,!0)),9,_hoisted_7$2),Nr?(vue.openBlock(),vue.createBlock(Er,{key:0,class:"select-tag__close",onMousedown:Dn[6]||(Dn[6]=vue.withModifiers(()=>{},["prevent"])),onClick:vue.withModifiers(jr,["stop"])},null,8,["onClick"])):vue.createCommentVNode("",!0)],32)])}:void 0,ct.mode==="multiple"&&!ct.hideCheckAll&&ct.hasAllCheck?{name:"dropdownRender",fn:vue.withCtx(({menuNode:Or})=>[vue.createVNode(xr,{vnodes:Or},null,8,["vnodes"]),vue.createVNode(Sr,{style:{margin:"4px 0"}}),vue.createElementVNode("div",{class:"check-box",onMousedown:Dn[10]||(Dn[10]=Nr=>Nr.preventDefault())},[vue.createElementVNode("div",_hoisted_8$2,[_hoisted_9$2,vue.createVNode(kr,{checked:ct.isCheckAll,"onUpdate:checked":Dn[9]||(Dn[9]=Nr=>ct.isCheckAll=Nr),indeterminate:ct.indeterminate,onChange:ct.onOptionAll},null,8,["checked","indeterminate","onChange"])])],32)])}:void 0]),1032,["value","placeholder","dropdownClassName","allowClear","mode","getPopupContainer","maxTagCount","filterOption","loading","autoClearSearchValue","open","dropdownStyle","onSearch","onSelect","onChange","onDeselect","onDropdownVisibleChange","style"])),vue.renderSlot(ct.$slots,"toolbox",{},void 0,!0)],4)}const Select=_export_sfc$1(_sfc_main$o,[["render",_sfc_render$q],["__scopeId","data-v-3763a86e"]]),EcanSelect=withInstall$1(Select),treeSelectProps={...props$1,name:"树形下拉框选择器",keyName:"树形下拉框选择器",width:"120px",height:"33px",type:"ecanTreeSelect",multiple:!1,data:[{label:"选项一",value:"1",id:"1",pId:"0"},{label:"子选项一",value:"1-1",id:"1-1",pId:"1"},{label:"子选项二",value:"1-2",id:"1-2",pId:"1"},{label:"选项二",value:"2",id:"2",pId:"0"},{label:"选项三",value:"3",id:"3",pId:"0"}],value:"",dataFieldNames:{label:"label",value:"value",children:"children"},maxTagCount:3,placeholder:"请选择",maxTagTextLength:4,treeCheckable:!1,treeCheckStrictly:!1,selectFirstOption:!1,graphicConfig:{},selectAllOption:!1,hasAllCheck:!1,isLinkageSekectAll:!1},treeSelectComponentProps=transformToComponentProps(treeSelectProps),treeSelectEvents=["selectChange","refreshData"],_sfc_main$n={name:"EcanTreeSelect",components:{ATreeSelect:antDesignVue.TreeSelect,CloseOutlined:CloseOutlined$1},props:{...treeSelectComponentProps},setup(ct,{expose:Dn}){const ur=vue.inject("scaleValue",{widthScale:1,heightScale:1}),dr=vue.ref(),fr=vue.ref(),hr=vue.ref(!1),vr=vue.ref([]),pr=usePickComponentStyle(ct),{getGlobalModel:mr,setGlobalModel:gr,getRecordValueByKeyName:yr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:ni=>{},setGlobalModel:(ni,ai)=>{},getRecordValueByKeyName:ni=>{}}),Cr=vue.ref(),br=vue.ref(ct.data),Ar=vue.ref(0),wr=vue.ref({width:"fit-content",maxWidth:"520px"}),_r=vue.computed(()=>ct.dataFieldNames),Tr=vue.computed(()=>vue.unref(_r).value),Er=vue.ref(!1),xr=vue.ref(!1),Sr=vue.ref(!1),kr=vue.ref(!1),Pr=vue.computed(()=>ct.treeCheckable||ct.multiple),Ir=vue.computed(()=>ct.maxTagTextLength?ct.maxTagTextLength:0),Br=(ni,ai=!1)=>{var vi,Si;let Xr="";return typeof ni=="string"||typeof ni=="number"?Xr=String(ni):Array.isArray(ni)&&((vi=ni[0])!=null&&vi.children)&&(typeof ni[0].children=="string"||typeof ni[0].children=="number")?Xr=String(ni[0].children):ni!=null&&ni.children&&(typeof ni.children=="string"||typeof ni.children=="number")&&(Xr=String(ni.children)),((Si=vue.unref(fr))==null?void 0:Si.length)===1||!ai||!vue.unref(Ir)||Xr.length<=vue.unref(Ir)?Xr:`${Xr.slice(0,vue.unref(Ir))}...`},Or=()=>document.getElementById("norPageConfig")||document.body,Nr=()=>{kr.value=!0},jr=ni=>ni.id??ni.key??ni[vue.unref(Tr)],Vr=ni=>!ni.disabled&&ni.selectable!==!1,$r=()=>{const ni=vue.unref(br)||[],ai=new Map;return ni.forEach(Xr=>{const vi=Xr.pId;if(vi==null)return;const Si=ai.get(vi)||[];Si.push(Xr),ai.set(vi,Si)}),ai},zr=()=>{const ni=vue.unref(br)||[],ai=$r();return ni.filter(Xr=>Vr(Xr)).filter(Xr=>!(ai.get(jr(Xr))||[]).some(vi=>Vr(vi))).map(Xr=>Xr[vue.unref(Tr)]).filter(Xr=>Xr!=null)},Wr=ni=>{const ai=vue.unref(br)||[],Xr=$r(),vi=Array.isArray(ni)?ni:[],Si=new Set(vi),ri=new Map(ai.map(di=>[di[vue.unref(Tr)],di])),yi=di=>{(Xr.get(jr(di))||[]).forEach(Oi=>{Vr(Oi)&&Oi[vue.unref(Tr)]!=null&&Si.add(Oi[vue.unref(Tr)]),yi(Oi)})};return vi.forEach(di=>{const Ei=ri.get(di);Ei&&yi(Ei)}),Si},qr=ni=>{if(!vue.unref(Pr))return;const ai=Array.isArray(ni)?ni:[],Xr=zr(),vi=Wr(ni);!!Xr.length&&Xr.every(ri=>vi.has(ri))?(xr.value=!1,Er.value=!0):ai.length?(xr.value=!0,Er.value=!1):(xr.value=!1,Er.value=!1)},Mr=(ni,ai)=>{const Xr=vue.unref(_r).label,vi=vue.unref(_r).value;let Si;const ri=ai[Xr],yi=ai[vi];return ri!=null?Si=ri:yi!=null&&(Si=yi),(Si==null?void 0:Si.toLowerCase().indexOf(ni==null?void 0:ni.toLowerCase()))>=0},Lr=(ni="0")=>{let ai;const Xr=vue.unref(br).find(vi=>vi.pId===ni);return(Xr==null?void 0:Xr.selectable)===!1?ai=Lr(Xr.id):ai=Xr,ai},Fr=ni=>{var Xr,vi;const ai=((vi=(Xr=ni==null?void 0:ni.data)==null?void 0:Xr.data)==null?void 0:vi.rows)||[];if(br.value=ai.map(Si=>({...Si,label:Si.label||Si.text,value:Si.id})),Ar.value+=1,ct.selectFirstOption){const Si=Lr();ct.value===""&&Si!=null&&(fr.value=Si[ct.dataFieldNames.value],Qr())}vue.unref(Pr)&&ct.selectAllOption&&(fr.value=zr(),Qr())},Dr=useRequestData(ct),Gr=async()=>{if(ct.dataType==="request"){hr.value=!0;try{const ni=await Dr();Fr(ni)}catch(ni){console.error(ni)}finally{hr.value=!1}}};gr(ct.id,{type:ct.type,value:fr,RECORD:fr});const Rr=vue.computed(()=>{const ni={};let ai=vue.toRaw(vue.unref(fr));!ct.treeCheckable&&!ct.multiple&&(ai=[ai]);const Xr=vue.unref(vr).filter(vi=>ai==null?void 0:ai.find(Si=>typeof Si=="object"?Si.value===vi.value:Si===vi.value));return Xr!=null&&Xr.length?(ni.itemCodes=Xr.map(vi=>vi[vue.unref(_r).value]).join(","),ni.itemLabels=Xr.map(vi=>vi[vue.unref(_r).label]).join(",")):(ni.itemCodes="",ni.itemLabels=""),ni}),Qr=()=>{var vi;const ni=ct.id,ai=mr(ni);let Xr=vue.unref(fr);Array.isArray(Xr)?Xr=vue.unref(fr).map(Si=>typeof Si=="object"?(Si==null?void 0:Si.value)||"":Si):typeof Xr=="object"&&(Xr=((vi=vue.unref(fr))==null?void 0:vi.value)||""),gr(ni,{...ai,...vue.unref(Rr),RECORD:Xr,value:Xr})},Hr=useEmitEvent(ct)("selectChange",Qr);vue.watch(()=>[ct.multiple,ct.value,ct.treeCheckable,ct.selectFirstOption,ct.selectAllOption,br.value],()=>{const{value:ni,selectFirstOption:ai,selectAllOption:Xr,isLinkageSekectAll:vi,graphicConfig:Si}=ct,ri=yr(ni);if(vue.unref(Pr)){if(vue.unref(ri))fr.value=vue.unref(ri).split(",");else if(ai){const yi=Lr();fr.value=yi?[yi[vue.unref(Tr)]]:[]}if(Xr&&(fr.value=zr()),vi){const{controlList:yi}=Si,di=yi==null?void 0:yi.find(Ei=>Ei.conditionKey==="parentCode");if((di==null?void 0:di.dataType)==="component"&&(di!=null&&di.id)){const Ei=mr(di.id);Ei!=null&&Ei.itemCodes&&(fr.value=zr())}else di!=null&&di.customValue&&(fr.value=zr())}}else vue.unref(ri)?fr.value=vue.unref(ri):ai&&(fr.value=Lr());Hr(),qr(fr.value)},{immediate:!0});const Ur=ni=>{var Xr;const{data:ai}=(ni==null?void 0:ni.data)||{};if(ai){const{rows:vi=[]}=((Xr=ni==null?void 0:ni.data)==null?void 0:Xr.data)||{};vr.value=vi||[],br.value=vi.map(Si=>({...Si,value:Si.selectable===!1?nanoid(6):Si.value})),Ar.value+=1,vue.unref(Pr)&&ct.selectAllOption&&(fr.value=zr())}},Jr=useIndicatorData(ct,Ur),Yr=async()=>{try{hr.value=!0;const ni=await Jr();Ur(ni)}catch(ni){console.error(ni)}finally{hr.value=!1}},si=async()=>{switch(ct.dataType){case"indicator":{await Yr();break}case"request":await Gr();break}};useOnEvent(ct,{selectChange:Hr,refreshData:si}),Dn({refreshData:si});const{setRequest:fi}=vue.inject(REQUEST_MODEL,{setRequest:({id:ni,sortNum:ai,requestFn:Xr})=>{}});typeof fi=="function"&&fi({id:ct.id,requestFn:si,sortNum:ct.requestSort}),vue.watch(()=>fr.value,ni=>{qr(ni)},{deep:!0}),vue.watch(Cr,ni=>{Sr.value=!!ni});const _i=ni=>{ni.target.checked?fr.value=zr():fr.value=[],Hr()};return{style:pr,treeData:br,treeRenderKey:Ar,dropdownStyle:wr,filterTreeNode:Mr,myValue:fr,loading:hr,selectChange:Hr,isMultiple:Pr,isCheckAll:Er,indeterminate:xr,hideCheckAll:Sr,treeSelectOpen:kr,treeSelectWrapRef:dr,getPopupContainer:Or,getTagLabelText:Br,openDropdown:Nr,renderDropdown:({menuNode:ni})=>!vue.unref(Pr)||vue.unref(Sr)||!ct.hasAllCheck?ni:vue.h("div",[ni,vue.h(antDesignVue.Divider,{style:{margin:"4px 0"}}),vue.h("div",{class:"check-box",onMousedown:ai=>ai.preventDefault()},[vue.h("div",{style:{padding:"4px 10px",cursor:"pointer"}},[" 全选 ",vue.h(antDesignVue.Checkbox,{checked:vue.unref(Er),indeterminate:vue.unref(xr),onChange:_i})])])]),onOptionAll:_i,onSearch:ni=>{Cr.value=ni},onSelect:()=>{Cr.value=""},onDropdownVisibleChange:ni=>{var ai,Xr,vi,Si;if(kr.value=ni,ni){if(((ai=ct==null?void 0:ct.graphicConfig)==null?void 0:ai.pageMode)!=="design"){const ri=(Xr=vue.unref(dr))==null?void 0:Xr.getBoundingClientRect();if(ri){const yi=ri.left/(((vi=vue.unref(ur))==null?void 0:vi.widthScale)||1)+"px",di=(ri.top+ri.height)/(((Si=vue.unref(ur))==null?void 0:Si.heightScale)||1)+"px";setTimeout(()=>{var Li,Ri;const Ei=document.querySelectorAll(".ant-select-dropdown"),Oi=Array.from(Ei).filter(hi=>window.getComputedStyle(hi).display!=="none");if(Oi!=null&&Oi.length){const hi=document.getElementById("norPageConfig");Oi[0].classList.add("ecan-tree-select-drop-down"),(Li=hi==null?void 0:hi.style)==null||Li.setProperty("--tree-drop-down-left",yi),(Ri=hi==null?void 0:hi.style)==null||Ri.setProperty("--tree-drop-down-top",di),vue.unref(wr).visibility="visible"}},200)}}}else Cr.value="",delete vue.unref(wr).visibility}}}},TreeSelect_vue_vue_type_style_index_0_scoped_1af5371a_lang="",TreeSelect_vue_vue_type_style_index_1_lang="",_hoisted_1$e=["title"];function _sfc_render$p(ct,Dn,ur,dr,fr,hr){var mr;const vr=vue.resolveComponent("close-outlined"),pr=vue.resolveComponent("a-tree-select");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-tree-select",style:vue.normalizeStyle(dr.style),ref:"treeSelectWrapRef"},[(vue.openBlock(),vue.createBlock(pr,{key:dr.treeRenderKey,class:"tree-select",value:dr.myValue,"onUpdate:value":Dn[3]||(Dn[3]=gr=>dr.myValue=gr),allowClear:"",showSearch:"",loading:dr.loading,fieldNames:ct.dataFieldNames,treeData:dr.treeData,dropdownMatchSelectWidth:!1,dropdownStyle:dr.dropdownStyle,dropdownClassName:`ecan-tree-select-dropdown ${((mr=ct.graphicConfig)==null?void 0:mr.pageMode)==="design"?"":"tree-select-dropdown-class"}`,maxTagCount:ct.maxTagCount,multiple:ct.treeCheckable?!0:ct.multiple,treeCheckable:ct.treeCheckable,filterTreeNode:dr.filterTreeNode,placeholder:ct.placeholder,treeDataSimpleMode:!0,treeDefaultExpandAll:!0,dropdownRender:dr.renderDropdown,open:dr.isMultiple?dr.treeSelectOpen:void 0,getPopupContainer:dr.getPopupContainer,onSearch:dr.onSearch,onSelect:dr.onSelect,onChange:dr.selectChange,onDropdownVisibleChange:dr.onDropdownVisibleChange},vue.createSlots({_:2},[dr.isMultiple?{name:"tagRender",fn:vue.withCtx(({label:gr,closable:yr,onClose:Cr})=>[vue.createElementVNode("span",{class:"ant-select-selection-item custom-tag",onMousedown:Dn[1]||(Dn[1]=vue.withModifiers(()=>{},["prevent"])),onClick:Dn[2]||(Dn[2]=(...br)=>dr.openDropdown&&dr.openDropdown(...br))},[vue.createElementVNode("span",{class:"ant-select-selection-item-content",title:dr.getTagLabelText(gr)},vue.toDisplayString(dr.getTagLabelText(gr,!0)),9,_hoisted_1$e),yr?(vue.openBlock(),vue.createBlock(vr,{key:0,class:"tree-select-tag__close",onMousedown:Dn[0]||(Dn[0]=vue.withModifiers(()=>{},["prevent"])),onClick:vue.withModifiers(Cr,["stop"])},null,8,["onClick"])):vue.createCommentVNode("",!0)],32)])}:void 0]),1032,["value","loading","fieldNames","treeData","dropdownStyle","dropdownClassName","maxTagCount","multiple","treeCheckable","filterTreeNode","placeholder","dropdownRender","open","getPopupContainer","onSearch","onSelect","onChange","onDropdownVisibleChange"]))],4)}const TreeSelect=_export_sfc$1(_sfc_main$n,[["render",_sfc_render$p],["__scopeId","data-v-1af5371a"]]),EcanTreeSelect=withInstall$1(TreeSelect),radioProps={...props$1,width:"260px",height:"32px",id:"",left:"0px",top:"0px",name:"单选框",keyName:"单选框",rotate:"",type:"ecanRadio",value:"",data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],optionType:"default",tabBackgroundImage:"",activeTabBackgroundImage:"",activeTabColor:"#1890ff",tabColor:"#333",tabFontSize:"14px",tabHorizontalPadding:"0px",tabVerticalPadding:"5px",tabBarGutter:"24px",tabFlexDirection:"row",graphicConfig:{},tabTextAlign:"",selectFirstOption:!1,radioMode:"native",tabWidth:""},radioComponentProps=transformToComponentProps(radioProps),radioEvents=["checkboxChange","click","resetRecord"],_sfc_main$m=vue.defineComponent({name:"EcanRadio",components:{ARadioGroup:antDesignVue.RadioGroup,ARadioButton:antDesignVue.RadioButton,ARadio:antDesignVue.Radio},props:{...radioComponentProps},setup(ct,{expose:Dn}){const{pageMode:ur}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),dr=usePickComponentStyle(ct),fr=vue.ref([]),hr=vue.ref(""),vr=(Ir=[])=>{var Nr;const Br=ct.value;let Or=[];typeof Br=="string"&&Br!==""?Or=Or.concat(Br.split(",")):Array.isArray(Br)&&(Or=Or.concat(Br)),fr.value=Ir,ct.selectFirstOption?hr.value=((Nr=Ir[0])==null?void 0:Nr.value)||"":hr.value=Or[0]||""};vue.watch(()=>[ct.data,ct.value,ct.selectFirstOption],([Ir])=>{vue.unref(ur)==="design"&&vr(Ir)},{immediate:!0,deep:!0});const pr=useRequestData(ct),mr=async()=>{var Or,Nr;if(ct.dataType!=="request")return;const Ir=await pr(),Br=((Nr=(Or=Ir==null?void 0:Ir.data)==null?void 0:Or.data)==null?void 0:Nr.rows)||[];vr(Br)},{getGlobalModel:gr,setGlobalModel:yr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Ir=>{},setGlobalModel:(Ir,Br)=>{}});yr(ct.id,{type:ct.type,value:hr});const Cr=useEmitEvent(ct),br=()=>{const Ir=vue.unref(fr).find(Br=>Br.value===vue.unref(hr))||{};Cr("checkboxChange",()=>{const Br=gr(ct.id);yr(ct.id,{...Br,RECORD:hr})},Ir)()},Ar=Ir=>{hr.value=Ir,Cr("click",()=>{const Br=gr(ct.id);yr(ct.id,{...Br,RECORD:hr,value:hr})})()};vue.watch(hr,()=>{br()});const wr=Ir=>{var Or;const{data:Br}=(Ir==null?void 0:Ir.data)||{};if(Br){const jr=(((Or=Ir==null?void 0:Ir.data)==null?void 0:Or.data)??[]).map(Vr=>({label:Vr.label,value:Vr.value}));vr(jr)}else vr([])},_r=useIndicatorData(ct,wr),Tr=async()=>{try{const Ir=await _r();wr(Ir)}catch(Ir){console.error(Ir)}},Er=async()=>{switch(ct.dataType){case"indicator":await Tr();break;case"request":await mr();break}},{setRequest:xr}=vue.inject(REQUEST_MODEL,{setRequest:({id:Ir,sortNum:Br,requestFn:Or})=>{}});typeof xr=="function"&&xr({id:ct.id,requestFn:Er,sortNum:ct.requestSort});const Sr=Ir=>{hr.value=Ir.value,Ar(Ir.value)},kr=vue.computed(()=>ct.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px",fontSize:ct.tabFontSize}:{fontSize:ct.tabFontSize});return vue.onMounted(()=>{vr(ct.data)}),useOnEvent(ct,{resetRecord:()=>{const Ir=ct.id,Br=gr(Ir);yr(Ir,{...Br,RECORD:"",value:""})}}),Dn({refreshData:Er}),{myOption:fr,style:dr,myValue:hr,radioStyle:kr,onClickButton:Ar,useImagePath,tabChange:Sr}}}),Radio_vue_vue_type_style_index_0_lang="",Radio_vue_vue_type_style_index_1_scoped_11e7335f_lang="",_hoisted_1$d=["onClick"];function _sfc_render$o(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("a-radio"),pr=vue.resolveComponent("a-radio-button"),mr=vue.resolveComponent("a-radio-group");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["ecan-radio",ct.optionType]),style:vue.normalizeStyle(ct.style)},[ct.radioMode==="custom"?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"tabs-header",style:vue.normalizeStyle({fontSize:ct.tabFontSize,flexDirection:ct.tabFlexDirection,alignItems:ct.tabTextAlign})},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ct.myOption,(gr,yr)=>(vue.openBlock(),vue.createElementBlock("div",{class:"tab",style:vue.normalizeStyle({padding:`${ct.tabVerticalPadding} ${ct.tabHorizontalPadding}`,color:ct.myValue===gr.value?ct.activeTabColor:ct.tabColor,backgroundImage:ct.myValue===gr.value?ct.useImagePath(ct.activeTabBackgroundImage,!0):ct.useImagePath(ct.tabBackgroundImage,!0),marginRight:ct.tabFlexDirection==="row"?ct.tabBarGutter:"0",marginBottom:ct.tabFlexDirection==="column"?ct.tabBarGutter:"0"}),key:yr,onClick:vue.withModifiers(Cr=>ct.tabChange(gr),["prevent","stop"])},[vue.createElementVNode("div",{class:"tab-inner",style:vue.normalizeStyle({borderBottom:!ct.activeTabBackgroundImage&&!ct.tabBackgroundImage?`1px solid ${ct.myValue===gr.value?ct.activeTabColor:"transparent"}`:"",width:ct.tabWidth})},vue.toDisplayString(gr.label),5)],12,_hoisted_1$d))),128))],4)):ct.radioMode==="native"?(vue.openBlock(),vue.createBlock(mr,{key:1,value:ct.myValue,"onUpdate:value":Dn[0]||(Dn[0]=gr=>ct.myValue=gr)},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ct.myOption,gr=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:gr.value},[ct.optionType==="default"?(vue.openBlock(),vue.createBlock(vr,{key:0,value:gr.value,style:vue.normalizeStyle(ct.radioStyle)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(gr.label),1)]),_:2},1032,["value","style"])):ct.optionType==="button"?(vue.openBlock(),vue.createBlock(pr,{key:1,value:gr.value,style:vue.normalizeStyle({fontSize:ct.tabFontSize}),onClick:yr=>ct.onClickButton(gr.value)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(gr.label),1)]),_:2},1032,["value","style","onClick"])):vue.createCommentVNode("",!0)],64))),128))]),_:1},8,["value"])):vue.createCommentVNode("",!0),vue.renderSlot(ct.$slots,"toolbox",{},void 0,!0)],6)}const Radio=_export_sfc$1(_sfc_main$m,[["render",_sfc_render$o],["__scopeId","data-v-11e7335f"]]),EcanRadio=withInstall$1(Radio),navTabProps={...props$1,type:"ecanNavTab",name:"导航标签",keyName:"导航标签",width:"300px",height:"40px",tabFontSize:"14px",activeTabColor:"#1890ff",tabColor:"#333",tabFontWeight:400,activeKey:0,data:[{title:"标签1",key:"1"},{title:"标签2",key:"2"},{title:"标签3",key:"3"}],isShrink:!1,tabLineWidth:"40px",tabLineHeight:"3px",backgroundColor:"",isScrollspy:!1,scrollspyConfig:[]},navTabComponentProps=transformToComponentProps(navTabProps),navTabEvents=["tabChange"],_sfc_main$l=vue.defineComponent({name:"EcanNavTab",props:{...navTabComponentProps},components:{},setup(ct){const Dn=usePickComponentStyle(ct),ur=vue.ref(0),dr=vue.ref("nav-tab"),fr=vue.ref([]),hr=vue.ref(!1),vr=vue.inject("usedComponentList",[]);vue.watch(()=>ct.activeKey,Sr=>{ur.value=Sr},{immediate:!0}),vue.watch(()=>[ct.isShrink,ct.data],()=>{dr.value=nanoid(8)});const{pageMode:pr,fixedHeight:mr,height:gr}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fixedHeight:0,height:null});let yr=!1,Cr=null;const br=()=>{Cr&&clearTimeout(Cr),Cr=setTimeout(()=>{hr.value=!1},200),!vue.unref(hr)&&(yr||(requestAnimationFrame(()=>{let Sr=-1;const kr=window.scrollY;for(const Pr of vue.unref(fr)){const Ir=Pr[2];if(Pr[1]==="max"&&kr>=Pr[0]-Ir||Pr[1]!=="max"&&kr>=Pr[0]-Ir&&kr<Pr[1]-Ir){Sr=ct.data.findIndex(Br=>Br.key===Pr[3]);break}}Sr>-1&&(ur.value=Sr),yr=!1}),yr=!0))},Ar=vue.computed(()=>{var Sr;return((Sr=ct.scrollspyConfig)==null?void 0:Sr.filter(kr=>ct.data.find(Pr=>kr.key&&Pr.key===kr.key)))||[]}),wr=vue.computed(()=>!!(ct.isScrollspy&&vue.unref(Ar).length)),_r=()=>{const Sr=[];for(const kr of vue.unref(Ar)){const Pr=vue.unref(vr).find(Ir=>Ir.id===kr.anchor);if(Pr){const Ir=getFormatWh(Pr.height,vue.unref(gr)),Br=parseFloat(Pr.top)-vue.unref(mr);Sr.push([Br,Br+Ir,Ir/2,kr.key])}}if(Sr!=null&&Sr.length){const kr=Sr.map(Or=>Or[0]),Pr=Sr.map(Or=>Or[1]),Ir=kr.indexOf(Math.min(...kr)),Br=Pr.indexOf(Math.max(...Pr));Sr[Ir][0]=0,Sr[Br][1]="max"}fr.value=Sr};vue.onMounted(()=>{vue.unref(wr)&&(_r(),window.addEventListener("scroll",br))}),vue.onBeforeUnmount(()=>{vue.unref(wr)&&window.removeEventListener("scroll",br)});const Tr=useEmitEvent(ct),{setGlobalModel:Er}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(Sr,kr)=>{}});Er(ct.id,{RECORD:vue.unref(ur),value:vue.unref(ur)});const xr=Sr=>{Tr("tabChange",()=>{if(Er(ct.id,{RECORD:vue.unref(ur),value:vue.unref(ur)}),vue.unref(wr)){const kr=ct.data[Sr].key;if(kr){const Pr=vue.unref(Ar).find(Ir=>Ir.key===kr);if(Pr){const Br=document.querySelector(`[cpntid="${Pr.anchor}"]`).getBoundingClientRect();hr.value=!0,window.scrollTo({top:Br.top+window.scrollY-vue.unref(mr),behavior:"smooth"})}}}})()};return useOnEvent(ct,{tabChange:xr}),{style:Dn,active:ur,pageMode:pr,renderKey:dr,tabChange:xr}}}),NavTab_vue_vue_type_style_index_0_scoped_26cab677_lang="",_hoisted_1$c=["id"];function _sfc_render$n(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("van-tab"),pr=vue.resolveComponent("van-tabs");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-nav-tabs",style:vue.normalizeStyle(ct.style),id:"container_"+ct.id},[(vue.openBlock(),vue.createBlock(pr,{active:ct.active,"onUpdate:active":Dn[0]||(Dn[0]=mr=>ct.active=mr),key:ct.renderKey,shrink:ct.isShrink,"title-inactive-color":ct.tabColor,"title-active-color":ct.activeTabColor,"line-width":ct.tabLineWidth,"line-height":ct.tabLineHeight,background:ct.backgroundColor||"transparent",onChange:ct.tabChange},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ct.data,(mr,gr)=>(vue.openBlock(),vue.createBlock(vr,{key:gr},{title:vue.withCtx(()=>[vue.createElementVNode("div",{style:vue.normalizeStyle({fontSize:ct.tabFontSize,fontWeight:ct.tabFontWeight})},vue.toDisplayString(mr.title),5)]),_:2},1024))),128))]),_:1},8,["active","shrink","title-inactive-color","title-active-color","line-width","line-height","background","onChange"]))],12,_hoisted_1$c)}const NavTab=_export_sfc$1(_sfc_main$l,[["render",_sfc_render$n],["__scopeId","data-v-26cab677"]]),EcanNavTab=withInstall$1(NavTab),pieProps={...props$1,id:"",name:"饼图",keyName:"饼图",type:"ecanPie",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleLeft:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],backgroundColor:"",tooltipShow:!0,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxInfoSource:!1,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",associatId:""},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$k=vue.defineComponent({name:"EcanPie",props:{...pieComponentProps},components:{Spin,Echarts,EcanModal},setup(ct,{expose:Dn}){const ur=vue.ref(!1),dr=vue.ref(!1),{pageMode:fr,fontFamily:hr}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),vr=vue.inject("showIndDetail",$r=>{}),pr=vue.inject("showIndSource",$r=>{}),mr=vue.ref(),gr=vue.ref(!1),yr=usePickComponentStyle(ct),Cr=vue.ref(),br=vue.computed(()=>gr.value?ZOOM_FONT_SIZE:12),Ar=vue.ref({}),wr=vue.ref({}),_r=$r=>{Ar.value=$r;const zr=cr(ct,$r,{fontSize:vue.unref(br),fontFamily:vue.unref(hr),callBackMethodMap:{toolboxDownloadShowFun:()=>{useDownloadFile(ct.toolboxDownloadUrl)},toolboxDataZoomShowFun:()=>{var qr;gr.value=!0,(qr=Cr.value)==null||qr.showModal()},toolboxInfoShowFun:()=>{vr(ct)},toolboxSourceShowFun:()=>{pr(ct)}}});let Wr=parseFloat(ct.legendFontSize);vue.unref(gr)&&(Wr=ZOOM_FONT_SIZE,zr.toolbox.feature.myDataZoom.show=!1),zr.legend.textStyle.lineHeight=Wr+8,zr.legend.textStyle.rich.text.fontSize=Wr,wr.value=zr},Tr=()=>{gr.value=!1},{getGlobalModel:Er,setGlobalModel:xr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:$r=>{},setGlobalModel:($r,zr)=>{}}),Sr=($r=[],zr)=>{var qr;const Wr=Jn($r,zr);_r(Wr),(qr=Wr.dataset)!=null&&qr.length?dr.value=!1:dr.value=!0},kr=($r=[],zr)=>{var qr;const Wr=Jn($r,zr);_r(Wr),(qr=Wr.dataset)!=null&&qr.length?dr.value=!1:dr.value=!0},Pr=vue.computed(()=>Object.keys(ct).reduce(($r,zr)=>(IGNORE_WATCH_KEYS.has(zr)||($r[zr]=ct[zr]),$r),{}));vue.watch(()=>[ct.data,Pr.value],([$r])=>{(ct.dataType==="static"||vue.unref(fr)==="design")&&Sr($r)},{immediate:!0,deep:!0}),vue.watch(gr,()=>{_r(vue.unref(Ar))});const Ir=useEmitEvent(ct);xr(ct.id,{type:ct.type,RECORD:""});const Br=Ir("click",$r=>{const zr=Er(ct.id);xr(ct.id,{...zr,type:ct.type,RECORD:$r==null?void 0:$r.data})}),Or=$r=>{var Wr;const{data:zr}=($r==null?void 0:$r.data)||{};if(zr){const{columns:qr=[],rows:Mr=[]}=((Wr=$r==null?void 0:$r.data)==null?void 0:Wr.data)??{};let Lr=[];if(qr.length>0){const Fr=qr[0],Dr=qr[1];Lr=Mr.filter(Gr=>!!Gr).map(Gr=>({name:Gr[Fr],value:isNaN(Gr[Dr])?0:Gr[Dr]||0}))}kr(Lr)}},Nr=useDataSource({props:ct,loading:ur,setData:$r=>{var qr,Mr;ct.dataType!=="component"&&ct.isViewRedrawing&&mr.value.clear();const{columns:zr=[],rows:Wr=[]}=((qr=$r==null?void 0:$r.data)==null?void 0:qr.data)||{};(Mr=zr==null?void 0:zr.filter(Lr=>Lr&&Lr!=="null"))!=null&&Mr.length?Or($r):Sr(Wr,ct.valueTypeDataFieldNames)}});useOnEvent(ct,{resetRecord:()=>{const $r=ct.id,zr=Er($r);xr($r,{...zr,RECORD:""})},refreshData:Nr,click:Br}),Dn({refreshData:Nr});const{setRequest:Vr}=vue.inject(REQUEST_MODEL,{setRequest:$r=>{}});return typeof Vr=="function"&&Vr({id:ct.id,requestFn:Nr,sortNum:ct.requestSort}),{option:wr,style:yr,click:Br,onClose:Tr,loading:ur,ecanModal:Cr,echartRef:mr,emptyData:dr}}}),Pie_vue_vue_type_style_index_0_lang="",Pie_vue_vue_type_style_index_1_scoped_99c56c7d_lang="";function _sfc_render$m(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("echarts"),pr=vue.resolveComponent("spin"),mr=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(ct.style)},[vue.createVNode(pr,{spinning:ct.loading},{default:vue.withCtx(()=>[ct.noDataTip&&ct.emptyData?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"empty-wrap",style:vue.normalizeStyle({color:ct.tipTextColor,fontSize:ct.tipTextFontSize})},[vue.createElementVNode("span",null,vue.toDisplayString(ct.tipText),1)],4)):(vue.openBlock(),vue.createBlock(vr,{key:1,option:ct.option,ref:"echartRef",autoresize:"",onClick:ct.click},null,8,["option","onClick"]))]),_:1},8,["spinning"]),vue.createVNode(mr,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:ct.onClose},{default:vue.withCtx(()=>[vue.createVNode(pr,{class:"spin-wrap",spinning:ct.loading},{default:vue.withCtx(()=>[vue.createVNode(vr,{option:ct.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Pie=_export_sfc$1(_sfc_main$k,[["render",_sfc_render$m],["__scopeId","data-v-99c56c7d"]]),EcanPie=withInstall$1(Pie),barProps={...props$1,id:"",name:"柱状图",keyName:"柱状图",type:"ecanBar",width:"400px",height:"400px",top:"",left:"",rotate:"",xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisLineAlwaysDisplay:!1,data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:310,type:"类型一"},{name:"名称三",value:310,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{marker} {a} {c}",xAxisSplitLineShow:!0,xAxisSplitLineInterval:0,xAxisSplitAreaShow:!1,xAxisSplitLineStyleColor:"#333",xAxisLabelInterval:0,xAxisLabelColor:"#333",xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,yAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisLabelWidth:void 0,yAxisLabelRotate:0,yAxisLabelOverflow:"none",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",barWidth:"40%",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",isUseHorizontalAxis:!1,axisInverse:!1,xAxisInverse:!1,yAxisInverse:!1,isStack:!1,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{c}",toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxInfoSource:!1,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",associatId:""},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$j=vue.defineComponent({name:"EcanBar",props:{...barComponentProps},components:{Spin,Echarts,EcanModal,AModal:antDesignVue.Modal},setup(ct,{expose:Dn}){const ur=vue.ref(!1),{pageMode:dr,fontFamily:fr}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),hr=vue.inject("showIndDetail",Hr=>{}),vr=vue.inject("showIndSource",Hr=>{}),pr=vue.inject("usedComponentList",[]),mr=vue.ref(),gr=vue.ref(!1),yr=vue.ref(!1),Cr=vue.ref(null),br=vue.ref([]),Ar=usePickComponentStyle(ct),wr=vue.ref([]),_r=vue.ref(),Tr=vue.ref({});let Er;const xr=vue.computed(()=>gr.value?ZOOM_FONT_SIZE:12),Sr=vue.ref([]),kr=vue.ref(!1),Pr=vue.ref({}),Ir=vue.ref({}),Br=Hr=>{Pr.value=Hr;const Ur=cr(ct,Hr,{fontSize:vue.unref(xr),fontFamily:vue.unref(fr),callBackMethodMap:{getCurrentData:Yr=>{Er=Yr},toolboxLocationFun:()=>{yr.value=!0;const{xAxis:Yr}=mr.value.chart.getOption()||{};Yr!=null&&Yr.length&&(br.value=Yr[0].data)},toolboxDownloadShowFun:()=>{useDownloadFile(ct.toolboxDownloadUrl)},toolboxDataZoomShowFun:()=>{var Yr;gr.value=!0,(Yr=_r.value)==null||Yr.showModal()},toolboxInfoShowFun:()=>{hr(ct)},toolboxSourceShowFun:()=>{vr(ct)}}});let Jr=parseFloat(ct.legendFontSize);vue.unref(gr)&&(Jr=ZOOM_FONT_SIZE,Ur.toolbox.feature.myDataZoom.show=!1),Ur.legend.textStyle.lineHeight=Jr+8,Ur.legend.textStyle.rich.text.fontSize=Jr,Ir.value=Ur},Or=()=>{gr.value=!1},Nr=(Hr=[],Ur=!1)=>{var Yr,si,fi;let Jr={};if(ct.dataFieldConfigType==="key"){const _i=Ur?ct.keyTypeDataFieldNames:null;Jr=Xn(Hr,_i)}else if(ct.dataFieldConfigType==="value"){const _i=Ur?ct.valueTypeDataFieldNames:null;Jr=Jn(Hr,_i)}if(wr.value=Jr.dataset,(Yr=vue.unref(wr))!=null&&Yr.length){for(const _i of vue.unref(wr))if((si=_i==null?void 0:_i.data)!=null&&si.length)for(const bi of _i.data)bi.sourceValue=bi.value,bi.value=parseFloat(bi.value)}Sr.value=Jr.dimensions,Br(Jr),(fi=Jr.dataset)!=null&&fi.length?ur.value=!1:ur.value=!0},jr=(Hr=[],Ur,Jr=!1)=>{var fi;const si=Xn(Hr,Jr?Ur:null,!0);ct.defaultRangeValue&&setDefaultRangeVal({props:ct,componentList:vue.unref(pr),getGlobalModel:Fr},si),wr.value=si.dataset,Sr.value=si.dimensions,Br(si),(fi=si.dataset)!=null&&fi.length?ur.value=!1:ur.value=!0},Vr=vue.computed(()=>Object.keys(ct).reduce((Hr,Ur)=>(IGNORE_WATCH_KEYS.has(Ur)||(Hr[Ur]=ct[Ur]),Hr),{}));vue.watch(()=>[ct.data,Vr.value],([Hr])=>{(ct.dataType==="static"||vue.unref(dr)==="design")&&Nr(Hr)},{immediate:!0,deep:!0}),vue.watch(gr,()=>{Br(vue.unref(Pr))});const $r=Hr=>{var _i;const{columns:Ur=[],rows:Jr=[]}=((_i=Hr==null?void 0:Hr.data)==null?void 0:_i.data)??{};let Yr;Ur.length>0&&(Yr={name:Ur[0],types:Ur.slice(1).map(bi=>({label:bi,value:bi}))});const{leftAxisList:si=[]}=ct.graphicConfig,fi=si.filter(bi=>bi.show).map(bi=>bi.label);for(const bi of Jr)if(bi)for(const pi in bi)typeof bi[pi]=="string"&&fi.includes(pi)&&!isNaN(parseFloat(bi[pi]))&&(bi[pi]=parseFloat(bi[pi]));jr(Jr,Yr,!0)},zr=useDataSource({props:ct,loading:kr,setData:Hr=>{var Yr,si;ct.dataType!=="component"&&ct.isViewRedrawing&&mr.value.clear();const{columns:Ur=[],rows:Jr=[]}=((Yr=Hr==null?void 0:Hr.data)==null?void 0:Yr.data)||{};(si=Ur==null?void 0:Ur.filter(fi=>fi&&fi!=="null"))!=null&&si.length?$r(Hr):Nr(Jr,!0)}}),Wr=(Hr,Ur)=>!!vue.unref(br)[Ur.value].value.includes(Hr),qr=async()=>{yr.value=!1;const Hr=mr.value.chart.getOption();for(let Ur=0;Ur<7;Ur++)await Mr(Hr,Ur)},Mr=(Hr,Ur)=>new Promise(Jr=>{setTimeout(()=>{const{series:Yr,color:si,xAxis:fi}=Hr,_i=mr.value.chart,{splitArea:bi={}}=fi[0]||{};Yr.forEach((pi,mi)=>{const xi=pi.data;let ni="";Ur%2?ni=si[mi]+"a8":ni=si[mi],xi[Cr.value].itemStyle={color:ni}}),Ur%2?(bi.show=!0,bi.areaStyle.color=vue.unref(br).map((pi,mi)=>mi===Cr.value?"#ff003b26":"")):bi.show=!1,_i.setOption({series:Yr,xAxis:fi}),Jr()},200)});Dn({refreshData:zr});const Lr=useEmitEvent(ct),{getGlobalModel:Fr,setGlobalModel:Dr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Hr=>{},setGlobalModel:(Hr,Ur)=>{}});Dr(ct.id,{type:ct.type,RECORD:""});const Gr=Lr("click",Hr=>{const Ur=Fr(ct.id);Dr(ct.id,{...Ur,type:ct.type,RECORD:ct.tooltipShow?Er:Hr.data})}),{setRequest:Rr}=vue.inject(REQUEST_MODEL,{setRequest:Hr=>{}});typeof Rr=="function"&&Rr({id:ct.id,requestFn:zr,sortNum:ct.requestSort});const Qr=()=>{const Hr=ct.id,Ur=Fr(Hr);Dr(Hr,{...Ur,RECORD:""})},Kr=Hr=>{mr.value.chart.containPixel("grid",[Hr.offsetX,Hr.offsetY])&&Gr()};return ct.tooltipShow?Tr.value["zr:click"]=Kr:Tr.value.click=Gr,useOnEvent(ct,{refreshData:zr,click:Gr,resetRecord:Qr}),{option:Ir,style:Ar,refreshData:zr,click:Gr,loading:kr,onClose:Or,ecanModal:_r,echartRef:mr,handleLocationOk:qr,onFilterOption:Wr,locationVisible:yr,locationValue:Cr,locationNames:br,eventObj:Tr,emptyData:ur}}}),Bar_vue_vue_type_style_index_0_lang="",Bar_vue_vue_type_style_index_1_scoped_a504d6c2_lang="",_withScopeId$4=ct=>(vue.pushScopeId("data-v-a504d6c2"),ct=ct(),vue.popScopeId(),ct),_hoisted_1$b={class:"location-wrap"},_hoisted_2$7=_withScopeId$4(()=>vue.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function _sfc_render$l(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("echarts"),pr=vue.resolveComponent("spin"),mr=vue.resolveComponent("ecan-modal"),gr=vue.resolveComponent("a-select-option"),yr=vue.resolveComponent("a-select"),Cr=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-bar",style:vue.normalizeStyle(ct.style)},[vue.createVNode(pr,{spinning:ct.loading},{default:vue.withCtx(()=>[ct.noDataTip&&ct.emptyData?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"empty-wrap",style:vue.normalizeStyle({color:ct.tipTextColor,fontSize:ct.tipTextFontSize})},[vue.createElementVNode("span",null,vue.toDisplayString(ct.tipText),1)],4)):(vue.openBlock(),vue.createBlock(vr,vue.mergeProps({key:1,ref:"echartRef",option:ct.option,"update-options":{notMerge:!0},autoresize:""},vue.toHandlers(ct.eventObj)),null,16,["option"]))]),_:1},8,["spinning"]),vue.createVNode(mr,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:ct.onClose},{default:vue.withCtx(()=>[vue.createVNode(pr,{class:"spin-wrap",spinning:ct.loading},{default:vue.withCtx(()=>[vue.createVNode(vr,{option:ct.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),vue.createVNode(Cr,{visible:ct.locationVisible,"onUpdate:visible":Dn[1]||(Dn[1]=br=>ct.locationVisible=br),title:"快速定位",onOk:ct.handleLocationOk},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$b,[_hoisted_2$7,vue.createVNode(yr,{value:ct.locationValue,"onUpdate:value":Dn[0]||(Dn[0]=br=>ct.locationValue=br),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":ct.onFilterOption},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ct.locationNames,(br,Ar)=>(vue.openBlock(),vue.createBlock(gr,{key:Ar,value:Ar},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(br.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const Bar=_export_sfc$1(_sfc_main$j,[["render",_sfc_render$l],["__scopeId","data-v-a504d6c2"]]),EcanBar=withInstall$1(Bar),scatterProps={...props$1,id:"",name:"散点图",keyName:"散点图",type:"ecanScatter",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:233,value:335},{name:556,value:310},{name:56,value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",tooltipShow:!0,tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c}",legendShow:!1,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",symbolSize:10,symbolColor:"#5470c6",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,toolboxInfoSource:!1,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",labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{c}",visualColorKey:"",visualColorCondition:[],visualSizeKey:"",visualSizeCondition:[]},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$i=vue.defineComponent({name:"EcanScatter",props:{...scatterComponentProps},components:{Spin,Echarts,EcanModal},setup(ct,{expose:Dn}){const ur=vue.ref(!1),{pageMode:dr,fontFamily:fr}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),hr=vue.inject("showIndDetail",Dr=>{}),vr=vue.inject("showIndSource",Dr=>{}),pr=vue.ref(),mr=vue.ref(!1),gr=usePickComponentStyle(ct),yr=vue.ref(),Cr=vue.computed(()=>mr.value?ZOOM_FONT_SIZE:12),br=vue.inject("componentList",[]),{loadedData:Ar}=vue.inject(LOADED_DATA,{loadedData:{}}),wr=vue.ref({}),_r=vue.ref({}),Tr=vue.ref({}),Er=vue.computed(()=>{const{xAxisMarkLineValue:Dr=[],yAxisMarkLineValue:Gr=[]}=ct,Rr=Dr.concat(Gr),Qr=[];for(const Kr of Rr){let Hr=Kr.value;const Ur=Hr==null?void 0:Hr.match(/\{(.+?)\}/g);if(Ur!=null&&Ur.length){for(const Yr of Ur)Hr=Hr.replace(Yr,Yr.slice(1,-1));const Jr=vue.unref(br).find(Yr=>Yr.keyName===Hr);Jr!=null&&Jr.id&&!Qr.find(Yr=>Yr.keyName===Hr)&&Qr.push({componentId:Jr.id,keyName:Jr.keyName})}}return Qr});vue.watch(Ar,Dr=>{var Gr;if((Gr=vue.unref(Er))!=null&&Gr.length)for(const Rr of vue.unref(Er)){const{componentId:Qr,keyName:Kr}=Rr;if(Dr[Qr]){const Hr=Sr(Qr);Tr.value[Kr]=Hr.value}else delete Tr.value[Kr]}},{deep:!0});const xr=Dr=>{wr.value=Dr;const Gr=cr(ct,Dr,{fontSize:vue.unref(Cr),fontFamily:vue.unref(fr),maxValueObj:or(vue.unref(pr)),callBackMethodMap:{toolboxDownloadShowFun:()=>{useDownloadFile(ct.toolboxDownloadUrl)},toolboxDataZoomShowFun:()=>{var Rr;mr.value=!0,(Rr=yr.value)==null||Rr.showModal()},toolboxInfoShowFun:()=>{hr(ct)},toolboxSourceShowFun:()=>{vr(ct)}}});vue.unref(mr)&&(Gr.toolbox.feature.myDataZoom.show=!1),_r.value=Gr},{getGlobalModel:Sr,setGlobalModel:kr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Dr=>{},setGlobalModel:(Dr,Gr)=>{}}),Pr=(Dr=[])=>{var Kr;const{name:Gr="name",value:Rr="value"}=tr(ct,ct.graphicConfig,{pageMode:vue.unref(dr)})||{},Qr=Dr.map(Hr=>({value:[Hr[Gr],Hr[Rr]],record:Hr}));xr(Qr),(Kr=Qr.value)!=null&&Kr.length?ur.value=!1:ur.value=!0},Ir=vue.computed(()=>Object.keys(ct).reduce((Dr,Gr)=>(IGNORE_WATCH_KEYS.has(Gr)||(Dr[Gr]=ct[Gr]),Dr),{}));vue.watch(()=>[ct.data,Ir.value],([Dr])=>{(ct.dataType==="static"||vue.unref(dr)==="design")&&Pr(Dr)},{immediate:!0,deep:!0}),vue.watch(mr,()=>{xr(vue.unref(wr))});const Br=vue.ref(!1),Or=useRequestData(ct),Nr=async()=>{var Dr,Gr;if(ct.dataType==="request"){Br.value=!0;try{const Rr=await Or();Pr((Gr=(Dr=Rr==null?void 0:Rr.data)==null?void 0:Dr.data)==null?void 0:Gr.rows)}catch(Rr){console.error(Rr)}finally{Br.value=!1}}},jr=()=>{mr.value=!1},Vr=useEmitEvent(ct);kr(ct.id,{type:ct.type,RECORD:""});const $r=Vr("click",Dr=>{const Gr=ct.id,Rr=Sr(Gr);kr(Gr,{...Rr,type:ct.type,RECORD:Dr==null?void 0:Dr.data})}),zr=Dr=>{var Gr,Rr;Pr((Rr=(Gr=Dr==null?void 0:Dr.data)==null?void 0:Gr.data)==null?void 0:Rr.rows)},Wr=useIndicatorData(ct,Dr=>{ct.isViewRedrawing&&pr.value.clear(),zr(Dr)}),qr=async()=>{try{Br.value=!0;const Dr=await Wr();zr(Dr)}catch(Dr){console.error(Dr)}finally{Br.value=!1}},Mr=async()=>{switch(ct.dataType){case"indicator":await qr();break;case"request":await Nr();break}};useOnEvent(ct,{refreshData:Mr,click:$r,resetRecord:()=>{const Dr=ct.id,Gr=Sr(Dr);kr(Dr,{...Gr,RECORD:""})}});const{setRequest:Fr}=vue.inject(REQUEST_MODEL,{setRequest:Dr=>{}});return typeof Fr=="function"&&Fr({id:ct.id,requestFn:Mr,sortNum:ct.requestSort}),Dn({refreshData:Mr}),{option:_r,style:gr,click:$r,loading:Br,onClose:jr,ecanModal:yr,echartRef:pr,emptyData:ur}}}),Scatter_vue_vue_type_style_index_0_lang="",Scatter_vue_vue_type_style_index_1_scoped_3ab0f8d8_lang="";function _sfc_render$k(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("echarts"),pr=vue.resolveComponent("spin"),mr=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(ct.style)},[vue.createVNode(pr,{spinning:ct.loading},{default:vue.withCtx(()=>[ct.noDataTip&&ct.emptyData?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"empty-wrap",style:vue.normalizeStyle({color:ct.tipTextColor,fontSize:ct.tipTextFontSize})},[vue.createElementVNode("span",null,vue.toDisplayString(ct.tipText),1)],4)):(vue.openBlock(),vue.createBlock(vr,{key:1,ref:"echartRef",option:ct.option,autoresize:"",onClick:ct.click},null,8,["option","onClick"]))]),_:1},8,["spinning"]),vue.createVNode(mr,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:ct.onClose},{default:vue.withCtx(()=>[vue.createVNode(pr,{class:"spin-wrap",spinning:ct.loading},{default:vue.withCtx(()=>[vue.createVNode(vr,{option:ct.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Scatter=_export_sfc$1(_sfc_main$i,[["render",_sfc_render$k],["__scopeId","data-v-3ab0f8d8"]]),EcanScatter=withInstall$1(Scatter),customGraphProps={...props$1,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},customGraphComponentProps=transformToComponentProps(customGraphProps),_sfc_main$h=vue.defineComponent({name:"EcanCustomGraph",props:{...customGraphComponentProps},components:{Echarts},setup(ct){const Dn=usePickComponentStyle(ct),ur=vue.ref();return vue.watch(()=>ct.optionCode,dr=>{try{const fr=eval;ur.value=fr(dr)}catch(fr){console.error(fr)}},{immediate:!0}),{style:Dn,myOption:ur,echarts:echarts__namespace}}});function _sfc_render$j(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("echarts");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(ct.style)},[vue.createVNode(vr,{option:ct.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const CustomGraph=_export_sfc$1(_sfc_main$h,[["render",_sfc_render$j]]),EcanCustomGraph=withInstall$1(CustomGraph),comboGraphProps={...props$1,id:"",name:"组合图表",keyName:"组合图表",type:"ecanComboGraph",width:"400px",height:"400px",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:410,type:"类型一"},{name:"名称三",value:210,type:"类型一"},{name:"名称一",value:510,type:"类型二"},{name:"名称二",value:731,type:"类型二"},{name:"名称三",value:910,type:"类型二"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {a} {c}",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelWidth:void 0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisMinInterval:0,yAxisLeftSplitLineShow:!0,yAxisRightSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",seriesTypes:[{type:"bar",axisIndex:0},{type:"line",axisIndex:0}],yAxis:[{axisLabelFormatter:"{value}"},{axisLabelFormatter:"{value}"}],gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxInfoSource:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,symbolSize:4,lineStyleWidth:2,smooth:!1,barWidth:"40%",barBorderRadius:"",areaGradientShow:!1,areaGradientColor:"",yAxisLabelShow:!0,yAxisLeftSplitLineType:"solid",yAxisRightSplitLineType:"solid",gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,legendType:"",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanComboGraph",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisLeftName:"",yAxisRightName:"",xAxisName:"",defaultRangeValue:!1,startValue:"",endValue:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,yAxisLeftUnitAdapt:!1,yAxisRightUnitAdapt:!1,noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px",labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{c}",associatId:""},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$g=vue.defineComponent({name:"EcanComboGraph",props:{...comboGraphComponentProps},components:{Spin,Echarts,EcanModal,AModal:antDesignVue.Modal},setup(ct,{expose:Dn}){const ur=vue.ref(!1),dr=vue.ref(!1),{pageMode:fr,fontFamily:hr}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),vr=vue.inject("showIndDetail",Hr=>{}),pr=vue.inject("showIndSource",Hr=>{}),mr=vue.inject("usedComponentList",[]),{getGlobalModel:gr,setGlobalModel:yr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Hr=>{},setGlobalModel:(Hr,Ur)=>{}}),Cr=vue.ref(),br=vue.ref(!1),Ar=vue.ref(!1),wr=vue.ref(null),_r=vue.ref([]),Tr=vue.ref({});let Er;const xr=usePickComponentStyle(ct),Sr=vue.ref([]),kr=vue.ref(),Pr=vue.ref([]),Ir=vue.computed(()=>br.value?ZOOM_FONT_SIZE:12),Br=vue.ref({}),Or=vue.ref({}),Nr=Hr=>{Br.value=Hr;const Ur=cr(ct,Hr,{fontSize:vue.unref(Ir),fontFamily:vue.unref(hr),callBackMethodMap:{getCurrentData:Yr=>{Er=Yr},toolboxLocationFun:()=>{Ar.value=!0;const{xAxis:Yr}=Cr.value.chart.getOption()||{};Yr!=null&&Yr.length&&(_r.value=Yr[0].data)},toolboxDownloadShowFun:()=>{useDownloadFile(ct.toolboxDownloadUrl)},toolboxDataZoomShowFun:()=>{var Yr;br.value=!0,(Yr=kr.value)==null||Yr.showModal()},toolboxInfoShowFun:()=>{vr(ct)},toolboxSourceShowFun:()=>{pr(ct)}}});let Jr=parseFloat(ct.legendFontSize);vue.unref(br)&&(Jr=ZOOM_FONT_SIZE,Ur.toolbox.feature.myDataZoom.show=!1),Ur.legend.textStyle.lineHeight=Jr+8,Ur.legend.textStyle.rich.text.fontSize=Jr,Or.value=Ur},jr=()=>{br.value=!1},Vr=(Hr=[],Ur=!1)=>{var Yr;let Jr;if(ct.dataFieldConfigType==="key"){const si=Ur?ct.keyTypeDataFieldNames:null;Jr=Xn(Hr,si,!0)}else if(ct.dataFieldConfigType==="value"){const si=Ur?ct.valueTypeDataFieldNames:null;Jr=Jn(Hr,si)}Sr.value=Jr.dimensions,Pr.value=Jr.dataset,Nr(Jr),(Yr=Jr.dataset)!=null&&Yr.length?dr.value=!1:dr.value=!0},$r=(Hr=[],Ur,Jr=!1)=>{var fi;const si=Xn(Hr,Jr?Ur:null,!0);ct.defaultRangeValue&&setDefaultRangeVal({props:ct,componentList:vue.unref(mr),getGlobalModel:gr},si),Sr.value=si.dimensions,Pr.value=si.dataset,Nr(si),(fi=si.dataset)!=null&&fi.length?dr.value=!1:dr.value=!0},zr=vue.computed(()=>Object.keys(ct).reduce((Hr,Ur)=>(IGNORE_WATCH_KEYS.has(Ur)||(Hr[Ur]=ct[Ur]),Hr),{}));vue.watch(()=>[ct.data,zr.value],([Hr])=>{(ct.dataType==="static"||vue.unref(fr)==="design")&&Vr(Hr)},{immediate:!0,deep:!0}),vue.watch(br,()=>{Nr(vue.unref(Br))});const Wr=Hr=>{var si;const{columns:Ur=[],rows:Jr=[]}=((si=Hr==null?void 0:Hr.data)==null?void 0:si.data)??{};let Yr;Ur.length>0&&(Yr={name:Ur[0],types:Ur.slice(1).map(fi=>({label:fi,value:fi}))}),$r(Jr,Yr,!0)},qr=useDataSource({props:ct,loading:ur,setData:Hr=>{var Yr,si;ct.dataType!=="component"&&ct.isViewRedrawing&&Cr.value.clear();const{columns:Ur=[],rows:Jr=[]}=((Yr=Hr==null?void 0:Hr.data)==null?void 0:Yr.data)||{};(si=Ur==null?void 0:Ur.filter(fi=>fi&&fi!=="null"))!=null&&si.length?Wr(Hr):Vr(Jr,!0)}}),Mr=(Hr,Ur)=>!!vue.unref(_r)[Ur.value].value.includes(Hr),Lr=async()=>{Ar.value=!1;const Hr=Cr.value.chart.getOption();for(let Ur=0;Ur<7;Ur++)await Fr(Hr,Ur)},Fr=(Hr,Ur)=>new Promise(Jr=>{setTimeout(()=>{const{series:Yr,color:si,xAxis:fi}=Hr,_i=Cr.value.chart,{splitArea:bi={}}=fi[0]||{};Yr.forEach((pi,mi)=>{const xi=pi.data;let ni="";Ur%2?ni=si[mi]+"a8":ni=si[mi],xi[wr.value].itemStyle={color:ni}}),Ur%2?(bi.show=!0,bi.areaStyle.color=vue.unref(_r).map((pi,mi)=>mi===wr.value?"#ff003b26":"")):bi.show=!1,_i.setOption({series:Yr,xAxis:fi}),Jr()},200)});Dn({refreshData:qr});const Dr=useEmitEvent(ct);yr(ct.id,{type:ct.type,RECORD:""});const Gr=Dr("click",Hr=>{const Ur=gr(ct.id);yr(ct.id,{...Ur,type:ct.type,RECORD:ct.tooltipShow?Er:Hr==null?void 0:Hr.data})}),Rr=Hr=>{Cr.value.chart.containPixel("grid",[Hr.offsetX,Hr.offsetY])&&Gr()};ct.tooltipShow?Tr.value["zr:click"]=Rr:Tr.value.click=Gr;const{setRequest:Qr}=vue.inject(REQUEST_MODEL,{setRequest:Hr=>{}});return typeof Qr=="function"&&Qr({id:ct.id,requestFn:qr,sortNum:ct.requestSort}),useOnEvent(ct,{resetRecord:()=>{const Hr=ct.id,Ur=gr(Hr);yr(Hr,{...Ur,RECORD:""})},refreshData:qr,click:Gr}),{style:xr,option:Or,click:Gr,loading:ur,onClose:jr,ecanModal:kr,echartRef:Cr,handleLocationOk:Lr,onFilterOption:Mr,locationVisible:Ar,locationValue:wr,locationNames:_r,eventObj:Tr,emptyData:dr}}}),ComboGraph_vue_vue_type_style_index_0_lang="",ComboGraph_vue_vue_type_style_index_1_scoped_bd97b7da_lang="",_withScopeId$3=ct=>(vue.pushScopeId("data-v-bd97b7da"),ct=ct(),vue.popScopeId(),ct),_hoisted_1$a={class:"location-wrap"},_hoisted_2$6=_withScopeId$3(()=>vue.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function _sfc_render$i(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("echarts"),pr=vue.resolveComponent("spin"),mr=vue.resolveComponent("ecan-modal"),gr=vue.resolveComponent("a-select-option"),yr=vue.resolveComponent("a-select"),Cr=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(ct.style)},[vue.createVNode(pr,{spinning:ct.loading},{default:vue.withCtx(()=>[ct.noDataTip&&ct.emptyData?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"empty-wrap",style:vue.normalizeStyle({color:ct.tipTextColor,fontSize:ct.tipTextFontSize})},[vue.createElementVNode("span",null,vue.toDisplayString(ct.tipText),1)],4)):(vue.openBlock(),vue.createBlock(vr,vue.mergeProps({key:1,ref:"echartRef",option:ct.option,"update-options":{notMerge:!0},autoresize:""},vue.toHandlers(ct.eventObj)),null,16,["option"]))]),_:1},8,["spinning"]),vue.createVNode(mr,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:ct.onClose},{default:vue.withCtx(()=>[vue.createVNode(pr,{class:"spin-wrap",spinning:ct.loading},{default:vue.withCtx(()=>[vue.createVNode(vr,{option:ct.option,"update-options":{notMerge:!0},autoresize:"",onClick:ct.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),vue.createVNode(Cr,{visible:ct.locationVisible,"onUpdate:visible":Dn[1]||(Dn[1]=br=>ct.locationVisible=br),title:"快速定位",onOk:ct.handleLocationOk},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$a,[_hoisted_2$6,vue.createVNode(yr,{value:ct.locationValue,"onUpdate:value":Dn[0]||(Dn[0]=br=>ct.locationValue=br),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":ct.onFilterOption},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ct.locationNames,(br,Ar)=>(vue.openBlock(),vue.createBlock(gr,{key:Ar,value:Ar},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(br.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const ComboGraph=_export_sfc$1(_sfc_main$g,[["render",_sfc_render$i],["__scopeId","data-v-bd97b7da"]]),EcanComboGraph=withInstall$1(ComboGraph),radarProps={...props$1,id:"",name:"雷达图",keyName:"雷达图",type:"ecanRadar",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"},{name:"名称五",value:435,type:"类型一"},{name:"名称六",value:215,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxInfoSource:!1,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",associatId:""},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$f=vue.defineComponent({name:"EcanRadar",props:{...radarComponentProps},components:{Spin,Echarts,EcanModal},setup(ct,{expose:Dn}){const ur=vue.ref(!1),dr=vue.ref(!1),{pageMode:fr,fontFamily:hr}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),vr=vue.inject("showIndDetail",Wr=>{}),pr=vue.inject("showIndSource",Wr=>{}),mr=vue.ref(),gr=vue.ref(!1),yr=usePickComponentStyle(ct),Cr=vue.ref(),br=vue.computed(()=>gr.value?ZOOM_FONT_SIZE:12),Ar=vue.ref(ct.valueTypeDataFieldNames.name),wr=vue.ref({}),_r=vue.ref({}),Tr=Wr=>{wr.value=Wr;const qr=cr(ct,xr(Wr),{fontSize:vue.unref(br),fontFamily:vue.unref(hr),callBackMethodMap:{toolboxDownloadShowFun:()=>{useDownloadFile(ct.toolboxDownloadUrl)},toolboxDataZoomShowFun:()=>{var Lr;gr.value=!0,(Lr=Cr.value)==null||Lr.showModal()},toolboxInfoShowFun:()=>{vr(ct)},toolboxSourceShowFun:()=>{pr(ct)}}});let Mr=parseFloat(ct.legendFontSize);vue.unref(gr)&&(Mr=ZOOM_FONT_SIZE,qr.toolbox.feature.myDataZoom.show=!1),qr.legend.textStyle.lineHeight=Mr+8,qr.legend.textStyle.rich.text.fontSize=Mr,delete qr.grid,_r.value=qr},Er=()=>{gr.value=!1},xr=Wr=>{var qr;return!Wr||!Array.isArray(Wr.dataset)?{dimensions:[],dataset:[]}:Wr.dataset.length&&!((qr=Wr.dimensions)!=null&&qr.length)?{...Wr,dataset:[]}:Wr},{getGlobalModel:Sr,setGlobalModel:kr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Wr=>{},setGlobalModel:(Wr,qr)=>{}}),Pr=(Wr=[],qr=!1)=>{var Lr;let Mr;if(ct.dataFieldConfigType==="key"){const Fr=qr?ct.keyTypeDataFieldNames:null;Mr=Xn(Wr,Fr)}else if(ct.dataFieldConfigType==="value"){const Fr=qr?ct.valueTypeDataFieldNames:null;Mr=Jn(Wr,Fr)}Mr=xr(Mr),Tr(Mr),(Lr=Mr.dataset)!=null&&Lr.length?dr.value=!1:dr.value=!0},Ir=(Wr=[],qr,Mr=!1)=>{var Dr;const Fr=xr(Xn(Wr,Mr?qr:null,!0));Tr(Fr),(Dr=Fr.dataset)!=null&&Dr.length?dr.value=!1:dr.value=!0},Br=vue.computed(()=>Object.keys(ct).reduce((Wr,qr)=>(IGNORE_WATCH_KEYS.has(qr)||(Wr[qr]=ct[qr]),Wr),{}));vue.watch(()=>[ct.data,Br.value],([Wr])=>{(ct.dataType==="static"||vue.unref(fr)==="design")&&Pr(Wr)},{immediate:!0,deep:!0}),vue.watch(gr,()=>{Tr(vue.unref(wr))});const Or=useEmitEvent(ct);kr(ct.id,{type:ct.type,RECORD:""});const Nr=Wr=>{const qr=Wr.event.topTarget.__dimIdx;qr!==void 0&&Or("click",()=>{var Dr,Gr,Rr;const{value:Mr,name:Lr}=Wr.data||{},Fr=Sr(ct.id);kr(ct.id,{...Fr,type:ct.type,RECORD:{[vue.unref(Ar)]:((Rr=(Gr=(Dr=vue.unref(_r))==null?void 0:Dr.radar)==null?void 0:Gr.indicator[qr])==null?void 0:Rr.name)||"",[Lr]:Mr[qr],seriesName:Lr}})})()},jr=Wr=>{var Fr;const{columns:qr=[],rows:Mr=[]}=((Fr=Wr==null?void 0:Wr.data)==null?void 0:Fr.data)??{};let Lr;qr.length>0&&(Ar.value=qr[0],Lr={name:qr[0],types:qr.slice(1).map(Dr=>({label:Dr,value:Dr}))}),Ir(Mr,Lr,!0)},Vr=useDataSource({props:ct,loading:ur,setData:Wr=>{var Lr,Fr;ct.dataType!=="component"&&ct.isViewRedrawing&&mr.value.clear();const{columns:qr=[],rows:Mr=[]}=((Lr=Wr==null?void 0:Wr.data)==null?void 0:Lr.data)||{};(Fr=qr==null?void 0:qr.filter(Dr=>Dr&&Dr!=="null"))!=null&&Fr.length?jr(Wr):Pr(Mr,!0)}});useOnEvent(ct,{refreshData:Vr,resetRecord:()=>{const Wr=ct.id,qr=Sr(Wr);kr(Wr,{...qr,RECORD:""})},click:Nr});const{setRequest:zr}=vue.inject(REQUEST_MODEL,{setRequest:Wr=>{}});return typeof zr=="function"&&zr({id:ct.id,requestFn:Vr,sortNum:ct.requestSort}),Dn({refreshData:Vr}),{option:_r,style:yr,click:Nr,loading:ur,onClose:Er,ecanModal:Cr,echartRef:mr,emptyData:dr}}}),Radar_vue_vue_type_style_index_0_lang="",Radar_vue_vue_type_style_index_1_scoped_2ed5754b_lang="";function _sfc_render$h(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("echarts"),pr=vue.resolveComponent("spin"),mr=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(ct.style)},[vue.createVNode(pr,{spinning:ct.loading},{default:vue.withCtx(()=>[ct.noDataTip&&ct.emptyData?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"empty-wrap",style:vue.normalizeStyle({color:ct.tipTextColor,fontSize:ct.tipTextFontSize})},[vue.createElementVNode("span",null,vue.toDisplayString(ct.tipText),1)],4)):(vue.openBlock(),vue.createBlock(vr,{key:1,ref:"echartRef",option:ct.option,"update-options":{notMerge:!0},autoresize:"",onClick:ct.click},null,8,["option","onClick"]))]),_:1},8,["spinning"]),vue.createVNode(mr,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:ct.onClose},{default:vue.withCtx(()=>[vue.createVNode(pr,{class:"spin-wrap",spinning:ct.loading},{default:vue.withCtx(()=>[vue.createVNode(vr,{option:ct.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Radar=_export_sfc$1(_sfc_main$f,[["render",_sfc_render$h],["__scopeId","data-v-2ed5754b"]]),EcanRadar=withInstall$1(Radar),gaugeProps={...props$1,id:"",name:"仪表盘",keyName:"仪表盘",type:"ecanGauge",width:"400px",height:"400px",top:"",left:"",rotate:"",data:{value:7},graphicConfig:{},noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px",progressWidth:12,progressColor:"#587BF3",axisLabelFontSize:"16px",axisLabelFormatter:"{value}",detailFontSize:"30px",detailFormatter:"{value}",detailColor:"#000000",axisMin:0,axisMax:15,centerLeft:"50%",centerTop:"50%",radius:"75%",toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxInfoSource:!1,toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",warningRule:""},gaugeComponentProps=transformToComponentProps(gaugeProps),gaugeEvents=["refreshData","click","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.GaugeChart,components$1.ToolboxComponent,components$1.TitleComponent,components$1.LegendComponent]);const _sfc_main$e=vue.defineComponent({name:"EcanGauge",props:{...gaugeComponentProps},components:{Spin,Echarts,EcanModal},setup(ct,{expose:Dn}){const ur=vue.ref(!1),{pageMode:dr}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),fr=vue.inject("showIndDetail",qr=>{}),hr=vue.inject("showIndSource",qr=>{}),vr=vue.ref(),pr=vue.ref(!1),mr=usePickComponentStyle(ct),gr=vue.ref(),yr=vue.ref([]),Cr=vue.ref(),br=vue.ref({}),Ar=vue.computed(()=>{var qr,Mr;return(qr=vue.unref(br))!=null&&qr.warningStatus?(Mr=vue.unref(br))==null?void 0:Mr.warningColor:ct.progressColor}),wr=vue.computed(()=>{var qr,Mr;return{toolbox:{show:ct.toolboxShow,left:ct.toolboxLeft,top:ct.toolboxTop,itemSize:ct.toolboxItemSize,itemGap:ct.toolboxItemGap,feature:{myDownload:{show:ct.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(ct.toolboxDownloadUrl)}},myDataZoom:{show:pr.value?!1:ct.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var Lr;pr.value=!0,(Lr=gr.value)==null||Lr.showModal()}},myInfo:{show:ct.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(){fr(ct)}},mySource:{show:ct.toolboxInfoSource,title:"指标来源",icon:"path://M473 71a8 8 0 0 1 8-8h64a8 8 0 0 1 8 8v77.161C722.848 166.622 857.812 301.289 876.729 471H952a8 8 0 0 1 8 8v64a8 8 0 0 1-8 8h-75.053C858.871 721.652 723.515 857.305 553 875.839V951a8 8 0 0 1-8 8h-64a8 8 0 0 1-8-8v-75.161C302.818 857.341 167.659 722.182 149.161 552H72a8 8 0 0 1-8-8v-64a8 8 0 0 1 8-8h77.161C167.659 301.818 302.818 166.659 473 148.161V71z m326 441c0-157.953-128.047-286-286-286S227 354.047 227 512s128.047 286 286 286 286-128.047 286-286z m-286 60c33.137 0 60-26.863 60-60s-26.863-60-60-60-60 26.863-60 60 26.863 60 60 60z",onclick(){hr(ct)}}}},title:{text:ct.titleText,subText:ct.titleSubtext,textStyle:{fontSize:ct.titleFontSize,fontWeight:ct.fontWeight,color:ct.titleColor},left:ct.textAlign},series:[{type:"gauge",center:[ct.centerLeft,ct.centerTop],radius:ct.radius,progress:{show:!0,width:ct.progressWidth,itemStyle:{color:vue.unref(Ar)}},axisLine:{lineStyle:{width:ct.progressWidth}},axisTick:{show:!1},splitLine:{distance:3,length:8,lineStyle:{width:1,color:"#999"}},axisLabel:{distance:22,color:"#999",fontSize:ct.axisLabelFontSize,formatter:Lr=>{let Fr="",Dr=ct.axisLabelFormatter;return Dr===""&&(Dr="{value}"),Fr+=jn(Dr,{textData:{value:Lr}},{useNewline:!0,useSpace:!0}),Fr}},anchor:{show:!0,showAbove:!0,size:15,itemStyle:{borderColor:vue.unref(Ar),borderWidth:10}},pointer:{itemStyle:{color:vue.unref(Ar)}},detail:{valueAnimation:!0,fontSize:ct.detailFontSize,offsetCenter:[0,"50%"],formatter:Lr=>{let Fr="",Dr=ct.detailFormatter;return Dr===""&&(Dr="{value}"),Fr+=jn(Dr,{textData:{value:Lr}},{useNewline:!0,useSpace:!0}),Fr},color:(qr=vue.unref(br))!=null&&qr.warningStatus?(Mr=vue.unref(br))==null?void 0:Mr.warningColor:ct.detailColor},min:ct.axisMin,max:vue.unref(Cr)?parseFloat(vue.unref(Cr))*2:ct.axisMax,data:vue.unref(yr)}]}}),_r=()=>{pr.value=!1},{getGlobalModel:Tr,setGlobalModel:Er}=vue.inject(GLOBAL_MODEL,{getGlobalModel:qr=>{},setGlobalModel:(qr,Mr)=>{}}),xr=(qr={})=>{yr.value=[qr],qr?ur.value=!1:ur.value=!0};vue.watch(()=>[ct.data,ct.progressWidth,ct.progressColor,ct.axisLabelFontSize,ct.axisLabelFormatter,ct.axisMin,ct.axisMax,ct.detailFontSize,ct.detailFormatter,ct.detailColor],([qr])=>{(ct.dataType==="static"||vue.unref(dr)==="design")&&xr(qr)},{immediate:!0,deep:!0});const Sr=vue.ref(!1),kr=useRequestData(ct),Pr=async()=>{var qr,Mr;if(ct.dataType==="request")try{Sr.value=!0;const Lr=await kr();xr((Mr=(qr=Lr==null?void 0:Lr.data)==null?void 0:qr.data)==null?void 0:Mr.rows)}catch(Lr){console.error(Lr)}finally{Sr.value=!1}},Ir=useEmitEvent(ct);Er(ct.id,{type:ct.type,RECORD:""});const Br=qr=>{qr.event.topTarget.__dimIdx!==void 0&&Ir("click",()=>{})()},Or=qr=>{let Mr=ct.warningRule;if(!Mr)return;let Lr=Mr==null?void 0:Mr.match(/\{(.+?)\}/g);if(Lr!=null&&Lr.length){Lr=Array.from(new Set(Lr));for(const Dr of Lr){const Gr=Dr.slice(1,-1).trim();Mr=Mr.replace(new RegExp(Dr,"g"),qr[Gr])}}const Fr=Cn(`(function () {${Mr}})()`,{});qr.warningStatus=Fr,Fr?qr.warningColor="#FF0000":qr.warningColor=""},Nr=qr=>{var Rr;const{rows:Mr={}}=((Rr=qr==null?void 0:qr.data)==null?void 0:Rr.data)??{},{indicators:Lr=[]}=ct.graphicConfig;if(!(Lr!=null&&Lr.length))return;let Fr=Lr.find(Qr=>Qr.gaugeIndType==="main"),Dr=Lr.find(Qr=>Qr.gaugeIndType==="target");const Gr=Lr.filter(Qr=>Qr.show);Fr||(Fr=Gr[0]),Dr||(Dr=Gr[1]),Dr&&(Cr.value=Mr[Dr.label]||0),Fr&&(Or(Mr),br.value=Mr,xr({value:Mr[Fr.label]||0}))},jr=useIndicatorData(ct,qr=>{ct.isViewRedrawing&&vr.value.clear(),Nr(qr)}),Vr=async()=>{try{Sr.value=!0;const qr=await jr();Nr(qr)}catch(qr){console.error(qr)}finally{Sr.value=!1}},$r=async()=>{switch(ct.dataType){case"indicator":await Vr();break;case"request":await Pr();break}};useOnEvent(ct,{refreshData:$r,resetRecord:()=>{const qr=ct.id,Mr=Tr(qr);Er(qr,{...Mr,RECORD:""})},click:Br});const{setRequest:Wr}=vue.inject(REQUEST_MODEL,{setRequest:qr=>{}});return typeof Wr=="function"&&Wr({id:ct.id,requestFn:$r,sortNum:ct.requestSort}),Dn({refreshData:$r}),{option:wr,style:mr,click:Br,loading:Sr,onClose:_r,ecanModal:gr,echartRef:vr,emptyData:ur}}}),Gauge_vue_vue_type_style_index_0_lang="",Gauge_vue_vue_type_style_index_1_scoped_d7ba54f2_lang="";function _sfc_render$g(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("echarts"),pr=vue.resolveComponent("spin"),mr=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(ct.style)},[vue.createVNode(pr,{spinning:ct.loading},{default:vue.withCtx(()=>[ct.noDataTip&&ct.emptyData?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"empty-wrap",style:vue.normalizeStyle({color:ct.tipTextColor,fontSize:ct.tipTextFontSize})},[vue.createElementVNode("span",null,vue.toDisplayString(ct.tipText),1)],4)):(vue.openBlock(),vue.createBlock(vr,{key:1,ref:"echartRef",option:ct.option,autoresize:"",onClick:ct.click},null,8,["option","onClick"]))]),_:1},8,["spinning"]),vue.createVNode(mr,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:ct.onClose},{default:vue.withCtx(()=>[vue.createVNode(pr,{class:"spin-wrap",spinning:ct.loading},{default:vue.withCtx(()=>[vue.createVNode(vr,{option:ct.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Gauge=_export_sfc$1(_sfc_main$e,[["render",_sfc_render$g],["__scopeId","data-v-d7ba54f2"]]),EcanGauge=withInstall$1(Gauge),boxplotProps={...props$1,id:"",name:"箱线图",keyName:"箱线图",type:"ecanBoxplot",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{category:"1月",min:15,Q1:25,median:40.2,Q3:50.1,max:76},{category:"2月",min:25,Q1:40,median:52.5,Q3:88,max:108},{category:"3月",min:10,Q1:25,median:46,Q3:60.5,max:89}],titleText:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!1,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:"#D8D8D8",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!0,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} {category}
|
|
181
|
+
</span>`))):ct.format==="percent"?(isNaN(+Fi)||(Fi=(+Fi*100).toFixed(2)+"%"),ri=ri.replace(Ci,`<span class="${Ei}" style="color:${qr(Fi)||ct.variableColor};font-size:${vue.unref(hr)};${vue.unref(Or)}">${Fi}</span>`)):ct.format==="money"?(isNaN(+Fi)||(Fi=formatMoney(+Fi)),ri=ri.replace(Ci,`<span class="${Ei}" style="color:${qr(Fi)||ct.variableColor};font-size:${vue.unref(hr)};${vue.unref(Or)}">${Fi}</span>`)):qi==="thousands"?(isNaN(+Fi)||(Fi=formatThousands(+Fi)),ri=ri.replace(Ci,`<span class="${Ei}" style="color:${qr(Fi)||ct.variableColor};font-size:${vue.unref(hr)};${vue.unref(Or)}">${Fi}</span>`)):ri=ri.replace(Ci,`<span class="${Ei}" style="color:${qr(Fi)||ct.variableColor};font-size:${vue.unref(hr)};${vue.unref(Or)}">${Fi}</span>`)}}if(di||(di=`<span class="${Ei}" style="color: ${Oi};${vue.unref(Or)}">${ri}</span>`),ct.unitShow&&ct.unitText){let hi=ct.unitText;const Ci=hi.match(/\{(.+?)\}/g)||[];for(let qi=0;qi<Ci.length;qi++){const Qi=Ci[qi],la=(Ri=Qi==null?void 0:Qi.slice(1,Qi.length-1))==null?void 0:Ri.trim();let da=la;if(la.includes("$page"))da=Ar(la)||"";else{const va=Cn(da,vi);va&&["null","undefined"].includes(va)||(da=va)}da===la?hi=ct.unitDefaultText:hi=hi.replace(new RegExp(Qi,"g"),da)}const{unitTop:Di,unitLeft:$i}=ct;let Fi="position:relative;";Di&&(Fi+=`top:${Di};`),$i&&(Fi+=`margin-left:${$i};`),di+=`<span style='color:${ct.unitColor};font-size:${ct.unitFontSize};font-weight:${ct.unitFontWeight};${Fi};${vue.unref(Or)}'>${hi}</span>`}return ct.exceedConfig&&(di=`<span class="${Ei}" style="display: inline-block;color: ${qr(di)};">${di}</span>`),di.includes("span")||(di=`<span class="${Ei}" style="color: ${qr(di)};">${di}</span>`),di});function qr(ni){let ai="",Xr=!1;const{targetValue:vi,targetShow:Si,notExpectColor:ri}=ct;if(Si){switch(ct.targetRule){case"equal":ni!==vi&&(Xr=!0);break;case"greater":ni<=vi&&(Xr=!0);break;case"greater_equal":ni<vi&&(Xr=!0);break;case"less":ni>=vi&&(Xr=!0);break;case"less_equal":ni>vi&&(Xr=!0);break}Xr&&(ai=ri)}return ai}const{pageId:Mr}=vue.inject("templateOperate",{pageId:""})||{},Lr=useRequestData(ct),Fr=vue.ref(!1),Dr=async()=>{var ni,ai,Xr;try{Fr.value=!0;const vi=await Lr();(ni=vi==null?void 0:vi.data)!=null&&ni.data.rowsToData?Br(((ai=vi==null?void 0:vi.data)==null?void 0:ai.data.rowsToData)||{}):Br(((Xr=vi==null?void 0:vi.data)==null?void 0:Xr.data)||{})}catch(vi){console.error(vi)}finally{Fr.value=!1}},Gr=()=>{Ir()},Rr=ni=>{var Xr,vi;const{data:ai}=(ni==null?void 0:ni.data)||{};if(ai){ur.value=!1;const{columns:Si=[],rows:ri=[]}=((Xr=ni==null?void 0:ni.data)==null?void 0:Xr.data)??{},{graphicConfig:yi}=ct;let di={};if(Si.length>0){const Ei=Si.filter(Oi=>!!Oi);if(Ei!=null&&Ei.length){let Oi=ri;if((vi=yi==null?void 0:yi.dimensionList)!=null&&vi.length){const Li=Si[0];Li&&(ri!=null&&ri.length)&&(Oi=ri[0],di={value:Oi[Li]})}Ei.forEach((Li,Ri)=>{var Ci;let hi=Oi[Li];typeof hi=="number"?hi=isNaN(hi)?0:hi||0:hi=hi||0,di[Li]=hi,Ri===0&&!((Ci=yi==null?void 0:yi.dimensionList)!=null&&Ci.length)&&(di.value=hi)})}}Ir(di==null?void 0:di.value),Br(di)}else ur.value=!0,Ir(ct.variableDefaultValue),Br({value:ct.variableDefaultValue})},Qr=useIndicatorData(ct,Rr),Kr=async()=>{try{Fr.value=!0;const ni=await Qr();Rr(ni)}catch(ni){console.error(ni)}finally{Fr.value=!1,Sr(ct.id,!0)}},Hr=vue.ref(!1);vue.watch(kr,ni=>{if(ct.dataType==="indicator"){const ai=getFixedValueDatas(ct.graphicConfig);ai!=null&&ai.length&&(!vue.unref(Hr)&&canRequestIndicator(ct.graphicConfig,ni)?(Hr.value=!0,Yr()):canRequestIndicator(ct.graphicConfig,ni)||(Hr.value=!1))}},{deep:!0});const Ur=vue.computed(()=>{var Xr;if(ct.dataType!=="component")return{};const{associatId:ni}=ct,ai=vue.unref(yr).find(vi=>vi.id===ni);return(ai==null?void 0:ai.dataType)==="static"?(ai==null?void 0:ai.data)||{}:ni?((Xr=vue.unref(gr)[ni])==null?void 0:Xr.rows)||{}:{}}),Jr=ni=>{vue.nextTick(()=>{if(ct.useWarningStatus){const ai=vue.unref(yr).find(Xr=>Xr.id===ct.associatId);if((ai==null?void 0:ai.type)==="ecanGauge"){const Xr=vue.unref(yr).find(vi=>vi.id===ct.id);if(Xr){const{color:vi,variableColor:Si}=Xr;Tn(Xr,"cacheColor")||(Xr.cacheColor=vi),Tn(Xr,"cacheVariableColor")||(Xr.cacheVariableColor=Si),ni.warningStatus?Xr.color=Xr.variableColor=ni.warningColor:(Tn(Xr,"cacheColor")&&(Xr.color=Xr.cacheColor),Tn(Xr,"cacheVariableColor")&&(Xr.variableColor=Xr.cacheVariableColor))}}}Br(ni)})};vue.watch(()=>Ur.value,ni=>{ct.dataType==="component"&&Jr(ni)},{deep:!0});const Yr=async()=>{switch(ct.dataType){case"indicator":await Kr();break;case"request":{const{openCustomRequestData:ni,customRequestName:ai}=ct;ni||ni===void 0?await Dr():(Fr.value=!0,xr(ai,Xr=>{Xr&&(Xr.rowsToData?Br(Xr.rowsToData):Br(Xr)),Fr.value=!1}));break}case"component":Jr(vue.unref(Ur));break}},{setRequest:si}=vue.inject(REQUEST_MODEL,{setRequest:({id:ni,sortNum:ai,requestFn:Xr})=>{}});typeof si=="function"&&si({id:ct.id,requestFn:Yr,sortNum:ct.requestSort}),Dn({refreshData:Yr});const fi=useEmitEvent(ct),_i=fi("click",(ni=!0)=>{var ai,Xr;Ir((ai=document.querySelector(`div[cpntid="${ct.id}"]`))==null?void 0:ai.textContent),setTimeout(()=>{Ir()},0),!(!ct.linkPage&&!ct.href)&&handleJumpLink(ct,{pageMode:vue.unref(Cr),targetTemplate:ct.targetTemplate,isHandClick:ni,getRecordValueByKeyName:(Xr=ct.extendData)!=null&&Xr.circulateKeyName?Er:Tr,setTemplateData:Pr})}),bi=vue.inject("insideIndexPanel",!1),pi=ni=>{bi||ni.stopPropagation(),_i()},mi=()=>{_i(!1)},xi=fi("valueChange",()=>{$r.value++});return useOnEvent(ct,{refreshData:Yr,resetRecord:Gr,click:mi,valueChange:xi}),vue.watch(()=>Wr.value,(ni,ai)=>{ni!==ai&&xi()}),{style:dr,clickHandler:pi,myText:Wr,loading:Fr,click:_i,textIndent:vr,vFontSize:hr,gradientStyle:Nr,cursorStyle:jr,myTitle:pr,wrapStyle:Vr,textRef:mr,globalColor:zr}}}),__injectCSSVars__$4=()=>{vue.useCssVars(ct=>({"62a9efa3":ct.vFontSize,ca97e088:ct.textIndent,"88fd9dd8":ct.percentageSide,"4b2f1242":ct.titleFontColor,"6e5e03e4":ct.variableColor}))},__setup__$4=__default__$4.setup;__default__$4.setup=__setup__$4?(ct,Dn)=>(__injectCSSVars__$4(),__setup__$4(ct,Dn)):__injectCSSVars__$4;const Text_vue_vue_type_style_index_0_scoped_6056e029_lang="",Text_vue_vue_type_style_index_1_lang="",_hoisted_1$o=["innerHTML"],_hoisted_2$c=["innerHTML"],_hoisted_3$6=["innerHTML"];function _sfc_render$C(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("skeleton"),pr=vue.resolveComponent("a-tooltip");return ct.loading?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:vue.normalizeStyle(ct.style)},[vue.createVNode(vr,{loading:ct.loading},null,8,["loading"])],4)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"ecan-text",style:vue.normalizeStyle(ct.style),onClick:Dn[0]||(Dn[0]=(...mr)=>ct.clickHandler&&ct.clickHandler(...mr))},[ct.myTitle?(vue.openBlock(),vue.createBlock(pr,{key:0,overlayClassName:"ecan-text-tooltip",color:ct.titleBackgroundColor||"#ffffff"},{title:vue.withCtx(()=>[vue.createElementVNode("div",{style:vue.normalizeStyle({padding:"10px",maxHeight:"500px",overflow:"auto",color:ct.titleFontColor||"#000000"}),innerHTML:ct.myTitle},null,12,_hoisted_1$o)]),default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass("ecan-text_"+ct.id),style:vue.normalizeStyle({...ct.gradientStyle,...ct.cursorStyle}),innerHTML:ct.myText},null,14,_hoisted_2$c)]),_:1},8,["color"])):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:vue.normalizeClass(["ecantext_"+ct.id,ct.isContentMarkDown?"markdown-content-tenxt":""]),style:vue.normalizeStyle({color:ct.globalColor,...ct.gradientStyle,...ct.cursorStyle,...ct.wrapStyle}),ref:"textRef",innerHTML:ct.myText},null,14,_hoisted_3$6)),vue.renderSlot(ct.$slots,"toolbox",{},void 0,!0)],4))}const Text=_export_sfc$1(__default__$4,[["render",_sfc_render$C],["__scopeId","data-v-6056e029"]]),EcanText=withInstall$1(Text),_sfc_main$x=vue.defineComponent({name:"EcanScrollText",setup(){return{text:vue.ref("基础文本")}}}),ScrollText_vue_vue_type_style_index_0_scoped_4dd9c03e_lang="",_hoisted_1$n={class:"red"};function _sfc_render$B(ct,Dn,ur,dr,fr,hr){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$n,vue.toDisplayString(ct.text),1)}const ScrollText=_export_sfc$1(_sfc_main$x,[["render",_sfc_render$B],["__scopeId","data-v-4dd9c03e"]]),EcanScrollText=withInstall$1(ScrollText),timeDisplayProps={...props$1,name:"时间展示",keyName:"时间展示",type:"ecanTimeDisplay",format:"YYYY-MM-DD dddd HH:mm:ss",fontSize:"16px",color:"#333",width:"240px",height:"40px",fontFamily:"",fontWeight:400,textShadow:"",alignItems:"center",justifyContent:"center",operate:null,updateInterval:{value:1,mode:"second"}},timeDisplayComponentProps=transformToComponentProps(timeDisplayProps),timeDisplayEvents=["timeChange"],_sfc_main$w=vue.defineComponent({name:"EcanTimeDisplay",props:{...timeDisplayComponentProps},setup(ct){const{pageMode:Dn}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),ur=usePickComponentStyle(ct),dr=()=>{const{format:yr,operate:Cr}=ct;let br=dayjs();if(Cr){const{type:Ar,value:wr,mode:_r}=Cr;switch(Ar){case"add":br=br.add(wr,_r);break;case"minus":br=br.subtract(wr,_r)}}return br.format(yr)},fr=vue.ref();vue.watch(()=>[ct.operate,ct.format],()=>{fr.value=dr()},{immediate:!0,deep:!0}),vue.watch(()=>ct.updateInterval,()=>{gr()},{deep:!0});let hr=null;const vr=()=>{clearInterval(hr),hr=null},mr=useEmitEvent(ct)("timeChange",()=>{}),gr=()=>{hr&&vr();let yr=1e3;const{value:Cr,mode:br}=ct.updateInterval||{};Cr&&(yr=yr*Cr);const Ar={second:1,minute:60,hour:60*60,day:24*60*60};br&&(yr=yr*Ar[br]),hr=setInterval(()=>{fr.value=dr(),vue.unref(Dn)!=="design"&&mr()},yr)};return useOnEvent(ct,{timeChange:mr}),vue.onMounted(()=>{gr()}),vue.onUnmounted(()=>{vr()}),{style:ur,time:fr}}}),TimeDisplay_vue_vue_type_style_index_0_scoped_b9216314_lang="";function _sfc_render$A(ct,Dn,ur,dr,fr,hr){return vue.openBlock(),vue.createElementBlock("div",{class:"time-display",style:vue.normalizeStyle(ct.style)},vue.toDisplayString(ct.time),5)}const TimeDisplay=_export_sfc$1(_sfc_main$w,[["render",_sfc_render$A],["__scopeId","data-v-b9216314"]]),EcanTimeDisplay=withInstall$1(TimeDisplay),listProps={...props$1,type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#0d215e",itemColSpan:"0px",itemRowSpan:"10px",itemPadding:"20px",useRanking:!1,useTitle:!1,sliceCount:6,columnCount:1,itemHeight:"32px",data:[{name:"a",age:12},{name:"b",age:14}],columns:[{key:"name"},{key:"age"}],seqIcon:!1,isUseSeq:!1,seqWidth:"10%",seqName:"序号",seqFontSize:"14px",isAutoScroll:!1,scrollSpeed:10,graphicConfig:{},seqIconWidth:"",seqIconHeight:"",seqIconConfig:[],seqIconOffsetX:0,seqIconOffsetY:0,seqIndexFormatter:"{index}",itemWidth:"100%",associatId:""},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$v=vue.defineComponent({name:"EcanList",components:{Skeleton,ATooltip:antDesignVue.Tooltip,MarqueeScroll},props:{...listComponentProps},setup(ct,{expose:Dn}){const ur=vue.ref(!1),dr=vue.ref(),fr=usePickComponentStyle(ct,["backgroundColor"]),hr=(zr,Wr)=>{const{format:qr,customFormatter:Mr}=Wr;if(qr==null||qr==="")return zr;const Lr={money:formatMoney,percentage:formatPercentage,contrast:formatPercentage,custom:formatCustom};return Lr[qr]?qr==="custom"?Lr[qr](zr,Mr)||"":Lr[qr](zr)||"":""},vr=(zr,Wr)=>{const qr=parseFloat(zr+"");if(Wr!=="contrast")return"";switch(!0){case qr>=0:return"goUp";case qr<0:return"goDown"}};vue.watch(()=>ct.data,()=>{(ct.dataType==="static"||!vue.unref(dr))&&(dr.value=ct.data)},{immediate:!0,deep:!0});const pr=vue.computed(()=>({key:"SEQ",width:ct.seqWidth,title:ct.seqName,align:"center",fontSize:ct.seqFontSize})),mr=vue.computed(()=>{const{columns:zr,isUseSeq:Wr}=ct;return Wr?[vue.unref(pr),...zr]:zr}),gr=useDataSource({props:ct,loading:ur,setData:zr=>{var Mr;const{columns:Wr=[],rows:qr=[]}=((Mr=zr==null?void 0:zr.data)==null?void 0:Mr.data)??{};ct.dataType==="indicator"&&(ct.isUseSeq&&Wr.unshift(ct.seqName),mr.value.forEach((Lr,Fr)=>{const Dr=Wr[Fr];Dr&&(!ct.isUseSeq||Fr!==0)&&(Lr.title=Dr,Lr.key=Dr)})),dr.value=qr}}),yr=useEmitEvent(ct),{getGlobalModel:Cr,setGlobalModel:br}=vue.inject(GLOBAL_MODEL,{getGlobalModel:zr=>{},setGlobalModel:(zr,Wr)=>{}}),Ar=zr=>{yr("click",()=>{const Wr=Cr(ct.id);br(ct.id,{...Wr,type:ct.type,RECORD:zr})})()};useOnEvent(ct,{refreshData:gr,resetRecord:()=>{const zr=ct.id,Wr=Cr(zr);br(zr,{...Wr,type:ct.type,RECORD:""})}});const{setRequest:_r}=vue.inject(REQUEST_MODEL,{setRequest:({id:zr,sortNum:Wr,requestFn:qr})=>{}});typeof _r=="function"&&_r({id:ct.id,requestFn:gr,sortNum:ct.requestSort}),Dn({refreshData:gr});const Tr=(zr,Wr)=>({flex:zr.width?"none":"1",width:zr.width,height:ct.itemHeight,lineHeight:ct.itemHeight,textAlign:(Wr?zr.cellAlign:zr.align)||"left",backgroundColor:zr.cellColor}),Er=(zr,Wr)=>{let qr=0;const Mr=vue.unref(dr).map(Fr=>Fr[Wr]),Lr=Math.max(...Mr);return Lr&&(qr=zr[Wr]/Lr*100),qr},xr=zr=>{const{progressColor:Wr="#1890ff",progressGradientColor:qr=""}=zr;return qr?{background:`linear-gradient(to right, ${Wr} 0%, ${qr} 100%)`}:{backgroundColor:Wr||"#1890ff"}},Sr=vue.computed(()=>{const zr=parseFloat(ct.seqFontSize)+5;return{width:zr+10,height:zr}}),{pageMode:kr}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),Pr=vue.computed(()=>vue.unref(kr)!=="design"&&ct.isAutoScroll),Ir=zr=>{const{seqIconConfig:Wr}=ct;let qr=Wr.find(Mr=>Mr.key===zr+1);return qr||(qr=Wr.find(Mr=>Mr.key==="other")),!!(qr!=null&&qr.icon)},Br=(zr,Wr)=>{const{seqIconConfig:qr}=ct;let Mr=qr.find(Lr=>Lr.key===zr+1);return Mr||(Mr=qr.find(Lr=>Lr.key==="other")),Wr===1?Mr!=null&&Mr.icon?useImagePath(Mr.icon):"":Wr===2?(Mr==null?void 0:Mr.color)||"#fff":Wr===3?(Mr==null?void 0:Mr.showText)===void 0?!0:(Mr==null?void 0:Mr.showText)||"":""},Or=zr=>{const{seqIndexFormatter:Wr}=ct,qr=zr+1;return Wr?jn(Wr,{textData:{index:qr}},{useNewline:!1,useSpace:!0}):qr},Nr=(zr,Wr)=>{const{key:qr,progressTooltip:Mr}=Wr;return jn(Mr||"{value}",{textData:{value:zr[qr]}},{useNewline:!1,useSpace:!0})},jr=vue.computed(()=>parseFloat(ct.itemWidth)!==100?{height:"100%"}:{}),Vr=vue.computed(()=>!ct.itemWidth||ct.itemWidth==="100%"?"0":ct.itemColSpan);return{style:fr,formatFn:hr,contrastClass:vr,dataSource:dr,loading:ur,myColumns:mr,click:Ar,getColumnStyle:Tr,getPercentage:Er,getBackgroundColor:xr,isShowSeqIcon:Ir,getSeqIconData:Br,seqIcon4,seqIcon5,seqIcon6,seqIcon7,iconSize:Sr,isScroll:Pr,formatSeq:Or,formatTooltip:Nr,wrapStyle:jr,colSpan:Vr,getText:(zr,Wr)=>(zr.format!=null||zr.format!=="")&&hr(Wr[zr.key],zr)}}}),List_vue_vue_type_style_index_0_scoped_8612c8ea_lang="",List_vue_vue_type_style_index_1_lang="",_withScopeId$6=ct=>(vue.pushScopeId("data-v-8612c8ea"),ct=ct(),vue.popScopeId(),ct),_hoisted_1$m={key:0,class:"title"},_hoisted_2$b={key:0,class:"ranking"},_hoisted_3$5=["onClick"],_hoisted_4$3={key:0,class:"ranking"},_hoisted_5$3=_withScopeId$6(()=>vue.createElementVNode("div",{class:"icon"},null,-1)),_hoisted_6$3={class:"sort"},_hoisted_7$3=["src"],_hoisted_8$3={key:1},_hoisted_9$3=["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$z(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("a-tooltip"),pr=vue.resolveComponent("marquee-scroll"),mr=vue.resolveComponent("skeleton");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-list",style:vue.normalizeStyle(ct.style)},[vue.createVNode(mr,{loading:ct.loading},{default:vue.withCtx(()=>[ct.useTitle?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$m,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ct.columnCount,gr=>(vue.openBlock(),vue.createElementBlock("div",{class:"title-inner",style:vue.normalizeStyle({backgroundColor:ct.backgroundColor,height:ct.itemHeight,width:`calc(100% / ${ct.columnCount} - ${ct.itemColSpan} * ${ct.columnCount-1}/ ${ct.columnCount})`,marginRight:gr%ct.columnCount!==0?ct.itemColSpan:"",padding:`0 ${ct.itemPadding}`}),key:gr},[ct.useRanking?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$b)):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ct.myColumns,(yr,Cr)=>(vue.openBlock(),vue.createElementBlock("div",{class:"column",key:yr.key||Cr,style:vue.normalizeStyle({color:yr.titleColor,fontSize:yr.fontSize,...ct.getColumnStyle(yr)})},vue.toDisplayString(yr.title),5))),128))],4))),128))])):vue.createCommentVNode("",!0),ct.dataSource.length>0?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"ecan-list-content",style:vue.normalizeStyle({paddingTop:ct.useTitle?ct.itemRowSpan:0,height:ct.useTitle?"calc(100% - 40px)":"100%"})},[vue.createVNode(pr,{visible:ct.isScroll,step:ct.scrollSpeed,wrapStyle:{display:"flex",flexDirection:"column",flexWrap:"wrap",...ct.wrapStyle}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ct.dataSource.slice(0,ct.sliceCount),(gr,yr)=>(vue.openBlock(),vue.createElementBlock("div",{class:"item",style:vue.normalizeStyle({backgroundColor:ct.backgroundColor,height:ct.itemHeight,width:`calc(${ct.itemWidth} - ${ct.colSpan})`,marginRight:ct.colSpan,marginBottom:ct.itemRowSpan,padding:`0 ${ct.itemPadding}`}),key:gr.id||yr,onClick:Cr=>ct.click(gr)},[ct.useRanking?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$3,[_hoisted_5$3,vue.createElementVNode("div",_hoisted_6$3," Top "+vue.toDisplayString(yr+1),1)])):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ct.myColumns,Cr=>{var br;return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["column",ct.contrastClass(gr[Cr.key],Cr.format),Cr.key==="SEQ"?"seq-column":""]),key:Cr.key,style:vue.normalizeStyle({fontSize:Cr.fontSize,color:ct.contrastClass(gr[Cr.key],Cr.format)===""?Cr.color:"",fontWeight:Cr.fontWeight,...ct.getColumnStyle(Cr,"cell")})},[Cr.key==="SEQ"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[ct.seqIcon?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[(br=ct.seqIconConfig)!=null&&br.length?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"icon-box",style:vue.normalizeStyle({width:ct.seqIconWidth||"",height:ct.seqIconHeight||""})},[ct.seqIconWidth&&ct.seqIconHeight&&ct.isShowSeqIcon(yr)?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"custom-seq-icon",src:ct.getSeqIconData(yr,1),style:vue.normalizeStyle({width:ct.seqIconWidth,height:ct.seqIconHeight})},null,12,_hoisted_7$3)):vue.createCommentVNode("",!0),ct.getSeqIconData(yr,3)?(vue.openBlock(),vue.createElementBlock("span",{key:1,class:"custom-seq-text",style:vue.normalizeStyle({fontSize:ct.seqFontSize,color:ct.getSeqIconData(yr,2),lineHeight:ct.seqIconHeight||"",left:ct.seqIconOffsetX,top:ct.seqIconOffsetY})},vue.toDisplayString(ct.formatSeq(yr)),5)):vue.createCommentVNode("",!0)],4)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_8$3,[yr===0?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"seq-icon",src:ct.seqIcon4,width:ct.iconSize.width,height:ct.iconSize.height},null,8,_hoisted_9$3)):yr===1?(vue.openBlock(),vue.createElementBlock("img",{key:1,class:"seq-icon",src:ct.seqIcon5,width:ct.iconSize.width,height:ct.iconSize.height},null,8,_hoisted_10$2)):yr===2?(vue.openBlock(),vue.createElementBlock("img",{key:2,class:"seq-icon",src:ct.seqIcon6,width:ct.iconSize.width,height:ct.iconSize.height},null,8,_hoisted_11$2)):yr>=3?(vue.openBlock(),vue.createElementBlock("img",{key:3,class:"seq-icon",src:ct.seqIcon7,width:ct.iconSize.width,height:ct.iconSize.height},null,8,_hoisted_12$2)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:"seq-icon seq-text",style:vue.normalizeStyle({fontSize:ct.seqFontSize})},vue.toDisplayString(ct.formatSeq(yr)),5)]))],64)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_13$2,vue.toDisplayString(ct.formatSeq(yr)),1))],64)):Cr.format==="progress"?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"progress-cell",style:vue.normalizeStyle({height:ct.itemHeight})},[vue.createElementVNode("div",{class:"progress",style:vue.normalizeStyle({height:Cr.progressWidth||"14px",backgroundColor:Cr.progressBaseColor})},[vue.createVNode(vr,{title:ct.formatTooltip(gr,Cr),overlayClassName:"ecan-list-tooltip",color:"#fff"},{default:vue.withCtx(()=>[vue.createElementVNode("div",{style:vue.normalizeStyle({borderRadius:"10px",height:Cr.progressWidth||"14px",width:`${ct.getPercentage(gr,Cr.key)}%`,...ct.getBackgroundColor(Cr)})},null,4)]),_:2},1032,["title"])],4)],4)):(vue.openBlock(),vue.createElementBlock("span",{key:2,title:ct.getText(Cr,gr)},vue.toDisplayString(ct.getText(Cr,gr)),9,_hoisted_14$2))],6)}),128))],12,_hoisted_3$5))),128))]),_:1},8,["visible","step","wrapStyle"])],4)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_15$1," 暂无数据 "))]),_:1},8,["loading"]),vue.renderSlot(ct.$slots,"toolbox",{},void 0,!0)],4)}const List=_export_sfc$1(_sfc_main$v,[["render",_sfc_render$z],["__scopeId","data-v-8612c8ea"]]),EcanList=withInstall$1(List),proportionProps={...props$1,name:"占比图",keyName:"占比图",type:"ecanProportion",strokeType:"circle",width:"200px",height:"200px",strokeColor:"#4091f7",strokeLinecap:"round",trailColor:"#f5f5f5",data:{percent:.3},text:"{percent}{%}",fontSize:"26px",color:"#4091f7",variableColor:"#4091f7",strokeWidth:6,fontWeight:400,strokeTextWidth:"100%",lineHeight:"26px",decimalFormat:!0,variableDefaultValue:"0",strokeTextShow:!0,gradientShow:!0,gradientColor:"",gradientOffset:1,graphicConfig:{},lineTextPosition:"right",associatId:""},proportionComponentProps=transformToComponentProps(proportionProps),proportionEvents=["refreshData","click"],_sfc_main$u=vue.defineComponent({name:"EcanProportion",components:{AProgress:antDesignVue.Progress,Skeleton},props:{...proportionComponentProps},setup(ct,{expose:Dn}){const ur=vue.ref(!1),dr=vue.ref(!1),{pageMode:fr}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),hr=usePickComponentStyle(ct),vr=vue.computed(()=>{const xr=ct.width;return parseFloat(xr)}),pr=vue.ref({});vue.watch(()=>ct.data,()=>{(ct.dataType==="static"||vue.unref(fr)==="design")&&(pr.value=ct.data)},{immediate:!0,deep:!0});const mr=vue.computed(()=>{var Br;const xr=vue.unref(pr),Sr=+ct.variableDefaultValue;if(xr==null)return isNaN(Sr)?0:Sr;const kr=ct.text.match(/\{(.+?)\}/g)||[];let Pr;const Ir=new Set(Object.keys(xr));for(let Or=0;Or<kr.length;Or++){const Nr=kr[Or],jr=Nr.slice(1,Nr.length-1);if(Ir.has(jr)){Pr=xr[jr];break}}return typeof Pr=="number"?Pr=Pr*100:typeof Pr=="string"?isNaN(+Pr)?isNaN(parseFloat(Pr))||(Pr=parseFloat(Pr)):Pr=+Pr*100:isNaN(Sr)?Pr=0:Pr=Sr*100,ct.decimalFormat&&(Pr=+((Br=Number(Pr))==null?void 0:Br.toFixed(2))),Pr}),gr=vue.computed(()=>{var Ir;let xr=ct.text;if(xr==="")return vue.unref(mr);const Sr=ct.variableDefaultValue,kr=vue.unref(pr),Pr=xr.match(/\{(.+?)\}/g)||[];for(let Br=0;Br<Pr.length;Br++){const Or=Pr[Br];let Nr=Or.slice(1,Or.length-1);const jr=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,Vr=Or.match(jr);for(let zr=0;zr<(Vr==null?void 0:Vr.length);zr++){const Wr=(Ir=Vr[zr])==null?void 0:Ir.trim();kr[Wr]!=null&&(Nr=Nr.replace(Wr,kr[Wr]))}let $r=Nr;try{(/\(.*\)/g.test(Nr)||/[+/\\*]/g.test(Nr))&&($r=Cn(Nr))}catch(zr){console.error(zr)}typeof+$r=="number"&&!isNaN(+$r)?($r=+$r*100,ct.decimalFormat&&($r=$r==null?void 0:$r.toFixed(2))):typeof $r!="string"&&($r=Sr),$r==="percent"&&($r=Sr),xr=xr.replace(Or,`<span style="color: ${ct.variableColor};">${$r+""}</span>`)}return xr=xr==null?void 0:xr.replace(/\n|\\n/g,"<br/>"),vue.unref(dr)?"NaN":xr}),yr=(xr={})=>{pr.value=xr},Cr=xr=>{var kr;const{data:Sr}=(xr==null?void 0:xr.data)||{};if(Sr){dr.value=!1;const{columns:Pr=[],rows:Ir=[]}=((kr=xr==null?void 0:xr.data)==null?void 0:kr.data)??{};let Br={};if(Pr.length>0){const Or=Pr.find(Nr=>!!Nr);Or&&(Br={percent:Ir[Or]})}yr(Br)}else dr.value=!0,yr({percent:"NaN"})},br=useDataSource({props:ct,loading:ur,setData:xr=>{var Sr,kr;if(ct.dataType==="indicator")Cr(xr);else{const{rowsToData:Pr,rows:Ir}=((Sr=xr==null?void 0:xr.data)==null?void 0:Sr.data)||{};pr.value=((kr=xr==null?void 0:xr.data)==null?void 0:kr.data)||{},(Pr||Ir)&&(pr.value=Pr||Ir||{})}}});useOnEvent(ct,{refreshData:br}),Dn({refreshData:br});const wr=useEmitEvent(ct)("click",()=>{}),{setRequest:_r}=vue.inject(REQUEST_MODEL,{setRequest:({id:xr,sortNum:Sr,requestFn:kr})=>{}});typeof _r=="function"&&_r({id:ct.id,requestFn:br,sortNum:ct.requestSort});const Tr=vue.computed(()=>{const{gradientShow:xr,gradientColor:Sr,gradientOffset:kr,strokeColor:Pr}=ct;let Ir=Pr;return xr&&(ct.strokeType==="line"?Ir=`linear-gradient(90deg, ${Pr||"transparent"}, ${Sr||"transparent"} ${kr*100}%)`:Ir={"0%":Pr||"transparent",[`${kr*100}%`]:Sr||"transparent"}),Ir}),Er=vue.computed(()=>{let xr={};if(ct.lineTextPosition==="shadow"){const Sr=parseFloat(ct.height)/2-ct.strokeWidth/2-parseFloat(ct.fontSize)*1.5715+"px",kr=vue.unref(mr)-8;xr={position:"absolute",left:kr>0?kr+"%":"0",top:Sr}}return xr});return{style:hr,myWidth:vr,text:gr,myValue:mr,loading:ur,click:wr,customStrokeColor:Tr,shaDowStyle:Er}}}),Proportion_vue_vue_type_style_index_0_scoped_e0c8f182_lang="",_hoisted_1$l=["innerHTML"],_hoisted_2$a=["innerHTML"];function _sfc_render$y(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("skeleton"),pr=vue.resolveComponent("a-progress");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-proportion",style:vue.normalizeStyle(ct.style)},[ct.strokeType==="line"?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"progress",style:{"line-height":"1.5715"},onClick:Dn[0]||(Dn[0]=(...mr)=>ct.click&&ct.click(...mr))},[vue.createElementVNode("div",{class:"progress-main",style:vue.normalizeStyle({backgroundColor:ct.trailColor||"transparent",height:ct.strokeWidth+"px",flex:ct.lineTextPosition==="right"?1:"",marginRight:ct.strokeTextShow&&ct.lineTextPosition==="right"?"10px":""})},[vue.createElementVNode("div",{class:"progress-active",style:vue.normalizeStyle({background:ct.customStrokeColor,width:ct.myValue+"%"})},null,4)],4),ct.strokeTextShow?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"format",style:vue.normalizeStyle({fontSize:ct.fontSize,color:ct.color,fontWeight:ct.fontWeight,...ct.shaDowStyle})},[vue.createElementVNode("span",{style:{"white-space":"nowrap"},innerHTML:ct.text},null,8,_hoisted_1$l)],4)):vue.createCommentVNode("",!0)])):(vue.openBlock(),vue.createBlock(pr,{key:1,class:vue.normalizeClass(["progress",ct.gradientShow?"gradient":""]),percent:ct.myValue,width:ct.myWidth,type:ct.strokeType,strokeColor:ct.customStrokeColor,strokeLinecap:ct.strokeLinecap,trailColor:ct.trailColor||"transparent",strokeWidth:ct.strokeWidth,showInfo:ct.strokeTextShow,gapDegree:ct.strokeType==="dashboard"?75:0,onClick:ct.click},{format:vue.withCtx(()=>[ct.loading?(vue.openBlock(),vue.createBlock(vr,{key:0,loading:ct.loading},null,8,["loading"])):ct.strokeTextShow?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"format",style:vue.normalizeStyle({width:ct.strokeTextWidth,fontSize:ct.fontSize,color:ct.color,fontWeight:ct.fontWeight,lineHeight:ct.lineHeight})},[vue.createElementVNode("span",{style:{"white-space":"nowrap"},innerHTML:ct.text},null,8,_hoisted_2$a)],4)):vue.createCommentVNode("",!0)]),_:1},8,["class","percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","showInfo","gapDegree","onClick"])),vue.renderSlot(ct.$slots,"toolbox",{},void 0,!0)],4)}const Proportion=_export_sfc$1(_sfc_main$u,[["render",_sfc_render$y],["__scopeId","data-v-e0c8f182"]]),EcanProportion=withInstall$1(Proportion),counterProps={...props$1,name:"计数器",type:"ecanCounter",keyName:"计数器",width:"400px",height:"80px",zIndex:0,digits:5,counterBackgroundImage:"",color:"#333",unitInterval:15,fontSize:"20px",fontWeight:700,fontStyle:"normal",unitWidth:"65px",unitHeight:"72px",data:"",graphicConfig:{},associatId:"",text:"{value}"},counterComponentProps=transformToComponentProps(counterProps),counterEvents=["refreshData","click","resetRecord"],_sfc_main$t=vue.defineComponent({name:"EcanCounter",components:{Skeleton},props:{...counterComponentProps},setup(ct,{expose:Dn}){const ur=vue.ref(!1),dr=vue.ref(),fr=usePickComponentStyle(ct),hr=vue.computed(()=>({width:ct.unitWidth,height:ct.unitHeight,marginRight:ct.unitInterval+"px"})),vr=vue.computed(()=>({color:ct.color,fontSize:ct.fontSize,fontWeight:ct.fontWeight,fontStyle:ct.fontStyle}));vue.watch(()=>[ct.data,ct.dataType],([_r,Tr])=>{Tr==="static"&&(dr.value=_r)},{immediate:!0});const{getGlobalModel:pr,setGlobalModel:mr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:_r=>{},setGlobalModel:(_r,Tr)=>{}}),yr=useEmitEvent(ct)("click",()=>{const _r=pr(ct.id);mr(ct.id,{..._r,type:ct.type,value:vue.unref(dr)})}),Cr=()=>{const _r=ct.id,Tr=pr(_r);mr(_r,{...Tr,type:ct.type,value:""})},br=useDataSource({props:ct,loading:ur,setData:_r=>{var kr;const{columns:Tr,rows:Er,value:xr}=((kr=_r==null?void 0:_r.data)==null?void 0:kr.data)||{};let Sr={};if(xr&&(Sr.value=xr),Er&&typeof Er=="object"&&!Array.isArray(Er)&&Tr){const Pr=Tr.find(Ir=>!!Ir&&Ir!=="null");Sr={...Sr,...Er},Pr&&(Sr.value=Er[Pr]||"")}if(ct.text){const Pr=ct.text.match(/\{(.+?)\}/g)||[],Ir=new Set(Object.keys(Sr));for(let Br=0;Br<Pr.length;Br++){const Or=Pr[Br],Nr=Or.slice(1,Or.length-1);if(Ir.has(Nr)){dr.value=String(Sr[Nr]);break}}}else dr.value=String(Sr.value)||""}}),Ar=vue.computed(()=>{const _r=[],{digits:Tr}=ct,Er=vue.unref(dr)?vue.unref(dr).split("").reverse().join(""):"";for(let xr=0;xr<Tr;xr++)Er&&Er[xr]?_r.push(Er[xr]):_r.push("0");return _r.reverse()});useOnEvent(ct,{refreshData:br,resetRecord:Cr});const{setRequest:wr}=vue.inject(REQUEST_MODEL,{setRequest:({id:_r,sortNum:Tr,requestFn:Er})=>{}});return typeof wr=="function"&&wr({id:ct.id,requestFn:br,sortNum:ct.requestSort}),Dn({refreshData:br}),{style:fr,valueList:Ar,digitsStyle:hr,fontStyle:vr,loading:ur,useImagePath,click:yr}}}),Counter_vue_vue_type_style_index_0_scoped_e38bd147_lang="",_hoisted_1$k=["src"];function _sfc_render$x(ct,Dn,ur,dr,fr,hr){var pr;const vr=vue.resolveComponent("skeleton");return ct.loading?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:vue.normalizeStyle(ct.style)},[vue.createVNode(vr,{loading:ct.loading},null,8,["loading"])],4)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"ecan-counter",style:vue.normalizeStyle(ct.style),onClick:Dn[0]||(Dn[0]=(...mr)=>ct.click&&ct.click(...mr))},[(pr=ct.valueList)!=null&&pr.length?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:0},vue.renderList(ct.valueList,(mr,gr)=>(vue.openBlock(),vue.createElementBlock("div",{class:"digits-item",style:vue.normalizeStyle(ct.digitsStyle),key:gr},[ct.counterBackgroundImage?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"item-image",src:ct.useImagePath(ct.counterBackgroundImage)},null,8,_hoisted_1$k)):vue.createCommentVNode("",!0),vue.createElementVNode("div",{class:"item-text",style:vue.normalizeStyle(ct.fontStyle)},vue.toDisplayString(mr),5)],4))),128)):vue.createCommentVNode("",!0),vue.renderSlot(ct.$slots,"toolbox",{},void 0,!0)],4))}const Counter=_export_sfc$1(_sfc_main$t,[["render",_sfc_render$x],["__scopeId","data-v-e38bd147"]]),EcanCounter=withInstall$1(Counter),rectangleProps={...props$1,name:"矩形",keyName:"矩形",type:"ecanRectangle",width:"100px",height:"100px",zIndex:0,borderColor:"#eee",borderRadius:"5",borderStyle:"solid",borderWidth:"2px",backgroundColor:"#ffffff",textShadow:"",gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",isTransparent:!1},rectangleComponentProps=transformToComponentProps(rectangleProps),rectangleEvents=["click"],_sfc_main$s=vue.defineComponent({name:"EcanRectangle",props:{...rectangleComponentProps},setup(ct){const Dn=usePickComponentStyle(ct,["background"]),ur=vue.computed(()=>{const{isTransparent:mr,gradientShow:gr,gradientColor:yr,gradientOffset:Cr,gradientAngle:br,backgroundColor:Ar}=ct;if(gr){let wr=yr;return mr&&(wr="transparent"),wr?{background:`linear-gradient(${br}, ${Ar}, ${wr} ${Cr*100}%)`}:{}}else return{}}),{theme:dr}=vue.inject(GLOBAL_CONFIG,{theme:"light"}),fr=vue.computed(()=>({width:"100%",height:"100%"})),hr=vue.computed(()=>{const{borderRadius:mr}=ct,gr=[],yr={};if(mr){const Cr=mr.split(",");for(const br of Cr)(+br||+br==0)&&gr.push(+br+"px")}return gr!=null&&gr.length&&(yr.borderRadius=gr.join(" ")),yr}),pr=useEmitEvent(ct)("click",()=>{});return useOnEvent(ct,{click:pr}),{style:Dn,gradientStyle:ur,borderStyle:fr,theme:dr,borderRadiusStyle:hr,click:pr}}}),Rectangle_vue_vue_type_style_index_0_scoped_c2e91e7f_lang="";function _sfc_render$w(ct,Dn,ur,dr,fr,hr){return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-rectangle",style:vue.normalizeStyle({...ct.style,...ct.gradientStyle,...ct.borderRadiusStyle}),onClick:Dn[0]||(Dn[0]=(...vr)=>ct.click&&ct.click(...vr))},[vue.createElementVNode("div",{class:"no-title",style:vue.normalizeStyle(ct.borderStyle)},null,4)],4)}const Rectangle=_export_sfc$1(_sfc_main$s,[["render",_sfc_render$w],["__scopeId","data-v-c2e91e7f"]]),EcanRectangle=withInstall$1(Rectangle),inputProps={...props$1,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px",limitNumber:!1},inputComponentProps=transformToComponentProps(inputProps),inputEvents=["inputChange","inputBlur"],_sfc_main$r=vue.defineComponent({name:"EcanInput",components:{AInput:antDesignVue.Input},props:{...inputComponentProps},setup(ct){const Dn=usePickComponentStyle(ct),ur=vue.ref(""),{getGlobalModel:dr,setGlobalModel:fr,getRecordValueByKeyName:hr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Cr=>{},setGlobalModel:(Cr,br)=>{},getRecordValueByKeyName:Cr=>{}});vue.watch(()=>ct.value,Cr=>{const br=hr(Cr);ur.value=decodeURIComponent([void 0,null].includes(br)||typeof br=="number"&&isNaN(br)?"":br)},{immediate:!0}),fr(ct.id,{type:ct.type,value:ur});const vr=()=>{const Cr=dr(ct.id);fr(ct.id,{...Cr,RECORD:ur})},pr=useEmitEvent(ct),mr=lodashEs.debounce(pr("inputChange",()=>{vr()}),300),gr=pr("inputBlur",()=>{});return{style:Dn,myValue:ur,inputBlur:gr,inputInput:()=>{ct.limitNumber&&(ur.value=ur.value.replace(/\D/g,""))},inputChange:mr}}}),Input_vue_vue_type_style_index_0_lang="";function _sfc_render$v(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("a-input");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-input",style:vue.normalizeStyle(ct.style)},[vue.createVNode(vr,{class:"input",value:ct.myValue,"onUpdate:value":Dn[0]||(Dn[0]=pr=>ct.myValue=pr),placeholder:ct.placeholder,onChange:ct.inputChange,onBlur:ct.inputBlur,onInput:ct.inputInput,style:vue.normalizeStyle({fontSize:ct.optionFontSize})},null,8,["value","placeholder","onChange","onBlur","onInput","style"])],4)}const Input=_export_sfc$1(_sfc_main$r,[["render",_sfc_render$v]]),EcanInput=withInstall$1(Input),datePickerProps$1={...props$1,height:"33px",width:"130px",id:"",left:"0px",top:"0px",name:"日期选择器",keyName:"日期选择器",rotate:"",type:"ecanDatePicker",value:"",picker:"date",format:"YYYY-MM-DD",showTime:!1,useCurrentTime:!0,operate:null,optionFontSize:"14px",limitStartTime:"",limitEndTime:"",data:""},datePickerComponentProps=transformToComponentProps(datePickerProps$1),datePickerEvents=["dateChange","refreshData"],__default__$3=vue.defineComponent({name:"EcanDatePicker",props:{...datePickerComponentProps},components:{ADatePicker:antDesignVue.DatePicker,AInput:antDesignVue.Input,CalendarOutlined:CalendarOutlined$1,CloseCircleFilled:CloseCircleFilled$1},setup(ct){const Dn=vue.inject("isMobile",!1),ur=vue.inject("scaleValue",{widthScale:1,heightScale:1}),dr=usePickComponentStyle(ct),fr=()=>document.getElementById("norPageConfig")||document.body,hr=vue.ref(),vr=vue.ref(0),pr=vue.ref(null),mr=vue.ref(null),gr=vue.ref(""),yr=vue.ref(!1),Cr=vue.ref([]),br=vue.ref(""),Ar=vue.computed(()=>{let Kr=["year","month","day"];switch(ct.picker){case"year":Kr=["year"];break;case"month":Kr=["year","month"];break}return Kr}),{setGlobalModel:wr,getGlobalModel:_r}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Kr=>{},setGlobalModel:(Kr,Hr)=>{}}),{pageId:Tr}=vue.inject("templateOperate",{pageId:""})||{};wr(ct.id,{type:ct.type,format:ct.format,useCurrentTime:ct.useCurrentTime,value:pr,RECORD:pr});const{getGlobalVar:Er}=vue.inject(GLOBAL_CONFIG,{getGlobalVar:Kr=>{}}),xr=useEmitEvent(ct),Sr=Kr=>{const Hr=ct.id,Ur=_r(Hr);wr(Hr,{...Ur,value:Kr||"",RECORD:Kr||""})},kr=xr("refreshData",Kr=>{Sr(Kr)});vue.watch(()=>[ct.value,ct.useCurrentTime,ct.operate,br.value],([Kr,Hr,Ur,Jr])=>{let Yr=null,si=Kr;if(ct.dataType==="request"&&(si=Jr),si){const fi=si.match(/\{(.+?)\}/g);if(fi){const _i={};for(let bi of fi){const pi=bi.slice(1,-1).trim(),mi=_r(pi);if(mi)_i[pi]=mi.value.format(mi.format);else if(pi.includes("$page")){const xi=pi.replace(/[$.]/g,""),ni=pi.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");si=si.replace(new RegExp(ni,"g"),xi),_i[xi]=Er(pi)}}Yr=dayjs(jn(si,{textData:_i}))}else Yr=dayjs(jn(si))}else Hr&&(Yr=dayjs());if(Ur&&Yr){const{type:fi,value:_i,mode:bi}=Ur;switch(fi){case"add":Yr=Yr.add(_i,bi);break;case"minus":Yr=Yr.subtract(_i,bi)}}pr.value=Yr,mr.value=Yr,vue.unref(Dn)&&Wr(Yr),kr(Yr)},{deep:!0,immediate:!0});const Pr=xr("dateChange",()=>{Sr(vue.unref(pr))}),Ir=()=>{const Kr=getNewValueFromUrlParams(Tr,ct.keyName,"value");Kr&&(pr.value=dayjs(Kr)),Sr(vue.unref(pr))},Br=()=>{vue.unref(pr)&&Pr()};useOnEvent(ct,{dateChange:Pr,updateByUrlParams:Ir});const Or=vue.ref({fontSize:ct.optionFontSize}),Nr=Kr=>{var Hr,Ur,Jr;if(Kr){const Yr=(Hr=vue.unref(hr))==null?void 0:Hr.getBoundingClientRect();if(Yr){const si=Yr.left/(((Ur=vue.unref(ur))==null?void 0:Ur.widthScale)||1)+"px",fi=(Yr.top+Yr.height)/(((Jr=vue.unref(ur))==null?void 0:Jr.heightScale)||1)+"px";setTimeout(()=>{var pi,mi,xi,ni,ai;const _i=document.querySelectorAll(".ecan-date-picker-dropdown"),bi=Array.from(_i).filter(Xr=>window.getComputedStyle(Xr).display!=="none");if(bi!=null&&bi.length){const Xr=document.getElementById("norPageConfig");bi[0].classList.add("fl-date-picker-dropdown"),(pi=Xr==null?void 0:Xr.style)==null||pi.setProperty("--date-picker-dropdown-top",fi),vue.unref(vr)?((mi=Xr==null?void 0:Xr.style)==null||mi.setProperty("--date-picker-dropdown-left","auto"),(xi=Xr==null?void 0:Xr.style)==null||xi.setProperty("--date-picker-dropdown-right",vue.unref(vr)+"px")):((ni=Xr==null?void 0:Xr.style)==null||ni.setProperty("--date-picker-dropdown-left",si),(ai=Xr==null?void 0:Xr.style)==null||ai.setProperty("--date-picker-dropdown-right","auto")),vue.unref(Or).visibility="visible"}},200)}}else delete vue.unref(Or).visibility};vue.onMounted(()=>{setTimeout(()=>{const Kr=document.querySelector(`#ecan-date-picker-${ct.id}`);if(Kr){const Hr=Kr.getBoundingClientRect(),Ur=vue.unref(ur).widthScale*280,Jr=document.body.clientWidth;Jr-Hr.left<Ur&&(vr.value=(Jr-Hr.left-Hr.width)/vue.unref(ur).widthScale)}},0)});const jr=()=>{Wr(vue.unref(pr)),yr.value=!0},Vr=()=>{Wr(),pr.value=null},$r=()=>{const Kr=dayjs(vue.unref(Cr).join("-"));pr.value=Kr,Wr(Kr),yr.value=!1,Br()},zr=()=>{pr.value=dayjs(),Wr(),gr.value=dayjs().format(ct.format),yr.value=!1};function Wr(Kr){Cr.value=qr(Kr||dayjs()),gr.value=(Kr==null?void 0:Kr.format(ct.format))||""}function qr(Kr){const Hr=[];for(const Ur of vue.unref(Ar))Ur==="day"?Hr.push(Kr.date()):Hr.push(Kr[Ur]()+(Ur==="month"?1:0));return Hr}const Mr=Kr=>{let Hr=!1,{limitStartTime:Ur,limitEndTime:Jr}=ct,Yr=ct.picker;const si={current:vue.unref(mr)};return ct.picker==="date"&&(Yr="day"),Ur=jn(Ur,{textData:si}),Jr=jn(Jr,{textData:si}),Ur&&Jr?Hr=!(dayjs(Ur).isBefore(Kr,Yr)&&Kr.isBefore(dayjs(Jr),Yr)):Ur?Hr=Kr.isBefore(dayjs(Ur),Yr):Jr&&(Hr=dayjs(Jr).isBefore(Kr,Yr)),Hr},Lr=(Kr={})=>{var Hr;if((Hr=Object.keys(Kr))!=null&&Hr.length)for(const Ur in Kr)br.value=Kr[Ur]},Fr=useRequestData(ct),Dr=vue.ref(!1),Gr=async()=>{var Kr,Hr,Ur;try{Dr.value=!0;const Jr=await Fr();(Kr=Jr==null?void 0:Jr.data)!=null&&Kr.data.rowsToData?Lr(((Hr=Jr==null?void 0:Jr.data)==null?void 0:Hr.data.rowsToData)||{}):Lr(((Ur=Jr==null?void 0:Jr.data)==null?void 0:Ur.data)||{})}catch(Jr){console.error(Jr)}finally{Dr.value=!1}},Rr=async()=>{switch(ct.dataType){case"request":{await Gr();break}}},{setRequest:Qr}=vue.inject(REQUEST_MODEL,{setRequest:({id:Kr,sortNum:Hr,requestFn:Ur})=>{}});return typeof Qr=="function"&&Qr({id:ct.id,requestFn:Rr,sortNum:ct.requestSort}),{style:dr,getPopupContainer:fr,myValue:pr,locale,change:Br,scaleValue:ur,popupStyle:Or,openChange:Nr,isMobile:Dn,mobileDateStr:gr,handleClearDate:Vr,openDatePick:jr,datePickVisible:yr,columnsType:Ar,mobileDate:Cr,datePickerRef:hr,onConfirmDate:$r,onCancelDate:zr,disabledDate:Mr}}}),__injectCSSVars__$3=()=>{vue.useCssVars(ct=>({"60120e64":ct.optionFontSize}))},__setup__$3=__default__$3.setup;__default__$3.setup=__setup__$3?(ct,Dn)=>(__injectCSSVars__$3(),__setup__$3(ct,Dn)):__injectCSSVars__$3;const DatePicker_vue_vue_type_style_index_0_scoped_d3fec5b5_lang="",DatePicker_vue_vue_type_style_index_1_lang="",_hoisted_1$j=["id"];function _sfc_render$u(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("calendar-outlined"),pr=vue.resolveComponent("close-circle-filled"),mr=vue.resolveComponent("a-input"),gr=vue.resolveComponent("van-date-picker"),yr=vue.resolveComponent("van-popup"),Cr=vue.resolveComponent("a-date-picker");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-date-picker",style:vue.normalizeStyle(ct.style),id:"ecan-date-picker-"+ct.id,ref:"datePickerRef"},[ct.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(mr,{value:ct.mobileDateStr,placeholder:"请选择日期",readonly:"",onClick:ct.openDatePick},vue.createSlots({prefix:vue.withCtx(()=>[vue.createVNode(vr,{style:{color:"#b0b0b0","padding-right":"5px"}})]),_:2},[ct.mobileDateStr?{name:"suffix",fn:vue.withCtx(()=>[vue.createVNode(pr,{style:{color:"#b0b0b0"},onClick:vue.withModifiers(ct.handleClearDate,["stop"])},null,8,["onClick"])])}:void 0]),1032,["value","onClick"]),vue.createVNode(yr,{show:ct.datePickVisible,"onUpdate:show":Dn[1]||(Dn[1]=br=>ct.datePickVisible=br),style:{"z-index":"999999"},"overlay-style":{background:"rgba(0, 0, 0, .3)",zIndex:999999},position:"bottom",teleport:"#app"},{default:vue.withCtx(()=>[ct.datePickVisible?(vue.openBlock(),vue.createBlock(gr,{key:0,modelValue:ct.mobileDate,"onUpdate:modelValue":Dn[0]||(Dn[0]=br=>ct.mobileDate=br),"columns-type":ct.columnsType,"cancel-button-text":"此刻",onConfirm:ct.onConfirmDate,onCancel:ct.onCancelDate},null,8,["modelValue","columns-type","onConfirm","onCancel"])):vue.createCommentVNode("",!0)]),_:1},8,["show","overlay-style"])],64)):(vue.openBlock(),vue.createBlock(Cr,{key:1,class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:ct.myValue,"onUpdate:value":Dn[2]||(Dn[2]=br=>ct.myValue=br),format:ct.format,picker:ct.picker,showTime:ct.showTime,locale:ct.locale,onChange:ct.change,onOpenChange:ct.openChange,"disabled-date":ct.disabledDate,getPopupContainer:ct.getPopupContainer,popupStyle:ct.popupStyle},null,8,["value","format","picker","showTime","locale","onChange","onOpenChange","disabled-date","getPopupContainer","popupStyle"]))],12,_hoisted_1$j)}const DatePicker$1=_export_sfc$1(__default__$3,[["render",_sfc_render$u],["__scopeId","data-v-d3fec5b5"]]),EcanDatePicker=withInstall$1(DatePicker$1),rangePickerProps={...props$1,name:"日期范围选择器",keyName:"日期范围选择器",type:"ecanRangePicker",width:"250px",height:"35px",picker:"date",format:"YYYY-MM-DD",startTime:"",endTime:"",useCurrentTime:!0,interval:1,intervalUnit:"year",operate:null,limitStartTime:"",limitEndTime:"",associated:"",optionFontSize:"14px",isAllowSpanYear:!0,limitInterval:null},rangePickerComponentProps=transformToComponentProps(rangePickerProps),rangePickerEvents=["dateChange"];var quarterOfYear$1={exports:{}};(function(ct,Dn){(function(ur,dr){ct.exports=dr()})(commonjsGlobal,function(){var ur="month",dr="quarter";return function(fr,hr){var vr=hr.prototype;vr.quarter=function(gr){return this.$utils().u(gr)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(gr-1))};var pr=vr.add;vr.add=function(gr,yr){return gr=Number(gr),this.$utils().p(yr)===dr?this.add(3*gr,ur):pr.bind(this)(gr,yr)};var mr=vr.startOf;vr.startOf=function(gr,yr){var Cr=this.$utils(),br=!!Cr.u(yr)||yr;if(Cr.p(gr)===dr){var Ar=this.quarter()-1;return br?this.month(3*Ar).startOf(ur).startOf("day"):this.month(3*Ar+2).endOf(ur).endOf("day")}return mr.bind(this)(gr,yr)}}})})(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(ct){const Dn=vue.inject("isMobile",!1),ur=vue.inject("scaleValue",{widthScale:1,heightScale:1}),{pageMode:dr,getGlobalVar:fr}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",getGlobalVar:ai=>{}}),{getGlobalModel:hr,setGlobalModel:vr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:ai=>{},setGlobalModel:(ai,Xr)=>{}}),pr=vue.ref(0),mr=vue.ref(),gr=vue.ref({fontSize:ct.optionFontSize}),yr=usePickComponentStyle(ct),Cr=()=>document.getElementById("norPageConfig")||document.body,br=vue.ref([null,null]),Ar=vue.ref(!1),wr=vue.ref([]),_r=vue.ref([]),Tr=vue.ref(),Er=vue.ref(),xr=vue.ref(),Sr=vue.ref(),kr=vue.ref(0),Pr=vue.ref({}),Ir=vue.ref(""),Br=vue.computed(()=>{let ai=["year","month","day"];switch(ct.picker){case"year":ai=["year"];break;case"month":ai=["year","month"];break}return ai}),Or=ai=>{const Xr=ai?String(ai).match(/\{(.+?)\}/g):"";let vi;if(Xr){const Si={};for(let ri of Xr){const yi=ri.slice(1,-1).trim(),di=hr(yi);if(di)Si[yi]=di.value.format(di.format);else if(yi.includes("$page")){const Ei=yi.replace(/[$.]/g,""),Oi=yi.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");ai=ai.replace(new RegExp(Oi,"g"),Ei),Si[Ei]=fr(yi)}}vi=dayjs(jn(ai,{textData:Si}))}else vi=dayjs(jn(ai));return vi};vue.watch(()=>[ct.startTime,ct.endTime,ct.useCurrentTime,ct.interval,ct.intervalUnit,ct.operate],([ai,Xr,vi,Si,ri,yi])=>{if(vue.unref(br).every(di=>!di)||vue.unref(dr)==="design"){let di=null,Ei=null;if(vi&&(di=dayjs().subtract(Si,ri),Ei=dayjs()),ai&&(di=Or(ai)),Xr&&(Ei=Or(Xr)),yi){const{type:Oi,value:Li,mode:Ri}=yi;switch(Oi){case"add":di=di&&di.add(Li,Ri),Ei=Ei&&Ei.add(Li,Ri);break;case"minus":di=di&&di.subtract(Li,Ri),Ei=Ei&&Ei.subtract(Li,Ri)}}br.value=[di,Ei],vue.unref(Dn)&&xi()}},{immediate:!0});let Nr=vue.unref(br)[0],jr=vue.unref(br)[1],Vr="";const $r=(ai,Xr,vi)=>{Array.isArray(ai)?(Nr=ai[0],jr=ai[1],Vr=vi.range):(Nr=null,jr=null)},zr=ai=>{let Xr=!1,{limitStartTime:vi,limitEndTime:Si}=ct;const ri={startTime:`${Nr||""}`,endTime:`${jr||""}`};if(vi=jn(vi,{codeData:ri}),Si=jn(Si,{codeData:ri}),vi&&Si?Xr=!(dayjs(vi)<ai&&ai<dayjs(Si)):vi?Xr=dayjs(vi)>ai:Si&&(Xr=dayjs(Si)<ai),!ct.isAllowSpanYear&&Vr){let yi=null;if(Vr==="start"?yi=Nr:Vr==="end"&&(yi=jr),yi){const di=yi.startOf("year"),Ei=yi.endOf("year");Xr=!(di<=ai&&ai<Ei)}}if(!Xr){const{value:yi=0,mode:di="year"}=ct.limitInterval||{};yi&&(Vr==="start"?Xr=Nr.add(yi,di)<ai:Vr==="end"&&(Xr=jr.subtract(yi,di)>ai))}return Xr},Wr=vue.computed(()=>Array.isArray(vue.unref(br))?vue.unref(br)[0]:null),qr=vue.computed(()=>Array.isArray(vue.unref(br))?vue.unref(br)[1]:null);vue.watch(()=>[Wr.value,qr.value],([ai,Xr])=>{ai&&Xr&&(Ir.value=`${dayjs(ai).format(ct.format)} 至 ${dayjs(Xr).format(ct.format)}`)});const{pageId:Mr}=vue.inject("templateOperate",{pageId:""})||{};vr(ct.id,{type:ct.type,format:ct.format,startTime:Wr,endTime:qr,interval:ct.interval,intervalUnit:ct.intervalUnit,useCurrentTime:ct.useCurrentTime,operate:ct.operate});const Lr=useEmitEvent(ct);let Fr=!1;const Dr=Lr("dateChange",()=>{}),Gr=()=>{var vi;const ai=getNewValueFromUrlParams(Mr,ct.keyName,"startTime"),Xr=getNewValueFromUrlParams(Mr,ct.keyName,"endTime");(vi=br.value)!=null&&vi.length||(br.value=[null,null]),ai&&(br.value[0]=dayjs(ai)),Xr&&(br.value[1]=dayjs(Xr))},Rr=ai=>{var Si,ri,yi;const Xr=vue.unref(br),vi=Xr&&Xr[0]&&Xr[1];if(ai===!1&&Fr===!0&&vi&&(Dr(),Fr=!1),!ai)Vr="",delete vue.unref(gr).visibility;else{const di=(Si=vue.unref(mr))==null?void 0:Si.getBoundingClientRect();if(di){const Ei=di.left/(((ri=vue.unref(ur))==null?void 0:ri.widthScale)||1)+"px",Oi=(di.top+di.height)/(((yi=vue.unref(ur))==null?void 0:yi.heightScale)||1)+"px";setTimeout(()=>{var hi,Ci,Di,$i,Fi;const Li=document.querySelectorAll(".ecan-range-picker-dropdown"),Ri=Array.from(Li).filter(qi=>window.getComputedStyle(qi).display!=="none");if(Ri!=null&&Ri.length){const qi=document.getElementById("norPageConfig");Ri[0].classList.add("fl-range-picker-dropdown"),(hi=qi==null?void 0:qi.style)==null||hi.setProperty("--range-picker-dropdown-top",Oi),vue.unref(pr)?((Ci=qi==null?void 0:qi.style)==null||Ci.setProperty("--range-picker-dropdown-left","auto"),(Di=qi==null?void 0:qi.style)==null||Di.setProperty("--range-picker-dropdown-right",vue.unref(pr)+"px")):(($i=qi==null?void 0:qi.style)==null||$i.setProperty("--range-picker-dropdown-left",Ei),(Fi=qi==null?void 0:qi.style)==null||Fi.setProperty("--date-picker-dropdown-right","auto")),vue.unref(gr).visibility="visible"}},200)}}},Qr=()=>{Fr=!0},Kr=()=>{const{associated:ai}=ct;if(ai){const Xr=hr(ai)||{};if(Xr){const{value:vi}=Xr;if(vi)switch(vue.unref(vi)){case"day":br.value=[dayjs().startOf("day"),dayjs().endOf("day")];break;case"month":br.value=[dayjs().startOf("month"),dayjs().endOf("month")];break;case"lastMonth":br.value=[dayjs().subtract(1,"month").startOf("month"),dayjs().subtract(1,"month").endOf("month")];break;case"monthStartToToday":br.value=[dayjs().startOf("month"),dayjs().endOf("day")];break;case"quarter":br.value=[dayjs().startOf("quarter"),dayjs().endOf("quarter")];break;case"year":br.value=[dayjs().startOf("year"),dayjs().endOf("year")];break;case"yesterday":br.value=[dayjs().startOf("day").subtract(1,"days"),dayjs().endOf("day").subtract(1,"days")];break;case"week":br.value=[dayjs().startOf("week"),dayjs().endOf("week")];break}}}Dr()},Hr=()=>{pi(vue.unref(br)),Ar.value=!0},Ur=()=>{pi(),Ir.value="",br.value=[null,null]},Jr=()=>{br.value=[dayjs(vue.unref(wr).join("-")),dayjs(vue.unref(_r).join("-"))],pi(vue.unref(br)),mi(),_i(),Ar.value=!1,Dr()},Yr=()=>{bi(),Ar.value=!1},si=()=>{var ai,Xr;(ai=vue.unref(wr))!=null&&ai.length&&ct.format&&(xr.value=new Date(vue.unref(wr).join("-")),(Xr=vue.unref(_r))!=null&&Xr.length&&dayjs(vue.unref(_r).join("-")).isBefore(dayjs(vue.unref(wr).join("-")))&&(_r.value=lodashEs.cloneDeep(vue.unref(wr))))},fi=()=>{var ai,Xr;(ai=vue.unref(_r))!=null&&ai.length&&ct.format&&(Er.value=new Date(vue.unref(_r).join("-")),(Xr=vue.unref(wr))!=null&&Xr.length&&dayjs(vue.unref(wr).join("-")).isAfter(dayjs(vue.unref(_r).join("-")))&&(wr.value=lodashEs.cloneDeep(vue.unref(_r))))};function _i(){Pr.value={startMinDate:lodashEs.cloneDeep(vue.unref(Tr)),startMaxDate:lodashEs.cloneDeep(vue.unref(Er)),endMinDate:lodashEs.cloneDeep(vue.unref(xr)),endMaxDate:lodashEs.cloneDeep(vue.unref(Sr))}}function bi(){Tr.value=vue.unref(Pr).startMinDate,Er.value=vue.unref(Pr).startMaxDate,xr.value=vue.unref(Pr).endMinDate,Sr.value=vue.unref(Pr).endMaxDate}function pi(ai=[]){wr.value=ni(ai[0]||dayjs()),_r.value=ni(ai[1]||dayjs())}function mi(){var vi,Si;const ai=(vi=vue.unref(wr))!=null&&vi.length?dayjs(vue.unref(wr).join("-")):"",Xr=(Si=vue.unref(_r))!=null&&Si.length?dayjs(vue.unref(_r).join("-")):"";Ir.value=ai&&Xr&&`${ai.format(ct.format)} 至 ${Xr.format(ct.format)}`}function xi(){const{limitStartTime:ai,limitEndTime:Xr,limitInterval:vi,isAllowSpanYear:Si}=ct;pi(vue.unref(br)),ai&&(Tr.value=new Date(ai),xr.value=new Date(ai),vue.unref(br)[0].isBefore(dayjs(ai))&&(vue.unref(br)[0]=dayjs(ai),wr.value=ni(vue.unref(br)[0]))),Xr&&(Er.value=new Date(Xr),Sr.value=new Date(Xr),vue.unref(br)[1].isAfter(dayjs(Xr))&&(vue.unref(br)[1]=dayjs(Xr),_r.value=ni(vue.unref(br)[1]))),vue.unref(br).every(ri=>ri)&&(vi!=null&&vi.value)&&vue.unref(br)[1].diff(vue.unref(br)[0],vi.mode)>vi.value&&(vue.unref(br)[0]=vue.unref(br)[1].subtract(vi.value,vi.mode),wr.value=ni(vue.unref(br)[0])),vue.unref(br).every(ri=>ri)&&!Si&&vue.unref(br)[0].year()!==vue.unref(br)[1].year()&&(vue.unref(br)[0]=dayjs(`${vue.unref(br)[1].year()}-01-01`),wr.value=ni(vue.unref(br)[0])),_i(),mi()}function ni(ai){const Xr=[];for(const vi of vue.unref(Br))vi==="day"?Xr.push(ai.date()):Xr.push(ai[vi]()+(vi==="month"?1:0));return Xr}return vue.onMounted(()=>{setTimeout(()=>{const ai=document.querySelector(`#ecan-range-picker-${ct.id}`);if(ai){const Xr=ai.getBoundingClientRect(),vi=vue.unref(ur).widthScale*560,Si=document.body.clientWidth;Si-Xr.left<vi&&(pr.value=(Si-Xr.left-Xr.width)/vue.unref(ur).widthScale)}},0)}),useOnEvent(ct,{dateChange:Kr,updateByUrlParams:Gr}),{style:yr,getPopupContainer:Cr,locale,dateChange:Dr,myValue:br,disabledDate:zr,calendarChange:$r,openChange:Rr,change:Qr,isMobile:Dn,mobileDateStr:Ir,datePickVisible:Ar,columnsType:Br,openDatePick:Hr,handleClearDate:Ur,onConfirmDate:Jr,onCancelDate:Yr,mobileStartDate:wr,mobileEndDate:_r,startMinDate:Tr,startMaxDate:Er,endMinDate:xr,endMaxDate:Sr,pickerTabKey:kr,rangePickerRef:mr,popupStyle:gr,onStartDateChange:si,onEndDateChange:fi}}}),__injectCSSVars__$2=()=>{vue.useCssVars(ct=>({"3ad444e3":ct.optionFontSize}))},__setup__$2=__default__$2.setup;__default__$2.setup=__setup__$2?(ct,Dn)=>(__injectCSSVars__$2(),__setup__$2(ct,Dn)):__injectCSSVars__$2;const RangePicker_vue_vue_type_style_index_0_scoped_ef43e030_lang="",RangePicker_vue_vue_type_style_index_1_lang="",_hoisted_1$i=["id"];function _sfc_render$t(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("calendar-outlined"),pr=vue.resolveComponent("close-circle-filled"),mr=vue.resolveComponent("a-input"),gr=vue.resolveComponent("van-date-picker"),yr=vue.resolveComponent("van-picker-group"),Cr=vue.resolveComponent("van-popup"),br=vue.resolveComponent("a-range-picker");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-range-picker",style:vue.normalizeStyle(ct.style),id:"ecan-range-picker-"+ct.id,ref:"rangePickerRef"},[ct.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(mr,{value:ct.mobileDateStr,placeholder:"请选择日期范围",readonly:"",onClick:ct.openDatePick},vue.createSlots({prefix:vue.withCtx(()=>[vue.createVNode(vr,{style:{color:"#b0b0b0","padding-right":"5px"}})]),_:2},[ct.mobileDateStr?{name:"suffix",fn:vue.withCtx(()=>[vue.createVNode(pr,{style:{color:"#b0b0b0"},onClick:vue.withModifiers(ct.handleClearDate,["stop"])},null,8,["onClick"])])}:void 0]),1032,["value","onClick"]),vue.createVNode(Cr,{show:ct.datePickVisible,"onUpdate:show":Dn[3]||(Dn[3]=Ar=>ct.datePickVisible=Ar),style:{"z-index":"999999"},"overlay-style":{background:"rgba(0, 0, 0, .3)",zIndex:999999},position:"bottom",teleport:"#app"},{default:vue.withCtx(()=>[ct.datePickVisible?(vue.openBlock(),vue.createBlock(yr,{key:0,"active-tab":ct.pickerTabKey,"onUpdate:active-tab":Dn[2]||(Dn[2]=Ar=>ct.pickerTabKey=Ar),tabs:["开始日期","结束日期"],onConfirm:ct.onConfirmDate,onCancel:ct.onCancelDate},{default:vue.withCtx(()=>[vue.createVNode(gr,{modelValue:ct.mobileStartDate,"onUpdate:modelValue":Dn[0]||(Dn[0]=Ar=>ct.mobileStartDate=Ar),"min-date":ct.startMinDate,"max-date":ct.startMaxDate,"columns-type":ct.columnsType,onChange:ct.onStartDateChange},null,8,["modelValue","min-date","max-date","columns-type","onChange"]),vue.createVNode(gr,{modelValue:ct.mobileEndDate,"onUpdate:modelValue":Dn[1]||(Dn[1]=Ar=>ct.mobileEndDate=Ar),"min-date":ct.endMinDate,"max-date":ct.endMaxDate,"columns-type":ct.columnsType,onChange:ct.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(br,{key:1,class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:ct.myValue,"onUpdate:value":Dn[4]||(Dn[4]=Ar=>ct.myValue=Ar),format:ct.format,picker:ct.picker,locale:ct.locale,getPopupContainer:ct.getPopupContainer,"disabled-date":ct.disabledDate,onChange:ct.change,onCalendarChange:ct.calendarChange,onOpenChange:ct.openChange,popupStyle:ct.popupStyle},null,8,["value","format","picker","locale","getPopupContainer","disabled-date","onChange","onCalendarChange","onOpenChange","popupStyle"]))],12,_hoisted_1$i)}const RangePicker=_export_sfc$1(__default__$2,[["render",_sfc_render$t],["__scopeId","data-v-ef43e030"]]),EcanRangePicker=withInstall$1(RangePicker),buttonProps={...props$1,width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton",text:"按钮",mode:"default",danger:!1,shape:"default",href:"",target:"self",fontSize:"14px",fontWeight:400,tooltipTextStyleColor:"",buttonBackgroundColor:"#FFFFFF",borderColor:"#d9d9d9"},buttonComponentProps=transformToComponentProps(buttonProps),buttonEvents=["click"],_sfc_main$q=vue.defineComponent({name:"EcanButton",components:{AButton:antDesignVue.Button},props:{...buttonComponentProps},setup(ct){const Dn=usePickComponentStyle(ct),dr=useEmitEvent(ct)("click",()=>{const mr=vue.unref(vr);mr&&ct.target==="event"&&window.parent.postMessage({type:"openPage",url:mr},"*")}),fr=vue.computed(()=>{const mr={};return ct.mode!=="primary"&&(mr.backgroundColor=ct.buttonBackgroundColor||"transparent",mr.color=ct.tooltipTextStyleColor,mr.borderColor=ct.borderColor||"transparent"),{height:ct.height,...mr}}),hr=vue.computed(()=>jn(ct.text)),vr=vue.computed(()=>jn(ct.href)||null),pr=vue.computed(()=>{const mr=ct.target;if(!(mr==="event"||vue.unref(vr)==null))return{self:"_self",blank:"_blank"}[mr]});return useOnEvent(ct,{click:dr}),{style:Dn,click:dr,myText:hr,myHref:vr,myTarget:pr,buttonStyle:fr}}}),Button_vue_vue_type_style_index_0_lang="";function _sfc_render$s(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("a-button");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-button",style:vue.normalizeStyle(ct.style)},[vue.createVNode(vr,{block:"",onClick:ct.click,type:ct.mode,danger:ct.danger,shape:ct.shape,href:ct.myHref,target:ct.myTarget,style:vue.normalizeStyle(ct.buttonStyle),class:vue.normalizeClass(ct.tooltipTextStyleColor?"custom-color":"")},{default:vue.withCtx(()=>[vue.createElementVNode("span",{style:vue.normalizeStyle({fontSize:ct.fontSize,fontWeight:ct.fontWeight})},vue.toDisplayString(ct.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target","style","class"])],4)}const Button=_export_sfc$1(_sfc_main$q,[["render",_sfc_render$s]]),EcanButton=withInstall$1(Button),checkboxProps$1={...props$1,width:"240px",id:"",left:"0px",top:"0px",name:"复选框",keyName:"复选框",rotate:"",type:"ecanCheckbox",value:[],data:[{label:"选项一",value:"1",checked:!0},{label:"选项二",value:"2",checked:!0},{label:"选项三",value:"3"}],graphicConfig:{}},checkboxComponentProps=transformToComponentProps(checkboxProps$1),checkboxEvents=["checkboxChange"],_sfc_main$p=vue.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:antDesignVue.CheckboxGroup},props:{...checkboxComponentProps},setup(ct,{expose:Dn}){const ur=usePickComponentStyle(ct),dr=vue.ref([]),fr=vue.ref([]),hr=Er=>{const xr=ct.value;let Sr=[];Er.forEach(kr=>{kr.checked&&Sr.push(kr.value)}),typeof xr=="string"&&xr!==""?Sr=Sr.concat(xr.split(",")):Array.isArray(xr)&&(Sr=Sr.concat(xr)),dr.value=Er,fr.value=Sr};vue.watch(()=>[ct.data,ct.value],([Er])=>{hr(Er)},{immediate:!0,deep:!0});const vr=useRequestData(ct),pr=async()=>{var Sr,kr;if(ct.dataType!=="request")return;const Er=await vr(),xr=((kr=(Sr=Er==null?void 0:Er.data)==null?void 0:Sr.data)==null?void 0:kr.rows)||[];hr(xr)},{getGlobalModel:mr,setGlobalModel:gr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Er=>{},setGlobalModel:(Er,xr)=>{}});gr(ct.id,{type:ct.type,value:fr});const Cr=useEmitEvent(ct)("checkboxChange",()=>{const Er=mr(ct.id);gr(ct.id,{...Er,RECORD:fr})}),br=Er=>{var Sr;const{data:xr}=(Er==null?void 0:Er.data)||{};if(xr){const Pr=(((Sr=Er==null?void 0:Er.data)==null?void 0:Sr.data)??[]).map(Ir=>({label:Ir.label,value:Ir.value}));hr(Pr)}else hr([])},Ar=useIndicatorData(ct,br),wr=async()=>{try{const Er=await Ar();br(Er)}catch(Er){console.error(Er)}},_r=async()=>{switch(ct.dataType){case"indicator":await wr();break;case"request":await pr();break}},{setRequest:Tr}=vue.inject(REQUEST_MODEL,{setRequest:({id:Er,sortNum:xr,requestFn:Sr})=>{}});return typeof Tr=="function"&&Tr({id:ct.id,requestFn:_r,sortNum:ct.requestSort}),Dn({refreshData:_r}),{myOption:dr,style:ur,myValue:fr,checkboxChange:Cr}}}),Checkbox_vue_vue_type_style_index_0_lang="";function _sfc_render$r(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("a-checkbox-group");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-checkbox",style:vue.normalizeStyle(ct.style)},[vue.createVNode(vr,{options:ct.myOption,value:ct.myValue,"onUpdate:value":Dn[0]||(Dn[0]=pr=>ct.myValue=pr),onChange:ct.checkboxChange},null,8,["options","value","onChange"]),vue.renderSlot(ct.$slots,"toolbox")],4)}const Checkbox$1=_export_sfc$1(_sfc_main$p,[["render",_sfc_render$r]]),EcanCheckbox=withInstall$1(Checkbox$1),selectProps={...props$1,name:"下拉框选择器",keyName:"下拉框选择器",width:"120px",height:"33px",type:"ecanSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,selectAllOption:!1,graphicConfig:{},valueType:"value",isAllowClear:!0,optionFontSize:"14px",hasAllCheck:!1,minTagCount:null,maxTagTextLength:4},selectComponentProps=transformToComponentProps(selectProps),selectEvents=["selectChange","refreshData","clearValue"];function getInternetExplorerVersion(){const ct=window.navigator.userAgent,Dn=ct.indexOf("MSIE ");if(Dn>0)return parseInt(ct.substring(Dn+5,ct.indexOf(".",Dn)),10);if(ct.indexOf("Trident/")>0){const fr=ct.indexOf("rv:");return parseInt(ct.substring(fr+3,ct.indexOf(".",fr)),10)}const dr=ct.indexOf("Edge/");return dr>0?parseInt(ct.substring(dr+5,ct.indexOf(".",dr)),10):-1}let isIE;function initCompat(){initCompat.init||(initCompat.init=!0,isIE=getInternetExplorerVersion()!==-1)}var script$1={name:"ResizeObserver",props:{showTrigger:{type:Boolean,default:!1}},emits:["notify"],setup(ct,{emit:Dn}){let ur=0,dr=0;const fr=vue.ref(null);let hr=null;const vr=()=>{(ur!==fr.value.offsetWidth||dr!==fr.value.offsetHeight)&&(ur=fr.value.offsetWidth,dr=fr.value.offsetHeight,Dn("notify",{width:ur,height:dr}))},pr=()=>{hr.contentDocument.defaultView.addEventListener("resize",vr),vr()},mr=()=>{hr&&hr.onload&&(!isIE&&hr.contentDocument&&hr.contentDocument.defaultView.removeEventListener("resize",vr),fr.value.removeChild(hr),hr.onload=null,hr=null)};return vue.onMounted(()=>{initCompat(),ur=fr.value.offsetWidth,dr=fr.value.offsetHeight;const gr=document.createElement("object");hr=gr,gr.setAttribute("aria-hidden","true"),gr.setAttribute("tabindex","-1"),gr.onload=pr,gr.type="text/html",isIE&&fr.value.appendChild(gr),gr.data="about:blank",isIE||fr.value.appendChild(gr),ct.showTrigger&&vr()}),vue.onBeforeUnmount(()=>{mr()}),{elRef:fr}}};const _hoisted_1$h={ref:"elRef",class:"vue3-resize-observer",tabindex:"-1"};function render$1(ct,Dn,ur,dr,fr,hr){return vue.openBlock(),vue.createBlock("div",_hoisted_1$h,null,512)}script$1.render=render$1,script$1.__file="src/package/ResizeObserver/ResizeObserver.vue",script$1.install=function(ct){ct.component(script$1.name,script$1)};var config={itemsLimit:1e3};function _typeof(ct){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(Dn){return typeof Dn}:_typeof=function(Dn){return Dn&&typeof Symbol=="function"&&Dn.constructor===Symbol&&Dn!==Symbol.prototype?"symbol":typeof Dn},_typeof(ct)}function _defineProperty(ct,Dn,ur){return Dn in ct?Object.defineProperty(ct,Dn,{value:ur,enumerable:!0,configurable:!0,writable:!0}):ct[Dn]=ur,ct}function ownKeys(ct,Dn){var ur=Object.keys(ct);if(Object.getOwnPropertySymbols){var dr=Object.getOwnPropertySymbols(ct);Dn&&(dr=dr.filter(function(fr){return Object.getOwnPropertyDescriptor(ct,fr).enumerable})),ur.push.apply(ur,dr)}return ur}function _objectSpread2(ct){for(var Dn=1;Dn<arguments.length;Dn++){var ur=arguments[Dn]!=null?arguments[Dn]:{};Dn%2?ownKeys(Object(ur),!0).forEach(function(dr){_defineProperty(ct,dr,ur[dr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ct,Object.getOwnPropertyDescriptors(ur)):ownKeys(Object(ur)).forEach(function(dr){Object.defineProperty(ct,dr,Object.getOwnPropertyDescriptor(ur,dr))})}return ct}function _unsupportedIterableToArray(ct,Dn){if(ct){if(typeof ct=="string")return _arrayLikeToArray(ct,Dn);var ur=Object.prototype.toString.call(ct).slice(8,-1);if(ur==="Object"&&ct.constructor&&(ur=ct.constructor.name),ur==="Map"||ur==="Set")return Array.from(ur);if(ur==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ur))return _arrayLikeToArray(ct,Dn)}}function _arrayLikeToArray(ct,Dn){(Dn==null||Dn>ct.length)&&(Dn=ct.length);for(var ur=0,dr=new Array(Dn);ur<Dn;ur++)dr[ur]=ct[ur];return dr}function _createForOfIteratorHelper(ct){if(typeof Symbol>"u"||ct[Symbol.iterator]==null){if(Array.isArray(ct)||(ct=_unsupportedIterableToArray(ct))){var Dn=0,ur=function(){};return{s:ur,n:function(){return Dn>=ct.length?{done:!0}:{done:!1,value:ct[Dn++]}},e:function(pr){throw pr},f:ur}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
182
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var dr,fr=!0,hr=!1,vr;return{s:function(){dr=ct[Symbol.iterator]()},n:function(){var pr=dr.next();return fr=pr.done,pr},e:function(pr){hr=!0,vr=pr},f:function(){try{!fr&&dr.return!=null&&dr.return()}finally{if(hr)throw vr}}}}function _typeof$1(ct){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(Dn){return typeof Dn}:_typeof$1=function(Dn){return Dn&&typeof Symbol=="function"&&Dn.constructor===Symbol&&Dn!==Symbol.prototype?"symbol":typeof Dn},_typeof$1(ct)}function _classCallCheck(ct,Dn){if(!(ct instanceof Dn))throw new TypeError("Cannot call a class as a function")}function _defineProperties(ct,Dn){for(var ur=0;ur<Dn.length;ur++){var dr=Dn[ur];dr.enumerable=dr.enumerable||!1,dr.configurable=!0,"value"in dr&&(dr.writable=!0),Object.defineProperty(ct,dr.key,dr)}}function _createClass(ct,Dn,ur){return Dn&&_defineProperties(ct.prototype,Dn),ur&&_defineProperties(ct,ur),ct}function _toConsumableArray(ct){return _arrayWithoutHoles(ct)||_iterableToArray(ct)||_nonIterableSpread()}function _arrayWithoutHoles(ct){if(Array.isArray(ct)){for(var Dn=0,ur=new Array(ct.length);Dn<ct.length;Dn++)ur[Dn]=ct[Dn];return ur}}function _iterableToArray(ct){if(Symbol.iterator in Object(ct)||Object.prototype.toString.call(ct)==="[object Arguments]")return Array.from(ct)}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function processOptions(ct){var Dn;return typeof ct=="function"?Dn={callback:ct}:Dn=ct,Dn}function throttle(ct,Dn){var ur=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},dr,fr,hr,vr=function(mr){for(var gr=arguments.length,yr=new Array(gr>1?gr-1:0),Cr=1;Cr<gr;Cr++)yr[Cr-1]=arguments[Cr];if(hr=yr,!(dr&&mr===fr)){var br=ur.leading;typeof br=="function"&&(br=br(mr,fr)),(!dr||mr!==fr)&&br&&ct.apply(void 0,[mr].concat(_toConsumableArray(hr))),fr=mr,clearTimeout(dr),dr=setTimeout(function(){ct.apply(void 0,[mr].concat(_toConsumableArray(hr))),dr=0},Dn)}};return vr._clear=function(){clearTimeout(dr),dr=null},vr}function deepEqual(ct,Dn){if(ct===Dn)return!0;if(_typeof$1(ct)==="object"){for(var ur in ct)if(!deepEqual(ct[ur],Dn[ur]))return!1;return!0}return!1}var VisibilityState=function(){function ct(Dn,ur,dr){_classCallCheck(this,ct),this.el=Dn,this.observer=null,this.frozen=!1,this.createObserver(ur,dr)}return _createClass(ct,[{key:"createObserver",value:function(ur){var dr=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=processOptions(ur),this.callback=function(vr,pr){dr.options.callback(vr,pr),vr&&dr.options.once&&(dr.frozen=!0,dr.destroyObserver())},this.callback&&this.options.throttle){var fr=this.options.throttleOptions||{},hr=fr.leading;this.callback=throttle(this.callback,this.options.throttle,{leading:function(pr){return hr==="both"||hr==="visible"&&pr||hr==="hidden"&&!pr}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(vr){var pr=vr[0];if(vr.length>1){var mr=vr.find(function(yr){return yr.isIntersecting});mr&&(pr=mr)}if(dr.callback){var gr=pr.isIntersecting&&pr.intersectionRatio>=dr.threshold;if(gr===dr.oldResult)return;dr.oldResult=gr,dr.callback(gr,pr)}},this.options.intersection),setTimeout(function(){dr.observer&&dr.observer.observe(dr.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&this.options.intersection.threshold||0}}]),ct}();function mounted(ct,Dn,ur){var dr=Dn.value;if(dr)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var fr=new VisibilityState(ct,dr,ur);ct._vue_visibilityState=fr}}function unmounted(ct){var Dn=ct._vue_visibilityState;Dn&&(Dn.destroyObserver(),delete ct._vue_visibilityState)}function componentUpdated(ct,Dn,ur){var dr=Dn.value,fr=Dn.oldValue;if(!deepEqual(dr,fr)){var hr=ct._vue_visibilityState;if(!dr){unmounted(ct);return}hr?hr.createObserver(dr,ur):mounted(ct,{value:dr},ur)}}var ObserveVisibility={mounted,componentUpdated,unmounted},props={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(Dn){return["vertical","horizontal"].includes(Dn)}}},scrollParent=function(Dn){var ur=/(auto|scroll)/;function dr(mr,gr){return mr.parentNode===null?gr:dr(mr.parentNode,gr.concat([mr]))}function fr(mr,gr){return getComputedStyle(mr,null).getPropertyValue(gr)}function hr(mr){return fr(mr,"overflow")+fr(mr,"overflow-y")+fr(mr,"overflow-x")}function vr(mr){return ur.test(hr(mr))}function pr(mr){if(mr instanceof HTMLElement||mr instanceof SVGElement){for(var gr=dr(mr.parentNode,[]),yr=0;yr<gr.length;yr+=1)if(vr(gr[yr]))return gr[yr];return document.scrollingElement||document.documentElement}}return pr(Dn)};function simpleArray(){return this.items.length&&_typeof(this.items[0])!=="object"}var supportsPassive=!1;if(typeof window<"u"){supportsPassive=!1;try{var opts=Object.defineProperty({},"passive",{get:function(){supportsPassive=!0}});window.addEventListener("test",null,opts)}catch{}}var uid=0,script=vue.defineComponent({name:"RecycleScroller",components:{ResizeObserver:script$1},directives:{ObserveVisibility},props:_objectSpread2({},props,{itemSize:{type:Number,default:null},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1}}),emits:["visible","hidden","resize","update"],data:function(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes:function(){if(this.itemSize===null){for(var Dn={"-1":{accumulator:0}},ur=this.items,dr=this.sizeField,fr=this.minItemSize,hr=1e4,vr=0,pr,mr=0,gr=ur.length;mr<gr;mr++)pr=ur[mr][dr]||fr,pr<hr&&(hr=pr),vr+=pr,Dn[mr]={accumulator:vr,size:pr};return this.$_computedMinItemSize=hr,Dn}return[]},simpleArray},watch:{items:function(){this.updateVisibleItems(!0)},pageMode:function(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler:function(){this.updateVisibleItems(!1)},deep:!0}},created:function(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1))},mounted:function(){var Dn=this;this.applyPageMode(),this.$nextTick(function(){Dn.$_prerender=!1,Dn.updateVisibleItems(!0),Dn.ready=!0})},beforeUnmount:function(){this.removeListeners()},methods:{addView:function(Dn,ur,dr,fr,hr){var vr={item:dr,position:0};return vr.nr={id:uid++,index:ur,used:!0,key:fr,type:hr},Dn.push(vr),vr},unuseView:function(Dn){var ur=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,dr=this.$_unusedViews,fr=Dn.nr.type,hr=dr.get(fr);hr||(hr=[],dr.set(fr,hr)),hr.push(Dn),ur||(Dn.nr.used=!1,Dn.position=-9999,this.$_views.delete(Dn.nr.key))},handleResize:function(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll:function(Dn){var ur=this;this.$_scrollDirty||(this.$_scrollDirty=!0,requestAnimationFrame(function(){ur.$_scrollDirty=!1;var dr=ur.updateVisibleItems(!1,!0),fr=dr.continuous;fr||(clearTimeout(ur.$_refreshTimout),ur.$_refreshTimout=setTimeout(ur.handleScroll,100))}))},handleVisibilityChange:function(Dn,ur){var dr=this;this.ready&&(Dn||ur.boundingClientRect.width!==0||ur.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(function(){dr.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems:function(Dn){var ur=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,dr=this.itemSize,fr=this.$_computedMinItemSize,hr=this.typeField,vr=this.simpleArray?null:this.keyField,pr=this.items,mr=pr.length,gr=this.sizes,yr=this.$_views,Cr=this.$_unusedViews,br=this.pool,Ar,wr,_r;if(!mr)Ar=wr=_r=0;else if(this.$_prerender)Ar=0,wr=this.prerender,_r=null;else{var Tr=this.getScroll();if(ur){var Er=Tr.start-this.$_lastUpdateScrollPosition;if(Er<0&&(Er=-Er),dr===null&&Er<fr||Er<dr)return{continuous:!0}}this.$_lastUpdateScrollPosition=Tr.start;var xr=this.buffer;if(Tr.start-=xr,Tr.end+=xr,dr===null){var Sr,kr=0,Pr=mr-1,Ir=~~(mr/2),Br;do Br=Ir,Sr=gr[Ir].accumulator,Sr<Tr.start?kr=Ir:Ir<mr-1&&gr[Ir+1].accumulator>Tr.start&&(Pr=Ir),Ir=~~((kr+Pr)/2);while(Ir!==Br);for(Ir<0&&(Ir=0),Ar=Ir,_r=gr[mr-1].accumulator,wr=Ir;wr<mr&&gr[wr].accumulator<Tr.end;wr++);wr===-1?wr=pr.length-1:(wr++,wr>mr&&(wr=mr))}else Ar=~~(Tr.start/dr),wr=Math.ceil(Tr.end/dr),Ar<0&&(Ar=0),wr>mr&&(wr=mr),_r=mr*dr}wr-Ar>config.itemsLimit&&this.itemsLimitError(),this.totalSize=_r;var Or,Nr=Ar<=this.$_endIndex&&wr>=this.$_startIndex;if(this.$_continuous!==Nr){if(Nr){yr.clear(),Cr.clear();for(var jr=0,Vr=br.length;jr<Vr;jr++)Or=br[jr],this.unuseView(Or)}this.$_continuous=Nr}else if(Nr)for(var $r=0,zr=br.length;$r<zr;$r++)Or=br[$r],Or.nr.used&&(Dn&&(Or.nr.index=pr.findIndex(function(Rr){return vr?Rr[vr]===Or.item[vr]:Rr===Or.item})),(Or.nr.index===-1||Or.nr.index<Ar||Or.nr.index>=wr)&&this.unuseView(Or));for(var Wr=Nr?null:new Map,qr,Mr,Lr,Fr,Dr=Ar;Dr<wr;Dr++){qr=pr[Dr];var Gr=vr?qr[vr]:qr;if(Gr==null)throw new Error("Key is ".concat(Gr," on item (keyField is '").concat(vr,"')"));if(Or=yr.get(Gr),!dr&&!gr[Dr].size){Or&&this.unuseView(Or);continue}Or?(Or.nr.used=!0,Or.item=qr):(Mr=qr[hr],Lr=Cr.get(Mr),Nr?Lr&&Lr.length?(Or=Lr.pop(),Or.item=qr,Or.nr.used=!0,Or.nr.index=Dr,Or.nr.key=Gr,Or.nr.type=Mr):Or=this.addView(br,Dr,qr,Gr,Mr):(Fr=Wr.get(Mr)||0,(!Lr||Fr>=Lr.length)&&(Or=this.addView(br,Dr,qr,Gr,Mr),this.unuseView(Or,!0),Lr=Cr.get(Mr)),Or=Lr[Fr],Or.item=qr,Or.nr.used=!0,Or.nr.index=Dr,Or.nr.key=Gr,Or.nr.type=Mr,Wr.set(Mr,Fr+1),Fr++),yr.set(Gr,Or)),dr===null?Or.position=gr[Dr-1].accumulator:Or.position=Dr*dr}return this.$_startIndex=Ar,this.$_endIndex=wr,this.emitUpdate&&this.$emit("update",Ar,wr),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,300),{continuous:Nr}},getListenerTarget:function(){var Dn=scrollParent(this.$el);return window.document&&(Dn===window.document.documentElement||Dn===window.document.body)&&(Dn=window),Dn},getScroll:function(){var Dn=this.$el,ur=this.direction,dr=ur==="vertical",fr;if(this.pageMode){var hr=Dn.getBoundingClientRect(),vr=dr?hr.height:hr.width,pr=-(dr?hr.top:hr.left),mr=dr?window.innerHeight:window.innerWidth;pr<0&&(mr+=pr,pr=0),pr+mr>vr&&(mr=vr-pr),fr={start:pr,end:pr+mr}}else dr?fr={start:Dn.scrollTop,end:Dn.scrollTop+Dn.clientHeight}:fr={start:Dn.scrollLeft,end:Dn.scrollLeft+Dn.clientWidth};return fr},applyPageMode:function(){this.pageMode?this.addListeners():this.removeListeners()},addListeners:function(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,supportsPassive?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners:function(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem:function(Dn){var ur;this.itemSize===null?ur=Dn>0?this.sizes[Dn-1].accumulator:0:ur=Dn*this.itemSize,this.scrollToPosition(ur)},scrollToPosition:function(Dn){this.direction==="vertical"?this.$el.scrollTop=Dn:this.$el.scrollLeft=Dn},itemsLimitError:function(){var Dn=this;throw setTimeout(function(){console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",Dn.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews:function(){this.pool.sort(function(Dn,ur){return Dn.nr.index-ur.nr.index})}}}),_hoisted_1$g={key:0,class:"vue-recycle-scroller__slot"},_hoisted_2$9={key:1,class:"vue-recycle-scroller__slot"};function render(ct,Dn,ur,dr,fr,hr){var vr=vue.resolveComponent("ResizeObserver"),pr=vue.resolveDirective("observe-visibility");return vue.withDirectives((vue.openBlock(),vue.createBlock("div",{class:["vue-recycle-scroller",_defineProperty({ready:ct.ready,"page-mode":ct.pageMode},"direction-".concat(ct.direction),!0)],onScrollPassive:Dn[2]||(Dn[2]=function(){return ct.handleScroll.apply(ct,arguments)})},[ct.$slots.before?(vue.openBlock(),vue.createBlock("div",_hoisted_1$g,[vue.renderSlot(ct.$slots,"before")])):vue.createCommentVNode("v-if",!0),vue.createVNode("div",{ref:"wrapper",style:_defineProperty({},ct.direction==="vertical"?"minHeight":"minWidth",ct.totalSize+"px"),class:"vue-recycle-scroller__item-wrapper"},[(vue.openBlock(!0),vue.createBlock(vue.Fragment,null,vue.renderList(ct.pool,function(mr){return vue.openBlock(),vue.createBlock("div",{key:mr.nr.id,style:ct.ready?{transform:"translate".concat(ct.direction==="vertical"?"Y":"X","(").concat(mr.position,"px)")}:null,class:["vue-recycle-scroller__item-view",{hover:ct.hoverKey===mr.nr.key}],onMouseenter:function(yr){return ct.hoverKey=mr.nr.key},onMouseleave:Dn[1]||(Dn[1]=function(gr){return ct.hoverKey=null})},[vue.renderSlot(ct.$slots,"default",{item:mr.item,index:mr.nr.index,active:mr.nr.used})],46,["onMouseenter"])}),128))],4),ct.$slots.after?(vue.openBlock(),vue.createBlock("div",_hoisted_2$9,[vue.renderSlot(ct.$slots,"after")])):vue.createCommentVNode("v-if",!0),vue.createVNode(vr,{onNotify:ct.handleResize},null,8,["onNotify"])],34)),[[pr,ct.handleVisibilityChange]])}script.render=render,script.__file="src/components/RecycleScroller.vue",_objectSpread2({},props,{minItemSize:{type:[Number,String],required:!0}});const vue3VirtualScroller="",_sfc_main$o=vue.defineComponent({name:"EcanSelect",components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption,AInput:antDesignVue.Input,ADivider:antDesignVue.Divider,ACheckbox:antDesignVue.Checkbox,DownOutlined:DownOutlined$1,CloseOutlined:CloseOutlined$1,RecycleScroller:script,VNodes:(ct,{attrs:Dn})=>Dn.vnodes},props:{...selectComponentProps},setup(ct,{expose:Dn}){var Oi,Li,Ri;const ur=vue.inject("isMobile",!1),dr=vue.inject("scaleValue",{widthScale:1,heightScale:1}),fr=vue.ref(),hr=vue.ref({}),vr=vue.ref(!1),pr={text:((Oi=ct.dataFieldNames)==null?void 0:Oi.label)||"label",value:((Li=ct.dataFieldNames)==null?void 0:Li.value)||"value"},mr=vue.ref([]),gr=usePickComponentStyle(ct),yr=()=>document.getElementById("norPageConfig")||document.body,Cr=vue.ref(ct.data||[]),br=vue.ref(),Ar=vue.ref(!1),wr=vue.ref(!1),_r=vue.ref(),Tr=vue.ref(!1),Er=vue.ref(!1),xr=vue.computed(()=>ct.maxTagTextLength?ct.maxTagTextLength:0),Sr=(hi,Ci=!1)=>{var $i,Fi;let Di="";return typeof hi=="string"||typeof hi=="number"?Di=String(hi):Array.isArray(hi)&&(($i=hi[0])!=null&&$i.children)&&(typeof hi[0].children=="string"||typeof hi[0].children=="number")?Di=String(hi[0].children):Di="",((Fi=vue.unref(Pr))==null?void 0:Fi.length)===1||!Ci||!vue.unref(xr)||Di.length<=vue.unref(xr)?Di:`${Di.slice(0,vue.unref(xr))}...`},kr=()=>{Er.value=!vue.unref(Er)},Pr=vue.computed({get:()=>{var Ci;const{mode:hi}=ct;return(Ci=vue.unref(Cr))!=null&&Ci.length?br.value:hi==="multiple"||hi==="tags"||hi==="combobox"?[]:""},set:hi=>{br.value=hi}}),Ir=vue.computed(()=>{const hi=[];if(Array.isArray(vue.unref(Pr)))for(const Ci of vue.unref(Pr)){const Di=vue.unref(Cr).find($i=>$i.value===Ci);Di&&hi.push(Di.label)}else{const Ci=vue.unref(Cr).find(Di=>Di.value===vue.unref(Pr));Ci&&hi.push(Ci.label)}return hi.join(",")}),Br=vue.computed(()=>vue.unref(_r)?vue.unref(Cr).filter(hi=>hi.label.includes(vue.unref(_r))):vue.unref(Cr)),{getGlobalModel:Or,setGlobalModel:Nr,getRecordValueByKeyName:jr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:hi=>{},setGlobalModel:(hi,Ci)=>{},getRecordValueByKeyName:hi=>{}}),Vr=ct.dataFieldNames;vue.watch(()=>[ct.value,ct.mode,ct.selectFirstOption,ct.selectAllOption,ct.valueType,Cr.value],()=>{const{mode:hi,selectFirstOption:Ci,selectAllOption:Di,value:$i}=ct,Fi=jr($i),qi=Vr.value;if(hi==="multiple"||hi==="tags"||hi==="combobox"){if(Fi)br.value=vue.unref(Fi).split(",");else if(Ci){const Qi=vue.unref(Cr)[0];br.value=Qi?[Qi[qi]]:[]}Di&&(br.value=vue.unref(Cr).map(Qi=>Qi[qi]),Ar.value=!0,wr.value=!1)}else if(Fi)br.value=vue.unref(Fi);else if(Ci){const Qi=vue.unref(Cr)[0];br.value=Qi?Qi[qi]:""}},{immediate:!0});const $r=(hi,Ci)=>{var la;const Di=Vr.label,$i=Vr.value;let Fi;const qi=Ci[Di],Qi=Ci[$i];return qi!=null?Fi=qi:Qi!=null&&(Fi=Qi),Fi?(Fi==null?void 0:Fi.toLowerCase().indexOf(hi==null?void 0:hi.toLowerCase()))>=0:((la=Ci.label)==null?void 0:la.toLowerCase().indexOf(hi==null?void 0:hi.toLowerCase()))>=0},zr=hi=>{const{label:Ci,value:Di,options:$i}=ct.dataFieldNames;if($i&&Array.isArray(hi))if(hi.some(Fi=>$i in Fi)){const Fi={},qi=[];hi.forEach(Qi=>{Fi[Qi[$i]]||(Fi[Qi[$i]]=[]),Fi[Qi[$i]].push({[Ci]:Qi[Ci],[Di]:Qi[Di]})});for(const Qi in Fi)qi.push({[Ci]:Qi,[$i]:Fi[Qi]});return qi}else return hi;else{if(!$i&&Array.isArray(hi))return hi=hi.map(Fi=>({label:Fi[Ci],value:Fi[Di],[Ci]:Fi[Ci],[Di]:Fi[Di]})),hi;if(!$i&&!Array.isArray(hi))return hi}},Wr=vue.ref(!1),qr=hi=>{var Ci,Di;if(Cr.value=zr(((Di=(Ci=hi==null?void 0:hi.data)==null?void 0:Ci.data)==null?void 0:Di.rows)||[]),ct.selectFirstOption){let $i=vue.unref(Cr)[0];if(Vr.options){const Fi=$i[Vr.options];Fi&&Fi.length&&($i=Fi[0])}br.value=$i[Vr.value]}ct.mode==="multiple"&&ct.selectAllOption&&(br.value=vue.unref(Cr).map($i=>$i[Vr.value])),vue.nextTick(()=>{ct.dataType!=="static"&&Jr()})},Mr=useRequestData(ct),Lr=async()=>{if(ct.dataType==="request"){Wr.value=!0;try{const hi=await Mr();qr(hi)}catch(hi){console.error(hi)}finally{Wr.value=!1}}},Fr=vue.computed(()=>{let hi=br.value;if(ct.valueType==="label"&&vue.unref(br)&&vue.unref(Cr)){const Ci=Vr.label,Di=Vr.value;if(ct.mode==="multiple")hi=vue.unref(Cr).filter($i=>vue.unref(br).includes($i[Di])).map($i=>$i[Ci]);else{const $i=vue.unref(Cr).find(Fi=>vue.unref(br)===Fi[Di]);$i&&(hi=$i[Ci])}}return hi}),Dr=vue.ref([]),Gr=vue.computed(()=>{const hi={};let Ci=vue.toRaw(vue.unref(br));ct.mode!=="multiple"&&(Ci=[Ci]);const Di=vue.unref(Dr).filter($i=>Ci==null?void 0:Ci.includes($i.value));return Di!=null&&Di.length?(hi.itemCodes=Di.map($i=>$i[Vr.value]).join(","),hi.itemLabels=Di.map($i=>$i[Vr.label]).join(",")):(hi.itemCodes="",hi.itemLabels=""),hi}),Rr=vue.computed(()=>{const{value:hi,label:Ci}=Vr,Di=vue.unref(Cr).find($i=>$i[hi]===vue.unref(Pr));return Di?{label:Di[Ci],value:Di[hi]}:{}}),{pageId:Qr}=vue.inject("templateOperate",{pageId:""})||{};Nr(ct.id,{type:ct.type,dataType:ct.dataType,value:Fr,label:(Ri=vue.unref(Rr))==null?void 0:Ri.label,...vue.unref(Gr),recordData:vue.unref(Rr)});const Kr=useEmitEvent(ct),Hr=()=>{const hi=ct.id,Ci=Or(hi);Nr(hi,{...Ci,...vue.unref(Gr),value:Fr,RECORD:vue.unref(Rr),recordData:vue.unref(Rr),dataType:ct.dataType,type:ct.type})},Ur=()=>{const hi=getNewValueFromUrlParams(Qr,ct.keyName,"value");hi&&(Pr.value=hi)},Jr=Kr("selectChange",()=>{Hr()}),Yr=Kr("clearValue",()=>{["multiple","tags","combobox"].includes(ct.mode)?br.value=[]:br.value=null;const hi=ct.id;Nr(hi,{RECORD:"",recordData:vue.unref(Rr),dataType:ct.dataType})}),si=Kr("refreshData",(hi=[])=>{var Di,$i;const Ci=zr(hi);if(($i=(Di=ct==null?void 0:ct.graphicConfig)==null?void 0:Di.formFields)!=null&&$i.hasAllOption){const Fi=Vr.label,qi=Vr.value;Ci.unshift({[Fi]:"全部",[qi]:""})}if(Cr.value=Ci,ct.selectFirstOption){let Fi=vue.unref(Cr)[0]||{};if(Vr.options){const qi=Fi[Vr.options];qi&&qi.length&&(Fi=qi[0])}br.value=Fi[Vr.value]}ct.mode==="multiple"&&ct.selectAllOption&&(br.value=vue.unref(Cr).map(Fi=>Fi[Vr.value])),Nr(ct.id,{type:ct.type,value:Fr,...vue.unref(Gr),recordData:vue.unref(Rr),RECORD:vue.unref(Rr),dataType:ct.dataType})}),fi=hi=>{var Fi;const{data:Ci}=(hi==null?void 0:hi.data)||{},Di=Vr.label,$i=Vr.value;if(Ci){const{rows:qi=[]}=((Fi=hi==null?void 0:hi.data)==null?void 0:Fi.data)||{};Dr.value=qi||[];const Qi=vue.unref(Dr).map(va=>({[Di]:va.label,[$i]:va.value})),{id:la}=ct,da=Or(la);Nr(la,{...da,...vue.unref(Gr),dataType:ct.dataType}),si(Qi)}else si([])},_i=useIndicatorData(ct,fi),bi=async()=>{try{Wr.value=!0;const hi=await _i();fi(hi)}catch(hi){console.error(hi)}finally{Wr.value=!1}},pi=async()=>{switch(ct.dataType){case"indicator":{await bi();break}case"request":await Lr();break}};useOnEvent(ct,{selectChange:Jr,refreshData:pi,clearValue:Yr,updateByUrlParams:Ur});const{setRequest:mi}=vue.inject(REQUEST_MODEL,{setRequest:({id:hi,sortNum:Ci,requestFn:Di})=>{}});typeof mi=="function"&&mi({id:ct.id,requestFn:pi,sortNum:ct.requestSort}),Dn({refreshData:pi});const xi=()=>{ct.mode==="multiple"?Pr.value=vue.unref(mr):Pr.value=vue.unref(mr)[0],Jr(),Xr()},ni=()=>{var hi;if((hi=vue.unref(Cr))!=null&&hi.length&&ct.dataFieldNames.value){let Ci;Array.isArray(vue.unref(Pr))?Ci=vue.unref(Pr):vue.unref(Pr)&&(Ci=[vue.unref(Pr)]),mr.value=Ci||[vue.unref(Cr)[0][ct.dataFieldNames.value]]}di(),vr.value=!0},ai=hi=>{const Ci=vue.unref(mr).findIndex(Di=>Di===hi);Ci===-1?vue.unref(mr).push(hi):vue.unref(mr).splice(Ci,1)},Xr=()=>{vr.value=!1,vue.nextTick(()=>{di()})},vi=hi=>{hi?mr.value=vue.unref(Cr).map(Ci=>Ci[Vr.value]):mr.value=[]};vue.watch(()=>Pr.value,(hi,Ci)=>{var Di;ct.mode==="multiple"&&((hi==null?void 0:hi.length)===((Di=vue.unref(Cr))==null?void 0:Di.length)?(wr.value=!1,Ar.value=!0):hi!=null&&hi.length?(wr.value=!0,Ar.value=!1):Ci!=null&&Ci.length&&ct.minTagCount?Pr.value=Ci.slice(0,ct.minTagCount):(wr.value=!1,Ar.value=!1))}),vue.watch(()=>mr.value,hi=>{var Ci;ct.mode==="multiple"&&((hi==null?void 0:hi.length)===((Ci=vue.unref(Cr))==null?void 0:Ci.length)?(wr.value=!1,Ar.value=!0):hi!=null&&hi.length?(wr.value=!0,Ar.value=!1):(wr.value=!1,Ar.value=!1))},{deep:!0});const Si=hi=>{hi.target.checked?Pr.value=vue.unref(Cr).map(Ci=>Ci.value):Pr.value=[]},ri=(hi,Ci)=>{var Di;ct.mode==="multiple"&&ct.minTagCount&&((Di=vue.unref(Pr))==null?void 0:Di.length)<ct.minTagCount&&vue.unref(Pr).push(Ci.value)},yi=hi=>{_r.value=hi},di=()=>{ct.autoClearSearchValue&&(_r.value="")},Ei=hi=>{var Ci,Di,$i,Fi;if(Er.value=hi,hi){if(((Ci=ct==null?void 0:ct.graphicConfig)==null?void 0:Ci.pageMode)!=="design"){const qi=(Di=vue.unref(fr))==null?void 0:Di.getBoundingClientRect();if(qi){const Qi=qi.left/((($i=vue.unref(dr))==null?void 0:$i.widthScale)||1)+"px",la=(qi.top+qi.height)/(((Fi=vue.unref(dr))==null?void 0:Fi.heightScale)||1)+"px";setTimeout(()=>{var ya,ba;const da=document.querySelectorAll(".ant-select-dropdown"),va=Array.from(da).filter(Sa=>window.getComputedStyle(Sa).display!=="none");if(va!=null&&va.length){const Sa=document.getElementById("norPageConfig");va[0].classList.add("ecan-select-drop-down"),(ya=Sa==null?void 0:Sa.style)==null||ya.setProperty("--drop-down-left",Qi),(ba=Sa==null?void 0:Sa.style)==null||ba.setProperty("--drop-down-top",la),hr.value={visibility:"visible"}}},200)}}}else _r.value="",hr.value={}};return vue.watch(_r,hi=>{Tr.value=!!hi}),vue.onMounted(()=>{Hr()}),{searchValue:_r,style:gr,getPopupContainer:yr,myValue:br,selectChange:Jr,options:Cr,filterOption:$r,loading:Wr,resultValue:Pr,isMobile:ur,customFieldName:pr,pickVisible:vr,onConfirmPicker:xi,mobileValue:Ir,openPicker:ni,mobileSelectValue:mr,isCheckAll:Ar,indeterminate:wr,hideCheckAll:Tr,selectOpen:Er,getTagLabelText:Sr,openDropdown:kr,onSearch:yi,onSelect:di,onOptionAll:Si,onDeselect:ri,onDropdownVisibleChange:Ei,onCheckClick:ai,onCancelPicker:Xr,onCheckAll:vi,mobileMultOptions:Br,selectWrapRef:fr,dropdownStyle:hr}}}),Select_vue_vue_type_style_index_0_scoped_3763a86e_lang="",Select_vue_vue_type_style_index_1_lang="",_withScopeId$5=ct=>(vue.pushScopeId("data-v-3763a86e"),ct=ct(),vue.popScopeId(),ct),_hoisted_1$f={class:"popup-toolbar"},_hoisted_2$8={class:"operate"},_hoisted_3$4={key:0,class:"cancel-tool"},_hoisted_4$2=vue.createTextVNode(" 全选 "),_hoisted_5$2=_withScopeId$5(()=>vue.createElementVNode("div",{class:"title-tool"},null,-1)),_hoisted_6$2={style:{flex:"1",overflow:"auto"}},_hoisted_7$2=["title"],_hoisted_8$2={style:{padding:"4px 10px",cursor:"pointer"}},_hoisted_9$2=vue.createTextVNode(" 全选 ");function _sfc_render$q(ct,Dn,ur,dr,fr,hr){var Ir,Br;const vr=vue.resolveComponent("down-outlined"),pr=vue.resolveComponent("a-input"),mr=vue.resolveComponent("van-checkbox"),gr=vue.resolveComponent("van-search"),yr=vue.resolveComponent("van-cell"),Cr=vue.resolveComponent("van-cell-group"),br=vue.resolveComponent("recycle-scroller"),Ar=vue.resolveComponent("van-checkbox-group"),wr=vue.resolveComponent("van-picker"),_r=vue.resolveComponent("van-popup"),Tr=vue.resolveComponent("a-select-option"),Er=vue.resolveComponent("close-outlined"),xr=vue.resolveComponent("v-nodes"),Sr=vue.resolveComponent("a-divider"),kr=vue.resolveComponent("a-checkbox"),Pr=vue.resolveComponent("a-select");return vue.openBlock(),vue.createElementBlock("div",{ref:"selectWrapRef",class:"ecan-select",style:vue.normalizeStyle(ct.style)},[ct.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(pr,{value:ct.mobileValue,placeholder:ct.placeholder,readonly:"",onClick:ct.openPicker},{suffix:vue.withCtx(()=>[vue.createVNode(vr,{onClick:ct.openPicker},null,8,["onClick"])]),_:1},8,["value","placeholder","onClick"]),vue.createVNode(_r,{show:ct.pickVisible,"onUpdate:show":Dn[5]||(Dn[5]=Or=>ct.pickVisible=Or),style:vue.normalizeStyle({zIndex:999999,height:ct.mode==="multiple"?"50%":"",display:ct.mode==="multiple"?"flex":"",flexDirection:ct.mode==="multiple"?"column":""}),"overlay-style":{background:"rgba(0, 0, 0, .3)",zIndex:999999},position:"bottom",teleport:"#app"},{default:vue.withCtx(()=>[ct.pickVisible?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[ct.mode==="multiple"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createElementVNode("div",_hoisted_1$f,[vue.createElementVNode("div",_hoisted_2$8,[!ct.hideCheckAll&&ct.hasAllCheck?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$4,[vue.createVNode(mr,{modelValue:ct.isCheckAll,"onUpdate:modelValue":Dn[0]||(Dn[0]=Or=>ct.isCheckAll=Or),indeterminate:ct.indeterminate,shape:"square",onChange:ct.onCheckAll},{default:vue.withCtx(()=>[_hoisted_4$2]),_:1},8,["modelValue","indeterminate","onChange"])])):vue.createCommentVNode("",!0),_hoisted_5$2,vue.createElementVNode("div",{class:"confirm-tool",onClick:Dn[1]||(Dn[1]=(...Or)=>ct.onConfirmPicker&&ct.onConfirmPicker(...Or))},"确认")]),vue.createVNode(gr,{class:"search-wrap",modelValue:ct.searchValue,"onUpdate:modelValue":Dn[2]||(Dn[2]=Or=>ct.searchValue=Or),placeholder:"请输入搜索关键词"},null,8,["modelValue"])]),vue.createElementVNode("div",_hoisted_6$2,[ct.mobileMultOptions.length?(vue.openBlock(),vue.createBlock(Ar,{key:0,modelValue:ct.mobileSelectValue,"onUpdate:modelValue":Dn[3]||(Dn[3]=Or=>ct.mobileSelectValue=Or),style:{height:"100%"},shape:"square"},{default:vue.withCtx(()=>[vue.withDirectives(vue.createVNode(br,{class:"scroller",items:ct.mobileMultOptions,"item-size":44,"key-field":ct.customFieldName.value},{default:vue.withCtx(({item:Or})=>[vue.createVNode(Cr,null,{default:vue.withCtx(()=>[vue.createVNode(yr,{title:Or[ct.customFieldName.text],clickable:"",onClick:Nr=>ct.onCheckClick(Or[ct.customFieldName.value])},{"right-icon":vue.withCtx(()=>[vue.createVNode(mr,{name:Or[ct.customFieldName.value],onClick:Nr=>ct.onCheckClick(Or[ct.customFieldName.value])},null,8,["name","onClick"])]),_:2},1032,["title","onClick"])]),_:2},1024)]),_:1},8,["items","key-field"]),[[vue.vShow,ct.mobileMultOptions.length]])]),_:1},8,["modelValue"])):vue.createCommentVNode("",!0)])],64)):(vue.openBlock(),vue.createBlock(wr,{key:1,modelValue:ct.mobileSelectValue,"onUpdate:modelValue":Dn[4]||(Dn[4]=Or=>ct.mobileSelectValue=Or),"columns-field-names":ct.customFieldName,columns:ct.options,"cancel-button-text":" ",onConfirm:ct.onConfirmPicker},null,8,["modelValue","columns-field-names","columns","onConfirm"]))],64)):vue.createCommentVNode("",!0)]),_:1},8,["show","style","overlay-style"])],64)):(vue.openBlock(),vue.createBlock(Pr,{key:1,class:"select",value:ct.resultValue,"onUpdate:value":Dn[11]||(Dn[11]=Or=>ct.resultValue=Or),placeholder:ct.placeholder,showSearch:"",dropdownClassName:((Ir=ct.graphicConfig)==null?void 0:Ir.pageMode)==="design"?"":"select-dropdown-class",allowClear:ct.isAllowClear&&(ct.mode!=="multiple"||!ct.minTagCount||((Br=ct.resultValue)==null?void 0:Br.length)>ct.minTagCount),mode:ct.mode,getPopupContainer:ct.getPopupContainer,maxTagCount:ct.maxTagCount,filterOption:ct.filterOption,loading:ct.loading,autoClearSearchValue:ct.autoClearSearchValue,open:ct.selectOpen,dropdownStyle:ct.dropdownStyle,onSearch:ct.onSearch,onSelect:ct.onSelect,onChange:ct.selectChange,onDeselect:ct.onDeselect,onDropdownVisibleChange:ct.onDropdownVisibleChange,style:vue.normalizeStyle({fontSize:ct.optionFontSize})},vue.createSlots({removeIcon:vue.withCtx(()=>{var Or;return[ct.mode==="multiple"&&(!ct.minTagCount||((Or=ct.resultValue)==null?void 0:Or.length)>ct.minTagCount)?(vue.openBlock(),vue.createBlock(Er,{key:0})):vue.createCommentVNode("",!0)]}),default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ct.options,(Or,Nr)=>(vue.openBlock(),vue.createBlock(Tr,{key:Nr,value:Or.value,style:vue.normalizeStyle({fontSize:ct.optionFontSize}),label:Or.label},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Or.label),1)]),_:2},1032,["value","style","label"]))),128))]),_:2},[ct.mode==="multiple"?{name:"tagRender",fn:vue.withCtx(({label:Or,closable:Nr,onClose:jr})=>[vue.createElementVNode("span",{class:"ant-select-selection-item custom-tag",onMousedown:Dn[7]||(Dn[7]=vue.withModifiers(()=>{},["prevent"])),onClick:Dn[8]||(Dn[8]=(...Vr)=>ct.openDropdown&&ct.openDropdown(...Vr))},[vue.createElementVNode("span",{class:"ant-select-selection-item-content",title:ct.getTagLabelText(Or)},vue.toDisplayString(ct.getTagLabelText(Or,!0)),9,_hoisted_7$2),Nr?(vue.openBlock(),vue.createBlock(Er,{key:0,class:"select-tag__close",onMousedown:Dn[6]||(Dn[6]=vue.withModifiers(()=>{},["prevent"])),onClick:vue.withModifiers(jr,["stop"])},null,8,["onClick"])):vue.createCommentVNode("",!0)],32)])}:void 0,ct.mode==="multiple"&&!ct.hideCheckAll&&ct.hasAllCheck?{name:"dropdownRender",fn:vue.withCtx(({menuNode:Or})=>[vue.createVNode(xr,{vnodes:Or},null,8,["vnodes"]),vue.createVNode(Sr,{style:{margin:"4px 0"}}),vue.createElementVNode("div",{class:"check-box",onMousedown:Dn[10]||(Dn[10]=Nr=>Nr.preventDefault())},[vue.createElementVNode("div",_hoisted_8$2,[_hoisted_9$2,vue.createVNode(kr,{checked:ct.isCheckAll,"onUpdate:checked":Dn[9]||(Dn[9]=Nr=>ct.isCheckAll=Nr),indeterminate:ct.indeterminate,onChange:ct.onOptionAll},null,8,["checked","indeterminate","onChange"])])],32)])}:void 0]),1032,["value","placeholder","dropdownClassName","allowClear","mode","getPopupContainer","maxTagCount","filterOption","loading","autoClearSearchValue","open","dropdownStyle","onSearch","onSelect","onChange","onDeselect","onDropdownVisibleChange","style"])),vue.renderSlot(ct.$slots,"toolbox",{},void 0,!0)],4)}const Select=_export_sfc$1(_sfc_main$o,[["render",_sfc_render$q],["__scopeId","data-v-3763a86e"]]),EcanSelect=withInstall$1(Select),treeSelectProps={...props$1,name:"树形下拉框选择器",keyName:"树形下拉框选择器",width:"120px",height:"33px",type:"ecanTreeSelect",multiple:!1,data:[{label:"选项一",value:"1",id:"1",pId:"0"},{label:"子选项一",value:"1-1",id:"1-1",pId:"1"},{label:"子选项二",value:"1-2",id:"1-2",pId:"1"},{label:"选项二",value:"2",id:"2",pId:"0"},{label:"选项三",value:"3",id:"3",pId:"0"}],value:"",dataFieldNames:{label:"label",value:"value",children:"children"},maxTagCount:3,placeholder:"请选择",maxTagTextLength:4,treeCheckable:!1,treeCheckStrictly:!1,selectFirstOption:!1,graphicConfig:{},selectAllOption:!1,hasAllCheck:!1,isLinkageSekectAll:!1},treeSelectComponentProps=transformToComponentProps(treeSelectProps),treeSelectEvents=["selectChange","refreshData"],_sfc_main$n={name:"EcanTreeSelect",components:{ATreeSelect:antDesignVue.TreeSelect,CloseOutlined:CloseOutlined$1},props:{...treeSelectComponentProps},setup(ct,{expose:Dn}){const ur=vue.inject("scaleValue",{widthScale:1,heightScale:1}),dr=vue.ref(),fr=vue.ref(),hr=vue.ref(!1),vr=vue.ref([]),pr=usePickComponentStyle(ct),{getGlobalModel:mr,setGlobalModel:gr,getRecordValueByKeyName:yr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:ni=>{},setGlobalModel:(ni,ai)=>{},getRecordValueByKeyName:ni=>{}}),Cr=vue.ref(),br=vue.ref(ct.data),Ar=vue.ref(0),wr=vue.ref({width:"fit-content",maxWidth:"520px"}),_r=vue.computed(()=>ct.dataFieldNames),Tr=vue.computed(()=>vue.unref(_r).value),Er=vue.ref(!1),xr=vue.ref(!1),Sr=vue.ref(!1),kr=vue.ref(!1),Pr=vue.computed(()=>ct.treeCheckable||ct.multiple),Ir=vue.computed(()=>ct.maxTagTextLength?ct.maxTagTextLength:0),Br=(ni,ai=!1)=>{var vi,Si;let Xr="";return typeof ni=="string"||typeof ni=="number"?Xr=String(ni):Array.isArray(ni)&&((vi=ni[0])!=null&&vi.children)&&(typeof ni[0].children=="string"||typeof ni[0].children=="number")?Xr=String(ni[0].children):ni!=null&&ni.children&&(typeof ni.children=="string"||typeof ni.children=="number")&&(Xr=String(ni.children)),((Si=vue.unref(fr))==null?void 0:Si.length)===1||!ai||!vue.unref(Ir)||Xr.length<=vue.unref(Ir)?Xr:`${Xr.slice(0,vue.unref(Ir))}...`},Or=()=>document.getElementById("norPageConfig")||document.body,Nr=()=>{kr.value=!0},jr=ni=>ni.id??ni.key??ni[vue.unref(Tr)],Vr=ni=>!ni.disabled&&ni.selectable!==!1,$r=()=>{const ni=vue.unref(br)||[],ai=new Map;return ni.forEach(Xr=>{const vi=Xr.pId;if(vi==null)return;const Si=ai.get(vi)||[];Si.push(Xr),ai.set(vi,Si)}),ai},zr=()=>{const ni=vue.unref(br)||[],ai=$r();return ni.filter(Xr=>Vr(Xr)).filter(Xr=>!(ai.get(jr(Xr))||[]).some(vi=>Vr(vi))).map(Xr=>Xr[vue.unref(Tr)]).filter(Xr=>Xr!=null)},Wr=ni=>{const ai=vue.unref(br)||[],Xr=$r(),vi=Array.isArray(ni)?ni:[],Si=new Set(vi),ri=new Map(ai.map(di=>[di[vue.unref(Tr)],di])),yi=di=>{(Xr.get(jr(di))||[]).forEach(Oi=>{Vr(Oi)&&Oi[vue.unref(Tr)]!=null&&Si.add(Oi[vue.unref(Tr)]),yi(Oi)})};return vi.forEach(di=>{const Ei=ri.get(di);Ei&&yi(Ei)}),Si},qr=ni=>{if(!vue.unref(Pr))return;const ai=Array.isArray(ni)?ni:[],Xr=zr(),vi=Wr(ni);!!Xr.length&&Xr.every(ri=>vi.has(ri))?(xr.value=!1,Er.value=!0):ai.length?(xr.value=!0,Er.value=!1):(xr.value=!1,Er.value=!1)},Mr=(ni,ai)=>{const Xr=vue.unref(_r).label,vi=vue.unref(_r).value;let Si;const ri=ai[Xr],yi=ai[vi];return ri!=null?Si=ri:yi!=null&&(Si=yi),(Si==null?void 0:Si.toLowerCase().indexOf(ni==null?void 0:ni.toLowerCase()))>=0},Lr=(ni="0")=>{let ai;const Xr=vue.unref(br).find(vi=>vi.pId===ni);return(Xr==null?void 0:Xr.selectable)===!1?ai=Lr(Xr.id):ai=Xr,ai},Fr=ni=>{var Xr,vi;const ai=((vi=(Xr=ni==null?void 0:ni.data)==null?void 0:Xr.data)==null?void 0:vi.rows)||[];if(br.value=ai.map(Si=>({...Si,label:Si.label||Si.text,value:Si.id})),Ar.value+=1,ct.selectFirstOption){const Si=Lr();ct.value===""&&Si!=null&&(fr.value=Si[ct.dataFieldNames.value],Qr())}vue.unref(Pr)&&ct.selectAllOption&&(fr.value=zr(),Qr())},Dr=useRequestData(ct),Gr=async()=>{if(ct.dataType==="request"){hr.value=!0;try{const ni=await Dr();Fr(ni)}catch(ni){console.error(ni)}finally{hr.value=!1}}};gr(ct.id,{type:ct.type,value:fr,RECORD:fr});const Rr=vue.computed(()=>{const ni={};let ai=vue.toRaw(vue.unref(fr));!ct.treeCheckable&&!ct.multiple&&(ai=[ai]);const Xr=vue.unref(vr).filter(vi=>ai==null?void 0:ai.find(Si=>typeof Si=="object"?Si.value===vi.value:Si===vi.value));return Xr!=null&&Xr.length?(ni.itemCodes=Xr.map(vi=>vi[vue.unref(_r).value]).join(","),ni.itemLabels=Xr.map(vi=>vi[vue.unref(_r).label]).join(",")):(ni.itemCodes="",ni.itemLabels=""),ni}),Qr=()=>{var vi;const ni=ct.id,ai=mr(ni);let Xr=vue.unref(fr);Array.isArray(Xr)?Xr=vue.unref(fr).map(Si=>typeof Si=="object"?(Si==null?void 0:Si.value)||"":Si):typeof Xr=="object"&&(Xr=((vi=vue.unref(fr))==null?void 0:vi.value)||""),gr(ni,{...ai,...vue.unref(Rr),RECORD:Xr,value:Xr})},Hr=useEmitEvent(ct)("selectChange",Qr);vue.watch(()=>[ct.multiple,ct.value,ct.treeCheckable,ct.selectFirstOption,ct.selectAllOption,br.value],()=>{const{value:ni,selectFirstOption:ai,selectAllOption:Xr,isLinkageSekectAll:vi,graphicConfig:Si}=ct,ri=yr(ni);if(vue.unref(Pr)){if(vue.unref(ri))fr.value=vue.unref(ri).split(",");else if(ai){const yi=Lr();fr.value=yi?[yi[vue.unref(Tr)]]:[]}if(Xr&&(fr.value=zr()),vi){const{controlList:yi}=Si,di=yi==null?void 0:yi.find(Ei=>Ei.conditionKey==="parentCode");if((di==null?void 0:di.dataType)==="component"&&(di!=null&&di.id)){const Ei=mr(di.id);Ei!=null&&Ei.itemCodes&&(fr.value=zr())}else di!=null&&di.customValue&&(fr.value=zr())}}else vue.unref(ri)?fr.value=vue.unref(ri):ai&&(fr.value=Lr());Hr(),qr(fr.value)},{immediate:!0});const Ur=ni=>{var Xr;const{data:ai}=(ni==null?void 0:ni.data)||{};if(ai){const{rows:vi=[]}=((Xr=ni==null?void 0:ni.data)==null?void 0:Xr.data)||{};vr.value=vi||[],br.value=vi.map(Si=>({...Si,value:Si.selectable===!1?nanoid(6):Si.value})),Ar.value+=1,vue.unref(Pr)&&ct.selectAllOption&&(fr.value=zr())}},Jr=useIndicatorData(ct,Ur),Yr=async()=>{try{hr.value=!0;const ni=await Jr();Ur(ni)}catch(ni){console.error(ni)}finally{hr.value=!1}},si=async()=>{switch(ct.dataType){case"indicator":{await Yr();break}case"request":await Gr();break}};useOnEvent(ct,{selectChange:Hr,refreshData:si}),Dn({refreshData:si});const{setRequest:fi}=vue.inject(REQUEST_MODEL,{setRequest:({id:ni,sortNum:ai,requestFn:Xr})=>{}});typeof fi=="function"&&fi({id:ct.id,requestFn:si,sortNum:ct.requestSort}),vue.watch(()=>fr.value,ni=>{qr(ni)},{deep:!0}),vue.watch(Cr,ni=>{Sr.value=!!ni});const _i=ni=>{ni.target.checked?fr.value=zr():fr.value=[],Hr()};return{style:pr,treeData:br,treeRenderKey:Ar,dropdownStyle:wr,filterTreeNode:Mr,myValue:fr,loading:hr,selectChange:Hr,isMultiple:Pr,isCheckAll:Er,indeterminate:xr,hideCheckAll:Sr,treeSelectOpen:kr,treeSelectWrapRef:dr,getPopupContainer:Or,getTagLabelText:Br,openDropdown:Nr,renderDropdown:({menuNode:ni})=>!vue.unref(Pr)||vue.unref(Sr)||!ct.hasAllCheck?ni:vue.h("div",[ni,vue.h(antDesignVue.Divider,{style:{margin:"4px 0"}}),vue.h("div",{class:"check-box",onMousedown:ai=>ai.preventDefault()},[vue.h("div",{style:{padding:"4px 10px",cursor:"pointer"}},[" 全选 ",vue.h(antDesignVue.Checkbox,{checked:vue.unref(Er),indeterminate:vue.unref(xr),onChange:_i})])])]),onOptionAll:_i,onSearch:ni=>{Cr.value=ni},onSelect:()=>{Cr.value=""},onDropdownVisibleChange:ni=>{var ai,Xr,vi,Si;if(kr.value=ni,ni){if(((ai=ct==null?void 0:ct.graphicConfig)==null?void 0:ai.pageMode)!=="design"){const ri=(Xr=vue.unref(dr))==null?void 0:Xr.getBoundingClientRect();if(ri){const yi=ri.left/(((vi=vue.unref(ur))==null?void 0:vi.widthScale)||1)+"px",di=(ri.top+ri.height)/(((Si=vue.unref(ur))==null?void 0:Si.heightScale)||1)+"px";setTimeout(()=>{var Li,Ri;const Ei=document.querySelectorAll(".ant-select-dropdown"),Oi=Array.from(Ei).filter(hi=>window.getComputedStyle(hi).display!=="none");if(Oi!=null&&Oi.length){const hi=document.getElementById("norPageConfig");Oi[0].classList.add("ecan-tree-select-drop-down"),(Li=hi==null?void 0:hi.style)==null||Li.setProperty("--tree-drop-down-left",yi),(Ri=hi==null?void 0:hi.style)==null||Ri.setProperty("--tree-drop-down-top",di),vue.unref(wr).visibility="visible"}},200)}}}else Cr.value="",delete vue.unref(wr).visibility}}}},TreeSelect_vue_vue_type_style_index_0_scoped_1af5371a_lang="",TreeSelect_vue_vue_type_style_index_1_lang="",_hoisted_1$e=["title"];function _sfc_render$p(ct,Dn,ur,dr,fr,hr){var mr;const vr=vue.resolveComponent("close-outlined"),pr=vue.resolveComponent("a-tree-select");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-tree-select",style:vue.normalizeStyle(dr.style),ref:"treeSelectWrapRef"},[(vue.openBlock(),vue.createBlock(pr,{key:dr.treeRenderKey,class:"tree-select",value:dr.myValue,"onUpdate:value":Dn[3]||(Dn[3]=gr=>dr.myValue=gr),allowClear:"",showSearch:"",loading:dr.loading,fieldNames:ct.dataFieldNames,treeData:dr.treeData,dropdownMatchSelectWidth:!1,dropdownStyle:dr.dropdownStyle,dropdownClassName:`ecan-tree-select-dropdown ${((mr=ct.graphicConfig)==null?void 0:mr.pageMode)==="design"?"":"tree-select-dropdown-class"}`,maxTagCount:ct.maxTagCount,multiple:ct.treeCheckable?!0:ct.multiple,treeCheckable:ct.treeCheckable,filterTreeNode:dr.filterTreeNode,placeholder:ct.placeholder,treeDataSimpleMode:!0,treeDefaultExpandAll:!0,dropdownRender:dr.renderDropdown,open:dr.isMultiple?dr.treeSelectOpen:void 0,getPopupContainer:dr.getPopupContainer,onSearch:dr.onSearch,onSelect:dr.onSelect,onChange:dr.selectChange,onDropdownVisibleChange:dr.onDropdownVisibleChange},vue.createSlots({_:2},[dr.isMultiple?{name:"tagRender",fn:vue.withCtx(({label:gr,closable:yr,onClose:Cr})=>[vue.createElementVNode("span",{class:"ant-select-selection-item custom-tag",onMousedown:Dn[1]||(Dn[1]=vue.withModifiers(()=>{},["prevent"])),onClick:Dn[2]||(Dn[2]=(...br)=>dr.openDropdown&&dr.openDropdown(...br))},[vue.createElementVNode("span",{class:"ant-select-selection-item-content",title:dr.getTagLabelText(gr)},vue.toDisplayString(dr.getTagLabelText(gr,!0)),9,_hoisted_1$e),yr?(vue.openBlock(),vue.createBlock(vr,{key:0,class:"tree-select-tag__close",onMousedown:Dn[0]||(Dn[0]=vue.withModifiers(()=>{},["prevent"])),onClick:vue.withModifiers(Cr,["stop"])},null,8,["onClick"])):vue.createCommentVNode("",!0)],32)])}:void 0]),1032,["value","loading","fieldNames","treeData","dropdownStyle","dropdownClassName","maxTagCount","multiple","treeCheckable","filterTreeNode","placeholder","dropdownRender","open","getPopupContainer","onSearch","onSelect","onChange","onDropdownVisibleChange"]))],4)}const TreeSelect=_export_sfc$1(_sfc_main$n,[["render",_sfc_render$p],["__scopeId","data-v-1af5371a"]]),EcanTreeSelect=withInstall$1(TreeSelect),radioProps={...props$1,width:"260px",height:"32px",id:"",left:"0px",top:"0px",name:"单选框",keyName:"单选框",rotate:"",type:"ecanRadio",value:"",data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],optionType:"default",tabBackgroundImage:"",activeTabBackgroundImage:"",activeTabColor:"#1890ff",tabColor:"#333",tabFontSize:"14px",tabHorizontalPadding:"0px",tabVerticalPadding:"5px",tabBarGutter:"24px",tabFlexDirection:"row",graphicConfig:{},tabTextAlign:"",selectFirstOption:!1,radioMode:"native",tabWidth:""},radioComponentProps=transformToComponentProps(radioProps),radioEvents=["checkboxChange","click","resetRecord"],_sfc_main$m=vue.defineComponent({name:"EcanRadio",components:{ARadioGroup:antDesignVue.RadioGroup,ARadioButton:antDesignVue.RadioButton,ARadio:antDesignVue.Radio},props:{...radioComponentProps},setup(ct,{expose:Dn}){const{pageMode:ur}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),dr=usePickComponentStyle(ct),fr=vue.ref([]),hr=vue.ref(""),vr=(Ir=[])=>{var Nr;const Br=ct.value;let Or=[];typeof Br=="string"&&Br!==""?Or=Or.concat(Br.split(",")):Array.isArray(Br)&&(Or=Or.concat(Br)),fr.value=Ir,ct.selectFirstOption?hr.value=((Nr=Ir[0])==null?void 0:Nr.value)||"":hr.value=Or[0]||""};vue.watch(()=>[ct.data,ct.value,ct.selectFirstOption],([Ir])=>{vue.unref(ur)==="design"&&vr(Ir)},{immediate:!0,deep:!0});const pr=useRequestData(ct),mr=async()=>{var Or,Nr;if(ct.dataType!=="request")return;const Ir=await pr(),Br=((Nr=(Or=Ir==null?void 0:Ir.data)==null?void 0:Or.data)==null?void 0:Nr.rows)||[];vr(Br)},{getGlobalModel:gr,setGlobalModel:yr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Ir=>{},setGlobalModel:(Ir,Br)=>{}});yr(ct.id,{type:ct.type,value:hr});const Cr=useEmitEvent(ct),br=()=>{const Ir=vue.unref(fr).find(Br=>Br.value===vue.unref(hr))||{};Cr("checkboxChange",()=>{const Br=gr(ct.id);yr(ct.id,{...Br,RECORD:hr})},Ir)()},Ar=Ir=>{hr.value=Ir,Cr("click",()=>{const Br=gr(ct.id);yr(ct.id,{...Br,RECORD:hr,value:hr})})()};vue.watch(hr,()=>{br()});const wr=Ir=>{var Or;const{data:Br}=(Ir==null?void 0:Ir.data)||{};if(Br){const jr=(((Or=Ir==null?void 0:Ir.data)==null?void 0:Or.data)??[]).map(Vr=>({label:Vr.label,value:Vr.value}));vr(jr)}else vr([])},_r=useIndicatorData(ct,wr),Tr=async()=>{try{const Ir=await _r();wr(Ir)}catch(Ir){console.error(Ir)}},Er=async()=>{switch(ct.dataType){case"indicator":await Tr();break;case"request":await mr();break}},{setRequest:xr}=vue.inject(REQUEST_MODEL,{setRequest:({id:Ir,sortNum:Br,requestFn:Or})=>{}});typeof xr=="function"&&xr({id:ct.id,requestFn:Er,sortNum:ct.requestSort});const Sr=Ir=>{hr.value=Ir.value,Ar(Ir.value)},kr=vue.computed(()=>ct.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px",fontSize:ct.tabFontSize}:{fontSize:ct.tabFontSize});return vue.onMounted(()=>{vr(ct.data)}),useOnEvent(ct,{resetRecord:()=>{const Ir=ct.id,Br=gr(Ir);yr(Ir,{...Br,RECORD:"",value:""})}}),Dn({refreshData:Er}),{myOption:fr,style:dr,myValue:hr,radioStyle:kr,onClickButton:Ar,useImagePath,tabChange:Sr}}}),Radio_vue_vue_type_style_index_0_lang="",Radio_vue_vue_type_style_index_1_scoped_11e7335f_lang="",_hoisted_1$d=["onClick"];function _sfc_render$o(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("a-radio"),pr=vue.resolveComponent("a-radio-button"),mr=vue.resolveComponent("a-radio-group");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["ecan-radio",ct.optionType]),style:vue.normalizeStyle(ct.style)},[ct.radioMode==="custom"?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"tabs-header",style:vue.normalizeStyle({fontSize:ct.tabFontSize,flexDirection:ct.tabFlexDirection,alignItems:ct.tabTextAlign})},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ct.myOption,(gr,yr)=>(vue.openBlock(),vue.createElementBlock("div",{class:"tab",style:vue.normalizeStyle({padding:`${ct.tabVerticalPadding} ${ct.tabHorizontalPadding}`,color:ct.myValue===gr.value?ct.activeTabColor:ct.tabColor,backgroundImage:ct.myValue===gr.value?ct.useImagePath(ct.activeTabBackgroundImage,!0):ct.useImagePath(ct.tabBackgroundImage,!0),marginRight:ct.tabFlexDirection==="row"?ct.tabBarGutter:"0",marginBottom:ct.tabFlexDirection==="column"?ct.tabBarGutter:"0"}),key:yr,onClick:vue.withModifiers(Cr=>ct.tabChange(gr),["prevent","stop"])},[vue.createElementVNode("div",{class:"tab-inner",style:vue.normalizeStyle({borderBottom:!ct.activeTabBackgroundImage&&!ct.tabBackgroundImage?`1px solid ${ct.myValue===gr.value?ct.activeTabColor:"transparent"}`:"",width:ct.tabWidth})},vue.toDisplayString(gr.label),5)],12,_hoisted_1$d))),128))],4)):ct.radioMode==="native"?(vue.openBlock(),vue.createBlock(mr,{key:1,value:ct.myValue,"onUpdate:value":Dn[0]||(Dn[0]=gr=>ct.myValue=gr)},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ct.myOption,gr=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:gr.value},[ct.optionType==="default"?(vue.openBlock(),vue.createBlock(vr,{key:0,value:gr.value,style:vue.normalizeStyle(ct.radioStyle)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(gr.label),1)]),_:2},1032,["value","style"])):ct.optionType==="button"?(vue.openBlock(),vue.createBlock(pr,{key:1,value:gr.value,style:vue.normalizeStyle({fontSize:ct.tabFontSize}),onClick:yr=>ct.onClickButton(gr.value)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(gr.label),1)]),_:2},1032,["value","style","onClick"])):vue.createCommentVNode("",!0)],64))),128))]),_:1},8,["value"])):vue.createCommentVNode("",!0),vue.renderSlot(ct.$slots,"toolbox",{},void 0,!0)],6)}const Radio=_export_sfc$1(_sfc_main$m,[["render",_sfc_render$o],["__scopeId","data-v-11e7335f"]]),EcanRadio=withInstall$1(Radio),navTabProps={...props$1,type:"ecanNavTab",name:"导航标签",keyName:"导航标签",width:"300px",height:"40px",tabFontSize:"14px",activeTabColor:"#1890ff",tabColor:"#333",tabFontWeight:400,activeKey:0,data:[{title:"标签1",key:"1"},{title:"标签2",key:"2"},{title:"标签3",key:"3"}],isShrink:!1,tabLineWidth:"40px",tabLineHeight:"3px",backgroundColor:"",isScrollspy:!1,scrollspyConfig:[]},navTabComponentProps=transformToComponentProps(navTabProps),navTabEvents=["tabChange"],_sfc_main$l=vue.defineComponent({name:"EcanNavTab",props:{...navTabComponentProps},components:{},setup(ct){const Dn=usePickComponentStyle(ct),ur=vue.ref(0),dr=vue.ref("nav-tab"),fr=vue.ref([]),hr=vue.ref(!1),vr=vue.inject("usedComponentList",[]);vue.watch(()=>ct.activeKey,Sr=>{ur.value=Sr},{immediate:!0}),vue.watch(()=>[ct.isShrink,ct.data],()=>{dr.value=nanoid(8)});const{pageMode:pr,fixedHeight:mr,height:gr}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fixedHeight:0,height:null});let yr=!1,Cr=null;const br=()=>{Cr&&clearTimeout(Cr),Cr=setTimeout(()=>{hr.value=!1},200),!vue.unref(hr)&&(yr||(requestAnimationFrame(()=>{let Sr=-1;const kr=window.scrollY;for(const Pr of vue.unref(fr)){const Ir=Pr[2];if(Pr[1]==="max"&&kr>=Pr[0]-Ir||Pr[1]!=="max"&&kr>=Pr[0]-Ir&&kr<Pr[1]-Ir){Sr=ct.data.findIndex(Br=>Br.key===Pr[3]);break}}Sr>-1&&(ur.value=Sr),yr=!1}),yr=!0))},Ar=vue.computed(()=>{var Sr;return((Sr=ct.scrollspyConfig)==null?void 0:Sr.filter(kr=>ct.data.find(Pr=>kr.key&&Pr.key===kr.key)))||[]}),wr=vue.computed(()=>!!(ct.isScrollspy&&vue.unref(Ar).length)),_r=()=>{const Sr=[];for(const kr of vue.unref(Ar)){const Pr=vue.unref(vr).find(Ir=>Ir.id===kr.anchor);if(Pr){const Ir=getFormatWh(Pr.height,vue.unref(gr)),Br=parseFloat(Pr.top)-vue.unref(mr);Sr.push([Br,Br+Ir,Ir/2,kr.key])}}if(Sr!=null&&Sr.length){const kr=Sr.map(Or=>Or[0]),Pr=Sr.map(Or=>Or[1]),Ir=kr.indexOf(Math.min(...kr)),Br=Pr.indexOf(Math.max(...Pr));Sr[Ir][0]=0,Sr[Br][1]="max"}fr.value=Sr};vue.onMounted(()=>{vue.unref(wr)&&(_r(),window.addEventListener("scroll",br))}),vue.onBeforeUnmount(()=>{vue.unref(wr)&&window.removeEventListener("scroll",br)});const Tr=useEmitEvent(ct),{setGlobalModel:Er}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(Sr,kr)=>{}});Er(ct.id,{RECORD:vue.unref(ur),value:vue.unref(ur)});const xr=Sr=>{Tr("tabChange",()=>{if(Er(ct.id,{RECORD:vue.unref(ur),value:vue.unref(ur)}),vue.unref(wr)){const kr=ct.data[Sr].key;if(kr){const Pr=vue.unref(Ar).find(Ir=>Ir.key===kr);if(Pr){const Br=document.querySelector(`[cpntid="${Pr.anchor}"]`).getBoundingClientRect();hr.value=!0,window.scrollTo({top:Br.top+window.scrollY-vue.unref(mr),behavior:"smooth"})}}}})()};return useOnEvent(ct,{tabChange:xr}),{style:Dn,active:ur,pageMode:pr,renderKey:dr,tabChange:xr}}}),NavTab_vue_vue_type_style_index_0_scoped_26cab677_lang="",_hoisted_1$c=["id"];function _sfc_render$n(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("van-tab"),pr=vue.resolveComponent("van-tabs");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-nav-tabs",style:vue.normalizeStyle(ct.style),id:"container_"+ct.id},[(vue.openBlock(),vue.createBlock(pr,{active:ct.active,"onUpdate:active":Dn[0]||(Dn[0]=mr=>ct.active=mr),key:ct.renderKey,shrink:ct.isShrink,"title-inactive-color":ct.tabColor,"title-active-color":ct.activeTabColor,"line-width":ct.tabLineWidth,"line-height":ct.tabLineHeight,background:ct.backgroundColor||"transparent",onChange:ct.tabChange},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ct.data,(mr,gr)=>(vue.openBlock(),vue.createBlock(vr,{key:gr},{title:vue.withCtx(()=>[vue.createElementVNode("div",{style:vue.normalizeStyle({fontSize:ct.tabFontSize,fontWeight:ct.tabFontWeight})},vue.toDisplayString(mr.title),5)]),_:2},1024))),128))]),_:1},8,["active","shrink","title-inactive-color","title-active-color","line-width","line-height","background","onChange"]))],12,_hoisted_1$c)}const NavTab=_export_sfc$1(_sfc_main$l,[["render",_sfc_render$n],["__scopeId","data-v-26cab677"]]),EcanNavTab=withInstall$1(NavTab),pieProps={...props$1,id:"",name:"饼图",keyName:"饼图",type:"ecanPie",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleLeft:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],backgroundColor:"",tooltipShow:!0,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxInfoSource:!1,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",associatId:""},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$k=vue.defineComponent({name:"EcanPie",props:{...pieComponentProps},components:{Spin,Echarts,EcanModal},setup(ct,{expose:Dn}){const ur=vue.ref(!1),dr=vue.ref(!1),{pageMode:fr,fontFamily:hr}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),vr=vue.inject("showIndDetail",$r=>{}),pr=vue.inject("showIndSource",$r=>{}),mr=vue.ref(),gr=vue.ref(!1),yr=usePickComponentStyle(ct),Cr=vue.ref(),br=vue.computed(()=>gr.value?ZOOM_FONT_SIZE:12),Ar=vue.ref({}),wr=vue.ref({}),_r=$r=>{Ar.value=$r;const zr=cr(ct,$r,{fontSize:vue.unref(br),fontFamily:vue.unref(hr),callBackMethodMap:{toolboxDownloadShowFun:()=>{useDownloadFile(ct.toolboxDownloadUrl)},toolboxDataZoomShowFun:()=>{var qr;gr.value=!0,(qr=Cr.value)==null||qr.showModal()},toolboxInfoShowFun:()=>{vr(ct)},toolboxSourceShowFun:()=>{pr(ct)}}});let Wr=parseFloat(ct.legendFontSize);vue.unref(gr)&&(Wr=ZOOM_FONT_SIZE,zr.toolbox.feature.myDataZoom.show=!1),zr.legend.textStyle.lineHeight=Wr+8,zr.legend.textStyle.rich.text.fontSize=Wr,wr.value=zr},Tr=()=>{gr.value=!1},{getGlobalModel:Er,setGlobalModel:xr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:$r=>{},setGlobalModel:($r,zr)=>{}}),Sr=($r=[],zr)=>{var qr;const Wr=Jn($r,zr);_r(Wr),(qr=Wr.dataset)!=null&&qr.length?dr.value=!1:dr.value=!0},kr=($r=[],zr)=>{var qr;const Wr=Jn($r,zr);_r(Wr),(qr=Wr.dataset)!=null&&qr.length?dr.value=!1:dr.value=!0},Pr=vue.computed(()=>Object.keys(ct).reduce(($r,zr)=>(IGNORE_WATCH_KEYS.has(zr)||($r[zr]=ct[zr]),$r),{}));vue.watch(()=>[ct.data,Pr.value],([$r])=>{(ct.dataType==="static"||vue.unref(fr)==="design")&&Sr($r)},{immediate:!0,deep:!0}),vue.watch(gr,()=>{_r(vue.unref(Ar))});const Ir=useEmitEvent(ct);xr(ct.id,{type:ct.type,RECORD:""});const Br=Ir("click",$r=>{const zr=Er(ct.id);xr(ct.id,{...zr,type:ct.type,RECORD:$r==null?void 0:$r.data})}),Or=$r=>{var Wr;const{data:zr}=($r==null?void 0:$r.data)||{};if(zr){const{columns:qr=[],rows:Mr=[]}=((Wr=$r==null?void 0:$r.data)==null?void 0:Wr.data)??{};let Lr=[];if(qr.length>0){const Fr=qr[0],Dr=qr[1];Lr=Mr.filter(Gr=>!!Gr).map(Gr=>({name:Gr[Fr],value:isNaN(Gr[Dr])?0:Gr[Dr]||0}))}kr(Lr)}},Nr=useDataSource({props:ct,loading:ur,setData:$r=>{var qr,Mr;ct.dataType!=="component"&&ct.isViewRedrawing&&mr.value.clear();const{columns:zr=[],rows:Wr=[]}=((qr=$r==null?void 0:$r.data)==null?void 0:qr.data)||{};(Mr=zr==null?void 0:zr.filter(Lr=>Lr&&Lr!=="null"))!=null&&Mr.length?Or($r):Sr(Wr,ct.valueTypeDataFieldNames)}});useOnEvent(ct,{resetRecord:()=>{const $r=ct.id,zr=Er($r);xr($r,{...zr,RECORD:""})},refreshData:Nr,click:Br}),Dn({refreshData:Nr});const{setRequest:Vr}=vue.inject(REQUEST_MODEL,{setRequest:$r=>{}});return typeof Vr=="function"&&Vr({id:ct.id,requestFn:Nr,sortNum:ct.requestSort}),{option:wr,style:yr,click:Br,onClose:Tr,loading:ur,ecanModal:Cr,echartRef:mr,emptyData:dr}}}),Pie_vue_vue_type_style_index_0_lang="",Pie_vue_vue_type_style_index_1_scoped_99c56c7d_lang="";function _sfc_render$m(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("echarts"),pr=vue.resolveComponent("spin"),mr=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(ct.style)},[vue.createVNode(pr,{spinning:ct.loading},{default:vue.withCtx(()=>[ct.noDataTip&&ct.emptyData?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"empty-wrap",style:vue.normalizeStyle({color:ct.tipTextColor,fontSize:ct.tipTextFontSize})},[vue.createElementVNode("span",null,vue.toDisplayString(ct.tipText),1)],4)):(vue.openBlock(),vue.createBlock(vr,{key:1,option:ct.option,ref:"echartRef",autoresize:"",onClick:ct.click},null,8,["option","onClick"]))]),_:1},8,["spinning"]),vue.createVNode(mr,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:ct.onClose},{default:vue.withCtx(()=>[vue.createVNode(pr,{class:"spin-wrap",spinning:ct.loading},{default:vue.withCtx(()=>[vue.createVNode(vr,{option:ct.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Pie=_export_sfc$1(_sfc_main$k,[["render",_sfc_render$m],["__scopeId","data-v-99c56c7d"]]),EcanPie=withInstall$1(Pie),barProps={...props$1,id:"",name:"柱状图",keyName:"柱状图",type:"ecanBar",width:"400px",height:"400px",top:"",left:"",rotate:"",xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisLineAlwaysDisplay:!1,data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:310,type:"类型一"},{name:"名称三",value:310,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{marker} {a} {c}",xAxisSplitLineShow:!0,xAxisSplitLineInterval:0,xAxisSplitAreaShow:!1,xAxisSplitLineStyleColor:"#333",xAxisLabelInterval:0,xAxisLabelColor:"#333",xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,yAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisLabelWidth:void 0,yAxisLabelRotate:0,yAxisLabelOverflow:"none",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",barWidth:"40%",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",isUseHorizontalAxis:!1,axisInverse:!1,xAxisInverse:!1,yAxisInverse:!1,isStack:!1,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{c}",toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxInfoSource:!1,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",associatId:""},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$j=vue.defineComponent({name:"EcanBar",props:{...barComponentProps},components:{Spin,Echarts,EcanModal,AModal:antDesignVue.Modal},setup(ct,{expose:Dn}){const ur=vue.ref(!1),{pageMode:dr,fontFamily:fr}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),hr=vue.inject("showIndDetail",Hr=>{}),vr=vue.inject("showIndSource",Hr=>{}),pr=vue.inject("usedComponentList",[]),mr=vue.ref(),gr=vue.ref(!1),yr=vue.ref(!1),Cr=vue.ref(null),br=vue.ref([]),Ar=usePickComponentStyle(ct),wr=vue.ref([]),_r=vue.ref(),Tr=vue.ref({});let Er;const xr=vue.computed(()=>gr.value?ZOOM_FONT_SIZE:12),Sr=vue.ref([]),kr=vue.ref(!1),Pr=vue.ref({}),Ir=vue.ref({}),Br=Hr=>{Pr.value=Hr;const Ur=cr(ct,Hr,{fontSize:vue.unref(xr),fontFamily:vue.unref(fr),callBackMethodMap:{getCurrentData:Yr=>{Er=Yr},toolboxLocationFun:()=>{yr.value=!0;const{xAxis:Yr}=mr.value.chart.getOption()||{};Yr!=null&&Yr.length&&(br.value=Yr[0].data)},toolboxDownloadShowFun:()=>{useDownloadFile(ct.toolboxDownloadUrl)},toolboxDataZoomShowFun:()=>{var Yr;gr.value=!0,(Yr=_r.value)==null||Yr.showModal()},toolboxInfoShowFun:()=>{hr(ct)},toolboxSourceShowFun:()=>{vr(ct)}}});let Jr=parseFloat(ct.legendFontSize);vue.unref(gr)&&(Jr=ZOOM_FONT_SIZE,Ur.toolbox.feature.myDataZoom.show=!1),Ur.legend.textStyle.lineHeight=Jr+8,Ur.legend.textStyle.rich.text.fontSize=Jr,Ir.value=Ur},Or=()=>{gr.value=!1},Nr=(Hr=[],Ur=!1)=>{var Yr,si,fi;let Jr={};if(ct.dataFieldConfigType==="key"){const _i=Ur?ct.keyTypeDataFieldNames:null;Jr=Xn(Hr,_i)}else if(ct.dataFieldConfigType==="value"){const _i=Ur?ct.valueTypeDataFieldNames:null;Jr=Jn(Hr,_i)}if(wr.value=Jr.dataset,(Yr=vue.unref(wr))!=null&&Yr.length){for(const _i of vue.unref(wr))if((si=_i==null?void 0:_i.data)!=null&&si.length)for(const bi of _i.data)bi.sourceValue=bi.value,bi.value=parseFloat(bi.value)}Sr.value=Jr.dimensions,Br(Jr),(fi=Jr.dataset)!=null&&fi.length?ur.value=!1:ur.value=!0},jr=(Hr=[],Ur,Jr=!1)=>{var fi;const si=Xn(Hr,Jr?Ur:null,!0);ct.defaultRangeValue&&setDefaultRangeVal({props:ct,componentList:vue.unref(pr),getGlobalModel:Fr},si),wr.value=si.dataset,Sr.value=si.dimensions,Br(si),(fi=si.dataset)!=null&&fi.length?ur.value=!1:ur.value=!0},Vr=vue.computed(()=>Object.keys(ct).reduce((Hr,Ur)=>(IGNORE_WATCH_KEYS.has(Ur)||(Hr[Ur]=ct[Ur]),Hr),{}));vue.watch(()=>[ct.data,Vr.value],([Hr])=>{(ct.dataType==="static"||vue.unref(dr)==="design")&&Nr(Hr)},{immediate:!0,deep:!0}),vue.watch(gr,()=>{Br(vue.unref(Pr))});const $r=Hr=>{var _i;const{columns:Ur=[],rows:Jr=[]}=((_i=Hr==null?void 0:Hr.data)==null?void 0:_i.data)??{};let Yr;Ur.length>0&&(Yr={name:Ur[0],types:Ur.slice(1).map(bi=>({label:bi,value:bi}))});const{leftAxisList:si=[]}=ct.graphicConfig,fi=si.filter(bi=>bi.show).map(bi=>bi.label);for(const bi of Jr)if(bi)for(const pi in bi)typeof bi[pi]=="string"&&fi.includes(pi)&&!isNaN(parseFloat(bi[pi]))&&(bi[pi]=parseFloat(bi[pi]));jr(Jr,Yr,!0)},zr=useDataSource({props:ct,loading:kr,setData:Hr=>{var Yr,si;ct.dataType!=="component"&&ct.isViewRedrawing&&mr.value.clear();const{columns:Ur=[],rows:Jr=[]}=((Yr=Hr==null?void 0:Hr.data)==null?void 0:Yr.data)||{};(si=Ur==null?void 0:Ur.filter(fi=>fi&&fi!=="null"))!=null&&si.length?$r(Hr):Nr(Jr,!0)}}),Wr=(Hr,Ur)=>!!vue.unref(br)[Ur.value].value.includes(Hr),qr=async()=>{yr.value=!1;const Hr=mr.value.chart.getOption();for(let Ur=0;Ur<7;Ur++)await Mr(Hr,Ur)},Mr=(Hr,Ur)=>new Promise(Jr=>{setTimeout(()=>{const{series:Yr,color:si,xAxis:fi}=Hr,_i=mr.value.chart,{splitArea:bi={}}=fi[0]||{};Yr.forEach((pi,mi)=>{const xi=pi.data;let ni="";Ur%2?ni=si[mi]+"a8":ni=si[mi],xi[Cr.value].itemStyle={color:ni}}),Ur%2?(bi.show=!0,bi.areaStyle.color=vue.unref(br).map((pi,mi)=>mi===Cr.value?"#ff003b26":"")):bi.show=!1,_i.setOption({series:Yr,xAxis:fi}),Jr()},200)});Dn({refreshData:zr});const Lr=useEmitEvent(ct),{getGlobalModel:Fr,setGlobalModel:Dr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Hr=>{},setGlobalModel:(Hr,Ur)=>{}});Dr(ct.id,{type:ct.type,RECORD:""});const Gr=Lr("click",Hr=>{const Ur=Fr(ct.id);Dr(ct.id,{...Ur,type:ct.type,RECORD:ct.tooltipShow?Er:Hr.data})}),{setRequest:Rr}=vue.inject(REQUEST_MODEL,{setRequest:Hr=>{}});typeof Rr=="function"&&Rr({id:ct.id,requestFn:zr,sortNum:ct.requestSort});const Qr=()=>{const Hr=ct.id,Ur=Fr(Hr);Dr(Hr,{...Ur,RECORD:""})},Kr=Hr=>{mr.value.chart.containPixel("grid",[Hr.offsetX,Hr.offsetY])&&Gr()};return ct.tooltipShow?Tr.value["zr:click"]=Kr:Tr.value.click=Gr,useOnEvent(ct,{refreshData:zr,click:Gr,resetRecord:Qr}),{option:Ir,style:Ar,refreshData:zr,click:Gr,loading:kr,onClose:Or,ecanModal:_r,echartRef:mr,handleLocationOk:qr,onFilterOption:Wr,locationVisible:yr,locationValue:Cr,locationNames:br,eventObj:Tr,emptyData:ur}}}),Bar_vue_vue_type_style_index_0_lang="",Bar_vue_vue_type_style_index_1_scoped_a504d6c2_lang="",_withScopeId$4=ct=>(vue.pushScopeId("data-v-a504d6c2"),ct=ct(),vue.popScopeId(),ct),_hoisted_1$b={class:"location-wrap"},_hoisted_2$7=_withScopeId$4(()=>vue.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function _sfc_render$l(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("echarts"),pr=vue.resolveComponent("spin"),mr=vue.resolveComponent("ecan-modal"),gr=vue.resolveComponent("a-select-option"),yr=vue.resolveComponent("a-select"),Cr=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-bar",style:vue.normalizeStyle(ct.style)},[vue.createVNode(pr,{spinning:ct.loading},{default:vue.withCtx(()=>[ct.noDataTip&&ct.emptyData?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"empty-wrap",style:vue.normalizeStyle({color:ct.tipTextColor,fontSize:ct.tipTextFontSize})},[vue.createElementVNode("span",null,vue.toDisplayString(ct.tipText),1)],4)):(vue.openBlock(),vue.createBlock(vr,vue.mergeProps({key:1,ref:"echartRef",option:ct.option,"update-options":{notMerge:!0},autoresize:""},vue.toHandlers(ct.eventObj)),null,16,["option"]))]),_:1},8,["spinning"]),vue.createVNode(mr,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:ct.onClose},{default:vue.withCtx(()=>[vue.createVNode(pr,{class:"spin-wrap",spinning:ct.loading},{default:vue.withCtx(()=>[vue.createVNode(vr,{option:ct.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),vue.createVNode(Cr,{visible:ct.locationVisible,"onUpdate:visible":Dn[1]||(Dn[1]=br=>ct.locationVisible=br),title:"快速定位",onOk:ct.handleLocationOk},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$b,[_hoisted_2$7,vue.createVNode(yr,{value:ct.locationValue,"onUpdate:value":Dn[0]||(Dn[0]=br=>ct.locationValue=br),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":ct.onFilterOption},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ct.locationNames,(br,Ar)=>(vue.openBlock(),vue.createBlock(gr,{key:Ar,value:Ar},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(br.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const Bar=_export_sfc$1(_sfc_main$j,[["render",_sfc_render$l],["__scopeId","data-v-a504d6c2"]]),EcanBar=withInstall$1(Bar),scatterProps={...props$1,id:"",name:"散点图",keyName:"散点图",type:"ecanScatter",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:233,value:335},{name:556,value:310},{name:56,value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",tooltipShow:!0,tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c}",legendShow:!1,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",symbolSize:10,symbolColor:"#5470c6",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,toolboxInfoSource:!1,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",labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{c}",visualColorKey:"",visualColorCondition:[],visualSizeKey:"",visualSizeCondition:[]},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$i=vue.defineComponent({name:"EcanScatter",props:{...scatterComponentProps},components:{Spin,Echarts,EcanModal},setup(ct,{expose:Dn}){const ur=vue.ref(!1),{pageMode:dr,fontFamily:fr}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),hr=vue.inject("showIndDetail",Dr=>{}),vr=vue.inject("showIndSource",Dr=>{}),pr=vue.ref(),mr=vue.ref(!1),gr=usePickComponentStyle(ct),yr=vue.ref(),Cr=vue.computed(()=>mr.value?ZOOM_FONT_SIZE:12),br=vue.inject("componentList",[]),{loadedData:Ar}=vue.inject(LOADED_DATA,{loadedData:{}}),wr=vue.ref({}),_r=vue.ref({}),Tr=vue.ref({}),Er=vue.computed(()=>{const{xAxisMarkLineValue:Dr=[],yAxisMarkLineValue:Gr=[]}=ct,Rr=Dr.concat(Gr),Qr=[];for(const Kr of Rr){let Hr=Kr.value;const Ur=Hr==null?void 0:Hr.match(/\{(.+?)\}/g);if(Ur!=null&&Ur.length){for(const Yr of Ur)Hr=Hr.replace(Yr,Yr.slice(1,-1));const Jr=vue.unref(br).find(Yr=>Yr.keyName===Hr);Jr!=null&&Jr.id&&!Qr.find(Yr=>Yr.keyName===Hr)&&Qr.push({componentId:Jr.id,keyName:Jr.keyName})}}return Qr});vue.watch(Ar,Dr=>{var Gr;if((Gr=vue.unref(Er))!=null&&Gr.length)for(const Rr of vue.unref(Er)){const{componentId:Qr,keyName:Kr}=Rr;if(Dr[Qr]){const Hr=Sr(Qr);Tr.value[Kr]=Hr.value}else delete Tr.value[Kr]}},{deep:!0});const xr=Dr=>{wr.value=Dr;const Gr=cr(ct,Dr,{fontSize:vue.unref(Cr),fontFamily:vue.unref(fr),maxValueObj:or(vue.unref(pr)),callBackMethodMap:{toolboxDownloadShowFun:()=>{useDownloadFile(ct.toolboxDownloadUrl)},toolboxDataZoomShowFun:()=>{var Rr;mr.value=!0,(Rr=yr.value)==null||Rr.showModal()},toolboxInfoShowFun:()=>{hr(ct)},toolboxSourceShowFun:()=>{vr(ct)}}});vue.unref(mr)&&(Gr.toolbox.feature.myDataZoom.show=!1),_r.value=Gr},{getGlobalModel:Sr,setGlobalModel:kr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Dr=>{},setGlobalModel:(Dr,Gr)=>{}}),Pr=(Dr=[])=>{var Kr;const{name:Gr="name",value:Rr="value"}=tr(ct,ct.graphicConfig,{pageMode:vue.unref(dr)})||{},Qr=Dr.map(Hr=>({value:[Hr[Gr],Hr[Rr]],record:Hr}));xr(Qr),(Kr=Qr.value)!=null&&Kr.length?ur.value=!1:ur.value=!0},Ir=vue.computed(()=>Object.keys(ct).reduce((Dr,Gr)=>(IGNORE_WATCH_KEYS.has(Gr)||(Dr[Gr]=ct[Gr]),Dr),{}));vue.watch(()=>[ct.data,Ir.value],([Dr])=>{(ct.dataType==="static"||vue.unref(dr)==="design")&&Pr(Dr)},{immediate:!0,deep:!0}),vue.watch(mr,()=>{xr(vue.unref(wr))});const Br=vue.ref(!1),Or=useRequestData(ct),Nr=async()=>{var Dr,Gr;if(ct.dataType==="request"){Br.value=!0;try{const Rr=await Or();Pr((Gr=(Dr=Rr==null?void 0:Rr.data)==null?void 0:Dr.data)==null?void 0:Gr.rows)}catch(Rr){console.error(Rr)}finally{Br.value=!1}}},jr=()=>{mr.value=!1},Vr=useEmitEvent(ct);kr(ct.id,{type:ct.type,RECORD:""});const $r=Vr("click",Dr=>{const Gr=ct.id,Rr=Sr(Gr);kr(Gr,{...Rr,type:ct.type,RECORD:Dr==null?void 0:Dr.data})}),zr=Dr=>{var Gr,Rr;Pr((Rr=(Gr=Dr==null?void 0:Dr.data)==null?void 0:Gr.data)==null?void 0:Rr.rows)},Wr=useIndicatorData(ct,Dr=>{ct.isViewRedrawing&&pr.value.clear(),zr(Dr)}),qr=async()=>{try{Br.value=!0;const Dr=await Wr();zr(Dr)}catch(Dr){console.error(Dr)}finally{Br.value=!1}},Mr=async()=>{switch(ct.dataType){case"indicator":await qr();break;case"request":await Nr();break}};useOnEvent(ct,{refreshData:Mr,click:$r,resetRecord:()=>{const Dr=ct.id,Gr=Sr(Dr);kr(Dr,{...Gr,RECORD:""})}});const{setRequest:Fr}=vue.inject(REQUEST_MODEL,{setRequest:Dr=>{}});return typeof Fr=="function"&&Fr({id:ct.id,requestFn:Mr,sortNum:ct.requestSort}),Dn({refreshData:Mr}),{option:_r,style:gr,click:$r,loading:Br,onClose:jr,ecanModal:yr,echartRef:pr,emptyData:ur}}}),Scatter_vue_vue_type_style_index_0_lang="",Scatter_vue_vue_type_style_index_1_scoped_3ab0f8d8_lang="";function _sfc_render$k(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("echarts"),pr=vue.resolveComponent("spin"),mr=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(ct.style)},[vue.createVNode(pr,{spinning:ct.loading},{default:vue.withCtx(()=>[ct.noDataTip&&ct.emptyData?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"empty-wrap",style:vue.normalizeStyle({color:ct.tipTextColor,fontSize:ct.tipTextFontSize})},[vue.createElementVNode("span",null,vue.toDisplayString(ct.tipText),1)],4)):(vue.openBlock(),vue.createBlock(vr,{key:1,ref:"echartRef",option:ct.option,autoresize:"",onClick:ct.click},null,8,["option","onClick"]))]),_:1},8,["spinning"]),vue.createVNode(mr,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:ct.onClose},{default:vue.withCtx(()=>[vue.createVNode(pr,{class:"spin-wrap",spinning:ct.loading},{default:vue.withCtx(()=>[vue.createVNode(vr,{option:ct.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Scatter=_export_sfc$1(_sfc_main$i,[["render",_sfc_render$k],["__scopeId","data-v-3ab0f8d8"]]),EcanScatter=withInstall$1(Scatter),customGraphProps={...props$1,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},customGraphComponentProps=transformToComponentProps(customGraphProps),_sfc_main$h=vue.defineComponent({name:"EcanCustomGraph",props:{...customGraphComponentProps},components:{Echarts},setup(ct){const Dn=usePickComponentStyle(ct),ur=vue.ref();return vue.watch(()=>ct.optionCode,dr=>{try{const fr=eval;ur.value=fr(dr)}catch(fr){console.error(fr)}},{immediate:!0}),{style:Dn,myOption:ur,echarts:echarts__namespace}}});function _sfc_render$j(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("echarts");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(ct.style)},[vue.createVNode(vr,{option:ct.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const CustomGraph=_export_sfc$1(_sfc_main$h,[["render",_sfc_render$j]]),EcanCustomGraph=withInstall$1(CustomGraph),comboGraphProps={...props$1,id:"",name:"组合图表",keyName:"组合图表",type:"ecanComboGraph",width:"400px",height:"400px",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:410,type:"类型一"},{name:"名称三",value:210,type:"类型一"},{name:"名称一",value:510,type:"类型二"},{name:"名称二",value:731,type:"类型二"},{name:"名称三",value:910,type:"类型二"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {a} {c}",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelWidth:void 0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisMinInterval:0,yAxisLeftSplitLineShow:!0,yAxisRightSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",seriesTypes:[{type:"bar",axisIndex:0},{type:"line",axisIndex:0}],yAxis:[{axisLabelFormatter:"{value}"},{axisLabelFormatter:"{value}"}],gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxInfoSource:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,symbolSize:4,lineStyleWidth:2,smooth:!1,barWidth:"40%",barBorderRadius:"",areaGradientShow:!1,areaGradientColor:"",yAxisLabelShow:!0,yAxisLeftSplitLineType:"solid",yAxisRightSplitLineType:"solid",gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,legendType:"",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanComboGraph",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisLeftName:"",yAxisRightName:"",xAxisName:"",defaultRangeValue:!1,startValue:"",endValue:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,yAxisLeftUnitAdapt:!1,yAxisRightUnitAdapt:!1,noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px",labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{c}",associatId:""},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$g=vue.defineComponent({name:"EcanComboGraph",props:{...comboGraphComponentProps},components:{Spin,Echarts,EcanModal,AModal:antDesignVue.Modal},setup(ct,{expose:Dn}){const ur=vue.ref(!1),dr=vue.ref(!1),{pageMode:fr,fontFamily:hr}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),vr=vue.inject("showIndDetail",Hr=>{}),pr=vue.inject("showIndSource",Hr=>{}),mr=vue.inject("usedComponentList",[]),{getGlobalModel:gr,setGlobalModel:yr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Hr=>{},setGlobalModel:(Hr,Ur)=>{}}),Cr=vue.ref(),br=vue.ref(!1),Ar=vue.ref(!1),wr=vue.ref(null),_r=vue.ref([]),Tr=vue.ref({});let Er;const xr=usePickComponentStyle(ct),Sr=vue.ref([]),kr=vue.ref(),Pr=vue.ref([]),Ir=vue.computed(()=>br.value?ZOOM_FONT_SIZE:12),Br=vue.ref({}),Or=vue.ref({}),Nr=Hr=>{Br.value=Hr;const Ur=cr(ct,Hr,{fontSize:vue.unref(Ir),fontFamily:vue.unref(hr),callBackMethodMap:{getCurrentData:Yr=>{Er=Yr},toolboxLocationFun:()=>{Ar.value=!0;const{xAxis:Yr}=Cr.value.chart.getOption()||{};Yr!=null&&Yr.length&&(_r.value=Yr[0].data)},toolboxDownloadShowFun:()=>{useDownloadFile(ct.toolboxDownloadUrl)},toolboxDataZoomShowFun:()=>{var Yr;br.value=!0,(Yr=kr.value)==null||Yr.showModal()},toolboxInfoShowFun:()=>{vr(ct)},toolboxSourceShowFun:()=>{pr(ct)}}});let Jr=parseFloat(ct.legendFontSize);vue.unref(br)&&(Jr=ZOOM_FONT_SIZE,Ur.toolbox.feature.myDataZoom.show=!1),Ur.legend.textStyle.lineHeight=Jr+8,Ur.legend.textStyle.rich.text.fontSize=Jr,Or.value=Ur},jr=()=>{br.value=!1},Vr=(Hr=[],Ur=!1)=>{var Yr;let Jr;if(ct.dataFieldConfigType==="key"){const si=Ur?ct.keyTypeDataFieldNames:null;Jr=Xn(Hr,si,!0)}else if(ct.dataFieldConfigType==="value"){const si=Ur?ct.valueTypeDataFieldNames:null;Jr=Jn(Hr,si)}Sr.value=Jr.dimensions,Pr.value=Jr.dataset,Nr(Jr),(Yr=Jr.dataset)!=null&&Yr.length?dr.value=!1:dr.value=!0},$r=(Hr=[],Ur,Jr=!1)=>{var fi;const si=Xn(Hr,Jr?Ur:null,!0);ct.defaultRangeValue&&setDefaultRangeVal({props:ct,componentList:vue.unref(mr),getGlobalModel:gr},si),Sr.value=si.dimensions,Pr.value=si.dataset,Nr(si),(fi=si.dataset)!=null&&fi.length?dr.value=!1:dr.value=!0},zr=vue.computed(()=>Object.keys(ct).reduce((Hr,Ur)=>(IGNORE_WATCH_KEYS.has(Ur)||(Hr[Ur]=ct[Ur]),Hr),{}));vue.watch(()=>[ct.data,zr.value],([Hr])=>{(ct.dataType==="static"||vue.unref(fr)==="design")&&Vr(Hr)},{immediate:!0,deep:!0}),vue.watch(br,()=>{Nr(vue.unref(Br))});const Wr=Hr=>{var si;const{columns:Ur=[],rows:Jr=[]}=((si=Hr==null?void 0:Hr.data)==null?void 0:si.data)??{};let Yr;Ur.length>0&&(Yr={name:Ur[0],types:Ur.slice(1).map(fi=>({label:fi,value:fi}))}),$r(Jr,Yr,!0)},qr=useDataSource({props:ct,loading:ur,setData:Hr=>{var Yr,si;ct.dataType!=="component"&&ct.isViewRedrawing&&Cr.value.clear();const{columns:Ur=[],rows:Jr=[]}=((Yr=Hr==null?void 0:Hr.data)==null?void 0:Yr.data)||{};(si=Ur==null?void 0:Ur.filter(fi=>fi&&fi!=="null"))!=null&&si.length?Wr(Hr):Vr(Jr,!0)}}),Mr=(Hr,Ur)=>!!vue.unref(_r)[Ur.value].value.includes(Hr),Lr=async()=>{Ar.value=!1;const Hr=Cr.value.chart.getOption();for(let Ur=0;Ur<7;Ur++)await Fr(Hr,Ur)},Fr=(Hr,Ur)=>new Promise(Jr=>{setTimeout(()=>{const{series:Yr,color:si,xAxis:fi}=Hr,_i=Cr.value.chart,{splitArea:bi={}}=fi[0]||{};Yr.forEach((pi,mi)=>{const xi=pi.data;let ni="";Ur%2?ni=si[mi]+"a8":ni=si[mi],xi[wr.value].itemStyle={color:ni}}),Ur%2?(bi.show=!0,bi.areaStyle.color=vue.unref(_r).map((pi,mi)=>mi===wr.value?"#ff003b26":"")):bi.show=!1,_i.setOption({series:Yr,xAxis:fi}),Jr()},200)});Dn({refreshData:qr});const Dr=useEmitEvent(ct);yr(ct.id,{type:ct.type,RECORD:""});const Gr=Dr("click",Hr=>{const Ur=gr(ct.id);yr(ct.id,{...Ur,type:ct.type,RECORD:ct.tooltipShow?Er:Hr==null?void 0:Hr.data})}),Rr=Hr=>{Cr.value.chart.containPixel("grid",[Hr.offsetX,Hr.offsetY])&&Gr()};ct.tooltipShow?Tr.value["zr:click"]=Rr:Tr.value.click=Gr;const{setRequest:Qr}=vue.inject(REQUEST_MODEL,{setRequest:Hr=>{}});return typeof Qr=="function"&&Qr({id:ct.id,requestFn:qr,sortNum:ct.requestSort}),useOnEvent(ct,{resetRecord:()=>{const Hr=ct.id,Ur=gr(Hr);yr(Hr,{...Ur,RECORD:""})},refreshData:qr,click:Gr}),{style:xr,option:Or,click:Gr,loading:ur,onClose:jr,ecanModal:kr,echartRef:Cr,handleLocationOk:Lr,onFilterOption:Mr,locationVisible:Ar,locationValue:wr,locationNames:_r,eventObj:Tr,emptyData:dr}}}),ComboGraph_vue_vue_type_style_index_0_lang="",ComboGraph_vue_vue_type_style_index_1_scoped_bd97b7da_lang="",_withScopeId$3=ct=>(vue.pushScopeId("data-v-bd97b7da"),ct=ct(),vue.popScopeId(),ct),_hoisted_1$a={class:"location-wrap"},_hoisted_2$6=_withScopeId$3(()=>vue.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function _sfc_render$i(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("echarts"),pr=vue.resolveComponent("spin"),mr=vue.resolveComponent("ecan-modal"),gr=vue.resolveComponent("a-select-option"),yr=vue.resolveComponent("a-select"),Cr=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(ct.style)},[vue.createVNode(pr,{spinning:ct.loading},{default:vue.withCtx(()=>[ct.noDataTip&&ct.emptyData?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"empty-wrap",style:vue.normalizeStyle({color:ct.tipTextColor,fontSize:ct.tipTextFontSize})},[vue.createElementVNode("span",null,vue.toDisplayString(ct.tipText),1)],4)):(vue.openBlock(),vue.createBlock(vr,vue.mergeProps({key:1,ref:"echartRef",option:ct.option,"update-options":{notMerge:!0},autoresize:""},vue.toHandlers(ct.eventObj)),null,16,["option"]))]),_:1},8,["spinning"]),vue.createVNode(mr,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:ct.onClose},{default:vue.withCtx(()=>[vue.createVNode(pr,{class:"spin-wrap",spinning:ct.loading},{default:vue.withCtx(()=>[vue.createVNode(vr,{option:ct.option,"update-options":{notMerge:!0},autoresize:"",onClick:ct.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),vue.createVNode(Cr,{visible:ct.locationVisible,"onUpdate:visible":Dn[1]||(Dn[1]=br=>ct.locationVisible=br),title:"快速定位",onOk:ct.handleLocationOk},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$a,[_hoisted_2$6,vue.createVNode(yr,{value:ct.locationValue,"onUpdate:value":Dn[0]||(Dn[0]=br=>ct.locationValue=br),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":ct.onFilterOption},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ct.locationNames,(br,Ar)=>(vue.openBlock(),vue.createBlock(gr,{key:Ar,value:Ar},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(br.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const ComboGraph=_export_sfc$1(_sfc_main$g,[["render",_sfc_render$i],["__scopeId","data-v-bd97b7da"]]),EcanComboGraph=withInstall$1(ComboGraph),radarProps={...props$1,id:"",name:"雷达图",keyName:"雷达图",type:"ecanRadar",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"},{name:"名称五",value:435,type:"类型一"},{name:"名称六",value:215,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxInfoSource:!1,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",associatId:""},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$f=vue.defineComponent({name:"EcanRadar",props:{...radarComponentProps},components:{Spin,Echarts,EcanModal},setup(ct,{expose:Dn}){const ur=vue.ref(!1),dr=vue.ref(!1),{pageMode:fr,fontFamily:hr}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),vr=vue.inject("showIndDetail",Wr=>{}),pr=vue.inject("showIndSource",Wr=>{}),mr=vue.ref(),gr=vue.ref(!1),yr=usePickComponentStyle(ct),Cr=vue.ref(),br=vue.computed(()=>gr.value?ZOOM_FONT_SIZE:12),Ar=vue.ref(ct.valueTypeDataFieldNames.name),wr=vue.ref({}),_r=vue.ref({}),Tr=Wr=>{wr.value=Wr;const qr=cr(ct,xr(Wr),{fontSize:vue.unref(br),fontFamily:vue.unref(hr),callBackMethodMap:{toolboxDownloadShowFun:()=>{useDownloadFile(ct.toolboxDownloadUrl)},toolboxDataZoomShowFun:()=>{var Lr;gr.value=!0,(Lr=Cr.value)==null||Lr.showModal()},toolboxInfoShowFun:()=>{vr(ct)},toolboxSourceShowFun:()=>{pr(ct)}}});let Mr=parseFloat(ct.legendFontSize);vue.unref(gr)&&(Mr=ZOOM_FONT_SIZE,qr.toolbox.feature.myDataZoom.show=!1),qr.legend.textStyle.lineHeight=Mr+8,qr.legend.textStyle.rich.text.fontSize=Mr,delete qr.grid,_r.value=qr},Er=()=>{gr.value=!1},xr=Wr=>{var qr;return!Wr||!Array.isArray(Wr.dataset)?{dimensions:[],dataset:[]}:Wr.dataset.length&&!((qr=Wr.dimensions)!=null&&qr.length)?{...Wr,dataset:[]}:Wr},{getGlobalModel:Sr,setGlobalModel:kr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Wr=>{},setGlobalModel:(Wr,qr)=>{}}),Pr=(Wr=[],qr=!1)=>{var Lr;let Mr;if(ct.dataFieldConfigType==="key"){const Fr=qr?ct.keyTypeDataFieldNames:null;Mr=Xn(Wr,Fr)}else if(ct.dataFieldConfigType==="value"){const Fr=qr?ct.valueTypeDataFieldNames:null;Mr=Jn(Wr,Fr)}Mr=xr(Mr),Tr(Mr),(Lr=Mr.dataset)!=null&&Lr.length?dr.value=!1:dr.value=!0},Ir=(Wr=[],qr,Mr=!1)=>{var Dr;const Fr=xr(Xn(Wr,Mr?qr:null,!0));Tr(Fr),(Dr=Fr.dataset)!=null&&Dr.length?dr.value=!1:dr.value=!0},Br=vue.computed(()=>Object.keys(ct).reduce((Wr,qr)=>(IGNORE_WATCH_KEYS.has(qr)||(Wr[qr]=ct[qr]),Wr),{}));vue.watch(()=>[ct.data,Br.value],([Wr])=>{(ct.dataType==="static"||vue.unref(fr)==="design")&&Pr(Wr)},{immediate:!0,deep:!0}),vue.watch(gr,()=>{Tr(vue.unref(wr))});const Or=useEmitEvent(ct);kr(ct.id,{type:ct.type,RECORD:""});const Nr=Wr=>{const qr=Wr.event.topTarget.__dimIdx;qr!==void 0&&Or("click",()=>{var Dr,Gr,Rr;const{value:Mr,name:Lr}=Wr.data||{},Fr=Sr(ct.id);kr(ct.id,{...Fr,type:ct.type,RECORD:{[vue.unref(Ar)]:((Rr=(Gr=(Dr=vue.unref(_r))==null?void 0:Dr.radar)==null?void 0:Gr.indicator[qr])==null?void 0:Rr.name)||"",[Lr]:Mr[qr],seriesName:Lr}})})()},jr=Wr=>{var Fr;const{columns:qr=[],rows:Mr=[]}=((Fr=Wr==null?void 0:Wr.data)==null?void 0:Fr.data)??{};let Lr;qr.length>0&&(Ar.value=qr[0],Lr={name:qr[0],types:qr.slice(1).map(Dr=>({label:Dr,value:Dr}))}),Ir(Mr,Lr,!0)},Vr=useDataSource({props:ct,loading:ur,setData:Wr=>{var Lr,Fr;ct.dataType!=="component"&&ct.isViewRedrawing&&mr.value.clear();const{columns:qr=[],rows:Mr=[]}=((Lr=Wr==null?void 0:Wr.data)==null?void 0:Lr.data)||{};(Fr=qr==null?void 0:qr.filter(Dr=>Dr&&Dr!=="null"))!=null&&Fr.length?jr(Wr):Pr(Mr,!0)}});useOnEvent(ct,{refreshData:Vr,resetRecord:()=>{const Wr=ct.id,qr=Sr(Wr);kr(Wr,{...qr,RECORD:""})},click:Nr});const{setRequest:zr}=vue.inject(REQUEST_MODEL,{setRequest:Wr=>{}});return typeof zr=="function"&&zr({id:ct.id,requestFn:Vr,sortNum:ct.requestSort}),Dn({refreshData:Vr}),{option:_r,style:yr,click:Nr,loading:ur,onClose:Er,ecanModal:Cr,echartRef:mr,emptyData:dr}}}),Radar_vue_vue_type_style_index_0_lang="",Radar_vue_vue_type_style_index_1_scoped_2ed5754b_lang="";function _sfc_render$h(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("echarts"),pr=vue.resolveComponent("spin"),mr=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(ct.style)},[vue.createVNode(pr,{spinning:ct.loading},{default:vue.withCtx(()=>[ct.noDataTip&&ct.emptyData?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"empty-wrap",style:vue.normalizeStyle({color:ct.tipTextColor,fontSize:ct.tipTextFontSize})},[vue.createElementVNode("span",null,vue.toDisplayString(ct.tipText),1)],4)):(vue.openBlock(),vue.createBlock(vr,{key:1,ref:"echartRef",option:ct.option,"update-options":{notMerge:!0},autoresize:"",onClick:ct.click},null,8,["option","onClick"]))]),_:1},8,["spinning"]),vue.createVNode(mr,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:ct.onClose},{default:vue.withCtx(()=>[vue.createVNode(pr,{class:"spin-wrap",spinning:ct.loading},{default:vue.withCtx(()=>[vue.createVNode(vr,{option:ct.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Radar=_export_sfc$1(_sfc_main$f,[["render",_sfc_render$h],["__scopeId","data-v-2ed5754b"]]),EcanRadar=withInstall$1(Radar),gaugeProps={...props$1,id:"",name:"仪表盘",keyName:"仪表盘",type:"ecanGauge",width:"400px",height:"400px",top:"",left:"",rotate:"",data:{value:7},graphicConfig:{},noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px",progressWidth:12,progressColor:"#587BF3",axisLabelFontSize:"16px",axisLabelFormatter:"{value}",detailFontSize:"30px",detailFormatter:"{value}",detailColor:"#000000",axisMin:0,axisMax:15,centerLeft:"50%",centerTop:"50%",radius:"75%",toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxInfoSource:!1,toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",warningRule:""},gaugeComponentProps=transformToComponentProps(gaugeProps),gaugeEvents=["refreshData","click","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.GaugeChart,components$1.ToolboxComponent,components$1.TitleComponent,components$1.LegendComponent]);const _sfc_main$e=vue.defineComponent({name:"EcanGauge",props:{...gaugeComponentProps},components:{Spin,Echarts,EcanModal},setup(ct,{expose:Dn}){const ur=vue.ref(!1),{pageMode:dr}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),fr=vue.inject("showIndDetail",qr=>{}),hr=vue.inject("showIndSource",qr=>{}),vr=vue.ref(),pr=vue.ref(!1),mr=usePickComponentStyle(ct),gr=vue.ref(),yr=vue.ref([]),Cr=vue.ref(),br=vue.ref({}),Ar=vue.computed(()=>{var qr,Mr;return(qr=vue.unref(br))!=null&&qr.warningStatus?(Mr=vue.unref(br))==null?void 0:Mr.warningColor:ct.progressColor}),wr=vue.computed(()=>{var qr,Mr;return{toolbox:{show:ct.toolboxShow,left:ct.toolboxLeft,top:ct.toolboxTop,itemSize:ct.toolboxItemSize,itemGap:ct.toolboxItemGap,feature:{myDownload:{show:ct.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(ct.toolboxDownloadUrl)}},myDataZoom:{show:pr.value?!1:ct.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var Lr;pr.value=!0,(Lr=gr.value)==null||Lr.showModal()}},myInfo:{show:ct.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(){fr(ct)}},mySource:{show:ct.toolboxInfoSource,title:"指标来源",icon:"path://M473 71a8 8 0 0 1 8-8h64a8 8 0 0 1 8 8v77.161C722.848 166.622 857.812 301.289 876.729 471H952a8 8 0 0 1 8 8v64a8 8 0 0 1-8 8h-75.053C858.871 721.652 723.515 857.305 553 875.839V951a8 8 0 0 1-8 8h-64a8 8 0 0 1-8-8v-75.161C302.818 857.341 167.659 722.182 149.161 552H72a8 8 0 0 1-8-8v-64a8 8 0 0 1 8-8h77.161C167.659 301.818 302.818 166.659 473 148.161V71z m326 441c0-157.953-128.047-286-286-286S227 354.047 227 512s128.047 286 286 286 286-128.047 286-286z m-286 60c33.137 0 60-26.863 60-60s-26.863-60-60-60-60 26.863-60 60 26.863 60 60 60z",onclick(){hr(ct)}}}},title:{text:ct.titleText,subText:ct.titleSubtext,textStyle:{fontSize:ct.titleFontSize,fontWeight:ct.fontWeight,color:ct.titleColor},left:ct.textAlign},series:[{type:"gauge",center:[ct.centerLeft,ct.centerTop],radius:ct.radius,progress:{show:!0,width:ct.progressWidth,itemStyle:{color:vue.unref(Ar)}},axisLine:{lineStyle:{width:ct.progressWidth}},axisTick:{show:!1},splitLine:{distance:3,length:8,lineStyle:{width:1,color:"#999"}},axisLabel:{distance:22,color:"#999",fontSize:ct.axisLabelFontSize,formatter:Lr=>{let Fr="",Dr=ct.axisLabelFormatter;return Dr===""&&(Dr="{value}"),Fr+=jn(Dr,{textData:{value:Lr}},{useNewline:!0,useSpace:!0}),Fr}},anchor:{show:!0,showAbove:!0,size:15,itemStyle:{borderColor:vue.unref(Ar),borderWidth:10}},pointer:{itemStyle:{color:vue.unref(Ar)}},detail:{valueAnimation:!0,fontSize:ct.detailFontSize,offsetCenter:[0,"50%"],formatter:Lr=>{let Fr="",Dr=ct.detailFormatter;return Dr===""&&(Dr="{value}"),Fr+=jn(Dr,{textData:{value:Lr}},{useNewline:!0,useSpace:!0}),Fr},color:(qr=vue.unref(br))!=null&&qr.warningStatus?(Mr=vue.unref(br))==null?void 0:Mr.warningColor:ct.detailColor},min:ct.axisMin,max:vue.unref(Cr)?parseFloat(vue.unref(Cr))*2:ct.axisMax,data:vue.unref(yr)}]}}),_r=()=>{pr.value=!1},{getGlobalModel:Tr,setGlobalModel:Er}=vue.inject(GLOBAL_MODEL,{getGlobalModel:qr=>{},setGlobalModel:(qr,Mr)=>{}}),xr=(qr={})=>{yr.value=[qr],qr?ur.value=!1:ur.value=!0};vue.watch(()=>[ct.data,ct.progressWidth,ct.progressColor,ct.axisLabelFontSize,ct.axisLabelFormatter,ct.axisMin,ct.axisMax,ct.detailFontSize,ct.detailFormatter,ct.detailColor],([qr])=>{(ct.dataType==="static"||vue.unref(dr)==="design")&&xr(qr)},{immediate:!0,deep:!0});const Sr=vue.ref(!1),kr=useRequestData(ct),Pr=async()=>{var qr,Mr;if(ct.dataType==="request")try{Sr.value=!0;const Lr=await kr();xr((Mr=(qr=Lr==null?void 0:Lr.data)==null?void 0:qr.data)==null?void 0:Mr.rows)}catch(Lr){console.error(Lr)}finally{Sr.value=!1}},Ir=useEmitEvent(ct);Er(ct.id,{type:ct.type,RECORD:""});const Br=qr=>{qr.event.topTarget.__dimIdx!==void 0&&Ir("click",()=>{})()},Or=qr=>{let Mr=ct.warningRule;if(!Mr)return;let Lr=Mr==null?void 0:Mr.match(/\{(.+?)\}/g);if(Lr!=null&&Lr.length){Lr=Array.from(new Set(Lr));for(const Dr of Lr){const Gr=Dr.slice(1,-1).trim();Mr=Mr.replace(new RegExp(Dr,"g"),qr[Gr])}}const Fr=Cn(`(function () {${Mr}})()`,{});qr.warningStatus=Fr,Fr?qr.warningColor="#FF0000":qr.warningColor=""},Nr=qr=>{var Rr;const{rows:Mr={}}=((Rr=qr==null?void 0:qr.data)==null?void 0:Rr.data)??{},{indicators:Lr=[]}=ct.graphicConfig;if(!(Lr!=null&&Lr.length))return;let Fr=Lr.find(Qr=>Qr.gaugeIndType==="main"),Dr=Lr.find(Qr=>Qr.gaugeIndType==="target");const Gr=Lr.filter(Qr=>Qr.show);Fr||(Fr=Gr[0]),Dr||(Dr=Gr[1]),Dr&&(Cr.value=Mr[Dr.label]||0),Fr&&(Or(Mr),br.value=Mr,xr({value:Mr[Fr.label]||0}))},jr=useIndicatorData(ct,qr=>{ct.isViewRedrawing&&vr.value.clear(),Nr(qr)}),Vr=async()=>{try{Sr.value=!0;const qr=await jr();Nr(qr)}catch(qr){console.error(qr)}finally{Sr.value=!1}},$r=async()=>{switch(ct.dataType){case"indicator":await Vr();break;case"request":await Pr();break}};useOnEvent(ct,{refreshData:$r,resetRecord:()=>{const qr=ct.id,Mr=Tr(qr);Er(qr,{...Mr,RECORD:""})},click:Br});const{setRequest:Wr}=vue.inject(REQUEST_MODEL,{setRequest:qr=>{}});return typeof Wr=="function"&&Wr({id:ct.id,requestFn:$r,sortNum:ct.requestSort}),Dn({refreshData:$r}),{option:wr,style:mr,click:Br,loading:Sr,onClose:_r,ecanModal:gr,echartRef:vr,emptyData:ur}}}),Gauge_vue_vue_type_style_index_0_lang="",Gauge_vue_vue_type_style_index_1_scoped_d7ba54f2_lang="";function _sfc_render$g(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("echarts"),pr=vue.resolveComponent("spin"),mr=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(ct.style)},[vue.createVNode(pr,{spinning:ct.loading},{default:vue.withCtx(()=>[ct.noDataTip&&ct.emptyData?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"empty-wrap",style:vue.normalizeStyle({color:ct.tipTextColor,fontSize:ct.tipTextFontSize})},[vue.createElementVNode("span",null,vue.toDisplayString(ct.tipText),1)],4)):(vue.openBlock(),vue.createBlock(vr,{key:1,ref:"echartRef",option:ct.option,autoresize:"",onClick:ct.click},null,8,["option","onClick"]))]),_:1},8,["spinning"]),vue.createVNode(mr,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:ct.onClose},{default:vue.withCtx(()=>[vue.createVNode(pr,{class:"spin-wrap",spinning:ct.loading},{default:vue.withCtx(()=>[vue.createVNode(vr,{option:ct.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Gauge=_export_sfc$1(_sfc_main$e,[["render",_sfc_render$g],["__scopeId","data-v-d7ba54f2"]]),EcanGauge=withInstall$1(Gauge),boxplotProps={...props$1,id:"",name:"箱线图",keyName:"箱线图",type:"ecanBoxplot",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{category:"1月",min:15,Q1:25,median:40.2,Q3:50.1,max:76},{category:"2月",min:25,Q1:40,median:52.5,Q3:88,max:108},{category:"3月",min:10,Q1:25,median:46,Q3:60.5,max:89}],titleText:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!1,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:"#D8D8D8",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!0,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} {category}
|
|
183
183
|
最大值:{max}
|
|
184
184
|
上四分位数:{Q3}
|
|
185
185
|
中位数:{median}
|
|
@@ -197,7 +197,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
197
197
|
By Ken Fyrstenberg
|
|
198
198
|
Contributions by leeoniya.
|
|
199
199
|
License: MIT, header required.
|
|
200
|
-
*/var Matrix=function(){var ct=Math.cos,Dn=Math.sin,ur=Math.tan,dr=Math.round;function fr(){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 hr(Fr){if(Fr===0)return this;var Dr=ct(Fr),Gr=Dn(Fr);return this._t(Dr,-Gr,0,0,Gr,Dr,0,0,0,0,1,0,0,0,0,1)}function vr(Fr){if(Fr===0)return this;var Dr=ct(Fr),Gr=Dn(Fr);return this._t(1,0,0,0,0,Dr,-Gr,0,0,Gr,Dr,0,0,0,0,1)}function pr(Fr){if(Fr===0)return this;var Dr=ct(Fr),Gr=Dn(Fr);return this._t(Dr,0,Gr,0,0,1,0,0,-Gr,0,Dr,0,0,0,0,1)}function mr(Fr){if(Fr===0)return this;var Dr=ct(Fr),Gr=Dn(Fr);return this._t(Dr,-Gr,0,0,Gr,Dr,0,0,0,0,1,0,0,0,0,1)}function gr(Fr,Dr){return this._t(1,Dr,Fr,1,0,0)}function yr(Fr,Dr){return this.shear(ur(Fr),ur(Dr))}function Cr(Fr,Dr){var Gr=ct(Dr),Rr=Dn(Dr);return this._t(Gr,Rr,0,0,-Rr,Gr,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,ur(Fr),1,0,0,0,0,1,0,0,0,0,1)._t(Gr,-Rr,0,0,Rr,Gr,0,0,0,0,1,0,0,0,0,1)}function br(Fr,Dr,Gr){return!Gr&&Gr!==0&&(Gr=1),Fr===1&&Dr===1&&Gr===1?this:this._t(Fr,0,0,0,0,Dr,0,0,0,0,Gr,0,0,0,0,1)}function Ar(Fr,Dr,Gr,Rr,Qr,Kr,Hr,Ur,Jr,Yr,si,fi,_i,bi,pi,mi){return this.props[0]=Fr,this.props[1]=Dr,this.props[2]=Gr,this.props[3]=Rr,this.props[4]=Qr,this.props[5]=Kr,this.props[6]=Hr,this.props[7]=Ur,this.props[8]=Jr,this.props[9]=Yr,this.props[10]=si,this.props[11]=fi,this.props[12]=_i,this.props[13]=bi,this.props[14]=pi,this.props[15]=mi,this}function wr(Fr,Dr,Gr){return Gr=Gr||0,Fr!==0||Dr!==0||Gr!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,Fr,Dr,Gr,1):this}function _r(Fr,Dr,Gr,Rr,Qr,Kr,Hr,Ur,Jr,Yr,si,fi,_i,bi,pi,mi){var xi=this.props;if(Fr===1&&Dr===0&&Gr===0&&Rr===0&&Qr===0&&Kr===1&&Hr===0&&Ur===0&&Jr===0&&Yr===0&&si===1&&fi===0)return xi[12]=xi[12]*Fr+xi[15]*_i,xi[13]=xi[13]*Kr+xi[15]*bi,xi[14]=xi[14]*si+xi[15]*pi,xi[15]*=mi,this._identityCalculated=!1,this;var ni=xi[0],ai=xi[1],Xr=xi[2],vi=xi[3],Si=xi[4],ri=xi[5],yi=xi[6],di=xi[7],Ei=xi[8],Oi=xi[9],Li=xi[10],Ri=xi[11],hi=xi[12],Ci=xi[13],Di=xi[14],$i=xi[15];return xi[0]=ni*Fr+ai*Qr+Xr*Jr+vi*_i,xi[1]=ni*Dr+ai*Kr+Xr*Yr+vi*bi,xi[2]=ni*Gr+ai*Hr+Xr*si+vi*pi,xi[3]=ni*Rr+ai*Ur+Xr*fi+vi*mi,xi[4]=Si*Fr+ri*Qr+yi*Jr+di*_i,xi[5]=Si*Dr+ri*Kr+yi*Yr+di*bi,xi[6]=Si*Gr+ri*Hr+yi*si+di*pi,xi[7]=Si*Rr+ri*Ur+yi*fi+di*mi,xi[8]=Ei*Fr+Oi*Qr+Li*Jr+Ri*_i,xi[9]=Ei*Dr+Oi*Kr+Li*Yr+Ri*bi,xi[10]=Ei*Gr+Oi*Hr+Li*si+Ri*pi,xi[11]=Ei*Rr+Oi*Ur+Li*fi+Ri*mi,xi[12]=hi*Fr+Ci*Qr+Di*Jr+$i*_i,xi[13]=hi*Dr+Ci*Kr+Di*Yr+$i*bi,xi[14]=hi*Gr+Ci*Hr+Di*si+$i*pi,xi[15]=hi*Rr+Ci*Ur+Di*fi+$i*mi,this._identityCalculated=!1,this}function Tr(Fr){var Dr=Fr.props;return this.transform(Dr[0],Dr[1],Dr[2],Dr[3],Dr[4],Dr[5],Dr[6],Dr[7],Dr[8],Dr[9],Dr[10],Dr[11],Dr[12],Dr[13],Dr[14],Dr[15])}function Er(){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 xr(Fr){for(var Dr=0;Dr<16;){if(Fr.props[Dr]!==this.props[Dr])return!1;Dr+=1}return!0}function Sr(Fr){var Dr;for(Dr=0;Dr<16;Dr+=1)Fr.props[Dr]=this.props[Dr];return Fr}function kr(Fr){var Dr;for(Dr=0;Dr<16;Dr+=1)this.props[Dr]=Fr[Dr]}function Pr(Fr,Dr,Gr){return{x:Fr*this.props[0]+Dr*this.props[4]+Gr*this.props[8]+this.props[12],y:Fr*this.props[1]+Dr*this.props[5]+Gr*this.props[9]+this.props[13],z:Fr*this.props[2]+Dr*this.props[6]+Gr*this.props[10]+this.props[14]}}function Ir(Fr,Dr,Gr){return Fr*this.props[0]+Dr*this.props[4]+Gr*this.props[8]+this.props[12]}function Br(Fr,Dr,Gr){return Fr*this.props[1]+Dr*this.props[5]+Gr*this.props[9]+this.props[13]}function Or(Fr,Dr,Gr){return Fr*this.props[2]+Dr*this.props[6]+Gr*this.props[10]+this.props[14]}function Nr(){var Fr=this.props[0]*this.props[5]-this.props[1]*this.props[4],Dr=this.props[5]/Fr,Gr=-this.props[1]/Fr,Rr=-this.props[4]/Fr,Qr=this.props[0]/Fr,Kr=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/Fr,Hr=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/Fr,Ur=new Matrix;return Ur.props[0]=Dr,Ur.props[1]=Gr,Ur.props[4]=Rr,Ur.props[5]=Qr,Ur.props[12]=Kr,Ur.props[13]=Hr,Ur}function jr(Fr){var Dr=this.getInverseMatrix();return Dr.applyToPointArray(Fr[0],Fr[1],Fr[2]||0)}function Vr(Fr){var Dr,Gr=Fr.length,Rr=[];for(Dr=0;Dr<Gr;Dr+=1)Rr[Dr]=jr(Fr[Dr]);return Rr}function $r(Fr,Dr,Gr){var Rr=createTypedArray("float32",6);if(this.isIdentity())Rr[0]=Fr[0],Rr[1]=Fr[1],Rr[2]=Dr[0],Rr[3]=Dr[1],Rr[4]=Gr[0],Rr[5]=Gr[1];else{var Qr=this.props[0],Kr=this.props[1],Hr=this.props[4],Ur=this.props[5],Jr=this.props[12],Yr=this.props[13];Rr[0]=Fr[0]*Qr+Fr[1]*Hr+Jr,Rr[1]=Fr[0]*Kr+Fr[1]*Ur+Yr,Rr[2]=Dr[0]*Qr+Dr[1]*Hr+Jr,Rr[3]=Dr[0]*Kr+Dr[1]*Ur+Yr,Rr[4]=Gr[0]*Qr+Gr[1]*Hr+Jr,Rr[5]=Gr[0]*Kr+Gr[1]*Ur+Yr}return Rr}function zr(Fr,Dr,Gr){var Rr;return this.isIdentity()?Rr=[Fr,Dr,Gr]:Rr=[Fr*this.props[0]+Dr*this.props[4]+Gr*this.props[8]+this.props[12],Fr*this.props[1]+Dr*this.props[5]+Gr*this.props[9]+this.props[13],Fr*this.props[2]+Dr*this.props[6]+Gr*this.props[10]+this.props[14]],Rr}function Wr(Fr,Dr){if(this.isIdentity())return Fr+","+Dr;var Gr=this.props;return Math.round((Fr*Gr[0]+Dr*Gr[4]+Gr[12])*100)/100+","+Math.round((Fr*Gr[1]+Dr*Gr[5]+Gr[13])*100)/100}function qr(){for(var Fr=0,Dr=this.props,Gr="matrix3d(",Rr=1e4;Fr<16;)Gr+=dr(Dr[Fr]*Rr)/Rr,Gr+=Fr===15?")":",",Fr+=1;return Gr}function Mr(Fr){var Dr=1e4;return Fr<1e-6&&Fr>0||Fr>-1e-6&&Fr<0?dr(Fr*Dr)/Dr:Fr}function Lr(){var Fr=this.props,Dr=Mr(Fr[0]),Gr=Mr(Fr[1]),Rr=Mr(Fr[4]),Qr=Mr(Fr[5]),Kr=Mr(Fr[12]),Hr=Mr(Fr[13]);return"matrix("+Dr+","+Gr+","+Rr+","+Qr+","+Kr+","+Hr+")"}return function(){this.reset=fr,this.rotate=hr,this.rotateX=vr,this.rotateY=pr,this.rotateZ=mr,this.skew=yr,this.skewFromAxis=Cr,this.shear=gr,this.scale=br,this.setTransform=Ar,this.translate=wr,this.transform=_r,this.multiply=Tr,this.applyToPoint=Pr,this.applyToX=Ir,this.applyToY=Br,this.applyToZ=Or,this.applyToPointArray=zr,this.applyToTriplePoints=$r,this.applyToPointStringified=Wr,this.toCSS=qr,this.to2dCSS=Lr,this.clone=Sr,this.cloneFromProps=kr,this.equals=xr,this.inversePoints=Vr,this.inversePoint=jr,this.getInverseMatrix=Nr,this._t=this.transform,this.isIdentity=Er,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(ct){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(ur){return typeof ur}:_typeof$3=function(ur){return ur&&typeof Symbol=="function"&&ur.constructor===Symbol&&ur!==Symbol.prototype?"symbol":typeof ur},_typeof$3(ct)}var lottie={};function setLocation(ct){setLocationHref(ct)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(ct){setSubframeEnabled(ct)}function setPrefix(ct){setIdPrefix(ct)}function loadAnimation(ct){return animationManager.loadAnimation(ct)}function setQuality(ct){if(typeof ct=="string")switch(ct){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(ct)&&ct>1&&setDefaultCurveSegments(ct)}function inBrowser(){return typeof navigator<"u"}function installPlugin(ct,Dn){ct==="expressions"&&setExpressionsPlugin(Dn)}function getFactory(ct){switch(ct){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(ct){for(var Dn=queryString.split("&"),ur=0;ur<Dn.length;ur+=1){var dr=Dn[ur].split("=");if(decodeURIComponent(dr[0])==ct)return decodeURIComponent(dr[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(ct){}var ShapeModifiers=function(){var ct={},Dn={};ct.registerModifier=ur,ct.getModifier=dr;function ur(fr,hr){Dn[fr]||(Dn[fr]=hr)}function dr(fr,hr,vr){return new Dn[fr](hr,vr)}return ct}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(ct){if(!this.closed){ct.sh.container.addDynamicProperty(ct.sh);var Dn={shape:ct.sh,data:ct,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(Dn),this.addShapeToModifier(Dn),this._isAnimated&&ct.setAsAnimated()}},ShapeModifier.prototype.init=function(ct,Dn){this.shapes=[],this.elem=ct,this.initDynamicPropertyContainer(ct),this.initModifierProperties(ct,Dn),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(ct,Dn){this.s=PropertyFactory.getProp(ct,Dn.s,0,.01,this),this.e=PropertyFactory.getProp(ct,Dn.e,0,.01,this),this.o=PropertyFactory.getProp(ct,Dn.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=Dn.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(ct){ct.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(ct,Dn,ur,dr,fr){var hr=[];Dn<=1?hr.push({s:ct,e:Dn}):ct>=1?hr.push({s:ct-1,e:Dn-1}):(hr.push({s:ct,e:1}),hr.push({s:0,e:Dn-1}));var vr=[],pr,mr=hr.length,gr;for(pr=0;pr<mr;pr+=1)if(gr=hr[pr],!(gr.e*fr<dr||gr.s*fr>dr+ur)){var yr,Cr;gr.s*fr<=dr?yr=0:yr=(gr.s*fr-dr)/ur,gr.e*fr>=dr+ur?Cr=1:Cr=(gr.e*fr-dr)/ur,vr.push([yr,Cr])}return vr.length||vr.push([0,0]),vr},TrimModifier.prototype.releasePathsData=function(ct){var Dn,ur=ct.length;for(Dn=0;Dn<ur;Dn+=1)segmentsLengthPool.release(ct[Dn]);return ct.length=0,ct},TrimModifier.prototype.processShapes=function(ct){var Dn,ur;if(this._mdf||ct){var dr=this.o.v%360/360;if(dr<0&&(dr+=1),this.s.v>1?Dn=1+dr:this.s.v<0?Dn=0+dr:Dn=this.s.v+dr,this.e.v>1?ur=1+dr:this.e.v<0?ur=0+dr:ur=this.e.v+dr,Dn>ur){var fr=Dn;Dn=ur,ur=fr}Dn=Math.round(Dn*1e4)*1e-4,ur=Math.round(ur*1e4)*1e-4,this.sValue=Dn,this.eValue=ur}else Dn=this.sValue,ur=this.eValue;var hr,vr,pr=this.shapes.length,mr,gr,yr,Cr,br,Ar=0;if(ur===Dn)for(vr=0;vr<pr;vr+=1)this.shapes[vr].localShapeCollection.releaseShapes(),this.shapes[vr].shape._mdf=!0,this.shapes[vr].shape.paths=this.shapes[vr].localShapeCollection,this._mdf&&(this.shapes[vr].pathsData.length=0);else if(ur===1&&Dn===0||ur===0&&Dn===1){if(this._mdf)for(vr=0;vr<pr;vr+=1)this.shapes[vr].pathsData.length=0,this.shapes[vr].shape._mdf=!0}else{var wr=[],_r,Tr;for(vr=0;vr<pr;vr+=1)if(_r=this.shapes[vr],!_r.shape._mdf&&!this._mdf&&!ct&&this.m!==2)_r.shape.paths=_r.localShapeCollection;else{if(hr=_r.shape.paths,gr=hr._length,br=0,!_r.shape._mdf&&_r.pathsData.length)br=_r.totalShapeLength;else{for(yr=this.releasePathsData(_r.pathsData),mr=0;mr<gr;mr+=1)Cr=bez.getSegmentsLength(hr.shapes[mr]),yr.push(Cr),br+=Cr.totalLength;_r.totalShapeLength=br,_r.pathsData=yr}Ar+=br,_r.shape._mdf=!0}var Er=Dn,xr=ur,Sr=0,kr;for(vr=pr-1;vr>=0;vr-=1)if(_r=this.shapes[vr],_r.shape._mdf){for(Tr=_r.localShapeCollection,Tr.releaseShapes(),this.m===2&&pr>1?(kr=this.calculateShapeEdges(Dn,ur,_r.totalShapeLength,Sr,Ar),Sr+=_r.totalShapeLength):kr=[[Er,xr]],gr=kr.length,mr=0;mr<gr;mr+=1){Er=kr[mr][0],xr=kr[mr][1],wr.length=0,xr<=1?wr.push({s:_r.totalShapeLength*Er,e:_r.totalShapeLength*xr}):Er>=1?wr.push({s:_r.totalShapeLength*(Er-1),e:_r.totalShapeLength*(xr-1)}):(wr.push({s:_r.totalShapeLength*Er,e:_r.totalShapeLength}),wr.push({s:0,e:_r.totalShapeLength*(xr-1)}));var Pr=this.addShapes(_r,wr[0]);if(wr[0].s!==wr[0].e){if(wr.length>1){var Ir=_r.shape.paths.shapes[_r.shape.paths._length-1];if(Ir.c){var Br=Pr.pop();this.addPaths(Pr,Tr),Pr=this.addShapes(_r,wr[1],Br)}else this.addPaths(Pr,Tr),Pr=this.addShapes(_r,wr[1])}this.addPaths(Pr,Tr)}}_r.shape.paths=Tr}}},TrimModifier.prototype.addPaths=function(ct,Dn){var ur,dr=ct.length;for(ur=0;ur<dr;ur+=1)Dn.addShape(ct[ur])},TrimModifier.prototype.addSegment=function(ct,Dn,ur,dr,fr,hr,vr){fr.setXYAt(Dn[0],Dn[1],"o",hr),fr.setXYAt(ur[0],ur[1],"i",hr+1),vr&&fr.setXYAt(ct[0],ct[1],"v",hr),fr.setXYAt(dr[0],dr[1],"v",hr+1)},TrimModifier.prototype.addSegmentFromArray=function(ct,Dn,ur,dr){Dn.setXYAt(ct[1],ct[5],"o",ur),Dn.setXYAt(ct[2],ct[6],"i",ur+1),dr&&Dn.setXYAt(ct[0],ct[4],"v",ur),Dn.setXYAt(ct[3],ct[7],"v",ur+1)},TrimModifier.prototype.addShapes=function(ct,Dn,ur){var dr=ct.pathsData,fr=ct.shape.paths.shapes,hr,vr=ct.shape.paths._length,pr,mr,gr=0,yr,Cr,br,Ar,wr=[],_r,Tr=!0;for(ur?(Cr=ur._length,_r=ur._length):(ur=shapePool.newElement(),Cr=0,_r=0),wr.push(ur),hr=0;hr<vr;hr+=1){for(br=dr[hr].lengths,ur.c=fr[hr].c,mr=fr[hr].c?br.length:br.length+1,pr=1;pr<mr;pr+=1)if(yr=br[pr-1],gr+yr.addedLength<Dn.s)gr+=yr.addedLength,ur.c=!1;else if(gr>Dn.e){ur.c=!1;break}else Dn.s<=gr&&Dn.e>=gr+yr.addedLength?(this.addSegment(fr[hr].v[pr-1],fr[hr].o[pr-1],fr[hr].i[pr],fr[hr].v[pr],ur,Cr,Tr),Tr=!1):(Ar=bez.getNewSegment(fr[hr].v[pr-1],fr[hr].v[pr],fr[hr].o[pr-1],fr[hr].i[pr],(Dn.s-gr)/yr.addedLength,(Dn.e-gr)/yr.addedLength,br[pr-1]),this.addSegmentFromArray(Ar,ur,Cr,Tr),Tr=!1,ur.c=!1),gr+=yr.addedLength,Cr+=1;if(fr[hr].c&&br.length){if(yr=br[pr-1],gr<=Dn.e){var Er=br[pr-1].addedLength;Dn.s<=gr&&Dn.e>=gr+Er?(this.addSegment(fr[hr].v[pr-1],fr[hr].o[pr-1],fr[hr].i[0],fr[hr].v[0],ur,Cr,Tr),Tr=!1):(Ar=bez.getNewSegment(fr[hr].v[pr-1],fr[hr].v[0],fr[hr].o[pr-1],fr[hr].i[0],(Dn.s-gr)/Er,(Dn.e-gr)/Er,br[pr-1]),this.addSegmentFromArray(Ar,ur,Cr,Tr),Tr=!1,ur.c=!1)}else ur.c=!1;gr+=yr.addedLength,Cr+=1}if(ur._length&&(ur.setXYAt(ur.v[_r][0],ur.v[_r][1],"i",_r),ur.setXYAt(ur.v[ur._length-1][0],ur.v[ur._length-1][1],"o",ur._length-1)),gr>Dn.e)break;hr<vr-1&&(ur=shapePool.newElement(),Tr=!0,wr.push(ur),Cr=0)}return wr};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(ct,Dn){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(ct,Dn.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(ct,Dn){var ur=Dn/100,dr=[0,0],fr=ct._length,hr=0;for(hr=0;hr<fr;hr+=1)dr[0]+=ct.v[hr][0],dr[1]+=ct.v[hr][1];dr[0]/=fr,dr[1]/=fr;var vr=shapePool.newElement();vr.c=ct.c;var pr,mr,gr,yr,Cr,br;for(hr=0;hr<fr;hr+=1)pr=ct.v[hr][0]+(dr[0]-ct.v[hr][0])*ur,mr=ct.v[hr][1]+(dr[1]-ct.v[hr][1])*ur,gr=ct.o[hr][0]+(dr[0]-ct.o[hr][0])*-ur,yr=ct.o[hr][1]+(dr[1]-ct.o[hr][1])*-ur,Cr=ct.i[hr][0]+(dr[0]-ct.i[hr][0])*-ur,br=ct.i[hr][1]+(dr[1]-ct.i[hr][1])*-ur,vr.setTripleAt(pr,mr,gr,yr,Cr,br,hr);return vr},PuckerAndBloatModifier.prototype.processShapes=function(ct){var Dn,ur,dr=this.shapes.length,fr,hr,vr=this.amount.v;if(vr!==0){var pr,mr;for(ur=0;ur<dr;ur+=1){if(pr=this.shapes[ur],mr=pr.localShapeCollection,!(!pr.shape._mdf&&!this._mdf&&!ct))for(mr.releaseShapes(),pr.shape._mdf=!0,Dn=pr.shape.paths.shapes,hr=pr.shape.paths._length,fr=0;fr<hr;fr+=1)mr.addShape(this.processPath(Dn[fr],vr));pr.shape.paths=pr.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var ct=[0,0];function Dn(mr){var gr=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||gr,this.a&&mr.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&mr.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&mr.skewFromAxis(-this.sk.v,this.sa.v),this.r?mr.rotate(-this.r.v):mr.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?mr.translate(this.px.v,this.py.v,-this.pz.v):mr.translate(this.px.v,this.py.v,0):mr.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function ur(mr){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||mr){var gr;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 yr,Cr;if(gr=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(yr=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/gr,0),Cr=this.p.getValueAtTime(this.p.keyframes[0].t/gr,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(yr=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/gr,0),Cr=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/gr,0)):(yr=this.p.pv,Cr=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/gr,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){yr=[],Cr=[];var br=this.px,Ar=this.py;br._caching.lastFrame+br.offsetTime<=br.keyframes[0].t?(yr[0]=br.getValueAtTime((br.keyframes[0].t+.01)/gr,0),yr[1]=Ar.getValueAtTime((Ar.keyframes[0].t+.01)/gr,0),Cr[0]=br.getValueAtTime(br.keyframes[0].t/gr,0),Cr[1]=Ar.getValueAtTime(Ar.keyframes[0].t/gr,0)):br._caching.lastFrame+br.offsetTime>=br.keyframes[br.keyframes.length-1].t?(yr[0]=br.getValueAtTime(br.keyframes[br.keyframes.length-1].t/gr,0),yr[1]=Ar.getValueAtTime(Ar.keyframes[Ar.keyframes.length-1].t/gr,0),Cr[0]=br.getValueAtTime((br.keyframes[br.keyframes.length-1].t-.01)/gr,0),Cr[1]=Ar.getValueAtTime((Ar.keyframes[Ar.keyframes.length-1].t-.01)/gr,0)):(yr=[br.pv,Ar.pv],Cr[0]=br.getValueAtTime((br._caching.lastFrame+br.offsetTime-.01)/gr,br.offsetTime),Cr[1]=Ar.getValueAtTime((Ar._caching.lastFrame+Ar.offsetTime-.01)/gr,Ar.offsetTime))}else Cr=ct,yr=Cr;this.v.rotate(-Math.atan2(yr[1]-Cr[1],yr[0]-Cr[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 dr(){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 fr(){}function hr(mr){this._addDynamicProperty(mr),this.elem.addDynamicProperty(mr),this._isDirty=!0}function vr(mr,gr,yr){if(this.elem=mr,this.frameId=-1,this.propType="transform",this.data=gr,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(yr||mr),gr.p&&gr.p.s?(this.px=PropertyFactory.getProp(mr,gr.p.x,0,0,this),this.py=PropertyFactory.getProp(mr,gr.p.y,0,0,this),gr.p.z&&(this.pz=PropertyFactory.getProp(mr,gr.p.z,0,0,this))):this.p=PropertyFactory.getProp(mr,gr.p||{k:[0,0,0]},1,0,this),gr.rx){if(this.rx=PropertyFactory.getProp(mr,gr.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(mr,gr.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(mr,gr.rz,0,degToRads,this),gr.or.k[0].ti){var Cr,br=gr.or.k.length;for(Cr=0;Cr<br;Cr+=1)gr.or.k[Cr].to=null,gr.or.k[Cr].ti=null}this.or=PropertyFactory.getProp(mr,gr.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(mr,gr.r||{k:0},0,degToRads,this);gr.sk&&(this.sk=PropertyFactory.getProp(mr,gr.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(mr,gr.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(mr,gr.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(mr,gr.s||{k:[100,100,100]},1,.01,this),gr.o?this.o=PropertyFactory.getProp(mr,gr.o,0,.01,mr):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}vr.prototype={applyToMatrix:Dn,getValue:ur,precalculateMatrix:dr,autoOrient:fr},extendPrototype([DynamicPropertyContainer],vr),vr.prototype.addDynamicProperty=hr,vr.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function pr(mr,gr,yr){return new vr(mr,gr,yr)}return{getTransformProperty:pr}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(ct,Dn){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(ct,Dn.c,0,null,this),this.o=PropertyFactory.getProp(ct,Dn.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(ct,Dn.tr,this),this.so=PropertyFactory.getProp(ct,Dn.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(ct,Dn.tr.eo,0,.01,this),this.data=Dn,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(ct,Dn,ur,dr,fr,hr){var vr=hr?-1:1,pr=dr.s.v[0]+(1-dr.s.v[0])*(1-fr),mr=dr.s.v[1]+(1-dr.s.v[1])*(1-fr);ct.translate(dr.p.v[0]*vr*fr,dr.p.v[1]*vr*fr,dr.p.v[2]),Dn.translate(-dr.a.v[0],-dr.a.v[1],dr.a.v[2]),Dn.rotate(-dr.r.v*vr*fr),Dn.translate(dr.a.v[0],dr.a.v[1],dr.a.v[2]),ur.translate(-dr.a.v[0],-dr.a.v[1],dr.a.v[2]),ur.scale(hr?1/pr:pr,hr?1/mr:mr),ur.translate(dr.a.v[0],dr.a.v[1],dr.a.v[2])},RepeaterModifier.prototype.init=function(ct,Dn,ur,dr){for(this.elem=ct,this.arr=Dn,this.pos=ur,this.elemsData=dr,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(ct),this.initModifierProperties(ct,Dn[ur]);ur>0;)ur-=1,this._elements.unshift(Dn[ur]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(ct){var Dn,ur=ct.length;for(Dn=0;Dn<ur;Dn+=1)ct[Dn]._processed=!1,ct[Dn].ty==="gr"&&this.resetElements(ct[Dn].it)},RepeaterModifier.prototype.cloneElements=function(ct){var Dn=JSON.parse(JSON.stringify(ct));return this.resetElements(Dn),Dn},RepeaterModifier.prototype.changeGroupRender=function(ct,Dn){var ur,dr=ct.length;for(ur=0;ur<dr;ur+=1)ct[ur]._render=Dn,ct[ur].ty==="gr"&&this.changeGroupRender(ct[ur].it,Dn)},RepeaterModifier.prototype.processShapes=function(ct){var Dn,ur,dr,fr,hr,vr=!1;if(this._mdf||ct){var pr=Math.ceil(this.c.v);if(this._groups.length<pr){for(;this._groups.length<pr;){var mr={it:this.cloneElements(this._elements),ty:"gr"};mr.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,mr),this._groups.splice(0,0,mr),this._currentCopies+=1}this.elem.reloadShapes(),vr=!0}hr=0;var gr;for(dr=0;dr<=this._groups.length-1;dr+=1){if(gr=hr<pr,this._groups[dr]._render=gr,this.changeGroupRender(this._groups[dr].it,gr),!gr){var yr=this.elemsData[dr].it,Cr=yr[yr.length-1];Cr.transform.op.v!==0?(Cr.transform.op._mdf=!0,Cr.transform.op.v=0):Cr.transform.op._mdf=!1}hr+=1}this._currentCopies=pr;var br=this.o.v,Ar=br%1,wr=br>0?Math.floor(br):Math.ceil(br),_r=this.pMatrix.props,Tr=this.rMatrix.props,Er=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var xr=0;if(br>0){for(;xr<wr;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),xr+=1;Ar&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,Ar,!1),xr+=Ar)}else if(br<0){for(;xr>wr;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),xr-=1;Ar&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-Ar,!0),xr-=Ar)}dr=this.data.m===1?0:this._currentCopies-1,fr=this.data.m===1?1:-1,hr=this._currentCopies;for(var Sr,kr;hr;){if(Dn=this.elemsData[dr].it,ur=Dn[Dn.length-1].transform.mProps.v.props,kr=ur.length,Dn[Dn.length-1].transform.mProps._mdf=!0,Dn[Dn.length-1].transform.op._mdf=!0,Dn[Dn.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(dr/(this._currentCopies-1)),xr!==0){for((dr!==0&&fr===1||dr!==this._currentCopies-1&&fr===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(Tr[0],Tr[1],Tr[2],Tr[3],Tr[4],Tr[5],Tr[6],Tr[7],Tr[8],Tr[9],Tr[10],Tr[11],Tr[12],Tr[13],Tr[14],Tr[15]),this.matrix.transform(Er[0],Er[1],Er[2],Er[3],Er[4],Er[5],Er[6],Er[7],Er[8],Er[9],Er[10],Er[11],Er[12],Er[13],Er[14],Er[15]),this.matrix.transform(_r[0],_r[1],_r[2],_r[3],_r[4],_r[5],_r[6],_r[7],_r[8],_r[9],_r[10],_r[11],_r[12],_r[13],_r[14],_r[15]),Sr=0;Sr<kr;Sr+=1)ur[Sr]=this.matrix.props[Sr];this.matrix.reset()}else for(this.matrix.reset(),Sr=0;Sr<kr;Sr+=1)ur[Sr]=this.matrix.props[Sr];xr+=1,hr-=1,dr+=fr}}else for(hr=this._currentCopies,dr=0,fr=1;hr;)Dn=this.elemsData[dr].it,ur=Dn[Dn.length-1].transform.mProps.v.props,Dn[Dn.length-1].transform.mProps._mdf=!1,Dn[Dn.length-1].transform.op._mdf=!1,hr-=1,dr+=fr;return vr},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(ct,Dn){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(ct,Dn.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(ct,Dn){var ur=shapePool.newElement();ur.c=ct.c;var dr,fr=ct._length,hr,vr,pr,mr,gr,yr,Cr=0,br,Ar,wr,_r,Tr,Er;for(dr=0;dr<fr;dr+=1)hr=ct.v[dr],pr=ct.o[dr],vr=ct.i[dr],hr[0]===pr[0]&&hr[1]===pr[1]&&hr[0]===vr[0]&&hr[1]===vr[1]?(dr===0||dr===fr-1)&&!ct.c?(ur.setTripleAt(hr[0],hr[1],pr[0],pr[1],vr[0],vr[1],Cr),Cr+=1):(dr===0?mr=ct.v[fr-1]:mr=ct.v[dr-1],gr=Math.sqrt(Math.pow(hr[0]-mr[0],2)+Math.pow(hr[1]-mr[1],2)),yr=gr?Math.min(gr/2,Dn)/gr:0,Tr=hr[0]+(mr[0]-hr[0])*yr,br=Tr,Er=hr[1]-(hr[1]-mr[1])*yr,Ar=Er,wr=br-(br-hr[0])*roundCorner,_r=Ar-(Ar-hr[1])*roundCorner,ur.setTripleAt(br,Ar,wr,_r,Tr,Er,Cr),Cr+=1,dr===fr-1?mr=ct.v[0]:mr=ct.v[dr+1],gr=Math.sqrt(Math.pow(hr[0]-mr[0],2)+Math.pow(hr[1]-mr[1],2)),yr=gr?Math.min(gr/2,Dn)/gr:0,wr=hr[0]+(mr[0]-hr[0])*yr,br=wr,_r=hr[1]+(mr[1]-hr[1])*yr,Ar=_r,Tr=br-(br-hr[0])*roundCorner,Er=Ar-(Ar-hr[1])*roundCorner,ur.setTripleAt(br,Ar,wr,_r,Tr,Er,Cr),Cr+=1):(ur.setTripleAt(ct.v[dr][0],ct.v[dr][1],ct.o[dr][0],ct.o[dr][1],ct.i[dr][0],ct.i[dr][1],Cr),Cr+=1);return ur},RoundCornersModifier.prototype.processShapes=function(ct){var Dn,ur,dr=this.shapes.length,fr,hr,vr=this.rd.v;if(vr!==0){var pr,mr;for(ur=0;ur<dr;ur+=1){if(pr=this.shapes[ur],mr=pr.localShapeCollection,!(!pr.shape._mdf&&!this._mdf&&!ct))for(mr.releaseShapes(),pr.shape._mdf=!0,Dn=pr.shape.paths.shapes,hr=pr.shape.paths._length,fr=0;fr<hr;fr+=1)mr.addShape(this.processPath(Dn[fr],vr));pr.shape.paths=pr.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(ct,Dn){return Math.abs(ct-Dn)*1e5<=Math.min(Math.abs(ct),Math.abs(Dn))}function floatZero(ct){return Math.abs(ct)<=1e-5}function lerp(ct,Dn,ur){return ct*(1-ur)+Dn*ur}function lerpPoint(ct,Dn,ur){return[lerp(ct[0],Dn[0],ur),lerp(ct[1],Dn[1],ur)]}function quadRoots(ct,Dn,ur){if(ct===0)return[];var dr=Dn*Dn-4*ct*ur;if(dr<0)return[];var fr=-Dn/(2*ct);if(dr===0)return[fr];var hr=Math.sqrt(dr)/(2*ct);return[fr-hr,fr+hr]}function polynomialCoefficients(ct,Dn,ur,dr){return[-ct+3*Dn-3*ur+dr,3*ct-6*Dn+3*ur,-3*ct+3*Dn,ct]}function singlePoint(ct){return new PolynomialBezier(ct,ct,ct,ct,!1)}function PolynomialBezier(ct,Dn,ur,dr,fr){fr&&pointEqual(ct,Dn)&&(Dn=lerpPoint(ct,dr,1/3)),fr&&pointEqual(ur,dr)&&(ur=lerpPoint(ct,dr,2/3));var hr=polynomialCoefficients(ct[0],Dn[0],ur[0],dr[0]),vr=polynomialCoefficients(ct[1],Dn[1],ur[1],dr[1]);this.a=[hr[0],vr[0]],this.b=[hr[1],vr[1]],this.c=[hr[2],vr[2]],this.d=[hr[3],vr[3]],this.points=[ct,Dn,ur,dr]}PolynomialBezier.prototype.point=function(ct){return[((this.a[0]*ct+this.b[0])*ct+this.c[0])*ct+this.d[0],((this.a[1]*ct+this.b[1])*ct+this.c[1])*ct+this.d[1]]},PolynomialBezier.prototype.derivative=function(ct){return[(3*ct*this.a[0]+2*this.b[0])*ct+this.c[0],(3*ct*this.a[1]+2*this.b[1])*ct+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(ct){var Dn=this.derivative(ct);return Math.atan2(Dn[1],Dn[0])},PolynomialBezier.prototype.normalAngle=function(ct){var Dn=this.derivative(ct);return Math.atan2(Dn[0],Dn[1])},PolynomialBezier.prototype.inflectionPoints=function(){var ct=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(ct))return[];var Dn=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/ct,ur=Dn*Dn-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/ct;if(ur<0)return[];var dr=Math.sqrt(ur);return floatZero(dr)?dr>0&&dr<1?[Dn]:[]:[Dn-dr,Dn+dr].filter(function(fr){return fr>0&&fr<1})},PolynomialBezier.prototype.split=function(ct){if(ct<=0)return[singlePoint(this.points[0]),this];if(ct>=1)return[this,singlePoint(this.points[this.points.length-1])];var Dn=lerpPoint(this.points[0],this.points[1],ct),ur=lerpPoint(this.points[1],this.points[2],ct),dr=lerpPoint(this.points[2],this.points[3],ct),fr=lerpPoint(Dn,ur,ct),hr=lerpPoint(ur,dr,ct),vr=lerpPoint(fr,hr,ct);return[new PolynomialBezier(this.points[0],Dn,fr,vr,!0),new PolynomialBezier(vr,hr,dr,this.points[3],!0)]};function extrema(ct,Dn){var ur=ct.points[0][Dn],dr=ct.points[ct.points.length-1][Dn];if(ur>dr){var fr=dr;dr=ur,ur=fr}for(var hr=quadRoots(3*ct.a[Dn],2*ct.b[Dn],ct.c[Dn]),vr=0;vr<hr.length;vr+=1)if(hr[vr]>0&&hr[vr]<1){var pr=ct.point(hr[vr])[Dn];pr<ur?ur=pr:pr>dr&&(dr=pr)}return{min:ur,max:dr}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var ct=this.bounds();return{left:ct.x.min,right:ct.x.max,top:ct.y.min,bottom:ct.y.max,width:ct.x.max-ct.x.min,height:ct.y.max-ct.y.min,cx:(ct.x.max+ct.x.min)/2,cy:(ct.y.max+ct.y.min)/2}};function intersectData(ct,Dn,ur){var dr=ct.boundingBox();return{cx:dr.cx,cy:dr.cy,width:dr.width,height:dr.height,bez:ct,t:(Dn+ur)/2,t1:Dn,t2:ur}}function splitData(ct){var Dn=ct.bez.split(.5);return[intersectData(Dn[0],ct.t1,ct.t),intersectData(Dn[1],ct.t,ct.t2)]}function boxIntersect(ct,Dn){return Math.abs(ct.cx-Dn.cx)*2<ct.width+Dn.width&&Math.abs(ct.cy-Dn.cy)*2<ct.height+Dn.height}function intersectsImpl(ct,Dn,ur,dr,fr,hr){if(boxIntersect(ct,Dn)){if(ur>=hr||ct.width<=dr&&ct.height<=dr&&Dn.width<=dr&&Dn.height<=dr){fr.push([ct.t,Dn.t]);return}var vr=splitData(ct),pr=splitData(Dn);intersectsImpl(vr[0],pr[0],ur+1,dr,fr,hr),intersectsImpl(vr[0],pr[1],ur+1,dr,fr,hr),intersectsImpl(vr[1],pr[0],ur+1,dr,fr,hr),intersectsImpl(vr[1],pr[1],ur+1,dr,fr,hr)}}PolynomialBezier.prototype.intersections=function(ct,Dn,ur){Dn===void 0&&(Dn=2),ur===void 0&&(ur=7);var dr=[];return intersectsImpl(intersectData(this,0,1),intersectData(ct,0,1),0,Dn,dr,ur),dr},PolynomialBezier.shapeSegment=function(ct,Dn){var ur=(Dn+1)%ct.length();return new PolynomialBezier(ct.v[Dn],ct.o[Dn],ct.i[ur],ct.v[ur],!0)},PolynomialBezier.shapeSegmentInverted=function(ct,Dn){var ur=(Dn+1)%ct.length();return new PolynomialBezier(ct.v[ur],ct.i[ur],ct.o[Dn],ct.v[Dn],!0)};function crossProduct(ct,Dn){return[ct[1]*Dn[2]-ct[2]*Dn[1],ct[2]*Dn[0]-ct[0]*Dn[2],ct[0]*Dn[1]-ct[1]*Dn[0]]}function lineIntersection(ct,Dn,ur,dr){var fr=[ct[0],ct[1],1],hr=[Dn[0],Dn[1],1],vr=[ur[0],ur[1],1],pr=[dr[0],dr[1],1],mr=crossProduct(crossProduct(fr,hr),crossProduct(vr,pr));return floatZero(mr[2])?null:[mr[0]/mr[2],mr[1]/mr[2]]}function polarOffset(ct,Dn,ur){return[ct[0]+Math.cos(Dn)*ur,ct[1]-Math.sin(Dn)*ur]}function pointDistance(ct,Dn){return Math.hypot(ct[0]-Dn[0],ct[1]-Dn[1])}function pointEqual(ct,Dn){return floatEqual(ct[0],Dn[0])&&floatEqual(ct[1],Dn[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(ct,Dn){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(ct,Dn.s,0,null,this),this.frequency=PropertyFactory.getProp(ct,Dn.r,0,null,this),this.pointsType=PropertyFactory.getProp(ct,Dn.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(ct,Dn,ur,dr,fr,hr,vr){var pr=ur-Math.PI/2,mr=ur+Math.PI/2,gr=Dn[0]+Math.cos(ur)*dr*fr,yr=Dn[1]-Math.sin(ur)*dr*fr;ct.setTripleAt(gr,yr,gr+Math.cos(pr)*hr,yr-Math.sin(pr)*hr,gr+Math.cos(mr)*vr,yr-Math.sin(mr)*vr,ct.length())}function getPerpendicularVector(ct,Dn){var ur=[Dn[0]-ct[0],Dn[1]-ct[1]],dr=-Math.PI*.5,fr=[Math.cos(dr)*ur[0]-Math.sin(dr)*ur[1],Math.sin(dr)*ur[0]+Math.cos(dr)*ur[1]];return fr}function getProjectingAngle(ct,Dn){var ur=Dn===0?ct.length()-1:Dn-1,dr=(Dn+1)%ct.length(),fr=ct.v[ur],hr=ct.v[dr],vr=getPerpendicularVector(fr,hr);return Math.atan2(0,1)-Math.atan2(vr[1],vr[0])}function zigZagCorner(ct,Dn,ur,dr,fr,hr,vr){var pr=getProjectingAngle(Dn,ur),mr=Dn.v[ur%Dn._length],gr=Dn.v[ur===0?Dn._length-1:ur-1],yr=Dn.v[(ur+1)%Dn._length],Cr=hr===2?Math.sqrt(Math.pow(mr[0]-gr[0],2)+Math.pow(mr[1]-gr[1],2)):0,br=hr===2?Math.sqrt(Math.pow(mr[0]-yr[0],2)+Math.pow(mr[1]-yr[1],2)):0;setPoint(ct,Dn.v[ur%Dn._length],pr,vr,dr,br/((fr+1)*2),Cr/((fr+1)*2))}function zigZagSegment(ct,Dn,ur,dr,fr,hr){for(var vr=0;vr<dr;vr+=1){var pr=(vr+1)/(dr+1),mr=fr===2?Math.sqrt(Math.pow(Dn.points[3][0]-Dn.points[0][0],2)+Math.pow(Dn.points[3][1]-Dn.points[0][1],2)):0,gr=Dn.normalAngle(pr),yr=Dn.point(pr);setPoint(ct,yr,gr,hr,ur,mr/((dr+1)*2),mr/((dr+1)*2)),hr=-hr}return hr}ZigZagModifier.prototype.processPath=function(ct,Dn,ur,dr){var fr=ct._length,hr=shapePool.newElement();if(hr.c=ct.c,ct.c||(fr-=1),fr===0)return hr;var vr=-1,pr=PolynomialBezier.shapeSegment(ct,0);zigZagCorner(hr,ct,0,Dn,ur,dr,vr);for(var mr=0;mr<fr;mr+=1)vr=zigZagSegment(hr,pr,Dn,ur,dr,-vr),mr===fr-1&&!ct.c?pr=null:pr=PolynomialBezier.shapeSegment(ct,(mr+1)%fr),zigZagCorner(hr,ct,mr+1,Dn,ur,dr,vr);return hr},ZigZagModifier.prototype.processShapes=function(ct){var Dn,ur,dr=this.shapes.length,fr,hr,vr=this.amplitude.v,pr=Math.max(0,Math.round(this.frequency.v)),mr=this.pointsType.v;if(vr!==0){var gr,yr;for(ur=0;ur<dr;ur+=1){if(gr=this.shapes[ur],yr=gr.localShapeCollection,!(!gr.shape._mdf&&!this._mdf&&!ct))for(yr.releaseShapes(),gr.shape._mdf=!0,Dn=gr.shape.paths.shapes,hr=gr.shape.paths._length,fr=0;fr<hr;fr+=1)yr.addShape(this.processPath(Dn[fr],vr,pr,mr));gr.shape.paths=gr.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(ct,Dn,ur){var dr=Math.atan2(Dn[0]-ct[0],Dn[1]-ct[1]);return[polarOffset(ct,dr,ur),polarOffset(Dn,dr,ur)]}function offsetSegment(ct,Dn){var ur,dr,fr,hr,vr,pr,mr;mr=linearOffset(ct.points[0],ct.points[1],Dn),ur=mr[0],dr=mr[1],mr=linearOffset(ct.points[1],ct.points[2],Dn),fr=mr[0],hr=mr[1],mr=linearOffset(ct.points[2],ct.points[3],Dn),vr=mr[0],pr=mr[1];var gr=lineIntersection(ur,dr,fr,hr);gr===null&&(gr=dr);var yr=lineIntersection(vr,pr,fr,hr);return yr===null&&(yr=vr),new PolynomialBezier(ur,gr,yr,pr)}function joinLines(ct,Dn,ur,dr,fr){var hr=Dn.points[3],vr=ur.points[0];if(dr===3||pointEqual(hr,vr))return hr;if(dr===2){var pr=-Dn.tangentAngle(1),mr=-ur.tangentAngle(0)+Math.PI,gr=lineIntersection(hr,polarOffset(hr,pr+Math.PI/2,100),vr,polarOffset(vr,pr+Math.PI/2,100)),yr=gr?pointDistance(gr,hr):pointDistance(hr,vr)/2,Cr=polarOffset(hr,pr,2*yr*roundCorner);return ct.setXYAt(Cr[0],Cr[1],"o",ct.length()-1),Cr=polarOffset(vr,mr,2*yr*roundCorner),ct.setTripleAt(vr[0],vr[1],vr[0],vr[1],Cr[0],Cr[1],ct.length()),vr}var br=pointEqual(hr,Dn.points[2])?Dn.points[0]:Dn.points[2],Ar=pointEqual(vr,ur.points[1])?ur.points[3]:ur.points[1],wr=lineIntersection(br,hr,vr,Ar);return wr&&pointDistance(wr,hr)<fr?(ct.setTripleAt(wr[0],wr[1],wr[0],wr[1],wr[0],wr[1],ct.length()),wr):hr}function getIntersection(ct,Dn){var ur=ct.intersections(Dn);return ur.length&&floatEqual(ur[0][0],1)&&ur.shift(),ur.length?ur[0]:null}function pruneSegmentIntersection(ct,Dn){var ur=ct.slice(),dr=Dn.slice(),fr=getIntersection(ct[ct.length-1],Dn[0]);return fr&&(ur[ct.length-1]=ct[ct.length-1].split(fr[0])[0],dr[0]=Dn[0].split(fr[1])[1]),ct.length>1&&Dn.length>1&&(fr=getIntersection(ct[0],Dn[Dn.length-1]),fr)?[[ct[0].split(fr[0])[0]],[Dn[Dn.length-1].split(fr[1])[1]]]:[ur,dr]}function pruneIntersections(ct){for(var Dn,ur=1;ur<ct.length;ur+=1)Dn=pruneSegmentIntersection(ct[ur-1],ct[ur]),ct[ur-1]=Dn[0],ct[ur]=Dn[1];return ct.length>1&&(Dn=pruneSegmentIntersection(ct[ct.length-1],ct[0]),ct[ct.length-1]=Dn[0],ct[0]=Dn[1]),ct}function offsetSegmentSplit(ct,Dn){var ur=ct.inflectionPoints(),dr,fr,hr,vr;if(ur.length===0)return[offsetSegment(ct,Dn)];if(ur.length===1||floatEqual(ur[1],1))return hr=ct.split(ur[0]),dr=hr[0],fr=hr[1],[offsetSegment(dr,Dn),offsetSegment(fr,Dn)];hr=ct.split(ur[0]),dr=hr[0];var pr=(ur[1]-ur[0])/(1-ur[0]);return hr=hr[1].split(pr),vr=hr[0],fr=hr[1],[offsetSegment(dr,Dn),offsetSegment(vr,Dn),offsetSegment(fr,Dn)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(ct,Dn){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(ct,Dn.a,0,null,this),this.miterLimit=PropertyFactory.getProp(ct,Dn.ml,0,null,this),this.lineJoin=Dn.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(ct,Dn,ur,dr){var fr=shapePool.newElement();fr.c=ct.c;var hr=ct.length();ct.c||(hr-=1);var vr,pr,mr,gr=[];for(vr=0;vr<hr;vr+=1)mr=PolynomialBezier.shapeSegment(ct,vr),gr.push(offsetSegmentSplit(mr,Dn));if(!ct.c)for(vr=hr-1;vr>=0;vr-=1)mr=PolynomialBezier.shapeSegmentInverted(ct,vr),gr.push(offsetSegmentSplit(mr,Dn));gr=pruneIntersections(gr);var yr=null,Cr=null;for(vr=0;vr<gr.length;vr+=1){var br=gr[vr];for(Cr&&(yr=joinLines(fr,Cr,br[0],ur,dr)),Cr=br[br.length-1],pr=0;pr<br.length;pr+=1)mr=br[pr],yr&&pointEqual(mr.points[0],yr)?fr.setXYAt(mr.points[1][0],mr.points[1][1],"o",fr.length()-1):fr.setTripleAt(mr.points[0][0],mr.points[0][1],mr.points[1][0],mr.points[1][1],mr.points[0][0],mr.points[0][1],fr.length()),fr.setTripleAt(mr.points[3][0],mr.points[3][1],mr.points[3][0],mr.points[3][1],mr.points[2][0],mr.points[2][1],fr.length()),yr=mr.points[3]}return gr.length&&joinLines(fr,Cr,gr[0][0],ur,dr),fr},OffsetPathModifier.prototype.processShapes=function(ct){var Dn,ur,dr=this.shapes.length,fr,hr,vr=this.amount.v,pr=this.miterLimit.v,mr=this.lineJoin;if(vr!==0){var gr,yr;for(ur=0;ur<dr;ur+=1){if(gr=this.shapes[ur],yr=gr.localShapeCollection,!(!gr.shape._mdf&&!this._mdf&&!ct))for(yr.releaseShapes(),gr.shape._mdf=!0,Dn=gr.shape.paths.shapes,hr=gr.shape.paths._length,fr=0;fr<hr;fr+=1)yr.addShape(this.processPath(Dn[fr],vr,mr,pr));gr.shape.paths=gr.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(ct){for(var Dn=ct.fStyle?ct.fStyle.split(" "):[],ur="normal",dr="normal",fr=Dn.length,hr,vr=0;vr<fr;vr+=1)switch(hr=Dn[vr].toLowerCase(),hr){case"italic":dr="italic";break;case"bold":ur="700";break;case"black":ur="900";break;case"medium":ur="500";break;case"regular":case"normal":ur="400";break;case"light":case"thin":ur="200";break}return{style:dr,weight:ct.fWeight||ur}}var FontManager=function(){var ct=5e3,Dn={w:0,size:0,shapes:[],data:{shapes:[]}},ur=[];ur=ur.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 dr=127988,fr=917631,hr=917601,vr=917626,pr=65039,mr=8205,gr=127462,yr=127487,Cr=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function br(Mr){var Lr=Mr.split(","),Fr,Dr=Lr.length,Gr=[];for(Fr=0;Fr<Dr;Fr+=1)Lr[Fr]!=="sans-serif"&&Lr[Fr]!=="monospace"&&Gr.push(Lr[Fr]);return Gr.join(",")}function Ar(Mr,Lr){var Fr=createTag("span");Fr.setAttribute("aria-hidden",!0),Fr.style.fontFamily=Lr;var Dr=createTag("span");Dr.innerText="giItT1WQy@!-/#",Fr.style.position="absolute",Fr.style.left="-10000px",Fr.style.top="-10000px",Fr.style.fontSize="300px",Fr.style.fontVariant="normal",Fr.style.fontStyle="normal",Fr.style.fontWeight="normal",Fr.style.letterSpacing="0",Fr.appendChild(Dr),document.body.appendChild(Fr);var Gr=Dr.offsetWidth;return Dr.style.fontFamily=br(Mr)+", "+Lr,{node:Dr,w:Gr,parent:Fr}}function wr(){var Mr,Lr=this.fonts.length,Fr,Dr,Gr=Lr;for(Mr=0;Mr<Lr;Mr+=1)this.fonts[Mr].loaded?Gr-=1:this.fonts[Mr].fOrigin==="n"||this.fonts[Mr].origin===0?this.fonts[Mr].loaded=!0:(Fr=this.fonts[Mr].monoCase.node,Dr=this.fonts[Mr].monoCase.w,Fr.offsetWidth!==Dr?(Gr-=1,this.fonts[Mr].loaded=!0):(Fr=this.fonts[Mr].sansCase.node,Dr=this.fonts[Mr].sansCase.w,Fr.offsetWidth!==Dr&&(Gr-=1,this.fonts[Mr].loaded=!0)),this.fonts[Mr].loaded&&(this.fonts[Mr].sansCase.parent.parentNode.removeChild(this.fonts[Mr].sansCase.parent),this.fonts[Mr].monoCase.parent.parentNode.removeChild(this.fonts[Mr].monoCase.parent)));Gr!==0&&Date.now()-this.initTime<ct?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function _r(Mr,Lr){var Fr=document.body&&Lr?"svg":"canvas",Dr,Gr=getFontProperties(Mr);if(Fr==="svg"){var Rr=createNS("text");Rr.style.fontSize="100px",Rr.setAttribute("font-family",Mr.fFamily),Rr.setAttribute("font-style",Gr.style),Rr.setAttribute("font-weight",Gr.weight),Rr.textContent="1",Mr.fClass?(Rr.style.fontFamily="inherit",Rr.setAttribute("class",Mr.fClass)):Rr.style.fontFamily=Mr.fFamily,Lr.appendChild(Rr),Dr=Rr}else{var Qr=new OffscreenCanvas(500,500).getContext("2d");Qr.font=Gr.style+" "+Gr.weight+" 100px "+Mr.fFamily,Dr=Qr}function Kr(Hr){return Fr==="svg"?(Dr.textContent=Hr,Dr.getComputedTextLength()):Dr.measureText(Hr).width}return{measureText:Kr}}function Tr(Mr,Lr){if(!Mr){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=Mr.list;return}if(!document.body){this.isLoaded=!0,Mr.list.forEach(function(si){si.helper=_r(si),si.cache={}}),this.fonts=Mr.list;return}var Fr=Mr.list,Dr,Gr=Fr.length,Rr=Gr;for(Dr=0;Dr<Gr;Dr+=1){var Qr=!0,Kr,Hr;if(Fr[Dr].loaded=!1,Fr[Dr].monoCase=Ar(Fr[Dr].fFamily,"monospace"),Fr[Dr].sansCase=Ar(Fr[Dr].fFamily,"sans-serif"),!Fr[Dr].fPath)Fr[Dr].loaded=!0,Rr-=1;else if(Fr[Dr].fOrigin==="p"||Fr[Dr].origin===3){if(Kr=document.querySelectorAll('style[f-forigin="p"][f-family="'+Fr[Dr].fFamily+'"], style[f-origin="3"][f-family="'+Fr[Dr].fFamily+'"]'),Kr.length>0&&(Qr=!1),Qr){var Ur=createTag("style");Ur.setAttribute("f-forigin",Fr[Dr].fOrigin),Ur.setAttribute("f-origin",Fr[Dr].origin),Ur.setAttribute("f-family",Fr[Dr].fFamily),Ur.type="text/css",Ur.innerText="@font-face {font-family: "+Fr[Dr].fFamily+"; font-style: normal; src: url('"+Fr[Dr].fPath+"');}",Lr.appendChild(Ur)}}else if(Fr[Dr].fOrigin==="g"||Fr[Dr].origin===1){for(Kr=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Hr=0;Hr<Kr.length;Hr+=1)Kr[Hr].href.indexOf(Fr[Dr].fPath)!==-1&&(Qr=!1);if(Qr){var Jr=createTag("link");Jr.setAttribute("f-forigin",Fr[Dr].fOrigin),Jr.setAttribute("f-origin",Fr[Dr].origin),Jr.type="text/css",Jr.rel="stylesheet",Jr.href=Fr[Dr].fPath,document.body.appendChild(Jr)}}else if(Fr[Dr].fOrigin==="t"||Fr[Dr].origin===2){for(Kr=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Hr=0;Hr<Kr.length;Hr+=1)Fr[Dr].fPath===Kr[Hr].src&&(Qr=!1);if(Qr){var Yr=createTag("link");Yr.setAttribute("f-forigin",Fr[Dr].fOrigin),Yr.setAttribute("f-origin",Fr[Dr].origin),Yr.setAttribute("rel","stylesheet"),Yr.setAttribute("href",Fr[Dr].fPath),Lr.appendChild(Yr)}}Fr[Dr].helper=_r(Fr[Dr],Lr),Fr[Dr].cache={},this.fonts.push(Fr[Dr])}Rr===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function Er(Mr){if(Mr){this.chars||(this.chars=[]);var Lr,Fr=Mr.length,Dr,Gr=this.chars.length,Rr;for(Lr=0;Lr<Fr;Lr+=1){for(Dr=0,Rr=!1;Dr<Gr;)this.chars[Dr].style===Mr[Lr].style&&this.chars[Dr].fFamily===Mr[Lr].fFamily&&this.chars[Dr].ch===Mr[Lr].ch&&(Rr=!0),Dr+=1;Rr||(this.chars.push(Mr[Lr]),Gr+=1)}}}function xr(Mr,Lr,Fr){for(var Dr=0,Gr=this.chars.length;Dr<Gr;){if(this.chars[Dr].ch===Mr&&this.chars[Dr].style===Lr&&this.chars[Dr].fFamily===Fr)return this.chars[Dr];Dr+=1}return(typeof Mr=="string"&&Mr.charCodeAt(0)!==13||!Mr)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",Mr,Lr,Fr)),Dn}function Sr(Mr,Lr,Fr){var Dr=this.getFontByName(Lr),Gr=Mr;if(!Dr.cache[Gr]){var Rr=Dr.helper;if(Mr===" "){var Qr=Rr.measureText("|"+Mr+"|"),Kr=Rr.measureText("||");Dr.cache[Gr]=(Qr-Kr)/100}else Dr.cache[Gr]=Rr.measureText(Mr)/100}return Dr.cache[Gr]*Fr}function kr(Mr){for(var Lr=0,Fr=this.fonts.length;Lr<Fr;){if(this.fonts[Lr].fName===Mr)return this.fonts[Lr];Lr+=1}return this.fonts[0]}function Pr(Mr){var Lr=0,Fr=Mr.charCodeAt(0);if(Fr>=55296&&Fr<=56319){var Dr=Mr.charCodeAt(1);Dr>=56320&&Dr<=57343&&(Lr=(Fr-55296)*1024+Dr-56320+65536)}return Lr}function Ir(Mr,Lr){var Fr=Mr.toString(16)+Lr.toString(16);return Cr.indexOf(Fr)!==-1}function Br(Mr){return Mr===mr}function Or(Mr){return Mr===pr}function Nr(Mr){var Lr=Pr(Mr);return Lr>=gr&&Lr<=yr}function jr(Mr){return Nr(Mr.substr(0,2))&&Nr(Mr.substr(2,2))}function Vr(Mr){return ur.indexOf(Mr)!==-1}function $r(Mr,Lr){var Fr=Pr(Mr.substr(Lr,2));if(Fr!==dr)return!1;var Dr=0;for(Lr+=2;Dr<5;){if(Fr=Pr(Mr.substr(Lr,2)),Fr<hr||Fr>vr)return!1;Dr+=1,Lr+=2}return Pr(Mr.substr(Lr,2))===fr}function zr(){this.isLoaded=!0}var Wr=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)};Wr.isModifier=Ir,Wr.isZeroWidthJoiner=Br,Wr.isFlagEmoji=jr,Wr.isRegionalCode=Nr,Wr.isCombinedCharacter=Vr,Wr.isRegionalFlag=$r,Wr.isVariationSelector=Or,Wr.BLACK_FLAG_CODE_POINT=dr;var qr={addChars:Er,addFonts:Tr,getCharData:xr,getFontByName:kr,measureText:Sr,checkLoadedFonts:wr,setIsLoaded:zr};return Wr.prototype=qr,Wr}();function SlotManager(ct){this.animationData=ct}SlotManager.prototype.getProp=function(ct){return this.animationData.slots&&this.animationData.slots[ct.sid]?Object.assign(ct,this.animationData.slots[ct.sid].p):ct};function slotFactory(ct){return new SlotManager(ct)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(Dn){this.renderableComponents.indexOf(Dn)===-1&&this.renderableComponents.push(Dn)},removeRenderableComponent:function(Dn){this.renderableComponents.indexOf(Dn)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(Dn),1)},prepareRenderableFrame:function(Dn){this.checkLayerLimits(Dn)},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(Dn){this.data.ip-this.data.st<=Dn&&this.data.op-this.data.st>Dn?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 Dn,ur=this.renderableComponents.length;for(Dn=0;Dn<ur;Dn+=1)this.renderableComponents[Dn].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 ct={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(Dn){return ct[Dn]||""}}();function SliderEffect(ct,Dn,ur){this.p=PropertyFactory.getProp(Dn,ct.v,0,0,ur)}function AngleEffect(ct,Dn,ur){this.p=PropertyFactory.getProp(Dn,ct.v,0,0,ur)}function ColorEffect(ct,Dn,ur){this.p=PropertyFactory.getProp(Dn,ct.v,1,0,ur)}function PointEffect(ct,Dn,ur){this.p=PropertyFactory.getProp(Dn,ct.v,1,0,ur)}function LayerIndexEffect(ct,Dn,ur){this.p=PropertyFactory.getProp(Dn,ct.v,0,0,ur)}function MaskIndexEffect(ct,Dn,ur){this.p=PropertyFactory.getProp(Dn,ct.v,0,0,ur)}function CheckboxEffect(ct,Dn,ur){this.p=PropertyFactory.getProp(Dn,ct.v,0,0,ur)}function NoValueEffect(){this.p={}}function EffectsManager(ct,Dn){var ur=ct.ef||[];this.effectElements=[];var dr,fr=ur.length,hr;for(dr=0;dr<fr;dr+=1)hr=new GroupEffect(ur[dr],Dn),this.effectElements.push(hr)}function GroupEffect(ct,Dn){this.init(ct,Dn)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(ct,Dn){this.data=ct,this.effectElements=[],this.initDynamicPropertyContainer(Dn);var ur,dr=this.data.ef.length,fr,hr=this.data.ef;for(ur=0;ur<dr;ur+=1){switch(fr=null,hr[ur].ty){case 0:fr=new SliderEffect(hr[ur],Dn,this);break;case 1:fr=new AngleEffect(hr[ur],Dn,this);break;case 2:fr=new ColorEffect(hr[ur],Dn,this);break;case 3:fr=new PointEffect(hr[ur],Dn,this);break;case 4:case 7:fr=new CheckboxEffect(hr[ur],Dn,this);break;case 10:fr=new LayerIndexEffect(hr[ur],Dn,this);break;case 11:fr=new MaskIndexEffect(hr[ur],Dn,this);break;case 5:fr=new EffectsManager(hr[ur],Dn);break;default:fr=new NoValueEffect(hr[ur]);break}fr&&this.effectElements.push(fr)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var Dn=0,ur=this.data.masksProperties.length;Dn<ur;){if(this.data.masksProperties[Dn].mode!=="n"&&this.data.masksProperties[Dn].cl!==!1)return!0;Dn+=1}return!1},initExpressions:function(){var Dn=getExpressionInterfaces();if(Dn){var ur=Dn("layer"),dr=Dn("effects"),fr=Dn("shape"),hr=Dn("text"),vr=Dn("comp");this.layerInterface=ur(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var pr=dr.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(pr),this.data.ty===0||this.data.xt?this.compInterface=vr(this):this.data.ty===4?(this.layerInterface.shapeInterface=fr(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=hr(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var Dn=getBlendMode(this.data.bm),ur=this.baseElement||this.layerElement;ur.style["mix-blend-mode"]=Dn},initBaseData:function(Dn,ur,dr){this.globalData=ur,this.comp=dr,this.data=Dn,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(Dn,ur){var dr,fr=this.dynamicProperties.length;for(dr=0;dr<fr;dr+=1)(ur||this._isParent&&this.dynamicProperties[dr].propType==="transform")&&(this.dynamicProperties[dr].getValue(),this.dynamicProperties[dr]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(Dn){this.dynamicProperties.indexOf(Dn)===-1&&this.dynamicProperties.push(Dn)}};function FootageElement(ct,Dn,ur){this.initFrame(),this.initRenderable(),this.assetData=Dn.getAssetData(ct.refId),this.footageData=Dn.imageLoader.getAsset(this.assetData),this.initBaseData(ct,Dn,ur)}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 ct=getExpressionInterfaces();if(ct){var Dn=ct("footage");this.layerInterface=Dn(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(ct,Dn,ur){this.initFrame(),this.initRenderable(),this.assetData=Dn.getAssetData(ct.refId),this.initBaseData(ct,Dn,ur),this._isPlaying=!1,this._canPlay=!1;var dr=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(dr),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=ct.tm?PropertyFactory.getProp(this,ct.tm,0,Dn.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,ct.au&&ct.au.lv?ct.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(ct){if(this.prepareRenderableFrame(ct,!0),this.prepareProperties(ct,!0),this.tm._placeholder)this._currentTime=ct/this.data.sr;else{var Dn=this.tm.v;this._currentTime=Dn}this._volume=this.lv.v[0];var ur=this._volume*this._volumeMultiplier;this._previousVolume!==ur&&(this._previousVolume=ur,this.audio.volume(ur))},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(ct){this.audio.rate(ct)},AudioElement.prototype.volume=function(ct){this._volumeMultiplier=ct,this._previousVolume=ct*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(ct){var Dn,ur=this.layers.length,dr;for(this.completeLayers=!0,Dn=ur-1;Dn>=0;Dn-=1)this.elements[Dn]||(dr=this.layers[Dn],dr.ip-dr.st<=ct-this.layers[Dn].st&&dr.op-dr.st>ct-this.layers[Dn].st&&this.buildItem(Dn)),this.completeLayers=this.elements[Dn]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(ct){switch(ct.ty){case 2:return this.createImage(ct);case 0:return this.createComp(ct);case 1:return this.createSolid(ct);case 3:return this.createNull(ct);case 4:return this.createShape(ct);case 5:return this.createText(ct);case 6:return this.createAudio(ct);case 13:return this.createCamera(ct);case 15:return this.createFootage(ct);default:return this.createNull(ct)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(ct){return new AudioElement(ct,this.globalData,this)},BaseRenderer.prototype.createFootage=function(ct){return new FootageElement(ct,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var ct,Dn=this.layers.length;for(ct=0;ct<Dn;ct+=1)this.buildItem(ct);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(ct){this.completeLayers=!1;var Dn,ur=ct.length,dr,fr=this.layers.length;for(Dn=0;Dn<ur;Dn+=1)for(dr=0;dr<fr;){if(this.layers[dr].id===ct[Dn].id){this.layers[dr]=ct[Dn];break}dr+=1}},BaseRenderer.prototype.setProjectInterface=function(ct){this.globalData.projectInterface=ct},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(ct,Dn,ur){for(var dr=this.elements,fr=this.layers,hr=0,vr=fr.length;hr<vr;)fr[hr].ind==Dn&&(!dr[hr]||dr[hr]===!0?(this.buildItem(hr),this.addPendingElement(ct)):(ur.push(dr[hr]),dr[hr].setAsParent(),fr[hr].parent!==void 0?this.buildElementParenting(ct,fr[hr].parent,ur):ct.setHierarchy(ur))),hr+=1},BaseRenderer.prototype.addPendingElement=function(ct){this.pendingElements.push(ct)},BaseRenderer.prototype.searchExtraCompositions=function(ct){var Dn,ur=ct.length;for(Dn=0;Dn<ur;Dn+=1)if(ct[Dn].xt){var dr=this.createComp(ct[Dn]);dr.initExpressions(),this.globalData.projectInterface.registerComposition(dr)}},BaseRenderer.prototype.getElementById=function(ct){var Dn,ur=this.elements.length;for(Dn=0;Dn<ur;Dn+=1)if(this.elements[Dn].data.ind===ct)return this.elements[Dn];return null},BaseRenderer.prototype.getElementByPath=function(ct){var Dn=ct.shift(),ur;if(typeof Dn=="number")ur=this.elements[Dn];else{var dr,fr=this.elements.length;for(dr=0;dr<fr;dr+=1)if(this.elements[dr].data.nm===Dn){ur=this.elements[dr];break}}return ct.length===0?ur:ur.getElementByPath(ct)},BaseRenderer.prototype.setupGlobalData=function(ct,Dn){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(ct),this.globalData.fontManager.addChars(ct.chars),this.globalData.fontManager.addFonts(ct.fonts,Dn),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=ct.fr,this.globalData.nm=ct.nm,this.globalData.compSize={w:ct.w,h:ct.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var Dn=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:Dn,localMat:Dn,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 Dn,ur=this.finalTransform.mat,dr=0,fr=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;dr<fr;){if(this.hierarchy[dr].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}dr+=1}if(this.finalTransform._matMdf)for(Dn=this.finalTransform.mProp.v.props,ur.cloneFromProps(Dn),dr=0;dr<fr;dr+=1)ur.multiply(this.hierarchy[dr].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 Dn=0,ur=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;Dn<ur;)this.localTransforms[Dn]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[Dn]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),Dn+=1;if(this.finalTransform._localMatMdf){var dr=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(dr),Dn=1;Dn<ur;Dn+=1){var fr=this.localTransforms[Dn].matrix;dr.multiply(fr)}dr.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var hr=this.finalTransform.localOpacity;for(Dn=0;Dn<ur;Dn+=1)hr*=this.localTransforms[Dn].opacity*.01;this.finalTransform.localOpacity=hr}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var Dn=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(Dn.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var ur=0,dr=Dn.length;for(ur=0;ur<dr;ur+=1)this.localTransforms.push(Dn[ur])}}},globalToLocal:function(Dn){var ur=[];ur.push(this.finalTransform);for(var dr=!0,fr=this.comp;dr;)fr.finalTransform?(fr.data.hasMask&&ur.splice(0,0,fr.finalTransform),fr=fr.comp):dr=!1;var hr,vr=ur.length,pr;for(hr=0;hr<vr;hr+=1)pr=ur[hr].mat.applyToPointArray(0,0,0),Dn=[Dn[0]-pr[0],Dn[1]-pr[1],0];return Dn},mHelper:new Matrix};function MaskElement(ct,Dn,ur){this.data=ct,this.element=Dn,this.globalData=ur,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var dr=this.globalData.defs,fr,hr=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(hr),this.solidPath="";var vr,pr=this.masksProperties,mr=0,gr=[],yr,Cr,br=createElementID(),Ar,wr,_r,Tr,Er="clipPath",xr="clip-path";for(fr=0;fr<hr;fr+=1)if((pr[fr].mode!=="a"&&pr[fr].mode!=="n"||pr[fr].inv||pr[fr].o.k!==100||pr[fr].o.x)&&(Er="mask",xr="mask"),(pr[fr].mode==="s"||pr[fr].mode==="i")&&mr===0?(Ar=createNS("rect"),Ar.setAttribute("fill","#ffffff"),Ar.setAttribute("width",this.element.comp.data.w||0),Ar.setAttribute("height",this.element.comp.data.h||0),gr.push(Ar)):Ar=null,vr=createNS("path"),pr[fr].mode==="n")this.viewData[fr]={op:PropertyFactory.getProp(this.element,pr[fr].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,pr[fr],3),elem:vr,lastPath:""},dr.appendChild(vr);else{mr+=1,vr.setAttribute("fill",pr[fr].mode==="s"?"#000000":"#ffffff"),vr.setAttribute("clip-rule","nonzero");var Sr;if(pr[fr].x.k!==0?(Er="mask",xr="mask",Tr=PropertyFactory.getProp(this.element,pr[fr].x,0,null,this.element),Sr=createElementID(),wr=createNS("filter"),wr.setAttribute("id",Sr),_r=createNS("feMorphology"),_r.setAttribute("operator","erode"),_r.setAttribute("in","SourceGraphic"),_r.setAttribute("radius","0"),wr.appendChild(_r),dr.appendChild(wr),vr.setAttribute("stroke",pr[fr].mode==="s"?"#000000":"#ffffff")):(_r=null,Tr=null),this.storedData[fr]={elem:vr,x:Tr,expan:_r,lastPath:"",lastOperator:"",filterId:Sr,lastRadius:0},pr[fr].mode==="i"){Cr=gr.length;var kr=createNS("g");for(yr=0;yr<Cr;yr+=1)kr.appendChild(gr[yr]);var Pr=createNS("mask");Pr.setAttribute("mask-type","alpha"),Pr.setAttribute("id",br+"_"+mr),Pr.appendChild(vr),dr.appendChild(Pr),kr.setAttribute("mask","url("+getLocationHref()+"#"+br+"_"+mr+")"),gr.length=0,gr.push(kr)}else gr.push(vr);pr[fr].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[fr]={elem:vr,lastPath:"",op:PropertyFactory.getProp(this.element,pr[fr].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,pr[fr],3),invRect:Ar},this.viewData[fr].prop.k||this.drawPath(pr[fr],this.viewData[fr].prop.v,this.viewData[fr])}for(this.maskElement=createNS(Er),hr=gr.length,fr=0;fr<hr;fr+=1)this.maskElement.appendChild(gr[fr]);mr>0&&(this.maskElement.setAttribute("id",br),this.element.maskedElement.setAttribute(xr,"url("+getLocationHref()+"#"+br+")"),dr.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(ct){return this.viewData[ct].prop},MaskElement.prototype.renderFrame=function(ct){var Dn=this.element.finalTransform.mat,ur,dr=this.masksProperties.length;for(ur=0;ur<dr;ur+=1)if((this.viewData[ur].prop._mdf||ct)&&this.drawPath(this.masksProperties[ur],this.viewData[ur].prop.v,this.viewData[ur]),(this.viewData[ur].op._mdf||ct)&&this.viewData[ur].elem.setAttribute("fill-opacity",this.viewData[ur].op.v),this.masksProperties[ur].mode!=="n"&&(this.viewData[ur].invRect&&(this.element.finalTransform.mProp._mdf||ct)&&this.viewData[ur].invRect.setAttribute("transform",Dn.getInverseMatrix().to2dCSS()),this.storedData[ur].x&&(this.storedData[ur].x._mdf||ct))){var fr=this.storedData[ur].expan;this.storedData[ur].x.v<0?(this.storedData[ur].lastOperator!=="erode"&&(this.storedData[ur].lastOperator="erode",this.storedData[ur].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[ur].filterId+")")),fr.setAttribute("radius",-this.storedData[ur].x.v)):(this.storedData[ur].lastOperator!=="dilate"&&(this.storedData[ur].lastOperator="dilate",this.storedData[ur].elem.setAttribute("filter",null)),this.storedData[ur].elem.setAttribute("stroke-width",this.storedData[ur].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var ct="M0,0 ";return ct+=" h"+this.globalData.compSize.w,ct+=" v"+this.globalData.compSize.h,ct+=" h-"+this.globalData.compSize.w,ct+=" v-"+this.globalData.compSize.h+" ",ct},MaskElement.prototype.drawPath=function(ct,Dn,ur){var dr=" M"+Dn.v[0][0]+","+Dn.v[0][1],fr,hr;for(hr=Dn._length,fr=1;fr<hr;fr+=1)dr+=" C"+Dn.o[fr-1][0]+","+Dn.o[fr-1][1]+" "+Dn.i[fr][0]+","+Dn.i[fr][1]+" "+Dn.v[fr][0]+","+Dn.v[fr][1];if(Dn.c&&hr>1&&(dr+=" C"+Dn.o[fr-1][0]+","+Dn.o[fr-1][1]+" "+Dn.i[0][0]+","+Dn.i[0][1]+" "+Dn.v[0][0]+","+Dn.v[0][1]),ur.lastPath!==dr){var vr="";ur.elem&&(Dn.c&&(vr=ct.inv?this.solidPath+dr:dr),ur.elem.setAttribute("d",vr)),ur.lastPath=dr}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var ct={};ct.createFilter=Dn,ct.createAlphaToLuminanceFilter=ur;function Dn(dr,fr){var hr=createNS("filter");return hr.setAttribute("id",dr),fr!==!0&&(hr.setAttribute("filterUnits","objectBoundingBox"),hr.setAttribute("x","0%"),hr.setAttribute("y","0%"),hr.setAttribute("width","100%"),hr.setAttribute("height","100%")),hr}function ur(){var dr=createNS("feColorMatrix");return dr.setAttribute("type","matrix"),dr.setAttribute("color-interpolation-filters","sRGB"),dr.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),dr}return ct}(),featureSupport=function(){var ct={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))&&(ct.maskType=!1),/firefox/i.test(navigator.userAgent)&&(ct.svgLumaHidden=!1),ct}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(ct){var Dn,ur="SourceGraphic",dr=ct.data.ef?ct.data.ef.length:0,fr=createElementID(),hr=filtersFactory.createFilter(fr,!0),vr=0;this.filters=[];var pr;for(Dn=0;Dn<dr;Dn+=1){pr=null;var mr=ct.data.ef[Dn].ty;if(registeredEffects$1[mr]){var gr=registeredEffects$1[mr].effect;pr=new gr(hr,ct.effectsManager.effectElements[Dn],ct,idPrefix+vr,ur),ur=idPrefix+vr,registeredEffects$1[mr].countsAsEffect&&(vr+=1)}pr&&this.filters.push(pr)}vr&&(ct.globalData.defs.appendChild(hr),ct.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+fr+")")),this.filters.length&&ct.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(ct){var Dn,ur=this.filters.length;for(Dn=0;Dn<ur;Dn+=1)this.filters[Dn].renderFrame(ct)},SVGEffects.prototype.getEffects=function(ct){var Dn,ur=this.filters.length,dr=[];for(Dn=0;Dn<ur;Dn+=1)this.filters[Dn].type===ct&&dr.push(this.filters[Dn]);return dr};function registerEffect$1(ct,Dn,ur){registeredEffects$1[ct]={effect:Dn,countsAsEffect:ur}}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 Dn=null;if(this.data.td){this.matteMasks={};var ur=createNS("g");ur.setAttribute("id",this.layerId),ur.appendChild(this.layerElement),Dn=ur,this.globalData.defs.appendChild(ur)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),Dn=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 dr=createNS("clipPath"),fr=createNS("path");fr.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var hr=createElementID();if(dr.setAttribute("id",hr),dr.appendChild(fr),this.globalData.defs.appendChild(dr),this.checkMasks()){var vr=createNS("g");vr.setAttribute("clip-path","url("+getLocationHref()+"#"+hr+")"),vr.appendChild(this.layerElement),this.transformedElement=vr,Dn?Dn.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+hr+")")}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(Dn){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[Dn]){var ur=this.layerId+"_"+Dn,dr,fr,hr,vr;if(Dn===1||Dn===3){var pr=createNS("mask");pr.setAttribute("id",ur),pr.setAttribute("mask-type",Dn===3?"luminance":"alpha"),hr=createNS("use"),hr.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),pr.appendChild(hr),this.globalData.defs.appendChild(pr),!featureSupport.maskType&&Dn===1&&(pr.setAttribute("mask-type","luminance"),dr=createElementID(),fr=filtersFactory.createFilter(dr),this.globalData.defs.appendChild(fr),fr.appendChild(filtersFactory.createAlphaToLuminanceFilter()),vr=createNS("g"),vr.appendChild(hr),pr.appendChild(vr),vr.setAttribute("filter","url("+getLocationHref()+"#"+dr+")"))}else if(Dn===2){var mr=createNS("mask");mr.setAttribute("id",ur),mr.setAttribute("mask-type","alpha");var gr=createNS("g");mr.appendChild(gr),dr=createElementID(),fr=filtersFactory.createFilter(dr);var yr=createNS("feComponentTransfer");yr.setAttribute("in","SourceGraphic"),fr.appendChild(yr);var Cr=createNS("feFuncA");Cr.setAttribute("type","table"),Cr.setAttribute("tableValues","1.0 0.0"),yr.appendChild(Cr),this.globalData.defs.appendChild(fr);var br=createNS("rect");br.setAttribute("width",this.comp.data.w),br.setAttribute("height",this.comp.data.h),br.setAttribute("x","0"),br.setAttribute("y","0"),br.setAttribute("fill","#ffffff"),br.setAttribute("opacity","0"),gr.setAttribute("filter","url("+getLocationHref()+"#"+dr+")"),gr.appendChild(br),hr=createNS("use"),hr.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),gr.appendChild(hr),featureSupport.maskType||(mr.setAttribute("mask-type","luminance"),fr.appendChild(filtersFactory.createAlphaToLuminanceFilter()),vr=createNS("g"),gr.appendChild(br),vr.appendChild(this.layerElement),gr.appendChild(vr)),this.globalData.defs.appendChild(mr)}this.matteMasks[Dn]=ur}return this.matteMasks[Dn]},setMatte:function(Dn){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+Dn+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(Dn){this.hierarchy=Dn},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var ct={initElement:function(ur,dr,fr){this.initFrame(),this.initBaseData(ur,dr,fr),this.initTransform(ur,dr,fr),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var ur=this.baseElement||this.layerElement;ur.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var ur=this.baseElement||this.layerElement;ur.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(ur){this._mdf=!1,this.prepareRenderableFrame(ur),this.prepareProperties(ur,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(ct)],RenderableDOMElement)})();function IImageElement(ct,Dn,ur){this.assetData=Dn.getAssetData(ct.refId),this.assetData&&this.assetData.sid&&(this.assetData=Dn.slotManager.getProp(this.assetData)),this.initElement(ct,Dn,ur),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 ct=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",ct),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(ct,Dn){this.elem=ct,this.pos=Dn}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(Dn){var ur,dr=this.shapeModifiers.length;for(ur=0;ur<dr;ur+=1)this.shapeModifiers[ur].addShape(Dn)},isShapeInAnimatedModifiers:function(Dn){for(var ur=0,dr=this.shapeModifiers.length;ur<dr;)if(this.shapeModifiers[ur].isAnimatedWithShape(Dn))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var Dn,ur=this.shapes.length;for(Dn=0;Dn<ur;Dn+=1)this.shapes[Dn].sh.reset();ur=this.shapeModifiers.length;var dr;for(Dn=ur-1;Dn>=0&&(dr=this.shapeModifiers[Dn].processShapes(this._isFirstFrame),!dr);Dn-=1);}},searchProcessedElement:function(Dn){for(var ur=this.processedElements,dr=0,fr=ur.length;dr<fr;){if(ur[dr].elem===Dn)return ur[dr].pos;dr+=1}return 0},addProcessedElement:function(Dn,ur){for(var dr=this.processedElements,fr=dr.length;fr;)if(fr-=1,dr[fr].elem===Dn){dr[fr].pos=ur;return}dr.push(new ProcessedElement(Dn,ur))},prepareFrame:function(Dn){this.prepareRenderableFrame(Dn),this.prepareProperties(Dn,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(ct,Dn,ur){this.caches=[],this.styles=[],this.transformers=ct,this.lStr="",this.sh=ur,this.lvl=Dn,this._isAnimated=!!ur.k;for(var dr=0,fr=ct.length;dr<fr;){if(ct[dr].mProps.dynamicProperties.length){this._isAnimated=!0;break}dr+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(ct,Dn){this.data=ct,this.type=ct.ty,this.d="",this.lvl=Dn,this._mdf=!1,this.closed=ct.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(ct,Dn,ur,dr){this.elem=ct,this.frameId=-1,this.dataProps=createSizedArray(Dn.length),this.renderer=ur,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",Dn.length?Dn.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(dr);var fr,hr=Dn.length||0,vr;for(fr=0;fr<hr;fr+=1)vr=PropertyFactory.getProp(ct,Dn[fr].v,0,0,this),this.k=vr.k||this.k,this.dataProps[fr]={n:Dn[fr].n,p:vr};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(ct){if(!(this.elem.globalData.frameId===this.frameId&&!ct)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||ct,this._mdf)){var Dn=0,ur=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),Dn=0;Dn<ur;Dn+=1)this.dataProps[Dn].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[Dn].p.v:this.dashArray[Dn]=this.dataProps[Dn].p.v:this.dashoffset[0]=this.dataProps[Dn].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(ct,Dn,ur){this.initDynamicPropertyContainer(ct),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(ct,Dn.o,0,.01,this),this.w=PropertyFactory.getProp(ct,Dn.w,0,null,this),this.d=new DashProperty(ct,Dn.d||{},"svg",this),this.c=PropertyFactory.getProp(ct,Dn.c,1,255,this),this.style=ur,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(ct,Dn,ur){this.initDynamicPropertyContainer(ct),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(ct,Dn.o,0,.01,this),this.c=PropertyFactory.getProp(ct,Dn.c,1,255,this),this.style=ur}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(ct,Dn,ur){this.initDynamicPropertyContainer(ct),this.getValue=this.iterateDynamicProperties,this.style=ur}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(ct,Dn,ur){this.data=Dn,this.c=createTypedArray("uint8c",Dn.p*4);var dr=Dn.k.k[0].s?Dn.k.k[0].s.length-Dn.p*4:Dn.k.k.length-Dn.p*4;this.o=createTypedArray("float32",dr),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=dr,this.initDynamicPropertyContainer(ur),this.prop=PropertyFactory.getProp(ct,Dn.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(ct,Dn){for(var ur=0,dr=this.o.length/2,fr;ur<dr;){if(fr=Math.abs(ct[ur*4]-ct[Dn*4+ur*2]),fr>.01)return!1;ur+=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 ct=0,Dn=this.data.k.k.length;ct<Dn;){if(!this.comparePoints(this.data.k.k[ct].s,this.data.p))return!1;ct+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(ct){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||ct){var Dn,ur=this.data.p*4,dr,fr;for(Dn=0;Dn<ur;Dn+=1)dr=Dn%4===0?100:255,fr=Math.round(this.prop.v[Dn]*dr),this.c[Dn]!==fr&&(this.c[Dn]=fr,this._cmdf=!ct);if(this.o.length)for(ur=this.prop.v.length,Dn=this.data.p*4;Dn<ur;Dn+=1)dr=Dn%2===0?100:1,fr=Dn%2===0?Math.round(this.prop.v[Dn]*100):this.prop.v[Dn],this.o[Dn-this.data.p*4]!==fr&&(this.o[Dn-this.data.p*4]=fr,this._omdf=!ct);this._mdf=!ct}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(ct,Dn,ur){this.initDynamicPropertyContainer(ct),this.getValue=this.iterateDynamicProperties,this.initGradientData(ct,Dn,ur)}SVGGradientFillStyleData.prototype.initGradientData=function(ct,Dn,ur){this.o=PropertyFactory.getProp(ct,Dn.o,0,.01,this),this.s=PropertyFactory.getProp(ct,Dn.s,1,null,this),this.e=PropertyFactory.getProp(ct,Dn.e,1,null,this),this.h=PropertyFactory.getProp(ct,Dn.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(ct,Dn.a||{k:0},0,degToRads,this),this.g=new GradientProperty(ct,Dn.g,this),this.style=ur,this.stops=[],this.setGradientData(ur.pElem,Dn),this.setGradientOpacity(Dn,ur),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(ct,Dn){var ur=createElementID(),dr=createNS(Dn.t===1?"linearGradient":"radialGradient");dr.setAttribute("id",ur),dr.setAttribute("spreadMethod","pad"),dr.setAttribute("gradientUnits","userSpaceOnUse");var fr=[],hr,vr,pr;for(pr=Dn.g.p*4,vr=0;vr<pr;vr+=4)hr=createNS("stop"),dr.appendChild(hr),fr.push(hr);ct.setAttribute(Dn.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+ur+")"),this.gf=dr,this.cst=fr},SVGGradientFillStyleData.prototype.setGradientOpacity=function(ct,Dn){if(this.g._hasOpacity&&!this.g._collapsable){var ur,dr,fr,hr=createNS("mask"),vr=createNS("path");hr.appendChild(vr);var pr=createElementID(),mr=createElementID();hr.setAttribute("id",mr);var gr=createNS(ct.t===1?"linearGradient":"radialGradient");gr.setAttribute("id",pr),gr.setAttribute("spreadMethod","pad"),gr.setAttribute("gradientUnits","userSpaceOnUse"),fr=ct.g.k.k[0].s?ct.g.k.k[0].s.length:ct.g.k.k.length;var yr=this.stops;for(dr=ct.g.p*4;dr<fr;dr+=2)ur=createNS("stop"),ur.setAttribute("stop-color","rgb(255,255,255)"),gr.appendChild(ur),yr.push(ur);vr.setAttribute(ct.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+pr+")"),ct.ty==="gs"&&(vr.setAttribute("stroke-linecap",lineCapEnum[ct.lc||2]),vr.setAttribute("stroke-linejoin",lineJoinEnum[ct.lj||2]),ct.lj===1&&vr.setAttribute("stroke-miterlimit",ct.ml)),this.of=gr,this.ms=hr,this.ost=yr,this.maskId=mr,Dn.msElem=vr}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(ct,Dn,ur){this.initDynamicPropertyContainer(ct),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(ct,Dn.w,0,null,this),this.d=new DashProperty(ct,Dn.d||{},"svg",this),this.initGradientData(ct,Dn,ur),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(ct,Dn,ur){this.transform={mProps:ct,op:Dn,container:ur},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(Dn,ur,dr,fr){if(ur===0)return"";var hr=Dn.o,vr=Dn.i,pr=Dn.v,mr,gr=" M"+fr.applyToPointStringified(pr[0][0],pr[0][1]);for(mr=1;mr<ur;mr+=1)gr+=" C"+fr.applyToPointStringified(hr[mr-1][0],hr[mr-1][1])+" "+fr.applyToPointStringified(vr[mr][0],vr[mr][1])+" "+fr.applyToPointStringified(pr[mr][0],pr[mr][1]);return dr&&ur&&(gr+=" C"+fr.applyToPointStringified(hr[mr-1][0],hr[mr-1][1])+" "+fr.applyToPointStringified(vr[0][0],vr[0][1])+" "+fr.applyToPointStringified(pr[0][0],pr[0][1]),gr+="z"),gr},SVGElementsRenderer=function(){var ct=new Matrix,Dn=new Matrix,ur={createRenderFunction:dr};function dr(Cr){switch(Cr.ty){case"fl":return pr;case"gf":return gr;case"gs":return mr;case"st":return yr;case"sh":case"el":case"rc":case"sr":return vr;case"tr":return fr;case"no":return hr;default:return null}}function fr(Cr,br,Ar){(Ar||br.transform.op._mdf)&&br.transform.container.setAttribute("opacity",br.transform.op.v),(Ar||br.transform.mProps._mdf)&&br.transform.container.setAttribute("transform",br.transform.mProps.v.to2dCSS())}function hr(){}function vr(Cr,br,Ar){var wr,_r,Tr,Er,xr,Sr,kr=br.styles.length,Pr=br.lvl,Ir,Br,Or,Nr;for(Sr=0;Sr<kr;Sr+=1){if(Er=br.sh._mdf||Ar,br.styles[Sr].lvl<Pr){for(Br=Dn.reset(),Or=Pr-br.styles[Sr].lvl,Nr=br.transformers.length-1;!Er&&Or>0;)Er=br.transformers[Nr].mProps._mdf||Er,Or-=1,Nr-=1;if(Er)for(Or=Pr-br.styles[Sr].lvl,Nr=br.transformers.length-1;Or>0;)Br.multiply(br.transformers[Nr].mProps.v),Or-=1,Nr-=1}else Br=ct;if(Ir=br.sh.paths,_r=Ir._length,Er){for(Tr="",wr=0;wr<_r;wr+=1)xr=Ir.shapes[wr],xr&&xr._length&&(Tr+=buildShapeString(xr,xr._length,xr.c,Br));br.caches[Sr]=Tr}else Tr=br.caches[Sr];br.styles[Sr].d+=Cr.hd===!0?"":Tr,br.styles[Sr]._mdf=Er||br.styles[Sr]._mdf}}function pr(Cr,br,Ar){var wr=br.style;(br.c._mdf||Ar)&&wr.pElem.setAttribute("fill","rgb("+bmFloor(br.c.v[0])+","+bmFloor(br.c.v[1])+","+bmFloor(br.c.v[2])+")"),(br.o._mdf||Ar)&&wr.pElem.setAttribute("fill-opacity",br.o.v)}function mr(Cr,br,Ar){gr(Cr,br,Ar),yr(Cr,br,Ar)}function gr(Cr,br,Ar){var wr=br.gf,_r=br.g._hasOpacity,Tr=br.s.v,Er=br.e.v;if(br.o._mdf||Ar){var xr=Cr.ty==="gf"?"fill-opacity":"stroke-opacity";br.style.pElem.setAttribute(xr,br.o.v)}if(br.s._mdf||Ar){var Sr=Cr.t===1?"x1":"cx",kr=Sr==="x1"?"y1":"cy";wr.setAttribute(Sr,Tr[0]),wr.setAttribute(kr,Tr[1]),_r&&!br.g._collapsable&&(br.of.setAttribute(Sr,Tr[0]),br.of.setAttribute(kr,Tr[1]))}var Pr,Ir,Br,Or;if(br.g._cmdf||Ar){Pr=br.cst;var Nr=br.g.c;for(Br=Pr.length,Ir=0;Ir<Br;Ir+=1)Or=Pr[Ir],Or.setAttribute("offset",Nr[Ir*4]+"%"),Or.setAttribute("stop-color","rgb("+Nr[Ir*4+1]+","+Nr[Ir*4+2]+","+Nr[Ir*4+3]+")")}if(_r&&(br.g._omdf||Ar)){var jr=br.g.o;for(br.g._collapsable?Pr=br.cst:Pr=br.ost,Br=Pr.length,Ir=0;Ir<Br;Ir+=1)Or=Pr[Ir],br.g._collapsable||Or.setAttribute("offset",jr[Ir*2]+"%"),Or.setAttribute("stop-opacity",jr[Ir*2+1])}if(Cr.t===1)(br.e._mdf||Ar)&&(wr.setAttribute("x2",Er[0]),wr.setAttribute("y2",Er[1]),_r&&!br.g._collapsable&&(br.of.setAttribute("x2",Er[0]),br.of.setAttribute("y2",Er[1])));else{var Vr;if((br.s._mdf||br.e._mdf||Ar)&&(Vr=Math.sqrt(Math.pow(Tr[0]-Er[0],2)+Math.pow(Tr[1]-Er[1],2)),wr.setAttribute("r",Vr),_r&&!br.g._collapsable&&br.of.setAttribute("r",Vr)),br.e._mdf||br.h._mdf||br.a._mdf||Ar){Vr||(Vr=Math.sqrt(Math.pow(Tr[0]-Er[0],2)+Math.pow(Tr[1]-Er[1],2)));var $r=Math.atan2(Er[1]-Tr[1],Er[0]-Tr[0]),zr=br.h.v;zr>=1?zr=.99:zr<=-1&&(zr=-.99);var Wr=Vr*zr,qr=Math.cos($r+br.a.v)*Wr+Tr[0],Mr=Math.sin($r+br.a.v)*Wr+Tr[1];wr.setAttribute("fx",qr),wr.setAttribute("fy",Mr),_r&&!br.g._collapsable&&(br.of.setAttribute("fx",qr),br.of.setAttribute("fy",Mr))}}}function yr(Cr,br,Ar){var wr=br.style,_r=br.d;_r&&(_r._mdf||Ar)&&_r.dashStr&&(wr.pElem.setAttribute("stroke-dasharray",_r.dashStr),wr.pElem.setAttribute("stroke-dashoffset",_r.dashoffset[0])),br.c&&(br.c._mdf||Ar)&&wr.pElem.setAttribute("stroke","rgb("+bmFloor(br.c.v[0])+","+bmFloor(br.c.v[1])+","+bmFloor(br.c.v[2])+")"),(br.o._mdf||Ar)&&wr.pElem.setAttribute("stroke-opacity",br.o.v),(br.w._mdf||Ar)&&(wr.pElem.setAttribute("stroke-width",br.w.v),wr.msElem&&wr.msElem.setAttribute("stroke-width",br.w.v))}return ur}();function SVGShapeElement(ct,Dn,ur){this.shapes=[],this.shapesData=ct.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(ct,Dn,ur),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 ct,Dn=this.shapes.length,ur,dr,fr=this.stylesList.length,hr,vr=[],pr=!1;for(dr=0;dr<fr;dr+=1){for(hr=this.stylesList[dr],pr=!1,vr.length=0,ct=0;ct<Dn;ct+=1)ur=this.shapes[ct],ur.styles.indexOf(hr)!==-1&&(vr.push(ur),pr=ur._isAnimated||pr);vr.length>1&&pr&&this.setShapesAsAnimated(vr)}},SVGShapeElement.prototype.setShapesAsAnimated=function(ct){var Dn,ur=ct.length;for(Dn=0;Dn<ur;Dn+=1)ct[Dn].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(ct,Dn){var ur,dr=new SVGStyleData(ct,Dn),fr=dr.pElem;if(ct.ty==="st")ur=new SVGStrokeStyleData(this,ct,dr);else if(ct.ty==="fl")ur=new SVGFillStyleData(this,ct,dr);else if(ct.ty==="gf"||ct.ty==="gs"){var hr=ct.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;ur=new hr(this,ct,dr),this.globalData.defs.appendChild(ur.gf),ur.maskId&&(this.globalData.defs.appendChild(ur.ms),this.globalData.defs.appendChild(ur.of),fr.setAttribute("mask","url("+getLocationHref()+"#"+ur.maskId+")"))}else ct.ty==="no"&&(ur=new SVGNoStyleData(this,ct,dr));return(ct.ty==="st"||ct.ty==="gs")&&(fr.setAttribute("stroke-linecap",lineCapEnum[ct.lc||2]),fr.setAttribute("stroke-linejoin",lineJoinEnum[ct.lj||2]),fr.setAttribute("fill-opacity","0"),ct.lj===1&&fr.setAttribute("stroke-miterlimit",ct.ml)),ct.r===2&&fr.setAttribute("fill-rule","evenodd"),ct.ln&&fr.setAttribute("id",ct.ln),ct.cl&&fr.setAttribute("class",ct.cl),ct.bm&&(fr.style["mix-blend-mode"]=getBlendMode(ct.bm)),this.stylesList.push(dr),this.addToAnimatedContents(ct,ur),ur},SVGShapeElement.prototype.createGroupElement=function(ct){var Dn=new ShapeGroupData;return ct.ln&&Dn.gr.setAttribute("id",ct.ln),ct.cl&&Dn.gr.setAttribute("class",ct.cl),ct.bm&&(Dn.gr.style["mix-blend-mode"]=getBlendMode(ct.bm)),Dn},SVGShapeElement.prototype.createTransformElement=function(ct,Dn){var ur=TransformPropertyFactory.getTransformProperty(this,ct,this),dr=new SVGTransformData(ur,ur.o,Dn);return this.addToAnimatedContents(ct,dr),dr},SVGShapeElement.prototype.createShapeElement=function(ct,Dn,ur){var dr=4;ct.ty==="rc"?dr=5:ct.ty==="el"?dr=6:ct.ty==="sr"&&(dr=7);var fr=ShapePropertyFactory.getShapeProp(this,ct,dr,this),hr=new SVGShapeData(Dn,ur,fr);return this.shapes.push(hr),this.addShapeToModifiers(hr),this.addToAnimatedContents(ct,hr),hr},SVGShapeElement.prototype.addToAnimatedContents=function(ct,Dn){for(var ur=0,dr=this.animatedContents.length;ur<dr;){if(this.animatedContents[ur].element===Dn)return;ur+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(ct),element:Dn,data:ct})},SVGShapeElement.prototype.setElementStyles=function(ct){var Dn=ct.styles,ur,dr=this.stylesList.length;for(ur=0;ur<dr;ur+=1)this.stylesList[ur].closed||Dn.push(this.stylesList[ur])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var ct,Dn=this.itemsData.length;for(ct=0;ct<Dn;ct+=1)this.prevViewData[ct]=this.itemsData[ct];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),Dn=this.dynamicProperties.length,ct=0;ct<Dn;ct+=1)this.dynamicProperties[ct].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(ct,Dn,ur,dr,fr,hr,vr){var pr=[].concat(hr),mr,gr=ct.length-1,yr,Cr,br=[],Ar=[],wr,_r,Tr;for(mr=gr;mr>=0;mr-=1){if(Tr=this.searchProcessedElement(ct[mr]),Tr?Dn[mr]=ur[Tr-1]:ct[mr]._render=vr,ct[mr].ty==="fl"||ct[mr].ty==="st"||ct[mr].ty==="gf"||ct[mr].ty==="gs"||ct[mr].ty==="no")Tr?Dn[mr].style.closed=!1:Dn[mr]=this.createStyleElement(ct[mr],fr),ct[mr]._render&&Dn[mr].style.pElem.parentNode!==dr&&dr.appendChild(Dn[mr].style.pElem),br.push(Dn[mr].style);else if(ct[mr].ty==="gr"){if(!Tr)Dn[mr]=this.createGroupElement(ct[mr]);else for(Cr=Dn[mr].it.length,yr=0;yr<Cr;yr+=1)Dn[mr].prevViewData[yr]=Dn[mr].it[yr];this.searchShapes(ct[mr].it,Dn[mr].it,Dn[mr].prevViewData,Dn[mr].gr,fr+1,pr,vr),ct[mr]._render&&Dn[mr].gr.parentNode!==dr&&dr.appendChild(Dn[mr].gr)}else ct[mr].ty==="tr"?(Tr||(Dn[mr]=this.createTransformElement(ct[mr],dr)),wr=Dn[mr].transform,pr.push(wr)):ct[mr].ty==="sh"||ct[mr].ty==="rc"||ct[mr].ty==="el"||ct[mr].ty==="sr"?(Tr||(Dn[mr]=this.createShapeElement(ct[mr],pr,fr)),this.setElementStyles(Dn[mr])):ct[mr].ty==="tm"||ct[mr].ty==="rd"||ct[mr].ty==="ms"||ct[mr].ty==="pb"||ct[mr].ty==="zz"||ct[mr].ty==="op"?(Tr?(_r=Dn[mr],_r.closed=!1):(_r=ShapeModifiers.getModifier(ct[mr].ty),_r.init(this,ct[mr]),Dn[mr]=_r,this.shapeModifiers.push(_r)),Ar.push(_r)):ct[mr].ty==="rp"&&(Tr?(_r=Dn[mr],_r.closed=!0):(_r=ShapeModifiers.getModifier(ct[mr].ty),Dn[mr]=_r,_r.init(this,ct,mr,Dn),this.shapeModifiers.push(_r),vr=!1),Ar.push(_r));this.addProcessedElement(ct[mr],mr+1)}for(gr=br.length,mr=0;mr<gr;mr+=1)br[mr].closed=!0;for(gr=Ar.length,mr=0;mr<gr;mr+=1)Ar[mr].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var ct,Dn=this.stylesList.length;for(ct=0;ct<Dn;ct+=1)this.stylesList[ct].reset();for(this.renderShape(),ct=0;ct<Dn;ct+=1)(this.stylesList[ct]._mdf||this._isFirstFrame)&&(this.stylesList[ct].msElem&&(this.stylesList[ct].msElem.setAttribute("d",this.stylesList[ct].d),this.stylesList[ct].d="M0 0"+this.stylesList[ct].d),this.stylesList[ct].pElem.setAttribute("d",this.stylesList[ct].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var ct,Dn=this.animatedContents.length,ur;for(ct=0;ct<Dn;ct+=1)ur=this.animatedContents[ct],(this._isFirstFrame||ur.element._isAnimated)&&ur.data!==!0&&ur.fn(ur.data,ur.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(ct,Dn,ur,dr,fr,hr){this.o=ct,this.sw=Dn,this.sc=ur,this.fc=dr,this.m=fr,this.p=hr,this._mdf={o:!0,sw:!!Dn,sc:!!ur,fc:!!dr,m:!0,p:!0}}LetterProps.prototype.update=function(ct,Dn,ur,dr,fr,hr){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 vr=!1;return this.o!==ct&&(this.o=ct,this._mdf.o=!0,vr=!0),this.sw!==Dn&&(this.sw=Dn,this._mdf.sw=!0,vr=!0),this.sc!==ur&&(this.sc=ur,this._mdf.sc=!0,vr=!0),this.fc!==dr&&(this.fc=dr,this._mdf.fc=!0,vr=!0),this.m!==fr&&(this.m=fr,this._mdf.m=!0,vr=!0),hr.length&&(this.p[0]!==hr[0]||this.p[1]!==hr[1]||this.p[4]!==hr[4]||this.p[5]!==hr[5]||this.p[12]!==hr[12]||this.p[13]!==hr[13])&&(this.p=hr,this._mdf.p=!0,vr=!0),vr};function TextProperty(ct,Dn){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,Dn.d&&Dn.d.sid&&(Dn.d=ct.globalData.slotManager.getProp(Dn.d)),this.data=Dn,this.elem=ct,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(ct,Dn){for(var ur in Dn)Object.prototype.hasOwnProperty.call(Dn,ur)&&(ct[ur]=Dn[ur]);return ct},TextProperty.prototype.setCurrentData=function(ct){ct.__complete||this.completeTextData(ct),this.currentData=ct,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(ct){this.effectsSequence.push(ct),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(ct){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!ct)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var Dn=this.currentData,ur=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var dr,fr=this.effectsSequence.length,hr=ct||this.data.d.k[this.keysIndex].s;for(dr=0;dr<fr;dr+=1)ur!==this.keysIndex?hr=this.effectsSequence[dr](hr,hr.t):hr=this.effectsSequence[dr](this.currentData,hr.t);Dn!==hr&&this.setCurrentData(hr),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var ct=this.data.d.k,Dn=this.elem.comp.renderedFrame,ur=0,dr=ct.length;ur<=dr-1&&!(ur===dr-1||ct[ur+1].t>Dn);)ur+=1;return this.keysIndex!==ur&&(this.keysIndex=ur),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(ct){for(var Dn=[],ur=0,dr=ct.length,fr,hr,vr=!1,pr=!1,mr="";ur<dr;)vr=pr,pr=!1,fr=ct.charCodeAt(ur),mr=ct.charAt(ur),FontManager.isCombinedCharacter(fr)?vr=!0:fr>=55296&&fr<=56319?FontManager.isRegionalFlag(ct,ur)?mr=ct.substr(ur,14):(hr=ct.charCodeAt(ur+1),hr>=56320&&hr<=57343&&(FontManager.isModifier(fr,hr)?(mr=ct.substr(ur,2),vr=!0):FontManager.isFlagEmoji(ct.substr(ur,4))?mr=ct.substr(ur,4):mr=ct.substr(ur,2))):fr>56319?(hr=ct.charCodeAt(ur+1),FontManager.isVariationSelector(fr)&&(vr=!0)):FontManager.isZeroWidthJoiner(fr)&&(vr=!0,pr=!0),vr?(Dn[Dn.length-1]+=mr,vr=!1):Dn.push(mr),ur+=mr.length;return Dn},TextProperty.prototype.completeTextData=function(ct){ct.__complete=!0;var Dn=this.elem.globalData.fontManager,ur=this.data,dr=[],fr,hr,vr,pr=0,mr,gr=ur.m.g,yr=0,Cr=0,br=0,Ar=[],wr=0,_r=0,Tr,Er,xr=Dn.getFontByName(ct.f),Sr,kr=0,Pr=getFontProperties(xr);ct.fWeight=Pr.weight,ct.fStyle=Pr.style,ct.finalSize=ct.s,ct.finalText=this.buildFinalText(ct.t),hr=ct.finalText.length,ct.finalLineHeight=ct.lh;var Ir=ct.tr/1e3*ct.finalSize,Br;if(ct.sz)for(var Or=!0,Nr=ct.sz[0],jr=ct.sz[1],Vr,$r;Or;){$r=this.buildFinalText(ct.t),Vr=0,wr=0,hr=$r.length,Ir=ct.tr/1e3*ct.finalSize;var zr=-1;for(fr=0;fr<hr;fr+=1)Br=$r[fr].charCodeAt(0),vr=!1,$r[fr]===" "?zr=fr:(Br===13||Br===3)&&(wr=0,vr=!0,Vr+=ct.finalLineHeight||ct.finalSize*1.2),Dn.chars?(Sr=Dn.getCharData($r[fr],xr.fStyle,xr.fFamily),kr=vr?0:Sr.w*ct.finalSize/100):kr=Dn.measureText($r[fr],ct.f,ct.finalSize),wr+kr>Nr&&$r[fr]!==" "?(zr===-1?hr+=1:fr=zr,Vr+=ct.finalLineHeight||ct.finalSize*1.2,$r.splice(fr,zr===fr?1:0,"\r"),zr=-1,wr=0):(wr+=kr,wr+=Ir);Vr+=xr.ascent*ct.finalSize/100,this.canResize&&ct.finalSize>this.minimumFontSize&&jr<Vr?(ct.finalSize-=1,ct.finalLineHeight=ct.finalSize*ct.lh/ct.s):(ct.finalText=$r,hr=ct.finalText.length,Or=!1)}wr=-Ir,kr=0;var Wr=0,qr;for(fr=0;fr<hr;fr+=1)if(vr=!1,qr=ct.finalText[fr],Br=qr.charCodeAt(0),Br===13||Br===3?(Wr=0,Ar.push(wr),_r=wr>_r?wr:_r,wr=-2*Ir,mr="",vr=!0,br+=1):mr=qr,Dn.chars?(Sr=Dn.getCharData(qr,xr.fStyle,Dn.getFontByName(ct.f).fFamily),kr=vr?0:Sr.w*ct.finalSize/100):kr=Dn.measureText(mr,ct.f,ct.finalSize),qr===" "?Wr+=kr+Ir:(wr+=kr+Ir+Wr,Wr=0),dr.push({l:kr,an:kr,add:yr,n:vr,anIndexes:[],val:mr,line:br,animatorJustifyOffset:0}),gr==2){if(yr+=kr,mr===""||mr===" "||fr===hr-1){for((mr===""||mr===" ")&&(yr-=kr);Cr<=fr;)dr[Cr].an=yr,dr[Cr].ind=pr,dr[Cr].extra=kr,Cr+=1;pr+=1,yr=0}}else if(gr==3){if(yr+=kr,mr===""||fr===hr-1){for(mr===""&&(yr-=kr);Cr<=fr;)dr[Cr].an=yr,dr[Cr].ind=pr,dr[Cr].extra=kr,Cr+=1;yr=0,pr+=1}}else dr[pr].ind=pr,dr[pr].extra=0,pr+=1;if(ct.l=dr,_r=wr>_r?wr:_r,Ar.push(wr),ct.sz)ct.boxWidth=ct.sz[0],ct.justifyOffset=0;else switch(ct.boxWidth=_r,ct.j){case 1:ct.justifyOffset=-ct.boxWidth;break;case 2:ct.justifyOffset=-ct.boxWidth/2;break;default:ct.justifyOffset=0}ct.lineWidths=Ar;var Mr=ur.a,Lr,Fr;Er=Mr.length;var Dr,Gr,Rr=[];for(Tr=0;Tr<Er;Tr+=1){for(Lr=Mr[Tr],Lr.a.sc&&(ct.strokeColorAnim=!0),Lr.a.sw&&(ct.strokeWidthAnim=!0),(Lr.a.fc||Lr.a.fh||Lr.a.fs||Lr.a.fb)&&(ct.fillColorAnim=!0),Gr=0,Dr=Lr.s.b,fr=0;fr<hr;fr+=1)Fr=dr[fr],Fr.anIndexes[Tr]=Gr,(Dr==1&&Fr.val!==""||Dr==2&&Fr.val!==""&&Fr.val!==" "||Dr==3&&(Fr.n||Fr.val==" "||fr==hr-1)||Dr==4&&(Fr.n||fr==hr-1))&&(Lr.s.rn===1&&Rr.push(Gr),Gr+=1);ur.a[Tr].s.totalChars=Gr;var Qr=-1,Kr;if(Lr.s.rn===1)for(fr=0;fr<hr;fr+=1)Fr=dr[fr],Qr!=Fr.anIndexes[Tr]&&(Qr=Fr.anIndexes[Tr],Kr=Rr.splice(Math.floor(Math.random()*Rr.length),1)[0]),Fr.anIndexes[Tr]=Kr}ct.yOffset=ct.finalLineHeight||ct.finalSize*1.2,ct.ls=ct.ls||0,ct.ascent=xr.ascent*ct.finalSize/100},TextProperty.prototype.updateDocumentData=function(ct,Dn){Dn=Dn===void 0?this.keysIndex:Dn;var ur=this.copyData({},this.data.d.k[Dn].s);ur=this.copyData(ur,ct),this.data.d.k[Dn].s=ur,this.recalculate(Dn),this.setCurrentData(ur),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(ct){var Dn=this.data.d.k[ct].s;Dn.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(Dn)},TextProperty.prototype.canResizeFont=function(ct){this.canResize=ct,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(ct){this.minimumFontSize=Math.floor(ct)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var ct=Math.max,Dn=Math.min,ur=Math.floor;function dr(hr,vr){this._currentTextLength=-1,this.k=!1,this.data=vr,this.elem=hr,this.comp=hr.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(hr),this.s=PropertyFactory.getProp(hr,vr.s||{k:0},0,0,this),"e"in vr?this.e=PropertyFactory.getProp(hr,vr.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(hr,vr.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(hr,vr.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(hr,vr.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(hr,vr.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(hr,vr.a,0,.01,this),this.dynamicProperties.length||this.getValue()}dr.prototype={getMult:function(vr){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var pr=0,mr=0,gr=1,yr=1;this.ne.v>0?pr=this.ne.v/100:mr=-this.ne.v/100,this.xe.v>0?gr=1-this.xe.v/100:yr=1+this.xe.v/100;var Cr=BezierFactory.getBezierEasing(pr,mr,gr,yr).get,br=0,Ar=this.finalS,wr=this.finalE,_r=this.data.sh;if(_r===2)wr===Ar?br=vr>=wr?1:0:br=ct(0,Dn(.5/(wr-Ar)+(vr-Ar)/(wr-Ar),1)),br=Cr(br);else if(_r===3)wr===Ar?br=vr>=wr?0:1:br=1-ct(0,Dn(.5/(wr-Ar)+(vr-Ar)/(wr-Ar),1)),br=Cr(br);else if(_r===4)wr===Ar?br=0:(br=ct(0,Dn(.5/(wr-Ar)+(vr-Ar)/(wr-Ar),1)),br<.5?br*=2:br=1-2*(br-.5)),br=Cr(br);else if(_r===5){if(wr===Ar)br=0;else{var Tr=wr-Ar;vr=Dn(ct(0,vr+.5-Ar),wr-Ar);var Er=-Tr/2+vr,xr=Tr/2;br=Math.sqrt(1-Er*Er/(xr*xr))}br=Cr(br)}else _r===6?(wr===Ar?br=0:(vr=Dn(ct(0,vr+.5-Ar),wr-Ar),br=(1+Math.cos(Math.PI+Math.PI*2*vr/(wr-Ar)))/2),br=Cr(br)):(vr>=ur(Ar)&&(vr-Ar<0?br=ct(0,Dn(Dn(wr,1)-(Ar-vr),1)):br=ct(0,Dn(wr-vr,1))),br=Cr(br));if(this.sm.v!==100){var Sr=this.sm.v*.01;Sr===0&&(Sr=1e-8);var kr=.5-Sr*.5;br<kr?br=0:(br=(br-kr)/Sr,br>1&&(br=1))}return br*this.a.v},getValue:function(vr){this.iterateDynamicProperties(),this._mdf=vr||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,vr&&this.data.r===2&&(this.e.v=this._currentTextLength);var pr=this.data.r===2?1:100/this.data.totalChars,mr=this.o.v/pr,gr=this.s.v/pr+mr,yr=this.e.v/pr+mr;if(gr>yr){var Cr=gr;gr=yr,yr=Cr}this.finalS=gr,this.finalE=yr}},extendPrototype([DynamicPropertyContainer],dr);function fr(hr,vr,pr){return new dr(hr,vr)}return{getTextSelectorProp:fr}}();function TextAnimatorDataProperty(ct,Dn,ur){var dr={propType:!1},fr=PropertyFactory.getProp,hr=Dn.a;this.a={r:hr.r?fr(ct,hr.r,0,degToRads,ur):dr,rx:hr.rx?fr(ct,hr.rx,0,degToRads,ur):dr,ry:hr.ry?fr(ct,hr.ry,0,degToRads,ur):dr,sk:hr.sk?fr(ct,hr.sk,0,degToRads,ur):dr,sa:hr.sa?fr(ct,hr.sa,0,degToRads,ur):dr,s:hr.s?fr(ct,hr.s,1,.01,ur):dr,a:hr.a?fr(ct,hr.a,1,0,ur):dr,o:hr.o?fr(ct,hr.o,0,.01,ur):dr,p:hr.p?fr(ct,hr.p,1,0,ur):dr,sw:hr.sw?fr(ct,hr.sw,0,0,ur):dr,sc:hr.sc?fr(ct,hr.sc,1,0,ur):dr,fc:hr.fc?fr(ct,hr.fc,1,0,ur):dr,fh:hr.fh?fr(ct,hr.fh,0,0,ur):dr,fs:hr.fs?fr(ct,hr.fs,0,.01,ur):dr,fb:hr.fb?fr(ct,hr.fb,0,.01,ur):dr,t:hr.t?fr(ct,hr.t,0,0,ur):dr},this.s=TextSelectorProp.getTextSelectorProp(ct,Dn.s,ur),this.s.t=Dn.s.t}function TextAnimatorProperty(ct,Dn,ur){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=ct,this._renderType=Dn,this._elem=ur,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(ur)}TextAnimatorProperty.prototype.searchProperties=function(){var ct,Dn=this._textData.a.length,ur,dr=PropertyFactory.getProp;for(ct=0;ct<Dn;ct+=1)ur=this._textData.a[ct],this._animatorsData[ct]=new TextAnimatorDataProperty(this._elem,ur,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:dr(this._elem,this._textData.p.a,0,0,this),f:dr(this._elem,this._textData.p.f,0,0,this),l:dr(this._elem,this._textData.p.l,0,0,this),r:dr(this._elem,this._textData.p.r,0,0,this),p:dr(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=dr(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(ct,Dn){if(this.lettersChangedFlag=Dn,!(!this._mdf&&!this._isFirstFrame&&!Dn&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var ur=this._moreOptions.alignment.v,dr=this._animatorsData,fr=this._textData,hr=this.mHelper,vr=this._renderType,pr=this.renderedLetters.length,mr,gr,yr,Cr,br=ct.l,Ar,wr,_r,Tr,Er,xr,Sr,kr,Pr,Ir,Br,Or,Nr,jr,Vr;if(this._hasMaskedPath){if(Vr=this._pathData.m,!this._pathData.n||this._pathData._mdf){var $r=Vr.v;this._pathData.r.v&&($r=$r.reverse()),Ar={tLength:0,segments:[]},Cr=$r._length-1;var zr;for(Or=0,yr=0;yr<Cr;yr+=1)zr=bez.buildBezierData($r.v[yr],$r.v[yr+1],[$r.o[yr][0]-$r.v[yr][0],$r.o[yr][1]-$r.v[yr][1]],[$r.i[yr+1][0]-$r.v[yr+1][0],$r.i[yr+1][1]-$r.v[yr+1][1]]),Ar.tLength+=zr.segmentLength,Ar.segments.push(zr),Or+=zr.segmentLength;yr=Cr,Vr.v.c&&(zr=bez.buildBezierData($r.v[yr],$r.v[0],[$r.o[yr][0]-$r.v[yr][0],$r.o[yr][1]-$r.v[yr][1]],[$r.i[0][0]-$r.v[0][0],$r.i[0][1]-$r.v[0][1]]),Ar.tLength+=zr.segmentLength,Ar.segments.push(zr),Or+=zr.segmentLength),this._pathData.pi=Ar}if(Ar=this._pathData.pi,wr=this._pathData.f.v,Sr=0,xr=1,Tr=0,Er=!0,Ir=Ar.segments,wr<0&&Vr.v.c)for(Ar.tLength<Math.abs(wr)&&(wr=-Math.abs(wr)%Ar.tLength),Sr=Ir.length-1,Pr=Ir[Sr].points,xr=Pr.length-1;wr<0;)wr+=Pr[xr].partialLength,xr-=1,xr<0&&(Sr-=1,Pr=Ir[Sr].points,xr=Pr.length-1);Pr=Ir[Sr].points,kr=Pr[xr-1],_r=Pr[xr],Br=_r.partialLength}Cr=br.length,mr=0,gr=0;var Wr=ct.finalSize*1.2*.714,qr=!0,Mr,Lr,Fr,Dr,Gr;Dr=dr.length;var Rr,Qr=-1,Kr,Hr,Ur,Jr=wr,Yr=Sr,si=xr,fi=-1,_i,bi,pi,mi,xi,ni,ai,Xr,vi="",Si=this.defaultPropsArray,ri;if(ct.j===2||ct.j===1){var yi=0,di=0,Ei=ct.j===2?-.5:-1,Oi=0,Li=!0;for(yr=0;yr<Cr;yr+=1)if(br[yr].n){for(yi&&(yi+=di);Oi<yr;)br[Oi].animatorJustifyOffset=yi,Oi+=1;yi=0,Li=!0}else{for(Fr=0;Fr<Dr;Fr+=1)Mr=dr[Fr].a,Mr.t.propType&&(Li&&ct.j===2&&(di+=Mr.t.v*Ei),Lr=dr[Fr].s,Rr=Lr.getMult(br[yr].anIndexes[Fr],fr.a[Fr].s.totalChars),Rr.length?yi+=Mr.t.v*Rr[0]*Ei:yi+=Mr.t.v*Rr*Ei);Li=!1}for(yi&&(yi+=di);Oi<yr;)br[Oi].animatorJustifyOffset=yi,Oi+=1}for(yr=0;yr<Cr;yr+=1){if(hr.reset(),_i=1,br[yr].n)mr=0,gr+=ct.yOffset,gr+=qr?1:0,wr=Jr,qr=!1,this._hasMaskedPath&&(Sr=Yr,xr=si,Pr=Ir[Sr].points,kr=Pr[xr-1],_r=Pr[xr],Br=_r.partialLength,Tr=0),vi="",Xr="",ni="",ri="",Si=this.defaultPropsArray;else{if(this._hasMaskedPath){if(fi!==br[yr].line){switch(ct.j){case 1:wr+=Or-ct.lineWidths[br[yr].line];break;case 2:wr+=(Or-ct.lineWidths[br[yr].line])/2;break}fi=br[yr].line}Qr!==br[yr].ind&&(br[Qr]&&(wr+=br[Qr].extra),wr+=br[yr].an/2,Qr=br[yr].ind),wr+=ur[0]*br[yr].an*.005;var Ri=0;for(Fr=0;Fr<Dr;Fr+=1)Mr=dr[Fr].a,Mr.p.propType&&(Lr=dr[Fr].s,Rr=Lr.getMult(br[yr].anIndexes[Fr],fr.a[Fr].s.totalChars),Rr.length?Ri+=Mr.p.v[0]*Rr[0]:Ri+=Mr.p.v[0]*Rr),Mr.a.propType&&(Lr=dr[Fr].s,Rr=Lr.getMult(br[yr].anIndexes[Fr],fr.a[Fr].s.totalChars),Rr.length?Ri+=Mr.a.v[0]*Rr[0]:Ri+=Mr.a.v[0]*Rr);for(Er=!0,this._pathData.a.v&&(wr=br[0].an*.5+(Or-this._pathData.f.v-br[0].an*.5-br[br.length-1].an*.5)*Qr/(Cr-1),wr+=this._pathData.f.v);Er;)Tr+Br>=wr+Ri||!Pr?(Nr=(wr+Ri-Tr)/_r.partialLength,Hr=kr.point[0]+(_r.point[0]-kr.point[0])*Nr,Ur=kr.point[1]+(_r.point[1]-kr.point[1])*Nr,hr.translate(-ur[0]*br[yr].an*.005,-(ur[1]*Wr)*.01),Er=!1):Pr&&(Tr+=_r.partialLength,xr+=1,xr>=Pr.length&&(xr=0,Sr+=1,Ir[Sr]?Pr=Ir[Sr].points:Vr.v.c?(xr=0,Sr=0,Pr=Ir[Sr].points):(Tr-=_r.partialLength,Pr=null)),Pr&&(kr=_r,_r=Pr[xr],Br=_r.partialLength));Kr=br[yr].an/2-br[yr].add,hr.translate(-Kr,0,0)}else Kr=br[yr].an/2-br[yr].add,hr.translate(-Kr,0,0),hr.translate(-ur[0]*br[yr].an*.005,-ur[1]*Wr*.01,0);for(Fr=0;Fr<Dr;Fr+=1)Mr=dr[Fr].a,Mr.t.propType&&(Lr=dr[Fr].s,Rr=Lr.getMult(br[yr].anIndexes[Fr],fr.a[Fr].s.totalChars),(mr!==0||ct.j!==0)&&(this._hasMaskedPath?Rr.length?wr+=Mr.t.v*Rr[0]:wr+=Mr.t.v*Rr:Rr.length?mr+=Mr.t.v*Rr[0]:mr+=Mr.t.v*Rr));for(ct.strokeWidthAnim&&(pi=ct.sw||0),ct.strokeColorAnim&&(ct.sc?bi=[ct.sc[0],ct.sc[1],ct.sc[2]]:bi=[0,0,0]),ct.fillColorAnim&&ct.fc&&(mi=[ct.fc[0],ct.fc[1],ct.fc[2]]),Fr=0;Fr<Dr;Fr+=1)Mr=dr[Fr].a,Mr.a.propType&&(Lr=dr[Fr].s,Rr=Lr.getMult(br[yr].anIndexes[Fr],fr.a[Fr].s.totalChars),Rr.length?hr.translate(-Mr.a.v[0]*Rr[0],-Mr.a.v[1]*Rr[1],Mr.a.v[2]*Rr[2]):hr.translate(-Mr.a.v[0]*Rr,-Mr.a.v[1]*Rr,Mr.a.v[2]*Rr));for(Fr=0;Fr<Dr;Fr+=1)Mr=dr[Fr].a,Mr.s.propType&&(Lr=dr[Fr].s,Rr=Lr.getMult(br[yr].anIndexes[Fr],fr.a[Fr].s.totalChars),Rr.length?hr.scale(1+(Mr.s.v[0]-1)*Rr[0],1+(Mr.s.v[1]-1)*Rr[1],1):hr.scale(1+(Mr.s.v[0]-1)*Rr,1+(Mr.s.v[1]-1)*Rr,1));for(Fr=0;Fr<Dr;Fr+=1){if(Mr=dr[Fr].a,Lr=dr[Fr].s,Rr=Lr.getMult(br[yr].anIndexes[Fr],fr.a[Fr].s.totalChars),Mr.sk.propType&&(Rr.length?hr.skewFromAxis(-Mr.sk.v*Rr[0],Mr.sa.v*Rr[1]):hr.skewFromAxis(-Mr.sk.v*Rr,Mr.sa.v*Rr)),Mr.r.propType&&(Rr.length?hr.rotateZ(-Mr.r.v*Rr[2]):hr.rotateZ(-Mr.r.v*Rr)),Mr.ry.propType&&(Rr.length?hr.rotateY(Mr.ry.v*Rr[1]):hr.rotateY(Mr.ry.v*Rr)),Mr.rx.propType&&(Rr.length?hr.rotateX(Mr.rx.v*Rr[0]):hr.rotateX(Mr.rx.v*Rr)),Mr.o.propType&&(Rr.length?_i+=(Mr.o.v*Rr[0]-_i)*Rr[0]:_i+=(Mr.o.v*Rr-_i)*Rr),ct.strokeWidthAnim&&Mr.sw.propType&&(Rr.length?pi+=Mr.sw.v*Rr[0]:pi+=Mr.sw.v*Rr),ct.strokeColorAnim&&Mr.sc.propType)for(xi=0;xi<3;xi+=1)Rr.length?bi[xi]+=(Mr.sc.v[xi]-bi[xi])*Rr[0]:bi[xi]+=(Mr.sc.v[xi]-bi[xi])*Rr;if(ct.fillColorAnim&&ct.fc){if(Mr.fc.propType)for(xi=0;xi<3;xi+=1)Rr.length?mi[xi]+=(Mr.fc.v[xi]-mi[xi])*Rr[0]:mi[xi]+=(Mr.fc.v[xi]-mi[xi])*Rr;Mr.fh.propType&&(Rr.length?mi=addHueToRGB(mi,Mr.fh.v*Rr[0]):mi=addHueToRGB(mi,Mr.fh.v*Rr)),Mr.fs.propType&&(Rr.length?mi=addSaturationToRGB(mi,Mr.fs.v*Rr[0]):mi=addSaturationToRGB(mi,Mr.fs.v*Rr)),Mr.fb.propType&&(Rr.length?mi=addBrightnessToRGB(mi,Mr.fb.v*Rr[0]):mi=addBrightnessToRGB(mi,Mr.fb.v*Rr))}}for(Fr=0;Fr<Dr;Fr+=1)Mr=dr[Fr].a,Mr.p.propType&&(Lr=dr[Fr].s,Rr=Lr.getMult(br[yr].anIndexes[Fr],fr.a[Fr].s.totalChars),this._hasMaskedPath?Rr.length?hr.translate(0,Mr.p.v[1]*Rr[0],-Mr.p.v[2]*Rr[1]):hr.translate(0,Mr.p.v[1]*Rr,-Mr.p.v[2]*Rr):Rr.length?hr.translate(Mr.p.v[0]*Rr[0],Mr.p.v[1]*Rr[1],-Mr.p.v[2]*Rr[2]):hr.translate(Mr.p.v[0]*Rr,Mr.p.v[1]*Rr,-Mr.p.v[2]*Rr));if(ct.strokeWidthAnim&&(ni=pi<0?0:pi),ct.strokeColorAnim&&(ai="rgb("+Math.round(bi[0]*255)+","+Math.round(bi[1]*255)+","+Math.round(bi[2]*255)+")"),ct.fillColorAnim&&ct.fc&&(Xr="rgb("+Math.round(mi[0]*255)+","+Math.round(mi[1]*255)+","+Math.round(mi[2]*255)+")"),this._hasMaskedPath){if(hr.translate(0,-ct.ls),hr.translate(0,ur[1]*Wr*.01+gr,0),this._pathData.p.v){jr=(_r.point[1]-kr.point[1])/(_r.point[0]-kr.point[0]);var hi=Math.atan(jr)*180/Math.PI;_r.point[0]<kr.point[0]&&(hi+=180),hr.rotate(-hi*Math.PI/180)}hr.translate(Hr,Ur,0),wr-=ur[0]*br[yr].an*.005,br[yr+1]&&Qr!==br[yr+1].ind&&(wr+=br[yr].an/2,wr+=ct.tr*.001*ct.finalSize)}else{switch(hr.translate(mr,gr,0),ct.ps&&hr.translate(ct.ps[0],ct.ps[1]+ct.ascent,0),ct.j){case 1:hr.translate(br[yr].animatorJustifyOffset+ct.justifyOffset+(ct.boxWidth-ct.lineWidths[br[yr].line]),0,0);break;case 2:hr.translate(br[yr].animatorJustifyOffset+ct.justifyOffset+(ct.boxWidth-ct.lineWidths[br[yr].line])/2,0,0);break}hr.translate(0,-ct.ls),hr.translate(Kr,0,0),hr.translate(ur[0]*br[yr].an*.005,ur[1]*Wr*.01,0),mr+=br[yr].l+ct.tr*.001*ct.finalSize}vr==="html"?vi=hr.toCSS():vr==="svg"?vi=hr.to2dCSS():Si=[hr.props[0],hr.props[1],hr.props[2],hr.props[3],hr.props[4],hr.props[5],hr.props[6],hr.props[7],hr.props[8],hr.props[9],hr.props[10],hr.props[11],hr.props[12],hr.props[13],hr.props[14],hr.props[15]],ri=_i}pr<=yr?(Gr=new LetterProps(ri,ni,ai,Xr,vi,Si),this.renderedLetters.push(Gr),pr+=1,this.lettersChangedFlag=!0):(Gr=this.renderedLetters[yr],this.lettersChangedFlag=Gr.update(ri,ni,ai,Xr,vi,Si)||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(ct,Dn,ur){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(ct,Dn,ur),this.textProperty=new TextProperty(this,ct.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(ct.t,this.renderType,this),this.initTransform(ct,Dn,ur),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(ct){this._mdf=!1,this.prepareRenderableFrame(ct),this.prepareProperties(ct,this.isInRange)},ITextElement.prototype.createPathShape=function(ct,Dn){var ur,dr=Dn.length,fr,hr="";for(ur=0;ur<dr;ur+=1)Dn[ur].ty==="sh"&&(fr=Dn[ur].ks.k,hr+=buildShapeString(fr,fr.i.length,!0,ct));return hr},ITextElement.prototype.updateDocumentData=function(ct,Dn){this.textProperty.updateDocumentData(ct,Dn)},ITextElement.prototype.canResizeFont=function(ct){this.textProperty.canResizeFont(ct)},ITextElement.prototype.setMinimumFontSize=function(ct){this.textProperty.setMinimumFontSize(ct)},ITextElement.prototype.applyTextPropertiesToMatrix=function(ct,Dn,ur,dr,fr){switch(ct.ps&&Dn.translate(ct.ps[0],ct.ps[1]+ct.ascent,0),Dn.translate(0,-ct.ls,0),ct.j){case 1:Dn.translate(ct.justifyOffset+(ct.boxWidth-ct.lineWidths[ur]),0,0);break;case 2:Dn.translate(ct.justifyOffset+(ct.boxWidth-ct.lineWidths[ur])/2,0,0);break}Dn.translate(dr,fr,0)},ITextElement.prototype.buildColor=function(ct){return"rgb("+Math.round(ct[0]*255)+","+Math.round(ct[1]*255)+","+Math.round(ct[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(ct,Dn,ur){this.textSpans=[],this.renderType="svg",this.initElement(ct,Dn,ur)}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(ct){for(var Dn=0,ur=ct.length,dr=[],fr="";Dn<ur;)ct[Dn]===String.fromCharCode(13)||ct[Dn]===String.fromCharCode(3)?(dr.push(fr),fr=""):fr+=ct[Dn],Dn+=1;return dr.push(fr),dr},SVGTextLottieElement.prototype.buildShapeData=function(ct,Dn){if(ct.shapes&&ct.shapes.length){var ur=ct.shapes[0];if(ur.it){var dr=ur.it[ur.it.length-1];dr.s&&(dr.s.k[0]=Dn,dr.s.k[1]=Dn)}}return ct},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var ct,Dn,ur=this.textProperty.currentData;this.renderedLetters=createSizedArray(ur?ur.l.length:0),ur.fc?this.layerElement.setAttribute("fill",this.buildColor(ur.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),ur.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(ur.sc)),this.layerElement.setAttribute("stroke-width",ur.sw)),this.layerElement.setAttribute("font-size",ur.finalSize);var dr=this.globalData.fontManager.getFontByName(ur.f);if(dr.fClass)this.layerElement.setAttribute("class",dr.fClass);else{this.layerElement.setAttribute("font-family",dr.fFamily);var fr=ur.fWeight,hr=ur.fStyle;this.layerElement.setAttribute("font-style",hr),this.layerElement.setAttribute("font-weight",fr)}this.layerElement.setAttribute("aria-label",ur.t);var vr=ur.l||[],pr=!!this.globalData.fontManager.chars;Dn=vr.length;var mr,gr=this.mHelper,yr="",Cr=this.data.singleShape,br=0,Ar=0,wr=!0,_r=ur.tr*.001*ur.finalSize;if(Cr&&!pr&&!ur.sz){var Tr=this.textContainer,Er="start";switch(ur.j){case 1:Er="end";break;case 2:Er="middle";break;default:Er="start";break}Tr.setAttribute("text-anchor",Er),Tr.setAttribute("letter-spacing",_r);var xr=this.buildTextContents(ur.finalText);for(Dn=xr.length,Ar=ur.ps?ur.ps[1]+ur.ascent:0,ct=0;ct<Dn;ct+=1)mr=this.textSpans[ct].span||createNS("tspan"),mr.textContent=xr[ct],mr.setAttribute("x",0),mr.setAttribute("y",Ar),mr.style.display="inherit",Tr.appendChild(mr),this.textSpans[ct]||(this.textSpans[ct]={span:null,glyph:null}),this.textSpans[ct].span=mr,Ar+=ur.finalLineHeight;this.layerElement.appendChild(Tr)}else{var Sr=this.textSpans.length,kr;for(ct=0;ct<Dn;ct+=1){if(this.textSpans[ct]||(this.textSpans[ct]={span:null,childSpan:null,glyph:null}),!pr||!Cr||ct===0){if(mr=Sr>ct?this.textSpans[ct].span:createNS(pr?"g":"text"),Sr<=ct){if(mr.setAttribute("stroke-linecap","butt"),mr.setAttribute("stroke-linejoin","round"),mr.setAttribute("stroke-miterlimit","4"),this.textSpans[ct].span=mr,pr){var Pr=createNS("g");mr.appendChild(Pr),this.textSpans[ct].childSpan=Pr}this.textSpans[ct].span=mr,this.layerElement.appendChild(mr)}mr.style.display="inherit"}if(gr.reset(),Cr&&(vr[ct].n&&(br=-_r,Ar+=ur.yOffset,Ar+=wr?1:0,wr=!1),this.applyTextPropertiesToMatrix(ur,gr,vr[ct].line,br,Ar),br+=vr[ct].l||0,br+=_r),pr){kr=this.globalData.fontManager.getCharData(ur.finalText[ct],dr.fStyle,this.globalData.fontManager.getFontByName(ur.f).fFamily);var Ir;if(kr.t===1)Ir=new SVGCompElement(kr.data,this.globalData,this);else{var Br=emptyShapeData;kr.data&&kr.data.shapes&&(Br=this.buildShapeData(kr.data,ur.finalSize)),Ir=new SVGShapeElement(Br,this.globalData,this)}if(this.textSpans[ct].glyph){var Or=this.textSpans[ct].glyph;this.textSpans[ct].childSpan.removeChild(Or.layerElement),Or.destroy()}this.textSpans[ct].glyph=Ir,Ir._debug=!0,Ir.prepareFrame(0),Ir.renderFrame(),this.textSpans[ct].childSpan.appendChild(Ir.layerElement),kr.t===1&&this.textSpans[ct].childSpan.setAttribute("transform","scale("+ur.finalSize/100+","+ur.finalSize/100+")")}else Cr&&mr.setAttribute("transform","translate("+gr.props[12]+","+gr.props[13]+")"),mr.textContent=vr[ct].val,mr.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}Cr&&mr&&mr.setAttribute("d",yr)}for(;ct<this.textSpans.length;)this.textSpans[ct].span.style.display="none",ct+=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 ct=this.layerElement.getBBox();this.bbox={top:ct.y,left:ct.x,width:ct.width,height:ct.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var ct,Dn=this.textSpans.length,ur;for(this.renderedFrame=this.comp.renderedFrame,ct=0;ct<Dn;ct+=1)ur=this.textSpans[ct].glyph,ur&&(ur.prepareFrame(this.comp.renderedFrame-this.data.st),ur._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 ct,Dn,ur=this.textAnimator.renderedLetters,dr=this.textProperty.currentData.l;Dn=dr.length;var fr,hr,vr;for(ct=0;ct<Dn;ct+=1)dr[ct].n||(fr=ur[ct],hr=this.textSpans[ct].span,vr=this.textSpans[ct].glyph,vr&&vr.renderFrame(),fr._mdf.m&&hr.setAttribute("transform",fr.m),fr._mdf.o&&hr.setAttribute("opacity",fr.o),fr._mdf.sw&&hr.setAttribute("stroke-width",fr.sw),fr._mdf.sc&&hr.setAttribute("stroke",fr.sc),fr._mdf.fc&&hr.setAttribute("fill",fr.fc))}};function ISolidElement(ct,Dn,ur){this.initElement(ct,Dn,ur)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var ct=createNS("rect");ct.setAttribute("width",this.data.sw),ct.setAttribute("height",this.data.sh),ct.setAttribute("fill",this.data.sc),this.layerElement.appendChild(ct)};function NullElement(ct,Dn,ur){this.initFrame(),this.initBaseData(ct,Dn,ur),this.initFrame(),this.initTransform(ct,Dn,ur),this.initHierarchy()}NullElement.prototype.prepareFrame=function(ct){this.prepareProperties(ct,!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(ct){return new NullElement(ct,this.globalData,this)},SVGRendererBase.prototype.createShape=function(ct){return new SVGShapeElement(ct,this.globalData,this)},SVGRendererBase.prototype.createText=function(ct){return new SVGTextLottieElement(ct,this.globalData,this)},SVGRendererBase.prototype.createImage=function(ct){return new IImageElement(ct,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(ct){return new ISolidElement(ct,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(ct){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 "+ct.w+" "+ct.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",ct.w),this.svgElement.setAttribute("height",ct.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 Dn=this.globalData.defs;this.setupGlobalData(ct,Dn),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=ct;var ur=createNS("clipPath"),dr=createNS("rect");dr.setAttribute("width",ct.w),dr.setAttribute("height",ct.h),dr.setAttribute("x",0),dr.setAttribute("y",0);var fr=createElementID();ur.setAttribute("id",fr),ur.appendChild(dr),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+fr+")"),Dn.appendChild(ur),this.layers=ct.layers,this.elements=createSizedArray(ct.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var ct,Dn=this.layers?this.layers.length:0;for(ct=0;ct<Dn;ct+=1)this.elements[ct]&&this.elements[ct].destroy&&this.elements[ct].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(ct){var Dn=0,ur=this.layers.length;for(Dn=0;Dn<ur;Dn+=1)if(this.layers[Dn].ind===ct)return Dn;return-1},SVGRendererBase.prototype.buildItem=function(ct){var Dn=this.elements;if(!(Dn[ct]||this.layers[ct].ty===99)){Dn[ct]=!0;var ur=this.createItem(this.layers[ct]);if(Dn[ct]=ur,getExpressionsPlugin()&&(this.layers[ct].ty===0&&this.globalData.projectInterface.registerComposition(ur),ur.initExpressions()),this.appendElementInPos(ur,ct),this.layers[ct].tt){var dr="tp"in this.layers[ct]?this.findIndexByInd(this.layers[ct].tp):ct-1;if(dr===-1)return;if(!this.elements[dr]||this.elements[dr]===!0)this.buildItem(dr),this.addPendingElement(ur);else{var fr=Dn[dr],hr=fr.getMatte(this.layers[ct].tt);ur.setMatte(hr)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var ct=this.pendingElements.pop();if(ct.checkParenting(),ct.data.tt)for(var Dn=0,ur=this.elements.length;Dn<ur;){if(this.elements[Dn]===ct){var dr="tp"in ct.data?this.findIndexByInd(ct.data.tp):Dn-1,fr=this.elements[dr],hr=fr.getMatte(this.layers[Dn].tt);ct.setMatte(hr);break}Dn+=1}}},SVGRendererBase.prototype.renderFrame=function(ct){if(!(this.renderedFrame===ct||this.destroyed)){ct===null?ct=this.renderedFrame:this.renderedFrame=ct,this.globalData.frameNum=ct,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=ct,this.globalData._mdf=!1;var Dn,ur=this.layers.length;for(this.completeLayers||this.checkLayers(ct),Dn=ur-1;Dn>=0;Dn-=1)(this.completeLayers||this.elements[Dn])&&this.elements[Dn].prepareFrame(ct-this.layers[Dn].st);if(this.globalData._mdf)for(Dn=0;Dn<ur;Dn+=1)(this.completeLayers||this.elements[Dn])&&this.elements[Dn].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(ct,Dn){var ur=ct.getBaseElement();if(ur){for(var dr=0,fr;dr<Dn;)this.elements[dr]&&this.elements[dr]!==!0&&this.elements[dr].getBaseElement()&&(fr=this.elements[dr].getBaseElement()),dr+=1;fr?this.layerElement.insertBefore(ur,fr):this.layerElement.appendChild(ur)}},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(ct,Dn,ur){this.initFrame(),this.initBaseData(ct,Dn,ur),this.initTransform(ct,Dn,ur),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!Dn.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(ct){if(this._mdf=!1,this.prepareRenderableFrame(ct),this.prepareProperties(ct,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=ct/this.data.sr;else{var Dn=this.tm.v;Dn===this.data.op&&(Dn=this.data.op-1),this.renderedFrame=Dn}var ur,dr=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),ur=dr-1;ur>=0;ur-=1)(this.completeLayers||this.elements[ur])&&(this.elements[ur].prepareFrame(this.renderedFrame-this.layers[ur].st),this.elements[ur]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var ct,Dn=this.layers.length;for(ct=0;ct<Dn;ct+=1)(this.completeLayers||this.elements[ct])&&this.elements[ct].renderFrame()},ICompElement.prototype.setElements=function(ct){this.elements=ct},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var ct,Dn=this.layers.length;for(ct=0;ct<Dn;ct+=1)this.elements[ct]&&this.elements[ct].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(ct,Dn,ur){this.layers=ct.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(ct,Dn,ur),this.tm=ct.tm?PropertyFactory.getProp(this,ct.tm,0,Dn.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(ct){return new SVGCompElement(ct,this.globalData,this)};function SVGRenderer(ct,Dn){this.animationItem=ct,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var ur="";if(Dn&&Dn.title){var dr=createNS("title"),fr=createElementID();dr.setAttribute("id",fr),dr.textContent=Dn.title,this.svgElement.appendChild(dr),ur+=fr}if(Dn&&Dn.description){var hr=createNS("desc"),vr=createElementID();hr.setAttribute("id",vr),hr.textContent=Dn.description,this.svgElement.appendChild(hr),ur+=" "+vr}ur&&this.svgElement.setAttribute("aria-labelledby",ur);var pr=createNS("defs");this.svgElement.appendChild(pr);var mr=createNS("g");this.svgElement.appendChild(mr),this.layerElement=mr,this.renderConfig={preserveAspectRatio:Dn&&Dn.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:Dn&&Dn.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:Dn&&Dn.contentVisibility||"visible",progressiveLoad:Dn&&Dn.progressiveLoad||!1,hideOnTransparent:!(Dn&&Dn.hideOnTransparent===!1),viewBoxOnly:Dn&&Dn.viewBoxOnly||!1,viewBoxSize:Dn&&Dn.viewBoxSize||!1,className:Dn&&Dn.className||"",id:Dn&&Dn.id||"",focusable:Dn&&Dn.focusable,filterSize:{width:Dn&&Dn.filterSize&&Dn.filterSize.width||"100%",height:Dn&&Dn.filterSize&&Dn.filterSize.height||"100%",x:Dn&&Dn.filterSize&&Dn.filterSize.x||"0%",y:Dn&&Dn.filterSize&&Dn.filterSize.y||"0%"},width:Dn&&Dn.width,height:Dn&&Dn.height,runExpressions:!Dn||Dn.runExpressions===void 0||Dn.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:pr,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(ct){return new SVGCompElement(ct,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(Dn){var ur,dr=Dn.length,fr="_";for(ur=0;ur<dr;ur+=1)fr+=Dn[ur].transform.key+"_";var hr=this.sequences[fr];return hr||(hr={transforms:[].concat(Dn),finalTransform:new Matrix,_mdf:!1},this.sequences[fr]=hr,this.sequenceList.push(hr)),hr},processSequence:function(Dn,ur){for(var dr=0,fr=Dn.transforms.length,hr=ur;dr<fr&&!ur;){if(Dn.transforms[dr].transform.mProps._mdf){hr=!0;break}dr+=1}if(hr)for(Dn.finalTransform.reset(),dr=fr-1;dr>=0;dr-=1)Dn.finalTransform.multiply(Dn.transforms[dr].transform.mProps.v);Dn._mdf=hr},processSequences:function(Dn){var ur,dr=this.sequenceList.length;for(ur=0;ur<dr;ur+=1)this.processSequence(this.sequenceList[ur],Dn)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var Dn="__lottie_element_luma_buffer",ur=null,dr=null,fr=null;function hr(){var mr=createNS("svg"),gr=createNS("filter"),yr=createNS("feColorMatrix");return gr.setAttribute("id",Dn),yr.setAttribute("type","matrix"),yr.setAttribute("color-interpolation-filters","sRGB"),yr.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"),gr.appendChild(yr),mr.appendChild(gr),mr.setAttribute("id",Dn+"_svg"),featureSupport.svgLumaHidden&&(mr.style.display="none"),mr}function vr(){ur||(fr=hr(),document.body.appendChild(fr),ur=createTag("canvas"),dr=ur.getContext("2d"),dr.filter="url(#"+Dn+")",dr.fillStyle="rgba(0,0,0,0)",dr.fillRect(0,0,1,1))}function pr(mr){return ur||vr(),ur.width=mr.width,ur.height=mr.height,dr.filter="url(#"+Dn+")",ur}return{load:vr,get:pr}};function createCanvas(ct,Dn){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(ct,Dn);var ur=createTag("canvas");return ur.width=ct,ur.height=Dn,ur}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(ct){var Dn,ur=ct.data.ef?ct.data.ef.length:0;this.filters=[];var dr;for(Dn=0;Dn<ur;Dn+=1){dr=null;var fr=ct.data.ef[Dn].ty;if(registeredEffects[fr]){var hr=registeredEffects[fr].effect;dr=new hr(ct.effectsManager.effectElements[Dn],ct)}dr&&this.filters.push(dr)}this.filters.length&&ct.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(ct){var Dn,ur=this.filters.length;for(Dn=0;Dn<ur;Dn+=1)this.filters[Dn].renderFrame(ct)},CVEffects.prototype.getEffects=function(ct){var Dn,ur=this.filters.length,dr=[];for(Dn=0;Dn<ur;Dn+=1)this.filters[Dn].type===ct&&dr.push(this.filters[Dn]);return dr};function registerEffect(ct,Dn){registeredEffects[ct]={effect:Dn}}function CVMaskElement(ct,Dn){this.data=ct,this.element=Dn,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var ur,dr=this.masksProperties.length,fr=!1;for(ur=0;ur<dr;ur+=1)this.masksProperties[ur].mode!=="n"&&(fr=!0),this.viewData[ur]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[ur],3);this.hasMasks=fr,fr&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var ct=this.element.finalTransform.mat,Dn=this.element.canvasContext,ur,dr=this.masksProperties.length,fr,hr,vr;for(Dn.beginPath(),ur=0;ur<dr;ur+=1)if(this.masksProperties[ur].mode!=="n"){this.masksProperties[ur].inv&&(Dn.moveTo(0,0),Dn.lineTo(this.element.globalData.compSize.w,0),Dn.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),Dn.lineTo(0,this.element.globalData.compSize.h),Dn.lineTo(0,0)),vr=this.viewData[ur].v,fr=ct.applyToPointArray(vr.v[0][0],vr.v[0][1],0),Dn.moveTo(fr[0],fr[1]);var pr,mr=vr._length;for(pr=1;pr<mr;pr+=1)hr=ct.applyToTriplePoints(vr.o[pr-1],vr.i[pr],vr.v[pr]),Dn.bezierCurveTo(hr[0],hr[1],hr[2],hr[3],hr[4],hr[5]);hr=ct.applyToTriplePoints(vr.o[pr-1],vr.i[0],vr.v[0]),Dn.bezierCurveTo(hr[0],hr[1],hr[2],hr[3],hr[4],hr[5])}this.element.globalData.renderer.save(!0),Dn.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 Dn=this.globalData.canvasContext,ur=assetLoader.createCanvas(Dn.canvas.width,Dn.canvas.height);this.buffers.push(ur);var dr=assetLoader.createCanvas(Dn.canvas.width,Dn.canvas.height);this.buffers.push(dr),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 Dn=this.globalData;if(Dn.blendMode!==this.data.bm){Dn.blendMode=this.data.bm;var ur=getBlendMode(this.data.bm);Dn.canvasContext.globalCompositeOperation=ur}},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(Dn){Dn.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 Dn=this.buffers[0],ur=Dn.getContext("2d");this.clearCanvas(ur),ur.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 Dn=this.buffers[1],ur=Dn.getContext("2d");this.clearCanvas(ur),ur.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 dr=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(dr.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var fr=assetLoader.getLumaCanvas(this.canvasContext.canvas),hr=fr.getContext("2d");hr.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(fr,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(Dn,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(Dn){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!Dn)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var ur=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(ur),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(ur),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(ct,Dn,ur,dr){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var fr=4;Dn.ty==="rc"?fr=5:Dn.ty==="el"?fr=6:Dn.ty==="sr"&&(fr=7),this.sh=ShapePropertyFactory.getShapeProp(ct,Dn,fr,ct);var hr,vr=ur.length,pr;for(hr=0;hr<vr;hr+=1)ur[hr].closed||(pr={transforms:dr.addTransformSequence(ur[hr].transforms),trNodes:[]},this.styledShapes.push(pr),ur[hr].elements.push(pr))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(ct,Dn,ur){this.shapes=[],this.shapesData=ct.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(ct,Dn,ur)}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(ct,Dn){var ur={data:ct,type:ct.ty,preTransforms:this.transformsManager.addTransformSequence(Dn),transforms:[],elements:[],closed:ct.hd===!0},dr={};if(ct.ty==="fl"||ct.ty==="st"?(dr.c=PropertyFactory.getProp(this,ct.c,1,255,this),dr.c.k||(ur.co="rgb("+bmFloor(dr.c.v[0])+","+bmFloor(dr.c.v[1])+","+bmFloor(dr.c.v[2])+")")):(ct.ty==="gf"||ct.ty==="gs")&&(dr.s=PropertyFactory.getProp(this,ct.s,1,null,this),dr.e=PropertyFactory.getProp(this,ct.e,1,null,this),dr.h=PropertyFactory.getProp(this,ct.h||{k:0},0,.01,this),dr.a=PropertyFactory.getProp(this,ct.a||{k:0},0,degToRads,this),dr.g=new GradientProperty(this,ct.g,this)),dr.o=PropertyFactory.getProp(this,ct.o,0,.01,this),ct.ty==="st"||ct.ty==="gs"){if(ur.lc=lineCapEnum[ct.lc||2],ur.lj=lineJoinEnum[ct.lj||2],ct.lj==1&&(ur.ml=ct.ml),dr.w=PropertyFactory.getProp(this,ct.w,0,null,this),dr.w.k||(ur.wi=dr.w.v),ct.d){var fr=new DashProperty(this,ct.d,"canvas",this);dr.d=fr,dr.d.k||(ur.da=dr.d.dashArray,ur.do=dr.d.dashoffset[0])}}else ur.r=ct.r===2?"evenodd":"nonzero";return this.stylesList.push(ur),dr.style=ur,dr},CVShapeElement.prototype.createGroupElement=function(){var ct={it:[],prevViewData:[]};return ct},CVShapeElement.prototype.createTransformElement=function(ct){var Dn={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,ct.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,ct,this)}};return Dn},CVShapeElement.prototype.createShapeElement=function(ct){var Dn=new CVShapeData(this,ct,this.stylesList,this.transformsManager);return this.shapes.push(Dn),this.addShapeToModifiers(Dn),Dn},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var ct,Dn=this.itemsData.length;for(ct=0;ct<Dn;ct+=1)this.prevViewData[ct]=this.itemsData[ct];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),Dn=this.dynamicProperties.length,ct=0;ct<Dn;ct+=1)this.dynamicProperties[ct].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(ct){var Dn,ur=this.stylesList.length;for(Dn=0;Dn<ur;Dn+=1)this.stylesList[Dn].closed||this.stylesList[Dn].transforms.push(ct)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var ct,Dn=this.stylesList.length;for(ct=0;ct<Dn;ct+=1)this.stylesList[ct].closed||this.stylesList[ct].transforms.pop()},CVShapeElement.prototype.closeStyles=function(ct){var Dn,ur=ct.length;for(Dn=0;Dn<ur;Dn+=1)ct[Dn].closed=!0},CVShapeElement.prototype.searchShapes=function(ct,Dn,ur,dr,fr){var hr,vr=ct.length-1,pr,mr,gr=[],yr=[],Cr,br,Ar,wr=[].concat(fr);for(hr=vr;hr>=0;hr-=1){if(Cr=this.searchProcessedElement(ct[hr]),Cr?Dn[hr]=ur[Cr-1]:ct[hr]._shouldRender=dr,ct[hr].ty==="fl"||ct[hr].ty==="st"||ct[hr].ty==="gf"||ct[hr].ty==="gs")Cr?Dn[hr].style.closed=!1:Dn[hr]=this.createStyleElement(ct[hr],wr),gr.push(Dn[hr].style);else if(ct[hr].ty==="gr"){if(!Cr)Dn[hr]=this.createGroupElement(ct[hr]);else for(mr=Dn[hr].it.length,pr=0;pr<mr;pr+=1)Dn[hr].prevViewData[pr]=Dn[hr].it[pr];this.searchShapes(ct[hr].it,Dn[hr].it,Dn[hr].prevViewData,dr,wr)}else ct[hr].ty==="tr"?(Cr||(Ar=this.createTransformElement(ct[hr]),Dn[hr]=Ar),wr.push(Dn[hr]),this.addTransformToStyleList(Dn[hr])):ct[hr].ty==="sh"||ct[hr].ty==="rc"||ct[hr].ty==="el"||ct[hr].ty==="sr"?Cr||(Dn[hr]=this.createShapeElement(ct[hr])):ct[hr].ty==="tm"||ct[hr].ty==="rd"||ct[hr].ty==="pb"||ct[hr].ty==="zz"||ct[hr].ty==="op"?(Cr?(br=Dn[hr],br.closed=!1):(br=ShapeModifiers.getModifier(ct[hr].ty),br.init(this,ct[hr]),Dn[hr]=br,this.shapeModifiers.push(br)),yr.push(br)):ct[hr].ty==="rp"&&(Cr?(br=Dn[hr],br.closed=!0):(br=ShapeModifiers.getModifier(ct[hr].ty),Dn[hr]=br,br.init(this,ct,hr,Dn),this.shapeModifiers.push(br),dr=!1),yr.push(br));this.addProcessedElement(ct[hr],hr+1)}for(this.removeTransformFromStyleList(),this.closeStyles(gr),vr=yr.length,hr=0;hr<vr;hr+=1)yr[hr].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(ct,Dn){(ct._opMdf||Dn.op._mdf||this._isFirstFrame)&&(Dn.opacity=ct.opacity,Dn.opacity*=Dn.op.v,Dn._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var ct,Dn=this.stylesList.length,ur,dr,fr,hr,vr,pr,mr=this.globalData.renderer,gr=this.globalData.canvasContext,yr,Cr;for(ct=0;ct<Dn;ct+=1)if(Cr=this.stylesList[ct],yr=Cr.type,!((yr==="st"||yr==="gs")&&Cr.wi===0||!Cr.data._shouldRender||Cr.coOp===0||this.globalData.currentGlobalAlpha===0)){for(mr.save(),vr=Cr.elements,yr==="st"||yr==="gs"?(mr.ctxStrokeStyle(yr==="st"?Cr.co:Cr.grd),mr.ctxLineWidth(Cr.wi),mr.ctxLineCap(Cr.lc),mr.ctxLineJoin(Cr.lj),mr.ctxMiterLimit(Cr.ml||0)):mr.ctxFillStyle(yr==="fl"?Cr.co:Cr.grd),mr.ctxOpacity(Cr.coOp),yr!=="st"&&yr!=="gs"&&gr.beginPath(),mr.ctxTransform(Cr.preTransforms.finalTransform.props),dr=vr.length,ur=0;ur<dr;ur+=1){for((yr==="st"||yr==="gs")&&(gr.beginPath(),Cr.da&&(gr.setLineDash(Cr.da),gr.lineDashOffset=Cr.do)),pr=vr[ur].trNodes,hr=pr.length,fr=0;fr<hr;fr+=1)pr[fr].t==="m"?gr.moveTo(pr[fr].p[0],pr[fr].p[1]):pr[fr].t==="c"?gr.bezierCurveTo(pr[fr].pts[0],pr[fr].pts[1],pr[fr].pts[2],pr[fr].pts[3],pr[fr].pts[4],pr[fr].pts[5]):gr.closePath();(yr==="st"||yr==="gs")&&(mr.ctxStroke(),Cr.da&&gr.setLineDash(this.dashResetter))}yr!=="st"&&yr!=="gs"&&this.globalData.renderer.ctxFill(Cr.r),mr.restore()}},CVShapeElement.prototype.renderShape=function(ct,Dn,ur,dr){var fr,hr=Dn.length-1,vr;for(vr=ct,fr=hr;fr>=0;fr-=1)Dn[fr].ty==="tr"?(vr=ur[fr].transform,this.renderShapeTransform(ct,vr)):Dn[fr].ty==="sh"||Dn[fr].ty==="el"||Dn[fr].ty==="rc"||Dn[fr].ty==="sr"?this.renderPath(Dn[fr],ur[fr]):Dn[fr].ty==="fl"?this.renderFill(Dn[fr],ur[fr],vr):Dn[fr].ty==="st"?this.renderStroke(Dn[fr],ur[fr],vr):Dn[fr].ty==="gf"||Dn[fr].ty==="gs"?this.renderGradientFill(Dn[fr],ur[fr],vr):Dn[fr].ty==="gr"?this.renderShape(vr,Dn[fr].it,ur[fr].it):Dn[fr].ty;dr&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(ct,Dn){if(this._isFirstFrame||Dn._mdf||ct.transforms._mdf){var ur=ct.trNodes,dr=Dn.paths,fr,hr,vr,pr=dr._length;ur.length=0;var mr=ct.transforms.finalTransform;for(vr=0;vr<pr;vr+=1){var gr=dr.shapes[vr];if(gr&&gr.v){for(hr=gr._length,fr=1;fr<hr;fr+=1)fr===1&&ur.push({t:"m",p:mr.applyToPointArray(gr.v[0][0],gr.v[0][1],0)}),ur.push({t:"c",pts:mr.applyToTriplePoints(gr.o[fr-1],gr.i[fr],gr.v[fr])});hr===1&&ur.push({t:"m",p:mr.applyToPointArray(gr.v[0][0],gr.v[0][1],0)}),gr.c&&hr&&(ur.push({t:"c",pts:mr.applyToTriplePoints(gr.o[fr-1],gr.i[0],gr.v[0])}),ur.push({t:"z"}))}}ct.trNodes=ur}},CVShapeElement.prototype.renderPath=function(ct,Dn){if(ct.hd!==!0&&ct._shouldRender){var ur,dr=Dn.styledShapes.length;for(ur=0;ur<dr;ur+=1)this.renderStyledShape(Dn.styledShapes[ur],Dn.sh)}},CVShapeElement.prototype.renderFill=function(ct,Dn,ur){var dr=Dn.style;(Dn.c._mdf||this._isFirstFrame)&&(dr.co="rgb("+bmFloor(Dn.c.v[0])+","+bmFloor(Dn.c.v[1])+","+bmFloor(Dn.c.v[2])+")"),(Dn.o._mdf||ur._opMdf||this._isFirstFrame)&&(dr.coOp=Dn.o.v*ur.opacity)},CVShapeElement.prototype.renderGradientFill=function(ct,Dn,ur){var dr=Dn.style,fr;if(!dr.grd||Dn.g._mdf||Dn.s._mdf||Dn.e._mdf||ct.t!==1&&(Dn.h._mdf||Dn.a._mdf)){var hr=this.globalData.canvasContext,vr=Dn.s.v,pr=Dn.e.v;if(ct.t===1)fr=hr.createLinearGradient(vr[0],vr[1],pr[0],pr[1]);else{var mr=Math.sqrt(Math.pow(vr[0]-pr[0],2)+Math.pow(vr[1]-pr[1],2)),gr=Math.atan2(pr[1]-vr[1],pr[0]-vr[0]),yr=Dn.h.v;yr>=1?yr=.99:yr<=-1&&(yr=-.99);var Cr=mr*yr,br=Math.cos(gr+Dn.a.v)*Cr+vr[0],Ar=Math.sin(gr+Dn.a.v)*Cr+vr[1];fr=hr.createRadialGradient(br,Ar,0,vr[0],vr[1],mr)}var wr,_r=ct.g.p,Tr=Dn.g.c,Er=1;for(wr=0;wr<_r;wr+=1)Dn.g._hasOpacity&&Dn.g._collapsable&&(Er=Dn.g.o[wr*2+1]),fr.addColorStop(Tr[wr*4]/100,"rgba("+Tr[wr*4+1]+","+Tr[wr*4+2]+","+Tr[wr*4+3]+","+Er+")");dr.grd=fr}dr.coOp=Dn.o.v*ur.opacity},CVShapeElement.prototype.renderStroke=function(ct,Dn,ur){var dr=Dn.style,fr=Dn.d;fr&&(fr._mdf||this._isFirstFrame)&&(dr.da=fr.dashArray,dr.do=fr.dashoffset[0]),(Dn.c._mdf||this._isFirstFrame)&&(dr.co="rgb("+bmFloor(Dn.c.v[0])+","+bmFloor(Dn.c.v[1])+","+bmFloor(Dn.c.v[2])+")"),(Dn.o._mdf||ur._opMdf||this._isFirstFrame)&&(dr.coOp=Dn.o.v*ur.opacity),(Dn.w._mdf||this._isFirstFrame)&&(dr.wi=Dn.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(ct,Dn,ur){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(ct,Dn,ur)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var ct=this.textProperty.currentData;this.renderedLetters=createSizedArray(ct.l?ct.l.length:0);var Dn=!1;ct.fc?(Dn=!0,this.values.fill=this.buildColor(ct.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=Dn;var ur=!1;ct.sc&&(ur=!0,this.values.stroke=this.buildColor(ct.sc),this.values.sWidth=ct.sw);var dr=this.globalData.fontManager.getFontByName(ct.f),fr,hr,vr=ct.l,pr=this.mHelper;this.stroke=ur,this.values.fValue=ct.finalSize+"px "+this.globalData.fontManager.getFontByName(ct.f).fFamily,hr=ct.finalText.length;var mr,gr,yr,Cr,br,Ar,wr,_r,Tr,Er,xr=this.data.singleShape,Sr=ct.tr*.001*ct.finalSize,kr=0,Pr=0,Ir=!0,Br=0;for(fr=0;fr<hr;fr+=1){mr=this.globalData.fontManager.getCharData(ct.finalText[fr],dr.fStyle,this.globalData.fontManager.getFontByName(ct.f).fFamily),gr=mr&&mr.data||{},pr.reset(),xr&&vr[fr].n&&(kr=-Sr,Pr+=ct.yOffset,Pr+=Ir?1:0,Ir=!1),br=gr.shapes?gr.shapes[0].it:[],wr=br.length,pr.scale(ct.finalSize/100,ct.finalSize/100),xr&&this.applyTextPropertiesToMatrix(ct,pr,vr[fr].line,kr,Pr),Tr=createSizedArray(wr-1);var Or=0;for(Ar=0;Ar<wr;Ar+=1)if(br[Ar].ty==="sh"){for(Cr=br[Ar].ks.k.i.length,_r=br[Ar].ks.k,Er=[],yr=1;yr<Cr;yr+=1)yr===1&&Er.push(pr.applyToX(_r.v[0][0],_r.v[0][1],0),pr.applyToY(_r.v[0][0],_r.v[0][1],0)),Er.push(pr.applyToX(_r.o[yr-1][0],_r.o[yr-1][1],0),pr.applyToY(_r.o[yr-1][0],_r.o[yr-1][1],0),pr.applyToX(_r.i[yr][0],_r.i[yr][1],0),pr.applyToY(_r.i[yr][0],_r.i[yr][1],0),pr.applyToX(_r.v[yr][0],_r.v[yr][1],0),pr.applyToY(_r.v[yr][0],_r.v[yr][1],0));Er.push(pr.applyToX(_r.o[yr-1][0],_r.o[yr-1][1],0),pr.applyToY(_r.o[yr-1][0],_r.o[yr-1][1],0),pr.applyToX(_r.i[0][0],_r.i[0][1],0),pr.applyToY(_r.i[0][0],_r.i[0][1],0),pr.applyToX(_r.v[0][0],_r.v[0][1],0),pr.applyToY(_r.v[0][0],_r.v[0][1],0)),Tr[Or]=Er,Or+=1}xr&&(kr+=vr[fr].l,kr+=Sr),this.textSpans[Br]?this.textSpans[Br].elem=Tr:this.textSpans[Br]={elem:Tr},Br+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var ct=this.canvasContext;ct.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 Dn,ur,dr,fr,hr,vr,pr=this.textAnimator.renderedLetters,mr=this.textProperty.currentData.l;ur=mr.length;var gr,yr=null,Cr=null,br=null,Ar,wr,_r=this.globalData.renderer;for(Dn=0;Dn<ur;Dn+=1)if(!mr[Dn].n){if(gr=pr[Dn],gr&&(_r.save(),_r.ctxTransform(gr.p),_r.ctxOpacity(gr.o)),this.fill){for(gr&&gr.fc?yr!==gr.fc&&(_r.ctxFillStyle(gr.fc),yr=gr.fc):yr!==this.values.fill&&(yr=this.values.fill,_r.ctxFillStyle(this.values.fill)),Ar=this.textSpans[Dn].elem,fr=Ar.length,this.globalData.canvasContext.beginPath(),dr=0;dr<fr;dr+=1)for(wr=Ar[dr],vr=wr.length,this.globalData.canvasContext.moveTo(wr[0],wr[1]),hr=2;hr<vr;hr+=6)this.globalData.canvasContext.bezierCurveTo(wr[hr],wr[hr+1],wr[hr+2],wr[hr+3],wr[hr+4],wr[hr+5]);this.globalData.canvasContext.closePath(),_r.ctxFill()}if(this.stroke){for(gr&&gr.sw?br!==gr.sw&&(br=gr.sw,_r.ctxLineWidth(gr.sw)):br!==this.values.sWidth&&(br=this.values.sWidth,_r.ctxLineWidth(this.values.sWidth)),gr&&gr.sc?Cr!==gr.sc&&(Cr=gr.sc,_r.ctxStrokeStyle(gr.sc)):Cr!==this.values.stroke&&(Cr=this.values.stroke,_r.ctxStrokeStyle(this.values.stroke)),Ar=this.textSpans[Dn].elem,fr=Ar.length,this.globalData.canvasContext.beginPath(),dr=0;dr<fr;dr+=1)for(wr=Ar[dr],vr=wr.length,this.globalData.canvasContext.moveTo(wr[0],wr[1]),hr=2;hr<vr;hr+=6)this.globalData.canvasContext.bezierCurveTo(wr[hr],wr[hr+1],wr[hr+2],wr[hr+3],wr[hr+4],wr[hr+5]);this.globalData.canvasContext.closePath(),_r.ctxStroke()}gr&&this.globalData.renderer.restore()}};function CVImageElement(ct,Dn,ur){this.assetData=Dn.getAssetData(ct.refId),this.img=Dn.imageLoader.getAsset(this.assetData),this.initElement(ct,Dn,ur)}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 ct=createTag("canvas");ct.width=this.assetData.w,ct.height=this.assetData.h;var Dn=ct.getContext("2d"),ur=this.img.width,dr=this.img.height,fr=ur/dr,hr=this.assetData.w/this.assetData.h,vr,pr,mr=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;fr>hr&&mr==="xMidYMid slice"||fr<hr&&mr!=="xMidYMid slice"?(pr=dr,vr=pr*hr):(vr=ur,pr=vr/hr),Dn.drawImage(this.img,(ur-vr)/2,(dr-pr)/2,vr,pr,0,0,this.assetData.w,this.assetData.h),this.img=ct}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(ct,Dn,ur){this.initElement(ct,Dn,ur)}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(ct){return new CVShapeElement(ct,this.globalData,this)},CanvasRendererBase.prototype.createText=function(ct){return new CVTextElement(ct,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(ct){return new CVImageElement(ct,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(ct){return new CVSolidElement(ct,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(ct){ct[0]===1&&ct[1]===0&&ct[4]===0&&ct[5]===1&&ct[12]===0&&ct[13]===0||this.canvasContext.transform(ct[0],ct[1],ct[4],ct[5],ct[12],ct[13])},CanvasRendererBase.prototype.ctxOpacity=function(ct){this.canvasContext.globalAlpha*=ct<0?0:ct},CanvasRendererBase.prototype.ctxFillStyle=function(ct){this.canvasContext.fillStyle=ct},CanvasRendererBase.prototype.ctxStrokeStyle=function(ct){this.canvasContext.strokeStyle=ct},CanvasRendererBase.prototype.ctxLineWidth=function(ct){this.canvasContext.lineWidth=ct},CanvasRendererBase.prototype.ctxLineCap=function(ct){this.canvasContext.lineCap=ct},CanvasRendererBase.prototype.ctxLineJoin=function(ct){this.canvasContext.lineJoin=ct},CanvasRendererBase.prototype.ctxMiterLimit=function(ct){this.canvasContext.miterLimit=ct},CanvasRendererBase.prototype.ctxFill=function(ct){this.canvasContext.fill(ct)},CanvasRendererBase.prototype.ctxFillRect=function(ct,Dn,ur,dr){this.canvasContext.fillRect(ct,Dn,ur,dr)},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(ct){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}ct&&(this.globalData.blendMode="source-over"),this.contextData.restore(ct)},CanvasRendererBase.prototype.configAnimation=function(ct){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var Dn=this.animationItem.container.style;Dn.width="100%",Dn.height="100%";var ur="0px 0px 0px";Dn.transformOrigin=ur,Dn.mozTransformOrigin=ur,Dn.webkitTransformOrigin=ur,Dn["-webkit-transform"]=ur,Dn.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=ct,this.layers=ct.layers,this.transformCanvas={w:ct.w,h:ct.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(ct,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(ct.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(ct,Dn){this.reset();var ur,dr;ct?(ur=ct,dr=Dn,this.canvasContext.canvas.width=ur,this.canvasContext.canvas.height=dr):(this.animationItem.wrapper&&this.animationItem.container?(ur=this.animationItem.wrapper.offsetWidth,dr=this.animationItem.wrapper.offsetHeight):(ur=this.canvasContext.canvas.width,dr=this.canvasContext.canvas.height),this.canvasContext.canvas.width=ur*this.renderConfig.dpr,this.canvasContext.canvas.height=dr*this.renderConfig.dpr);var fr,hr;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var vr=this.renderConfig.preserveAspectRatio.split(" "),pr=vr[1]||"meet",mr=vr[0]||"xMidYMid",gr=mr.substr(0,4),yr=mr.substr(4);fr=ur/dr,hr=this.transformCanvas.w/this.transformCanvas.h,hr>fr&&pr==="meet"||hr<fr&&pr==="slice"?(this.transformCanvas.sx=ur/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=ur/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=dr/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=dr/(this.transformCanvas.h/this.renderConfig.dpr)),gr==="xMid"&&(hr<fr&&pr==="meet"||hr>fr&&pr==="slice")?this.transformCanvas.tx=(ur-this.transformCanvas.w*(dr/this.transformCanvas.h))/2*this.renderConfig.dpr:gr==="xMax"&&(hr<fr&&pr==="meet"||hr>fr&&pr==="slice")?this.transformCanvas.tx=(ur-this.transformCanvas.w*(dr/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,yr==="YMid"&&(hr>fr&&pr==="meet"||hr<fr&&pr==="slice")?this.transformCanvas.ty=(dr-this.transformCanvas.h*(ur/this.transformCanvas.w))/2*this.renderConfig.dpr:yr==="YMax"&&(hr>fr&&pr==="meet"||hr<fr&&pr==="slice")?this.transformCanvas.ty=(dr-this.transformCanvas.h*(ur/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=ur/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=dr/(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 ct,Dn=this.layers?this.layers.length:0;for(ct=Dn-1;ct>=0;ct-=1)this.elements[ct]&&this.elements[ct].destroy&&this.elements[ct].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(ct,Dn){if(!(this.renderedFrame===ct&&this.renderConfig.clearCanvas===!0&&!Dn||this.destroyed||ct===-1)){this.renderedFrame=ct,this.globalData.frameNum=ct-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||Dn,this.globalData.projectInterface.currentFrame=ct;var ur,dr=this.layers.length;for(this.completeLayers||this.checkLayers(ct),ur=dr-1;ur>=0;ur-=1)(this.completeLayers||this.elements[ur])&&this.elements[ur].prepareFrame(ct-this.layers[ur].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),ur=dr-1;ur>=0;ur-=1)(this.completeLayers||this.elements[ur])&&this.elements[ur].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(ct){var Dn=this.elements;if(!(Dn[ct]||this.layers[ct].ty===99)){var ur=this.createItem(this.layers[ct],this,this.globalData);Dn[ct]=ur,ur.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var ct=this.pendingElements.pop();ct.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 ct,Dn=15;for(ct=0;ct<Dn;ct+=1){var ur=new CanvasContext;this.stack[ct]=ur}this._length=Dn,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 ct=this._length*2,Dn=0;for(Dn=this._length;Dn<ct;Dn+=1)this.stack[Dn]=new CanvasContext;this._length=ct},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(ct){this.cArrPos-=1;var Dn=this.stack[this.cArrPos],ur=Dn.transform,dr,fr=this.cTr.props;for(dr=0;dr<16;dr+=1)fr[dr]=ur[dr];if(ct){this.nativeContext.restore();var hr=this.stack[this.cArrPos+1];this.appliedFillStyle=hr.fillStyle,this.appliedStrokeStyle=hr.strokeStyle,this.appliedLineWidth=hr.lineWidth,this.appliedLineCap=hr.lineCap,this.appliedLineJoin=hr.lineJoin,this.appliedMiterLimit=hr.miterLimit}this.nativeContext.setTransform(ur[0],ur[1],ur[4],ur[5],ur[12],ur[13]),(ct||Dn.opacity!==-1&&this.currentOpacity!==Dn.opacity)&&(this.nativeContext.globalAlpha=Dn.opacity,this.currentOpacity=Dn.opacity),this.currentFillStyle=Dn.fillStyle,this.currentStrokeStyle=Dn.strokeStyle,this.currentLineWidth=Dn.lineWidth,this.currentLineCap=Dn.lineCap,this.currentLineJoin=Dn.lineJoin,this.currentMiterLimit=Dn.miterLimit},CVContextData.prototype.save=function(ct){ct&&this.nativeContext.save();var Dn=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var ur=this.stack[this.cArrPos],dr;for(dr=0;dr<16;dr+=1)ur.transform[dr]=Dn[dr];this.cArrPos+=1;var fr=this.stack[this.cArrPos];fr.opacity=ur.opacity,fr.fillStyle=ur.fillStyle,fr.strokeStyle=ur.strokeStyle,fr.lineWidth=ur.lineWidth,fr.lineCap=ur.lineCap,fr.lineJoin=ur.lineJoin,fr.miterLimit=ur.miterLimit},CVContextData.prototype.setOpacity=function(ct){this.stack[this.cArrPos].opacity=ct},CVContextData.prototype.setContext=function(ct){this.nativeContext=ct},CVContextData.prototype.fillStyle=function(ct){this.stack[this.cArrPos].fillStyle!==ct&&(this.currentFillStyle=ct,this.stack[this.cArrPos].fillStyle=ct)},CVContextData.prototype.strokeStyle=function(ct){this.stack[this.cArrPos].strokeStyle!==ct&&(this.currentStrokeStyle=ct,this.stack[this.cArrPos].strokeStyle=ct)},CVContextData.prototype.lineWidth=function(ct){this.stack[this.cArrPos].lineWidth!==ct&&(this.currentLineWidth=ct,this.stack[this.cArrPos].lineWidth=ct)},CVContextData.prototype.lineCap=function(ct){this.stack[this.cArrPos].lineCap!==ct&&(this.currentLineCap=ct,this.stack[this.cArrPos].lineCap=ct)},CVContextData.prototype.lineJoin=function(ct){this.stack[this.cArrPos].lineJoin!==ct&&(this.currentLineJoin=ct,this.stack[this.cArrPos].lineJoin=ct)},CVContextData.prototype.miterLimit=function(ct){this.stack[this.cArrPos].miterLimit!==ct&&(this.currentMiterLimit=ct,this.stack[this.cArrPos].miterLimit=ct)},CVContextData.prototype.transform=function(ct){this.transformMat.cloneFromProps(ct);var Dn=this.cTr;this.transformMat.multiply(Dn),Dn.cloneFromProps(this.transformMat.props);var ur=Dn.props;this.nativeContext.setTransform(ur[0],ur[1],ur[4],ur[5],ur[12],ur[13])},CVContextData.prototype.opacity=function(ct){var Dn=this.stack[this.cArrPos].opacity;Dn*=ct<0?0:ct,this.stack[this.cArrPos].opacity!==Dn&&(this.currentOpacity!==ct&&(this.nativeContext.globalAlpha=ct,this.currentOpacity=ct),this.stack[this.cArrPos].opacity=Dn)},CVContextData.prototype.fill=function(ct){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(ct)},CVContextData.prototype.fillRect=function(ct,Dn,ur,dr){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(ct,Dn,ur,dr)},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(ct,Dn,ur){this.completeLayers=!1,this.layers=ct.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(ct,Dn,ur),this.tm=ct.tm?PropertyFactory.getProp(this,ct.tm,0,Dn.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var ct=this.canvasContext;ct.beginPath(),ct.moveTo(0,0),ct.lineTo(this.data.w,0),ct.lineTo(this.data.w,this.data.h),ct.lineTo(0,this.data.h),ct.lineTo(0,0),ct.clip();var Dn,ur=this.layers.length;for(Dn=ur-1;Dn>=0;Dn-=1)(this.completeLayers||this.elements[Dn])&&this.elements[Dn].renderFrame()},CVCompElement.prototype.destroy=function(){var ct,Dn=this.layers.length;for(ct=Dn-1;ct>=0;ct-=1)this.elements[ct]&&this.elements[ct].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(ct){return new CVCompElement(ct,this.globalData,this)};function CanvasRenderer(ct,Dn){this.animationItem=ct,this.renderConfig={clearCanvas:Dn&&Dn.clearCanvas!==void 0?Dn.clearCanvas:!0,context:Dn&&Dn.context||null,progressiveLoad:Dn&&Dn.progressiveLoad||!1,preserveAspectRatio:Dn&&Dn.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:Dn&&Dn.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:Dn&&Dn.contentVisibility||"visible",className:Dn&&Dn.className||"",id:Dn&&Dn.id||"",runExpressions:!Dn||Dn.runExpressions===void 0||Dn.runExpressions},this.renderConfig.dpr=Dn&&Dn.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=Dn&&Dn.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(ct){return new CVCompElement(ct,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 Dn=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var ur=this.finalTransform.mat.toCSS();Dn.transform=ur,Dn.webkitTransform=ur}this.finalTransform._opMdf&&(Dn.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(ct,Dn,ur){this.initElement(ct,Dn,ur)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var ct;this.data.hasMask?(ct=createNS("rect"),ct.setAttribute("width",this.data.sw),ct.setAttribute("height",this.data.sh),ct.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(ct=createTag("div"),ct.style.width=this.data.sw+"px",ct.style.height=this.data.sh+"px",ct.style.backgroundColor=this.data.sc),this.layerElement.appendChild(ct)};function HShapeElement(ct,Dn,ur){this.shapes=[],this.shapesData=ct.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(ct,Dn,ur),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 ct;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),ct=this.svgElement;else{ct=createNS("svg");var Dn=this.comp.data?this.comp.data:this.globalData.compSize;ct.setAttribute("width",Dn.w),ct.setAttribute("height",Dn.h),ct.appendChild(this.shapesContainer),this.layerElement.appendChild(ct)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=ct},HShapeElement.prototype.getTransformedPoint=function(ct,Dn){var ur,dr=ct.length;for(ur=0;ur<dr;ur+=1)Dn=ct[ur].mProps.v.applyToPointArray(Dn[0],Dn[1],0);return Dn},HShapeElement.prototype.calculateShapeBoundingBox=function(ct,Dn){var ur=ct.sh.v,dr=ct.transformers,fr,hr=ur._length,vr,pr,mr,gr;if(!(hr<=1)){for(fr=0;fr<hr-1;fr+=1)vr=this.getTransformedPoint(dr,ur.v[fr]),pr=this.getTransformedPoint(dr,ur.o[fr]),mr=this.getTransformedPoint(dr,ur.i[fr+1]),gr=this.getTransformedPoint(dr,ur.v[fr+1]),this.checkBounds(vr,pr,mr,gr,Dn);ur.c&&(vr=this.getTransformedPoint(dr,ur.v[fr]),pr=this.getTransformedPoint(dr,ur.o[fr]),mr=this.getTransformedPoint(dr,ur.i[0]),gr=this.getTransformedPoint(dr,ur.v[0]),this.checkBounds(vr,pr,mr,gr,Dn))}},HShapeElement.prototype.checkBounds=function(ct,Dn,ur,dr,fr){this.getBoundsOfCurve(ct,Dn,ur,dr);var hr=this.shapeBoundingBox;fr.x=bmMin(hr.left,fr.x),fr.xMax=bmMax(hr.right,fr.xMax),fr.y=bmMin(hr.top,fr.y),fr.yMax=bmMax(hr.bottom,fr.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(ct,Dn,ur,dr){for(var fr=[[ct[0],dr[0]],[ct[1],dr[1]]],hr,vr,pr,mr,gr,yr,Cr,br=0;br<2;++br)vr=6*ct[br]-12*Dn[br]+6*ur[br],hr=-3*ct[br]+9*Dn[br]-9*ur[br]+3*dr[br],pr=3*Dn[br]-3*ct[br],vr|=0,hr|=0,pr|=0,hr===0&&vr===0||(hr===0?(mr=-pr/vr,mr>0&&mr<1&&fr[br].push(this.calculateF(mr,ct,Dn,ur,dr,br))):(gr=vr*vr-4*pr*hr,gr>=0&&(yr=(-vr+bmSqrt(gr))/(2*hr),yr>0&&yr<1&&fr[br].push(this.calculateF(yr,ct,Dn,ur,dr,br)),Cr=(-vr-bmSqrt(gr))/(2*hr),Cr>0&&Cr<1&&fr[br].push(this.calculateF(Cr,ct,Dn,ur,dr,br)))));this.shapeBoundingBox.left=bmMin.apply(null,fr[0]),this.shapeBoundingBox.top=bmMin.apply(null,fr[1]),this.shapeBoundingBox.right=bmMax.apply(null,fr[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,fr[1])},HShapeElement.prototype.calculateF=function(ct,Dn,ur,dr,fr,hr){return bmPow(1-ct,3)*Dn[hr]+3*bmPow(1-ct,2)*ct*ur[hr]+3*(1-ct)*bmPow(ct,2)*dr[hr]+bmPow(ct,3)*fr[hr]},HShapeElement.prototype.calculateBoundingBox=function(ct,Dn){var ur,dr=ct.length;for(ur=0;ur<dr;ur+=1)ct[ur]&&ct[ur].sh?this.calculateShapeBoundingBox(ct[ur],Dn):ct[ur]&&ct[ur].it?this.calculateBoundingBox(ct[ur].it,Dn):ct[ur]&&ct[ur].style&&ct[ur].w&&this.expandStrokeBoundingBox(ct[ur].w,Dn)},HShapeElement.prototype.expandStrokeBoundingBox=function(ct,Dn){var ur=0;if(ct.keyframes){for(var dr=0;dr<ct.keyframes.length;dr+=1){var fr=ct.keyframes[dr].s;fr>ur&&(ur=fr)}ur*=ct.mult}else ur=ct.v*ct.mult;Dn.x-=ur,Dn.xMax+=ur,Dn.y-=ur,Dn.yMax+=ur},HShapeElement.prototype.currentBoxContains=function(ct){return this.currentBBox.x<=ct.x&&this.currentBBox.y<=ct.y&&this.currentBBox.width+this.currentBBox.x>=ct.x+ct.width&&this.currentBBox.height+this.currentBBox.y>=ct.y+ct.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var ct=this.tempBoundingBox,Dn=999999;if(ct.x=Dn,ct.xMax=-Dn,ct.y=Dn,ct.yMax=-Dn,this.calculateBoundingBox(this.itemsData,ct),ct.width=ct.xMax<ct.x?0:ct.xMax-ct.x,ct.height=ct.yMax<ct.y?0:ct.yMax-ct.y,this.currentBoxContains(ct))return;var ur=!1;if(this.currentBBox.w!==ct.width&&(this.currentBBox.w=ct.width,this.shapeCont.setAttribute("width",ct.width),ur=!0),this.currentBBox.h!==ct.height&&(this.currentBBox.h=ct.height,this.shapeCont.setAttribute("height",ct.height),ur=!0),ur||this.currentBBox.x!==ct.x||this.currentBBox.y!==ct.y){this.currentBBox.w=ct.width,this.currentBBox.h=ct.height,this.currentBBox.x=ct.x,this.currentBBox.y=ct.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var dr=this.shapeCont.style,fr="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";dr.transform=fr,dr.webkitTransform=fr}}};function HTextElement(ct,Dn,ur){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(ct,Dn,ur)}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 ct=createNS("g");this.maskedElement.appendChild(ct),this.innerElem=ct}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var ct=this.textProperty.currentData;this.renderedLetters=createSizedArray(ct.l?ct.l.length:0);var Dn=this.innerElem.style,ur=ct.fc?this.buildColor(ct.fc):"rgba(0,0,0,0)";Dn.fill=ur,Dn.color=ur,ct.sc&&(Dn.stroke=this.buildColor(ct.sc),Dn.strokeWidth=ct.sw+"px");var dr=this.globalData.fontManager.getFontByName(ct.f);if(!this.globalData.fontManager.chars)if(Dn.fontSize=ct.finalSize+"px",Dn.lineHeight=ct.finalSize+"px",dr.fClass)this.innerElem.className=dr.fClass;else{Dn.fontFamily=dr.fFamily;var fr=ct.fWeight,hr=ct.fStyle;Dn.fontStyle=hr,Dn.fontWeight=fr}var vr,pr,mr=ct.l;pr=mr.length;var gr,yr,Cr,br=this.mHelper,Ar,wr="",_r=0;for(vr=0;vr<pr;vr+=1){if(this.globalData.fontManager.chars?(this.textPaths[_r]?gr=this.textPaths[_r]:(gr=createNS("path"),gr.setAttribute("stroke-linecap",lineCapEnum[1]),gr.setAttribute("stroke-linejoin",lineJoinEnum[2]),gr.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[_r]?(yr=this.textSpans[_r],Cr=yr.children[0]):(yr=createTag("div"),yr.style.lineHeight=0,Cr=createNS("svg"),Cr.appendChild(gr),styleDiv(yr)))):this.isMasked?gr=this.textPaths[_r]?this.textPaths[_r]:createNS("text"):this.textSpans[_r]?(yr=this.textSpans[_r],gr=this.textPaths[_r]):(yr=createTag("span"),styleDiv(yr),gr=createTag("span"),styleDiv(gr),yr.appendChild(gr)),this.globalData.fontManager.chars){var Tr=this.globalData.fontManager.getCharData(ct.finalText[vr],dr.fStyle,this.globalData.fontManager.getFontByName(ct.f).fFamily),Er;if(Tr?Er=Tr.data:Er=null,br.reset(),Er&&Er.shapes&&Er.shapes.length&&(Ar=Er.shapes[0].it,br.scale(ct.finalSize/100,ct.finalSize/100),wr=this.createPathShape(br,Ar),gr.setAttribute("d",wr)),this.isMasked)this.innerElem.appendChild(gr);else{if(this.innerElem.appendChild(yr),Er&&Er.shapes){document.body.appendChild(Cr);var xr=Cr.getBBox();Cr.setAttribute("width",xr.width+2),Cr.setAttribute("height",xr.height+2),Cr.setAttribute("viewBox",xr.x-1+" "+(xr.y-1)+" "+(xr.width+2)+" "+(xr.height+2));var Sr=Cr.style,kr="translate("+(xr.x-1)+"px,"+(xr.y-1)+"px)";Sr.transform=kr,Sr.webkitTransform=kr,mr[vr].yOffset=xr.y-1}else Cr.setAttribute("width",1),Cr.setAttribute("height",1);yr.appendChild(Cr)}}else if(gr.textContent=mr[vr].val,gr.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(gr);else{this.innerElem.appendChild(yr);var Pr=gr.style,Ir="translate3d(0,"+-ct.finalSize/1.2+"px,0)";Pr.transform=Ir,Pr.webkitTransform=Ir}this.isMasked?this.textSpans[_r]=gr:this.textSpans[_r]=yr,this.textSpans[_r].style.display="block",this.textPaths[_r]=gr,_r+=1}for(;_r<this.textSpans.length;)this.textSpans[_r].style.display="none",_r+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var ct;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),ct=this.svgElement.style;var Dn="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";ct.transform=Dn,ct.webkitTransform=Dn}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var ur,dr,fr=0,hr=this.textAnimator.renderedLetters,vr=this.textProperty.currentData.l;dr=vr.length;var pr,mr,gr;for(ur=0;ur<dr;ur+=1)vr[ur].n?fr+=1:(mr=this.textSpans[ur],gr=this.textPaths[ur],pr=hr[fr],fr+=1,pr._mdf.m&&(this.isMasked?mr.setAttribute("transform",pr.m):(mr.style.webkitTransform=pr.m,mr.style.transform=pr.m)),mr.style.opacity=pr.o,pr.sw&&pr._mdf.sw&&gr.setAttribute("stroke-width",pr.sw),pr.sc&&pr._mdf.sc&&gr.setAttribute("stroke",pr.sc),pr.fc&&pr._mdf.fc&&(gr.setAttribute("fill",pr.fc),gr.style.color=pr.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var yr=this.innerElem.getBBox();this.currentBBox.w!==yr.width&&(this.currentBBox.w=yr.width,this.svgElement.setAttribute("width",yr.width)),this.currentBBox.h!==yr.height&&(this.currentBBox.h=yr.height,this.svgElement.setAttribute("height",yr.height));var Cr=1;if(this.currentBBox.w!==yr.width+Cr*2||this.currentBBox.h!==yr.height+Cr*2||this.currentBBox.x!==yr.x-Cr||this.currentBBox.y!==yr.y-Cr){this.currentBBox.w=yr.width+Cr*2,this.currentBBox.h=yr.height+Cr*2,this.currentBBox.x=yr.x-Cr,this.currentBBox.y=yr.y-Cr,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),ct=this.svgElement.style;var br="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";ct.transform=br,ct.webkitTransform=br}}}};function HCameraElement(ct,Dn,ur){this.initFrame(),this.initBaseData(ct,Dn,ur),this.initHierarchy();var dr=PropertyFactory.getProp;if(this.pe=dr(this,ct.pe,0,0,this),ct.ks.p.s?(this.px=dr(this,ct.ks.p.x,1,0,this),this.py=dr(this,ct.ks.p.y,1,0,this),this.pz=dr(this,ct.ks.p.z,1,0,this)):this.p=dr(this,ct.ks.p,1,0,this),ct.ks.a&&(this.a=dr(this,ct.ks.a,1,0,this)),ct.ks.or.k.length&&ct.ks.or.k[0].to){var fr,hr=ct.ks.or.k.length;for(fr=0;fr<hr;fr+=1)ct.ks.or.k[fr].to=null,ct.ks.or.k[fr].ti=null}this.or=dr(this,ct.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=dr(this,ct.ks.rx,0,degToRads,this),this.ry=dr(this,ct.ks.ry,0,degToRads,this),this.rz=dr(this,ct.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 ct,Dn=this.comp.threeDElements.length,ur,dr,fr;for(ct=0;ct<Dn;ct+=1)if(ur=this.comp.threeDElements[ct],ur.type==="3d"){dr=ur.perspectiveElem.style,fr=ur.container.style;var hr=this.pe.v+"px",vr="0px 0px 0px",pr="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";dr.perspective=hr,dr.webkitPerspective=hr,fr.transformOrigin=vr,fr.mozTransformOrigin=vr,fr.webkitTransformOrigin=vr,dr.transform=pr,dr.webkitTransform=pr}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var ct=this._isFirstFrame,Dn,ur;if(this.hierarchy)for(ur=this.hierarchy.length,Dn=0;Dn<ur;Dn+=1)ct=this.hierarchy[Dn].finalTransform.mProp._mdf||ct;if(ct||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(ur=this.hierarchy.length-1,Dn=ur;Dn>=0;Dn-=1){var dr=this.hierarchy[Dn].finalTransform.mProp;this.mat.translate(-dr.p.v[0],-dr.p.v[1],dr.p.v[2]),this.mat.rotateX(-dr.or.v[0]).rotateY(-dr.or.v[1]).rotateZ(dr.or.v[2]),this.mat.rotateX(-dr.rx.v).rotateY(-dr.ry.v).rotateZ(dr.rz.v),this.mat.scale(1/dr.s.v[0],1/dr.s.v[1],1/dr.s.v[2]),this.mat.translate(dr.a.v[0],dr.a.v[1],dr.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 fr;this.p?fr=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:fr=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var hr=Math.sqrt(Math.pow(fr[0],2)+Math.pow(fr[1],2)+Math.pow(fr[2],2)),vr=[fr[0]/hr,fr[1]/hr,fr[2]/hr],pr=Math.sqrt(vr[2]*vr[2]+vr[0]*vr[0]),mr=Math.atan2(vr[1],pr),gr=Math.atan2(vr[0],-vr[2]);this.mat.rotateY(gr).rotateX(-mr)}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 yr=!this._prevMat.equals(this.mat);if((yr||this.pe._mdf)&&this.comp.threeDElements){ur=this.comp.threeDElements.length;var Cr,br,Ar;for(Dn=0;Dn<ur;Dn+=1)if(Cr=this.comp.threeDElements[Dn],Cr.type==="3d"){if(yr){var wr=this.mat.toCSS();Ar=Cr.container.style,Ar.transform=wr,Ar.webkitTransform=wr}this.pe._mdf&&(br=Cr.perspectiveElem.style,br.perspective=this.pe.v+"px",br.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(ct){this.prepareProperties(ct,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(ct,Dn,ur){this.assetData=Dn.getAssetData(ct.refId),this.initElement(ct,Dn,ur)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var ct=this.globalData.getAssetsPath(this.assetData),Dn=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",ct),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(Dn),Dn.crossOrigin="anonymous",Dn.src=ct,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(ct,Dn){this.animationItem=ct,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:Dn&&Dn.className||"",imagePreserveAspectRatio:Dn&&Dn.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(Dn&&Dn.hideOnTransparent===!1),filterSize:{width:Dn&&Dn.filterSize&&Dn.filterSize.width||"400%",height:Dn&&Dn.filterSize&&Dn.filterSize.height||"400%",x:Dn&&Dn.filterSize&&Dn.filterSize.x||"-100%",y:Dn&&Dn.filterSize&&Dn.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 ct=this.pendingElements.pop();ct.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(ct,Dn){var ur=ct.getBaseElement();if(ur){var dr=this.layers[Dn];if(!dr.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(ur,Dn);else{for(var fr=0,hr,vr,pr;fr<Dn;)this.elements[fr]&&this.elements[fr]!==!0&&this.elements[fr].getBaseElement&&(vr=this.elements[fr],pr=this.layers[fr].ddd?this.getThreeDContainerByPos(fr):vr.getBaseElement(),hr=pr||hr),fr+=1;hr?(!dr.ddd||!this.supports3d)&&this.layerElement.insertBefore(ur,hr):(!dr.ddd||!this.supports3d)&&this.layerElement.appendChild(ur)}else this.addTo3dContainer(ur,Dn)}},HybridRendererBase.prototype.createShape=function(ct){return this.supports3d?new HShapeElement(ct,this.globalData,this):new SVGShapeElement(ct,this.globalData,this)},HybridRendererBase.prototype.createText=function(ct){return this.supports3d?new HTextElement(ct,this.globalData,this):new SVGTextLottieElement(ct,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(ct){return this.camera=new HCameraElement(ct,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(ct){return this.supports3d?new HImageElement(ct,this.globalData,this):new IImageElement(ct,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(ct){return this.supports3d?new HSolidElement(ct,this.globalData,this):new ISolidElement(ct,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(ct){for(var Dn=0,ur=this.threeDElements.length;Dn<ur;){if(this.threeDElements[Dn].startPos<=ct&&this.threeDElements[Dn].endPos>=ct)return this.threeDElements[Dn].perspectiveElem;Dn+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(ct,Dn){var ur=createTag("div"),dr,fr;styleDiv(ur);var hr=createTag("div");if(styleDiv(hr),Dn==="3d"){dr=ur.style,dr.width=this.globalData.compSize.w+"px",dr.height=this.globalData.compSize.h+"px";var vr="50% 50%";dr.webkitTransformOrigin=vr,dr.mozTransformOrigin=vr,dr.transformOrigin=vr,fr=hr.style;var pr="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";fr.transform=pr,fr.webkitTransform=pr}ur.appendChild(hr);var mr={container:hr,perspectiveElem:ur,startPos:ct,endPos:ct,type:Dn};return this.threeDElements.push(mr),mr},HybridRendererBase.prototype.build3dContainers=function(){var ct,Dn=this.layers.length,ur,dr="";for(ct=0;ct<Dn;ct+=1)this.layers[ct].ddd&&this.layers[ct].ty!==3?(dr!=="3d"&&(dr="3d",ur=this.createThreeDContainer(ct,"3d")),ur.endPos=Math.max(ur.endPos,ct)):(dr!=="2d"&&(dr="2d",ur=this.createThreeDContainer(ct,"2d")),ur.endPos=Math.max(ur.endPos,ct));for(Dn=this.threeDElements.length,ct=Dn-1;ct>=0;ct-=1)this.resizerElem.appendChild(this.threeDElements[ct].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(ct,Dn){for(var ur=0,dr=this.threeDElements.length;ur<dr;){if(Dn<=this.threeDElements[ur].endPos){for(var fr=this.threeDElements[ur].startPos,hr;fr<Dn;)this.elements[fr]&&this.elements[fr].getBaseElement&&(hr=this.elements[fr].getBaseElement()),fr+=1;hr?this.threeDElements[ur].container.insertBefore(ct,hr):this.threeDElements[ur].container.appendChild(ct);break}ur+=1}},HybridRendererBase.prototype.configAnimation=function(ct){var Dn=createTag("div"),ur=this.animationItem.wrapper,dr=Dn.style;dr.width=ct.w+"px",dr.height=ct.h+"px",this.resizerElem=Dn,styleDiv(Dn),dr.transformStyle="flat",dr.mozTransformStyle="flat",dr.webkitTransformStyle="flat",this.renderConfig.className&&Dn.setAttribute("class",this.renderConfig.className),ur.appendChild(Dn),dr.overflow="hidden";var fr=createNS("svg");fr.setAttribute("width","1"),fr.setAttribute("height","1"),styleDiv(fr),this.resizerElem.appendChild(fr);var hr=createNS("defs");fr.appendChild(hr),this.data=ct,this.setupGlobalData(ct,fr),this.globalData.defs=hr,this.layers=ct.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 ct,Dn=this.layers?this.layers.length:0;for(ct=0;ct<Dn;ct+=1)this.elements[ct]&&this.elements[ct].destroy&&this.elements[ct].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var ct=this.animationItem.wrapper.offsetWidth,Dn=this.animationItem.wrapper.offsetHeight,ur=ct/Dn,dr=this.globalData.compSize.w/this.globalData.compSize.h,fr,hr,vr,pr;dr>ur?(fr=ct/this.globalData.compSize.w,hr=ct/this.globalData.compSize.w,vr=0,pr=(Dn-this.globalData.compSize.h*(ct/this.globalData.compSize.w))/2):(fr=Dn/this.globalData.compSize.h,hr=Dn/this.globalData.compSize.h,vr=(ct-this.globalData.compSize.w*(Dn/this.globalData.compSize.h))/2,pr=0);var mr=this.resizerElem.style;mr.webkitTransform="matrix3d("+fr+",0,0,0,0,"+hr+",0,0,0,0,1,0,"+vr+","+pr+",0,1)",mr.transform=mr.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 ct=this.globalData.compSize.w,Dn=this.globalData.compSize.h,ur,dr=this.threeDElements.length;for(ur=0;ur<dr;ur+=1){var fr=this.threeDElements[ur].perspectiveElem.style;fr.webkitPerspective=Math.sqrt(Math.pow(ct,2)+Math.pow(Dn,2))+"px",fr.perspective=fr.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(ct){var Dn,ur=ct.length,dr=createTag("div");for(Dn=0;Dn<ur;Dn+=1)if(ct[Dn].xt){var fr=this.createComp(ct[Dn],dr,this.globalData.comp,null);fr.initExpressions(),this.globalData.projectInterface.registerComposition(fr)}};function HCompElement(ct,Dn,ur){this.layers=ct.layers,this.supports3d=!ct.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(ct,Dn,ur),this.tm=ct.tm?PropertyFactory.getProp(this,ct.tm,0,Dn.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(ct,Dn){for(var ur=0,dr;ur<Dn;)this.elements[ur]&&this.elements[ur].getBaseElement&&(dr=this.elements[ur].getBaseElement()),ur+=1;dr?this.layerElement.insertBefore(ct,dr):this.layerElement.appendChild(ct)},HCompElement.prototype.createComp=function(ct){return this.supports3d?new HCompElement(ct,this.globalData,this):new SVGCompElement(ct,this.globalData,this)};function HybridRenderer(ct,Dn){this.animationItem=ct,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:Dn&&Dn.className||"",imagePreserveAspectRatio:Dn&&Dn.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(Dn&&Dn.hideOnTransparent===!1),filterSize:{width:Dn&&Dn.filterSize&&Dn.filterSize.width||"400%",height:Dn&&Dn.filterSize&&Dn.filterSize.height||"400%",x:Dn&&Dn.filterSize&&Dn.filterSize.x||"-100%",y:Dn&&Dn.filterSize&&Dn.filterSize.y||"-100%"},runExpressions:!Dn||Dn.runExpressions===void 0||Dn.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(ct){return this.supports3d?new HCompElement(ct,this.globalData,this):new SVGCompElement(ct,this.globalData,this)};var CompExpressionInterface=function(){return function(ct){function Dn(ur){for(var dr=0,fr=ct.layers.length;dr<fr;){if(ct.layers[dr].nm===ur||ct.layers[dr].ind===ur)return ct.elements[dr].layerInterface;dr+=1}return null}return Object.defineProperty(Dn,"_name",{value:ct.data.nm}),Dn.layer=Dn,Dn.pixelAspect=1,Dn.height=ct.data.h||ct.globalData.compSize.h,Dn.width=ct.data.w||ct.globalData.compSize.w,Dn.pixelAspect=1,Dn.frameDuration=1/ct.globalData.frameRate,Dn.displayStartTime=0,Dn.numLayers=ct.layers.length,Dn}}();function _typeof$2(ct){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function(ur){return typeof ur}:_typeof$2=function(ur){return ur&&typeof Symbol=="function"&&ur.constructor===Symbol&&ur!==Symbol.prototype?"symbol":typeof ur},_typeof$2(ct)}function seedRandom(ct,Dn){var ur=this,dr=256,fr=6,hr=52,vr="random",pr=Dn.pow(dr,fr),mr=Dn.pow(2,hr),gr=mr*2,yr=dr-1,Cr;function br(Sr,kr,Pr){var Ir=[];kr=kr===!0?{entropy:!0}:kr||{};var Br=Tr(_r(kr.entropy?[Sr,xr(ct)]:Sr===null?Er():Sr,3),Ir),Or=new Ar(Ir),Nr=function(){for(var Vr=Or.g(fr),$r=pr,zr=0;Vr<mr;)Vr=(Vr+zr)*dr,$r*=dr,zr=Or.g(1);for(;Vr>=gr;)Vr/=2,$r/=2,zr>>>=1;return(Vr+zr)/$r};return Nr.int32=function(){return Or.g(4)|0},Nr.quick=function(){return Or.g(4)/4294967296},Nr.double=Nr,Tr(xr(Or.S),ct),(kr.pass||Pr||function(jr,Vr,$r,zr){return zr&&(zr.S&&wr(zr,Or),jr.state=function(){return wr(Or,{})}),$r?(Dn[vr]=jr,Vr):jr})(Nr,Br,"global"in kr?kr.global:this==Dn,kr.state)}Dn["seed"+vr]=br;function Ar(Sr){var kr,Pr=Sr.length,Ir=this,Br=0,Or=Ir.i=Ir.j=0,Nr=Ir.S=[];for(Pr||(Sr=[Pr++]);Br<dr;)Nr[Br]=Br++;for(Br=0;Br<dr;Br++)Nr[Br]=Nr[Or=yr&Or+Sr[Br%Pr]+(kr=Nr[Br])],Nr[Or]=kr;Ir.g=function(jr){for(var Vr,$r=0,zr=Ir.i,Wr=Ir.j,qr=Ir.S;jr--;)Vr=qr[zr=yr&zr+1],$r=$r*dr+qr[yr&(qr[zr]=qr[Wr=yr&Wr+Vr])+(qr[Wr]=Vr)];return Ir.i=zr,Ir.j=Wr,$r}}function wr(Sr,kr){return kr.i=Sr.i,kr.j=Sr.j,kr.S=Sr.S.slice(),kr}function _r(Sr,kr){var Pr=[],Ir=_typeof$2(Sr),Br;if(kr&&Ir=="object")for(Br in Sr)try{Pr.push(_r(Sr[Br],kr-1))}catch{}return Pr.length?Pr:Ir=="string"?Sr:Sr+"\0"}function Tr(Sr,kr){for(var Pr=Sr+"",Ir,Br=0;Br<Pr.length;)kr[yr&Br]=yr&(Ir^=kr[yr&Br]*19)+Pr.charCodeAt(Br++);return xr(kr)}function Er(){try{var Sr=new Uint8Array(dr);return(ur.crypto||ur.msCrypto).getRandomValues(Sr),xr(Sr)}catch{var kr=ur.navigator,Pr=kr&&kr.plugins;return[+new Date,ur,Pr,ur.screen,xr(ct)]}}function xr(Sr){return String.fromCharCode.apply(0,Sr)}Tr(Dn.random(),ct)}function initialize$2(ct){seedRandom([],ct)}var propTypes={SHAPE:"shape"};function _typeof$1(ct){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(ur){return typeof ur}:_typeof$1=function(ur){return ur&&typeof Symbol=="function"&&ur.constructor===Symbol&&ur!==Symbol.prototype?"symbol":typeof ur},_typeof$1(ct)}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(ct){return ct.constructor===Array||ct.constructor===Float32Array}function isNumerable(ct,Dn){return ct==="number"||Dn instanceof Number||ct==="boolean"||ct==="string"}function $bm_neg(ct){var Dn=_typeof$1(ct);if(Dn==="number"||ct instanceof Number||Dn==="boolean")return-ct;if($bm_isInstanceOfArray(ct)){var ur,dr=ct.length,fr=[];for(ur=0;ur<dr;ur+=1)fr[ur]=-ct[ur];return fr}return ct.propType?ct.v:-ct}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(ct,Dn){var ur=_typeof$1(ct),dr=_typeof$1(Dn);if(isNumerable(ur,ct)&&isNumerable(dr,Dn)||ur==="string"||dr==="string")return ct+Dn;if($bm_isInstanceOfArray(ct)&&isNumerable(dr,Dn))return ct=ct.slice(0),ct[0]+=Dn,ct;if(isNumerable(ur,ct)&&$bm_isInstanceOfArray(Dn))return Dn=Dn.slice(0),Dn[0]=ct+Dn[0],Dn;if($bm_isInstanceOfArray(ct)&&$bm_isInstanceOfArray(Dn)){for(var fr=0,hr=ct.length,vr=Dn.length,pr=[];fr<hr||fr<vr;)(typeof ct[fr]=="number"||ct[fr]instanceof Number)&&(typeof Dn[fr]=="number"||Dn[fr]instanceof Number)?pr[fr]=ct[fr]+Dn[fr]:pr[fr]=Dn[fr]===void 0?ct[fr]:ct[fr]||Dn[fr],fr+=1;return pr}return 0}var add=sum;function sub(ct,Dn){var ur=_typeof$1(ct),dr=_typeof$1(Dn);if(isNumerable(ur,ct)&&isNumerable(dr,Dn))return ur==="string"&&(ct=parseInt(ct,10)),dr==="string"&&(Dn=parseInt(Dn,10)),ct-Dn;if($bm_isInstanceOfArray(ct)&&isNumerable(dr,Dn))return ct=ct.slice(0),ct[0]-=Dn,ct;if(isNumerable(ur,ct)&&$bm_isInstanceOfArray(Dn))return Dn=Dn.slice(0),Dn[0]=ct-Dn[0],Dn;if($bm_isInstanceOfArray(ct)&&$bm_isInstanceOfArray(Dn)){for(var fr=0,hr=ct.length,vr=Dn.length,pr=[];fr<hr||fr<vr;)(typeof ct[fr]=="number"||ct[fr]instanceof Number)&&(typeof Dn[fr]=="number"||Dn[fr]instanceof Number)?pr[fr]=ct[fr]-Dn[fr]:pr[fr]=Dn[fr]===void 0?ct[fr]:ct[fr]||Dn[fr],fr+=1;return pr}return 0}function mul(ct,Dn){var ur=_typeof$1(ct),dr=_typeof$1(Dn),fr;if(isNumerable(ur,ct)&&isNumerable(dr,Dn))return ct*Dn;var hr,vr;if($bm_isInstanceOfArray(ct)&&isNumerable(dr,Dn)){for(vr=ct.length,fr=createTypedArray("float32",vr),hr=0;hr<vr;hr+=1)fr[hr]=ct[hr]*Dn;return fr}if(isNumerable(ur,ct)&&$bm_isInstanceOfArray(Dn)){for(vr=Dn.length,fr=createTypedArray("float32",vr),hr=0;hr<vr;hr+=1)fr[hr]=ct*Dn[hr];return fr}return 0}function div(ct,Dn){var ur=_typeof$1(ct),dr=_typeof$1(Dn),fr;if(isNumerable(ur,ct)&&isNumerable(dr,Dn))return ct/Dn;var hr,vr;if($bm_isInstanceOfArray(ct)&&isNumerable(dr,Dn)){for(vr=ct.length,fr=createTypedArray("float32",vr),hr=0;hr<vr;hr+=1)fr[hr]=ct[hr]/Dn;return fr}if(isNumerable(ur,ct)&&$bm_isInstanceOfArray(Dn)){for(vr=Dn.length,fr=createTypedArray("float32",vr),hr=0;hr<vr;hr+=1)fr[hr]=ct/Dn[hr];return fr}return 0}function mod(ct,Dn){return typeof ct=="string"&&(ct=parseInt(ct,10)),typeof Dn=="string"&&(Dn=parseInt(Dn,10)),ct%Dn}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(ct,Dn,ur){if(Dn>ur){var dr=ur;ur=Dn,Dn=dr}return Math.min(Math.max(ct,Dn),ur)}function radiansToDegrees(ct){return ct/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(ct){return ct*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(ct,Dn){if(typeof ct=="number"||ct instanceof Number)return Dn=Dn||0,Math.abs(ct-Dn);Dn||(Dn=helperLengthArray);var ur,dr=Math.min(ct.length,Dn.length),fr=0;for(ur=0;ur<dr;ur+=1)fr+=Math.pow(Dn[ur]-ct[ur],2);return Math.sqrt(fr)}function normalize(ct){return div(ct,length(ct))}function rgbToHsl(ct){var Dn=ct[0],ur=ct[1],dr=ct[2],fr=Math.max(Dn,ur,dr),hr=Math.min(Dn,ur,dr),vr,pr,mr=(fr+hr)/2;if(fr===hr)vr=0,pr=0;else{var gr=fr-hr;switch(pr=mr>.5?gr/(2-fr-hr):gr/(fr+hr),fr){case Dn:vr=(ur-dr)/gr+(ur<dr?6:0);break;case ur:vr=(dr-Dn)/gr+2;break;case dr:vr=(Dn-ur)/gr+4;break}vr/=6}return[vr,pr,mr,ct[3]]}function hue2rgb(ct,Dn,ur){return ur<0&&(ur+=1),ur>1&&(ur-=1),ur<1/6?ct+(Dn-ct)*6*ur:ur<1/2?Dn:ur<2/3?ct+(Dn-ct)*(2/3-ur)*6:ct}function hslToRgb(ct){var Dn=ct[0],ur=ct[1],dr=ct[2],fr,hr,vr;if(ur===0)fr=dr,vr=dr,hr=dr;else{var pr=dr<.5?dr*(1+ur):dr+ur-dr*ur,mr=2*dr-pr;fr=hue2rgb(mr,pr,Dn+1/3),hr=hue2rgb(mr,pr,Dn),vr=hue2rgb(mr,pr,Dn-1/3)}return[fr,hr,vr,ct[3]]}function linear(ct,Dn,ur,dr,fr){if((dr===void 0||fr===void 0)&&(dr=Dn,fr=ur,Dn=0,ur=1),ur<Dn){var hr=ur;ur=Dn,Dn=hr}if(ct<=Dn)return dr;if(ct>=ur)return fr;var vr=ur===Dn?0:(ct-Dn)/(ur-Dn);if(!dr.length)return dr+(fr-dr)*vr;var pr,mr=dr.length,gr=createTypedArray("float32",mr);for(pr=0;pr<mr;pr+=1)gr[pr]=dr[pr]+(fr[pr]-dr[pr])*vr;return gr}function random(ct,Dn){if(Dn===void 0&&(ct===void 0?(ct=0,Dn=1):(Dn=ct,ct=void 0)),Dn.length){var ur,dr=Dn.length;ct||(ct=createTypedArray("float32",dr));var fr=createTypedArray("float32",dr),hr=BMMath.random();for(ur=0;ur<dr;ur+=1)fr[ur]=ct[ur]+hr*(Dn[ur]-ct[ur]);return fr}ct===void 0&&(ct=0);var vr=BMMath.random();return ct+vr*(Dn-ct)}function createPath(ct,Dn,ur,dr){var fr,hr=ct.length,vr=shapePool.newElement();vr.setPathData(!!dr,hr);var pr=[0,0],mr,gr;for(fr=0;fr<hr;fr+=1)mr=Dn&&Dn[fr]?Dn[fr]:pr,gr=ur&&ur[fr]?ur[fr]:pr,vr.setTripleAt(ct[fr][0],ct[fr][1],gr[0]+ct[fr][0],gr[1]+ct[fr][1],mr[0]+ct[fr][0],mr[1]+ct[fr][1],fr,!0);return vr}function initiateExpression(elem,data,property){function noOp(ct){return ct}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 ct(Dn,ur){var dr,fr,hr=this.pv.length?this.pv.length:1,vr=createTypedArray("float32",hr);Dn=5;var pr=Math.floor(time*Dn);for(dr=0,fr=0;dr<pr;){for(fr=0;fr<hr;fr+=1)vr[fr]+=-ur+ur*2*BMMath.random();dr+=1}var mr=time*Dn,gr=mr-Math.floor(mr),yr=createTypedArray("float32",hr);if(hr>1){for(fr=0;fr<hr;fr+=1)yr[fr]=this.pv[fr]+vr[fr]+(-ur+ur*2*BMMath.random())*gr;return yr}return this.pv+vr[0]+(-ur+ur*2*BMMath.random())*gr}).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(ct,Dn){return loopIn(ct,Dn,!0)}function loopOutDuration(ct,Dn){return loopOut(ct,Dn,!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(ct,Dn){var ur=[Dn[0]-ct[0],Dn[1]-ct[1],Dn[2]-ct[2]],dr=Math.atan2(ur[0],Math.sqrt(ur[1]*ur[1]+ur[2]*ur[2]))/degToRads,fr=-Math.atan2(ur[1],ur[2])/degToRads;return[fr,dr,0]}function easeOut(ct,Dn,ur,dr,fr){return applyEase(easeOutBez,ct,Dn,ur,dr,fr)}function easeIn(ct,Dn,ur,dr,fr){return applyEase(easeInBez,ct,Dn,ur,dr,fr)}function ease(ct,Dn,ur,dr,fr){return applyEase(easeInOutBez,ct,Dn,ur,dr,fr)}function applyEase(ct,Dn,ur,dr,fr,hr){fr===void 0?(fr=ur,hr=dr):Dn=(Dn-ur)/(dr-ur),Dn>1?Dn=1:Dn<0&&(Dn=0);var vr=ct(Dn);if($bm_isInstanceOfArray(fr)){var pr,mr=fr.length,gr=createTypedArray("float32",mr);for(pr=0;pr<mr;pr+=1)gr[pr]=(hr[pr]-fr[pr])*vr+fr[pr];return gr}return(hr-fr)*vr+fr}function nearestKey(ct){var Dn,ur=data.k.length,dr,fr;if(!data.k.length||typeof data.k[0]=="number")dr=0,fr=0;else if(dr=-1,ct*=elem.comp.globalData.frameRate,ct<data.k[0].t)dr=1,fr=data.k[0].t;else{for(Dn=0;Dn<ur-1;Dn+=1)if(ct===data.k[Dn].t){dr=Dn+1,fr=data.k[Dn].t;break}else if(ct>data.k[Dn].t&&ct<data.k[Dn+1].t){ct-data.k[Dn].t>data.k[Dn+1].t-ct?(dr=Dn+2,fr=data.k[Dn+1].t):(dr=Dn+1,fr=data.k[Dn].t);break}dr===-1&&(dr=Dn+1,fr=data.k[Dn].t)}var hr={};return hr.index=dr,hr.time=fr/elem.comp.globalData.frameRate,hr}function key(ct){var Dn,ur,dr;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+ct);ct-=1,Dn={time:data.k[ct].t/elem.comp.globalData.frameRate,value:[]};var fr=Object.prototype.hasOwnProperty.call(data.k[ct],"s")?data.k[ct].s:data.k[ct-1].e;for(dr=fr.length,ur=0;ur<dr;ur+=1)Dn[ur]=fr[ur],Dn.value[ur]=fr[ur];return Dn}function framesToTime(ct,Dn){return Dn||(Dn=elem.comp.globalData.frameRate),ct/Dn}function timeToFrames(ct,Dn){return!ct&&ct!==0&&(ct=time),Dn||(Dn=elem.comp.globalData.frameRate),ct*Dn}function seedRandom(ct){BMMath.seedrandom(randSeed+ct)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(ct,Dn){return typeof value=="string"?Dn===void 0?value.substring(ct):value.substring(ct,Dn):""}function substr(ct,Dn){return typeof value=="string"?Dn===void 0?value.substr(ct):value.substr(ct,Dn):""}function posterizeTime(ct){time=ct===0?0:Math.floor(time*ct)/ct,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(ct){return value=ct,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 ct={};ct.initExpressions=Dn,ct.resetFrame=ExpressionManager.resetFrame;function Dn(ur){var dr=0,fr=[];function hr(){dr+=1}function vr(){dr-=1,dr===0&&mr()}function pr(gr){fr.indexOf(gr)===-1&&fr.push(gr)}function mr(){var gr,yr=fr.length;for(gr=0;gr<yr;gr+=1)fr[gr].release();fr.length=0}ur.renderer.compInterface=CompExpressionInterface(ur.renderer),ur.renderer.globalData.projectInterface.registerComposition(ur.renderer),ur.renderer.globalData.pushExpression=hr,ur.renderer.globalData.popExpression=vr,ur.renderer.globalData.registerExpressionProperty=pr}return ct}(),MaskManagerInterface=function(){function ct(ur,dr){this._mask=ur,this._data=dr}Object.defineProperty(ct.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(ct.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var Dn=function(dr){var fr=createSizedArray(dr.viewData.length),hr,vr=dr.viewData.length;for(hr=0;hr<vr;hr+=1)fr[hr]=new ct(dr.viewData[hr],dr.masksProperties[hr]);var pr=function(gr){for(hr=0;hr<vr;){if(dr.masksProperties[hr].nm===gr)return fr[hr];hr+=1}return null};return pr};return Dn}(),ExpressionPropertyInterface=function(){var ct={pv:0,v:0,mult:1},Dn={pv:[0,0,0],v:[0,0,0],mult:1};function ur(vr,pr,mr){Object.defineProperty(vr,"velocity",{get:function(){return pr.getVelocityAtTime(pr.comp.currentFrame)}}),vr.numKeys=pr.keyframes?pr.keyframes.length:0,vr.key=function(gr){if(!vr.numKeys)return 0;var yr="";"s"in pr.keyframes[gr-1]?yr=pr.keyframes[gr-1].s:"e"in pr.keyframes[gr-2]?yr=pr.keyframes[gr-2].e:yr=pr.keyframes[gr-2].s;var Cr=mr==="unidimensional"?new Number(yr):Object.assign({},yr);return Cr.time=pr.keyframes[gr-1].t/pr.elem.comp.globalData.frameRate,Cr.value=mr==="unidimensional"?yr[0]:yr,Cr},vr.valueAtTime=pr.getValueAtTime,vr.speedAtTime=pr.getSpeedAtTime,vr.velocityAtTime=pr.getVelocityAtTime,vr.propertyGroup=pr.propertyGroup}function dr(vr){(!vr||!("pv"in vr))&&(vr=ct);var pr=1/vr.mult,mr=vr.pv*pr,gr=new Number(mr);return gr.value=mr,ur(gr,vr,"unidimensional"),function(){return vr.k&&vr.getValue(),mr=vr.v*pr,gr.value!==mr&&(gr=new Number(mr),gr.value=mr,ur(gr,vr,"unidimensional")),gr}}function fr(vr){(!vr||!("pv"in vr))&&(vr=Dn);var pr=1/vr.mult,mr=vr.data&&vr.data.l||vr.pv.length,gr=createTypedArray("float32",mr),yr=createTypedArray("float32",mr);return gr.value=yr,ur(gr,vr,"multidimensional"),function(){vr.k&&vr.getValue();for(var Cr=0;Cr<mr;Cr+=1)yr[Cr]=vr.v[Cr]*pr,gr[Cr]=yr[Cr];return gr}}function hr(){return ct}return function(vr){return vr?vr.propType==="unidimensional"?dr(vr):fr(vr):hr}}(),TransformExpressionInterface=function(){return function(ct){function Dn(vr){switch(vr){case"scale":case"Scale":case"ADBE Scale":case 6:return Dn.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return Dn.rotation;case"ADBE Rotate X":return Dn.xRotation;case"ADBE Rotate Y":return Dn.yRotation;case"position":case"Position":case"ADBE Position":case 2:return Dn.position;case"ADBE Position_0":return Dn.xPosition;case"ADBE Position_1":return Dn.yPosition;case"ADBE Position_2":return Dn.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return Dn.anchorPoint;case"opacity":case"Opacity":case 11:return Dn.opacity;default:return null}}Object.defineProperty(Dn,"rotation",{get:ExpressionPropertyInterface(ct.r||ct.rz)}),Object.defineProperty(Dn,"zRotation",{get:ExpressionPropertyInterface(ct.rz||ct.r)}),Object.defineProperty(Dn,"xRotation",{get:ExpressionPropertyInterface(ct.rx)}),Object.defineProperty(Dn,"yRotation",{get:ExpressionPropertyInterface(ct.ry)}),Object.defineProperty(Dn,"scale",{get:ExpressionPropertyInterface(ct.s)});var ur,dr,fr,hr;return ct.p?hr=ExpressionPropertyInterface(ct.p):(ur=ExpressionPropertyInterface(ct.px),dr=ExpressionPropertyInterface(ct.py),ct.pz&&(fr=ExpressionPropertyInterface(ct.pz))),Object.defineProperty(Dn,"position",{get:function(){return ct.p?hr():[ur(),dr(),fr?fr():0]}}),Object.defineProperty(Dn,"xPosition",{get:ExpressionPropertyInterface(ct.px)}),Object.defineProperty(Dn,"yPosition",{get:ExpressionPropertyInterface(ct.py)}),Object.defineProperty(Dn,"zPosition",{get:ExpressionPropertyInterface(ct.pz)}),Object.defineProperty(Dn,"anchorPoint",{get:ExpressionPropertyInterface(ct.a)}),Object.defineProperty(Dn,"opacity",{get:ExpressionPropertyInterface(ct.o)}),Object.defineProperty(Dn,"skew",{get:ExpressionPropertyInterface(ct.sk)}),Object.defineProperty(Dn,"skewAxis",{get:ExpressionPropertyInterface(ct.sa)}),Object.defineProperty(Dn,"orientation",{get:ExpressionPropertyInterface(ct.or)}),Dn}}(),LayerExpressionInterface=function(){function ct(gr){var yr=new Matrix;if(gr!==void 0){var Cr=this._elem.finalTransform.mProp.getValueAtTime(gr);Cr.clone(yr)}else{var br=this._elem.finalTransform.mProp;br.applyToMatrix(yr)}return yr}function Dn(gr,yr){var Cr=this.getMatrix(yr);return Cr.props[12]=0,Cr.props[13]=0,Cr.props[14]=0,this.applyPoint(Cr,gr)}function ur(gr,yr){var Cr=this.getMatrix(yr);return this.applyPoint(Cr,gr)}function dr(gr,yr){var Cr=this.getMatrix(yr);return Cr.props[12]=0,Cr.props[13]=0,Cr.props[14]=0,this.invertPoint(Cr,gr)}function fr(gr,yr){var Cr=this.getMatrix(yr);return this.invertPoint(Cr,gr)}function hr(gr,yr){if(this._elem.hierarchy&&this._elem.hierarchy.length){var Cr,br=this._elem.hierarchy.length;for(Cr=0;Cr<br;Cr+=1)this._elem.hierarchy[Cr].finalTransform.mProp.applyToMatrix(gr)}return gr.applyToPointArray(yr[0],yr[1],yr[2]||0)}function vr(gr,yr){if(this._elem.hierarchy&&this._elem.hierarchy.length){var Cr,br=this._elem.hierarchy.length;for(Cr=0;Cr<br;Cr+=1)this._elem.hierarchy[Cr].finalTransform.mProp.applyToMatrix(gr)}return gr.inversePoint(yr)}function pr(gr){var yr=new Matrix;if(yr.reset(),this._elem.finalTransform.mProp.applyToMatrix(yr),this._elem.hierarchy&&this._elem.hierarchy.length){var Cr,br=this._elem.hierarchy.length;for(Cr=0;Cr<br;Cr+=1)this._elem.hierarchy[Cr].finalTransform.mProp.applyToMatrix(yr);return yr.inversePoint(gr)}return yr.inversePoint(gr)}function mr(){return[1,1,1,1]}return function(gr){var yr;function Cr(_r){Ar.mask=new MaskManagerInterface(_r,gr)}function br(_r){Ar.effect=_r}function Ar(_r){switch(_r){case"ADBE Root Vectors Group":case"Contents":case 2:return Ar.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return yr;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return Ar.effect;case"ADBE Text Properties":return Ar.textInterface;default:return null}}Ar.getMatrix=ct,Ar.invertPoint=vr,Ar.applyPoint=hr,Ar.toWorld=ur,Ar.toWorldVec=Dn,Ar.fromWorld=fr,Ar.fromWorldVec=dr,Ar.toComp=ur,Ar.fromComp=pr,Ar.sampleImage=mr,Ar.sourceRectAtTime=gr.sourceRectAtTime.bind(gr),Ar._elem=gr,yr=TransformExpressionInterface(gr.finalTransform.mProp);var wr=getDescriptor(yr,"anchorPoint");return Object.defineProperties(Ar,{hasParent:{get:function(){return gr.hierarchy.length}},parent:{get:function(){return gr.hierarchy[0].layerInterface}},rotation:getDescriptor(yr,"rotation"),scale:getDescriptor(yr,"scale"),position:getDescriptor(yr,"position"),opacity:getDescriptor(yr,"opacity"),anchorPoint:wr,anchor_point:wr,transform:{get:function(){return yr}},active:{get:function(){return gr.isInRange}}}),Ar.startTime=gr.data.st,Ar.index=gr.data.ind,Ar.source=gr.data.refId,Ar.height=gr.data.ty===0?gr.data.h:100,Ar.width=gr.data.ty===0?gr.data.w:100,Ar.inPoint=gr.data.ip/gr.comp.globalData.frameRate,Ar.outPoint=gr.data.op/gr.comp.globalData.frameRate,Ar._name=gr.data.nm,Ar.registerMaskInterface=Cr,Ar.registerEffectsInterface=br,Ar}}(),propertyGroupFactory=function(){return function(ct,Dn){return function(ur){return ur=ur===void 0?1:ur,ur<=0?ct:Dn(ur-1)}}}(),PropertyInterface=function(){return function(ct,Dn){var ur={_name:ct};function dr(fr){return fr=fr===void 0?1:fr,fr<=0?ur:Dn(fr-1)}return dr}}(),EffectsExpressionInterface=function(){var ct={createEffectsInterface:Dn};function Dn(fr,hr){if(fr.effectsManager){var vr=[],pr=fr.data.ef,mr,gr=fr.effectsManager.effectElements.length;for(mr=0;mr<gr;mr+=1)vr.push(ur(pr[mr],fr.effectsManager.effectElements[mr],hr,fr));var yr=fr.data.ef||[],Cr=function(Ar){for(mr=0,gr=yr.length;mr<gr;){if(Ar===yr[mr].nm||Ar===yr[mr].mn||Ar===yr[mr].ix)return vr[mr];mr+=1}return null};return Object.defineProperty(Cr,"numProperties",{get:function(){return yr.length}}),Cr}return null}function ur(fr,hr,vr,pr){function mr(Ar){for(var wr=fr.ef,_r=0,Tr=wr.length;_r<Tr;){if(Ar===wr[_r].nm||Ar===wr[_r].mn||Ar===wr[_r].ix)return wr[_r].ty===5?yr[_r]:yr[_r]();_r+=1}throw new Error}var gr=propertyGroupFactory(mr,vr),yr=[],Cr,br=fr.ef.length;for(Cr=0;Cr<br;Cr+=1)fr.ef[Cr].ty===5?yr.push(ur(fr.ef[Cr],hr.effectElements[Cr],hr.effectElements[Cr].propertyGroup,pr)):yr.push(dr(hr.effectElements[Cr],fr.ef[Cr].ty,pr,gr));return fr.mn==="ADBE Color Control"&&Object.defineProperty(mr,"color",{get:function(){return yr[0]()}}),Object.defineProperties(mr,{numProperties:{get:function(){return fr.np}},_name:{value:fr.nm},propertyGroup:{value:gr}}),mr.enabled=fr.en!==0,mr.active=mr.enabled,mr}function dr(fr,hr,vr,pr){var mr=ExpressionPropertyInterface(fr.p);function gr(){return hr===10?vr.comp.compInterface(fr.p.v):mr()}return fr.p.setGroupProperty&&fr.p.setGroupProperty(PropertyInterface("",pr)),gr}return ct}(),ShapePathInterface=function(){return function(Dn,ur,dr){var fr=ur.sh;function hr(pr){return pr==="Shape"||pr==="shape"||pr==="Path"||pr==="path"||pr==="ADBE Vector Shape"||pr===2?hr.path:null}var vr=propertyGroupFactory(hr,dr);return fr.setGroupProperty(PropertyInterface("Path",vr)),Object.defineProperties(hr,{path:{get:function(){return fr.k&&fr.getValue(),fr}},shape:{get:function(){return fr.k&&fr.getValue(),fr}},_name:{value:Dn.nm},ix:{value:Dn.ix},propertyIndex:{value:Dn.ix},mn:{value:Dn.mn},propertyGroup:{value:dr}}),hr}}(),ShapeExpressionInterface=function(){function ct(wr,_r,Tr){var Er=[],xr,Sr=wr?wr.length:0;for(xr=0;xr<Sr;xr+=1)wr[xr].ty==="gr"?Er.push(ur(wr[xr],_r[xr],Tr)):wr[xr].ty==="fl"?Er.push(dr(wr[xr],_r[xr],Tr)):wr[xr].ty==="st"?Er.push(vr(wr[xr],_r[xr],Tr)):wr[xr].ty==="tm"?Er.push(pr(wr[xr],_r[xr],Tr)):wr[xr].ty==="tr"||(wr[xr].ty==="el"?Er.push(gr(wr[xr],_r[xr],Tr)):wr[xr].ty==="sr"?Er.push(yr(wr[xr],_r[xr],Tr)):wr[xr].ty==="sh"?Er.push(ShapePathInterface(wr[xr],_r[xr],Tr)):wr[xr].ty==="rc"?Er.push(Cr(wr[xr],_r[xr],Tr)):wr[xr].ty==="rd"?Er.push(br(wr[xr],_r[xr],Tr)):wr[xr].ty==="rp"?Er.push(Ar(wr[xr],_r[xr],Tr)):wr[xr].ty==="gf"?Er.push(fr(wr[xr],_r[xr],Tr)):Er.push(hr(wr[xr],_r[xr])));return Er}function Dn(wr,_r,Tr){var Er,xr=function(Pr){for(var Ir=0,Br=Er.length;Ir<Br;){if(Er[Ir]._name===Pr||Er[Ir].mn===Pr||Er[Ir].propertyIndex===Pr||Er[Ir].ix===Pr||Er[Ir].ind===Pr)return Er[Ir];Ir+=1}return typeof Pr=="number"?Er[Pr-1]:null};xr.propertyGroup=propertyGroupFactory(xr,Tr),Er=ct(wr.it,_r.it,xr.propertyGroup),xr.numProperties=Er.length;var Sr=mr(wr.it[wr.it.length-1],_r.it[_r.it.length-1],xr.propertyGroup);return xr.transform=Sr,xr.propertyIndex=wr.cix,xr._name=wr.nm,xr}function ur(wr,_r,Tr){var Er=function(Pr){switch(Pr){case"ADBE Vectors Group":case"Contents":case 2:return Er.content;default:return Er.transform}};Er.propertyGroup=propertyGroupFactory(Er,Tr);var xr=Dn(wr,_r,Er.propertyGroup),Sr=mr(wr.it[wr.it.length-1],_r.it[_r.it.length-1],Er.propertyGroup);return Er.content=xr,Er.transform=Sr,Object.defineProperty(Er,"_name",{get:function(){return wr.nm}}),Er.numProperties=wr.np,Er.propertyIndex=wr.ix,Er.nm=wr.nm,Er.mn=wr.mn,Er}function dr(wr,_r,Tr){function Er(xr){return xr==="Color"||xr==="color"?Er.color:xr==="Opacity"||xr==="opacity"?Er.opacity:null}return Object.defineProperties(Er,{color:{get:ExpressionPropertyInterface(_r.c)},opacity:{get:ExpressionPropertyInterface(_r.o)},_name:{value:wr.nm},mn:{value:wr.mn}}),_r.c.setGroupProperty(PropertyInterface("Color",Tr)),_r.o.setGroupProperty(PropertyInterface("Opacity",Tr)),Er}function fr(wr,_r,Tr){function Er(xr){return xr==="Start Point"||xr==="start point"?Er.startPoint:xr==="End Point"||xr==="end point"?Er.endPoint:xr==="Opacity"||xr==="opacity"?Er.opacity:null}return Object.defineProperties(Er,{startPoint:{get:ExpressionPropertyInterface(_r.s)},endPoint:{get:ExpressionPropertyInterface(_r.e)},opacity:{get:ExpressionPropertyInterface(_r.o)},type:{get:function(){return"a"}},_name:{value:wr.nm},mn:{value:wr.mn}}),_r.s.setGroupProperty(PropertyInterface("Start Point",Tr)),_r.e.setGroupProperty(PropertyInterface("End Point",Tr)),_r.o.setGroupProperty(PropertyInterface("Opacity",Tr)),Er}function hr(){function wr(){return null}return wr}function vr(wr,_r,Tr){var Er=propertyGroupFactory(Br,Tr),xr=propertyGroupFactory(Ir,Er);function Sr(Or){Object.defineProperty(Ir,wr.d[Or].nm,{get:ExpressionPropertyInterface(_r.d.dataProps[Or].p)})}var kr,Pr=wr.d?wr.d.length:0,Ir={};for(kr=0;kr<Pr;kr+=1)Sr(kr),_r.d.dataProps[kr].p.setGroupProperty(xr);function Br(Or){return Or==="Color"||Or==="color"?Br.color:Or==="Opacity"||Or==="opacity"?Br.opacity:Or==="Stroke Width"||Or==="stroke width"?Br.strokeWidth:null}return Object.defineProperties(Br,{color:{get:ExpressionPropertyInterface(_r.c)},opacity:{get:ExpressionPropertyInterface(_r.o)},strokeWidth:{get:ExpressionPropertyInterface(_r.w)},dash:{get:function(){return Ir}},_name:{value:wr.nm},mn:{value:wr.mn}}),_r.c.setGroupProperty(PropertyInterface("Color",Er)),_r.o.setGroupProperty(PropertyInterface("Opacity",Er)),_r.w.setGroupProperty(PropertyInterface("Stroke Width",Er)),Br}function pr(wr,_r,Tr){function Er(Sr){return Sr===wr.e.ix||Sr==="End"||Sr==="end"?Er.end:Sr===wr.s.ix?Er.start:Sr===wr.o.ix?Er.offset:null}var xr=propertyGroupFactory(Er,Tr);return Er.propertyIndex=wr.ix,_r.s.setGroupProperty(PropertyInterface("Start",xr)),_r.e.setGroupProperty(PropertyInterface("End",xr)),_r.o.setGroupProperty(PropertyInterface("Offset",xr)),Er.propertyIndex=wr.ix,Er.propertyGroup=Tr,Object.defineProperties(Er,{start:{get:ExpressionPropertyInterface(_r.s)},end:{get:ExpressionPropertyInterface(_r.e)},offset:{get:ExpressionPropertyInterface(_r.o)},_name:{value:wr.nm}}),Er.mn=wr.mn,Er}function mr(wr,_r,Tr){function Er(Sr){return wr.a.ix===Sr||Sr==="Anchor Point"?Er.anchorPoint:wr.o.ix===Sr||Sr==="Opacity"?Er.opacity:wr.p.ix===Sr||Sr==="Position"?Er.position:wr.r.ix===Sr||Sr==="Rotation"||Sr==="ADBE Vector Rotation"?Er.rotation:wr.s.ix===Sr||Sr==="Scale"?Er.scale:wr.sk&&wr.sk.ix===Sr||Sr==="Skew"?Er.skew:wr.sa&&wr.sa.ix===Sr||Sr==="Skew Axis"?Er.skewAxis:null}var xr=propertyGroupFactory(Er,Tr);return _r.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",xr)),_r.transform.mProps.p.setGroupProperty(PropertyInterface("Position",xr)),_r.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",xr)),_r.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",xr)),_r.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",xr)),_r.transform.mProps.sk&&(_r.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",xr)),_r.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",xr))),_r.transform.op.setGroupProperty(PropertyInterface("Opacity",xr)),Object.defineProperties(Er,{opacity:{get:ExpressionPropertyInterface(_r.transform.mProps.o)},position:{get:ExpressionPropertyInterface(_r.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(_r.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(_r.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(_r.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(_r.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(_r.transform.mProps.sa)},_name:{value:wr.nm}}),Er.ty="tr",Er.mn=wr.mn,Er.propertyGroup=Tr,Er}function gr(wr,_r,Tr){function Er(kr){return wr.p.ix===kr?Er.position:wr.s.ix===kr?Er.size:null}var xr=propertyGroupFactory(Er,Tr);Er.propertyIndex=wr.ix;var Sr=_r.sh.ty==="tm"?_r.sh.prop:_r.sh;return Sr.s.setGroupProperty(PropertyInterface("Size",xr)),Sr.p.setGroupProperty(PropertyInterface("Position",xr)),Object.defineProperties(Er,{size:{get:ExpressionPropertyInterface(Sr.s)},position:{get:ExpressionPropertyInterface(Sr.p)},_name:{value:wr.nm}}),Er.mn=wr.mn,Er}function yr(wr,_r,Tr){function Er(kr){return wr.p.ix===kr?Er.position:wr.r.ix===kr?Er.rotation:wr.pt.ix===kr?Er.points:wr.or.ix===kr||kr==="ADBE Vector Star Outer Radius"?Er.outerRadius:wr.os.ix===kr?Er.outerRoundness:wr.ir&&(wr.ir.ix===kr||kr==="ADBE Vector Star Inner Radius")?Er.innerRadius:wr.is&&wr.is.ix===kr?Er.innerRoundness:null}var xr=propertyGroupFactory(Er,Tr),Sr=_r.sh.ty==="tm"?_r.sh.prop:_r.sh;return Er.propertyIndex=wr.ix,Sr.or.setGroupProperty(PropertyInterface("Outer Radius",xr)),Sr.os.setGroupProperty(PropertyInterface("Outer Roundness",xr)),Sr.pt.setGroupProperty(PropertyInterface("Points",xr)),Sr.p.setGroupProperty(PropertyInterface("Position",xr)),Sr.r.setGroupProperty(PropertyInterface("Rotation",xr)),wr.ir&&(Sr.ir.setGroupProperty(PropertyInterface("Inner Radius",xr)),Sr.is.setGroupProperty(PropertyInterface("Inner Roundness",xr))),Object.defineProperties(Er,{position:{get:ExpressionPropertyInterface(Sr.p)},rotation:{get:ExpressionPropertyInterface(Sr.r)},points:{get:ExpressionPropertyInterface(Sr.pt)},outerRadius:{get:ExpressionPropertyInterface(Sr.or)},outerRoundness:{get:ExpressionPropertyInterface(Sr.os)},innerRadius:{get:ExpressionPropertyInterface(Sr.ir)},innerRoundness:{get:ExpressionPropertyInterface(Sr.is)},_name:{value:wr.nm}}),Er.mn=wr.mn,Er}function Cr(wr,_r,Tr){function Er(kr){return wr.p.ix===kr?Er.position:wr.r.ix===kr?Er.roundness:wr.s.ix===kr||kr==="Size"||kr==="ADBE Vector Rect Size"?Er.size:null}var xr=propertyGroupFactory(Er,Tr),Sr=_r.sh.ty==="tm"?_r.sh.prop:_r.sh;return Er.propertyIndex=wr.ix,Sr.p.setGroupProperty(PropertyInterface("Position",xr)),Sr.s.setGroupProperty(PropertyInterface("Size",xr)),Sr.r.setGroupProperty(PropertyInterface("Rotation",xr)),Object.defineProperties(Er,{position:{get:ExpressionPropertyInterface(Sr.p)},roundness:{get:ExpressionPropertyInterface(Sr.r)},size:{get:ExpressionPropertyInterface(Sr.s)},_name:{value:wr.nm}}),Er.mn=wr.mn,Er}function br(wr,_r,Tr){function Er(kr){return wr.r.ix===kr||kr==="Round Corners 1"?Er.radius:null}var xr=propertyGroupFactory(Er,Tr),Sr=_r;return Er.propertyIndex=wr.ix,Sr.rd.setGroupProperty(PropertyInterface("Radius",xr)),Object.defineProperties(Er,{radius:{get:ExpressionPropertyInterface(Sr.rd)},_name:{value:wr.nm}}),Er.mn=wr.mn,Er}function Ar(wr,_r,Tr){function Er(kr){return wr.c.ix===kr||kr==="Copies"?Er.copies:wr.o.ix===kr||kr==="Offset"?Er.offset:null}var xr=propertyGroupFactory(Er,Tr),Sr=_r;return Er.propertyIndex=wr.ix,Sr.c.setGroupProperty(PropertyInterface("Copies",xr)),Sr.o.setGroupProperty(PropertyInterface("Offset",xr)),Object.defineProperties(Er,{copies:{get:ExpressionPropertyInterface(Sr.c)},offset:{get:ExpressionPropertyInterface(Sr.o)},_name:{value:wr.nm}}),Er.mn=wr.mn,Er}return function(wr,_r,Tr){var Er;function xr(kr){if(typeof kr=="number")return kr=kr===void 0?1:kr,kr===0?Tr:Er[kr-1];for(var Pr=0,Ir=Er.length;Pr<Ir;){if(Er[Pr]._name===kr)return Er[Pr];Pr+=1}return null}function Sr(){return Tr}return xr.propertyGroup=propertyGroupFactory(xr,Sr),Er=ct(wr,_r,xr.propertyGroup),xr.numProperties=Er.length,xr._name="Contents",xr}}(),TextExpressionInterface=function(){return function(ct){var Dn;function ur(dr){switch(dr){case"ADBE Text Document":return ur.sourceText;default:return null}}return Object.defineProperty(ur,"sourceText",{get:function(){ct.textProperty.getValue();var fr=ct.textProperty.currentData.t;return(!Dn||fr!==Dn.value)&&(Dn=new String(fr),Dn.value=fr||new String(fr),Object.defineProperty(Dn,"style",{get:function(){return{fillColor:ct.textProperty.currentData.fc}}})),Dn}}),ur}}();function _typeof(ct){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(ur){return typeof ur}:_typeof=function(ur){return ur&&typeof Symbol=="function"&&ur.constructor===Symbol&&ur!==Symbol.prototype?"symbol":typeof ur},_typeof(ct)}var FootageInterface=function(){var ct=function(dr){var fr="",hr=dr.getFootageData();function vr(){return fr="",hr=dr.getFootageData(),pr}function pr(mr){if(hr[mr])return fr=mr,hr=hr[mr],_typeof(hr)==="object"?pr:hr;var gr=mr.indexOf(fr);if(gr!==-1){var yr=parseInt(mr.substr(gr+fr.length),10);return hr=hr[yr],_typeof(hr)==="object"?pr:hr}return""}return vr},Dn=function(dr){function fr(hr){return hr==="Outline"?fr.outlineInterface():null}return fr._name="Outline",fr.outlineInterface=ct(dr),fr};return function(ur){function dr(fr){return fr==="Data"?dr.dataInterface:null}return dr._name="Data",dr.dataInterface=Dn(ur),dr}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(ct){return interfaces[ct]||null}var expressionHelpers=function(){function ct(vr,pr,mr){pr.x&&(mr.k=!0,mr.x=!0,mr.initiateExpression=ExpressionManager.initiateExpression,mr.effectsSequence.push(mr.initiateExpression(vr,pr,mr).bind(mr)))}function Dn(vr){return vr*=this.elem.globalData.frameRate,vr-=this.offsetTime,vr!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<vr?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(vr,this._cachingAtTime),this._cachingAtTime.lastFrame=vr),this._cachingAtTime.value}function ur(vr){var pr=-.01,mr=this.getValueAtTime(vr),gr=this.getValueAtTime(vr+pr),yr=0;if(mr.length){var Cr;for(Cr=0;Cr<mr.length;Cr+=1)yr+=Math.pow(gr[Cr]-mr[Cr],2);yr=Math.sqrt(yr)*100}else yr=0;return yr}function dr(vr){if(this.vel!==void 0)return this.vel;var pr=-.001,mr=this.getValueAtTime(vr),gr=this.getValueAtTime(vr+pr),yr;if(mr.length){yr=createTypedArray("float32",mr.length);var Cr;for(Cr=0;Cr<mr.length;Cr+=1)yr[Cr]=(gr[Cr]-mr[Cr])/pr}else yr=(gr-mr)/pr;return yr}function fr(){return this.pv}function hr(vr){this.propertyGroup=vr}return{searchExpressions:ct,getSpeedAtTime:ur,getVelocityAtTime:dr,getValueAtTime:Dn,getStaticValueAtTime:fr,setGroupProperty:hr}}();function addPropertyDecorator(){function ct(br,Ar,wr){if(!this.k||!this.keyframes)return this.pv;br=br?br.toLowerCase():"";var _r=this.comp.renderedFrame,Tr=this.keyframes,Er=Tr[Tr.length-1].t;if(_r<=Er)return this.pv;var xr,Sr;wr?(Ar?xr=Math.abs(Er-this.elem.comp.globalData.frameRate*Ar):xr=Math.max(0,Er-this.elem.data.ip),Sr=Er-xr):((!Ar||Ar>Tr.length-1)&&(Ar=Tr.length-1),Sr=Tr[Tr.length-1-Ar].t,xr=Er-Sr);var kr,Pr,Ir;if(br==="pingpong"){var Br=Math.floor((_r-Sr)/xr);if(Br%2!==0)return this.getValueAtTime((xr-(_r-Sr)%xr+Sr)/this.comp.globalData.frameRate,0)}else if(br==="offset"){var Or=this.getValueAtTime(Sr/this.comp.globalData.frameRate,0),Nr=this.getValueAtTime(Er/this.comp.globalData.frameRate,0),jr=this.getValueAtTime(((_r-Sr)%xr+Sr)/this.comp.globalData.frameRate,0),Vr=Math.floor((_r-Sr)/xr);if(this.pv.length){for(Ir=new Array(Or.length),Pr=Ir.length,kr=0;kr<Pr;kr+=1)Ir[kr]=(Nr[kr]-Or[kr])*Vr+jr[kr];return Ir}return(Nr-Or)*Vr+jr}else if(br==="continue"){var $r=this.getValueAtTime(Er/this.comp.globalData.frameRate,0),zr=this.getValueAtTime((Er-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(Ir=new Array($r.length),Pr=Ir.length,kr=0;kr<Pr;kr+=1)Ir[kr]=$r[kr]+($r[kr]-zr[kr])*((_r-Er)/this.comp.globalData.frameRate)/5e-4;return Ir}return $r+($r-zr)*((_r-Er)/.001)}return this.getValueAtTime(((_r-Sr)%xr+Sr)/this.comp.globalData.frameRate,0)}function Dn(br,Ar,wr){if(!this.k)return this.pv;br=br?br.toLowerCase():"";var _r=this.comp.renderedFrame,Tr=this.keyframes,Er=Tr[0].t;if(_r>=Er)return this.pv;var xr,Sr;wr?(Ar?xr=Math.abs(this.elem.comp.globalData.frameRate*Ar):xr=Math.max(0,this.elem.data.op-Er),Sr=Er+xr):((!Ar||Ar>Tr.length-1)&&(Ar=Tr.length-1),Sr=Tr[Ar].t,xr=Sr-Er);var kr,Pr,Ir;if(br==="pingpong"){var Br=Math.floor((Er-_r)/xr);if(Br%2===0)return this.getValueAtTime(((Er-_r)%xr+Er)/this.comp.globalData.frameRate,0)}else if(br==="offset"){var Or=this.getValueAtTime(Er/this.comp.globalData.frameRate,0),Nr=this.getValueAtTime(Sr/this.comp.globalData.frameRate,0),jr=this.getValueAtTime((xr-(Er-_r)%xr+Er)/this.comp.globalData.frameRate,0),Vr=Math.floor((Er-_r)/xr)+1;if(this.pv.length){for(Ir=new Array(Or.length),Pr=Ir.length,kr=0;kr<Pr;kr+=1)Ir[kr]=jr[kr]-(Nr[kr]-Or[kr])*Vr;return Ir}return jr-(Nr-Or)*Vr}else if(br==="continue"){var $r=this.getValueAtTime(Er/this.comp.globalData.frameRate,0),zr=this.getValueAtTime((Er+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(Ir=new Array($r.length),Pr=Ir.length,kr=0;kr<Pr;kr+=1)Ir[kr]=$r[kr]+($r[kr]-zr[kr])*(Er-_r)/.001;return Ir}return $r+($r-zr)*(Er-_r)/.001}return this.getValueAtTime((xr-((Er-_r)%xr+Er))/this.comp.globalData.frameRate,0)}function ur(br,Ar){if(!this.k)return this.pv;if(br=(br||.4)*.5,Ar=Math.floor(Ar||5),Ar<=1)return this.pv;var wr=this.comp.renderedFrame/this.comp.globalData.frameRate,_r=wr-br,Tr=wr+br,Er=Ar>1?(Tr-_r)/(Ar-1):1,xr=0,Sr=0,kr;this.pv.length?kr=createTypedArray("float32",this.pv.length):kr=0;for(var Pr;xr<Ar;){if(Pr=this.getValueAtTime(_r+xr*Er),this.pv.length)for(Sr=0;Sr<this.pv.length;Sr+=1)kr[Sr]+=Pr[Sr];else kr+=Pr;xr+=1}if(this.pv.length)for(Sr=0;Sr<this.pv.length;Sr+=1)kr[Sr]/=Ar;else kr/=Ar;return kr}function dr(br){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var Ar=this._transformCachingAtTime.v;if(Ar.cloneFromProps(this.pre.props),this.appliedTransformations<1){var wr=this.a.getValueAtTime(br);Ar.translate(-wr[0]*this.a.mult,-wr[1]*this.a.mult,wr[2]*this.a.mult)}if(this.appliedTransformations<2){var _r=this.s.getValueAtTime(br);Ar.scale(_r[0]*this.s.mult,_r[1]*this.s.mult,_r[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var Tr=this.sk.getValueAtTime(br),Er=this.sa.getValueAtTime(br);Ar.skewFromAxis(-Tr*this.sk.mult,Er*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var xr=this.r.getValueAtTime(br);Ar.rotate(-xr*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var Sr=this.rz.getValueAtTime(br),kr=this.ry.getValueAtTime(br),Pr=this.rx.getValueAtTime(br),Ir=this.or.getValueAtTime(br);Ar.rotateZ(-Sr*this.rz.mult).rotateY(kr*this.ry.mult).rotateX(Pr*this.rx.mult).rotateZ(-Ir[2]*this.or.mult).rotateY(Ir[1]*this.or.mult).rotateX(Ir[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var Br=this.px.getValueAtTime(br),Or=this.py.getValueAtTime(br);if(this.data.p.z){var Nr=this.pz.getValueAtTime(br);Ar.translate(Br*this.px.mult,Or*this.py.mult,-Nr*this.pz.mult)}else Ar.translate(Br*this.px.mult,Or*this.py.mult,0)}else{var jr=this.p.getValueAtTime(br);Ar.translate(jr[0]*this.p.mult,jr[1]*this.p.mult,-jr[2]*this.p.mult)}return Ar}function fr(){return this.v.clone(new Matrix)}var hr=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(br,Ar,wr){var _r=hr(br,Ar,wr);return _r.dynamicProperties.length?_r.getValueAtTime=dr.bind(_r):_r.getValueAtTime=fr.bind(_r),_r.setGroupProperty=expressionHelpers.setGroupProperty,_r};var vr=PropertyFactory.getProp;PropertyFactory.getProp=function(br,Ar,wr,_r,Tr){var Er=vr(br,Ar,wr,_r,Tr);Er.kf?Er.getValueAtTime=expressionHelpers.getValueAtTime.bind(Er):Er.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(Er),Er.setGroupProperty=expressionHelpers.setGroupProperty,Er.loopOut=ct,Er.loopIn=Dn,Er.smooth=ur,Er.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(Er),Er.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(Er),Er.numKeys=Ar.a===1?Ar.k.length:0,Er.propertyIndex=Ar.ix;var xr=0;return wr!==0&&(xr=createTypedArray("float32",Ar.a===1?Ar.k[0].s.length:Ar.k.length)),Er._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:xr},expressionHelpers.searchExpressions(br,Ar,Er),Er.k&&Tr.addDynamicProperty(Er),Er};function pr(br){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),br*=this.elem.globalData.frameRate,br-=this.offsetTime,br!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<br?this._caching.lastIndex:0,this._cachingAtTime.lastTime=br,this.interpolateShape(br,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var mr=ShapePropertyFactory.getConstructorFunction(),gr=ShapePropertyFactory.getKeyframedConstructorFunction();function yr(){}yr.prototype={vertices:function(Ar,wr){this.k&&this.getValue();var _r=this.v;wr!==void 0&&(_r=this.getValueAtTime(wr,0));var Tr,Er=_r._length,xr=_r[Ar],Sr=_r.v,kr=createSizedArray(Er);for(Tr=0;Tr<Er;Tr+=1)Ar==="i"||Ar==="o"?kr[Tr]=[xr[Tr][0]-Sr[Tr][0],xr[Tr][1]-Sr[Tr][1]]:kr[Tr]=[xr[Tr][0],xr[Tr][1]];return kr},points:function(Ar){return this.vertices("v",Ar)},inTangents:function(Ar){return this.vertices("i",Ar)},outTangents:function(Ar){return this.vertices("o",Ar)},isClosed:function(){return this.v.c},pointOnPath:function(Ar,wr){var _r=this.v;wr!==void 0&&(_r=this.getValueAtTime(wr,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(_r));for(var Tr=this._segmentsLength,Er=Tr.lengths,xr=Tr.totalLength*Ar,Sr=0,kr=Er.length,Pr=0,Ir;Sr<kr;){if(Pr+Er[Sr].addedLength>xr){var Br=Sr,Or=_r.c&&Sr===kr-1?0:Sr+1,Nr=(xr-Pr)/Er[Sr].addedLength;Ir=bez.getPointInSegment(_r.v[Br],_r.v[Or],_r.o[Br],_r.i[Or],Nr,Er[Sr]);break}else Pr+=Er[Sr].addedLength;Sr+=1}return Ir||(Ir=_r.c?[_r.v[0][0],_r.v[0][1]]:[_r.v[_r._length-1][0],_r.v[_r._length-1][1]]),Ir},vectorOnPath:function(Ar,wr,_r){Ar==1?Ar=this.v.c:Ar==0&&(Ar=.999);var Tr=this.pointOnPath(Ar,wr),Er=this.pointOnPath(Ar+.001,wr),xr=Er[0]-Tr[0],Sr=Er[1]-Tr[1],kr=Math.sqrt(Math.pow(xr,2)+Math.pow(Sr,2));if(kr===0)return[0,0];var Pr=_r==="tangent"?[xr/kr,Sr/kr]:[-Sr/kr,xr/kr];return Pr},tangentOnPath:function(Ar,wr){return this.vectorOnPath(Ar,wr,"tangent")},normalOnPath:function(Ar,wr){return this.vectorOnPath(Ar,wr,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([yr],mr),extendPrototype([yr],gr),gr.prototype.getValueAtTime=pr,gr.prototype.initiateExpression=ExpressionManager.initiateExpression;var Cr=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(br,Ar,wr,_r,Tr){var Er=Cr(br,Ar,wr,_r,Tr);return Er.propertyIndex=Ar.ix,Er.lock=!1,wr===3?expressionHelpers.searchExpressions(br,Ar.pt,Er):wr===4&&expressionHelpers.searchExpressions(br,Ar.ks,Er),Er.k&&br.addDynamicProperty(Er),Er}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function ct(){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(Dn,ur){var dr=this.calculateExpression(ur);if(Dn.t!==dr){var fr={};return this.copyData(fr,Dn),fr.t=dr.toString(),fr.__complete=!1,fr}return Dn},TextProperty.prototype.searchProperty=function(){var Dn=this.searchKeyframes(),ur=this.searchExpressions();return this.kf=Dn||ur,this.kf},TextProperty.prototype.searchExpressions=ct}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function ct(Dn,ur){var dr=createNS("feMerge");dr.setAttribute("result",Dn);var fr,hr;for(hr=0;hr<ur.length;hr+=1)fr=createNS("feMergeNode"),fr.setAttribute("in",ur[hr]),dr.appendChild(fr),dr.appendChild(fr);return dr}};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(ct,Dn,ur,dr,fr){this.filterManager=Dn;var hr=createNS("feColorMatrix");hr.setAttribute("type","matrix"),hr.setAttribute("color-interpolation-filters","linearRGB"),hr.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=hr,hr.setAttribute("result",dr+"_tint_1"),ct.appendChild(hr),hr=createNS("feColorMatrix"),hr.setAttribute("type","matrix"),hr.setAttribute("color-interpolation-filters","sRGB"),hr.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),hr.setAttribute("result",dr+"_tint_2"),ct.appendChild(hr),this.matrixFilter=hr;var vr=this.createMergeNode(dr,[fr,dr+"_tint_1",dr+"_tint_2"]);ct.appendChild(vr)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(ct){if(ct||this.filterManager._mdf){var Dn=this.filterManager.effectElements[0].p.v,ur=this.filterManager.effectElements[1].p.v,dr=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+dr+" 0"),this.matrixFilter.setAttribute("values",ur[0]-Dn[0]+" 0 0 0 "+Dn[0]+" "+(ur[1]-Dn[1])+" 0 0 0 "+Dn[1]+" "+(ur[2]-Dn[2])+" 0 0 0 "+Dn[2]+" 0 0 0 1 0")}};function SVGFillFilter(ct,Dn,ur,dr){this.filterManager=Dn;var fr=createNS("feColorMatrix");fr.setAttribute("type","matrix"),fr.setAttribute("color-interpolation-filters","sRGB"),fr.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),fr.setAttribute("result",dr),ct.appendChild(fr),this.matrixFilter=fr}SVGFillFilter.prototype.renderFrame=function(ct){if(ct||this.filterManager._mdf){var Dn=this.filterManager.effectElements[2].p.v,ur=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+Dn[0]+" 0 0 0 0 "+Dn[1]+" 0 0 0 0 "+Dn[2]+" 0 0 0 "+ur+" 0")}};function SVGStrokeEffect(ct,Dn,ur){this.initialized=!1,this.filterManager=Dn,this.elem=ur,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var ct=this.elem.layerElement.children||this.elem.layerElement.childNodes,Dn,ur,dr,fr;for(this.filterManager.effectElements[1].p.v===1?(fr=this.elem.maskManager.masksProperties.length,dr=0):(dr=this.filterManager.effectElements[0].p.v-1,fr=dr+1),ur=createNS("g"),ur.setAttribute("fill","none"),ur.setAttribute("stroke-linecap","round"),ur.setAttribute("stroke-dashoffset",1),dr;dr<fr;dr+=1)Dn=createNS("path"),ur.appendChild(Dn),this.paths.push({p:Dn,m:dr});if(this.filterManager.effectElements[10].p.v===3){var hr=createNS("mask"),vr=createElementID();hr.setAttribute("id",vr),hr.setAttribute("mask-type","alpha"),hr.appendChild(ur),this.elem.globalData.defs.appendChild(hr);var pr=createNS("g");for(pr.setAttribute("mask","url("+getLocationHref()+"#"+vr+")");ct[0];)pr.appendChild(ct[0]);this.elem.layerElement.appendChild(pr),this.masker=hr,ur.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(ct=this.elem.layerElement.children||this.elem.layerElement.childNodes;ct.length;)this.elem.layerElement.removeChild(ct[0]);this.elem.layerElement.appendChild(ur),this.elem.layerElement.removeAttribute("mask"),ur.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=ur},SVGStrokeEffect.prototype.renderFrame=function(ct){this.initialized||this.initialize();var Dn,ur=this.paths.length,dr,fr;for(Dn=0;Dn<ur;Dn+=1)if(this.paths[Dn].m!==-1&&(dr=this.elem.maskManager.viewData[this.paths[Dn].m],fr=this.paths[Dn].p,(ct||this.filterManager._mdf||dr.prop._mdf)&&fr.setAttribute("d",dr.lastPath),ct||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||dr.prop._mdf)){var hr;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var vr=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,pr=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,mr=fr.getTotalLength();hr="0 0 0 "+mr*vr+" ";var gr=mr*(pr-vr),yr=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,Cr=Math.floor(gr/yr),br;for(br=0;br<Cr;br+=1)hr+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";hr+="0 "+mr*10+" 0 0"}else hr="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;fr.setAttribute("stroke-dasharray",hr)}if((ct||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(ct||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)&&(ct||this.filterManager.effectElements[3].p._mdf)){var Ar=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(Ar[0]*255)+","+bmFloor(Ar[1]*255)+","+bmFloor(Ar[2]*255)+")")}};function SVGTritoneFilter(ct,Dn,ur,dr){this.filterManager=Dn;var fr=createNS("feColorMatrix");fr.setAttribute("type","matrix"),fr.setAttribute("color-interpolation-filters","linearRGB"),fr.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"),ct.appendChild(fr);var hr=createNS("feComponentTransfer");hr.setAttribute("color-interpolation-filters","sRGB"),hr.setAttribute("result",dr),this.matrixFilter=hr;var vr=createNS("feFuncR");vr.setAttribute("type","table"),hr.appendChild(vr),this.feFuncR=vr;var pr=createNS("feFuncG");pr.setAttribute("type","table"),hr.appendChild(pr),this.feFuncG=pr;var mr=createNS("feFuncB");mr.setAttribute("type","table"),hr.appendChild(mr),this.feFuncB=mr,ct.appendChild(hr)}SVGTritoneFilter.prototype.renderFrame=function(ct){if(ct||this.filterManager._mdf){var Dn=this.filterManager.effectElements[0].p.v,ur=this.filterManager.effectElements[1].p.v,dr=this.filterManager.effectElements[2].p.v,fr=dr[0]+" "+ur[0]+" "+Dn[0],hr=dr[1]+" "+ur[1]+" "+Dn[1],vr=dr[2]+" "+ur[2]+" "+Dn[2];this.feFuncR.setAttribute("tableValues",fr),this.feFuncG.setAttribute("tableValues",hr),this.feFuncB.setAttribute("tableValues",vr)}};function SVGProLevelsFilter(ct,Dn,ur,dr){this.filterManager=Dn;var fr=this.filterManager.effectElements,hr=createNS("feComponentTransfer");(fr[10].p.k||fr[10].p.v!==0||fr[11].p.k||fr[11].p.v!==1||fr[12].p.k||fr[12].p.v!==1||fr[13].p.k||fr[13].p.v!==0||fr[14].p.k||fr[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",hr)),(fr[17].p.k||fr[17].p.v!==0||fr[18].p.k||fr[18].p.v!==1||fr[19].p.k||fr[19].p.v!==1||fr[20].p.k||fr[20].p.v!==0||fr[21].p.k||fr[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",hr)),(fr[24].p.k||fr[24].p.v!==0||fr[25].p.k||fr[25].p.v!==1||fr[26].p.k||fr[26].p.v!==1||fr[27].p.k||fr[27].p.v!==0||fr[28].p.k||fr[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",hr)),(fr[31].p.k||fr[31].p.v!==0||fr[32].p.k||fr[32].p.v!==1||fr[33].p.k||fr[33].p.v!==1||fr[34].p.k||fr[34].p.v!==0||fr[35].p.k||fr[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",hr)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(hr.setAttribute("color-interpolation-filters","sRGB"),ct.appendChild(hr)),(fr[3].p.k||fr[3].p.v!==0||fr[4].p.k||fr[4].p.v!==1||fr[5].p.k||fr[5].p.v!==1||fr[6].p.k||fr[6].p.v!==0||fr[7].p.k||fr[7].p.v!==1)&&(hr=createNS("feComponentTransfer"),hr.setAttribute("color-interpolation-filters","sRGB"),hr.setAttribute("result",dr),ct.appendChild(hr),this.feFuncRComposed=this.createFeFunc("feFuncR",hr),this.feFuncGComposed=this.createFeFunc("feFuncG",hr),this.feFuncBComposed=this.createFeFunc("feFuncB",hr))}SVGProLevelsFilter.prototype.createFeFunc=function(ct,Dn){var ur=createNS(ct);return ur.setAttribute("type","table"),Dn.appendChild(ur),ur},SVGProLevelsFilter.prototype.getTableValue=function(ct,Dn,ur,dr,fr){for(var hr=0,vr=256,pr,mr=Math.min(ct,Dn),gr=Math.max(ct,Dn),yr=Array.call(null,{length:vr}),Cr,br=0,Ar=fr-dr,wr=Dn-ct;hr<=256;)pr=hr/256,pr<=mr?Cr=wr<0?fr:dr:pr>=gr?Cr=wr<0?dr:fr:Cr=dr+Ar*Math.pow((pr-ct)/wr,1/ur),yr[br]=Cr,br+=1,hr+=256/(vr-1);return yr.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(ct){if(ct||this.filterManager._mdf){var Dn,ur=this.filterManager.effectElements;this.feFuncRComposed&&(ct||ur[3].p._mdf||ur[4].p._mdf||ur[5].p._mdf||ur[6].p._mdf||ur[7].p._mdf)&&(Dn=this.getTableValue(ur[3].p.v,ur[4].p.v,ur[5].p.v,ur[6].p.v,ur[7].p.v),this.feFuncRComposed.setAttribute("tableValues",Dn),this.feFuncGComposed.setAttribute("tableValues",Dn),this.feFuncBComposed.setAttribute("tableValues",Dn)),this.feFuncR&&(ct||ur[10].p._mdf||ur[11].p._mdf||ur[12].p._mdf||ur[13].p._mdf||ur[14].p._mdf)&&(Dn=this.getTableValue(ur[10].p.v,ur[11].p.v,ur[12].p.v,ur[13].p.v,ur[14].p.v),this.feFuncR.setAttribute("tableValues",Dn)),this.feFuncG&&(ct||ur[17].p._mdf||ur[18].p._mdf||ur[19].p._mdf||ur[20].p._mdf||ur[21].p._mdf)&&(Dn=this.getTableValue(ur[17].p.v,ur[18].p.v,ur[19].p.v,ur[20].p.v,ur[21].p.v),this.feFuncG.setAttribute("tableValues",Dn)),this.feFuncB&&(ct||ur[24].p._mdf||ur[25].p._mdf||ur[26].p._mdf||ur[27].p._mdf||ur[28].p._mdf)&&(Dn=this.getTableValue(ur[24].p.v,ur[25].p.v,ur[26].p.v,ur[27].p.v,ur[28].p.v),this.feFuncB.setAttribute("tableValues",Dn)),this.feFuncA&&(ct||ur[31].p._mdf||ur[32].p._mdf||ur[33].p._mdf||ur[34].p._mdf||ur[35].p._mdf)&&(Dn=this.getTableValue(ur[31].p.v,ur[32].p.v,ur[33].p.v,ur[34].p.v,ur[35].p.v),this.feFuncA.setAttribute("tableValues",Dn))}};function SVGDropShadowEffect(ct,Dn,ur,dr,fr){var hr=Dn.container.globalData.renderConfig.filterSize,vr=Dn.data.fs||hr;ct.setAttribute("x",vr.x||hr.x),ct.setAttribute("y",vr.y||hr.y),ct.setAttribute("width",vr.width||hr.width),ct.setAttribute("height",vr.height||hr.height),this.filterManager=Dn;var pr=createNS("feGaussianBlur");pr.setAttribute("in","SourceAlpha"),pr.setAttribute("result",dr+"_drop_shadow_1"),pr.setAttribute("stdDeviation","0"),this.feGaussianBlur=pr,ct.appendChild(pr);var mr=createNS("feOffset");mr.setAttribute("dx","25"),mr.setAttribute("dy","0"),mr.setAttribute("in",dr+"_drop_shadow_1"),mr.setAttribute("result",dr+"_drop_shadow_2"),this.feOffset=mr,ct.appendChild(mr);var gr=createNS("feFlood");gr.setAttribute("flood-color","#00ff00"),gr.setAttribute("flood-opacity","1"),gr.setAttribute("result",dr+"_drop_shadow_3"),this.feFlood=gr,ct.appendChild(gr);var yr=createNS("feComposite");yr.setAttribute("in",dr+"_drop_shadow_3"),yr.setAttribute("in2",dr+"_drop_shadow_2"),yr.setAttribute("operator","in"),yr.setAttribute("result",dr+"_drop_shadow_4"),ct.appendChild(yr);var Cr=this.createMergeNode(dr,[dr+"_drop_shadow_4",fr]);ct.appendChild(Cr)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(ct){if(ct||this.filterManager._mdf){if((ct||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),ct||this.filterManager.effectElements[0].p._mdf){var Dn=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(Dn[0]*255),Math.round(Dn[1]*255),Math.round(Dn[2]*255)))}if((ct||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),ct||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var ur=this.filterManager.effectElements[3].p.v,dr=(this.filterManager.effectElements[2].p.v-90)*degToRads,fr=ur*Math.cos(dr),hr=ur*Math.sin(dr);this.feOffset.setAttribute("dx",fr),this.feOffset.setAttribute("dy",hr)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(ct,Dn,ur){this.initialized=!1,this.filterManager=Dn,this.filterElem=ct,this.elem=ur,ur.matteElement=createNS("g"),ur.matteElement.appendChild(ur.layerElement),ur.matteElement.appendChild(ur.transformedElement),ur.baseElement=ur.matteElement}SVGMatte3Effect.prototype.findSymbol=function(ct){for(var Dn=0,ur=_svgMatteSymbols.length;Dn<ur;){if(_svgMatteSymbols[Dn]===ct)return _svgMatteSymbols[Dn];Dn+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(ct,Dn){var ur=ct.layerElement.parentNode;if(ur){for(var dr=ur.children,fr=0,hr=dr.length;fr<hr&&dr[fr]!==ct.layerElement;)fr+=1;var vr;fr<=hr-2&&(vr=dr[fr+1]);var pr=createNS("use");pr.setAttribute("href","#"+Dn),vr?ur.insertBefore(pr,vr):ur.appendChild(pr)}},SVGMatte3Effect.prototype.setElementAsMask=function(ct,Dn){if(!this.findSymbol(Dn)){var ur=createElementID(),dr=createNS("mask");dr.setAttribute("id",Dn.layerId),dr.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(Dn);var fr=ct.globalData.defs;fr.appendChild(dr);var hr=createNS("symbol");hr.setAttribute("id",ur),this.replaceInParent(Dn,ur),hr.appendChild(Dn.layerElement),fr.appendChild(hr);var vr=createNS("use");vr.setAttribute("href","#"+ur),dr.appendChild(vr),Dn.data.hd=!1,Dn.show()}ct.setMatte(Dn.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var ct=this.filterManager.effectElements[0].p.v,Dn=this.elem.comp.elements,ur=0,dr=Dn.length;ur<dr;)Dn[ur]&&Dn[ur].data.ind===ct&&this.setElementAsMask(this.elem,Dn[ur]),ur+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(ct,Dn,ur,dr){ct.setAttribute("x","-100%"),ct.setAttribute("y","-100%"),ct.setAttribute("width","300%"),ct.setAttribute("height","300%"),this.filterManager=Dn;var fr=createNS("feGaussianBlur");fr.setAttribute("result",dr),ct.appendChild(fr),this.feGaussianBlur=fr}SVGGaussianBlurEffect.prototype.renderFrame=function(ct){if(ct||this.filterManager._mdf){var Dn=.3,ur=this.filterManager.effectElements[0].p.v*Dn,dr=this.filterManager.effectElements[1].p.v,fr=dr==3?0:ur,hr=dr==2?0:ur;this.feGaussianBlur.setAttribute("stdDeviation",fr+" "+hr);var vr=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",vr)}};function TransformEffect(){}TransformEffect.prototype.init=function(ct){this.effectsManager=ct,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(ct){if(this._opMdf=!1,this._mdf=!1,ct||this.effectsManager._mdf){var Dn=this.effectsManager.effectElements,ur=Dn[0].p.v,dr=Dn[1].p.v,fr=Dn[2].p.v===1,hr=Dn[3].p.v,vr=fr?hr:Dn[4].p.v,pr=Dn[5].p.v,mr=Dn[6].p.v,gr=Dn[7].p.v;this.matrix.reset(),this.matrix.translate(-ur[0],-ur[1],ur[2]),this.matrix.scale(vr*.01,hr*.01,1),this.matrix.rotate(-gr*degToRads),this.matrix.skewFromAxis(-pr*degToRads,(mr+90)*degToRads),this.matrix.translate(dr[0],dr[1],0),this._mdf=!0,this.opacity!==Dn[8].p.v&&(this.opacity=Dn[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(ct,Dn){this.init(Dn)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(ct){this.init(ct)}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(ct){const Dn=usePickComponentStyle(ct),ur=vue.computed(()=>useImagePath(ct.imgUrl)),{pageMode:dr}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),fr=vue.computed(()=>{const _r={},{actionType:Tr,linkPage:Er,href:xr}=ct,{requestParams:Sr={}}=window.config;return vue.unref(dr)!=="design"&&Tr==="close"&&ct.isDrillShow&&!Sr.drillFlag&&(_r.display="none"),(Tr==="link"&&(Er||xr)||!Tr&&(Er||xr)||Tr==="close")&&(_r.cursor="pointer"),{...vue.unref(Dn),..._r}}),{getGlobalModel:hr,setGlobalModel:vr,getRecordValueByKeyName:pr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:_r=>{},setGlobalModel:(_r,Tr)=>{},getRecordValueByKeyName:_r=>{}}),{setTemplateData:mr}=vue.inject("templateOperate",{setTemplateData:_r=>{}}),yr=useEmitEvent(ct)("click",(_r=!0)=>{const Tr=hr(ct.id);if(vr(ct.id,{...Tr,type:ct.type,RECORD:ct.data||{}}),setTimeout(()=>{vr(ct.id,{...Tr,type:ct.type,RECORD:{}})},0),[void 0,"link"].includes(ct.actionType)){if(!ct.linkPage&&!ct.href)return;handleJumpLink(ct,{pageMode:vue.unref(dr),targetTemplate:ct.targetTemplate,isHandClick:_r,getRecordValueByKeyName:pr,setTemplateData:mr})}else ct.actionType==="close"&&window.close()}),Cr=()=>{yr(!1)},br=vue.ref(),Ar=vue.ref(),wr=()=>{const{directory:_r}=ct.animationSource;ct.isAnimation&&br.value&&_r&&(Ar.value=lottie.loadAnimation({name:`${ct.keyName}-lotTie`,container:br.value,renderer:"svg",loop:!0,autoplay:!0,path:useImagePath(_r)+"data.json"}),vue.unref(Ar).setSpeed(1))};return vue.watch(()=>[ct.isAnimation,ct.animationSource],([_r])=>{_r&&vue.nextTick(()=>{wr()})},{immediate:!0,deep:!0}),useOnEvent(ct,{click:Cr}),{customStyle:fr,myImgUrl:ur,animation:br,pageMode:dr,onClick:yr}}}),__injectCSSVars__$1=()=>{vue.useCssVars(ct=>({"75d98bc3":ct.isHoverStyle?"pointer":"auto","601637f4":ct.isHoverStyle?"0.6":"1"}))},__setup__$1=__default__$1.setup;__default__$1.setup=__setup__$1?(ct,Dn)=>(__injectCSSVars__$1(),__setup__$1(ct,Dn)):__injectCSSVars__$1;const Image_vue_vue_type_style_index_0_scoped_68a964de_lang="",_hoisted_1$4=["src"];function _sfc_render$8(ct,Dn,ur,dr,fr,hr){var vr;return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["ecan-image",ct.pageMode==="design"?"component":""]),style:vue.normalizeStyle(ct.customStyle)},[ct.isAnimation&&ct.animationSource.directory?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"full",ref:"animation",onClick:Dn[0]||(Dn[0]=(...pr)=>ct.onClick&&ct.onClick(...pr))},null,512)):!ct.isAnimation&&ct.myImgUrl?(vue.openBlock(),vue.createElementBlock("img",{key:1,class:"full",src:ct.myImgUrl,style:{width:"100%",height:"100%"},onClick:Dn[1]||(Dn[1]=(...pr)=>ct.onClick&&ct.onClick(...pr))},null,8,_hoisted_1$4)):vue.createCommentVNode("",!0),(ct.isAnimation?!((vr=ct.animationSource)!=null&&vr.directory):!ct.myImgUrl)?(vue.openBlock(),vue.createElementBlock("div",{key:2,class:vue.normalizeClass(["image-placeholder full",ct.pageMode==="design"?"component":""])}," 请上传图片 ",2)):vue.createCommentVNode("",!0)],6)}const Image$1=_export_sfc$1(__default__$1,[["render",_sfc_render$8],["__scopeId","data-v-68a964de"]]),EcanImage=withInstall$1(Image$1),iframeProps={...props$1,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web",transParams:[]},iframeComponentProps=transformToComponentProps(iframeProps),_sfc_main$6=vue.defineComponent({name:"EcanIframe",props:{...iframeComponentProps},setup(ct){const Dn=usePickComponentStyle(ct),{contextRequestUrl:ur}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:""}),{getRecordValueByKeyName:dr}=vue.inject(GLOBAL_MODEL,{getRecordValueByKeyName:hr=>{}}),fr=vue.computed(()=>{var vr;let hr=jn(ct.link);if(ct.linkType==="erd"&&hr!=null){let pr=vue.unref(ur);pr[pr.length-1]==="/"?pr+="erdReport":pr+="/erdReport",hr=`${ERD_URL||pr}?_t=0&uid=${hr}`}if((vr=ct.transParams)!=null&&vr.length){hr.includes("?")?hr+="&":hr+="?";const pr=[];for(const mr of ct.transParams){const gr=dr(String(mr.fieldName));pr.push(`${mr.keyName}=${gr}`)}hr+=pr.join("&")}return hr});return{style:Dn,myLink:fr}}}),Iframe_vue_vue_type_style_index_0_scoped_c0393b8d_lang="",_hoisted_1$3=["src"];function _sfc_render$7(ct,Dn,ur,dr,fr,hr){return ct.myLink?(vue.openBlock(),vue.createElementBlock("iframe",{key:0,src:ct.myLink,style:vue.normalizeStyle(ct.style)},null,12,_hoisted_1$3)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"iframe-placeholder",style:vue.normalizeStyle(ct.style)}," 请填写网页链接 ",4))}const Iframe=_export_sfc$1(_sfc_main$6,[["render",_sfc_render$7],["__scopeId","data-v-c0393b8d"]]),EcanIframe=withInstall$1(Iframe);var cfb={exports:{}};(function(ct){var Dn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function ur(Lr){for(var Fr="",Dr=0,Gr=0,Rr=0,Qr=0,Kr=0,Hr=0,Ur=0,Jr=0;Jr<Lr.length;)Dr=Lr.charCodeAt(Jr++),Qr=Dr>>2,Gr=Lr.charCodeAt(Jr++),Kr=(Dr&3)<<4|Gr>>4,Rr=Lr.charCodeAt(Jr++),Hr=(Gr&15)<<2|Rr>>6,Ur=Rr&63,isNaN(Gr)?Hr=Ur=64:isNaN(Rr)&&(Ur=64),Fr+=Dn.charAt(Qr)+Dn.charAt(Kr)+Dn.charAt(Hr)+Dn.charAt(Ur);return Fr}function dr(Lr){var Fr="",Dr=0,Gr=0,Rr=0,Qr=0,Kr=0,Hr=0,Ur=0;Lr=Lr.replace(/[^\w\+\/\=]/g,"");for(var Jr=0;Jr<Lr.length;)Qr=Dn.indexOf(Lr.charAt(Jr++)),Kr=Dn.indexOf(Lr.charAt(Jr++)),Dr=Qr<<2|Kr>>4,Fr+=String.fromCharCode(Dr),Hr=Dn.indexOf(Lr.charAt(Jr++)),Gr=(Kr&15)<<4|Hr>>2,Hr!==64&&(Fr+=String.fromCharCode(Gr)),Ur=Dn.indexOf(Lr.charAt(Jr++)),Rr=(Hr&3)<<6|Ur,Ur!==64&&(Fr+=String.fromCharCode(Rr));return Fr}var fr=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),hr=function(){if(typeof Buffer<"u"){var Lr=!Buffer.from;if(!Lr)try{Buffer.from("foo","utf8")}catch{Lr=!0}return Lr?function(Fr,Dr){return Dr?new Buffer(Fr,Dr):new Buffer(Fr)}:Buffer.from.bind(Buffer)}return function(){}}();function vr(Lr){if(fr){if(Buffer.alloc)return Buffer.alloc(Lr);var Fr=new Buffer(Lr);return Fr.fill(0),Fr}return typeof Uint8Array<"u"?new Uint8Array(Lr):new Array(Lr)}function pr(Lr){return fr?Buffer.allocUnsafe?Buffer.allocUnsafe(Lr):new Buffer(Lr):typeof Uint8Array<"u"?new Uint8Array(Lr):new Array(Lr)}var mr=function(Fr){return fr?hr(Fr,"binary"):Fr.split("").map(function(Dr){return Dr.charCodeAt(0)&255})},gr=/\u0000/g,yr=/[\u0001-\u0006]/g,Cr=function(Lr){for(var Fr=[],Dr=0;Dr<Lr[0].length;++Dr)Fr.push.apply(Fr,Lr[0][Dr]);return Fr},br=Cr,Ar=function(Lr,Fr,Dr){for(var Gr=[],Rr=Fr;Rr<Dr;Rr+=2)Gr.push(String.fromCharCode(kr(Lr,Rr)));return Gr.join("").replace(gr,"")},wr=Ar,_r=function(Lr,Fr,Dr){for(var Gr=[],Rr=Fr;Rr<Fr+Dr;++Rr)Gr.push(("0"+Lr[Rr].toString(16)).slice(-2));return Gr.join("")},Tr=_r,Er=function(Lr){if(Array.isArray(Lr[0]))return[].concat.apply([],Lr);var Fr=0,Dr=0;for(Dr=0;Dr<Lr.length;++Dr)Fr+=Lr[Dr].length;var Gr=new Uint8Array(Fr);for(Dr=0,Fr=0;Dr<Lr.length;Fr+=Lr[Dr].length,++Dr)Gr.set(Lr[Dr],Fr);return Gr},xr=Er;fr&&(Ar=function(Lr,Fr,Dr){return Buffer.isBuffer(Lr)?Lr.toString("utf16le",Fr,Dr).replace(gr,""):wr(Lr,Fr,Dr)},_r=function(Lr,Fr,Dr){return Buffer.isBuffer(Lr)?Lr.toString("hex",Fr,Fr+Dr):Tr(Lr,Fr,Dr)},Cr=function(Lr){return Lr[0].length>0&&Buffer.isBuffer(Lr[0][0])?Buffer.concat(Lr[0]):br(Lr)},mr=function(Lr){return hr(Lr,"binary")},xr=function(Lr){return Buffer.isBuffer(Lr[0])?Buffer.concat(Lr):Er(Lr)});var Sr=function(Lr,Fr){return Lr[Fr]},kr=function(Lr,Fr){return Lr[Fr+1]*256+Lr[Fr]},Pr=function(Lr,Fr){var Dr=Lr[Fr+1]*256+Lr[Fr];return Dr<32768?Dr:(65535-Dr+1)*-1},Ir=function(Lr,Fr){return Lr[Fr+3]*(1<<24)+(Lr[Fr+2]<<16)+(Lr[Fr+1]<<8)+Lr[Fr]},Br=function(Lr,Fr){return(Lr[Fr+3]<<24)+(Lr[Fr+2]<<16)+(Lr[Fr+1]<<8)+Lr[Fr]};function Or(Lr,Fr){var Dr,Gr,Rr=0;switch(Lr){case 1:Dr=Sr(this,this.l);break;case 2:Dr=(Fr!=="i"?kr:Pr)(this,this.l);break;case 4:Dr=Br(this,this.l);break;case 16:Rr=2,Gr=_r(this,this.l,Lr)}return this.l+=Lr,Rr===0?Dr:Gr}var Nr=function(Lr,Fr,Dr){Lr[Dr]=Fr&255,Lr[Dr+1]=Fr>>>8&255,Lr[Dr+2]=Fr>>>16&255,Lr[Dr+3]=Fr>>>24&255},jr=function(Lr,Fr,Dr){Lr[Dr]=Fr&255,Lr[Dr+1]=Fr>>8&255,Lr[Dr+2]=Fr>>16&255,Lr[Dr+3]=Fr>>24&255};function Vr(Lr,Fr,Dr){var Gr=0,Rr=0;switch(Dr){case"hex":for(;Rr<Lr;++Rr)this[this.l++]=parseInt(Fr.slice(2*Rr,2*Rr+2),16)||0;return this;case"utf16le":var Qr=this.l+Lr;for(Rr=0;Rr<Math.min(Fr.length,Lr);++Rr){var Kr=Fr.charCodeAt(Rr);this[this.l++]=Kr&255,this[this.l++]=Kr>>8}for(;this.l<Qr;)this[this.l++]=0;return this}switch(Lr){case 1:Gr=1,this[this.l]=Fr&255;break;case 2:Gr=2,this[this.l]=Fr&255,Fr>>>=8,this[this.l+1]=Fr&255;break;case 4:Gr=4,Nr(this,Fr,this.l);break;case-4:Gr=4,jr(this,Fr,this.l);break}return this.l+=Gr,this}function $r(Lr,Fr){var Dr=_r(this,this.l,Lr.length>>1);if(Dr!==Lr)throw new Error(Fr+"Expected "+Lr+" saw "+Dr);this.l+=Lr.length>>1}function zr(Lr,Fr){Lr.l=Fr,Lr.read_shift=Or,Lr.chk=$r,Lr.write_shift=Vr}function Wr(Lr){var Fr=vr(Lr);return zr(Fr,0),Fr}/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */var qr=function(){var Lr={};Lr.version="1.2.1";function Fr(){for(var ri=0,yi=new Array(256),di=0;di!=256;++di)ri=di,ri=ri&1?-306674912^ri>>>1:ri>>>1,ri=ri&1?-306674912^ri>>>1:ri>>>1,ri=ri&1?-306674912^ri>>>1:ri>>>1,ri=ri&1?-306674912^ri>>>1:ri>>>1,ri=ri&1?-306674912^ri>>>1:ri>>>1,ri=ri&1?-306674912^ri>>>1:ri>>>1,ri=ri&1?-306674912^ri>>>1:ri>>>1,ri=ri&1?-306674912^ri>>>1:ri>>>1,yi[di]=ri;return typeof Int32Array<"u"?new Int32Array(yi):yi}var Dr=Fr();function Gr(ri){var yi=0,di=0,Ei=0,Oi=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(Ei=0;Ei!=256;++Ei)Oi[Ei]=ri[Ei];for(Ei=0;Ei!=256;++Ei)for(di=ri[Ei],yi=256+Ei;yi<4096;yi+=256)di=Oi[yi]=di>>>8^ri[di&255];var Li=[];for(Ei=1;Ei!=16;++Ei)Li[Ei-1]=typeof Int32Array<"u"?Oi.subarray(Ei*256,Ei*256+256):Oi.slice(Ei*256,Ei*256+256);return Li}var Rr=Gr(Dr),Qr=Rr[0],Kr=Rr[1],Hr=Rr[2],Ur=Rr[3],Jr=Rr[4],Yr=Rr[5],si=Rr[6],fi=Rr[7],_i=Rr[8],bi=Rr[9],pi=Rr[10],mi=Rr[11],xi=Rr[12],ni=Rr[13],ai=Rr[14];function Xr(ri,yi){for(var di=yi^-1,Ei=0,Oi=ri.length;Ei<Oi;)di=di>>>8^Dr[(di^ri.charCodeAt(Ei++))&255];return~di}function vi(ri,yi){for(var di=yi^-1,Ei=ri.length-15,Oi=0;Oi<Ei;)di=ai[ri[Oi++]^di&255]^ni[ri[Oi++]^di>>8&255]^xi[ri[Oi++]^di>>16&255]^mi[ri[Oi++]^di>>>24]^pi[ri[Oi++]]^bi[ri[Oi++]]^_i[ri[Oi++]]^fi[ri[Oi++]]^si[ri[Oi++]]^Yr[ri[Oi++]]^Jr[ri[Oi++]]^Ur[ri[Oi++]]^Hr[ri[Oi++]]^Kr[ri[Oi++]]^Qr[ri[Oi++]]^Dr[ri[Oi++]];for(Ei+=15;Oi<Ei;)di=di>>>8^Dr[(di^ri[Oi++])&255];return~di}function Si(ri,yi){for(var di=yi^-1,Ei=0,Oi=ri.length,Li=0,Ri=0;Ei<Oi;)Li=ri.charCodeAt(Ei++),Li<128?di=di>>>8^Dr[(di^Li)&255]:Li<2048?(di=di>>>8^Dr[(di^(192|Li>>6&31))&255],di=di>>>8^Dr[(di^(128|Li&63))&255]):Li>=55296&&Li<57344?(Li=(Li&1023)+64,Ri=ri.charCodeAt(Ei++)&1023,di=di>>>8^Dr[(di^(240|Li>>8&7))&255],di=di>>>8^Dr[(di^(128|Li>>2&63))&255],di=di>>>8^Dr[(di^(128|Ri>>6&15|(Li&3)<<4))&255],di=di>>>8^Dr[(di^(128|Ri&63))&255]):(di=di>>>8^Dr[(di^(224|Li>>12&15))&255],di=di>>>8^Dr[(di^(128|Li>>6&63))&255],di=di>>>8^Dr[(di^(128|Li&63))&255]);return~di}return Lr.table=Dr,Lr.bstr=Xr,Lr.buf=vi,Lr.str=Si,Lr}(),Mr=function(){var Fr={};Fr.version="1.2.2";function Dr(Zr,ui){for(var ti=Zr.split("/"),ii=ui.split("/"),oi=0,ci=0,Ti=Math.min(ti.length,ii.length);oi<Ti;++oi){if(ci=ti[oi].length-ii[oi].length)return ci;if(ti[oi]!=ii[oi])return ti[oi]<ii[oi]?-1:1}return ti.length-ii.length}function Gr(Zr){if(Zr.charAt(Zr.length-1)=="/")return Zr.slice(0,-1).indexOf("/")===-1?Zr:Gr(Zr.slice(0,-1));var ui=Zr.lastIndexOf("/");return ui===-1?Zr:Zr.slice(0,ui+1)}function Rr(Zr){if(Zr.charAt(Zr.length-1)=="/")return Rr(Zr.slice(0,-1));var ui=Zr.lastIndexOf("/");return ui===-1?Zr:Zr.slice(ui+1)}function Qr(Zr,ui){typeof ui=="string"&&(ui=new Date(ui));var ti=ui.getHours();ti=ti<<6|ui.getMinutes(),ti=ti<<5|ui.getSeconds()>>>1,Zr.write_shift(2,ti);var ii=ui.getFullYear()-1980;ii=ii<<4|ui.getMonth()+1,ii=ii<<5|ui.getDate(),Zr.write_shift(2,ii)}function Kr(Zr){var ui=Zr.read_shift(2)&65535,ti=Zr.read_shift(2)&65535,ii=new Date,oi=ti&31;ti>>>=5;var ci=ti&15;ti>>>=4,ii.setMilliseconds(0),ii.setFullYear(ti+1980),ii.setMonth(ci-1),ii.setDate(oi);var Ti=ui&31;ui>>>=5;var Bi=ui&63;return ui>>>=6,ii.setHours(ui),ii.setMinutes(Bi),ii.setSeconds(Ti<<1),ii}function Hr(Zr){zr(Zr,0);for(var ui={},ti=0;Zr.l<=Zr.length-4;){var ii=Zr.read_shift(2),oi=Zr.read_shift(2),ci=Zr.l+oi,Ti={};switch(ii){case 21589:ti=Zr.read_shift(1),ti&1&&(Ti.mtime=Zr.read_shift(4)),oi>5&&(ti&2&&(Ti.atime=Zr.read_shift(4)),ti&4&&(Ti.ctime=Zr.read_shift(4))),Ti.mtime&&(Ti.mt=new Date(Ti.mtime*1e3));break}Zr.l=ci,ui[ii]=Ti}return ui}var Ur;function Jr(){return Ur||(Ur=require$$0)}function Yr(Zr,ui){if(Zr[0]==80&&Zr[1]==75)return aa(Zr,ui);if((Zr[0]|32)==109&&(Zr[1]|32)==105)return Ya(Zr,ui);if(Zr.length<512)throw new Error("CFB file size "+Zr.length+" < 512");var ti=3,ii=512,oi=0,ci=0,Ti=0,Bi=0,ki=0,Ii=[],Pi=Zr.slice(0,512);zr(Pi,0);var Gi=si(Pi);switch(ti=Gi[0],ti){case 3:ii=512;break;case 4:ii=4096;break;case 0:if(Gi[1]==0)return aa(Zr,ui);default:throw new Error("Major Version: Expected 3 or 4 saw "+ti)}ii!==512&&(Pi=Zr.slice(0,ii),zr(Pi,28));var Zi=Zr.slice(0,ii);fi(Pi,ti);var ra=Pi.read_shift(4,"i");if(ti===3&&ra!==0)throw new Error("# Directory Sectors: Expected 0 saw "+ra);Pi.l+=4,Ti=Pi.read_shift(4,"i"),Pi.l+=4,Pi.chk("00100000","Mini Stream Cutoff Size: "),Bi=Pi.read_shift(4,"i"),oi=Pi.read_shift(4,"i"),ki=Pi.read_shift(4,"i"),ci=Pi.read_shift(4,"i");for(var Ki=-1,na=0;na<109&&(Ki=Pi.read_shift(4,"i"),!(Ki<0));++na)Ii[na]=Ki;var pa=_i(Zr,ii);mi(ki,ci,pa,ii,Ii);var Ea=ni(pa,Ti,Ii,ii);Ea[Ti].name="!Directory",oi>0&&Bi!==Ri&&(Ea[Bi].name="!MiniFAT"),Ea[Ii[0]].name="!FAT",Ea.fat_addrs=Ii,Ea.ssz=ii;var Qi={},ha=[],ga=[],Pa=[];ai(Ti,Ea,pa,ha,oi,Qi,ga,Bi),bi(ga,Pa,ha),ha.shift();var Da={FileIndex:ga,FullPaths:Pa};return ui&&ui.raw&&(Da.raw={header:Zi,sectors:pa}),Da}function si(Zr){if(Zr[Zr.l]==80&&Zr[Zr.l+1]==75)return[0,0];Zr.chk(hi,"Header Signature: "),Zr.l+=16;var ui=Zr.read_shift(2,"u");return[Zr.read_shift(2,"u"),ui]}function fi(Zr,ui){var ti=9;switch(Zr.l+=2,ti=Zr.read_shift(2)){case 9:if(ui!=3)throw new Error("Sector Shift: Expected 9 saw "+ti);break;case 12:if(ui!=4)throw new Error("Sector Shift: Expected 12 saw "+ti);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+ti)}Zr.chk("0600","Mini Sector Shift: "),Zr.chk("000000000000","Reserved: ")}function _i(Zr,ui){for(var ti=Math.ceil(Zr.length/ui)-1,ii=[],oi=1;oi<ti;++oi)ii[oi-1]=Zr.slice(oi*ui,(oi+1)*ui);return ii[ti-1]=Zr.slice(ti*ui),ii}function bi(Zr,ui,ti){for(var ii=0,oi=0,ci=0,Ti=0,Bi=0,ki=ti.length,Ii=[],Pi=[];ii<ki;++ii)Ii[ii]=Pi[ii]=ii,ui[ii]=ti[ii];for(;Bi<Pi.length;++Bi)ii=Pi[Bi],oi=Zr[ii].L,ci=Zr[ii].R,Ti=Zr[ii].C,Ii[ii]===ii&&(oi!==-1&&Ii[oi]!==oi&&(Ii[ii]=Ii[oi]),ci!==-1&&Ii[ci]!==ci&&(Ii[ii]=Ii[ci])),Ti!==-1&&(Ii[Ti]=ii),oi!==-1&&ii!=Ii[ii]&&(Ii[oi]=Ii[ii],Pi.lastIndexOf(oi)<Bi&&Pi.push(oi)),ci!==-1&&ii!=Ii[ii]&&(Ii[ci]=Ii[ii],Pi.lastIndexOf(ci)<Bi&&Pi.push(ci));for(ii=1;ii<ki;++ii)Ii[ii]===ii&&(ci!==-1&&Ii[ci]!==ci?Ii[ii]=Ii[ci]:oi!==-1&&Ii[oi]!==oi&&(Ii[ii]=Ii[oi]));for(ii=1;ii<ki;++ii)if(Zr[ii].type!==0){if(Bi=ii,Bi!=Ii[Bi])do Bi=Ii[Bi],ui[ii]=ui[Bi]+"/"+ui[ii];while(Bi!==0&&Ii[Bi]!==-1&&Bi!=Ii[Bi]);Ii[ii]=-1}for(ui[0]+="/",ii=1;ii<ki;++ii)Zr[ii].type!==2&&(ui[ii]+="/")}function pi(Zr,ui,ti){for(var ii=Zr.start,oi=Zr.size,ci=[],Ti=ii;ti&&oi>0&&Ti>=0;)ci.push(ui.slice(Ti*Li,Ti*Li+Li)),oi-=Li,Ti=Br(ti,Ti*4);return ci.length===0?Wr(0):xr(ci).slice(0,Zr.size)}function mi(Zr,ui,ti,ii,oi){var ci=Ri;if(Zr===Ri){if(ui!==0)throw new Error("DIFAT chain shorter than expected")}else if(Zr!==-1){var Ti=ti[Zr],Bi=(ii>>>2)-1;if(!Ti)return;for(var ki=0;ki<Bi&&(ci=Br(Ti,ki*4))!==Ri;++ki)oi.push(ci);ui>=1&&mi(Br(Ti,ii-4),ui-1,ti,ii,oi)}}function xi(Zr,ui,ti,ii,oi){var ci=[],Ti=[];oi||(oi=[]);var Bi=ii-1,ki=0,Ii=0;for(ki=ui;ki>=0;){oi[ki]=!0,ci[ci.length]=ki,Ti.push(Zr[ki]);var Pi=ti[Math.floor(ki*4/ii)];if(Ii=ki*4&Bi,ii<4+Ii)throw new Error("FAT boundary crossed: "+ki+" 4 "+ii);if(!Zr[Pi])break;ki=Br(Zr[Pi],Ii)}return{nodes:ci,data:Cr([Ti])}}function ni(Zr,ui,ti,ii){var oi=Zr.length,ci=[],Ti=[],Bi=[],ki=[],Ii=ii-1,Pi=0,Gi=0,Zi=0,ra=0;for(Pi=0;Pi<oi;++Pi)if(Bi=[],Zi=Pi+ui,Zi>=oi&&(Zi-=oi),!Ti[Zi]){ki=[];var Ki=[];for(Gi=Zi;Gi>=0;){Ki[Gi]=!0,Ti[Gi]=!0,Bi[Bi.length]=Gi,ki.push(Zr[Gi]);var na=ti[Math.floor(Gi*4/ii)];if(ra=Gi*4&Ii,ii<4+ra)throw new Error("FAT boundary crossed: "+Gi+" 4 "+ii);if(!Zr[na]||(Gi=Br(Zr[na],ra),Ki[Gi]))break}ci[Zi]={nodes:Bi,data:Cr([ki])}}return ci}function ai(Zr,ui,ti,ii,oi,ci,Ti,Bi){for(var ki=0,Ii=ii.length?2:0,Pi=ui[Zr].data,Gi=0,Zi=0,ra;Gi<Pi.length;Gi+=128){var Ki=Pi.slice(Gi,Gi+128);zr(Ki,64),Zi=Ki.read_shift(2),ra=Ar(Ki,0,Zi-Ii),ii.push(ra);var na={name:ra,type:Ki.read_shift(1),color:Ki.read_shift(1),L:Ki.read_shift(4,"i"),R:Ki.read_shift(4,"i"),C:Ki.read_shift(4,"i"),clsid:Ki.read_shift(16),state:Ki.read_shift(4,"i"),start:0,size:0},pa=Ki.read_shift(2)+Ki.read_shift(2)+Ki.read_shift(2)+Ki.read_shift(2);pa!==0&&(na.ct=Xr(Ki,Ki.l-8));var Ea=Ki.read_shift(2)+Ki.read_shift(2)+Ki.read_shift(2)+Ki.read_shift(2);Ea!==0&&(na.mt=Xr(Ki,Ki.l-8)),na.start=Ki.read_shift(4,"i"),na.size=Ki.read_shift(4,"i"),na.size<0&&na.start<0&&(na.size=na.type=0,na.start=Ri,na.name=""),na.type===5?(ki=na.start,oi>0&&ki!==Ri&&(ui[ki].name="!StreamData")):na.size>=4096?(na.storage="fat",ui[na.start]===void 0&&(ui[na.start]=xi(ti,na.start,ui.fat_addrs,ui.ssz)),ui[na.start].name=na.name,na.content=ui[na.start].data.slice(0,na.size)):(na.storage="minifat",na.size<0?na.size=0:ki!==Ri&&na.start!==Ri&&ui[ki]&&(na.content=pi(na,ui[ki].data,(ui[Bi]||{}).data))),na.content&&zr(na.content,0),ci[ra]=na,Ti.push(na)}}function Xr(Zr,ui){return new Date((Ir(Zr,ui+4)/1e7*Math.pow(2,32)+Ir(Zr,ui)/1e7-11644473600)*1e3)}function vi(Zr,ui){return Jr(),Yr(Ur.readFileSync(Zr),ui)}function Si(Zr,ui){var ti=ui&&ui.type;switch(ti||fr&&Buffer.isBuffer(Zr)&&(ti="buffer"),ti||"base64"){case"file":return vi(Zr,ui);case"base64":return Yr(mr(dr(Zr)),ui);case"binary":return Yr(mr(Zr),ui)}return Yr(Zr,ui)}function ri(Zr,ui){var ti=ui||{},ii=ti.root||"Root Entry";if(Zr.FullPaths||(Zr.FullPaths=[]),Zr.FileIndex||(Zr.FileIndex=[]),Zr.FullPaths.length!==Zr.FileIndex.length)throw new Error("inconsistent CFB structure");Zr.FullPaths.length===0&&(Zr.FullPaths[0]=ii+"/",Zr.FileIndex[0]={name:ii,type:5}),ti.CLSID&&(Zr.FileIndex[0].clsid=ti.CLSID),yi(Zr)}function yi(Zr){var ui="Sh33tJ5";if(!Mr.find(Zr,"/"+ui)){var ti=Wr(4);ti[0]=55,ti[1]=ti[3]=50,ti[2]=54,Zr.FileIndex.push({name:ui,type:2,content:ti,size:4,L:69,R:69,C:69}),Zr.FullPaths.push(Zr.FullPaths[0]+ui),di(Zr)}}function di(Zr,ui){ri(Zr);for(var ti=!1,ii=!1,oi=Zr.FullPaths.length-1;oi>=0;--oi){var ci=Zr.FileIndex[oi];switch(ci.type){case 0:ii?ti=!0:(Zr.FileIndex.pop(),Zr.FullPaths.pop());break;case 1:case 2:case 5:ii=!0,isNaN(ci.R*ci.L*ci.C)&&(ti=!0),ci.R>-1&&ci.L>-1&&ci.R==ci.L&&(ti=!0);break;default:ti=!0;break}}if(!(!ti&&!ui)){var Ti=new Date(1987,1,19),Bi=0,ki=Object.create?Object.create(null):{},Ii=[];for(oi=0;oi<Zr.FullPaths.length;++oi)ki[Zr.FullPaths[oi]]=!0,Zr.FileIndex[oi].type!==0&&Ii.push([Zr.FullPaths[oi],Zr.FileIndex[oi]]);for(oi=0;oi<Ii.length;++oi){var Pi=Gr(Ii[oi][0]);for(ii=ki[Pi];!ii;){for(;Gr(Pi)&&!ki[Gr(Pi)];)Pi=Gr(Pi);Ii.push([Pi,{name:Rr(Pi).replace("/",""),type:1,clsid:Di,ct:Ti,mt:Ti,content:null}]),ki[Pi]=!0,Pi=Gr(Ii[oi][0]),ii=ki[Pi]}}for(Ii.sort(function(ra,Ki){return Dr(ra[0],Ki[0])}),Zr.FullPaths=[],Zr.FileIndex=[],oi=0;oi<Ii.length;++oi)Zr.FullPaths[oi]=Ii[oi][0],Zr.FileIndex[oi]=Ii[oi][1];for(oi=0;oi<Ii.length;++oi){var Gi=Zr.FileIndex[oi],Zi=Zr.FullPaths[oi];if(Gi.name=Rr(Zi).replace("/",""),Gi.L=Gi.R=Gi.C=-(Gi.color=1),Gi.size=Gi.content?Gi.content.length:0,Gi.start=0,Gi.clsid=Gi.clsid||Di,oi===0)Gi.C=Ii.length>1?1:-1,Gi.size=0,Gi.type=5;else if(Zi.slice(-1)=="/"){for(Bi=oi+1;Bi<Ii.length&&Gr(Zr.FullPaths[Bi])!=Zi;++Bi);for(Gi.C=Bi>=Ii.length?-1:Bi,Bi=oi+1;Bi<Ii.length&&Gr(Zr.FullPaths[Bi])!=Gr(Zi);++Bi);Gi.R=Bi>=Ii.length?-1:Bi,Gi.type=1}else Gr(Zr.FullPaths[oi+1]||"")==Gr(Zi)&&(Gi.R=oi+1),Gi.type=2}}}function Ei(Zr,ui){var ti=ui||{};if(ti.fileType=="mad")return es(Zr,ti);switch(di(Zr),ti.fileType){case"zip":return ba(Zr,ti)}var ii=function(ra){for(var Ki=0,na=0,pa=0;pa<ra.FileIndex.length;++pa){var Ea=ra.FileIndex[pa];if(Ea.content){var Qi=Ea.content.length;Qi>0&&(Qi<4096?Ki+=Qi+63>>6:na+=Qi+511>>9)}}for(var ha=ra.FullPaths.length+3>>2,ga=Ki+7>>3,Pa=Ki+127>>7,Da=ga+na+ha+Pa,Ta=Da+127>>7,ja=Ta<=109?0:Math.ceil((Ta-109)/127);Da+Ta+ja+127>>7>Ta;)ja=++Ta<=109?0:Math.ceil((Ta-109)/127);var $a=[1,ja,Ta,Pa,ha,na,Ki,0];return ra.FileIndex[0].size=Ki<<6,$a[7]=(ra.FileIndex[0].start=$a[0]+$a[1]+$a[2]+$a[3]+$a[4]+$a[5])+($a[6]+7>>3),$a}(Zr),oi=Wr(ii[7]<<9),ci=0,Ti=0;{for(ci=0;ci<8;++ci)oi.write_shift(1,Ci[ci]);for(ci=0;ci<8;++ci)oi.write_shift(2,0);for(oi.write_shift(2,62),oi.write_shift(2,3),oi.write_shift(2,65534),oi.write_shift(2,9),oi.write_shift(2,6),ci=0;ci<3;++ci)oi.write_shift(2,0);for(oi.write_shift(4,0),oi.write_shift(4,ii[2]),oi.write_shift(4,ii[0]+ii[1]+ii[2]+ii[3]-1),oi.write_shift(4,0),oi.write_shift(4,4096),oi.write_shift(4,ii[3]?ii[0]+ii[1]+ii[2]-1:Ri),oi.write_shift(4,ii[3]),oi.write_shift(-4,ii[1]?ii[0]-1:Ri),oi.write_shift(4,ii[1]),ci=0;ci<109;++ci)oi.write_shift(-4,ci<ii[2]?ii[1]+ci:-1)}if(ii[1])for(Ti=0;Ti<ii[1];++Ti){for(;ci<236+Ti*127;++ci)oi.write_shift(-4,ci<ii[2]?ii[1]+ci:-1);oi.write_shift(-4,Ti===ii[1]-1?Ri:Ti+1)}var Bi=function(ra){for(Ti+=ra;ci<Ti-1;++ci)oi.write_shift(-4,ci+1);ra&&(++ci,oi.write_shift(-4,Ri))};for(Ti=ci=0,Ti+=ii[1];ci<Ti;++ci)oi.write_shift(-4,$i.DIFSECT);for(Ti+=ii[2];ci<Ti;++ci)oi.write_shift(-4,$i.FATSECT);Bi(ii[3]),Bi(ii[4]);for(var ki=0,Ii=0,Pi=Zr.FileIndex[0];ki<Zr.FileIndex.length;++ki)Pi=Zr.FileIndex[ki],Pi.content&&(Ii=Pi.content.length,!(Ii<4096)&&(Pi.start=Ti,Bi(Ii+511>>9)));for(Bi(ii[6]+7>>3);oi.l&511;)oi.write_shift(-4,$i.ENDOFCHAIN);for(Ti=ci=0,ki=0;ki<Zr.FileIndex.length;++ki)Pi=Zr.FileIndex[ki],Pi.content&&(Ii=Pi.content.length,!(!Ii||Ii>=4096)&&(Pi.start=Ti,Bi(Ii+63>>6)));for(;oi.l&511;)oi.write_shift(-4,$i.ENDOFCHAIN);for(ci=0;ci<ii[4]<<2;++ci){var Gi=Zr.FullPaths[ci];if(!Gi||Gi.length===0){for(ki=0;ki<17;++ki)oi.write_shift(4,0);for(ki=0;ki<3;++ki)oi.write_shift(4,-1);for(ki=0;ki<12;++ki)oi.write_shift(4,0);continue}Pi=Zr.FileIndex[ci],ci===0&&(Pi.start=Pi.size?Pi.start-1:Ri);var Zi=ci===0&&ti.root||Pi.name;if(Zi.length>32&&(console.error("Name "+Zi+" will be truncated to "+Zi.slice(0,32)),Zi=Zi.slice(0,32)),Ii=2*(Zi.length+1),oi.write_shift(64,Zi,"utf16le"),oi.write_shift(2,Ii),oi.write_shift(1,Pi.type),oi.write_shift(1,Pi.color),oi.write_shift(-4,Pi.L),oi.write_shift(-4,Pi.R),oi.write_shift(-4,Pi.C),Pi.clsid)oi.write_shift(16,Pi.clsid,"hex");else for(ki=0;ki<4;++ki)oi.write_shift(4,0);oi.write_shift(4,Pi.state||0),oi.write_shift(4,0),oi.write_shift(4,0),oi.write_shift(4,0),oi.write_shift(4,0),oi.write_shift(4,Pi.start),oi.write_shift(4,Pi.size),oi.write_shift(4,0)}for(ci=1;ci<Zr.FileIndex.length;++ci)if(Pi=Zr.FileIndex[ci],Pi.size>=4096)if(oi.l=Pi.start+1<<9,fr&&Buffer.isBuffer(Pi.content))Pi.content.copy(oi,oi.l,0,Pi.size),oi.l+=Pi.size+511&-512;else{for(ki=0;ki<Pi.size;++ki)oi.write_shift(1,Pi.content[ki]);for(;ki&511;++ki)oi.write_shift(1,0)}for(ci=1;ci<Zr.FileIndex.length;++ci)if(Pi=Zr.FileIndex[ci],Pi.size>0&&Pi.size<4096)if(fr&&Buffer.isBuffer(Pi.content))Pi.content.copy(oi,oi.l,0,Pi.size),oi.l+=Pi.size+63&-64;else{for(ki=0;ki<Pi.size;++ki)oi.write_shift(1,Pi.content[ki]);for(;ki&63;++ki)oi.write_shift(1,0)}if(fr)oi.l=oi.length;else for(;oi.l<oi.length;)oi.write_shift(1,0);return oi}function Oi(Zr,ui){var ti=Zr.FullPaths.map(function(ki){return ki.toUpperCase()}),ii=ti.map(function(ki){var Ii=ki.split("/");return Ii[Ii.length-(ki.slice(-1)=="/"?2:1)]}),oi=!1;ui.charCodeAt(0)===47?(oi=!0,ui=ti[0].slice(0,-1)+ui):oi=ui.indexOf("/")!==-1;var ci=ui.toUpperCase(),Ti=oi===!0?ti.indexOf(ci):ii.indexOf(ci);if(Ti!==-1)return Zr.FileIndex[Ti];var Bi=!ci.match(yr);for(ci=ci.replace(gr,""),Bi&&(ci=ci.replace(yr,"!")),Ti=0;Ti<ti.length;++Ti)if((Bi?ti[Ti].replace(yr,"!"):ti[Ti]).replace(gr,"")==ci||(Bi?ii[Ti].replace(yr,"!"):ii[Ti]).replace(gr,"")==ci)return Zr.FileIndex[Ti];return null}var Li=64,Ri=-2,hi="d0cf11e0a1b11ae1",Ci=[208,207,17,224,161,177,26,225],Di="00000000000000000000000000000000",$i={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:Ri,FREESECT:-1,HEADER_SIGNATURE:hi,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:Di,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function Fi(Zr,ui,ti){Jr();var ii=Ei(Zr,ti);Ur.writeFileSync(ui,ii)}function qi(Zr){for(var ui=new Array(Zr.length),ti=0;ti<Zr.length;++ti)ui[ti]=String.fromCharCode(Zr[ti]);return ui.join("")}function Ji(Zr,ui){var ti=Ei(Zr,ui);switch(ui&&ui.type||"buffer"){case"file":return Jr(),Ur.writeFileSync(ui.filename,ti),ti;case"binary":return typeof ti=="string"?ti:qi(ti);case"base64":return ur(typeof ti=="string"?ti:qi(ti));case"buffer":if(fr)return Buffer.isBuffer(ti)?ti:hr(ti);case"array":return typeof ti=="string"?mr(ti):ti}return ti}var ua;function da(Zr){try{var ui=Zr.InflateRaw,ti=new ui;if(ti._processChunk(new Uint8Array([3,0]),ti._finishFlushFlag),ti.bytesRead)ua=Zr;else throw new Error("zlib does not expose bytesRead")}catch(ii){console.error("cannot use native zlib: "+(ii.message||ii))}}function va(Zr,ui){if(!ua)return ia(Zr,ui);var ti=ua.InflateRaw,ii=new ti,oi=ii._processChunk(Zr.slice(Zr.l),ii._finishFlushFlag);return Zr.l+=ii.bytesRead,oi}function ya(Zr){return ua?ua.deflateRawSync(Zr):gi(Zr)}var xa=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Sa=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],La=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function qa(Zr){var ui=(Zr<<1|Zr<<11)&139536|(Zr<<5|Zr<<15)&558144;return(ui>>16|ui>>8|ui)&255}for(var ka=typeof Uint8Array<"u",Ba=ka?new Uint8Array(256):[],Ha=0;Ha<256;++Ha)Ba[Ha]=qa(Ha);function Ia(Zr,ui){var ti=Ba[Zr&255];return ui<=8?ti>>>8-ui:(ti=ti<<8|Ba[Zr>>8&255],ui<=16?ti>>>16-ui:(ti=ti<<8|Ba[Zr>>16&255],ti>>>24-ui))}function Ga(Zr,ui){var ti=ui&7,ii=ui>>>3;return(Zr[ii]|(ti<=6?0:Zr[ii+1]<<8))>>>ti&3}function Va(Zr,ui){var ti=ui&7,ii=ui>>>3;return(Zr[ii]|(ti<=5?0:Zr[ii+1]<<8))>>>ti&7}function Ua(Zr,ui){var ti=ui&7,ii=ui>>>3;return(Zr[ii]|(ti<=4?0:Zr[ii+1]<<8))>>>ti&15}function Vi(Zr,ui){var ti=ui&7,ii=ui>>>3;return(Zr[ii]|(ti<=3?0:Zr[ii+1]<<8))>>>ti&31}function Wi(Zr,ui){var ti=ui&7,ii=ui>>>3;return(Zr[ii]|(ti<=1?0:Zr[ii+1]<<8))>>>ti&127}function Hi(Zr,ui,ti){var ii=ui&7,oi=ui>>>3,ci=(1<<ti)-1,Ti=Zr[oi]>>>ii;return ti<8-ii||(Ti|=Zr[oi+1]<<8-ii,ti<16-ii)||(Ti|=Zr[oi+2]<<16-ii,ti<24-ii)||(Ti|=Zr[oi+3]<<24-ii),Ti&ci}function Xi(Zr,ui,ti){var ii=ui&7,oi=ui>>>3;return ii<=5?Zr[oi]|=(ti&7)<<ii:(Zr[oi]|=ti<<ii&255,Zr[oi+1]=(ti&7)>>8-ii),ui+3}function ea(Zr,ui,ti){var ii=ui&7,oi=ui>>>3;return ti=(ti&1)<<ii,Zr[oi]|=ti,ui+1}function ta(Zr,ui,ti){var ii=ui&7,oi=ui>>>3;return ti<<=ii,Zr[oi]|=ti&255,ti>>>=8,Zr[oi+1]=ti,ui+8}function la(Zr,ui,ti){var ii=ui&7,oi=ui>>>3;return ti<<=ii,Zr[oi]|=ti&255,ti>>>=8,Zr[oi+1]=ti&255,Zr[oi+2]=ti>>>8,ui+16}function ca(Zr,ui){var ti=Zr.length,ii=2*ti>ui?2*ti:ui+5,oi=0;if(ti>=ui)return Zr;if(fr){var ci=pr(ii);if(Zr.copy)Zr.copy(ci);else for(;oi<Zr.length;++oi)ci[oi]=Zr[oi];return ci}else if(ka){var Ti=new Uint8Array(ii);if(Ti.set)Ti.set(Zr);else for(;oi<ti;++oi)Ti[oi]=Zr[oi];return Ti}return Zr.length=ii,Zr}function sa(Zr){for(var ui=new Array(Zr),ti=0;ti<Zr;++ti)ui[ti]=0;return ui}function fa(Zr,ui,ti){var ii=1,oi=0,ci=0,Ti=0,Bi=0,ki=Zr.length,Ii=ka?new Uint16Array(32):sa(32);for(ci=0;ci<32;++ci)Ii[ci]=0;for(ci=ki;ci<ti;++ci)Zr[ci]=0;ki=Zr.length;var Pi=ka?new Uint16Array(ki):sa(ki);for(ci=0;ci<ki;++ci)Ii[oi=Zr[ci]]++,ii<oi&&(ii=oi),Pi[ci]=0;for(Ii[0]=0,ci=1;ci<=ii;++ci)Ii[ci+16]=Bi=Bi+Ii[ci-1]<<1;for(ci=0;ci<ki;++ci)Bi=Zr[ci],Bi!=0&&(Pi[ci]=Ii[Bi+16]++);var Gi=0;for(ci=0;ci<ki;++ci)if(Gi=Zr[ci],Gi!=0)for(Bi=Ia(Pi[ci],ii)>>ii-Gi,Ti=(1<<ii+4-Gi)-1;Ti>=0;--Ti)ui[Bi|Ti<<Gi]=Gi&15|ci<<4;return ii}var ma=ka?new Uint16Array(512):sa(512),zi=ka?new Uint16Array(32):sa(32);if(!ka){for(var ei=0;ei<512;++ei)ma[ei]=0;for(ei=0;ei<32;++ei)zi[ei]=0}(function(){for(var Zr=[],ui=0;ui<32;ui++)Zr.push(5);fa(Zr,zi,32);var ti=[];for(ui=0;ui<=143;ui++)ti.push(8);for(;ui<=255;ui++)ti.push(9);for(;ui<=279;ui++)ti.push(7);for(;ui<=287;ui++)ti.push(8);fa(ti,ma,288)})();var li=function(){for(var ui=ka?new Uint8Array(32768):[],ti=0,ii=0;ti<La.length-1;++ti)for(;ii<La[ti+1];++ii)ui[ii]=ti;for(;ii<32768;++ii)ui[ii]=29;var oi=ka?new Uint8Array(259):[];for(ti=0,ii=0;ti<Sa.length-1;++ti)for(;ii<Sa[ti+1];++ii)oi[ii]=ti;function ci(Bi,ki){for(var Ii=0;Ii<Bi.length;){var Pi=Math.min(65535,Bi.length-Ii),Gi=Ii+Pi==Bi.length;for(ki.write_shift(1,+Gi),ki.write_shift(2,Pi),ki.write_shift(2,~Pi&65535);Pi-- >0;)ki[ki.l++]=Bi[Ii++]}return ki.l}function Ti(Bi,ki){for(var Ii=0,Pi=0,Gi=ka?new Uint16Array(32768):[];Pi<Bi.length;){var Zi=Math.min(65535,Bi.length-Pi);if(Zi<10){for(Ii=Xi(ki,Ii,+(Pi+Zi==Bi.length)),Ii&7&&(Ii+=8-(Ii&7)),ki.l=Ii/8|0,ki.write_shift(2,Zi),ki.write_shift(2,~Zi&65535);Zi-- >0;)ki[ki.l++]=Bi[Pi++];Ii=ki.l*8;continue}Ii=Xi(ki,Ii,+(Pi+Zi==Bi.length)+2);for(var ra=0;Zi-- >0;){var Ki=Bi[Pi];ra=(ra<<5^Ki)&32767;var na=-1,pa=0;if((na=Gi[ra])&&(na|=Pi&-32768,na>Pi&&(na-=32768),na<Pi))for(;Bi[na+pa]==Bi[Pi+pa]&&pa<250;)++pa;if(pa>2){Ki=oi[pa],Ki<=22?Ii=ta(ki,Ii,Ba[Ki+1]>>1)-1:(ta(ki,Ii,3),Ii+=5,ta(ki,Ii,Ba[Ki-23]>>5),Ii+=3);var Ea=Ki<8?0:Ki-4>>2;Ea>0&&(la(ki,Ii,pa-Sa[Ki]),Ii+=Ea),Ki=ui[Pi-na],Ii=ta(ki,Ii,Ba[Ki]>>3),Ii-=3;var Qi=Ki<4?0:Ki-2>>1;Qi>0&&(la(ki,Ii,Pi-na-La[Ki]),Ii+=Qi);for(var ha=0;ha<pa;++ha)Gi[ra]=Pi&32767,ra=(ra<<5^Bi[Pi])&32767,++Pi;Zi-=pa-1}else Ki<=143?Ki=Ki+48:Ii=ea(ki,Ii,1),Ii=ta(ki,Ii,Ba[Ki]),Gi[ra]=Pi&32767,++Pi}Ii=ta(ki,Ii,0)-1}return ki.l=(Ii+7)/8|0,ki.l}return function(ki,Ii){return ki.length<8?ci(ki,Ii):Ti(ki,Ii)}}();function gi(Zr){var ui=Wr(50+Math.floor(Zr.length*1.1)),ti=li(Zr,ui);return ui.slice(0,ti)}var Ai=ka?new Uint16Array(32768):sa(32768),wi=ka?new Uint16Array(32768):sa(32768),Ni=ka?new Uint16Array(128):sa(128),Mi=1,ji=1;function Ui(Zr,ui){var ti=Vi(Zr,ui)+257;ui+=5;var ii=Vi(Zr,ui)+1;ui+=5;var oi=Ua(Zr,ui)+4;ui+=4;for(var ci=0,Ti=ka?new Uint8Array(19):sa(19),Bi=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],ki=1,Ii=ka?new Uint8Array(8):sa(8),Pi=ka?new Uint8Array(8):sa(8),Gi=Ti.length,Zi=0;Zi<oi;++Zi)Ti[xa[Zi]]=ci=Va(Zr,ui),ki<ci&&(ki=ci),Ii[ci]++,ui+=3;var ra=0;for(Ii[0]=0,Zi=1;Zi<=ki;++Zi)Pi[Zi]=ra=ra+Ii[Zi-1]<<1;for(Zi=0;Zi<Gi;++Zi)(ra=Ti[Zi])!=0&&(Bi[Zi]=Pi[ra]++);var Ki=0;for(Zi=0;Zi<Gi;++Zi)if(Ki=Ti[Zi],Ki!=0){ra=Ba[Bi[Zi]]>>8-Ki;for(var na=(1<<7-Ki)-1;na>=0;--na)Ni[ra|na<<Ki]=Ki&7|Zi<<3}var pa=[];for(ki=1;pa.length<ti+ii;)switch(ra=Ni[Wi(Zr,ui)],ui+=ra&7,ra>>>=3){case 16:for(ci=3+Ga(Zr,ui),ui+=2,ra=pa[pa.length-1];ci-- >0;)pa.push(ra);break;case 17:for(ci=3+Va(Zr,ui),ui+=3;ci-- >0;)pa.push(0);break;case 18:for(ci=11+Wi(Zr,ui),ui+=7;ci-- >0;)pa.push(0);break;default:pa.push(ra),ki<ra&&(ki=ra);break}var Ea=pa.slice(0,ti),Qi=pa.slice(ti);for(Zi=ti;Zi<286;++Zi)Ea[Zi]=0;for(Zi=ii;Zi<30;++Zi)Qi[Zi]=0;return Mi=fa(Ea,Ai,286),ji=fa(Qi,wi,30),ui}function oa(Zr,ui){if(Zr[0]==3&&!(Zr[1]&3))return[vr(ui),2];for(var ti=0,ii=0,oi=pr(ui||1<<18),ci=0,Ti=oi.length>>>0,Bi=0,ki=0;!(ii&1);){if(ii=Va(Zr,ti),ti+=3,ii>>>1)ii>>1==1?(Bi=9,ki=5):(ti=Ui(Zr,ti),Bi=Mi,ki=ji);else{ti&7&&(ti+=8-(ti&7));var Ii=Zr[ti>>>3]|Zr[(ti>>>3)+1]<<8;if(ti+=32,Ii>0)for(!ui&&Ti<ci+Ii&&(oi=ca(oi,ci+Ii),Ti=oi.length);Ii-- >0;)oi[ci++]=Zr[ti>>>3],ti+=8;continue}for(;;){!ui&&Ti<ci+32767&&(oi=ca(oi,ci+32767),Ti=oi.length);var Pi=Hi(Zr,ti,Bi),Gi=ii>>>1==1?ma[Pi]:Ai[Pi];if(ti+=Gi&15,Gi>>>=4,!(Gi>>>8&255))oi[ci++]=Gi;else{if(Gi==256)break;Gi-=257;var Zi=Gi<8?0:Gi-4>>2;Zi>5&&(Zi=0);var ra=ci+Sa[Gi];Zi>0&&(ra+=Hi(Zr,ti,Zi),ti+=Zi),Pi=Hi(Zr,ti,ki),Gi=ii>>>1==1?zi[Pi]:wi[Pi],ti+=Gi&15,Gi>>>=4;var Ki=Gi<4?0:Gi-2>>1,na=La[Gi];for(Ki>0&&(na+=Hi(Zr,ti,Ki),ti+=Ki),!ui&&Ti<ra&&(oi=ca(oi,ra+100),Ti=oi.length);ci<ra;)oi[ci]=oi[ci-na],++ci}}}return ui?[oi,ti+7>>>3]:[oi.slice(0,ci),ti+7>>>3]}function ia(Zr,ui){var ti=Zr.slice(Zr.l||0),ii=oa(ti,ui);return Zr.l+=ii[1],ii[0]}function Yi(Zr,ui){if(Zr)typeof console<"u"&&console.error(ui);else throw new Error(ui)}function aa(Zr,ui){var ti=Zr;zr(ti,0);var ii=[],oi=[],ci={FileIndex:ii,FullPaths:oi};ri(ci,{root:ui.root});for(var Ti=ti.length-4;(ti[Ti]!=80||ti[Ti+1]!=75||ti[Ti+2]!=5||ti[Ti+3]!=6)&&Ti>=0;)--Ti;ti.l=Ti+4,ti.l+=4;var Bi=ti.read_shift(2);ti.l+=6;var ki=ti.read_shift(4);for(ti.l=ki,Ti=0;Ti<Bi;++Ti){ti.l+=20;var Ii=ti.read_shift(4),Pi=ti.read_shift(4),Gi=ti.read_shift(2),Zi=ti.read_shift(2),ra=ti.read_shift(2);ti.l+=8;var Ki=ti.read_shift(4),na=Hr(ti.slice(ti.l+Gi,ti.l+Gi+Zi));ti.l+=Gi+Zi+ra;var pa=ti.l;ti.l=Ki+4,Ca(ti,Ii,Pi,ci,na),ti.l=pa}return ci}function Ca(Zr,ui,ti,ii,oi){Zr.l+=2;var ci=Zr.read_shift(2),Ti=Zr.read_shift(2),Bi=Kr(Zr);if(ci&8257)throw new Error("Unsupported ZIP encryption");for(var ki=Zr.read_shift(4),Ii=Zr.read_shift(4),Pi=Zr.read_shift(4),Gi=Zr.read_shift(2),Zi=Zr.read_shift(2),ra="",Ki=0;Ki<Gi;++Ki)ra+=String.fromCharCode(Zr[Zr.l++]);if(Zi){var na=Hr(Zr.slice(Zr.l,Zr.l+Zi));(na[21589]||{}).mt&&(Bi=na[21589].mt),((oi||{})[21589]||{}).mt&&(Bi=oi[21589].mt)}Zr.l+=Zi;var pa=Zr.slice(Zr.l,Zr.l+Ii);switch(Ti){case 8:pa=va(Zr,Pi);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+Ti)}var Ea=!1;ci&8&&(ki=Zr.read_shift(4),ki==134695760&&(ki=Zr.read_shift(4),Ea=!0),Ii=Zr.read_shift(4),Pi=Zr.read_shift(4)),Ii!=ui&&Yi(Ea,"Bad compressed size: "+ui+" != "+Ii),Pi!=ti&&Yi(Ea,"Bad uncompressed size: "+ti+" != "+Pi);var Qi=qr.buf(pa,0);ki>>0!=Qi>>0&&Yi(Ea,"Bad CRC32 checksum: "+ki+" != "+Qi),Ja(ii,ra,pa,{unsafe:!0,mt:Bi})}function ba(Zr,ui){var ti=ui||{},ii=[],oi=[],ci=Wr(1),Ti=ti.compression?8:0,Bi=0,ki=0,Ii=0,Pi=0,Gi=0,Zi=Zr.FullPaths[0],ra=Zi,Ki=Zr.FileIndex[0],na=[],pa=0;for(ki=1;ki<Zr.FullPaths.length;++ki)if(ra=Zr.FullPaths[ki].slice(Zi.length),Ki=Zr.FileIndex[ki],!(!Ki.size||!Ki.content||ra=="Sh33tJ5")){var Ea=Pi,Qi=Wr(ra.length);for(Ii=0;Ii<ra.length;++Ii)Qi.write_shift(1,ra.charCodeAt(Ii)&127);Qi=Qi.slice(0,Qi.l),na[Gi]=qr.buf(Ki.content,0);var ha=Ki.content;Ti==8&&(ha=ya(ha)),ci=Wr(30),ci.write_shift(4,67324752),ci.write_shift(2,20),ci.write_shift(2,Bi),ci.write_shift(2,Ti),Ki.mt?Qr(ci,Ki.mt):ci.write_shift(4,0),ci.write_shift(-4,na[Gi]),ci.write_shift(4,ha.length),ci.write_shift(4,Ki.content.length),ci.write_shift(2,Qi.length),ci.write_shift(2,0),Pi+=ci.length,ii.push(ci),Pi+=Qi.length,ii.push(Qi),Pi+=ha.length,ii.push(ha),ci=Wr(46),ci.write_shift(4,33639248),ci.write_shift(2,0),ci.write_shift(2,20),ci.write_shift(2,Bi),ci.write_shift(2,Ti),ci.write_shift(4,0),ci.write_shift(-4,na[Gi]),ci.write_shift(4,ha.length),ci.write_shift(4,Ki.content.length),ci.write_shift(2,Qi.length),ci.write_shift(2,0),ci.write_shift(2,0),ci.write_shift(2,0),ci.write_shift(2,0),ci.write_shift(4,0),ci.write_shift(4,Ea),pa+=ci.l,oi.push(ci),pa+=Qi.length,oi.push(Qi),++Gi}return ci=Wr(22),ci.write_shift(4,101010256),ci.write_shift(2,0),ci.write_shift(2,0),ci.write_shift(2,Gi),ci.write_shift(2,Gi),ci.write_shift(4,pa),ci.write_shift(4,Pi),ci.write_shift(2,0),xr([xr(ii),xr(oi),ci])}var Aa={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function wa(Zr,ui){if(Zr.ctype)return Zr.ctype;var ti=Zr.name||"",ii=ti.match(/\.([^\.]+)$/);return ii&&Aa[ii[1]]||ui&&(ii=(ti=ui).match(/[\.\\]([^\.\\])+$/),ii&&Aa[ii[1]])?Aa[ii[1]]:"application/octet-stream"}function Oa(Zr){for(var ui=ur(Zr),ti=[],ii=0;ii<ui.length;ii+=76)ti.push(ui.slice(ii,ii+76));return ti.join(`\r
|
|
200
|
+
*/var Matrix=function(){var ct=Math.cos,Dn=Math.sin,ur=Math.tan,dr=Math.round;function fr(){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 hr(Fr){if(Fr===0)return this;var Dr=ct(Fr),Gr=Dn(Fr);return this._t(Dr,-Gr,0,0,Gr,Dr,0,0,0,0,1,0,0,0,0,1)}function vr(Fr){if(Fr===0)return this;var Dr=ct(Fr),Gr=Dn(Fr);return this._t(1,0,0,0,0,Dr,-Gr,0,0,Gr,Dr,0,0,0,0,1)}function pr(Fr){if(Fr===0)return this;var Dr=ct(Fr),Gr=Dn(Fr);return this._t(Dr,0,Gr,0,0,1,0,0,-Gr,0,Dr,0,0,0,0,1)}function mr(Fr){if(Fr===0)return this;var Dr=ct(Fr),Gr=Dn(Fr);return this._t(Dr,-Gr,0,0,Gr,Dr,0,0,0,0,1,0,0,0,0,1)}function gr(Fr,Dr){return this._t(1,Dr,Fr,1,0,0)}function yr(Fr,Dr){return this.shear(ur(Fr),ur(Dr))}function Cr(Fr,Dr){var Gr=ct(Dr),Rr=Dn(Dr);return this._t(Gr,Rr,0,0,-Rr,Gr,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,ur(Fr),1,0,0,0,0,1,0,0,0,0,1)._t(Gr,-Rr,0,0,Rr,Gr,0,0,0,0,1,0,0,0,0,1)}function br(Fr,Dr,Gr){return!Gr&&Gr!==0&&(Gr=1),Fr===1&&Dr===1&&Gr===1?this:this._t(Fr,0,0,0,0,Dr,0,0,0,0,Gr,0,0,0,0,1)}function Ar(Fr,Dr,Gr,Rr,Qr,Kr,Hr,Ur,Jr,Yr,si,fi,_i,bi,pi,mi){return this.props[0]=Fr,this.props[1]=Dr,this.props[2]=Gr,this.props[3]=Rr,this.props[4]=Qr,this.props[5]=Kr,this.props[6]=Hr,this.props[7]=Ur,this.props[8]=Jr,this.props[9]=Yr,this.props[10]=si,this.props[11]=fi,this.props[12]=_i,this.props[13]=bi,this.props[14]=pi,this.props[15]=mi,this}function wr(Fr,Dr,Gr){return Gr=Gr||0,Fr!==0||Dr!==0||Gr!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,Fr,Dr,Gr,1):this}function _r(Fr,Dr,Gr,Rr,Qr,Kr,Hr,Ur,Jr,Yr,si,fi,_i,bi,pi,mi){var xi=this.props;if(Fr===1&&Dr===0&&Gr===0&&Rr===0&&Qr===0&&Kr===1&&Hr===0&&Ur===0&&Jr===0&&Yr===0&&si===1&&fi===0)return xi[12]=xi[12]*Fr+xi[15]*_i,xi[13]=xi[13]*Kr+xi[15]*bi,xi[14]=xi[14]*si+xi[15]*pi,xi[15]*=mi,this._identityCalculated=!1,this;var ni=xi[0],ai=xi[1],Xr=xi[2],vi=xi[3],Si=xi[4],ri=xi[5],yi=xi[6],di=xi[7],Ei=xi[8],Oi=xi[9],Li=xi[10],Ri=xi[11],hi=xi[12],Ci=xi[13],Di=xi[14],$i=xi[15];return xi[0]=ni*Fr+ai*Qr+Xr*Jr+vi*_i,xi[1]=ni*Dr+ai*Kr+Xr*Yr+vi*bi,xi[2]=ni*Gr+ai*Hr+Xr*si+vi*pi,xi[3]=ni*Rr+ai*Ur+Xr*fi+vi*mi,xi[4]=Si*Fr+ri*Qr+yi*Jr+di*_i,xi[5]=Si*Dr+ri*Kr+yi*Yr+di*bi,xi[6]=Si*Gr+ri*Hr+yi*si+di*pi,xi[7]=Si*Rr+ri*Ur+yi*fi+di*mi,xi[8]=Ei*Fr+Oi*Qr+Li*Jr+Ri*_i,xi[9]=Ei*Dr+Oi*Kr+Li*Yr+Ri*bi,xi[10]=Ei*Gr+Oi*Hr+Li*si+Ri*pi,xi[11]=Ei*Rr+Oi*Ur+Li*fi+Ri*mi,xi[12]=hi*Fr+Ci*Qr+Di*Jr+$i*_i,xi[13]=hi*Dr+Ci*Kr+Di*Yr+$i*bi,xi[14]=hi*Gr+Ci*Hr+Di*si+$i*pi,xi[15]=hi*Rr+Ci*Ur+Di*fi+$i*mi,this._identityCalculated=!1,this}function Tr(Fr){var Dr=Fr.props;return this.transform(Dr[0],Dr[1],Dr[2],Dr[3],Dr[4],Dr[5],Dr[6],Dr[7],Dr[8],Dr[9],Dr[10],Dr[11],Dr[12],Dr[13],Dr[14],Dr[15])}function Er(){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 xr(Fr){for(var Dr=0;Dr<16;){if(Fr.props[Dr]!==this.props[Dr])return!1;Dr+=1}return!0}function Sr(Fr){var Dr;for(Dr=0;Dr<16;Dr+=1)Fr.props[Dr]=this.props[Dr];return Fr}function kr(Fr){var Dr;for(Dr=0;Dr<16;Dr+=1)this.props[Dr]=Fr[Dr]}function Pr(Fr,Dr,Gr){return{x:Fr*this.props[0]+Dr*this.props[4]+Gr*this.props[8]+this.props[12],y:Fr*this.props[1]+Dr*this.props[5]+Gr*this.props[9]+this.props[13],z:Fr*this.props[2]+Dr*this.props[6]+Gr*this.props[10]+this.props[14]}}function Ir(Fr,Dr,Gr){return Fr*this.props[0]+Dr*this.props[4]+Gr*this.props[8]+this.props[12]}function Br(Fr,Dr,Gr){return Fr*this.props[1]+Dr*this.props[5]+Gr*this.props[9]+this.props[13]}function Or(Fr,Dr,Gr){return Fr*this.props[2]+Dr*this.props[6]+Gr*this.props[10]+this.props[14]}function Nr(){var Fr=this.props[0]*this.props[5]-this.props[1]*this.props[4],Dr=this.props[5]/Fr,Gr=-this.props[1]/Fr,Rr=-this.props[4]/Fr,Qr=this.props[0]/Fr,Kr=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/Fr,Hr=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/Fr,Ur=new Matrix;return Ur.props[0]=Dr,Ur.props[1]=Gr,Ur.props[4]=Rr,Ur.props[5]=Qr,Ur.props[12]=Kr,Ur.props[13]=Hr,Ur}function jr(Fr){var Dr=this.getInverseMatrix();return Dr.applyToPointArray(Fr[0],Fr[1],Fr[2]||0)}function Vr(Fr){var Dr,Gr=Fr.length,Rr=[];for(Dr=0;Dr<Gr;Dr+=1)Rr[Dr]=jr(Fr[Dr]);return Rr}function $r(Fr,Dr,Gr){var Rr=createTypedArray("float32",6);if(this.isIdentity())Rr[0]=Fr[0],Rr[1]=Fr[1],Rr[2]=Dr[0],Rr[3]=Dr[1],Rr[4]=Gr[0],Rr[5]=Gr[1];else{var Qr=this.props[0],Kr=this.props[1],Hr=this.props[4],Ur=this.props[5],Jr=this.props[12],Yr=this.props[13];Rr[0]=Fr[0]*Qr+Fr[1]*Hr+Jr,Rr[1]=Fr[0]*Kr+Fr[1]*Ur+Yr,Rr[2]=Dr[0]*Qr+Dr[1]*Hr+Jr,Rr[3]=Dr[0]*Kr+Dr[1]*Ur+Yr,Rr[4]=Gr[0]*Qr+Gr[1]*Hr+Jr,Rr[5]=Gr[0]*Kr+Gr[1]*Ur+Yr}return Rr}function zr(Fr,Dr,Gr){var Rr;return this.isIdentity()?Rr=[Fr,Dr,Gr]:Rr=[Fr*this.props[0]+Dr*this.props[4]+Gr*this.props[8]+this.props[12],Fr*this.props[1]+Dr*this.props[5]+Gr*this.props[9]+this.props[13],Fr*this.props[2]+Dr*this.props[6]+Gr*this.props[10]+this.props[14]],Rr}function Wr(Fr,Dr){if(this.isIdentity())return Fr+","+Dr;var Gr=this.props;return Math.round((Fr*Gr[0]+Dr*Gr[4]+Gr[12])*100)/100+","+Math.round((Fr*Gr[1]+Dr*Gr[5]+Gr[13])*100)/100}function qr(){for(var Fr=0,Dr=this.props,Gr="matrix3d(",Rr=1e4;Fr<16;)Gr+=dr(Dr[Fr]*Rr)/Rr,Gr+=Fr===15?")":",",Fr+=1;return Gr}function Mr(Fr){var Dr=1e4;return Fr<1e-6&&Fr>0||Fr>-1e-6&&Fr<0?dr(Fr*Dr)/Dr:Fr}function Lr(){var Fr=this.props,Dr=Mr(Fr[0]),Gr=Mr(Fr[1]),Rr=Mr(Fr[4]),Qr=Mr(Fr[5]),Kr=Mr(Fr[12]),Hr=Mr(Fr[13]);return"matrix("+Dr+","+Gr+","+Rr+","+Qr+","+Kr+","+Hr+")"}return function(){this.reset=fr,this.rotate=hr,this.rotateX=vr,this.rotateY=pr,this.rotateZ=mr,this.skew=yr,this.skewFromAxis=Cr,this.shear=gr,this.scale=br,this.setTransform=Ar,this.translate=wr,this.transform=_r,this.multiply=Tr,this.applyToPoint=Pr,this.applyToX=Ir,this.applyToY=Br,this.applyToZ=Or,this.applyToPointArray=zr,this.applyToTriplePoints=$r,this.applyToPointStringified=Wr,this.toCSS=qr,this.to2dCSS=Lr,this.clone=Sr,this.cloneFromProps=kr,this.equals=xr,this.inversePoints=Vr,this.inversePoint=jr,this.getInverseMatrix=Nr,this._t=this.transform,this.isIdentity=Er,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(ct){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(ur){return typeof ur}:_typeof$3=function(ur){return ur&&typeof Symbol=="function"&&ur.constructor===Symbol&&ur!==Symbol.prototype?"symbol":typeof ur},_typeof$3(ct)}var lottie={};function setLocation(ct){setLocationHref(ct)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(ct){setSubframeEnabled(ct)}function setPrefix(ct){setIdPrefix(ct)}function loadAnimation(ct){return animationManager.loadAnimation(ct)}function setQuality(ct){if(typeof ct=="string")switch(ct){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(ct)&&ct>1&&setDefaultCurveSegments(ct)}function inBrowser(){return typeof navigator<"u"}function installPlugin(ct,Dn){ct==="expressions"&&setExpressionsPlugin(Dn)}function getFactory(ct){switch(ct){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(ct){for(var Dn=queryString.split("&"),ur=0;ur<Dn.length;ur+=1){var dr=Dn[ur].split("=");if(decodeURIComponent(dr[0])==ct)return decodeURIComponent(dr[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(ct){}var ShapeModifiers=function(){var ct={},Dn={};ct.registerModifier=ur,ct.getModifier=dr;function ur(fr,hr){Dn[fr]||(Dn[fr]=hr)}function dr(fr,hr,vr){return new Dn[fr](hr,vr)}return ct}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(ct){if(!this.closed){ct.sh.container.addDynamicProperty(ct.sh);var Dn={shape:ct.sh,data:ct,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(Dn),this.addShapeToModifier(Dn),this._isAnimated&&ct.setAsAnimated()}},ShapeModifier.prototype.init=function(ct,Dn){this.shapes=[],this.elem=ct,this.initDynamicPropertyContainer(ct),this.initModifierProperties(ct,Dn),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(ct,Dn){this.s=PropertyFactory.getProp(ct,Dn.s,0,.01,this),this.e=PropertyFactory.getProp(ct,Dn.e,0,.01,this),this.o=PropertyFactory.getProp(ct,Dn.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=Dn.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(ct){ct.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(ct,Dn,ur,dr,fr){var hr=[];Dn<=1?hr.push({s:ct,e:Dn}):ct>=1?hr.push({s:ct-1,e:Dn-1}):(hr.push({s:ct,e:1}),hr.push({s:0,e:Dn-1}));var vr=[],pr,mr=hr.length,gr;for(pr=0;pr<mr;pr+=1)if(gr=hr[pr],!(gr.e*fr<dr||gr.s*fr>dr+ur)){var yr,Cr;gr.s*fr<=dr?yr=0:yr=(gr.s*fr-dr)/ur,gr.e*fr>=dr+ur?Cr=1:Cr=(gr.e*fr-dr)/ur,vr.push([yr,Cr])}return vr.length||vr.push([0,0]),vr},TrimModifier.prototype.releasePathsData=function(ct){var Dn,ur=ct.length;for(Dn=0;Dn<ur;Dn+=1)segmentsLengthPool.release(ct[Dn]);return ct.length=0,ct},TrimModifier.prototype.processShapes=function(ct){var Dn,ur;if(this._mdf||ct){var dr=this.o.v%360/360;if(dr<0&&(dr+=1),this.s.v>1?Dn=1+dr:this.s.v<0?Dn=0+dr:Dn=this.s.v+dr,this.e.v>1?ur=1+dr:this.e.v<0?ur=0+dr:ur=this.e.v+dr,Dn>ur){var fr=Dn;Dn=ur,ur=fr}Dn=Math.round(Dn*1e4)*1e-4,ur=Math.round(ur*1e4)*1e-4,this.sValue=Dn,this.eValue=ur}else Dn=this.sValue,ur=this.eValue;var hr,vr,pr=this.shapes.length,mr,gr,yr,Cr,br,Ar=0;if(ur===Dn)for(vr=0;vr<pr;vr+=1)this.shapes[vr].localShapeCollection.releaseShapes(),this.shapes[vr].shape._mdf=!0,this.shapes[vr].shape.paths=this.shapes[vr].localShapeCollection,this._mdf&&(this.shapes[vr].pathsData.length=0);else if(ur===1&&Dn===0||ur===0&&Dn===1){if(this._mdf)for(vr=0;vr<pr;vr+=1)this.shapes[vr].pathsData.length=0,this.shapes[vr].shape._mdf=!0}else{var wr=[],_r,Tr;for(vr=0;vr<pr;vr+=1)if(_r=this.shapes[vr],!_r.shape._mdf&&!this._mdf&&!ct&&this.m!==2)_r.shape.paths=_r.localShapeCollection;else{if(hr=_r.shape.paths,gr=hr._length,br=0,!_r.shape._mdf&&_r.pathsData.length)br=_r.totalShapeLength;else{for(yr=this.releasePathsData(_r.pathsData),mr=0;mr<gr;mr+=1)Cr=bez.getSegmentsLength(hr.shapes[mr]),yr.push(Cr),br+=Cr.totalLength;_r.totalShapeLength=br,_r.pathsData=yr}Ar+=br,_r.shape._mdf=!0}var Er=Dn,xr=ur,Sr=0,kr;for(vr=pr-1;vr>=0;vr-=1)if(_r=this.shapes[vr],_r.shape._mdf){for(Tr=_r.localShapeCollection,Tr.releaseShapes(),this.m===2&&pr>1?(kr=this.calculateShapeEdges(Dn,ur,_r.totalShapeLength,Sr,Ar),Sr+=_r.totalShapeLength):kr=[[Er,xr]],gr=kr.length,mr=0;mr<gr;mr+=1){Er=kr[mr][0],xr=kr[mr][1],wr.length=0,xr<=1?wr.push({s:_r.totalShapeLength*Er,e:_r.totalShapeLength*xr}):Er>=1?wr.push({s:_r.totalShapeLength*(Er-1),e:_r.totalShapeLength*(xr-1)}):(wr.push({s:_r.totalShapeLength*Er,e:_r.totalShapeLength}),wr.push({s:0,e:_r.totalShapeLength*(xr-1)}));var Pr=this.addShapes(_r,wr[0]);if(wr[0].s!==wr[0].e){if(wr.length>1){var Ir=_r.shape.paths.shapes[_r.shape.paths._length-1];if(Ir.c){var Br=Pr.pop();this.addPaths(Pr,Tr),Pr=this.addShapes(_r,wr[1],Br)}else this.addPaths(Pr,Tr),Pr=this.addShapes(_r,wr[1])}this.addPaths(Pr,Tr)}}_r.shape.paths=Tr}}},TrimModifier.prototype.addPaths=function(ct,Dn){var ur,dr=ct.length;for(ur=0;ur<dr;ur+=1)Dn.addShape(ct[ur])},TrimModifier.prototype.addSegment=function(ct,Dn,ur,dr,fr,hr,vr){fr.setXYAt(Dn[0],Dn[1],"o",hr),fr.setXYAt(ur[0],ur[1],"i",hr+1),vr&&fr.setXYAt(ct[0],ct[1],"v",hr),fr.setXYAt(dr[0],dr[1],"v",hr+1)},TrimModifier.prototype.addSegmentFromArray=function(ct,Dn,ur,dr){Dn.setXYAt(ct[1],ct[5],"o",ur),Dn.setXYAt(ct[2],ct[6],"i",ur+1),dr&&Dn.setXYAt(ct[0],ct[4],"v",ur),Dn.setXYAt(ct[3],ct[7],"v",ur+1)},TrimModifier.prototype.addShapes=function(ct,Dn,ur){var dr=ct.pathsData,fr=ct.shape.paths.shapes,hr,vr=ct.shape.paths._length,pr,mr,gr=0,yr,Cr,br,Ar,wr=[],_r,Tr=!0;for(ur?(Cr=ur._length,_r=ur._length):(ur=shapePool.newElement(),Cr=0,_r=0),wr.push(ur),hr=0;hr<vr;hr+=1){for(br=dr[hr].lengths,ur.c=fr[hr].c,mr=fr[hr].c?br.length:br.length+1,pr=1;pr<mr;pr+=1)if(yr=br[pr-1],gr+yr.addedLength<Dn.s)gr+=yr.addedLength,ur.c=!1;else if(gr>Dn.e){ur.c=!1;break}else Dn.s<=gr&&Dn.e>=gr+yr.addedLength?(this.addSegment(fr[hr].v[pr-1],fr[hr].o[pr-1],fr[hr].i[pr],fr[hr].v[pr],ur,Cr,Tr),Tr=!1):(Ar=bez.getNewSegment(fr[hr].v[pr-1],fr[hr].v[pr],fr[hr].o[pr-1],fr[hr].i[pr],(Dn.s-gr)/yr.addedLength,(Dn.e-gr)/yr.addedLength,br[pr-1]),this.addSegmentFromArray(Ar,ur,Cr,Tr),Tr=!1,ur.c=!1),gr+=yr.addedLength,Cr+=1;if(fr[hr].c&&br.length){if(yr=br[pr-1],gr<=Dn.e){var Er=br[pr-1].addedLength;Dn.s<=gr&&Dn.e>=gr+Er?(this.addSegment(fr[hr].v[pr-1],fr[hr].o[pr-1],fr[hr].i[0],fr[hr].v[0],ur,Cr,Tr),Tr=!1):(Ar=bez.getNewSegment(fr[hr].v[pr-1],fr[hr].v[0],fr[hr].o[pr-1],fr[hr].i[0],(Dn.s-gr)/Er,(Dn.e-gr)/Er,br[pr-1]),this.addSegmentFromArray(Ar,ur,Cr,Tr),Tr=!1,ur.c=!1)}else ur.c=!1;gr+=yr.addedLength,Cr+=1}if(ur._length&&(ur.setXYAt(ur.v[_r][0],ur.v[_r][1],"i",_r),ur.setXYAt(ur.v[ur._length-1][0],ur.v[ur._length-1][1],"o",ur._length-1)),gr>Dn.e)break;hr<vr-1&&(ur=shapePool.newElement(),Tr=!0,wr.push(ur),Cr=0)}return wr};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(ct,Dn){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(ct,Dn.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(ct,Dn){var ur=Dn/100,dr=[0,0],fr=ct._length,hr=0;for(hr=0;hr<fr;hr+=1)dr[0]+=ct.v[hr][0],dr[1]+=ct.v[hr][1];dr[0]/=fr,dr[1]/=fr;var vr=shapePool.newElement();vr.c=ct.c;var pr,mr,gr,yr,Cr,br;for(hr=0;hr<fr;hr+=1)pr=ct.v[hr][0]+(dr[0]-ct.v[hr][0])*ur,mr=ct.v[hr][1]+(dr[1]-ct.v[hr][1])*ur,gr=ct.o[hr][0]+(dr[0]-ct.o[hr][0])*-ur,yr=ct.o[hr][1]+(dr[1]-ct.o[hr][1])*-ur,Cr=ct.i[hr][0]+(dr[0]-ct.i[hr][0])*-ur,br=ct.i[hr][1]+(dr[1]-ct.i[hr][1])*-ur,vr.setTripleAt(pr,mr,gr,yr,Cr,br,hr);return vr},PuckerAndBloatModifier.prototype.processShapes=function(ct){var Dn,ur,dr=this.shapes.length,fr,hr,vr=this.amount.v;if(vr!==0){var pr,mr;for(ur=0;ur<dr;ur+=1){if(pr=this.shapes[ur],mr=pr.localShapeCollection,!(!pr.shape._mdf&&!this._mdf&&!ct))for(mr.releaseShapes(),pr.shape._mdf=!0,Dn=pr.shape.paths.shapes,hr=pr.shape.paths._length,fr=0;fr<hr;fr+=1)mr.addShape(this.processPath(Dn[fr],vr));pr.shape.paths=pr.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var ct=[0,0];function Dn(mr){var gr=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||gr,this.a&&mr.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&mr.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&mr.skewFromAxis(-this.sk.v,this.sa.v),this.r?mr.rotate(-this.r.v):mr.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?mr.translate(this.px.v,this.py.v,-this.pz.v):mr.translate(this.px.v,this.py.v,0):mr.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function ur(mr){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||mr){var gr;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 yr,Cr;if(gr=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(yr=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/gr,0),Cr=this.p.getValueAtTime(this.p.keyframes[0].t/gr,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(yr=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/gr,0),Cr=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/gr,0)):(yr=this.p.pv,Cr=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/gr,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){yr=[],Cr=[];var br=this.px,Ar=this.py;br._caching.lastFrame+br.offsetTime<=br.keyframes[0].t?(yr[0]=br.getValueAtTime((br.keyframes[0].t+.01)/gr,0),yr[1]=Ar.getValueAtTime((Ar.keyframes[0].t+.01)/gr,0),Cr[0]=br.getValueAtTime(br.keyframes[0].t/gr,0),Cr[1]=Ar.getValueAtTime(Ar.keyframes[0].t/gr,0)):br._caching.lastFrame+br.offsetTime>=br.keyframes[br.keyframes.length-1].t?(yr[0]=br.getValueAtTime(br.keyframes[br.keyframes.length-1].t/gr,0),yr[1]=Ar.getValueAtTime(Ar.keyframes[Ar.keyframes.length-1].t/gr,0),Cr[0]=br.getValueAtTime((br.keyframes[br.keyframes.length-1].t-.01)/gr,0),Cr[1]=Ar.getValueAtTime((Ar.keyframes[Ar.keyframes.length-1].t-.01)/gr,0)):(yr=[br.pv,Ar.pv],Cr[0]=br.getValueAtTime((br._caching.lastFrame+br.offsetTime-.01)/gr,br.offsetTime),Cr[1]=Ar.getValueAtTime((Ar._caching.lastFrame+Ar.offsetTime-.01)/gr,Ar.offsetTime))}else Cr=ct,yr=Cr;this.v.rotate(-Math.atan2(yr[1]-Cr[1],yr[0]-Cr[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 dr(){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 fr(){}function hr(mr){this._addDynamicProperty(mr),this.elem.addDynamicProperty(mr),this._isDirty=!0}function vr(mr,gr,yr){if(this.elem=mr,this.frameId=-1,this.propType="transform",this.data=gr,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(yr||mr),gr.p&&gr.p.s?(this.px=PropertyFactory.getProp(mr,gr.p.x,0,0,this),this.py=PropertyFactory.getProp(mr,gr.p.y,0,0,this),gr.p.z&&(this.pz=PropertyFactory.getProp(mr,gr.p.z,0,0,this))):this.p=PropertyFactory.getProp(mr,gr.p||{k:[0,0,0]},1,0,this),gr.rx){if(this.rx=PropertyFactory.getProp(mr,gr.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(mr,gr.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(mr,gr.rz,0,degToRads,this),gr.or.k[0].ti){var Cr,br=gr.or.k.length;for(Cr=0;Cr<br;Cr+=1)gr.or.k[Cr].to=null,gr.or.k[Cr].ti=null}this.or=PropertyFactory.getProp(mr,gr.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(mr,gr.r||{k:0},0,degToRads,this);gr.sk&&(this.sk=PropertyFactory.getProp(mr,gr.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(mr,gr.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(mr,gr.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(mr,gr.s||{k:[100,100,100]},1,.01,this),gr.o?this.o=PropertyFactory.getProp(mr,gr.o,0,.01,mr):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}vr.prototype={applyToMatrix:Dn,getValue:ur,precalculateMatrix:dr,autoOrient:fr},extendPrototype([DynamicPropertyContainer],vr),vr.prototype.addDynamicProperty=hr,vr.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function pr(mr,gr,yr){return new vr(mr,gr,yr)}return{getTransformProperty:pr}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(ct,Dn){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(ct,Dn.c,0,null,this),this.o=PropertyFactory.getProp(ct,Dn.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(ct,Dn.tr,this),this.so=PropertyFactory.getProp(ct,Dn.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(ct,Dn.tr.eo,0,.01,this),this.data=Dn,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(ct,Dn,ur,dr,fr,hr){var vr=hr?-1:1,pr=dr.s.v[0]+(1-dr.s.v[0])*(1-fr),mr=dr.s.v[1]+(1-dr.s.v[1])*(1-fr);ct.translate(dr.p.v[0]*vr*fr,dr.p.v[1]*vr*fr,dr.p.v[2]),Dn.translate(-dr.a.v[0],-dr.a.v[1],dr.a.v[2]),Dn.rotate(-dr.r.v*vr*fr),Dn.translate(dr.a.v[0],dr.a.v[1],dr.a.v[2]),ur.translate(-dr.a.v[0],-dr.a.v[1],dr.a.v[2]),ur.scale(hr?1/pr:pr,hr?1/mr:mr),ur.translate(dr.a.v[0],dr.a.v[1],dr.a.v[2])},RepeaterModifier.prototype.init=function(ct,Dn,ur,dr){for(this.elem=ct,this.arr=Dn,this.pos=ur,this.elemsData=dr,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(ct),this.initModifierProperties(ct,Dn[ur]);ur>0;)ur-=1,this._elements.unshift(Dn[ur]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(ct){var Dn,ur=ct.length;for(Dn=0;Dn<ur;Dn+=1)ct[Dn]._processed=!1,ct[Dn].ty==="gr"&&this.resetElements(ct[Dn].it)},RepeaterModifier.prototype.cloneElements=function(ct){var Dn=JSON.parse(JSON.stringify(ct));return this.resetElements(Dn),Dn},RepeaterModifier.prototype.changeGroupRender=function(ct,Dn){var ur,dr=ct.length;for(ur=0;ur<dr;ur+=1)ct[ur]._render=Dn,ct[ur].ty==="gr"&&this.changeGroupRender(ct[ur].it,Dn)},RepeaterModifier.prototype.processShapes=function(ct){var Dn,ur,dr,fr,hr,vr=!1;if(this._mdf||ct){var pr=Math.ceil(this.c.v);if(this._groups.length<pr){for(;this._groups.length<pr;){var mr={it:this.cloneElements(this._elements),ty:"gr"};mr.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,mr),this._groups.splice(0,0,mr),this._currentCopies+=1}this.elem.reloadShapes(),vr=!0}hr=0;var gr;for(dr=0;dr<=this._groups.length-1;dr+=1){if(gr=hr<pr,this._groups[dr]._render=gr,this.changeGroupRender(this._groups[dr].it,gr),!gr){var yr=this.elemsData[dr].it,Cr=yr[yr.length-1];Cr.transform.op.v!==0?(Cr.transform.op._mdf=!0,Cr.transform.op.v=0):Cr.transform.op._mdf=!1}hr+=1}this._currentCopies=pr;var br=this.o.v,Ar=br%1,wr=br>0?Math.floor(br):Math.ceil(br),_r=this.pMatrix.props,Tr=this.rMatrix.props,Er=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var xr=0;if(br>0){for(;xr<wr;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),xr+=1;Ar&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,Ar,!1),xr+=Ar)}else if(br<0){for(;xr>wr;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),xr-=1;Ar&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-Ar,!0),xr-=Ar)}dr=this.data.m===1?0:this._currentCopies-1,fr=this.data.m===1?1:-1,hr=this._currentCopies;for(var Sr,kr;hr;){if(Dn=this.elemsData[dr].it,ur=Dn[Dn.length-1].transform.mProps.v.props,kr=ur.length,Dn[Dn.length-1].transform.mProps._mdf=!0,Dn[Dn.length-1].transform.op._mdf=!0,Dn[Dn.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(dr/(this._currentCopies-1)),xr!==0){for((dr!==0&&fr===1||dr!==this._currentCopies-1&&fr===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(Tr[0],Tr[1],Tr[2],Tr[3],Tr[4],Tr[5],Tr[6],Tr[7],Tr[8],Tr[9],Tr[10],Tr[11],Tr[12],Tr[13],Tr[14],Tr[15]),this.matrix.transform(Er[0],Er[1],Er[2],Er[3],Er[4],Er[5],Er[6],Er[7],Er[8],Er[9],Er[10],Er[11],Er[12],Er[13],Er[14],Er[15]),this.matrix.transform(_r[0],_r[1],_r[2],_r[3],_r[4],_r[5],_r[6],_r[7],_r[8],_r[9],_r[10],_r[11],_r[12],_r[13],_r[14],_r[15]),Sr=0;Sr<kr;Sr+=1)ur[Sr]=this.matrix.props[Sr];this.matrix.reset()}else for(this.matrix.reset(),Sr=0;Sr<kr;Sr+=1)ur[Sr]=this.matrix.props[Sr];xr+=1,hr-=1,dr+=fr}}else for(hr=this._currentCopies,dr=0,fr=1;hr;)Dn=this.elemsData[dr].it,ur=Dn[Dn.length-1].transform.mProps.v.props,Dn[Dn.length-1].transform.mProps._mdf=!1,Dn[Dn.length-1].transform.op._mdf=!1,hr-=1,dr+=fr;return vr},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(ct,Dn){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(ct,Dn.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(ct,Dn){var ur=shapePool.newElement();ur.c=ct.c;var dr,fr=ct._length,hr,vr,pr,mr,gr,yr,Cr=0,br,Ar,wr,_r,Tr,Er;for(dr=0;dr<fr;dr+=1)hr=ct.v[dr],pr=ct.o[dr],vr=ct.i[dr],hr[0]===pr[0]&&hr[1]===pr[1]&&hr[0]===vr[0]&&hr[1]===vr[1]?(dr===0||dr===fr-1)&&!ct.c?(ur.setTripleAt(hr[0],hr[1],pr[0],pr[1],vr[0],vr[1],Cr),Cr+=1):(dr===0?mr=ct.v[fr-1]:mr=ct.v[dr-1],gr=Math.sqrt(Math.pow(hr[0]-mr[0],2)+Math.pow(hr[1]-mr[1],2)),yr=gr?Math.min(gr/2,Dn)/gr:0,Tr=hr[0]+(mr[0]-hr[0])*yr,br=Tr,Er=hr[1]-(hr[1]-mr[1])*yr,Ar=Er,wr=br-(br-hr[0])*roundCorner,_r=Ar-(Ar-hr[1])*roundCorner,ur.setTripleAt(br,Ar,wr,_r,Tr,Er,Cr),Cr+=1,dr===fr-1?mr=ct.v[0]:mr=ct.v[dr+1],gr=Math.sqrt(Math.pow(hr[0]-mr[0],2)+Math.pow(hr[1]-mr[1],2)),yr=gr?Math.min(gr/2,Dn)/gr:0,wr=hr[0]+(mr[0]-hr[0])*yr,br=wr,_r=hr[1]+(mr[1]-hr[1])*yr,Ar=_r,Tr=br-(br-hr[0])*roundCorner,Er=Ar-(Ar-hr[1])*roundCorner,ur.setTripleAt(br,Ar,wr,_r,Tr,Er,Cr),Cr+=1):(ur.setTripleAt(ct.v[dr][0],ct.v[dr][1],ct.o[dr][0],ct.o[dr][1],ct.i[dr][0],ct.i[dr][1],Cr),Cr+=1);return ur},RoundCornersModifier.prototype.processShapes=function(ct){var Dn,ur,dr=this.shapes.length,fr,hr,vr=this.rd.v;if(vr!==0){var pr,mr;for(ur=0;ur<dr;ur+=1){if(pr=this.shapes[ur],mr=pr.localShapeCollection,!(!pr.shape._mdf&&!this._mdf&&!ct))for(mr.releaseShapes(),pr.shape._mdf=!0,Dn=pr.shape.paths.shapes,hr=pr.shape.paths._length,fr=0;fr<hr;fr+=1)mr.addShape(this.processPath(Dn[fr],vr));pr.shape.paths=pr.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(ct,Dn){return Math.abs(ct-Dn)*1e5<=Math.min(Math.abs(ct),Math.abs(Dn))}function floatZero(ct){return Math.abs(ct)<=1e-5}function lerp(ct,Dn,ur){return ct*(1-ur)+Dn*ur}function lerpPoint(ct,Dn,ur){return[lerp(ct[0],Dn[0],ur),lerp(ct[1],Dn[1],ur)]}function quadRoots(ct,Dn,ur){if(ct===0)return[];var dr=Dn*Dn-4*ct*ur;if(dr<0)return[];var fr=-Dn/(2*ct);if(dr===0)return[fr];var hr=Math.sqrt(dr)/(2*ct);return[fr-hr,fr+hr]}function polynomialCoefficients(ct,Dn,ur,dr){return[-ct+3*Dn-3*ur+dr,3*ct-6*Dn+3*ur,-3*ct+3*Dn,ct]}function singlePoint(ct){return new PolynomialBezier(ct,ct,ct,ct,!1)}function PolynomialBezier(ct,Dn,ur,dr,fr){fr&&pointEqual(ct,Dn)&&(Dn=lerpPoint(ct,dr,1/3)),fr&&pointEqual(ur,dr)&&(ur=lerpPoint(ct,dr,2/3));var hr=polynomialCoefficients(ct[0],Dn[0],ur[0],dr[0]),vr=polynomialCoefficients(ct[1],Dn[1],ur[1],dr[1]);this.a=[hr[0],vr[0]],this.b=[hr[1],vr[1]],this.c=[hr[2],vr[2]],this.d=[hr[3],vr[3]],this.points=[ct,Dn,ur,dr]}PolynomialBezier.prototype.point=function(ct){return[((this.a[0]*ct+this.b[0])*ct+this.c[0])*ct+this.d[0],((this.a[1]*ct+this.b[1])*ct+this.c[1])*ct+this.d[1]]},PolynomialBezier.prototype.derivative=function(ct){return[(3*ct*this.a[0]+2*this.b[0])*ct+this.c[0],(3*ct*this.a[1]+2*this.b[1])*ct+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(ct){var Dn=this.derivative(ct);return Math.atan2(Dn[1],Dn[0])},PolynomialBezier.prototype.normalAngle=function(ct){var Dn=this.derivative(ct);return Math.atan2(Dn[0],Dn[1])},PolynomialBezier.prototype.inflectionPoints=function(){var ct=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(ct))return[];var Dn=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/ct,ur=Dn*Dn-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/ct;if(ur<0)return[];var dr=Math.sqrt(ur);return floatZero(dr)?dr>0&&dr<1?[Dn]:[]:[Dn-dr,Dn+dr].filter(function(fr){return fr>0&&fr<1})},PolynomialBezier.prototype.split=function(ct){if(ct<=0)return[singlePoint(this.points[0]),this];if(ct>=1)return[this,singlePoint(this.points[this.points.length-1])];var Dn=lerpPoint(this.points[0],this.points[1],ct),ur=lerpPoint(this.points[1],this.points[2],ct),dr=lerpPoint(this.points[2],this.points[3],ct),fr=lerpPoint(Dn,ur,ct),hr=lerpPoint(ur,dr,ct),vr=lerpPoint(fr,hr,ct);return[new PolynomialBezier(this.points[0],Dn,fr,vr,!0),new PolynomialBezier(vr,hr,dr,this.points[3],!0)]};function extrema(ct,Dn){var ur=ct.points[0][Dn],dr=ct.points[ct.points.length-1][Dn];if(ur>dr){var fr=dr;dr=ur,ur=fr}for(var hr=quadRoots(3*ct.a[Dn],2*ct.b[Dn],ct.c[Dn]),vr=0;vr<hr.length;vr+=1)if(hr[vr]>0&&hr[vr]<1){var pr=ct.point(hr[vr])[Dn];pr<ur?ur=pr:pr>dr&&(dr=pr)}return{min:ur,max:dr}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var ct=this.bounds();return{left:ct.x.min,right:ct.x.max,top:ct.y.min,bottom:ct.y.max,width:ct.x.max-ct.x.min,height:ct.y.max-ct.y.min,cx:(ct.x.max+ct.x.min)/2,cy:(ct.y.max+ct.y.min)/2}};function intersectData(ct,Dn,ur){var dr=ct.boundingBox();return{cx:dr.cx,cy:dr.cy,width:dr.width,height:dr.height,bez:ct,t:(Dn+ur)/2,t1:Dn,t2:ur}}function splitData(ct){var Dn=ct.bez.split(.5);return[intersectData(Dn[0],ct.t1,ct.t),intersectData(Dn[1],ct.t,ct.t2)]}function boxIntersect(ct,Dn){return Math.abs(ct.cx-Dn.cx)*2<ct.width+Dn.width&&Math.abs(ct.cy-Dn.cy)*2<ct.height+Dn.height}function intersectsImpl(ct,Dn,ur,dr,fr,hr){if(boxIntersect(ct,Dn)){if(ur>=hr||ct.width<=dr&&ct.height<=dr&&Dn.width<=dr&&Dn.height<=dr){fr.push([ct.t,Dn.t]);return}var vr=splitData(ct),pr=splitData(Dn);intersectsImpl(vr[0],pr[0],ur+1,dr,fr,hr),intersectsImpl(vr[0],pr[1],ur+1,dr,fr,hr),intersectsImpl(vr[1],pr[0],ur+1,dr,fr,hr),intersectsImpl(vr[1],pr[1],ur+1,dr,fr,hr)}}PolynomialBezier.prototype.intersections=function(ct,Dn,ur){Dn===void 0&&(Dn=2),ur===void 0&&(ur=7);var dr=[];return intersectsImpl(intersectData(this,0,1),intersectData(ct,0,1),0,Dn,dr,ur),dr},PolynomialBezier.shapeSegment=function(ct,Dn){var ur=(Dn+1)%ct.length();return new PolynomialBezier(ct.v[Dn],ct.o[Dn],ct.i[ur],ct.v[ur],!0)},PolynomialBezier.shapeSegmentInverted=function(ct,Dn){var ur=(Dn+1)%ct.length();return new PolynomialBezier(ct.v[ur],ct.i[ur],ct.o[Dn],ct.v[Dn],!0)};function crossProduct(ct,Dn){return[ct[1]*Dn[2]-ct[2]*Dn[1],ct[2]*Dn[0]-ct[0]*Dn[2],ct[0]*Dn[1]-ct[1]*Dn[0]]}function lineIntersection(ct,Dn,ur,dr){var fr=[ct[0],ct[1],1],hr=[Dn[0],Dn[1],1],vr=[ur[0],ur[1],1],pr=[dr[0],dr[1],1],mr=crossProduct(crossProduct(fr,hr),crossProduct(vr,pr));return floatZero(mr[2])?null:[mr[0]/mr[2],mr[1]/mr[2]]}function polarOffset(ct,Dn,ur){return[ct[0]+Math.cos(Dn)*ur,ct[1]-Math.sin(Dn)*ur]}function pointDistance(ct,Dn){return Math.hypot(ct[0]-Dn[0],ct[1]-Dn[1])}function pointEqual(ct,Dn){return floatEqual(ct[0],Dn[0])&&floatEqual(ct[1],Dn[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(ct,Dn){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(ct,Dn.s,0,null,this),this.frequency=PropertyFactory.getProp(ct,Dn.r,0,null,this),this.pointsType=PropertyFactory.getProp(ct,Dn.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(ct,Dn,ur,dr,fr,hr,vr){var pr=ur-Math.PI/2,mr=ur+Math.PI/2,gr=Dn[0]+Math.cos(ur)*dr*fr,yr=Dn[1]-Math.sin(ur)*dr*fr;ct.setTripleAt(gr,yr,gr+Math.cos(pr)*hr,yr-Math.sin(pr)*hr,gr+Math.cos(mr)*vr,yr-Math.sin(mr)*vr,ct.length())}function getPerpendicularVector(ct,Dn){var ur=[Dn[0]-ct[0],Dn[1]-ct[1]],dr=-Math.PI*.5,fr=[Math.cos(dr)*ur[0]-Math.sin(dr)*ur[1],Math.sin(dr)*ur[0]+Math.cos(dr)*ur[1]];return fr}function getProjectingAngle(ct,Dn){var ur=Dn===0?ct.length()-1:Dn-1,dr=(Dn+1)%ct.length(),fr=ct.v[ur],hr=ct.v[dr],vr=getPerpendicularVector(fr,hr);return Math.atan2(0,1)-Math.atan2(vr[1],vr[0])}function zigZagCorner(ct,Dn,ur,dr,fr,hr,vr){var pr=getProjectingAngle(Dn,ur),mr=Dn.v[ur%Dn._length],gr=Dn.v[ur===0?Dn._length-1:ur-1],yr=Dn.v[(ur+1)%Dn._length],Cr=hr===2?Math.sqrt(Math.pow(mr[0]-gr[0],2)+Math.pow(mr[1]-gr[1],2)):0,br=hr===2?Math.sqrt(Math.pow(mr[0]-yr[0],2)+Math.pow(mr[1]-yr[1],2)):0;setPoint(ct,Dn.v[ur%Dn._length],pr,vr,dr,br/((fr+1)*2),Cr/((fr+1)*2))}function zigZagSegment(ct,Dn,ur,dr,fr,hr){for(var vr=0;vr<dr;vr+=1){var pr=(vr+1)/(dr+1),mr=fr===2?Math.sqrt(Math.pow(Dn.points[3][0]-Dn.points[0][0],2)+Math.pow(Dn.points[3][1]-Dn.points[0][1],2)):0,gr=Dn.normalAngle(pr),yr=Dn.point(pr);setPoint(ct,yr,gr,hr,ur,mr/((dr+1)*2),mr/((dr+1)*2)),hr=-hr}return hr}ZigZagModifier.prototype.processPath=function(ct,Dn,ur,dr){var fr=ct._length,hr=shapePool.newElement();if(hr.c=ct.c,ct.c||(fr-=1),fr===0)return hr;var vr=-1,pr=PolynomialBezier.shapeSegment(ct,0);zigZagCorner(hr,ct,0,Dn,ur,dr,vr);for(var mr=0;mr<fr;mr+=1)vr=zigZagSegment(hr,pr,Dn,ur,dr,-vr),mr===fr-1&&!ct.c?pr=null:pr=PolynomialBezier.shapeSegment(ct,(mr+1)%fr),zigZagCorner(hr,ct,mr+1,Dn,ur,dr,vr);return hr},ZigZagModifier.prototype.processShapes=function(ct){var Dn,ur,dr=this.shapes.length,fr,hr,vr=this.amplitude.v,pr=Math.max(0,Math.round(this.frequency.v)),mr=this.pointsType.v;if(vr!==0){var gr,yr;for(ur=0;ur<dr;ur+=1){if(gr=this.shapes[ur],yr=gr.localShapeCollection,!(!gr.shape._mdf&&!this._mdf&&!ct))for(yr.releaseShapes(),gr.shape._mdf=!0,Dn=gr.shape.paths.shapes,hr=gr.shape.paths._length,fr=0;fr<hr;fr+=1)yr.addShape(this.processPath(Dn[fr],vr,pr,mr));gr.shape.paths=gr.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(ct,Dn,ur){var dr=Math.atan2(Dn[0]-ct[0],Dn[1]-ct[1]);return[polarOffset(ct,dr,ur),polarOffset(Dn,dr,ur)]}function offsetSegment(ct,Dn){var ur,dr,fr,hr,vr,pr,mr;mr=linearOffset(ct.points[0],ct.points[1],Dn),ur=mr[0],dr=mr[1],mr=linearOffset(ct.points[1],ct.points[2],Dn),fr=mr[0],hr=mr[1],mr=linearOffset(ct.points[2],ct.points[3],Dn),vr=mr[0],pr=mr[1];var gr=lineIntersection(ur,dr,fr,hr);gr===null&&(gr=dr);var yr=lineIntersection(vr,pr,fr,hr);return yr===null&&(yr=vr),new PolynomialBezier(ur,gr,yr,pr)}function joinLines(ct,Dn,ur,dr,fr){var hr=Dn.points[3],vr=ur.points[0];if(dr===3||pointEqual(hr,vr))return hr;if(dr===2){var pr=-Dn.tangentAngle(1),mr=-ur.tangentAngle(0)+Math.PI,gr=lineIntersection(hr,polarOffset(hr,pr+Math.PI/2,100),vr,polarOffset(vr,pr+Math.PI/2,100)),yr=gr?pointDistance(gr,hr):pointDistance(hr,vr)/2,Cr=polarOffset(hr,pr,2*yr*roundCorner);return ct.setXYAt(Cr[0],Cr[1],"o",ct.length()-1),Cr=polarOffset(vr,mr,2*yr*roundCorner),ct.setTripleAt(vr[0],vr[1],vr[0],vr[1],Cr[0],Cr[1],ct.length()),vr}var br=pointEqual(hr,Dn.points[2])?Dn.points[0]:Dn.points[2],Ar=pointEqual(vr,ur.points[1])?ur.points[3]:ur.points[1],wr=lineIntersection(br,hr,vr,Ar);return wr&&pointDistance(wr,hr)<fr?(ct.setTripleAt(wr[0],wr[1],wr[0],wr[1],wr[0],wr[1],ct.length()),wr):hr}function getIntersection(ct,Dn){var ur=ct.intersections(Dn);return ur.length&&floatEqual(ur[0][0],1)&&ur.shift(),ur.length?ur[0]:null}function pruneSegmentIntersection(ct,Dn){var ur=ct.slice(),dr=Dn.slice(),fr=getIntersection(ct[ct.length-1],Dn[0]);return fr&&(ur[ct.length-1]=ct[ct.length-1].split(fr[0])[0],dr[0]=Dn[0].split(fr[1])[1]),ct.length>1&&Dn.length>1&&(fr=getIntersection(ct[0],Dn[Dn.length-1]),fr)?[[ct[0].split(fr[0])[0]],[Dn[Dn.length-1].split(fr[1])[1]]]:[ur,dr]}function pruneIntersections(ct){for(var Dn,ur=1;ur<ct.length;ur+=1)Dn=pruneSegmentIntersection(ct[ur-1],ct[ur]),ct[ur-1]=Dn[0],ct[ur]=Dn[1];return ct.length>1&&(Dn=pruneSegmentIntersection(ct[ct.length-1],ct[0]),ct[ct.length-1]=Dn[0],ct[0]=Dn[1]),ct}function offsetSegmentSplit(ct,Dn){var ur=ct.inflectionPoints(),dr,fr,hr,vr;if(ur.length===0)return[offsetSegment(ct,Dn)];if(ur.length===1||floatEqual(ur[1],1))return hr=ct.split(ur[0]),dr=hr[0],fr=hr[1],[offsetSegment(dr,Dn),offsetSegment(fr,Dn)];hr=ct.split(ur[0]),dr=hr[0];var pr=(ur[1]-ur[0])/(1-ur[0]);return hr=hr[1].split(pr),vr=hr[0],fr=hr[1],[offsetSegment(dr,Dn),offsetSegment(vr,Dn),offsetSegment(fr,Dn)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(ct,Dn){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(ct,Dn.a,0,null,this),this.miterLimit=PropertyFactory.getProp(ct,Dn.ml,0,null,this),this.lineJoin=Dn.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(ct,Dn,ur,dr){var fr=shapePool.newElement();fr.c=ct.c;var hr=ct.length();ct.c||(hr-=1);var vr,pr,mr,gr=[];for(vr=0;vr<hr;vr+=1)mr=PolynomialBezier.shapeSegment(ct,vr),gr.push(offsetSegmentSplit(mr,Dn));if(!ct.c)for(vr=hr-1;vr>=0;vr-=1)mr=PolynomialBezier.shapeSegmentInverted(ct,vr),gr.push(offsetSegmentSplit(mr,Dn));gr=pruneIntersections(gr);var yr=null,Cr=null;for(vr=0;vr<gr.length;vr+=1){var br=gr[vr];for(Cr&&(yr=joinLines(fr,Cr,br[0],ur,dr)),Cr=br[br.length-1],pr=0;pr<br.length;pr+=1)mr=br[pr],yr&&pointEqual(mr.points[0],yr)?fr.setXYAt(mr.points[1][0],mr.points[1][1],"o",fr.length()-1):fr.setTripleAt(mr.points[0][0],mr.points[0][1],mr.points[1][0],mr.points[1][1],mr.points[0][0],mr.points[0][1],fr.length()),fr.setTripleAt(mr.points[3][0],mr.points[3][1],mr.points[3][0],mr.points[3][1],mr.points[2][0],mr.points[2][1],fr.length()),yr=mr.points[3]}return gr.length&&joinLines(fr,Cr,gr[0][0],ur,dr),fr},OffsetPathModifier.prototype.processShapes=function(ct){var Dn,ur,dr=this.shapes.length,fr,hr,vr=this.amount.v,pr=this.miterLimit.v,mr=this.lineJoin;if(vr!==0){var gr,yr;for(ur=0;ur<dr;ur+=1){if(gr=this.shapes[ur],yr=gr.localShapeCollection,!(!gr.shape._mdf&&!this._mdf&&!ct))for(yr.releaseShapes(),gr.shape._mdf=!0,Dn=gr.shape.paths.shapes,hr=gr.shape.paths._length,fr=0;fr<hr;fr+=1)yr.addShape(this.processPath(Dn[fr],vr,mr,pr));gr.shape.paths=gr.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(ct){for(var Dn=ct.fStyle?ct.fStyle.split(" "):[],ur="normal",dr="normal",fr=Dn.length,hr,vr=0;vr<fr;vr+=1)switch(hr=Dn[vr].toLowerCase(),hr){case"italic":dr="italic";break;case"bold":ur="700";break;case"black":ur="900";break;case"medium":ur="500";break;case"regular":case"normal":ur="400";break;case"light":case"thin":ur="200";break}return{style:dr,weight:ct.fWeight||ur}}var FontManager=function(){var ct=5e3,Dn={w:0,size:0,shapes:[],data:{shapes:[]}},ur=[];ur=ur.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 dr=127988,fr=917631,hr=917601,vr=917626,pr=65039,mr=8205,gr=127462,yr=127487,Cr=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function br(Mr){var Lr=Mr.split(","),Fr,Dr=Lr.length,Gr=[];for(Fr=0;Fr<Dr;Fr+=1)Lr[Fr]!=="sans-serif"&&Lr[Fr]!=="monospace"&&Gr.push(Lr[Fr]);return Gr.join(",")}function Ar(Mr,Lr){var Fr=createTag("span");Fr.setAttribute("aria-hidden",!0),Fr.style.fontFamily=Lr;var Dr=createTag("span");Dr.innerText="giItT1WQy@!-/#",Fr.style.position="absolute",Fr.style.left="-10000px",Fr.style.top="-10000px",Fr.style.fontSize="300px",Fr.style.fontVariant="normal",Fr.style.fontStyle="normal",Fr.style.fontWeight="normal",Fr.style.letterSpacing="0",Fr.appendChild(Dr),document.body.appendChild(Fr);var Gr=Dr.offsetWidth;return Dr.style.fontFamily=br(Mr)+", "+Lr,{node:Dr,w:Gr,parent:Fr}}function wr(){var Mr,Lr=this.fonts.length,Fr,Dr,Gr=Lr;for(Mr=0;Mr<Lr;Mr+=1)this.fonts[Mr].loaded?Gr-=1:this.fonts[Mr].fOrigin==="n"||this.fonts[Mr].origin===0?this.fonts[Mr].loaded=!0:(Fr=this.fonts[Mr].monoCase.node,Dr=this.fonts[Mr].monoCase.w,Fr.offsetWidth!==Dr?(Gr-=1,this.fonts[Mr].loaded=!0):(Fr=this.fonts[Mr].sansCase.node,Dr=this.fonts[Mr].sansCase.w,Fr.offsetWidth!==Dr&&(Gr-=1,this.fonts[Mr].loaded=!0)),this.fonts[Mr].loaded&&(this.fonts[Mr].sansCase.parent.parentNode.removeChild(this.fonts[Mr].sansCase.parent),this.fonts[Mr].monoCase.parent.parentNode.removeChild(this.fonts[Mr].monoCase.parent)));Gr!==0&&Date.now()-this.initTime<ct?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function _r(Mr,Lr){var Fr=document.body&&Lr?"svg":"canvas",Dr,Gr=getFontProperties(Mr);if(Fr==="svg"){var Rr=createNS("text");Rr.style.fontSize="100px",Rr.setAttribute("font-family",Mr.fFamily),Rr.setAttribute("font-style",Gr.style),Rr.setAttribute("font-weight",Gr.weight),Rr.textContent="1",Mr.fClass?(Rr.style.fontFamily="inherit",Rr.setAttribute("class",Mr.fClass)):Rr.style.fontFamily=Mr.fFamily,Lr.appendChild(Rr),Dr=Rr}else{var Qr=new OffscreenCanvas(500,500).getContext("2d");Qr.font=Gr.style+" "+Gr.weight+" 100px "+Mr.fFamily,Dr=Qr}function Kr(Hr){return Fr==="svg"?(Dr.textContent=Hr,Dr.getComputedTextLength()):Dr.measureText(Hr).width}return{measureText:Kr}}function Tr(Mr,Lr){if(!Mr){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=Mr.list;return}if(!document.body){this.isLoaded=!0,Mr.list.forEach(function(si){si.helper=_r(si),si.cache={}}),this.fonts=Mr.list;return}var Fr=Mr.list,Dr,Gr=Fr.length,Rr=Gr;for(Dr=0;Dr<Gr;Dr+=1){var Qr=!0,Kr,Hr;if(Fr[Dr].loaded=!1,Fr[Dr].monoCase=Ar(Fr[Dr].fFamily,"monospace"),Fr[Dr].sansCase=Ar(Fr[Dr].fFamily,"sans-serif"),!Fr[Dr].fPath)Fr[Dr].loaded=!0,Rr-=1;else if(Fr[Dr].fOrigin==="p"||Fr[Dr].origin===3){if(Kr=document.querySelectorAll('style[f-forigin="p"][f-family="'+Fr[Dr].fFamily+'"], style[f-origin="3"][f-family="'+Fr[Dr].fFamily+'"]'),Kr.length>0&&(Qr=!1),Qr){var Ur=createTag("style");Ur.setAttribute("f-forigin",Fr[Dr].fOrigin),Ur.setAttribute("f-origin",Fr[Dr].origin),Ur.setAttribute("f-family",Fr[Dr].fFamily),Ur.type="text/css",Ur.innerText="@font-face {font-family: "+Fr[Dr].fFamily+"; font-style: normal; src: url('"+Fr[Dr].fPath+"');}",Lr.appendChild(Ur)}}else if(Fr[Dr].fOrigin==="g"||Fr[Dr].origin===1){for(Kr=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Hr=0;Hr<Kr.length;Hr+=1)Kr[Hr].href.indexOf(Fr[Dr].fPath)!==-1&&(Qr=!1);if(Qr){var Jr=createTag("link");Jr.setAttribute("f-forigin",Fr[Dr].fOrigin),Jr.setAttribute("f-origin",Fr[Dr].origin),Jr.type="text/css",Jr.rel="stylesheet",Jr.href=Fr[Dr].fPath,document.body.appendChild(Jr)}}else if(Fr[Dr].fOrigin==="t"||Fr[Dr].origin===2){for(Kr=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Hr=0;Hr<Kr.length;Hr+=1)Fr[Dr].fPath===Kr[Hr].src&&(Qr=!1);if(Qr){var Yr=createTag("link");Yr.setAttribute("f-forigin",Fr[Dr].fOrigin),Yr.setAttribute("f-origin",Fr[Dr].origin),Yr.setAttribute("rel","stylesheet"),Yr.setAttribute("href",Fr[Dr].fPath),Lr.appendChild(Yr)}}Fr[Dr].helper=_r(Fr[Dr],Lr),Fr[Dr].cache={},this.fonts.push(Fr[Dr])}Rr===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function Er(Mr){if(Mr){this.chars||(this.chars=[]);var Lr,Fr=Mr.length,Dr,Gr=this.chars.length,Rr;for(Lr=0;Lr<Fr;Lr+=1){for(Dr=0,Rr=!1;Dr<Gr;)this.chars[Dr].style===Mr[Lr].style&&this.chars[Dr].fFamily===Mr[Lr].fFamily&&this.chars[Dr].ch===Mr[Lr].ch&&(Rr=!0),Dr+=1;Rr||(this.chars.push(Mr[Lr]),Gr+=1)}}}function xr(Mr,Lr,Fr){for(var Dr=0,Gr=this.chars.length;Dr<Gr;){if(this.chars[Dr].ch===Mr&&this.chars[Dr].style===Lr&&this.chars[Dr].fFamily===Fr)return this.chars[Dr];Dr+=1}return(typeof Mr=="string"&&Mr.charCodeAt(0)!==13||!Mr)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",Mr,Lr,Fr)),Dn}function Sr(Mr,Lr,Fr){var Dr=this.getFontByName(Lr),Gr=Mr;if(!Dr.cache[Gr]){var Rr=Dr.helper;if(Mr===" "){var Qr=Rr.measureText("|"+Mr+"|"),Kr=Rr.measureText("||");Dr.cache[Gr]=(Qr-Kr)/100}else Dr.cache[Gr]=Rr.measureText(Mr)/100}return Dr.cache[Gr]*Fr}function kr(Mr){for(var Lr=0,Fr=this.fonts.length;Lr<Fr;){if(this.fonts[Lr].fName===Mr)return this.fonts[Lr];Lr+=1}return this.fonts[0]}function Pr(Mr){var Lr=0,Fr=Mr.charCodeAt(0);if(Fr>=55296&&Fr<=56319){var Dr=Mr.charCodeAt(1);Dr>=56320&&Dr<=57343&&(Lr=(Fr-55296)*1024+Dr-56320+65536)}return Lr}function Ir(Mr,Lr){var Fr=Mr.toString(16)+Lr.toString(16);return Cr.indexOf(Fr)!==-1}function Br(Mr){return Mr===mr}function Or(Mr){return Mr===pr}function Nr(Mr){var Lr=Pr(Mr);return Lr>=gr&&Lr<=yr}function jr(Mr){return Nr(Mr.substr(0,2))&&Nr(Mr.substr(2,2))}function Vr(Mr){return ur.indexOf(Mr)!==-1}function $r(Mr,Lr){var Fr=Pr(Mr.substr(Lr,2));if(Fr!==dr)return!1;var Dr=0;for(Lr+=2;Dr<5;){if(Fr=Pr(Mr.substr(Lr,2)),Fr<hr||Fr>vr)return!1;Dr+=1,Lr+=2}return Pr(Mr.substr(Lr,2))===fr}function zr(){this.isLoaded=!0}var Wr=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)};Wr.isModifier=Ir,Wr.isZeroWidthJoiner=Br,Wr.isFlagEmoji=jr,Wr.isRegionalCode=Nr,Wr.isCombinedCharacter=Vr,Wr.isRegionalFlag=$r,Wr.isVariationSelector=Or,Wr.BLACK_FLAG_CODE_POINT=dr;var qr={addChars:Er,addFonts:Tr,getCharData:xr,getFontByName:kr,measureText:Sr,checkLoadedFonts:wr,setIsLoaded:zr};return Wr.prototype=qr,Wr}();function SlotManager(ct){this.animationData=ct}SlotManager.prototype.getProp=function(ct){return this.animationData.slots&&this.animationData.slots[ct.sid]?Object.assign(ct,this.animationData.slots[ct.sid].p):ct};function slotFactory(ct){return new SlotManager(ct)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(Dn){this.renderableComponents.indexOf(Dn)===-1&&this.renderableComponents.push(Dn)},removeRenderableComponent:function(Dn){this.renderableComponents.indexOf(Dn)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(Dn),1)},prepareRenderableFrame:function(Dn){this.checkLayerLimits(Dn)},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(Dn){this.data.ip-this.data.st<=Dn&&this.data.op-this.data.st>Dn?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 Dn,ur=this.renderableComponents.length;for(Dn=0;Dn<ur;Dn+=1)this.renderableComponents[Dn].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 ct={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(Dn){return ct[Dn]||""}}();function SliderEffect(ct,Dn,ur){this.p=PropertyFactory.getProp(Dn,ct.v,0,0,ur)}function AngleEffect(ct,Dn,ur){this.p=PropertyFactory.getProp(Dn,ct.v,0,0,ur)}function ColorEffect(ct,Dn,ur){this.p=PropertyFactory.getProp(Dn,ct.v,1,0,ur)}function PointEffect(ct,Dn,ur){this.p=PropertyFactory.getProp(Dn,ct.v,1,0,ur)}function LayerIndexEffect(ct,Dn,ur){this.p=PropertyFactory.getProp(Dn,ct.v,0,0,ur)}function MaskIndexEffect(ct,Dn,ur){this.p=PropertyFactory.getProp(Dn,ct.v,0,0,ur)}function CheckboxEffect(ct,Dn,ur){this.p=PropertyFactory.getProp(Dn,ct.v,0,0,ur)}function NoValueEffect(){this.p={}}function EffectsManager(ct,Dn){var ur=ct.ef||[];this.effectElements=[];var dr,fr=ur.length,hr;for(dr=0;dr<fr;dr+=1)hr=new GroupEffect(ur[dr],Dn),this.effectElements.push(hr)}function GroupEffect(ct,Dn){this.init(ct,Dn)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(ct,Dn){this.data=ct,this.effectElements=[],this.initDynamicPropertyContainer(Dn);var ur,dr=this.data.ef.length,fr,hr=this.data.ef;for(ur=0;ur<dr;ur+=1){switch(fr=null,hr[ur].ty){case 0:fr=new SliderEffect(hr[ur],Dn,this);break;case 1:fr=new AngleEffect(hr[ur],Dn,this);break;case 2:fr=new ColorEffect(hr[ur],Dn,this);break;case 3:fr=new PointEffect(hr[ur],Dn,this);break;case 4:case 7:fr=new CheckboxEffect(hr[ur],Dn,this);break;case 10:fr=new LayerIndexEffect(hr[ur],Dn,this);break;case 11:fr=new MaskIndexEffect(hr[ur],Dn,this);break;case 5:fr=new EffectsManager(hr[ur],Dn);break;default:fr=new NoValueEffect(hr[ur]);break}fr&&this.effectElements.push(fr)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var Dn=0,ur=this.data.masksProperties.length;Dn<ur;){if(this.data.masksProperties[Dn].mode!=="n"&&this.data.masksProperties[Dn].cl!==!1)return!0;Dn+=1}return!1},initExpressions:function(){var Dn=getExpressionInterfaces();if(Dn){var ur=Dn("layer"),dr=Dn("effects"),fr=Dn("shape"),hr=Dn("text"),vr=Dn("comp");this.layerInterface=ur(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var pr=dr.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(pr),this.data.ty===0||this.data.xt?this.compInterface=vr(this):this.data.ty===4?(this.layerInterface.shapeInterface=fr(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=hr(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var Dn=getBlendMode(this.data.bm),ur=this.baseElement||this.layerElement;ur.style["mix-blend-mode"]=Dn},initBaseData:function(Dn,ur,dr){this.globalData=ur,this.comp=dr,this.data=Dn,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(Dn,ur){var dr,fr=this.dynamicProperties.length;for(dr=0;dr<fr;dr+=1)(ur||this._isParent&&this.dynamicProperties[dr].propType==="transform")&&(this.dynamicProperties[dr].getValue(),this.dynamicProperties[dr]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(Dn){this.dynamicProperties.indexOf(Dn)===-1&&this.dynamicProperties.push(Dn)}};function FootageElement(ct,Dn,ur){this.initFrame(),this.initRenderable(),this.assetData=Dn.getAssetData(ct.refId),this.footageData=Dn.imageLoader.getAsset(this.assetData),this.initBaseData(ct,Dn,ur)}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 ct=getExpressionInterfaces();if(ct){var Dn=ct("footage");this.layerInterface=Dn(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(ct,Dn,ur){this.initFrame(),this.initRenderable(),this.assetData=Dn.getAssetData(ct.refId),this.initBaseData(ct,Dn,ur),this._isPlaying=!1,this._canPlay=!1;var dr=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(dr),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=ct.tm?PropertyFactory.getProp(this,ct.tm,0,Dn.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,ct.au&&ct.au.lv?ct.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(ct){if(this.prepareRenderableFrame(ct,!0),this.prepareProperties(ct,!0),this.tm._placeholder)this._currentTime=ct/this.data.sr;else{var Dn=this.tm.v;this._currentTime=Dn}this._volume=this.lv.v[0];var ur=this._volume*this._volumeMultiplier;this._previousVolume!==ur&&(this._previousVolume=ur,this.audio.volume(ur))},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(ct){this.audio.rate(ct)},AudioElement.prototype.volume=function(ct){this._volumeMultiplier=ct,this._previousVolume=ct*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(ct){var Dn,ur=this.layers.length,dr;for(this.completeLayers=!0,Dn=ur-1;Dn>=0;Dn-=1)this.elements[Dn]||(dr=this.layers[Dn],dr.ip-dr.st<=ct-this.layers[Dn].st&&dr.op-dr.st>ct-this.layers[Dn].st&&this.buildItem(Dn)),this.completeLayers=this.elements[Dn]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(ct){switch(ct.ty){case 2:return this.createImage(ct);case 0:return this.createComp(ct);case 1:return this.createSolid(ct);case 3:return this.createNull(ct);case 4:return this.createShape(ct);case 5:return this.createText(ct);case 6:return this.createAudio(ct);case 13:return this.createCamera(ct);case 15:return this.createFootage(ct);default:return this.createNull(ct)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(ct){return new AudioElement(ct,this.globalData,this)},BaseRenderer.prototype.createFootage=function(ct){return new FootageElement(ct,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var ct,Dn=this.layers.length;for(ct=0;ct<Dn;ct+=1)this.buildItem(ct);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(ct){this.completeLayers=!1;var Dn,ur=ct.length,dr,fr=this.layers.length;for(Dn=0;Dn<ur;Dn+=1)for(dr=0;dr<fr;){if(this.layers[dr].id===ct[Dn].id){this.layers[dr]=ct[Dn];break}dr+=1}},BaseRenderer.prototype.setProjectInterface=function(ct){this.globalData.projectInterface=ct},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(ct,Dn,ur){for(var dr=this.elements,fr=this.layers,hr=0,vr=fr.length;hr<vr;)fr[hr].ind==Dn&&(!dr[hr]||dr[hr]===!0?(this.buildItem(hr),this.addPendingElement(ct)):(ur.push(dr[hr]),dr[hr].setAsParent(),fr[hr].parent!==void 0?this.buildElementParenting(ct,fr[hr].parent,ur):ct.setHierarchy(ur))),hr+=1},BaseRenderer.prototype.addPendingElement=function(ct){this.pendingElements.push(ct)},BaseRenderer.prototype.searchExtraCompositions=function(ct){var Dn,ur=ct.length;for(Dn=0;Dn<ur;Dn+=1)if(ct[Dn].xt){var dr=this.createComp(ct[Dn]);dr.initExpressions(),this.globalData.projectInterface.registerComposition(dr)}},BaseRenderer.prototype.getElementById=function(ct){var Dn,ur=this.elements.length;for(Dn=0;Dn<ur;Dn+=1)if(this.elements[Dn].data.ind===ct)return this.elements[Dn];return null},BaseRenderer.prototype.getElementByPath=function(ct){var Dn=ct.shift(),ur;if(typeof Dn=="number")ur=this.elements[Dn];else{var dr,fr=this.elements.length;for(dr=0;dr<fr;dr+=1)if(this.elements[dr].data.nm===Dn){ur=this.elements[dr];break}}return ct.length===0?ur:ur.getElementByPath(ct)},BaseRenderer.prototype.setupGlobalData=function(ct,Dn){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(ct),this.globalData.fontManager.addChars(ct.chars),this.globalData.fontManager.addFonts(ct.fonts,Dn),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=ct.fr,this.globalData.nm=ct.nm,this.globalData.compSize={w:ct.w,h:ct.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var Dn=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:Dn,localMat:Dn,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 Dn,ur=this.finalTransform.mat,dr=0,fr=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;dr<fr;){if(this.hierarchy[dr].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}dr+=1}if(this.finalTransform._matMdf)for(Dn=this.finalTransform.mProp.v.props,ur.cloneFromProps(Dn),dr=0;dr<fr;dr+=1)ur.multiply(this.hierarchy[dr].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 Dn=0,ur=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;Dn<ur;)this.localTransforms[Dn]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[Dn]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),Dn+=1;if(this.finalTransform._localMatMdf){var dr=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(dr),Dn=1;Dn<ur;Dn+=1){var fr=this.localTransforms[Dn].matrix;dr.multiply(fr)}dr.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var hr=this.finalTransform.localOpacity;for(Dn=0;Dn<ur;Dn+=1)hr*=this.localTransforms[Dn].opacity*.01;this.finalTransform.localOpacity=hr}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var Dn=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(Dn.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var ur=0,dr=Dn.length;for(ur=0;ur<dr;ur+=1)this.localTransforms.push(Dn[ur])}}},globalToLocal:function(Dn){var ur=[];ur.push(this.finalTransform);for(var dr=!0,fr=this.comp;dr;)fr.finalTransform?(fr.data.hasMask&&ur.splice(0,0,fr.finalTransform),fr=fr.comp):dr=!1;var hr,vr=ur.length,pr;for(hr=0;hr<vr;hr+=1)pr=ur[hr].mat.applyToPointArray(0,0,0),Dn=[Dn[0]-pr[0],Dn[1]-pr[1],0];return Dn},mHelper:new Matrix};function MaskElement(ct,Dn,ur){this.data=ct,this.element=Dn,this.globalData=ur,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var dr=this.globalData.defs,fr,hr=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(hr),this.solidPath="";var vr,pr=this.masksProperties,mr=0,gr=[],yr,Cr,br=createElementID(),Ar,wr,_r,Tr,Er="clipPath",xr="clip-path";for(fr=0;fr<hr;fr+=1)if((pr[fr].mode!=="a"&&pr[fr].mode!=="n"||pr[fr].inv||pr[fr].o.k!==100||pr[fr].o.x)&&(Er="mask",xr="mask"),(pr[fr].mode==="s"||pr[fr].mode==="i")&&mr===0?(Ar=createNS("rect"),Ar.setAttribute("fill","#ffffff"),Ar.setAttribute("width",this.element.comp.data.w||0),Ar.setAttribute("height",this.element.comp.data.h||0),gr.push(Ar)):Ar=null,vr=createNS("path"),pr[fr].mode==="n")this.viewData[fr]={op:PropertyFactory.getProp(this.element,pr[fr].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,pr[fr],3),elem:vr,lastPath:""},dr.appendChild(vr);else{mr+=1,vr.setAttribute("fill",pr[fr].mode==="s"?"#000000":"#ffffff"),vr.setAttribute("clip-rule","nonzero");var Sr;if(pr[fr].x.k!==0?(Er="mask",xr="mask",Tr=PropertyFactory.getProp(this.element,pr[fr].x,0,null,this.element),Sr=createElementID(),wr=createNS("filter"),wr.setAttribute("id",Sr),_r=createNS("feMorphology"),_r.setAttribute("operator","erode"),_r.setAttribute("in","SourceGraphic"),_r.setAttribute("radius","0"),wr.appendChild(_r),dr.appendChild(wr),vr.setAttribute("stroke",pr[fr].mode==="s"?"#000000":"#ffffff")):(_r=null,Tr=null),this.storedData[fr]={elem:vr,x:Tr,expan:_r,lastPath:"",lastOperator:"",filterId:Sr,lastRadius:0},pr[fr].mode==="i"){Cr=gr.length;var kr=createNS("g");for(yr=0;yr<Cr;yr+=1)kr.appendChild(gr[yr]);var Pr=createNS("mask");Pr.setAttribute("mask-type","alpha"),Pr.setAttribute("id",br+"_"+mr),Pr.appendChild(vr),dr.appendChild(Pr),kr.setAttribute("mask","url("+getLocationHref()+"#"+br+"_"+mr+")"),gr.length=0,gr.push(kr)}else gr.push(vr);pr[fr].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[fr]={elem:vr,lastPath:"",op:PropertyFactory.getProp(this.element,pr[fr].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,pr[fr],3),invRect:Ar},this.viewData[fr].prop.k||this.drawPath(pr[fr],this.viewData[fr].prop.v,this.viewData[fr])}for(this.maskElement=createNS(Er),hr=gr.length,fr=0;fr<hr;fr+=1)this.maskElement.appendChild(gr[fr]);mr>0&&(this.maskElement.setAttribute("id",br),this.element.maskedElement.setAttribute(xr,"url("+getLocationHref()+"#"+br+")"),dr.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(ct){return this.viewData[ct].prop},MaskElement.prototype.renderFrame=function(ct){var Dn=this.element.finalTransform.mat,ur,dr=this.masksProperties.length;for(ur=0;ur<dr;ur+=1)if((this.viewData[ur].prop._mdf||ct)&&this.drawPath(this.masksProperties[ur],this.viewData[ur].prop.v,this.viewData[ur]),(this.viewData[ur].op._mdf||ct)&&this.viewData[ur].elem.setAttribute("fill-opacity",this.viewData[ur].op.v),this.masksProperties[ur].mode!=="n"&&(this.viewData[ur].invRect&&(this.element.finalTransform.mProp._mdf||ct)&&this.viewData[ur].invRect.setAttribute("transform",Dn.getInverseMatrix().to2dCSS()),this.storedData[ur].x&&(this.storedData[ur].x._mdf||ct))){var fr=this.storedData[ur].expan;this.storedData[ur].x.v<0?(this.storedData[ur].lastOperator!=="erode"&&(this.storedData[ur].lastOperator="erode",this.storedData[ur].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[ur].filterId+")")),fr.setAttribute("radius",-this.storedData[ur].x.v)):(this.storedData[ur].lastOperator!=="dilate"&&(this.storedData[ur].lastOperator="dilate",this.storedData[ur].elem.setAttribute("filter",null)),this.storedData[ur].elem.setAttribute("stroke-width",this.storedData[ur].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var ct="M0,0 ";return ct+=" h"+this.globalData.compSize.w,ct+=" v"+this.globalData.compSize.h,ct+=" h-"+this.globalData.compSize.w,ct+=" v-"+this.globalData.compSize.h+" ",ct},MaskElement.prototype.drawPath=function(ct,Dn,ur){var dr=" M"+Dn.v[0][0]+","+Dn.v[0][1],fr,hr;for(hr=Dn._length,fr=1;fr<hr;fr+=1)dr+=" C"+Dn.o[fr-1][0]+","+Dn.o[fr-1][1]+" "+Dn.i[fr][0]+","+Dn.i[fr][1]+" "+Dn.v[fr][0]+","+Dn.v[fr][1];if(Dn.c&&hr>1&&(dr+=" C"+Dn.o[fr-1][0]+","+Dn.o[fr-1][1]+" "+Dn.i[0][0]+","+Dn.i[0][1]+" "+Dn.v[0][0]+","+Dn.v[0][1]),ur.lastPath!==dr){var vr="";ur.elem&&(Dn.c&&(vr=ct.inv?this.solidPath+dr:dr),ur.elem.setAttribute("d",vr)),ur.lastPath=dr}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var ct={};ct.createFilter=Dn,ct.createAlphaToLuminanceFilter=ur;function Dn(dr,fr){var hr=createNS("filter");return hr.setAttribute("id",dr),fr!==!0&&(hr.setAttribute("filterUnits","objectBoundingBox"),hr.setAttribute("x","0%"),hr.setAttribute("y","0%"),hr.setAttribute("width","100%"),hr.setAttribute("height","100%")),hr}function ur(){var dr=createNS("feColorMatrix");return dr.setAttribute("type","matrix"),dr.setAttribute("color-interpolation-filters","sRGB"),dr.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),dr}return ct}(),featureSupport=function(){var ct={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))&&(ct.maskType=!1),/firefox/i.test(navigator.userAgent)&&(ct.svgLumaHidden=!1),ct}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(ct){var Dn,ur="SourceGraphic",dr=ct.data.ef?ct.data.ef.length:0,fr=createElementID(),hr=filtersFactory.createFilter(fr,!0),vr=0;this.filters=[];var pr;for(Dn=0;Dn<dr;Dn+=1){pr=null;var mr=ct.data.ef[Dn].ty;if(registeredEffects$1[mr]){var gr=registeredEffects$1[mr].effect;pr=new gr(hr,ct.effectsManager.effectElements[Dn],ct,idPrefix+vr,ur),ur=idPrefix+vr,registeredEffects$1[mr].countsAsEffect&&(vr+=1)}pr&&this.filters.push(pr)}vr&&(ct.globalData.defs.appendChild(hr),ct.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+fr+")")),this.filters.length&&ct.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(ct){var Dn,ur=this.filters.length;for(Dn=0;Dn<ur;Dn+=1)this.filters[Dn].renderFrame(ct)},SVGEffects.prototype.getEffects=function(ct){var Dn,ur=this.filters.length,dr=[];for(Dn=0;Dn<ur;Dn+=1)this.filters[Dn].type===ct&&dr.push(this.filters[Dn]);return dr};function registerEffect$1(ct,Dn,ur){registeredEffects$1[ct]={effect:Dn,countsAsEffect:ur}}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 Dn=null;if(this.data.td){this.matteMasks={};var ur=createNS("g");ur.setAttribute("id",this.layerId),ur.appendChild(this.layerElement),Dn=ur,this.globalData.defs.appendChild(ur)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),Dn=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 dr=createNS("clipPath"),fr=createNS("path");fr.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var hr=createElementID();if(dr.setAttribute("id",hr),dr.appendChild(fr),this.globalData.defs.appendChild(dr),this.checkMasks()){var vr=createNS("g");vr.setAttribute("clip-path","url("+getLocationHref()+"#"+hr+")"),vr.appendChild(this.layerElement),this.transformedElement=vr,Dn?Dn.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+hr+")")}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(Dn){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[Dn]){var ur=this.layerId+"_"+Dn,dr,fr,hr,vr;if(Dn===1||Dn===3){var pr=createNS("mask");pr.setAttribute("id",ur),pr.setAttribute("mask-type",Dn===3?"luminance":"alpha"),hr=createNS("use"),hr.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),pr.appendChild(hr),this.globalData.defs.appendChild(pr),!featureSupport.maskType&&Dn===1&&(pr.setAttribute("mask-type","luminance"),dr=createElementID(),fr=filtersFactory.createFilter(dr),this.globalData.defs.appendChild(fr),fr.appendChild(filtersFactory.createAlphaToLuminanceFilter()),vr=createNS("g"),vr.appendChild(hr),pr.appendChild(vr),vr.setAttribute("filter","url("+getLocationHref()+"#"+dr+")"))}else if(Dn===2){var mr=createNS("mask");mr.setAttribute("id",ur),mr.setAttribute("mask-type","alpha");var gr=createNS("g");mr.appendChild(gr),dr=createElementID(),fr=filtersFactory.createFilter(dr);var yr=createNS("feComponentTransfer");yr.setAttribute("in","SourceGraphic"),fr.appendChild(yr);var Cr=createNS("feFuncA");Cr.setAttribute("type","table"),Cr.setAttribute("tableValues","1.0 0.0"),yr.appendChild(Cr),this.globalData.defs.appendChild(fr);var br=createNS("rect");br.setAttribute("width",this.comp.data.w),br.setAttribute("height",this.comp.data.h),br.setAttribute("x","0"),br.setAttribute("y","0"),br.setAttribute("fill","#ffffff"),br.setAttribute("opacity","0"),gr.setAttribute("filter","url("+getLocationHref()+"#"+dr+")"),gr.appendChild(br),hr=createNS("use"),hr.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),gr.appendChild(hr),featureSupport.maskType||(mr.setAttribute("mask-type","luminance"),fr.appendChild(filtersFactory.createAlphaToLuminanceFilter()),vr=createNS("g"),gr.appendChild(br),vr.appendChild(this.layerElement),gr.appendChild(vr)),this.globalData.defs.appendChild(mr)}this.matteMasks[Dn]=ur}return this.matteMasks[Dn]},setMatte:function(Dn){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+Dn+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(Dn){this.hierarchy=Dn},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var ct={initElement:function(ur,dr,fr){this.initFrame(),this.initBaseData(ur,dr,fr),this.initTransform(ur,dr,fr),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var ur=this.baseElement||this.layerElement;ur.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var ur=this.baseElement||this.layerElement;ur.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(ur){this._mdf=!1,this.prepareRenderableFrame(ur),this.prepareProperties(ur,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(ct)],RenderableDOMElement)})();function IImageElement(ct,Dn,ur){this.assetData=Dn.getAssetData(ct.refId),this.assetData&&this.assetData.sid&&(this.assetData=Dn.slotManager.getProp(this.assetData)),this.initElement(ct,Dn,ur),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 ct=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",ct),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(ct,Dn){this.elem=ct,this.pos=Dn}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(Dn){var ur,dr=this.shapeModifiers.length;for(ur=0;ur<dr;ur+=1)this.shapeModifiers[ur].addShape(Dn)},isShapeInAnimatedModifiers:function(Dn){for(var ur=0,dr=this.shapeModifiers.length;ur<dr;)if(this.shapeModifiers[ur].isAnimatedWithShape(Dn))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var Dn,ur=this.shapes.length;for(Dn=0;Dn<ur;Dn+=1)this.shapes[Dn].sh.reset();ur=this.shapeModifiers.length;var dr;for(Dn=ur-1;Dn>=0&&(dr=this.shapeModifiers[Dn].processShapes(this._isFirstFrame),!dr);Dn-=1);}},searchProcessedElement:function(Dn){for(var ur=this.processedElements,dr=0,fr=ur.length;dr<fr;){if(ur[dr].elem===Dn)return ur[dr].pos;dr+=1}return 0},addProcessedElement:function(Dn,ur){for(var dr=this.processedElements,fr=dr.length;fr;)if(fr-=1,dr[fr].elem===Dn){dr[fr].pos=ur;return}dr.push(new ProcessedElement(Dn,ur))},prepareFrame:function(Dn){this.prepareRenderableFrame(Dn),this.prepareProperties(Dn,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(ct,Dn,ur){this.caches=[],this.styles=[],this.transformers=ct,this.lStr="",this.sh=ur,this.lvl=Dn,this._isAnimated=!!ur.k;for(var dr=0,fr=ct.length;dr<fr;){if(ct[dr].mProps.dynamicProperties.length){this._isAnimated=!0;break}dr+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(ct,Dn){this.data=ct,this.type=ct.ty,this.d="",this.lvl=Dn,this._mdf=!1,this.closed=ct.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(ct,Dn,ur,dr){this.elem=ct,this.frameId=-1,this.dataProps=createSizedArray(Dn.length),this.renderer=ur,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",Dn.length?Dn.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(dr);var fr,hr=Dn.length||0,vr;for(fr=0;fr<hr;fr+=1)vr=PropertyFactory.getProp(ct,Dn[fr].v,0,0,this),this.k=vr.k||this.k,this.dataProps[fr]={n:Dn[fr].n,p:vr};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(ct){if(!(this.elem.globalData.frameId===this.frameId&&!ct)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||ct,this._mdf)){var Dn=0,ur=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),Dn=0;Dn<ur;Dn+=1)this.dataProps[Dn].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[Dn].p.v:this.dashArray[Dn]=this.dataProps[Dn].p.v:this.dashoffset[0]=this.dataProps[Dn].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(ct,Dn,ur){this.initDynamicPropertyContainer(ct),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(ct,Dn.o,0,.01,this),this.w=PropertyFactory.getProp(ct,Dn.w,0,null,this),this.d=new DashProperty(ct,Dn.d||{},"svg",this),this.c=PropertyFactory.getProp(ct,Dn.c,1,255,this),this.style=ur,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(ct,Dn,ur){this.initDynamicPropertyContainer(ct),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(ct,Dn.o,0,.01,this),this.c=PropertyFactory.getProp(ct,Dn.c,1,255,this),this.style=ur}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(ct,Dn,ur){this.initDynamicPropertyContainer(ct),this.getValue=this.iterateDynamicProperties,this.style=ur}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(ct,Dn,ur){this.data=Dn,this.c=createTypedArray("uint8c",Dn.p*4);var dr=Dn.k.k[0].s?Dn.k.k[0].s.length-Dn.p*4:Dn.k.k.length-Dn.p*4;this.o=createTypedArray("float32",dr),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=dr,this.initDynamicPropertyContainer(ur),this.prop=PropertyFactory.getProp(ct,Dn.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(ct,Dn){for(var ur=0,dr=this.o.length/2,fr;ur<dr;){if(fr=Math.abs(ct[ur*4]-ct[Dn*4+ur*2]),fr>.01)return!1;ur+=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 ct=0,Dn=this.data.k.k.length;ct<Dn;){if(!this.comparePoints(this.data.k.k[ct].s,this.data.p))return!1;ct+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(ct){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||ct){var Dn,ur=this.data.p*4,dr,fr;for(Dn=0;Dn<ur;Dn+=1)dr=Dn%4===0?100:255,fr=Math.round(this.prop.v[Dn]*dr),this.c[Dn]!==fr&&(this.c[Dn]=fr,this._cmdf=!ct);if(this.o.length)for(ur=this.prop.v.length,Dn=this.data.p*4;Dn<ur;Dn+=1)dr=Dn%2===0?100:1,fr=Dn%2===0?Math.round(this.prop.v[Dn]*100):this.prop.v[Dn],this.o[Dn-this.data.p*4]!==fr&&(this.o[Dn-this.data.p*4]=fr,this._omdf=!ct);this._mdf=!ct}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(ct,Dn,ur){this.initDynamicPropertyContainer(ct),this.getValue=this.iterateDynamicProperties,this.initGradientData(ct,Dn,ur)}SVGGradientFillStyleData.prototype.initGradientData=function(ct,Dn,ur){this.o=PropertyFactory.getProp(ct,Dn.o,0,.01,this),this.s=PropertyFactory.getProp(ct,Dn.s,1,null,this),this.e=PropertyFactory.getProp(ct,Dn.e,1,null,this),this.h=PropertyFactory.getProp(ct,Dn.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(ct,Dn.a||{k:0},0,degToRads,this),this.g=new GradientProperty(ct,Dn.g,this),this.style=ur,this.stops=[],this.setGradientData(ur.pElem,Dn),this.setGradientOpacity(Dn,ur),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(ct,Dn){var ur=createElementID(),dr=createNS(Dn.t===1?"linearGradient":"radialGradient");dr.setAttribute("id",ur),dr.setAttribute("spreadMethod","pad"),dr.setAttribute("gradientUnits","userSpaceOnUse");var fr=[],hr,vr,pr;for(pr=Dn.g.p*4,vr=0;vr<pr;vr+=4)hr=createNS("stop"),dr.appendChild(hr),fr.push(hr);ct.setAttribute(Dn.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+ur+")"),this.gf=dr,this.cst=fr},SVGGradientFillStyleData.prototype.setGradientOpacity=function(ct,Dn){if(this.g._hasOpacity&&!this.g._collapsable){var ur,dr,fr,hr=createNS("mask"),vr=createNS("path");hr.appendChild(vr);var pr=createElementID(),mr=createElementID();hr.setAttribute("id",mr);var gr=createNS(ct.t===1?"linearGradient":"radialGradient");gr.setAttribute("id",pr),gr.setAttribute("spreadMethod","pad"),gr.setAttribute("gradientUnits","userSpaceOnUse"),fr=ct.g.k.k[0].s?ct.g.k.k[0].s.length:ct.g.k.k.length;var yr=this.stops;for(dr=ct.g.p*4;dr<fr;dr+=2)ur=createNS("stop"),ur.setAttribute("stop-color","rgb(255,255,255)"),gr.appendChild(ur),yr.push(ur);vr.setAttribute(ct.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+pr+")"),ct.ty==="gs"&&(vr.setAttribute("stroke-linecap",lineCapEnum[ct.lc||2]),vr.setAttribute("stroke-linejoin",lineJoinEnum[ct.lj||2]),ct.lj===1&&vr.setAttribute("stroke-miterlimit",ct.ml)),this.of=gr,this.ms=hr,this.ost=yr,this.maskId=mr,Dn.msElem=vr}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(ct,Dn,ur){this.initDynamicPropertyContainer(ct),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(ct,Dn.w,0,null,this),this.d=new DashProperty(ct,Dn.d||{},"svg",this),this.initGradientData(ct,Dn,ur),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(ct,Dn,ur){this.transform={mProps:ct,op:Dn,container:ur},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(Dn,ur,dr,fr){if(ur===0)return"";var hr=Dn.o,vr=Dn.i,pr=Dn.v,mr,gr=" M"+fr.applyToPointStringified(pr[0][0],pr[0][1]);for(mr=1;mr<ur;mr+=1)gr+=" C"+fr.applyToPointStringified(hr[mr-1][0],hr[mr-1][1])+" "+fr.applyToPointStringified(vr[mr][0],vr[mr][1])+" "+fr.applyToPointStringified(pr[mr][0],pr[mr][1]);return dr&&ur&&(gr+=" C"+fr.applyToPointStringified(hr[mr-1][0],hr[mr-1][1])+" "+fr.applyToPointStringified(vr[0][0],vr[0][1])+" "+fr.applyToPointStringified(pr[0][0],pr[0][1]),gr+="z"),gr},SVGElementsRenderer=function(){var ct=new Matrix,Dn=new Matrix,ur={createRenderFunction:dr};function dr(Cr){switch(Cr.ty){case"fl":return pr;case"gf":return gr;case"gs":return mr;case"st":return yr;case"sh":case"el":case"rc":case"sr":return vr;case"tr":return fr;case"no":return hr;default:return null}}function fr(Cr,br,Ar){(Ar||br.transform.op._mdf)&&br.transform.container.setAttribute("opacity",br.transform.op.v),(Ar||br.transform.mProps._mdf)&&br.transform.container.setAttribute("transform",br.transform.mProps.v.to2dCSS())}function hr(){}function vr(Cr,br,Ar){var wr,_r,Tr,Er,xr,Sr,kr=br.styles.length,Pr=br.lvl,Ir,Br,Or,Nr;for(Sr=0;Sr<kr;Sr+=1){if(Er=br.sh._mdf||Ar,br.styles[Sr].lvl<Pr){for(Br=Dn.reset(),Or=Pr-br.styles[Sr].lvl,Nr=br.transformers.length-1;!Er&&Or>0;)Er=br.transformers[Nr].mProps._mdf||Er,Or-=1,Nr-=1;if(Er)for(Or=Pr-br.styles[Sr].lvl,Nr=br.transformers.length-1;Or>0;)Br.multiply(br.transformers[Nr].mProps.v),Or-=1,Nr-=1}else Br=ct;if(Ir=br.sh.paths,_r=Ir._length,Er){for(Tr="",wr=0;wr<_r;wr+=1)xr=Ir.shapes[wr],xr&&xr._length&&(Tr+=buildShapeString(xr,xr._length,xr.c,Br));br.caches[Sr]=Tr}else Tr=br.caches[Sr];br.styles[Sr].d+=Cr.hd===!0?"":Tr,br.styles[Sr]._mdf=Er||br.styles[Sr]._mdf}}function pr(Cr,br,Ar){var wr=br.style;(br.c._mdf||Ar)&&wr.pElem.setAttribute("fill","rgb("+bmFloor(br.c.v[0])+","+bmFloor(br.c.v[1])+","+bmFloor(br.c.v[2])+")"),(br.o._mdf||Ar)&&wr.pElem.setAttribute("fill-opacity",br.o.v)}function mr(Cr,br,Ar){gr(Cr,br,Ar),yr(Cr,br,Ar)}function gr(Cr,br,Ar){var wr=br.gf,_r=br.g._hasOpacity,Tr=br.s.v,Er=br.e.v;if(br.o._mdf||Ar){var xr=Cr.ty==="gf"?"fill-opacity":"stroke-opacity";br.style.pElem.setAttribute(xr,br.o.v)}if(br.s._mdf||Ar){var Sr=Cr.t===1?"x1":"cx",kr=Sr==="x1"?"y1":"cy";wr.setAttribute(Sr,Tr[0]),wr.setAttribute(kr,Tr[1]),_r&&!br.g._collapsable&&(br.of.setAttribute(Sr,Tr[0]),br.of.setAttribute(kr,Tr[1]))}var Pr,Ir,Br,Or;if(br.g._cmdf||Ar){Pr=br.cst;var Nr=br.g.c;for(Br=Pr.length,Ir=0;Ir<Br;Ir+=1)Or=Pr[Ir],Or.setAttribute("offset",Nr[Ir*4]+"%"),Or.setAttribute("stop-color","rgb("+Nr[Ir*4+1]+","+Nr[Ir*4+2]+","+Nr[Ir*4+3]+")")}if(_r&&(br.g._omdf||Ar)){var jr=br.g.o;for(br.g._collapsable?Pr=br.cst:Pr=br.ost,Br=Pr.length,Ir=0;Ir<Br;Ir+=1)Or=Pr[Ir],br.g._collapsable||Or.setAttribute("offset",jr[Ir*2]+"%"),Or.setAttribute("stop-opacity",jr[Ir*2+1])}if(Cr.t===1)(br.e._mdf||Ar)&&(wr.setAttribute("x2",Er[0]),wr.setAttribute("y2",Er[1]),_r&&!br.g._collapsable&&(br.of.setAttribute("x2",Er[0]),br.of.setAttribute("y2",Er[1])));else{var Vr;if((br.s._mdf||br.e._mdf||Ar)&&(Vr=Math.sqrt(Math.pow(Tr[0]-Er[0],2)+Math.pow(Tr[1]-Er[1],2)),wr.setAttribute("r",Vr),_r&&!br.g._collapsable&&br.of.setAttribute("r",Vr)),br.e._mdf||br.h._mdf||br.a._mdf||Ar){Vr||(Vr=Math.sqrt(Math.pow(Tr[0]-Er[0],2)+Math.pow(Tr[1]-Er[1],2)));var $r=Math.atan2(Er[1]-Tr[1],Er[0]-Tr[0]),zr=br.h.v;zr>=1?zr=.99:zr<=-1&&(zr=-.99);var Wr=Vr*zr,qr=Math.cos($r+br.a.v)*Wr+Tr[0],Mr=Math.sin($r+br.a.v)*Wr+Tr[1];wr.setAttribute("fx",qr),wr.setAttribute("fy",Mr),_r&&!br.g._collapsable&&(br.of.setAttribute("fx",qr),br.of.setAttribute("fy",Mr))}}}function yr(Cr,br,Ar){var wr=br.style,_r=br.d;_r&&(_r._mdf||Ar)&&_r.dashStr&&(wr.pElem.setAttribute("stroke-dasharray",_r.dashStr),wr.pElem.setAttribute("stroke-dashoffset",_r.dashoffset[0])),br.c&&(br.c._mdf||Ar)&&wr.pElem.setAttribute("stroke","rgb("+bmFloor(br.c.v[0])+","+bmFloor(br.c.v[1])+","+bmFloor(br.c.v[2])+")"),(br.o._mdf||Ar)&&wr.pElem.setAttribute("stroke-opacity",br.o.v),(br.w._mdf||Ar)&&(wr.pElem.setAttribute("stroke-width",br.w.v),wr.msElem&&wr.msElem.setAttribute("stroke-width",br.w.v))}return ur}();function SVGShapeElement(ct,Dn,ur){this.shapes=[],this.shapesData=ct.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(ct,Dn,ur),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 ct,Dn=this.shapes.length,ur,dr,fr=this.stylesList.length,hr,vr=[],pr=!1;for(dr=0;dr<fr;dr+=1){for(hr=this.stylesList[dr],pr=!1,vr.length=0,ct=0;ct<Dn;ct+=1)ur=this.shapes[ct],ur.styles.indexOf(hr)!==-1&&(vr.push(ur),pr=ur._isAnimated||pr);vr.length>1&&pr&&this.setShapesAsAnimated(vr)}},SVGShapeElement.prototype.setShapesAsAnimated=function(ct){var Dn,ur=ct.length;for(Dn=0;Dn<ur;Dn+=1)ct[Dn].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(ct,Dn){var ur,dr=new SVGStyleData(ct,Dn),fr=dr.pElem;if(ct.ty==="st")ur=new SVGStrokeStyleData(this,ct,dr);else if(ct.ty==="fl")ur=new SVGFillStyleData(this,ct,dr);else if(ct.ty==="gf"||ct.ty==="gs"){var hr=ct.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;ur=new hr(this,ct,dr),this.globalData.defs.appendChild(ur.gf),ur.maskId&&(this.globalData.defs.appendChild(ur.ms),this.globalData.defs.appendChild(ur.of),fr.setAttribute("mask","url("+getLocationHref()+"#"+ur.maskId+")"))}else ct.ty==="no"&&(ur=new SVGNoStyleData(this,ct,dr));return(ct.ty==="st"||ct.ty==="gs")&&(fr.setAttribute("stroke-linecap",lineCapEnum[ct.lc||2]),fr.setAttribute("stroke-linejoin",lineJoinEnum[ct.lj||2]),fr.setAttribute("fill-opacity","0"),ct.lj===1&&fr.setAttribute("stroke-miterlimit",ct.ml)),ct.r===2&&fr.setAttribute("fill-rule","evenodd"),ct.ln&&fr.setAttribute("id",ct.ln),ct.cl&&fr.setAttribute("class",ct.cl),ct.bm&&(fr.style["mix-blend-mode"]=getBlendMode(ct.bm)),this.stylesList.push(dr),this.addToAnimatedContents(ct,ur),ur},SVGShapeElement.prototype.createGroupElement=function(ct){var Dn=new ShapeGroupData;return ct.ln&&Dn.gr.setAttribute("id",ct.ln),ct.cl&&Dn.gr.setAttribute("class",ct.cl),ct.bm&&(Dn.gr.style["mix-blend-mode"]=getBlendMode(ct.bm)),Dn},SVGShapeElement.prototype.createTransformElement=function(ct,Dn){var ur=TransformPropertyFactory.getTransformProperty(this,ct,this),dr=new SVGTransformData(ur,ur.o,Dn);return this.addToAnimatedContents(ct,dr),dr},SVGShapeElement.prototype.createShapeElement=function(ct,Dn,ur){var dr=4;ct.ty==="rc"?dr=5:ct.ty==="el"?dr=6:ct.ty==="sr"&&(dr=7);var fr=ShapePropertyFactory.getShapeProp(this,ct,dr,this),hr=new SVGShapeData(Dn,ur,fr);return this.shapes.push(hr),this.addShapeToModifiers(hr),this.addToAnimatedContents(ct,hr),hr},SVGShapeElement.prototype.addToAnimatedContents=function(ct,Dn){for(var ur=0,dr=this.animatedContents.length;ur<dr;){if(this.animatedContents[ur].element===Dn)return;ur+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(ct),element:Dn,data:ct})},SVGShapeElement.prototype.setElementStyles=function(ct){var Dn=ct.styles,ur,dr=this.stylesList.length;for(ur=0;ur<dr;ur+=1)this.stylesList[ur].closed||Dn.push(this.stylesList[ur])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var ct,Dn=this.itemsData.length;for(ct=0;ct<Dn;ct+=1)this.prevViewData[ct]=this.itemsData[ct];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),Dn=this.dynamicProperties.length,ct=0;ct<Dn;ct+=1)this.dynamicProperties[ct].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(ct,Dn,ur,dr,fr,hr,vr){var pr=[].concat(hr),mr,gr=ct.length-1,yr,Cr,br=[],Ar=[],wr,_r,Tr;for(mr=gr;mr>=0;mr-=1){if(Tr=this.searchProcessedElement(ct[mr]),Tr?Dn[mr]=ur[Tr-1]:ct[mr]._render=vr,ct[mr].ty==="fl"||ct[mr].ty==="st"||ct[mr].ty==="gf"||ct[mr].ty==="gs"||ct[mr].ty==="no")Tr?Dn[mr].style.closed=!1:Dn[mr]=this.createStyleElement(ct[mr],fr),ct[mr]._render&&Dn[mr].style.pElem.parentNode!==dr&&dr.appendChild(Dn[mr].style.pElem),br.push(Dn[mr].style);else if(ct[mr].ty==="gr"){if(!Tr)Dn[mr]=this.createGroupElement(ct[mr]);else for(Cr=Dn[mr].it.length,yr=0;yr<Cr;yr+=1)Dn[mr].prevViewData[yr]=Dn[mr].it[yr];this.searchShapes(ct[mr].it,Dn[mr].it,Dn[mr].prevViewData,Dn[mr].gr,fr+1,pr,vr),ct[mr]._render&&Dn[mr].gr.parentNode!==dr&&dr.appendChild(Dn[mr].gr)}else ct[mr].ty==="tr"?(Tr||(Dn[mr]=this.createTransformElement(ct[mr],dr)),wr=Dn[mr].transform,pr.push(wr)):ct[mr].ty==="sh"||ct[mr].ty==="rc"||ct[mr].ty==="el"||ct[mr].ty==="sr"?(Tr||(Dn[mr]=this.createShapeElement(ct[mr],pr,fr)),this.setElementStyles(Dn[mr])):ct[mr].ty==="tm"||ct[mr].ty==="rd"||ct[mr].ty==="ms"||ct[mr].ty==="pb"||ct[mr].ty==="zz"||ct[mr].ty==="op"?(Tr?(_r=Dn[mr],_r.closed=!1):(_r=ShapeModifiers.getModifier(ct[mr].ty),_r.init(this,ct[mr]),Dn[mr]=_r,this.shapeModifiers.push(_r)),Ar.push(_r)):ct[mr].ty==="rp"&&(Tr?(_r=Dn[mr],_r.closed=!0):(_r=ShapeModifiers.getModifier(ct[mr].ty),Dn[mr]=_r,_r.init(this,ct,mr,Dn),this.shapeModifiers.push(_r),vr=!1),Ar.push(_r));this.addProcessedElement(ct[mr],mr+1)}for(gr=br.length,mr=0;mr<gr;mr+=1)br[mr].closed=!0;for(gr=Ar.length,mr=0;mr<gr;mr+=1)Ar[mr].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var ct,Dn=this.stylesList.length;for(ct=0;ct<Dn;ct+=1)this.stylesList[ct].reset();for(this.renderShape(),ct=0;ct<Dn;ct+=1)(this.stylesList[ct]._mdf||this._isFirstFrame)&&(this.stylesList[ct].msElem&&(this.stylesList[ct].msElem.setAttribute("d",this.stylesList[ct].d),this.stylesList[ct].d="M0 0"+this.stylesList[ct].d),this.stylesList[ct].pElem.setAttribute("d",this.stylesList[ct].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var ct,Dn=this.animatedContents.length,ur;for(ct=0;ct<Dn;ct+=1)ur=this.animatedContents[ct],(this._isFirstFrame||ur.element._isAnimated)&&ur.data!==!0&&ur.fn(ur.data,ur.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(ct,Dn,ur,dr,fr,hr){this.o=ct,this.sw=Dn,this.sc=ur,this.fc=dr,this.m=fr,this.p=hr,this._mdf={o:!0,sw:!!Dn,sc:!!ur,fc:!!dr,m:!0,p:!0}}LetterProps.prototype.update=function(ct,Dn,ur,dr,fr,hr){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 vr=!1;return this.o!==ct&&(this.o=ct,this._mdf.o=!0,vr=!0),this.sw!==Dn&&(this.sw=Dn,this._mdf.sw=!0,vr=!0),this.sc!==ur&&(this.sc=ur,this._mdf.sc=!0,vr=!0),this.fc!==dr&&(this.fc=dr,this._mdf.fc=!0,vr=!0),this.m!==fr&&(this.m=fr,this._mdf.m=!0,vr=!0),hr.length&&(this.p[0]!==hr[0]||this.p[1]!==hr[1]||this.p[4]!==hr[4]||this.p[5]!==hr[5]||this.p[12]!==hr[12]||this.p[13]!==hr[13])&&(this.p=hr,this._mdf.p=!0,vr=!0),vr};function TextProperty(ct,Dn){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,Dn.d&&Dn.d.sid&&(Dn.d=ct.globalData.slotManager.getProp(Dn.d)),this.data=Dn,this.elem=ct,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(ct,Dn){for(var ur in Dn)Object.prototype.hasOwnProperty.call(Dn,ur)&&(ct[ur]=Dn[ur]);return ct},TextProperty.prototype.setCurrentData=function(ct){ct.__complete||this.completeTextData(ct),this.currentData=ct,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(ct){this.effectsSequence.push(ct),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(ct){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!ct)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var Dn=this.currentData,ur=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var dr,fr=this.effectsSequence.length,hr=ct||this.data.d.k[this.keysIndex].s;for(dr=0;dr<fr;dr+=1)ur!==this.keysIndex?hr=this.effectsSequence[dr](hr,hr.t):hr=this.effectsSequence[dr](this.currentData,hr.t);Dn!==hr&&this.setCurrentData(hr),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var ct=this.data.d.k,Dn=this.elem.comp.renderedFrame,ur=0,dr=ct.length;ur<=dr-1&&!(ur===dr-1||ct[ur+1].t>Dn);)ur+=1;return this.keysIndex!==ur&&(this.keysIndex=ur),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(ct){for(var Dn=[],ur=0,dr=ct.length,fr,hr,vr=!1,pr=!1,mr="";ur<dr;)vr=pr,pr=!1,fr=ct.charCodeAt(ur),mr=ct.charAt(ur),FontManager.isCombinedCharacter(fr)?vr=!0:fr>=55296&&fr<=56319?FontManager.isRegionalFlag(ct,ur)?mr=ct.substr(ur,14):(hr=ct.charCodeAt(ur+1),hr>=56320&&hr<=57343&&(FontManager.isModifier(fr,hr)?(mr=ct.substr(ur,2),vr=!0):FontManager.isFlagEmoji(ct.substr(ur,4))?mr=ct.substr(ur,4):mr=ct.substr(ur,2))):fr>56319?(hr=ct.charCodeAt(ur+1),FontManager.isVariationSelector(fr)&&(vr=!0)):FontManager.isZeroWidthJoiner(fr)&&(vr=!0,pr=!0),vr?(Dn[Dn.length-1]+=mr,vr=!1):Dn.push(mr),ur+=mr.length;return Dn},TextProperty.prototype.completeTextData=function(ct){ct.__complete=!0;var Dn=this.elem.globalData.fontManager,ur=this.data,dr=[],fr,hr,vr,pr=0,mr,gr=ur.m.g,yr=0,Cr=0,br=0,Ar=[],wr=0,_r=0,Tr,Er,xr=Dn.getFontByName(ct.f),Sr,kr=0,Pr=getFontProperties(xr);ct.fWeight=Pr.weight,ct.fStyle=Pr.style,ct.finalSize=ct.s,ct.finalText=this.buildFinalText(ct.t),hr=ct.finalText.length,ct.finalLineHeight=ct.lh;var Ir=ct.tr/1e3*ct.finalSize,Br;if(ct.sz)for(var Or=!0,Nr=ct.sz[0],jr=ct.sz[1],Vr,$r;Or;){$r=this.buildFinalText(ct.t),Vr=0,wr=0,hr=$r.length,Ir=ct.tr/1e3*ct.finalSize;var zr=-1;for(fr=0;fr<hr;fr+=1)Br=$r[fr].charCodeAt(0),vr=!1,$r[fr]===" "?zr=fr:(Br===13||Br===3)&&(wr=0,vr=!0,Vr+=ct.finalLineHeight||ct.finalSize*1.2),Dn.chars?(Sr=Dn.getCharData($r[fr],xr.fStyle,xr.fFamily),kr=vr?0:Sr.w*ct.finalSize/100):kr=Dn.measureText($r[fr],ct.f,ct.finalSize),wr+kr>Nr&&$r[fr]!==" "?(zr===-1?hr+=1:fr=zr,Vr+=ct.finalLineHeight||ct.finalSize*1.2,$r.splice(fr,zr===fr?1:0,"\r"),zr=-1,wr=0):(wr+=kr,wr+=Ir);Vr+=xr.ascent*ct.finalSize/100,this.canResize&&ct.finalSize>this.minimumFontSize&&jr<Vr?(ct.finalSize-=1,ct.finalLineHeight=ct.finalSize*ct.lh/ct.s):(ct.finalText=$r,hr=ct.finalText.length,Or=!1)}wr=-Ir,kr=0;var Wr=0,qr;for(fr=0;fr<hr;fr+=1)if(vr=!1,qr=ct.finalText[fr],Br=qr.charCodeAt(0),Br===13||Br===3?(Wr=0,Ar.push(wr),_r=wr>_r?wr:_r,wr=-2*Ir,mr="",vr=!0,br+=1):mr=qr,Dn.chars?(Sr=Dn.getCharData(qr,xr.fStyle,Dn.getFontByName(ct.f).fFamily),kr=vr?0:Sr.w*ct.finalSize/100):kr=Dn.measureText(mr,ct.f,ct.finalSize),qr===" "?Wr+=kr+Ir:(wr+=kr+Ir+Wr,Wr=0),dr.push({l:kr,an:kr,add:yr,n:vr,anIndexes:[],val:mr,line:br,animatorJustifyOffset:0}),gr==2){if(yr+=kr,mr===""||mr===" "||fr===hr-1){for((mr===""||mr===" ")&&(yr-=kr);Cr<=fr;)dr[Cr].an=yr,dr[Cr].ind=pr,dr[Cr].extra=kr,Cr+=1;pr+=1,yr=0}}else if(gr==3){if(yr+=kr,mr===""||fr===hr-1){for(mr===""&&(yr-=kr);Cr<=fr;)dr[Cr].an=yr,dr[Cr].ind=pr,dr[Cr].extra=kr,Cr+=1;yr=0,pr+=1}}else dr[pr].ind=pr,dr[pr].extra=0,pr+=1;if(ct.l=dr,_r=wr>_r?wr:_r,Ar.push(wr),ct.sz)ct.boxWidth=ct.sz[0],ct.justifyOffset=0;else switch(ct.boxWidth=_r,ct.j){case 1:ct.justifyOffset=-ct.boxWidth;break;case 2:ct.justifyOffset=-ct.boxWidth/2;break;default:ct.justifyOffset=0}ct.lineWidths=Ar;var Mr=ur.a,Lr,Fr;Er=Mr.length;var Dr,Gr,Rr=[];for(Tr=0;Tr<Er;Tr+=1){for(Lr=Mr[Tr],Lr.a.sc&&(ct.strokeColorAnim=!0),Lr.a.sw&&(ct.strokeWidthAnim=!0),(Lr.a.fc||Lr.a.fh||Lr.a.fs||Lr.a.fb)&&(ct.fillColorAnim=!0),Gr=0,Dr=Lr.s.b,fr=0;fr<hr;fr+=1)Fr=dr[fr],Fr.anIndexes[Tr]=Gr,(Dr==1&&Fr.val!==""||Dr==2&&Fr.val!==""&&Fr.val!==" "||Dr==3&&(Fr.n||Fr.val==" "||fr==hr-1)||Dr==4&&(Fr.n||fr==hr-1))&&(Lr.s.rn===1&&Rr.push(Gr),Gr+=1);ur.a[Tr].s.totalChars=Gr;var Qr=-1,Kr;if(Lr.s.rn===1)for(fr=0;fr<hr;fr+=1)Fr=dr[fr],Qr!=Fr.anIndexes[Tr]&&(Qr=Fr.anIndexes[Tr],Kr=Rr.splice(Math.floor(Math.random()*Rr.length),1)[0]),Fr.anIndexes[Tr]=Kr}ct.yOffset=ct.finalLineHeight||ct.finalSize*1.2,ct.ls=ct.ls||0,ct.ascent=xr.ascent*ct.finalSize/100},TextProperty.prototype.updateDocumentData=function(ct,Dn){Dn=Dn===void 0?this.keysIndex:Dn;var ur=this.copyData({},this.data.d.k[Dn].s);ur=this.copyData(ur,ct),this.data.d.k[Dn].s=ur,this.recalculate(Dn),this.setCurrentData(ur),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(ct){var Dn=this.data.d.k[ct].s;Dn.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(Dn)},TextProperty.prototype.canResizeFont=function(ct){this.canResize=ct,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(ct){this.minimumFontSize=Math.floor(ct)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var ct=Math.max,Dn=Math.min,ur=Math.floor;function dr(hr,vr){this._currentTextLength=-1,this.k=!1,this.data=vr,this.elem=hr,this.comp=hr.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(hr),this.s=PropertyFactory.getProp(hr,vr.s||{k:0},0,0,this),"e"in vr?this.e=PropertyFactory.getProp(hr,vr.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(hr,vr.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(hr,vr.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(hr,vr.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(hr,vr.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(hr,vr.a,0,.01,this),this.dynamicProperties.length||this.getValue()}dr.prototype={getMult:function(vr){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var pr=0,mr=0,gr=1,yr=1;this.ne.v>0?pr=this.ne.v/100:mr=-this.ne.v/100,this.xe.v>0?gr=1-this.xe.v/100:yr=1+this.xe.v/100;var Cr=BezierFactory.getBezierEasing(pr,mr,gr,yr).get,br=0,Ar=this.finalS,wr=this.finalE,_r=this.data.sh;if(_r===2)wr===Ar?br=vr>=wr?1:0:br=ct(0,Dn(.5/(wr-Ar)+(vr-Ar)/(wr-Ar),1)),br=Cr(br);else if(_r===3)wr===Ar?br=vr>=wr?0:1:br=1-ct(0,Dn(.5/(wr-Ar)+(vr-Ar)/(wr-Ar),1)),br=Cr(br);else if(_r===4)wr===Ar?br=0:(br=ct(0,Dn(.5/(wr-Ar)+(vr-Ar)/(wr-Ar),1)),br<.5?br*=2:br=1-2*(br-.5)),br=Cr(br);else if(_r===5){if(wr===Ar)br=0;else{var Tr=wr-Ar;vr=Dn(ct(0,vr+.5-Ar),wr-Ar);var Er=-Tr/2+vr,xr=Tr/2;br=Math.sqrt(1-Er*Er/(xr*xr))}br=Cr(br)}else _r===6?(wr===Ar?br=0:(vr=Dn(ct(0,vr+.5-Ar),wr-Ar),br=(1+Math.cos(Math.PI+Math.PI*2*vr/(wr-Ar)))/2),br=Cr(br)):(vr>=ur(Ar)&&(vr-Ar<0?br=ct(0,Dn(Dn(wr,1)-(Ar-vr),1)):br=ct(0,Dn(wr-vr,1))),br=Cr(br));if(this.sm.v!==100){var Sr=this.sm.v*.01;Sr===0&&(Sr=1e-8);var kr=.5-Sr*.5;br<kr?br=0:(br=(br-kr)/Sr,br>1&&(br=1))}return br*this.a.v},getValue:function(vr){this.iterateDynamicProperties(),this._mdf=vr||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,vr&&this.data.r===2&&(this.e.v=this._currentTextLength);var pr=this.data.r===2?1:100/this.data.totalChars,mr=this.o.v/pr,gr=this.s.v/pr+mr,yr=this.e.v/pr+mr;if(gr>yr){var Cr=gr;gr=yr,yr=Cr}this.finalS=gr,this.finalE=yr}},extendPrototype([DynamicPropertyContainer],dr);function fr(hr,vr,pr){return new dr(hr,vr)}return{getTextSelectorProp:fr}}();function TextAnimatorDataProperty(ct,Dn,ur){var dr={propType:!1},fr=PropertyFactory.getProp,hr=Dn.a;this.a={r:hr.r?fr(ct,hr.r,0,degToRads,ur):dr,rx:hr.rx?fr(ct,hr.rx,0,degToRads,ur):dr,ry:hr.ry?fr(ct,hr.ry,0,degToRads,ur):dr,sk:hr.sk?fr(ct,hr.sk,0,degToRads,ur):dr,sa:hr.sa?fr(ct,hr.sa,0,degToRads,ur):dr,s:hr.s?fr(ct,hr.s,1,.01,ur):dr,a:hr.a?fr(ct,hr.a,1,0,ur):dr,o:hr.o?fr(ct,hr.o,0,.01,ur):dr,p:hr.p?fr(ct,hr.p,1,0,ur):dr,sw:hr.sw?fr(ct,hr.sw,0,0,ur):dr,sc:hr.sc?fr(ct,hr.sc,1,0,ur):dr,fc:hr.fc?fr(ct,hr.fc,1,0,ur):dr,fh:hr.fh?fr(ct,hr.fh,0,0,ur):dr,fs:hr.fs?fr(ct,hr.fs,0,.01,ur):dr,fb:hr.fb?fr(ct,hr.fb,0,.01,ur):dr,t:hr.t?fr(ct,hr.t,0,0,ur):dr},this.s=TextSelectorProp.getTextSelectorProp(ct,Dn.s,ur),this.s.t=Dn.s.t}function TextAnimatorProperty(ct,Dn,ur){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=ct,this._renderType=Dn,this._elem=ur,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(ur)}TextAnimatorProperty.prototype.searchProperties=function(){var ct,Dn=this._textData.a.length,ur,dr=PropertyFactory.getProp;for(ct=0;ct<Dn;ct+=1)ur=this._textData.a[ct],this._animatorsData[ct]=new TextAnimatorDataProperty(this._elem,ur,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:dr(this._elem,this._textData.p.a,0,0,this),f:dr(this._elem,this._textData.p.f,0,0,this),l:dr(this._elem,this._textData.p.l,0,0,this),r:dr(this._elem,this._textData.p.r,0,0,this),p:dr(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=dr(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(ct,Dn){if(this.lettersChangedFlag=Dn,!(!this._mdf&&!this._isFirstFrame&&!Dn&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var ur=this._moreOptions.alignment.v,dr=this._animatorsData,fr=this._textData,hr=this.mHelper,vr=this._renderType,pr=this.renderedLetters.length,mr,gr,yr,Cr,br=ct.l,Ar,wr,_r,Tr,Er,xr,Sr,kr,Pr,Ir,Br,Or,Nr,jr,Vr;if(this._hasMaskedPath){if(Vr=this._pathData.m,!this._pathData.n||this._pathData._mdf){var $r=Vr.v;this._pathData.r.v&&($r=$r.reverse()),Ar={tLength:0,segments:[]},Cr=$r._length-1;var zr;for(Or=0,yr=0;yr<Cr;yr+=1)zr=bez.buildBezierData($r.v[yr],$r.v[yr+1],[$r.o[yr][0]-$r.v[yr][0],$r.o[yr][1]-$r.v[yr][1]],[$r.i[yr+1][0]-$r.v[yr+1][0],$r.i[yr+1][1]-$r.v[yr+1][1]]),Ar.tLength+=zr.segmentLength,Ar.segments.push(zr),Or+=zr.segmentLength;yr=Cr,Vr.v.c&&(zr=bez.buildBezierData($r.v[yr],$r.v[0],[$r.o[yr][0]-$r.v[yr][0],$r.o[yr][1]-$r.v[yr][1]],[$r.i[0][0]-$r.v[0][0],$r.i[0][1]-$r.v[0][1]]),Ar.tLength+=zr.segmentLength,Ar.segments.push(zr),Or+=zr.segmentLength),this._pathData.pi=Ar}if(Ar=this._pathData.pi,wr=this._pathData.f.v,Sr=0,xr=1,Tr=0,Er=!0,Ir=Ar.segments,wr<0&&Vr.v.c)for(Ar.tLength<Math.abs(wr)&&(wr=-Math.abs(wr)%Ar.tLength),Sr=Ir.length-1,Pr=Ir[Sr].points,xr=Pr.length-1;wr<0;)wr+=Pr[xr].partialLength,xr-=1,xr<0&&(Sr-=1,Pr=Ir[Sr].points,xr=Pr.length-1);Pr=Ir[Sr].points,kr=Pr[xr-1],_r=Pr[xr],Br=_r.partialLength}Cr=br.length,mr=0,gr=0;var Wr=ct.finalSize*1.2*.714,qr=!0,Mr,Lr,Fr,Dr,Gr;Dr=dr.length;var Rr,Qr=-1,Kr,Hr,Ur,Jr=wr,Yr=Sr,si=xr,fi=-1,_i,bi,pi,mi,xi,ni,ai,Xr,vi="",Si=this.defaultPropsArray,ri;if(ct.j===2||ct.j===1){var yi=0,di=0,Ei=ct.j===2?-.5:-1,Oi=0,Li=!0;for(yr=0;yr<Cr;yr+=1)if(br[yr].n){for(yi&&(yi+=di);Oi<yr;)br[Oi].animatorJustifyOffset=yi,Oi+=1;yi=0,Li=!0}else{for(Fr=0;Fr<Dr;Fr+=1)Mr=dr[Fr].a,Mr.t.propType&&(Li&&ct.j===2&&(di+=Mr.t.v*Ei),Lr=dr[Fr].s,Rr=Lr.getMult(br[yr].anIndexes[Fr],fr.a[Fr].s.totalChars),Rr.length?yi+=Mr.t.v*Rr[0]*Ei:yi+=Mr.t.v*Rr*Ei);Li=!1}for(yi&&(yi+=di);Oi<yr;)br[Oi].animatorJustifyOffset=yi,Oi+=1}for(yr=0;yr<Cr;yr+=1){if(hr.reset(),_i=1,br[yr].n)mr=0,gr+=ct.yOffset,gr+=qr?1:0,wr=Jr,qr=!1,this._hasMaskedPath&&(Sr=Yr,xr=si,Pr=Ir[Sr].points,kr=Pr[xr-1],_r=Pr[xr],Br=_r.partialLength,Tr=0),vi="",Xr="",ni="",ri="",Si=this.defaultPropsArray;else{if(this._hasMaskedPath){if(fi!==br[yr].line){switch(ct.j){case 1:wr+=Or-ct.lineWidths[br[yr].line];break;case 2:wr+=(Or-ct.lineWidths[br[yr].line])/2;break}fi=br[yr].line}Qr!==br[yr].ind&&(br[Qr]&&(wr+=br[Qr].extra),wr+=br[yr].an/2,Qr=br[yr].ind),wr+=ur[0]*br[yr].an*.005;var Ri=0;for(Fr=0;Fr<Dr;Fr+=1)Mr=dr[Fr].a,Mr.p.propType&&(Lr=dr[Fr].s,Rr=Lr.getMult(br[yr].anIndexes[Fr],fr.a[Fr].s.totalChars),Rr.length?Ri+=Mr.p.v[0]*Rr[0]:Ri+=Mr.p.v[0]*Rr),Mr.a.propType&&(Lr=dr[Fr].s,Rr=Lr.getMult(br[yr].anIndexes[Fr],fr.a[Fr].s.totalChars),Rr.length?Ri+=Mr.a.v[0]*Rr[0]:Ri+=Mr.a.v[0]*Rr);for(Er=!0,this._pathData.a.v&&(wr=br[0].an*.5+(Or-this._pathData.f.v-br[0].an*.5-br[br.length-1].an*.5)*Qr/(Cr-1),wr+=this._pathData.f.v);Er;)Tr+Br>=wr+Ri||!Pr?(Nr=(wr+Ri-Tr)/_r.partialLength,Hr=kr.point[0]+(_r.point[0]-kr.point[0])*Nr,Ur=kr.point[1]+(_r.point[1]-kr.point[1])*Nr,hr.translate(-ur[0]*br[yr].an*.005,-(ur[1]*Wr)*.01),Er=!1):Pr&&(Tr+=_r.partialLength,xr+=1,xr>=Pr.length&&(xr=0,Sr+=1,Ir[Sr]?Pr=Ir[Sr].points:Vr.v.c?(xr=0,Sr=0,Pr=Ir[Sr].points):(Tr-=_r.partialLength,Pr=null)),Pr&&(kr=_r,_r=Pr[xr],Br=_r.partialLength));Kr=br[yr].an/2-br[yr].add,hr.translate(-Kr,0,0)}else Kr=br[yr].an/2-br[yr].add,hr.translate(-Kr,0,0),hr.translate(-ur[0]*br[yr].an*.005,-ur[1]*Wr*.01,0);for(Fr=0;Fr<Dr;Fr+=1)Mr=dr[Fr].a,Mr.t.propType&&(Lr=dr[Fr].s,Rr=Lr.getMult(br[yr].anIndexes[Fr],fr.a[Fr].s.totalChars),(mr!==0||ct.j!==0)&&(this._hasMaskedPath?Rr.length?wr+=Mr.t.v*Rr[0]:wr+=Mr.t.v*Rr:Rr.length?mr+=Mr.t.v*Rr[0]:mr+=Mr.t.v*Rr));for(ct.strokeWidthAnim&&(pi=ct.sw||0),ct.strokeColorAnim&&(ct.sc?bi=[ct.sc[0],ct.sc[1],ct.sc[2]]:bi=[0,0,0]),ct.fillColorAnim&&ct.fc&&(mi=[ct.fc[0],ct.fc[1],ct.fc[2]]),Fr=0;Fr<Dr;Fr+=1)Mr=dr[Fr].a,Mr.a.propType&&(Lr=dr[Fr].s,Rr=Lr.getMult(br[yr].anIndexes[Fr],fr.a[Fr].s.totalChars),Rr.length?hr.translate(-Mr.a.v[0]*Rr[0],-Mr.a.v[1]*Rr[1],Mr.a.v[2]*Rr[2]):hr.translate(-Mr.a.v[0]*Rr,-Mr.a.v[1]*Rr,Mr.a.v[2]*Rr));for(Fr=0;Fr<Dr;Fr+=1)Mr=dr[Fr].a,Mr.s.propType&&(Lr=dr[Fr].s,Rr=Lr.getMult(br[yr].anIndexes[Fr],fr.a[Fr].s.totalChars),Rr.length?hr.scale(1+(Mr.s.v[0]-1)*Rr[0],1+(Mr.s.v[1]-1)*Rr[1],1):hr.scale(1+(Mr.s.v[0]-1)*Rr,1+(Mr.s.v[1]-1)*Rr,1));for(Fr=0;Fr<Dr;Fr+=1){if(Mr=dr[Fr].a,Lr=dr[Fr].s,Rr=Lr.getMult(br[yr].anIndexes[Fr],fr.a[Fr].s.totalChars),Mr.sk.propType&&(Rr.length?hr.skewFromAxis(-Mr.sk.v*Rr[0],Mr.sa.v*Rr[1]):hr.skewFromAxis(-Mr.sk.v*Rr,Mr.sa.v*Rr)),Mr.r.propType&&(Rr.length?hr.rotateZ(-Mr.r.v*Rr[2]):hr.rotateZ(-Mr.r.v*Rr)),Mr.ry.propType&&(Rr.length?hr.rotateY(Mr.ry.v*Rr[1]):hr.rotateY(Mr.ry.v*Rr)),Mr.rx.propType&&(Rr.length?hr.rotateX(Mr.rx.v*Rr[0]):hr.rotateX(Mr.rx.v*Rr)),Mr.o.propType&&(Rr.length?_i+=(Mr.o.v*Rr[0]-_i)*Rr[0]:_i+=(Mr.o.v*Rr-_i)*Rr),ct.strokeWidthAnim&&Mr.sw.propType&&(Rr.length?pi+=Mr.sw.v*Rr[0]:pi+=Mr.sw.v*Rr),ct.strokeColorAnim&&Mr.sc.propType)for(xi=0;xi<3;xi+=1)Rr.length?bi[xi]+=(Mr.sc.v[xi]-bi[xi])*Rr[0]:bi[xi]+=(Mr.sc.v[xi]-bi[xi])*Rr;if(ct.fillColorAnim&&ct.fc){if(Mr.fc.propType)for(xi=0;xi<3;xi+=1)Rr.length?mi[xi]+=(Mr.fc.v[xi]-mi[xi])*Rr[0]:mi[xi]+=(Mr.fc.v[xi]-mi[xi])*Rr;Mr.fh.propType&&(Rr.length?mi=addHueToRGB(mi,Mr.fh.v*Rr[0]):mi=addHueToRGB(mi,Mr.fh.v*Rr)),Mr.fs.propType&&(Rr.length?mi=addSaturationToRGB(mi,Mr.fs.v*Rr[0]):mi=addSaturationToRGB(mi,Mr.fs.v*Rr)),Mr.fb.propType&&(Rr.length?mi=addBrightnessToRGB(mi,Mr.fb.v*Rr[0]):mi=addBrightnessToRGB(mi,Mr.fb.v*Rr))}}for(Fr=0;Fr<Dr;Fr+=1)Mr=dr[Fr].a,Mr.p.propType&&(Lr=dr[Fr].s,Rr=Lr.getMult(br[yr].anIndexes[Fr],fr.a[Fr].s.totalChars),this._hasMaskedPath?Rr.length?hr.translate(0,Mr.p.v[1]*Rr[0],-Mr.p.v[2]*Rr[1]):hr.translate(0,Mr.p.v[1]*Rr,-Mr.p.v[2]*Rr):Rr.length?hr.translate(Mr.p.v[0]*Rr[0],Mr.p.v[1]*Rr[1],-Mr.p.v[2]*Rr[2]):hr.translate(Mr.p.v[0]*Rr,Mr.p.v[1]*Rr,-Mr.p.v[2]*Rr));if(ct.strokeWidthAnim&&(ni=pi<0?0:pi),ct.strokeColorAnim&&(ai="rgb("+Math.round(bi[0]*255)+","+Math.round(bi[1]*255)+","+Math.round(bi[2]*255)+")"),ct.fillColorAnim&&ct.fc&&(Xr="rgb("+Math.round(mi[0]*255)+","+Math.round(mi[1]*255)+","+Math.round(mi[2]*255)+")"),this._hasMaskedPath){if(hr.translate(0,-ct.ls),hr.translate(0,ur[1]*Wr*.01+gr,0),this._pathData.p.v){jr=(_r.point[1]-kr.point[1])/(_r.point[0]-kr.point[0]);var hi=Math.atan(jr)*180/Math.PI;_r.point[0]<kr.point[0]&&(hi+=180),hr.rotate(-hi*Math.PI/180)}hr.translate(Hr,Ur,0),wr-=ur[0]*br[yr].an*.005,br[yr+1]&&Qr!==br[yr+1].ind&&(wr+=br[yr].an/2,wr+=ct.tr*.001*ct.finalSize)}else{switch(hr.translate(mr,gr,0),ct.ps&&hr.translate(ct.ps[0],ct.ps[1]+ct.ascent,0),ct.j){case 1:hr.translate(br[yr].animatorJustifyOffset+ct.justifyOffset+(ct.boxWidth-ct.lineWidths[br[yr].line]),0,0);break;case 2:hr.translate(br[yr].animatorJustifyOffset+ct.justifyOffset+(ct.boxWidth-ct.lineWidths[br[yr].line])/2,0,0);break}hr.translate(0,-ct.ls),hr.translate(Kr,0,0),hr.translate(ur[0]*br[yr].an*.005,ur[1]*Wr*.01,0),mr+=br[yr].l+ct.tr*.001*ct.finalSize}vr==="html"?vi=hr.toCSS():vr==="svg"?vi=hr.to2dCSS():Si=[hr.props[0],hr.props[1],hr.props[2],hr.props[3],hr.props[4],hr.props[5],hr.props[6],hr.props[7],hr.props[8],hr.props[9],hr.props[10],hr.props[11],hr.props[12],hr.props[13],hr.props[14],hr.props[15]],ri=_i}pr<=yr?(Gr=new LetterProps(ri,ni,ai,Xr,vi,Si),this.renderedLetters.push(Gr),pr+=1,this.lettersChangedFlag=!0):(Gr=this.renderedLetters[yr],this.lettersChangedFlag=Gr.update(ri,ni,ai,Xr,vi,Si)||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(ct,Dn,ur){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(ct,Dn,ur),this.textProperty=new TextProperty(this,ct.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(ct.t,this.renderType,this),this.initTransform(ct,Dn,ur),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(ct){this._mdf=!1,this.prepareRenderableFrame(ct),this.prepareProperties(ct,this.isInRange)},ITextElement.prototype.createPathShape=function(ct,Dn){var ur,dr=Dn.length,fr,hr="";for(ur=0;ur<dr;ur+=1)Dn[ur].ty==="sh"&&(fr=Dn[ur].ks.k,hr+=buildShapeString(fr,fr.i.length,!0,ct));return hr},ITextElement.prototype.updateDocumentData=function(ct,Dn){this.textProperty.updateDocumentData(ct,Dn)},ITextElement.prototype.canResizeFont=function(ct){this.textProperty.canResizeFont(ct)},ITextElement.prototype.setMinimumFontSize=function(ct){this.textProperty.setMinimumFontSize(ct)},ITextElement.prototype.applyTextPropertiesToMatrix=function(ct,Dn,ur,dr,fr){switch(ct.ps&&Dn.translate(ct.ps[0],ct.ps[1]+ct.ascent,0),Dn.translate(0,-ct.ls,0),ct.j){case 1:Dn.translate(ct.justifyOffset+(ct.boxWidth-ct.lineWidths[ur]),0,0);break;case 2:Dn.translate(ct.justifyOffset+(ct.boxWidth-ct.lineWidths[ur])/2,0,0);break}Dn.translate(dr,fr,0)},ITextElement.prototype.buildColor=function(ct){return"rgb("+Math.round(ct[0]*255)+","+Math.round(ct[1]*255)+","+Math.round(ct[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(ct,Dn,ur){this.textSpans=[],this.renderType="svg",this.initElement(ct,Dn,ur)}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(ct){for(var Dn=0,ur=ct.length,dr=[],fr="";Dn<ur;)ct[Dn]===String.fromCharCode(13)||ct[Dn]===String.fromCharCode(3)?(dr.push(fr),fr=""):fr+=ct[Dn],Dn+=1;return dr.push(fr),dr},SVGTextLottieElement.prototype.buildShapeData=function(ct,Dn){if(ct.shapes&&ct.shapes.length){var ur=ct.shapes[0];if(ur.it){var dr=ur.it[ur.it.length-1];dr.s&&(dr.s.k[0]=Dn,dr.s.k[1]=Dn)}}return ct},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var ct,Dn,ur=this.textProperty.currentData;this.renderedLetters=createSizedArray(ur?ur.l.length:0),ur.fc?this.layerElement.setAttribute("fill",this.buildColor(ur.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),ur.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(ur.sc)),this.layerElement.setAttribute("stroke-width",ur.sw)),this.layerElement.setAttribute("font-size",ur.finalSize);var dr=this.globalData.fontManager.getFontByName(ur.f);if(dr.fClass)this.layerElement.setAttribute("class",dr.fClass);else{this.layerElement.setAttribute("font-family",dr.fFamily);var fr=ur.fWeight,hr=ur.fStyle;this.layerElement.setAttribute("font-style",hr),this.layerElement.setAttribute("font-weight",fr)}this.layerElement.setAttribute("aria-label",ur.t);var vr=ur.l||[],pr=!!this.globalData.fontManager.chars;Dn=vr.length;var mr,gr=this.mHelper,yr="",Cr=this.data.singleShape,br=0,Ar=0,wr=!0,_r=ur.tr*.001*ur.finalSize;if(Cr&&!pr&&!ur.sz){var Tr=this.textContainer,Er="start";switch(ur.j){case 1:Er="end";break;case 2:Er="middle";break;default:Er="start";break}Tr.setAttribute("text-anchor",Er),Tr.setAttribute("letter-spacing",_r);var xr=this.buildTextContents(ur.finalText);for(Dn=xr.length,Ar=ur.ps?ur.ps[1]+ur.ascent:0,ct=0;ct<Dn;ct+=1)mr=this.textSpans[ct].span||createNS("tspan"),mr.textContent=xr[ct],mr.setAttribute("x",0),mr.setAttribute("y",Ar),mr.style.display="inherit",Tr.appendChild(mr),this.textSpans[ct]||(this.textSpans[ct]={span:null,glyph:null}),this.textSpans[ct].span=mr,Ar+=ur.finalLineHeight;this.layerElement.appendChild(Tr)}else{var Sr=this.textSpans.length,kr;for(ct=0;ct<Dn;ct+=1){if(this.textSpans[ct]||(this.textSpans[ct]={span:null,childSpan:null,glyph:null}),!pr||!Cr||ct===0){if(mr=Sr>ct?this.textSpans[ct].span:createNS(pr?"g":"text"),Sr<=ct){if(mr.setAttribute("stroke-linecap","butt"),mr.setAttribute("stroke-linejoin","round"),mr.setAttribute("stroke-miterlimit","4"),this.textSpans[ct].span=mr,pr){var Pr=createNS("g");mr.appendChild(Pr),this.textSpans[ct].childSpan=Pr}this.textSpans[ct].span=mr,this.layerElement.appendChild(mr)}mr.style.display="inherit"}if(gr.reset(),Cr&&(vr[ct].n&&(br=-_r,Ar+=ur.yOffset,Ar+=wr?1:0,wr=!1),this.applyTextPropertiesToMatrix(ur,gr,vr[ct].line,br,Ar),br+=vr[ct].l||0,br+=_r),pr){kr=this.globalData.fontManager.getCharData(ur.finalText[ct],dr.fStyle,this.globalData.fontManager.getFontByName(ur.f).fFamily);var Ir;if(kr.t===1)Ir=new SVGCompElement(kr.data,this.globalData,this);else{var Br=emptyShapeData;kr.data&&kr.data.shapes&&(Br=this.buildShapeData(kr.data,ur.finalSize)),Ir=new SVGShapeElement(Br,this.globalData,this)}if(this.textSpans[ct].glyph){var Or=this.textSpans[ct].glyph;this.textSpans[ct].childSpan.removeChild(Or.layerElement),Or.destroy()}this.textSpans[ct].glyph=Ir,Ir._debug=!0,Ir.prepareFrame(0),Ir.renderFrame(),this.textSpans[ct].childSpan.appendChild(Ir.layerElement),kr.t===1&&this.textSpans[ct].childSpan.setAttribute("transform","scale("+ur.finalSize/100+","+ur.finalSize/100+")")}else Cr&&mr.setAttribute("transform","translate("+gr.props[12]+","+gr.props[13]+")"),mr.textContent=vr[ct].val,mr.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}Cr&&mr&&mr.setAttribute("d",yr)}for(;ct<this.textSpans.length;)this.textSpans[ct].span.style.display="none",ct+=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 ct=this.layerElement.getBBox();this.bbox={top:ct.y,left:ct.x,width:ct.width,height:ct.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var ct,Dn=this.textSpans.length,ur;for(this.renderedFrame=this.comp.renderedFrame,ct=0;ct<Dn;ct+=1)ur=this.textSpans[ct].glyph,ur&&(ur.prepareFrame(this.comp.renderedFrame-this.data.st),ur._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 ct,Dn,ur=this.textAnimator.renderedLetters,dr=this.textProperty.currentData.l;Dn=dr.length;var fr,hr,vr;for(ct=0;ct<Dn;ct+=1)dr[ct].n||(fr=ur[ct],hr=this.textSpans[ct].span,vr=this.textSpans[ct].glyph,vr&&vr.renderFrame(),fr._mdf.m&&hr.setAttribute("transform",fr.m),fr._mdf.o&&hr.setAttribute("opacity",fr.o),fr._mdf.sw&&hr.setAttribute("stroke-width",fr.sw),fr._mdf.sc&&hr.setAttribute("stroke",fr.sc),fr._mdf.fc&&hr.setAttribute("fill",fr.fc))}};function ISolidElement(ct,Dn,ur){this.initElement(ct,Dn,ur)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var ct=createNS("rect");ct.setAttribute("width",this.data.sw),ct.setAttribute("height",this.data.sh),ct.setAttribute("fill",this.data.sc),this.layerElement.appendChild(ct)};function NullElement(ct,Dn,ur){this.initFrame(),this.initBaseData(ct,Dn,ur),this.initFrame(),this.initTransform(ct,Dn,ur),this.initHierarchy()}NullElement.prototype.prepareFrame=function(ct){this.prepareProperties(ct,!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(ct){return new NullElement(ct,this.globalData,this)},SVGRendererBase.prototype.createShape=function(ct){return new SVGShapeElement(ct,this.globalData,this)},SVGRendererBase.prototype.createText=function(ct){return new SVGTextLottieElement(ct,this.globalData,this)},SVGRendererBase.prototype.createImage=function(ct){return new IImageElement(ct,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(ct){return new ISolidElement(ct,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(ct){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 "+ct.w+" "+ct.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",ct.w),this.svgElement.setAttribute("height",ct.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 Dn=this.globalData.defs;this.setupGlobalData(ct,Dn),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=ct;var ur=createNS("clipPath"),dr=createNS("rect");dr.setAttribute("width",ct.w),dr.setAttribute("height",ct.h),dr.setAttribute("x",0),dr.setAttribute("y",0);var fr=createElementID();ur.setAttribute("id",fr),ur.appendChild(dr),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+fr+")"),Dn.appendChild(ur),this.layers=ct.layers,this.elements=createSizedArray(ct.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var ct,Dn=this.layers?this.layers.length:0;for(ct=0;ct<Dn;ct+=1)this.elements[ct]&&this.elements[ct].destroy&&this.elements[ct].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(ct){var Dn=0,ur=this.layers.length;for(Dn=0;Dn<ur;Dn+=1)if(this.layers[Dn].ind===ct)return Dn;return-1},SVGRendererBase.prototype.buildItem=function(ct){var Dn=this.elements;if(!(Dn[ct]||this.layers[ct].ty===99)){Dn[ct]=!0;var ur=this.createItem(this.layers[ct]);if(Dn[ct]=ur,getExpressionsPlugin()&&(this.layers[ct].ty===0&&this.globalData.projectInterface.registerComposition(ur),ur.initExpressions()),this.appendElementInPos(ur,ct),this.layers[ct].tt){var dr="tp"in this.layers[ct]?this.findIndexByInd(this.layers[ct].tp):ct-1;if(dr===-1)return;if(!this.elements[dr]||this.elements[dr]===!0)this.buildItem(dr),this.addPendingElement(ur);else{var fr=Dn[dr],hr=fr.getMatte(this.layers[ct].tt);ur.setMatte(hr)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var ct=this.pendingElements.pop();if(ct.checkParenting(),ct.data.tt)for(var Dn=0,ur=this.elements.length;Dn<ur;){if(this.elements[Dn]===ct){var dr="tp"in ct.data?this.findIndexByInd(ct.data.tp):Dn-1,fr=this.elements[dr],hr=fr.getMatte(this.layers[Dn].tt);ct.setMatte(hr);break}Dn+=1}}},SVGRendererBase.prototype.renderFrame=function(ct){if(!(this.renderedFrame===ct||this.destroyed)){ct===null?ct=this.renderedFrame:this.renderedFrame=ct,this.globalData.frameNum=ct,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=ct,this.globalData._mdf=!1;var Dn,ur=this.layers.length;for(this.completeLayers||this.checkLayers(ct),Dn=ur-1;Dn>=0;Dn-=1)(this.completeLayers||this.elements[Dn])&&this.elements[Dn].prepareFrame(ct-this.layers[Dn].st);if(this.globalData._mdf)for(Dn=0;Dn<ur;Dn+=1)(this.completeLayers||this.elements[Dn])&&this.elements[Dn].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(ct,Dn){var ur=ct.getBaseElement();if(ur){for(var dr=0,fr;dr<Dn;)this.elements[dr]&&this.elements[dr]!==!0&&this.elements[dr].getBaseElement()&&(fr=this.elements[dr].getBaseElement()),dr+=1;fr?this.layerElement.insertBefore(ur,fr):this.layerElement.appendChild(ur)}},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(ct,Dn,ur){this.initFrame(),this.initBaseData(ct,Dn,ur),this.initTransform(ct,Dn,ur),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!Dn.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(ct){if(this._mdf=!1,this.prepareRenderableFrame(ct),this.prepareProperties(ct,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=ct/this.data.sr;else{var Dn=this.tm.v;Dn===this.data.op&&(Dn=this.data.op-1),this.renderedFrame=Dn}var ur,dr=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),ur=dr-1;ur>=0;ur-=1)(this.completeLayers||this.elements[ur])&&(this.elements[ur].prepareFrame(this.renderedFrame-this.layers[ur].st),this.elements[ur]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var ct,Dn=this.layers.length;for(ct=0;ct<Dn;ct+=1)(this.completeLayers||this.elements[ct])&&this.elements[ct].renderFrame()},ICompElement.prototype.setElements=function(ct){this.elements=ct},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var ct,Dn=this.layers.length;for(ct=0;ct<Dn;ct+=1)this.elements[ct]&&this.elements[ct].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(ct,Dn,ur){this.layers=ct.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(ct,Dn,ur),this.tm=ct.tm?PropertyFactory.getProp(this,ct.tm,0,Dn.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(ct){return new SVGCompElement(ct,this.globalData,this)};function SVGRenderer(ct,Dn){this.animationItem=ct,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var ur="";if(Dn&&Dn.title){var dr=createNS("title"),fr=createElementID();dr.setAttribute("id",fr),dr.textContent=Dn.title,this.svgElement.appendChild(dr),ur+=fr}if(Dn&&Dn.description){var hr=createNS("desc"),vr=createElementID();hr.setAttribute("id",vr),hr.textContent=Dn.description,this.svgElement.appendChild(hr),ur+=" "+vr}ur&&this.svgElement.setAttribute("aria-labelledby",ur);var pr=createNS("defs");this.svgElement.appendChild(pr);var mr=createNS("g");this.svgElement.appendChild(mr),this.layerElement=mr,this.renderConfig={preserveAspectRatio:Dn&&Dn.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:Dn&&Dn.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:Dn&&Dn.contentVisibility||"visible",progressiveLoad:Dn&&Dn.progressiveLoad||!1,hideOnTransparent:!(Dn&&Dn.hideOnTransparent===!1),viewBoxOnly:Dn&&Dn.viewBoxOnly||!1,viewBoxSize:Dn&&Dn.viewBoxSize||!1,className:Dn&&Dn.className||"",id:Dn&&Dn.id||"",focusable:Dn&&Dn.focusable,filterSize:{width:Dn&&Dn.filterSize&&Dn.filterSize.width||"100%",height:Dn&&Dn.filterSize&&Dn.filterSize.height||"100%",x:Dn&&Dn.filterSize&&Dn.filterSize.x||"0%",y:Dn&&Dn.filterSize&&Dn.filterSize.y||"0%"},width:Dn&&Dn.width,height:Dn&&Dn.height,runExpressions:!Dn||Dn.runExpressions===void 0||Dn.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:pr,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(ct){return new SVGCompElement(ct,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(Dn){var ur,dr=Dn.length,fr="_";for(ur=0;ur<dr;ur+=1)fr+=Dn[ur].transform.key+"_";var hr=this.sequences[fr];return hr||(hr={transforms:[].concat(Dn),finalTransform:new Matrix,_mdf:!1},this.sequences[fr]=hr,this.sequenceList.push(hr)),hr},processSequence:function(Dn,ur){for(var dr=0,fr=Dn.transforms.length,hr=ur;dr<fr&&!ur;){if(Dn.transforms[dr].transform.mProps._mdf){hr=!0;break}dr+=1}if(hr)for(Dn.finalTransform.reset(),dr=fr-1;dr>=0;dr-=1)Dn.finalTransform.multiply(Dn.transforms[dr].transform.mProps.v);Dn._mdf=hr},processSequences:function(Dn){var ur,dr=this.sequenceList.length;for(ur=0;ur<dr;ur+=1)this.processSequence(this.sequenceList[ur],Dn)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var Dn="__lottie_element_luma_buffer",ur=null,dr=null,fr=null;function hr(){var mr=createNS("svg"),gr=createNS("filter"),yr=createNS("feColorMatrix");return gr.setAttribute("id",Dn),yr.setAttribute("type","matrix"),yr.setAttribute("color-interpolation-filters","sRGB"),yr.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"),gr.appendChild(yr),mr.appendChild(gr),mr.setAttribute("id",Dn+"_svg"),featureSupport.svgLumaHidden&&(mr.style.display="none"),mr}function vr(){ur||(fr=hr(),document.body.appendChild(fr),ur=createTag("canvas"),dr=ur.getContext("2d"),dr.filter="url(#"+Dn+")",dr.fillStyle="rgba(0,0,0,0)",dr.fillRect(0,0,1,1))}function pr(mr){return ur||vr(),ur.width=mr.width,ur.height=mr.height,dr.filter="url(#"+Dn+")",ur}return{load:vr,get:pr}};function createCanvas(ct,Dn){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(ct,Dn);var ur=createTag("canvas");return ur.width=ct,ur.height=Dn,ur}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(ct){var Dn,ur=ct.data.ef?ct.data.ef.length:0;this.filters=[];var dr;for(Dn=0;Dn<ur;Dn+=1){dr=null;var fr=ct.data.ef[Dn].ty;if(registeredEffects[fr]){var hr=registeredEffects[fr].effect;dr=new hr(ct.effectsManager.effectElements[Dn],ct)}dr&&this.filters.push(dr)}this.filters.length&&ct.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(ct){var Dn,ur=this.filters.length;for(Dn=0;Dn<ur;Dn+=1)this.filters[Dn].renderFrame(ct)},CVEffects.prototype.getEffects=function(ct){var Dn,ur=this.filters.length,dr=[];for(Dn=0;Dn<ur;Dn+=1)this.filters[Dn].type===ct&&dr.push(this.filters[Dn]);return dr};function registerEffect(ct,Dn){registeredEffects[ct]={effect:Dn}}function CVMaskElement(ct,Dn){this.data=ct,this.element=Dn,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var ur,dr=this.masksProperties.length,fr=!1;for(ur=0;ur<dr;ur+=1)this.masksProperties[ur].mode!=="n"&&(fr=!0),this.viewData[ur]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[ur],3);this.hasMasks=fr,fr&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var ct=this.element.finalTransform.mat,Dn=this.element.canvasContext,ur,dr=this.masksProperties.length,fr,hr,vr;for(Dn.beginPath(),ur=0;ur<dr;ur+=1)if(this.masksProperties[ur].mode!=="n"){this.masksProperties[ur].inv&&(Dn.moveTo(0,0),Dn.lineTo(this.element.globalData.compSize.w,0),Dn.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),Dn.lineTo(0,this.element.globalData.compSize.h),Dn.lineTo(0,0)),vr=this.viewData[ur].v,fr=ct.applyToPointArray(vr.v[0][0],vr.v[0][1],0),Dn.moveTo(fr[0],fr[1]);var pr,mr=vr._length;for(pr=1;pr<mr;pr+=1)hr=ct.applyToTriplePoints(vr.o[pr-1],vr.i[pr],vr.v[pr]),Dn.bezierCurveTo(hr[0],hr[1],hr[2],hr[3],hr[4],hr[5]);hr=ct.applyToTriplePoints(vr.o[pr-1],vr.i[0],vr.v[0]),Dn.bezierCurveTo(hr[0],hr[1],hr[2],hr[3],hr[4],hr[5])}this.element.globalData.renderer.save(!0),Dn.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 Dn=this.globalData.canvasContext,ur=assetLoader.createCanvas(Dn.canvas.width,Dn.canvas.height);this.buffers.push(ur);var dr=assetLoader.createCanvas(Dn.canvas.width,Dn.canvas.height);this.buffers.push(dr),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 Dn=this.globalData;if(Dn.blendMode!==this.data.bm){Dn.blendMode=this.data.bm;var ur=getBlendMode(this.data.bm);Dn.canvasContext.globalCompositeOperation=ur}},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(Dn){Dn.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 Dn=this.buffers[0],ur=Dn.getContext("2d");this.clearCanvas(ur),ur.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 Dn=this.buffers[1],ur=Dn.getContext("2d");this.clearCanvas(ur),ur.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 dr=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(dr.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var fr=assetLoader.getLumaCanvas(this.canvasContext.canvas),hr=fr.getContext("2d");hr.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(fr,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(Dn,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(Dn){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!Dn)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var ur=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(ur),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(ur),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(ct,Dn,ur,dr){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var fr=4;Dn.ty==="rc"?fr=5:Dn.ty==="el"?fr=6:Dn.ty==="sr"&&(fr=7),this.sh=ShapePropertyFactory.getShapeProp(ct,Dn,fr,ct);var hr,vr=ur.length,pr;for(hr=0;hr<vr;hr+=1)ur[hr].closed||(pr={transforms:dr.addTransformSequence(ur[hr].transforms),trNodes:[]},this.styledShapes.push(pr),ur[hr].elements.push(pr))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(ct,Dn,ur){this.shapes=[],this.shapesData=ct.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(ct,Dn,ur)}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(ct,Dn){var ur={data:ct,type:ct.ty,preTransforms:this.transformsManager.addTransformSequence(Dn),transforms:[],elements:[],closed:ct.hd===!0},dr={};if(ct.ty==="fl"||ct.ty==="st"?(dr.c=PropertyFactory.getProp(this,ct.c,1,255,this),dr.c.k||(ur.co="rgb("+bmFloor(dr.c.v[0])+","+bmFloor(dr.c.v[1])+","+bmFloor(dr.c.v[2])+")")):(ct.ty==="gf"||ct.ty==="gs")&&(dr.s=PropertyFactory.getProp(this,ct.s,1,null,this),dr.e=PropertyFactory.getProp(this,ct.e,1,null,this),dr.h=PropertyFactory.getProp(this,ct.h||{k:0},0,.01,this),dr.a=PropertyFactory.getProp(this,ct.a||{k:0},0,degToRads,this),dr.g=new GradientProperty(this,ct.g,this)),dr.o=PropertyFactory.getProp(this,ct.o,0,.01,this),ct.ty==="st"||ct.ty==="gs"){if(ur.lc=lineCapEnum[ct.lc||2],ur.lj=lineJoinEnum[ct.lj||2],ct.lj==1&&(ur.ml=ct.ml),dr.w=PropertyFactory.getProp(this,ct.w,0,null,this),dr.w.k||(ur.wi=dr.w.v),ct.d){var fr=new DashProperty(this,ct.d,"canvas",this);dr.d=fr,dr.d.k||(ur.da=dr.d.dashArray,ur.do=dr.d.dashoffset[0])}}else ur.r=ct.r===2?"evenodd":"nonzero";return this.stylesList.push(ur),dr.style=ur,dr},CVShapeElement.prototype.createGroupElement=function(){var ct={it:[],prevViewData:[]};return ct},CVShapeElement.prototype.createTransformElement=function(ct){var Dn={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,ct.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,ct,this)}};return Dn},CVShapeElement.prototype.createShapeElement=function(ct){var Dn=new CVShapeData(this,ct,this.stylesList,this.transformsManager);return this.shapes.push(Dn),this.addShapeToModifiers(Dn),Dn},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var ct,Dn=this.itemsData.length;for(ct=0;ct<Dn;ct+=1)this.prevViewData[ct]=this.itemsData[ct];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),Dn=this.dynamicProperties.length,ct=0;ct<Dn;ct+=1)this.dynamicProperties[ct].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(ct){var Dn,ur=this.stylesList.length;for(Dn=0;Dn<ur;Dn+=1)this.stylesList[Dn].closed||this.stylesList[Dn].transforms.push(ct)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var ct,Dn=this.stylesList.length;for(ct=0;ct<Dn;ct+=1)this.stylesList[ct].closed||this.stylesList[ct].transforms.pop()},CVShapeElement.prototype.closeStyles=function(ct){var Dn,ur=ct.length;for(Dn=0;Dn<ur;Dn+=1)ct[Dn].closed=!0},CVShapeElement.prototype.searchShapes=function(ct,Dn,ur,dr,fr){var hr,vr=ct.length-1,pr,mr,gr=[],yr=[],Cr,br,Ar,wr=[].concat(fr);for(hr=vr;hr>=0;hr-=1){if(Cr=this.searchProcessedElement(ct[hr]),Cr?Dn[hr]=ur[Cr-1]:ct[hr]._shouldRender=dr,ct[hr].ty==="fl"||ct[hr].ty==="st"||ct[hr].ty==="gf"||ct[hr].ty==="gs")Cr?Dn[hr].style.closed=!1:Dn[hr]=this.createStyleElement(ct[hr],wr),gr.push(Dn[hr].style);else if(ct[hr].ty==="gr"){if(!Cr)Dn[hr]=this.createGroupElement(ct[hr]);else for(mr=Dn[hr].it.length,pr=0;pr<mr;pr+=1)Dn[hr].prevViewData[pr]=Dn[hr].it[pr];this.searchShapes(ct[hr].it,Dn[hr].it,Dn[hr].prevViewData,dr,wr)}else ct[hr].ty==="tr"?(Cr||(Ar=this.createTransformElement(ct[hr]),Dn[hr]=Ar),wr.push(Dn[hr]),this.addTransformToStyleList(Dn[hr])):ct[hr].ty==="sh"||ct[hr].ty==="rc"||ct[hr].ty==="el"||ct[hr].ty==="sr"?Cr||(Dn[hr]=this.createShapeElement(ct[hr])):ct[hr].ty==="tm"||ct[hr].ty==="rd"||ct[hr].ty==="pb"||ct[hr].ty==="zz"||ct[hr].ty==="op"?(Cr?(br=Dn[hr],br.closed=!1):(br=ShapeModifiers.getModifier(ct[hr].ty),br.init(this,ct[hr]),Dn[hr]=br,this.shapeModifiers.push(br)),yr.push(br)):ct[hr].ty==="rp"&&(Cr?(br=Dn[hr],br.closed=!0):(br=ShapeModifiers.getModifier(ct[hr].ty),Dn[hr]=br,br.init(this,ct,hr,Dn),this.shapeModifiers.push(br),dr=!1),yr.push(br));this.addProcessedElement(ct[hr],hr+1)}for(this.removeTransformFromStyleList(),this.closeStyles(gr),vr=yr.length,hr=0;hr<vr;hr+=1)yr[hr].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(ct,Dn){(ct._opMdf||Dn.op._mdf||this._isFirstFrame)&&(Dn.opacity=ct.opacity,Dn.opacity*=Dn.op.v,Dn._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var ct,Dn=this.stylesList.length,ur,dr,fr,hr,vr,pr,mr=this.globalData.renderer,gr=this.globalData.canvasContext,yr,Cr;for(ct=0;ct<Dn;ct+=1)if(Cr=this.stylesList[ct],yr=Cr.type,!((yr==="st"||yr==="gs")&&Cr.wi===0||!Cr.data._shouldRender||Cr.coOp===0||this.globalData.currentGlobalAlpha===0)){for(mr.save(),vr=Cr.elements,yr==="st"||yr==="gs"?(mr.ctxStrokeStyle(yr==="st"?Cr.co:Cr.grd),mr.ctxLineWidth(Cr.wi),mr.ctxLineCap(Cr.lc),mr.ctxLineJoin(Cr.lj),mr.ctxMiterLimit(Cr.ml||0)):mr.ctxFillStyle(yr==="fl"?Cr.co:Cr.grd),mr.ctxOpacity(Cr.coOp),yr!=="st"&&yr!=="gs"&&gr.beginPath(),mr.ctxTransform(Cr.preTransforms.finalTransform.props),dr=vr.length,ur=0;ur<dr;ur+=1){for((yr==="st"||yr==="gs")&&(gr.beginPath(),Cr.da&&(gr.setLineDash(Cr.da),gr.lineDashOffset=Cr.do)),pr=vr[ur].trNodes,hr=pr.length,fr=0;fr<hr;fr+=1)pr[fr].t==="m"?gr.moveTo(pr[fr].p[0],pr[fr].p[1]):pr[fr].t==="c"?gr.bezierCurveTo(pr[fr].pts[0],pr[fr].pts[1],pr[fr].pts[2],pr[fr].pts[3],pr[fr].pts[4],pr[fr].pts[5]):gr.closePath();(yr==="st"||yr==="gs")&&(mr.ctxStroke(),Cr.da&&gr.setLineDash(this.dashResetter))}yr!=="st"&&yr!=="gs"&&this.globalData.renderer.ctxFill(Cr.r),mr.restore()}},CVShapeElement.prototype.renderShape=function(ct,Dn,ur,dr){var fr,hr=Dn.length-1,vr;for(vr=ct,fr=hr;fr>=0;fr-=1)Dn[fr].ty==="tr"?(vr=ur[fr].transform,this.renderShapeTransform(ct,vr)):Dn[fr].ty==="sh"||Dn[fr].ty==="el"||Dn[fr].ty==="rc"||Dn[fr].ty==="sr"?this.renderPath(Dn[fr],ur[fr]):Dn[fr].ty==="fl"?this.renderFill(Dn[fr],ur[fr],vr):Dn[fr].ty==="st"?this.renderStroke(Dn[fr],ur[fr],vr):Dn[fr].ty==="gf"||Dn[fr].ty==="gs"?this.renderGradientFill(Dn[fr],ur[fr],vr):Dn[fr].ty==="gr"?this.renderShape(vr,Dn[fr].it,ur[fr].it):Dn[fr].ty;dr&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(ct,Dn){if(this._isFirstFrame||Dn._mdf||ct.transforms._mdf){var ur=ct.trNodes,dr=Dn.paths,fr,hr,vr,pr=dr._length;ur.length=0;var mr=ct.transforms.finalTransform;for(vr=0;vr<pr;vr+=1){var gr=dr.shapes[vr];if(gr&&gr.v){for(hr=gr._length,fr=1;fr<hr;fr+=1)fr===1&&ur.push({t:"m",p:mr.applyToPointArray(gr.v[0][0],gr.v[0][1],0)}),ur.push({t:"c",pts:mr.applyToTriplePoints(gr.o[fr-1],gr.i[fr],gr.v[fr])});hr===1&&ur.push({t:"m",p:mr.applyToPointArray(gr.v[0][0],gr.v[0][1],0)}),gr.c&&hr&&(ur.push({t:"c",pts:mr.applyToTriplePoints(gr.o[fr-1],gr.i[0],gr.v[0])}),ur.push({t:"z"}))}}ct.trNodes=ur}},CVShapeElement.prototype.renderPath=function(ct,Dn){if(ct.hd!==!0&&ct._shouldRender){var ur,dr=Dn.styledShapes.length;for(ur=0;ur<dr;ur+=1)this.renderStyledShape(Dn.styledShapes[ur],Dn.sh)}},CVShapeElement.prototype.renderFill=function(ct,Dn,ur){var dr=Dn.style;(Dn.c._mdf||this._isFirstFrame)&&(dr.co="rgb("+bmFloor(Dn.c.v[0])+","+bmFloor(Dn.c.v[1])+","+bmFloor(Dn.c.v[2])+")"),(Dn.o._mdf||ur._opMdf||this._isFirstFrame)&&(dr.coOp=Dn.o.v*ur.opacity)},CVShapeElement.prototype.renderGradientFill=function(ct,Dn,ur){var dr=Dn.style,fr;if(!dr.grd||Dn.g._mdf||Dn.s._mdf||Dn.e._mdf||ct.t!==1&&(Dn.h._mdf||Dn.a._mdf)){var hr=this.globalData.canvasContext,vr=Dn.s.v,pr=Dn.e.v;if(ct.t===1)fr=hr.createLinearGradient(vr[0],vr[1],pr[0],pr[1]);else{var mr=Math.sqrt(Math.pow(vr[0]-pr[0],2)+Math.pow(vr[1]-pr[1],2)),gr=Math.atan2(pr[1]-vr[1],pr[0]-vr[0]),yr=Dn.h.v;yr>=1?yr=.99:yr<=-1&&(yr=-.99);var Cr=mr*yr,br=Math.cos(gr+Dn.a.v)*Cr+vr[0],Ar=Math.sin(gr+Dn.a.v)*Cr+vr[1];fr=hr.createRadialGradient(br,Ar,0,vr[0],vr[1],mr)}var wr,_r=ct.g.p,Tr=Dn.g.c,Er=1;for(wr=0;wr<_r;wr+=1)Dn.g._hasOpacity&&Dn.g._collapsable&&(Er=Dn.g.o[wr*2+1]),fr.addColorStop(Tr[wr*4]/100,"rgba("+Tr[wr*4+1]+","+Tr[wr*4+2]+","+Tr[wr*4+3]+","+Er+")");dr.grd=fr}dr.coOp=Dn.o.v*ur.opacity},CVShapeElement.prototype.renderStroke=function(ct,Dn,ur){var dr=Dn.style,fr=Dn.d;fr&&(fr._mdf||this._isFirstFrame)&&(dr.da=fr.dashArray,dr.do=fr.dashoffset[0]),(Dn.c._mdf||this._isFirstFrame)&&(dr.co="rgb("+bmFloor(Dn.c.v[0])+","+bmFloor(Dn.c.v[1])+","+bmFloor(Dn.c.v[2])+")"),(Dn.o._mdf||ur._opMdf||this._isFirstFrame)&&(dr.coOp=Dn.o.v*ur.opacity),(Dn.w._mdf||this._isFirstFrame)&&(dr.wi=Dn.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(ct,Dn,ur){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(ct,Dn,ur)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var ct=this.textProperty.currentData;this.renderedLetters=createSizedArray(ct.l?ct.l.length:0);var Dn=!1;ct.fc?(Dn=!0,this.values.fill=this.buildColor(ct.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=Dn;var ur=!1;ct.sc&&(ur=!0,this.values.stroke=this.buildColor(ct.sc),this.values.sWidth=ct.sw);var dr=this.globalData.fontManager.getFontByName(ct.f),fr,hr,vr=ct.l,pr=this.mHelper;this.stroke=ur,this.values.fValue=ct.finalSize+"px "+this.globalData.fontManager.getFontByName(ct.f).fFamily,hr=ct.finalText.length;var mr,gr,yr,Cr,br,Ar,wr,_r,Tr,Er,xr=this.data.singleShape,Sr=ct.tr*.001*ct.finalSize,kr=0,Pr=0,Ir=!0,Br=0;for(fr=0;fr<hr;fr+=1){mr=this.globalData.fontManager.getCharData(ct.finalText[fr],dr.fStyle,this.globalData.fontManager.getFontByName(ct.f).fFamily),gr=mr&&mr.data||{},pr.reset(),xr&&vr[fr].n&&(kr=-Sr,Pr+=ct.yOffset,Pr+=Ir?1:0,Ir=!1),br=gr.shapes?gr.shapes[0].it:[],wr=br.length,pr.scale(ct.finalSize/100,ct.finalSize/100),xr&&this.applyTextPropertiesToMatrix(ct,pr,vr[fr].line,kr,Pr),Tr=createSizedArray(wr-1);var Or=0;for(Ar=0;Ar<wr;Ar+=1)if(br[Ar].ty==="sh"){for(Cr=br[Ar].ks.k.i.length,_r=br[Ar].ks.k,Er=[],yr=1;yr<Cr;yr+=1)yr===1&&Er.push(pr.applyToX(_r.v[0][0],_r.v[0][1],0),pr.applyToY(_r.v[0][0],_r.v[0][1],0)),Er.push(pr.applyToX(_r.o[yr-1][0],_r.o[yr-1][1],0),pr.applyToY(_r.o[yr-1][0],_r.o[yr-1][1],0),pr.applyToX(_r.i[yr][0],_r.i[yr][1],0),pr.applyToY(_r.i[yr][0],_r.i[yr][1],0),pr.applyToX(_r.v[yr][0],_r.v[yr][1],0),pr.applyToY(_r.v[yr][0],_r.v[yr][1],0));Er.push(pr.applyToX(_r.o[yr-1][0],_r.o[yr-1][1],0),pr.applyToY(_r.o[yr-1][0],_r.o[yr-1][1],0),pr.applyToX(_r.i[0][0],_r.i[0][1],0),pr.applyToY(_r.i[0][0],_r.i[0][1],0),pr.applyToX(_r.v[0][0],_r.v[0][1],0),pr.applyToY(_r.v[0][0],_r.v[0][1],0)),Tr[Or]=Er,Or+=1}xr&&(kr+=vr[fr].l,kr+=Sr),this.textSpans[Br]?this.textSpans[Br].elem=Tr:this.textSpans[Br]={elem:Tr},Br+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var ct=this.canvasContext;ct.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 Dn,ur,dr,fr,hr,vr,pr=this.textAnimator.renderedLetters,mr=this.textProperty.currentData.l;ur=mr.length;var gr,yr=null,Cr=null,br=null,Ar,wr,_r=this.globalData.renderer;for(Dn=0;Dn<ur;Dn+=1)if(!mr[Dn].n){if(gr=pr[Dn],gr&&(_r.save(),_r.ctxTransform(gr.p),_r.ctxOpacity(gr.o)),this.fill){for(gr&&gr.fc?yr!==gr.fc&&(_r.ctxFillStyle(gr.fc),yr=gr.fc):yr!==this.values.fill&&(yr=this.values.fill,_r.ctxFillStyle(this.values.fill)),Ar=this.textSpans[Dn].elem,fr=Ar.length,this.globalData.canvasContext.beginPath(),dr=0;dr<fr;dr+=1)for(wr=Ar[dr],vr=wr.length,this.globalData.canvasContext.moveTo(wr[0],wr[1]),hr=2;hr<vr;hr+=6)this.globalData.canvasContext.bezierCurveTo(wr[hr],wr[hr+1],wr[hr+2],wr[hr+3],wr[hr+4],wr[hr+5]);this.globalData.canvasContext.closePath(),_r.ctxFill()}if(this.stroke){for(gr&&gr.sw?br!==gr.sw&&(br=gr.sw,_r.ctxLineWidth(gr.sw)):br!==this.values.sWidth&&(br=this.values.sWidth,_r.ctxLineWidth(this.values.sWidth)),gr&&gr.sc?Cr!==gr.sc&&(Cr=gr.sc,_r.ctxStrokeStyle(gr.sc)):Cr!==this.values.stroke&&(Cr=this.values.stroke,_r.ctxStrokeStyle(this.values.stroke)),Ar=this.textSpans[Dn].elem,fr=Ar.length,this.globalData.canvasContext.beginPath(),dr=0;dr<fr;dr+=1)for(wr=Ar[dr],vr=wr.length,this.globalData.canvasContext.moveTo(wr[0],wr[1]),hr=2;hr<vr;hr+=6)this.globalData.canvasContext.bezierCurveTo(wr[hr],wr[hr+1],wr[hr+2],wr[hr+3],wr[hr+4],wr[hr+5]);this.globalData.canvasContext.closePath(),_r.ctxStroke()}gr&&this.globalData.renderer.restore()}};function CVImageElement(ct,Dn,ur){this.assetData=Dn.getAssetData(ct.refId),this.img=Dn.imageLoader.getAsset(this.assetData),this.initElement(ct,Dn,ur)}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 ct=createTag("canvas");ct.width=this.assetData.w,ct.height=this.assetData.h;var Dn=ct.getContext("2d"),ur=this.img.width,dr=this.img.height,fr=ur/dr,hr=this.assetData.w/this.assetData.h,vr,pr,mr=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;fr>hr&&mr==="xMidYMid slice"||fr<hr&&mr!=="xMidYMid slice"?(pr=dr,vr=pr*hr):(vr=ur,pr=vr/hr),Dn.drawImage(this.img,(ur-vr)/2,(dr-pr)/2,vr,pr,0,0,this.assetData.w,this.assetData.h),this.img=ct}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(ct,Dn,ur){this.initElement(ct,Dn,ur)}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(ct){return new CVShapeElement(ct,this.globalData,this)},CanvasRendererBase.prototype.createText=function(ct){return new CVTextElement(ct,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(ct){return new CVImageElement(ct,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(ct){return new CVSolidElement(ct,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(ct){ct[0]===1&&ct[1]===0&&ct[4]===0&&ct[5]===1&&ct[12]===0&&ct[13]===0||this.canvasContext.transform(ct[0],ct[1],ct[4],ct[5],ct[12],ct[13])},CanvasRendererBase.prototype.ctxOpacity=function(ct){this.canvasContext.globalAlpha*=ct<0?0:ct},CanvasRendererBase.prototype.ctxFillStyle=function(ct){this.canvasContext.fillStyle=ct},CanvasRendererBase.prototype.ctxStrokeStyle=function(ct){this.canvasContext.strokeStyle=ct},CanvasRendererBase.prototype.ctxLineWidth=function(ct){this.canvasContext.lineWidth=ct},CanvasRendererBase.prototype.ctxLineCap=function(ct){this.canvasContext.lineCap=ct},CanvasRendererBase.prototype.ctxLineJoin=function(ct){this.canvasContext.lineJoin=ct},CanvasRendererBase.prototype.ctxMiterLimit=function(ct){this.canvasContext.miterLimit=ct},CanvasRendererBase.prototype.ctxFill=function(ct){this.canvasContext.fill(ct)},CanvasRendererBase.prototype.ctxFillRect=function(ct,Dn,ur,dr){this.canvasContext.fillRect(ct,Dn,ur,dr)},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(ct){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}ct&&(this.globalData.blendMode="source-over"),this.contextData.restore(ct)},CanvasRendererBase.prototype.configAnimation=function(ct){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var Dn=this.animationItem.container.style;Dn.width="100%",Dn.height="100%";var ur="0px 0px 0px";Dn.transformOrigin=ur,Dn.mozTransformOrigin=ur,Dn.webkitTransformOrigin=ur,Dn["-webkit-transform"]=ur,Dn.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=ct,this.layers=ct.layers,this.transformCanvas={w:ct.w,h:ct.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(ct,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(ct.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(ct,Dn){this.reset();var ur,dr;ct?(ur=ct,dr=Dn,this.canvasContext.canvas.width=ur,this.canvasContext.canvas.height=dr):(this.animationItem.wrapper&&this.animationItem.container?(ur=this.animationItem.wrapper.offsetWidth,dr=this.animationItem.wrapper.offsetHeight):(ur=this.canvasContext.canvas.width,dr=this.canvasContext.canvas.height),this.canvasContext.canvas.width=ur*this.renderConfig.dpr,this.canvasContext.canvas.height=dr*this.renderConfig.dpr);var fr,hr;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var vr=this.renderConfig.preserveAspectRatio.split(" "),pr=vr[1]||"meet",mr=vr[0]||"xMidYMid",gr=mr.substr(0,4),yr=mr.substr(4);fr=ur/dr,hr=this.transformCanvas.w/this.transformCanvas.h,hr>fr&&pr==="meet"||hr<fr&&pr==="slice"?(this.transformCanvas.sx=ur/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=ur/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=dr/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=dr/(this.transformCanvas.h/this.renderConfig.dpr)),gr==="xMid"&&(hr<fr&&pr==="meet"||hr>fr&&pr==="slice")?this.transformCanvas.tx=(ur-this.transformCanvas.w*(dr/this.transformCanvas.h))/2*this.renderConfig.dpr:gr==="xMax"&&(hr<fr&&pr==="meet"||hr>fr&&pr==="slice")?this.transformCanvas.tx=(ur-this.transformCanvas.w*(dr/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,yr==="YMid"&&(hr>fr&&pr==="meet"||hr<fr&&pr==="slice")?this.transformCanvas.ty=(dr-this.transformCanvas.h*(ur/this.transformCanvas.w))/2*this.renderConfig.dpr:yr==="YMax"&&(hr>fr&&pr==="meet"||hr<fr&&pr==="slice")?this.transformCanvas.ty=(dr-this.transformCanvas.h*(ur/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=ur/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=dr/(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 ct,Dn=this.layers?this.layers.length:0;for(ct=Dn-1;ct>=0;ct-=1)this.elements[ct]&&this.elements[ct].destroy&&this.elements[ct].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(ct,Dn){if(!(this.renderedFrame===ct&&this.renderConfig.clearCanvas===!0&&!Dn||this.destroyed||ct===-1)){this.renderedFrame=ct,this.globalData.frameNum=ct-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||Dn,this.globalData.projectInterface.currentFrame=ct;var ur,dr=this.layers.length;for(this.completeLayers||this.checkLayers(ct),ur=dr-1;ur>=0;ur-=1)(this.completeLayers||this.elements[ur])&&this.elements[ur].prepareFrame(ct-this.layers[ur].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),ur=dr-1;ur>=0;ur-=1)(this.completeLayers||this.elements[ur])&&this.elements[ur].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(ct){var Dn=this.elements;if(!(Dn[ct]||this.layers[ct].ty===99)){var ur=this.createItem(this.layers[ct],this,this.globalData);Dn[ct]=ur,ur.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var ct=this.pendingElements.pop();ct.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 ct,Dn=15;for(ct=0;ct<Dn;ct+=1){var ur=new CanvasContext;this.stack[ct]=ur}this._length=Dn,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 ct=this._length*2,Dn=0;for(Dn=this._length;Dn<ct;Dn+=1)this.stack[Dn]=new CanvasContext;this._length=ct},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(ct){this.cArrPos-=1;var Dn=this.stack[this.cArrPos],ur=Dn.transform,dr,fr=this.cTr.props;for(dr=0;dr<16;dr+=1)fr[dr]=ur[dr];if(ct){this.nativeContext.restore();var hr=this.stack[this.cArrPos+1];this.appliedFillStyle=hr.fillStyle,this.appliedStrokeStyle=hr.strokeStyle,this.appliedLineWidth=hr.lineWidth,this.appliedLineCap=hr.lineCap,this.appliedLineJoin=hr.lineJoin,this.appliedMiterLimit=hr.miterLimit}this.nativeContext.setTransform(ur[0],ur[1],ur[4],ur[5],ur[12],ur[13]),(ct||Dn.opacity!==-1&&this.currentOpacity!==Dn.opacity)&&(this.nativeContext.globalAlpha=Dn.opacity,this.currentOpacity=Dn.opacity),this.currentFillStyle=Dn.fillStyle,this.currentStrokeStyle=Dn.strokeStyle,this.currentLineWidth=Dn.lineWidth,this.currentLineCap=Dn.lineCap,this.currentLineJoin=Dn.lineJoin,this.currentMiterLimit=Dn.miterLimit},CVContextData.prototype.save=function(ct){ct&&this.nativeContext.save();var Dn=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var ur=this.stack[this.cArrPos],dr;for(dr=0;dr<16;dr+=1)ur.transform[dr]=Dn[dr];this.cArrPos+=1;var fr=this.stack[this.cArrPos];fr.opacity=ur.opacity,fr.fillStyle=ur.fillStyle,fr.strokeStyle=ur.strokeStyle,fr.lineWidth=ur.lineWidth,fr.lineCap=ur.lineCap,fr.lineJoin=ur.lineJoin,fr.miterLimit=ur.miterLimit},CVContextData.prototype.setOpacity=function(ct){this.stack[this.cArrPos].opacity=ct},CVContextData.prototype.setContext=function(ct){this.nativeContext=ct},CVContextData.prototype.fillStyle=function(ct){this.stack[this.cArrPos].fillStyle!==ct&&(this.currentFillStyle=ct,this.stack[this.cArrPos].fillStyle=ct)},CVContextData.prototype.strokeStyle=function(ct){this.stack[this.cArrPos].strokeStyle!==ct&&(this.currentStrokeStyle=ct,this.stack[this.cArrPos].strokeStyle=ct)},CVContextData.prototype.lineWidth=function(ct){this.stack[this.cArrPos].lineWidth!==ct&&(this.currentLineWidth=ct,this.stack[this.cArrPos].lineWidth=ct)},CVContextData.prototype.lineCap=function(ct){this.stack[this.cArrPos].lineCap!==ct&&(this.currentLineCap=ct,this.stack[this.cArrPos].lineCap=ct)},CVContextData.prototype.lineJoin=function(ct){this.stack[this.cArrPos].lineJoin!==ct&&(this.currentLineJoin=ct,this.stack[this.cArrPos].lineJoin=ct)},CVContextData.prototype.miterLimit=function(ct){this.stack[this.cArrPos].miterLimit!==ct&&(this.currentMiterLimit=ct,this.stack[this.cArrPos].miterLimit=ct)},CVContextData.prototype.transform=function(ct){this.transformMat.cloneFromProps(ct);var Dn=this.cTr;this.transformMat.multiply(Dn),Dn.cloneFromProps(this.transformMat.props);var ur=Dn.props;this.nativeContext.setTransform(ur[0],ur[1],ur[4],ur[5],ur[12],ur[13])},CVContextData.prototype.opacity=function(ct){var Dn=this.stack[this.cArrPos].opacity;Dn*=ct<0?0:ct,this.stack[this.cArrPos].opacity!==Dn&&(this.currentOpacity!==ct&&(this.nativeContext.globalAlpha=ct,this.currentOpacity=ct),this.stack[this.cArrPos].opacity=Dn)},CVContextData.prototype.fill=function(ct){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(ct)},CVContextData.prototype.fillRect=function(ct,Dn,ur,dr){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(ct,Dn,ur,dr)},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(ct,Dn,ur){this.completeLayers=!1,this.layers=ct.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(ct,Dn,ur),this.tm=ct.tm?PropertyFactory.getProp(this,ct.tm,0,Dn.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var ct=this.canvasContext;ct.beginPath(),ct.moveTo(0,0),ct.lineTo(this.data.w,0),ct.lineTo(this.data.w,this.data.h),ct.lineTo(0,this.data.h),ct.lineTo(0,0),ct.clip();var Dn,ur=this.layers.length;for(Dn=ur-1;Dn>=0;Dn-=1)(this.completeLayers||this.elements[Dn])&&this.elements[Dn].renderFrame()},CVCompElement.prototype.destroy=function(){var ct,Dn=this.layers.length;for(ct=Dn-1;ct>=0;ct-=1)this.elements[ct]&&this.elements[ct].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(ct){return new CVCompElement(ct,this.globalData,this)};function CanvasRenderer(ct,Dn){this.animationItem=ct,this.renderConfig={clearCanvas:Dn&&Dn.clearCanvas!==void 0?Dn.clearCanvas:!0,context:Dn&&Dn.context||null,progressiveLoad:Dn&&Dn.progressiveLoad||!1,preserveAspectRatio:Dn&&Dn.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:Dn&&Dn.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:Dn&&Dn.contentVisibility||"visible",className:Dn&&Dn.className||"",id:Dn&&Dn.id||"",runExpressions:!Dn||Dn.runExpressions===void 0||Dn.runExpressions},this.renderConfig.dpr=Dn&&Dn.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=Dn&&Dn.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(ct){return new CVCompElement(ct,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 Dn=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var ur=this.finalTransform.mat.toCSS();Dn.transform=ur,Dn.webkitTransform=ur}this.finalTransform._opMdf&&(Dn.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(ct,Dn,ur){this.initElement(ct,Dn,ur)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var ct;this.data.hasMask?(ct=createNS("rect"),ct.setAttribute("width",this.data.sw),ct.setAttribute("height",this.data.sh),ct.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(ct=createTag("div"),ct.style.width=this.data.sw+"px",ct.style.height=this.data.sh+"px",ct.style.backgroundColor=this.data.sc),this.layerElement.appendChild(ct)};function HShapeElement(ct,Dn,ur){this.shapes=[],this.shapesData=ct.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(ct,Dn,ur),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 ct;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),ct=this.svgElement;else{ct=createNS("svg");var Dn=this.comp.data?this.comp.data:this.globalData.compSize;ct.setAttribute("width",Dn.w),ct.setAttribute("height",Dn.h),ct.appendChild(this.shapesContainer),this.layerElement.appendChild(ct)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=ct},HShapeElement.prototype.getTransformedPoint=function(ct,Dn){var ur,dr=ct.length;for(ur=0;ur<dr;ur+=1)Dn=ct[ur].mProps.v.applyToPointArray(Dn[0],Dn[1],0);return Dn},HShapeElement.prototype.calculateShapeBoundingBox=function(ct,Dn){var ur=ct.sh.v,dr=ct.transformers,fr,hr=ur._length,vr,pr,mr,gr;if(!(hr<=1)){for(fr=0;fr<hr-1;fr+=1)vr=this.getTransformedPoint(dr,ur.v[fr]),pr=this.getTransformedPoint(dr,ur.o[fr]),mr=this.getTransformedPoint(dr,ur.i[fr+1]),gr=this.getTransformedPoint(dr,ur.v[fr+1]),this.checkBounds(vr,pr,mr,gr,Dn);ur.c&&(vr=this.getTransformedPoint(dr,ur.v[fr]),pr=this.getTransformedPoint(dr,ur.o[fr]),mr=this.getTransformedPoint(dr,ur.i[0]),gr=this.getTransformedPoint(dr,ur.v[0]),this.checkBounds(vr,pr,mr,gr,Dn))}},HShapeElement.prototype.checkBounds=function(ct,Dn,ur,dr,fr){this.getBoundsOfCurve(ct,Dn,ur,dr);var hr=this.shapeBoundingBox;fr.x=bmMin(hr.left,fr.x),fr.xMax=bmMax(hr.right,fr.xMax),fr.y=bmMin(hr.top,fr.y),fr.yMax=bmMax(hr.bottom,fr.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(ct,Dn,ur,dr){for(var fr=[[ct[0],dr[0]],[ct[1],dr[1]]],hr,vr,pr,mr,gr,yr,Cr,br=0;br<2;++br)vr=6*ct[br]-12*Dn[br]+6*ur[br],hr=-3*ct[br]+9*Dn[br]-9*ur[br]+3*dr[br],pr=3*Dn[br]-3*ct[br],vr|=0,hr|=0,pr|=0,hr===0&&vr===0||(hr===0?(mr=-pr/vr,mr>0&&mr<1&&fr[br].push(this.calculateF(mr,ct,Dn,ur,dr,br))):(gr=vr*vr-4*pr*hr,gr>=0&&(yr=(-vr+bmSqrt(gr))/(2*hr),yr>0&&yr<1&&fr[br].push(this.calculateF(yr,ct,Dn,ur,dr,br)),Cr=(-vr-bmSqrt(gr))/(2*hr),Cr>0&&Cr<1&&fr[br].push(this.calculateF(Cr,ct,Dn,ur,dr,br)))));this.shapeBoundingBox.left=bmMin.apply(null,fr[0]),this.shapeBoundingBox.top=bmMin.apply(null,fr[1]),this.shapeBoundingBox.right=bmMax.apply(null,fr[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,fr[1])},HShapeElement.prototype.calculateF=function(ct,Dn,ur,dr,fr,hr){return bmPow(1-ct,3)*Dn[hr]+3*bmPow(1-ct,2)*ct*ur[hr]+3*(1-ct)*bmPow(ct,2)*dr[hr]+bmPow(ct,3)*fr[hr]},HShapeElement.prototype.calculateBoundingBox=function(ct,Dn){var ur,dr=ct.length;for(ur=0;ur<dr;ur+=1)ct[ur]&&ct[ur].sh?this.calculateShapeBoundingBox(ct[ur],Dn):ct[ur]&&ct[ur].it?this.calculateBoundingBox(ct[ur].it,Dn):ct[ur]&&ct[ur].style&&ct[ur].w&&this.expandStrokeBoundingBox(ct[ur].w,Dn)},HShapeElement.prototype.expandStrokeBoundingBox=function(ct,Dn){var ur=0;if(ct.keyframes){for(var dr=0;dr<ct.keyframes.length;dr+=1){var fr=ct.keyframes[dr].s;fr>ur&&(ur=fr)}ur*=ct.mult}else ur=ct.v*ct.mult;Dn.x-=ur,Dn.xMax+=ur,Dn.y-=ur,Dn.yMax+=ur},HShapeElement.prototype.currentBoxContains=function(ct){return this.currentBBox.x<=ct.x&&this.currentBBox.y<=ct.y&&this.currentBBox.width+this.currentBBox.x>=ct.x+ct.width&&this.currentBBox.height+this.currentBBox.y>=ct.y+ct.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var ct=this.tempBoundingBox,Dn=999999;if(ct.x=Dn,ct.xMax=-Dn,ct.y=Dn,ct.yMax=-Dn,this.calculateBoundingBox(this.itemsData,ct),ct.width=ct.xMax<ct.x?0:ct.xMax-ct.x,ct.height=ct.yMax<ct.y?0:ct.yMax-ct.y,this.currentBoxContains(ct))return;var ur=!1;if(this.currentBBox.w!==ct.width&&(this.currentBBox.w=ct.width,this.shapeCont.setAttribute("width",ct.width),ur=!0),this.currentBBox.h!==ct.height&&(this.currentBBox.h=ct.height,this.shapeCont.setAttribute("height",ct.height),ur=!0),ur||this.currentBBox.x!==ct.x||this.currentBBox.y!==ct.y){this.currentBBox.w=ct.width,this.currentBBox.h=ct.height,this.currentBBox.x=ct.x,this.currentBBox.y=ct.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var dr=this.shapeCont.style,fr="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";dr.transform=fr,dr.webkitTransform=fr}}};function HTextElement(ct,Dn,ur){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(ct,Dn,ur)}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 ct=createNS("g");this.maskedElement.appendChild(ct),this.innerElem=ct}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var ct=this.textProperty.currentData;this.renderedLetters=createSizedArray(ct.l?ct.l.length:0);var Dn=this.innerElem.style,ur=ct.fc?this.buildColor(ct.fc):"rgba(0,0,0,0)";Dn.fill=ur,Dn.color=ur,ct.sc&&(Dn.stroke=this.buildColor(ct.sc),Dn.strokeWidth=ct.sw+"px");var dr=this.globalData.fontManager.getFontByName(ct.f);if(!this.globalData.fontManager.chars)if(Dn.fontSize=ct.finalSize+"px",Dn.lineHeight=ct.finalSize+"px",dr.fClass)this.innerElem.className=dr.fClass;else{Dn.fontFamily=dr.fFamily;var fr=ct.fWeight,hr=ct.fStyle;Dn.fontStyle=hr,Dn.fontWeight=fr}var vr,pr,mr=ct.l;pr=mr.length;var gr,yr,Cr,br=this.mHelper,Ar,wr="",_r=0;for(vr=0;vr<pr;vr+=1){if(this.globalData.fontManager.chars?(this.textPaths[_r]?gr=this.textPaths[_r]:(gr=createNS("path"),gr.setAttribute("stroke-linecap",lineCapEnum[1]),gr.setAttribute("stroke-linejoin",lineJoinEnum[2]),gr.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[_r]?(yr=this.textSpans[_r],Cr=yr.children[0]):(yr=createTag("div"),yr.style.lineHeight=0,Cr=createNS("svg"),Cr.appendChild(gr),styleDiv(yr)))):this.isMasked?gr=this.textPaths[_r]?this.textPaths[_r]:createNS("text"):this.textSpans[_r]?(yr=this.textSpans[_r],gr=this.textPaths[_r]):(yr=createTag("span"),styleDiv(yr),gr=createTag("span"),styleDiv(gr),yr.appendChild(gr)),this.globalData.fontManager.chars){var Tr=this.globalData.fontManager.getCharData(ct.finalText[vr],dr.fStyle,this.globalData.fontManager.getFontByName(ct.f).fFamily),Er;if(Tr?Er=Tr.data:Er=null,br.reset(),Er&&Er.shapes&&Er.shapes.length&&(Ar=Er.shapes[0].it,br.scale(ct.finalSize/100,ct.finalSize/100),wr=this.createPathShape(br,Ar),gr.setAttribute("d",wr)),this.isMasked)this.innerElem.appendChild(gr);else{if(this.innerElem.appendChild(yr),Er&&Er.shapes){document.body.appendChild(Cr);var xr=Cr.getBBox();Cr.setAttribute("width",xr.width+2),Cr.setAttribute("height",xr.height+2),Cr.setAttribute("viewBox",xr.x-1+" "+(xr.y-1)+" "+(xr.width+2)+" "+(xr.height+2));var Sr=Cr.style,kr="translate("+(xr.x-1)+"px,"+(xr.y-1)+"px)";Sr.transform=kr,Sr.webkitTransform=kr,mr[vr].yOffset=xr.y-1}else Cr.setAttribute("width",1),Cr.setAttribute("height",1);yr.appendChild(Cr)}}else if(gr.textContent=mr[vr].val,gr.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(gr);else{this.innerElem.appendChild(yr);var Pr=gr.style,Ir="translate3d(0,"+-ct.finalSize/1.2+"px,0)";Pr.transform=Ir,Pr.webkitTransform=Ir}this.isMasked?this.textSpans[_r]=gr:this.textSpans[_r]=yr,this.textSpans[_r].style.display="block",this.textPaths[_r]=gr,_r+=1}for(;_r<this.textSpans.length;)this.textSpans[_r].style.display="none",_r+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var ct;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),ct=this.svgElement.style;var Dn="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";ct.transform=Dn,ct.webkitTransform=Dn}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var ur,dr,fr=0,hr=this.textAnimator.renderedLetters,vr=this.textProperty.currentData.l;dr=vr.length;var pr,mr,gr;for(ur=0;ur<dr;ur+=1)vr[ur].n?fr+=1:(mr=this.textSpans[ur],gr=this.textPaths[ur],pr=hr[fr],fr+=1,pr._mdf.m&&(this.isMasked?mr.setAttribute("transform",pr.m):(mr.style.webkitTransform=pr.m,mr.style.transform=pr.m)),mr.style.opacity=pr.o,pr.sw&&pr._mdf.sw&&gr.setAttribute("stroke-width",pr.sw),pr.sc&&pr._mdf.sc&&gr.setAttribute("stroke",pr.sc),pr.fc&&pr._mdf.fc&&(gr.setAttribute("fill",pr.fc),gr.style.color=pr.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var yr=this.innerElem.getBBox();this.currentBBox.w!==yr.width&&(this.currentBBox.w=yr.width,this.svgElement.setAttribute("width",yr.width)),this.currentBBox.h!==yr.height&&(this.currentBBox.h=yr.height,this.svgElement.setAttribute("height",yr.height));var Cr=1;if(this.currentBBox.w!==yr.width+Cr*2||this.currentBBox.h!==yr.height+Cr*2||this.currentBBox.x!==yr.x-Cr||this.currentBBox.y!==yr.y-Cr){this.currentBBox.w=yr.width+Cr*2,this.currentBBox.h=yr.height+Cr*2,this.currentBBox.x=yr.x-Cr,this.currentBBox.y=yr.y-Cr,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),ct=this.svgElement.style;var br="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";ct.transform=br,ct.webkitTransform=br}}}};function HCameraElement(ct,Dn,ur){this.initFrame(),this.initBaseData(ct,Dn,ur),this.initHierarchy();var dr=PropertyFactory.getProp;if(this.pe=dr(this,ct.pe,0,0,this),ct.ks.p.s?(this.px=dr(this,ct.ks.p.x,1,0,this),this.py=dr(this,ct.ks.p.y,1,0,this),this.pz=dr(this,ct.ks.p.z,1,0,this)):this.p=dr(this,ct.ks.p,1,0,this),ct.ks.a&&(this.a=dr(this,ct.ks.a,1,0,this)),ct.ks.or.k.length&&ct.ks.or.k[0].to){var fr,hr=ct.ks.or.k.length;for(fr=0;fr<hr;fr+=1)ct.ks.or.k[fr].to=null,ct.ks.or.k[fr].ti=null}this.or=dr(this,ct.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=dr(this,ct.ks.rx,0,degToRads,this),this.ry=dr(this,ct.ks.ry,0,degToRads,this),this.rz=dr(this,ct.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 ct,Dn=this.comp.threeDElements.length,ur,dr,fr;for(ct=0;ct<Dn;ct+=1)if(ur=this.comp.threeDElements[ct],ur.type==="3d"){dr=ur.perspectiveElem.style,fr=ur.container.style;var hr=this.pe.v+"px",vr="0px 0px 0px",pr="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";dr.perspective=hr,dr.webkitPerspective=hr,fr.transformOrigin=vr,fr.mozTransformOrigin=vr,fr.webkitTransformOrigin=vr,dr.transform=pr,dr.webkitTransform=pr}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var ct=this._isFirstFrame,Dn,ur;if(this.hierarchy)for(ur=this.hierarchy.length,Dn=0;Dn<ur;Dn+=1)ct=this.hierarchy[Dn].finalTransform.mProp._mdf||ct;if(ct||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(ur=this.hierarchy.length-1,Dn=ur;Dn>=0;Dn-=1){var dr=this.hierarchy[Dn].finalTransform.mProp;this.mat.translate(-dr.p.v[0],-dr.p.v[1],dr.p.v[2]),this.mat.rotateX(-dr.or.v[0]).rotateY(-dr.or.v[1]).rotateZ(dr.or.v[2]),this.mat.rotateX(-dr.rx.v).rotateY(-dr.ry.v).rotateZ(dr.rz.v),this.mat.scale(1/dr.s.v[0],1/dr.s.v[1],1/dr.s.v[2]),this.mat.translate(dr.a.v[0],dr.a.v[1],dr.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 fr;this.p?fr=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:fr=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var hr=Math.sqrt(Math.pow(fr[0],2)+Math.pow(fr[1],2)+Math.pow(fr[2],2)),vr=[fr[0]/hr,fr[1]/hr,fr[2]/hr],pr=Math.sqrt(vr[2]*vr[2]+vr[0]*vr[0]),mr=Math.atan2(vr[1],pr),gr=Math.atan2(vr[0],-vr[2]);this.mat.rotateY(gr).rotateX(-mr)}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 yr=!this._prevMat.equals(this.mat);if((yr||this.pe._mdf)&&this.comp.threeDElements){ur=this.comp.threeDElements.length;var Cr,br,Ar;for(Dn=0;Dn<ur;Dn+=1)if(Cr=this.comp.threeDElements[Dn],Cr.type==="3d"){if(yr){var wr=this.mat.toCSS();Ar=Cr.container.style,Ar.transform=wr,Ar.webkitTransform=wr}this.pe._mdf&&(br=Cr.perspectiveElem.style,br.perspective=this.pe.v+"px",br.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(ct){this.prepareProperties(ct,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(ct,Dn,ur){this.assetData=Dn.getAssetData(ct.refId),this.initElement(ct,Dn,ur)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var ct=this.globalData.getAssetsPath(this.assetData),Dn=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",ct),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(Dn),Dn.crossOrigin="anonymous",Dn.src=ct,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(ct,Dn){this.animationItem=ct,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:Dn&&Dn.className||"",imagePreserveAspectRatio:Dn&&Dn.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(Dn&&Dn.hideOnTransparent===!1),filterSize:{width:Dn&&Dn.filterSize&&Dn.filterSize.width||"400%",height:Dn&&Dn.filterSize&&Dn.filterSize.height||"400%",x:Dn&&Dn.filterSize&&Dn.filterSize.x||"-100%",y:Dn&&Dn.filterSize&&Dn.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 ct=this.pendingElements.pop();ct.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(ct,Dn){var ur=ct.getBaseElement();if(ur){var dr=this.layers[Dn];if(!dr.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(ur,Dn);else{for(var fr=0,hr,vr,pr;fr<Dn;)this.elements[fr]&&this.elements[fr]!==!0&&this.elements[fr].getBaseElement&&(vr=this.elements[fr],pr=this.layers[fr].ddd?this.getThreeDContainerByPos(fr):vr.getBaseElement(),hr=pr||hr),fr+=1;hr?(!dr.ddd||!this.supports3d)&&this.layerElement.insertBefore(ur,hr):(!dr.ddd||!this.supports3d)&&this.layerElement.appendChild(ur)}else this.addTo3dContainer(ur,Dn)}},HybridRendererBase.prototype.createShape=function(ct){return this.supports3d?new HShapeElement(ct,this.globalData,this):new SVGShapeElement(ct,this.globalData,this)},HybridRendererBase.prototype.createText=function(ct){return this.supports3d?new HTextElement(ct,this.globalData,this):new SVGTextLottieElement(ct,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(ct){return this.camera=new HCameraElement(ct,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(ct){return this.supports3d?new HImageElement(ct,this.globalData,this):new IImageElement(ct,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(ct){return this.supports3d?new HSolidElement(ct,this.globalData,this):new ISolidElement(ct,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(ct){for(var Dn=0,ur=this.threeDElements.length;Dn<ur;){if(this.threeDElements[Dn].startPos<=ct&&this.threeDElements[Dn].endPos>=ct)return this.threeDElements[Dn].perspectiveElem;Dn+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(ct,Dn){var ur=createTag("div"),dr,fr;styleDiv(ur);var hr=createTag("div");if(styleDiv(hr),Dn==="3d"){dr=ur.style,dr.width=this.globalData.compSize.w+"px",dr.height=this.globalData.compSize.h+"px";var vr="50% 50%";dr.webkitTransformOrigin=vr,dr.mozTransformOrigin=vr,dr.transformOrigin=vr,fr=hr.style;var pr="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";fr.transform=pr,fr.webkitTransform=pr}ur.appendChild(hr);var mr={container:hr,perspectiveElem:ur,startPos:ct,endPos:ct,type:Dn};return this.threeDElements.push(mr),mr},HybridRendererBase.prototype.build3dContainers=function(){var ct,Dn=this.layers.length,ur,dr="";for(ct=0;ct<Dn;ct+=1)this.layers[ct].ddd&&this.layers[ct].ty!==3?(dr!=="3d"&&(dr="3d",ur=this.createThreeDContainer(ct,"3d")),ur.endPos=Math.max(ur.endPos,ct)):(dr!=="2d"&&(dr="2d",ur=this.createThreeDContainer(ct,"2d")),ur.endPos=Math.max(ur.endPos,ct));for(Dn=this.threeDElements.length,ct=Dn-1;ct>=0;ct-=1)this.resizerElem.appendChild(this.threeDElements[ct].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(ct,Dn){for(var ur=0,dr=this.threeDElements.length;ur<dr;){if(Dn<=this.threeDElements[ur].endPos){for(var fr=this.threeDElements[ur].startPos,hr;fr<Dn;)this.elements[fr]&&this.elements[fr].getBaseElement&&(hr=this.elements[fr].getBaseElement()),fr+=1;hr?this.threeDElements[ur].container.insertBefore(ct,hr):this.threeDElements[ur].container.appendChild(ct);break}ur+=1}},HybridRendererBase.prototype.configAnimation=function(ct){var Dn=createTag("div"),ur=this.animationItem.wrapper,dr=Dn.style;dr.width=ct.w+"px",dr.height=ct.h+"px",this.resizerElem=Dn,styleDiv(Dn),dr.transformStyle="flat",dr.mozTransformStyle="flat",dr.webkitTransformStyle="flat",this.renderConfig.className&&Dn.setAttribute("class",this.renderConfig.className),ur.appendChild(Dn),dr.overflow="hidden";var fr=createNS("svg");fr.setAttribute("width","1"),fr.setAttribute("height","1"),styleDiv(fr),this.resizerElem.appendChild(fr);var hr=createNS("defs");fr.appendChild(hr),this.data=ct,this.setupGlobalData(ct,fr),this.globalData.defs=hr,this.layers=ct.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 ct,Dn=this.layers?this.layers.length:0;for(ct=0;ct<Dn;ct+=1)this.elements[ct]&&this.elements[ct].destroy&&this.elements[ct].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var ct=this.animationItem.wrapper.offsetWidth,Dn=this.animationItem.wrapper.offsetHeight,ur=ct/Dn,dr=this.globalData.compSize.w/this.globalData.compSize.h,fr,hr,vr,pr;dr>ur?(fr=ct/this.globalData.compSize.w,hr=ct/this.globalData.compSize.w,vr=0,pr=(Dn-this.globalData.compSize.h*(ct/this.globalData.compSize.w))/2):(fr=Dn/this.globalData.compSize.h,hr=Dn/this.globalData.compSize.h,vr=(ct-this.globalData.compSize.w*(Dn/this.globalData.compSize.h))/2,pr=0);var mr=this.resizerElem.style;mr.webkitTransform="matrix3d("+fr+",0,0,0,0,"+hr+",0,0,0,0,1,0,"+vr+","+pr+",0,1)",mr.transform=mr.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 ct=this.globalData.compSize.w,Dn=this.globalData.compSize.h,ur,dr=this.threeDElements.length;for(ur=0;ur<dr;ur+=1){var fr=this.threeDElements[ur].perspectiveElem.style;fr.webkitPerspective=Math.sqrt(Math.pow(ct,2)+Math.pow(Dn,2))+"px",fr.perspective=fr.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(ct){var Dn,ur=ct.length,dr=createTag("div");for(Dn=0;Dn<ur;Dn+=1)if(ct[Dn].xt){var fr=this.createComp(ct[Dn],dr,this.globalData.comp,null);fr.initExpressions(),this.globalData.projectInterface.registerComposition(fr)}};function HCompElement(ct,Dn,ur){this.layers=ct.layers,this.supports3d=!ct.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(ct,Dn,ur),this.tm=ct.tm?PropertyFactory.getProp(this,ct.tm,0,Dn.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(ct,Dn){for(var ur=0,dr;ur<Dn;)this.elements[ur]&&this.elements[ur].getBaseElement&&(dr=this.elements[ur].getBaseElement()),ur+=1;dr?this.layerElement.insertBefore(ct,dr):this.layerElement.appendChild(ct)},HCompElement.prototype.createComp=function(ct){return this.supports3d?new HCompElement(ct,this.globalData,this):new SVGCompElement(ct,this.globalData,this)};function HybridRenderer(ct,Dn){this.animationItem=ct,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:Dn&&Dn.className||"",imagePreserveAspectRatio:Dn&&Dn.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(Dn&&Dn.hideOnTransparent===!1),filterSize:{width:Dn&&Dn.filterSize&&Dn.filterSize.width||"400%",height:Dn&&Dn.filterSize&&Dn.filterSize.height||"400%",x:Dn&&Dn.filterSize&&Dn.filterSize.x||"-100%",y:Dn&&Dn.filterSize&&Dn.filterSize.y||"-100%"},runExpressions:!Dn||Dn.runExpressions===void 0||Dn.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(ct){return this.supports3d?new HCompElement(ct,this.globalData,this):new SVGCompElement(ct,this.globalData,this)};var CompExpressionInterface=function(){return function(ct){function Dn(ur){for(var dr=0,fr=ct.layers.length;dr<fr;){if(ct.layers[dr].nm===ur||ct.layers[dr].ind===ur)return ct.elements[dr].layerInterface;dr+=1}return null}return Object.defineProperty(Dn,"_name",{value:ct.data.nm}),Dn.layer=Dn,Dn.pixelAspect=1,Dn.height=ct.data.h||ct.globalData.compSize.h,Dn.width=ct.data.w||ct.globalData.compSize.w,Dn.pixelAspect=1,Dn.frameDuration=1/ct.globalData.frameRate,Dn.displayStartTime=0,Dn.numLayers=ct.layers.length,Dn}}();function _typeof$2(ct){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function(ur){return typeof ur}:_typeof$2=function(ur){return ur&&typeof Symbol=="function"&&ur.constructor===Symbol&&ur!==Symbol.prototype?"symbol":typeof ur},_typeof$2(ct)}function seedRandom(ct,Dn){var ur=this,dr=256,fr=6,hr=52,vr="random",pr=Dn.pow(dr,fr),mr=Dn.pow(2,hr),gr=mr*2,yr=dr-1,Cr;function br(Sr,kr,Pr){var Ir=[];kr=kr===!0?{entropy:!0}:kr||{};var Br=Tr(_r(kr.entropy?[Sr,xr(ct)]:Sr===null?Er():Sr,3),Ir),Or=new Ar(Ir),Nr=function(){for(var Vr=Or.g(fr),$r=pr,zr=0;Vr<mr;)Vr=(Vr+zr)*dr,$r*=dr,zr=Or.g(1);for(;Vr>=gr;)Vr/=2,$r/=2,zr>>>=1;return(Vr+zr)/$r};return Nr.int32=function(){return Or.g(4)|0},Nr.quick=function(){return Or.g(4)/4294967296},Nr.double=Nr,Tr(xr(Or.S),ct),(kr.pass||Pr||function(jr,Vr,$r,zr){return zr&&(zr.S&&wr(zr,Or),jr.state=function(){return wr(Or,{})}),$r?(Dn[vr]=jr,Vr):jr})(Nr,Br,"global"in kr?kr.global:this==Dn,kr.state)}Dn["seed"+vr]=br;function Ar(Sr){var kr,Pr=Sr.length,Ir=this,Br=0,Or=Ir.i=Ir.j=0,Nr=Ir.S=[];for(Pr||(Sr=[Pr++]);Br<dr;)Nr[Br]=Br++;for(Br=0;Br<dr;Br++)Nr[Br]=Nr[Or=yr&Or+Sr[Br%Pr]+(kr=Nr[Br])],Nr[Or]=kr;Ir.g=function(jr){for(var Vr,$r=0,zr=Ir.i,Wr=Ir.j,qr=Ir.S;jr--;)Vr=qr[zr=yr&zr+1],$r=$r*dr+qr[yr&(qr[zr]=qr[Wr=yr&Wr+Vr])+(qr[Wr]=Vr)];return Ir.i=zr,Ir.j=Wr,$r}}function wr(Sr,kr){return kr.i=Sr.i,kr.j=Sr.j,kr.S=Sr.S.slice(),kr}function _r(Sr,kr){var Pr=[],Ir=_typeof$2(Sr),Br;if(kr&&Ir=="object")for(Br in Sr)try{Pr.push(_r(Sr[Br],kr-1))}catch{}return Pr.length?Pr:Ir=="string"?Sr:Sr+"\0"}function Tr(Sr,kr){for(var Pr=Sr+"",Ir,Br=0;Br<Pr.length;)kr[yr&Br]=yr&(Ir^=kr[yr&Br]*19)+Pr.charCodeAt(Br++);return xr(kr)}function Er(){try{var Sr=new Uint8Array(dr);return(ur.crypto||ur.msCrypto).getRandomValues(Sr),xr(Sr)}catch{var kr=ur.navigator,Pr=kr&&kr.plugins;return[+new Date,ur,Pr,ur.screen,xr(ct)]}}function xr(Sr){return String.fromCharCode.apply(0,Sr)}Tr(Dn.random(),ct)}function initialize$2(ct){seedRandom([],ct)}var propTypes={SHAPE:"shape"};function _typeof$1(ct){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(ur){return typeof ur}:_typeof$1=function(ur){return ur&&typeof Symbol=="function"&&ur.constructor===Symbol&&ur!==Symbol.prototype?"symbol":typeof ur},_typeof$1(ct)}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(ct){return ct.constructor===Array||ct.constructor===Float32Array}function isNumerable(ct,Dn){return ct==="number"||Dn instanceof Number||ct==="boolean"||ct==="string"}function $bm_neg(ct){var Dn=_typeof$1(ct);if(Dn==="number"||ct instanceof Number||Dn==="boolean")return-ct;if($bm_isInstanceOfArray(ct)){var ur,dr=ct.length,fr=[];for(ur=0;ur<dr;ur+=1)fr[ur]=-ct[ur];return fr}return ct.propType?ct.v:-ct}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(ct,Dn){var ur=_typeof$1(ct),dr=_typeof$1(Dn);if(isNumerable(ur,ct)&&isNumerable(dr,Dn)||ur==="string"||dr==="string")return ct+Dn;if($bm_isInstanceOfArray(ct)&&isNumerable(dr,Dn))return ct=ct.slice(0),ct[0]+=Dn,ct;if(isNumerable(ur,ct)&&$bm_isInstanceOfArray(Dn))return Dn=Dn.slice(0),Dn[0]=ct+Dn[0],Dn;if($bm_isInstanceOfArray(ct)&&$bm_isInstanceOfArray(Dn)){for(var fr=0,hr=ct.length,vr=Dn.length,pr=[];fr<hr||fr<vr;)(typeof ct[fr]=="number"||ct[fr]instanceof Number)&&(typeof Dn[fr]=="number"||Dn[fr]instanceof Number)?pr[fr]=ct[fr]+Dn[fr]:pr[fr]=Dn[fr]===void 0?ct[fr]:ct[fr]||Dn[fr],fr+=1;return pr}return 0}var add=sum;function sub(ct,Dn){var ur=_typeof$1(ct),dr=_typeof$1(Dn);if(isNumerable(ur,ct)&&isNumerable(dr,Dn))return ur==="string"&&(ct=parseInt(ct,10)),dr==="string"&&(Dn=parseInt(Dn,10)),ct-Dn;if($bm_isInstanceOfArray(ct)&&isNumerable(dr,Dn))return ct=ct.slice(0),ct[0]-=Dn,ct;if(isNumerable(ur,ct)&&$bm_isInstanceOfArray(Dn))return Dn=Dn.slice(0),Dn[0]=ct-Dn[0],Dn;if($bm_isInstanceOfArray(ct)&&$bm_isInstanceOfArray(Dn)){for(var fr=0,hr=ct.length,vr=Dn.length,pr=[];fr<hr||fr<vr;)(typeof ct[fr]=="number"||ct[fr]instanceof Number)&&(typeof Dn[fr]=="number"||Dn[fr]instanceof Number)?pr[fr]=ct[fr]-Dn[fr]:pr[fr]=Dn[fr]===void 0?ct[fr]:ct[fr]||Dn[fr],fr+=1;return pr}return 0}function mul(ct,Dn){var ur=_typeof$1(ct),dr=_typeof$1(Dn),fr;if(isNumerable(ur,ct)&&isNumerable(dr,Dn))return ct*Dn;var hr,vr;if($bm_isInstanceOfArray(ct)&&isNumerable(dr,Dn)){for(vr=ct.length,fr=createTypedArray("float32",vr),hr=0;hr<vr;hr+=1)fr[hr]=ct[hr]*Dn;return fr}if(isNumerable(ur,ct)&&$bm_isInstanceOfArray(Dn)){for(vr=Dn.length,fr=createTypedArray("float32",vr),hr=0;hr<vr;hr+=1)fr[hr]=ct*Dn[hr];return fr}return 0}function div(ct,Dn){var ur=_typeof$1(ct),dr=_typeof$1(Dn),fr;if(isNumerable(ur,ct)&&isNumerable(dr,Dn))return ct/Dn;var hr,vr;if($bm_isInstanceOfArray(ct)&&isNumerable(dr,Dn)){for(vr=ct.length,fr=createTypedArray("float32",vr),hr=0;hr<vr;hr+=1)fr[hr]=ct[hr]/Dn;return fr}if(isNumerable(ur,ct)&&$bm_isInstanceOfArray(Dn)){for(vr=Dn.length,fr=createTypedArray("float32",vr),hr=0;hr<vr;hr+=1)fr[hr]=ct/Dn[hr];return fr}return 0}function mod(ct,Dn){return typeof ct=="string"&&(ct=parseInt(ct,10)),typeof Dn=="string"&&(Dn=parseInt(Dn,10)),ct%Dn}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(ct,Dn,ur){if(Dn>ur){var dr=ur;ur=Dn,Dn=dr}return Math.min(Math.max(ct,Dn),ur)}function radiansToDegrees(ct){return ct/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(ct){return ct*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(ct,Dn){if(typeof ct=="number"||ct instanceof Number)return Dn=Dn||0,Math.abs(ct-Dn);Dn||(Dn=helperLengthArray);var ur,dr=Math.min(ct.length,Dn.length),fr=0;for(ur=0;ur<dr;ur+=1)fr+=Math.pow(Dn[ur]-ct[ur],2);return Math.sqrt(fr)}function normalize(ct){return div(ct,length(ct))}function rgbToHsl(ct){var Dn=ct[0],ur=ct[1],dr=ct[2],fr=Math.max(Dn,ur,dr),hr=Math.min(Dn,ur,dr),vr,pr,mr=(fr+hr)/2;if(fr===hr)vr=0,pr=0;else{var gr=fr-hr;switch(pr=mr>.5?gr/(2-fr-hr):gr/(fr+hr),fr){case Dn:vr=(ur-dr)/gr+(ur<dr?6:0);break;case ur:vr=(dr-Dn)/gr+2;break;case dr:vr=(Dn-ur)/gr+4;break}vr/=6}return[vr,pr,mr,ct[3]]}function hue2rgb(ct,Dn,ur){return ur<0&&(ur+=1),ur>1&&(ur-=1),ur<1/6?ct+(Dn-ct)*6*ur:ur<1/2?Dn:ur<2/3?ct+(Dn-ct)*(2/3-ur)*6:ct}function hslToRgb(ct){var Dn=ct[0],ur=ct[1],dr=ct[2],fr,hr,vr;if(ur===0)fr=dr,vr=dr,hr=dr;else{var pr=dr<.5?dr*(1+ur):dr+ur-dr*ur,mr=2*dr-pr;fr=hue2rgb(mr,pr,Dn+1/3),hr=hue2rgb(mr,pr,Dn),vr=hue2rgb(mr,pr,Dn-1/3)}return[fr,hr,vr,ct[3]]}function linear(ct,Dn,ur,dr,fr){if((dr===void 0||fr===void 0)&&(dr=Dn,fr=ur,Dn=0,ur=1),ur<Dn){var hr=ur;ur=Dn,Dn=hr}if(ct<=Dn)return dr;if(ct>=ur)return fr;var vr=ur===Dn?0:(ct-Dn)/(ur-Dn);if(!dr.length)return dr+(fr-dr)*vr;var pr,mr=dr.length,gr=createTypedArray("float32",mr);for(pr=0;pr<mr;pr+=1)gr[pr]=dr[pr]+(fr[pr]-dr[pr])*vr;return gr}function random(ct,Dn){if(Dn===void 0&&(ct===void 0?(ct=0,Dn=1):(Dn=ct,ct=void 0)),Dn.length){var ur,dr=Dn.length;ct||(ct=createTypedArray("float32",dr));var fr=createTypedArray("float32",dr),hr=BMMath.random();for(ur=0;ur<dr;ur+=1)fr[ur]=ct[ur]+hr*(Dn[ur]-ct[ur]);return fr}ct===void 0&&(ct=0);var vr=BMMath.random();return ct+vr*(Dn-ct)}function createPath(ct,Dn,ur,dr){var fr,hr=ct.length,vr=shapePool.newElement();vr.setPathData(!!dr,hr);var pr=[0,0],mr,gr;for(fr=0;fr<hr;fr+=1)mr=Dn&&Dn[fr]?Dn[fr]:pr,gr=ur&&ur[fr]?ur[fr]:pr,vr.setTripleAt(ct[fr][0],ct[fr][1],gr[0]+ct[fr][0],gr[1]+ct[fr][1],mr[0]+ct[fr][0],mr[1]+ct[fr][1],fr,!0);return vr}function initiateExpression(elem,data,property){function noOp(ct){return ct}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 ct(Dn,ur){var dr,fr,hr=this.pv.length?this.pv.length:1,vr=createTypedArray("float32",hr);Dn=5;var pr=Math.floor(time*Dn);for(dr=0,fr=0;dr<pr;){for(fr=0;fr<hr;fr+=1)vr[fr]+=-ur+ur*2*BMMath.random();dr+=1}var mr=time*Dn,gr=mr-Math.floor(mr),yr=createTypedArray("float32",hr);if(hr>1){for(fr=0;fr<hr;fr+=1)yr[fr]=this.pv[fr]+vr[fr]+(-ur+ur*2*BMMath.random())*gr;return yr}return this.pv+vr[0]+(-ur+ur*2*BMMath.random())*gr}).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(ct,Dn){return loopIn(ct,Dn,!0)}function loopOutDuration(ct,Dn){return loopOut(ct,Dn,!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(ct,Dn){var ur=[Dn[0]-ct[0],Dn[1]-ct[1],Dn[2]-ct[2]],dr=Math.atan2(ur[0],Math.sqrt(ur[1]*ur[1]+ur[2]*ur[2]))/degToRads,fr=-Math.atan2(ur[1],ur[2])/degToRads;return[fr,dr,0]}function easeOut(ct,Dn,ur,dr,fr){return applyEase(easeOutBez,ct,Dn,ur,dr,fr)}function easeIn(ct,Dn,ur,dr,fr){return applyEase(easeInBez,ct,Dn,ur,dr,fr)}function ease(ct,Dn,ur,dr,fr){return applyEase(easeInOutBez,ct,Dn,ur,dr,fr)}function applyEase(ct,Dn,ur,dr,fr,hr){fr===void 0?(fr=ur,hr=dr):Dn=(Dn-ur)/(dr-ur),Dn>1?Dn=1:Dn<0&&(Dn=0);var vr=ct(Dn);if($bm_isInstanceOfArray(fr)){var pr,mr=fr.length,gr=createTypedArray("float32",mr);for(pr=0;pr<mr;pr+=1)gr[pr]=(hr[pr]-fr[pr])*vr+fr[pr];return gr}return(hr-fr)*vr+fr}function nearestKey(ct){var Dn,ur=data.k.length,dr,fr;if(!data.k.length||typeof data.k[0]=="number")dr=0,fr=0;else if(dr=-1,ct*=elem.comp.globalData.frameRate,ct<data.k[0].t)dr=1,fr=data.k[0].t;else{for(Dn=0;Dn<ur-1;Dn+=1)if(ct===data.k[Dn].t){dr=Dn+1,fr=data.k[Dn].t;break}else if(ct>data.k[Dn].t&&ct<data.k[Dn+1].t){ct-data.k[Dn].t>data.k[Dn+1].t-ct?(dr=Dn+2,fr=data.k[Dn+1].t):(dr=Dn+1,fr=data.k[Dn].t);break}dr===-1&&(dr=Dn+1,fr=data.k[Dn].t)}var hr={};return hr.index=dr,hr.time=fr/elem.comp.globalData.frameRate,hr}function key(ct){var Dn,ur,dr;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+ct);ct-=1,Dn={time:data.k[ct].t/elem.comp.globalData.frameRate,value:[]};var fr=Object.prototype.hasOwnProperty.call(data.k[ct],"s")?data.k[ct].s:data.k[ct-1].e;for(dr=fr.length,ur=0;ur<dr;ur+=1)Dn[ur]=fr[ur],Dn.value[ur]=fr[ur];return Dn}function framesToTime(ct,Dn){return Dn||(Dn=elem.comp.globalData.frameRate),ct/Dn}function timeToFrames(ct,Dn){return!ct&&ct!==0&&(ct=time),Dn||(Dn=elem.comp.globalData.frameRate),ct*Dn}function seedRandom(ct){BMMath.seedrandom(randSeed+ct)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(ct,Dn){return typeof value=="string"?Dn===void 0?value.substring(ct):value.substring(ct,Dn):""}function substr(ct,Dn){return typeof value=="string"?Dn===void 0?value.substr(ct):value.substr(ct,Dn):""}function posterizeTime(ct){time=ct===0?0:Math.floor(time*ct)/ct,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(ct){return value=ct,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 ct={};ct.initExpressions=Dn,ct.resetFrame=ExpressionManager.resetFrame;function Dn(ur){var dr=0,fr=[];function hr(){dr+=1}function vr(){dr-=1,dr===0&&mr()}function pr(gr){fr.indexOf(gr)===-1&&fr.push(gr)}function mr(){var gr,yr=fr.length;for(gr=0;gr<yr;gr+=1)fr[gr].release();fr.length=0}ur.renderer.compInterface=CompExpressionInterface(ur.renderer),ur.renderer.globalData.projectInterface.registerComposition(ur.renderer),ur.renderer.globalData.pushExpression=hr,ur.renderer.globalData.popExpression=vr,ur.renderer.globalData.registerExpressionProperty=pr}return ct}(),MaskManagerInterface=function(){function ct(ur,dr){this._mask=ur,this._data=dr}Object.defineProperty(ct.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(ct.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var Dn=function(dr){var fr=createSizedArray(dr.viewData.length),hr,vr=dr.viewData.length;for(hr=0;hr<vr;hr+=1)fr[hr]=new ct(dr.viewData[hr],dr.masksProperties[hr]);var pr=function(gr){for(hr=0;hr<vr;){if(dr.masksProperties[hr].nm===gr)return fr[hr];hr+=1}return null};return pr};return Dn}(),ExpressionPropertyInterface=function(){var ct={pv:0,v:0,mult:1},Dn={pv:[0,0,0],v:[0,0,0],mult:1};function ur(vr,pr,mr){Object.defineProperty(vr,"velocity",{get:function(){return pr.getVelocityAtTime(pr.comp.currentFrame)}}),vr.numKeys=pr.keyframes?pr.keyframes.length:0,vr.key=function(gr){if(!vr.numKeys)return 0;var yr="";"s"in pr.keyframes[gr-1]?yr=pr.keyframes[gr-1].s:"e"in pr.keyframes[gr-2]?yr=pr.keyframes[gr-2].e:yr=pr.keyframes[gr-2].s;var Cr=mr==="unidimensional"?new Number(yr):Object.assign({},yr);return Cr.time=pr.keyframes[gr-1].t/pr.elem.comp.globalData.frameRate,Cr.value=mr==="unidimensional"?yr[0]:yr,Cr},vr.valueAtTime=pr.getValueAtTime,vr.speedAtTime=pr.getSpeedAtTime,vr.velocityAtTime=pr.getVelocityAtTime,vr.propertyGroup=pr.propertyGroup}function dr(vr){(!vr||!("pv"in vr))&&(vr=ct);var pr=1/vr.mult,mr=vr.pv*pr,gr=new Number(mr);return gr.value=mr,ur(gr,vr,"unidimensional"),function(){return vr.k&&vr.getValue(),mr=vr.v*pr,gr.value!==mr&&(gr=new Number(mr),gr.value=mr,ur(gr,vr,"unidimensional")),gr}}function fr(vr){(!vr||!("pv"in vr))&&(vr=Dn);var pr=1/vr.mult,mr=vr.data&&vr.data.l||vr.pv.length,gr=createTypedArray("float32",mr),yr=createTypedArray("float32",mr);return gr.value=yr,ur(gr,vr,"multidimensional"),function(){vr.k&&vr.getValue();for(var Cr=0;Cr<mr;Cr+=1)yr[Cr]=vr.v[Cr]*pr,gr[Cr]=yr[Cr];return gr}}function hr(){return ct}return function(vr){return vr?vr.propType==="unidimensional"?dr(vr):fr(vr):hr}}(),TransformExpressionInterface=function(){return function(ct){function Dn(vr){switch(vr){case"scale":case"Scale":case"ADBE Scale":case 6:return Dn.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return Dn.rotation;case"ADBE Rotate X":return Dn.xRotation;case"ADBE Rotate Y":return Dn.yRotation;case"position":case"Position":case"ADBE Position":case 2:return Dn.position;case"ADBE Position_0":return Dn.xPosition;case"ADBE Position_1":return Dn.yPosition;case"ADBE Position_2":return Dn.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return Dn.anchorPoint;case"opacity":case"Opacity":case 11:return Dn.opacity;default:return null}}Object.defineProperty(Dn,"rotation",{get:ExpressionPropertyInterface(ct.r||ct.rz)}),Object.defineProperty(Dn,"zRotation",{get:ExpressionPropertyInterface(ct.rz||ct.r)}),Object.defineProperty(Dn,"xRotation",{get:ExpressionPropertyInterface(ct.rx)}),Object.defineProperty(Dn,"yRotation",{get:ExpressionPropertyInterface(ct.ry)}),Object.defineProperty(Dn,"scale",{get:ExpressionPropertyInterface(ct.s)});var ur,dr,fr,hr;return ct.p?hr=ExpressionPropertyInterface(ct.p):(ur=ExpressionPropertyInterface(ct.px),dr=ExpressionPropertyInterface(ct.py),ct.pz&&(fr=ExpressionPropertyInterface(ct.pz))),Object.defineProperty(Dn,"position",{get:function(){return ct.p?hr():[ur(),dr(),fr?fr():0]}}),Object.defineProperty(Dn,"xPosition",{get:ExpressionPropertyInterface(ct.px)}),Object.defineProperty(Dn,"yPosition",{get:ExpressionPropertyInterface(ct.py)}),Object.defineProperty(Dn,"zPosition",{get:ExpressionPropertyInterface(ct.pz)}),Object.defineProperty(Dn,"anchorPoint",{get:ExpressionPropertyInterface(ct.a)}),Object.defineProperty(Dn,"opacity",{get:ExpressionPropertyInterface(ct.o)}),Object.defineProperty(Dn,"skew",{get:ExpressionPropertyInterface(ct.sk)}),Object.defineProperty(Dn,"skewAxis",{get:ExpressionPropertyInterface(ct.sa)}),Object.defineProperty(Dn,"orientation",{get:ExpressionPropertyInterface(ct.or)}),Dn}}(),LayerExpressionInterface=function(){function ct(gr){var yr=new Matrix;if(gr!==void 0){var Cr=this._elem.finalTransform.mProp.getValueAtTime(gr);Cr.clone(yr)}else{var br=this._elem.finalTransform.mProp;br.applyToMatrix(yr)}return yr}function Dn(gr,yr){var Cr=this.getMatrix(yr);return Cr.props[12]=0,Cr.props[13]=0,Cr.props[14]=0,this.applyPoint(Cr,gr)}function ur(gr,yr){var Cr=this.getMatrix(yr);return this.applyPoint(Cr,gr)}function dr(gr,yr){var Cr=this.getMatrix(yr);return Cr.props[12]=0,Cr.props[13]=0,Cr.props[14]=0,this.invertPoint(Cr,gr)}function fr(gr,yr){var Cr=this.getMatrix(yr);return this.invertPoint(Cr,gr)}function hr(gr,yr){if(this._elem.hierarchy&&this._elem.hierarchy.length){var Cr,br=this._elem.hierarchy.length;for(Cr=0;Cr<br;Cr+=1)this._elem.hierarchy[Cr].finalTransform.mProp.applyToMatrix(gr)}return gr.applyToPointArray(yr[0],yr[1],yr[2]||0)}function vr(gr,yr){if(this._elem.hierarchy&&this._elem.hierarchy.length){var Cr,br=this._elem.hierarchy.length;for(Cr=0;Cr<br;Cr+=1)this._elem.hierarchy[Cr].finalTransform.mProp.applyToMatrix(gr)}return gr.inversePoint(yr)}function pr(gr){var yr=new Matrix;if(yr.reset(),this._elem.finalTransform.mProp.applyToMatrix(yr),this._elem.hierarchy&&this._elem.hierarchy.length){var Cr,br=this._elem.hierarchy.length;for(Cr=0;Cr<br;Cr+=1)this._elem.hierarchy[Cr].finalTransform.mProp.applyToMatrix(yr);return yr.inversePoint(gr)}return yr.inversePoint(gr)}function mr(){return[1,1,1,1]}return function(gr){var yr;function Cr(_r){Ar.mask=new MaskManagerInterface(_r,gr)}function br(_r){Ar.effect=_r}function Ar(_r){switch(_r){case"ADBE Root Vectors Group":case"Contents":case 2:return Ar.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return yr;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return Ar.effect;case"ADBE Text Properties":return Ar.textInterface;default:return null}}Ar.getMatrix=ct,Ar.invertPoint=vr,Ar.applyPoint=hr,Ar.toWorld=ur,Ar.toWorldVec=Dn,Ar.fromWorld=fr,Ar.fromWorldVec=dr,Ar.toComp=ur,Ar.fromComp=pr,Ar.sampleImage=mr,Ar.sourceRectAtTime=gr.sourceRectAtTime.bind(gr),Ar._elem=gr,yr=TransformExpressionInterface(gr.finalTransform.mProp);var wr=getDescriptor(yr,"anchorPoint");return Object.defineProperties(Ar,{hasParent:{get:function(){return gr.hierarchy.length}},parent:{get:function(){return gr.hierarchy[0].layerInterface}},rotation:getDescriptor(yr,"rotation"),scale:getDescriptor(yr,"scale"),position:getDescriptor(yr,"position"),opacity:getDescriptor(yr,"opacity"),anchorPoint:wr,anchor_point:wr,transform:{get:function(){return yr}},active:{get:function(){return gr.isInRange}}}),Ar.startTime=gr.data.st,Ar.index=gr.data.ind,Ar.source=gr.data.refId,Ar.height=gr.data.ty===0?gr.data.h:100,Ar.width=gr.data.ty===0?gr.data.w:100,Ar.inPoint=gr.data.ip/gr.comp.globalData.frameRate,Ar.outPoint=gr.data.op/gr.comp.globalData.frameRate,Ar._name=gr.data.nm,Ar.registerMaskInterface=Cr,Ar.registerEffectsInterface=br,Ar}}(),propertyGroupFactory=function(){return function(ct,Dn){return function(ur){return ur=ur===void 0?1:ur,ur<=0?ct:Dn(ur-1)}}}(),PropertyInterface=function(){return function(ct,Dn){var ur={_name:ct};function dr(fr){return fr=fr===void 0?1:fr,fr<=0?ur:Dn(fr-1)}return dr}}(),EffectsExpressionInterface=function(){var ct={createEffectsInterface:Dn};function Dn(fr,hr){if(fr.effectsManager){var vr=[],pr=fr.data.ef,mr,gr=fr.effectsManager.effectElements.length;for(mr=0;mr<gr;mr+=1)vr.push(ur(pr[mr],fr.effectsManager.effectElements[mr],hr,fr));var yr=fr.data.ef||[],Cr=function(Ar){for(mr=0,gr=yr.length;mr<gr;){if(Ar===yr[mr].nm||Ar===yr[mr].mn||Ar===yr[mr].ix)return vr[mr];mr+=1}return null};return Object.defineProperty(Cr,"numProperties",{get:function(){return yr.length}}),Cr}return null}function ur(fr,hr,vr,pr){function mr(Ar){for(var wr=fr.ef,_r=0,Tr=wr.length;_r<Tr;){if(Ar===wr[_r].nm||Ar===wr[_r].mn||Ar===wr[_r].ix)return wr[_r].ty===5?yr[_r]:yr[_r]();_r+=1}throw new Error}var gr=propertyGroupFactory(mr,vr),yr=[],Cr,br=fr.ef.length;for(Cr=0;Cr<br;Cr+=1)fr.ef[Cr].ty===5?yr.push(ur(fr.ef[Cr],hr.effectElements[Cr],hr.effectElements[Cr].propertyGroup,pr)):yr.push(dr(hr.effectElements[Cr],fr.ef[Cr].ty,pr,gr));return fr.mn==="ADBE Color Control"&&Object.defineProperty(mr,"color",{get:function(){return yr[0]()}}),Object.defineProperties(mr,{numProperties:{get:function(){return fr.np}},_name:{value:fr.nm},propertyGroup:{value:gr}}),mr.enabled=fr.en!==0,mr.active=mr.enabled,mr}function dr(fr,hr,vr,pr){var mr=ExpressionPropertyInterface(fr.p);function gr(){return hr===10?vr.comp.compInterface(fr.p.v):mr()}return fr.p.setGroupProperty&&fr.p.setGroupProperty(PropertyInterface("",pr)),gr}return ct}(),ShapePathInterface=function(){return function(Dn,ur,dr){var fr=ur.sh;function hr(pr){return pr==="Shape"||pr==="shape"||pr==="Path"||pr==="path"||pr==="ADBE Vector Shape"||pr===2?hr.path:null}var vr=propertyGroupFactory(hr,dr);return fr.setGroupProperty(PropertyInterface("Path",vr)),Object.defineProperties(hr,{path:{get:function(){return fr.k&&fr.getValue(),fr}},shape:{get:function(){return fr.k&&fr.getValue(),fr}},_name:{value:Dn.nm},ix:{value:Dn.ix},propertyIndex:{value:Dn.ix},mn:{value:Dn.mn},propertyGroup:{value:dr}}),hr}}(),ShapeExpressionInterface=function(){function ct(wr,_r,Tr){var Er=[],xr,Sr=wr?wr.length:0;for(xr=0;xr<Sr;xr+=1)wr[xr].ty==="gr"?Er.push(ur(wr[xr],_r[xr],Tr)):wr[xr].ty==="fl"?Er.push(dr(wr[xr],_r[xr],Tr)):wr[xr].ty==="st"?Er.push(vr(wr[xr],_r[xr],Tr)):wr[xr].ty==="tm"?Er.push(pr(wr[xr],_r[xr],Tr)):wr[xr].ty==="tr"||(wr[xr].ty==="el"?Er.push(gr(wr[xr],_r[xr],Tr)):wr[xr].ty==="sr"?Er.push(yr(wr[xr],_r[xr],Tr)):wr[xr].ty==="sh"?Er.push(ShapePathInterface(wr[xr],_r[xr],Tr)):wr[xr].ty==="rc"?Er.push(Cr(wr[xr],_r[xr],Tr)):wr[xr].ty==="rd"?Er.push(br(wr[xr],_r[xr],Tr)):wr[xr].ty==="rp"?Er.push(Ar(wr[xr],_r[xr],Tr)):wr[xr].ty==="gf"?Er.push(fr(wr[xr],_r[xr],Tr)):Er.push(hr(wr[xr],_r[xr])));return Er}function Dn(wr,_r,Tr){var Er,xr=function(Pr){for(var Ir=0,Br=Er.length;Ir<Br;){if(Er[Ir]._name===Pr||Er[Ir].mn===Pr||Er[Ir].propertyIndex===Pr||Er[Ir].ix===Pr||Er[Ir].ind===Pr)return Er[Ir];Ir+=1}return typeof Pr=="number"?Er[Pr-1]:null};xr.propertyGroup=propertyGroupFactory(xr,Tr),Er=ct(wr.it,_r.it,xr.propertyGroup),xr.numProperties=Er.length;var Sr=mr(wr.it[wr.it.length-1],_r.it[_r.it.length-1],xr.propertyGroup);return xr.transform=Sr,xr.propertyIndex=wr.cix,xr._name=wr.nm,xr}function ur(wr,_r,Tr){var Er=function(Pr){switch(Pr){case"ADBE Vectors Group":case"Contents":case 2:return Er.content;default:return Er.transform}};Er.propertyGroup=propertyGroupFactory(Er,Tr);var xr=Dn(wr,_r,Er.propertyGroup),Sr=mr(wr.it[wr.it.length-1],_r.it[_r.it.length-1],Er.propertyGroup);return Er.content=xr,Er.transform=Sr,Object.defineProperty(Er,"_name",{get:function(){return wr.nm}}),Er.numProperties=wr.np,Er.propertyIndex=wr.ix,Er.nm=wr.nm,Er.mn=wr.mn,Er}function dr(wr,_r,Tr){function Er(xr){return xr==="Color"||xr==="color"?Er.color:xr==="Opacity"||xr==="opacity"?Er.opacity:null}return Object.defineProperties(Er,{color:{get:ExpressionPropertyInterface(_r.c)},opacity:{get:ExpressionPropertyInterface(_r.o)},_name:{value:wr.nm},mn:{value:wr.mn}}),_r.c.setGroupProperty(PropertyInterface("Color",Tr)),_r.o.setGroupProperty(PropertyInterface("Opacity",Tr)),Er}function fr(wr,_r,Tr){function Er(xr){return xr==="Start Point"||xr==="start point"?Er.startPoint:xr==="End Point"||xr==="end point"?Er.endPoint:xr==="Opacity"||xr==="opacity"?Er.opacity:null}return Object.defineProperties(Er,{startPoint:{get:ExpressionPropertyInterface(_r.s)},endPoint:{get:ExpressionPropertyInterface(_r.e)},opacity:{get:ExpressionPropertyInterface(_r.o)},type:{get:function(){return"a"}},_name:{value:wr.nm},mn:{value:wr.mn}}),_r.s.setGroupProperty(PropertyInterface("Start Point",Tr)),_r.e.setGroupProperty(PropertyInterface("End Point",Tr)),_r.o.setGroupProperty(PropertyInterface("Opacity",Tr)),Er}function hr(){function wr(){return null}return wr}function vr(wr,_r,Tr){var Er=propertyGroupFactory(Br,Tr),xr=propertyGroupFactory(Ir,Er);function Sr(Or){Object.defineProperty(Ir,wr.d[Or].nm,{get:ExpressionPropertyInterface(_r.d.dataProps[Or].p)})}var kr,Pr=wr.d?wr.d.length:0,Ir={};for(kr=0;kr<Pr;kr+=1)Sr(kr),_r.d.dataProps[kr].p.setGroupProperty(xr);function Br(Or){return Or==="Color"||Or==="color"?Br.color:Or==="Opacity"||Or==="opacity"?Br.opacity:Or==="Stroke Width"||Or==="stroke width"?Br.strokeWidth:null}return Object.defineProperties(Br,{color:{get:ExpressionPropertyInterface(_r.c)},opacity:{get:ExpressionPropertyInterface(_r.o)},strokeWidth:{get:ExpressionPropertyInterface(_r.w)},dash:{get:function(){return Ir}},_name:{value:wr.nm},mn:{value:wr.mn}}),_r.c.setGroupProperty(PropertyInterface("Color",Er)),_r.o.setGroupProperty(PropertyInterface("Opacity",Er)),_r.w.setGroupProperty(PropertyInterface("Stroke Width",Er)),Br}function pr(wr,_r,Tr){function Er(Sr){return Sr===wr.e.ix||Sr==="End"||Sr==="end"?Er.end:Sr===wr.s.ix?Er.start:Sr===wr.o.ix?Er.offset:null}var xr=propertyGroupFactory(Er,Tr);return Er.propertyIndex=wr.ix,_r.s.setGroupProperty(PropertyInterface("Start",xr)),_r.e.setGroupProperty(PropertyInterface("End",xr)),_r.o.setGroupProperty(PropertyInterface("Offset",xr)),Er.propertyIndex=wr.ix,Er.propertyGroup=Tr,Object.defineProperties(Er,{start:{get:ExpressionPropertyInterface(_r.s)},end:{get:ExpressionPropertyInterface(_r.e)},offset:{get:ExpressionPropertyInterface(_r.o)},_name:{value:wr.nm}}),Er.mn=wr.mn,Er}function mr(wr,_r,Tr){function Er(Sr){return wr.a.ix===Sr||Sr==="Anchor Point"?Er.anchorPoint:wr.o.ix===Sr||Sr==="Opacity"?Er.opacity:wr.p.ix===Sr||Sr==="Position"?Er.position:wr.r.ix===Sr||Sr==="Rotation"||Sr==="ADBE Vector Rotation"?Er.rotation:wr.s.ix===Sr||Sr==="Scale"?Er.scale:wr.sk&&wr.sk.ix===Sr||Sr==="Skew"?Er.skew:wr.sa&&wr.sa.ix===Sr||Sr==="Skew Axis"?Er.skewAxis:null}var xr=propertyGroupFactory(Er,Tr);return _r.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",xr)),_r.transform.mProps.p.setGroupProperty(PropertyInterface("Position",xr)),_r.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",xr)),_r.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",xr)),_r.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",xr)),_r.transform.mProps.sk&&(_r.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",xr)),_r.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",xr))),_r.transform.op.setGroupProperty(PropertyInterface("Opacity",xr)),Object.defineProperties(Er,{opacity:{get:ExpressionPropertyInterface(_r.transform.mProps.o)},position:{get:ExpressionPropertyInterface(_r.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(_r.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(_r.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(_r.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(_r.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(_r.transform.mProps.sa)},_name:{value:wr.nm}}),Er.ty="tr",Er.mn=wr.mn,Er.propertyGroup=Tr,Er}function gr(wr,_r,Tr){function Er(kr){return wr.p.ix===kr?Er.position:wr.s.ix===kr?Er.size:null}var xr=propertyGroupFactory(Er,Tr);Er.propertyIndex=wr.ix;var Sr=_r.sh.ty==="tm"?_r.sh.prop:_r.sh;return Sr.s.setGroupProperty(PropertyInterface("Size",xr)),Sr.p.setGroupProperty(PropertyInterface("Position",xr)),Object.defineProperties(Er,{size:{get:ExpressionPropertyInterface(Sr.s)},position:{get:ExpressionPropertyInterface(Sr.p)},_name:{value:wr.nm}}),Er.mn=wr.mn,Er}function yr(wr,_r,Tr){function Er(kr){return wr.p.ix===kr?Er.position:wr.r.ix===kr?Er.rotation:wr.pt.ix===kr?Er.points:wr.or.ix===kr||kr==="ADBE Vector Star Outer Radius"?Er.outerRadius:wr.os.ix===kr?Er.outerRoundness:wr.ir&&(wr.ir.ix===kr||kr==="ADBE Vector Star Inner Radius")?Er.innerRadius:wr.is&&wr.is.ix===kr?Er.innerRoundness:null}var xr=propertyGroupFactory(Er,Tr),Sr=_r.sh.ty==="tm"?_r.sh.prop:_r.sh;return Er.propertyIndex=wr.ix,Sr.or.setGroupProperty(PropertyInterface("Outer Radius",xr)),Sr.os.setGroupProperty(PropertyInterface("Outer Roundness",xr)),Sr.pt.setGroupProperty(PropertyInterface("Points",xr)),Sr.p.setGroupProperty(PropertyInterface("Position",xr)),Sr.r.setGroupProperty(PropertyInterface("Rotation",xr)),wr.ir&&(Sr.ir.setGroupProperty(PropertyInterface("Inner Radius",xr)),Sr.is.setGroupProperty(PropertyInterface("Inner Roundness",xr))),Object.defineProperties(Er,{position:{get:ExpressionPropertyInterface(Sr.p)},rotation:{get:ExpressionPropertyInterface(Sr.r)},points:{get:ExpressionPropertyInterface(Sr.pt)},outerRadius:{get:ExpressionPropertyInterface(Sr.or)},outerRoundness:{get:ExpressionPropertyInterface(Sr.os)},innerRadius:{get:ExpressionPropertyInterface(Sr.ir)},innerRoundness:{get:ExpressionPropertyInterface(Sr.is)},_name:{value:wr.nm}}),Er.mn=wr.mn,Er}function Cr(wr,_r,Tr){function Er(kr){return wr.p.ix===kr?Er.position:wr.r.ix===kr?Er.roundness:wr.s.ix===kr||kr==="Size"||kr==="ADBE Vector Rect Size"?Er.size:null}var xr=propertyGroupFactory(Er,Tr),Sr=_r.sh.ty==="tm"?_r.sh.prop:_r.sh;return Er.propertyIndex=wr.ix,Sr.p.setGroupProperty(PropertyInterface("Position",xr)),Sr.s.setGroupProperty(PropertyInterface("Size",xr)),Sr.r.setGroupProperty(PropertyInterface("Rotation",xr)),Object.defineProperties(Er,{position:{get:ExpressionPropertyInterface(Sr.p)},roundness:{get:ExpressionPropertyInterface(Sr.r)},size:{get:ExpressionPropertyInterface(Sr.s)},_name:{value:wr.nm}}),Er.mn=wr.mn,Er}function br(wr,_r,Tr){function Er(kr){return wr.r.ix===kr||kr==="Round Corners 1"?Er.radius:null}var xr=propertyGroupFactory(Er,Tr),Sr=_r;return Er.propertyIndex=wr.ix,Sr.rd.setGroupProperty(PropertyInterface("Radius",xr)),Object.defineProperties(Er,{radius:{get:ExpressionPropertyInterface(Sr.rd)},_name:{value:wr.nm}}),Er.mn=wr.mn,Er}function Ar(wr,_r,Tr){function Er(kr){return wr.c.ix===kr||kr==="Copies"?Er.copies:wr.o.ix===kr||kr==="Offset"?Er.offset:null}var xr=propertyGroupFactory(Er,Tr),Sr=_r;return Er.propertyIndex=wr.ix,Sr.c.setGroupProperty(PropertyInterface("Copies",xr)),Sr.o.setGroupProperty(PropertyInterface("Offset",xr)),Object.defineProperties(Er,{copies:{get:ExpressionPropertyInterface(Sr.c)},offset:{get:ExpressionPropertyInterface(Sr.o)},_name:{value:wr.nm}}),Er.mn=wr.mn,Er}return function(wr,_r,Tr){var Er;function xr(kr){if(typeof kr=="number")return kr=kr===void 0?1:kr,kr===0?Tr:Er[kr-1];for(var Pr=0,Ir=Er.length;Pr<Ir;){if(Er[Pr]._name===kr)return Er[Pr];Pr+=1}return null}function Sr(){return Tr}return xr.propertyGroup=propertyGroupFactory(xr,Sr),Er=ct(wr,_r,xr.propertyGroup),xr.numProperties=Er.length,xr._name="Contents",xr}}(),TextExpressionInterface=function(){return function(ct){var Dn;function ur(dr){switch(dr){case"ADBE Text Document":return ur.sourceText;default:return null}}return Object.defineProperty(ur,"sourceText",{get:function(){ct.textProperty.getValue();var fr=ct.textProperty.currentData.t;return(!Dn||fr!==Dn.value)&&(Dn=new String(fr),Dn.value=fr||new String(fr),Object.defineProperty(Dn,"style",{get:function(){return{fillColor:ct.textProperty.currentData.fc}}})),Dn}}),ur}}();function _typeof(ct){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(ur){return typeof ur}:_typeof=function(ur){return ur&&typeof Symbol=="function"&&ur.constructor===Symbol&&ur!==Symbol.prototype?"symbol":typeof ur},_typeof(ct)}var FootageInterface=function(){var ct=function(dr){var fr="",hr=dr.getFootageData();function vr(){return fr="",hr=dr.getFootageData(),pr}function pr(mr){if(hr[mr])return fr=mr,hr=hr[mr],_typeof(hr)==="object"?pr:hr;var gr=mr.indexOf(fr);if(gr!==-1){var yr=parseInt(mr.substr(gr+fr.length),10);return hr=hr[yr],_typeof(hr)==="object"?pr:hr}return""}return vr},Dn=function(dr){function fr(hr){return hr==="Outline"?fr.outlineInterface():null}return fr._name="Outline",fr.outlineInterface=ct(dr),fr};return function(ur){function dr(fr){return fr==="Data"?dr.dataInterface:null}return dr._name="Data",dr.dataInterface=Dn(ur),dr}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(ct){return interfaces[ct]||null}var expressionHelpers=function(){function ct(vr,pr,mr){pr.x&&(mr.k=!0,mr.x=!0,mr.initiateExpression=ExpressionManager.initiateExpression,mr.effectsSequence.push(mr.initiateExpression(vr,pr,mr).bind(mr)))}function Dn(vr){return vr*=this.elem.globalData.frameRate,vr-=this.offsetTime,vr!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<vr?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(vr,this._cachingAtTime),this._cachingAtTime.lastFrame=vr),this._cachingAtTime.value}function ur(vr){var pr=-.01,mr=this.getValueAtTime(vr),gr=this.getValueAtTime(vr+pr),yr=0;if(mr.length){var Cr;for(Cr=0;Cr<mr.length;Cr+=1)yr+=Math.pow(gr[Cr]-mr[Cr],2);yr=Math.sqrt(yr)*100}else yr=0;return yr}function dr(vr){if(this.vel!==void 0)return this.vel;var pr=-.001,mr=this.getValueAtTime(vr),gr=this.getValueAtTime(vr+pr),yr;if(mr.length){yr=createTypedArray("float32",mr.length);var Cr;for(Cr=0;Cr<mr.length;Cr+=1)yr[Cr]=(gr[Cr]-mr[Cr])/pr}else yr=(gr-mr)/pr;return yr}function fr(){return this.pv}function hr(vr){this.propertyGroup=vr}return{searchExpressions:ct,getSpeedAtTime:ur,getVelocityAtTime:dr,getValueAtTime:Dn,getStaticValueAtTime:fr,setGroupProperty:hr}}();function addPropertyDecorator(){function ct(br,Ar,wr){if(!this.k||!this.keyframes)return this.pv;br=br?br.toLowerCase():"";var _r=this.comp.renderedFrame,Tr=this.keyframes,Er=Tr[Tr.length-1].t;if(_r<=Er)return this.pv;var xr,Sr;wr?(Ar?xr=Math.abs(Er-this.elem.comp.globalData.frameRate*Ar):xr=Math.max(0,Er-this.elem.data.ip),Sr=Er-xr):((!Ar||Ar>Tr.length-1)&&(Ar=Tr.length-1),Sr=Tr[Tr.length-1-Ar].t,xr=Er-Sr);var kr,Pr,Ir;if(br==="pingpong"){var Br=Math.floor((_r-Sr)/xr);if(Br%2!==0)return this.getValueAtTime((xr-(_r-Sr)%xr+Sr)/this.comp.globalData.frameRate,0)}else if(br==="offset"){var Or=this.getValueAtTime(Sr/this.comp.globalData.frameRate,0),Nr=this.getValueAtTime(Er/this.comp.globalData.frameRate,0),jr=this.getValueAtTime(((_r-Sr)%xr+Sr)/this.comp.globalData.frameRate,0),Vr=Math.floor((_r-Sr)/xr);if(this.pv.length){for(Ir=new Array(Or.length),Pr=Ir.length,kr=0;kr<Pr;kr+=1)Ir[kr]=(Nr[kr]-Or[kr])*Vr+jr[kr];return Ir}return(Nr-Or)*Vr+jr}else if(br==="continue"){var $r=this.getValueAtTime(Er/this.comp.globalData.frameRate,0),zr=this.getValueAtTime((Er-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(Ir=new Array($r.length),Pr=Ir.length,kr=0;kr<Pr;kr+=1)Ir[kr]=$r[kr]+($r[kr]-zr[kr])*((_r-Er)/this.comp.globalData.frameRate)/5e-4;return Ir}return $r+($r-zr)*((_r-Er)/.001)}return this.getValueAtTime(((_r-Sr)%xr+Sr)/this.comp.globalData.frameRate,0)}function Dn(br,Ar,wr){if(!this.k)return this.pv;br=br?br.toLowerCase():"";var _r=this.comp.renderedFrame,Tr=this.keyframes,Er=Tr[0].t;if(_r>=Er)return this.pv;var xr,Sr;wr?(Ar?xr=Math.abs(this.elem.comp.globalData.frameRate*Ar):xr=Math.max(0,this.elem.data.op-Er),Sr=Er+xr):((!Ar||Ar>Tr.length-1)&&(Ar=Tr.length-1),Sr=Tr[Ar].t,xr=Sr-Er);var kr,Pr,Ir;if(br==="pingpong"){var Br=Math.floor((Er-_r)/xr);if(Br%2===0)return this.getValueAtTime(((Er-_r)%xr+Er)/this.comp.globalData.frameRate,0)}else if(br==="offset"){var Or=this.getValueAtTime(Er/this.comp.globalData.frameRate,0),Nr=this.getValueAtTime(Sr/this.comp.globalData.frameRate,0),jr=this.getValueAtTime((xr-(Er-_r)%xr+Er)/this.comp.globalData.frameRate,0),Vr=Math.floor((Er-_r)/xr)+1;if(this.pv.length){for(Ir=new Array(Or.length),Pr=Ir.length,kr=0;kr<Pr;kr+=1)Ir[kr]=jr[kr]-(Nr[kr]-Or[kr])*Vr;return Ir}return jr-(Nr-Or)*Vr}else if(br==="continue"){var $r=this.getValueAtTime(Er/this.comp.globalData.frameRate,0),zr=this.getValueAtTime((Er+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(Ir=new Array($r.length),Pr=Ir.length,kr=0;kr<Pr;kr+=1)Ir[kr]=$r[kr]+($r[kr]-zr[kr])*(Er-_r)/.001;return Ir}return $r+($r-zr)*(Er-_r)/.001}return this.getValueAtTime((xr-((Er-_r)%xr+Er))/this.comp.globalData.frameRate,0)}function ur(br,Ar){if(!this.k)return this.pv;if(br=(br||.4)*.5,Ar=Math.floor(Ar||5),Ar<=1)return this.pv;var wr=this.comp.renderedFrame/this.comp.globalData.frameRate,_r=wr-br,Tr=wr+br,Er=Ar>1?(Tr-_r)/(Ar-1):1,xr=0,Sr=0,kr;this.pv.length?kr=createTypedArray("float32",this.pv.length):kr=0;for(var Pr;xr<Ar;){if(Pr=this.getValueAtTime(_r+xr*Er),this.pv.length)for(Sr=0;Sr<this.pv.length;Sr+=1)kr[Sr]+=Pr[Sr];else kr+=Pr;xr+=1}if(this.pv.length)for(Sr=0;Sr<this.pv.length;Sr+=1)kr[Sr]/=Ar;else kr/=Ar;return kr}function dr(br){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var Ar=this._transformCachingAtTime.v;if(Ar.cloneFromProps(this.pre.props),this.appliedTransformations<1){var wr=this.a.getValueAtTime(br);Ar.translate(-wr[0]*this.a.mult,-wr[1]*this.a.mult,wr[2]*this.a.mult)}if(this.appliedTransformations<2){var _r=this.s.getValueAtTime(br);Ar.scale(_r[0]*this.s.mult,_r[1]*this.s.mult,_r[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var Tr=this.sk.getValueAtTime(br),Er=this.sa.getValueAtTime(br);Ar.skewFromAxis(-Tr*this.sk.mult,Er*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var xr=this.r.getValueAtTime(br);Ar.rotate(-xr*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var Sr=this.rz.getValueAtTime(br),kr=this.ry.getValueAtTime(br),Pr=this.rx.getValueAtTime(br),Ir=this.or.getValueAtTime(br);Ar.rotateZ(-Sr*this.rz.mult).rotateY(kr*this.ry.mult).rotateX(Pr*this.rx.mult).rotateZ(-Ir[2]*this.or.mult).rotateY(Ir[1]*this.or.mult).rotateX(Ir[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var Br=this.px.getValueAtTime(br),Or=this.py.getValueAtTime(br);if(this.data.p.z){var Nr=this.pz.getValueAtTime(br);Ar.translate(Br*this.px.mult,Or*this.py.mult,-Nr*this.pz.mult)}else Ar.translate(Br*this.px.mult,Or*this.py.mult,0)}else{var jr=this.p.getValueAtTime(br);Ar.translate(jr[0]*this.p.mult,jr[1]*this.p.mult,-jr[2]*this.p.mult)}return Ar}function fr(){return this.v.clone(new Matrix)}var hr=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(br,Ar,wr){var _r=hr(br,Ar,wr);return _r.dynamicProperties.length?_r.getValueAtTime=dr.bind(_r):_r.getValueAtTime=fr.bind(_r),_r.setGroupProperty=expressionHelpers.setGroupProperty,_r};var vr=PropertyFactory.getProp;PropertyFactory.getProp=function(br,Ar,wr,_r,Tr){var Er=vr(br,Ar,wr,_r,Tr);Er.kf?Er.getValueAtTime=expressionHelpers.getValueAtTime.bind(Er):Er.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(Er),Er.setGroupProperty=expressionHelpers.setGroupProperty,Er.loopOut=ct,Er.loopIn=Dn,Er.smooth=ur,Er.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(Er),Er.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(Er),Er.numKeys=Ar.a===1?Ar.k.length:0,Er.propertyIndex=Ar.ix;var xr=0;return wr!==0&&(xr=createTypedArray("float32",Ar.a===1?Ar.k[0].s.length:Ar.k.length)),Er._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:xr},expressionHelpers.searchExpressions(br,Ar,Er),Er.k&&Tr.addDynamicProperty(Er),Er};function pr(br){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),br*=this.elem.globalData.frameRate,br-=this.offsetTime,br!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<br?this._caching.lastIndex:0,this._cachingAtTime.lastTime=br,this.interpolateShape(br,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var mr=ShapePropertyFactory.getConstructorFunction(),gr=ShapePropertyFactory.getKeyframedConstructorFunction();function yr(){}yr.prototype={vertices:function(Ar,wr){this.k&&this.getValue();var _r=this.v;wr!==void 0&&(_r=this.getValueAtTime(wr,0));var Tr,Er=_r._length,xr=_r[Ar],Sr=_r.v,kr=createSizedArray(Er);for(Tr=0;Tr<Er;Tr+=1)Ar==="i"||Ar==="o"?kr[Tr]=[xr[Tr][0]-Sr[Tr][0],xr[Tr][1]-Sr[Tr][1]]:kr[Tr]=[xr[Tr][0],xr[Tr][1]];return kr},points:function(Ar){return this.vertices("v",Ar)},inTangents:function(Ar){return this.vertices("i",Ar)},outTangents:function(Ar){return this.vertices("o",Ar)},isClosed:function(){return this.v.c},pointOnPath:function(Ar,wr){var _r=this.v;wr!==void 0&&(_r=this.getValueAtTime(wr,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(_r));for(var Tr=this._segmentsLength,Er=Tr.lengths,xr=Tr.totalLength*Ar,Sr=0,kr=Er.length,Pr=0,Ir;Sr<kr;){if(Pr+Er[Sr].addedLength>xr){var Br=Sr,Or=_r.c&&Sr===kr-1?0:Sr+1,Nr=(xr-Pr)/Er[Sr].addedLength;Ir=bez.getPointInSegment(_r.v[Br],_r.v[Or],_r.o[Br],_r.i[Or],Nr,Er[Sr]);break}else Pr+=Er[Sr].addedLength;Sr+=1}return Ir||(Ir=_r.c?[_r.v[0][0],_r.v[0][1]]:[_r.v[_r._length-1][0],_r.v[_r._length-1][1]]),Ir},vectorOnPath:function(Ar,wr,_r){Ar==1?Ar=this.v.c:Ar==0&&(Ar=.999);var Tr=this.pointOnPath(Ar,wr),Er=this.pointOnPath(Ar+.001,wr),xr=Er[0]-Tr[0],Sr=Er[1]-Tr[1],kr=Math.sqrt(Math.pow(xr,2)+Math.pow(Sr,2));if(kr===0)return[0,0];var Pr=_r==="tangent"?[xr/kr,Sr/kr]:[-Sr/kr,xr/kr];return Pr},tangentOnPath:function(Ar,wr){return this.vectorOnPath(Ar,wr,"tangent")},normalOnPath:function(Ar,wr){return this.vectorOnPath(Ar,wr,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([yr],mr),extendPrototype([yr],gr),gr.prototype.getValueAtTime=pr,gr.prototype.initiateExpression=ExpressionManager.initiateExpression;var Cr=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(br,Ar,wr,_r,Tr){var Er=Cr(br,Ar,wr,_r,Tr);return Er.propertyIndex=Ar.ix,Er.lock=!1,wr===3?expressionHelpers.searchExpressions(br,Ar.pt,Er):wr===4&&expressionHelpers.searchExpressions(br,Ar.ks,Er),Er.k&&br.addDynamicProperty(Er),Er}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function ct(){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(Dn,ur){var dr=this.calculateExpression(ur);if(Dn.t!==dr){var fr={};return this.copyData(fr,Dn),fr.t=dr.toString(),fr.__complete=!1,fr}return Dn},TextProperty.prototype.searchProperty=function(){var Dn=this.searchKeyframes(),ur=this.searchExpressions();return this.kf=Dn||ur,this.kf},TextProperty.prototype.searchExpressions=ct}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function ct(Dn,ur){var dr=createNS("feMerge");dr.setAttribute("result",Dn);var fr,hr;for(hr=0;hr<ur.length;hr+=1)fr=createNS("feMergeNode"),fr.setAttribute("in",ur[hr]),dr.appendChild(fr),dr.appendChild(fr);return dr}};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(ct,Dn,ur,dr,fr){this.filterManager=Dn;var hr=createNS("feColorMatrix");hr.setAttribute("type","matrix"),hr.setAttribute("color-interpolation-filters","linearRGB"),hr.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=hr,hr.setAttribute("result",dr+"_tint_1"),ct.appendChild(hr),hr=createNS("feColorMatrix"),hr.setAttribute("type","matrix"),hr.setAttribute("color-interpolation-filters","sRGB"),hr.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),hr.setAttribute("result",dr+"_tint_2"),ct.appendChild(hr),this.matrixFilter=hr;var vr=this.createMergeNode(dr,[fr,dr+"_tint_1",dr+"_tint_2"]);ct.appendChild(vr)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(ct){if(ct||this.filterManager._mdf){var Dn=this.filterManager.effectElements[0].p.v,ur=this.filterManager.effectElements[1].p.v,dr=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+dr+" 0"),this.matrixFilter.setAttribute("values",ur[0]-Dn[0]+" 0 0 0 "+Dn[0]+" "+(ur[1]-Dn[1])+" 0 0 0 "+Dn[1]+" "+(ur[2]-Dn[2])+" 0 0 0 "+Dn[2]+" 0 0 0 1 0")}};function SVGFillFilter(ct,Dn,ur,dr){this.filterManager=Dn;var fr=createNS("feColorMatrix");fr.setAttribute("type","matrix"),fr.setAttribute("color-interpolation-filters","sRGB"),fr.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),fr.setAttribute("result",dr),ct.appendChild(fr),this.matrixFilter=fr}SVGFillFilter.prototype.renderFrame=function(ct){if(ct||this.filterManager._mdf){var Dn=this.filterManager.effectElements[2].p.v,ur=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+Dn[0]+" 0 0 0 0 "+Dn[1]+" 0 0 0 0 "+Dn[2]+" 0 0 0 "+ur+" 0")}};function SVGStrokeEffect(ct,Dn,ur){this.initialized=!1,this.filterManager=Dn,this.elem=ur,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var ct=this.elem.layerElement.children||this.elem.layerElement.childNodes,Dn,ur,dr,fr;for(this.filterManager.effectElements[1].p.v===1?(fr=this.elem.maskManager.masksProperties.length,dr=0):(dr=this.filterManager.effectElements[0].p.v-1,fr=dr+1),ur=createNS("g"),ur.setAttribute("fill","none"),ur.setAttribute("stroke-linecap","round"),ur.setAttribute("stroke-dashoffset",1),dr;dr<fr;dr+=1)Dn=createNS("path"),ur.appendChild(Dn),this.paths.push({p:Dn,m:dr});if(this.filterManager.effectElements[10].p.v===3){var hr=createNS("mask"),vr=createElementID();hr.setAttribute("id",vr),hr.setAttribute("mask-type","alpha"),hr.appendChild(ur),this.elem.globalData.defs.appendChild(hr);var pr=createNS("g");for(pr.setAttribute("mask","url("+getLocationHref()+"#"+vr+")");ct[0];)pr.appendChild(ct[0]);this.elem.layerElement.appendChild(pr),this.masker=hr,ur.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(ct=this.elem.layerElement.children||this.elem.layerElement.childNodes;ct.length;)this.elem.layerElement.removeChild(ct[0]);this.elem.layerElement.appendChild(ur),this.elem.layerElement.removeAttribute("mask"),ur.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=ur},SVGStrokeEffect.prototype.renderFrame=function(ct){this.initialized||this.initialize();var Dn,ur=this.paths.length,dr,fr;for(Dn=0;Dn<ur;Dn+=1)if(this.paths[Dn].m!==-1&&(dr=this.elem.maskManager.viewData[this.paths[Dn].m],fr=this.paths[Dn].p,(ct||this.filterManager._mdf||dr.prop._mdf)&&fr.setAttribute("d",dr.lastPath),ct||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||dr.prop._mdf)){var hr;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var vr=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,pr=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,mr=fr.getTotalLength();hr="0 0 0 "+mr*vr+" ";var gr=mr*(pr-vr),yr=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,Cr=Math.floor(gr/yr),br;for(br=0;br<Cr;br+=1)hr+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";hr+="0 "+mr*10+" 0 0"}else hr="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;fr.setAttribute("stroke-dasharray",hr)}if((ct||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(ct||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)&&(ct||this.filterManager.effectElements[3].p._mdf)){var Ar=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(Ar[0]*255)+","+bmFloor(Ar[1]*255)+","+bmFloor(Ar[2]*255)+")")}};function SVGTritoneFilter(ct,Dn,ur,dr){this.filterManager=Dn;var fr=createNS("feColorMatrix");fr.setAttribute("type","matrix"),fr.setAttribute("color-interpolation-filters","linearRGB"),fr.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"),ct.appendChild(fr);var hr=createNS("feComponentTransfer");hr.setAttribute("color-interpolation-filters","sRGB"),hr.setAttribute("result",dr),this.matrixFilter=hr;var vr=createNS("feFuncR");vr.setAttribute("type","table"),hr.appendChild(vr),this.feFuncR=vr;var pr=createNS("feFuncG");pr.setAttribute("type","table"),hr.appendChild(pr),this.feFuncG=pr;var mr=createNS("feFuncB");mr.setAttribute("type","table"),hr.appendChild(mr),this.feFuncB=mr,ct.appendChild(hr)}SVGTritoneFilter.prototype.renderFrame=function(ct){if(ct||this.filterManager._mdf){var Dn=this.filterManager.effectElements[0].p.v,ur=this.filterManager.effectElements[1].p.v,dr=this.filterManager.effectElements[2].p.v,fr=dr[0]+" "+ur[0]+" "+Dn[0],hr=dr[1]+" "+ur[1]+" "+Dn[1],vr=dr[2]+" "+ur[2]+" "+Dn[2];this.feFuncR.setAttribute("tableValues",fr),this.feFuncG.setAttribute("tableValues",hr),this.feFuncB.setAttribute("tableValues",vr)}};function SVGProLevelsFilter(ct,Dn,ur,dr){this.filterManager=Dn;var fr=this.filterManager.effectElements,hr=createNS("feComponentTransfer");(fr[10].p.k||fr[10].p.v!==0||fr[11].p.k||fr[11].p.v!==1||fr[12].p.k||fr[12].p.v!==1||fr[13].p.k||fr[13].p.v!==0||fr[14].p.k||fr[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",hr)),(fr[17].p.k||fr[17].p.v!==0||fr[18].p.k||fr[18].p.v!==1||fr[19].p.k||fr[19].p.v!==1||fr[20].p.k||fr[20].p.v!==0||fr[21].p.k||fr[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",hr)),(fr[24].p.k||fr[24].p.v!==0||fr[25].p.k||fr[25].p.v!==1||fr[26].p.k||fr[26].p.v!==1||fr[27].p.k||fr[27].p.v!==0||fr[28].p.k||fr[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",hr)),(fr[31].p.k||fr[31].p.v!==0||fr[32].p.k||fr[32].p.v!==1||fr[33].p.k||fr[33].p.v!==1||fr[34].p.k||fr[34].p.v!==0||fr[35].p.k||fr[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",hr)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(hr.setAttribute("color-interpolation-filters","sRGB"),ct.appendChild(hr)),(fr[3].p.k||fr[3].p.v!==0||fr[4].p.k||fr[4].p.v!==1||fr[5].p.k||fr[5].p.v!==1||fr[6].p.k||fr[6].p.v!==0||fr[7].p.k||fr[7].p.v!==1)&&(hr=createNS("feComponentTransfer"),hr.setAttribute("color-interpolation-filters","sRGB"),hr.setAttribute("result",dr),ct.appendChild(hr),this.feFuncRComposed=this.createFeFunc("feFuncR",hr),this.feFuncGComposed=this.createFeFunc("feFuncG",hr),this.feFuncBComposed=this.createFeFunc("feFuncB",hr))}SVGProLevelsFilter.prototype.createFeFunc=function(ct,Dn){var ur=createNS(ct);return ur.setAttribute("type","table"),Dn.appendChild(ur),ur},SVGProLevelsFilter.prototype.getTableValue=function(ct,Dn,ur,dr,fr){for(var hr=0,vr=256,pr,mr=Math.min(ct,Dn),gr=Math.max(ct,Dn),yr=Array.call(null,{length:vr}),Cr,br=0,Ar=fr-dr,wr=Dn-ct;hr<=256;)pr=hr/256,pr<=mr?Cr=wr<0?fr:dr:pr>=gr?Cr=wr<0?dr:fr:Cr=dr+Ar*Math.pow((pr-ct)/wr,1/ur),yr[br]=Cr,br+=1,hr+=256/(vr-1);return yr.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(ct){if(ct||this.filterManager._mdf){var Dn,ur=this.filterManager.effectElements;this.feFuncRComposed&&(ct||ur[3].p._mdf||ur[4].p._mdf||ur[5].p._mdf||ur[6].p._mdf||ur[7].p._mdf)&&(Dn=this.getTableValue(ur[3].p.v,ur[4].p.v,ur[5].p.v,ur[6].p.v,ur[7].p.v),this.feFuncRComposed.setAttribute("tableValues",Dn),this.feFuncGComposed.setAttribute("tableValues",Dn),this.feFuncBComposed.setAttribute("tableValues",Dn)),this.feFuncR&&(ct||ur[10].p._mdf||ur[11].p._mdf||ur[12].p._mdf||ur[13].p._mdf||ur[14].p._mdf)&&(Dn=this.getTableValue(ur[10].p.v,ur[11].p.v,ur[12].p.v,ur[13].p.v,ur[14].p.v),this.feFuncR.setAttribute("tableValues",Dn)),this.feFuncG&&(ct||ur[17].p._mdf||ur[18].p._mdf||ur[19].p._mdf||ur[20].p._mdf||ur[21].p._mdf)&&(Dn=this.getTableValue(ur[17].p.v,ur[18].p.v,ur[19].p.v,ur[20].p.v,ur[21].p.v),this.feFuncG.setAttribute("tableValues",Dn)),this.feFuncB&&(ct||ur[24].p._mdf||ur[25].p._mdf||ur[26].p._mdf||ur[27].p._mdf||ur[28].p._mdf)&&(Dn=this.getTableValue(ur[24].p.v,ur[25].p.v,ur[26].p.v,ur[27].p.v,ur[28].p.v),this.feFuncB.setAttribute("tableValues",Dn)),this.feFuncA&&(ct||ur[31].p._mdf||ur[32].p._mdf||ur[33].p._mdf||ur[34].p._mdf||ur[35].p._mdf)&&(Dn=this.getTableValue(ur[31].p.v,ur[32].p.v,ur[33].p.v,ur[34].p.v,ur[35].p.v),this.feFuncA.setAttribute("tableValues",Dn))}};function SVGDropShadowEffect(ct,Dn,ur,dr,fr){var hr=Dn.container.globalData.renderConfig.filterSize,vr=Dn.data.fs||hr;ct.setAttribute("x",vr.x||hr.x),ct.setAttribute("y",vr.y||hr.y),ct.setAttribute("width",vr.width||hr.width),ct.setAttribute("height",vr.height||hr.height),this.filterManager=Dn;var pr=createNS("feGaussianBlur");pr.setAttribute("in","SourceAlpha"),pr.setAttribute("result",dr+"_drop_shadow_1"),pr.setAttribute("stdDeviation","0"),this.feGaussianBlur=pr,ct.appendChild(pr);var mr=createNS("feOffset");mr.setAttribute("dx","25"),mr.setAttribute("dy","0"),mr.setAttribute("in",dr+"_drop_shadow_1"),mr.setAttribute("result",dr+"_drop_shadow_2"),this.feOffset=mr,ct.appendChild(mr);var gr=createNS("feFlood");gr.setAttribute("flood-color","#00ff00"),gr.setAttribute("flood-opacity","1"),gr.setAttribute("result",dr+"_drop_shadow_3"),this.feFlood=gr,ct.appendChild(gr);var yr=createNS("feComposite");yr.setAttribute("in",dr+"_drop_shadow_3"),yr.setAttribute("in2",dr+"_drop_shadow_2"),yr.setAttribute("operator","in"),yr.setAttribute("result",dr+"_drop_shadow_4"),ct.appendChild(yr);var Cr=this.createMergeNode(dr,[dr+"_drop_shadow_4",fr]);ct.appendChild(Cr)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(ct){if(ct||this.filterManager._mdf){if((ct||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),ct||this.filterManager.effectElements[0].p._mdf){var Dn=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(Dn[0]*255),Math.round(Dn[1]*255),Math.round(Dn[2]*255)))}if((ct||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),ct||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var ur=this.filterManager.effectElements[3].p.v,dr=(this.filterManager.effectElements[2].p.v-90)*degToRads,fr=ur*Math.cos(dr),hr=ur*Math.sin(dr);this.feOffset.setAttribute("dx",fr),this.feOffset.setAttribute("dy",hr)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(ct,Dn,ur){this.initialized=!1,this.filterManager=Dn,this.filterElem=ct,this.elem=ur,ur.matteElement=createNS("g"),ur.matteElement.appendChild(ur.layerElement),ur.matteElement.appendChild(ur.transformedElement),ur.baseElement=ur.matteElement}SVGMatte3Effect.prototype.findSymbol=function(ct){for(var Dn=0,ur=_svgMatteSymbols.length;Dn<ur;){if(_svgMatteSymbols[Dn]===ct)return _svgMatteSymbols[Dn];Dn+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(ct,Dn){var ur=ct.layerElement.parentNode;if(ur){for(var dr=ur.children,fr=0,hr=dr.length;fr<hr&&dr[fr]!==ct.layerElement;)fr+=1;var vr;fr<=hr-2&&(vr=dr[fr+1]);var pr=createNS("use");pr.setAttribute("href","#"+Dn),vr?ur.insertBefore(pr,vr):ur.appendChild(pr)}},SVGMatte3Effect.prototype.setElementAsMask=function(ct,Dn){if(!this.findSymbol(Dn)){var ur=createElementID(),dr=createNS("mask");dr.setAttribute("id",Dn.layerId),dr.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(Dn);var fr=ct.globalData.defs;fr.appendChild(dr);var hr=createNS("symbol");hr.setAttribute("id",ur),this.replaceInParent(Dn,ur),hr.appendChild(Dn.layerElement),fr.appendChild(hr);var vr=createNS("use");vr.setAttribute("href","#"+ur),dr.appendChild(vr),Dn.data.hd=!1,Dn.show()}ct.setMatte(Dn.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var ct=this.filterManager.effectElements[0].p.v,Dn=this.elem.comp.elements,ur=0,dr=Dn.length;ur<dr;)Dn[ur]&&Dn[ur].data.ind===ct&&this.setElementAsMask(this.elem,Dn[ur]),ur+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(ct,Dn,ur,dr){ct.setAttribute("x","-100%"),ct.setAttribute("y","-100%"),ct.setAttribute("width","300%"),ct.setAttribute("height","300%"),this.filterManager=Dn;var fr=createNS("feGaussianBlur");fr.setAttribute("result",dr),ct.appendChild(fr),this.feGaussianBlur=fr}SVGGaussianBlurEffect.prototype.renderFrame=function(ct){if(ct||this.filterManager._mdf){var Dn=.3,ur=this.filterManager.effectElements[0].p.v*Dn,dr=this.filterManager.effectElements[1].p.v,fr=dr==3?0:ur,hr=dr==2?0:ur;this.feGaussianBlur.setAttribute("stdDeviation",fr+" "+hr);var vr=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",vr)}};function TransformEffect(){}TransformEffect.prototype.init=function(ct){this.effectsManager=ct,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(ct){if(this._opMdf=!1,this._mdf=!1,ct||this.effectsManager._mdf){var Dn=this.effectsManager.effectElements,ur=Dn[0].p.v,dr=Dn[1].p.v,fr=Dn[2].p.v===1,hr=Dn[3].p.v,vr=fr?hr:Dn[4].p.v,pr=Dn[5].p.v,mr=Dn[6].p.v,gr=Dn[7].p.v;this.matrix.reset(),this.matrix.translate(-ur[0],-ur[1],ur[2]),this.matrix.scale(vr*.01,hr*.01,1),this.matrix.rotate(-gr*degToRads),this.matrix.skewFromAxis(-pr*degToRads,(mr+90)*degToRads),this.matrix.translate(dr[0],dr[1],0),this._mdf=!0,this.opacity!==Dn[8].p.v&&(this.opacity=Dn[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(ct,Dn){this.init(Dn)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(ct){this.init(ct)}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(ct){const Dn=usePickComponentStyle(ct),ur=vue.computed(()=>useImagePath(ct.imgUrl)),{pageMode:dr}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),fr=vue.computed(()=>{const _r={},{actionType:Tr,linkPage:Er,href:xr}=ct,{requestParams:Sr={}}=window.config;return vue.unref(dr)!=="design"&&Tr==="close"&&ct.isDrillShow&&!Sr.drillFlag&&(_r.display="none"),(Tr==="link"&&(Er||xr)||!Tr&&(Er||xr)||Tr==="close")&&(_r.cursor="pointer"),{...vue.unref(Dn),..._r}}),{getGlobalModel:hr,setGlobalModel:vr,getRecordValueByKeyName:pr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:_r=>{},setGlobalModel:(_r,Tr)=>{},getRecordValueByKeyName:_r=>{}}),{setTemplateData:mr}=vue.inject("templateOperate",{setTemplateData:_r=>{}}),yr=useEmitEvent(ct)("click",(_r=!0)=>{const Tr=hr(ct.id);if(vr(ct.id,{...Tr,type:ct.type,RECORD:ct.data||{}}),setTimeout(()=>{vr(ct.id,{...Tr,type:ct.type,RECORD:{}})},0),[void 0,"link"].includes(ct.actionType)){if(!ct.linkPage&&!ct.href)return;handleJumpLink(ct,{pageMode:vue.unref(dr),targetTemplate:ct.targetTemplate,isHandClick:_r,getRecordValueByKeyName:pr,setTemplateData:mr})}else ct.actionType==="close"&&window.close()}),Cr=()=>{yr(!1)},br=vue.ref(),Ar=vue.ref(),wr=()=>{const{directory:_r}=ct.animationSource;ct.isAnimation&&br.value&&_r&&(Ar.value=lottie.loadAnimation({name:`${ct.keyName}-lotTie`,container:br.value,renderer:"svg",loop:!0,autoplay:!0,path:useImagePath(_r)+"data.json"}),vue.unref(Ar).setSpeed(1))};return vue.watch(()=>[ct.isAnimation,ct.animationSource],([_r])=>{_r&&vue.nextTick(()=>{wr()})},{immediate:!0,deep:!0}),useOnEvent(ct,{click:Cr}),{customStyle:fr,myImgUrl:ur,animation:br,pageMode:dr,onClick:yr}}}),__injectCSSVars__$1=()=>{vue.useCssVars(ct=>({"75d98bc3":ct.isHoverStyle?"pointer":"auto","601637f4":ct.isHoverStyle?"0.6":"1"}))},__setup__$1=__default__$1.setup;__default__$1.setup=__setup__$1?(ct,Dn)=>(__injectCSSVars__$1(),__setup__$1(ct,Dn)):__injectCSSVars__$1;const Image_vue_vue_type_style_index_0_scoped_68a964de_lang="",_hoisted_1$4=["src"];function _sfc_render$8(ct,Dn,ur,dr,fr,hr){var vr;return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["ecan-image",ct.pageMode==="design"?"component":""]),style:vue.normalizeStyle(ct.customStyle)},[ct.isAnimation&&ct.animationSource.directory?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"full",ref:"animation",onClick:Dn[0]||(Dn[0]=(...pr)=>ct.onClick&&ct.onClick(...pr))},null,512)):!ct.isAnimation&&ct.myImgUrl?(vue.openBlock(),vue.createElementBlock("img",{key:1,class:"full",src:ct.myImgUrl,style:{width:"100%",height:"100%"},onClick:Dn[1]||(Dn[1]=(...pr)=>ct.onClick&&ct.onClick(...pr))},null,8,_hoisted_1$4)):vue.createCommentVNode("",!0),(ct.isAnimation?!((vr=ct.animationSource)!=null&&vr.directory):!ct.myImgUrl)?(vue.openBlock(),vue.createElementBlock("div",{key:2,class:vue.normalizeClass(["image-placeholder full",ct.pageMode==="design"?"component":""])}," 请上传图片 ",2)):vue.createCommentVNode("",!0)],6)}const Image$1=_export_sfc$1(__default__$1,[["render",_sfc_render$8],["__scopeId","data-v-68a964de"]]),EcanImage=withInstall$1(Image$1),iframeProps={...props$1,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web",transParams:[]},iframeComponentProps=transformToComponentProps(iframeProps),_sfc_main$6=vue.defineComponent({name:"EcanIframe",props:{...iframeComponentProps},setup(ct){const Dn=usePickComponentStyle(ct),{contextRequestUrl:ur}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:""}),{getRecordValueByKeyName:dr}=vue.inject(GLOBAL_MODEL,{getRecordValueByKeyName:hr=>{}}),fr=vue.computed(()=>{var vr;let hr=jn(ct.link);if(ct.linkType==="erd"&&hr!=null){let pr=vue.unref(ur);pr[pr.length-1]==="/"?pr+="erdReport":pr+="/erdReport",hr=`${ERD_URL||pr}?_t=0&uid=${hr}`}if((vr=ct.transParams)!=null&&vr.length){hr.includes("?")?hr+="&":hr+="?";const pr=[];for(const mr of ct.transParams){const gr=dr(String(mr.fieldName));pr.push(`${mr.keyName}=${gr}`)}hr+=pr.join("&")}return hr});return{style:Dn,myLink:fr}}}),Iframe_vue_vue_type_style_index_0_scoped_c0393b8d_lang="",_hoisted_1$3=["src"];function _sfc_render$7(ct,Dn,ur,dr,fr,hr){return ct.myLink?(vue.openBlock(),vue.createElementBlock("iframe",{key:0,src:ct.myLink,style:vue.normalizeStyle(ct.style)},null,12,_hoisted_1$3)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"iframe-placeholder",style:vue.normalizeStyle(ct.style)}," 请填写网页链接 ",4))}const Iframe=_export_sfc$1(_sfc_main$6,[["render",_sfc_render$7],["__scopeId","data-v-c0393b8d"]]),EcanIframe=withInstall$1(Iframe);var cfb={exports:{}};(function(ct){var Dn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function ur(Lr){for(var Fr="",Dr=0,Gr=0,Rr=0,Qr=0,Kr=0,Hr=0,Ur=0,Jr=0;Jr<Lr.length;)Dr=Lr.charCodeAt(Jr++),Qr=Dr>>2,Gr=Lr.charCodeAt(Jr++),Kr=(Dr&3)<<4|Gr>>4,Rr=Lr.charCodeAt(Jr++),Hr=(Gr&15)<<2|Rr>>6,Ur=Rr&63,isNaN(Gr)?Hr=Ur=64:isNaN(Rr)&&(Ur=64),Fr+=Dn.charAt(Qr)+Dn.charAt(Kr)+Dn.charAt(Hr)+Dn.charAt(Ur);return Fr}function dr(Lr){var Fr="",Dr=0,Gr=0,Rr=0,Qr=0,Kr=0,Hr=0,Ur=0;Lr=Lr.replace(/[^\w\+\/\=]/g,"");for(var Jr=0;Jr<Lr.length;)Qr=Dn.indexOf(Lr.charAt(Jr++)),Kr=Dn.indexOf(Lr.charAt(Jr++)),Dr=Qr<<2|Kr>>4,Fr+=String.fromCharCode(Dr),Hr=Dn.indexOf(Lr.charAt(Jr++)),Gr=(Kr&15)<<4|Hr>>2,Hr!==64&&(Fr+=String.fromCharCode(Gr)),Ur=Dn.indexOf(Lr.charAt(Jr++)),Rr=(Hr&3)<<6|Ur,Ur!==64&&(Fr+=String.fromCharCode(Rr));return Fr}var fr=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),hr=function(){if(typeof Buffer<"u"){var Lr=!Buffer.from;if(!Lr)try{Buffer.from("foo","utf8")}catch{Lr=!0}return Lr?function(Fr,Dr){return Dr?new Buffer(Fr,Dr):new Buffer(Fr)}:Buffer.from.bind(Buffer)}return function(){}}();function vr(Lr){if(fr){if(Buffer.alloc)return Buffer.alloc(Lr);var Fr=new Buffer(Lr);return Fr.fill(0),Fr}return typeof Uint8Array<"u"?new Uint8Array(Lr):new Array(Lr)}function pr(Lr){return fr?Buffer.allocUnsafe?Buffer.allocUnsafe(Lr):new Buffer(Lr):typeof Uint8Array<"u"?new Uint8Array(Lr):new Array(Lr)}var mr=function(Fr){return fr?hr(Fr,"binary"):Fr.split("").map(function(Dr){return Dr.charCodeAt(0)&255})},gr=/\u0000/g,yr=/[\u0001-\u0006]/g,Cr=function(Lr){for(var Fr=[],Dr=0;Dr<Lr[0].length;++Dr)Fr.push.apply(Fr,Lr[0][Dr]);return Fr},br=Cr,Ar=function(Lr,Fr,Dr){for(var Gr=[],Rr=Fr;Rr<Dr;Rr+=2)Gr.push(String.fromCharCode(kr(Lr,Rr)));return Gr.join("").replace(gr,"")},wr=Ar,_r=function(Lr,Fr,Dr){for(var Gr=[],Rr=Fr;Rr<Fr+Dr;++Rr)Gr.push(("0"+Lr[Rr].toString(16)).slice(-2));return Gr.join("")},Tr=_r,Er=function(Lr){if(Array.isArray(Lr[0]))return[].concat.apply([],Lr);var Fr=0,Dr=0;for(Dr=0;Dr<Lr.length;++Dr)Fr+=Lr[Dr].length;var Gr=new Uint8Array(Fr);for(Dr=0,Fr=0;Dr<Lr.length;Fr+=Lr[Dr].length,++Dr)Gr.set(Lr[Dr],Fr);return Gr},xr=Er;fr&&(Ar=function(Lr,Fr,Dr){return Buffer.isBuffer(Lr)?Lr.toString("utf16le",Fr,Dr).replace(gr,""):wr(Lr,Fr,Dr)},_r=function(Lr,Fr,Dr){return Buffer.isBuffer(Lr)?Lr.toString("hex",Fr,Fr+Dr):Tr(Lr,Fr,Dr)},Cr=function(Lr){return Lr[0].length>0&&Buffer.isBuffer(Lr[0][0])?Buffer.concat(Lr[0]):br(Lr)},mr=function(Lr){return hr(Lr,"binary")},xr=function(Lr){return Buffer.isBuffer(Lr[0])?Buffer.concat(Lr):Er(Lr)});var Sr=function(Lr,Fr){return Lr[Fr]},kr=function(Lr,Fr){return Lr[Fr+1]*256+Lr[Fr]},Pr=function(Lr,Fr){var Dr=Lr[Fr+1]*256+Lr[Fr];return Dr<32768?Dr:(65535-Dr+1)*-1},Ir=function(Lr,Fr){return Lr[Fr+3]*(1<<24)+(Lr[Fr+2]<<16)+(Lr[Fr+1]<<8)+Lr[Fr]},Br=function(Lr,Fr){return(Lr[Fr+3]<<24)+(Lr[Fr+2]<<16)+(Lr[Fr+1]<<8)+Lr[Fr]};function Or(Lr,Fr){var Dr,Gr,Rr=0;switch(Lr){case 1:Dr=Sr(this,this.l);break;case 2:Dr=(Fr!=="i"?kr:Pr)(this,this.l);break;case 4:Dr=Br(this,this.l);break;case 16:Rr=2,Gr=_r(this,this.l,Lr)}return this.l+=Lr,Rr===0?Dr:Gr}var Nr=function(Lr,Fr,Dr){Lr[Dr]=Fr&255,Lr[Dr+1]=Fr>>>8&255,Lr[Dr+2]=Fr>>>16&255,Lr[Dr+3]=Fr>>>24&255},jr=function(Lr,Fr,Dr){Lr[Dr]=Fr&255,Lr[Dr+1]=Fr>>8&255,Lr[Dr+2]=Fr>>16&255,Lr[Dr+3]=Fr>>24&255};function Vr(Lr,Fr,Dr){var Gr=0,Rr=0;switch(Dr){case"hex":for(;Rr<Lr;++Rr)this[this.l++]=parseInt(Fr.slice(2*Rr,2*Rr+2),16)||0;return this;case"utf16le":var Qr=this.l+Lr;for(Rr=0;Rr<Math.min(Fr.length,Lr);++Rr){var Kr=Fr.charCodeAt(Rr);this[this.l++]=Kr&255,this[this.l++]=Kr>>8}for(;this.l<Qr;)this[this.l++]=0;return this}switch(Lr){case 1:Gr=1,this[this.l]=Fr&255;break;case 2:Gr=2,this[this.l]=Fr&255,Fr>>>=8,this[this.l+1]=Fr&255;break;case 4:Gr=4,Nr(this,Fr,this.l);break;case-4:Gr=4,jr(this,Fr,this.l);break}return this.l+=Gr,this}function $r(Lr,Fr){var Dr=_r(this,this.l,Lr.length>>1);if(Dr!==Lr)throw new Error(Fr+"Expected "+Lr+" saw "+Dr);this.l+=Lr.length>>1}function zr(Lr,Fr){Lr.l=Fr,Lr.read_shift=Or,Lr.chk=$r,Lr.write_shift=Vr}function Wr(Lr){var Fr=vr(Lr);return zr(Fr,0),Fr}/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */var qr=function(){var Lr={};Lr.version="1.2.1";function Fr(){for(var ri=0,yi=new Array(256),di=0;di!=256;++di)ri=di,ri=ri&1?-306674912^ri>>>1:ri>>>1,ri=ri&1?-306674912^ri>>>1:ri>>>1,ri=ri&1?-306674912^ri>>>1:ri>>>1,ri=ri&1?-306674912^ri>>>1:ri>>>1,ri=ri&1?-306674912^ri>>>1:ri>>>1,ri=ri&1?-306674912^ri>>>1:ri>>>1,ri=ri&1?-306674912^ri>>>1:ri>>>1,ri=ri&1?-306674912^ri>>>1:ri>>>1,yi[di]=ri;return typeof Int32Array<"u"?new Int32Array(yi):yi}var Dr=Fr();function Gr(ri){var yi=0,di=0,Ei=0,Oi=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(Ei=0;Ei!=256;++Ei)Oi[Ei]=ri[Ei];for(Ei=0;Ei!=256;++Ei)for(di=ri[Ei],yi=256+Ei;yi<4096;yi+=256)di=Oi[yi]=di>>>8^ri[di&255];var Li=[];for(Ei=1;Ei!=16;++Ei)Li[Ei-1]=typeof Int32Array<"u"?Oi.subarray(Ei*256,Ei*256+256):Oi.slice(Ei*256,Ei*256+256);return Li}var Rr=Gr(Dr),Qr=Rr[0],Kr=Rr[1],Hr=Rr[2],Ur=Rr[3],Jr=Rr[4],Yr=Rr[5],si=Rr[6],fi=Rr[7],_i=Rr[8],bi=Rr[9],pi=Rr[10],mi=Rr[11],xi=Rr[12],ni=Rr[13],ai=Rr[14];function Xr(ri,yi){for(var di=yi^-1,Ei=0,Oi=ri.length;Ei<Oi;)di=di>>>8^Dr[(di^ri.charCodeAt(Ei++))&255];return~di}function vi(ri,yi){for(var di=yi^-1,Ei=ri.length-15,Oi=0;Oi<Ei;)di=ai[ri[Oi++]^di&255]^ni[ri[Oi++]^di>>8&255]^xi[ri[Oi++]^di>>16&255]^mi[ri[Oi++]^di>>>24]^pi[ri[Oi++]]^bi[ri[Oi++]]^_i[ri[Oi++]]^fi[ri[Oi++]]^si[ri[Oi++]]^Yr[ri[Oi++]]^Jr[ri[Oi++]]^Ur[ri[Oi++]]^Hr[ri[Oi++]]^Kr[ri[Oi++]]^Qr[ri[Oi++]]^Dr[ri[Oi++]];for(Ei+=15;Oi<Ei;)di=di>>>8^Dr[(di^ri[Oi++])&255];return~di}function Si(ri,yi){for(var di=yi^-1,Ei=0,Oi=ri.length,Li=0,Ri=0;Ei<Oi;)Li=ri.charCodeAt(Ei++),Li<128?di=di>>>8^Dr[(di^Li)&255]:Li<2048?(di=di>>>8^Dr[(di^(192|Li>>6&31))&255],di=di>>>8^Dr[(di^(128|Li&63))&255]):Li>=55296&&Li<57344?(Li=(Li&1023)+64,Ri=ri.charCodeAt(Ei++)&1023,di=di>>>8^Dr[(di^(240|Li>>8&7))&255],di=di>>>8^Dr[(di^(128|Li>>2&63))&255],di=di>>>8^Dr[(di^(128|Ri>>6&15|(Li&3)<<4))&255],di=di>>>8^Dr[(di^(128|Ri&63))&255]):(di=di>>>8^Dr[(di^(224|Li>>12&15))&255],di=di>>>8^Dr[(di^(128|Li>>6&63))&255],di=di>>>8^Dr[(di^(128|Li&63))&255]);return~di}return Lr.table=Dr,Lr.bstr=Xr,Lr.buf=vi,Lr.str=Si,Lr}(),Mr=function(){var Fr={};Fr.version="1.2.2";function Dr(Zr,ui){for(var ti=Zr.split("/"),ii=ui.split("/"),oi=0,ci=0,Ti=Math.min(ti.length,ii.length);oi<Ti;++oi){if(ci=ti[oi].length-ii[oi].length)return ci;if(ti[oi]!=ii[oi])return ti[oi]<ii[oi]?-1:1}return ti.length-ii.length}function Gr(Zr){if(Zr.charAt(Zr.length-1)=="/")return Zr.slice(0,-1).indexOf("/")===-1?Zr:Gr(Zr.slice(0,-1));var ui=Zr.lastIndexOf("/");return ui===-1?Zr:Zr.slice(0,ui+1)}function Rr(Zr){if(Zr.charAt(Zr.length-1)=="/")return Rr(Zr.slice(0,-1));var ui=Zr.lastIndexOf("/");return ui===-1?Zr:Zr.slice(ui+1)}function Qr(Zr,ui){typeof ui=="string"&&(ui=new Date(ui));var ti=ui.getHours();ti=ti<<6|ui.getMinutes(),ti=ti<<5|ui.getSeconds()>>>1,Zr.write_shift(2,ti);var ii=ui.getFullYear()-1980;ii=ii<<4|ui.getMonth()+1,ii=ii<<5|ui.getDate(),Zr.write_shift(2,ii)}function Kr(Zr){var ui=Zr.read_shift(2)&65535,ti=Zr.read_shift(2)&65535,ii=new Date,oi=ti&31;ti>>>=5;var ci=ti&15;ti>>>=4,ii.setMilliseconds(0),ii.setFullYear(ti+1980),ii.setMonth(ci-1),ii.setDate(oi);var Ti=ui&31;ui>>>=5;var Bi=ui&63;return ui>>>=6,ii.setHours(ui),ii.setMinutes(Bi),ii.setSeconds(Ti<<1),ii}function Hr(Zr){zr(Zr,0);for(var ui={},ti=0;Zr.l<=Zr.length-4;){var ii=Zr.read_shift(2),oi=Zr.read_shift(2),ci=Zr.l+oi,Ti={};switch(ii){case 21589:ti=Zr.read_shift(1),ti&1&&(Ti.mtime=Zr.read_shift(4)),oi>5&&(ti&2&&(Ti.atime=Zr.read_shift(4)),ti&4&&(Ti.ctime=Zr.read_shift(4))),Ti.mtime&&(Ti.mt=new Date(Ti.mtime*1e3));break}Zr.l=ci,ui[ii]=Ti}return ui}var Ur;function Jr(){return Ur||(Ur=require$$0)}function Yr(Zr,ui){if(Zr[0]==80&&Zr[1]==75)return aa(Zr,ui);if((Zr[0]|32)==109&&(Zr[1]|32)==105)return Ya(Zr,ui);if(Zr.length<512)throw new Error("CFB file size "+Zr.length+" < 512");var ti=3,ii=512,oi=0,ci=0,Ti=0,Bi=0,ki=0,Ii=[],Pi=Zr.slice(0,512);zr(Pi,0);var Gi=si(Pi);switch(ti=Gi[0],ti){case 3:ii=512;break;case 4:ii=4096;break;case 0:if(Gi[1]==0)return aa(Zr,ui);default:throw new Error("Major Version: Expected 3 or 4 saw "+ti)}ii!==512&&(Pi=Zr.slice(0,ii),zr(Pi,28));var Zi=Zr.slice(0,ii);fi(Pi,ti);var ra=Pi.read_shift(4,"i");if(ti===3&&ra!==0)throw new Error("# Directory Sectors: Expected 0 saw "+ra);Pi.l+=4,Ti=Pi.read_shift(4,"i"),Pi.l+=4,Pi.chk("00100000","Mini Stream Cutoff Size: "),Bi=Pi.read_shift(4,"i"),oi=Pi.read_shift(4,"i"),ki=Pi.read_shift(4,"i"),ci=Pi.read_shift(4,"i");for(var Ki=-1,na=0;na<109&&(Ki=Pi.read_shift(4,"i"),!(Ki<0));++na)Ii[na]=Ki;var pa=_i(Zr,ii);mi(ki,ci,pa,ii,Ii);var Ea=ni(pa,Ti,Ii,ii);Ea[Ti].name="!Directory",oi>0&&Bi!==Ri&&(Ea[Bi].name="!MiniFAT"),Ea[Ii[0]].name="!FAT",Ea.fat_addrs=Ii,Ea.ssz=ii;var Xi={},ha=[],ga=[],Pa=[];ai(Ti,Ea,pa,ha,oi,Xi,ga,Bi),bi(ga,Pa,ha),ha.shift();var Da={FileIndex:ga,FullPaths:Pa};return ui&&ui.raw&&(Da.raw={header:Zi,sectors:pa}),Da}function si(Zr){if(Zr[Zr.l]==80&&Zr[Zr.l+1]==75)return[0,0];Zr.chk(hi,"Header Signature: "),Zr.l+=16;var ui=Zr.read_shift(2,"u");return[Zr.read_shift(2,"u"),ui]}function fi(Zr,ui){var ti=9;switch(Zr.l+=2,ti=Zr.read_shift(2)){case 9:if(ui!=3)throw new Error("Sector Shift: Expected 9 saw "+ti);break;case 12:if(ui!=4)throw new Error("Sector Shift: Expected 12 saw "+ti);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+ti)}Zr.chk("0600","Mini Sector Shift: "),Zr.chk("000000000000","Reserved: ")}function _i(Zr,ui){for(var ti=Math.ceil(Zr.length/ui)-1,ii=[],oi=1;oi<ti;++oi)ii[oi-1]=Zr.slice(oi*ui,(oi+1)*ui);return ii[ti-1]=Zr.slice(ti*ui),ii}function bi(Zr,ui,ti){for(var ii=0,oi=0,ci=0,Ti=0,Bi=0,ki=ti.length,Ii=[],Pi=[];ii<ki;++ii)Ii[ii]=Pi[ii]=ii,ui[ii]=ti[ii];for(;Bi<Pi.length;++Bi)ii=Pi[Bi],oi=Zr[ii].L,ci=Zr[ii].R,Ti=Zr[ii].C,Ii[ii]===ii&&(oi!==-1&&Ii[oi]!==oi&&(Ii[ii]=Ii[oi]),ci!==-1&&Ii[ci]!==ci&&(Ii[ii]=Ii[ci])),Ti!==-1&&(Ii[Ti]=ii),oi!==-1&&ii!=Ii[ii]&&(Ii[oi]=Ii[ii],Pi.lastIndexOf(oi)<Bi&&Pi.push(oi)),ci!==-1&&ii!=Ii[ii]&&(Ii[ci]=Ii[ii],Pi.lastIndexOf(ci)<Bi&&Pi.push(ci));for(ii=1;ii<ki;++ii)Ii[ii]===ii&&(ci!==-1&&Ii[ci]!==ci?Ii[ii]=Ii[ci]:oi!==-1&&Ii[oi]!==oi&&(Ii[ii]=Ii[oi]));for(ii=1;ii<ki;++ii)if(Zr[ii].type!==0){if(Bi=ii,Bi!=Ii[Bi])do Bi=Ii[Bi],ui[ii]=ui[Bi]+"/"+ui[ii];while(Bi!==0&&Ii[Bi]!==-1&&Bi!=Ii[Bi]);Ii[ii]=-1}for(ui[0]+="/",ii=1;ii<ki;++ii)Zr[ii].type!==2&&(ui[ii]+="/")}function pi(Zr,ui,ti){for(var ii=Zr.start,oi=Zr.size,ci=[],Ti=ii;ti&&oi>0&&Ti>=0;)ci.push(ui.slice(Ti*Li,Ti*Li+Li)),oi-=Li,Ti=Br(ti,Ti*4);return ci.length===0?Wr(0):xr(ci).slice(0,Zr.size)}function mi(Zr,ui,ti,ii,oi){var ci=Ri;if(Zr===Ri){if(ui!==0)throw new Error("DIFAT chain shorter than expected")}else if(Zr!==-1){var Ti=ti[Zr],Bi=(ii>>>2)-1;if(!Ti)return;for(var ki=0;ki<Bi&&(ci=Br(Ti,ki*4))!==Ri;++ki)oi.push(ci);ui>=1&&mi(Br(Ti,ii-4),ui-1,ti,ii,oi)}}function xi(Zr,ui,ti,ii,oi){var ci=[],Ti=[];oi||(oi=[]);var Bi=ii-1,ki=0,Ii=0;for(ki=ui;ki>=0;){oi[ki]=!0,ci[ci.length]=ki,Ti.push(Zr[ki]);var Pi=ti[Math.floor(ki*4/ii)];if(Ii=ki*4&Bi,ii<4+Ii)throw new Error("FAT boundary crossed: "+ki+" 4 "+ii);if(!Zr[Pi])break;ki=Br(Zr[Pi],Ii)}return{nodes:ci,data:Cr([Ti])}}function ni(Zr,ui,ti,ii){var oi=Zr.length,ci=[],Ti=[],Bi=[],ki=[],Ii=ii-1,Pi=0,Gi=0,Zi=0,ra=0;for(Pi=0;Pi<oi;++Pi)if(Bi=[],Zi=Pi+ui,Zi>=oi&&(Zi-=oi),!Ti[Zi]){ki=[];var Ki=[];for(Gi=Zi;Gi>=0;){Ki[Gi]=!0,Ti[Gi]=!0,Bi[Bi.length]=Gi,ki.push(Zr[Gi]);var na=ti[Math.floor(Gi*4/ii)];if(ra=Gi*4&Ii,ii<4+ra)throw new Error("FAT boundary crossed: "+Gi+" 4 "+ii);if(!Zr[na]||(Gi=Br(Zr[na],ra),Ki[Gi]))break}ci[Zi]={nodes:Bi,data:Cr([ki])}}return ci}function ai(Zr,ui,ti,ii,oi,ci,Ti,Bi){for(var ki=0,Ii=ii.length?2:0,Pi=ui[Zr].data,Gi=0,Zi=0,ra;Gi<Pi.length;Gi+=128){var Ki=Pi.slice(Gi,Gi+128);zr(Ki,64),Zi=Ki.read_shift(2),ra=Ar(Ki,0,Zi-Ii),ii.push(ra);var na={name:ra,type:Ki.read_shift(1),color:Ki.read_shift(1),L:Ki.read_shift(4,"i"),R:Ki.read_shift(4,"i"),C:Ki.read_shift(4,"i"),clsid:Ki.read_shift(16),state:Ki.read_shift(4,"i"),start:0,size:0},pa=Ki.read_shift(2)+Ki.read_shift(2)+Ki.read_shift(2)+Ki.read_shift(2);pa!==0&&(na.ct=Xr(Ki,Ki.l-8));var Ea=Ki.read_shift(2)+Ki.read_shift(2)+Ki.read_shift(2)+Ki.read_shift(2);Ea!==0&&(na.mt=Xr(Ki,Ki.l-8)),na.start=Ki.read_shift(4,"i"),na.size=Ki.read_shift(4,"i"),na.size<0&&na.start<0&&(na.size=na.type=0,na.start=Ri,na.name=""),na.type===5?(ki=na.start,oi>0&&ki!==Ri&&(ui[ki].name="!StreamData")):na.size>=4096?(na.storage="fat",ui[na.start]===void 0&&(ui[na.start]=xi(ti,na.start,ui.fat_addrs,ui.ssz)),ui[na.start].name=na.name,na.content=ui[na.start].data.slice(0,na.size)):(na.storage="minifat",na.size<0?na.size=0:ki!==Ri&&na.start!==Ri&&ui[ki]&&(na.content=pi(na,ui[ki].data,(ui[Bi]||{}).data))),na.content&&zr(na.content,0),ci[ra]=na,Ti.push(na)}}function Xr(Zr,ui){return new Date((Ir(Zr,ui+4)/1e7*Math.pow(2,32)+Ir(Zr,ui)/1e7-11644473600)*1e3)}function vi(Zr,ui){return Jr(),Yr(Ur.readFileSync(Zr),ui)}function Si(Zr,ui){var ti=ui&&ui.type;switch(ti||fr&&Buffer.isBuffer(Zr)&&(ti="buffer"),ti||"base64"){case"file":return vi(Zr,ui);case"base64":return Yr(mr(dr(Zr)),ui);case"binary":return Yr(mr(Zr),ui)}return Yr(Zr,ui)}function ri(Zr,ui){var ti=ui||{},ii=ti.root||"Root Entry";if(Zr.FullPaths||(Zr.FullPaths=[]),Zr.FileIndex||(Zr.FileIndex=[]),Zr.FullPaths.length!==Zr.FileIndex.length)throw new Error("inconsistent CFB structure");Zr.FullPaths.length===0&&(Zr.FullPaths[0]=ii+"/",Zr.FileIndex[0]={name:ii,type:5}),ti.CLSID&&(Zr.FileIndex[0].clsid=ti.CLSID),yi(Zr)}function yi(Zr){var ui="Sh33tJ5";if(!Mr.find(Zr,"/"+ui)){var ti=Wr(4);ti[0]=55,ti[1]=ti[3]=50,ti[2]=54,Zr.FileIndex.push({name:ui,type:2,content:ti,size:4,L:69,R:69,C:69}),Zr.FullPaths.push(Zr.FullPaths[0]+ui),di(Zr)}}function di(Zr,ui){ri(Zr);for(var ti=!1,ii=!1,oi=Zr.FullPaths.length-1;oi>=0;--oi){var ci=Zr.FileIndex[oi];switch(ci.type){case 0:ii?ti=!0:(Zr.FileIndex.pop(),Zr.FullPaths.pop());break;case 1:case 2:case 5:ii=!0,isNaN(ci.R*ci.L*ci.C)&&(ti=!0),ci.R>-1&&ci.L>-1&&ci.R==ci.L&&(ti=!0);break;default:ti=!0;break}}if(!(!ti&&!ui)){var Ti=new Date(1987,1,19),Bi=0,ki=Object.create?Object.create(null):{},Ii=[];for(oi=0;oi<Zr.FullPaths.length;++oi)ki[Zr.FullPaths[oi]]=!0,Zr.FileIndex[oi].type!==0&&Ii.push([Zr.FullPaths[oi],Zr.FileIndex[oi]]);for(oi=0;oi<Ii.length;++oi){var Pi=Gr(Ii[oi][0]);for(ii=ki[Pi];!ii;){for(;Gr(Pi)&&!ki[Gr(Pi)];)Pi=Gr(Pi);Ii.push([Pi,{name:Rr(Pi).replace("/",""),type:1,clsid:Di,ct:Ti,mt:Ti,content:null}]),ki[Pi]=!0,Pi=Gr(Ii[oi][0]),ii=ki[Pi]}}for(Ii.sort(function(ra,Ki){return Dr(ra[0],Ki[0])}),Zr.FullPaths=[],Zr.FileIndex=[],oi=0;oi<Ii.length;++oi)Zr.FullPaths[oi]=Ii[oi][0],Zr.FileIndex[oi]=Ii[oi][1];for(oi=0;oi<Ii.length;++oi){var Gi=Zr.FileIndex[oi],Zi=Zr.FullPaths[oi];if(Gi.name=Rr(Zi).replace("/",""),Gi.L=Gi.R=Gi.C=-(Gi.color=1),Gi.size=Gi.content?Gi.content.length:0,Gi.start=0,Gi.clsid=Gi.clsid||Di,oi===0)Gi.C=Ii.length>1?1:-1,Gi.size=0,Gi.type=5;else if(Zi.slice(-1)=="/"){for(Bi=oi+1;Bi<Ii.length&&Gr(Zr.FullPaths[Bi])!=Zi;++Bi);for(Gi.C=Bi>=Ii.length?-1:Bi,Bi=oi+1;Bi<Ii.length&&Gr(Zr.FullPaths[Bi])!=Gr(Zi);++Bi);Gi.R=Bi>=Ii.length?-1:Bi,Gi.type=1}else Gr(Zr.FullPaths[oi+1]||"")==Gr(Zi)&&(Gi.R=oi+1),Gi.type=2}}}function Ei(Zr,ui){var ti=ui||{};if(ti.fileType=="mad")return es(Zr,ti);switch(di(Zr),ti.fileType){case"zip":return xa(Zr,ti)}var ii=function(ra){for(var Ki=0,na=0,pa=0;pa<ra.FileIndex.length;++pa){var Ea=ra.FileIndex[pa];if(Ea.content){var Xi=Ea.content.length;Xi>0&&(Xi<4096?Ki+=Xi+63>>6:na+=Xi+511>>9)}}for(var ha=ra.FullPaths.length+3>>2,ga=Ki+7>>3,Pa=Ki+127>>7,Da=ga+na+ha+Pa,Ta=Da+127>>7,ja=Ta<=109?0:Math.ceil((Ta-109)/127);Da+Ta+ja+127>>7>Ta;)ja=++Ta<=109?0:Math.ceil((Ta-109)/127);var $a=[1,ja,Ta,Pa,ha,na,Ki,0];return ra.FileIndex[0].size=Ki<<6,$a[7]=(ra.FileIndex[0].start=$a[0]+$a[1]+$a[2]+$a[3]+$a[4]+$a[5])+($a[6]+7>>3),$a}(Zr),oi=Wr(ii[7]<<9),ci=0,Ti=0;{for(ci=0;ci<8;++ci)oi.write_shift(1,Ci[ci]);for(ci=0;ci<8;++ci)oi.write_shift(2,0);for(oi.write_shift(2,62),oi.write_shift(2,3),oi.write_shift(2,65534),oi.write_shift(2,9),oi.write_shift(2,6),ci=0;ci<3;++ci)oi.write_shift(2,0);for(oi.write_shift(4,0),oi.write_shift(4,ii[2]),oi.write_shift(4,ii[0]+ii[1]+ii[2]+ii[3]-1),oi.write_shift(4,0),oi.write_shift(4,4096),oi.write_shift(4,ii[3]?ii[0]+ii[1]+ii[2]-1:Ri),oi.write_shift(4,ii[3]),oi.write_shift(-4,ii[1]?ii[0]-1:Ri),oi.write_shift(4,ii[1]),ci=0;ci<109;++ci)oi.write_shift(-4,ci<ii[2]?ii[1]+ci:-1)}if(ii[1])for(Ti=0;Ti<ii[1];++Ti){for(;ci<236+Ti*127;++ci)oi.write_shift(-4,ci<ii[2]?ii[1]+ci:-1);oi.write_shift(-4,Ti===ii[1]-1?Ri:Ti+1)}var Bi=function(ra){for(Ti+=ra;ci<Ti-1;++ci)oi.write_shift(-4,ci+1);ra&&(++ci,oi.write_shift(-4,Ri))};for(Ti=ci=0,Ti+=ii[1];ci<Ti;++ci)oi.write_shift(-4,$i.DIFSECT);for(Ti+=ii[2];ci<Ti;++ci)oi.write_shift(-4,$i.FATSECT);Bi(ii[3]),Bi(ii[4]);for(var ki=0,Ii=0,Pi=Zr.FileIndex[0];ki<Zr.FileIndex.length;++ki)Pi=Zr.FileIndex[ki],Pi.content&&(Ii=Pi.content.length,!(Ii<4096)&&(Pi.start=Ti,Bi(Ii+511>>9)));for(Bi(ii[6]+7>>3);oi.l&511;)oi.write_shift(-4,$i.ENDOFCHAIN);for(Ti=ci=0,ki=0;ki<Zr.FileIndex.length;++ki)Pi=Zr.FileIndex[ki],Pi.content&&(Ii=Pi.content.length,!(!Ii||Ii>=4096)&&(Pi.start=Ti,Bi(Ii+63>>6)));for(;oi.l&511;)oi.write_shift(-4,$i.ENDOFCHAIN);for(ci=0;ci<ii[4]<<2;++ci){var Gi=Zr.FullPaths[ci];if(!Gi||Gi.length===0){for(ki=0;ki<17;++ki)oi.write_shift(4,0);for(ki=0;ki<3;++ki)oi.write_shift(4,-1);for(ki=0;ki<12;++ki)oi.write_shift(4,0);continue}Pi=Zr.FileIndex[ci],ci===0&&(Pi.start=Pi.size?Pi.start-1:Ri);var Zi=ci===0&&ti.root||Pi.name;if(Zi.length>32&&(console.error("Name "+Zi+" will be truncated to "+Zi.slice(0,32)),Zi=Zi.slice(0,32)),Ii=2*(Zi.length+1),oi.write_shift(64,Zi,"utf16le"),oi.write_shift(2,Ii),oi.write_shift(1,Pi.type),oi.write_shift(1,Pi.color),oi.write_shift(-4,Pi.L),oi.write_shift(-4,Pi.R),oi.write_shift(-4,Pi.C),Pi.clsid)oi.write_shift(16,Pi.clsid,"hex");else for(ki=0;ki<4;++ki)oi.write_shift(4,0);oi.write_shift(4,Pi.state||0),oi.write_shift(4,0),oi.write_shift(4,0),oi.write_shift(4,0),oi.write_shift(4,0),oi.write_shift(4,Pi.start),oi.write_shift(4,Pi.size),oi.write_shift(4,0)}for(ci=1;ci<Zr.FileIndex.length;++ci)if(Pi=Zr.FileIndex[ci],Pi.size>=4096)if(oi.l=Pi.start+1<<9,fr&&Buffer.isBuffer(Pi.content))Pi.content.copy(oi,oi.l,0,Pi.size),oi.l+=Pi.size+511&-512;else{for(ki=0;ki<Pi.size;++ki)oi.write_shift(1,Pi.content[ki]);for(;ki&511;++ki)oi.write_shift(1,0)}for(ci=1;ci<Zr.FileIndex.length;++ci)if(Pi=Zr.FileIndex[ci],Pi.size>0&&Pi.size<4096)if(fr&&Buffer.isBuffer(Pi.content))Pi.content.copy(oi,oi.l,0,Pi.size),oi.l+=Pi.size+63&-64;else{for(ki=0;ki<Pi.size;++ki)oi.write_shift(1,Pi.content[ki]);for(;ki&63;++ki)oi.write_shift(1,0)}if(fr)oi.l=oi.length;else for(;oi.l<oi.length;)oi.write_shift(1,0);return oi}function Oi(Zr,ui){var ti=Zr.FullPaths.map(function(ki){return ki.toUpperCase()}),ii=ti.map(function(ki){var Ii=ki.split("/");return Ii[Ii.length-(ki.slice(-1)=="/"?2:1)]}),oi=!1;ui.charCodeAt(0)===47?(oi=!0,ui=ti[0].slice(0,-1)+ui):oi=ui.indexOf("/")!==-1;var ci=ui.toUpperCase(),Ti=oi===!0?ti.indexOf(ci):ii.indexOf(ci);if(Ti!==-1)return Zr.FileIndex[Ti];var Bi=!ci.match(yr);for(ci=ci.replace(gr,""),Bi&&(ci=ci.replace(yr,"!")),Ti=0;Ti<ti.length;++Ti)if((Bi?ti[Ti].replace(yr,"!"):ti[Ti]).replace(gr,"")==ci||(Bi?ii[Ti].replace(yr,"!"):ii[Ti]).replace(gr,"")==ci)return Zr.FileIndex[Ti];return null}var Li=64,Ri=-2,hi="d0cf11e0a1b11ae1",Ci=[208,207,17,224,161,177,26,225],Di="00000000000000000000000000000000",$i={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:Ri,FREESECT:-1,HEADER_SIGNATURE:hi,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:Di,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function Fi(Zr,ui,ti){Jr();var ii=Ei(Zr,ti);Ur.writeFileSync(ui,ii)}function qi(Zr){for(var ui=new Array(Zr.length),ti=0;ti<Zr.length;++ti)ui[ti]=String.fromCharCode(Zr[ti]);return ui.join("")}function Qi(Zr,ui){var ti=Ei(Zr,ui);switch(ui&&ui.type||"buffer"){case"file":return Jr(),Ur.writeFileSync(ui.filename,ti),ti;case"binary":return typeof ti=="string"?ti:qi(ti);case"base64":return ur(typeof ti=="string"?ti:qi(ti));case"buffer":if(fr)return Buffer.isBuffer(ti)?ti:hr(ti);case"array":return typeof ti=="string"?mr(ti):ti}return ti}var la;function da(Zr){try{var ui=Zr.InflateRaw,ti=new ui;if(ti._processChunk(new Uint8Array([3,0]),ti._finishFlushFlag),ti.bytesRead)la=Zr;else throw new Error("zlib does not expose bytesRead")}catch(ii){console.error("cannot use native zlib: "+(ii.message||ii))}}function va(Zr,ui){if(!la)return ia(Zr,ui);var ti=la.InflateRaw,ii=new ti,oi=ii._processChunk(Zr.slice(Zr.l),ii._finishFlushFlag);return Zr.l+=ii.bytesRead,oi}function ya(Zr){return la?la.deflateRawSync(Zr):gi(Zr)}var ba=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Sa=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],La=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function qa(Zr){var ui=(Zr<<1|Zr<<11)&139536|(Zr<<5|Zr<<15)&558144;return(ui>>16|ui>>8|ui)&255}for(var ka=typeof Uint8Array<"u",Ba=ka?new Uint8Array(256):[],Ha=0;Ha<256;++Ha)Ba[Ha]=qa(Ha);function Ia(Zr,ui){var ti=Ba[Zr&255];return ui<=8?ti>>>8-ui:(ti=ti<<8|Ba[Zr>>8&255],ui<=16?ti>>>16-ui:(ti=ti<<8|Ba[Zr>>16&255],ti>>>24-ui))}function Ga(Zr,ui){var ti=ui&7,ii=ui>>>3;return(Zr[ii]|(ti<=6?0:Zr[ii+1]<<8))>>>ti&3}function Va(Zr,ui){var ti=ui&7,ii=ui>>>3;return(Zr[ii]|(ti<=5?0:Zr[ii+1]<<8))>>>ti&7}function Ua(Zr,ui){var ti=ui&7,ii=ui>>>3;return(Zr[ii]|(ti<=4?0:Zr[ii+1]<<8))>>>ti&15}function Vi(Zr,ui){var ti=ui&7,ii=ui>>>3;return(Zr[ii]|(ti<=3?0:Zr[ii+1]<<8))>>>ti&31}function Wi(Zr,ui){var ti=ui&7,ii=ui>>>3;return(Zr[ii]|(ti<=1?0:Zr[ii+1]<<8))>>>ti&127}function Hi(Zr,ui,ti){var ii=ui&7,oi=ui>>>3,ci=(1<<ti)-1,Ti=Zr[oi]>>>ii;return ti<8-ii||(Ti|=Zr[oi+1]<<8-ii,ti<16-ii)||(Ti|=Zr[oi+2]<<16-ii,ti<24-ii)||(Ti|=Zr[oi+3]<<24-ii),Ti&ci}function Ji(Zr,ui,ti){var ii=ui&7,oi=ui>>>3;return ii<=5?Zr[oi]|=(ti&7)<<ii:(Zr[oi]|=ti<<ii&255,Zr[oi+1]=(ti&7)>>8-ii),ui+3}function ea(Zr,ui,ti){var ii=ui&7,oi=ui>>>3;return ti=(ti&1)<<ii,Zr[oi]|=ti,ui+1}function ta(Zr,ui,ti){var ii=ui&7,oi=ui>>>3;return ti<<=ii,Zr[oi]|=ti&255,ti>>>=8,Zr[oi+1]=ti,ui+8}function ca(Zr,ui,ti){var ii=ui&7,oi=ui>>>3;return ti<<=ii,Zr[oi]|=ti&255,ti>>>=8,Zr[oi+1]=ti&255,Zr[oi+2]=ti>>>8,ui+16}function ua(Zr,ui){var ti=Zr.length,ii=2*ti>ui?2*ti:ui+5,oi=0;if(ti>=ui)return Zr;if(fr){var ci=pr(ii);if(Zr.copy)Zr.copy(ci);else for(;oi<Zr.length;++oi)ci[oi]=Zr[oi];return ci}else if(ka){var Ti=new Uint8Array(ii);if(Ti.set)Ti.set(Zr);else for(;oi<ti;++oi)Ti[oi]=Zr[oi];return Ti}return Zr.length=ii,Zr}function sa(Zr){for(var ui=new Array(Zr),ti=0;ti<Zr;++ti)ui[ti]=0;return ui}function fa(Zr,ui,ti){var ii=1,oi=0,ci=0,Ti=0,Bi=0,ki=Zr.length,Ii=ka?new Uint16Array(32):sa(32);for(ci=0;ci<32;++ci)Ii[ci]=0;for(ci=ki;ci<ti;++ci)Zr[ci]=0;ki=Zr.length;var Pi=ka?new Uint16Array(ki):sa(ki);for(ci=0;ci<ki;++ci)Ii[oi=Zr[ci]]++,ii<oi&&(ii=oi),Pi[ci]=0;for(Ii[0]=0,ci=1;ci<=ii;++ci)Ii[ci+16]=Bi=Bi+Ii[ci-1]<<1;for(ci=0;ci<ki;++ci)Bi=Zr[ci],Bi!=0&&(Pi[ci]=Ii[Bi+16]++);var Gi=0;for(ci=0;ci<ki;++ci)if(Gi=Zr[ci],Gi!=0)for(Bi=Ia(Pi[ci],ii)>>ii-Gi,Ti=(1<<ii+4-Gi)-1;Ti>=0;--Ti)ui[Bi|Ti<<Gi]=Gi&15|ci<<4;return ii}var ma=ka?new Uint16Array(512):sa(512),zi=ka?new Uint16Array(32):sa(32);if(!ka){for(var ei=0;ei<512;++ei)ma[ei]=0;for(ei=0;ei<32;++ei)zi[ei]=0}(function(){for(var Zr=[],ui=0;ui<32;ui++)Zr.push(5);fa(Zr,zi,32);var ti=[];for(ui=0;ui<=143;ui++)ti.push(8);for(;ui<=255;ui++)ti.push(9);for(;ui<=279;ui++)ti.push(7);for(;ui<=287;ui++)ti.push(8);fa(ti,ma,288)})();var li=function(){for(var ui=ka?new Uint8Array(32768):[],ti=0,ii=0;ti<La.length-1;++ti)for(;ii<La[ti+1];++ii)ui[ii]=ti;for(;ii<32768;++ii)ui[ii]=29;var oi=ka?new Uint8Array(259):[];for(ti=0,ii=0;ti<Sa.length-1;++ti)for(;ii<Sa[ti+1];++ii)oi[ii]=ti;function ci(Bi,ki){for(var Ii=0;Ii<Bi.length;){var Pi=Math.min(65535,Bi.length-Ii),Gi=Ii+Pi==Bi.length;for(ki.write_shift(1,+Gi),ki.write_shift(2,Pi),ki.write_shift(2,~Pi&65535);Pi-- >0;)ki[ki.l++]=Bi[Ii++]}return ki.l}function Ti(Bi,ki){for(var Ii=0,Pi=0,Gi=ka?new Uint16Array(32768):[];Pi<Bi.length;){var Zi=Math.min(65535,Bi.length-Pi);if(Zi<10){for(Ii=Ji(ki,Ii,+(Pi+Zi==Bi.length)),Ii&7&&(Ii+=8-(Ii&7)),ki.l=Ii/8|0,ki.write_shift(2,Zi),ki.write_shift(2,~Zi&65535);Zi-- >0;)ki[ki.l++]=Bi[Pi++];Ii=ki.l*8;continue}Ii=Ji(ki,Ii,+(Pi+Zi==Bi.length)+2);for(var ra=0;Zi-- >0;){var Ki=Bi[Pi];ra=(ra<<5^Ki)&32767;var na=-1,pa=0;if((na=Gi[ra])&&(na|=Pi&-32768,na>Pi&&(na-=32768),na<Pi))for(;Bi[na+pa]==Bi[Pi+pa]&&pa<250;)++pa;if(pa>2){Ki=oi[pa],Ki<=22?Ii=ta(ki,Ii,Ba[Ki+1]>>1)-1:(ta(ki,Ii,3),Ii+=5,ta(ki,Ii,Ba[Ki-23]>>5),Ii+=3);var Ea=Ki<8?0:Ki-4>>2;Ea>0&&(ca(ki,Ii,pa-Sa[Ki]),Ii+=Ea),Ki=ui[Pi-na],Ii=ta(ki,Ii,Ba[Ki]>>3),Ii-=3;var Xi=Ki<4?0:Ki-2>>1;Xi>0&&(ca(ki,Ii,Pi-na-La[Ki]),Ii+=Xi);for(var ha=0;ha<pa;++ha)Gi[ra]=Pi&32767,ra=(ra<<5^Bi[Pi])&32767,++Pi;Zi-=pa-1}else Ki<=143?Ki=Ki+48:Ii=ea(ki,Ii,1),Ii=ta(ki,Ii,Ba[Ki]),Gi[ra]=Pi&32767,++Pi}Ii=ta(ki,Ii,0)-1}return ki.l=(Ii+7)/8|0,ki.l}return function(ki,Ii){return ki.length<8?ci(ki,Ii):Ti(ki,Ii)}}();function gi(Zr){var ui=Wr(50+Math.floor(Zr.length*1.1)),ti=li(Zr,ui);return ui.slice(0,ti)}var Ai=ka?new Uint16Array(32768):sa(32768),wi=ka?new Uint16Array(32768):sa(32768),Ni=ka?new Uint16Array(128):sa(128),Mi=1,ji=1;function Ui(Zr,ui){var ti=Vi(Zr,ui)+257;ui+=5;var ii=Vi(Zr,ui)+1;ui+=5;var oi=Ua(Zr,ui)+4;ui+=4;for(var ci=0,Ti=ka?new Uint8Array(19):sa(19),Bi=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],ki=1,Ii=ka?new Uint8Array(8):sa(8),Pi=ka?new Uint8Array(8):sa(8),Gi=Ti.length,Zi=0;Zi<oi;++Zi)Ti[ba[Zi]]=ci=Va(Zr,ui),ki<ci&&(ki=ci),Ii[ci]++,ui+=3;var ra=0;for(Ii[0]=0,Zi=1;Zi<=ki;++Zi)Pi[Zi]=ra=ra+Ii[Zi-1]<<1;for(Zi=0;Zi<Gi;++Zi)(ra=Ti[Zi])!=0&&(Bi[Zi]=Pi[ra]++);var Ki=0;for(Zi=0;Zi<Gi;++Zi)if(Ki=Ti[Zi],Ki!=0){ra=Ba[Bi[Zi]]>>8-Ki;for(var na=(1<<7-Ki)-1;na>=0;--na)Ni[ra|na<<Ki]=Ki&7|Zi<<3}var pa=[];for(ki=1;pa.length<ti+ii;)switch(ra=Ni[Wi(Zr,ui)],ui+=ra&7,ra>>>=3){case 16:for(ci=3+Ga(Zr,ui),ui+=2,ra=pa[pa.length-1];ci-- >0;)pa.push(ra);break;case 17:for(ci=3+Va(Zr,ui),ui+=3;ci-- >0;)pa.push(0);break;case 18:for(ci=11+Wi(Zr,ui),ui+=7;ci-- >0;)pa.push(0);break;default:pa.push(ra),ki<ra&&(ki=ra);break}var Ea=pa.slice(0,ti),Xi=pa.slice(ti);for(Zi=ti;Zi<286;++Zi)Ea[Zi]=0;for(Zi=ii;Zi<30;++Zi)Xi[Zi]=0;return Mi=fa(Ea,Ai,286),ji=fa(Xi,wi,30),ui}function oa(Zr,ui){if(Zr[0]==3&&!(Zr[1]&3))return[vr(ui),2];for(var ti=0,ii=0,oi=pr(ui||1<<18),ci=0,Ti=oi.length>>>0,Bi=0,ki=0;!(ii&1);){if(ii=Va(Zr,ti),ti+=3,ii>>>1)ii>>1==1?(Bi=9,ki=5):(ti=Ui(Zr,ti),Bi=Mi,ki=ji);else{ti&7&&(ti+=8-(ti&7));var Ii=Zr[ti>>>3]|Zr[(ti>>>3)+1]<<8;if(ti+=32,Ii>0)for(!ui&&Ti<ci+Ii&&(oi=ua(oi,ci+Ii),Ti=oi.length);Ii-- >0;)oi[ci++]=Zr[ti>>>3],ti+=8;continue}for(;;){!ui&&Ti<ci+32767&&(oi=ua(oi,ci+32767),Ti=oi.length);var Pi=Hi(Zr,ti,Bi),Gi=ii>>>1==1?ma[Pi]:Ai[Pi];if(ti+=Gi&15,Gi>>>=4,!(Gi>>>8&255))oi[ci++]=Gi;else{if(Gi==256)break;Gi-=257;var Zi=Gi<8?0:Gi-4>>2;Zi>5&&(Zi=0);var ra=ci+Sa[Gi];Zi>0&&(ra+=Hi(Zr,ti,Zi),ti+=Zi),Pi=Hi(Zr,ti,ki),Gi=ii>>>1==1?zi[Pi]:wi[Pi],ti+=Gi&15,Gi>>>=4;var Ki=Gi<4?0:Gi-2>>1,na=La[Gi];for(Ki>0&&(na+=Hi(Zr,ti,Ki),ti+=Ki),!ui&&Ti<ra&&(oi=ua(oi,ra+100),Ti=oi.length);ci<ra;)oi[ci]=oi[ci-na],++ci}}}return ui?[oi,ti+7>>>3]:[oi.slice(0,ci),ti+7>>>3]}function ia(Zr,ui){var ti=Zr.slice(Zr.l||0),ii=oa(ti,ui);return Zr.l+=ii[1],ii[0]}function Yi(Zr,ui){if(Zr)typeof console<"u"&&console.error(ui);else throw new Error(ui)}function aa(Zr,ui){var ti=Zr;zr(ti,0);var ii=[],oi=[],ci={FileIndex:ii,FullPaths:oi};ri(ci,{root:ui.root});for(var Ti=ti.length-4;(ti[Ti]!=80||ti[Ti+1]!=75||ti[Ti+2]!=5||ti[Ti+3]!=6)&&Ti>=0;)--Ti;ti.l=Ti+4,ti.l+=4;var Bi=ti.read_shift(2);ti.l+=6;var ki=ti.read_shift(4);for(ti.l=ki,Ti=0;Ti<Bi;++Ti){ti.l+=20;var Ii=ti.read_shift(4),Pi=ti.read_shift(4),Gi=ti.read_shift(2),Zi=ti.read_shift(2),ra=ti.read_shift(2);ti.l+=8;var Ki=ti.read_shift(4),na=Hr(ti.slice(ti.l+Gi,ti.l+Gi+Zi));ti.l+=Gi+Zi+ra;var pa=ti.l;ti.l=Ki+4,Ca(ti,Ii,Pi,ci,na),ti.l=pa}return ci}function Ca(Zr,ui,ti,ii,oi){Zr.l+=2;var ci=Zr.read_shift(2),Ti=Zr.read_shift(2),Bi=Kr(Zr);if(ci&8257)throw new Error("Unsupported ZIP encryption");for(var ki=Zr.read_shift(4),Ii=Zr.read_shift(4),Pi=Zr.read_shift(4),Gi=Zr.read_shift(2),Zi=Zr.read_shift(2),ra="",Ki=0;Ki<Gi;++Ki)ra+=String.fromCharCode(Zr[Zr.l++]);if(Zi){var na=Hr(Zr.slice(Zr.l,Zr.l+Zi));(na[21589]||{}).mt&&(Bi=na[21589].mt),((oi||{})[21589]||{}).mt&&(Bi=oi[21589].mt)}Zr.l+=Zi;var pa=Zr.slice(Zr.l,Zr.l+Ii);switch(Ti){case 8:pa=va(Zr,Pi);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+Ti)}var Ea=!1;ci&8&&(ki=Zr.read_shift(4),ki==134695760&&(ki=Zr.read_shift(4),Ea=!0),Ii=Zr.read_shift(4),Pi=Zr.read_shift(4)),Ii!=ui&&Yi(Ea,"Bad compressed size: "+ui+" != "+Ii),Pi!=ti&&Yi(Ea,"Bad uncompressed size: "+ti+" != "+Pi);var Xi=qr.buf(pa,0);ki>>0!=Xi>>0&&Yi(Ea,"Bad CRC32 checksum: "+ki+" != "+Xi),Ja(ii,ra,pa,{unsafe:!0,mt:Bi})}function xa(Zr,ui){var ti=ui||{},ii=[],oi=[],ci=Wr(1),Ti=ti.compression?8:0,Bi=0,ki=0,Ii=0,Pi=0,Gi=0,Zi=Zr.FullPaths[0],ra=Zi,Ki=Zr.FileIndex[0],na=[],pa=0;for(ki=1;ki<Zr.FullPaths.length;++ki)if(ra=Zr.FullPaths[ki].slice(Zi.length),Ki=Zr.FileIndex[ki],!(!Ki.size||!Ki.content||ra=="Sh33tJ5")){var Ea=Pi,Xi=Wr(ra.length);for(Ii=0;Ii<ra.length;++Ii)Xi.write_shift(1,ra.charCodeAt(Ii)&127);Xi=Xi.slice(0,Xi.l),na[Gi]=qr.buf(Ki.content,0);var ha=Ki.content;Ti==8&&(ha=ya(ha)),ci=Wr(30),ci.write_shift(4,67324752),ci.write_shift(2,20),ci.write_shift(2,Bi),ci.write_shift(2,Ti),Ki.mt?Qr(ci,Ki.mt):ci.write_shift(4,0),ci.write_shift(-4,na[Gi]),ci.write_shift(4,ha.length),ci.write_shift(4,Ki.content.length),ci.write_shift(2,Xi.length),ci.write_shift(2,0),Pi+=ci.length,ii.push(ci),Pi+=Xi.length,ii.push(Xi),Pi+=ha.length,ii.push(ha),ci=Wr(46),ci.write_shift(4,33639248),ci.write_shift(2,0),ci.write_shift(2,20),ci.write_shift(2,Bi),ci.write_shift(2,Ti),ci.write_shift(4,0),ci.write_shift(-4,na[Gi]),ci.write_shift(4,ha.length),ci.write_shift(4,Ki.content.length),ci.write_shift(2,Xi.length),ci.write_shift(2,0),ci.write_shift(2,0),ci.write_shift(2,0),ci.write_shift(2,0),ci.write_shift(4,0),ci.write_shift(4,Ea),pa+=ci.l,oi.push(ci),pa+=Xi.length,oi.push(Xi),++Gi}return ci=Wr(22),ci.write_shift(4,101010256),ci.write_shift(2,0),ci.write_shift(2,0),ci.write_shift(2,Gi),ci.write_shift(2,Gi),ci.write_shift(4,pa),ci.write_shift(4,Pi),ci.write_shift(2,0),xr([xr(ii),xr(oi),ci])}var Aa={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function wa(Zr,ui){if(Zr.ctype)return Zr.ctype;var ti=Zr.name||"",ii=ti.match(/\.([^\.]+)$/);return ii&&Aa[ii[1]]||ui&&(ii=(ti=ui).match(/[\.\\]([^\.\\])+$/),ii&&Aa[ii[1]])?Aa[ii[1]]:"application/octet-stream"}function Oa(Zr){for(var ui=ur(Zr),ti=[],ii=0;ii<ui.length;ii+=76)ti.push(ui.slice(ii,ii+76));return ti.join(`\r
|
|
201
201
|
`)+`\r
|
|
202
202
|
`}function Ra(Zr){var ui=Zr.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(Ii){var Pi=Ii.charCodeAt(0).toString(16).toUpperCase();return"="+(Pi.length==1?"0"+Pi:Pi)});ui=ui.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),ui.charAt(0)==`
|
|
203
203
|
`&&(ui="=0D"+ui.slice(1)),ui=ui.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
|
|
@@ -207,7 +207,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
207
207
|
`))}function Za(Zr,ui,ti){for(var ii="",oi="",ci="",Ti,Bi=0;Bi<10;++Bi){var ki=ui[Bi];if(!ki||ki.match(/^\s*$/))break;var Ii=ki.match(/^(.*?):\s*([^\s].*)$/);if(Ii)switch(Ii[1].toLowerCase()){case"content-location":ii=Ii[2].trim();break;case"content-type":ci=Ii[2].trim();break;case"content-transfer-encoding":oi=Ii[2].trim();break}}switch(++Bi,oi.toLowerCase()){case"base64":Ti=mr(dr(ui.slice(Bi).join("")));break;case"quoted-printable":Ti=Wa(ui.slice(Bi));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+oi)}var Pi=Ja(Zr,ii.slice(ti.length),Ti,{unsafe:!0});ci&&(Pi.ctype=ci)}function Ya(Zr,ui){if(qi(Zr.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var ti=ui&&ui.root||"",ii=(fr&&Buffer.isBuffer(Zr)?Zr.toString("binary"):qi(Zr)).split(`\r
|
|
208
208
|
`),oi=0,ci="";for(oi=0;oi<ii.length;++oi)if(ci=ii[oi],!!/^Content-Location:/i.test(ci)&&(ci=ci.slice(ci.indexOf("file")),ti||(ti=ci.slice(0,ci.lastIndexOf("/")+1)),ci.slice(0,ti.length)!=ti))for(;ti.length>0&&(ti=ti.slice(0,ti.length-1),ti=ti.slice(0,ti.lastIndexOf("/")+1),ci.slice(0,ti.length)!=ti););var Ti=(ii[1]||"").match(/boundary="(.*?)"/);if(!Ti)throw new Error("MAD cannot find boundary");var Bi="--"+(Ti[1]||""),ki=[],Ii=[],Pi={FileIndex:ki,FullPaths:Ii};ri(Pi);var Gi,Zi=0;for(oi=0;oi<ii.length;++oi){var ra=ii[oi];ra!==Bi&&ra!==Bi+"--"||(Zi++&&Za(Pi,ii.slice(Gi,oi),ti),Gi=oi)}return Pi}function es(Zr,ui){var ti=ui||{},ii=ti.boundary||"SheetJS";ii="------="+ii;for(var oi=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+ii.slice(2)+'"',"","",""],ci=Zr.FullPaths[0],Ti=ci,Bi=Zr.FileIndex[0],ki=1;ki<Zr.FullPaths.length;++ki)if(Ti=Zr.FullPaths[ki].slice(ci.length),Bi=Zr.FileIndex[ki],!(!Bi.size||!Bi.content||Ti=="Sh33tJ5")){Ti=Ti.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(pa){return"_x"+pa.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(pa){return"_u"+pa.charCodeAt(0).toString(16)+"_"});for(var Ii=Bi.content,Pi=fr&&Buffer.isBuffer(Ii)?Ii.toString("binary"):qi(Ii),Gi=0,Zi=Math.min(1024,Pi.length),ra=0,Ki=0;Ki<=Zi;++Ki)(ra=Pi.charCodeAt(Ki))>=32&&ra<128&&++Gi;var na=Gi>=Zi*4/5;oi.push(ii),oi.push("Content-Location: "+(ti.root||"file:///C:/SheetJS/")+Ti),oi.push("Content-Transfer-Encoding: "+(na?"quoted-printable":"base64")),oi.push("Content-Type: "+wa(Bi,Ti)),oi.push(""),oi.push(na?Ra(Pi):Oa(Pi))}return oi.push(ii+`--\r
|
|
209
209
|
`),oi.join(`\r
|
|
210
|
-
`)}function ts(Zr){var ui={};return ri(ui,Zr),ui}function Ja(Zr,ui,ti,ii){var oi=ii&&ii.unsafe;oi||ri(Zr);var ci=!oi&&Mr.find(Zr,ui);if(!ci){var Ti=Zr.FullPaths[0];ui.slice(0,Ti.length)==Ti?Ti=ui:(Ti.slice(-1)!="/"&&(Ti+="/"),Ti=(Ti+ui).replace("//","/")),ci={name:Rr(ui),type:2},Zr.FileIndex.push(ci),Zr.FullPaths.push(Ti),oi||Mr.utils.cfb_gc(Zr)}return ci.content=ti,ci.size=ti?ti.length:0,ii&&(ii.CLSID&&(ci.clsid=ii.CLSID),ii.mt&&(ci.mt=ii.mt),ii.ct&&(ci.ct=ii.ct)),ci}function Ma(Zr,ui){ri(Zr);var ti=Mr.find(Zr,ui);if(ti){for(var ii=0;ii<Zr.FileIndex.length;++ii)if(Zr.FileIndex[ii]==ti)return Zr.FileIndex.splice(ii,1),Zr.FullPaths.splice(ii,1),!0}return!1}function Na(Zr,ui,ti){ri(Zr);var ii=Mr.find(Zr,ui);if(ii){for(var oi=0;oi<Zr.FileIndex.length;++oi)if(Zr.FileIndex[oi]==ii)return Zr.FileIndex[oi].name=Rr(ti),Zr.FullPaths[oi]=ti,!0}return!1}function za(Zr){di(Zr,!0)}return Fr.find=Oi,Fr.read=Si,Fr.parse=Yr,Fr.write=Ji,Fr.writeFile=Fi,Fr.utils={cfb_new:ts,cfb_add:Ja,cfb_del:Ma,cfb_mov:Na,cfb_gc:za,ReadShift:Or,CheckField:$r,prep_blob:zr,bconcat:xr,use_zlib:da,_deflateRaw:gi,_inflateRaw:ia,consts:$i},Fr}();typeof commonjsRequire<"u"&&typeof DO_NOT_EXPORT_CFB>"u"&&(ct.exports=Mr)})(cfb);var cfbExports=cfb.exports;const CFB=getDefaultExportFromCjs(cfbExports),ALIGN_INDEX={left:1,center:2,right:3},MAX_COLUMN_WIDTH=60,getTextWidth=ct=>{const Dn=String(ct??"");let ur=0;for(const dr of Dn)ur+=dr.charCodeAt(0)>255?2:1;return ur},buildColumnWidths=(ct,Dn,ur)=>ur.map((dr,fr)=>{let hr=getTextWidth(ct[fr]??"");return Dn.forEach(vr=>{hr=Math.max(hr,getTextWidth(vr[dr.dataIndex]))}),{wch:Math.min(MAX_COLUMN_WIDTH,hr+2)}}),CELL_TAG_RE=/<c\b[^>]*?\br="([A-Z]+)(\d+)"[^>]*>/g,findEntry=(ct,Dn)=>{const ur=ct.FullPaths.findIndex(dr=>dr===Dn||dr.endsWith("/"+Dn));return ur===-1?void 0:ct.FileIndex[ur]},downloadFile=(ct,Dn)=>{const ur=new Blob([ct],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),dr=URL.createObjectURL(ur),fr=document.createElement("a");fr.href=dr,fr.download=Dn,document.body.appendChild(fr),fr.click(),document.body.removeChild(fr),URL.revokeObjectURL(dr)},buildStylesXml=ct=>{const Dn=['<xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0" applyNumberFormat="1"/>','<xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0" applyNumberFormat="1" applyAlignment="1"><alignment horizontal="left" vertical="center" wrapText="1"/></xf>','<xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0" applyNumberFormat="1" applyAlignment="1"><alignment horizontal="center" vertical="center" wrapText="1"/></xf>','<xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0" applyNumberFormat="1" applyAlignment="1"><alignment horizontal="right" vertical="center" wrapText="1"/></xf>','<xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0" applyNumberFormat="1" applyAlignment="1"><alignment horizontal="left" vertical="center" wrapText="1"/></xf>','<xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0" applyNumberFormat="1" applyAlignment="1"><alignment horizontal="center" vertical="center" wrapText="1"/></xf>','<xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0" applyNumberFormat="1" applyAlignment="1"><alignment horizontal="right" vertical="center" wrapText="1"/></xf>'].join("");return ct.replace(/<cellXfs[^>]*>[\s\S]*?<\/cellXfs>/,`<cellXfs count="7">${Dn}</cellXfs>`)},getColumnLetter=ct=>{let Dn="",ur=ct;for(;ur>=0;)Dn=String.fromCharCode(65+ur%26)+Dn,ur=Math.floor(ur/26)-1;return Dn},applyCellStyles=(ct,Dn)=>{const ur={};return Dn.forEach((dr,fr)=>{const hr=getColumnLetter(fr);ur[hr]=ALIGN_INDEX[dr.cellAlign||"center"],ur[`header_${hr}`]=ALIGN_INDEX[dr.headerCellAlign||"center"]+3}),ct.replace(CELL_TAG_RE,(dr,fr,hr)=>{const vr=hr==="1"?ur[`header_${fr}`]:ur[fr];return vr?dr.replace("r=",`s="${vr}" r=`):dr})},writeExcelWithAlignment=(ct,Dn,ur,dr)=>{const fr=XLSX__namespace.utils.book_new(),hr=XLSX__namespace.utils.aoa_to_sheet([Dn]);XLSX__namespace.utils.sheet_add_json(hr,ur,{skipHeader:!0,origin:"A2"}),hr["!cols"]=buildColumnWidths(Dn,ur,dr),XLSX__namespace.utils.book_append_sheet(fr,hr,"sheet");const vr=CFB,pr=XLSX__namespace.write(fr,{bookType:"xlsx",type:"buffer"}),mr=vr.read(pr,{type:"buffer"}),gr=findEntry(mr,"xl/styles.xml"),yr=findEntry(mr,"xl/worksheets/sheet1.xml");gr&&(gr.content=new TextEncoder().encode(buildStylesXml(new TextDecoder().decode(gr.content)))),yr&&(yr.content=new TextEncoder().encode(applyCellStyles(new TextDecoder().decode(yr.content),dr)));const Cr=vr.write(mr,{fileType:"zip",type:"buffer"});downloadFile(Cr,ct)},tableProps={...props$1,zIndex:2,name:"表格",keyName:"表格",type:"ecanTable",width:"400px",height:"240px",bordered:!1,headerFontSize:"14px",headerFontColor:"",fontSize:"14px",isUseSeq:!1,seqIndex:0,size:"",headerFontWeight:400,isUseExport:!1,fontWeight:400,columnsFixedNum:0,scrollX:0,paginationShow:!0,isReverse:!1,simple:!1,pageSizeShow:!1,cellBackgroundColor:"",cellFontColor:"",headerBackgroundColor:"",borderColor:"#f0f0f0",paginationPosition:"bottomRight",paginationPageSize:10,isUseAction:!1,clickHighlight:!1,filterDropdownHeight:"200px",actionList:[{title:"",href:"",target:"",color:""}],actionColumnWidth:100,columns:[{title:"姓名",dataIndex:"name"},{title:"年龄",dataIndex:"age"},{title:"住址",dataIndex:"address"}],data:[{name:"小明",age:32,address:"福州软件园"},{name:"小红",age:25,address:"福州软件园"}],graphicConfig:{},stripedShow:!1,stripedColor:"#fafafa",isGroupTable:!1,seqWidth:"10%",seqName:"序号",seqIcon:!1,isSummaryFixed:!1,isPageBottom:!1,isShowTotal:!1,hideTableHeader:!1,paginationColor:"",paginationBgColor:"",activePaginationColor:"",activePaginationBgColor:"",hoverBackgroundColor:"",subTotalColumn:"",subTotalName:"小计",isSortByFront:!1,transParams:[],linkPage:"",target:"self",href:"",isAutoScroll:!1,scrollSpeed:10,clickTarget:"row",clickTargetColumns:[],linkTextColor:"",isTableFill:!1,conditionList:[],bodyRowHeight:"",headRowHeight:"",tableVersion:1,associatId:""},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(ct,{expose:Dn}){const ur=vue.inject("usedComponentList",[]),{allComponentResData:dr}=vue.inject(All_COMPONENT_RES_DATA,{allComponentResData:{}}),{pageMode:fr,height:hr,theme:vr}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",height:null,theme:"light"}),pr=vue.ref(!1),mr=vue.computed(()=>vue.unref(fr)!=="design"&&ct.isAutoScroll),gr=vue.ref({}),yr=vue.computed(()=>ct.borderColor||"#f0f0f0"),Cr=vue.ref(!1),br=vue.computed(()=>{const ei=lodashEs.cloneDeep(ct.columns);if(ct.isUseSeq&&!ei.find(li=>li.dataIndex==="SEQ")){const li={title:ct.seqName,dataIndex:"SEQ",align:"center",width:ct.seqWidth};isNaN(ct.seqIndex)?ei.unshift(li):ei.splice(ct.seqIndex,0,li)}return ct.isUseAction&&!ei.find(li=>li.dataIndex==="ACTION")&&ei.push({title:"操作",dataIndex:"ACTION",width:ct.actionColumnWidth}),ei}),Ar=vue.ref(),wr=vue.ref(),_r=vue.ref(!1),Tr=usePickComponentStyle(ct),Er=vue.ref([]),xr=vue.computed(()=>{const{height:ei}=ct;return typeof ei=="string"?ei:ei.suffix==="px"?ei.value+"px":ei.suffix==="%"?parseFloat(vue.unref(hr))*(ei.value/100)+"px":"0"}),Sr=vue.computed(()=>ct.scrollX),kr=vue.ref(parseFloat(xr.value)),Pr=()=>{let ei=0;switch(ct.size){case"small":ei=50;break;case"middle":ei=53;break;default:ei=65;break}return ei},Ir=vue.ref(0),Br=vue.ref(""),Or=vue.ref(0);vue.watchEffect(()=>{var ei;(ei=Er.value)!=null&&ei.length&&xr.value&&setTimeout(()=>{let li=parseFloat(xr.value),gi=document.querySelector(`#ecanTable-${ct.id} .ant-table-tbody`),Ai=document.querySelector(`#ecanTable-${ct.id} thead.ant-table-thead`);const wi=document.querySelector(`#ecanTable-${ct.id} .ant-table-summary`);let Ni=0;if(Ai&&(li-=(Ai==null?void 0:Ai.clientHeight)||0),wi&&ct.isSummaryFixed&&(Ni=(wi==null?void 0:wi.clientHeight)||0,li-=Ni),ct.paginationShow&&!ct.isAutoScroll){let Mi=0;Mi=Pr(),Mi&&(li-=Mi)}(gi==null?void 0:gi.clientHeight)>li?kr.value=li:kr.value=0,vue.nextTick(()=>{if(Ni){const Mi=document.querySelector(`#ecanTable-${ct.id} .ant-table-summary`),ji=(Mi==null?void 0:Mi.clientHeight)||0;Ni!==ji&&vue.unref(kr)&&(kr.value=li+Ni-ji)}ct.isAutoScroll&&pr.value&&setTimeout(()=>{var oa;const Mi=document.querySelector(`#ecanTable-${ct.id} .ant-table-body`);gi=document.querySelector(`#ecanTable-${ct.id} .ant-table-tbody`),Ai=document.querySelector(`#ecanTable-${ct.id} thead.ant-table-thead`);const ji=Mi||gi;Ir.value=(ji==null?void 0:ji.clientHeight)||0,Or.value=(Ai==null?void 0:Ai.clientHeight)||0,gr.value={height:((gi==null?void 0:gi.clientHeight)||0)+"px"};const Ui=document.querySelector(`#ecanTable-${ct.id} .ant-table-body > table`);if(Br.value=(oa=document.querySelector(`#ecanTable-${ct.id} .ant-table`))==null?void 0:oa.className,Ui){const ia=Ui.cloneNode(!0);Ui.style.visibility="hidden",ia.style.visibility="",setTimeout(()=>{ji==null||ji.setAttribute("id","hiddenTableBody")},0);const Yi=document.querySelectorAll(`#ecanTable-${ct.id} .scroll-wrap`);if(Yi!=null&&Yi.length){for(const ba of Yi)ba.firstChild&&ba.removeChild(ba.firstChild),ba.append(ia.cloneNode(!0));const aa=document.querySelectorAll(`#ecanTable-${ct.id} .scroll-wrap .ant-table-cell`);if(aa!=null&&aa.length)for(const ba of aa)Nr(ba);const Ca=document.querySelector(`#ecanTable-${ct.id} .vue3-marquee`);Ca&&Ca.addEventListener("scroll",ba=>{var Aa;document.querySelector(`#ecanTable-${ct.id} .ant-table-header`).scrollLeft=((Aa=ba==null?void 0:ba.target)==null?void 0:Aa.scrollLeft)||0})}}},0)})},0)});function Nr(ei){ei.addEventListener("click",li=>{const Ai=jr(li.target).getAttribute("dix");if(Ai){const wi=document.querySelector(`#ecanTable-${ct.id} #hiddenTableBody td[dix="${Ai}"]`);wi&&wi.click()}})}function jr(ei){return ei.className.includes("ant-table-cell")?ei:jr(ei.parentElement)}const Vr=vue.ref([]),$r=vue.ref([]),zr=vue.ref([]),Wr=vue.ref([]),qr=vue.ref(0),Mr=vue.ref(1),Lr=vue.ref(ct.paginationPageSize||10),Fr=vue.reactive([]),Dr=(ei,li)=>{let gi="";return ei.forEach((Ai,wi)=>{const{value:Ni,rule:Mi}=Ai;Ai.conditions?gi+=`(${Dr(Ai.conditions,Ai.join)})`:Ni&&Mi&&(gi+=`value ${Mi} '${Ni}'`),gi+=`${wi===ei.length-1?"":li?" "+li+" ":""}`}),gi},Gr=(ei=[])=>{var li,gi;if(Array.isArray(ei)&&ei.length>0){let Ai=ei.length;const wi=ct.columnsFixedNum;if(["indicator","component"].includes(ct.dataType)&&((li=vue.unref(br))!=null&&li.length)&&!vue.unref(br).find(Ni=>{var Mi;return(Mi=Ni.children)==null?void 0:Mi.length})){const{graphicConfig:{indicators:Ni=[]}}=ct;ei.forEach((Mi,ji)=>{if(vue.unref(br)[ji])for(const ia in vue.unref(br)[ji])["dataIndex","title"].includes(ia)||(Mi[ia]=vue.unref(br)[ji][ia]);const Ui=Ni.find(ia=>ia.label===Mi.title),{showLabel:oa=""}=Ui||{};oa&&(Mi.title=oa)})}for(let Ni=Ai-1;Ni>=0;Ni--)(gi=ei[Ni])!=null&&gi.isHidden&&ei.splice(Ni,1);Ai=ei.length;for(let Ni=0;Ni<Ai;Ni++){const Mi=ei[Ni];if(Ni<wi?Mi.fixed="left":Mi.fixed=!1,ct.isSortByFront&&Mi.sorter){const wa=Mi.dataIndex;Mi.sorter=(Oa,Ra)=>Oa[wa]-Ra[wa]}const{cellAlign:ji="center",cellColor:Ui,dataIndex:oa,title:ia,tableFilter:Yi,headerCellAlign:aa,headerCellColor:Ca,overflow:ba,conditions:Aa}=Mi;Yi&&(Fr.push(oa),Mi.filterOptionsInputValue="",Mi.filterCheckboxGroupValue=[],Mi.customFilterDropdown=!0,Mi.onFilter=(wa,Oa)=>Oa[oa].toString().toLowerCase().includes(wa.toLowerCase())),Aa&&(Mi.conditionCode=Dr(Aa)),Mi.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:ct.headerFontSize,fontWeight:ct.headerFontWeight,textAlign:aa||"center",color:Ca||ct.headerFontColor,backgroundColor:ct.headerBackgroundColor}}),Mi.customCell=(wa,Oa,Ra)=>({style:{textAlign:ji,color:Rr(Ra)?ct.linkTextColor:Ui||ct.cellFontColor,backgroundColor:ct.cellBackgroundColor},class:{highlight:vue.unref(qi)===Oa&&ct.clickHighlight,linkText:Rr(Ra)},dix:Ra.dataIndex+"_"+Oa,onClick:Oi("click",()=>{const Wa=ct.id,Za=Li(Wa);wa={dataIndex:oa,title:ia,...wa},Ri(Wa,{...Za,type:ct.type,RECORD:wa}),qi.value=Oa,setTimeout(()=>{if(!ct.linkPage&&!ct.href)return;let Ya=!1;(Rr(Ra)||ct.clickTarget!=="cell")&&(Ya=!0),Ya&&handleJumpLink(ct,{pageMode:vue.unref(fr),getRecordValueByKeyName:hi})},0)})}),ba==="ellipsis"?Mi.ellipsis=!0:Mi.ellipsis=!1,Array.isArray(Mi.children)&&Gr(Mi.children)}}};function Rr(ei){let li=!1;return ct.clickTarget==="cell"&&ct.clickTargetColumns.includes(ei.dataIndex)&&(li=!0),li}const Qr=(ei=[])=>{var gi;let li=lodashEs.cloneDeep(ei);if((gi=vue.unref(Wr))!=null&&gi.length&&(li=lodashEs.cloneDeep(vue.unref(Wr))),ct.isUseSeq&&!li.find(Ai=>Ai.dataIndex==="SEQ")){const Ai={title:ct.seqName,dataIndex:"SEQ",align:"center",width:ct.seqWidth};isNaN(ct.seqIndex)?li.unshift(Ai):li.splice(ct.seqIndex,0,Ai)}return ct.isUseAction&&!li.find(Ai=>Ai.dataIndex==="ACTION")&&li.push({title:"操作",dataIndex:"ACTION",width:ct.actionColumnWidth}),Gr(li),li};vue.watch(Lr,()=>{Mr.value=1,Ji(!1)}),vue.watch(Ar,ei=>{_r.value=!!ei}),vue.watch(()=>[ct.columns,ct.isUseSeq,ct.seqWidth,ct.seqName,ct.seqIcon,ct.isUseAction,ct.columnsFixedNum,ct.actionColumnWidth,ct.cellBackgroundColor,ct.headerBackgroundColor,ct.borderColor,ct.stripedColor,ct.seqIndex],()=>{Vr.value=Qr(lodashEs.cloneDeep(ct.columns))},{immediate:!0,deep:!0}),vue.watch(()=>[ct.data,ct.dataType],([ei,li])=>{li==="static"&&($r.value=ei)},{immediate:!0});const Kr=vue.computed(()=>{var li;let ei={};if(ct.dataType==="component"){const{associatId:gi}=ct,Ai=vue.unref(ur).find(wi=>wi.id===gi);(Ai==null?void 0:Ai.dataType)==="static"?ei=Ai!=null&&Ai.data?{rows:Ai.data,total:((li=Ai==null?void 0:Ai.data)==null?void 0:li.length)||0}:{}:gi&&(ei=vue.unref(dr)[gi]||{})}return{data:{data:ei,success:!0}}}),Hr=()=>{var li,gi,Ai;const{columns:ei}=((gi=(li=vue.unref(Kr))==null?void 0:li.data)==null?void 0:gi.data)||{};(Ai=ei==null?void 0:ei.filter(wi=>wi&&wi!=="null"))!=null&&Ai.length?Di(vue.unref(Kr)):_i(vue.unref(Kr))};vue.watch(()=>Kr.value,()=>{ct.dataType==="component"&&Hr()},{deep:!0});const Ur=vue.ref({}),Jr=ei=>{if(Array.isArray(ei)){const li=ei.length,gi=Fr,Ai=gi.length,wi={};for(let Mi=0;Mi<li;Mi++){const ji=ei[Mi];for(let Ui=0;Ui<Ai;Ui++){const oa=gi[Ui];if(wi[oa])wi[oa].add(ji[oa]);else{const ia=new Set;ia.add(ji[oa]),wi[oa]=ia}}}const Ni={};for(const Mi in wi)if(Object.prototype.hasOwnProperty.call(wi,Mi)){const ji=wi[Mi],Ui=Array.from(ji);Ni[Mi]=Ui.map(oa=>({label:oa,value:oa}))}Ur.value=Ni}},Yr=ei=>{var li,gi,Ai;for(const wi of ei)typeof(wi==null?void 0:wi.width)=="object"&&((li=wi.width)!=null&&li.value)&&((gi=wi.width)!=null&&gi.suffix)&&(wi.width=wi.width.value+wi.width.suffix),(Ai=wi==null?void 0:wi.children)!=null&&Ai.length&&Yr(wi.children)};vue.watch(()=>[ct.isReverse,Vr.value,$r.value],()=>{const ei=vue.unref(Vr),li=vue.unref($r);if(Jr(li),ct.isReverse){const{columns:gi,dataSource:Ai}=si(lodashEs.cloneDeep(ei),lodashEs.cloneDeep(li));Yr(gi),zr.value=gi,Er.value=Ai.map(wi=>({key:nanoid(6),...wi}))}else Yr(ei),zr.value=ei,Er.value=li.map(gi=>({key:nanoid(6),...gi}))},{immediate:!0});const si=(ei,li)=>{const gi=ei[0],Ai=[{title:gi.title,dataIndex:"col0",key:"col0",align:"center"}];for(let Ni=0;Ni<li.length;Ni++){const Mi=li[Ni],ji="col"+(Ni+1);Ai.push({title:Mi[gi.dataIndex],dataIndex:ji,key:ji,align:"center"})}const wi=[];for(let Ni=1;Ni<ei.length;Ni++){const Mi=ei[Ni],ji={col0:Mi.title};for(let Ui=0;Ui<li.length;Ui++){const oa=li[Ui];ji[`col${Ui+1}`]=oa[Mi.dataIndex]}wi.push(ji)}return{columns:Ai,dataSource:wi}},fi=vue.ref(""),_i=ei=>{var Ai;const{rows:li=[],total:gi=0}=((Ai=ei==null?void 0:ei.data)==null?void 0:Ai.data)||{};if(qr.value=gi,Array.isArray(li)&&($r.value=li),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:wi=[]}=ct,Ni=wi.find(Mi=>Mi.key==="dataSqlId");if((Ni==null?void 0:Ni.value)==="xt_jxzebg"){const Mi=li.filter(ji=>!ji.绩效总额).map(ji=>ji.ORG_NAME);Mi!=null&&Mi.length&&vue.nextTick(()=>{antDesignVue.notification.warning({message:"提示",description:`当前时段${Mi.join("、")}绩效数据为空`,duration:3})})}}pr.value=!0},bi=vue.ref(),pi=useRequestData(ct),mi=async(ei=!0,li={})=>{try{let gi;ei?Cr.value=!0:gi=vue.unref(bi),vue.unref(fi)&&(li.orderCondition=vue.unref(fi)),ct.paginationShow&&(li={pageNum:vue.unref(Mr),pageSize:vue.unref(Lr)||"10",layer:"1",...li});const Ai=await pi(li,{callback:wi=>{const Ni=lodashEs.cloneDeep(wi);delete Ni.pageNum,delete Ni.pageSize;const Mi={};for(const ji in Ni)Ni[ji]&&(Mi[ji]=Ni[ji]);bi.value=Mi},pageParams:gi});_i(Ai)}catch(gi){console.error(gi)}finally{Cr.value=!1}},xi=({current:ei},li,gi)=>{if(Mr.value=ei,gi&&Object.keys(gi).length>0){const{field:Ai,order:wi}=gi,Mi={ascend:"asc",descend:"desc"}[wi];Ai!=null&&Mi!=null&&Mi?fi.value=Ai+" "+Mi:Mi||(fi.value="")}ct.isSortByFront||Ji(!1)},ni=vue.computed(()=>{const ei=ct.simple,li=[ct.paginationPosition],gi={};return ct.isShowTotal&&(gi.showTotal=Ai=>`共 ${Ai} 条数据`),ct.paginationShow&&{simple:ei,position:li,total:vue.unref(qr),current:vue.unref(Mr),pageSize:vue.unref(Lr)||"10",showSizeChanger:!1,size:"large",...gi}}),ai=ei=>+ei==1?"是":+ei==0?"否":ei,Xr=(ei,li)=>{const{format:gi,retentiondigit:Ai,customFormatter:wi,defaultVal:Ni}=li;let Mi="";if(gi==null||gi==="")Mi=ei;else{const ji={money:formatMoney,percentage:formatPercentage,contrast:formatPercentage,boolean:ai,decimals:formatDecimals,thousands:formatThousands,custom:formatCustom};ji[gi]||(Mi=""),gi==="decimals"?Mi=ji[gi](ei,Ai)||"":gi==="custom"?Mi=ji[gi](ei,wi)||"":Mi=ji[gi](ei)||""}return!Mi&&Mi!==0&&(Mi=Ni),Mi},vi=ei=>ei==="contrast"?"upDown":"",Si=ei=>{const{text:li,format:gi,declineColor:Ai="#39cf93",increaseColor:wi="#ff512e"}=ei,Ni={fontSize:ct.fontSize};if(ma(ei.dataIndex))return Ni.display="flex",Ni.justifyContent="center",Ni.alignItems="center",Ni;if(gi==="contrast"){const Mi=parseFloat(li+"");return Mi>=0?Ni.color=wi:Mi<0&&(Ni.color=Ai),Ni}else return{}},ri=vue.computed(()=>{const{fontSize:ei}=ct;return{width:ei,height:ei,textIndent:`-${parseFloat(ei)*2}px`,overflow:"hidden"}}),yi=ei=>{const{text:li,declineColor:gi="#39cf93",increaseColor:Ai="#ff512e"}=ei,{fontSize:wi}=ct,Ni=parseFloat(li+""),Mi={width:wi,verticalAlign:"unset"};return Ni>=0?Mi.filter=`drop-shadow(${Ai||"#ff512e"} ${wi} -1px)`:Ni<0&&(Mi.filter=`drop-shadow(${gi||"#39cf93"} ${wi} -1px)`),Mi},di=ei=>{const li=parseFloat(ei+"");if(li>=0)return goUp;if(li<0)return goDown},Ei=(ei,li,gi,Ai)=>{var ji,Ui,oa;const wi="#39cf93",Ni="#ff512e",Mi=ct.conditionList.find(ia=>ia.dataIndex===ei.dataIndex);if((ji=Mi==null?void 0:Mi.conditions)!=null&&ji.length){const{fontSize:ia}=ct,Yi={style:{width:ia,verticalAlign:"middle"},src:""};for(const aa of Mi.conditions){const Ca=((Ui=aa==null?void 0:aa.property)==null?void 0:Ui.icon)||"";let ba=((oa=aa==null?void 0:aa.property)==null?void 0:oa.iconColor)||"";if(Ca){let Aa=!1;if(aa.rule&&aa.value){const wa=`${aa.field} ${aa.rule} '${aa.value}'`;Aa=Cn(wa,{...gi,value:li})}else Aa=!0;Aa&&(Ca==="increase"?Yi.src=topArrow:Ca==="decline"&&(Yi.src=downArrow),ba||(Ca==="increase"?ba=Ni:Ca==="decline"&&(ba=wi)),Yi.style.filter=`drop-shadow(${ba} ${ia} -1px)`)}}if(Ai===1)return Yi.style;if(Ai===2)return Yi.src}else return""},Oi=useEmitEvent(ct),{getGlobalModel:Li,setGlobalModel:Ri,getRecordValueByKeyName:hi}=vue.inject(GLOBAL_MODEL,{getGlobalModel:ei=>{},setGlobalModel:(ei,li)=>{},getRecordValueByKeyName:ei=>{}});Ri(ct.id,{type:ct.type,RECORD:""});const Ci=(ei=[],li=[])=>{let gi=ei.map(Ai=>({title:Ai,dataIndex:Ai,key:Ai}));vue.unref(br).find(Ai=>{var wi;return(wi=Ai.children)==null?void 0:wi.length})&&(gi=lodashEs.cloneDeep(vue.unref(br))),Wr.value=lodashEs.cloneDeep(gi),Vr.value=Qr(gi),$r.value=li,pr.value=!0},Di=ei=>{var li,gi,Ai,wi;Ci((gi=(li=ei==null?void 0:ei.data)==null?void 0:li.data)==null?void 0:gi.columns,(wi=(Ai=ei==null?void 0:ei.data)==null?void 0:Ai.data)==null?void 0:wi.rows)},$i=useIndicatorData(ct,Di),Fi=async(ei=!0)=>{try{ei&&(Cr.value=!0);const li=vue.unref(fi).split(" "),gi={};ct.isSortByFront||(gi.sort={order:li[1],field:li[0]});const Ai=await $i(gi);Di(Ai)}catch(li){console.error(li)}finally{Cr.value=!1}},qi=vue.ref(-1),Ji=async(ei=!0)=>{switch(ct.dataType){case"request":await mi(ei);break;case"indicator":await Fi(ei);break;case"component":Hr();break}},ua=()=>{const ei=ct.id,li=Li(ei);Ri(ei,{...li,type:ct.type,RECORD:""})},da=vue.computed(()=>{const ei=vue.unref(zr);let li=0;const{subTotalColumn:gi,subTotalName:Ai}=ct;gi&&(li=ei.findIndex(Ui=>Ui.dataIndex===gi),li<0&&(li=0));const wi=[];let Ni=0;for(let Ui=0;Ui<ei.length;Ui++){const oa=ei[Ui],{isCalcTotal:ia}=oa;Ui===li?wi.push({...oa,total:Ai}):ia?(wi.push({...oa,index:Ui,total:0}),Ni++):wi.push({...oa})}if(Ni===0)return[];const Mi=vue.unref(Er),ji=va(wi);for(let Ui=0;Ui<ji.length;Ui++){const oa=ji[Ui];let ia=0;const{isCalcTotal:Yi,dataIndex:aa}=oa;if(Yi===!0&&li!==Ui){let Ca=!0;for(let ba=0;ba<Mi.length;ba++){const wa=+Mi[ba][aa];isNaN(wa)?Ca=!1:ia=new big_js.Big(ia).add(wa).toNumber()}oa.total=Ca?ia:"-"}}return ji});function va(ei){var gi;const li=[];for(const Ai of ei)(gi=Ai.children)!=null&&gi.length?li.push(...va(Ai.children)):li.push(Ai);return li}const{setRequest:ya}=vue.inject(REQUEST_MODEL,{setRequest:ei=>{}});typeof ya=="function"&&ya({id:ct.id,requestFn:Ji,sortNum:ct.requestSort}),Dn({refreshData:Ji});const xa=(ei="",li)=>jn(ei,li),Sa=ei=>{if(ei!=="event")return{self:"_self",blank:"_blank"}[ei]},La=(ei,li="")=>{ei==="event"&&window.parent.postMessage({type:"openPage",url:li},"*")},qa=(ei,li)=>{ei(li.filterCheckboxGroupValue)},ka=(ei,li)=>{ei({confirm:!0}),li.filterOptionsInputValue="",li.filterCheckboxGroupValue=[]},Ba=()=>{},Ha=ei=>{const li=ei.dataIndex;if(typeof li=="string"){let gi=vue.unref(Ur)[li];const Ai=vue.unref(ei.filterOptionsInputValue).trim();return Array.isArray(gi)?(gi=gi.filter(wi=>typeof wi.label=="string"?wi.label.toLowerCase().includes(Ai.toLowerCase()):!0),gi):[]}return[]},Ia=async()=>{var ji,Ui,oa,ia;const ei="EXPORT_KEY";antDesignVue.message.loading({key:ei,content:"正在导出...",duration:0});let li=[];if(ct.dataType==="static")li=ct.data;else if(ct.dataType==="request"){const Yi={layer:"1"};vue.unref(fi)&&(Yi.orderCondition=vue.unref(fi));const aa=await pi(Yi);li=((Ui=(ji=aa==null?void 0:aa.data)==null?void 0:ji.data)==null?void 0:Ui.rows)||{}}else if(ct.dataType==="indicator"){const Yi=await $i();li=((ia=(oa=Yi==null?void 0:Yi.data)==null?void 0:oa.data)==null?void 0:ia.rows)||{}}const gi=vue.unref(zr),Ai=[],wi=[],Ni=[];gi==null||gi.forEach(Yi=>{const{dataIndex:aa,title:Ca,cellAlign:ba,headerCellAlign:Aa}=Yi;Ai.push(aa),wi.push(Ca),Ni.push({dataIndex:aa,cellAlign:ba,headerCellAlign:Aa}),li.forEach((wa,Oa)=>{wa[aa]=aa==="SEQ"?String(Oa+1):Xr(wa[aa],Yi)})});const Mi=li.map(Yi=>lodashEs.pick(Yi,Ai));writeExcelWithAlignment("表格数据.xlsx",wi,Mi,Ni),antDesignVue.message.success({key:ei,content:"导出成功"})},Ga=(ei,li=2)=>{const gi=+ei*100;return isNaN(gi)||gi<=0?0:gi>=100?100:gi.toFixed(li)};useOnEvent(ct,{resetRecord:ua,refreshData:Ji,exportTableData:Ia});const Va=(ei,li)=>{let gi=null;return ct.stripedShow&&(gi=li%2===1?"table-striped":null),gi},Ua=vue.computed(()=>{var gi;let ei=0;const{isTableFill:li}=ct;if(li&&xr.value){let Ai=0;ct.paginationShow&&((gi=vue.unref(Er))!=null&&gi.length)&&(Ai=Pr()),ei=parseFloat(vue.unref(xr))-Ai}return ei?ei+"px":"100%"}),Vi=vue.computed(()=>{const ei=vue.unref(vr)==="darkBlue";let li="";return ct.isTableFill&&(li=ct.cellBackgroundColor,li||(Hi.value==="transparent"?ei?li="#071655":li="transparent":ei?li=Hi.value:li="transparent")),li}),Wi=vue.computed(()=>{let ei="#071655";return ct.headerBackgroundColor&&(ei="transparent"),ei}),Hi=vue.computed(()=>{let ei="#071655";return(ct.cellBackgroundColor||ct.stripedShow&&ct.stripedColor)&&(ei="transparent"),ei}),Xi=vue.computed(()=>parseFloat(ct.fontSize)+16),ea=vue.computed(()=>{let ei="";const{paginationColor:li,paginationBgColor:gi,activePaginationColor:Ai,activePaginationBgColor:wi,hoverBackgroundColor:Ni,isTableFill:Mi}=ct;return Mi&&(ei+="table-fill "),li&&(ei+="p-color "),gi&&(ei+="p-bg-color "),Ai&&(ei+="active-p-color "),wi&&(ei+="active-p-bg-color "),Ni&&(ei+="hover-bg-color "),ei}),ta=(ei,li)=>{if(ma(ei.dataIndex))return!1;const{conditionCode:gi}=ei;return Cn(gi,{value:li})},la=(ei,li,gi)=>{var Ui,oa;const{overflow:Ai,conditionCode:wi,attribute:Ni,dataIndex:Mi}=ei,ji={};if(Ai==="ellipsis"&&(ji.overflow="hidden",ji.textOverflow="ellipsis"),wi&&(Ni!=null&&Ni.color)&&ta(ei,li)&&(ji.color=Ni.color),Ni!=null&&Ni.icon&&(ei==null?void 0:ei.cellAlign)==="right"&&(ji.display="flex",ji.alignItems="center",ji.justifyContent="flex-end"),ma(Mi)){const ia=ct.conditionList.find(Yi=>Yi.dataIndex===Mi);if((Ui=ia==null?void 0:ia.conditions)!=null&&Ui.length){for(const Yi of ia.conditions)if((oa=Yi==null?void 0:Yi.property)!=null&&oa.color){let aa=!1;if(Yi.rule&&Yi.value){const Ca=`${Yi.field} ${Yi.rule} '${Yi.value}'`;aa=Cn(Ca,{...gi,value:li})}else aa=!0;aa&&(ji.color=Yi.property.color)}}else delete ji.color}return ji},ca=ei=>{const{attribute:li}=ei;let gi="";return li!=null&&li.icon&&(gi=useImagePath(li.icon)),gi},sa=ei=>{let li={};return(ei==null?void 0:ei.cellAlign)==="right"?li={marginRight:"5px"}:li={position:"absolute",marginLeft:"5px"},{width:"auto",height:parseFloat(ct.fontSize)+6+"px",...li}},fa=(ei,li)=>ei||ei===0?ei:li==null?void 0:li.defaultVal;function ma(ei){var gi;const li=ct.conditionList.find(Ai=>Ai.dataIndex===ei);return!!((gi=li==null?void 0:li.conditions)!=null&&gi.length)}const zi=(ei,li,gi)=>{var wi,Ni;const Ai=ct.conditionList.find(Mi=>Mi.dataIndex===ei.dataIndex);if((wi=Ai==null?void 0:Ai.conditions)!=null&&wi.length){let Mi=li;for(const ji of Ai.conditions){const Ui=((Ni=ji==null?void 0:ji.property)==null?void 0:Ni.formatText)||"";if(Ui){let oa=!1;if(ji.rule&&ji.value){const ia=`${ji.field} ${ji.rule} '${ji.value}'`;oa=Cn(ia,{...gi,value:li})}else oa=!0;oa&&(Mi=jn(Ui,{textData:{...gi,value:li}}))}}return Mi}else return""};return setTimeout(()=>{var ei,li,gi,Ai,wi,Ni,Mi,ji;(li=(ei=vue.unref(wr))==null?void 0:ei.style)==null||li.setProperty("--pagination-color",ct.paginationColor),(Ai=(gi=vue.unref(wr))==null?void 0:gi.style)==null||Ai.setProperty("--pagination-bg-color",ct.paginationBgColor),(Ni=(wi=vue.unref(wr))==null?void 0:wi.style)==null||Ni.setProperty("--active-pagination-color",ct.activePaginationColor),(ji=(Mi=vue.unref(wr))==null?void 0:Mi.style)==null||ji.setProperty("--active-pagination-bg-color",ct.activePaginationBgColor)},0),{x:Sr,y:kr,style:Tr,pagination:ni,formatFn:Xr,contrastClass:vi,tableChange:xi,summaryList:da,loading:Cr,onTouchHrefEvent:La,handleHref:xa,handleHrefTarget:Sa,useRowIndex:qi,tableColumns:zr,tableDataSource:Er,useFilterOptions:Ha,useSetSelectedKeys:qa,onResetFilter:ka,onSearchFilterOptions:Ba,exportTableData:Ia,handleProgressText:Ga,pageSizeVisible:_r,pageSize:Lr,tableRef:Ar,tableWrapRef:wr,rowClassName:Va,tableHeight:Ua,tableBgColor:Vi,tableHeaderBgColor:Wi,tableBodyBgColor:Hi,getChgStyle:Si,chgBoxStyle:ri,getChgBoxImgStyle:yi,getChgBoxImgSrc:di,seqIcon1,seqIcon2,seqIcon3,iconSize:Xi,containerClass:ea,getCellStyle:la,isMatchCondition:ta,getAttrImgSrc:ca,getAttrImgStyle:sa,getCellText:fa,autoScrollHeight:Ir,autoScrollClass:Br,autoScrollTop:Or,isScroll:mr,scrollWrapStyle:gr,isLinkStyle:Rr,hasConditionConfig:ma,formatTextByConditions:zi,getChgByCondition:Ei,tableBorderColor:yr}}}),__injectCSSVars__=()=>{vue.useCssVars(ct=>({b345774c:ct.stripedColor,"27e83d1e":ct.bodyRowHeight,"6d7932f3":ct.headRowHeight,"0ecb1952":ct.tableBorderColor,"5dedff91":ct.tableHeaderBgColor,"1415a6dc":ct.tableBodyBgColor,"8146a732":ct.hoverBackgroundColor}))},__setup__=__default__.setup;__default__.setup=__setup__?(ct,Dn)=>(__injectCSSVars__(),__setup__(ct,Dn)):__injectCSSVars__;const Table_vue_vue_type_style_index_0_scoped_32912047_lang="",Table_vue_vue_type_style_index_1_lang="",_withScopeId=ct=>(vue.pushScopeId("data-v-32912047"),ct=ct(),vue.popScopeId(),ct),_hoisted_1$2=["id"],_hoisted_2$2={key:0,class:"table-tool"},_hoisted_3$1=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$6(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("a-button"),pr=vue.resolveComponent("down-outlined"),mr=vue.resolveComponent("right-outlined"),gr=vue.resolveComponent("a-input"),yr=vue.resolveComponent("a-checkbox-group"),Cr=vue.resolveComponent("a-table-summary-cell"),br=vue.resolveComponent("a-table-summary-row"),Ar=vue.resolveComponent("a-table-summary"),wr=vue.resolveComponent("a-table"),_r=vue.resolveComponent("marquee-scroll"),Tr=vue.resolveComponent("skeleton");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["ecan-table",ct.containerClass]),ref:"tableWrapRef",id:"ecanTable-"+ct.id,style:vue.normalizeStyle(ct.style)},[vue.createVNode(Tr,{loading:ct.loading},{default:vue.withCtx(()=>{var Er;return[ct.isUseExport?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$2,[vue.createVNode(vr,{class:"export-button",onClick:ct.exportTableData},{default:vue.withCtx(()=>[_hoisted_3$1]),_:1},8,["onClick"])])):vue.createCommentVNode("",!0),vue.createVNode(wr,{ref:"tableRef",class:"table",style:vue.normalizeStyle({height:ct.tableHeight,backgroundColor:ct.tableBgColor}),columns:ct.tableColumns,"data-source":ct.tableDataSource,bordered:ct.bordered,scroll:ct.y?{x:ct.x,y:ct.y}:{x:ct.x},pagination:ct.isAutoScroll?!1:ct.pagination,"row-class-name":ct.rowClassName,"show-header":!ct.hideTableHeader,indentSize:30,onChange:ct.tableChange},{expandIcon:vue.withCtx(xr=>{var Sr;return[(Sr=xr.record.children)!=null&&Sr.length?(vue.openBlock(),vue.createElementBlock("span",_hoisted_4,[xr.expanded?(vue.openBlock(),vue.createBlock(pr,{key:0,onClick:kr=>xr.onExpand(xr.record,kr)},null,8,["onClick"])):(vue.openBlock(),vue.createBlock(mr,{key:1,onClick:kr=>xr.onExpand(xr.record,kr)},null,8,["onClick"]))])):(vue.openBlock(),vue.createElementBlock("span",_hoisted_5,[vue.createVNode(pr)]))]}),customFilterDropdown:vue.withCtx(({column:xr,setSelectedKeys:Sr,confirm:kr,clearFilters:Pr})=>[vue.createElementVNode("div",{class:"ecan-table-filter",style:vue.normalizeStyle({height:ct.filterDropdownHeight})},[vue.createVNode(gr,{value:xr.filterOptionsInputValue,"onUpdate:value":Ir=>xr.filterOptionsInputValue=Ir,placeholder:"请输入关键字",class:"filter-input",onChange:ct.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),vue.createVNode(yr,{value:xr.filterCheckboxGroupValue,"onUpdate:value":Ir=>xr.filterCheckboxGroupValue=Ir,class:"filter-checkbox",options:ct.useFilterOptions(xr),onChange:Ir=>ct.useSetSelectedKeys(Sr,xr)},null,8,["value","onUpdate:value","options","onChange"]),vue.createElementVNode("div",null,[vue.createVNode(vr,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>kr()},{default:vue.withCtx(()=>[_hoisted_6]),_:2},1032,["onClick"]),vue.createVNode(vr,{size:"small",style:{width:"90px"},onClick:vue.withModifiers(Ir=>ct.onResetFilter(Pr,xr),["stop"])},{default:vue.withCtx(()=>[_hoisted_7]),_:2},1032,["onClick"])])],4)]),bodyCell:vue.withCtx(({column:xr,index:Sr,text:kr,record:Pr})=>{var Ir,Br,Or,Nr,jr,Vr;return[xr.dataIndex==="SEQ"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[ct.seqIcon?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[Sr===0?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"seq-icon",src:ct.seqIcon1,width:ct.iconSize,height:ct.iconSize},null,8,_hoisted_8)):Sr===1?(vue.openBlock(),vue.createElementBlock("img",{key:1,class:"seq-icon",src:ct.seqIcon2,width:ct.iconSize,height:ct.iconSize},null,8,_hoisted_9)):Sr>=2?(vue.openBlock(),vue.createElementBlock("img",{key:2,class:"seq-icon",src:ct.seqIcon3,width:ct.iconSize,height:ct.iconSize},null,8,_hoisted_10)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:"seq-icon seq-text",style:vue.normalizeStyle({fontSize:ct.fontSize})},vue.toDisplayString(Sr+1),5)],64)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_11,vue.toDisplayString(Sr+1),1))],64)):xr.dataIndex==="ACTION"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_12,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ct.actionList,($r,zr)=>(vue.openBlock(),vue.createElementBlock("div",{class:"action",key:zr},[vue.createElementVNode("a",{href:ct.handleHref($r.href,Pr),target:ct.handleHrefTarget($r.target),style:vue.normalizeStyle({color:$r.color,fontSize:ct.fontSize,fontWeight:ct.fontWeight}),onClick:Wr=>ct.onTouchHrefEvent($r.target,ct.handleHref($r.href,Pr))},vue.toDisplayString($r.title),13,_hoisted_13)]))),128))])):xr.format==="progress"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_14,[vue.createElementVNode("div",{class:"progress",style:vue.normalizeStyle({background:xr.progressColor||"#1890ff",height:xr.progressWidth||"18px",width:`${ct.handleProgressText(kr,xr.progressTextDecimalPlaces)}%`})},null,4),vue.createElementVNode("div",{class:"progress-text",style:vue.normalizeStyle({color:+ct.handleProgressText(kr)<100?xr.progressTextColor||"#333":xr.progressFinishedTextColor||"#fff"})},vue.toDisplayString(ct.handleProgressText(kr,xr.progressTextDecimalPlaces))+"% ",5)])):(vue.openBlock(),vue.createElementBlock("div",{key:3,style:vue.normalizeStyle({fontSize:ct.fontSize,fontWeight:ct.isLinkStyle(xr)?"bold":ct.fontWeight,...ct.getCellStyle(xr,kr,Pr)})},[ct.isMatchCondition(xr,kr)&&(xr==null?void 0:xr.cellAlign)==="right"&&((Ir=xr==null?void 0:xr.attribute)!=null&&Ir.icon)?(vue.openBlock(),vue.createElementBlock("img",{key:0,style:vue.normalizeStyle(ct.getAttrImgStyle(xr)),src:ct.getAttrImgSrc(xr)},null,12,_hoisted_15)):vue.createCommentVNode("",!0),!ct.hasConditionConfig(xr.dataIndex)&&xr.format==="contrast"?(vue.openBlock(),vue.createElementBlock("span",{key:1,title:((Br=xr==null?void 0:xr.customFormatter)==null?void 0:Br.split("{value}")[0])||""},vue.toDisplayString(((Or=xr==null?void 0:xr.customFormatter)==null?void 0:Or.split("{value}")[0])||""),9,_hoisted_16)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:vue.normalizeClass([ct.contrastClass(xr.format)]),style:vue.normalizeStyle(ct.getChgStyle({...xr,text:kr})),title:ct.hasConditionConfig(xr.dataIndex)?ct.formatTextByConditions(xr,kr,Pr):xr.format!=null?ct.formatFn(kr,xr):kr},[!ct.hasConditionConfig(xr.dataIndex)&&xr.format==="contrast"?(vue.openBlock(),vue.createElementBlock("div",{key:0,style:vue.normalizeStyle(ct.chgBoxStyle)},[vue.createElementVNode("img",{style:vue.normalizeStyle(ct.getChgBoxImgStyle({...xr,text:kr})),src:ct.getChgBoxImgSrc(kr)},null,12,_hoisted_18)],4)):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString(ct.hasConditionConfig(xr.dataIndex)?ct.formatTextByConditions(xr,kr,Pr):xr.format!=null?ct.formatFn(kr,xr):ct.getCellText(kr,xr))+" ",1),ct.hasConditionConfig(xr.dataIndex)&&ct.getChgByCondition(xr,kr,Pr,2)?(vue.openBlock(),vue.createElementBlock("div",{key:1,style:vue.normalizeStyle({...ct.chgBoxStyle,height:"auto",scale:.6})},[vue.createElementVNode("img",{style:vue.normalizeStyle(ct.getChgByCondition(xr,kr,Pr,1)),src:ct.getChgByCondition(xr,kr,Pr,2)},null,12,_hoisted_19)],4)):vue.createCommentVNode("",!0)],14,_hoisted_17),!ct.hasConditionConfig(xr.dataIndex)&&xr.format==="contrast"?(vue.openBlock(),vue.createElementBlock("span",{key:2,title:((Nr=xr==null?void 0:xr.customFormatter)==null?void 0:Nr.split("{value}")[1])||""},vue.toDisplayString(((jr=xr==null?void 0:xr.customFormatter)==null?void 0:jr.split("{value}")[1])||""),9,_hoisted_20)):vue.createCommentVNode("",!0),ct.isMatchCondition(xr,kr)&&(xr==null?void 0:xr.cellAlign)!=="right"&&((Vr=xr==null?void 0:xr.attribute)!=null&&Vr.icon)?(vue.openBlock(),vue.createElementBlock("img",{key:3,style:vue.normalizeStyle(ct.getAttrImgStyle(xr)),src:ct.getAttrImgSrc(xr)},null,12,_hoisted_21)):vue.createCommentVNode("",!0)],4))]}),summary:vue.withCtx(()=>[ct.summaryList.length>0?(vue.openBlock(),vue.createBlock(Ar,{key:0,fixed:ct.isSummaryFixed},{default:vue.withCtx(()=>[vue.createVNode(br,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ct.summaryList,(xr,Sr)=>(vue.openBlock(),vue.createBlock(Cr,{key:Sr,index:Sr,style:vue.normalizeStyle({backgroundColor:ct.cellBackgroundColor,textAlign:xr.cellAlign||"center",color:ct.cellFontColor})},{default:vue.withCtx(()=>[vue.createElementVNode("span",{class:vue.normalizeClass([ct.contrastClass(xr.format)]),style:vue.normalizeStyle({...ct.getChgStyle({...xr,text:xr.total}),fontSize:ct.fontSize,fontWeight:ct.fontWeight})},[xr.format==="contrast"?(vue.openBlock(),vue.createElementBlock("div",{key:0,style:vue.normalizeStyle(ct.chgBoxStyle)},[vue.createElementVNode("img",{style:vue.normalizeStyle(ct.getChgBoxImgStyle({...xr,text:xr.total})),src:ct.getChgBoxImgSrc(xr.total)},null,12,_hoisted_22)],4)):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString((xr.format!=null||xr.format!=="")&&ct.formatFn(xr.total,xr)),1)],6)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1},8,["fixed"])):vue.createCommentVNode("",!0)]),_:1},8,["style","columns","data-source","bordered","scroll","pagination","row-class-name","show-header","onChange"]),ct.paginationShow?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[(Er=ct.tableDataSource)!=null&&Er.length&&!ct.simple&&ct.pageSizeShow&&ct.pageSizeVisible?(vue.openBlock(),vue.createBlock(vue.Teleport,{key:0,to:"#ecanTable-"+ct.id+" .ant-pagination"},[vue.createElementVNode("div",_hoisted_23,[vue.withDirectives(vue.createElementVNode("input",{type:"text","onUpdate:modelValue":Dn[0]||(Dn[0]=xr=>ct.pageSize=xr)},null,512),[[vue.vModelText,ct.pageSize]]),_hoisted_24])],8,["to"])):vue.createCommentVNode("",!0)],64)):vue.createCommentVNode("",!0),ct.isAutoScroll?(vue.openBlock(),vue.createElementBlock("div",{key:2,class:vue.normalizeClass(["auto-scroll-content ant-table-wrapper table",ct.autoScrollClass]),style:vue.normalizeStyle({width:"100%",position:"absolute",left:"0",height:ct.autoScrollHeight+"px",top:ct.autoScrollTop+"px",overflow:"auto"})},[vue.createVNode(_r,{visible:ct.isScroll,step:ct.scrollSpeed,wrapStyle:{display:"flex",flexDirection:"column",flexWrap:"wrap"}},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"scroll-wrap",style:vue.normalizeStyle(ct.scrollWrapStyle)},null,4)]),_:1},8,["visible","step"])],6)):vue.createCommentVNode("",!0)]}),_:1},8,["loading"]),vue.renderSlot(ct.$slots,"toolbox",{},void 0,!0)],14,_hoisted_1$2)}const Table=_export_sfc$1(__default__,[["render",_sfc_render$6],["__scopeId","data-v-32912047"]]),EcanTable=withInstall$1(Table),mapProps={...props$1,mapJson:null,data:[],name:"地图",keyName:"地图",type:"ecanMap",width:"400px",height:"400px",backgroundImage:"",backgroundImageRepeat:"no-repeat",geoBackgroundImage:"",geoBackgroundImageRepeat:"no-repeat",symbolImage:"",symbolWidth:10,symbolHeight:10,itemStyleColor:"#11BFDA",labelFontSize:14,labelShow:!0,geoLabelShow:!0,geoLabelColor:"#000",geoZoom:1,geoRoam:!1,geoCenter:"",geoLabelFontSize:12,labelColor:"",labelFormatter:"{b}",geoItemStyleAreaColor:"#eee",geoItemStyleBorderColor:"#000",geoItemStyleBorderWidth:1,geoItemStyleShadowColor:"",geoItemStyleShadowOffsetX:0,geoItemStyleShadowOffsetY:0,geoItemStyleShadowBlur:0,geoEmphasisDisabled:!1,geoEmphasisLabelColor:"#fff",geoEmphasisItemStyleAreaColor:"#f00",geoEmphasisItemStyleBorderColor:"#000",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{name}:{value}",tooltipRequestData:{requestUrl:"",requestMethod:"get",requestParams:[]},tooltipBackgroundColor:"#fff",areaStyleKeyName:"",mapAreaStyleConfig:[],legendShow:!1,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"bottom",legendLeft:"right",mapLegendType:"circle",legendTextShow:!0,legendTitle:"",legendTitleColor:"#333",legendTitleFontSize:"16px",legendFrontText:"",legendAfterText:"",legendBoxShadow:""},mapComponentProps=transformToComponentProps(mapProps),mapEvents=["refreshData","click"];core$1.use([renderers.CanvasRenderer,charts.MapChart,charts.ScatterChart,components$1.VisualMapComponent,components$1.TooltipComponent,components$1.GraphicComponent]);const _sfc_main$5=vue.defineComponent({name:"EcanMap",components:{Echarts},props:{...mapComponentProps},setup(ct){const Dn=useRequestData({...ct.tooltipRequestData,requestHeaders:{}}),ur=vue.ref(),dr=vue.ref(""),fr=vue.ref(""),hr=usePickComponentStyle(ct,["backgroundImage"]),vr=vue.ref(),pr=vue.computed(()=>useImagePath(ct.geoBackgroundImage)),mr=vue.computed(()=>useImagePath(ct.backgroundImage)),gr=vue.ref([]),yr=vue.computed(()=>ct.geoBackgroundImage?{image:vue.unref(vr),repeat:ct.geoBackgroundImageRepeat}:ct.geoItemStyleAreaColor),Cr=vue.computed(()=>{const Hr=ct.symbolImage;return ct.symbolImage?"image://"+useImagePath(Hr):"circle"}),br=Hr=>{let Ur=ct.tooltipFormatter;const Jr=Ur.match(/\{(.+?)\}/g);if(Jr==null||Jr.length===0)return Ur;for(let Yr=0;Yr<Jr.length;Yr++){const si=Jr[Yr];let fi=si.slice(1,-1).trim();const _i=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,bi=fi.match(_i);for(let pi=0;pi<bi.length;pi++){const mi=bi[pi],xi=Hr[mi];xi!=null&&(fi=fi.replace(mi,xi))}Ur=Ur.replace(si,fi)}return Ur.split(`
|
|
210
|
+
`)}function ts(Zr){var ui={};return ri(ui,Zr),ui}function Ja(Zr,ui,ti,ii){var oi=ii&&ii.unsafe;oi||ri(Zr);var ci=!oi&&Mr.find(Zr,ui);if(!ci){var Ti=Zr.FullPaths[0];ui.slice(0,Ti.length)==Ti?Ti=ui:(Ti.slice(-1)!="/"&&(Ti+="/"),Ti=(Ti+ui).replace("//","/")),ci={name:Rr(ui),type:2},Zr.FileIndex.push(ci),Zr.FullPaths.push(Ti),oi||Mr.utils.cfb_gc(Zr)}return ci.content=ti,ci.size=ti?ti.length:0,ii&&(ii.CLSID&&(ci.clsid=ii.CLSID),ii.mt&&(ci.mt=ii.mt),ii.ct&&(ci.ct=ii.ct)),ci}function Ma(Zr,ui){ri(Zr);var ti=Mr.find(Zr,ui);if(ti){for(var ii=0;ii<Zr.FileIndex.length;++ii)if(Zr.FileIndex[ii]==ti)return Zr.FileIndex.splice(ii,1),Zr.FullPaths.splice(ii,1),!0}return!1}function Na(Zr,ui,ti){ri(Zr);var ii=Mr.find(Zr,ui);if(ii){for(var oi=0;oi<Zr.FileIndex.length;++oi)if(Zr.FileIndex[oi]==ii)return Zr.FileIndex[oi].name=Rr(ti),Zr.FullPaths[oi]=ti,!0}return!1}function za(Zr){di(Zr,!0)}return Fr.find=Oi,Fr.read=Si,Fr.parse=Yr,Fr.write=Qi,Fr.writeFile=Fi,Fr.utils={cfb_new:ts,cfb_add:Ja,cfb_del:Ma,cfb_mov:Na,cfb_gc:za,ReadShift:Or,CheckField:$r,prep_blob:zr,bconcat:xr,use_zlib:da,_deflateRaw:gi,_inflateRaw:ia,consts:$i},Fr}();typeof commonjsRequire<"u"&&typeof DO_NOT_EXPORT_CFB>"u"&&(ct.exports=Mr)})(cfb);var cfbExports=cfb.exports;const CFB=getDefaultExportFromCjs(cfbExports),ALIGN_INDEX={left:1,center:2,right:3},MAX_COLUMN_WIDTH=60,getTextWidth=ct=>{const Dn=String(ct??"");let ur=0;for(const dr of Dn)ur+=dr.charCodeAt(0)>255?2:1;return ur},buildColumnWidths=(ct,Dn,ur)=>ur.map((dr,fr)=>{let hr=getTextWidth(ct[fr]??"");return Dn.forEach(vr=>{hr=Math.max(hr,getTextWidth(vr[dr.dataIndex]))}),{wch:Math.min(MAX_COLUMN_WIDTH,hr+2)}}),CELL_TAG_RE=/<c\b[^>]*?\br="([A-Z]+)(\d+)"[^>]*>/g,findEntry=(ct,Dn)=>{const ur=ct.FullPaths.findIndex(dr=>dr===Dn||dr.endsWith("/"+Dn));return ur===-1?void 0:ct.FileIndex[ur]},downloadFile=(ct,Dn)=>{const ur=new Blob([ct],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),dr=URL.createObjectURL(ur),fr=document.createElement("a");fr.href=dr,fr.download=Dn,document.body.appendChild(fr),fr.click(),document.body.removeChild(fr),URL.revokeObjectURL(dr)},buildStylesXml=ct=>{const Dn=['<xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0" applyNumberFormat="1"/>','<xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0" applyNumberFormat="1" applyAlignment="1"><alignment horizontal="left" vertical="center" wrapText="1"/></xf>','<xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0" applyNumberFormat="1" applyAlignment="1"><alignment horizontal="center" vertical="center" wrapText="1"/></xf>','<xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0" applyNumberFormat="1" applyAlignment="1"><alignment horizontal="right" vertical="center" wrapText="1"/></xf>','<xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0" applyNumberFormat="1" applyAlignment="1"><alignment horizontal="left" vertical="center" wrapText="1"/></xf>','<xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0" applyNumberFormat="1" applyAlignment="1"><alignment horizontal="center" vertical="center" wrapText="1"/></xf>','<xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0" applyNumberFormat="1" applyAlignment="1"><alignment horizontal="right" vertical="center" wrapText="1"/></xf>'].join("");return ct.replace(/<cellXfs[^>]*>[\s\S]*?<\/cellXfs>/,`<cellXfs count="7">${Dn}</cellXfs>`)},getColumnLetter=ct=>{let Dn="",ur=ct;for(;ur>=0;)Dn=String.fromCharCode(65+ur%26)+Dn,ur=Math.floor(ur/26)-1;return Dn},applyCellStyles=(ct,Dn)=>{const ur={};return Dn.forEach((dr,fr)=>{const hr=getColumnLetter(fr);ur[hr]=ALIGN_INDEX[dr.cellAlign||"center"],ur[`header_${hr}`]=ALIGN_INDEX[dr.headerCellAlign||"center"]+3}),ct.replace(CELL_TAG_RE,(dr,fr,hr)=>{const vr=hr==="1"?ur[`header_${fr}`]:ur[fr];return vr?dr.replace("r=",`s="${vr}" r=`):dr})},writeExcelWithAlignment=(ct,Dn,ur,dr)=>{const fr=XLSX__namespace.utils.book_new(),hr=XLSX__namespace.utils.aoa_to_sheet([Dn]);XLSX__namespace.utils.sheet_add_json(hr,ur,{skipHeader:!0,origin:"A2"}),hr["!cols"]=buildColumnWidths(Dn,ur,dr),XLSX__namespace.utils.book_append_sheet(fr,hr,"sheet");const vr=CFB,pr=XLSX__namespace.write(fr,{bookType:"xlsx",type:"buffer"}),mr=vr.read(pr,{type:"buffer"}),gr=findEntry(mr,"xl/styles.xml"),yr=findEntry(mr,"xl/worksheets/sheet1.xml");gr&&(gr.content=new TextEncoder().encode(buildStylesXml(new TextDecoder().decode(gr.content)))),yr&&(yr.content=new TextEncoder().encode(applyCellStyles(new TextDecoder().decode(yr.content),dr)));const Cr=vr.write(mr,{fileType:"zip",type:"buffer"});downloadFile(Cr,ct)},tableProps={...props$1,zIndex:2,name:"表格",keyName:"表格",type:"ecanTable",width:"400px",height:"240px",bordered:!1,headerFontSize:"14px",headerFontColor:"",fontSize:"14px",isUseSeq:!1,seqIndex:0,size:"",headerFontWeight:400,isUseExport:!1,fontWeight:400,columnsFixedNum:0,scrollX:0,paginationShow:!0,isReverse:!1,simple:!1,pageSizeShow:!1,cellBackgroundColor:"",cellFontColor:"",headerBackgroundColor:"",borderColor:"#f0f0f0",paginationPosition:"bottomRight",paginationPageSize:10,isUseAction:!1,clickHighlight:!1,filterDropdownHeight:"200px",actionList:[{title:"",href:"",target:"",color:""}],actionColumnWidth:100,columns:[{title:"姓名",dataIndex:"name"},{title:"年龄",dataIndex:"age"},{title:"住址",dataIndex:"address"}],data:[{name:"小明",age:32,address:"福州软件园"},{name:"小红",age:25,address:"福州软件园"}],graphicConfig:{},stripedShow:!1,stripedColor:"#fafafa",isGroupTable:!1,seqWidth:"10%",seqName:"序号",seqIcon:!1,isSummaryFixed:!1,isPageBottom:!1,isShowTotal:!1,hideTableHeader:!1,paginationColor:"",paginationBgColor:"",activePaginationColor:"",activePaginationBgColor:"",hoverBackgroundColor:"",subTotalColumn:"",subTotalName:"小计",isSortByFront:!1,transParams:[],linkPage:"",target:"self",href:"",isAutoScroll:!1,scrollSpeed:10,clickTarget:"row",clickTargetColumns:[],linkTextColor:"",isTableFill:!1,conditionList:[],bodyRowHeight:"",headRowHeight:"",tableVersion:1,associatId:""},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(ct,{expose:Dn}){const ur=vue.inject("usedComponentList",[]),{allComponentResData:dr}=vue.inject(All_COMPONENT_RES_DATA,{allComponentResData:{}}),{pageMode:fr,height:hr,theme:vr}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",height:null,theme:"light"}),pr=vue.ref(!1),mr=vue.computed(()=>vue.unref(fr)!=="design"&&ct.isAutoScroll),gr=vue.ref({}),yr=vue.computed(()=>ct.borderColor||"#f0f0f0"),Cr=vue.ref(!1),br=vue.computed(()=>{const ei=lodashEs.cloneDeep(ct.columns);if(ct.isUseSeq&&!ei.find(li=>li.dataIndex==="SEQ")){const li={title:ct.seqName,dataIndex:"SEQ",align:"center",width:ct.seqWidth};isNaN(ct.seqIndex)?ei.unshift(li):ei.splice(ct.seqIndex,0,li)}return ct.isUseAction&&!ei.find(li=>li.dataIndex==="ACTION")&&ei.push({title:"操作",dataIndex:"ACTION",width:ct.actionColumnWidth}),ei}),Ar=vue.ref(),wr=vue.ref(),_r=vue.ref(!1),Tr=usePickComponentStyle(ct),Er=vue.ref([]),xr=vue.computed(()=>{const{height:ei}=ct;return typeof ei=="string"?ei:ei.suffix==="px"?ei.value+"px":ei.suffix==="%"?parseFloat(vue.unref(hr))*(ei.value/100)+"px":"0"}),Sr=vue.computed(()=>ct.scrollX),kr=vue.ref(parseFloat(xr.value)),Pr=()=>{let ei=0;switch(ct.size){case"small":ei=50;break;case"middle":ei=53;break;default:ei=65;break}return ei},Ir=vue.ref(0),Br=vue.ref(""),Or=vue.ref(0);vue.watchEffect(()=>{var ei;(ei=Er.value)!=null&&ei.length&&xr.value&&setTimeout(()=>{let li=parseFloat(xr.value),gi=document.querySelector(`#ecanTable-${ct.id} .ant-table-tbody`),Ai=document.querySelector(`#ecanTable-${ct.id} thead.ant-table-thead`);const wi=document.querySelector(`#ecanTable-${ct.id} .ant-table-summary`);let Ni=0;if(Ai&&(li-=(Ai==null?void 0:Ai.clientHeight)||0),wi&&ct.isSummaryFixed&&(Ni=(wi==null?void 0:wi.clientHeight)||0,li-=Ni),ct.paginationShow&&!ct.isAutoScroll){let Mi=0;Mi=Pr(),Mi&&(li-=Mi)}(gi==null?void 0:gi.clientHeight)>li?kr.value=li:kr.value=0,vue.nextTick(()=>{if(Ni){const Mi=document.querySelector(`#ecanTable-${ct.id} .ant-table-summary`),ji=(Mi==null?void 0:Mi.clientHeight)||0;Ni!==ji&&vue.unref(kr)&&(kr.value=li+Ni-ji)}ct.isAutoScroll&&pr.value&&setTimeout(()=>{var oa;const Mi=document.querySelector(`#ecanTable-${ct.id} .ant-table-body`);gi=document.querySelector(`#ecanTable-${ct.id} .ant-table-tbody`),Ai=document.querySelector(`#ecanTable-${ct.id} thead.ant-table-thead`);const ji=Mi||gi;Ir.value=(ji==null?void 0:ji.clientHeight)||0,Or.value=(Ai==null?void 0:Ai.clientHeight)||0,gr.value={height:((gi==null?void 0:gi.clientHeight)||0)+"px"};const Ui=document.querySelector(`#ecanTable-${ct.id} .ant-table-body > table`);if(Br.value=(oa=document.querySelector(`#ecanTable-${ct.id} .ant-table`))==null?void 0:oa.className,Ui){const ia=Ui.cloneNode(!0);Ui.style.visibility="hidden",ia.style.visibility="",setTimeout(()=>{ji==null||ji.setAttribute("id","hiddenTableBody")},0);const Yi=document.querySelectorAll(`#ecanTable-${ct.id} .scroll-wrap`);if(Yi!=null&&Yi.length){for(const xa of Yi)xa.firstChild&&xa.removeChild(xa.firstChild),xa.append(ia.cloneNode(!0));const aa=document.querySelectorAll(`#ecanTable-${ct.id} .scroll-wrap .ant-table-cell`);if(aa!=null&&aa.length)for(const xa of aa)Nr(xa);const Ca=document.querySelector(`#ecanTable-${ct.id} .vue3-marquee`);Ca&&Ca.addEventListener("scroll",xa=>{var Aa;document.querySelector(`#ecanTable-${ct.id} .ant-table-header`).scrollLeft=((Aa=xa==null?void 0:xa.target)==null?void 0:Aa.scrollLeft)||0})}}},0)})},0)});function Nr(ei){ei.addEventListener("click",li=>{const Ai=jr(li.target).getAttribute("dix");if(Ai){const wi=document.querySelector(`#ecanTable-${ct.id} #hiddenTableBody td[dix="${Ai}"]`);wi&&wi.click()}})}function jr(ei){return ei.className.includes("ant-table-cell")?ei:jr(ei.parentElement)}const Vr=vue.ref([]),$r=vue.ref([]),zr=vue.ref([]),Wr=vue.ref([]),qr=vue.ref(0),Mr=vue.ref(1),Lr=vue.ref(ct.paginationPageSize||10),Fr=vue.reactive([]),Dr=(ei,li)=>{let gi="";return ei.forEach((Ai,wi)=>{const{value:Ni,rule:Mi}=Ai;Ai.conditions?gi+=`(${Dr(Ai.conditions,Ai.join)})`:Ni&&Mi&&(gi+=`value ${Mi} '${Ni}'`),gi+=`${wi===ei.length-1?"":li?" "+li+" ":""}`}),gi},Gr=(ei=[])=>{var li,gi;if(Array.isArray(ei)&&ei.length>0){let Ai=ei.length;const wi=ct.columnsFixedNum;if(["indicator","component"].includes(ct.dataType)&&((li=vue.unref(br))!=null&&li.length)&&!vue.unref(br).find(Ni=>{var Mi;return(Mi=Ni.children)==null?void 0:Mi.length})){const{graphicConfig:{indicators:Ni=[]}}=ct;ei.forEach((Mi,ji)=>{if(vue.unref(br)[ji])for(const ia in vue.unref(br)[ji])["dataIndex","title"].includes(ia)||(Mi[ia]=vue.unref(br)[ji][ia]);const Ui=Ni.find(ia=>ia.label===Mi.title),{showLabel:oa=""}=Ui||{};oa&&(Mi.title=oa)})}for(let Ni=Ai-1;Ni>=0;Ni--)(gi=ei[Ni])!=null&&gi.isHidden&&ei.splice(Ni,1);Ai=ei.length;for(let Ni=0;Ni<Ai;Ni++){const Mi=ei[Ni];if(Ni<wi?Mi.fixed="left":Mi.fixed=!1,ct.isSortByFront&&Mi.sorter){const wa=Mi.dataIndex;Mi.sorter=(Oa,Ra)=>Oa[wa]-Ra[wa]}const{cellAlign:ji="center",cellColor:Ui,dataIndex:oa,title:ia,tableFilter:Yi,headerCellAlign:aa,headerCellColor:Ca,overflow:xa,conditions:Aa}=Mi;Yi&&(Fr.push(oa),Mi.filterOptionsInputValue="",Mi.filterCheckboxGroupValue=[],Mi.customFilterDropdown=!0,Mi.onFilter=(wa,Oa)=>Oa[oa].toString().toLowerCase().includes(wa.toLowerCase())),Aa&&(Mi.conditionCode=Dr(Aa)),Mi.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:ct.headerFontSize,fontWeight:ct.headerFontWeight,textAlign:aa||"center",color:Ca||ct.headerFontColor,backgroundColor:ct.headerBackgroundColor}}),Mi.customCell=(wa,Oa,Ra)=>({style:{textAlign:ji,color:Rr(Ra)?ct.linkTextColor:Ui||ct.cellFontColor,backgroundColor:ct.cellBackgroundColor},class:{highlight:vue.unref(qi)===Oa&&ct.clickHighlight,linkText:Rr(Ra)},dix:Ra.dataIndex+"_"+Oa,onClick:Oi("click",()=>{const Wa=ct.id,Za=Li(Wa);wa={dataIndex:oa,title:ia,...wa},Ri(Wa,{...Za,type:ct.type,RECORD:wa}),qi.value=Oa,setTimeout(()=>{if(!ct.linkPage&&!ct.href)return;let Ya=!1;(Rr(Ra)||ct.clickTarget!=="cell")&&(Ya=!0),Ya&&handleJumpLink(ct,{pageMode:vue.unref(fr),getRecordValueByKeyName:hi})},0)})}),xa==="ellipsis"?Mi.ellipsis=!0:Mi.ellipsis=!1,Array.isArray(Mi.children)&&Gr(Mi.children)}}};function Rr(ei){let li=!1;return ct.clickTarget==="cell"&&ct.clickTargetColumns.includes(ei.dataIndex)&&(li=!0),li}const Qr=(ei=[])=>{var gi;let li=lodashEs.cloneDeep(ei);if((gi=vue.unref(Wr))!=null&&gi.length&&(li=lodashEs.cloneDeep(vue.unref(Wr))),ct.isUseSeq&&!li.find(Ai=>Ai.dataIndex==="SEQ")){const Ai={title:ct.seqName,dataIndex:"SEQ",align:"center",width:ct.seqWidth};isNaN(ct.seqIndex)?li.unshift(Ai):li.splice(ct.seqIndex,0,Ai)}return ct.isUseAction&&!li.find(Ai=>Ai.dataIndex==="ACTION")&&li.push({title:"操作",dataIndex:"ACTION",width:ct.actionColumnWidth}),Gr(li),li};vue.watch(Lr,()=>{Mr.value=1,Qi(!1)}),vue.watch(Ar,ei=>{_r.value=!!ei}),vue.watch(()=>[ct.columns,ct.isUseSeq,ct.seqWidth,ct.seqName,ct.seqIcon,ct.isUseAction,ct.columnsFixedNum,ct.actionColumnWidth,ct.cellBackgroundColor,ct.headerBackgroundColor,ct.borderColor,ct.stripedColor,ct.seqIndex],()=>{Vr.value=Qr(lodashEs.cloneDeep(ct.columns))},{immediate:!0,deep:!0}),vue.watch(()=>[ct.data,ct.dataType],([ei,li])=>{li==="static"&&($r.value=ei)},{immediate:!0});const Kr=vue.computed(()=>{var li;let ei={};if(ct.dataType==="component"){const{associatId:gi}=ct,Ai=vue.unref(ur).find(wi=>wi.id===gi);(Ai==null?void 0:Ai.dataType)==="static"?ei=Ai!=null&&Ai.data?{rows:Ai.data,total:((li=Ai==null?void 0:Ai.data)==null?void 0:li.length)||0}:{}:gi&&(ei=vue.unref(dr)[gi]||{})}return{data:{data:ei,success:!0}}}),Hr=()=>{var li,gi,Ai;const{columns:ei}=((gi=(li=vue.unref(Kr))==null?void 0:li.data)==null?void 0:gi.data)||{};(Ai=ei==null?void 0:ei.filter(wi=>wi&&wi!=="null"))!=null&&Ai.length?Di(vue.unref(Kr)):_i(vue.unref(Kr))};vue.watch(()=>Kr.value,()=>{ct.dataType==="component"&&Hr()},{deep:!0});const Ur=vue.ref({}),Jr=ei=>{if(Array.isArray(ei)){const li=ei.length,gi=Fr,Ai=gi.length,wi={};for(let Mi=0;Mi<li;Mi++){const ji=ei[Mi];for(let Ui=0;Ui<Ai;Ui++){const oa=gi[Ui];if(wi[oa])wi[oa].add(ji[oa]);else{const ia=new Set;ia.add(ji[oa]),wi[oa]=ia}}}const Ni={};for(const Mi in wi)if(Object.prototype.hasOwnProperty.call(wi,Mi)){const ji=wi[Mi],Ui=Array.from(ji);Ni[Mi]=Ui.map(oa=>({label:oa,value:oa}))}Ur.value=Ni}},Yr=ei=>{var li,gi,Ai;for(const wi of ei)typeof(wi==null?void 0:wi.width)=="object"&&((li=wi.width)!=null&&li.value)&&((gi=wi.width)!=null&&gi.suffix)&&(wi.width=wi.width.value+wi.width.suffix),(Ai=wi==null?void 0:wi.children)!=null&&Ai.length&&Yr(wi.children)};vue.watch(()=>[ct.isReverse,Vr.value,$r.value],()=>{const ei=vue.unref(Vr),li=vue.unref($r);if(Jr(li),ct.isReverse){const{columns:gi,dataSource:Ai}=si(lodashEs.cloneDeep(ei),lodashEs.cloneDeep(li));Yr(gi),zr.value=gi,Er.value=Ai.map(wi=>({key:nanoid(6),...wi}))}else Yr(ei),zr.value=ei,Er.value=li.map(gi=>({key:nanoid(6),...gi}))},{immediate:!0});const si=(ei,li)=>{const gi=ei[0],Ai=[{title:gi.title,dataIndex:"col0",key:"col0",align:"center"}];for(let Ni=0;Ni<li.length;Ni++){const Mi=li[Ni],ji="col"+(Ni+1);Ai.push({title:Mi[gi.dataIndex],dataIndex:ji,key:ji,align:"center"})}const wi=[];for(let Ni=1;Ni<ei.length;Ni++){const Mi=ei[Ni],ji={col0:Mi.title};for(let Ui=0;Ui<li.length;Ui++){const oa=li[Ui];ji[`col${Ui+1}`]=oa[Mi.dataIndex]}wi.push(ji)}return{columns:Ai,dataSource:wi}},fi=vue.ref(""),_i=ei=>{var Ai;const{rows:li=[],total:gi=0}=((Ai=ei==null?void 0:ei.data)==null?void 0:Ai.data)||{};if(qr.value=gi,Array.isArray(li)&&($r.value=li),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:wi=[]}=ct,Ni=wi.find(Mi=>Mi.key==="dataSqlId");if((Ni==null?void 0:Ni.value)==="xt_jxzebg"){const Mi=li.filter(ji=>!ji.绩效总额).map(ji=>ji.ORG_NAME);Mi!=null&&Mi.length&&vue.nextTick(()=>{antDesignVue.notification.warning({message:"提示",description:`当前时段${Mi.join("、")}绩效数据为空`,duration:3})})}}pr.value=!0},bi=vue.ref(),pi=useRequestData(ct),mi=async(ei=!0,li={})=>{try{let gi;ei?Cr.value=!0:gi=vue.unref(bi),vue.unref(fi)&&(li.orderCondition=vue.unref(fi)),ct.paginationShow&&(li={pageNum:vue.unref(Mr),pageSize:vue.unref(Lr)||"10",layer:"1",...li});const Ai=await pi(li,{callback:wi=>{const Ni=lodashEs.cloneDeep(wi);delete Ni.pageNum,delete Ni.pageSize;const Mi={};for(const ji in Ni)Ni[ji]&&(Mi[ji]=Ni[ji]);bi.value=Mi},pageParams:gi});_i(Ai)}catch(gi){console.error(gi)}finally{Cr.value=!1}},xi=({current:ei},li,gi)=>{if(Mr.value=ei,gi&&Object.keys(gi).length>0){const{field:Ai,order:wi}=gi,Mi={ascend:"asc",descend:"desc"}[wi];Ai!=null&&Mi!=null&&Mi?fi.value=Ai+" "+Mi:Mi||(fi.value="")}ct.isSortByFront||Qi(!1)},ni=vue.computed(()=>{const ei=ct.simple,li=[ct.paginationPosition],gi={};return ct.isShowTotal&&(gi.showTotal=Ai=>`共 ${Ai} 条数据`),ct.paginationShow&&{simple:ei,position:li,total:vue.unref(qr),current:vue.unref(Mr),pageSize:vue.unref(Lr)||"10",showSizeChanger:!1,size:"large",...gi}}),ai=ei=>+ei==1?"是":+ei==0?"否":ei,Xr=(ei,li)=>{const{format:gi,retentiondigit:Ai,customFormatter:wi,defaultVal:Ni}=li;let Mi="";if(gi==null||gi==="")Mi=ei;else{const ji={money:formatMoney,percentage:formatPercentage,contrast:formatPercentage,boolean:ai,decimals:formatDecimals,thousands:formatThousands,custom:formatCustom};ji[gi]||(Mi=""),gi==="decimals"?Mi=ji[gi](ei,Ai)||"":gi==="custom"?Mi=ji[gi](ei,wi)||"":Mi=ji[gi](ei)||""}return!Mi&&Mi!==0&&(Mi=Ni),Mi},vi=ei=>ei==="contrast"?"upDown":"",Si=ei=>{const{text:li,format:gi,declineColor:Ai="#39cf93",increaseColor:wi="#ff512e"}=ei,Ni={fontSize:ct.fontSize};if(ma(ei.dataIndex))return Ni.display="flex",Ni.justifyContent="center",Ni.alignItems="center",Ni;if(gi==="contrast"){const Mi=parseFloat(li+"");return Mi>=0?Ni.color=wi:Mi<0&&(Ni.color=Ai),Ni}else return{}},ri=vue.computed(()=>{const{fontSize:ei}=ct;return{width:ei,height:ei,textIndent:`-${parseFloat(ei)*2}px`,overflow:"hidden"}}),yi=ei=>{const{text:li,declineColor:gi="#39cf93",increaseColor:Ai="#ff512e"}=ei,{fontSize:wi}=ct,Ni=parseFloat(li+""),Mi={width:wi,verticalAlign:"unset"};return Ni>=0?Mi.filter=`drop-shadow(${Ai||"#ff512e"} ${wi} -1px)`:Ni<0&&(Mi.filter=`drop-shadow(${gi||"#39cf93"} ${wi} -1px)`),Mi},di=ei=>{const li=parseFloat(ei+"");if(li>=0)return goUp;if(li<0)return goDown},Ei=(ei,li,gi,Ai)=>{var ji,Ui,oa;const wi="#39cf93",Ni="#ff512e",Mi=ct.conditionList.find(ia=>ia.dataIndex===ei.dataIndex);if((ji=Mi==null?void 0:Mi.conditions)!=null&&ji.length){const{fontSize:ia}=ct,Yi={style:{width:ia,verticalAlign:"middle"},src:""};for(const aa of Mi.conditions){const Ca=((Ui=aa==null?void 0:aa.property)==null?void 0:Ui.icon)||"";let xa=((oa=aa==null?void 0:aa.property)==null?void 0:oa.iconColor)||"";if(Ca){let Aa=!1;if(aa.rule&&aa.value){const wa=`${aa.field} ${aa.rule} '${aa.value}'`;Aa=Cn(wa,{...gi,value:li})}else Aa=!0;Aa&&(Ca==="increase"?Yi.src=topArrow:Ca==="decline"&&(Yi.src=downArrow),xa||(Ca==="increase"?xa=Ni:Ca==="decline"&&(xa=wi)),Yi.style.filter=`drop-shadow(${xa} ${ia} -1px)`)}}if(Ai===1)return Yi.style;if(Ai===2)return Yi.src}else return""},Oi=useEmitEvent(ct),{getGlobalModel:Li,setGlobalModel:Ri,getRecordValueByKeyName:hi}=vue.inject(GLOBAL_MODEL,{getGlobalModel:ei=>{},setGlobalModel:(ei,li)=>{},getRecordValueByKeyName:ei=>{}});Ri(ct.id,{type:ct.type,RECORD:""});const Ci=(ei=[],li=[])=>{let gi=ei.map(Ai=>({title:Ai,dataIndex:Ai,key:Ai}));vue.unref(br).find(Ai=>{var wi;return(wi=Ai.children)==null?void 0:wi.length})&&(gi=lodashEs.cloneDeep(vue.unref(br))),Wr.value=lodashEs.cloneDeep(gi),Vr.value=Qr(gi),$r.value=li,pr.value=!0},Di=ei=>{var li,gi,Ai,wi;Ci((gi=(li=ei==null?void 0:ei.data)==null?void 0:li.data)==null?void 0:gi.columns,(wi=(Ai=ei==null?void 0:ei.data)==null?void 0:Ai.data)==null?void 0:wi.rows)},$i=useIndicatorData(ct,Di),Fi=async(ei=!0)=>{try{ei&&(Cr.value=!0);const li=vue.unref(fi).split(" "),gi={};ct.isSortByFront||(gi.sort={order:li[1],field:li[0]});const Ai=await $i(gi);Di(Ai)}catch(li){console.error(li)}finally{Cr.value=!1}},qi=vue.ref(-1),Qi=async(ei=!0)=>{switch(ct.dataType){case"request":await mi(ei);break;case"indicator":await Fi(ei);break;case"component":Hr();break}},la=()=>{const ei=ct.id,li=Li(ei);Ri(ei,{...li,type:ct.type,RECORD:""})},da=vue.computed(()=>{const ei=vue.unref(zr);let li=0;const{subTotalColumn:gi,subTotalName:Ai}=ct;gi&&(li=ei.findIndex(Ui=>Ui.dataIndex===gi),li<0&&(li=0));const wi=[];let Ni=0;for(let Ui=0;Ui<ei.length;Ui++){const oa=ei[Ui],{isCalcTotal:ia}=oa;Ui===li?wi.push({...oa,total:Ai}):ia?(wi.push({...oa,index:Ui,total:0}),Ni++):wi.push({...oa})}if(Ni===0)return[];const Mi=vue.unref(Er),ji=va(wi);for(let Ui=0;Ui<ji.length;Ui++){const oa=ji[Ui];let ia=0;const{isCalcTotal:Yi,dataIndex:aa}=oa;if(Yi===!0&&li!==Ui){let Ca=!0;for(let xa=0;xa<Mi.length;xa++){const wa=+Mi[xa][aa];isNaN(wa)?Ca=!1:ia=new big_js.Big(ia).add(wa).toNumber()}oa.total=Ca?ia:"-"}}return ji});function va(ei){var gi;const li=[];for(const Ai of ei)(gi=Ai.children)!=null&&gi.length?li.push(...va(Ai.children)):li.push(Ai);return li}const{setRequest:ya}=vue.inject(REQUEST_MODEL,{setRequest:ei=>{}});typeof ya=="function"&&ya({id:ct.id,requestFn:Qi,sortNum:ct.requestSort}),Dn({refreshData:Qi});const ba=(ei="",li)=>jn(ei,li),Sa=ei=>{if(ei!=="event")return{self:"_self",blank:"_blank"}[ei]},La=(ei,li="")=>{ei==="event"&&window.parent.postMessage({type:"openPage",url:li},"*")},qa=(ei,li)=>{ei(li.filterCheckboxGroupValue)},ka=(ei,li)=>{ei({confirm:!0}),li.filterOptionsInputValue="",li.filterCheckboxGroupValue=[]},Ba=()=>{},Ha=ei=>{const li=ei.dataIndex;if(typeof li=="string"){let gi=vue.unref(Ur)[li];const Ai=vue.unref(ei.filterOptionsInputValue).trim();return Array.isArray(gi)?(gi=gi.filter(wi=>typeof wi.label=="string"?wi.label.toLowerCase().includes(Ai.toLowerCase()):!0),gi):[]}return[]},Ia=async()=>{var ji,Ui,oa,ia;const ei="EXPORT_KEY";antDesignVue.message.loading({key:ei,content:"正在导出...",duration:0});let li=[];if(ct.dataType==="static")li=ct.data;else if(ct.dataType==="request"){const Yi={layer:"1"};vue.unref(fi)&&(Yi.orderCondition=vue.unref(fi));const aa=await pi(Yi);li=((Ui=(ji=aa==null?void 0:aa.data)==null?void 0:ji.data)==null?void 0:Ui.rows)||{}}else if(ct.dataType==="indicator"){const Yi=await $i();li=((ia=(oa=Yi==null?void 0:Yi.data)==null?void 0:oa.data)==null?void 0:ia.rows)||{}}const gi=vue.unref(zr),Ai=[],wi=[],Ni=[];gi==null||gi.forEach(Yi=>{const{dataIndex:aa,title:Ca,cellAlign:xa,headerCellAlign:Aa}=Yi;Ai.push(aa),wi.push(Ca),Ni.push({dataIndex:aa,cellAlign:xa,headerCellAlign:Aa}),li.forEach((wa,Oa)=>{wa[aa]=aa==="SEQ"?String(Oa+1):Xr(wa[aa],Yi)})});const Mi=li.map(Yi=>lodashEs.pick(Yi,Ai));writeExcelWithAlignment("表格数据.xlsx",wi,Mi,Ni),antDesignVue.message.success({key:ei,content:"导出成功"})},Ga=(ei,li=2)=>{const gi=+ei*100;return isNaN(gi)||gi<=0?0:gi>=100?100:gi.toFixed(li)};useOnEvent(ct,{resetRecord:la,refreshData:Qi,exportTableData:Ia});const Va=(ei,li)=>{let gi=null;return ct.stripedShow&&(gi=li%2===1?"table-striped":null),gi},Ua=vue.computed(()=>{var gi;let ei=0;const{isTableFill:li}=ct;if(li&&xr.value){let Ai=0;ct.paginationShow&&((gi=vue.unref(Er))!=null&&gi.length)&&(Ai=Pr()),ei=parseFloat(vue.unref(xr))-Ai}return ei?ei+"px":"100%"}),Vi=vue.computed(()=>{const ei=vue.unref(vr)==="darkBlue";let li="";return ct.isTableFill&&(li=ct.cellBackgroundColor,li||(Hi.value==="transparent"?ei?li="#071655":li="transparent":ei?li=Hi.value:li="transparent")),li}),Wi=vue.computed(()=>{let ei="#071655";return ct.headerBackgroundColor&&(ei="transparent"),ei}),Hi=vue.computed(()=>{let ei="#071655";return(ct.cellBackgroundColor||ct.stripedShow&&ct.stripedColor)&&(ei="transparent"),ei}),Ji=vue.computed(()=>parseFloat(ct.fontSize)+16),ea=vue.computed(()=>{let ei="";const{paginationColor:li,paginationBgColor:gi,activePaginationColor:Ai,activePaginationBgColor:wi,hoverBackgroundColor:Ni,isTableFill:Mi}=ct;return Mi&&(ei+="table-fill "),li&&(ei+="p-color "),gi&&(ei+="p-bg-color "),Ai&&(ei+="active-p-color "),wi&&(ei+="active-p-bg-color "),Ni&&(ei+="hover-bg-color "),ei}),ta=(ei,li)=>{if(ma(ei.dataIndex))return!1;const{conditionCode:gi}=ei;return Cn(gi,{value:li})},ca=(ei,li,gi)=>{var Ui,oa;const{overflow:Ai,conditionCode:wi,attribute:Ni,dataIndex:Mi}=ei,ji={};if(Ai==="ellipsis"&&(ji.overflow="hidden",ji.textOverflow="ellipsis"),wi&&(Ni!=null&&Ni.color)&&ta(ei,li)&&(ji.color=Ni.color),Ni!=null&&Ni.icon&&(ei==null?void 0:ei.cellAlign)==="right"&&(ji.display="flex",ji.alignItems="center",ji.justifyContent="flex-end"),ma(Mi)){const ia=ct.conditionList.find(Yi=>Yi.dataIndex===Mi);if((Ui=ia==null?void 0:ia.conditions)!=null&&Ui.length){for(const Yi of ia.conditions)if((oa=Yi==null?void 0:Yi.property)!=null&&oa.color){let aa=!1;if(Yi.rule&&Yi.value){const Ca=`${Yi.field} ${Yi.rule} '${Yi.value}'`;aa=Cn(Ca,{...gi,value:li})}else aa=!0;aa&&(ji.color=Yi.property.color)}}else delete ji.color}return ji},ua=ei=>{const{attribute:li}=ei;let gi="";return li!=null&&li.icon&&(gi=useImagePath(li.icon)),gi},sa=ei=>{let li={};return(ei==null?void 0:ei.cellAlign)==="right"?li={marginRight:"5px"}:li={position:"absolute",marginLeft:"5px"},{width:"auto",height:parseFloat(ct.fontSize)+6+"px",...li}},fa=(ei,li)=>ei||ei===0?ei:li==null?void 0:li.defaultVal;function ma(ei){var gi;const li=ct.conditionList.find(Ai=>Ai.dataIndex===ei);return!!((gi=li==null?void 0:li.conditions)!=null&&gi.length)}const zi=(ei,li,gi)=>{var wi,Ni;const Ai=ct.conditionList.find(Mi=>Mi.dataIndex===ei.dataIndex);if((wi=Ai==null?void 0:Ai.conditions)!=null&&wi.length){let Mi=li;for(const ji of Ai.conditions){const Ui=((Ni=ji==null?void 0:ji.property)==null?void 0:Ni.formatText)||"";if(Ui){let oa=!1;if(ji.rule&&ji.value){const ia=`${ji.field} ${ji.rule} '${ji.value}'`;oa=Cn(ia,{...gi,value:li})}else oa=!0;oa&&(Mi=jn(Ui,{textData:{...gi,value:li}}))}}return Mi}else return""};return setTimeout(()=>{var ei,li,gi,Ai,wi,Ni,Mi,ji;(li=(ei=vue.unref(wr))==null?void 0:ei.style)==null||li.setProperty("--pagination-color",ct.paginationColor),(Ai=(gi=vue.unref(wr))==null?void 0:gi.style)==null||Ai.setProperty("--pagination-bg-color",ct.paginationBgColor),(Ni=(wi=vue.unref(wr))==null?void 0:wi.style)==null||Ni.setProperty("--active-pagination-color",ct.activePaginationColor),(ji=(Mi=vue.unref(wr))==null?void 0:Mi.style)==null||ji.setProperty("--active-pagination-bg-color",ct.activePaginationBgColor)},0),{x:Sr,y:kr,style:Tr,pagination:ni,formatFn:Xr,contrastClass:vi,tableChange:xi,summaryList:da,loading:Cr,onTouchHrefEvent:La,handleHref:ba,handleHrefTarget:Sa,useRowIndex:qi,tableColumns:zr,tableDataSource:Er,useFilterOptions:Ha,useSetSelectedKeys:qa,onResetFilter:ka,onSearchFilterOptions:Ba,exportTableData:Ia,handleProgressText:Ga,pageSizeVisible:_r,pageSize:Lr,tableRef:Ar,tableWrapRef:wr,rowClassName:Va,tableHeight:Ua,tableBgColor:Vi,tableHeaderBgColor:Wi,tableBodyBgColor:Hi,getChgStyle:Si,chgBoxStyle:ri,getChgBoxImgStyle:yi,getChgBoxImgSrc:di,seqIcon1,seqIcon2,seqIcon3,iconSize:Ji,containerClass:ea,getCellStyle:ca,isMatchCondition:ta,getAttrImgSrc:ua,getAttrImgStyle:sa,getCellText:fa,autoScrollHeight:Ir,autoScrollClass:Br,autoScrollTop:Or,isScroll:mr,scrollWrapStyle:gr,isLinkStyle:Rr,hasConditionConfig:ma,formatTextByConditions:zi,getChgByCondition:Ei,tableBorderColor:yr}}}),__injectCSSVars__=()=>{vue.useCssVars(ct=>({b345774c:ct.stripedColor,"27e83d1e":ct.bodyRowHeight,"6d7932f3":ct.headRowHeight,"0ecb1952":ct.tableBorderColor,"5dedff91":ct.tableHeaderBgColor,"1415a6dc":ct.tableBodyBgColor,"8146a732":ct.hoverBackgroundColor}))},__setup__=__default__.setup;__default__.setup=__setup__?(ct,Dn)=>(__injectCSSVars__(),__setup__(ct,Dn)):__injectCSSVars__;const Table_vue_vue_type_style_index_0_scoped_32912047_lang="",Table_vue_vue_type_style_index_1_lang="",_withScopeId=ct=>(vue.pushScopeId("data-v-32912047"),ct=ct(),vue.popScopeId(),ct),_hoisted_1$2=["id"],_hoisted_2$2={key:0,class:"table-tool"},_hoisted_3$1=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$6(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("a-button"),pr=vue.resolveComponent("down-outlined"),mr=vue.resolveComponent("right-outlined"),gr=vue.resolveComponent("a-input"),yr=vue.resolveComponent("a-checkbox-group"),Cr=vue.resolveComponent("a-table-summary-cell"),br=vue.resolveComponent("a-table-summary-row"),Ar=vue.resolveComponent("a-table-summary"),wr=vue.resolveComponent("a-table"),_r=vue.resolveComponent("marquee-scroll"),Tr=vue.resolveComponent("skeleton");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["ecan-table",ct.containerClass]),ref:"tableWrapRef",id:"ecanTable-"+ct.id,style:vue.normalizeStyle(ct.style)},[vue.createVNode(Tr,{loading:ct.loading},{default:vue.withCtx(()=>{var Er;return[ct.isUseExport?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$2,[vue.createVNode(vr,{class:"export-button",onClick:ct.exportTableData},{default:vue.withCtx(()=>[_hoisted_3$1]),_:1},8,["onClick"])])):vue.createCommentVNode("",!0),vue.createVNode(wr,{ref:"tableRef",class:"table",style:vue.normalizeStyle({height:ct.tableHeight,backgroundColor:ct.tableBgColor}),columns:ct.tableColumns,"data-source":ct.tableDataSource,bordered:ct.bordered,scroll:ct.y?{x:ct.x,y:ct.y}:{x:ct.x},pagination:ct.isAutoScroll?!1:ct.pagination,"row-class-name":ct.rowClassName,"show-header":!ct.hideTableHeader,indentSize:30,onChange:ct.tableChange},{expandIcon:vue.withCtx(xr=>{var Sr;return[(Sr=xr.record.children)!=null&&Sr.length?(vue.openBlock(),vue.createElementBlock("span",_hoisted_4,[xr.expanded?(vue.openBlock(),vue.createBlock(pr,{key:0,onClick:kr=>xr.onExpand(xr.record,kr)},null,8,["onClick"])):(vue.openBlock(),vue.createBlock(mr,{key:1,onClick:kr=>xr.onExpand(xr.record,kr)},null,8,["onClick"]))])):(vue.openBlock(),vue.createElementBlock("span",_hoisted_5,[vue.createVNode(pr)]))]}),customFilterDropdown:vue.withCtx(({column:xr,setSelectedKeys:Sr,confirm:kr,clearFilters:Pr})=>[vue.createElementVNode("div",{class:"ecan-table-filter",style:vue.normalizeStyle({height:ct.filterDropdownHeight})},[vue.createVNode(gr,{value:xr.filterOptionsInputValue,"onUpdate:value":Ir=>xr.filterOptionsInputValue=Ir,placeholder:"请输入关键字",class:"filter-input",onChange:ct.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),vue.createVNode(yr,{value:xr.filterCheckboxGroupValue,"onUpdate:value":Ir=>xr.filterCheckboxGroupValue=Ir,class:"filter-checkbox",options:ct.useFilterOptions(xr),onChange:Ir=>ct.useSetSelectedKeys(Sr,xr)},null,8,["value","onUpdate:value","options","onChange"]),vue.createElementVNode("div",null,[vue.createVNode(vr,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>kr()},{default:vue.withCtx(()=>[_hoisted_6]),_:2},1032,["onClick"]),vue.createVNode(vr,{size:"small",style:{width:"90px"},onClick:vue.withModifiers(Ir=>ct.onResetFilter(Pr,xr),["stop"])},{default:vue.withCtx(()=>[_hoisted_7]),_:2},1032,["onClick"])])],4)]),bodyCell:vue.withCtx(({column:xr,index:Sr,text:kr,record:Pr})=>{var Ir,Br,Or,Nr,jr,Vr;return[xr.dataIndex==="SEQ"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[ct.seqIcon?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[Sr===0?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"seq-icon",src:ct.seqIcon1,width:ct.iconSize,height:ct.iconSize},null,8,_hoisted_8)):Sr===1?(vue.openBlock(),vue.createElementBlock("img",{key:1,class:"seq-icon",src:ct.seqIcon2,width:ct.iconSize,height:ct.iconSize},null,8,_hoisted_9)):Sr>=2?(vue.openBlock(),vue.createElementBlock("img",{key:2,class:"seq-icon",src:ct.seqIcon3,width:ct.iconSize,height:ct.iconSize},null,8,_hoisted_10)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:"seq-icon seq-text",style:vue.normalizeStyle({fontSize:ct.fontSize})},vue.toDisplayString(Sr+1),5)],64)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_11,vue.toDisplayString(Sr+1),1))],64)):xr.dataIndex==="ACTION"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_12,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ct.actionList,($r,zr)=>(vue.openBlock(),vue.createElementBlock("div",{class:"action",key:zr},[vue.createElementVNode("a",{href:ct.handleHref($r.href,Pr),target:ct.handleHrefTarget($r.target),style:vue.normalizeStyle({color:$r.color,fontSize:ct.fontSize,fontWeight:ct.fontWeight}),onClick:Wr=>ct.onTouchHrefEvent($r.target,ct.handleHref($r.href,Pr))},vue.toDisplayString($r.title),13,_hoisted_13)]))),128))])):xr.format==="progress"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_14,[vue.createElementVNode("div",{class:"progress",style:vue.normalizeStyle({background:xr.progressColor||"#1890ff",height:xr.progressWidth||"18px",width:`${ct.handleProgressText(kr,xr.progressTextDecimalPlaces)}%`})},null,4),vue.createElementVNode("div",{class:"progress-text",style:vue.normalizeStyle({color:+ct.handleProgressText(kr)<100?xr.progressTextColor||"#333":xr.progressFinishedTextColor||"#fff"})},vue.toDisplayString(ct.handleProgressText(kr,xr.progressTextDecimalPlaces))+"% ",5)])):(vue.openBlock(),vue.createElementBlock("div",{key:3,style:vue.normalizeStyle({fontSize:ct.fontSize,fontWeight:ct.isLinkStyle(xr)?"bold":ct.fontWeight,...ct.getCellStyle(xr,kr,Pr)})},[ct.isMatchCondition(xr,kr)&&(xr==null?void 0:xr.cellAlign)==="right"&&((Ir=xr==null?void 0:xr.attribute)!=null&&Ir.icon)?(vue.openBlock(),vue.createElementBlock("img",{key:0,style:vue.normalizeStyle(ct.getAttrImgStyle(xr)),src:ct.getAttrImgSrc(xr)},null,12,_hoisted_15)):vue.createCommentVNode("",!0),!ct.hasConditionConfig(xr.dataIndex)&&xr.format==="contrast"?(vue.openBlock(),vue.createElementBlock("span",{key:1,title:((Br=xr==null?void 0:xr.customFormatter)==null?void 0:Br.split("{value}")[0])||""},vue.toDisplayString(((Or=xr==null?void 0:xr.customFormatter)==null?void 0:Or.split("{value}")[0])||""),9,_hoisted_16)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:vue.normalizeClass([ct.contrastClass(xr.format)]),style:vue.normalizeStyle(ct.getChgStyle({...xr,text:kr})),title:ct.hasConditionConfig(xr.dataIndex)?ct.formatTextByConditions(xr,kr,Pr):xr.format!=null?ct.formatFn(kr,xr):kr},[!ct.hasConditionConfig(xr.dataIndex)&&xr.format==="contrast"?(vue.openBlock(),vue.createElementBlock("div",{key:0,style:vue.normalizeStyle(ct.chgBoxStyle)},[vue.createElementVNode("img",{style:vue.normalizeStyle(ct.getChgBoxImgStyle({...xr,text:kr})),src:ct.getChgBoxImgSrc(kr)},null,12,_hoisted_18)],4)):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString(ct.hasConditionConfig(xr.dataIndex)?ct.formatTextByConditions(xr,kr,Pr):xr.format!=null?ct.formatFn(kr,xr):ct.getCellText(kr,xr))+" ",1),ct.hasConditionConfig(xr.dataIndex)&&ct.getChgByCondition(xr,kr,Pr,2)?(vue.openBlock(),vue.createElementBlock("div",{key:1,style:vue.normalizeStyle({...ct.chgBoxStyle,height:"auto",scale:.6})},[vue.createElementVNode("img",{style:vue.normalizeStyle(ct.getChgByCondition(xr,kr,Pr,1)),src:ct.getChgByCondition(xr,kr,Pr,2)},null,12,_hoisted_19)],4)):vue.createCommentVNode("",!0)],14,_hoisted_17),!ct.hasConditionConfig(xr.dataIndex)&&xr.format==="contrast"?(vue.openBlock(),vue.createElementBlock("span",{key:2,title:((Nr=xr==null?void 0:xr.customFormatter)==null?void 0:Nr.split("{value}")[1])||""},vue.toDisplayString(((jr=xr==null?void 0:xr.customFormatter)==null?void 0:jr.split("{value}")[1])||""),9,_hoisted_20)):vue.createCommentVNode("",!0),ct.isMatchCondition(xr,kr)&&(xr==null?void 0:xr.cellAlign)!=="right"&&((Vr=xr==null?void 0:xr.attribute)!=null&&Vr.icon)?(vue.openBlock(),vue.createElementBlock("img",{key:3,style:vue.normalizeStyle(ct.getAttrImgStyle(xr)),src:ct.getAttrImgSrc(xr)},null,12,_hoisted_21)):vue.createCommentVNode("",!0)],4))]}),summary:vue.withCtx(()=>[ct.summaryList.length>0?(vue.openBlock(),vue.createBlock(Ar,{key:0,fixed:ct.isSummaryFixed},{default:vue.withCtx(()=>[vue.createVNode(br,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ct.summaryList,(xr,Sr)=>(vue.openBlock(),vue.createBlock(Cr,{key:Sr,index:Sr,style:vue.normalizeStyle({backgroundColor:ct.cellBackgroundColor,textAlign:xr.cellAlign||"center",color:ct.cellFontColor})},{default:vue.withCtx(()=>[vue.createElementVNode("span",{class:vue.normalizeClass([ct.contrastClass(xr.format)]),style:vue.normalizeStyle({...ct.getChgStyle({...xr,text:xr.total}),fontSize:ct.fontSize,fontWeight:ct.fontWeight})},[xr.format==="contrast"?(vue.openBlock(),vue.createElementBlock("div",{key:0,style:vue.normalizeStyle(ct.chgBoxStyle)},[vue.createElementVNode("img",{style:vue.normalizeStyle(ct.getChgBoxImgStyle({...xr,text:xr.total})),src:ct.getChgBoxImgSrc(xr.total)},null,12,_hoisted_22)],4)):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString((xr.format!=null||xr.format!=="")&&ct.formatFn(xr.total,xr)),1)],6)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1},8,["fixed"])):vue.createCommentVNode("",!0)]),_:1},8,["style","columns","data-source","bordered","scroll","pagination","row-class-name","show-header","onChange"]),ct.paginationShow?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[(Er=ct.tableDataSource)!=null&&Er.length&&!ct.simple&&ct.pageSizeShow&&ct.pageSizeVisible?(vue.openBlock(),vue.createBlock(vue.Teleport,{key:0,to:"#ecanTable-"+ct.id+" .ant-pagination"},[vue.createElementVNode("div",_hoisted_23,[vue.withDirectives(vue.createElementVNode("input",{type:"text","onUpdate:modelValue":Dn[0]||(Dn[0]=xr=>ct.pageSize=xr)},null,512),[[vue.vModelText,ct.pageSize]]),_hoisted_24])],8,["to"])):vue.createCommentVNode("",!0)],64)):vue.createCommentVNode("",!0),ct.isAutoScroll?(vue.openBlock(),vue.createElementBlock("div",{key:2,class:vue.normalizeClass(["auto-scroll-content ant-table-wrapper table",ct.autoScrollClass]),style:vue.normalizeStyle({width:"100%",position:"absolute",left:"0",height:ct.autoScrollHeight+"px",top:ct.autoScrollTop+"px",overflow:"auto"})},[vue.createVNode(_r,{visible:ct.isScroll,step:ct.scrollSpeed,wrapStyle:{display:"flex",flexDirection:"column",flexWrap:"wrap"}},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"scroll-wrap",style:vue.normalizeStyle(ct.scrollWrapStyle)},null,4)]),_:1},8,["visible","step"])],6)):vue.createCommentVNode("",!0)]}),_:1},8,["loading"]),vue.renderSlot(ct.$slots,"toolbox",{},void 0,!0)],14,_hoisted_1$2)}const Table=_export_sfc$1(__default__,[["render",_sfc_render$6],["__scopeId","data-v-32912047"]]),EcanTable=withInstall$1(Table),mapProps={...props$1,mapJson:null,data:[],name:"地图",keyName:"地图",type:"ecanMap",width:"400px",height:"400px",backgroundImage:"",backgroundImageRepeat:"no-repeat",geoBackgroundImage:"",geoBackgroundImageRepeat:"no-repeat",symbolImage:"",symbolWidth:10,symbolHeight:10,itemStyleColor:"#11BFDA",labelFontSize:14,labelShow:!0,geoLabelShow:!0,geoLabelColor:"#000",geoZoom:1,geoRoam:!1,geoCenter:"",geoLabelFontSize:12,labelColor:"",labelFormatter:"{b}",geoItemStyleAreaColor:"#eee",geoItemStyleBorderColor:"#000",geoItemStyleBorderWidth:1,geoItemStyleShadowColor:"",geoItemStyleShadowOffsetX:0,geoItemStyleShadowOffsetY:0,geoItemStyleShadowBlur:0,geoEmphasisDisabled:!1,geoEmphasisLabelColor:"#fff",geoEmphasisItemStyleAreaColor:"#f00",geoEmphasisItemStyleBorderColor:"#000",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{name}:{value}",tooltipRequestData:{requestUrl:"",requestMethod:"get",requestParams:[]},tooltipBackgroundColor:"#fff",areaStyleKeyName:"",mapAreaStyleConfig:[],legendShow:!1,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"bottom",legendLeft:"right",mapLegendType:"circle",legendTextShow:!0,legendTitle:"",legendTitleColor:"#333",legendTitleFontSize:"16px",legendFrontText:"",legendAfterText:"",legendBoxShadow:""},mapComponentProps=transformToComponentProps(mapProps),mapEvents=["refreshData","click"];core$1.use([renderers.CanvasRenderer,charts.MapChart,charts.ScatterChart,components$1.VisualMapComponent,components$1.TooltipComponent,components$1.GraphicComponent]);const _sfc_main$5=vue.defineComponent({name:"EcanMap",components:{Echarts},props:{...mapComponentProps},setup(ct){const Dn=useRequestData({...ct.tooltipRequestData,requestHeaders:{}}),ur=vue.ref(),dr=vue.ref(""),fr=vue.ref(""),hr=usePickComponentStyle(ct,["backgroundImage"]),vr=vue.ref(),pr=vue.computed(()=>useImagePath(ct.geoBackgroundImage)),mr=vue.computed(()=>useImagePath(ct.backgroundImage)),gr=vue.ref([]),yr=vue.computed(()=>ct.geoBackgroundImage?{image:vue.unref(vr),repeat:ct.geoBackgroundImageRepeat}:ct.geoItemStyleAreaColor),Cr=vue.computed(()=>{const Hr=ct.symbolImage;return ct.symbolImage?"image://"+useImagePath(Hr):"circle"}),br=Hr=>{let Ur=ct.tooltipFormatter;const Jr=Ur.match(/\{(.+?)\}/g);if(Jr==null||Jr.length===0)return Ur;for(let Yr=0;Yr<Jr.length;Yr++){const si=Jr[Yr];let fi=si.slice(1,-1).trim();const _i=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,bi=fi.match(_i);for(let pi=0;pi<bi.length;pi++){const mi=bi[pi],xi=Hr[mi];xi!=null&&(fi=fi.replace(mi,xi))}Ur=Ur.replace(si,fi)}return Ur.split(`
|
|
211
211
|
`)},Ar=vue.ref(!1),wr=vue.ref("");let _r=new AbortController;const Tr=(Hr,Ur)=>{const Jr=_r.signal;Ar.value=!0,dr.value=Hr,Dn({name:Hr,signal:Jr}).then(Yr=>{var si,fi;if(Yr){const _i=((fi=(si=Yr==null?void 0:Yr.data)==null?void 0:si.data)==null?void 0:fi.rows)||[];let bi="";for(const pi of _i){const mi=br(pi)||[];if(mi!=null&&mi.length)for(const xi of mi)bi+=`<div style="word-break: break-all;white-space: normal;">${xi}</div>`}bi=`<div style="max-width:200px;">${bi}</div>`,fr.value=bi,Ur(vue.unref(wr),bi)}else Jr.aborted?fr.value="Loading":fr.value=Hr,Ur(vue.unref(wr),fr.value);Ar.value=!1})},Er=vue.ref(),xr=vue.computed(()=>ct.dataType==="request"?Er.value:ct.data),Sr=vue.computed(()=>{const Hr=[],{mapAreaStyleConfig:Ur}=ct;if(Ur!=null&&Ur.length)for(const Jr of Ur)Hr.push({...Jr,key:nanoid(6)});return Hr}),kr=vue.computed(()=>{const Hr=[];for(const Ur of vue.unref(Sr)){let Jr="";Ur.value1&&(Jr+=`value ${Ur.rule1} ${Ur.value1}`),Ur.value2&&(Jr+=`${Ur.value1?"&&":""} value ${Ur.rule2} ${Ur.value2}`),Jr&&Hr.push({rule:Jr,color:Ur.color,key:Ur.key})}return Hr.reverse()}),Pr=vue.computed(()=>{var Jr;const Hr=[],{areaStyleKeyName:Ur}=ct;if((Jr=vue.unref(xr))!=null&&Jr.length)for(const Yr of vue.unref(xr)){const si=Yr[Ur];if(si||si===0){const fi=vue.unref(kr).find(_i=>Cn(_i.rule,{value:si}));fi&&Hr.push({name:Yr.name,itemStyle:{areaColor:vue.unref(gr).includes(fi.key)?ct.geoItemStyleAreaColor:fi.color}})}}return Hr}),Ir=vue.computed(()=>{const Hr=ct.geoCenter;let Ur;return typeof Hr=="string"&&Hr!==""&&(Ur=Hr.split(",")),{tooltip:{show:!0},graphic:[{type:"image",style:{width:parseFloat(ct.width),height:parseFloat(ct.height),image:vue.unref(mr)},top:"center"}],geo:{zoom:ct.geoZoom,roam:ct.geoRoam,center:Ur,map:`map-${ct.id}`,selectedMode:"single",tooltip:{show:ct.tooltipShow,trigger:"item",backgroundColor:ct.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:ct.tooltipTextStyleColor},formatter:(Jr,Yr,si)=>{wr.value=Yr;const{name:fi=""}=Jr,{requestUrl:_i}=ct.tooltipRequestData;if(!_i){let bi="",pi=ct.tooltipFormatter;pi===""&&(pi="{name}:{value}");const mi=vue.unref(xr).find(xi=>xi.name===fi);return mi?(bi+=jn(pi,{textData:{name:fi,...mi}},{useNewline:!0,useSpace:!0}),bi):fi}if(vue.unref(Ar))vue.unref(dr)!==fi&&(_r.abort(),_r=new AbortController);else{if(vue.unref(dr)===fi)return vue.unref(fr);Tr(fi,si)}return"Loading"}},label:{show:ct.geoLabelShow,color:ct.geoLabelColor,fontSize:ct.geoLabelFontSize},itemStyle:{areaColor:vue.unref(yr),borderColor:ct.geoItemStyleBorderColor,borderWidth:ct.geoItemStyleBorderWidth,shadowColor:ct.geoItemStyleShadowColor,shadowBlur:ct.geoItemStyleShadowBlur,shadowOffsetX:ct.geoItemStyleShadowOffsetX,shadowOffsetY:ct.geoItemStyleShadowOffsetY},emphasis:{disabled:ct.geoEmphasisDisabled,label:{color:ct.geoEmphasisLabelColor},itemStyle:{areaColor:ct.geoEmphasisItemStyleAreaColor,borderColor:ct.geoEmphasisItemStyleBorderColor}},regions:Pr.value},series:[{type:"scatter",coordinateSystem:"geo",itemStyle:{color:ct.itemStyleColor},symbol:vue.unref(Cr),symbolSize:[ct.symbolWidth,ct.symbolHeight],label:{show:ct.labelShow,fontSize:ct.labelFontSize,formatter:ct.labelFormatter,color:ct.labelColor},tooltip:{show:ct.tooltipShow,textStyle:{color:ct.tooltipTextStyleColor}},data:xr.value}]}}),Br=vue.ref(!1),Or=async()=>{var Jr;Br.value=!1;const Hr=ct.mapJson,Ur=`map-${ct.id}`;if(Hr!=null&&Hr.path){const Yr=await request(((Jr=window==null?void 0:window.config)==null?void 0:Jr.uploadPath)+Hr.path);core$1.registerMap(Ur,(Yr==null?void 0:Yr.data)||{})}else core$1.registerMap(Ur,{});Br.value=!0};vue.watch(()=>ct.mapJson,()=>{Or()},{immediate:!0,deep:!0});const Nr=async Hr=>{var Yr,si,fi,_i;const Ur=(si=(Yr=Hr==null?void 0:Hr.data)==null?void 0:Yr.data)==null?void 0:si.rows,Jr=`map-${ct.id}`;if(Ur!=null&&Ur.path){const bi=await request(Ur.path);core$1.registerMap(Jr,(bi==null?void 0:bi.data)||{})}else if(Array.isArray(Ur))if(Er.value=Ur,(fi=Ur[0])!=null&&fi.mapUrl){const bi=await request((_i=Ur[0])==null?void 0:_i.mapUrl);core$1.registerMap(Jr,(bi==null?void 0:bi.data)||{})}else core$1.registerMap(Jr,{});else core$1.registerMap(Jr,{});vue.nextTick(()=>{Br.value=!0})},jr=useRequestData(ct),Vr=async()=>{if(ct.dataType==="request"){Br.value=!1;try{const Hr=await jr();Nr(Hr)}catch(Hr){console.error(Hr),Br.value=!0}}},$r=async()=>{const Hr=zr(ct.id);switch(Wr(ct.id,{...Hr,RECORD:{}}),ct.dataType){case"static":Or();break;case"request":await Vr();break}},{getGlobalModel:zr,setGlobalModel:Wr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Hr=>{},setGlobalModel:(Hr,Ur)=>{}}),Mr=useEmitEvent(ct)("click",()=>{var Ur,Jr;const Hr=zr(ct.id);((Ur=Hr==null?void 0:Hr.RECORD)==null?void 0:Ur.name)===((Jr=vue.unref(ur))==null?void 0:Jr.name)?Wr(ct.id,{...Hr,RECORD:{}}):Wr(ct.id,{...Hr,RECORD:vue.unref(ur)})});useOnEvent(ct,{refreshData:$r});const{setRequest:Lr}=vue.inject(REQUEST_MODEL,{setRequest:Hr=>{}});typeof Lr=="function"&&Lr({id:ct.id,requestFn:$r,sortNum:ct.requestSort});const Fr=()=>{vue.unref(ur)&&Mr()},Dr=(Hr={})=>{Hr.componentType==="geo"&&Hr.region?ur.value=Hr.region:ur.value=null},Gr=vue.computed(()=>{const Hr={},{legendTop:Ur,legendLeft:Jr,legendBoxShadow:Yr}=ct;return Yr&&(Hr.boxShadow=Yr),Ur==="bottom"?Hr.bottom=0:Ur==="top"&&(Hr.top=0),Jr==="left"?Hr.left=0:Jr==="right"&&(Hr.right=0),Hr}),Rr=vue.computed(()=>{const Hr={};return ct.legendOrient==="vertical"&&(Hr.flexDirection="column"),Hr}),Qr=vue.computed(()=>{var Hr;if((Hr=vue.unref(Sr))!=null&&Hr.length){const Ur=[];for(const Jr of vue.unref(Sr)){const{value1:Yr,value2:si,rule1:fi,rule2:_i,color:bi}=Jr;Yr&&si?+Yr<+si?fi.includes(">")&&_i.includes("<")&&Ur.push({text:`${Yr} - ${si}`,color:bi,key:Jr.key}):+Yr>+si?fi.includes("<")&&_i.includes(">")&&Ur.push({text:`${si} - ${Yr}`,color:bi,key:Jr.key}):+Yr==+si&&Ur.push({text:`${Yr} - ${si}`,color:bi,key:Jr.key}):Yr?Ur.push({text:`${fi} ${Yr}`,color:bi,key:Jr.key}):si&&Ur.push({text:`${_i} ${si}`,color:bi,key:Jr.key})}return Ur}else return[]});return{option:Ir,style:hr,isLoadedData:Br,geoBackgroundImageRef:vr,myGeoBackgroundImage:pr,mapLegendStyle:Gr,legendContainerStyle:Rr,mapLegendList:Qr,hiddenLegendKey:gr,customClick:Fr,onMouseOver:Dr,handleToggleVisible:Hr=>{const Ur=vue.unref(gr).findIndex(Jr=>Jr===Hr);Ur>=0?gr.value.splice(Ur,1):gr.value.push(Hr)}}}}),Map_vue_vue_type_style_index_0_scoped_795834b9_lang="",_hoisted_1$1=["src"],_hoisted_2$1=["title","onClick"];function _sfc_render$5(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("echarts");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-map",style:vue.normalizeStyle(ct.style)},[ct.isLoadedData?(vue.openBlock(),vue.createBlock(vr,{key:0,option:ct.option,"update-options":{notMerge:!0},autoresize:"","onZr:click":ct.customClick,onMouseover:ct.onMouseOver},null,8,["option","onZr:click","onMouseover"])):vue.createCommentVNode("",!0),vue.withDirectives(vue.createElementVNode("img",{ref:"geoBackgroundImageRef",src:ct.myGeoBackgroundImage},null,8,_hoisted_1$1),[[vue.vShow,!1]]),ct.legendShow?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"map-legend",style:vue.normalizeStyle(ct.mapLegendStyle)},[vue.createElementVNode("div",{class:"legend-title",style:vue.normalizeStyle({color:ct.legendTitleColor,fontSize:ct.legendTitleFontSize})},vue.toDisplayString(ct.legendTitle),5),vue.createElementVNode("div",{class:"legend-container",style:vue.normalizeStyle(ct.legendContainerStyle)},[vue.createElementVNode("div",{style:vue.normalizeStyle({color:ct.legendTextStyleColor,marginRight:ct.legendOrient==="horizontal"?"5px":"",marginBottom:ct.legendOrient==="vertical"?"5px":""})},vue.toDisplayString(ct.legendFrontText),5),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ct.mapLegendList,(pr,mr)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["legend-item",{hidden:ct.hiddenLegendKey.includes(pr.key)}]),style:vue.normalizeStyle({marginRight:ct.legendOrient==="horizontal"?"10px":"",marginLeft:ct.legendOrient==="horizontal"?"10px":"",marginBottom:ct.legendOrient==="vertical"?"10px":"",marginTop:ct.legendOrient==="vertical"?"10px":""}),key:mr,title:ct.legendTextShow?"":pr.text,onClick:gr=>ct.handleToggleVisible(pr.key)},[vue.createElementVNode("div",{class:"color-block",style:vue.normalizeStyle({backgroundColor:pr.color,width:"20px",height:ct.mapLegendType==="rect"?"16px":"20px",borderRadius:ct.mapLegendType==="circle"?"50%":"4px"})},null,4),ct.legendTextShow?(vue.openBlock(),vue.createElementBlock("span",{key:0,class:"legend-item-text",style:vue.normalizeStyle({color:ct.legendTextStyleColor,marginLeft:"10px"})},vue.toDisplayString(pr.text),5)):vue.createCommentVNode("",!0)],14,_hoisted_2$1))),128)),vue.createElementVNode("div",{style:vue.normalizeStyle({color:ct.legendTextStyleColor,marginLeft:ct.legendOrient==="horizontal"?"5px":"",marginTop:ct.legendOrient==="vertical"?"5px":""})},vue.toDisplayString(ct.legendAfterText),5)],4)],4)):vue.createCommentVNode("",!0)],4)}const Map$1=_export_sfc$1(_sfc_main$5,[["render",_sfc_render$5],["__scopeId","data-v-795834b9"]]),EcanMap=withInstall$1(Map$1),dataSelectProps={...props$1,name:"下拉框选择器-数据",keyName:"下拉框选择器-数据",width:"120px",height:"33px",type:"ecanDataSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,graphicConfig:{},valueType:"value",isAllowClear:!0,optionFontSize:"14px"},dataSelectComponentProps=transformToComponentProps(dataSelectProps),dataSelectEvents=["selectChange","refreshData"],_sfc_main$4=vue.defineComponent({name:"EcanDataSelect",components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption},props:{...dataSelectComponentProps},setup(ct,{expose:Dn}){var qr;const ur=usePickComponentStyle(ct),dr=()=>document.getElementById("ProviderConfig")||document.body,fr=vue.ref(ct.data||[]),hr=vue.ref(),vr=vue.computed({get:()=>{var Lr;const{mode:Mr}=ct;return(Lr=vue.unref(fr))!=null&&Lr.length?hr.value:Mr==="multiple"||Mr==="tags"||Mr==="combobox"?[]:""},set:Mr=>{hr.value=Mr}}),{getGlobalModel:pr,setGlobalModel:mr,getRecordValueByKeyName:gr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Mr=>{},setGlobalModel:(Mr,Lr)=>{},getRecordValueByKeyName:Mr=>{}}),yr=ct.dataFieldNames;vue.watch(()=>[ct.value,ct.mode,ct.selectFirstOption,ct.valueType,fr.value],()=>{const{mode:Mr,selectFirstOption:Lr,value:Fr}=ct,Dr=gr(Fr),Gr=yr.value;if(Mr==="multiple"||Mr==="tags"||Mr==="combobox"){if(Dr)hr.value=Dr.split(",");else if(Lr){const Rr=vue.unref(fr)[0];hr.value=Rr?[Rr[Gr]]:[]}}else if(Dr)hr.value=Dr;else if(Lr){const Rr=vue.unref(fr)[0];hr.value=Rr?Rr[Gr]:""}},{immediate:!0});const Cr=(Mr,Lr)=>{const Fr=yr.label,Dr=yr.value;let Gr;const Rr=Lr[Fr],Qr=Lr[Dr];return Rr!=null?Gr=Rr:Qr!=null&&(Gr=Qr),(Gr==null?void 0:Gr.toLowerCase().indexOf(Mr==null?void 0:Mr.toLowerCase()))>=0},br=Mr=>{const{label:Lr,value:Fr,options:Dr}=ct.dataFieldNames;if(Dr&&Array.isArray(Mr))if(Mr.some(Gr=>Dr in Gr)){const Gr={},Rr=[];Mr.forEach(Qr=>{Gr[Qr[Dr]]||(Gr[Qr[Dr]]=[]),Gr[Qr[Dr]].push({[Lr]:Qr[Lr],[Fr]:Qr[Fr]})});for(const Qr in Gr)Rr.push({[Lr]:Qr,[Dr]:Gr[Qr]});return Rr}else return Mr;else{if(!Dr&&Array.isArray(Mr))return Mr=Mr.map(Gr=>({label:Gr[Lr],value:Gr[Fr]})),Mr;if(!Dr&&!Array.isArray(Mr))return Mr}},Ar=vue.ref(!1),wr=Mr=>{var Lr,Fr;if(fr.value=br(((Fr=(Lr=Mr==null?void 0:Mr.data)==null?void 0:Lr.data)==null?void 0:Fr.rows)||[]),ct.selectFirstOption){let Dr=vue.unref(fr)[0];if(yr.options){const Gr=Dr[yr.options];Gr&&Gr.length&&(Dr=Gr[0])}hr.value=Dr[yr.value]}},_r=useRequestData(ct),Tr=async()=>{if(ct.dataType==="request"){Ar.value=!0;try{const Mr=await _r();wr(Mr)}catch(Mr){console.error(Mr)}finally{Ar.value=!1}}},Er=vue.computed(()=>{let Mr=hr.value;if(ct.valueType==="label"&&vue.unref(hr)&&vue.unref(fr)){const Lr=yr.label,Fr=yr.value;if(ct.mode==="multiple")Mr=vue.unref(fr).filter(Dr=>vue.unref(hr).includes(Dr[Fr])).map(Dr=>Dr[Lr]);else{const Dr=vue.unref(fr).find(Gr=>vue.unref(hr)===Gr[Fr]);Dr&&(Mr=Dr[Lr])}}return Mr}),xr=vue.ref([]),Sr=vue.computed(()=>{const Mr={};if(ct.mode!=="multiple"){const Lr=vue.unref(xr).find(Fr=>Fr.value===vue.unref(hr));Lr&&(Mr.itemCodes=Lr.item_codes)}return Mr}),kr=vue.computed(()=>{const{value:Mr,label:Lr}=yr,Fr=vue.unref(fr).find(Dr=>Dr[Mr]===vue.unref(vr));return Fr?{label:Fr[Lr],value:Fr[Mr]}:{}}),{pageId:Pr}=vue.inject("templateOperate",{pageId:""})||{};mr(ct.id,{type:ct.type,dataType:ct.dataType,value:Er,label:(qr=vue.unref(kr))==null?void 0:qr.label,...vue.unref(Sr),recordData:vue.unref(kr)});const Ir=useEmitEvent(ct),Br=Ir("selectChange",()=>{const Mr=ct.id,Lr=pr(Mr);mr(Mr,{...Lr,...vue.unref(Sr),value:Er,RECORD:Er,recordData:vue.unref(kr),dataType:ct.dataType,type:ct.type})}),Or=()=>{const Mr=getNewValueFromUrlParams(Pr,ct.keyName,"value");Mr&&(vr.value=Mr)},Nr=Ir("refreshData",(Mr=[])=>{if(fr.value=br(Mr),ct.selectFirstOption){let Lr=vue.unref(fr)[0];if(yr.options){const Fr=Lr[yr.options];Fr&&Fr.length&&(Lr=Fr[0])}Lr&&(hr.value=Lr[yr.value])}mr(ct.id,{type:ct.type,value:Er,...vue.unref(Sr),recordData:vue.unref(kr),RECORD:vue.unref(kr),dataType:ct.dataType})}),jr=Mr=>{var Gr;const{data:Lr}=(Mr==null?void 0:Mr.data)||{},Fr=yr.label,Dr=yr.value;if(Lr){const{rows:Rr=[]}=((Gr=Mr==null?void 0:Mr.data)==null?void 0:Gr.data)||{};xr.value=Rr||[];const Qr=vue.unref(xr).map(Ur=>({[Fr]:Ur.label,[Dr]:Ur.value})),{id:Kr}=ct,Hr=pr(Kr);mr(Kr,{...Hr,...vue.unref(Sr),dataType:ct.dataType}),Nr(Qr)}else Nr([])},Vr=useIndicatorData(ct,jr),$r=async()=>{try{Ar.value=!0;const Mr=await Vr();jr(Mr)}catch(Mr){console.error(Mr)}finally{Ar.value=!1}},zr=async()=>{switch(ct.dataType){case"indicator":{await $r();break}case"request":await Tr();break}};useOnEvent(ct,{selectChange:Br,refreshData:zr,updateByUrlParams:Or});const{setRequest:Wr}=vue.inject(REQUEST_MODEL,{setRequest:({id:Mr,sortNum:Lr,requestFn:Fr})=>{}});return typeof Wr=="function"&&Wr({id:ct.id,requestFn:zr,sortNum:ct.requestSort}),Dn({refreshData:zr}),{style:ur,getPopupContainer:dr,myValue:hr,selectChange:Br,options:fr,filterOption:Cr,loading:Ar,resultValue:vr}}}),DataSelect_vue_vue_type_style_index_0_scoped_7c38d5d4_lang="",DataSelect_vue_vue_type_style_index_1_lang="";function _sfc_render$4(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("a-select-option"),pr=vue.resolveComponent("a-select");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-select",style:vue.normalizeStyle(ct.style)},[vue.createVNode(pr,{class:"select",value:ct.resultValue,"onUpdate:value":Dn[0]||(Dn[0]=mr=>ct.resultValue=mr),placeholder:ct.placeholder,showSearch:"",allowClear:ct.isAllowClear,mode:ct.mode,getPopupContainer:ct.getPopupContainer,maxTagCount:ct.maxTagCount,filterOption:ct.filterOption,loading:ct.loading,autoClearSearchValue:ct.autoClearSearchValue,onChange:ct.selectChange,style:vue.normalizeStyle({fontSize:ct.optionFontSize})},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ct.options,(mr,gr)=>(vue.openBlock(),vue.createBlock(vr,{key:gr,value:mr.value,label:mr.label,style:vue.normalizeStyle({fontSize:ct.optionFontSize})},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(mr.label),1)]),_:2},1032,["value","label","style"]))),128))]),_:1},8,["value","placeholder","allowClear","mode","getPopupContainer","maxTagCount","filterOption","loading","autoClearSearchValue","onChange","style"]),vue.renderSlot(ct.$slots,"toolbox",{},void 0,!0)],4)}const DataSelect=_export_sfc$1(_sfc_main$4,[["render",_sfc_render$4],["__scopeId","data-v-7c38d5d4"]]),EcanDataSelect=withInstall$1(DataSelect),_sfc_main$3=vue.defineComponent({name:"EcanPivotTable",components:{},props:{...pivotTableComponentProps,fullMode:{type:Boolean,default:!1}},setup(ct,{emit:Dn,expose:ur}){var Pr,Ir;const dr=(Pr=window==null?void 0:window.config)==null?void 0:Pr.pageId,fr=(Ir=window==null?void 0:window.config)==null?void 0:Ir.indicatorToken,hr=usePickComponentStyle(ct),vr=vue.ref(),{pageMode:pr,theme:mr,width:gr,height:yr}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",theme:"light",width:"",height:""}),Cr=vue.inject("componentList",[]),br=vue.inject("scaleValue",{widthScale:"1",heightScale:"1"}),{getAllGlobalModel:Ar}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),wr=vue.computed(()=>{const{width:Br,height:Or}=ct;let Nr=0,jr=0;return typeof Br=="string"?Nr=parseFloat(Br):Br.suffix==="px"?Nr=+Br.value:Br.suffix==="%"&&(Nr=parseFloat(vue.unref(gr))*(Br.value/100)),typeof Or=="string"?jr=parseFloat(Or):Or.suffix==="px"?jr=+Or.value:Or.suffix==="%"&&(jr=parseFloat(vue.unref(yr))*(Or.value/100)),{...ct,width:Nr+"px",height:jr+"px",pageId:dr,indicatorToken:fr,context:CONTEXT,globalModel:Ar()}}),_r=vue.computed(()=>INDICATOR_URL),Tr=()=>{switch(ct.dataType){case"indicator":vue.unref(vr).refreshData();break}},{setRequest:Er}=vue.inject(REQUEST_MODEL,{setRequest:({id:Br,sortNum:Or,requestFn:Nr})=>{}});typeof Er=="function"&&Er({id:ct.id,requestFn:Tr,sortNum:ct.requestSort}),ur({refreshData:Tr});const Sr=useEmitEvent(ct)("click",()=>{vue.unref(vr).click()});return useOnEvent(ct,{refreshData:Tr,click:Sr}),vue.onMounted(()=>{}),{props:ct,style:hr,pageMode:pr,pivotTableRef:vr,theme:mr,customProps:wr,indicatorUrl:_r,scaleValue:br,allComponentList:Cr,click:Sr,onTableChange:({type:Br,data:Or})=>{Dn("tableChange",{type:Br,data:Or})}}}}),PivotTableContainer_vue_vue_type_style_index_0_scoped_b4fd05be_lang="";function _sfc_render$3(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("pivot-table");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-pivot-table",style:vue.normalizeStyle(ct.style)},[vue.createVNode(vr,vue.mergeProps({ref:"pivotTableRef"},ct.customProps,{pageMode:ct.pageMode,theme:ct.theme,fullMode:ct.fullMode,indicatorUrl:ct.indicatorUrl,scaleValue:ct.scaleValue,componentList:ct.allComponentList,enlargeContainer:"#norPageConfig",onTableChange:ct.onTableChange}),null,16,["pageMode","theme","fullMode","indicatorUrl","scaleValue","componentList","onTableChange"])],4)}const PivotTableContainer=_export_sfc$1(_sfc_main$3,[["render",_sfc_render$3],["__scopeId","data-v-b4fd05be"]]),EcanPivotTable=withInstall$1(PivotTableContainer),valueLineProps={...props$1,id:"",name:"双值轴折线图",keyName:"双值轴折线图",type:"ecanValueLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:0,value:0,value2:10},{name:10,value:20,value2:35},{name:20,value:30,value2:25},{name:30,value:40,value2:55}],titleText:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a}:{c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,tooltipTextStyleColor:"",customPoint:"",axisMarkPoint:[],markPointFormatter:"{x}, {y}"},valueLineComponentProps=transformToComponentProps(valueLineProps),valueLineEvents=["click","refreshData","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.LineChart,components$1.ToolboxComponent,components$1.TitleComponent,components$1.LegendComponent,components$1.MarkLineComponent,components$1.MarkPointComponent]);const _sfc_main$2=vue.defineComponent({name:"EcanValueLine",props:{...valueLineComponentProps},components:{Spin,Echarts,EcanModal},setup(ct,{expose:Dn}){const{pageMode:ur,fontFamily:dr}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),fr=vue.ref(),hr=vue.ref(!1),vr=usePickComponentStyle(ct),pr=vue.ref([]),mr=vue.ref(),gr=vue.computed(()=>hr.value?ZOOM_FONT_SIZE:12),yr=vue.ref({});let Cr;const br=vue.computed(()=>{const Dr=ct.xAxisLabelFormatter,Gr=ct.yAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(dr)},toolbox:{show:ct.toolboxShow,left:ct.toolboxLeft,top:ct.toolboxTop,itemSize:ct.toolboxItemSize,itemGap:ct.toolboxItemGap,orient:ct.toolboxOrient,feature:{myDownload:{show:ct.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(ct.toolboxDownloadUrl)}},myDataZoom:{show:hr.value?!1:ct.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 Rr;hr.value=!0,(Rr=mr.value)==null||Rr.showModal()}},myInfo:{show:ct.toolboxInfoShow,title:"说明信息",icon:"path://M473 71a8 8 0 0 1 8-8h64a8 8 0 0 1 8 8v77.161C722.848 166.622 857.812 301.289 876.729 471H952a8 8 0 0 1 8 8v64a8 8 0 0 1-8 8h-75.053C858.871 721.652 723.515 857.305 553 875.839V951a8 8 0 0 1-8 8h-64a8 8 0 0 1-8-8v-75.161C302.818 857.341 167.659 722.182 149.161 552H72a8 8 0 0 1-8-8v-64a8 8 0 0 1 8-8h77.161C167.659 301.818 302.818 166.659 473 148.161V71z m326 441c0-157.953-128.047-286-286-286S227 354.047 227 512s128.047 286 286 286 286-128.047 286-286z m-286 60c33.137 0 60-26.863 60-60s-26.863-60-60-60-60 26.863-60 60 26.863 60 60 60z",onclick(){antDesignVue.Modal.info({title:"说明信息",content:ct.toolboxInfoText})}}}},title:{text:ct.titleText,subText:ct.titleSubtext,textStyle:{fontSize:ct.titleFontSize,fontWeight:ct.fontWeight,color:ct.titleColor},left:ct.textAlign},grid:{top:ct.gridTop,bottom:ct.gridBottom,left:ct.gridLeft,right:ct.gridRight,containLabel:ct.gridContainLabel},color:ct.colors,tooltip:{trigger:"axis",textStyle:{fontSize:gr.value,color:ct.tooltipTextStyleColor},show:ct.tooltipShow,formatter:Rr=>{var Ur;const Qr=Rr.length;let Kr="",Hr=ct.tooltipFormatter;Cr=(Ur=Rr[0])==null?void 0:Ur.data,Hr===""&&(Hr="{marker} {a} {c}");for(let Jr=0;Jr<Qr;Jr++){const{marker:Yr,seriesName:si,name:fi,value:_i,data:bi}=Rr[Jr]||{};if(Jr===0){let pi=fi;typeof fi=="string"&&fi[0]==="0"&&!isNaN(+fi)&&(pi=(+fi).toString()),Kr+=`${er(Dr,pi)}<br/>`}Kr+=jn(Hr,{textData:{marker:Yr,a:si,b:_i[0],c:_i[1]||0,...bi==null?void 0:bi.record}},{useNewline:!0,useSpace:!0}),Kr+="<br/>"}return Kr},position:ct.tooltipPosition||void 0},xAxis:{type:"value",boundaryGap:ct.isBoundaryGap,minInterval:ct.xAxisMinInterval,splitLine:{show:ct.xAxisSplitLineShow,lineStyle:{color:ct.xAxisSplitLineStyleColor},interval:ct.xAxisSplitLineInterval},splitArea:{show:ct.xAxisSplitAreaShow},axisLabel:{show:ct.xAxisLabelShow,color:ct.xAxisLabelColor,interval:ct.xAxisLabelInterval||0,rotate:ct.xAxisLabelRotate,width:ct.xAxisLabelWidth,overflow:ct.xAxisLabelOverflow,fontSize:ct.xAxisLabelFontSize,formatter(Rr){return typeof Rr=="string"&&Rr[0]==="0"&&!isNaN(+Rr)&&(Rr=(+Rr).toString()),er(Dr,Rr)}},axisLine:{show:ct.xAxisLineShow,lineStyle:{color:ct.xAxisLineStyleColor}},axisTick:{show:ct.xAxisTickShow},name:ct.xAxisName,nameTextStyle:{fontSize:ct.xAxisLabelFontSize,color:ct.xAxisLabelColor,align:"left"},max:ct.xAxisMaxValue||null},yAxis:{type:"value",minInterval:ct.yAxisMinInterval,splitLine:{show:ct.yAxisSplitLineShow,lineStyle:{color:ct.yAxisSplitLineStyleColor,type:ct.yAxisSplitLineType}},splitArea:{show:ct.yAxisSplitAreaShow},axisLabel:{show:ct.yAxisLabelShow,fontSize:ct.yAxisLabelFontSize,color:ct.yAxisLabelColor,formatter(Rr){return er(Gr,Rr)}},axisLine:{show:ct.yAxisLineAlwaysDisplay,lineStyle:{color:ct.yAxisLineStyleColor}},name:ct.yAxisName,nameTextStyle:{fontSize:ct.yAxisLabelFontSize,color:ct.yAxisLabelColor,align:"right"},max:ct.yAxisMaxValue||null},legend:{type:ct.legendScroll?"scroll":"plain",width:ct.legendWidth,height:ct.legendHeight,show:ct.legendShow,orient:ct.legendOrient,top:ct.legendTop,left:ct.legendLeft,textStyle:{lineHeight:(hr.value?ZOOM_FONT_SIZE:parseFloat(ct.legendFontSize))+8,rich:{text:{width:ct.legendTextWidth,color:ct.legendTextStyleColor,fontSize:hr.value?ZOOM_FONT_SIZE:ct.legendFontSize}}},itemHeight:ct.legendItemHeight,itemWidth:ct.legendItemWidth,itemGap:ct.legendItemGap,formatter:Rr=>getLegendFormat(ct.legendFormatter,{name:Rr})},series:vue.unref(pr)}}),Ar=()=>{hr.value=!1},{getGlobalModel:wr,setGlobalModel:_r,getRecordValueByKeyName:Tr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Dr=>{},setGlobalModel:(Dr,Gr)=>{},getRecordValueByKeyName:Dr=>{}}),Er=vue.computed(()=>ct.isShowMarkLine?{markLine:{data:[{type:ct.markLineType}]}}:{}),xr=(Dr,Gr,Rr,Qr,Kr,Hr,Ur,Jr)=>{const Yr=(-(Kr*Jr-Hr*Ur)/(Ur-Kr)+(Dr*Qr-Gr*Rr)/(Rr-Dr))/((Qr-Gr)/(Rr-Dr)-(Jr-Hr)/(Ur-Kr)),si=(Qr-Gr)/(Rr-Dr)*(-(Kr*Jr-Hr*Ur)/(Ur-Kr)+(Dr*Qr-Gr*Rr)/(Rr-Dr))/((Qr-Gr)/(Rr-Dr)-(Jr-Hr)/(Ur-Kr))-(Dr*Qr-Gr*Rr)/(Rr-Dr);return[Yr,si]},Sr=()=>{var Rr;const Dr={symbol:"circle",tooltip:{trigger:"item",formatter:Qr=>{let Kr="",Hr=ct.markPointFormatter;Hr===""&&(Hr="{x}, {y}");const{data:{coord:Ur=[]}}=Qr||{};return Kr+=jn(Hr,{textData:{x:Ur[0]||0,y:Ur[1]||0}},{useNewline:!0,useSpace:!0}),Kr+="<br/>",Kr}},data:[]},{axisMarkPoint:Gr=[]}=ct;for(const Qr of Gr){const{coord:Kr=""}=Qr,Hr=[];let Ur=[];if(Kr.includes("getIntersectPoint")){const Jr=(Rr=Kr.match(/getIntersectPoint\((.*?)\)/)[1])==null?void 0:Rr.split(",");if((Jr==null?void 0:Jr.length)===8){const Yr=[];for(const si of Jr){const fi=si.replaceAll(" ","");(fi==null?void 0:fi.slice(0,1))==="{"&&(fi==null?void 0:fi.slice(-1))==="}"?Yr.push(+Tr(fi)||0):Yr.push(+fi)}Ur=xr(...Yr)}}else Ur=Kr.split(",");(Ur==null?void 0:Ur.length)===2&&(Hr[0]=+Ur[0],Hr[1]=+Ur[1]),Hr!=null&&Hr.length&&Dr.data.push({coord:Hr,symbolSize:Qr.symbolSize,itemStyle:{color:Qr.pointColor||"transparent",borderWidth:Qr.borderWidth||"transparent",borderColor:Qr.borderColor||"transparent"},label:{formatter:Qr.label,position:Qr.labelPosition,color:Qr.labelColor||"transparent"}})}return Dr},kr=Dr=>{var Yr,si,fi;const Gr=lodashEs.cloneDeep(Dr),{graphicConfig:Rr,customPoint:Qr=""}=ct,Kr={},Hr={},{formFields:Ur={}}=Rr;let Jr=[];if(Qr){Jr=JSON.parse(Qr);for(const _i of Jr)for(const bi in _i)typeof _i[bi]=="string"&&((Yr=_i[bi])==null?void 0:Yr.slice(0,1))==="{"&&((si=_i[bi])==null?void 0:si.slice(-1))==="}"&&(_i[bi]=Tr(_i[bi])||0)}Jr!=null&&Jr.length&&Gr.push(...Jr),ct.dataType==="static"?(Hr.name="name",Hr.values=["value","value2"]):(Hr.name=(Ur==null?void 0:Ur.labelField)||"name",Hr.values=(Ur==null?void 0:Ur.valueField)||["value","value2"]);for(const _i of Gr){const{values:bi,name:pi}=Hr;for(const mi of bi){const xi={value:[_i[pi],_i[mi]],record:_i};Tn(Kr,mi)?Kr[mi].push(xi):Kr[mi]=[xi]}}if((fi=Object.keys(Kr))!=null&&fi.length){const _i=[];for(const bi in Kr)_i.push({name:bi,data:Kr[bi]});return _i}else return[]},Pr=(Dr=[])=>{const Gr=kr(Dr),Rr=[],Qr=Gr.length;for(let Kr=0;Kr<Qr;Kr++){const Hr={},Ur={};Kr===0&&(Ur.markPoint=Sr()),ct.shadowColor&&(Hr.shadowColor=ct.shadowColor,Hr.shadowBlur=ct.shadowBlur,Hr.shadowOffsetY=ct.shadowOffsetY,Hr.shadowOffsetX=ct.shadowOffsetX);let Jr=ct.colors[Kr];if(!Jr&&ct.colors.length){const Yr=(Kr+1)%ct.colors.length-1;Jr=Yr>0?ct.colors[Yr]:ct.colors[0]}Jr||(Jr="#5470C6"),Rr.push({type:"line",...Ur,...Gr[Kr],symbolSize:ct.symbolSize,smooth:ct.smooth,areaStyle:{color:ct.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:Jr},{offset:1,color:ct.areaGradientColor||"transparent"}],global:!1}:Jr,opacity:ct.areaStyleOpacity},lineStyle:{width:ct.lineStyleWidth,...Hr},...vue.unref(Er)})}pr.value=Rr},Ir=(Dr=[])=>{const Gr=kr(Dr),Rr=[],Qr=Gr.length;for(let Kr=0;Kr<Qr;Kr++){const Hr={};ct.shadowColor&&(Hr.shadowColor=ct.shadowColor,Hr.shadowBlur=ct.shadowBlur,Hr.shadowOffsetY=ct.shadowOffsetY,Hr.shadowOffsetX=ct.shadowOffsetX);const Ur={};Kr===0&&(Ur.markPoint=Sr());let Jr=ct.colors[Kr];if(!Jr&&ct.colors.length){const Yr=(Kr+1)%ct.colors.length-1;Jr=Yr>0?ct.colors[Yr]:ct.colors[0]}Jr||(Jr="#5470C6"),Rr.push({type:"line",...Gr[Kr],symbolSize:ct.symbolSize,smooth:ct.smooth,areaStyle:{color:ct.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:Jr},{offset:1,color:ct.areaGradientColor||"transparent"}],global:!1}:Jr,opacity:ct.areaStyleOpacity},lineStyle:{width:ct.lineStyleWidth,...Hr},...vue.unref(Er),...Ur})}pr.value=Rr};vue.watch(()=>[ct.data,ct.dataType,ct.symbolSize,ct.smooth,ct.lineStyleWidth,ct.areaStyleOpacity,ct.areaGradientShow,ct.areaGradientColor,ct.shadowColor,ct.shadowBlur,ct.shadowOffsetY,ct.shadowOffsetX,ct.legendFontSize,ct.isShowMarkLine,ct.markLineType,ct.legendFormatter,ct.legendWidth,ct.legendHeight,ct.legendTextWidth,ct.legendScroll],([Dr])=>{(ct.dataType==="static"||vue.unref(ur)==="design")&&Pr(Dr)},{immediate:!0,deep:!0});const Br=vue.ref(!1),Or=useRequestData(ct),Nr=async()=>{var Dr,Gr;if(ct.dataType==="request")try{Br.value=!0;const Rr=await Or();Pr((Gr=(Dr=Rr==null?void 0:Rr.data)==null?void 0:Dr.data)==null?void 0:Gr.rows)}catch(Rr){console.error(Rr)}finally{Br.value=!1}},jr=useEmitEvent(ct);_r(ct.id,{type:ct.type,RECORD:""});const Vr=jr("click",Dr=>{const Gr=wr(ct.id);_r(ct.id,{...Gr,type:ct.type,RECORD:ct.tooltipShow?Cr:Dr.data})}),$r=Dr=>{fr.value.chart.containPixel("grid",[Dr.offsetX,Dr.offsetY])&&Vr()};ct.tooltipShow?yr.value["zr:click"]=$r:yr.value.click=Vr;const zr=Dr=>{var Rr;const{rows:Gr=[]}=((Rr=Dr==null?void 0:Dr.data)==null?void 0:Rr.data)??{};Ir(Gr)},Wr=useIndicatorData(ct,Dr=>{ct.isViewRedrawing&&fr.value.clear(),zr(Dr)}),qr=async()=>{try{Br.value=!0;const Dr=await Wr();zr(Dr)}catch(Dr){console.error(Dr)}finally{Br.value=!1}},Mr=async()=>{switch(ct.dataType){case"indicator":await qr();break;case"request":await Nr();break}};useOnEvent(ct,{refreshData:Mr,resetRecord:()=>{const Dr=ct.id,Gr=wr(Dr);_r(Dr,{...Gr,RECORD:""})},click:Vr});const{setRequest:Fr}=vue.inject(REQUEST_MODEL,{setRequest:Dr=>{}});return typeof Fr=="function"&&Fr({id:ct.id,requestFn:Mr,sortNum:ct.requestSort}),Dn({refreshData:Mr}),{option:br,style:vr,click:Vr,loading:Br,onClose:Ar,ecanModal:mr,eventObj:yr,echartRef:fr}}}),ValueLine_vue_vue_type_style_index_0_lang="";function _sfc_render$2(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("echarts"),pr=vue.resolveComponent("spin"),mr=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-value-line",style:vue.normalizeStyle(ct.style)},[vue.createVNode(pr,{spinning:ct.loading},{default:vue.withCtx(()=>[vue.createVNode(vr,vue.mergeProps({ref:"echartRef",option:ct.option,autoresize:""},vue.toHandlers(ct.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),vue.createVNode(mr,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:ct.onClose},{default:vue.withCtx(()=>[vue.createVNode(pr,{class:"spin-wrap",spinning:ct.loading},{default:vue.withCtx(()=>[vue.createVNode(vr,{option:ct.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),vue.renderSlot(ct.$slots,"toolbox")],4)}const ValueLine=_export_sfc$1(_sfc_main$2,[["render",_sfc_render$2]]),EcanValueLine=withInstall$1(ValueLine),indexPanelProps={...props$1,name:"指标面板",keyName:"指标面板",type:"ecanIndexPanel",width:"360px",height:"210px",zIndex:1,borderRadius:"5",borderWidth:"",borderColor:"",componentIds:[],componentConfig:{},data:{},dataType:"indicator",graphicConfig:{},theFlag:"",backgroundColor:""},indexPanelComponentProps=transformToComponentProps(indexPanelProps),indexPanelEvents=["refreshData"],_sfc_main$1=vue.defineComponent({name:"EcanIndexPanel",components:{Skeleton},props:{...indexPanelComponentProps},setup(ct,{expose:Dn}){vue.provide("insideIndexPanel",!0);const ur=vue.ref(!1),dr=vue.ref(),fr=usePickComponentStyle(ct),{pageMode:hr}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),vr=vue.inject("triggerRefresh",Tr=>{}),pr=vue.inject("usedComponentList",[]),mr=vue.computed(()=>{const{borderRadius:Tr}=ct,Er=[],xr={};if(Tr){const Sr=Tr.split(",");for(const kr of Sr)(+kr||+kr==0)&&Er.push(+kr+"px")}return Er!=null&&Er.length&&(xr.borderRadius=Er.join(" ")),ct.borderWidth&&ct.borderColor&&(xr.border=`${ct.borderWidth} solid ${ct.borderColor}`),vue.unref(hr)==="design"&&!xr.border&&(xr.border="1px solid #a8a8a8"),ct.backgroundColor?xr.backgroundColor=ct.backgroundColor:vue.unref(dr)?xr.backgroundColor=vue.unref(dr):xr.backgroundColor="#B3AFAF",xr}),gr=Tr=>{var xr;const{rows:Er}=((xr=Tr==null?void 0:Tr.data)==null?void 0:xr.data)||{};if(Er){const{componentIds:Sr,componentConfig:kr,graphicConfig:Pr}=ct,Ir=[],Br=Pr==null?void 0:Pr.indicators.find(Or=>Or.show);dr.value=Er.color;for(const Or of Sr){const Nr=vue.unref(pr).find(Wr=>Wr.id===Or),jr=kr[Or],{text:Vr=""}=Nr||{};let $r=Er[jr.key],zr="";if(jr.key==="systemSource"){const Wr=$r.split(",");(Wr==null?void 0:Wr.length)>3&&($r=Wr.slice(0,3).join(",")+"等",zr=Er[jr.key])}else jr.key==="indexName"&&($r=Br==null?void 0:Br.label);Ir.push({id:Or,text:Vr.includes("{value}")||Vr.includes("{")||Vr.includes("}")?Vr:"{value}",data:{...Er,value:$r},titleContent:zr})}vr(Ir)}},yr=useIndicatorData(ct,gr),Cr=async()=>{try{ur.value=!0;const Tr=await yr();gr(Tr)}catch(Tr){console.error(Tr)}finally{ur.value=!1}},br=async()=>{switch(ct.dataType){case"indicator":await Cr();break}},{setRequest:Ar}=vue.inject(REQUEST_MODEL,{setRequest:({id:Tr,sortNum:Er,requestFn:xr})=>{}});typeof Ar=="function"&&Ar({id:ct.id,requestFn:br,sortNum:ct.requestSort});const _r=useEmitEvent(ct)("click");return useOnEvent(ct,{refreshData:br}),Dn({refreshData:br}),{loading:ur,style:fr,customStyle:mr,click:_r}}});function _sfc_render$1(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("skeleton");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-index-panel",style:vue.normalizeStyle(ct.loading?{}:{...ct.style,...ct.customStyle}),onClick:Dn[0]||(Dn[0]=(...pr)=>ct.click&&ct.click(...pr))},[ct.loading?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:vue.normalizeStyle(ct.style)},[vue.createVNode(vr,{loading:ct.loading},null,8,["loading"])],4)):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[vue.renderSlot(ct.$slots,"children"),vue.renderSlot(ct.$slots,"toolbox")],64))],4)}const IndexPanel=_export_sfc$1(_sfc_main$1,[["render",_sfc_render$1]]),EcanIndexPanel=withInstall$1(IndexPanel),aiAnalyzeProps={...props$1,name:"AI分析",keyName:"AI分析",type:"ecanAiAnalyze",width:"400px",height:"100px",zIndex:1,data:{},dataType:"component",graphicConfig:{},promptText:"",associatId:[],fontSize:"18px",lineHeight:"18PX"},aiAnalyzeComponentProps=transformToComponentProps(aiAnalyzeProps),aiAnalyzeEvents=["refreshData"];async function getBytes(ct,Dn){const ur=ct.getReader();let dr;for(;!(dr=await ur.read()).done;)Dn(dr.value)}function getLines(ct){let Dn,ur,dr,fr=!1;return function(vr){Dn===void 0?(Dn=vr,ur=0,dr=-1):Dn=concat(Dn,vr);const pr=Dn.length;let mr=0;for(;ur<pr;){fr&&(Dn[ur]===10&&(mr=++ur),fr=!1);let gr=-1;for(;ur<pr&&gr===-1;++ur)switch(Dn[ur]){case 58:dr===-1&&(dr=ur-mr);break;case 13:fr=!0;case 10:gr=ur;break}if(gr===-1)break;ct(Dn.subarray(mr,gr),dr),mr=ur,dr=-1}mr===pr?Dn=void 0:mr!==0&&(Dn=Dn.subarray(mr),ur-=mr)}}function getMessages(ct,Dn,ur){let dr=newMessage();const fr=new TextDecoder;return function(vr,pr){if(vr.length===0)ur==null||ur(dr),dr=newMessage();else if(pr>0){const mr=fr.decode(vr.subarray(0,pr)),gr=pr+(vr[pr+1]===32?2:1),yr=fr.decode(vr.subarray(gr));switch(mr){case"data":dr.data=dr.data?dr.data+`
|
|
212
212
|
`+yr:yr;break;case"event":dr.event=yr;break;case"id":ct(dr.id=yr);break;case"retry":const Cr=parseInt(yr,10);isNaN(Cr)||Dn(dr.retry=Cr);break}}}}function concat(ct,Dn){const ur=new Uint8Array(ct.length+Dn.length);return ur.set(ct),ur.set(Dn,ct.length),ur}function newMessage(){return{data:"",event:"",id:"",retry:void 0}}var __rest=globalThis&&globalThis.__rest||function(ct,Dn){var ur={};for(var dr in ct)Object.prototype.hasOwnProperty.call(ct,dr)&&Dn.indexOf(dr)<0&&(ur[dr]=ct[dr]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fr=0,dr=Object.getOwnPropertySymbols(ct);fr<dr.length;fr++)Dn.indexOf(dr[fr])<0&&Object.prototype.propertyIsEnumerable.call(ct,dr[fr])&&(ur[dr[fr]]=ct[dr[fr]]);return ur};const EventStreamContentType="text/event-stream",DefaultRetryInterval=1e3,LastEventId="last-event-id";function fetchEventSource(ct,Dn){var{signal:ur,headers:dr,onopen:fr,onmessage:hr,onclose:vr,onerror:pr,openWhenHidden:mr,fetch:gr}=Dn,yr=__rest(Dn,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((Cr,br)=>{const Ar=Object.assign({},dr);Ar.accept||(Ar.accept=EventStreamContentType);let wr;function _r(){wr.abort(),document.hidden||Pr()}mr||document.addEventListener("visibilitychange",_r);let Tr=DefaultRetryInterval,Er=0;function xr(){document.removeEventListener("visibilitychange",_r),window.clearTimeout(Er),wr.abort()}ur==null||ur.addEventListener("abort",()=>{xr(),Cr()});const Sr=gr??window.fetch,kr=fr??defaultOnOpen;async function Pr(){var Ir;wr=new AbortController;try{const Br=await Sr(ct,Object.assign(Object.assign({},yr),{headers:Ar,signal:wr.signal}));await kr(Br),await getBytes(Br.body,getLines(getMessages(Or=>{Or?Ar[LastEventId]=Or:delete Ar[LastEventId]},Or=>{Tr=Or},hr))),vr==null||vr(),xr(),Cr()}catch(Br){if(!wr.signal.aborted)try{const Or=(Ir=pr==null?void 0:pr(Br))!==null&&Ir!==void 0?Ir:Tr;window.clearTimeout(Er),Er=window.setTimeout(Pr,Or)}catch(Or){xr(),br(Or)}}}Pr()})}function defaultOnOpen(ct){const Dn=ct.headers.get("content-type");if(!(Dn!=null&&Dn.startsWith(EventStreamContentType)))throw new Error(`Expected content-type to be ${EventStreamContentType}, Actual: ${Dn}`)}const _sfc_main=vue.defineComponent({name:"EcanAiAnalyze",components:{Skeleton},props:{...aiAnalyzeComponentProps},setup(ct,{expose:Dn}){const ur=vue.ref(!0),dr=vue.ref(""),fr=vue.ref(""),hr=usePickComponentStyle(ct),{pageMode:vr}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),{allComponentResData:pr}=vue.inject(All_COMPONENT_RES_DATA,{allComponentResData:{}}),mr=vue.inject("usedComponentList",[]),gr=Sr=>{var Pr;const{rows:kr}=((Pr=Sr==null?void 0:Sr.data)==null?void 0:Pr.data)||{};kr&&console.log(kr)},yr=useIndicatorData(ct,gr),Cr=async()=>{try{ur.value=!0;const Sr=await yr();gr(Sr)}catch(Sr){console.error(Sr)}finally{ur.value=!1}},br=()=>{const Sr=document.querySelector(`.ecan-ai-analyze[cpntid="${ct.id}"]`);Sr==null||Sr.scrollTo({top:Sr.scrollHeight,behavior:"smooth"})},Ar=async()=>{var Br;const Sr={},{associatId:kr}=ct;if(kr!=null&&kr.length)for(const Or of kr){const Nr=vue.unref(mr).find(jr=>jr.id===Or);Nr&&((Nr==null?void 0:Nr.dataType)==="static"?Sr[Nr.keyName]=(Nr==null?void 0:Nr.data)||[]:Or&&Tn(vue.unref(pr),Or)&&(Sr[Nr.keyName]=(Br=vue.unref(pr)[Or])==null?void 0:Br.rows))}let Pr=ct.promptText;const Ir=Pr==null?void 0:Pr.match(/\{(.+?)\}/g);if(Ir!=null&&Ir.length)for(const Or of Ir){const Nr=Or,jr=Or.slice(1,-1);let Vr=Sr[jr];Vr?Vr=JSON.stringify(Vr):Vr="【unknown】",Pr=Pr.replace(Nr,Vr)}else for(const Or in Sr)Pr+=Sr[Or]?JSON.stringify(Sr[Or]):"【unknown】";if(Pr){ur.value=!0,dr.value="",fr.value="";let Or="";xr(`${INDICATOR_URL}/ai/chat`,{query:Pr},Nr=>{Or+=`${(Nr==null?void 0:Nr.answer)||""}`,dr.value=esmEntry(Or),br()})}},wr=async()=>{switch(ct.dataType){case"indicator":await Cr();break;case"component":Ar();break}},{setRequest:_r}=vue.inject(REQUEST_MODEL,{setRequest:({id:Sr,sortNum:kr,requestFn:Pr})=>{}});typeof _r=="function"&&_r({id:ct.id,requestFn:wr,sortNum:ct.requestSort});const Er=useEmitEvent(ct)("click");useOnEvent(ct,{refreshData:wr}),Dn({refreshData:wr});function xr(Sr,kr,Pr){const Ir=new AbortController,{signal:Br}=Ir;return new Promise(Or=>{var Nr,jr;fetchEventSource(Sr,{signal:Br,method:"POST",headers:{Accept:"application/json, application/xml, text/plain, */*",Authentication:((Nr=window==null?void 0:window.config)==null?void 0:Nr.indicatorToken)||"",dataSourceKey:((jr=window==null?void 0:window.config)==null?void 0:jr.dataSourceKey)||"","Content-Type":"application/json;charset=UTF-8",operateContext:"",pageFlag:!0,pageId:getPageId()},body:JSON.stringify(kr),onmessage(Vr){let $r="";try{$r=JSON.parse(Vr.data)}catch{}if($r)try{if(Pr($r)===!1)throw ur.value=!1,fr.value="暂无分析结果",Error("回调报错停止")}catch{throw ur.value=!1,fr.value="暂无分析结果",Error("回调报错停止")}},onclose(Vr){ur.value=!1,Pr(Vr),Or({code:200,data:{success:!1,message:"连接关闭"}})},onerror(Vr){throw ur.value=!1,Or({code:500,data:{success:!1,message:"连接报错"}}),Vr},openWhenHidden:!0,async onopen(Vr){if(Vr.status===200)ur.value=!1;else throw ur.value=!1,fr.value="暂无分析结果",new Error(`SSE连接失败: ${Vr.status}`)}})})}return{loading:ur,style:hr,pageMode:vr,myText:dr,errorText:fr,click:Er}}}),AiAnalyze_vue_vue_type_style_index_0_scoped_dd0bc754_lang="",_hoisted_1={key:0,class:"error-wrap"},_hoisted_2=["innerHTML"],_hoisted_3={key:2,class:"design-wrap"};function _sfc_render(ct,Dn,ur,dr,fr,hr){const vr=vue.resolveComponent("skeleton");return ct.loading&&ct.pageMode!=="design"?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:vue.normalizeStyle(ct.style)},[vue.createVNode(vr,{loading:ct.loading},null,8,["loading"])],4)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"ecan-ai-analyze",style:vue.normalizeStyle(ct.style),onClick:Dn[0]||(Dn[0]=(...pr)=>ct.click&&ct.click(...pr))},[ct.errorText?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1,vue.toDisplayString(ct.errorText),1)):ct.pageMode!=="design"?(vue.openBlock(),vue.createElementBlock("div",{key:1,innerHTML:ct.myText},null,8,_hoisted_2)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_3,"AI 分析"))],4))}const AiAnalyze=_export_sfc$1(_sfc_main,[["render",_sfc_render],["__scopeId","data-v-dd0bc754"]]),EcanAiAnalyze=withInstall$1(AiAnalyze),components=Object.freeze(Object.defineProperty({__proto__:null,EcanAiAnalyze,EcanBar,EcanBorder,EcanBoxplot,EcanBudget,EcanButton,EcanCheckbox,EcanCirculate,EcanComboGraph,EcanCounter,EcanCustomGraph,EcanDataSelect,EcanDatePicker,EcanFlowLayout,EcanGauge,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,aiAnalyzeComponentProps,aiAnalyzeEvents,aiAnalyzeProps,barComponentProps,barEvents,barProps,borderComponentProps,borderEvents,borderProps,boxplotComponentProps,boxplotEvents,boxplotProps,budgetComponentProps,budgetEvents,budgetProps,buttonComponentProps,buttonEvents,buttonProps,checkboxComponentProps,checkboxEvents,checkboxProps:checkboxProps$1,circulateComponentProps,circulateEvents,circulateProps,comboGraphComponentProps,comboGraphEvents,comboGraphProps,counterComponentProps,counterEvents,counterProps,customGraphComponentProps,customGraphProps,dataSelectComponentProps,dataSelectEvents,dataSelectProps,datePickerComponentProps,datePickerEvents,datePickerProps:datePickerProps$1,flowLayoutComponentProps,flowLayoutEvents,flowLayoutProps,gaugeComponentProps,gaugeEvents,gaugeProps,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=ct=>ct!==null&&typeof ct=="object",isDef=ct=>ct!=null,isFunction=ct=>typeof ct=="function",isPromise=ct=>isObject$1(ct)&&isFunction(ct.then)&&isFunction(ct.catch),isDate=ct=>Object.prototype.toString.call(ct)==="[object Date]"&&!Number.isNaN(ct.getTime()),isNumeric=ct=>typeof ct=="number"||/^\d+(\.\d+)?$/.test(ct),isIOS$1=()=>inBrowser$1?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1;function get(ct,Dn){const ur=Dn.split(".");let dr=ct;return ur.forEach(fr=>{var hr;dr=isObject$1(dr)&&(hr=dr[fr])!=null?hr:""}),dr}function pick(ct,Dn,ur){return Dn.reduce((dr,fr)=>((!ur||ct[fr]!==void 0)&&(dr[fr]=ct[fr]),dr),{})}const isSameValue=(ct,Dn)=>JSON.stringify(ct)===JSON.stringify(Dn),toArray=ct=>Array.isArray(ct)?ct:[ct],flat=ct=>ct.reduce((Dn,ur)=>Dn.concat(ur),[]),unknownProp=null,numericProp=[Number,String],truthProp={type:Boolean,default:!0},makeRequiredProp=ct=>({type:ct,required:!0}),makeArrayProp=()=>({type:Array,default:()=>[]}),makeNumericProp=ct=>({type:numericProp,default:ct}),makeStringProp=ct=>({type:String,default:ct});var inBrowser=typeof window<"u";function raf(ct){return inBrowser?requestAnimationFrame(ct):-1}function cancelRaf(ct){inBrowser&&cancelAnimationFrame(ct)}function doubleRaf(ct){raf(()=>raf(ct))}var isWindow=ct=>ct===window,makeDOMRect=(ct,Dn)=>({top:0,left:0,right:ct,bottom:Dn,width:ct,height:Dn}),useRect=ct=>{const Dn=vue.unref(ct);if(isWindow(Dn)){const ur=Dn.innerWidth,dr=Dn.innerHeight;return makeDOMRect(ur,dr)}return Dn!=null&&Dn.getBoundingClientRect?Dn.getBoundingClientRect():makeDOMRect(0,0)};function useParent(ct){const Dn=vue.inject(ct,null);if(Dn){const ur=vue.getCurrentInstance(),{link:dr,unlink:fr,internalChildren:hr}=Dn;dr(ur),vue.onUnmounted(()=>fr(ur));const vr=vue.computed(()=>hr.indexOf(ur));return{parent:Dn,index:vr}}return{parent:null,index:vue.ref(-1)}}function flattenVNodes(ct){const Dn=[],ur=dr=>{Array.isArray(dr)&&dr.forEach(fr=>{var hr;vue.isVNode(fr)&&(Dn.push(fr),(hr=fr.component)!=null&&hr.subTree&&(Dn.push(fr.component.subTree),ur(fr.component.subTree.children)),fr.children&&ur(fr.children))})};return ur(ct),Dn}var findVNodeIndex=(ct,Dn)=>{const ur=ct.indexOf(Dn);return ur===-1?ct.findIndex(dr=>Dn.key!==void 0&&Dn.key!==null&&dr.type===Dn.type&&dr.key===Dn.key):ur};function sortChildren(ct,Dn,ur){const dr=flattenVNodes(ct.subTree.children);ur.sort((hr,vr)=>findVNodeIndex(dr,hr.vnode)-findVNodeIndex(dr,vr.vnode));const fr=ur.map(hr=>hr.proxy);Dn.sort((hr,vr)=>{const pr=fr.indexOf(hr),mr=fr.indexOf(vr);return pr-mr})}function useChildren(ct){const Dn=vue.reactive([]),ur=vue.reactive([]),dr=vue.getCurrentInstance();return{children:Dn,linkChildren:hr=>{const vr=mr=>{mr.proxy&&(ur.push(mr),Dn.push(mr.proxy),sortChildren(dr,Dn,ur))},pr=mr=>{const gr=ur.indexOf(mr);Dn.splice(gr,1),ur.splice(gr,1)};vue.provide(ct,Object.assign({link:vr,unlink:pr,children:Dn,internalChildren:ur},hr))}}}function onMountedOrActivated(ct){let Dn;vue.onMounted(()=>{ct(),vue.nextTick(()=>{Dn=!0})}),vue.onActivated(()=>{Dn&&ct()})}function useEventListener(ct,Dn,ur={}){if(!inBrowser)return;const{target:dr=window,passive:fr=!1,capture:hr=!1}=ur;let vr=!1,pr;const mr=Cr=>{if(vr)return;const br=vue.unref(Cr);br&&!pr&&(br.addEventListener(ct,Dn,{capture:hr,passive:fr}),pr=!0)},gr=Cr=>{if(vr)return;const br=vue.unref(Cr);br&&pr&&(br.removeEventListener(ct,Dn,hr),pr=!1)};vue.onUnmounted(()=>gr(dr)),vue.onDeactivated(()=>gr(dr)),onMountedOrActivated(()=>mr(dr));let yr;return vue.isRef(dr)&&(yr=vue.watch(dr,(Cr,br)=>{gr(br),mr(Cr)})),()=>{yr==null||yr(),gr(dr),vr=!0}}var width,height;function useWindowSize(){if(!width&&(width=vue.ref(0),height=vue.ref(0),inBrowser)){const ct=()=>{width.value=window.innerWidth,height.value=window.innerHeight};ct(),window.addEventListener("resize",ct,{passive:!0}),window.addEventListener("orientationchange",ct,{passive:!0})}return{width,height}}var overflowScrollReg=/scroll|auto|overlay/i,defaultRoot=inBrowser?window:void 0;function isElement(ct){return ct.tagName!=="HTML"&&ct.tagName!=="BODY"&&ct.nodeType===1}function getScrollParent(ct,Dn=defaultRoot){let ur=ct;for(;ur&&ur!==Dn&&isElement(ur);){const{overflowY:dr}=window.getComputedStyle(ur);if(overflowScrollReg.test(dr))return ur;ur=ur.parentNode}return Dn}function useScrollParent(ct,Dn=defaultRoot){const ur=vue.ref();return vue.onMounted(()=>{ct.value&&(ur.value=getScrollParent(ct.value,Dn))}),ur}var visibility;function usePageVisibility(){if(!visibility&&(visibility=vue.ref("visible"),inBrowser)){const ct=()=>{visibility.value=document.hidden?"hidden":"visible"};ct(),window.addEventListener("visibilitychange",ct)}return visibility}var CUSTOM_FIELD_INJECTION_KEY=Symbol("van-field");function useCustomFieldValue(ct){const Dn=vue.inject(CUSTOM_FIELD_INJECTION_KEY,null);Dn&&!Dn.customValue.value&&(Dn.customValue.value=ct,vue.watch(ct,()=>{Dn.resetValidation(),Dn.validateWithTrigger("onChange")}))}function getScrollTop(ct){const Dn="scrollTop"in ct?ct.scrollTop:ct.pageYOffset;return Math.max(Dn,0)}function setScrollTop(ct,Dn){"scrollTop"in ct?ct.scrollTop=Dn:ct.scrollTo(ct.scrollX,Dn)}function getRootScrollTop(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function setRootScrollTop(ct){setScrollTop(window,ct),setScrollTop(document.body,ct)}function getElementTop(ct,Dn){if(ct===window)return 0;const ur=Dn?getScrollTop(Dn):getRootScrollTop();return useRect(ct).top+ur}const isIOS=isIOS$1();function resetScroll(){isIOS&&setRootScrollTop(getRootScrollTop())}const stopPropagation=ct=>ct.stopPropagation();function preventDefault(ct,Dn){(typeof ct.cancelable!="boolean"||ct.cancelable)&&ct.preventDefault(),Dn&&stopPropagation(ct)}function isHidden(ct){const Dn=vue.unref(ct);if(!Dn)return!1;const ur=window.getComputedStyle(Dn),dr=ur.display==="none",fr=Dn.offsetParent===null&&ur.position!=="fixed";return dr||fr}const{width:windowWidth,height:windowHeight}=useWindowSize();function addUnit(ct){if(isDef(ct))return isNumeric(ct)?`${ct}px`:String(ct)}function getSizeStyle(ct){if(isDef(ct)){if(Array.isArray(ct))return{width:addUnit(ct[0]),height:addUnit(ct[1])};const Dn=addUnit(ct);return{width:Dn,height:Dn}}}function getZIndexStyle(ct){const Dn={};return ct!==void 0&&(Dn.zIndex=+ct),Dn}let rootFontSize;function getRootFontSize(){if(!rootFontSize){const ct=document.documentElement,Dn=ct.style.fontSize||window.getComputedStyle(ct).fontSize;rootFontSize=parseFloat(Dn)}return rootFontSize}function convertRem(ct){return ct=ct.replace(/rem/g,""),+ct*getRootFontSize()}function convertVw(ct){return ct=ct.replace(/vw/g,""),+ct*windowWidth.value/100}function convertVh(ct){return ct=ct.replace(/vh/g,""),+ct*windowHeight.value/100}function unitToPx(ct){if(typeof ct=="number")return ct;if(inBrowser$1){if(ct.includes("rem"))return convertRem(ct);if(ct.includes("vw"))return convertVw(ct);if(ct.includes("vh"))return convertVh(ct)}return parseFloat(ct)}const camelizeRE=/-(\w)/g,camelize=ct=>ct.replace(camelizeRE,(Dn,ur)=>ur.toUpperCase()),kebabCase=ct=>ct.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,"");function padZero(ct,Dn=2){let ur=ct+"";for(;ur.length<Dn;)ur="0"+ur;return ur}const clamp=(ct,Dn,ur)=>Math.min(Math.max(ct,Dn),ur);function trimExtraChar(ct,Dn,ur){const dr=ct.indexOf(Dn);return dr===-1?ct:Dn==="-"&&dr!==0?ct.slice(0,dr):ct.slice(0,dr+1)+ct.slice(dr).replace(ur,"")}function formatNumber(ct,Dn=!0,ur=!0){Dn?ct=trimExtraChar(ct,".",/\./g):ct=ct.split(".")[0],ur?ct=trimExtraChar(ct,"-",/-/g):ct=ct.replace(/-/,"");const dr=Dn?/[^-0-9.]/g:/[^-0-9]/g;return ct.replace(dr,"")}const{hasOwnProperty}=Object.prototype;function assignKey(ct,Dn,ur){const dr=Dn[ur];isDef(dr)&&(!hasOwnProperty.call(ct,ur)||!isObject$1(dr)?ct[ur]=dr:ct[ur]=deepAssign(Object(ct[ur]),dr))}function deepAssign(ct,Dn){return Object.keys(Dn).forEach(ur=>{assignKey(ct,Dn,ur)}),ct}var stdin_default$o={name:"姓名",tel:"电话",save:"保存",clear:"清空",cancel:"取消",confirm:"确认",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",addContact:"添加联系人",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",weekdays:["日","一","二","三","四","五","六"],monthTitle:(ct,Dn)=>`${ct}年${Dn}月`,rangePrompt:ct=>`最多选择 ${ct} 天`},vanCascader:{select:"请选择"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无门槛",discount:ct=>`${ct}折`,condition:ct=>`满${ct}元可用`},vanCouponCell:{title:"优惠券",count:ct=>`${ct}张可用`},vanCouponList:{exchange:"兑换",close:"不使用",enable:"可用",disabled:"不可用",placeholder:"输入优惠码"},vanAddressEdit:{area:"地区",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",addressDetail:"详细地址",defaultAddress:"设为默认收货地址"},vanAddressList:{add:"新增地址"}};const lang=vue.ref("zh-CN"),messages=vue.reactive({"zh-CN":stdin_default$o}),Locale={messages(){return messages[lang.value]},use(ct,Dn){lang.value=ct,this.add({[ct]:Dn})},add(ct={}){deepAssign(messages,ct)}};var stdin_default$n=Locale;function createTranslate(ct){const Dn=camelize(ct)+".";return(ur,...dr)=>{const fr=stdin_default$n.messages(),hr=get(fr,Dn+ur)||get(fr,ur);return isFunction(hr)?hr(...dr):hr}}function genBem(ct,Dn){return Dn?typeof Dn=="string"?` ${ct}--${Dn}`:Array.isArray(Dn)?Dn.reduce((ur,dr)=>ur+genBem(ct,dr),""):Object.keys(Dn).reduce((ur,dr)=>ur+(Dn[dr]?genBem(ct,dr):""),""):""}function createBEM(ct){return(Dn,ur)=>(Dn&&typeof Dn!="string"&&(ur=Dn,Dn=""),Dn=Dn?`${ct}__${Dn}`:ct,`${Dn}${genBem(Dn,ur)}`)}function createNamespace(ct){const Dn=`van-${ct}`;return[Dn,createBEM(Dn),createTranslate(Dn)]}const BORDER="van-hairline",BORDER_TOP_BOTTOM=`${BORDER}--top-bottom`,BORDER_UNSET_TOP_BOTTOM=`${BORDER}-unset--top-bottom`,HAPTICS_FEEDBACK="van-haptics-feedback",FORM_KEY=Symbol("van-form"),TAP_OFFSET=5;function callInterceptor(ct,{args:Dn=[],done:ur,canceled:dr,error:fr}){if(ct){const hr=ct.apply(null,Dn);isPromise(hr)?hr.then(vr=>{vr?ur():dr&&dr()}).catch(fr||noop):hr?ur():dr&&dr()}else ur()}function withInstall(ct){return ct.install=Dn=>{const{name:ur}=ct;ur&&(Dn.component(ur,ct),Dn.component(camelize(`-${ur}`),ct))},ct}const POPUP_TOGGLE_KEY=Symbol();function onPopupReopen(ct){const Dn=vue.inject(POPUP_TOGGLE_KEY,null);Dn&&vue.watch(Dn,ur=>{ur&&ct()})}function useExpose(ct){const Dn=vue.getCurrentInstance();Dn&&extend(Dn.proxy,ct)}const routeProps={to:[String,Object],url:String,replace:Boolean};function route({to:ct,url:Dn,replace:ur,$router:dr}){ct&&dr?dr[ur?"replace":"push"](ct):Dn&&(ur?location.replace(Dn):location.href=Dn)}function useRoute(){const ct=vue.getCurrentInstance().proxy;return()=>route(ct)}const[name$n,bem$l]=createNamespace("badge"),badgeProps={dot:Boolean,max:numericProp,tag:makeStringProp("div"),color:String,offset:Array,content:numericProp,showZero:truthProp,position:makeStringProp("top-right")};var stdin_default$m=vue.defineComponent({name:name$n,props:badgeProps,setup(ct,{slots:Dn}){const ur=()=>{if(Dn.content)return!0;const{content:pr,showZero:mr}=ct;return isDef(pr)&&pr!==""&&(mr||pr!==0&&pr!=="0")},dr=()=>{const{dot:pr,max:mr,content:gr}=ct;if(!pr&&ur())return Dn.content?Dn.content():isDef(mr)&&isNumeric(gr)&&+gr>+mr?`${mr}+`:gr},fr=pr=>pr.startsWith("-")?pr.replace("-",""):`-${pr}`,hr=vue.computed(()=>{const pr={background:ct.color};if(ct.offset){const[mr,gr]=ct.offset,{position:yr}=ct,[Cr,br]=yr.split("-");Dn.default?(typeof gr=="number"?pr[Cr]=addUnit(Cr==="top"?gr:-gr):pr[Cr]=Cr==="top"?addUnit(gr):fr(gr),typeof mr=="number"?pr[br]=addUnit(br==="left"?mr:-mr):pr[br]=br==="left"?addUnit(mr):fr(mr)):(pr.marginTop=addUnit(gr),pr.marginLeft=addUnit(mr))}return pr}),vr=()=>{if(ur()||ct.dot)return vue.createVNode("div",{class:bem$l([ct.position,{dot:ct.dot,fixed:!!Dn.default}]),style:hr.value},[dr()])};return()=>{if(Dn.default){const{tag:pr}=ct;return vue.createVNode(pr,{class:bem$l("wrapper")},{default:()=>[Dn.default(),vr()]})}return vr()}}});const Badge=withInstall(stdin_default$m);let globalZIndex=2e3;const useGlobalZIndex=()=>++globalZIndex,setGlobalZIndex=ct=>{globalZIndex=ct},[name$m,bem$k]=createNamespace("config-provider"),CONFIG_PROVIDER_KEY=Symbol(name$m),configProviderProps={tag:makeStringProp("div"),theme:makeStringProp("light"),zIndex:Number,themeVars:Object,themeVarsDark:Object,themeVarsLight:Object,themeVarsScope:makeStringProp("local"),iconPrefix:String};function insertDash(ct){return ct.replace(/([a-zA-Z])(\d)/g,"$1-$2")}function mapThemeVarsToCSSVars(ct){const Dn={};return Object.keys(ct).forEach(ur=>{const dr=insertDash(kebabCase(ur));Dn[`--van-${dr}`]=ct[ur]}),Dn}function syncThemeVarsOnRoot(ct={},Dn={}){Object.keys(ct).forEach(ur=>{ct[ur]!==Dn[ur]&&document.documentElement.style.setProperty(ur,ct[ur])}),Object.keys(Dn).forEach(ur=>{ct[ur]||document.documentElement.style.removeProperty(ur)})}vue.defineComponent({name:name$m,props:configProviderProps,setup(ct,{slots:Dn}){const ur=vue.computed(()=>mapThemeVarsToCSSVars(extend({},ct.themeVars,ct.theme==="dark"?ct.themeVarsDark:ct.themeVarsLight)));if(inBrowser$1){const dr=()=>{document.documentElement.classList.add(`van-theme-${ct.theme}`)},fr=(hr=ct.theme)=>{document.documentElement.classList.remove(`van-theme-${hr}`)};vue.watch(()=>ct.theme,(hr,vr)=>{vr&&fr(vr),dr()},{immediate:!0}),vue.onActivated(dr),vue.onDeactivated(fr),vue.onBeforeUnmount(fr),vue.watch(ur,(hr,vr)=>{ct.themeVarsScope==="global"&&syncThemeVarsOnRoot(hr,vr)}),vue.watch(()=>ct.themeVarsScope,(hr,vr)=>{vr==="global"&&syncThemeVarsOnRoot({},ur.value),hr==="global"&&syncThemeVarsOnRoot(ur.value,{})}),ct.themeVarsScope==="global"&&syncThemeVarsOnRoot(ur.value,{})}return vue.provide(CONFIG_PROVIDER_KEY,ct),vue.watchEffect(()=>{ct.zIndex!==void 0&&setGlobalZIndex(ct.zIndex)}),()=>vue.createVNode(ct.tag,{class:bem$k(),style:ct.themeVarsScope==="local"?ur.value:void 0},{default:()=>{var dr;return[(dr=Dn.default)==null?void 0:dr.call(Dn)]}})}});const[name$l,bem$j]=createNamespace("icon"),isImage=ct=>ct==null?void 0:ct.includes("/"),iconProps={dot:Boolean,tag:makeStringProp("i"),name:String,size:numericProp,badge:numericProp,color:String,badgeProps:Object,classPrefix:String};var stdin_default$l=vue.defineComponent({name:name$l,props:iconProps,setup(ct,{slots:Dn}){const ur=vue.inject(CONFIG_PROVIDER_KEY,null),dr=vue.computed(()=>ct.classPrefix||(ur==null?void 0:ur.iconPrefix)||bem$j());return()=>{const{tag:fr,dot:hr,name:vr,size:pr,badge:mr,color:gr}=ct,yr=isImage(vr);return vue.createVNode(Badge,vue.mergeProps({dot:hr,tag:fr,class:[dr.value,yr?"":`${dr.value}-${vr}`],style:{color:gr,fontSize:addUnit(pr)},content:mr},ct.badgeProps),{default:()=>{var Cr;return[(Cr=Dn.default)==null?void 0:Cr.call(Dn),yr&&vue.createVNode("img",{class:bem$j("image"),src:vr},null)]}})}}});const Icon=withInstall(stdin_default$l),[name$k,bem$i]=createNamespace("loading"),SpinIcon=Array(12).fill(null).map((ct,Dn)=>vue.createVNode("i",{class:bem$i("line",String(Dn+1))},null)),CircularIcon=vue.createVNode("svg",{class:bem$i("circular"),viewBox:"25 25 50 50"},[vue.createVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),loadingProps={size:numericProp,type:makeStringProp("circular"),color:String,vertical:Boolean,textSize:numericProp,textColor:String};var stdin_default$k=vue.defineComponent({name:name$k,props:loadingProps,setup(ct,{slots:Dn}){const ur=vue.computed(()=>extend({color:ct.color},getSizeStyle(ct.size))),dr=()=>{const hr=ct.type==="spinner"?SpinIcon:CircularIcon;return vue.createVNode("span",{class:bem$i("spinner",ct.type),style:ur.value},[Dn.icon?Dn.icon():hr])},fr=()=>{var hr;if(Dn.default)return vue.createVNode("span",{class:bem$i("text"),style:{fontSize:addUnit(ct.textSize),color:(hr=ct.textColor)!=null?hr:ct.color}},[Dn.default()])};return()=>{const{type:hr,vertical:vr}=ct;return vue.createVNode("div",{class:bem$i([hr,{vertical:vr}]),"aria-live":"polite","aria-busy":!0},[dr(),fr()])}}});const Loading=withInstall(stdin_default$k),popupSharedProps={show:Boolean,zIndex:numericProp,overlay:truthProp,duration:numericProp,teleport:[String,Object],lockScroll:truthProp,lazyRender:truthProp,beforeClose:Function,overlayStyle:Object,overlayClass:unknownProp,transitionAppear:Boolean,closeOnClickOverlay:truthProp};function getDirection(ct,Dn){return ct>Dn?"horizontal":Dn>ct?"vertical":""}function useTouch(){const ct=vue.ref(0),Dn=vue.ref(0),ur=vue.ref(0),dr=vue.ref(0),fr=vue.ref(0),hr=vue.ref(0),vr=vue.ref(""),pr=vue.ref(!0),mr=()=>vr.value==="vertical",gr=()=>vr.value==="horizontal",yr=()=>{ur.value=0,dr.value=0,fr.value=0,hr.value=0,vr.value="",pr.value=!0};return{move:Ar=>{const wr=Ar.touches[0];ur.value=(wr.clientX<0?0:wr.clientX)-ct.value,dr.value=wr.clientY-Dn.value,fr.value=Math.abs(ur.value),hr.value=Math.abs(dr.value);const _r=10;(!vr.value||fr.value<_r&&hr.value<_r)&&(vr.value=getDirection(fr.value,hr.value)),pr.value&&(fr.value>TAP_OFFSET||hr.value>TAP_OFFSET)&&(pr.value=!1)},start:Ar=>{yr(),ct.value=Ar.touches[0].clientX,Dn.value=Ar.touches[0].clientY},reset:yr,startX:ct,startY:Dn,deltaX:ur,deltaY:dr,offsetX:fr,offsetY:hr,direction:vr,isVertical:mr,isHorizontal:gr,isTap:pr}}let totalLockCount=0;const BODY_LOCK_CLASS="van-overflow-hidden";function useLockScroll(ct,Dn){const ur=useTouch(),dr="01",fr="10",hr=yr=>{ur.move(yr);const Cr=ur.deltaY.value>0?fr:dr,br=getScrollParent(yr.target,ct.value),{scrollHeight:Ar,offsetHeight:wr,scrollTop:_r}=br;let Tr="11";_r===0?Tr=wr>=Ar?"00":"01":_r+wr>=Ar&&(Tr="10"),Tr!=="11"&&ur.isVertical()&&!(parseInt(Tr,2)&parseInt(Cr,2))&&preventDefault(yr,!0)},vr=()=>{document.addEventListener("touchstart",ur.start),document.addEventListener("touchmove",hr,{passive:!1}),totalLockCount||document.body.classList.add(BODY_LOCK_CLASS),totalLockCount++},pr=()=>{totalLockCount&&(document.removeEventListener("touchstart",ur.start),document.removeEventListener("touchmove",hr),totalLockCount--,totalLockCount||document.body.classList.remove(BODY_LOCK_CLASS))},mr=()=>Dn()&&vr(),gr=()=>Dn()&&pr();onMountedOrActivated(mr),vue.onDeactivated(gr),vue.onBeforeUnmount(gr),vue.watch(Dn,yr=>{yr?vr():pr()})}function useLazyRender(ct){const Dn=vue.ref(!1);return vue.watch(ct,ur=>{ur&&(Dn.value=ur)},{immediate:!0}),ur=>()=>Dn.value?ur():null}const useScopeId=()=>{var ct;const{scopeId:Dn}=((ct=vue.getCurrentInstance())==null?void 0:ct.vnode)||{};return Dn?{[Dn]:""}:null},[name$j,bem$h]=createNamespace("overlay"),overlayProps={show:Boolean,zIndex:numericProp,duration:numericProp,className:unknownProp,lockScroll:truthProp,lazyRender:truthProp,customStyle:Object,teleport:[String,Object]};var stdin_default$j=vue.defineComponent({name:name$j,props:overlayProps,setup(ct,{slots:Dn}){const ur=vue.ref(),dr=useLazyRender(()=>ct.show||!ct.lazyRender),fr=vr=>{ct.lockScroll&&preventDefault(vr,!0)},hr=dr(()=>{var vr;const pr=extend(getZIndexStyle(ct.zIndex),ct.customStyle);return isDef(ct.duration)&&(pr.animationDuration=`${ct.duration}s`),vue.withDirectives(vue.createVNode("div",{ref:ur,style:pr,class:[bem$h(),ct.className]},[(vr=Dn.default)==null?void 0:vr.call(Dn)]),[[vue.vShow,ct.show]])});return useEventListener("touchmove",fr,{target:ur}),()=>{const vr=vue.createVNode(vue.Transition,{name:"van-fade",appear:!0},{default:hr});return ct.teleport?vue.createVNode(vue.Teleport,{to:ct.teleport},{default:()=>[vr]}):vr}}});const Overlay=withInstall(stdin_default$j),popupProps=extend({},popupSharedProps,{round:Boolean,position:makeStringProp("center"),closeIcon:makeStringProp("cross"),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:makeStringProp("top-right"),safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),[name$i,bem$g]=createNamespace("popup");var stdin_default$i=vue.defineComponent({name:name$i,inheritAttrs:!1,props:popupProps,emits:["open","close","opened","closed","keydown","update:show","clickOverlay","clickCloseIcon"],setup(ct,{emit:Dn,attrs:ur,slots:dr}){let fr,hr;const vr=vue.ref(),pr=vue.ref(),mr=useLazyRender(()=>ct.show||!ct.lazyRender),gr=vue.computed(()=>{const Ir={zIndex:vr.value};if(isDef(ct.duration)){const Br=ct.position==="center"?"animationDuration":"transitionDuration";Ir[Br]=`${ct.duration}s`}return Ir}),yr=()=>{fr||(fr=!0,vr.value=ct.zIndex!==void 0?+ct.zIndex:useGlobalZIndex(),Dn("open"))},Cr=()=>{fr&&callInterceptor(ct.beforeClose,{done(){fr=!1,Dn("close"),Dn("update:show",!1)}})},br=Ir=>{Dn("clickOverlay",Ir),ct.closeOnClickOverlay&&Cr()},Ar=()=>{if(ct.overlay)return vue.createVNode(Overlay,vue.mergeProps({show:ct.show,class:ct.overlayClass,zIndex:vr.value,duration:ct.duration,customStyle:ct.overlayStyle,role:ct.closeOnClickOverlay?"button":void 0,tabindex:ct.closeOnClickOverlay?0:void 0},useScopeId(),{onClick:br}),{default:dr["overlay-content"]})},wr=Ir=>{Dn("clickCloseIcon",Ir),Cr()},_r=()=>{if(ct.closeable)return vue.createVNode(Icon,{role:"button",tabindex:0,name:ct.closeIcon,class:[bem$g("close-icon",ct.closeIconPosition),HAPTICS_FEEDBACK],classPrefix:ct.iconPrefix,onClick:wr},null)};let Tr;const Er=()=>{Tr&&clearTimeout(Tr),Tr=setTimeout(()=>{Dn("opened")})},xr=()=>Dn("closed"),Sr=Ir=>Dn("keydown",Ir),kr=mr(()=>{var Ir;const{round:Br,position:Or,safeAreaInsetTop:Nr,safeAreaInsetBottom:jr}=ct;return vue.withDirectives(vue.createVNode("div",vue.mergeProps({ref:pr,style:gr.value,role:"dialog",tabindex:0,class:[bem$g({round:Br,[Or]:Or}),{"van-safe-area-top":Nr,"van-safe-area-bottom":jr}],onKeydown:Sr},ur,useScopeId()),[(Ir=dr.default)==null?void 0:Ir.call(dr),_r()]),[[vue.vShow,ct.show]])}),Pr=()=>{const{position:Ir,transition:Br,transitionAppear:Or}=ct,Nr=Ir==="center"?"van-fade":`van-popup-slide-${Ir}`;return vue.createVNode(vue.Transition,{name:Br||Nr,appear:Or,onAfterEnter:Er,onAfterLeave:xr},{default:kr})};return vue.watch(()=>ct.show,Ir=>{Ir&&!fr&&(yr(),ur.tabindex===0&&vue.nextTick(()=>{var Br;(Br=pr.value)==null||Br.focus()})),!Ir&&fr&&(fr=!1,Dn("close"))}),useExpose({popupRef:pr}),useLockScroll(pr,()=>ct.show&&ct.lockScroll),useEventListener("popstate",()=>{ct.closeOnPopstate&&(Cr(),hr=!1)}),vue.onMounted(()=>{ct.show&&yr()}),vue.onActivated(()=>{hr&&(Dn("update:show",!0),hr=!1)}),vue.onDeactivated(()=>{ct.show&&ct.teleport&&(Cr(),hr=!0)}),vue.provide(POPUP_TOGGLE_KEY,()=>ct.show),()=>ct.teleport?vue.createVNode(vue.Teleport,{to:ct.teleport},{default:()=>[Ar(),Pr()]}):vue.createVNode(vue.Fragment,null,[Ar(),Pr()])}});const Popup=withInstall(stdin_default$i),[name$h,bem$f,t$1]=createNamespace("picker"),getFirstEnabledOption=ct=>ct.find(Dn=>!Dn.disabled)||ct[0];function getColumnsType(ct,Dn){const ur=ct[0];if(ur){if(Array.isArray(ur))return"multiple";if(Dn.children in ur)return"cascade"}return"default"}function findIndexOfEnabledOption(ct,Dn){Dn=clamp(Dn,0,ct.length);for(let ur=Dn;ur<ct.length;ur++)if(!ct[ur].disabled)return ur;for(let ur=Dn-1;ur>=0;ur--)if(!ct[ur].disabled)return ur;return 0}const isOptionExist=(ct,Dn,ur)=>Dn!==void 0&&!!ct.find(dr=>dr[ur.value]===Dn);function findOptionByValue(ct,Dn,ur){const dr=ct.findIndex(hr=>hr[ur.value]===Dn),fr=findIndexOfEnabledOption(ct,dr);return ct[fr]}function formatCascadeColumns(ct,Dn,ur){const dr=[];let fr={[Dn.children]:ct},hr=0;for(;fr&&fr[Dn.children];){const vr=fr[Dn.children],pr=ur.value[hr];if(fr=isDef(pr)?findOptionByValue(vr,pr,Dn):void 0,!fr&&vr.length){const mr=getFirstEnabledOption(vr)[Dn.value];fr=findOptionByValue(vr,mr,Dn)}hr++,dr.push(vr)}return dr}function getElementTranslateY(ct){const{transform:Dn}=window.getComputedStyle(ct),ur=Dn.slice(7,Dn.length-1).split(", ")[5];return Number(ur)}function assignDefaultFields(ct){return extend({text:"text",value:"value",children:"children"},ct)}const DEFAULT_DURATION=200,MOMENTUM_TIME=300,MOMENTUM_DISTANCE=15,[name$g,bem$e]=createNamespace("picker-column"),PICKER_KEY=Symbol(name$g);var stdin_default$h=vue.defineComponent({name:name$g,props:{value:numericProp,fields:makeRequiredProp(Object),options:makeArrayProp(),readonly:Boolean,allowHtml:Boolean,optionHeight:makeRequiredProp(Number),swipeDuration:makeRequiredProp(numericProp),visibleOptionNum:makeRequiredProp(numericProp)},emits:["change","clickOption","scrollInto"],setup(ct,{emit:Dn,slots:ur}){let dr,fr,hr,vr,pr;const mr=vue.ref(),gr=vue.ref(),yr=vue.ref(0),Cr=vue.ref(0),br=useTouch(),Ar=()=>ct.options.length,wr=()=>ct.optionHeight*(+ct.visibleOptionNum-1)/2,_r=jr=>{let Vr=findIndexOfEnabledOption(ct.options,jr);const $r=-Vr*ct.optionHeight,zr=()=>{Vr>Ar()-1&&(Vr=findIndexOfEnabledOption(ct.options,jr));const Wr=ct.options[Vr][ct.fields.value];Wr!==ct.value&&Dn("change",Wr)};dr&&$r!==yr.value?pr=zr:zr(),yr.value=$r},Tr=()=>ct.readonly||!ct.options.length,Er=jr=>{dr||Tr()||(pr=null,Cr.value=DEFAULT_DURATION,_r(jr),Dn("clickOption",ct.options[jr]))},xr=jr=>clamp(Math.round(-jr/ct.optionHeight),0,Ar()-1),Sr=vue.computed(()=>xr(yr.value)),kr=(jr,Vr)=>{const $r=Math.abs(jr/Vr);jr=yr.value+$r/.003*(jr<0?-1:1);const zr=xr(jr);Cr.value=+ct.swipeDuration,_r(zr)},Pr=()=>{dr=!1,Cr.value=0,pr&&(pr(),pr=null)},Ir=jr=>{if(!Tr()){if(br.start(jr),dr){const Vr=getElementTranslateY(gr.value);yr.value=Math.min(0,Vr-wr())}Cr.value=0,fr=yr.value,hr=Date.now(),vr=fr,pr=null}},Br=jr=>{if(Tr())return;br.move(jr),br.isVertical()&&(dr=!0,preventDefault(jr,!0));const Vr=clamp(fr+br.deltaY.value,-(Ar()*ct.optionHeight),ct.optionHeight),$r=xr(Vr);$r!==Sr.value&&Dn("scrollInto",ct.options[$r]),yr.value=Vr;const zr=Date.now();zr-hr>MOMENTUM_TIME&&(hr=zr,vr=Vr)},Or=()=>{if(Tr())return;const jr=yr.value-vr,Vr=Date.now()-hr;if(Vr<MOMENTUM_TIME&&Math.abs(jr)>MOMENTUM_DISTANCE){kr(jr,Vr);return}const zr=xr(yr.value);Cr.value=DEFAULT_DURATION,_r(zr),setTimeout(()=>{dr=!1},0)},Nr=()=>{const jr={height:`${ct.optionHeight}px`};return ct.options.map((Vr,$r)=>{const zr=Vr[ct.fields.text],{disabled:Wr}=Vr,qr=Vr[ct.fields.value],Mr={role:"button",style:jr,tabindex:Wr?-1:0,class:[bem$e("item",{disabled:Wr,selected:qr===ct.value}),Vr.className],onClick:()=>Er($r)},Lr={class:"van-ellipsis",[ct.allowHtml?"innerHTML":"textContent"]:zr};return vue.createVNode("li",Mr,[ur.option?ur.option(Vr,$r):vue.createVNode("div",Lr,null)])})};return useParent(PICKER_KEY),useExpose({stopMomentum:Pr}),vue.watchEffect(()=>{const jr=dr?Math.floor(-yr.value/ct.optionHeight):ct.options.findIndex(zr=>zr[ct.fields.value]===ct.value),Vr=findIndexOfEnabledOption(ct.options,jr),$r=-Vr*ct.optionHeight;dr&&Vr<jr&&Pr(),yr.value=$r}),useEventListener("touchmove",Br,{target:mr}),()=>vue.createVNode("div",{ref:mr,class:bem$e(),onTouchstartPassive:Ir,onTouchend:Or,onTouchcancel:Or},[vue.createVNode("ul",{ref:gr,style:{transform:`translate3d(0, ${yr.value+wr()}px, 0)`,transitionDuration:`${Cr.value}ms`,transitionProperty:Cr.value?"all":"none"},class:bem$e("wrapper"),onTransitionend:Pr},[Nr()])])}});const[name$f]=createNamespace("picker-toolbar"),pickerToolbarProps={title:String,cancelButtonText:String,confirmButtonText:String},pickerToolbarSlots=["cancel","confirm","title","toolbar"],pickerToolbarPropKeys=Object.keys(pickerToolbarProps);var stdin_default$g=vue.defineComponent({name:name$f,props:pickerToolbarProps,emits:["confirm","cancel"],setup(ct,{emit:Dn,slots:ur}){const dr=()=>{if(ur.title)return ur.title();if(ct.title)return vue.createVNode("div",{class:[bem$f("title"),"van-ellipsis"]},[ct.title])},fr=()=>Dn("cancel"),hr=()=>Dn("confirm"),vr=()=>{var mr;const gr=(mr=ct.cancelButtonText)!=null?mr:t$1("cancel");if(!(!ur.cancel&&!gr))return vue.createVNode("button",{type:"button",class:[bem$f("cancel"),HAPTICS_FEEDBACK],onClick:fr},[ur.cancel?ur.cancel():gr])},pr=()=>{var mr;const gr=(mr=ct.confirmButtonText)!=null?mr:t$1("confirm");if(!(!ur.confirm&&!gr))return vue.createVNode("button",{type:"button",class:[bem$f("confirm"),HAPTICS_FEEDBACK],onClick:hr},[ur.confirm?ur.confirm():gr])};return()=>vue.createVNode("div",{class:bem$f("toolbar")},[ur.toolbar?ur.toolbar():[vr(),dr(),pr()]])}});const useSyncPropRef=(ct,Dn)=>{const ur=vue.ref(ct());return vue.watch(ct,dr=>{dr!==ur.value&&(ur.value=dr)}),vue.watch(ur,dr=>{dr!==ct()&&Dn(dr)}),ur};/**
|
|
213
213
|
* @vue/shared v3.5.4
|