@ecan-bi/datav 1.4.13 → 1.4.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,5 +1,5 @@
1
- /*! @ecan-bi/datav@1.4.13 */
2
- (function(ke,Ze){typeof exports=="object"&&typeof module<"u"?Ze(exports,require("vue"),require("echarts/core"),require("resize-detector"),require("ant-design-vue"),require("ant-design-vue/es/spin/style"),require("ant-design-vue/es/skeleton/style"),require("lodash-es"),require("dayjs"),require("axios"),require("mitt"),require("ant-design-vue/es/progress/style"),require("ant-design-vue/es/input/style"),require("ant-design-vue/es/date-picker/style"),require("ant-design-vue/es/date-picker/locale/zh_CN"),require("ant-design-vue/es/button/style"),require("ant-design-vue/es/checkbox/style"),require("ant-design-vue/es/select/style"),require("ant-design-vue/es/tree-select/style"),require("echarts/renderers"),require("echarts/charts"),require("echarts/components"),require("ant-design-vue/es/modal/style"),require("echarts"),require("ant-design-vue/es/table/style"),require("ant-design-vue/es/notification/style"),require("xlsx"),require("big.js")):typeof define=="function"&&define.amd?define(["exports","vue","echarts/core","resize-detector","ant-design-vue","ant-design-vue/es/spin/style","ant-design-vue/es/skeleton/style","lodash-es","dayjs","axios","mitt","ant-design-vue/es/progress/style","ant-design-vue/es/input/style","ant-design-vue/es/date-picker/style","ant-design-vue/es/date-picker/locale/zh_CN","ant-design-vue/es/button/style","ant-design-vue/es/checkbox/style","ant-design-vue/es/select/style","ant-design-vue/es/tree-select/style","echarts/renderers","echarts/charts","echarts/components","ant-design-vue/es/modal/style","echarts","ant-design-vue/es/table/style","ant-design-vue/es/notification/style","xlsx","big.js"],Ze):(ke=typeof globalThis<"u"?globalThis:ke||self,Ze(ke["@ecan/bi-datav"]={},ke.Vue,ke["echarts/core"],ke.ResizeDetector,ke.AntDesignVue,null,null,ke.LodashEs,ke.Dayjs,ke.Axios,ke.Mitt,null,null,null,ke["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,ke["echarts/renderers"],ke["echarts/charts"],ke["echarts/components"],null,ke.Echarts,null,null,ke.Xlsx,ke.big.js))})(this,function(exports,vue,core$1,resizeDetector,antDesignVue,style$1,style$2,lodashEs,dayjs,axios,mitt,style$3,style$4,style$5,locale,style$6,style$7,style$8,style$9,renderers,charts,components$1,style$a,echarts,style$b,style$c,xlsx,big_js){var ke,Ze,Qe,et;"use strict";function _interopNamespaceDefault(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const echarts__namespace=_interopNamespaceDefault(echarts),METHOD_NAMES=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function usePublicAPI(e,n){function r(a){return(...o)=>{if(e.value||n(),!e.value)throw new Error("ECharts is not initialized yet.");return e.value[a].apply(e.value,o)}}function i(){const a=Object.create(null);return METHOD_NAMES.forEach(o=>{a[o]=r(o)}),a}return i()}function useAutoresize(e,n,r){let i=null;vue.watch([r,e,n],([a,o,s],l,c)=>{a&&o&&s&&(i=core$1.throttle(()=>{o.resize()},100),resizeDetector.addListener(a,i)),c(()=>{i&&a&&resizeDetector.removeListener(a,i)})})}const autoresizeProps={autoresize:Boolean},LOADING_OPTIONS_KEY="ecLoadingOptions";function useLoading(e,n,r){const i=vue.inject(LOADING_OPTIONS_KEY,{}),a=vue.computed(()=>({...vue.unref(i),...r==null?void 0:r.value}));vue.watchEffect(()=>{const o=e.value;o&&(n.value?o.showLoading(a.value):o.hideLoading())})}const loadingProps$1={loading:Boolean,loadingOptions:Object},style="",onRE=/^on[^a-z]/,isOn=e=>onRE.test(e);function omitOn(e){const n={};for(const r in e)isOn(r)||(n[r]=e[r]);return n}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(e,{attrs:n,listeners:r}){const i=vue.shallowRef(),a=vue.shallowRef(),o=vue.shallowRef(),s=vue.inject(THEME_KEY,null),l=vue.inject(INIT_OPTIONS_KEY,null),c=vue.inject(UPDATE_OPTIONS_KEY,null),{autoresize:u,manualUpdate:f,loading:x,loadingOptions:h}=vue.toRefs(e),g=vue.computed(()=>o.value||e.option||Object.create(null)),v=vue.computed(()=>e.theme||vue.unref(s)||{}),p=vue.computed(()=>e.initOptions||vue.unref(l)||{}),E=vue.computed(()=>e.updateOptions||vue.unref(c)||{}),b=vue.computed(()=>omitOn(n));function d(k){if(a.value||!i.value)return;const T=a.value=core$1.init(i.value,v.value,p.value);e.group&&(T.group=e.group);let F=r;F||(F={},Object.keys(n).filter(L=>L.indexOf("on")===0&&L.length>2).forEach(L=>{const R=L.charAt(2).toLowerCase()+L.slice(3);F[R]=n[L]})),Object.keys(F).forEach(L=>{const R=F[L];R&&(L.indexOf("zr:")===0?T.getZr().on(L.slice(3).toLowerCase(),R):T.on(L.toLowerCase(),R))});function M(){if(T&&!T.isDisposed())try{T.resize()}catch(L){if(L.message==="Cannot read property 'get' of undefined")return;throw L}}function B(){T.setOption(k||g.value,E.value)}u.value?vue.nextTick(()=>{M(),B()}):B()}function m(k,T){e.manualUpdate&&(o.value=k),a.value?a.value.setOption(k,T||{}):d(k)}function y(){a.value&&(a.value.dispose(),a.value=void 0)}let A=null;vue.watch(f,k=>{typeof A=="function"&&(A(),A=null),k||(A=vue.watch(()=>e.option,T=>{T&&(a.value?a.value.setOption(T,E.value):d())},{deep:!0}))},{immediate:!0}),vue.watch([v,p],()=>{y(),d()},{deep:!0}),vue.watchEffect(()=>{e.group&&a.value&&(a.value.group=e.group)});const _=usePublicAPI(a,d);return useLoading(a,x,h),useAutoresize(a,u,i),vue.onMounted(()=>{e.option&&d()}),vue.onUnmounted(y),{chart:a,root:i,setOption:m,nonEventAttrs:b,..._}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",vue.h(TAG_NAME,e)}});function bound01(e,n){isOnePointZero(e)&&(e="100%");var r=isPercentage(e);return e=n===360?e:Math.min(n,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*n),10)/100),Math.abs(e-n)<1e-6?1:(n===360?e=(e<0?e%n+n:e%n)/parseFloat(String(n)):e=e%n/parseFloat(String(n)),e)}function isOnePointZero(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function isPercentage(e){return typeof e=="string"&&e.indexOf("%")!==-1}function boundAlpha(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function convertToPercentage(e){return e<=1?"".concat(Number(e)*100,"%"):e}function pad2(e){return e.length===1?"0"+e:String(e)}function rgbToRgb(e,n,r){return{r:bound01(e,255)*255,g:bound01(n,255)*255,b:bound01(r,255)*255}}function hue2rgb(e,n,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(n-e)*(6*r):r<1/2?n:r<2/3?e+(n-e)*(2/3-r)*6:e}function hslToRgb(e,n,r){var i,a,o;if(e=bound01(e,360),n=bound01(n,100),r=bound01(r,100),n===0)a=r,o=r,i=r;else{var s=r<.5?r*(1+n):r+n-r*n,l=2*r-s;i=hue2rgb(l,s,e+1/3),a=hue2rgb(l,s,e),o=hue2rgb(l,s,e-1/3)}return{r:i*255,g:a*255,b:o*255}}function rgbToHsv(e,n,r){e=bound01(e,255),n=bound01(n,255),r=bound01(r,255);var i=Math.max(e,n,r),a=Math.min(e,n,r),o=0,s=i,l=i-a,c=i===0?0:l/i;if(i===a)o=0;else{switch(i){case e:o=(n-r)/l+(n<r?6:0);break;case n:o=(r-e)/l+2;break;case r:o=(e-n)/l+4;break}o/=6}return{h:o,s:c,v:s}}function hsvToRgb(e,n,r){e=bound01(e,360)*6,n=bound01(n,100),r=bound01(r,100);var i=Math.floor(e),a=e-i,o=r*(1-n),s=r*(1-a*n),l=r*(1-(1-a)*n),c=i%6,u=[r,s,o,o,l,r][c],f=[l,r,r,s,o,o][c],x=[o,o,l,r,r,s][c];return{r:u*255,g:f*255,b:x*255}}function rgbToHex(e,n,r,i){var a=[pad2(Math.round(e).toString(16)),pad2(Math.round(n).toString(16)),pad2(Math.round(r).toString(16))];return i&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function convertHexToDecimal(e){return parseIntFromHex(e)/255}function parseIntFromHex(e){return parseInt(e,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(e){var n={r:0,g:0,b:0},r=1,i=null,a=null,o=null,s=!1,l=!1;return typeof e=="string"&&(e=stringInputToObject(e)),typeof e=="object"&&(isValidCSSUnit(e.r)&&isValidCSSUnit(e.g)&&isValidCSSUnit(e.b)?(n=rgbToRgb(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(e.h)&&isValidCSSUnit(e.s)&&isValidCSSUnit(e.v)?(i=convertToPercentage(e.s),a=convertToPercentage(e.v),n=hsvToRgb(e.h,i,a),s=!0,l="hsv"):isValidCSSUnit(e.h)&&isValidCSSUnit(e.s)&&isValidCSSUnit(e.l)&&(i=convertToPercentage(e.s),o=convertToPercentage(e.l),n=hslToRgb(e.h,i,o),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=boundAlpha(r),{ok:s,format:e.format||l,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:r}}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(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var n=!1;if(names[e])e=names[e],n=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=matchers.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=matchers.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=matchers.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=matchers.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=matchers.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=matchers.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=matchers.hex8.exec(e),r?{r:parseIntFromHex(r[1]),g:parseIntFromHex(r[2]),b:parseIntFromHex(r[3]),a:convertHexToDecimal(r[4]),format:n?"name":"hex8"}:(r=matchers.hex6.exec(e),r?{r:parseIntFromHex(r[1]),g:parseIntFromHex(r[2]),b:parseIntFromHex(r[3]),format:n?"name":"hex"}:(r=matchers.hex4.exec(e),r?{r:parseIntFromHex(r[1]+r[1]),g:parseIntFromHex(r[2]+r[2]),b:parseIntFromHex(r[3]+r[3]),a:convertHexToDecimal(r[4]+r[4]),format:n?"name":"hex8"}:(r=matchers.hex3.exec(e),r?{r:parseIntFromHex(r[1]+r[1]),g:parseIntFromHex(r[2]+r[2]),b:parseIntFromHex(r[3]+r[3]),format:n?"name":"hex"}:!1)))))))))}function isValidCSSUnit(e){return!!matchers.CSS_UNIT.exec(String(e))}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(e){var n=e.r,r=e.g,i=e.b,a=rgbToHsv(n,r,i);return{h:a.h*360,s:a.s,v:a.v}}function toHex(e){var n=e.r,r=e.g,i=e.b;return"#".concat(rgbToHex(n,r,i,!1))}function mix(e,n,r){var i=r/100,a={r:(n.r-e.r)*i+e.r,g:(n.g-e.g)*i+e.g,b:(n.b-e.b)*i+e.b};return a}function getHue(e,n,r){var i;return Math.round(e.h)>=60&&Math.round(e.h)<=240?i=r?Math.round(e.h)-hueStep*n:Math.round(e.h)+hueStep*n:i=r?Math.round(e.h)+hueStep*n:Math.round(e.h)-hueStep*n,i<0?i+=360:i>=360&&(i-=360),i}function getSaturation(e,n,r){if(e.h===0&&e.s===0)return e.s;var i;return r?i=e.s-saturationStep*n:n===darkColorCount?i=e.s+saturationStep:i=e.s+saturationStep2*n,i>1&&(i=1),r&&n===lightColorCount&&i>.1&&(i=.1),i<.06&&(i=.06),Number(i.toFixed(2))}function getValue(e,n,r){var i;return r?i=e.v+brightnessStep1*n:i=e.v-brightnessStep2*n,i>1&&(i=1),Number(i.toFixed(2))}function generate$1(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],i=inputToRGB(e),a=lightColorCount;a>0;a-=1){var o=toHsv(i),s=toHex(inputToRGB({h:getHue(o,a,!0),s:getSaturation(o,a,!0),v:getValue(o,a,!0)}));r.push(s)}r.push(toHex(i));for(var l=1;l<=darkColorCount;l+=1){var c=toHsv(i),u=toHex(inputToRGB({h:getHue(c,l),s:getSaturation(c,l),v:getValue(c,l)}));r.push(u)}return n.theme==="dark"?darkColorMap.map(function(f){var x=f.index,h=f.opacity,g=toHex(mix(inputToRGB(n.backgroundColor||"#141414"),inputToRGB(r[x]),h*100));return g}):r}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(e){presetPalettes[e]=generate$1(presetPrimaryColors[e]),presetPalettes[e].primary=presetPalettes[e][5],presetDarkPalettes[e]=generate$1(presetPrimaryColors[e],{theme:"dark",backgroundColor:"#141414"}),presetDarkPalettes[e].primary=presetDarkPalettes[e][5]});var containers=[],styleElements=[],usage="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function createStyleElement(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function insertCss(e,n){if(n=n||{},e===void 0)throw new Error(usage);var r=n.prepend===!0?"prepend":"append",i=n.container!==void 0?n.container:document.querySelector("head"),a=containers.indexOf(i);a===-1&&(a=containers.push(i)-1,styleElements[a]={});var o;return styleElements[a]!==void 0&&styleElements[a][r]!==void 0?o=styleElements[a][r]:(o=styleElements[a][r]=createStyleElement(),r==="prepend"?i.insertBefore(o,i.childNodes[0]):i.appendChild(o)),e.charCodeAt(0)===65279&&(e=e.substr(1,e.length)),o.styleSheet?o.styleSheet.cssText+=e:o.textContent+=e,o}function _objectSpread$8(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?Object(arguments[n]):{},i=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),i.forEach(function(a){_defineProperty$8(e,a,r[a])})}return e}function _defineProperty$8(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function warn(e,n){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(n))}function warning(e,n){warn(e,"[@ant-design/icons-vue] ".concat(n))}function isIconDefinition(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function generate(e,n,r){return r?vue.h(e.tag,_objectSpread$8({key:n},r,e.attrs),(e.children||[]).map(function(i,a){return generate(i,"".concat(n,"-").concat(e.tag,"-").concat(a))})):vue.h(e.tag,_objectSpread$8({key:n},e.attrs),(e.children||[]).map(function(i,a){return generate(i,"".concat(n,"-").concat(e.tag,"-").concat(a))}))}function getSecondaryColor(e){return generate$1(e)[0]}function normalizeTwoToneColors(e){return e?Array.isArray(e)?e:[e]:[]}var iconStyles=`
1
+ /*! @ecan-bi/datav@1.4.15 */
2
+ (function(Pe,Qe){typeof exports=="object"&&typeof module<"u"?Qe(exports,require("vue"),require("echarts/core"),require("resize-detector"),require("ant-design-vue"),require("ant-design-vue/es/spin/style"),require("ant-design-vue/es/skeleton/style"),require("lodash-es"),require("dayjs"),require("axios"),require("mitt"),require("ant-design-vue/es/progress/style"),require("ant-design-vue/es/input/style"),require("ant-design-vue/es/date-picker/style"),require("ant-design-vue/es/date-picker/locale/zh_CN"),require("ant-design-vue/es/button/style"),require("ant-design-vue/es/checkbox/style"),require("ant-design-vue/es/select/style"),require("ant-design-vue/es/tree-select/style"),require("echarts/renderers"),require("echarts/charts"),require("echarts/components"),require("ant-design-vue/es/modal/style"),require("echarts"),require("ant-design-vue/es/table/style"),require("ant-design-vue/es/notification/style"),require("xlsx"),require("big.js")):typeof define=="function"&&define.amd?define(["exports","vue","echarts/core","resize-detector","ant-design-vue","ant-design-vue/es/spin/style","ant-design-vue/es/skeleton/style","lodash-es","dayjs","axios","mitt","ant-design-vue/es/progress/style","ant-design-vue/es/input/style","ant-design-vue/es/date-picker/style","ant-design-vue/es/date-picker/locale/zh_CN","ant-design-vue/es/button/style","ant-design-vue/es/checkbox/style","ant-design-vue/es/select/style","ant-design-vue/es/tree-select/style","echarts/renderers","echarts/charts","echarts/components","ant-design-vue/es/modal/style","echarts","ant-design-vue/es/table/style","ant-design-vue/es/notification/style","xlsx","big.js"],Qe):(Pe=typeof globalThis<"u"?globalThis:Pe||self,Qe(Pe["@ecan/bi-datav"]={},Pe.Vue,Pe["echarts/core"],Pe.ResizeDetector,Pe.AntDesignVue,null,null,Pe.LodashEs,Pe.Dayjs,Pe.Axios,Pe.Mitt,null,null,null,Pe["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,Pe["echarts/renderers"],Pe["echarts/charts"],Pe["echarts/components"],null,Pe.Echarts,null,null,Pe.Xlsx,Pe.big.js))})(this,function(exports,vue,core$1,resizeDetector,antDesignVue,style$1,style$2,lodashEs,dayjs,axios,mitt,style$3,style$4,style$5,locale,style$6,style$7,style$8,style$9,renderers,charts,components$1,style$a,echarts,style$b,style$c,xlsx,big_js){var Pe,Qe,tt,nt;"use strict";function _interopNamespaceDefault(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const echarts__namespace=_interopNamespaceDefault(echarts),METHOD_NAMES=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function usePublicAPI(e,n){function r(a){return(...o)=>{if(e.value||n(),!e.value)throw new Error("ECharts is not initialized yet.");return e.value[a].apply(e.value,o)}}function i(){const a=Object.create(null);return METHOD_NAMES.forEach(o=>{a[o]=r(o)}),a}return i()}function useAutoresize(e,n,r){let i=null;vue.watch([r,e,n],([a,o,s],l,c)=>{a&&o&&s&&(i=core$1.throttle(()=>{o.resize()},100),resizeDetector.addListener(a,i)),c(()=>{i&&a&&resizeDetector.removeListener(a,i)})})}const autoresizeProps={autoresize:Boolean},LOADING_OPTIONS_KEY="ecLoadingOptions";function useLoading(e,n,r){const i=vue.inject(LOADING_OPTIONS_KEY,{}),a=vue.computed(()=>({...vue.unref(i),...r==null?void 0:r.value}));vue.watchEffect(()=>{const o=e.value;o&&(n.value?o.showLoading(a.value):o.hideLoading())})}const loadingProps$1={loading:Boolean,loadingOptions:Object},style="",onRE=/^on[^a-z]/,isOn=e=>onRE.test(e);function omitOn(e){const n={};for(const r in e)isOn(r)||(n[r]=e[r]);return n}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(e,{attrs:n,listeners:r}){const i=vue.shallowRef(),a=vue.shallowRef(),o=vue.shallowRef(),s=vue.inject(THEME_KEY,null),l=vue.inject(INIT_OPTIONS_KEY,null),c=vue.inject(UPDATE_OPTIONS_KEY,null),{autoresize:u,manualUpdate:f,loading:x,loadingOptions:h}=vue.toRefs(e),g=vue.computed(()=>o.value||e.option||Object.create(null)),v=vue.computed(()=>e.theme||vue.unref(s)||{}),p=vue.computed(()=>e.initOptions||vue.unref(l)||{}),C=vue.computed(()=>e.updateOptions||vue.unref(c)||{}),b=vue.computed(()=>omitOn(n));function d(k){if(a.value||!i.value)return;const T=a.value=core$1.init(i.value,v.value,p.value);e.group&&(T.group=e.group);let F=r;F||(F={},Object.keys(n).filter(L=>L.indexOf("on")===0&&L.length>2).forEach(L=>{const V=L.charAt(2).toLowerCase()+L.slice(3);F[V]=n[L]})),Object.keys(F).forEach(L=>{const V=F[L];V&&(L.indexOf("zr:")===0?T.getZr().on(L.slice(3).toLowerCase(),V):T.on(L.toLowerCase(),V))});function M(){if(T&&!T.isDisposed())try{T.resize()}catch(L){if(L.message==="Cannot read property 'get' of undefined")return;throw L}}function B(){T.setOption(k||g.value,C.value)}u.value?vue.nextTick(()=>{M(),B()}):B()}function m(k,T){e.manualUpdate&&(o.value=k),a.value?a.value.setOption(k,T||{}):d(k)}function y(){a.value&&(a.value.dispose(),a.value=void 0)}let A=null;vue.watch(f,k=>{typeof A=="function"&&(A(),A=null),k||(A=vue.watch(()=>e.option,T=>{T&&(a.value?a.value.setOption(T,C.value):d())},{deep:!0}))},{immediate:!0}),vue.watch([v,p],()=>{y(),d()},{deep:!0}),vue.watchEffect(()=>{e.group&&a.value&&(a.value.group=e.group)});const _=usePublicAPI(a,d);return useLoading(a,x,h),useAutoresize(a,u,i),vue.onMounted(()=>{e.option&&d()}),vue.onUnmounted(y),{chart:a,root:i,setOption:m,nonEventAttrs:b,..._}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",vue.h(TAG_NAME,e)}});function bound01(e,n){isOnePointZero(e)&&(e="100%");var r=isPercentage(e);return e=n===360?e:Math.min(n,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*n),10)/100),Math.abs(e-n)<1e-6?1:(n===360?e=(e<0?e%n+n:e%n)/parseFloat(String(n)):e=e%n/parseFloat(String(n)),e)}function isOnePointZero(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function isPercentage(e){return typeof e=="string"&&e.indexOf("%")!==-1}function boundAlpha(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function convertToPercentage(e){return e<=1?"".concat(Number(e)*100,"%"):e}function pad2(e){return e.length===1?"0"+e:String(e)}function rgbToRgb(e,n,r){return{r:bound01(e,255)*255,g:bound01(n,255)*255,b:bound01(r,255)*255}}function hue2rgb(e,n,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(n-e)*(6*r):r<1/2?n:r<2/3?e+(n-e)*(2/3-r)*6:e}function hslToRgb(e,n,r){var i,a,o;if(e=bound01(e,360),n=bound01(n,100),r=bound01(r,100),n===0)a=r,o=r,i=r;else{var s=r<.5?r*(1+n):r+n-r*n,l=2*r-s;i=hue2rgb(l,s,e+1/3),a=hue2rgb(l,s,e),o=hue2rgb(l,s,e-1/3)}return{r:i*255,g:a*255,b:o*255}}function rgbToHsv(e,n,r){e=bound01(e,255),n=bound01(n,255),r=bound01(r,255);var i=Math.max(e,n,r),a=Math.min(e,n,r),o=0,s=i,l=i-a,c=i===0?0:l/i;if(i===a)o=0;else{switch(i){case e:o=(n-r)/l+(n<r?6:0);break;case n:o=(r-e)/l+2;break;case r:o=(e-n)/l+4;break}o/=6}return{h:o,s:c,v:s}}function hsvToRgb(e,n,r){e=bound01(e,360)*6,n=bound01(n,100),r=bound01(r,100);var i=Math.floor(e),a=e-i,o=r*(1-n),s=r*(1-a*n),l=r*(1-(1-a)*n),c=i%6,u=[r,s,o,o,l,r][c],f=[l,r,r,s,o,o][c],x=[o,o,l,r,r,s][c];return{r:u*255,g:f*255,b:x*255}}function rgbToHex(e,n,r,i){var a=[pad2(Math.round(e).toString(16)),pad2(Math.round(n).toString(16)),pad2(Math.round(r).toString(16))];return i&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function convertHexToDecimal(e){return parseIntFromHex(e)/255}function parseIntFromHex(e){return parseInt(e,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(e){var n={r:0,g:0,b:0},r=1,i=null,a=null,o=null,s=!1,l=!1;return typeof e=="string"&&(e=stringInputToObject(e)),typeof e=="object"&&(isValidCSSUnit(e.r)&&isValidCSSUnit(e.g)&&isValidCSSUnit(e.b)?(n=rgbToRgb(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(e.h)&&isValidCSSUnit(e.s)&&isValidCSSUnit(e.v)?(i=convertToPercentage(e.s),a=convertToPercentage(e.v),n=hsvToRgb(e.h,i,a),s=!0,l="hsv"):isValidCSSUnit(e.h)&&isValidCSSUnit(e.s)&&isValidCSSUnit(e.l)&&(i=convertToPercentage(e.s),o=convertToPercentage(e.l),n=hslToRgb(e.h,i,o),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=boundAlpha(r),{ok:s,format:e.format||l,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:r}}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(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var n=!1;if(names[e])e=names[e],n=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=matchers.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=matchers.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=matchers.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=matchers.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=matchers.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=matchers.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=matchers.hex8.exec(e),r?{r:parseIntFromHex(r[1]),g:parseIntFromHex(r[2]),b:parseIntFromHex(r[3]),a:convertHexToDecimal(r[4]),format:n?"name":"hex8"}:(r=matchers.hex6.exec(e),r?{r:parseIntFromHex(r[1]),g:parseIntFromHex(r[2]),b:parseIntFromHex(r[3]),format:n?"name":"hex"}:(r=matchers.hex4.exec(e),r?{r:parseIntFromHex(r[1]+r[1]),g:parseIntFromHex(r[2]+r[2]),b:parseIntFromHex(r[3]+r[3]),a:convertHexToDecimal(r[4]+r[4]),format:n?"name":"hex8"}:(r=matchers.hex3.exec(e),r?{r:parseIntFromHex(r[1]+r[1]),g:parseIntFromHex(r[2]+r[2]),b:parseIntFromHex(r[3]+r[3]),format:n?"name":"hex"}:!1)))))))))}function isValidCSSUnit(e){return!!matchers.CSS_UNIT.exec(String(e))}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(e){var n=e.r,r=e.g,i=e.b,a=rgbToHsv(n,r,i);return{h:a.h*360,s:a.s,v:a.v}}function toHex(e){var n=e.r,r=e.g,i=e.b;return"#".concat(rgbToHex(n,r,i,!1))}function mix(e,n,r){var i=r/100,a={r:(n.r-e.r)*i+e.r,g:(n.g-e.g)*i+e.g,b:(n.b-e.b)*i+e.b};return a}function getHue(e,n,r){var i;return Math.round(e.h)>=60&&Math.round(e.h)<=240?i=r?Math.round(e.h)-hueStep*n:Math.round(e.h)+hueStep*n:i=r?Math.round(e.h)+hueStep*n:Math.round(e.h)-hueStep*n,i<0?i+=360:i>=360&&(i-=360),i}function getSaturation(e,n,r){if(e.h===0&&e.s===0)return e.s;var i;return r?i=e.s-saturationStep*n:n===darkColorCount?i=e.s+saturationStep:i=e.s+saturationStep2*n,i>1&&(i=1),r&&n===lightColorCount&&i>.1&&(i=.1),i<.06&&(i=.06),Number(i.toFixed(2))}function getValue(e,n,r){var i;return r?i=e.v+brightnessStep1*n:i=e.v-brightnessStep2*n,i>1&&(i=1),Number(i.toFixed(2))}function generate$1(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],i=inputToRGB(e),a=lightColorCount;a>0;a-=1){var o=toHsv(i),s=toHex(inputToRGB({h:getHue(o,a,!0),s:getSaturation(o,a,!0),v:getValue(o,a,!0)}));r.push(s)}r.push(toHex(i));for(var l=1;l<=darkColorCount;l+=1){var c=toHsv(i),u=toHex(inputToRGB({h:getHue(c,l),s:getSaturation(c,l),v:getValue(c,l)}));r.push(u)}return n.theme==="dark"?darkColorMap.map(function(f){var x=f.index,h=f.opacity,g=toHex(mix(inputToRGB(n.backgroundColor||"#141414"),inputToRGB(r[x]),h*100));return g}):r}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(e){presetPalettes[e]=generate$1(presetPrimaryColors[e]),presetPalettes[e].primary=presetPalettes[e][5],presetDarkPalettes[e]=generate$1(presetPrimaryColors[e],{theme:"dark",backgroundColor:"#141414"}),presetDarkPalettes[e].primary=presetDarkPalettes[e][5]});var containers=[],styleElements=[],usage="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function createStyleElement(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function insertCss(e,n){if(n=n||{},e===void 0)throw new Error(usage);var r=n.prepend===!0?"prepend":"append",i=n.container!==void 0?n.container:document.querySelector("head"),a=containers.indexOf(i);a===-1&&(a=containers.push(i)-1,styleElements[a]={});var o;return styleElements[a]!==void 0&&styleElements[a][r]!==void 0?o=styleElements[a][r]:(o=styleElements[a][r]=createStyleElement(),r==="prepend"?i.insertBefore(o,i.childNodes[0]):i.appendChild(o)),e.charCodeAt(0)===65279&&(e=e.substr(1,e.length)),o.styleSheet?o.styleSheet.cssText+=e:o.textContent+=e,o}function _objectSpread$8(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?Object(arguments[n]):{},i=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),i.forEach(function(a){_defineProperty$8(e,a,r[a])})}return e}function _defineProperty$8(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function warn(e,n){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(n))}function warning(e,n){warn(e,"[@ant-design/icons-vue] ".concat(n))}function isIconDefinition(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function generate(e,n,r){return r?vue.h(e.tag,_objectSpread$8({key:n},r,e.attrs),(e.children||[]).map(function(i,a){return generate(i,"".concat(n,"-").concat(e.tag,"-").concat(a))})):vue.h(e.tag,_objectSpread$8({key:n},e.attrs),(e.children||[]).map(function(i,a){return generate(i,"".concat(n,"-").concat(e.tag,"-").concat(a))}))}function getSecondaryColor(e){return generate$1(e)[0]}function normalizeTwoToneColors(e){return e?Array.isArray(e)?e:[e]:[]}var iconStyles=`
3
3
  .anticon {
4
4
  display: inline-block;
5
5
  color: inherit;
@@ -55,10 +55,10 @@
55
55
  }
56
56
  `,cssInjectedFlag=!1,useInsertStyles=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:iconStyles;vue.nextTick(function(){cssInjectedFlag||(typeof window<"u"&&window.document&&window.document.documentElement&&insertCss(n,{prepend:!0}),cssInjectedFlag=!0)})},_excluded$1=["icon","primaryColor","secondaryColor"];function _objectWithoutProperties$1(e,n){if(e==null)return{};var r=_objectWithoutPropertiesLoose$1(e,n),i,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)i=o[a],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function _objectWithoutPropertiesLoose$1(e,n){if(e==null)return{};var r={},i=Object.keys(e),a,o;for(o=0;o<i.length;o++)a=i[o],!(n.indexOf(a)>=0)&&(r[a]=e[a]);return r}function _objectSpread$7(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?Object(arguments[n]):{},i=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),i.forEach(function(a){_defineProperty$7(e,a,r[a])})}return e}function _defineProperty$7(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var twoToneColorPalette={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function setTwoToneColors(e){var n=e.primaryColor,r=e.secondaryColor;twoToneColorPalette.primaryColor=n,twoToneColorPalette.secondaryColor=r||getSecondaryColor(n),twoToneColorPalette.calculated=!!r}function getTwoToneColors(){return _objectSpread$7({},twoToneColorPalette)}var IconBase=function(n,r){var i=_objectSpread$7({},n,r.attrs),a=i.icon,o=i.primaryColor,s=i.secondaryColor,l=_objectWithoutProperties$1(i,_excluded$1),c=twoToneColorPalette;if(o&&(c={primaryColor:o,secondaryColor:s||getSecondaryColor(o)}),useInsertStyles(),warning(isIconDefinition(a),"icon should be icon definiton, but got ".concat(a)),!isIconDefinition(a))return null;var u=a;return u&&typeof u.icon=="function"&&(u=_objectSpread$7({},u,{icon:u.icon(c.primaryColor,c.secondaryColor)})),generate(u.icon,"svg-".concat(u.name),_objectSpread$7({},l,{"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};IconBase.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},IconBase.inheritAttrs=!1,IconBase.displayName="IconBase",IconBase.getTwoToneColors=getTwoToneColors,IconBase.setTwoToneColors=setTwoToneColors;const VueIcon=IconBase;function _slicedToArray$1(e,n){return _arrayWithHoles$1(e)||_iterableToArrayLimit$1(e,n)||_unsupportedIterableToArray$1(e,n)||_nonIterableRest$1()}function _nonIterableRest$1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
57
57
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$1(e,n){if(e){if(typeof e=="string")return _arrayLikeToArray$1(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _arrayLikeToArray$1(e,n)}}function _arrayLikeToArray$1(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,i=new Array(n);r<n;r++)i[r]=e[r];return i}function _iterableToArrayLimit$1(e,n){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i=[],a=!0,o=!1,s,l;try{for(r=r.call(e);!(a=(s=r.next()).done)&&(i.push(s.value),!(n&&i.length===n));a=!0);}catch(c){o=!0,l=c}finally{try{!a&&r.return!=null&&r.return()}finally{if(o)throw l}}return i}}function _arrayWithHoles$1(e){if(Array.isArray(e))return e}function setTwoToneColor(e){var n=normalizeTwoToneColors(e),r=_slicedToArray$1(n,2),i=r[0],a=r[1];return VueIcon.setTwoToneColors({primaryColor:i,secondaryColor:a})}function getTwoToneColor(){var e=VueIcon.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var _excluded=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function _slicedToArray(e,n){return _arrayWithHoles(e)||_iterableToArrayLimit(e,n)||_unsupportedIterableToArray(e,n)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
58
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(e,n){if(e){if(typeof e=="string")return _arrayLikeToArray(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _arrayLikeToArray(e,n)}}function _arrayLikeToArray(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,i=new Array(n);r<n;r++)i[r]=e[r];return i}function _iterableToArrayLimit(e,n){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i=[],a=!0,o=!1,s,l;try{for(r=r.call(e);!(a=(s=r.next()).done)&&(i.push(s.value),!(n&&i.length===n));a=!0);}catch(c){o=!0,l=c}finally{try{!a&&r.return!=null&&r.return()}finally{if(o)throw l}}return i}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _objectSpread$6(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?Object(arguments[n]):{},i=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),i.forEach(function(a){_defineProperty$6(e,a,r[a])})}return e}function _defineProperty$6(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function _objectWithoutProperties(e,n){if(e==null)return{};var r=_objectWithoutPropertiesLoose(e,n),i,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)i=o[a],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function _objectWithoutPropertiesLoose(e,n){if(e==null)return{};var r={},i=Object.keys(e),a,o;for(o=0;o<i.length;o++)a=i[o],!(n.indexOf(a)>=0)&&(r[a]=e[a]);return r}setTwoToneColor("#1890ff");var Icon$1=function(n,r){var i,a=_objectSpread$6({},n,r.attrs),o=a.class,s=a.icon,l=a.spin,c=a.rotate,u=a.tabindex,f=a.twoToneColor,x=a.onClick,h=_objectWithoutProperties(a,_excluded),g=(i={anticon:!0},_defineProperty$6(i,"anticon-".concat(s.name),!!s.name),_defineProperty$6(i,o,o),i),v=l===""||l||s.name==="loading"?"anticon-spin":"",p=u;p===void 0&&x&&(p=-1,h.tabindex=p);var E=c?{msTransform:"rotate(".concat(c,"deg)"),transform:"rotate(".concat(c,"deg)")}:void 0,b=normalizeTwoToneColors(f),d=_slicedToArray(b,2),m=d[0],y=d[1];return vue.createVNode("span",_objectSpread$6({role:"img","aria-label":s.name},h,{onClick:x,class:g}),[vue.createVNode(VueIcon,{class:v,icon:s,primaryColor:m,secondaryColor:y,style:E},null)])};Icon$1.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Icon$1.displayName="AntdIcon",Icon$1.inheritAttrs=!1,Icon$1.getTwoToneColor=getTwoToneColor,Icon$1.setTwoToneColor=setTwoToneColor;const AntdIcon=Icon$1;var CalendarOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};const CalendarOutlinedSvg=CalendarOutlined$2;function _objectSpread$5(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?Object(arguments[n]):{},i=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),i.forEach(function(a){_defineProperty$5(e,a,r[a])})}return e}function _defineProperty$5(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var CalendarOutlined=function(n,r){var i=_objectSpread$5({},n,r.attrs);return vue.createVNode(AntdIcon,_objectSpread$5({},i,{icon:CalendarOutlinedSvg}),null)};CalendarOutlined.displayName="CalendarOutlined",CalendarOutlined.inheritAttrs=!1;const CalendarOutlined$1=CalendarOutlined;var CloseCircleFilled$2={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};const CloseCircleFilledSvg=CloseCircleFilled$2;function _objectSpread$4(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?Object(arguments[n]):{},i=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),i.forEach(function(a){_defineProperty$4(e,a,r[a])})}return e}function _defineProperty$4(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var CloseCircleFilled=function(n,r){var i=_objectSpread$4({},n,r.attrs);return vue.createVNode(AntdIcon,_objectSpread$4({},i,{icon:CloseCircleFilledSvg}),null)};CloseCircleFilled.displayName="CloseCircleFilled",CloseCircleFilled.inheritAttrs=!1;const CloseCircleFilled$1=CloseCircleFilled;var CloseOutlined$2={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const CloseOutlinedSvg=CloseOutlined$2;function _objectSpread$3(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?Object(arguments[n]):{},i=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),i.forEach(function(a){_defineProperty$3(e,a,r[a])})}return e}function _defineProperty$3(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var CloseOutlined=function(n,r){var i=_objectSpread$3({},n,r.attrs);return vue.createVNode(AntdIcon,_objectSpread$3({},i,{icon:CloseOutlinedSvg}),null)};CloseOutlined.displayName="CloseOutlined",CloseOutlined.inheritAttrs=!1;const CloseOutlined$1=CloseOutlined;var DownOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const DownOutlinedSvg=DownOutlined$2;function _objectSpread$2(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?Object(arguments[n]):{},i=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),i.forEach(function(a){_defineProperty$2(e,a,r[a])})}return e}function _defineProperty$2(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var DownOutlined=function(n,r){var i=_objectSpread$2({},n,r.attrs);return vue.createVNode(AntdIcon,_objectSpread$2({},i,{icon:DownOutlinedSvg}),null)};DownOutlined.displayName="DownOutlined",DownOutlined.inheritAttrs=!1;const DownOutlined$1=DownOutlined;var LoadingOutlined$2={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const LoadingOutlinedSvg=LoadingOutlined$2;function _objectSpread$1(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?Object(arguments[n]):{},i=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),i.forEach(function(a){_defineProperty$1(e,a,r[a])})}return e}function _defineProperty$1(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var LoadingOutlined=function(n,r){var i=_objectSpread$1({},n,r.attrs);return vue.createVNode(AntdIcon,_objectSpread$1({},i,{icon:LoadingOutlinedSvg}),null)};LoadingOutlined.displayName="LoadingOutlined",LoadingOutlined.inheritAttrs=!1;const LoadingOutlined$1=LoadingOutlined;var RightOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};const RightOutlinedSvg=RightOutlined$2;function _objectSpread(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?Object(arguments[n]):{},i=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),i.forEach(function(a){_defineProperty(e,a,r[a])})}return e}function _defineProperty(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var RightOutlined=function(n,r){var i=_objectSpread({},n,r.attrs);return vue.createVNode(AntdIcon,_objectSpread({},i,{icon:RightOutlinedSvg}),null)};RightOutlined.displayName="RightOutlined",RightOutlined.inheritAttrs=!1;const RightOutlined$1=RightOutlined,_sfc_main$y=vue.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:antDesignVue.Spin},setup(){return{indicator:vue.h(LoadingOutlined$1,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),Spin_vue_vue_type_style_index_0_lang="",_export_sfc$1=(e,n)=>{const r=e.__vccOpts||e;for(const[i,a]of n)r[i]=a;return r},_hoisted_1$i={class:"spin-wrapper"};function _sfc_render$D(e,n,r,i,a,o){const s=vue.resolveComponent("a-spin");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$i,[e.spinning?(vue.openBlock(),vue.createBlock(s,{key:0,class:"spin",spinning:e.spinning,indicator:e.indicator,tip:"加载中..."},null,8,["spinning","indicator"])):vue.renderSlot(e.$slots,"default",{key:1})])}const Spin=_export_sfc$1(_sfc_main$y,[["render",_sfc_render$D]]),_sfc_main$x=vue.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:antDesignVue.Skeleton}});function _sfc_render$C(e,n,r,i,a,o){const s=vue.resolveComponent("a-skeleton");return vue.openBlock(),vue.createBlock(s,{active:"",loading:e.loading},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},8,["loading"])}const Skeleton=_export_sfc$1(_sfc_main$x,[["render",_sfc_render$C]]);(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.vue3-marquee{display:flex!important;position:relative}.vue3-marquee.horizontal{overflow-x:hidden!important;flex-direction:row!important;width:100%;height:max-content}.vue3-marquee.vertical{overflow-y:hidden!important;flex-direction:column!important;height:100%;width:max-content}.vue3-marquee:hover>.marquee{animation-play-state:var(--pauseOnHover)}.vue3-marquee:active>.marquee{animation-play-state:var(--pauseOnClick)}.vue3-marquee>.marquee{flex:0 0 auto;min-width:var(--min-width);min-height:var(--min-height);z-index:1;animation:var(--orientation) var(--duration) linear var(--delay) var(--loops);animation-play-state:var(--pauseAnimation);animation-direction:var(--direction)}.vue3-marquee.horizontal>.marquee{display:flex;flex-direction:row;align-items:center}.vue3-marquee.vertical>.marquee{display:flex;flex-direction:column;align-items:center}@keyframes scrollX{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes scrollY{0%{transform:translateY(0)}to{transform:translateY(-100%)}}.vue3-marquee>.overlay{position:absolute;width:100%;height:100%}.vue3-marquee>.transparent-overlay{position:absolute;width:100%;height:100%}.vue3-marquee>.overlay:before,.vue3-marquee>.overlay:after{content:"";position:absolute;z-index:2}.vue3-marquee.horizontal>.overlay:before,.vue3-marquee.horizontal>.overlay:after{background:linear-gradient(to right,var(--gradient-color));height:100%;width:var(--gradient-length)}.vue3-marquee.vertical>.overlay:before,.vue3-marquee.vertical>.overlay:after{background:linear-gradient(to bottom,var(--gradient-color));height:var(--gradient-length);width:100%}.vue3-marquee.horizontal>.overlay:after{transform:rotate(180deg)}.vue3-marquee.vertical>.overlay:after{transform:rotate(-180deg)}.vue3-marquee>.overlay:before{left:0;top:0}.vue3-marquee.horizontal>.overlay:after{right:0;top:0}.vue3-marquee.vertical>.overlay:after{left:0;bottom:0}')),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}})();var __defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,n,r)=>n in e?__defProp(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,__spreadValues=(e,n)=>{for(var r in n||(n={}))__hasOwnProp.call(n,r)&&__defNormalProp(e,r,n[r]);if(__getOwnPropSymbols)for(var r of __getOwnPropSymbols(n))__propIsEnum.call(n,r)&&__defNormalProp(e,r,n[r]);return e},_export_sfc=(e,n)=>{const r=e.__vccOpts||e;for(const[i,a]of n)r[i]=a;return r};const _sfc_main$w=vue.defineComponent({props:{vertical:{type:Boolean,default:!1},direction:{type:String,default:"normal"},duration:{type:Number,default:20},delay:{type:Number,default:0},loop:{type:Number,default:0},clone:{type:Boolean,default:!1},gradient:{type:Boolean,default:!1},gradientColor:{type:Array,default:[255,255,255]},gradientWidth:{type:String},gradientLength:{type:String},pauseOnHover:{type:Boolean,default:!1},pauseOnClick:{type:Boolean,default:!1},pause:{type:Boolean,default:!1},animateOnOverflowOnly:{type:Boolean,default:!1}},emits:["onComplete","onLoopComplete","onPause","onResume","onOverflowDetected","onOverflowCleared"],setup(e,{emit:n}){const r=vue.ref(0),i=vue.ref("100%"),a=vue.ref("100%"),o=vue.ref(0),s=vue.ref(!1),l=vue.ref(!1),c=vue.ref(0),u=vue.ref(0),f=vue.ref(0),x=vue.ref(0),h=vue.ref(!1),g=vue.ref(!1),v=vue.ref(0),p=vue.ref(null),E=vue.ref("200px"),b=vue.ref(!1),d=vue.ref(null),m=vue.ref(null),y=async()=>{await A(),o.value++},A=async()=>{e.vertical&&(s.value=!0),setInterval(()=>{if(i.value="0%",a.value="0%",d.value!==null&&m.value!==null&&d.value&&m.value)if(e.vertical&&"clientHeight"in d.value&&"clientHeight"in m.value){x.value=d.value.clientHeight,f.value=m.value.clientHeight;const P=Math.ceil(f.value/x.value);return r.value=isFinite(P)?P:0,s.value=!1,r.value}else if(!e.vertical&&"clientWidth"in d.value&&"clientWidth"in m.value){if(u.value=d.value.clientWidth,c.value=m.value.clientWidth,e.animateOnOverflowOnly)return u.value<c.value?(l.value=!0,n("onOverflowDetected")):(l.value=!1,n("onOverflowCleared")),0;const P=Math.ceil(c.value/u.value);return r.value=isFinite(P)?P:0,r.value}else return i.value="100%",a.value="100%",0;else return i.value="100%",a.value="100%",0},100)};vue.watch(u,async()=>{e.clone&&y()}),vue.watch(c,async()=>{(e.clone||e.animateOnOverflowOnly)&&y()}),vue.watch(()=>e.pause,(P,I)=>{P!==I&&n(P?"onResume":"onPause")});const _=()=>{e.pauseOnHover&&(n("onPause"),h.value=!0)},k=()=>{e.pauseOnHover&&(n("onResume"),h.value=!1)},T=()=>{e.pauseOnClick&&(n("onPause"),g.value=!0)},F=()=>{e.pauseOnClick&&(n("onResume"),g.value=!1)},M=vue.computed(()=>e.pause||e.vertical&&s.value||e.animateOnOverflowOnly&&l.value?"paused":"running"),B=vue.computed(()=>e.pauseOnHover&&(h.value||g.value)||!e.pauseOnHover&&M.value==="paused"?"paused":"running"),L=vue.computed(()=>e.pauseOnHover&&h.value||e.pauseOnClick&&g.value||!e.pauseOnHover&&M.value==="paused"?"paused":"running"),R=vue.computed(()=>{const P={"--duration":`${e.duration}s`,"--delay":`${e.delay}s`,"--direction":`${e.direction}`,"--pauseOnHover":`${B.value}`,"--pauseOnClick":`${L.value}`,"--pauseAnimation":`${M.value}`,"--loops":`${e.loop===0?"infinite":e.loop}`,"--gradient-color":`rgba(${e.gradientColor[0]}, ${e.gradientColor[1]}, ${e.gradientColor[2]}, 1), rgba(${e.gradientColor[0]}, ${e.gradientColor[1]}, ${e.gradientColor[2]}, 0)`,"--gradient-length":`${E.value}`,"--min-width":`${i.value}`,"--min-height":`${a.value}`},I={"--orientation":"scrollX",orientation:"horizontal"};return e.vertical&&(I["--orientation"]="scrollY"),__spreadValues(__spreadValues({},P),I)}),H=vue.computed(()=>!!e.gradient),V=async()=>{e.vertical?(a.value="100%",i.value="auto",e.animateOnOverflowOnly&&console.warn("The `animateOnOverflowOnly` prop is not supported for vertical marquees.")):(a.value="auto",e.animateOnOverflowOnly?i.value="auto":i.value="100%"),e.gradient&&(e.gradientWidth?(console.warn("The `gradientWidth` prop has been deprecated and will be removed in a future release. Please use `gradientLength` instead."),E.value=e.gradientWidth):e.gradientLength&&(E.value=e.gradientLength)),(e.clone||e.animateOnOverflowOnly)&&(await A(),y()),b.value=!0};return vue.onMounted(async()=>{V(),p.value=setInterval(()=>{v.value++,e.loop!==0&&v.value===e.loop&&(n("onComplete"),clearInterval(p.value)),n("onLoopComplete")},e.duration*1e3)}),vue.onBeforeUnmount(()=>{clearInterval(p.value)}),{ready:b,contentWidth:u,containerWidth:c,contentHeight:x,containerHeight:f,loopCounter:v,loopInterval:p,mouseOverMarquee:h,mouseDownMarquee:g,minWidth:i,minHeight:a,animateOnOverflowPause:l,marqueeContent:d,marqueeOverlayContainer:m,componentKey:o,showGradient:H,cloneAmount:r,ForcesUpdate:y,checkForClone:A,setupMarquee:V,getCurrentStyle:R,hoverStarted:_,hoverEnded:k,mouseDown:T,mouseUp:F}}}),_hoisted_1$h={class:"transparent-overlay",ref:"marqueeOverlayContainer","aria-hidden":!0},_hoisted_2$7={class:"marquee",ref:"marqueeContent"},_hoisted_3$3={key:1,"aria-hidden":!0,class:"marquee"};function _sfc_render$B(e,n,r,i,a,o){return e.ready?(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vue3-marquee",{vertical:e.vertical,horizontal:!e.vertical}]),style:vue.normalizeStyle(e.getCurrentStyle),key:e.componentKey,onMouseenter:n[0]||(n[0]=(...s)=>e.hoverStarted&&e.hoverStarted(...s)),onMouseleave:n[1]||(n[1]=(...s)=>e.hoverEnded&&e.hoverEnded(...s)),onMousedown:n[2]||(n[2]=(...s)=>e.mouseDown&&e.mouseDown(...s)),onMouseup:n[3]||(n[3]=(...s)=>e.mouseUp&&e.mouseUp(...s))},[vue.createElementVNode("div",_hoisted_1$h,null,512),e.showGradient?(vue.openBlock(),vue.createElementBlock("div",{key:0,"aria-hidden":!0,class:vue.normalizeClass(["overlay",{vertical:e.vertical,horizontal:!e.vertical}])},null,2)):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_2$7,[vue.renderSlot(e.$slots,"default")],512),!e.animateOnOverflowOnly||e.animateOnOverflowOnly&&!e.animateOnOverflowPause?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$3,[vue.renderSlot(e.$slots,"default")])):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.cloneAmount,s=>(vue.openBlock(),vue.createElementBlock("div",{"aria-hidden":!0,class:"marquee cloned",key:s},[vue.renderSlot(e.$slots,"default")]))),128))],38)):vue.createCommentVNode("",!0)}var Vue3Marquee=_export_sfc(_sfc_main$w,[["render",_sfc_render$B]]);const _sfc_main$v=vue.defineComponent({name:"SeamScroll",components:{Vue3Marquee},props:{dataSource:{type:Object,default:()=>{}},visible:{type:Boolean,default:!1},vertical:{type:Boolean,default:!0},step:{type:Number,default:1},wrapStyle:{type:Object,default:()=>({})},marqueeStyle:{type:Object,default:()=>({})}},setup(e){return{isAutoScroll:vue.ref(e.visible)}}}),MarqueeScroll_vue_vue_type_style_index_0_lang="";function _sfc_render$A(e,n,r,i,a,o){const s=vue.resolveComponent("Vue3Marquee");return e.isAutoScroll?(vue.openBlock(),vue.createBlock(s,{key:0,class:"vue-marquee",style:vue.normalizeStyle({...e.marqueeStyle,width:"100%"}),duration:e.step,vertical:e.vertical,pauseOnHover:!0},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},8,["style","duration","vertical"])):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"list-wrap",style:vue.normalizeStyle(e.wrapStyle)},[vue.renderSlot(e.$slots,"default")],4))}const MarqueeScroll=_export_sfc$1(_sfc_main$v,[["render",_sfc_render$A]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const withInstall$1=(e,n)=>{if(e.install=r=>{for(const i of[e,...Object.values(n??{})])r.component(i.name,i)},n)for(const[r,i]of Object.entries(n))e[r]=i;return e},props={id:"",name:"",keyName:"",type:"",width:"100px",height:"40px",position:"absolute",top:"0px",left:"0px",zIndex:1,rotate:"0deg",isShow:!0,isRender:!0,requestUrl:"",requestType:0,requestMethod:"get",dataSetParam:{},requestHeaders:"{}",isOpenRequestTimer:!1,isViewRedrawing:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static",scale:1,requestParamsMode:"1",customRequestParams:"{}",componentDoc:null},transformToComponentProps=e=>{const n={};if(typeof e=="object"&&e!=null)for(const r in e){const i=e[r];n[r]={type:i==null?void 0:i.constructor,default:i}}return n},pageConfig={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal",pageFontFamily:"",jumpType:"page",jumpTime:null,jumpPage:"",jumpLink:"",requestList:[]},pageConfigComponentProps=transformToComponentProps(pageConfig),EVENT_BUS="EVENT_BUS",GLOBAL_CONFIG="GLOBAL_CONFIG",GLOBAL_MODEL="GLOBAL_MODEL",REQUEST_MODEL="REQUEST_MODEL",GLOBAL_TOKEN="GLOBAL_TOKEN",REFRESH_PAGE="REFRESH_PAGE",MODAL_MODEL="MODAL_MODEL",LOADED_DATA="LOADED_DATA",ZOOM_FONT_SIZE=18,CONTEXT="ygt",INDICATOR_URL=((ke=window==null?void 0:window.config)==null?void 0:ke.indicatorURL)||"";(Ze=window==null?void 0:window.config)!=null&&Ze.uploadPath;const BASE_URL=((Qe=window==null?void 0:window.config)==null?void 0:Qe.routerBaseURL)||"./",ERD_URL=((et=window==null?void 0:window.config)==null?void 0:et.erdURL)||"",MODEL_KEY_LIST=["table","bar","combograph","line","pie","radar","scatter","list","circulate"],handleFormatter=e=>e.replace(/\\n/g,`
58
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(e,n){if(e){if(typeof e=="string")return _arrayLikeToArray(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _arrayLikeToArray(e,n)}}function _arrayLikeToArray(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,i=new Array(n);r<n;r++)i[r]=e[r];return i}function _iterableToArrayLimit(e,n){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i=[],a=!0,o=!1,s,l;try{for(r=r.call(e);!(a=(s=r.next()).done)&&(i.push(s.value),!(n&&i.length===n));a=!0);}catch(c){o=!0,l=c}finally{try{!a&&r.return!=null&&r.return()}finally{if(o)throw l}}return i}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _objectSpread$6(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?Object(arguments[n]):{},i=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),i.forEach(function(a){_defineProperty$6(e,a,r[a])})}return e}function _defineProperty$6(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function _objectWithoutProperties(e,n){if(e==null)return{};var r=_objectWithoutPropertiesLoose(e,n),i,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)i=o[a],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function _objectWithoutPropertiesLoose(e,n){if(e==null)return{};var r={},i=Object.keys(e),a,o;for(o=0;o<i.length;o++)a=i[o],!(n.indexOf(a)>=0)&&(r[a]=e[a]);return r}setTwoToneColor("#1890ff");var Icon$1=function(n,r){var i,a=_objectSpread$6({},n,r.attrs),o=a.class,s=a.icon,l=a.spin,c=a.rotate,u=a.tabindex,f=a.twoToneColor,x=a.onClick,h=_objectWithoutProperties(a,_excluded),g=(i={anticon:!0},_defineProperty$6(i,"anticon-".concat(s.name),!!s.name),_defineProperty$6(i,o,o),i),v=l===""||l||s.name==="loading"?"anticon-spin":"",p=u;p===void 0&&x&&(p=-1,h.tabindex=p);var C=c?{msTransform:"rotate(".concat(c,"deg)"),transform:"rotate(".concat(c,"deg)")}:void 0,b=normalizeTwoToneColors(f),d=_slicedToArray(b,2),m=d[0],y=d[1];return vue.createVNode("span",_objectSpread$6({role:"img","aria-label":s.name},h,{onClick:x,class:g}),[vue.createVNode(VueIcon,{class:v,icon:s,primaryColor:m,secondaryColor:y,style:C},null)])};Icon$1.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Icon$1.displayName="AntdIcon",Icon$1.inheritAttrs=!1,Icon$1.getTwoToneColor=getTwoToneColor,Icon$1.setTwoToneColor=setTwoToneColor;const AntdIcon=Icon$1;var CalendarOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};const CalendarOutlinedSvg=CalendarOutlined$2;function _objectSpread$5(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?Object(arguments[n]):{},i=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),i.forEach(function(a){_defineProperty$5(e,a,r[a])})}return e}function _defineProperty$5(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var CalendarOutlined=function(n,r){var i=_objectSpread$5({},n,r.attrs);return vue.createVNode(AntdIcon,_objectSpread$5({},i,{icon:CalendarOutlinedSvg}),null)};CalendarOutlined.displayName="CalendarOutlined",CalendarOutlined.inheritAttrs=!1;const CalendarOutlined$1=CalendarOutlined;var CloseCircleFilled$2={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};const CloseCircleFilledSvg=CloseCircleFilled$2;function _objectSpread$4(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?Object(arguments[n]):{},i=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),i.forEach(function(a){_defineProperty$4(e,a,r[a])})}return e}function _defineProperty$4(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var CloseCircleFilled=function(n,r){var i=_objectSpread$4({},n,r.attrs);return vue.createVNode(AntdIcon,_objectSpread$4({},i,{icon:CloseCircleFilledSvg}),null)};CloseCircleFilled.displayName="CloseCircleFilled",CloseCircleFilled.inheritAttrs=!1;const CloseCircleFilled$1=CloseCircleFilled;var CloseOutlined$2={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const CloseOutlinedSvg=CloseOutlined$2;function _objectSpread$3(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?Object(arguments[n]):{},i=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),i.forEach(function(a){_defineProperty$3(e,a,r[a])})}return e}function _defineProperty$3(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var CloseOutlined=function(n,r){var i=_objectSpread$3({},n,r.attrs);return vue.createVNode(AntdIcon,_objectSpread$3({},i,{icon:CloseOutlinedSvg}),null)};CloseOutlined.displayName="CloseOutlined",CloseOutlined.inheritAttrs=!1;const CloseOutlined$1=CloseOutlined;var DownOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const DownOutlinedSvg=DownOutlined$2;function _objectSpread$2(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?Object(arguments[n]):{},i=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),i.forEach(function(a){_defineProperty$2(e,a,r[a])})}return e}function _defineProperty$2(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var DownOutlined=function(n,r){var i=_objectSpread$2({},n,r.attrs);return vue.createVNode(AntdIcon,_objectSpread$2({},i,{icon:DownOutlinedSvg}),null)};DownOutlined.displayName="DownOutlined",DownOutlined.inheritAttrs=!1;const DownOutlined$1=DownOutlined;var LoadingOutlined$2={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const LoadingOutlinedSvg=LoadingOutlined$2;function _objectSpread$1(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?Object(arguments[n]):{},i=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),i.forEach(function(a){_defineProperty$1(e,a,r[a])})}return e}function _defineProperty$1(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var LoadingOutlined=function(n,r){var i=_objectSpread$1({},n,r.attrs);return vue.createVNode(AntdIcon,_objectSpread$1({},i,{icon:LoadingOutlinedSvg}),null)};LoadingOutlined.displayName="LoadingOutlined",LoadingOutlined.inheritAttrs=!1;const LoadingOutlined$1=LoadingOutlined;var RightOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};const RightOutlinedSvg=RightOutlined$2;function _objectSpread(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?Object(arguments[n]):{},i=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),i.forEach(function(a){_defineProperty(e,a,r[a])})}return e}function _defineProperty(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var RightOutlined=function(n,r){var i=_objectSpread({},n,r.attrs);return vue.createVNode(AntdIcon,_objectSpread({},i,{icon:RightOutlinedSvg}),null)};RightOutlined.displayName="RightOutlined",RightOutlined.inheritAttrs=!1;const RightOutlined$1=RightOutlined,_sfc_main$y=vue.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:antDesignVue.Spin},setup(){return{indicator:vue.h(LoadingOutlined$1,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),Spin_vue_vue_type_style_index_0_lang="",_export_sfc$1=(e,n)=>{const r=e.__vccOpts||e;for(const[i,a]of n)r[i]=a;return r},_hoisted_1$i={class:"spin-wrapper"};function _sfc_render$D(e,n,r,i,a,o){const s=vue.resolveComponent("a-spin");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$i,[e.spinning?(vue.openBlock(),vue.createBlock(s,{key:0,class:"spin",spinning:e.spinning,indicator:e.indicator,tip:"加载中..."},null,8,["spinning","indicator"])):vue.renderSlot(e.$slots,"default",{key:1})])}const Spin=_export_sfc$1(_sfc_main$y,[["render",_sfc_render$D]]),_sfc_main$x=vue.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:antDesignVue.Skeleton}});function _sfc_render$C(e,n,r,i,a,o){const s=vue.resolveComponent("a-skeleton");return vue.openBlock(),vue.createBlock(s,{active:"",loading:e.loading},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},8,["loading"])}const Skeleton=_export_sfc$1(_sfc_main$x,[["render",_sfc_render$C]]);(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.vue3-marquee{display:flex!important;position:relative}.vue3-marquee.horizontal{overflow-x:hidden!important;flex-direction:row!important;width:100%;height:max-content}.vue3-marquee.vertical{overflow-y:hidden!important;flex-direction:column!important;height:100%;width:max-content}.vue3-marquee:hover>.marquee{animation-play-state:var(--pauseOnHover)}.vue3-marquee:active>.marquee{animation-play-state:var(--pauseOnClick)}.vue3-marquee>.marquee{flex:0 0 auto;min-width:var(--min-width);min-height:var(--min-height);z-index:1;animation:var(--orientation) var(--duration) linear var(--delay) var(--loops);animation-play-state:var(--pauseAnimation);animation-direction:var(--direction)}.vue3-marquee.horizontal>.marquee{display:flex;flex-direction:row;align-items:center}.vue3-marquee.vertical>.marquee{display:flex;flex-direction:column;align-items:center}@keyframes scrollX{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes scrollY{0%{transform:translateY(0)}to{transform:translateY(-100%)}}.vue3-marquee>.overlay{position:absolute;width:100%;height:100%}.vue3-marquee>.transparent-overlay{position:absolute;width:100%;height:100%}.vue3-marquee>.overlay:before,.vue3-marquee>.overlay:after{content:"";position:absolute;z-index:2}.vue3-marquee.horizontal>.overlay:before,.vue3-marquee.horizontal>.overlay:after{background:linear-gradient(to right,var(--gradient-color));height:100%;width:var(--gradient-length)}.vue3-marquee.vertical>.overlay:before,.vue3-marquee.vertical>.overlay:after{background:linear-gradient(to bottom,var(--gradient-color));height:var(--gradient-length);width:100%}.vue3-marquee.horizontal>.overlay:after{transform:rotate(180deg)}.vue3-marquee.vertical>.overlay:after{transform:rotate(-180deg)}.vue3-marquee>.overlay:before{left:0;top:0}.vue3-marquee.horizontal>.overlay:after{right:0;top:0}.vue3-marquee.vertical>.overlay:after{left:0;bottom:0}')),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}})();var __defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,n,r)=>n in e?__defProp(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,__spreadValues=(e,n)=>{for(var r in n||(n={}))__hasOwnProp.call(n,r)&&__defNormalProp(e,r,n[r]);if(__getOwnPropSymbols)for(var r of __getOwnPropSymbols(n))__propIsEnum.call(n,r)&&__defNormalProp(e,r,n[r]);return e},_export_sfc=(e,n)=>{const r=e.__vccOpts||e;for(const[i,a]of n)r[i]=a;return r};const _sfc_main$w=vue.defineComponent({props:{vertical:{type:Boolean,default:!1},direction:{type:String,default:"normal"},duration:{type:Number,default:20},delay:{type:Number,default:0},loop:{type:Number,default:0},clone:{type:Boolean,default:!1},gradient:{type:Boolean,default:!1},gradientColor:{type:Array,default:[255,255,255]},gradientWidth:{type:String},gradientLength:{type:String},pauseOnHover:{type:Boolean,default:!1},pauseOnClick:{type:Boolean,default:!1},pause:{type:Boolean,default:!1},animateOnOverflowOnly:{type:Boolean,default:!1}},emits:["onComplete","onLoopComplete","onPause","onResume","onOverflowDetected","onOverflowCleared"],setup(e,{emit:n}){const r=vue.ref(0),i=vue.ref("100%"),a=vue.ref("100%"),o=vue.ref(0),s=vue.ref(!1),l=vue.ref(!1),c=vue.ref(0),u=vue.ref(0),f=vue.ref(0),x=vue.ref(0),h=vue.ref(!1),g=vue.ref(!1),v=vue.ref(0),p=vue.ref(null),C=vue.ref("200px"),b=vue.ref(!1),d=vue.ref(null),m=vue.ref(null),y=async()=>{await A(),o.value++},A=async()=>{e.vertical&&(s.value=!0),setInterval(()=>{if(i.value="0%",a.value="0%",d.value!==null&&m.value!==null&&d.value&&m.value)if(e.vertical&&"clientHeight"in d.value&&"clientHeight"in m.value){x.value=d.value.clientHeight,f.value=m.value.clientHeight;const P=Math.ceil(f.value/x.value);return r.value=isFinite(P)?P:0,s.value=!1,r.value}else if(!e.vertical&&"clientWidth"in d.value&&"clientWidth"in m.value){if(u.value=d.value.clientWidth,c.value=m.value.clientWidth,e.animateOnOverflowOnly)return u.value<c.value?(l.value=!0,n("onOverflowDetected")):(l.value=!1,n("onOverflowCleared")),0;const P=Math.ceil(c.value/u.value);return r.value=isFinite(P)?P:0,r.value}else return i.value="100%",a.value="100%",0;else return i.value="100%",a.value="100%",0},100)};vue.watch(u,async()=>{e.clone&&y()}),vue.watch(c,async()=>{(e.clone||e.animateOnOverflowOnly)&&y()}),vue.watch(()=>e.pause,(P,I)=>{P!==I&&n(P?"onResume":"onPause")});const _=()=>{e.pauseOnHover&&(n("onPause"),h.value=!0)},k=()=>{e.pauseOnHover&&(n("onResume"),h.value=!1)},T=()=>{e.pauseOnClick&&(n("onPause"),g.value=!0)},F=()=>{e.pauseOnClick&&(n("onResume"),g.value=!1)},M=vue.computed(()=>e.pause||e.vertical&&s.value||e.animateOnOverflowOnly&&l.value?"paused":"running"),B=vue.computed(()=>e.pauseOnHover&&(h.value||g.value)||!e.pauseOnHover&&M.value==="paused"?"paused":"running"),L=vue.computed(()=>e.pauseOnHover&&h.value||e.pauseOnClick&&g.value||!e.pauseOnHover&&M.value==="paused"?"paused":"running"),V=vue.computed(()=>{const P={"--duration":`${e.duration}s`,"--delay":`${e.delay}s`,"--direction":`${e.direction}`,"--pauseOnHover":`${B.value}`,"--pauseOnClick":`${L.value}`,"--pauseAnimation":`${M.value}`,"--loops":`${e.loop===0?"infinite":e.loop}`,"--gradient-color":`rgba(${e.gradientColor[0]}, ${e.gradientColor[1]}, ${e.gradientColor[2]}, 1), rgba(${e.gradientColor[0]}, ${e.gradientColor[1]}, ${e.gradientColor[2]}, 0)`,"--gradient-length":`${C.value}`,"--min-width":`${i.value}`,"--min-height":`${a.value}`},I={"--orientation":"scrollX",orientation:"horizontal"};return e.vertical&&(I["--orientation"]="scrollY"),__spreadValues(__spreadValues({},P),I)}),U=vue.computed(()=>!!e.gradient),$=async()=>{e.vertical?(a.value="100%",i.value="auto",e.animateOnOverflowOnly&&console.warn("The `animateOnOverflowOnly` prop is not supported for vertical marquees.")):(a.value="auto",e.animateOnOverflowOnly?i.value="auto":i.value="100%"),e.gradient&&(e.gradientWidth?(console.warn("The `gradientWidth` prop has been deprecated and will be removed in a future release. Please use `gradientLength` instead."),C.value=e.gradientWidth):e.gradientLength&&(C.value=e.gradientLength)),(e.clone||e.animateOnOverflowOnly)&&(await A(),y()),b.value=!0};return vue.onMounted(async()=>{$(),p.value=setInterval(()=>{v.value++,e.loop!==0&&v.value===e.loop&&(n("onComplete"),clearInterval(p.value)),n("onLoopComplete")},e.duration*1e3)}),vue.onBeforeUnmount(()=>{clearInterval(p.value)}),{ready:b,contentWidth:u,containerWidth:c,contentHeight:x,containerHeight:f,loopCounter:v,loopInterval:p,mouseOverMarquee:h,mouseDownMarquee:g,minWidth:i,minHeight:a,animateOnOverflowPause:l,marqueeContent:d,marqueeOverlayContainer:m,componentKey:o,showGradient:U,cloneAmount:r,ForcesUpdate:y,checkForClone:A,setupMarquee:$,getCurrentStyle:V,hoverStarted:_,hoverEnded:k,mouseDown:T,mouseUp:F}}}),_hoisted_1$h={class:"transparent-overlay",ref:"marqueeOverlayContainer","aria-hidden":!0},_hoisted_2$7={class:"marquee",ref:"marqueeContent"},_hoisted_3$3={key:1,"aria-hidden":!0,class:"marquee"};function _sfc_render$B(e,n,r,i,a,o){return e.ready?(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vue3-marquee",{vertical:e.vertical,horizontal:!e.vertical}]),style:vue.normalizeStyle(e.getCurrentStyle),key:e.componentKey,onMouseenter:n[0]||(n[0]=(...s)=>e.hoverStarted&&e.hoverStarted(...s)),onMouseleave:n[1]||(n[1]=(...s)=>e.hoverEnded&&e.hoverEnded(...s)),onMousedown:n[2]||(n[2]=(...s)=>e.mouseDown&&e.mouseDown(...s)),onMouseup:n[3]||(n[3]=(...s)=>e.mouseUp&&e.mouseUp(...s))},[vue.createElementVNode("div",_hoisted_1$h,null,512),e.showGradient?(vue.openBlock(),vue.createElementBlock("div",{key:0,"aria-hidden":!0,class:vue.normalizeClass(["overlay",{vertical:e.vertical,horizontal:!e.vertical}])},null,2)):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_2$7,[vue.renderSlot(e.$slots,"default")],512),!e.animateOnOverflowOnly||e.animateOnOverflowOnly&&!e.animateOnOverflowPause?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$3,[vue.renderSlot(e.$slots,"default")])):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.cloneAmount,s=>(vue.openBlock(),vue.createElementBlock("div",{"aria-hidden":!0,class:"marquee cloned",key:s},[vue.renderSlot(e.$slots,"default")]))),128))],38)):vue.createCommentVNode("",!0)}var Vue3Marquee=_export_sfc(_sfc_main$w,[["render",_sfc_render$B]]);const _sfc_main$v=vue.defineComponent({name:"SeamScroll",components:{Vue3Marquee},props:{dataSource:{type:Object,default:()=>{}},visible:{type:Boolean,default:!1},vertical:{type:Boolean,default:!0},step:{type:Number,default:1},wrapStyle:{type:Object,default:()=>({})},marqueeStyle:{type:Object,default:()=>({})}},setup(e){return{isAutoScroll:vue.ref(e.visible)}}}),MarqueeScroll_vue_vue_type_style_index_0_lang="";function _sfc_render$A(e,n,r,i,a,o){const s=vue.resolveComponent("Vue3Marquee");return e.isAutoScroll?(vue.openBlock(),vue.createBlock(s,{key:0,class:"vue-marquee",style:vue.normalizeStyle({...e.marqueeStyle,width:"100%"}),duration:e.step,vertical:e.vertical,pauseOnHover:!0},{default:vue.withCtx(()=>[vue.renderSlot(e.$slots,"default")]),_:3},8,["style","duration","vertical"])):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"list-wrap",style:vue.normalizeStyle(e.wrapStyle)},[vue.renderSlot(e.$slots,"default")],4))}const MarqueeScroll=_export_sfc$1(_sfc_main$v,[["render",_sfc_render$A]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const withInstall$1=(e,n)=>{if(e.install=r=>{for(const i of[e,...Object.values(n??{})])r.component(i.name,i)},n)for(const[r,i]of Object.entries(n))e[r]=i;return e},props={id:"",name:"",keyName:"",type:"",width:"100px",height:"40px",position:"absolute",top:"0px",left:"0px",zIndex:1,rotate:"0deg",isShow:!0,isRender:!0,requestUrl:"",requestType:0,requestMethod:"get",dataSetParam:{},requestHeaders:"{}",isOpenRequestTimer:!1,isViewRedrawing:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static",scale:1,requestParamsMode:"1",customRequestParams:"{}",componentDoc:null},transformToComponentProps=e=>{const n={};if(typeof e=="object"&&e!=null)for(const r in e){const i=e[r];n[r]={type:i==null?void 0:i.constructor,default:i}}return n},pageConfig={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal",pageFontFamily:"",jumpType:"page",jumpTime:null,jumpPage:"",jumpLink:"",requestList:[]},pageConfigComponentProps=transformToComponentProps(pageConfig),EVENT_BUS="EVENT_BUS",GLOBAL_CONFIG="GLOBAL_CONFIG",GLOBAL_MODEL="GLOBAL_MODEL",REQUEST_MODEL="REQUEST_MODEL",GLOBAL_TOKEN="GLOBAL_TOKEN",REFRESH_PAGE="REFRESH_PAGE",MODAL_MODEL="MODAL_MODEL",LOADED_DATA="LOADED_DATA",ZOOM_FONT_SIZE=18,CONTEXT="ygt",INDICATOR_URL=((Pe=window==null?void 0:window.config)==null?void 0:Pe.indicatorURL)||"";(Qe=window==null?void 0:window.config)!=null&&Qe.uploadPath;const BASE_URL=((tt=window==null?void 0:window.config)==null?void 0:tt.routerBaseURL)||"./",ERD_URL=((nt=window==null?void 0:window.config)==null?void 0:nt.erdURL)||"",MODEL_KEY_LIST=["table","bar","combograph","line","pie","radar","scatter","list","circulate"],handleFormatter=e=>e.replace(/\\n/g,`
59
59
  `),formatMoney=(e,n=2)=>{const r=parseFloat(e+"");return isNaN(r)?e:r.toFixed(n).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},formatThousands=e=>{const n=parseFloat(e+"");return isNaN(n)?e:(n+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},formatPercentage=(e,n=2)=>{const r=e+"";if(r.includes("%"))return e;const i=parseFloat(r);return isNaN(i)?e:`${(i*100).toFixed(n)}%`},formatDecimals=(e,n=2)=>{const r=e+"",i=parseFloat(r);return isNaN(i)?e:i.toFixed(n)},formatCustom=(e,n)=>useValueFormatter(n,e),lowerCaseIncludes=(e,n)=>{if(typeof e=="string"&&typeof n=="string")return e.toLocaleLowerCase().includes(n.toLocaleLowerCase());if(typeof e=="string"&&Array.isArray(n)){const r=n.length;for(let i=0;i<r;i++){const a=n[i];if(typeof a=="string"&&e.toLocaleLowerCase().includes(a.toLocaleLowerCase()))return!0}}return!1},hasOwn=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),getFixedValueDatas=e=>{const{leftAxisList:n=[],rightAxisList:r=[],queryColumnList:i=[],indicators:a=[]}=e;return[...n,...r,...i,...a].filter(o=>(o==null?void 0:o.calcType)==="COMPONENT").map(o=>({keyName:o.builtInCalcWay,id:o.builtInValueSource}))},canRequestIndicator=(e,n)=>{let r=!0;const i=getFixedValueDatas(e);return i!=null&&i.length&&(r=i.map(a=>n[a.id]).every(a=>a)),r},getLegendFormat=(e,n)=>{var s;const r=e.match(/\{(.+?)\}/g),i=((s=e.split(`
60
60
  `))==null?void 0:s.length)-1;let a="";if(i)for(let l=0;l<i;l++)a+=`
61
- `;let o=e;if(r!=null&&r.length){for(const l of r){const c=useVariablesInText(l,{textData:n},{useNewline:!1,useSpace:!1});c&&(o=o.replace(l,c))}return`${a}{text|${o}}`}else return e},setDefaultRangeVal=(e,n)=>{const{props:r,componentList:i,getGlobalModel:a}=e,{graphicConfig:o={},startValue:s,endValue:l}=r,c=getdefCompleteData({graphicConfig:o,startValue:s,endValue:l,componentList:i,getGlobalModel:a}),{dimensions:u,dataset:f}=n,{classificationList:x=[]}=o,g=x.find(v=>v.show).label||"";for(const v of c)u.includes(v)||u.push(v);u.sort((v,p)=>dayjs(v).isBefore(dayjs(p))?-1:1);for(const v of f){const{data:p}=v;if(p!=null&&p.length){const E=[];for(const b of c)if(p.find(d=>d[g]!==b)){const d=lodashEs.cloneDeep(p[0]);for(const m in d)m===g?d[m]=b:d[m]=0;E.push(d)}v.data.push(...E),v.data.sort((b,d)=>dayjs(b[g]).isBefore(dayjs(d[g]))?-1:1)}}},getConditions=e=>{const n=[];for(const r of e)r.conditions?n.push(...getConditions(r.conditions)):(r==null?void 0:r.dataType)==="component"&&n.push(r);return n};function getdefCompleteData(e){const{startValue:n,endValue:r,componentList:i,graphicConfig:a,getGlobalModel:o}=e,s=getVariableAndField(n),l=getVariableAndField(r),c=[];if(s&&l){const u=i.find(x=>x.keyName===s.keyName),f=i.find(x=>x.keyName===l.keyName);if(u&&f){const x=o(u.id),h=o(f.id),{classificationList:g=[]}=a,v=g.find(p=>p.show);if(v){let p="YYYY-MM";switch(v.name){case"the_year":p="YYYY";break;case"the_month":p="MM";break;case"the_day":p="DD";break;case"the_date":p=(v==null?void 0:v.dateFormat)||p;break}const E=getFormatStep(p);if(p){const b=vue.unref(x[s.field]),d=vue.unref(h[l.field]);let m=dayjs(b);const y=dayjs(d);for(c.push(y.format(p));m.isBefore(y);)c.push(m.format(p)),m=m.add(1,E)}}}}return c}function getVariableAndField(e){let n=null;if(e){const r=e.match(/\{(.+?)\}/g);if(r!=null&&r.length){let i=r[0].slice(1,-1).trim();const a=i.match(/\[(.+?)\]/g);let o="";a!=null&&a.length&&(i=i.replace(a[0],""),o=a[0].slice(1,-1).trim()),n={keyName:i,field:o}}}return n}function getFormatStep(e){const n=e.split("-");let r="";if(n!=null&&n.length)switch(n[n.length-1]){case"YYYY":r="year";break;case"MM":r="month";break;case"DD":r="day";break}return r}function handleJumpLink(e,n){var x;const{pageMode:r,targetTemplate:i,getRecordValueByKeyName:a,setTemplateData:o}=n,s=e.linkPage||"",l=usePageUrl(r,s),c=e.href;let u=c||l;u=useVariablesInText(u);const f=e.target;if(f)if(f==="event")window.parent.postMessage({type:"openPage",url:c},"*");else{const h={pageId:s,componentId:i};if((x=e.transParams)!=null&&x.length){u.includes("?")?u+="&":u+="?";const g=[];for(const v of e.transParams){const p=a(String(v.fieldName));g.push(`${v.keyName}=${p}`),h[v.keyName]=p}u+=g.join("&")}f==="template"?(window.controller.abort(),window.controller=new AbortController,o(h)):(f==="blank"&&(u+=`${u.includes("?")?"&":"?"}drillFlag=1`),window.open(u,"_"+f))}}function getPageUrlParams(e){var r,i;let n={};if(e){const a=(((r=window.config)==null?void 0:r.urlParams)||{})[e]||{};for(const o in a)o.includes("{")||(n[o]=a[o])}else n=((i=window.config)==null?void 0:i.requestParams)||{};return n}function getNewValueFromUrlParams(e,n,r){let i="";const{urlParams:a}=window.config;if(e&&a[e])for(const o in a[e]){const s=a[e][o];if(o===`{${n}[${r}]}`&&s){i=s;break}}return i}const 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=(e,n=[])=>{const{pageMode:r}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),i=lodashEs.without(styleList,...n);return vue.computed(()=>{var s,l;const a=lodashEs.pick(e,i),o=["width","height","top","left"];for(const c of o)hasOwn(a,c)&&(["width","height"].includes(c)&&((s=e[c])==null?void 0:s.suffix)==="%"&&vue.unref(r)==="design"?a[c]="100%":(l=e[c])!=null&&l.suffix&&(a[c]=(e[c].value||0)+e[c].suffix));return a})},useOnEvent=(e,n)=>{vue.watch(()=>e.id,r=>{const i=vue.inject(EVENT_BUS,{onEvent:(a,o)=>{}});r!=null&&r!==""&&i.onEvent(r,n)},{immediate:!0})},useEmitEvent=e=>{const n=e.events,r=e.id,i=vue.inject(EVENT_BUS,{emitEvent:(o,s,l)=>{}}),{touchEventId:a}=vue.inject(GLOBAL_CONFIG,{touchEventId:vue.ref("")});return(o,s=()=>{},l)=>function(){s.call(this,...arguments);const{emitEvent:c}=i;n.forEach(u=>{if(o===u.on)try{a.value=r,l?c(u.target,u.emit,l):c(u.target,u.emit)}catch(f){console.error(f)}})}},useTransformChartDataByAttrValue=(e,n)=>{let{name:r="name",value:i="value",type:a="type"}=n||{};r=r==null?void 0:r.trim(),i=i==null?void 0:i.trim(),a=a==null?void 0:a.trim();const o=new Map,s=e.length;for(let u=0;u<s;u++){const f=e[u],x=f[r]||"",h=f[i]||"",g=f[a]||"";if(o.has(g)){const v=o.get(g);v.push({name:x,value:h,...f}),o.set(g,v)}else o.set(g,[{name:x,value:h,...f}])}const l=[],c=[];for(const[u,f]of o)if(c.push({name:u,data:f}),f!=null&&f.length)if(l.length)for(const x of f)l.includes(x.name)||l.push(x.name);else l.push(...f.map(x=>x.name));return{dimensions:l,dataset:c}};var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var r=function i(){return this instanceof i?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};r.prototype=n.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var a=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,a.get?a:{enumerable:!0,get:function(){return e[i]}})}),r}var cryptoJs={exports:{}};function commonjsRequire(e){throw new Error('Could not dynamically require "'+e+'". 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(e,n){(function(r,i){e.exports=i()})(commonjsGlobal,function(){var r=r||function(i,a){var o;if(typeof window<"u"&&window.crypto&&(o=window.crypto),typeof self<"u"&&self.crypto&&(o=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(o=globalThis.crypto),!o&&typeof window<"u"&&window.msCrypto&&(o=window.msCrypto),!o&&typeof commonjsGlobal<"u"&&commonjsGlobal.crypto&&(o=commonjsGlobal.crypto),!o&&typeof commonjsRequire=="function")try{o=require$$0}catch{}var s=function(){if(o){if(typeof o.getRandomValues=="function")try{return o.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof o.randomBytes=="function")try{return o.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},l=Object.create||function(){function d(){}return function(m){var y;return d.prototype=m,y=new d,d.prototype=null,y}}(),c={},u=c.lib={},f=u.Base=function(){return{extend:function(d){var m=l(this);return d&&m.mixIn(d),(!m.hasOwnProperty("init")||this.init===m.init)&&(m.init=function(){m.$super.init.apply(this,arguments)}),m.init.prototype=m,m.$super=this,m},create:function(){var d=this.extend();return d.init.apply(d,arguments),d},init:function(){},mixIn:function(d){for(var m in d)d.hasOwnProperty(m)&&(this[m]=d[m]);d.hasOwnProperty("toString")&&(this.toString=d.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),x=u.WordArray=f.extend({init:function(d,m){d=this.words=d||[],m!=a?this.sigBytes=m:this.sigBytes=d.length*4},toString:function(d){return(d||g).stringify(this)},concat:function(d){var m=this.words,y=d.words,A=this.sigBytes,_=d.sigBytes;if(this.clamp(),A%4)for(var k=0;k<_;k++){var T=y[k>>>2]>>>24-k%4*8&255;m[A+k>>>2]|=T<<24-(A+k)%4*8}else for(var F=0;F<_;F+=4)m[A+F>>>2]=y[F>>>2];return this.sigBytes+=_,this},clamp:function(){var d=this.words,m=this.sigBytes;d[m>>>2]&=4294967295<<32-m%4*8,d.length=i.ceil(m/4)},clone:function(){var d=f.clone.call(this);return d.words=this.words.slice(0),d},random:function(d){for(var m=[],y=0;y<d;y+=4)m.push(s());return new x.init(m,d)}}),h=c.enc={},g=h.Hex={stringify:function(d){for(var m=d.words,y=d.sigBytes,A=[],_=0;_<y;_++){var k=m[_>>>2]>>>24-_%4*8&255;A.push((k>>>4).toString(16)),A.push((k&15).toString(16))}return A.join("")},parse:function(d){for(var m=d.length,y=[],A=0;A<m;A+=2)y[A>>>3]|=parseInt(d.substr(A,2),16)<<24-A%8*4;return new x.init(y,m/2)}},v=h.Latin1={stringify:function(d){for(var m=d.words,y=d.sigBytes,A=[],_=0;_<y;_++){var k=m[_>>>2]>>>24-_%4*8&255;A.push(String.fromCharCode(k))}return A.join("")},parse:function(d){for(var m=d.length,y=[],A=0;A<m;A++)y[A>>>2]|=(d.charCodeAt(A)&255)<<24-A%4*8;return new x.init(y,m)}},p=h.Utf8={stringify:function(d){try{return decodeURIComponent(escape(v.stringify(d)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(d){return v.parse(unescape(encodeURIComponent(d)))}},E=u.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new x.init,this._nDataBytes=0},_append:function(d){typeof d=="string"&&(d=p.parse(d)),this._data.concat(d),this._nDataBytes+=d.sigBytes},_process:function(d){var m,y=this._data,A=y.words,_=y.sigBytes,k=this.blockSize,T=k*4,F=_/T;d?F=i.ceil(F):F=i.max((F|0)-this._minBufferSize,0);var M=F*k,B=i.min(M*4,_);if(M){for(var L=0;L<M;L+=k)this._doProcessBlock(A,L);m=A.splice(0,M),y.sigBytes-=B}return new x.init(m,B)},clone:function(){var d=f.clone.call(this);return d._data=this._data.clone(),d},_minBufferSize:0});u.Hasher=E.extend({cfg:f.extend(),init:function(d){this.cfg=this.cfg.extend(d),this.reset()},reset:function(){E.reset.call(this),this._doReset()},update:function(d){return this._append(d),this._process(),this},finalize:function(d){d&&this._append(d);var m=this._doFinalize();return m},blockSize:16,_createHelper:function(d){return function(m,y){return new d.init(y).finalize(m)}},_createHmacHelper:function(d){return function(m,y){return new b.HMAC.init(d,y).finalize(m)}}});var b=c.algo={};return c}(Math);return r})}(core)),core.exports}var x64Core={exports:{}},hasRequiredX64Core;function requireX64Core(){return hasRequiredX64Core||(hasRequiredX64Core=1,function(e,n){(function(r,i){e.exports=i(requireCore())})(commonjsGlobal,function(r){return function(i){var a=r,o=a.lib,s=o.Base,l=o.WordArray,c=a.x64={};c.Word=s.extend({init:function(u,f){this.high=u,this.low=f}}),c.WordArray=s.extend({init:function(u,f){u=this.words=u||[],f!=i?this.sigBytes=f:this.sigBytes=u.length*8},toX32:function(){for(var u=this.words,f=u.length,x=[],h=0;h<f;h++){var g=u[h];x.push(g.high),x.push(g.low)}return l.create(x,this.sigBytes)},clone:function(){for(var u=s.clone.call(this),f=u.words=this.words.slice(0),x=f.length,h=0;h<x;h++)f[h]=f[h].clone();return u}})}(),r})}(x64Core)),x64Core.exports}var libTypedarrays={exports:{}},hasRequiredLibTypedarrays;function requireLibTypedarrays(){return hasRequiredLibTypedarrays||(hasRequiredLibTypedarrays=1,function(e,n){(function(r,i){e.exports=i(requireCore())})(commonjsGlobal,function(r){return function(){if(typeof ArrayBuffer=="function"){var i=r,a=i.lib,o=a.WordArray,s=o.init,l=o.init=function(c){if(c instanceof ArrayBuffer&&(c=new Uint8Array(c)),(c instanceof Int8Array||typeof Uint8ClampedArray<"u"&&c instanceof Uint8ClampedArray||c instanceof Int16Array||c instanceof Uint16Array||c instanceof Int32Array||c instanceof Uint32Array||c instanceof Float32Array||c instanceof Float64Array)&&(c=new Uint8Array(c.buffer,c.byteOffset,c.byteLength)),c instanceof Uint8Array){for(var u=c.byteLength,f=[],x=0;x<u;x++)f[x>>>2]|=c[x]<<24-x%4*8;s.call(this,f,u)}else s.apply(this,arguments)};l.prototype=o}}(),r.lib.WordArray})}(libTypedarrays)),libTypedarrays.exports}var encUtf16={exports:{}},hasRequiredEncUtf16;function requireEncUtf16(){return hasRequiredEncUtf16||(hasRequiredEncUtf16=1,function(e,n){(function(r,i){e.exports=i(requireCore())})(commonjsGlobal,function(r){return function(){var i=r,a=i.lib,o=a.WordArray,s=i.enc;s.Utf16=s.Utf16BE={stringify:function(c){for(var u=c.words,f=c.sigBytes,x=[],h=0;h<f;h+=2){var g=u[h>>>2]>>>16-h%4*8&65535;x.push(String.fromCharCode(g))}return x.join("")},parse:function(c){for(var u=c.length,f=[],x=0;x<u;x++)f[x>>>1]|=c.charCodeAt(x)<<16-x%2*16;return o.create(f,u*2)}},s.Utf16LE={stringify:function(c){for(var u=c.words,f=c.sigBytes,x=[],h=0;h<f;h+=2){var g=l(u[h>>>2]>>>16-h%4*8&65535);x.push(String.fromCharCode(g))}return x.join("")},parse:function(c){for(var u=c.length,f=[],x=0;x<u;x++)f[x>>>1]|=l(c.charCodeAt(x)<<16-x%2*16);return o.create(f,u*2)}};function l(c){return c<<8&4278255360|c>>>8&16711935}}(),r.enc.Utf16})}(encUtf16)),encUtf16.exports}var encBase64={exports:{}},hasRequiredEncBase64;function requireEncBase64(){return hasRequiredEncBase64||(hasRequiredEncBase64=1,function(e,n){(function(r,i){e.exports=i(requireCore())})(commonjsGlobal,function(r){return function(){var i=r,a=i.lib,o=a.WordArray,s=i.enc;s.Base64={stringify:function(c){var u=c.words,f=c.sigBytes,x=this._map;c.clamp();for(var h=[],g=0;g<f;g+=3)for(var v=u[g>>>2]>>>24-g%4*8&255,p=u[g+1>>>2]>>>24-(g+1)%4*8&255,E=u[g+2>>>2]>>>24-(g+2)%4*8&255,b=v<<16|p<<8|E,d=0;d<4&&g+d*.75<f;d++)h.push(x.charAt(b>>>6*(3-d)&63));var m=x.charAt(64);if(m)for(;h.length%4;)h.push(m);return h.join("")},parse:function(c){var u=c.length,f=this._map,x=this._reverseMap;if(!x){x=this._reverseMap=[];for(var h=0;h<f.length;h++)x[f.charCodeAt(h)]=h}var g=f.charAt(64);if(g){var v=c.indexOf(g);v!==-1&&(u=v)}return l(c,u,x)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(c,u,f){for(var x=[],h=0,g=0;g<u;g++)if(g%4){var v=f[c.charCodeAt(g-1)]<<g%4*2,p=f[c.charCodeAt(g)]>>>6-g%4*2,E=v|p;x[h>>>2]|=E<<24-h%4*8,h++}return o.create(x,h)}}(),r.enc.Base64})}(encBase64)),encBase64.exports}var encBase64url={exports:{}},hasRequiredEncBase64url;function requireEncBase64url(){return hasRequiredEncBase64url||(hasRequiredEncBase64url=1,function(e,n){(function(r,i){e.exports=i(requireCore())})(commonjsGlobal,function(r){return function(){var i=r,a=i.lib,o=a.WordArray,s=i.enc;s.Base64url={stringify:function(c,u=!0){var f=c.words,x=c.sigBytes,h=u?this._safe_map:this._map;c.clamp();for(var g=[],v=0;v<x;v+=3)for(var p=f[v>>>2]>>>24-v%4*8&255,E=f[v+1>>>2]>>>24-(v+1)%4*8&255,b=f[v+2>>>2]>>>24-(v+2)%4*8&255,d=p<<16|E<<8|b,m=0;m<4&&v+m*.75<x;m++)g.push(h.charAt(d>>>6*(3-m)&63));var y=h.charAt(64);if(y)for(;g.length%4;)g.push(y);return g.join("")},parse:function(c,u=!0){var f=c.length,x=u?this._safe_map:this._map,h=this._reverseMap;if(!h){h=this._reverseMap=[];for(var g=0;g<x.length;g++)h[x.charCodeAt(g)]=g}var v=x.charAt(64);if(v){var p=c.indexOf(v);p!==-1&&(f=p)}return l(c,f,h)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(c,u,f){for(var x=[],h=0,g=0;g<u;g++)if(g%4){var v=f[c.charCodeAt(g-1)]<<g%4*2,p=f[c.charCodeAt(g)]>>>6-g%4*2,E=v|p;x[h>>>2]|=E<<24-h%4*8,h++}return o.create(x,h)}}(),r.enc.Base64url})}(encBase64url)),encBase64url.exports}var md5={exports:{}},hasRequiredMd5;function requireMd5(){return hasRequiredMd5||(hasRequiredMd5=1,function(e,n){(function(r,i){e.exports=i(requireCore())})(commonjsGlobal,function(r){return function(i){var a=r,o=a.lib,s=o.WordArray,l=o.Hasher,c=a.algo,u=[];(function(){for(var p=0;p<64;p++)u[p]=i.abs(i.sin(p+1))*4294967296|0})();var f=c.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(p,E){for(var b=0;b<16;b++){var d=E+b,m=p[d];p[d]=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360}var y=this._hash.words,A=p[E+0],_=p[E+1],k=p[E+2],T=p[E+3],F=p[E+4],M=p[E+5],B=p[E+6],L=p[E+7],R=p[E+8],H=p[E+9],V=p[E+10],P=p[E+11],I=p[E+12],S=p[E+13],C=p[E+14],N=p[E+15],w=y[0],q=y[1],O=y[2],D=y[3];w=x(w,q,O,D,A,7,u[0]),D=x(D,w,q,O,_,12,u[1]),O=x(O,D,w,q,k,17,u[2]),q=x(q,O,D,w,T,22,u[3]),w=x(w,q,O,D,F,7,u[4]),D=x(D,w,q,O,M,12,u[5]),O=x(O,D,w,q,B,17,u[6]),q=x(q,O,D,w,L,22,u[7]),w=x(w,q,O,D,R,7,u[8]),D=x(D,w,q,O,H,12,u[9]),O=x(O,D,w,q,V,17,u[10]),q=x(q,O,D,w,P,22,u[11]),w=x(w,q,O,D,I,7,u[12]),D=x(D,w,q,O,S,12,u[13]),O=x(O,D,w,q,C,17,u[14]),q=x(q,O,D,w,N,22,u[15]),w=h(w,q,O,D,_,5,u[16]),D=h(D,w,q,O,B,9,u[17]),O=h(O,D,w,q,P,14,u[18]),q=h(q,O,D,w,A,20,u[19]),w=h(w,q,O,D,M,5,u[20]),D=h(D,w,q,O,V,9,u[21]),O=h(O,D,w,q,N,14,u[22]),q=h(q,O,D,w,F,20,u[23]),w=h(w,q,O,D,H,5,u[24]),D=h(D,w,q,O,C,9,u[25]),O=h(O,D,w,q,T,14,u[26]),q=h(q,O,D,w,R,20,u[27]),w=h(w,q,O,D,S,5,u[28]),D=h(D,w,q,O,k,9,u[29]),O=h(O,D,w,q,L,14,u[30]),q=h(q,O,D,w,I,20,u[31]),w=g(w,q,O,D,M,4,u[32]),D=g(D,w,q,O,R,11,u[33]),O=g(O,D,w,q,P,16,u[34]),q=g(q,O,D,w,C,23,u[35]),w=g(w,q,O,D,_,4,u[36]),D=g(D,w,q,O,F,11,u[37]),O=g(O,D,w,q,L,16,u[38]),q=g(q,O,D,w,V,23,u[39]),w=g(w,q,O,D,S,4,u[40]),D=g(D,w,q,O,A,11,u[41]),O=g(O,D,w,q,T,16,u[42]),q=g(q,O,D,w,B,23,u[43]),w=g(w,q,O,D,H,4,u[44]),D=g(D,w,q,O,I,11,u[45]),O=g(O,D,w,q,N,16,u[46]),q=g(q,O,D,w,k,23,u[47]),w=v(w,q,O,D,A,6,u[48]),D=v(D,w,q,O,L,10,u[49]),O=v(O,D,w,q,C,15,u[50]),q=v(q,O,D,w,M,21,u[51]),w=v(w,q,O,D,I,6,u[52]),D=v(D,w,q,O,T,10,u[53]),O=v(O,D,w,q,V,15,u[54]),q=v(q,O,D,w,_,21,u[55]),w=v(w,q,O,D,R,6,u[56]),D=v(D,w,q,O,N,10,u[57]),O=v(O,D,w,q,B,15,u[58]),q=v(q,O,D,w,S,21,u[59]),w=v(w,q,O,D,F,6,u[60]),D=v(D,w,q,O,P,10,u[61]),O=v(O,D,w,q,k,15,u[62]),q=v(q,O,D,w,H,21,u[63]),y[0]=y[0]+w|0,y[1]=y[1]+q|0,y[2]=y[2]+O|0,y[3]=y[3]+D|0},_doFinalize:function(){var p=this._data,E=p.words,b=this._nDataBytes*8,d=p.sigBytes*8;E[d>>>5]|=128<<24-d%32;var m=i.floor(b/4294967296),y=b;E[(d+64>>>9<<4)+15]=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,E[(d+64>>>9<<4)+14]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,p.sigBytes=(E.length+1)*4,this._process();for(var A=this._hash,_=A.words,k=0;k<4;k++){var T=_[k];_[k]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360}return A},clone:function(){var p=l.clone.call(this);return p._hash=this._hash.clone(),p}});function x(p,E,b,d,m,y,A){var _=p+(E&b|~E&d)+m+A;return(_<<y|_>>>32-y)+E}function h(p,E,b,d,m,y,A){var _=p+(E&d|b&~d)+m+A;return(_<<y|_>>>32-y)+E}function g(p,E,b,d,m,y,A){var _=p+(E^b^d)+m+A;return(_<<y|_>>>32-y)+E}function v(p,E,b,d,m,y,A){var _=p+(b^(E|~d))+m+A;return(_<<y|_>>>32-y)+E}a.MD5=l._createHelper(f),a.HmacMD5=l._createHmacHelper(f)}(Math),r.MD5})}(md5)),md5.exports}var sha1={exports:{}},hasRequiredSha1;function requireSha1(){return hasRequiredSha1||(hasRequiredSha1=1,function(e,n){(function(r,i){e.exports=i(requireCore())})(commonjsGlobal,function(r){return function(){var i=r,a=i.lib,o=a.WordArray,s=a.Hasher,l=i.algo,c=[],u=l.SHA1=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(f,x){for(var h=this._hash.words,g=h[0],v=h[1],p=h[2],E=h[3],b=h[4],d=0;d<80;d++){if(d<16)c[d]=f[x+d]|0;else{var m=c[d-3]^c[d-8]^c[d-14]^c[d-16];c[d]=m<<1|m>>>31}var y=(g<<5|g>>>27)+b+c[d];d<20?y+=(v&p|~v&E)+1518500249:d<40?y+=(v^p^E)+1859775393:d<60?y+=(v&p|v&E|p&E)-1894007588:y+=(v^p^E)-899497514,b=E,E=p,p=v<<30|v>>>2,v=g,g=y}h[0]=h[0]+g|0,h[1]=h[1]+v|0,h[2]=h[2]+p|0,h[3]=h[3]+E|0,h[4]=h[4]+b|0},_doFinalize:function(){var f=this._data,x=f.words,h=this._nDataBytes*8,g=f.sigBytes*8;return x[g>>>5]|=128<<24-g%32,x[(g+64>>>9<<4)+14]=Math.floor(h/4294967296),x[(g+64>>>9<<4)+15]=h,f.sigBytes=x.length*4,this._process(),this._hash},clone:function(){var f=s.clone.call(this);return f._hash=this._hash.clone(),f}});i.SHA1=s._createHelper(u),i.HmacSHA1=s._createHmacHelper(u)}(),r.SHA1})}(sha1)),sha1.exports}var sha256={exports:{}},hasRequiredSha256;function requireSha256(){return hasRequiredSha256||(hasRequiredSha256=1,function(e,n){(function(r,i){e.exports=i(requireCore())})(commonjsGlobal,function(r){return function(i){var a=r,o=a.lib,s=o.WordArray,l=o.Hasher,c=a.algo,u=[],f=[];(function(){function g(b){for(var d=i.sqrt(b),m=2;m<=d;m++)if(!(b%m))return!1;return!0}function v(b){return(b-(b|0))*4294967296|0}for(var p=2,E=0;E<64;)g(p)&&(E<8&&(u[E]=v(i.pow(p,1/2))),f[E]=v(i.pow(p,1/3)),E++),p++})();var x=[],h=c.SHA256=l.extend({_doReset:function(){this._hash=new s.init(u.slice(0))},_doProcessBlock:function(g,v){for(var p=this._hash.words,E=p[0],b=p[1],d=p[2],m=p[3],y=p[4],A=p[5],_=p[6],k=p[7],T=0;T<64;T++){if(T<16)x[T]=g[v+T]|0;else{var F=x[T-15],M=(F<<25|F>>>7)^(F<<14|F>>>18)^F>>>3,B=x[T-2],L=(B<<15|B>>>17)^(B<<13|B>>>19)^B>>>10;x[T]=M+x[T-7]+L+x[T-16]}var R=y&A^~y&_,H=E&b^E&d^b&d,V=(E<<30|E>>>2)^(E<<19|E>>>13)^(E<<10|E>>>22),P=(y<<26|y>>>6)^(y<<21|y>>>11)^(y<<7|y>>>25),I=k+P+R+f[T]+x[T],S=V+H;k=_,_=A,A=y,y=m+I|0,m=d,d=b,b=E,E=I+S|0}p[0]=p[0]+E|0,p[1]=p[1]+b|0,p[2]=p[2]+d|0,p[3]=p[3]+m|0,p[4]=p[4]+y|0,p[5]=p[5]+A|0,p[6]=p[6]+_|0,p[7]=p[7]+k|0},_doFinalize:function(){var g=this._data,v=g.words,p=this._nDataBytes*8,E=g.sigBytes*8;return v[E>>>5]|=128<<24-E%32,v[(E+64>>>9<<4)+14]=i.floor(p/4294967296),v[(E+64>>>9<<4)+15]=p,g.sigBytes=v.length*4,this._process(),this._hash},clone:function(){var g=l.clone.call(this);return g._hash=this._hash.clone(),g}});a.SHA256=l._createHelper(h),a.HmacSHA256=l._createHmacHelper(h)}(Math),r.SHA256})}(sha256)),sha256.exports}var sha224={exports:{}},hasRequiredSha224;function requireSha224(){return hasRequiredSha224||(hasRequiredSha224=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireSha256())})(commonjsGlobal,function(r){return function(){var i=r,a=i.lib,o=a.WordArray,s=i.algo,l=s.SHA256,c=s.SHA224=l.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var u=l._doFinalize.call(this);return u.sigBytes-=4,u}});i.SHA224=l._createHelper(c),i.HmacSHA224=l._createHmacHelper(c)}(),r.SHA224})}(sha224)),sha224.exports}var sha512={exports:{}},hasRequiredSha512;function requireSha512(){return hasRequiredSha512||(hasRequiredSha512=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireX64Core())})(commonjsGlobal,function(r){return function(){var i=r,a=i.lib,o=a.Hasher,s=i.x64,l=s.Word,c=s.WordArray,u=i.algo;function f(){return l.create.apply(l,arguments)}var x=[f(1116352408,3609767458),f(1899447441,602891725),f(3049323471,3964484399),f(3921009573,2173295548),f(961987163,4081628472),f(1508970993,3053834265),f(2453635748,2937671579),f(2870763221,3664609560),f(3624381080,2734883394),f(310598401,1164996542),f(607225278,1323610764),f(1426881987,3590304994),f(1925078388,4068182383),f(2162078206,991336113),f(2614888103,633803317),f(3248222580,3479774868),f(3835390401,2666613458),f(4022224774,944711139),f(264347078,2341262773),f(604807628,2007800933),f(770255983,1495990901),f(1249150122,1856431235),f(1555081692,3175218132),f(1996064986,2198950837),f(2554220882,3999719339),f(2821834349,766784016),f(2952996808,2566594879),f(3210313671,3203337956),f(3336571891,1034457026),f(3584528711,2466948901),f(113926993,3758326383),f(338241895,168717936),f(666307205,1188179964),f(773529912,1546045734),f(1294757372,1522805485),f(1396182291,2643833823),f(1695183700,2343527390),f(1986661051,1014477480),f(2177026350,1206759142),f(2456956037,344077627),f(2730485921,1290863460),f(2820302411,3158454273),f(3259730800,3505952657),f(3345764771,106217008),f(3516065817,3606008344),f(3600352804,1432725776),f(4094571909,1467031594),f(275423344,851169720),f(430227734,3100823752),f(506948616,1363258195),f(659060556,3750685593),f(883997877,3785050280),f(958139571,3318307427),f(1322822218,3812723403),f(1537002063,2003034995),f(1747873779,3602036899),f(1955562222,1575990012),f(2024104815,1125592928),f(2227730452,2716904306),f(2361852424,442776044),f(2428436474,593698344),f(2756734187,3733110249),f(3204031479,2999351573),f(3329325298,3815920427),f(3391569614,3928383900),f(3515267271,566280711),f(3940187606,3454069534),f(4118630271,4000239992),f(116418474,1914138554),f(174292421,2731055270),f(289380356,3203993006),f(460393269,320620315),f(685471733,587496836),f(852142971,1086792851),f(1017036298,365543100),f(1126000580,2618297676),f(1288033470,3409855158),f(1501505948,4234509866),f(1607167915,987167468),f(1816402316,1246189591)],h=[];(function(){for(var v=0;v<80;v++)h[v]=f()})();var g=u.SHA512=o.extend({_doReset:function(){this._hash=new c.init([new l.init(1779033703,4089235720),new l.init(3144134277,2227873595),new l.init(1013904242,4271175723),new l.init(2773480762,1595750129),new l.init(1359893119,2917565137),new l.init(2600822924,725511199),new l.init(528734635,4215389547),new l.init(1541459225,327033209)])},_doProcessBlock:function(v,p){for(var E=this._hash.words,b=E[0],d=E[1],m=E[2],y=E[3],A=E[4],_=E[5],k=E[6],T=E[7],F=b.high,M=b.low,B=d.high,L=d.low,R=m.high,H=m.low,V=y.high,P=y.low,I=A.high,S=A.low,C=_.high,N=_.low,w=k.high,q=k.low,O=T.high,D=T.low,$=F,U=M,j=B,K=L,G=R,Y=H,J=V,ee=P,Z=I,W=S,Q=C,te=N,re=w,ae=q,se=O,fe=D,he=0;he<80;he++){var ge,ye,Ee=h[he];if(he<16)ye=Ee.high=v[p+he*2]|0,ge=Ee.low=v[p+he*2+1]|0;else{var De=h[he-15],Ce=De.high,Ie=De.low,He=(Ce>>>1|Ie<<31)^(Ce>>>8|Ie<<24)^Ce>>>7,qe=(Ie>>>1|Ce<<31)^(Ie>>>8|Ce<<24)^(Ie>>>7|Ce<<25),$e=h[he-2],je=$e.high,de=$e.low,me=(je>>>19|de<<13)^(je<<3|de>>>29)^je>>>6,ve=(de>>>19|je<<13)^(de<<3|je>>>29)^(de>>>6|je<<26),Ae=h[he-7],_e=Ae.high,Oe=Ae.low,Se=h[he-16],Pe=Se.high,Be=Se.low;ge=qe+Oe,ye=He+_e+(ge>>>0<qe>>>0?1:0),ge=ge+ve,ye=ye+me+(ge>>>0<ve>>>0?1:0),ge=ge+Be,ye=ye+Pe+(ge>>>0<Be>>>0?1:0),Ee.high=ye,Ee.low=ge}var we=Z&Q^~Z&re,Re=W&te^~W&ae,Me=$&j^$&G^j&G,Fe=U&K^U&Y^K&Y,ze=($>>>28|U<<4)^($<<30|U>>>2)^($<<25|U>>>7),Ve=(U>>>28|$<<4)^(U<<30|$>>>2)^(U<<25|$>>>7),Ne=(Z>>>14|W<<18)^(Z>>>18|W<<14)^(Z<<23|W>>>9),X=(W>>>14|Z<<18)^(W>>>18|Z<<14)^(W<<23|Z>>>9),ne=x[he],ie=ne.high,ce=ne.low,le=fe+X,ue=se+Ne+(le>>>0<fe>>>0?1:0),le=le+Re,ue=ue+we+(le>>>0<Re>>>0?1:0),le=le+ce,ue=ue+ie+(le>>>0<ce>>>0?1:0),le=le+ge,ue=ue+ye+(le>>>0<ge>>>0?1:0),oe=Ve+Fe,pe=ze+Me+(oe>>>0<Ve>>>0?1:0);se=re,fe=ae,re=Q,ae=te,Q=Z,te=W,W=ee+le|0,Z=J+ue+(W>>>0<ee>>>0?1:0)|0,J=G,ee=Y,G=j,Y=K,j=$,K=U,U=le+oe|0,$=ue+pe+(U>>>0<le>>>0?1:0)|0}M=b.low=M+U,b.high=F+$+(M>>>0<U>>>0?1:0),L=d.low=L+K,d.high=B+j+(L>>>0<K>>>0?1:0),H=m.low=H+Y,m.high=R+G+(H>>>0<Y>>>0?1:0),P=y.low=P+ee,y.high=V+J+(P>>>0<ee>>>0?1:0),S=A.low=S+W,A.high=I+Z+(S>>>0<W>>>0?1:0),N=_.low=N+te,_.high=C+Q+(N>>>0<te>>>0?1:0),q=k.low=q+ae,k.high=w+re+(q>>>0<ae>>>0?1:0),D=T.low=D+fe,T.high=O+se+(D>>>0<fe>>>0?1:0)},_doFinalize:function(){var v=this._data,p=v.words,E=this._nDataBytes*8,b=v.sigBytes*8;p[b>>>5]|=128<<24-b%32,p[(b+128>>>10<<5)+30]=Math.floor(E/4294967296),p[(b+128>>>10<<5)+31]=E,v.sigBytes=p.length*4,this._process();var d=this._hash.toX32();return d},clone:function(){var v=o.clone.call(this);return v._hash=this._hash.clone(),v},blockSize:1024/32});i.SHA512=o._createHelper(g),i.HmacSHA512=o._createHmacHelper(g)}(),r.SHA512})}(sha512)),sha512.exports}var sha384={exports:{}},hasRequiredSha384;function requireSha384(){return hasRequiredSha384||(hasRequiredSha384=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireX64Core(),requireSha512())})(commonjsGlobal,function(r){return function(){var i=r,a=i.x64,o=a.Word,s=a.WordArray,l=i.algo,c=l.SHA512,u=l.SHA384=c.extend({_doReset:function(){this._hash=new s.init([new o.init(3418070365,3238371032),new o.init(1654270250,914150663),new o.init(2438529370,812702999),new o.init(355462360,4144912697),new o.init(1731405415,4290775857),new o.init(2394180231,1750603025),new o.init(3675008525,1694076839),new o.init(1203062813,3204075428)])},_doFinalize:function(){var f=c._doFinalize.call(this);return f.sigBytes-=16,f}});i.SHA384=c._createHelper(u),i.HmacSHA384=c._createHmacHelper(u)}(),r.SHA384})}(sha384)),sha384.exports}var sha3={exports:{}},hasRequiredSha3;function requireSha3(){return hasRequiredSha3||(hasRequiredSha3=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireX64Core())})(commonjsGlobal,function(r){return function(i){var a=r,o=a.lib,s=o.WordArray,l=o.Hasher,c=a.x64,u=c.Word,f=a.algo,x=[],h=[],g=[];(function(){for(var E=1,b=0,d=0;d<24;d++){x[E+5*b]=(d+1)*(d+2)/2%64;var m=b%5,y=(2*E+3*b)%5;E=m,b=y}for(var E=0;E<5;E++)for(var b=0;b<5;b++)h[E+5*b]=b+(2*E+3*b)%5*5;for(var A=1,_=0;_<24;_++){for(var k=0,T=0,F=0;F<7;F++){if(A&1){var M=(1<<F)-1;M<32?T^=1<<M:k^=1<<M-32}A&128?A=A<<1^113:A<<=1}g[_]=u.create(k,T)}})();var v=[];(function(){for(var E=0;E<25;E++)v[E]=u.create()})();var p=f.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var E=this._state=[],b=0;b<25;b++)E[b]=new u.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(E,b){for(var d=this._state,m=this.blockSize/2,y=0;y<m;y++){var A=E[b+2*y],_=E[b+2*y+1];A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,_=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360;var k=d[y];k.high^=_,k.low^=A}for(var T=0;T<24;T++){for(var F=0;F<5;F++){for(var M=0,B=0,L=0;L<5;L++){var k=d[F+5*L];M^=k.high,B^=k.low}var R=v[F];R.high=M,R.low=B}for(var F=0;F<5;F++)for(var H=v[(F+4)%5],V=v[(F+1)%5],P=V.high,I=V.low,M=H.high^(P<<1|I>>>31),B=H.low^(I<<1|P>>>31),L=0;L<5;L++){var k=d[F+5*L];k.high^=M,k.low^=B}for(var S=1;S<25;S++){var M,B,k=d[S],C=k.high,N=k.low,w=x[S];w<32?(M=C<<w|N>>>32-w,B=N<<w|C>>>32-w):(M=N<<w-32|C>>>64-w,B=C<<w-32|N>>>64-w);var q=v[h[S]];q.high=M,q.low=B}var O=v[0],D=d[0];O.high=D.high,O.low=D.low;for(var F=0;F<5;F++)for(var L=0;L<5;L++){var S=F+5*L,k=d[S],$=v[S],U=v[(F+1)%5+5*L],j=v[(F+2)%5+5*L];k.high=$.high^~U.high&j.high,k.low=$.low^~U.low&j.low}var k=d[0],K=g[T];k.high^=K.high,k.low^=K.low}},_doFinalize:function(){var E=this._data,b=E.words;this._nDataBytes*8;var d=E.sigBytes*8,m=this.blockSize*32;b[d>>>5]|=1<<24-d%32,b[(i.ceil((d+1)/m)*m>>>5)-1]|=128,E.sigBytes=b.length*4,this._process();for(var y=this._state,A=this.cfg.outputLength/8,_=A/8,k=[],T=0;T<_;T++){var F=y[T],M=F.high,B=F.low;M=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360,B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,k.push(B),k.push(M)}return new s.init(k,A)},clone:function(){for(var E=l.clone.call(this),b=E._state=this._state.slice(0),d=0;d<25;d++)b[d]=b[d].clone();return E}});a.SHA3=l._createHelper(p),a.HmacSHA3=l._createHmacHelper(p)}(Math),r.SHA3})}(sha3)),sha3.exports}var ripemd160={exports:{}},hasRequiredRipemd160;function requireRipemd160(){return hasRequiredRipemd160||(hasRequiredRipemd160=1,function(e,n){(function(r,i){e.exports=i(requireCore())})(commonjsGlobal,function(r){/** @preserve
61
+ `;let o=e;if(r!=null&&r.length){for(const l of r){const c=useVariablesInText(l,{textData:n},{useNewline:!1,useSpace:!1});c&&(o=o.replace(l,c))}return`${a}{text|${o}}`}else return e},setDefaultRangeVal=(e,n)=>{const{props:r,componentList:i,getGlobalModel:a}=e,{graphicConfig:o={},startValue:s,endValue:l}=r,c=getdefCompleteData({graphicConfig:o,startValue:s,endValue:l,componentList:i,getGlobalModel:a}),{dimensions:u,dataset:f}=n,{classificationList:x=[]}=o,g=x.find(v=>v.show).label||"";for(const v of c)u.includes(v)||u.push(v);u.sort((v,p)=>dayjs(v).isBefore(dayjs(p))?-1:1);for(const v of f){const{data:p}=v;if(p!=null&&p.length){const C=[];for(const b of c)if(p.find(d=>d[g]!==b)){const d=lodashEs.cloneDeep(p[0]);for(const m in d)m===g?d[m]=b:d[m]=0;C.push(d)}v.data.push(...C),v.data.sort((b,d)=>dayjs(b[g]).isBefore(dayjs(d[g]))?-1:1)}}},getConditions=e=>{const n=[];for(const r of e)r.conditions?n.push(...getConditions(r.conditions)):(r==null?void 0:r.dataType)==="component"&&n.push(r);return n};function getdefCompleteData(e){const{startValue:n,endValue:r,componentList:i,graphicConfig:a,getGlobalModel:o}=e,s=getVariableAndField(n),l=getVariableAndField(r),c=[];if(s&&l){const u=i.find(x=>x.keyName===s.keyName),f=i.find(x=>x.keyName===l.keyName);if(u&&f){const x=o(u.id),h=o(f.id),{classificationList:g=[]}=a,v=g.find(p=>p.show);if(v){let p="YYYY-MM";switch(v.name){case"the_year":p="YYYY";break;case"the_month":p="MM";break;case"the_day":p="DD";break;case"the_date":p=(v==null?void 0:v.dateFormat)||p;break}const C=getFormatStep(p);if(p){const b=vue.unref(x[s.field]),d=vue.unref(h[l.field]);let m=dayjs(b);const y=dayjs(d);for(c.push(y.format(p));m.isBefore(y);)c.push(m.format(p)),m=m.add(1,C)}}}}return c}function getVariableAndField(e){let n=null;if(e){const r=e.match(/\{(.+?)\}/g);if(r!=null&&r.length){let i=r[0].slice(1,-1).trim();const a=i.match(/\[(.+?)\]/g);let o="";a!=null&&a.length&&(i=i.replace(a[0],""),o=a[0].slice(1,-1).trim()),n={keyName:i,field:o}}}return n}function getFormatStep(e){const n=e.split("-");let r="";if(n!=null&&n.length)switch(n[n.length-1]){case"YYYY":r="year";break;case"MM":r="month";break;case"DD":r="day";break}return r}function handleJumpLink(e,n){var x;const{pageMode:r,targetTemplate:i,getRecordValueByKeyName:a,setTemplateData:o}=n,s=e.linkPage||"",l=usePageUrl(r,s),c=e.href;let u=c||l;u=useVariablesInText(u);const f=e.target;if(f)if(f==="event")window.parent.postMessage({type:"openPage",url:c},"*");else{const h={pageId:s,componentId:i};if((x=e.transParams)!=null&&x.length){u.includes("?")?u+="&":u+="?";const g=[];for(const v of e.transParams){const p=a(String(v.fieldName));g.push(`${v.keyName}=${p}`),h[v.keyName]=p}u+=g.join("&")}f==="template"?(window.controller.abort(),window.controller=new AbortController,o(h)):(f==="blank"&&(u+=`${u.includes("?")?"&":"?"}drillFlag=1`),window.open(u,"_"+f))}}function getPageUrlParams(e){var r,i;let n={};if(e){const a=(((r=window.config)==null?void 0:r.urlParams)||{})[e]||{};for(const o in a)o.includes("{")||(n[o]=a[o])}else n=((i=window.config)==null?void 0:i.requestParams)||{};return n}function getNewValueFromUrlParams(e,n,r){let i="";const{urlParams:a}=window.config;if(e&&a[e])for(const o in a[e]){const s=a[e][o];if(o===`{${n}[${r}]}`&&s){i=s;break}}return i}const 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=(e,n=[])=>{const{pageMode:r}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),i=lodashEs.without(styleList,...n);return vue.computed(()=>{var s,l;const a=lodashEs.pick(e,i),o=["width","height","top","left"];for(const c of o)hasOwn(a,c)&&(["width","height"].includes(c)&&((s=e[c])==null?void 0:s.suffix)==="%"&&vue.unref(r)==="design"?a[c]="100%":(l=e[c])!=null&&l.suffix&&(a[c]=(e[c].value||0)+e[c].suffix));return a})},useOnEvent=(e,n)=>{vue.watch(()=>e.id,r=>{const i=vue.inject(EVENT_BUS,{onEvent:(a,o)=>{}});r!=null&&r!==""&&i.onEvent(r,n)},{immediate:!0})},useEmitEvent=e=>{const n=e.events,r=e.id,i=vue.inject(EVENT_BUS,{emitEvent:(o,s,l)=>{}}),{touchEventId:a}=vue.inject(GLOBAL_CONFIG,{touchEventId:vue.ref("")});return(o,s=()=>{},l)=>function(){s.call(this,...arguments);const{emitEvent:c}=i;n.forEach(u=>{if(o===u.on)try{a.value=r,l?c(u.target,u.emit,l):c(u.target,u.emit)}catch(f){console.error(f)}})}},useTransformChartDataByAttrValue=(e,n)=>{let{name:r="name",value:i="value",type:a="type"}=n||{};r=r==null?void 0:r.trim(),i=i==null?void 0:i.trim(),a=a==null?void 0:a.trim();const o=new Map,s=e.length;for(let u=0;u<s;u++){const f=e[u],x=f[r]||"",h=f[i]||"",g=f[a]||"";if(o.has(g)){const v=o.get(g);v.push({name:x,value:h,...f}),o.set(g,v)}else o.set(g,[{name:x,value:h,...f}])}const l=[],c=[];for(const[u,f]of o)if(c.push({name:u,data:f}),f!=null&&f.length)if(l.length)for(const x of f)l.includes(x.name)||l.push(x.name);else l.push(...f.map(x=>x.name));return{dimensions:l,dataset:c}};var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var r=function i(){return this instanceof i?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};r.prototype=n.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var a=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,a.get?a:{enumerable:!0,get:function(){return e[i]}})}),r}var cryptoJs={exports:{}};function commonjsRequire(e){throw new Error('Could not dynamically require "'+e+'". 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(e,n){(function(r,i){e.exports=i()})(commonjsGlobal,function(){var r=r||function(i,a){var o;if(typeof window<"u"&&window.crypto&&(o=window.crypto),typeof self<"u"&&self.crypto&&(o=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(o=globalThis.crypto),!o&&typeof window<"u"&&window.msCrypto&&(o=window.msCrypto),!o&&typeof commonjsGlobal<"u"&&commonjsGlobal.crypto&&(o=commonjsGlobal.crypto),!o&&typeof commonjsRequire=="function")try{o=require$$0}catch{}var s=function(){if(o){if(typeof o.getRandomValues=="function")try{return o.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof o.randomBytes=="function")try{return o.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},l=Object.create||function(){function d(){}return function(m){var y;return d.prototype=m,y=new d,d.prototype=null,y}}(),c={},u=c.lib={},f=u.Base=function(){return{extend:function(d){var m=l(this);return d&&m.mixIn(d),(!m.hasOwnProperty("init")||this.init===m.init)&&(m.init=function(){m.$super.init.apply(this,arguments)}),m.init.prototype=m,m.$super=this,m},create:function(){var d=this.extend();return d.init.apply(d,arguments),d},init:function(){},mixIn:function(d){for(var m in d)d.hasOwnProperty(m)&&(this[m]=d[m]);d.hasOwnProperty("toString")&&(this.toString=d.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),x=u.WordArray=f.extend({init:function(d,m){d=this.words=d||[],m!=a?this.sigBytes=m:this.sigBytes=d.length*4},toString:function(d){return(d||g).stringify(this)},concat:function(d){var m=this.words,y=d.words,A=this.sigBytes,_=d.sigBytes;if(this.clamp(),A%4)for(var k=0;k<_;k++){var T=y[k>>>2]>>>24-k%4*8&255;m[A+k>>>2]|=T<<24-(A+k)%4*8}else for(var F=0;F<_;F+=4)m[A+F>>>2]=y[F>>>2];return this.sigBytes+=_,this},clamp:function(){var d=this.words,m=this.sigBytes;d[m>>>2]&=4294967295<<32-m%4*8,d.length=i.ceil(m/4)},clone:function(){var d=f.clone.call(this);return d.words=this.words.slice(0),d},random:function(d){for(var m=[],y=0;y<d;y+=4)m.push(s());return new x.init(m,d)}}),h=c.enc={},g=h.Hex={stringify:function(d){for(var m=d.words,y=d.sigBytes,A=[],_=0;_<y;_++){var k=m[_>>>2]>>>24-_%4*8&255;A.push((k>>>4).toString(16)),A.push((k&15).toString(16))}return A.join("")},parse:function(d){for(var m=d.length,y=[],A=0;A<m;A+=2)y[A>>>3]|=parseInt(d.substr(A,2),16)<<24-A%8*4;return new x.init(y,m/2)}},v=h.Latin1={stringify:function(d){for(var m=d.words,y=d.sigBytes,A=[],_=0;_<y;_++){var k=m[_>>>2]>>>24-_%4*8&255;A.push(String.fromCharCode(k))}return A.join("")},parse:function(d){for(var m=d.length,y=[],A=0;A<m;A++)y[A>>>2]|=(d.charCodeAt(A)&255)<<24-A%4*8;return new x.init(y,m)}},p=h.Utf8={stringify:function(d){try{return decodeURIComponent(escape(v.stringify(d)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(d){return v.parse(unescape(encodeURIComponent(d)))}},C=u.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new x.init,this._nDataBytes=0},_append:function(d){typeof d=="string"&&(d=p.parse(d)),this._data.concat(d),this._nDataBytes+=d.sigBytes},_process:function(d){var m,y=this._data,A=y.words,_=y.sigBytes,k=this.blockSize,T=k*4,F=_/T;d?F=i.ceil(F):F=i.max((F|0)-this._minBufferSize,0);var M=F*k,B=i.min(M*4,_);if(M){for(var L=0;L<M;L+=k)this._doProcessBlock(A,L);m=A.splice(0,M),y.sigBytes-=B}return new x.init(m,B)},clone:function(){var d=f.clone.call(this);return d._data=this._data.clone(),d},_minBufferSize:0});u.Hasher=C.extend({cfg:f.extend(),init:function(d){this.cfg=this.cfg.extend(d),this.reset()},reset:function(){C.reset.call(this),this._doReset()},update:function(d){return this._append(d),this._process(),this},finalize:function(d){d&&this._append(d);var m=this._doFinalize();return m},blockSize:16,_createHelper:function(d){return function(m,y){return new d.init(y).finalize(m)}},_createHmacHelper:function(d){return function(m,y){return new b.HMAC.init(d,y).finalize(m)}}});var b=c.algo={};return c}(Math);return r})}(core)),core.exports}var x64Core={exports:{}},hasRequiredX64Core;function requireX64Core(){return hasRequiredX64Core||(hasRequiredX64Core=1,function(e,n){(function(r,i){e.exports=i(requireCore())})(commonjsGlobal,function(r){return function(i){var a=r,o=a.lib,s=o.Base,l=o.WordArray,c=a.x64={};c.Word=s.extend({init:function(u,f){this.high=u,this.low=f}}),c.WordArray=s.extend({init:function(u,f){u=this.words=u||[],f!=i?this.sigBytes=f:this.sigBytes=u.length*8},toX32:function(){for(var u=this.words,f=u.length,x=[],h=0;h<f;h++){var g=u[h];x.push(g.high),x.push(g.low)}return l.create(x,this.sigBytes)},clone:function(){for(var u=s.clone.call(this),f=u.words=this.words.slice(0),x=f.length,h=0;h<x;h++)f[h]=f[h].clone();return u}})}(),r})}(x64Core)),x64Core.exports}var libTypedarrays={exports:{}},hasRequiredLibTypedarrays;function requireLibTypedarrays(){return hasRequiredLibTypedarrays||(hasRequiredLibTypedarrays=1,function(e,n){(function(r,i){e.exports=i(requireCore())})(commonjsGlobal,function(r){return function(){if(typeof ArrayBuffer=="function"){var i=r,a=i.lib,o=a.WordArray,s=o.init,l=o.init=function(c){if(c instanceof ArrayBuffer&&(c=new Uint8Array(c)),(c instanceof Int8Array||typeof Uint8ClampedArray<"u"&&c instanceof Uint8ClampedArray||c instanceof Int16Array||c instanceof Uint16Array||c instanceof Int32Array||c instanceof Uint32Array||c instanceof Float32Array||c instanceof Float64Array)&&(c=new Uint8Array(c.buffer,c.byteOffset,c.byteLength)),c instanceof Uint8Array){for(var u=c.byteLength,f=[],x=0;x<u;x++)f[x>>>2]|=c[x]<<24-x%4*8;s.call(this,f,u)}else s.apply(this,arguments)};l.prototype=o}}(),r.lib.WordArray})}(libTypedarrays)),libTypedarrays.exports}var encUtf16={exports:{}},hasRequiredEncUtf16;function requireEncUtf16(){return hasRequiredEncUtf16||(hasRequiredEncUtf16=1,function(e,n){(function(r,i){e.exports=i(requireCore())})(commonjsGlobal,function(r){return function(){var i=r,a=i.lib,o=a.WordArray,s=i.enc;s.Utf16=s.Utf16BE={stringify:function(c){for(var u=c.words,f=c.sigBytes,x=[],h=0;h<f;h+=2){var g=u[h>>>2]>>>16-h%4*8&65535;x.push(String.fromCharCode(g))}return x.join("")},parse:function(c){for(var u=c.length,f=[],x=0;x<u;x++)f[x>>>1]|=c.charCodeAt(x)<<16-x%2*16;return o.create(f,u*2)}},s.Utf16LE={stringify:function(c){for(var u=c.words,f=c.sigBytes,x=[],h=0;h<f;h+=2){var g=l(u[h>>>2]>>>16-h%4*8&65535);x.push(String.fromCharCode(g))}return x.join("")},parse:function(c){for(var u=c.length,f=[],x=0;x<u;x++)f[x>>>1]|=l(c.charCodeAt(x)<<16-x%2*16);return o.create(f,u*2)}};function l(c){return c<<8&4278255360|c>>>8&16711935}}(),r.enc.Utf16})}(encUtf16)),encUtf16.exports}var encBase64={exports:{}},hasRequiredEncBase64;function requireEncBase64(){return hasRequiredEncBase64||(hasRequiredEncBase64=1,function(e,n){(function(r,i){e.exports=i(requireCore())})(commonjsGlobal,function(r){return function(){var i=r,a=i.lib,o=a.WordArray,s=i.enc;s.Base64={stringify:function(c){var u=c.words,f=c.sigBytes,x=this._map;c.clamp();for(var h=[],g=0;g<f;g+=3)for(var v=u[g>>>2]>>>24-g%4*8&255,p=u[g+1>>>2]>>>24-(g+1)%4*8&255,C=u[g+2>>>2]>>>24-(g+2)%4*8&255,b=v<<16|p<<8|C,d=0;d<4&&g+d*.75<f;d++)h.push(x.charAt(b>>>6*(3-d)&63));var m=x.charAt(64);if(m)for(;h.length%4;)h.push(m);return h.join("")},parse:function(c){var u=c.length,f=this._map,x=this._reverseMap;if(!x){x=this._reverseMap=[];for(var h=0;h<f.length;h++)x[f.charCodeAt(h)]=h}var g=f.charAt(64);if(g){var v=c.indexOf(g);v!==-1&&(u=v)}return l(c,u,x)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(c,u,f){for(var x=[],h=0,g=0;g<u;g++)if(g%4){var v=f[c.charCodeAt(g-1)]<<g%4*2,p=f[c.charCodeAt(g)]>>>6-g%4*2,C=v|p;x[h>>>2]|=C<<24-h%4*8,h++}return o.create(x,h)}}(),r.enc.Base64})}(encBase64)),encBase64.exports}var encBase64url={exports:{}},hasRequiredEncBase64url;function requireEncBase64url(){return hasRequiredEncBase64url||(hasRequiredEncBase64url=1,function(e,n){(function(r,i){e.exports=i(requireCore())})(commonjsGlobal,function(r){return function(){var i=r,a=i.lib,o=a.WordArray,s=i.enc;s.Base64url={stringify:function(c,u=!0){var f=c.words,x=c.sigBytes,h=u?this._safe_map:this._map;c.clamp();for(var g=[],v=0;v<x;v+=3)for(var p=f[v>>>2]>>>24-v%4*8&255,C=f[v+1>>>2]>>>24-(v+1)%4*8&255,b=f[v+2>>>2]>>>24-(v+2)%4*8&255,d=p<<16|C<<8|b,m=0;m<4&&v+m*.75<x;m++)g.push(h.charAt(d>>>6*(3-m)&63));var y=h.charAt(64);if(y)for(;g.length%4;)g.push(y);return g.join("")},parse:function(c,u=!0){var f=c.length,x=u?this._safe_map:this._map,h=this._reverseMap;if(!h){h=this._reverseMap=[];for(var g=0;g<x.length;g++)h[x.charCodeAt(g)]=g}var v=x.charAt(64);if(v){var p=c.indexOf(v);p!==-1&&(f=p)}return l(c,f,h)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(c,u,f){for(var x=[],h=0,g=0;g<u;g++)if(g%4){var v=f[c.charCodeAt(g-1)]<<g%4*2,p=f[c.charCodeAt(g)]>>>6-g%4*2,C=v|p;x[h>>>2]|=C<<24-h%4*8,h++}return o.create(x,h)}}(),r.enc.Base64url})}(encBase64url)),encBase64url.exports}var md5={exports:{}},hasRequiredMd5;function requireMd5(){return hasRequiredMd5||(hasRequiredMd5=1,function(e,n){(function(r,i){e.exports=i(requireCore())})(commonjsGlobal,function(r){return function(i){var a=r,o=a.lib,s=o.WordArray,l=o.Hasher,c=a.algo,u=[];(function(){for(var p=0;p<64;p++)u[p]=i.abs(i.sin(p+1))*4294967296|0})();var f=c.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(p,C){for(var b=0;b<16;b++){var d=C+b,m=p[d];p[d]=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360}var y=this._hash.words,A=p[C+0],_=p[C+1],k=p[C+2],T=p[C+3],F=p[C+4],M=p[C+5],B=p[C+6],L=p[C+7],V=p[C+8],U=p[C+9],$=p[C+10],P=p[C+11],I=p[C+12],E=p[C+13],S=p[C+14],N=p[C+15],w=y[0],R=y[1],O=y[2],D=y[3];w=x(w,R,O,D,A,7,u[0]),D=x(D,w,R,O,_,12,u[1]),O=x(O,D,w,R,k,17,u[2]),R=x(R,O,D,w,T,22,u[3]),w=x(w,R,O,D,F,7,u[4]),D=x(D,w,R,O,M,12,u[5]),O=x(O,D,w,R,B,17,u[6]),R=x(R,O,D,w,L,22,u[7]),w=x(w,R,O,D,V,7,u[8]),D=x(D,w,R,O,U,12,u[9]),O=x(O,D,w,R,$,17,u[10]),R=x(R,O,D,w,P,22,u[11]),w=x(w,R,O,D,I,7,u[12]),D=x(D,w,R,O,E,12,u[13]),O=x(O,D,w,R,S,17,u[14]),R=x(R,O,D,w,N,22,u[15]),w=h(w,R,O,D,_,5,u[16]),D=h(D,w,R,O,B,9,u[17]),O=h(O,D,w,R,P,14,u[18]),R=h(R,O,D,w,A,20,u[19]),w=h(w,R,O,D,M,5,u[20]),D=h(D,w,R,O,$,9,u[21]),O=h(O,D,w,R,N,14,u[22]),R=h(R,O,D,w,F,20,u[23]),w=h(w,R,O,D,U,5,u[24]),D=h(D,w,R,O,S,9,u[25]),O=h(O,D,w,R,T,14,u[26]),R=h(R,O,D,w,V,20,u[27]),w=h(w,R,O,D,E,5,u[28]),D=h(D,w,R,O,k,9,u[29]),O=h(O,D,w,R,L,14,u[30]),R=h(R,O,D,w,I,20,u[31]),w=g(w,R,O,D,M,4,u[32]),D=g(D,w,R,O,V,11,u[33]),O=g(O,D,w,R,P,16,u[34]),R=g(R,O,D,w,S,23,u[35]),w=g(w,R,O,D,_,4,u[36]),D=g(D,w,R,O,F,11,u[37]),O=g(O,D,w,R,L,16,u[38]),R=g(R,O,D,w,$,23,u[39]),w=g(w,R,O,D,E,4,u[40]),D=g(D,w,R,O,A,11,u[41]),O=g(O,D,w,R,T,16,u[42]),R=g(R,O,D,w,B,23,u[43]),w=g(w,R,O,D,U,4,u[44]),D=g(D,w,R,O,I,11,u[45]),O=g(O,D,w,R,N,16,u[46]),R=g(R,O,D,w,k,23,u[47]),w=v(w,R,O,D,A,6,u[48]),D=v(D,w,R,O,L,10,u[49]),O=v(O,D,w,R,S,15,u[50]),R=v(R,O,D,w,M,21,u[51]),w=v(w,R,O,D,I,6,u[52]),D=v(D,w,R,O,T,10,u[53]),O=v(O,D,w,R,$,15,u[54]),R=v(R,O,D,w,_,21,u[55]),w=v(w,R,O,D,V,6,u[56]),D=v(D,w,R,O,N,10,u[57]),O=v(O,D,w,R,B,15,u[58]),R=v(R,O,D,w,E,21,u[59]),w=v(w,R,O,D,F,6,u[60]),D=v(D,w,R,O,P,10,u[61]),O=v(O,D,w,R,k,15,u[62]),R=v(R,O,D,w,U,21,u[63]),y[0]=y[0]+w|0,y[1]=y[1]+R|0,y[2]=y[2]+O|0,y[3]=y[3]+D|0},_doFinalize:function(){var p=this._data,C=p.words,b=this._nDataBytes*8,d=p.sigBytes*8;C[d>>>5]|=128<<24-d%32;var m=i.floor(b/4294967296),y=b;C[(d+64>>>9<<4)+15]=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,C[(d+64>>>9<<4)+14]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,p.sigBytes=(C.length+1)*4,this._process();for(var A=this._hash,_=A.words,k=0;k<4;k++){var T=_[k];_[k]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360}return A},clone:function(){var p=l.clone.call(this);return p._hash=this._hash.clone(),p}});function x(p,C,b,d,m,y,A){var _=p+(C&b|~C&d)+m+A;return(_<<y|_>>>32-y)+C}function h(p,C,b,d,m,y,A){var _=p+(C&d|b&~d)+m+A;return(_<<y|_>>>32-y)+C}function g(p,C,b,d,m,y,A){var _=p+(C^b^d)+m+A;return(_<<y|_>>>32-y)+C}function v(p,C,b,d,m,y,A){var _=p+(b^(C|~d))+m+A;return(_<<y|_>>>32-y)+C}a.MD5=l._createHelper(f),a.HmacMD5=l._createHmacHelper(f)}(Math),r.MD5})}(md5)),md5.exports}var sha1={exports:{}},hasRequiredSha1;function requireSha1(){return hasRequiredSha1||(hasRequiredSha1=1,function(e,n){(function(r,i){e.exports=i(requireCore())})(commonjsGlobal,function(r){return function(){var i=r,a=i.lib,o=a.WordArray,s=a.Hasher,l=i.algo,c=[],u=l.SHA1=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(f,x){for(var h=this._hash.words,g=h[0],v=h[1],p=h[2],C=h[3],b=h[4],d=0;d<80;d++){if(d<16)c[d]=f[x+d]|0;else{var m=c[d-3]^c[d-8]^c[d-14]^c[d-16];c[d]=m<<1|m>>>31}var y=(g<<5|g>>>27)+b+c[d];d<20?y+=(v&p|~v&C)+1518500249:d<40?y+=(v^p^C)+1859775393:d<60?y+=(v&p|v&C|p&C)-1894007588:y+=(v^p^C)-899497514,b=C,C=p,p=v<<30|v>>>2,v=g,g=y}h[0]=h[0]+g|0,h[1]=h[1]+v|0,h[2]=h[2]+p|0,h[3]=h[3]+C|0,h[4]=h[4]+b|0},_doFinalize:function(){var f=this._data,x=f.words,h=this._nDataBytes*8,g=f.sigBytes*8;return x[g>>>5]|=128<<24-g%32,x[(g+64>>>9<<4)+14]=Math.floor(h/4294967296),x[(g+64>>>9<<4)+15]=h,f.sigBytes=x.length*4,this._process(),this._hash},clone:function(){var f=s.clone.call(this);return f._hash=this._hash.clone(),f}});i.SHA1=s._createHelper(u),i.HmacSHA1=s._createHmacHelper(u)}(),r.SHA1})}(sha1)),sha1.exports}var sha256={exports:{}},hasRequiredSha256;function requireSha256(){return hasRequiredSha256||(hasRequiredSha256=1,function(e,n){(function(r,i){e.exports=i(requireCore())})(commonjsGlobal,function(r){return function(i){var a=r,o=a.lib,s=o.WordArray,l=o.Hasher,c=a.algo,u=[],f=[];(function(){function g(b){for(var d=i.sqrt(b),m=2;m<=d;m++)if(!(b%m))return!1;return!0}function v(b){return(b-(b|0))*4294967296|0}for(var p=2,C=0;C<64;)g(p)&&(C<8&&(u[C]=v(i.pow(p,1/2))),f[C]=v(i.pow(p,1/3)),C++),p++})();var x=[],h=c.SHA256=l.extend({_doReset:function(){this._hash=new s.init(u.slice(0))},_doProcessBlock:function(g,v){for(var p=this._hash.words,C=p[0],b=p[1],d=p[2],m=p[3],y=p[4],A=p[5],_=p[6],k=p[7],T=0;T<64;T++){if(T<16)x[T]=g[v+T]|0;else{var F=x[T-15],M=(F<<25|F>>>7)^(F<<14|F>>>18)^F>>>3,B=x[T-2],L=(B<<15|B>>>17)^(B<<13|B>>>19)^B>>>10;x[T]=M+x[T-7]+L+x[T-16]}var V=y&A^~y&_,U=C&b^C&d^b&d,$=(C<<30|C>>>2)^(C<<19|C>>>13)^(C<<10|C>>>22),P=(y<<26|y>>>6)^(y<<21|y>>>11)^(y<<7|y>>>25),I=k+P+V+f[T]+x[T],E=$+U;k=_,_=A,A=y,y=m+I|0,m=d,d=b,b=C,C=I+E|0}p[0]=p[0]+C|0,p[1]=p[1]+b|0,p[2]=p[2]+d|0,p[3]=p[3]+m|0,p[4]=p[4]+y|0,p[5]=p[5]+A|0,p[6]=p[6]+_|0,p[7]=p[7]+k|0},_doFinalize:function(){var g=this._data,v=g.words,p=this._nDataBytes*8,C=g.sigBytes*8;return v[C>>>5]|=128<<24-C%32,v[(C+64>>>9<<4)+14]=i.floor(p/4294967296),v[(C+64>>>9<<4)+15]=p,g.sigBytes=v.length*4,this._process(),this._hash},clone:function(){var g=l.clone.call(this);return g._hash=this._hash.clone(),g}});a.SHA256=l._createHelper(h),a.HmacSHA256=l._createHmacHelper(h)}(Math),r.SHA256})}(sha256)),sha256.exports}var sha224={exports:{}},hasRequiredSha224;function requireSha224(){return hasRequiredSha224||(hasRequiredSha224=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireSha256())})(commonjsGlobal,function(r){return function(){var i=r,a=i.lib,o=a.WordArray,s=i.algo,l=s.SHA256,c=s.SHA224=l.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var u=l._doFinalize.call(this);return u.sigBytes-=4,u}});i.SHA224=l._createHelper(c),i.HmacSHA224=l._createHmacHelper(c)}(),r.SHA224})}(sha224)),sha224.exports}var sha512={exports:{}},hasRequiredSha512;function requireSha512(){return hasRequiredSha512||(hasRequiredSha512=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireX64Core())})(commonjsGlobal,function(r){return function(){var i=r,a=i.lib,o=a.Hasher,s=i.x64,l=s.Word,c=s.WordArray,u=i.algo;function f(){return l.create.apply(l,arguments)}var x=[f(1116352408,3609767458),f(1899447441,602891725),f(3049323471,3964484399),f(3921009573,2173295548),f(961987163,4081628472),f(1508970993,3053834265),f(2453635748,2937671579),f(2870763221,3664609560),f(3624381080,2734883394),f(310598401,1164996542),f(607225278,1323610764),f(1426881987,3590304994),f(1925078388,4068182383),f(2162078206,991336113),f(2614888103,633803317),f(3248222580,3479774868),f(3835390401,2666613458),f(4022224774,944711139),f(264347078,2341262773),f(604807628,2007800933),f(770255983,1495990901),f(1249150122,1856431235),f(1555081692,3175218132),f(1996064986,2198950837),f(2554220882,3999719339),f(2821834349,766784016),f(2952996808,2566594879),f(3210313671,3203337956),f(3336571891,1034457026),f(3584528711,2466948901),f(113926993,3758326383),f(338241895,168717936),f(666307205,1188179964),f(773529912,1546045734),f(1294757372,1522805485),f(1396182291,2643833823),f(1695183700,2343527390),f(1986661051,1014477480),f(2177026350,1206759142),f(2456956037,344077627),f(2730485921,1290863460),f(2820302411,3158454273),f(3259730800,3505952657),f(3345764771,106217008),f(3516065817,3606008344),f(3600352804,1432725776),f(4094571909,1467031594),f(275423344,851169720),f(430227734,3100823752),f(506948616,1363258195),f(659060556,3750685593),f(883997877,3785050280),f(958139571,3318307427),f(1322822218,3812723403),f(1537002063,2003034995),f(1747873779,3602036899),f(1955562222,1575990012),f(2024104815,1125592928),f(2227730452,2716904306),f(2361852424,442776044),f(2428436474,593698344),f(2756734187,3733110249),f(3204031479,2999351573),f(3329325298,3815920427),f(3391569614,3928383900),f(3515267271,566280711),f(3940187606,3454069534),f(4118630271,4000239992),f(116418474,1914138554),f(174292421,2731055270),f(289380356,3203993006),f(460393269,320620315),f(685471733,587496836),f(852142971,1086792851),f(1017036298,365543100),f(1126000580,2618297676),f(1288033470,3409855158),f(1501505948,4234509866),f(1607167915,987167468),f(1816402316,1246189591)],h=[];(function(){for(var v=0;v<80;v++)h[v]=f()})();var g=u.SHA512=o.extend({_doReset:function(){this._hash=new c.init([new l.init(1779033703,4089235720),new l.init(3144134277,2227873595),new l.init(1013904242,4271175723),new l.init(2773480762,1595750129),new l.init(1359893119,2917565137),new l.init(2600822924,725511199),new l.init(528734635,4215389547),new l.init(1541459225,327033209)])},_doProcessBlock:function(v,p){for(var C=this._hash.words,b=C[0],d=C[1],m=C[2],y=C[3],A=C[4],_=C[5],k=C[6],T=C[7],F=b.high,M=b.low,B=d.high,L=d.low,V=m.high,U=m.low,$=y.high,P=y.low,I=A.high,E=A.low,S=_.high,N=_.low,w=k.high,R=k.low,O=T.high,D=T.low,q=F,j=M,H=B,K=L,G=V,Y=U,J=$,ee=P,X=I,W=E,Q=S,te=N,ie=w,ae=R,se=O,fe=D,he=0;he<80;he++){var ge,be,Se=h[he];if(he<16)be=Se.high=v[p+he*2]|0,ge=Se.low=v[p+he*2+1]|0;else{var Ae=h[he-15],ke=Ae.high,Be=Ae.low,Ge=(ke>>>1|Be<<31)^(ke>>>8|Be<<24)^ke>>>7,$e=(Be>>>1|ke<<31)^(Be>>>8|ke<<24)^(Be>>>7|ke<<25),He=h[he-2],Ue=He.high,We=He.low,de=(Ue>>>19|We<<13)^(Ue<<3|We>>>29)^Ue>>>6,pe=(We>>>19|Ue<<13)^(We<<3|Ue>>>29)^(We>>>6|Ue<<26),ve=h[he-7],Me=ve.high,_e=ve.low,De=h[he-16],Oe=De.high,Ve=De.low;ge=$e+_e,be=Ge+Me+(ge>>>0<$e>>>0?1:0),ge=ge+pe,be=be+de+(ge>>>0<pe>>>0?1:0),ge=ge+Ve,be=be+Oe+(ge>>>0<Ve>>>0?1:0),Se.high=be,Se.low=ge}var Ee=X&Q^~X&ie,Ce=W&te^~W&ae,Fe=q&H^q&G^H&G,Te=j&K^j&Y^K&Y,we=(q>>>28|j<<4)^(q<<30|j>>>2)^(q<<25|j>>>7),Re=(j>>>28|q<<4)^(j<<30|q>>>2)^(j<<25|q>>>7),Ne=(X>>>14|W<<18)^(X>>>18|W<<14)^(X<<23|W>>>9),ze=(W>>>14|X<<18)^(W>>>18|X<<14)^(W<<23|X>>>9),qe=x[he],Z=qe.high,ne=qe.low,re=fe+ze,le=se+Ne+(re>>>0<fe>>>0?1:0),re=re+Ce,le=le+Ee+(re>>>0<Ce>>>0?1:0),re=re+ne,le=le+Z+(re>>>0<ne>>>0?1:0),re=re+ge,le=le+be+(re>>>0<ge>>>0?1:0),ce=Re+Te,ue=we+Fe+(ce>>>0<Re>>>0?1:0);se=ie,fe=ae,ie=Q,ae=te,Q=X,te=W,W=ee+re|0,X=J+le+(W>>>0<ee>>>0?1:0)|0,J=G,ee=Y,G=H,Y=K,H=q,K=j,j=re+ce|0,q=le+ue+(j>>>0<re>>>0?1:0)|0}M=b.low=M+j,b.high=F+q+(M>>>0<j>>>0?1:0),L=d.low=L+K,d.high=B+H+(L>>>0<K>>>0?1:0),U=m.low=U+Y,m.high=V+G+(U>>>0<Y>>>0?1:0),P=y.low=P+ee,y.high=$+J+(P>>>0<ee>>>0?1:0),E=A.low=E+W,A.high=I+X+(E>>>0<W>>>0?1:0),N=_.low=N+te,_.high=S+Q+(N>>>0<te>>>0?1:0),R=k.low=R+ae,k.high=w+ie+(R>>>0<ae>>>0?1:0),D=T.low=D+fe,T.high=O+se+(D>>>0<fe>>>0?1:0)},_doFinalize:function(){var v=this._data,p=v.words,C=this._nDataBytes*8,b=v.sigBytes*8;p[b>>>5]|=128<<24-b%32,p[(b+128>>>10<<5)+30]=Math.floor(C/4294967296),p[(b+128>>>10<<5)+31]=C,v.sigBytes=p.length*4,this._process();var d=this._hash.toX32();return d},clone:function(){var v=o.clone.call(this);return v._hash=this._hash.clone(),v},blockSize:1024/32});i.SHA512=o._createHelper(g),i.HmacSHA512=o._createHmacHelper(g)}(),r.SHA512})}(sha512)),sha512.exports}var sha384={exports:{}},hasRequiredSha384;function requireSha384(){return hasRequiredSha384||(hasRequiredSha384=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireX64Core(),requireSha512())})(commonjsGlobal,function(r){return function(){var i=r,a=i.x64,o=a.Word,s=a.WordArray,l=i.algo,c=l.SHA512,u=l.SHA384=c.extend({_doReset:function(){this._hash=new s.init([new o.init(3418070365,3238371032),new o.init(1654270250,914150663),new o.init(2438529370,812702999),new o.init(355462360,4144912697),new o.init(1731405415,4290775857),new o.init(2394180231,1750603025),new o.init(3675008525,1694076839),new o.init(1203062813,3204075428)])},_doFinalize:function(){var f=c._doFinalize.call(this);return f.sigBytes-=16,f}});i.SHA384=c._createHelper(u),i.HmacSHA384=c._createHmacHelper(u)}(),r.SHA384})}(sha384)),sha384.exports}var sha3={exports:{}},hasRequiredSha3;function requireSha3(){return hasRequiredSha3||(hasRequiredSha3=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireX64Core())})(commonjsGlobal,function(r){return function(i){var a=r,o=a.lib,s=o.WordArray,l=o.Hasher,c=a.x64,u=c.Word,f=a.algo,x=[],h=[],g=[];(function(){for(var C=1,b=0,d=0;d<24;d++){x[C+5*b]=(d+1)*(d+2)/2%64;var m=b%5,y=(2*C+3*b)%5;C=m,b=y}for(var C=0;C<5;C++)for(var b=0;b<5;b++)h[C+5*b]=b+(2*C+3*b)%5*5;for(var A=1,_=0;_<24;_++){for(var k=0,T=0,F=0;F<7;F++){if(A&1){var M=(1<<F)-1;M<32?T^=1<<M:k^=1<<M-32}A&128?A=A<<1^113:A<<=1}g[_]=u.create(k,T)}})();var v=[];(function(){for(var C=0;C<25;C++)v[C]=u.create()})();var p=f.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var C=this._state=[],b=0;b<25;b++)C[b]=new u.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(C,b){for(var d=this._state,m=this.blockSize/2,y=0;y<m;y++){var A=C[b+2*y],_=C[b+2*y+1];A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,_=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360;var k=d[y];k.high^=_,k.low^=A}for(var T=0;T<24;T++){for(var F=0;F<5;F++){for(var M=0,B=0,L=0;L<5;L++){var k=d[F+5*L];M^=k.high,B^=k.low}var V=v[F];V.high=M,V.low=B}for(var F=0;F<5;F++)for(var U=v[(F+4)%5],$=v[(F+1)%5],P=$.high,I=$.low,M=U.high^(P<<1|I>>>31),B=U.low^(I<<1|P>>>31),L=0;L<5;L++){var k=d[F+5*L];k.high^=M,k.low^=B}for(var E=1;E<25;E++){var M,B,k=d[E],S=k.high,N=k.low,w=x[E];w<32?(M=S<<w|N>>>32-w,B=N<<w|S>>>32-w):(M=N<<w-32|S>>>64-w,B=S<<w-32|N>>>64-w);var R=v[h[E]];R.high=M,R.low=B}var O=v[0],D=d[0];O.high=D.high,O.low=D.low;for(var F=0;F<5;F++)for(var L=0;L<5;L++){var E=F+5*L,k=d[E],q=v[E],j=v[(F+1)%5+5*L],H=v[(F+2)%5+5*L];k.high=q.high^~j.high&H.high,k.low=q.low^~j.low&H.low}var k=d[0],K=g[T];k.high^=K.high,k.low^=K.low}},_doFinalize:function(){var C=this._data,b=C.words;this._nDataBytes*8;var d=C.sigBytes*8,m=this.blockSize*32;b[d>>>5]|=1<<24-d%32,b[(i.ceil((d+1)/m)*m>>>5)-1]|=128,C.sigBytes=b.length*4,this._process();for(var y=this._state,A=this.cfg.outputLength/8,_=A/8,k=[],T=0;T<_;T++){var F=y[T],M=F.high,B=F.low;M=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360,B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,k.push(B),k.push(M)}return new s.init(k,A)},clone:function(){for(var C=l.clone.call(this),b=C._state=this._state.slice(0),d=0;d<25;d++)b[d]=b[d].clone();return C}});a.SHA3=l._createHelper(p),a.HmacSHA3=l._createHmacHelper(p)}(Math),r.SHA3})}(sha3)),sha3.exports}var ripemd160={exports:{}},hasRequiredRipemd160;function requireRipemd160(){return hasRequiredRipemd160||(hasRequiredRipemd160=1,function(e,n){(function(r,i){e.exports=i(requireCore())})(commonjsGlobal,function(r){/** @preserve
62
62
  (c) 2012 by Cédric Mesnil. All rights reserved.
63
63
 
64
64
  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
@@ -67,18 +67,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
67
67
  - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
68
68
 
69
69
  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
70
- */return function(i){var a=r,o=a.lib,s=o.WordArray,l=o.Hasher,c=a.algo,u=s.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),f=s.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),x=s.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),h=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),g=s.create([0,1518500249,1859775393,2400959708,2840853838]),v=s.create([1352829926,1548603684,1836072691,2053994217,0]),p=c.RIPEMD160=l.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(_,k){for(var T=0;T<16;T++){var F=k+T,M=_[F];_[F]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360}var B=this._hash.words,L=g.words,R=v.words,H=u.words,V=f.words,P=x.words,I=h.words,S,C,N,w,q,O,D,$,U,j;O=S=B[0],D=C=B[1],$=N=B[2],U=w=B[3],j=q=B[4];for(var K,T=0;T<80;T+=1)K=S+_[k+H[T]]|0,T<16?K+=E(C,N,w)+L[0]:T<32?K+=b(C,N,w)+L[1]:T<48?K+=d(C,N,w)+L[2]:T<64?K+=m(C,N,w)+L[3]:K+=y(C,N,w)+L[4],K=K|0,K=A(K,P[T]),K=K+q|0,S=q,q=w,w=A(N,10),N=C,C=K,K=O+_[k+V[T]]|0,T<16?K+=y(D,$,U)+R[0]:T<32?K+=m(D,$,U)+R[1]:T<48?K+=d(D,$,U)+R[2]:T<64?K+=b(D,$,U)+R[3]:K+=E(D,$,U)+R[4],K=K|0,K=A(K,I[T]),K=K+j|0,O=j,j=U,U=A($,10),$=D,D=K;K=B[1]+N+U|0,B[1]=B[2]+w+j|0,B[2]=B[3]+q+O|0,B[3]=B[4]+S+D|0,B[4]=B[0]+C+$|0,B[0]=K},_doFinalize:function(){var _=this._data,k=_.words,T=this._nDataBytes*8,F=_.sigBytes*8;k[F>>>5]|=128<<24-F%32,k[(F+64>>>9<<4)+14]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,_.sigBytes=(k.length+1)*4,this._process();for(var M=this._hash,B=M.words,L=0;L<5;L++){var R=B[L];B[L]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360}return M},clone:function(){var _=l.clone.call(this);return _._hash=this._hash.clone(),_}});function E(_,k,T){return _^k^T}function b(_,k,T){return _&k|~_&T}function d(_,k,T){return(_|~k)^T}function m(_,k,T){return _&T|k&~T}function y(_,k,T){return _^(k|~T)}function A(_,k){return _<<k|_>>>32-k}a.RIPEMD160=l._createHelper(p),a.HmacRIPEMD160=l._createHmacHelper(p)}(),r.RIPEMD160})}(ripemd160)),ripemd160.exports}var hmac={exports:{}},hasRequiredHmac;function requireHmac(){return hasRequiredHmac||(hasRequiredHmac=1,function(e,n){(function(r,i){e.exports=i(requireCore())})(commonjsGlobal,function(r){(function(){var i=r,a=i.lib,o=a.Base,s=i.enc,l=s.Utf8,c=i.algo;c.HMAC=o.extend({init:function(u,f){u=this._hasher=new u.init,typeof f=="string"&&(f=l.parse(f));var x=u.blockSize,h=x*4;f.sigBytes>h&&(f=u.finalize(f)),f.clamp();for(var g=this._oKey=f.clone(),v=this._iKey=f.clone(),p=g.words,E=v.words,b=0;b<x;b++)p[b]^=1549556828,E[b]^=909522486;g.sigBytes=v.sigBytes=h,this.reset()},reset:function(){var u=this._hasher;u.reset(),u.update(this._iKey)},update:function(u){return this._hasher.update(u),this},finalize:function(u){var f=this._hasher,x=f.finalize(u);f.reset();var h=f.finalize(this._oKey.clone().concat(x));return h}})})()})}(hmac)),hmac.exports}var pbkdf2={exports:{}},hasRequiredPbkdf2;function requirePbkdf2(){return hasRequiredPbkdf2||(hasRequiredPbkdf2=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireSha1(),requireHmac())})(commonjsGlobal,function(r){return function(){var i=r,a=i.lib,o=a.Base,s=a.WordArray,l=i.algo,c=l.SHA1,u=l.HMAC,f=l.PBKDF2=o.extend({cfg:o.extend({keySize:128/32,hasher:c,iterations:1}),init:function(x){this.cfg=this.cfg.extend(x)},compute:function(x,h){for(var g=this.cfg,v=u.create(g.hasher,x),p=s.create(),E=s.create([1]),b=p.words,d=E.words,m=g.keySize,y=g.iterations;b.length<m;){var A=v.update(h).finalize(E);v.reset();for(var _=A.words,k=_.length,T=A,F=1;F<y;F++){T=v.finalize(T),v.reset();for(var M=T.words,B=0;B<k;B++)_[B]^=M[B]}p.concat(A),d[0]++}return p.sigBytes=m*4,p}});i.PBKDF2=function(x,h,g){return f.create(g).compute(x,h)}}(),r.PBKDF2})}(pbkdf2)),pbkdf2.exports}var evpkdf={exports:{}},hasRequiredEvpkdf;function requireEvpkdf(){return hasRequiredEvpkdf||(hasRequiredEvpkdf=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireSha1(),requireHmac())})(commonjsGlobal,function(r){return function(){var i=r,a=i.lib,o=a.Base,s=a.WordArray,l=i.algo,c=l.MD5,u=l.EvpKDF=o.extend({cfg:o.extend({keySize:128/32,hasher:c,iterations:1}),init:function(f){this.cfg=this.cfg.extend(f)},compute:function(f,x){for(var h,g=this.cfg,v=g.hasher.create(),p=s.create(),E=p.words,b=g.keySize,d=g.iterations;E.length<b;){h&&v.update(h),h=v.update(f).finalize(x),v.reset();for(var m=1;m<d;m++)h=v.finalize(h),v.reset();p.concat(h)}return p.sigBytes=b*4,p}});i.EvpKDF=function(f,x,h){return u.create(h).compute(f,x)}}(),r.EvpKDF})}(evpkdf)),evpkdf.exports}var cipherCore={exports:{}},hasRequiredCipherCore;function requireCipherCore(){return hasRequiredCipherCore||(hasRequiredCipherCore=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireEvpkdf())})(commonjsGlobal,function(r){r.lib.Cipher||function(i){var a=r,o=a.lib,s=o.Base,l=o.WordArray,c=o.BufferedBlockAlgorithm,u=a.enc;u.Utf8;var f=u.Base64,x=a.algo,h=x.EvpKDF,g=o.Cipher=c.extend({cfg:s.extend(),createEncryptor:function(M,B){return this.create(this._ENC_XFORM_MODE,M,B)},createDecryptor:function(M,B){return this.create(this._DEC_XFORM_MODE,M,B)},init:function(M,B,L){this.cfg=this.cfg.extend(L),this._xformMode=M,this._key=B,this.reset()},reset:function(){c.reset.call(this),this._doReset()},process:function(M){return this._append(M),this._process()},finalize:function(M){M&&this._append(M);var B=this._doFinalize();return B},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function M(B){return typeof B=="string"?F:_}return function(B){return{encrypt:function(L,R,H){return M(R).encrypt(B,L,R,H)},decrypt:function(L,R,H){return M(R).decrypt(B,L,R,H)}}}}()});o.StreamCipher=g.extend({_doFinalize:function(){var M=this._process(!0);return M},blockSize:1});var v=a.mode={},p=o.BlockCipherMode=s.extend({createEncryptor:function(M,B){return this.Encryptor.create(M,B)},createDecryptor:function(M,B){return this.Decryptor.create(M,B)},init:function(M,B){this._cipher=M,this._iv=B}}),E=v.CBC=function(){var M=p.extend();M.Encryptor=M.extend({processBlock:function(L,R){var H=this._cipher,V=H.blockSize;B.call(this,L,R,V),H.encryptBlock(L,R),this._prevBlock=L.slice(R,R+V)}}),M.Decryptor=M.extend({processBlock:function(L,R){var H=this._cipher,V=H.blockSize,P=L.slice(R,R+V);H.decryptBlock(L,R),B.call(this,L,R,V),this._prevBlock=P}});function B(L,R,H){var V,P=this._iv;P?(V=P,this._iv=i):V=this._prevBlock;for(var I=0;I<H;I++)L[R+I]^=V[I]}return M}(),b=a.pad={},d=b.Pkcs7={pad:function(M,B){for(var L=B*4,R=L-M.sigBytes%L,H=R<<24|R<<16|R<<8|R,V=[],P=0;P<R;P+=4)V.push(H);var I=l.create(V,R);M.concat(I)},unpad:function(M){var B=M.words[M.sigBytes-1>>>2]&255;M.sigBytes-=B}};o.BlockCipher=g.extend({cfg:g.cfg.extend({mode:E,padding:d}),reset:function(){var M;g.reset.call(this);var B=this.cfg,L=B.iv,R=B.mode;this._xformMode==this._ENC_XFORM_MODE?M=R.createEncryptor:(M=R.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==M?this._mode.init(this,L&&L.words):(this._mode=M.call(R,this,L&&L.words),this._mode.__creator=M)},_doProcessBlock:function(M,B){this._mode.processBlock(M,B)},_doFinalize:function(){var M,B=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(B.pad(this._data,this.blockSize),M=this._process(!0)):(M=this._process(!0),B.unpad(M)),M},blockSize:128/32});var m=o.CipherParams=s.extend({init:function(M){this.mixIn(M)},toString:function(M){return(M||this.formatter).stringify(this)}}),y=a.format={},A=y.OpenSSL={stringify:function(M){var B,L=M.ciphertext,R=M.salt;return R?B=l.create([1398893684,1701076831]).concat(R).concat(L):B=L,B.toString(f)},parse:function(M){var B,L=f.parse(M),R=L.words;return R[0]==1398893684&&R[1]==1701076831&&(B=l.create(R.slice(2,4)),R.splice(0,4),L.sigBytes-=16),m.create({ciphertext:L,salt:B})}},_=o.SerializableCipher=s.extend({cfg:s.extend({format:A}),encrypt:function(M,B,L,R){R=this.cfg.extend(R);var H=M.createEncryptor(L,R),V=H.finalize(B),P=H.cfg;return m.create({ciphertext:V,key:L,iv:P.iv,algorithm:M,mode:P.mode,padding:P.padding,blockSize:M.blockSize,formatter:R.format})},decrypt:function(M,B,L,R){R=this.cfg.extend(R),B=this._parse(B,R.format);var H=M.createDecryptor(L,R).finalize(B.ciphertext);return H},_parse:function(M,B){return typeof M=="string"?B.parse(M,this):M}}),k=a.kdf={},T=k.OpenSSL={execute:function(M,B,L,R){R||(R=l.random(64/8));var H=h.create({keySize:B+L}).compute(M,R),V=l.create(H.words.slice(B),L*4);return H.sigBytes=B*4,m.create({key:H,iv:V,salt:R})}},F=o.PasswordBasedCipher=_.extend({cfg:_.cfg.extend({kdf:T}),encrypt:function(M,B,L,R){R=this.cfg.extend(R);var H=R.kdf.execute(L,M.keySize,M.ivSize);R.iv=H.iv;var V=_.encrypt.call(this,M,B,H.key,R);return V.mixIn(H),V},decrypt:function(M,B,L,R){R=this.cfg.extend(R),B=this._parse(B,R.format);var H=R.kdf.execute(L,M.keySize,M.ivSize,B.salt);R.iv=H.iv;var V=_.decrypt.call(this,M,B,H.key,R);return V}})}()})}(cipherCore)),cipherCore.exports}var modeCfb={exports:{}},hasRequiredModeCfb;function requireModeCfb(){return hasRequiredModeCfb||(hasRequiredModeCfb=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(r){return r.mode.CFB=function(){var i=r.lib.BlockCipherMode.extend();i.Encryptor=i.extend({processBlock:function(o,s){var l=this._cipher,c=l.blockSize;a.call(this,o,s,c,l),this._prevBlock=o.slice(s,s+c)}}),i.Decryptor=i.extend({processBlock:function(o,s){var l=this._cipher,c=l.blockSize,u=o.slice(s,s+c);a.call(this,o,s,c,l),this._prevBlock=u}});function a(o,s,l,c){var u,f=this._iv;f?(u=f.slice(0),this._iv=void 0):u=this._prevBlock,c.encryptBlock(u,0);for(var x=0;x<l;x++)o[s+x]^=u[x]}return i}(),r.mode.CFB})}(modeCfb)),modeCfb.exports}var modeCtr={exports:{}},hasRequiredModeCtr;function requireModeCtr(){return hasRequiredModeCtr||(hasRequiredModeCtr=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(r){return r.mode.CTR=function(){var i=r.lib.BlockCipherMode.extend(),a=i.Encryptor=i.extend({processBlock:function(o,s){var l=this._cipher,c=l.blockSize,u=this._iv,f=this._counter;u&&(f=this._counter=u.slice(0),this._iv=void 0);var x=f.slice(0);l.encryptBlock(x,0),f[c-1]=f[c-1]+1|0;for(var h=0;h<c;h++)o[s+h]^=x[h]}});return i.Decryptor=a,i}(),r.mode.CTR})}(modeCtr)),modeCtr.exports}var modeCtrGladman={exports:{}},hasRequiredModeCtrGladman;function requireModeCtrGladman(){return hasRequiredModeCtrGladman||(hasRequiredModeCtrGladman=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(r){/** @preserve
70
+ */return function(i){var a=r,o=a.lib,s=o.WordArray,l=o.Hasher,c=a.algo,u=s.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),f=s.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),x=s.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),h=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),g=s.create([0,1518500249,1859775393,2400959708,2840853838]),v=s.create([1352829926,1548603684,1836072691,2053994217,0]),p=c.RIPEMD160=l.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(_,k){for(var T=0;T<16;T++){var F=k+T,M=_[F];_[F]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360}var B=this._hash.words,L=g.words,V=v.words,U=u.words,$=f.words,P=x.words,I=h.words,E,S,N,w,R,O,D,q,j,H;O=E=B[0],D=S=B[1],q=N=B[2],j=w=B[3],H=R=B[4];for(var K,T=0;T<80;T+=1)K=E+_[k+U[T]]|0,T<16?K+=C(S,N,w)+L[0]:T<32?K+=b(S,N,w)+L[1]:T<48?K+=d(S,N,w)+L[2]:T<64?K+=m(S,N,w)+L[3]:K+=y(S,N,w)+L[4],K=K|0,K=A(K,P[T]),K=K+R|0,E=R,R=w,w=A(N,10),N=S,S=K,K=O+_[k+$[T]]|0,T<16?K+=y(D,q,j)+V[0]:T<32?K+=m(D,q,j)+V[1]:T<48?K+=d(D,q,j)+V[2]:T<64?K+=b(D,q,j)+V[3]:K+=C(D,q,j)+V[4],K=K|0,K=A(K,I[T]),K=K+H|0,O=H,H=j,j=A(q,10),q=D,D=K;K=B[1]+N+j|0,B[1]=B[2]+w+H|0,B[2]=B[3]+R+O|0,B[3]=B[4]+E+D|0,B[4]=B[0]+S+q|0,B[0]=K},_doFinalize:function(){var _=this._data,k=_.words,T=this._nDataBytes*8,F=_.sigBytes*8;k[F>>>5]|=128<<24-F%32,k[(F+64>>>9<<4)+14]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,_.sigBytes=(k.length+1)*4,this._process();for(var M=this._hash,B=M.words,L=0;L<5;L++){var V=B[L];B[L]=(V<<8|V>>>24)&16711935|(V<<24|V>>>8)&4278255360}return M},clone:function(){var _=l.clone.call(this);return _._hash=this._hash.clone(),_}});function C(_,k,T){return _^k^T}function b(_,k,T){return _&k|~_&T}function d(_,k,T){return(_|~k)^T}function m(_,k,T){return _&T|k&~T}function y(_,k,T){return _^(k|~T)}function A(_,k){return _<<k|_>>>32-k}a.RIPEMD160=l._createHelper(p),a.HmacRIPEMD160=l._createHmacHelper(p)}(),r.RIPEMD160})}(ripemd160)),ripemd160.exports}var hmac={exports:{}},hasRequiredHmac;function requireHmac(){return hasRequiredHmac||(hasRequiredHmac=1,function(e,n){(function(r,i){e.exports=i(requireCore())})(commonjsGlobal,function(r){(function(){var i=r,a=i.lib,o=a.Base,s=i.enc,l=s.Utf8,c=i.algo;c.HMAC=o.extend({init:function(u,f){u=this._hasher=new u.init,typeof f=="string"&&(f=l.parse(f));var x=u.blockSize,h=x*4;f.sigBytes>h&&(f=u.finalize(f)),f.clamp();for(var g=this._oKey=f.clone(),v=this._iKey=f.clone(),p=g.words,C=v.words,b=0;b<x;b++)p[b]^=1549556828,C[b]^=909522486;g.sigBytes=v.sigBytes=h,this.reset()},reset:function(){var u=this._hasher;u.reset(),u.update(this._iKey)},update:function(u){return this._hasher.update(u),this},finalize:function(u){var f=this._hasher,x=f.finalize(u);f.reset();var h=f.finalize(this._oKey.clone().concat(x));return h}})})()})}(hmac)),hmac.exports}var pbkdf2={exports:{}},hasRequiredPbkdf2;function requirePbkdf2(){return hasRequiredPbkdf2||(hasRequiredPbkdf2=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireSha1(),requireHmac())})(commonjsGlobal,function(r){return function(){var i=r,a=i.lib,o=a.Base,s=a.WordArray,l=i.algo,c=l.SHA1,u=l.HMAC,f=l.PBKDF2=o.extend({cfg:o.extend({keySize:128/32,hasher:c,iterations:1}),init:function(x){this.cfg=this.cfg.extend(x)},compute:function(x,h){for(var g=this.cfg,v=u.create(g.hasher,x),p=s.create(),C=s.create([1]),b=p.words,d=C.words,m=g.keySize,y=g.iterations;b.length<m;){var A=v.update(h).finalize(C);v.reset();for(var _=A.words,k=_.length,T=A,F=1;F<y;F++){T=v.finalize(T),v.reset();for(var M=T.words,B=0;B<k;B++)_[B]^=M[B]}p.concat(A),d[0]++}return p.sigBytes=m*4,p}});i.PBKDF2=function(x,h,g){return f.create(g).compute(x,h)}}(),r.PBKDF2})}(pbkdf2)),pbkdf2.exports}var evpkdf={exports:{}},hasRequiredEvpkdf;function requireEvpkdf(){return hasRequiredEvpkdf||(hasRequiredEvpkdf=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireSha1(),requireHmac())})(commonjsGlobal,function(r){return function(){var i=r,a=i.lib,o=a.Base,s=a.WordArray,l=i.algo,c=l.MD5,u=l.EvpKDF=o.extend({cfg:o.extend({keySize:128/32,hasher:c,iterations:1}),init:function(f){this.cfg=this.cfg.extend(f)},compute:function(f,x){for(var h,g=this.cfg,v=g.hasher.create(),p=s.create(),C=p.words,b=g.keySize,d=g.iterations;C.length<b;){h&&v.update(h),h=v.update(f).finalize(x),v.reset();for(var m=1;m<d;m++)h=v.finalize(h),v.reset();p.concat(h)}return p.sigBytes=b*4,p}});i.EvpKDF=function(f,x,h){return u.create(h).compute(f,x)}}(),r.EvpKDF})}(evpkdf)),evpkdf.exports}var cipherCore={exports:{}},hasRequiredCipherCore;function requireCipherCore(){return hasRequiredCipherCore||(hasRequiredCipherCore=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireEvpkdf())})(commonjsGlobal,function(r){r.lib.Cipher||function(i){var a=r,o=a.lib,s=o.Base,l=o.WordArray,c=o.BufferedBlockAlgorithm,u=a.enc;u.Utf8;var f=u.Base64,x=a.algo,h=x.EvpKDF,g=o.Cipher=c.extend({cfg:s.extend(),createEncryptor:function(M,B){return this.create(this._ENC_XFORM_MODE,M,B)},createDecryptor:function(M,B){return this.create(this._DEC_XFORM_MODE,M,B)},init:function(M,B,L){this.cfg=this.cfg.extend(L),this._xformMode=M,this._key=B,this.reset()},reset:function(){c.reset.call(this),this._doReset()},process:function(M){return this._append(M),this._process()},finalize:function(M){M&&this._append(M);var B=this._doFinalize();return B},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function M(B){return typeof B=="string"?F:_}return function(B){return{encrypt:function(L,V,U){return M(V).encrypt(B,L,V,U)},decrypt:function(L,V,U){return M(V).decrypt(B,L,V,U)}}}}()});o.StreamCipher=g.extend({_doFinalize:function(){var M=this._process(!0);return M},blockSize:1});var v=a.mode={},p=o.BlockCipherMode=s.extend({createEncryptor:function(M,B){return this.Encryptor.create(M,B)},createDecryptor:function(M,B){return this.Decryptor.create(M,B)},init:function(M,B){this._cipher=M,this._iv=B}}),C=v.CBC=function(){var M=p.extend();M.Encryptor=M.extend({processBlock:function(L,V){var U=this._cipher,$=U.blockSize;B.call(this,L,V,$),U.encryptBlock(L,V),this._prevBlock=L.slice(V,V+$)}}),M.Decryptor=M.extend({processBlock:function(L,V){var U=this._cipher,$=U.blockSize,P=L.slice(V,V+$);U.decryptBlock(L,V),B.call(this,L,V,$),this._prevBlock=P}});function B(L,V,U){var $,P=this._iv;P?($=P,this._iv=i):$=this._prevBlock;for(var I=0;I<U;I++)L[V+I]^=$[I]}return M}(),b=a.pad={},d=b.Pkcs7={pad:function(M,B){for(var L=B*4,V=L-M.sigBytes%L,U=V<<24|V<<16|V<<8|V,$=[],P=0;P<V;P+=4)$.push(U);var I=l.create($,V);M.concat(I)},unpad:function(M){var B=M.words[M.sigBytes-1>>>2]&255;M.sigBytes-=B}};o.BlockCipher=g.extend({cfg:g.cfg.extend({mode:C,padding:d}),reset:function(){var M;g.reset.call(this);var B=this.cfg,L=B.iv,V=B.mode;this._xformMode==this._ENC_XFORM_MODE?M=V.createEncryptor:(M=V.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==M?this._mode.init(this,L&&L.words):(this._mode=M.call(V,this,L&&L.words),this._mode.__creator=M)},_doProcessBlock:function(M,B){this._mode.processBlock(M,B)},_doFinalize:function(){var M,B=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(B.pad(this._data,this.blockSize),M=this._process(!0)):(M=this._process(!0),B.unpad(M)),M},blockSize:128/32});var m=o.CipherParams=s.extend({init:function(M){this.mixIn(M)},toString:function(M){return(M||this.formatter).stringify(this)}}),y=a.format={},A=y.OpenSSL={stringify:function(M){var B,L=M.ciphertext,V=M.salt;return V?B=l.create([1398893684,1701076831]).concat(V).concat(L):B=L,B.toString(f)},parse:function(M){var B,L=f.parse(M),V=L.words;return V[0]==1398893684&&V[1]==1701076831&&(B=l.create(V.slice(2,4)),V.splice(0,4),L.sigBytes-=16),m.create({ciphertext:L,salt:B})}},_=o.SerializableCipher=s.extend({cfg:s.extend({format:A}),encrypt:function(M,B,L,V){V=this.cfg.extend(V);var U=M.createEncryptor(L,V),$=U.finalize(B),P=U.cfg;return m.create({ciphertext:$,key:L,iv:P.iv,algorithm:M,mode:P.mode,padding:P.padding,blockSize:M.blockSize,formatter:V.format})},decrypt:function(M,B,L,V){V=this.cfg.extend(V),B=this._parse(B,V.format);var U=M.createDecryptor(L,V).finalize(B.ciphertext);return U},_parse:function(M,B){return typeof M=="string"?B.parse(M,this):M}}),k=a.kdf={},T=k.OpenSSL={execute:function(M,B,L,V){V||(V=l.random(64/8));var U=h.create({keySize:B+L}).compute(M,V),$=l.create(U.words.slice(B),L*4);return U.sigBytes=B*4,m.create({key:U,iv:$,salt:V})}},F=o.PasswordBasedCipher=_.extend({cfg:_.cfg.extend({kdf:T}),encrypt:function(M,B,L,V){V=this.cfg.extend(V);var U=V.kdf.execute(L,M.keySize,M.ivSize);V.iv=U.iv;var $=_.encrypt.call(this,M,B,U.key,V);return $.mixIn(U),$},decrypt:function(M,B,L,V){V=this.cfg.extend(V),B=this._parse(B,V.format);var U=V.kdf.execute(L,M.keySize,M.ivSize,B.salt);V.iv=U.iv;var $=_.decrypt.call(this,M,B,U.key,V);return $}})}()})}(cipherCore)),cipherCore.exports}var modeCfb={exports:{}},hasRequiredModeCfb;function requireModeCfb(){return hasRequiredModeCfb||(hasRequiredModeCfb=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(r){return r.mode.CFB=function(){var i=r.lib.BlockCipherMode.extend();i.Encryptor=i.extend({processBlock:function(o,s){var l=this._cipher,c=l.blockSize;a.call(this,o,s,c,l),this._prevBlock=o.slice(s,s+c)}}),i.Decryptor=i.extend({processBlock:function(o,s){var l=this._cipher,c=l.blockSize,u=o.slice(s,s+c);a.call(this,o,s,c,l),this._prevBlock=u}});function a(o,s,l,c){var u,f=this._iv;f?(u=f.slice(0),this._iv=void 0):u=this._prevBlock,c.encryptBlock(u,0);for(var x=0;x<l;x++)o[s+x]^=u[x]}return i}(),r.mode.CFB})}(modeCfb)),modeCfb.exports}var modeCtr={exports:{}},hasRequiredModeCtr;function requireModeCtr(){return hasRequiredModeCtr||(hasRequiredModeCtr=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(r){return r.mode.CTR=function(){var i=r.lib.BlockCipherMode.extend(),a=i.Encryptor=i.extend({processBlock:function(o,s){var l=this._cipher,c=l.blockSize,u=this._iv,f=this._counter;u&&(f=this._counter=u.slice(0),this._iv=void 0);var x=f.slice(0);l.encryptBlock(x,0),f[c-1]=f[c-1]+1|0;for(var h=0;h<c;h++)o[s+h]^=x[h]}});return i.Decryptor=a,i}(),r.mode.CTR})}(modeCtr)),modeCtr.exports}var modeCtrGladman={exports:{}},hasRequiredModeCtrGladman;function requireModeCtrGladman(){return hasRequiredModeCtrGladman||(hasRequiredModeCtrGladman=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(r){/** @preserve
71
71
  * Counter block mode compatible with Dr Brian Gladman fileenc.c
72
72
  * derived from CryptoJS.mode.CTR
73
73
  * Jan Hruby jhruby.web@gmail.com
74
- */return r.mode.CTRGladman=function(){var i=r.lib.BlockCipherMode.extend();function a(l){if((l>>24&255)===255){var c=l>>16&255,u=l>>8&255,f=l&255;c===255?(c=0,u===255?(u=0,f===255?f=0:++f):++u):++c,l=0,l+=c<<16,l+=u<<8,l+=f}else l+=1<<24;return l}function o(l){return(l[0]=a(l[0]))===0&&(l[1]=a(l[1])),l}var s=i.Encryptor=i.extend({processBlock:function(l,c){var u=this._cipher,f=u.blockSize,x=this._iv,h=this._counter;x&&(h=this._counter=x.slice(0),this._iv=void 0),o(h);var g=h.slice(0);u.encryptBlock(g,0);for(var v=0;v<f;v++)l[c+v]^=g[v]}});return i.Decryptor=s,i}(),r.mode.CTRGladman})}(modeCtrGladman)),modeCtrGladman.exports}var modeOfb={exports:{}},hasRequiredModeOfb;function requireModeOfb(){return hasRequiredModeOfb||(hasRequiredModeOfb=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(r){return r.mode.OFB=function(){var i=r.lib.BlockCipherMode.extend(),a=i.Encryptor=i.extend({processBlock:function(o,s){var l=this._cipher,c=l.blockSize,u=this._iv,f=this._keystream;u&&(f=this._keystream=u.slice(0),this._iv=void 0),l.encryptBlock(f,0);for(var x=0;x<c;x++)o[s+x]^=f[x]}});return i.Decryptor=a,i}(),r.mode.OFB})}(modeOfb)),modeOfb.exports}var modeEcb={exports:{}},hasRequiredModeEcb;function requireModeEcb(){return hasRequiredModeEcb||(hasRequiredModeEcb=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(r){return r.mode.ECB=function(){var i=r.lib.BlockCipherMode.extend();return i.Encryptor=i.extend({processBlock:function(a,o){this._cipher.encryptBlock(a,o)}}),i.Decryptor=i.extend({processBlock:function(a,o){this._cipher.decryptBlock(a,o)}}),i}(),r.mode.ECB})}(modeEcb)),modeEcb.exports}var padAnsix923={exports:{}},hasRequiredPadAnsix923;function requirePadAnsix923(){return hasRequiredPadAnsix923||(hasRequiredPadAnsix923=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(r){return r.pad.AnsiX923={pad:function(i,a){var o=i.sigBytes,s=a*4,l=s-o%s,c=o+l-1;i.clamp(),i.words[c>>>2]|=l<<24-c%4*8,i.sigBytes+=l},unpad:function(i){var a=i.words[i.sigBytes-1>>>2]&255;i.sigBytes-=a}},r.pad.Ansix923})}(padAnsix923)),padAnsix923.exports}var padIso10126={exports:{}},hasRequiredPadIso10126;function requirePadIso10126(){return hasRequiredPadIso10126||(hasRequiredPadIso10126=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(r){return r.pad.Iso10126={pad:function(i,a){var o=a*4,s=o-i.sigBytes%o;i.concat(r.lib.WordArray.random(s-1)).concat(r.lib.WordArray.create([s<<24],1))},unpad:function(i){var a=i.words[i.sigBytes-1>>>2]&255;i.sigBytes-=a}},r.pad.Iso10126})}(padIso10126)),padIso10126.exports}var padIso97971={exports:{}},hasRequiredPadIso97971;function requirePadIso97971(){return hasRequiredPadIso97971||(hasRequiredPadIso97971=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(r){return r.pad.Iso97971={pad:function(i,a){i.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(i,a)},unpad:function(i){r.pad.ZeroPadding.unpad(i),i.sigBytes--}},r.pad.Iso97971})}(padIso97971)),padIso97971.exports}var padZeropadding={exports:{}},hasRequiredPadZeropadding;function requirePadZeropadding(){return hasRequiredPadZeropadding||(hasRequiredPadZeropadding=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(r){return r.pad.ZeroPadding={pad:function(i,a){var o=a*4;i.clamp(),i.sigBytes+=o-(i.sigBytes%o||o)},unpad:function(i){for(var a=i.words,o=i.sigBytes-1,o=i.sigBytes-1;o>=0;o--)if(a[o>>>2]>>>24-o%4*8&255){i.sigBytes=o+1;break}}},r.pad.ZeroPadding})}(padZeropadding)),padZeropadding.exports}var padNopadding={exports:{}},hasRequiredPadNopadding;function requirePadNopadding(){return hasRequiredPadNopadding||(hasRequiredPadNopadding=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})}(padNopadding)),padNopadding.exports}var formatHex={exports:{}},hasRequiredFormatHex;function requireFormatHex(){return hasRequiredFormatHex||(hasRequiredFormatHex=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(r){return function(i){var a=r,o=a.lib,s=o.CipherParams,l=a.enc,c=l.Hex,u=a.format;u.Hex={stringify:function(f){return f.ciphertext.toString(c)},parse:function(f){var x=c.parse(f);return s.create({ciphertext:x})}}}(),r.format.Hex})}(formatHex)),formatHex.exports}var aes={exports:{}},hasRequiredAes;function requireAes(){return hasRequiredAes||(hasRequiredAes=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(r){return function(){var i=r,a=i.lib,o=a.BlockCipher,s=i.algo,l=[],c=[],u=[],f=[],x=[],h=[],g=[],v=[],p=[],E=[];(function(){for(var m=[],y=0;y<256;y++)y<128?m[y]=y<<1:m[y]=y<<1^283;for(var A=0,_=0,y=0;y<256;y++){var k=_^_<<1^_<<2^_<<3^_<<4;k=k>>>8^k&255^99,l[A]=k,c[k]=A;var T=m[A],F=m[T],M=m[F],B=m[k]*257^k*16843008;u[A]=B<<24|B>>>8,f[A]=B<<16|B>>>16,x[A]=B<<8|B>>>24,h[A]=B;var B=M*16843009^F*65537^T*257^A*16843008;g[k]=B<<24|B>>>8,v[k]=B<<16|B>>>16,p[k]=B<<8|B>>>24,E[k]=B,A?(A=T^m[m[m[M^T]]],_^=m[m[_]]):A=_=1}})();var b=[0,1,2,4,8,16,32,64,128,27,54],d=s.AES=o.extend({_doReset:function(){var m;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var y=this._keyPriorReset=this._key,A=y.words,_=y.sigBytes/4,k=this._nRounds=_+6,T=(k+1)*4,F=this._keySchedule=[],M=0;M<T;M++)M<_?F[M]=A[M]:(m=F[M-1],M%_?_>6&&M%_==4&&(m=l[m>>>24]<<24|l[m>>>16&255]<<16|l[m>>>8&255]<<8|l[m&255]):(m=m<<8|m>>>24,m=l[m>>>24]<<24|l[m>>>16&255]<<16|l[m>>>8&255]<<8|l[m&255],m^=b[M/_|0]<<24),F[M]=F[M-_]^m);for(var B=this._invKeySchedule=[],L=0;L<T;L++){var M=T-L;if(L%4)var m=F[M];else var m=F[M-4];L<4||M<=4?B[L]=m:B[L]=g[l[m>>>24]]^v[l[m>>>16&255]]^p[l[m>>>8&255]]^E[l[m&255]]}}},encryptBlock:function(m,y){this._doCryptBlock(m,y,this._keySchedule,u,f,x,h,l)},decryptBlock:function(m,y){var A=m[y+1];m[y+1]=m[y+3],m[y+3]=A,this._doCryptBlock(m,y,this._invKeySchedule,g,v,p,E,c);var A=m[y+1];m[y+1]=m[y+3],m[y+3]=A},_doCryptBlock:function(m,y,A,_,k,T,F,M){for(var B=this._nRounds,L=m[y]^A[0],R=m[y+1]^A[1],H=m[y+2]^A[2],V=m[y+3]^A[3],P=4,I=1;I<B;I++){var S=_[L>>>24]^k[R>>>16&255]^T[H>>>8&255]^F[V&255]^A[P++],C=_[R>>>24]^k[H>>>16&255]^T[V>>>8&255]^F[L&255]^A[P++],N=_[H>>>24]^k[V>>>16&255]^T[L>>>8&255]^F[R&255]^A[P++],w=_[V>>>24]^k[L>>>16&255]^T[R>>>8&255]^F[H&255]^A[P++];L=S,R=C,H=N,V=w}var S=(M[L>>>24]<<24|M[R>>>16&255]<<16|M[H>>>8&255]<<8|M[V&255])^A[P++],C=(M[R>>>24]<<24|M[H>>>16&255]<<16|M[V>>>8&255]<<8|M[L&255])^A[P++],N=(M[H>>>24]<<24|M[V>>>16&255]<<16|M[L>>>8&255]<<8|M[R&255])^A[P++],w=(M[V>>>24]<<24|M[L>>>16&255]<<16|M[R>>>8&255]<<8|M[H&255])^A[P++];m[y]=S,m[y+1]=C,m[y+2]=N,m[y+3]=w},keySize:256/32});i.AES=o._createHelper(d)}(),r.AES})}(aes)),aes.exports}var tripledes={exports:{}},hasRequiredTripledes;function requireTripledes(){return hasRequiredTripledes||(hasRequiredTripledes=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(r){return function(){var i=r,a=i.lib,o=a.WordArray,s=a.BlockCipher,l=i.algo,c=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],u=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],f=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],x=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],h=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],g=l.DES=s.extend({_doReset:function(){for(var b=this._key,d=b.words,m=[],y=0;y<56;y++){var A=c[y]-1;m[y]=d[A>>>5]>>>31-A%32&1}for(var _=this._subKeys=[],k=0;k<16;k++){for(var T=_[k]=[],F=f[k],y=0;y<24;y++)T[y/6|0]|=m[(u[y]-1+F)%28]<<31-y%6,T[4+(y/6|0)]|=m[28+(u[y+24]-1+F)%28]<<31-y%6;T[0]=T[0]<<1|T[0]>>>31;for(var y=1;y<7;y++)T[y]=T[y]>>>(y-1)*4+3;T[7]=T[7]<<5|T[7]>>>27}for(var M=this._invSubKeys=[],y=0;y<16;y++)M[y]=_[15-y]},encryptBlock:function(b,d){this._doCryptBlock(b,d,this._subKeys)},decryptBlock:function(b,d){this._doCryptBlock(b,d,this._invSubKeys)},_doCryptBlock:function(b,d,m){this._lBlock=b[d],this._rBlock=b[d+1],v.call(this,4,252645135),v.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),v.call(this,1,1431655765);for(var y=0;y<16;y++){for(var A=m[y],_=this._lBlock,k=this._rBlock,T=0,F=0;F<8;F++)T|=x[F][((k^A[F])&h[F])>>>0];this._lBlock=k,this._rBlock=_^T}var M=this._lBlock;this._lBlock=this._rBlock,this._rBlock=M,v.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),v.call(this,16,65535),v.call(this,4,252645135),b[d]=this._lBlock,b[d+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function v(b,d){var m=(this._lBlock>>>b^this._rBlock)&d;this._rBlock^=m,this._lBlock^=m<<b}function p(b,d){var m=(this._rBlock>>>b^this._lBlock)&d;this._lBlock^=m,this._rBlock^=m<<b}i.DES=s._createHelper(g);var E=l.TripleDES=s.extend({_doReset:function(){var b=this._key,d=b.words;if(d.length!==2&&d.length!==4&&d.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var m=d.slice(0,2),y=d.length<4?d.slice(0,2):d.slice(2,4),A=d.length<6?d.slice(0,2):d.slice(4,6);this._des1=g.createEncryptor(o.create(m)),this._des2=g.createEncryptor(o.create(y)),this._des3=g.createEncryptor(o.create(A))},encryptBlock:function(b,d){this._des1.encryptBlock(b,d),this._des2.decryptBlock(b,d),this._des3.encryptBlock(b,d)},decryptBlock:function(b,d){this._des3.decryptBlock(b,d),this._des2.encryptBlock(b,d),this._des1.decryptBlock(b,d)},keySize:192/32,ivSize:64/32,blockSize:64/32});i.TripleDES=s._createHelper(E)}(),r.TripleDES})}(tripledes)),tripledes.exports}var rc4={exports:{}},hasRequiredRc4;function requireRc4(){return hasRequiredRc4||(hasRequiredRc4=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(r){return function(){var i=r,a=i.lib,o=a.StreamCipher,s=i.algo,l=s.RC4=o.extend({_doReset:function(){for(var f=this._key,x=f.words,h=f.sigBytes,g=this._S=[],v=0;v<256;v++)g[v]=v;for(var v=0,p=0;v<256;v++){var E=v%h,b=x[E>>>2]>>>24-E%4*8&255;p=(p+g[v]+b)%256;var d=g[v];g[v]=g[p],g[p]=d}this._i=this._j=0},_doProcessBlock:function(f,x){f[x]^=c.call(this)},keySize:256/32,ivSize:0});function c(){for(var f=this._S,x=this._i,h=this._j,g=0,v=0;v<4;v++){x=(x+1)%256,h=(h+f[x])%256;var p=f[x];f[x]=f[h],f[h]=p,g|=f[(f[x]+f[h])%256]<<24-v*8}return this._i=x,this._j=h,g}i.RC4=o._createHelper(l);var u=s.RC4Drop=l.extend({cfg:l.cfg.extend({drop:192}),_doReset:function(){l._doReset.call(this);for(var f=this.cfg.drop;f>0;f--)c.call(this)}});i.RC4Drop=o._createHelper(u)}(),r.RC4})}(rc4)),rc4.exports}var rabbit={exports:{}},hasRequiredRabbit;function requireRabbit(){return hasRequiredRabbit||(hasRequiredRabbit=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(r){return function(){var i=r,a=i.lib,o=a.StreamCipher,s=i.algo,l=[],c=[],u=[],f=s.Rabbit=o.extend({_doReset:function(){for(var h=this._key.words,g=this.cfg.iv,v=0;v<4;v++)h[v]=(h[v]<<8|h[v]>>>24)&16711935|(h[v]<<24|h[v]>>>8)&4278255360;var p=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],E=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var v=0;v<4;v++)x.call(this);for(var v=0;v<8;v++)E[v]^=p[v+4&7];if(g){var b=g.words,d=b[0],m=b[1],y=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,A=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,_=y>>>16|A&4294901760,k=A<<16|y&65535;E[0]^=y,E[1]^=_,E[2]^=A,E[3]^=k,E[4]^=y,E[5]^=_,E[6]^=A,E[7]^=k;for(var v=0;v<4;v++)x.call(this)}},_doProcessBlock:function(h,g){var v=this._X;x.call(this),l[0]=v[0]^v[5]>>>16^v[3]<<16,l[1]=v[2]^v[7]>>>16^v[5]<<16,l[2]=v[4]^v[1]>>>16^v[7]<<16,l[3]=v[6]^v[3]>>>16^v[1]<<16;for(var p=0;p<4;p++)l[p]=(l[p]<<8|l[p]>>>24)&16711935|(l[p]<<24|l[p]>>>8)&4278255360,h[g+p]^=l[p]},blockSize:128/32,ivSize:64/32});function x(){for(var h=this._X,g=this._C,v=0;v<8;v++)c[v]=g[v];g[0]=g[0]+1295307597+this._b|0,g[1]=g[1]+3545052371+(g[0]>>>0<c[0]>>>0?1:0)|0,g[2]=g[2]+886263092+(g[1]>>>0<c[1]>>>0?1:0)|0,g[3]=g[3]+1295307597+(g[2]>>>0<c[2]>>>0?1:0)|0,g[4]=g[4]+3545052371+(g[3]>>>0<c[3]>>>0?1:0)|0,g[5]=g[5]+886263092+(g[4]>>>0<c[4]>>>0?1:0)|0,g[6]=g[6]+1295307597+(g[5]>>>0<c[5]>>>0?1:0)|0,g[7]=g[7]+3545052371+(g[6]>>>0<c[6]>>>0?1:0)|0,this._b=g[7]>>>0<c[7]>>>0?1:0;for(var v=0;v<8;v++){var p=h[v]+g[v],E=p&65535,b=p>>>16,d=((E*E>>>17)+E*b>>>15)+b*b,m=((p&4294901760)*p|0)+((p&65535)*p|0);u[v]=d^m}h[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,h[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,h[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,h[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,h[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,h[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,h[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,h[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}i.Rabbit=o._createHelper(f)}(),r.Rabbit})}(rabbit)),rabbit.exports}var rabbitLegacy={exports:{}},hasRequiredRabbitLegacy;function requireRabbitLegacy(){return hasRequiredRabbitLegacy||(hasRequiredRabbitLegacy=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(r){return function(){var i=r,a=i.lib,o=a.StreamCipher,s=i.algo,l=[],c=[],u=[],f=s.RabbitLegacy=o.extend({_doReset:function(){var h=this._key.words,g=this.cfg.iv,v=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],p=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var E=0;E<4;E++)x.call(this);for(var E=0;E<8;E++)p[E]^=v[E+4&7];if(g){var b=g.words,d=b[0],m=b[1],y=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,A=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,_=y>>>16|A&4294901760,k=A<<16|y&65535;p[0]^=y,p[1]^=_,p[2]^=A,p[3]^=k,p[4]^=y,p[5]^=_,p[6]^=A,p[7]^=k;for(var E=0;E<4;E++)x.call(this)}},_doProcessBlock:function(h,g){var v=this._X;x.call(this),l[0]=v[0]^v[5]>>>16^v[3]<<16,l[1]=v[2]^v[7]>>>16^v[5]<<16,l[2]=v[4]^v[1]>>>16^v[7]<<16,l[3]=v[6]^v[3]>>>16^v[1]<<16;for(var p=0;p<4;p++)l[p]=(l[p]<<8|l[p]>>>24)&16711935|(l[p]<<24|l[p]>>>8)&4278255360,h[g+p]^=l[p]},blockSize:128/32,ivSize:64/32});function x(){for(var h=this._X,g=this._C,v=0;v<8;v++)c[v]=g[v];g[0]=g[0]+1295307597+this._b|0,g[1]=g[1]+3545052371+(g[0]>>>0<c[0]>>>0?1:0)|0,g[2]=g[2]+886263092+(g[1]>>>0<c[1]>>>0?1:0)|0,g[3]=g[3]+1295307597+(g[2]>>>0<c[2]>>>0?1:0)|0,g[4]=g[4]+3545052371+(g[3]>>>0<c[3]>>>0?1:0)|0,g[5]=g[5]+886263092+(g[4]>>>0<c[4]>>>0?1:0)|0,g[6]=g[6]+1295307597+(g[5]>>>0<c[5]>>>0?1:0)|0,g[7]=g[7]+3545052371+(g[6]>>>0<c[6]>>>0?1:0)|0,this._b=g[7]>>>0<c[7]>>>0?1:0;for(var v=0;v<8;v++){var p=h[v]+g[v],E=p&65535,b=p>>>16,d=((E*E>>>17)+E*b>>>15)+b*b,m=((p&4294901760)*p|0)+((p&65535)*p|0);u[v]=d^m}h[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,h[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,h[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,h[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,h[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,h[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,h[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,h[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}i.RabbitLegacy=o._createHelper(f)}(),r.RabbitLegacy})}(rabbitLegacy)),rabbitLegacy.exports}(function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireX64Core(),requireLibTypedarrays(),requireEncUtf16(),requireEncBase64(),requireEncBase64url(),requireMd5(),requireSha1(),requireSha256(),requireSha224(),requireSha512(),requireSha384(),requireSha3(),requireRipemd160(),requireHmac(),requirePbkdf2(),requireEvpkdf(),requireCipherCore(),requireModeCfb(),requireModeCtr(),requireModeCtrGladman(),requireModeOfb(),requireModeEcb(),requirePadAnsix923(),requirePadIso10126(),requirePadIso97971(),requirePadZeropadding(),requirePadNopadding(),requireFormatHex(),requireAes(),requireTripledes(),requireRc4(),requireRabbit(),requireRabbitLegacy())})(commonjsGlobal,function(r){return r})})(cryptoJs);var cryptoJsExports=cryptoJs.exports;const CryptoJS=getDefaultExportFromCjs(cryptoJsExports);var BI_RM="0123456789abcdefghijklmnopqrstuvwxyz";function int2char(e){return BI_RM.charAt(e)}function op_and(e,n){return e&n}function op_or(e,n){return e|n}function op_xor(e,n){return e^n}function op_andnot(e,n){return e&~n}function lbit(e){if(e==0)return-1;var n=0;return e&65535||(e>>=16,n+=16),e&255||(e>>=8,n+=8),e&15||(e>>=4,n+=4),e&3||(e>>=2,n+=2),e&1||++n,n}function cbit(e){for(var n=0;e!=0;)e&=e-1,++n;return n}var b64map="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64pad="=";function hex2b64(e){var n,r,i="";for(n=0;n+3<=e.length;n+=3)r=parseInt(e.substring(n,n+3),16),i+=b64map.charAt(r>>6)+b64map.charAt(r&63);for(n+1==e.length?(r=parseInt(e.substring(n,n+1),16),i+=b64map.charAt(r<<2)):n+2==e.length&&(r=parseInt(e.substring(n,n+2),16),i+=b64map.charAt(r>>2)+b64map.charAt((r&3)<<4));(i.length&3)>0;)i+=b64pad;return i}function b64tohex(e){var n="",r,i=0,a=0;for(r=0;r<e.length&&e.charAt(r)!=b64pad;++r){var o=b64map.indexOf(e.charAt(r));o<0||(i==0?(n+=int2char(o>>2),a=o&3,i=1):i==1?(n+=int2char(a<<2|o>>4),a=o&15,i=2):i==2?(n+=int2char(a),n+=int2char(o>>2),a=o&3,i=3):(n+=int2char(a<<2|o>>4),n+=int2char(o&15),i=0))}return i==1&&(n+=int2char(a<<2)),n}var decoder$1,Hex={decode:function(e){var n;if(decoder$1===void 0){var r="0123456789ABCDEF",i=` \f
74
+ */return r.mode.CTRGladman=function(){var i=r.lib.BlockCipherMode.extend();function a(l){if((l>>24&255)===255){var c=l>>16&255,u=l>>8&255,f=l&255;c===255?(c=0,u===255?(u=0,f===255?f=0:++f):++u):++c,l=0,l+=c<<16,l+=u<<8,l+=f}else l+=1<<24;return l}function o(l){return(l[0]=a(l[0]))===0&&(l[1]=a(l[1])),l}var s=i.Encryptor=i.extend({processBlock:function(l,c){var u=this._cipher,f=u.blockSize,x=this._iv,h=this._counter;x&&(h=this._counter=x.slice(0),this._iv=void 0),o(h);var g=h.slice(0);u.encryptBlock(g,0);for(var v=0;v<f;v++)l[c+v]^=g[v]}});return i.Decryptor=s,i}(),r.mode.CTRGladman})}(modeCtrGladman)),modeCtrGladman.exports}var modeOfb={exports:{}},hasRequiredModeOfb;function requireModeOfb(){return hasRequiredModeOfb||(hasRequiredModeOfb=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(r){return r.mode.OFB=function(){var i=r.lib.BlockCipherMode.extend(),a=i.Encryptor=i.extend({processBlock:function(o,s){var l=this._cipher,c=l.blockSize,u=this._iv,f=this._keystream;u&&(f=this._keystream=u.slice(0),this._iv=void 0),l.encryptBlock(f,0);for(var x=0;x<c;x++)o[s+x]^=f[x]}});return i.Decryptor=a,i}(),r.mode.OFB})}(modeOfb)),modeOfb.exports}var modeEcb={exports:{}},hasRequiredModeEcb;function requireModeEcb(){return hasRequiredModeEcb||(hasRequiredModeEcb=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(r){return r.mode.ECB=function(){var i=r.lib.BlockCipherMode.extend();return i.Encryptor=i.extend({processBlock:function(a,o){this._cipher.encryptBlock(a,o)}}),i.Decryptor=i.extend({processBlock:function(a,o){this._cipher.decryptBlock(a,o)}}),i}(),r.mode.ECB})}(modeEcb)),modeEcb.exports}var padAnsix923={exports:{}},hasRequiredPadAnsix923;function requirePadAnsix923(){return hasRequiredPadAnsix923||(hasRequiredPadAnsix923=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(r){return r.pad.AnsiX923={pad:function(i,a){var o=i.sigBytes,s=a*4,l=s-o%s,c=o+l-1;i.clamp(),i.words[c>>>2]|=l<<24-c%4*8,i.sigBytes+=l},unpad:function(i){var a=i.words[i.sigBytes-1>>>2]&255;i.sigBytes-=a}},r.pad.Ansix923})}(padAnsix923)),padAnsix923.exports}var padIso10126={exports:{}},hasRequiredPadIso10126;function requirePadIso10126(){return hasRequiredPadIso10126||(hasRequiredPadIso10126=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(r){return r.pad.Iso10126={pad:function(i,a){var o=a*4,s=o-i.sigBytes%o;i.concat(r.lib.WordArray.random(s-1)).concat(r.lib.WordArray.create([s<<24],1))},unpad:function(i){var a=i.words[i.sigBytes-1>>>2]&255;i.sigBytes-=a}},r.pad.Iso10126})}(padIso10126)),padIso10126.exports}var padIso97971={exports:{}},hasRequiredPadIso97971;function requirePadIso97971(){return hasRequiredPadIso97971||(hasRequiredPadIso97971=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(r){return r.pad.Iso97971={pad:function(i,a){i.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(i,a)},unpad:function(i){r.pad.ZeroPadding.unpad(i),i.sigBytes--}},r.pad.Iso97971})}(padIso97971)),padIso97971.exports}var padZeropadding={exports:{}},hasRequiredPadZeropadding;function requirePadZeropadding(){return hasRequiredPadZeropadding||(hasRequiredPadZeropadding=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(r){return r.pad.ZeroPadding={pad:function(i,a){var o=a*4;i.clamp(),i.sigBytes+=o-(i.sigBytes%o||o)},unpad:function(i){for(var a=i.words,o=i.sigBytes-1,o=i.sigBytes-1;o>=0;o--)if(a[o>>>2]>>>24-o%4*8&255){i.sigBytes=o+1;break}}},r.pad.ZeroPadding})}(padZeropadding)),padZeropadding.exports}var padNopadding={exports:{}},hasRequiredPadNopadding;function requirePadNopadding(){return hasRequiredPadNopadding||(hasRequiredPadNopadding=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})}(padNopadding)),padNopadding.exports}var formatHex={exports:{}},hasRequiredFormatHex;function requireFormatHex(){return hasRequiredFormatHex||(hasRequiredFormatHex=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(r){return function(i){var a=r,o=a.lib,s=o.CipherParams,l=a.enc,c=l.Hex,u=a.format;u.Hex={stringify:function(f){return f.ciphertext.toString(c)},parse:function(f){var x=c.parse(f);return s.create({ciphertext:x})}}}(),r.format.Hex})}(formatHex)),formatHex.exports}var aes={exports:{}},hasRequiredAes;function requireAes(){return hasRequiredAes||(hasRequiredAes=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(r){return function(){var i=r,a=i.lib,o=a.BlockCipher,s=i.algo,l=[],c=[],u=[],f=[],x=[],h=[],g=[],v=[],p=[],C=[];(function(){for(var m=[],y=0;y<256;y++)y<128?m[y]=y<<1:m[y]=y<<1^283;for(var A=0,_=0,y=0;y<256;y++){var k=_^_<<1^_<<2^_<<3^_<<4;k=k>>>8^k&255^99,l[A]=k,c[k]=A;var T=m[A],F=m[T],M=m[F],B=m[k]*257^k*16843008;u[A]=B<<24|B>>>8,f[A]=B<<16|B>>>16,x[A]=B<<8|B>>>24,h[A]=B;var B=M*16843009^F*65537^T*257^A*16843008;g[k]=B<<24|B>>>8,v[k]=B<<16|B>>>16,p[k]=B<<8|B>>>24,C[k]=B,A?(A=T^m[m[m[M^T]]],_^=m[m[_]]):A=_=1}})();var b=[0,1,2,4,8,16,32,64,128,27,54],d=s.AES=o.extend({_doReset:function(){var m;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var y=this._keyPriorReset=this._key,A=y.words,_=y.sigBytes/4,k=this._nRounds=_+6,T=(k+1)*4,F=this._keySchedule=[],M=0;M<T;M++)M<_?F[M]=A[M]:(m=F[M-1],M%_?_>6&&M%_==4&&(m=l[m>>>24]<<24|l[m>>>16&255]<<16|l[m>>>8&255]<<8|l[m&255]):(m=m<<8|m>>>24,m=l[m>>>24]<<24|l[m>>>16&255]<<16|l[m>>>8&255]<<8|l[m&255],m^=b[M/_|0]<<24),F[M]=F[M-_]^m);for(var B=this._invKeySchedule=[],L=0;L<T;L++){var M=T-L;if(L%4)var m=F[M];else var m=F[M-4];L<4||M<=4?B[L]=m:B[L]=g[l[m>>>24]]^v[l[m>>>16&255]]^p[l[m>>>8&255]]^C[l[m&255]]}}},encryptBlock:function(m,y){this._doCryptBlock(m,y,this._keySchedule,u,f,x,h,l)},decryptBlock:function(m,y){var A=m[y+1];m[y+1]=m[y+3],m[y+3]=A,this._doCryptBlock(m,y,this._invKeySchedule,g,v,p,C,c);var A=m[y+1];m[y+1]=m[y+3],m[y+3]=A},_doCryptBlock:function(m,y,A,_,k,T,F,M){for(var B=this._nRounds,L=m[y]^A[0],V=m[y+1]^A[1],U=m[y+2]^A[2],$=m[y+3]^A[3],P=4,I=1;I<B;I++){var E=_[L>>>24]^k[V>>>16&255]^T[U>>>8&255]^F[$&255]^A[P++],S=_[V>>>24]^k[U>>>16&255]^T[$>>>8&255]^F[L&255]^A[P++],N=_[U>>>24]^k[$>>>16&255]^T[L>>>8&255]^F[V&255]^A[P++],w=_[$>>>24]^k[L>>>16&255]^T[V>>>8&255]^F[U&255]^A[P++];L=E,V=S,U=N,$=w}var E=(M[L>>>24]<<24|M[V>>>16&255]<<16|M[U>>>8&255]<<8|M[$&255])^A[P++],S=(M[V>>>24]<<24|M[U>>>16&255]<<16|M[$>>>8&255]<<8|M[L&255])^A[P++],N=(M[U>>>24]<<24|M[$>>>16&255]<<16|M[L>>>8&255]<<8|M[V&255])^A[P++],w=(M[$>>>24]<<24|M[L>>>16&255]<<16|M[V>>>8&255]<<8|M[U&255])^A[P++];m[y]=E,m[y+1]=S,m[y+2]=N,m[y+3]=w},keySize:256/32});i.AES=o._createHelper(d)}(),r.AES})}(aes)),aes.exports}var tripledes={exports:{}},hasRequiredTripledes;function requireTripledes(){return hasRequiredTripledes||(hasRequiredTripledes=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(r){return function(){var i=r,a=i.lib,o=a.WordArray,s=a.BlockCipher,l=i.algo,c=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],u=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],f=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],x=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],h=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],g=l.DES=s.extend({_doReset:function(){for(var b=this._key,d=b.words,m=[],y=0;y<56;y++){var A=c[y]-1;m[y]=d[A>>>5]>>>31-A%32&1}for(var _=this._subKeys=[],k=0;k<16;k++){for(var T=_[k]=[],F=f[k],y=0;y<24;y++)T[y/6|0]|=m[(u[y]-1+F)%28]<<31-y%6,T[4+(y/6|0)]|=m[28+(u[y+24]-1+F)%28]<<31-y%6;T[0]=T[0]<<1|T[0]>>>31;for(var y=1;y<7;y++)T[y]=T[y]>>>(y-1)*4+3;T[7]=T[7]<<5|T[7]>>>27}for(var M=this._invSubKeys=[],y=0;y<16;y++)M[y]=_[15-y]},encryptBlock:function(b,d){this._doCryptBlock(b,d,this._subKeys)},decryptBlock:function(b,d){this._doCryptBlock(b,d,this._invSubKeys)},_doCryptBlock:function(b,d,m){this._lBlock=b[d],this._rBlock=b[d+1],v.call(this,4,252645135),v.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),v.call(this,1,1431655765);for(var y=0;y<16;y++){for(var A=m[y],_=this._lBlock,k=this._rBlock,T=0,F=0;F<8;F++)T|=x[F][((k^A[F])&h[F])>>>0];this._lBlock=k,this._rBlock=_^T}var M=this._lBlock;this._lBlock=this._rBlock,this._rBlock=M,v.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),v.call(this,16,65535),v.call(this,4,252645135),b[d]=this._lBlock,b[d+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function v(b,d){var m=(this._lBlock>>>b^this._rBlock)&d;this._rBlock^=m,this._lBlock^=m<<b}function p(b,d){var m=(this._rBlock>>>b^this._lBlock)&d;this._lBlock^=m,this._rBlock^=m<<b}i.DES=s._createHelper(g);var C=l.TripleDES=s.extend({_doReset:function(){var b=this._key,d=b.words;if(d.length!==2&&d.length!==4&&d.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var m=d.slice(0,2),y=d.length<4?d.slice(0,2):d.slice(2,4),A=d.length<6?d.slice(0,2):d.slice(4,6);this._des1=g.createEncryptor(o.create(m)),this._des2=g.createEncryptor(o.create(y)),this._des3=g.createEncryptor(o.create(A))},encryptBlock:function(b,d){this._des1.encryptBlock(b,d),this._des2.decryptBlock(b,d),this._des3.encryptBlock(b,d)},decryptBlock:function(b,d){this._des3.decryptBlock(b,d),this._des2.encryptBlock(b,d),this._des1.decryptBlock(b,d)},keySize:192/32,ivSize:64/32,blockSize:64/32});i.TripleDES=s._createHelper(C)}(),r.TripleDES})}(tripledes)),tripledes.exports}var rc4={exports:{}},hasRequiredRc4;function requireRc4(){return hasRequiredRc4||(hasRequiredRc4=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(r){return function(){var i=r,a=i.lib,o=a.StreamCipher,s=i.algo,l=s.RC4=o.extend({_doReset:function(){for(var f=this._key,x=f.words,h=f.sigBytes,g=this._S=[],v=0;v<256;v++)g[v]=v;for(var v=0,p=0;v<256;v++){var C=v%h,b=x[C>>>2]>>>24-C%4*8&255;p=(p+g[v]+b)%256;var d=g[v];g[v]=g[p],g[p]=d}this._i=this._j=0},_doProcessBlock:function(f,x){f[x]^=c.call(this)},keySize:256/32,ivSize:0});function c(){for(var f=this._S,x=this._i,h=this._j,g=0,v=0;v<4;v++){x=(x+1)%256,h=(h+f[x])%256;var p=f[x];f[x]=f[h],f[h]=p,g|=f[(f[x]+f[h])%256]<<24-v*8}return this._i=x,this._j=h,g}i.RC4=o._createHelper(l);var u=s.RC4Drop=l.extend({cfg:l.cfg.extend({drop:192}),_doReset:function(){l._doReset.call(this);for(var f=this.cfg.drop;f>0;f--)c.call(this)}});i.RC4Drop=o._createHelper(u)}(),r.RC4})}(rc4)),rc4.exports}var rabbit={exports:{}},hasRequiredRabbit;function requireRabbit(){return hasRequiredRabbit||(hasRequiredRabbit=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(r){return function(){var i=r,a=i.lib,o=a.StreamCipher,s=i.algo,l=[],c=[],u=[],f=s.Rabbit=o.extend({_doReset:function(){for(var h=this._key.words,g=this.cfg.iv,v=0;v<4;v++)h[v]=(h[v]<<8|h[v]>>>24)&16711935|(h[v]<<24|h[v]>>>8)&4278255360;var p=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],C=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var v=0;v<4;v++)x.call(this);for(var v=0;v<8;v++)C[v]^=p[v+4&7];if(g){var b=g.words,d=b[0],m=b[1],y=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,A=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,_=y>>>16|A&4294901760,k=A<<16|y&65535;C[0]^=y,C[1]^=_,C[2]^=A,C[3]^=k,C[4]^=y,C[5]^=_,C[6]^=A,C[7]^=k;for(var v=0;v<4;v++)x.call(this)}},_doProcessBlock:function(h,g){var v=this._X;x.call(this),l[0]=v[0]^v[5]>>>16^v[3]<<16,l[1]=v[2]^v[7]>>>16^v[5]<<16,l[2]=v[4]^v[1]>>>16^v[7]<<16,l[3]=v[6]^v[3]>>>16^v[1]<<16;for(var p=0;p<4;p++)l[p]=(l[p]<<8|l[p]>>>24)&16711935|(l[p]<<24|l[p]>>>8)&4278255360,h[g+p]^=l[p]},blockSize:128/32,ivSize:64/32});function x(){for(var h=this._X,g=this._C,v=0;v<8;v++)c[v]=g[v];g[0]=g[0]+1295307597+this._b|0,g[1]=g[1]+3545052371+(g[0]>>>0<c[0]>>>0?1:0)|0,g[2]=g[2]+886263092+(g[1]>>>0<c[1]>>>0?1:0)|0,g[3]=g[3]+1295307597+(g[2]>>>0<c[2]>>>0?1:0)|0,g[4]=g[4]+3545052371+(g[3]>>>0<c[3]>>>0?1:0)|0,g[5]=g[5]+886263092+(g[4]>>>0<c[4]>>>0?1:0)|0,g[6]=g[6]+1295307597+(g[5]>>>0<c[5]>>>0?1:0)|0,g[7]=g[7]+3545052371+(g[6]>>>0<c[6]>>>0?1:0)|0,this._b=g[7]>>>0<c[7]>>>0?1:0;for(var v=0;v<8;v++){var p=h[v]+g[v],C=p&65535,b=p>>>16,d=((C*C>>>17)+C*b>>>15)+b*b,m=((p&4294901760)*p|0)+((p&65535)*p|0);u[v]=d^m}h[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,h[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,h[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,h[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,h[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,h[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,h[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,h[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}i.Rabbit=o._createHelper(f)}(),r.Rabbit})}(rabbit)),rabbit.exports}var rabbitLegacy={exports:{}},hasRequiredRabbitLegacy;function requireRabbitLegacy(){return hasRequiredRabbitLegacy||(hasRequiredRabbitLegacy=1,function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(r){return function(){var i=r,a=i.lib,o=a.StreamCipher,s=i.algo,l=[],c=[],u=[],f=s.RabbitLegacy=o.extend({_doReset:function(){var h=this._key.words,g=this.cfg.iv,v=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],p=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var C=0;C<4;C++)x.call(this);for(var C=0;C<8;C++)p[C]^=v[C+4&7];if(g){var b=g.words,d=b[0],m=b[1],y=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,A=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,_=y>>>16|A&4294901760,k=A<<16|y&65535;p[0]^=y,p[1]^=_,p[2]^=A,p[3]^=k,p[4]^=y,p[5]^=_,p[6]^=A,p[7]^=k;for(var C=0;C<4;C++)x.call(this)}},_doProcessBlock:function(h,g){var v=this._X;x.call(this),l[0]=v[0]^v[5]>>>16^v[3]<<16,l[1]=v[2]^v[7]>>>16^v[5]<<16,l[2]=v[4]^v[1]>>>16^v[7]<<16,l[3]=v[6]^v[3]>>>16^v[1]<<16;for(var p=0;p<4;p++)l[p]=(l[p]<<8|l[p]>>>24)&16711935|(l[p]<<24|l[p]>>>8)&4278255360,h[g+p]^=l[p]},blockSize:128/32,ivSize:64/32});function x(){for(var h=this._X,g=this._C,v=0;v<8;v++)c[v]=g[v];g[0]=g[0]+1295307597+this._b|0,g[1]=g[1]+3545052371+(g[0]>>>0<c[0]>>>0?1:0)|0,g[2]=g[2]+886263092+(g[1]>>>0<c[1]>>>0?1:0)|0,g[3]=g[3]+1295307597+(g[2]>>>0<c[2]>>>0?1:0)|0,g[4]=g[4]+3545052371+(g[3]>>>0<c[3]>>>0?1:0)|0,g[5]=g[5]+886263092+(g[4]>>>0<c[4]>>>0?1:0)|0,g[6]=g[6]+1295307597+(g[5]>>>0<c[5]>>>0?1:0)|0,g[7]=g[7]+3545052371+(g[6]>>>0<c[6]>>>0?1:0)|0,this._b=g[7]>>>0<c[7]>>>0?1:0;for(var v=0;v<8;v++){var p=h[v]+g[v],C=p&65535,b=p>>>16,d=((C*C>>>17)+C*b>>>15)+b*b,m=((p&4294901760)*p|0)+((p&65535)*p|0);u[v]=d^m}h[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,h[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,h[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,h[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,h[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,h[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,h[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,h[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}i.RabbitLegacy=o._createHelper(f)}(),r.RabbitLegacy})}(rabbitLegacy)),rabbitLegacy.exports}(function(e,n){(function(r,i,a){e.exports=i(requireCore(),requireX64Core(),requireLibTypedarrays(),requireEncUtf16(),requireEncBase64(),requireEncBase64url(),requireMd5(),requireSha1(),requireSha256(),requireSha224(),requireSha512(),requireSha384(),requireSha3(),requireRipemd160(),requireHmac(),requirePbkdf2(),requireEvpkdf(),requireCipherCore(),requireModeCfb(),requireModeCtr(),requireModeCtrGladman(),requireModeOfb(),requireModeEcb(),requirePadAnsix923(),requirePadIso10126(),requirePadIso97971(),requirePadZeropadding(),requirePadNopadding(),requireFormatHex(),requireAes(),requireTripledes(),requireRc4(),requireRabbit(),requireRabbitLegacy())})(commonjsGlobal,function(r){return r})})(cryptoJs);var cryptoJsExports=cryptoJs.exports;const CryptoJS=getDefaultExportFromCjs(cryptoJsExports);var BI_RM="0123456789abcdefghijklmnopqrstuvwxyz";function int2char(e){return BI_RM.charAt(e)}function op_and(e,n){return e&n}function op_or(e,n){return e|n}function op_xor(e,n){return e^n}function op_andnot(e,n){return e&~n}function lbit(e){if(e==0)return-1;var n=0;return e&65535||(e>>=16,n+=16),e&255||(e>>=8,n+=8),e&15||(e>>=4,n+=4),e&3||(e>>=2,n+=2),e&1||++n,n}function cbit(e){for(var n=0;e!=0;)e&=e-1,++n;return n}var b64map="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64pad="=";function hex2b64(e){var n,r,i="";for(n=0;n+3<=e.length;n+=3)r=parseInt(e.substring(n,n+3),16),i+=b64map.charAt(r>>6)+b64map.charAt(r&63);for(n+1==e.length?(r=parseInt(e.substring(n,n+1),16),i+=b64map.charAt(r<<2)):n+2==e.length&&(r=parseInt(e.substring(n,n+2),16),i+=b64map.charAt(r>>2)+b64map.charAt((r&3)<<4));(i.length&3)>0;)i+=b64pad;return i}function b64tohex(e){var n="",r,i=0,a=0;for(r=0;r<e.length&&e.charAt(r)!=b64pad;++r){var o=b64map.indexOf(e.charAt(r));o<0||(i==0?(n+=int2char(o>>2),a=o&3,i=1):i==1?(n+=int2char(a<<2|o>>4),a=o&15,i=2):i==2?(n+=int2char(a),n+=int2char(o>>2),a=o&3,i=3):(n+=int2char(a<<2|o>>4),n+=int2char(o&15),i=0))}return i==1&&(n+=int2char(a<<2)),n}var decoder$1,Hex={decode:function(e){var n;if(decoder$1===void 0){var r="0123456789ABCDEF",i=` \f
75
75
  \r  \u2028\u2029`;for(decoder$1={},n=0;n<16;++n)decoder$1[r.charAt(n)]=n;for(r=r.toLowerCase(),n=10;n<16;++n)decoder$1[r.charAt(n)]=n;for(n=0;n<i.length;++n)decoder$1[i.charAt(n)]=-1}var a=[],o=0,s=0;for(n=0;n<e.length;++n){var l=e.charAt(n);if(l=="=")break;if(l=decoder$1[l],l!=-1){if(l===void 0)throw new Error("Illegal character at offset "+n);o|=l,++s>=2?(a[a.length]=o,o=0,s=0):o<<=4}}if(s)throw new Error("Hex encoding incomplete: 4 bits missing");return a}},decoder,Base64={decode:function(e){var n;if(decoder===void 0){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=`= \f
76
76
  \r  \u2028\u2029`;for(decoder=Object.create(null),n=0;n<64;++n)decoder[r.charAt(n)]=n;for(decoder["-"]=62,decoder._=63,n=0;n<i.length;++n)decoder[i.charAt(n)]=-1}var a=[],o=0,s=0;for(n=0;n<e.length;++n){var l=e.charAt(n);if(l=="=")break;if(l=decoder[l],l!=-1){if(l===void 0)throw new Error("Illegal character at offset "+n);o|=l,++s>=4?(a[a.length]=o>>16,a[a.length]=o>>8&255,a[a.length]=o&255,o=0,s=0):o<<=6}}switch(s){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:a[a.length]=o>>10;break;case 3:a[a.length]=o>>16,a[a.length]=o>>8&255;break}return a},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var n=Base64.re.exec(e);if(n)if(n[1])e=n[1];else if(n[2])e=n[2];else throw new Error("RegExp out of sync");return Base64.decode(e)}},max=1e13,Int10=function(){function e(n){this.buf=[+n||0]}return e.prototype.mulAdd=function(n,r){var i=this.buf,a=i.length,o,s;for(o=0;o<a;++o)s=i[o]*n+r,s<max?r=0:(r=0|s/max,s-=r*max),i[o]=s;r>0&&(i[o]=r)},e.prototype.sub=function(n){var r=this.buf,i=r.length,a,o;for(a=0;a<i;++a)o=r[a]-n,o<0?(o+=max,n=1):n=0,r[a]=o;for(;r[r.length-1]===0;)r.pop()},e.prototype.toString=function(n){if((n||10)!=10)throw new Error("only base 10 is supported");for(var r=this.buf,i=r[r.length-1].toString(),a=r.length-2;a>=0;--a)i+=(max+r[a]).toString().substring(1);return i},e.prototype.valueOf=function(){for(var n=this.buf,r=0,i=n.length-1;i>=0;--i)r=r*max+n[i];return r},e.prototype.simplify=function(){var n=this.buf;return n.length==1?n[0]:this},e}(),ellipsis="…",reTimeS=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,reTimeL=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function stringCut(e,n){return e.length>n&&(e=e.substring(0,n)+ellipsis),e}var Stream=function(){function e(n,r){this.hexDigits="0123456789ABCDEF",n instanceof e?(this.enc=n.enc,this.pos=n.pos):(this.enc=n,this.pos=r)}return e.prototype.get=function(n){if(n===void 0&&(n=this.pos++),n>=this.enc.length)throw new Error("Requesting byte offset ".concat(n," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(n):this.enc[n]},e.prototype.hexByte=function(n){return this.hexDigits.charAt(n>>4&15)+this.hexDigits.charAt(n&15)},e.prototype.hexDump=function(n,r,i){for(var a="",o=n;o<r;++o)if(a+=this.hexByte(this.get(o)),i!==!0)switch(o&15){case 7:a+=" ";break;case 15:a+=`
77
77
  `;break;default:a+=" "}return a},e.prototype.isASCII=function(n,r){for(var i=n;i<r;++i){var a=this.get(i);if(a<32||a>176)return!1}return!0},e.prototype.parseStringISO=function(n,r){for(var i="",a=n;a<r;++a)i+=String.fromCharCode(this.get(a));return i},e.prototype.parseStringUTF=function(n,r){for(var i="",a=n;a<r;){var o=this.get(a++);o<128?i+=String.fromCharCode(o):o>191&&o<224?i+=String.fromCharCode((o&31)<<6|this.get(a++)&63):i+=String.fromCharCode((o&15)<<12|(this.get(a++)&63)<<6|this.get(a++)&63)}return i},e.prototype.parseStringBMP=function(n,r){for(var i="",a,o,s=n;s<r;)a=this.get(s++),o=this.get(s++),i+=String.fromCharCode(a<<8|o);return i},e.prototype.parseTime=function(n,r,i){var a=this.parseStringISO(n,r),o=(i?reTimeS:reTimeL).exec(a);return o?(i&&(o[1]=+o[1],o[1]+=+o[1]<70?2e3:1900),a=o[1]+"-"+o[2]+"-"+o[3]+" "+o[4],o[5]&&(a+=":"+o[5],o[6]&&(a+=":"+o[6],o[7]&&(a+="."+o[7]))),o[8]&&(a+=" UTC",o[8]!="Z"&&(a+=o[8],o[9]&&(a+=":"+o[9]))),a):"Unrecognized time: "+a},e.prototype.parseInteger=function(n,r){for(var i=this.get(n),a=i>127,o=a?255:0,s,l="";i==o&&++n<r;)i=this.get(n);if(s=r-n,s===0)return a?-1:0;if(s>4){for(l=i,s<<=3;!((+l^o)&128);)l=+l<<1,--s;l="("+s+` bit)
78
78
  `}a&&(i=i-256);for(var c=new Int10(i),u=n+1;u<r;++u)c.mulAdd(256,this.get(u));return l+c.toString()},e.prototype.parseBitString=function(n,r,i){for(var a=this.get(n),o=(r-n-1<<3)-a,s="("+o+` bit)
79
79
  `,l="",c=n+1;c<r;++c){for(var u=this.get(c),f=c==r-1?a:0,x=7;x>=f;--x)l+=u>>x&1?"1":"0";if(l.length>i)return s+stringCut(l,i)}return s+l},e.prototype.parseOctetString=function(n,r,i){if(this.isASCII(n,r))return stringCut(this.parseStringISO(n,r),i);var a=r-n,o="("+a+` byte)
80
80
  `;i/=2,a>i&&(r=n+i);for(var s=n;s<r;++s)o+=this.hexByte(this.get(s));return a>i&&(o+=ellipsis),o},e.prototype.parseOID=function(n,r,i){for(var a="",o=new Int10,s=0,l=n;l<r;++l){var c=this.get(l);if(o.mulAdd(128,c&127),s+=7,!(c&128)){if(a==="")if(o=o.simplify(),o instanceof Int10)o.sub(80),a="2."+o.toString();else{var u=o<80?o<40?0:1:2;a=u+"."+(o-u*40)}else a+="."+o.toString();if(a.length>i)return stringCut(a,i);o=new Int10,s=0}}return s>0&&(a+=".incomplete"),a},e}(),ASN1=function(){function e(n,r,i,a,o){if(!(a instanceof ASN1Tag))throw new Error("Invalid tag value.");this.stream=n,this.header=r,this.length=i,this.tag=a,this.sub=o}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(n){if(this.tag===void 0)return null;n===void 0&&(n=1/0);var r=this.posContent(),i=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(r,r+i,n);switch(this.tag.tagNumber){case 1:return this.stream.get(r)===0?"false":"true";case 2:return this.stream.parseInteger(r,r+i);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(r,r+i,n);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(r,r+i,n);case 6:return this.stream.parseOID(r,r+i,n);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return stringCut(this.stream.parseStringUTF(r,r+i),n);case 18:case 19:case 20:case 21:case 22:case 26:return stringCut(this.stream.parseStringISO(r,r+i),n);case 30:return stringCut(this.stream.parseStringBMP(r,r+i),n);case 23:case 24:return this.stream.parseTime(r,r+i,this.tag.tagNumber==23)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(n){n===void 0&&(n="");var r=n+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(r+="+"),r+=this.length,this.tag.tagConstructed?r+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(r+=" (encapsulates)"),r+=`
81
- `,this.sub!==null){n+=" ";for(var i=0,a=this.sub.length;i<a;++i)r+=this.sub[i].toPrettyString(n)}return r},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(n){var r=n.get(),i=r&127;if(i==r)return i;if(i>6)throw new Error("Length over 48 bits not supported at position "+(n.pos-1));if(i===0)return null;r=0;for(var a=0;a<i;++a)r=r*256+n.get();return r},e.prototype.getHexStringValue=function(){var n=this.toHexString(),r=this.header*2,i=this.length*2;return n.substr(r,i)},e.decode=function(n){var r;n instanceof Stream?r=n:r=new Stream(n,0);var i=new Stream(r),a=new ASN1Tag(r),o=e.decodeLength(r),s=r.pos,l=s-i.pos,c=null,u=function(){var x=[];if(o!==null){for(var h=s+o;r.pos<h;)x[x.length]=e.decode(r);if(r.pos!=h)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var g=e.decode(r);if(g.tag.isEOC())break;x[x.length]=g}o=s-r.pos}catch(v){throw new Error("Exception while decoding undefined length content: "+v)}return x};if(a.tagConstructed)c=u();else if(a.isUniversal()&&(a.tagNumber==3||a.tagNumber==4))try{if(a.tagNumber==3&&r.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");c=u();for(var f=0;f<c.length;++f)if(c[f].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{c=null}if(c===null){if(o===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+s);r.pos=s+Math.abs(o)}return new e(i,l,o,a,c)},e}(),ASN1Tag=function(){function e(n){var r=n.get();if(this.tagClass=r>>6,this.tagConstructed=(r&32)!==0,this.tagNumber=r&31,this.tagNumber==31){var i=new Int10;do r=n.get(),i.mulAdd(128,r&127);while(r&128);this.tagNumber=i.simplify()}}return e.prototype.isUniversal=function(){return this.tagClass===0},e.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},e}(),dbits,canary=0xdeadbeefcafe,j_lm=(canary&16777215)==15715070,lowprimes=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],lplim=(1<<26)/lowprimes[lowprimes.length-1],BigInteger=function(){function e(n,r,i){n!=null&&(typeof n=="number"?this.fromNumber(n,r,i):r==null&&typeof n!="string"?this.fromString(n,256):this.fromString(n,r))}return e.prototype.toString=function(n){if(this.s<0)return"-"+this.negate().toString(n);var r;if(n==16)r=4;else if(n==8)r=3;else if(n==2)r=1;else if(n==32)r=5;else if(n==4)r=2;else return this.toRadix(n);var i=(1<<r)-1,a,o=!1,s="",l=this.t,c=this.DB-l*this.DB%r;if(l-- >0)for(c<this.DB&&(a=this[l]>>c)>0&&(o=!0,s=int2char(a));l>=0;)c<r?(a=(this[l]&(1<<c)-1)<<r-c,a|=this[--l]>>(c+=this.DB-r)):(a=this[l]>>(c-=r)&i,c<=0&&(c+=this.DB,--l)),a>0&&(o=!0),o&&(s+=int2char(a));return o?s:"0"},e.prototype.negate=function(){var n=nbi();return e.ZERO.subTo(this,n),n},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(n){var r=this.s-n.s;if(r!=0)return r;var i=this.t;if(r=i-n.t,r!=0)return this.s<0?-r:r;for(;--i>=0;)if((r=this[i]-n[i])!=0)return r;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+nbits(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(n){var r=nbi();return this.abs().divRemTo(n,null,r),this.s<0&&r.compareTo(e.ZERO)>0&&n.subTo(r,r),r},e.prototype.modPowInt=function(n,r){var i;return n<256||r.isEven()?i=new Classic(r):i=new Montgomery(r),this.exp(n,i)},e.prototype.clone=function(){var n=nbi();return this.copyTo(n),n},e.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var n=this.t,r=[];r[0]=this.s;var i=this.DB-n*this.DB%8,a,o=0;if(n-- >0)for(i<this.DB&&(a=this[n]>>i)!=(this.s&this.DM)>>i&&(r[o++]=a|this.s<<this.DB-i);n>=0;)i<8?(a=(this[n]&(1<<i)-1)<<8-i,a|=this[--n]>>(i+=this.DB-8)):(a=this[n]>>(i-=8)&255,i<=0&&(i+=this.DB,--n)),a&128&&(a|=-256),o==0&&(this.s&128)!=(a&128)&&++o,(o>0||a!=this.s)&&(r[o++]=a);return r},e.prototype.equals=function(n){return this.compareTo(n)==0},e.prototype.min=function(n){return this.compareTo(n)<0?this:n},e.prototype.max=function(n){return this.compareTo(n)>0?this:n},e.prototype.and=function(n){var r=nbi();return this.bitwiseTo(n,op_and,r),r},e.prototype.or=function(n){var r=nbi();return this.bitwiseTo(n,op_or,r),r},e.prototype.xor=function(n){var r=nbi();return this.bitwiseTo(n,op_xor,r),r},e.prototype.andNot=function(n){var r=nbi();return this.bitwiseTo(n,op_andnot,r),r},e.prototype.not=function(){for(var n=nbi(),r=0;r<this.t;++r)n[r]=this.DM&~this[r];return n.t=this.t,n.s=~this.s,n},e.prototype.shiftLeft=function(n){var r=nbi();return n<0?this.rShiftTo(-n,r):this.lShiftTo(n,r),r},e.prototype.shiftRight=function(n){var r=nbi();return n<0?this.lShiftTo(-n,r):this.rShiftTo(n,r),r},e.prototype.getLowestSetBit=function(){for(var n=0;n<this.t;++n)if(this[n]!=0)return n*this.DB+lbit(this[n]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var n=0,r=this.s&this.DM,i=0;i<this.t;++i)n+=cbit(this[i]^r);return n},e.prototype.testBit=function(n){var r=Math.floor(n/this.DB);return r>=this.t?this.s!=0:(this[r]&1<<n%this.DB)!=0},e.prototype.setBit=function(n){return this.changeBit(n,op_or)},e.prototype.clearBit=function(n){return this.changeBit(n,op_andnot)},e.prototype.flipBit=function(n){return this.changeBit(n,op_xor)},e.prototype.add=function(n){var r=nbi();return this.addTo(n,r),r},e.prototype.subtract=function(n){var r=nbi();return this.subTo(n,r),r},e.prototype.multiply=function(n){var r=nbi();return this.multiplyTo(n,r),r},e.prototype.divide=function(n){var r=nbi();return this.divRemTo(n,r,null),r},e.prototype.remainder=function(n){var r=nbi();return this.divRemTo(n,null,r),r},e.prototype.divideAndRemainder=function(n){var r=nbi(),i=nbi();return this.divRemTo(n,r,i),[r,i]},e.prototype.modPow=function(n,r){var i=n.bitLength(),a,o=nbv(1),s;if(i<=0)return o;i<18?a=1:i<48?a=3:i<144?a=4:i<768?a=5:a=6,i<8?s=new Classic(r):r.isEven()?s=new Barrett(r):s=new Montgomery(r);var l=[],c=3,u=a-1,f=(1<<a)-1;if(l[1]=s.convert(this),a>1){var x=nbi();for(s.sqrTo(l[1],x);c<=f;)l[c]=nbi(),s.mulTo(x,l[c-2],l[c]),c+=2}var h=n.t-1,g,v=!0,p=nbi(),E;for(i=nbits(n[h])-1;h>=0;){for(i>=u?g=n[h]>>i-u&f:(g=(n[h]&(1<<i+1)-1)<<u-i,h>0&&(g|=n[h-1]>>this.DB+i-u)),c=a;!(g&1);)g>>=1,--c;if((i-=c)<0&&(i+=this.DB,--h),v)l[g].copyTo(o),v=!1;else{for(;c>1;)s.sqrTo(o,p),s.sqrTo(p,o),c-=2;c>0?s.sqrTo(o,p):(E=o,o=p,p=E),s.mulTo(p,l[g],o)}for(;h>=0&&!(n[h]&1<<i);)s.sqrTo(o,p),E=o,o=p,p=E,--i<0&&(i=this.DB-1,--h)}return s.revert(o)},e.prototype.modInverse=function(n){var r=n.isEven();if(this.isEven()&&r||n.signum()==0)return e.ZERO;for(var i=n.clone(),a=this.clone(),o=nbv(1),s=nbv(0),l=nbv(0),c=nbv(1);i.signum()!=0;){for(;i.isEven();)i.rShiftTo(1,i),r?((!o.isEven()||!s.isEven())&&(o.addTo(this,o),s.subTo(n,s)),o.rShiftTo(1,o)):s.isEven()||s.subTo(n,s),s.rShiftTo(1,s);for(;a.isEven();)a.rShiftTo(1,a),r?((!l.isEven()||!c.isEven())&&(l.addTo(this,l),c.subTo(n,c)),l.rShiftTo(1,l)):c.isEven()||c.subTo(n,c),c.rShiftTo(1,c);i.compareTo(a)>=0?(i.subTo(a,i),r&&o.subTo(l,o),s.subTo(c,s)):(a.subTo(i,a),r&&l.subTo(o,l),c.subTo(s,c))}if(a.compareTo(e.ONE)!=0)return e.ZERO;if(c.compareTo(n)>=0)return c.subtract(n);if(c.signum()<0)c.addTo(n,c);else return c;return c.signum()<0?c.add(n):c},e.prototype.pow=function(n){return this.exp(n,new NullExp)},e.prototype.gcd=function(n){var r=this.s<0?this.negate():this.clone(),i=n.s<0?n.negate():n.clone();if(r.compareTo(i)<0){var a=r;r=i,i=a}var o=r.getLowestSetBit(),s=i.getLowestSetBit();if(s<0)return r;for(o<s&&(s=o),s>0&&(r.rShiftTo(s,r),i.rShiftTo(s,i));r.signum()>0;)(o=r.getLowestSetBit())>0&&r.rShiftTo(o,r),(o=i.getLowestSetBit())>0&&i.rShiftTo(o,i),r.compareTo(i)>=0?(r.subTo(i,r),r.rShiftTo(1,r)):(i.subTo(r,i),i.rShiftTo(1,i));return s>0&&i.lShiftTo(s,i),i},e.prototype.isProbablePrime=function(n){var r,i=this.abs();if(i.t==1&&i[0]<=lowprimes[lowprimes.length-1]){for(r=0;r<lowprimes.length;++r)if(i[0]==lowprimes[r])return!0;return!1}if(i.isEven())return!1;for(r=1;r<lowprimes.length;){for(var a=lowprimes[r],o=r+1;o<lowprimes.length&&a<lplim;)a*=lowprimes[o++];for(a=i.modInt(a);r<o;)if(a%lowprimes[r++]==0)return!1}return i.millerRabin(n)},e.prototype.copyTo=function(n){for(var r=this.t-1;r>=0;--r)n[r]=this[r];n.t=this.t,n.s=this.s},e.prototype.fromInt=function(n){this.t=1,this.s=n<0?-1:0,n>0?this[0]=n:n<-1?this[0]=n+this.DV:this.t=0},e.prototype.fromString=function(n,r){var i;if(r==16)i=4;else if(r==8)i=3;else if(r==256)i=8;else if(r==2)i=1;else if(r==32)i=5;else if(r==4)i=2;else{this.fromRadix(n,r);return}this.t=0,this.s=0;for(var a=n.length,o=!1,s=0;--a>=0;){var l=i==8?+n[a]&255:intAt(n,a);if(l<0){n.charAt(a)=="-"&&(o=!0);continue}o=!1,s==0?this[this.t++]=l:s+i>this.DB?(this[this.t-1]|=(l&(1<<this.DB-s)-1)<<s,this[this.t++]=l>>this.DB-s):this[this.t-1]|=l<<s,s+=i,s>=this.DB&&(s-=this.DB)}i==8&&+n[0]&128&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),o&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var n=this.s&this.DM;this.t>0&&this[this.t-1]==n;)--this.t},e.prototype.dlShiftTo=function(n,r){var i;for(i=this.t-1;i>=0;--i)r[i+n]=this[i];for(i=n-1;i>=0;--i)r[i]=0;r.t=this.t+n,r.s=this.s},e.prototype.drShiftTo=function(n,r){for(var i=n;i<this.t;++i)r[i-n]=this[i];r.t=Math.max(this.t-n,0),r.s=this.s},e.prototype.lShiftTo=function(n,r){for(var i=n%this.DB,a=this.DB-i,o=(1<<a)-1,s=Math.floor(n/this.DB),l=this.s<<i&this.DM,c=this.t-1;c>=0;--c)r[c+s+1]=this[c]>>a|l,l=(this[c]&o)<<i;for(var c=s-1;c>=0;--c)r[c]=0;r[s]=l,r.t=this.t+s+1,r.s=this.s,r.clamp()},e.prototype.rShiftTo=function(n,r){r.s=this.s;var i=Math.floor(n/this.DB);if(i>=this.t){r.t=0;return}var a=n%this.DB,o=this.DB-a,s=(1<<a)-1;r[0]=this[i]>>a;for(var l=i+1;l<this.t;++l)r[l-i-1]|=(this[l]&s)<<o,r[l-i]=this[l]>>a;a>0&&(r[this.t-i-1]|=(this.s&s)<<o),r.t=this.t-i,r.clamp()},e.prototype.subTo=function(n,r){for(var i=0,a=0,o=Math.min(n.t,this.t);i<o;)a+=this[i]-n[i],r[i++]=a&this.DM,a>>=this.DB;if(n.t<this.t){for(a-=n.s;i<this.t;)a+=this[i],r[i++]=a&this.DM,a>>=this.DB;a+=this.s}else{for(a+=this.s;i<n.t;)a-=n[i],r[i++]=a&this.DM,a>>=this.DB;a-=n.s}r.s=a<0?-1:0,a<-1?r[i++]=this.DV+a:a>0&&(r[i++]=a),r.t=i,r.clamp()},e.prototype.multiplyTo=function(n,r){var i=this.abs(),a=n.abs(),o=i.t;for(r.t=o+a.t;--o>=0;)r[o]=0;for(o=0;o<a.t;++o)r[o+i.t]=i.am(0,a[o],r,o,0,i.t);r.s=0,r.clamp(),this.s!=n.s&&e.ZERO.subTo(r,r)},e.prototype.squareTo=function(n){for(var r=this.abs(),i=n.t=2*r.t;--i>=0;)n[i]=0;for(i=0;i<r.t-1;++i){var a=r.am(i,r[i],n,2*i,0,1);(n[i+r.t]+=r.am(i+1,2*r[i],n,2*i+1,a,r.t-i-1))>=r.DV&&(n[i+r.t]-=r.DV,n[i+r.t+1]=1)}n.t>0&&(n[n.t-1]+=r.am(i,r[i],n,2*i,0,1)),n.s=0,n.clamp()},e.prototype.divRemTo=function(n,r,i){var a=n.abs();if(!(a.t<=0)){var o=this.abs();if(o.t<a.t){r!=null&&r.fromInt(0),i!=null&&this.copyTo(i);return}i==null&&(i=nbi());var s=nbi(),l=this.s,c=n.s,u=this.DB-nbits(a[a.t-1]);u>0?(a.lShiftTo(u,s),o.lShiftTo(u,i)):(a.copyTo(s),o.copyTo(i));var f=s.t,x=s[f-1];if(x!=0){var h=x*(1<<this.F1)+(f>1?s[f-2]>>this.F2:0),g=this.FV/h,v=(1<<this.F1)/h,p=1<<this.F2,E=i.t,b=E-f,d=r??nbi();for(s.dlShiftTo(b,d),i.compareTo(d)>=0&&(i[i.t++]=1,i.subTo(d,i)),e.ONE.dlShiftTo(f,d),d.subTo(s,s);s.t<f;)s[s.t++]=0;for(;--b>=0;){var m=i[--E]==x?this.DM:Math.floor(i[E]*g+(i[E-1]+p)*v);if((i[E]+=s.am(0,m,i,b,0,f))<m)for(s.dlShiftTo(b,d),i.subTo(d,i);i[E]<--m;)i.subTo(d,i)}r!=null&&(i.drShiftTo(f,r),l!=c&&e.ZERO.subTo(r,r)),i.t=f,i.clamp(),u>0&&i.rShiftTo(u,i),l<0&&e.ZERO.subTo(i,i)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var n=this[0];if(!(n&1))return 0;var r=n&3;return r=r*(2-(n&15)*r)&15,r=r*(2-(n&255)*r)&255,r=r*(2-((n&65535)*r&65535))&65535,r=r*(2-n*r%this.DV)%this.DV,r>0?this.DV-r:-r},e.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},e.prototype.exp=function(n,r){if(n>4294967295||n<1)return e.ONE;var i=nbi(),a=nbi(),o=r.convert(this),s=nbits(n)-1;for(o.copyTo(i);--s>=0;)if(r.sqrTo(i,a),(n&1<<s)>0)r.mulTo(a,o,i);else{var l=i;i=a,a=l}return r.revert(i)},e.prototype.chunkSize=function(n){return Math.floor(Math.LN2*this.DB/Math.log(n))},e.prototype.toRadix=function(n){if(n==null&&(n=10),this.signum()==0||n<2||n>36)return"0";var r=this.chunkSize(n),i=Math.pow(n,r),a=nbv(i),o=nbi(),s=nbi(),l="";for(this.divRemTo(a,o,s);o.signum()>0;)l=(i+s.intValue()).toString(n).substr(1)+l,o.divRemTo(a,o,s);return s.intValue().toString(n)+l},e.prototype.fromRadix=function(n,r){this.fromInt(0),r==null&&(r=10);for(var i=this.chunkSize(r),a=Math.pow(r,i),o=!1,s=0,l=0,c=0;c<n.length;++c){var u=intAt(n,c);if(u<0){n.charAt(c)=="-"&&this.signum()==0&&(o=!0);continue}l=r*l+u,++s>=i&&(this.dMultiply(a),this.dAddOffset(l,0),s=0,l=0)}s>0&&(this.dMultiply(Math.pow(r,s)),this.dAddOffset(l,0)),o&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(n,r,i){if(typeof r=="number")if(n<2)this.fromInt(1);else for(this.fromNumber(n,i),this.testBit(n-1)||this.bitwiseTo(e.ONE.shiftLeft(n-1),op_or,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(r);)this.dAddOffset(2,0),this.bitLength()>n&&this.subTo(e.ONE.shiftLeft(n-1),this);else{var a=[],o=n&7;a.length=(n>>3)+1,r.nextBytes(a),o>0?a[0]&=(1<<o)-1:a[0]=0,this.fromString(a,256)}},e.prototype.bitwiseTo=function(n,r,i){var a,o,s=Math.min(n.t,this.t);for(a=0;a<s;++a)i[a]=r(this[a],n[a]);if(n.t<this.t){for(o=n.s&this.DM,a=s;a<this.t;++a)i[a]=r(this[a],o);i.t=this.t}else{for(o=this.s&this.DM,a=s;a<n.t;++a)i[a]=r(o,n[a]);i.t=n.t}i.s=r(this.s,n.s),i.clamp()},e.prototype.changeBit=function(n,r){var i=e.ONE.shiftLeft(n);return this.bitwiseTo(i,r,i),i},e.prototype.addTo=function(n,r){for(var i=0,a=0,o=Math.min(n.t,this.t);i<o;)a+=this[i]+n[i],r[i++]=a&this.DM,a>>=this.DB;if(n.t<this.t){for(a+=n.s;i<this.t;)a+=this[i],r[i++]=a&this.DM,a>>=this.DB;a+=this.s}else{for(a+=this.s;i<n.t;)a+=n[i],r[i++]=a&this.DM,a>>=this.DB;a+=n.s}r.s=a<0?-1:0,a>0?r[i++]=a:a<-1&&(r[i++]=this.DV+a),r.t=i,r.clamp()},e.prototype.dMultiply=function(n){this[this.t]=this.am(0,n-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(n,r){if(n!=0){for(;this.t<=r;)this[this.t++]=0;for(this[r]+=n;this[r]>=this.DV;)this[r]-=this.DV,++r>=this.t&&(this[this.t++]=0),++this[r]}},e.prototype.multiplyLowerTo=function(n,r,i){var a=Math.min(this.t+n.t,r);for(i.s=0,i.t=a;a>0;)i[--a]=0;for(var o=i.t-this.t;a<o;++a)i[a+this.t]=this.am(0,n[a],i,a,0,this.t);for(var o=Math.min(n.t,r);a<o;++a)this.am(0,n[a],i,a,0,r-a);i.clamp()},e.prototype.multiplyUpperTo=function(n,r,i){--r;var a=i.t=this.t+n.t-r;for(i.s=0;--a>=0;)i[a]=0;for(a=Math.max(r-this.t,0);a<n.t;++a)i[this.t+a-r]=this.am(r-a,n[a],i,0,0,this.t+a-r);i.clamp(),i.drShiftTo(1,i)},e.prototype.modInt=function(n){if(n<=0)return 0;var r=this.DV%n,i=this.s<0?n-1:0;if(this.t>0)if(r==0)i=this[0]%n;else for(var a=this.t-1;a>=0;--a)i=(r*i+this[a])%n;return i},e.prototype.millerRabin=function(n){var r=this.subtract(e.ONE),i=r.getLowestSetBit();if(i<=0)return!1;var a=r.shiftRight(i);n=n+1>>1,n>lowprimes.length&&(n=lowprimes.length);for(var o=nbi(),s=0;s<n;++s){o.fromInt(lowprimes[Math.floor(Math.random()*lowprimes.length)]);var l=o.modPow(a,this);if(l.compareTo(e.ONE)!=0&&l.compareTo(r)!=0){for(var c=1;c++<i&&l.compareTo(r)!=0;)if(l=l.modPowInt(2,this),l.compareTo(e.ONE)==0)return!1;if(l.compareTo(r)!=0)return!1}}return!0},e.prototype.square=function(){var n=nbi();return this.squareTo(n),n},e.prototype.gcda=function(n,r){var i=this.s<0?this.negate():this.clone(),a=n.s<0?n.negate():n.clone();if(i.compareTo(a)<0){var o=i;i=a,a=o}var s=i.getLowestSetBit(),l=a.getLowestSetBit();if(l<0){r(i);return}s<l&&(l=s),l>0&&(i.rShiftTo(l,i),a.rShiftTo(l,a));var c=function(){(s=i.getLowestSetBit())>0&&i.rShiftTo(s,i),(s=a.getLowestSetBit())>0&&a.rShiftTo(s,a),i.compareTo(a)>=0?(i.subTo(a,i),i.rShiftTo(1,i)):(a.subTo(i,a),a.rShiftTo(1,a)),i.signum()>0?setTimeout(c,0):(l>0&&a.lShiftTo(l,a),setTimeout(function(){r(a)},0))};setTimeout(c,10)},e.prototype.fromNumberAsync=function(n,r,i,a){if(typeof r=="number")if(n<2)this.fromInt(1);else{this.fromNumber(n,i),this.testBit(n-1)||this.bitwiseTo(e.ONE.shiftLeft(n-1),op_or,this),this.isEven()&&this.dAddOffset(1,0);var o=this,s=function(){o.dAddOffset(2,0),o.bitLength()>n&&o.subTo(e.ONE.shiftLeft(n-1),o),o.isProbablePrime(r)?setTimeout(function(){a()},0):setTimeout(s,0)};setTimeout(s,0)}else{var l=[],c=n&7;l.length=(n>>3)+1,r.nextBytes(l),c>0?l[0]&=(1<<c)-1:l[0]=0,this.fromString(l,256)}},e}(),NullExp=function(){function e(){}return e.prototype.convert=function(n){return n},e.prototype.revert=function(n){return n},e.prototype.mulTo=function(n,r,i){n.multiplyTo(r,i)},e.prototype.sqrTo=function(n,r){n.squareTo(r)},e}(),Classic=function(){function e(n){this.m=n}return e.prototype.convert=function(n){return n.s<0||n.compareTo(this.m)>=0?n.mod(this.m):n},e.prototype.revert=function(n){return n},e.prototype.reduce=function(n){n.divRemTo(this.m,null,n)},e.prototype.mulTo=function(n,r,i){n.multiplyTo(r,i),this.reduce(i)},e.prototype.sqrTo=function(n,r){n.squareTo(r),this.reduce(r)},e}(),Montgomery=function(){function e(n){this.m=n,this.mp=n.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<n.DB-15)-1,this.mt2=2*n.t}return e.prototype.convert=function(n){var r=nbi();return n.abs().dlShiftTo(this.m.t,r),r.divRemTo(this.m,null,r),n.s<0&&r.compareTo(BigInteger.ZERO)>0&&this.m.subTo(r,r),r},e.prototype.revert=function(n){var r=nbi();return n.copyTo(r),this.reduce(r),r},e.prototype.reduce=function(n){for(;n.t<=this.mt2;)n[n.t++]=0;for(var r=0;r<this.m.t;++r){var i=n[r]&32767,a=i*this.mpl+((i*this.mph+(n[r]>>15)*this.mpl&this.um)<<15)&n.DM;for(i=r+this.m.t,n[i]+=this.m.am(0,a,n,r,0,this.m.t);n[i]>=n.DV;)n[i]-=n.DV,n[++i]++}n.clamp(),n.drShiftTo(this.m.t,n),n.compareTo(this.m)>=0&&n.subTo(this.m,n)},e.prototype.mulTo=function(n,r,i){n.multiplyTo(r,i),this.reduce(i)},e.prototype.sqrTo=function(n,r){n.squareTo(r),this.reduce(r)},e}(),Barrett=function(){function e(n){this.m=n,this.r2=nbi(),this.q3=nbi(),BigInteger.ONE.dlShiftTo(2*n.t,this.r2),this.mu=this.r2.divide(n)}return e.prototype.convert=function(n){if(n.s<0||n.t>2*this.m.t)return n.mod(this.m);if(n.compareTo(this.m)<0)return n;var r=nbi();return n.copyTo(r),this.reduce(r),r},e.prototype.revert=function(n){return n},e.prototype.reduce=function(n){for(n.drShiftTo(this.m.t-1,this.r2),n.t>this.m.t+1&&(n.t=this.m.t+1,n.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);n.compareTo(this.r2)<0;)n.dAddOffset(1,this.m.t+1);for(n.subTo(this.r2,n);n.compareTo(this.m)>=0;)n.subTo(this.m,n)},e.prototype.mulTo=function(n,r,i){n.multiplyTo(r,i),this.reduce(i)},e.prototype.sqrTo=function(n,r){n.squareTo(r),this.reduce(r)},e}();function nbi(){return new BigInteger(null)}function parseBigInt(e,n){return new BigInteger(e,n)}var inBrowser$2=typeof navigator<"u";inBrowser$2&&j_lm&&navigator.appName=="Microsoft Internet Explorer"?(BigInteger.prototype.am=function(n,r,i,a,o,s){for(var l=r&32767,c=r>>15;--s>=0;){var u=this[n]&32767,f=this[n++]>>15,x=c*u+f*l;u=l*u+((x&32767)<<15)+i[a]+(o&1073741823),o=(u>>>30)+(x>>>15)+c*f+(o>>>30),i[a++]=u&1073741823}return o},dbits=30):inBrowser$2&&j_lm&&navigator.appName!="Netscape"?(BigInteger.prototype.am=function(n,r,i,a,o,s){for(;--s>=0;){var l=r*this[n++]+i[a]+o;o=Math.floor(l/67108864),i[a++]=l&67108863}return o},dbits=26):(BigInteger.prototype.am=function(n,r,i,a,o,s){for(var l=r&16383,c=r>>14;--s>=0;){var u=this[n]&16383,f=this[n++]>>14,x=c*u+f*l;u=l*u+((x&16383)<<14)+i[a]+o,o=(u>>28)+(x>>14)+c*f,i[a++]=u&268435455}return o},dbits=28),BigInteger.prototype.DB=dbits,BigInteger.prototype.DM=(1<<dbits)-1,BigInteger.prototype.DV=1<<dbits;var BI_FP=52;BigInteger.prototype.FV=Math.pow(2,BI_FP),BigInteger.prototype.F1=BI_FP-dbits,BigInteger.prototype.F2=2*dbits-BI_FP;var BI_RC=[],rr,vv;for(rr="0".charCodeAt(0),vv=0;vv<=9;++vv)BI_RC[rr++]=vv;for(rr="a".charCodeAt(0),vv=10;vv<36;++vv)BI_RC[rr++]=vv;for(rr="A".charCodeAt(0),vv=10;vv<36;++vv)BI_RC[rr++]=vv;function intAt(e,n){var r=BI_RC[e.charCodeAt(n)];return r??-1}function nbv(e){var n=nbi();return n.fromInt(e),n}function nbits(e){var n=1,r;return(r=e>>>16)!=0&&(e=r,n+=16),(r=e>>8)!=0&&(e=r,n+=8),(r=e>>4)!=0&&(e=r,n+=4),(r=e>>2)!=0&&(e=r,n+=2),(r=e>>1)!=0&&(e=r,n+=1),n}BigInteger.ZERO=nbv(0),BigInteger.ONE=nbv(1);var Arcfour=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(n){var r,i,a;for(r=0;r<256;++r)this.S[r]=r;for(i=0,r=0;r<256;++r)i=i+this.S[r]+n[r%n.length]&255,a=this.S[r],this.S[r]=this.S[i],this.S[i]=a;this.i=0,this.j=0},e.prototype.next=function(){var n;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,n=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=n,this.S[n+this.S[this.i]&255]},e}();function prng_newstate(){return new Arcfour}var rng_psize=256,rng_state,rng_pool=null,rng_pptr;if(rng_pool==null){rng_pool=[],rng_pptr=0;var t$1=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var z=new Uint32Array(256);for(window.crypto.getRandomValues(z),t$1=0;t$1<z.length;++t$1)rng_pool[rng_pptr++]=z[t$1]&255}var count=0,onMouseMoveListener_1=function(e){if(count=count||0,count>=256||rng_pptr>=rng_psize){window.removeEventListener?window.removeEventListener("mousemove",onMouseMoveListener_1,!1):window.detachEvent&&window.detachEvent("onmousemove",onMouseMoveListener_1);return}try{var n=e.x+e.y;rng_pool[rng_pptr++]=n&255,count+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",onMouseMoveListener_1,!1):window.attachEvent&&window.attachEvent("onmousemove",onMouseMoveListener_1))}function rng_get_byte(){if(rng_state==null){for(rng_state=prng_newstate();rng_pptr<rng_psize;){var e=Math.floor(65536*Math.random());rng_pool[rng_pptr++]=e&255}for(rng_state.init(rng_pool),rng_pptr=0;rng_pptr<rng_pool.length;++rng_pptr)rng_pool[rng_pptr]=0;rng_pptr=0}return rng_state.next()}var SecureRandom=function(){function e(){}return e.prototype.nextBytes=function(n){for(var r=0;r<n.length;++r)n[r]=rng_get_byte()},e}();function pkcs1pad1(e,n){if(n<e.length+22)return console.error("Message too long for RSA"),null;for(var r=n-e.length-6,i="",a=0;a<r;a+=2)i+="ff";var o="0001"+i+"00"+e;return parseBigInt(o,16)}function pkcs1pad2(e,n){if(n<e.length+11)return console.error("Message too long for RSA"),null;for(var r=[],i=e.length-1;i>=0&&n>0;){var a=e.charCodeAt(i--);a<128?r[--n]=a:a>127&&a<2048?(r[--n]=a&63|128,r[--n]=a>>6|192):(r[--n]=a&63|128,r[--n]=a>>6&63|128,r[--n]=a>>12|224)}r[--n]=0;for(var o=new SecureRandom,s=[];n>2;){for(s[0]=0;s[0]==0;)o.nextBytes(s);r[--n]=s[0]}return r[--n]=2,r[--n]=0,new BigInteger(r)}var RSAKey=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(n){return n.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(n){if(this.p==null||this.q==null)return n.modPow(this.d,this.n);for(var r=n.mod(this.p).modPow(this.dmp1,this.p),i=n.mod(this.q).modPow(this.dmq1,this.q);r.compareTo(i)<0;)r=r.add(this.p);return r.subtract(i).multiply(this.coeff).mod(this.p).multiply(this.q).add(i)},e.prototype.setPublic=function(n,r){n!=null&&r!=null&&n.length>0&&r.length>0?(this.n=parseBigInt(n,16),this.e=parseInt(r,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(n){var r=this.n.bitLength()+7>>3,i=pkcs1pad2(n,r);if(i==null)return null;var a=this.doPublic(i);if(a==null)return null;for(var o=a.toString(16),s=o.length,l=0;l<r*2-s;l++)o="0"+o;return o},e.prototype.setPrivate=function(n,r,i){n!=null&&r!=null&&n.length>0&&r.length>0?(this.n=parseBigInt(n,16),this.e=parseInt(r,16),this.d=parseBigInt(i,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(n,r,i,a,o,s,l,c){n!=null&&r!=null&&n.length>0&&r.length>0?(this.n=parseBigInt(n,16),this.e=parseInt(r,16),this.d=parseBigInt(i,16),this.p=parseBigInt(a,16),this.q=parseBigInt(o,16),this.dmp1=parseBigInt(s,16),this.dmq1=parseBigInt(l,16),this.coeff=parseBigInt(c,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(n,r){var i=new SecureRandom,a=n>>1;this.e=parseInt(r,16);for(var o=new BigInteger(r,16);;){for(;this.p=new BigInteger(n-a,1,i),!(this.p.subtract(BigInteger.ONE).gcd(o).compareTo(BigInteger.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new BigInteger(a,1,i),!(this.q.subtract(BigInteger.ONE).gcd(o).compareTo(BigInteger.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var s=this.p;this.p=this.q,this.q=s}var l=this.p.subtract(BigInteger.ONE),c=this.q.subtract(BigInteger.ONE),u=l.multiply(c);if(u.gcd(o).compareTo(BigInteger.ONE)==0){this.n=this.p.multiply(this.q),this.d=o.modInverse(u),this.dmp1=this.d.mod(l),this.dmq1=this.d.mod(c),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(n){var r=parseBigInt(n,16),i=this.doPrivate(r);return i==null?null:pkcs1unpad2(i,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(n,r,i){var a=new SecureRandom,o=n>>1;this.e=parseInt(r,16);var s=new BigInteger(r,16),l=this,c=function(){var u=function(){if(l.p.compareTo(l.q)<=0){var h=l.p;l.p=l.q,l.q=h}var g=l.p.subtract(BigInteger.ONE),v=l.q.subtract(BigInteger.ONE),p=g.multiply(v);p.gcd(s).compareTo(BigInteger.ONE)==0?(l.n=l.p.multiply(l.q),l.d=s.modInverse(p),l.dmp1=l.d.mod(g),l.dmq1=l.d.mod(v),l.coeff=l.q.modInverse(l.p),setTimeout(function(){i()},0)):setTimeout(c,0)},f=function(){l.q=nbi(),l.q.fromNumberAsync(o,1,a,function(){l.q.subtract(BigInteger.ONE).gcda(s,function(h){h.compareTo(BigInteger.ONE)==0&&l.q.isProbablePrime(10)?setTimeout(u,0):setTimeout(f,0)})})},x=function(){l.p=nbi(),l.p.fromNumberAsync(n-o,1,a,function(){l.p.subtract(BigInteger.ONE).gcda(s,function(h){h.compareTo(BigInteger.ONE)==0&&l.p.isProbablePrime(10)?setTimeout(f,0):setTimeout(x,0)})})};setTimeout(x,0)};setTimeout(c,0)},e.prototype.sign=function(n,r,i){var a=getDigestHeader(i),o=a+r(n).toString(),s=pkcs1pad1(o,this.n.bitLength()/4);if(s==null)return null;var l=this.doPrivate(s);if(l==null)return null;var c=l.toString(16);return c.length&1?"0"+c:c},e.prototype.verify=function(n,r,i){var a=parseBigInt(r,16),o=this.doPublic(a);if(o==null)return null;var s=o.toString(16).replace(/^1f+00/,""),l=removeDigestHeader(s);return l==i(n).toString()},e}();function pkcs1unpad2(e,n){for(var r=e.toByteArray(),i=0;i<r.length&&r[i]==0;)++i;if(r.length-i!=n-1||r[i]!=2)return null;for(++i;r[i]!=0;)if(++i>=r.length)return null;for(var a="";++i<r.length;){var o=r[i]&255;o<128?a+=String.fromCharCode(o):o>191&&o<224?(a+=String.fromCharCode((o&31)<<6|r[i+1]&63),++i):(a+=String.fromCharCode((o&15)<<12|(r[i+1]&63)<<6|r[i+2]&63),i+=2)}return a}var DIGEST_HEADERS={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function getDigestHeader(e){return DIGEST_HEADERS[e]||""}function removeDigestHeader(e){for(var n in DIGEST_HEADERS)if(DIGEST_HEADERS.hasOwnProperty(n)){var r=DIGEST_HEADERS[n],i=r.length;if(e.substr(0,i)==r)return e.substr(i)}return e}/*!
81
+ `,this.sub!==null){n+=" ";for(var i=0,a=this.sub.length;i<a;++i)r+=this.sub[i].toPrettyString(n)}return r},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(n){var r=n.get(),i=r&127;if(i==r)return i;if(i>6)throw new Error("Length over 48 bits not supported at position "+(n.pos-1));if(i===0)return null;r=0;for(var a=0;a<i;++a)r=r*256+n.get();return r},e.prototype.getHexStringValue=function(){var n=this.toHexString(),r=this.header*2,i=this.length*2;return n.substr(r,i)},e.decode=function(n){var r;n instanceof Stream?r=n:r=new Stream(n,0);var i=new Stream(r),a=new ASN1Tag(r),o=e.decodeLength(r),s=r.pos,l=s-i.pos,c=null,u=function(){var x=[];if(o!==null){for(var h=s+o;r.pos<h;)x[x.length]=e.decode(r);if(r.pos!=h)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var g=e.decode(r);if(g.tag.isEOC())break;x[x.length]=g}o=s-r.pos}catch(v){throw new Error("Exception while decoding undefined length content: "+v)}return x};if(a.tagConstructed)c=u();else if(a.isUniversal()&&(a.tagNumber==3||a.tagNumber==4))try{if(a.tagNumber==3&&r.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");c=u();for(var f=0;f<c.length;++f)if(c[f].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{c=null}if(c===null){if(o===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+s);r.pos=s+Math.abs(o)}return new e(i,l,o,a,c)},e}(),ASN1Tag=function(){function e(n){var r=n.get();if(this.tagClass=r>>6,this.tagConstructed=(r&32)!==0,this.tagNumber=r&31,this.tagNumber==31){var i=new Int10;do r=n.get(),i.mulAdd(128,r&127);while(r&128);this.tagNumber=i.simplify()}}return e.prototype.isUniversal=function(){return this.tagClass===0},e.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},e}(),dbits,canary=0xdeadbeefcafe,j_lm=(canary&16777215)==15715070,lowprimes=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],lplim=(1<<26)/lowprimes[lowprimes.length-1],BigInteger=function(){function e(n,r,i){n!=null&&(typeof n=="number"?this.fromNumber(n,r,i):r==null&&typeof n!="string"?this.fromString(n,256):this.fromString(n,r))}return e.prototype.toString=function(n){if(this.s<0)return"-"+this.negate().toString(n);var r;if(n==16)r=4;else if(n==8)r=3;else if(n==2)r=1;else if(n==32)r=5;else if(n==4)r=2;else return this.toRadix(n);var i=(1<<r)-1,a,o=!1,s="",l=this.t,c=this.DB-l*this.DB%r;if(l-- >0)for(c<this.DB&&(a=this[l]>>c)>0&&(o=!0,s=int2char(a));l>=0;)c<r?(a=(this[l]&(1<<c)-1)<<r-c,a|=this[--l]>>(c+=this.DB-r)):(a=this[l]>>(c-=r)&i,c<=0&&(c+=this.DB,--l)),a>0&&(o=!0),o&&(s+=int2char(a));return o?s:"0"},e.prototype.negate=function(){var n=nbi();return e.ZERO.subTo(this,n),n},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(n){var r=this.s-n.s;if(r!=0)return r;var i=this.t;if(r=i-n.t,r!=0)return this.s<0?-r:r;for(;--i>=0;)if((r=this[i]-n[i])!=0)return r;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+nbits(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(n){var r=nbi();return this.abs().divRemTo(n,null,r),this.s<0&&r.compareTo(e.ZERO)>0&&n.subTo(r,r),r},e.prototype.modPowInt=function(n,r){var i;return n<256||r.isEven()?i=new Classic(r):i=new Montgomery(r),this.exp(n,i)},e.prototype.clone=function(){var n=nbi();return this.copyTo(n),n},e.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var n=this.t,r=[];r[0]=this.s;var i=this.DB-n*this.DB%8,a,o=0;if(n-- >0)for(i<this.DB&&(a=this[n]>>i)!=(this.s&this.DM)>>i&&(r[o++]=a|this.s<<this.DB-i);n>=0;)i<8?(a=(this[n]&(1<<i)-1)<<8-i,a|=this[--n]>>(i+=this.DB-8)):(a=this[n]>>(i-=8)&255,i<=0&&(i+=this.DB,--n)),a&128&&(a|=-256),o==0&&(this.s&128)!=(a&128)&&++o,(o>0||a!=this.s)&&(r[o++]=a);return r},e.prototype.equals=function(n){return this.compareTo(n)==0},e.prototype.min=function(n){return this.compareTo(n)<0?this:n},e.prototype.max=function(n){return this.compareTo(n)>0?this:n},e.prototype.and=function(n){var r=nbi();return this.bitwiseTo(n,op_and,r),r},e.prototype.or=function(n){var r=nbi();return this.bitwiseTo(n,op_or,r),r},e.prototype.xor=function(n){var r=nbi();return this.bitwiseTo(n,op_xor,r),r},e.prototype.andNot=function(n){var r=nbi();return this.bitwiseTo(n,op_andnot,r),r},e.prototype.not=function(){for(var n=nbi(),r=0;r<this.t;++r)n[r]=this.DM&~this[r];return n.t=this.t,n.s=~this.s,n},e.prototype.shiftLeft=function(n){var r=nbi();return n<0?this.rShiftTo(-n,r):this.lShiftTo(n,r),r},e.prototype.shiftRight=function(n){var r=nbi();return n<0?this.lShiftTo(-n,r):this.rShiftTo(n,r),r},e.prototype.getLowestSetBit=function(){for(var n=0;n<this.t;++n)if(this[n]!=0)return n*this.DB+lbit(this[n]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var n=0,r=this.s&this.DM,i=0;i<this.t;++i)n+=cbit(this[i]^r);return n},e.prototype.testBit=function(n){var r=Math.floor(n/this.DB);return r>=this.t?this.s!=0:(this[r]&1<<n%this.DB)!=0},e.prototype.setBit=function(n){return this.changeBit(n,op_or)},e.prototype.clearBit=function(n){return this.changeBit(n,op_andnot)},e.prototype.flipBit=function(n){return this.changeBit(n,op_xor)},e.prototype.add=function(n){var r=nbi();return this.addTo(n,r),r},e.prototype.subtract=function(n){var r=nbi();return this.subTo(n,r),r},e.prototype.multiply=function(n){var r=nbi();return this.multiplyTo(n,r),r},e.prototype.divide=function(n){var r=nbi();return this.divRemTo(n,r,null),r},e.prototype.remainder=function(n){var r=nbi();return this.divRemTo(n,null,r),r},e.prototype.divideAndRemainder=function(n){var r=nbi(),i=nbi();return this.divRemTo(n,r,i),[r,i]},e.prototype.modPow=function(n,r){var i=n.bitLength(),a,o=nbv(1),s;if(i<=0)return o;i<18?a=1:i<48?a=3:i<144?a=4:i<768?a=5:a=6,i<8?s=new Classic(r):r.isEven()?s=new Barrett(r):s=new Montgomery(r);var l=[],c=3,u=a-1,f=(1<<a)-1;if(l[1]=s.convert(this),a>1){var x=nbi();for(s.sqrTo(l[1],x);c<=f;)l[c]=nbi(),s.mulTo(x,l[c-2],l[c]),c+=2}var h=n.t-1,g,v=!0,p=nbi(),C;for(i=nbits(n[h])-1;h>=0;){for(i>=u?g=n[h]>>i-u&f:(g=(n[h]&(1<<i+1)-1)<<u-i,h>0&&(g|=n[h-1]>>this.DB+i-u)),c=a;!(g&1);)g>>=1,--c;if((i-=c)<0&&(i+=this.DB,--h),v)l[g].copyTo(o),v=!1;else{for(;c>1;)s.sqrTo(o,p),s.sqrTo(p,o),c-=2;c>0?s.sqrTo(o,p):(C=o,o=p,p=C),s.mulTo(p,l[g],o)}for(;h>=0&&!(n[h]&1<<i);)s.sqrTo(o,p),C=o,o=p,p=C,--i<0&&(i=this.DB-1,--h)}return s.revert(o)},e.prototype.modInverse=function(n){var r=n.isEven();if(this.isEven()&&r||n.signum()==0)return e.ZERO;for(var i=n.clone(),a=this.clone(),o=nbv(1),s=nbv(0),l=nbv(0),c=nbv(1);i.signum()!=0;){for(;i.isEven();)i.rShiftTo(1,i),r?((!o.isEven()||!s.isEven())&&(o.addTo(this,o),s.subTo(n,s)),o.rShiftTo(1,o)):s.isEven()||s.subTo(n,s),s.rShiftTo(1,s);for(;a.isEven();)a.rShiftTo(1,a),r?((!l.isEven()||!c.isEven())&&(l.addTo(this,l),c.subTo(n,c)),l.rShiftTo(1,l)):c.isEven()||c.subTo(n,c),c.rShiftTo(1,c);i.compareTo(a)>=0?(i.subTo(a,i),r&&o.subTo(l,o),s.subTo(c,s)):(a.subTo(i,a),r&&l.subTo(o,l),c.subTo(s,c))}if(a.compareTo(e.ONE)!=0)return e.ZERO;if(c.compareTo(n)>=0)return c.subtract(n);if(c.signum()<0)c.addTo(n,c);else return c;return c.signum()<0?c.add(n):c},e.prototype.pow=function(n){return this.exp(n,new NullExp)},e.prototype.gcd=function(n){var r=this.s<0?this.negate():this.clone(),i=n.s<0?n.negate():n.clone();if(r.compareTo(i)<0){var a=r;r=i,i=a}var o=r.getLowestSetBit(),s=i.getLowestSetBit();if(s<0)return r;for(o<s&&(s=o),s>0&&(r.rShiftTo(s,r),i.rShiftTo(s,i));r.signum()>0;)(o=r.getLowestSetBit())>0&&r.rShiftTo(o,r),(o=i.getLowestSetBit())>0&&i.rShiftTo(o,i),r.compareTo(i)>=0?(r.subTo(i,r),r.rShiftTo(1,r)):(i.subTo(r,i),i.rShiftTo(1,i));return s>0&&i.lShiftTo(s,i),i},e.prototype.isProbablePrime=function(n){var r,i=this.abs();if(i.t==1&&i[0]<=lowprimes[lowprimes.length-1]){for(r=0;r<lowprimes.length;++r)if(i[0]==lowprimes[r])return!0;return!1}if(i.isEven())return!1;for(r=1;r<lowprimes.length;){for(var a=lowprimes[r],o=r+1;o<lowprimes.length&&a<lplim;)a*=lowprimes[o++];for(a=i.modInt(a);r<o;)if(a%lowprimes[r++]==0)return!1}return i.millerRabin(n)},e.prototype.copyTo=function(n){for(var r=this.t-1;r>=0;--r)n[r]=this[r];n.t=this.t,n.s=this.s},e.prototype.fromInt=function(n){this.t=1,this.s=n<0?-1:0,n>0?this[0]=n:n<-1?this[0]=n+this.DV:this.t=0},e.prototype.fromString=function(n,r){var i;if(r==16)i=4;else if(r==8)i=3;else if(r==256)i=8;else if(r==2)i=1;else if(r==32)i=5;else if(r==4)i=2;else{this.fromRadix(n,r);return}this.t=0,this.s=0;for(var a=n.length,o=!1,s=0;--a>=0;){var l=i==8?+n[a]&255:intAt(n,a);if(l<0){n.charAt(a)=="-"&&(o=!0);continue}o=!1,s==0?this[this.t++]=l:s+i>this.DB?(this[this.t-1]|=(l&(1<<this.DB-s)-1)<<s,this[this.t++]=l>>this.DB-s):this[this.t-1]|=l<<s,s+=i,s>=this.DB&&(s-=this.DB)}i==8&&+n[0]&128&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),o&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var n=this.s&this.DM;this.t>0&&this[this.t-1]==n;)--this.t},e.prototype.dlShiftTo=function(n,r){var i;for(i=this.t-1;i>=0;--i)r[i+n]=this[i];for(i=n-1;i>=0;--i)r[i]=0;r.t=this.t+n,r.s=this.s},e.prototype.drShiftTo=function(n,r){for(var i=n;i<this.t;++i)r[i-n]=this[i];r.t=Math.max(this.t-n,0),r.s=this.s},e.prototype.lShiftTo=function(n,r){for(var i=n%this.DB,a=this.DB-i,o=(1<<a)-1,s=Math.floor(n/this.DB),l=this.s<<i&this.DM,c=this.t-1;c>=0;--c)r[c+s+1]=this[c]>>a|l,l=(this[c]&o)<<i;for(var c=s-1;c>=0;--c)r[c]=0;r[s]=l,r.t=this.t+s+1,r.s=this.s,r.clamp()},e.prototype.rShiftTo=function(n,r){r.s=this.s;var i=Math.floor(n/this.DB);if(i>=this.t){r.t=0;return}var a=n%this.DB,o=this.DB-a,s=(1<<a)-1;r[0]=this[i]>>a;for(var l=i+1;l<this.t;++l)r[l-i-1]|=(this[l]&s)<<o,r[l-i]=this[l]>>a;a>0&&(r[this.t-i-1]|=(this.s&s)<<o),r.t=this.t-i,r.clamp()},e.prototype.subTo=function(n,r){for(var i=0,a=0,o=Math.min(n.t,this.t);i<o;)a+=this[i]-n[i],r[i++]=a&this.DM,a>>=this.DB;if(n.t<this.t){for(a-=n.s;i<this.t;)a+=this[i],r[i++]=a&this.DM,a>>=this.DB;a+=this.s}else{for(a+=this.s;i<n.t;)a-=n[i],r[i++]=a&this.DM,a>>=this.DB;a-=n.s}r.s=a<0?-1:0,a<-1?r[i++]=this.DV+a:a>0&&(r[i++]=a),r.t=i,r.clamp()},e.prototype.multiplyTo=function(n,r){var i=this.abs(),a=n.abs(),o=i.t;for(r.t=o+a.t;--o>=0;)r[o]=0;for(o=0;o<a.t;++o)r[o+i.t]=i.am(0,a[o],r,o,0,i.t);r.s=0,r.clamp(),this.s!=n.s&&e.ZERO.subTo(r,r)},e.prototype.squareTo=function(n){for(var r=this.abs(),i=n.t=2*r.t;--i>=0;)n[i]=0;for(i=0;i<r.t-1;++i){var a=r.am(i,r[i],n,2*i,0,1);(n[i+r.t]+=r.am(i+1,2*r[i],n,2*i+1,a,r.t-i-1))>=r.DV&&(n[i+r.t]-=r.DV,n[i+r.t+1]=1)}n.t>0&&(n[n.t-1]+=r.am(i,r[i],n,2*i,0,1)),n.s=0,n.clamp()},e.prototype.divRemTo=function(n,r,i){var a=n.abs();if(!(a.t<=0)){var o=this.abs();if(o.t<a.t){r!=null&&r.fromInt(0),i!=null&&this.copyTo(i);return}i==null&&(i=nbi());var s=nbi(),l=this.s,c=n.s,u=this.DB-nbits(a[a.t-1]);u>0?(a.lShiftTo(u,s),o.lShiftTo(u,i)):(a.copyTo(s),o.copyTo(i));var f=s.t,x=s[f-1];if(x!=0){var h=x*(1<<this.F1)+(f>1?s[f-2]>>this.F2:0),g=this.FV/h,v=(1<<this.F1)/h,p=1<<this.F2,C=i.t,b=C-f,d=r??nbi();for(s.dlShiftTo(b,d),i.compareTo(d)>=0&&(i[i.t++]=1,i.subTo(d,i)),e.ONE.dlShiftTo(f,d),d.subTo(s,s);s.t<f;)s[s.t++]=0;for(;--b>=0;){var m=i[--C]==x?this.DM:Math.floor(i[C]*g+(i[C-1]+p)*v);if((i[C]+=s.am(0,m,i,b,0,f))<m)for(s.dlShiftTo(b,d),i.subTo(d,i);i[C]<--m;)i.subTo(d,i)}r!=null&&(i.drShiftTo(f,r),l!=c&&e.ZERO.subTo(r,r)),i.t=f,i.clamp(),u>0&&i.rShiftTo(u,i),l<0&&e.ZERO.subTo(i,i)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var n=this[0];if(!(n&1))return 0;var r=n&3;return r=r*(2-(n&15)*r)&15,r=r*(2-(n&255)*r)&255,r=r*(2-((n&65535)*r&65535))&65535,r=r*(2-n*r%this.DV)%this.DV,r>0?this.DV-r:-r},e.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},e.prototype.exp=function(n,r){if(n>4294967295||n<1)return e.ONE;var i=nbi(),a=nbi(),o=r.convert(this),s=nbits(n)-1;for(o.copyTo(i);--s>=0;)if(r.sqrTo(i,a),(n&1<<s)>0)r.mulTo(a,o,i);else{var l=i;i=a,a=l}return r.revert(i)},e.prototype.chunkSize=function(n){return Math.floor(Math.LN2*this.DB/Math.log(n))},e.prototype.toRadix=function(n){if(n==null&&(n=10),this.signum()==0||n<2||n>36)return"0";var r=this.chunkSize(n),i=Math.pow(n,r),a=nbv(i),o=nbi(),s=nbi(),l="";for(this.divRemTo(a,o,s);o.signum()>0;)l=(i+s.intValue()).toString(n).substr(1)+l,o.divRemTo(a,o,s);return s.intValue().toString(n)+l},e.prototype.fromRadix=function(n,r){this.fromInt(0),r==null&&(r=10);for(var i=this.chunkSize(r),a=Math.pow(r,i),o=!1,s=0,l=0,c=0;c<n.length;++c){var u=intAt(n,c);if(u<0){n.charAt(c)=="-"&&this.signum()==0&&(o=!0);continue}l=r*l+u,++s>=i&&(this.dMultiply(a),this.dAddOffset(l,0),s=0,l=0)}s>0&&(this.dMultiply(Math.pow(r,s)),this.dAddOffset(l,0)),o&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(n,r,i){if(typeof r=="number")if(n<2)this.fromInt(1);else for(this.fromNumber(n,i),this.testBit(n-1)||this.bitwiseTo(e.ONE.shiftLeft(n-1),op_or,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(r);)this.dAddOffset(2,0),this.bitLength()>n&&this.subTo(e.ONE.shiftLeft(n-1),this);else{var a=[],o=n&7;a.length=(n>>3)+1,r.nextBytes(a),o>0?a[0]&=(1<<o)-1:a[0]=0,this.fromString(a,256)}},e.prototype.bitwiseTo=function(n,r,i){var a,o,s=Math.min(n.t,this.t);for(a=0;a<s;++a)i[a]=r(this[a],n[a]);if(n.t<this.t){for(o=n.s&this.DM,a=s;a<this.t;++a)i[a]=r(this[a],o);i.t=this.t}else{for(o=this.s&this.DM,a=s;a<n.t;++a)i[a]=r(o,n[a]);i.t=n.t}i.s=r(this.s,n.s),i.clamp()},e.prototype.changeBit=function(n,r){var i=e.ONE.shiftLeft(n);return this.bitwiseTo(i,r,i),i},e.prototype.addTo=function(n,r){for(var i=0,a=0,o=Math.min(n.t,this.t);i<o;)a+=this[i]+n[i],r[i++]=a&this.DM,a>>=this.DB;if(n.t<this.t){for(a+=n.s;i<this.t;)a+=this[i],r[i++]=a&this.DM,a>>=this.DB;a+=this.s}else{for(a+=this.s;i<n.t;)a+=n[i],r[i++]=a&this.DM,a>>=this.DB;a+=n.s}r.s=a<0?-1:0,a>0?r[i++]=a:a<-1&&(r[i++]=this.DV+a),r.t=i,r.clamp()},e.prototype.dMultiply=function(n){this[this.t]=this.am(0,n-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(n,r){if(n!=0){for(;this.t<=r;)this[this.t++]=0;for(this[r]+=n;this[r]>=this.DV;)this[r]-=this.DV,++r>=this.t&&(this[this.t++]=0),++this[r]}},e.prototype.multiplyLowerTo=function(n,r,i){var a=Math.min(this.t+n.t,r);for(i.s=0,i.t=a;a>0;)i[--a]=0;for(var o=i.t-this.t;a<o;++a)i[a+this.t]=this.am(0,n[a],i,a,0,this.t);for(var o=Math.min(n.t,r);a<o;++a)this.am(0,n[a],i,a,0,r-a);i.clamp()},e.prototype.multiplyUpperTo=function(n,r,i){--r;var a=i.t=this.t+n.t-r;for(i.s=0;--a>=0;)i[a]=0;for(a=Math.max(r-this.t,0);a<n.t;++a)i[this.t+a-r]=this.am(r-a,n[a],i,0,0,this.t+a-r);i.clamp(),i.drShiftTo(1,i)},e.prototype.modInt=function(n){if(n<=0)return 0;var r=this.DV%n,i=this.s<0?n-1:0;if(this.t>0)if(r==0)i=this[0]%n;else for(var a=this.t-1;a>=0;--a)i=(r*i+this[a])%n;return i},e.prototype.millerRabin=function(n){var r=this.subtract(e.ONE),i=r.getLowestSetBit();if(i<=0)return!1;var a=r.shiftRight(i);n=n+1>>1,n>lowprimes.length&&(n=lowprimes.length);for(var o=nbi(),s=0;s<n;++s){o.fromInt(lowprimes[Math.floor(Math.random()*lowprimes.length)]);var l=o.modPow(a,this);if(l.compareTo(e.ONE)!=0&&l.compareTo(r)!=0){for(var c=1;c++<i&&l.compareTo(r)!=0;)if(l=l.modPowInt(2,this),l.compareTo(e.ONE)==0)return!1;if(l.compareTo(r)!=0)return!1}}return!0},e.prototype.square=function(){var n=nbi();return this.squareTo(n),n},e.prototype.gcda=function(n,r){var i=this.s<0?this.negate():this.clone(),a=n.s<0?n.negate():n.clone();if(i.compareTo(a)<0){var o=i;i=a,a=o}var s=i.getLowestSetBit(),l=a.getLowestSetBit();if(l<0){r(i);return}s<l&&(l=s),l>0&&(i.rShiftTo(l,i),a.rShiftTo(l,a));var c=function(){(s=i.getLowestSetBit())>0&&i.rShiftTo(s,i),(s=a.getLowestSetBit())>0&&a.rShiftTo(s,a),i.compareTo(a)>=0?(i.subTo(a,i),i.rShiftTo(1,i)):(a.subTo(i,a),a.rShiftTo(1,a)),i.signum()>0?setTimeout(c,0):(l>0&&a.lShiftTo(l,a),setTimeout(function(){r(a)},0))};setTimeout(c,10)},e.prototype.fromNumberAsync=function(n,r,i,a){if(typeof r=="number")if(n<2)this.fromInt(1);else{this.fromNumber(n,i),this.testBit(n-1)||this.bitwiseTo(e.ONE.shiftLeft(n-1),op_or,this),this.isEven()&&this.dAddOffset(1,0);var o=this,s=function(){o.dAddOffset(2,0),o.bitLength()>n&&o.subTo(e.ONE.shiftLeft(n-1),o),o.isProbablePrime(r)?setTimeout(function(){a()},0):setTimeout(s,0)};setTimeout(s,0)}else{var l=[],c=n&7;l.length=(n>>3)+1,r.nextBytes(l),c>0?l[0]&=(1<<c)-1:l[0]=0,this.fromString(l,256)}},e}(),NullExp=function(){function e(){}return e.prototype.convert=function(n){return n},e.prototype.revert=function(n){return n},e.prototype.mulTo=function(n,r,i){n.multiplyTo(r,i)},e.prototype.sqrTo=function(n,r){n.squareTo(r)},e}(),Classic=function(){function e(n){this.m=n}return e.prototype.convert=function(n){return n.s<0||n.compareTo(this.m)>=0?n.mod(this.m):n},e.prototype.revert=function(n){return n},e.prototype.reduce=function(n){n.divRemTo(this.m,null,n)},e.prototype.mulTo=function(n,r,i){n.multiplyTo(r,i),this.reduce(i)},e.prototype.sqrTo=function(n,r){n.squareTo(r),this.reduce(r)},e}(),Montgomery=function(){function e(n){this.m=n,this.mp=n.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<n.DB-15)-1,this.mt2=2*n.t}return e.prototype.convert=function(n){var r=nbi();return n.abs().dlShiftTo(this.m.t,r),r.divRemTo(this.m,null,r),n.s<0&&r.compareTo(BigInteger.ZERO)>0&&this.m.subTo(r,r),r},e.prototype.revert=function(n){var r=nbi();return n.copyTo(r),this.reduce(r),r},e.prototype.reduce=function(n){for(;n.t<=this.mt2;)n[n.t++]=0;for(var r=0;r<this.m.t;++r){var i=n[r]&32767,a=i*this.mpl+((i*this.mph+(n[r]>>15)*this.mpl&this.um)<<15)&n.DM;for(i=r+this.m.t,n[i]+=this.m.am(0,a,n,r,0,this.m.t);n[i]>=n.DV;)n[i]-=n.DV,n[++i]++}n.clamp(),n.drShiftTo(this.m.t,n),n.compareTo(this.m)>=0&&n.subTo(this.m,n)},e.prototype.mulTo=function(n,r,i){n.multiplyTo(r,i),this.reduce(i)},e.prototype.sqrTo=function(n,r){n.squareTo(r),this.reduce(r)},e}(),Barrett=function(){function e(n){this.m=n,this.r2=nbi(),this.q3=nbi(),BigInteger.ONE.dlShiftTo(2*n.t,this.r2),this.mu=this.r2.divide(n)}return e.prototype.convert=function(n){if(n.s<0||n.t>2*this.m.t)return n.mod(this.m);if(n.compareTo(this.m)<0)return n;var r=nbi();return n.copyTo(r),this.reduce(r),r},e.prototype.revert=function(n){return n},e.prototype.reduce=function(n){for(n.drShiftTo(this.m.t-1,this.r2),n.t>this.m.t+1&&(n.t=this.m.t+1,n.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);n.compareTo(this.r2)<0;)n.dAddOffset(1,this.m.t+1);for(n.subTo(this.r2,n);n.compareTo(this.m)>=0;)n.subTo(this.m,n)},e.prototype.mulTo=function(n,r,i){n.multiplyTo(r,i),this.reduce(i)},e.prototype.sqrTo=function(n,r){n.squareTo(r),this.reduce(r)},e}();function nbi(){return new BigInteger(null)}function parseBigInt(e,n){return new BigInteger(e,n)}var inBrowser$2=typeof navigator<"u";inBrowser$2&&j_lm&&navigator.appName=="Microsoft Internet Explorer"?(BigInteger.prototype.am=function(n,r,i,a,o,s){for(var l=r&32767,c=r>>15;--s>=0;){var u=this[n]&32767,f=this[n++]>>15,x=c*u+f*l;u=l*u+((x&32767)<<15)+i[a]+(o&1073741823),o=(u>>>30)+(x>>>15)+c*f+(o>>>30),i[a++]=u&1073741823}return o},dbits=30):inBrowser$2&&j_lm&&navigator.appName!="Netscape"?(BigInteger.prototype.am=function(n,r,i,a,o,s){for(;--s>=0;){var l=r*this[n++]+i[a]+o;o=Math.floor(l/67108864),i[a++]=l&67108863}return o},dbits=26):(BigInteger.prototype.am=function(n,r,i,a,o,s){for(var l=r&16383,c=r>>14;--s>=0;){var u=this[n]&16383,f=this[n++]>>14,x=c*u+f*l;u=l*u+((x&16383)<<14)+i[a]+o,o=(u>>28)+(x>>14)+c*f,i[a++]=u&268435455}return o},dbits=28),BigInteger.prototype.DB=dbits,BigInteger.prototype.DM=(1<<dbits)-1,BigInteger.prototype.DV=1<<dbits;var BI_FP=52;BigInteger.prototype.FV=Math.pow(2,BI_FP),BigInteger.prototype.F1=BI_FP-dbits,BigInteger.prototype.F2=2*dbits-BI_FP;var BI_RC=[],rr,vv;for(rr="0".charCodeAt(0),vv=0;vv<=9;++vv)BI_RC[rr++]=vv;for(rr="a".charCodeAt(0),vv=10;vv<36;++vv)BI_RC[rr++]=vv;for(rr="A".charCodeAt(0),vv=10;vv<36;++vv)BI_RC[rr++]=vv;function intAt(e,n){var r=BI_RC[e.charCodeAt(n)];return r??-1}function nbv(e){var n=nbi();return n.fromInt(e),n}function nbits(e){var n=1,r;return(r=e>>>16)!=0&&(e=r,n+=16),(r=e>>8)!=0&&(e=r,n+=8),(r=e>>4)!=0&&(e=r,n+=4),(r=e>>2)!=0&&(e=r,n+=2),(r=e>>1)!=0&&(e=r,n+=1),n}BigInteger.ZERO=nbv(0),BigInteger.ONE=nbv(1);var Arcfour=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(n){var r,i,a;for(r=0;r<256;++r)this.S[r]=r;for(i=0,r=0;r<256;++r)i=i+this.S[r]+n[r%n.length]&255,a=this.S[r],this.S[r]=this.S[i],this.S[i]=a;this.i=0,this.j=0},e.prototype.next=function(){var n;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,n=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=n,this.S[n+this.S[this.i]&255]},e}();function prng_newstate(){return new Arcfour}var rng_psize=256,rng_state,rng_pool=null,rng_pptr;if(rng_pool==null){rng_pool=[],rng_pptr=0;var t$1=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var z=new Uint32Array(256);for(window.crypto.getRandomValues(z),t$1=0;t$1<z.length;++t$1)rng_pool[rng_pptr++]=z[t$1]&255}var count=0,onMouseMoveListener_1=function(e){if(count=count||0,count>=256||rng_pptr>=rng_psize){window.removeEventListener?window.removeEventListener("mousemove",onMouseMoveListener_1,!1):window.detachEvent&&window.detachEvent("onmousemove",onMouseMoveListener_1);return}try{var n=e.x+e.y;rng_pool[rng_pptr++]=n&255,count+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",onMouseMoveListener_1,!1):window.attachEvent&&window.attachEvent("onmousemove",onMouseMoveListener_1))}function rng_get_byte(){if(rng_state==null){for(rng_state=prng_newstate();rng_pptr<rng_psize;){var e=Math.floor(65536*Math.random());rng_pool[rng_pptr++]=e&255}for(rng_state.init(rng_pool),rng_pptr=0;rng_pptr<rng_pool.length;++rng_pptr)rng_pool[rng_pptr]=0;rng_pptr=0}return rng_state.next()}var SecureRandom=function(){function e(){}return e.prototype.nextBytes=function(n){for(var r=0;r<n.length;++r)n[r]=rng_get_byte()},e}();function pkcs1pad1(e,n){if(n<e.length+22)return console.error("Message too long for RSA"),null;for(var r=n-e.length-6,i="",a=0;a<r;a+=2)i+="ff";var o="0001"+i+"00"+e;return parseBigInt(o,16)}function pkcs1pad2(e,n){if(n<e.length+11)return console.error("Message too long for RSA"),null;for(var r=[],i=e.length-1;i>=0&&n>0;){var a=e.charCodeAt(i--);a<128?r[--n]=a:a>127&&a<2048?(r[--n]=a&63|128,r[--n]=a>>6|192):(r[--n]=a&63|128,r[--n]=a>>6&63|128,r[--n]=a>>12|224)}r[--n]=0;for(var o=new SecureRandom,s=[];n>2;){for(s[0]=0;s[0]==0;)o.nextBytes(s);r[--n]=s[0]}return r[--n]=2,r[--n]=0,new BigInteger(r)}var RSAKey=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(n){return n.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(n){if(this.p==null||this.q==null)return n.modPow(this.d,this.n);for(var r=n.mod(this.p).modPow(this.dmp1,this.p),i=n.mod(this.q).modPow(this.dmq1,this.q);r.compareTo(i)<0;)r=r.add(this.p);return r.subtract(i).multiply(this.coeff).mod(this.p).multiply(this.q).add(i)},e.prototype.setPublic=function(n,r){n!=null&&r!=null&&n.length>0&&r.length>0?(this.n=parseBigInt(n,16),this.e=parseInt(r,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(n){var r=this.n.bitLength()+7>>3,i=pkcs1pad2(n,r);if(i==null)return null;var a=this.doPublic(i);if(a==null)return null;for(var o=a.toString(16),s=o.length,l=0;l<r*2-s;l++)o="0"+o;return o},e.prototype.setPrivate=function(n,r,i){n!=null&&r!=null&&n.length>0&&r.length>0?(this.n=parseBigInt(n,16),this.e=parseInt(r,16),this.d=parseBigInt(i,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(n,r,i,a,o,s,l,c){n!=null&&r!=null&&n.length>0&&r.length>0?(this.n=parseBigInt(n,16),this.e=parseInt(r,16),this.d=parseBigInt(i,16),this.p=parseBigInt(a,16),this.q=parseBigInt(o,16),this.dmp1=parseBigInt(s,16),this.dmq1=parseBigInt(l,16),this.coeff=parseBigInt(c,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(n,r){var i=new SecureRandom,a=n>>1;this.e=parseInt(r,16);for(var o=new BigInteger(r,16);;){for(;this.p=new BigInteger(n-a,1,i),!(this.p.subtract(BigInteger.ONE).gcd(o).compareTo(BigInteger.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new BigInteger(a,1,i),!(this.q.subtract(BigInteger.ONE).gcd(o).compareTo(BigInteger.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var s=this.p;this.p=this.q,this.q=s}var l=this.p.subtract(BigInteger.ONE),c=this.q.subtract(BigInteger.ONE),u=l.multiply(c);if(u.gcd(o).compareTo(BigInteger.ONE)==0){this.n=this.p.multiply(this.q),this.d=o.modInverse(u),this.dmp1=this.d.mod(l),this.dmq1=this.d.mod(c),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(n){var r=parseBigInt(n,16),i=this.doPrivate(r);return i==null?null:pkcs1unpad2(i,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(n,r,i){var a=new SecureRandom,o=n>>1;this.e=parseInt(r,16);var s=new BigInteger(r,16),l=this,c=function(){var u=function(){if(l.p.compareTo(l.q)<=0){var h=l.p;l.p=l.q,l.q=h}var g=l.p.subtract(BigInteger.ONE),v=l.q.subtract(BigInteger.ONE),p=g.multiply(v);p.gcd(s).compareTo(BigInteger.ONE)==0?(l.n=l.p.multiply(l.q),l.d=s.modInverse(p),l.dmp1=l.d.mod(g),l.dmq1=l.d.mod(v),l.coeff=l.q.modInverse(l.p),setTimeout(function(){i()},0)):setTimeout(c,0)},f=function(){l.q=nbi(),l.q.fromNumberAsync(o,1,a,function(){l.q.subtract(BigInteger.ONE).gcda(s,function(h){h.compareTo(BigInteger.ONE)==0&&l.q.isProbablePrime(10)?setTimeout(u,0):setTimeout(f,0)})})},x=function(){l.p=nbi(),l.p.fromNumberAsync(n-o,1,a,function(){l.p.subtract(BigInteger.ONE).gcda(s,function(h){h.compareTo(BigInteger.ONE)==0&&l.p.isProbablePrime(10)?setTimeout(f,0):setTimeout(x,0)})})};setTimeout(x,0)};setTimeout(c,0)},e.prototype.sign=function(n,r,i){var a=getDigestHeader(i),o=a+r(n).toString(),s=pkcs1pad1(o,this.n.bitLength()/4);if(s==null)return null;var l=this.doPrivate(s);if(l==null)return null;var c=l.toString(16);return c.length&1?"0"+c:c},e.prototype.verify=function(n,r,i){var a=parseBigInt(r,16),o=this.doPublic(a);if(o==null)return null;var s=o.toString(16).replace(/^1f+00/,""),l=removeDigestHeader(s);return l==i(n).toString()},e}();function pkcs1unpad2(e,n){for(var r=e.toByteArray(),i=0;i<r.length&&r[i]==0;)++i;if(r.length-i!=n-1||r[i]!=2)return null;for(++i;r[i]!=0;)if(++i>=r.length)return null;for(var a="";++i<r.length;){var o=r[i]&255;o<128?a+=String.fromCharCode(o):o>191&&o<224?(a+=String.fromCharCode((o&31)<<6|r[i+1]&63),++i):(a+=String.fromCharCode((o&15)<<12|(r[i+1]&63)<<6|r[i+2]&63),i+=2)}return a}var DIGEST_HEADERS={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function getDigestHeader(e){return DIGEST_HEADERS[e]||""}function removeDigestHeader(e){for(var n in DIGEST_HEADERS)if(DIGEST_HEADERS.hasOwnProperty(n)){var r=DIGEST_HEADERS[n],i=r.length;if(e.substr(0,i)==r)return e.substr(i)}return e}/*!
82
82
  Copyright (c) 2011, Yahoo! Inc. All rights reserved.
83
83
  Code licensed under the BSD License:
84
84
  http://developer.yahoo.com/yui/license.html
@@ -90,44 +90,44 @@ version: 2.9.0
90
90
  * @version asn1 1.0.13 (2017-Jun-02)
91
91
  * @since jsrsasign 2.1
92
92
  * @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
93
- */var KJUR={};(typeof KJUR.asn1>"u"||!KJUR.asn1)&&(KJUR.asn1={}),KJUR.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var n=e.toString(16);return n.length%2==1&&(n="0"+n),n},this.bigIntToMinTwosComplementsHex=function(e){var n=e.toString(16);if(n.substr(0,1)!="-")n.length%2==1?n="0"+n:n.match(/^[0-7]/)||(n="00"+n);else{var r=n.substr(1),i=r.length;i%2==1?i+=1:n.match(/^[0-7]/)||(i+=2);for(var a="",o=0;o<i;o++)a+="f";var s=new BigInteger(a,16),l=s.xor(e).add(BigInteger.ONE);n=l.toString(16).replace(/^-/,"")}return n},this.getPEMStringFromHex=function(e,n){return hextopem(e,n)},this.newObject=function(e){var n=KJUR,r=n.asn1,i=r.DERBoolean,a=r.DERInteger,o=r.DERBitString,s=r.DEROctetString,l=r.DERNull,c=r.DERObjectIdentifier,u=r.DEREnumerated,f=r.DERUTF8String,x=r.DERNumericString,h=r.DERPrintableString,g=r.DERTeletexString,v=r.DERIA5String,p=r.DERUTCTime,E=r.DERGeneralizedTime,b=r.DERSequence,d=r.DERSet,m=r.DERTaggedObject,y=r.ASN1Util.newObject,A=Object.keys(e);if(A.length!=1)throw"key of param shall be only one.";var _=A[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+_+":")==-1)throw"undefined key: "+_;if(_=="bool")return new i(e[_]);if(_=="int")return new a(e[_]);if(_=="bitstr")return new o(e[_]);if(_=="octstr")return new s(e[_]);if(_=="null")return new l(e[_]);if(_=="oid")return new c(e[_]);if(_=="enum")return new u(e[_]);if(_=="utf8str")return new f(e[_]);if(_=="numstr")return new x(e[_]);if(_=="prnstr")return new h(e[_]);if(_=="telstr")return new g(e[_]);if(_=="ia5str")return new v(e[_]);if(_=="utctime")return new p(e[_]);if(_=="gentime")return new E(e[_]);if(_=="seq"){for(var k=e[_],T=[],F=0;F<k.length;F++){var M=y(k[F]);T.push(M)}return new b({array:T})}if(_=="set"){for(var k=e[_],T=[],F=0;F<k.length;F++){var M=y(k[F]);T.push(M)}return new d({array:T})}if(_=="tag"){var B=e[_];if(Object.prototype.toString.call(B)==="[object Array]"&&B.length==3){var L=y(B[2]);return new m({tag:B[0],explicit:B[1],obj:L})}else{var R={};if(B.explicit!==void 0&&(R.explicit=B.explicit),B.tag!==void 0&&(R.tag=B.tag),B.obj===void 0)throw"obj shall be specified for 'tag'.";return R.obj=y(B.obj),new m(R)}}},this.jsonToASN1HEX=function(e){var n=this.newObject(e);return n.getEncodedHex()}},KJUR.asn1.ASN1Util.oidHexToInt=function(e){for(var a="",n=parseInt(e.substr(0,2),16),r=Math.floor(n/40),i=n%40,a=r+"."+i,o="",s=2;s<e.length;s+=2){var l=parseInt(e.substr(s,2),16),c=("00000000"+l.toString(2)).slice(-8);if(o=o+c.substr(1,7),c.substr(0,1)=="0"){var u=new BigInteger(o,2);a=a+"."+u.toString(10),o=""}}return a},KJUR.asn1.ASN1Util.oidIntToHex=function(e){var n=function(l){var c=l.toString(16);return c.length==1&&(c="0"+c),c},r=function(l){var c="",u=new BigInteger(l,10),f=u.toString(2),x=7-f.length%7;x==7&&(x=0);for(var h="",g=0;g<x;g++)h+="0";f=h+f;for(var g=0;g<f.length-1;g+=7){var v=f.substr(g,7);g!=f.length-7&&(v="1"+v),c+=n(parseInt(v,2))}return c};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var i="",a=e.split("."),o=parseInt(a[0])*40+parseInt(a[1]);i+=n(o),a.splice(0,2);for(var s=0;s<a.length;s++)i+=r(a[s]);return i},KJUR.asn1.ASN1Object=function(){var e="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+e.length+",v="+this.hV;var n=this.hV.length/2,r=n.toString(16);if(r.length%2==1&&(r="0"+r),n<128)return r;var i=r.length/2;if(i>15)throw"ASN.1 length too long to represent by 8x: n = "+n.toString(16);var a=128+i;return a.toString(16)+r},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},KJUR.asn1.DERAbstractString=function(e){KJUR.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(n){this.hTLV=null,this.isModified=!0,this.s=n,this.hV=stohex(this.s)},this.setStringHex=function(n){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=n},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"?this.setString(e):typeof e.str<"u"?this.setString(e.str):typeof e.hex<"u"&&this.setStringHex(e.hex))},YAHOO.lang.extend(KJUR.asn1.DERAbstractString,KJUR.asn1.ASN1Object),KJUR.asn1.DERAbstractTime=function(e){KJUR.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(n){utc=n.getTime()+n.getTimezoneOffset()*6e4;var r=new Date(utc);return r},this.formatDate=function(n,r,i){var a=this.zeroPadding,o=this.localDateToUTC(n),s=String(o.getFullYear());r=="utc"&&(s=s.substr(2,2));var l=a(String(o.getMonth()+1),2),c=a(String(o.getDate()),2),u=a(String(o.getHours()),2),f=a(String(o.getMinutes()),2),x=a(String(o.getSeconds()),2),h=s+l+c+u+f+x;if(i===!0){var g=o.getMilliseconds();if(g!=0){var v=a(String(g),3);v=v.replace(/[0]+$/,""),h=h+"."+v}}return h+"Z"},this.zeroPadding=function(n,r){return n.length>=r?n:new Array(r-n.length+1).join("0")+n},this.getString=function(){return this.s},this.setString=function(n){this.hTLV=null,this.isModified=!0,this.s=n,this.hV=stohex(n)},this.setByDateValue=function(n,r,i,a,o,s){var l=new Date(Date.UTC(n,r-1,i,a,o,s,0));this.setByDate(l)},this.getFreshValueHex=function(){return this.hV}},YAHOO.lang.extend(KJUR.asn1.DERAbstractTime,KJUR.asn1.ASN1Object),KJUR.asn1.DERAbstractStructured=function(e){KJUR.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(n){this.hTLV=null,this.isModified=!0,this.asn1Array=n},this.appendASN1Object=function(n){this.hTLV=null,this.isModified=!0,this.asn1Array.push(n)},this.asn1Array=new Array,typeof e<"u"&&typeof e.array<"u"&&(this.asn1Array=e.array)},YAHOO.lang.extend(KJUR.asn1.DERAbstractStructured,KJUR.asn1.ASN1Object),KJUR.asn1.DERBoolean=function(){KJUR.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},YAHOO.lang.extend(KJUR.asn1.DERBoolean,KJUR.asn1.ASN1Object),KJUR.asn1.DERInteger=function(e){KJUR.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(n){this.hTLV=null,this.isModified=!0,this.hV=KJUR.asn1.ASN1Util.bigIntToMinTwosComplementsHex(n)},this.setByInteger=function(n){var r=new BigInteger(String(n),10);this.setByBigInteger(r)},this.setValueHex=function(n){this.hV=n},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.bigint<"u"?this.setByBigInteger(e.bigint):typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},YAHOO.lang.extend(KJUR.asn1.DERInteger,KJUR.asn1.ASN1Object),KJUR.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var n=KJUR.asn1.ASN1Util.newObject(e.obj);e.hex="00"+n.getEncodedHex()}KJUR.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(r){this.hTLV=null,this.isModified=!0,this.hV=r},this.setUnusedBitsAndHexValue=function(r,i){if(r<0||7<r)throw"unused bits shall be from 0 to 7: u = "+r;var a="0"+r;this.hTLV=null,this.isModified=!0,this.hV=a+i},this.setByBinaryString=function(r){r=r.replace(/0+$/,"");var i=8-r.length%8;i==8&&(i=0);for(var a=0;a<=i;a++)r+="0";for(var o="",a=0;a<r.length-1;a+=8){var s=r.substr(a,8),l=parseInt(s,2).toString(16);l.length==1&&(l="0"+l),o+=l}this.hTLV=null,this.isModified=!0,this.hV="0"+i+o},this.setByBooleanArray=function(r){for(var i="",a=0;a<r.length;a++)r[a]==!0?i+="1":i+="0";this.setByBinaryString(i)},this.newFalseArray=function(r){for(var i=new Array(r),a=0;a<r;a++)i[a]=!1;return i},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):typeof e.hex<"u"?this.setHexValueIncludingUnusedBits(e.hex):typeof e.bin<"u"?this.setByBinaryString(e.bin):typeof e.array<"u"&&this.setByBooleanArray(e.array))},YAHOO.lang.extend(KJUR.asn1.DERBitString,KJUR.asn1.ASN1Object),KJUR.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var n=KJUR.asn1.ASN1Util.newObject(e.obj);e.hex=n.getEncodedHex()}KJUR.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},YAHOO.lang.extend(KJUR.asn1.DEROctetString,KJUR.asn1.DERAbstractString),KJUR.asn1.DERNull=function(){KJUR.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},YAHOO.lang.extend(KJUR.asn1.DERNull,KJUR.asn1.ASN1Object),KJUR.asn1.DERObjectIdentifier=function(e){var n=function(i){var a=i.toString(16);return a.length==1&&(a="0"+a),a},r=function(i){var a="",o=new BigInteger(i,10),s=o.toString(2),l=7-s.length%7;l==7&&(l=0);for(var c="",u=0;u<l;u++)c+="0";s=c+s;for(var u=0;u<s.length-1;u+=7){var f=s.substr(u,7);u!=s.length-7&&(f="1"+f),a+=n(parseInt(f,2))}return a};KJUR.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(i){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueOidString=function(i){if(!i.match(/^[0-9.]+$/))throw"malformed oid string: "+i;var a="",o=i.split("."),s=parseInt(o[0])*40+parseInt(o[1]);a+=n(s),o.splice(0,2);for(var l=0;l<o.length;l++)a+=r(o[l]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=a},this.setValueName=function(i){var a=KJUR.asn1.x509.OID.name2oid(i);if(a!=="")this.setValueOidString(a);else throw"DERObjectIdentifier oidName undefined: "+i},this.getFreshValueHex=function(){return this.hV},e!==void 0&&(typeof e=="string"?e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e):e.oid!==void 0?this.setValueOidString(e.oid):e.hex!==void 0?this.setValueHex(e.hex):e.name!==void 0&&this.setValueName(e.name))},YAHOO.lang.extend(KJUR.asn1.DERObjectIdentifier,KJUR.asn1.ASN1Object),KJUR.asn1.DEREnumerated=function(e){KJUR.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(n){this.hTLV=null,this.isModified=!0,this.hV=KJUR.asn1.ASN1Util.bigIntToMinTwosComplementsHex(n)},this.setByInteger=function(n){var r=new BigInteger(String(n),10);this.setByBigInteger(r)},this.setValueHex=function(n){this.hV=n},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},YAHOO.lang.extend(KJUR.asn1.DEREnumerated,KJUR.asn1.ASN1Object),KJUR.asn1.DERUTF8String=function(e){KJUR.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},YAHOO.lang.extend(KJUR.asn1.DERUTF8String,KJUR.asn1.DERAbstractString),KJUR.asn1.DERNumericString=function(e){KJUR.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},YAHOO.lang.extend(KJUR.asn1.DERNumericString,KJUR.asn1.DERAbstractString),KJUR.asn1.DERPrintableString=function(e){KJUR.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},YAHOO.lang.extend(KJUR.asn1.DERPrintableString,KJUR.asn1.DERAbstractString),KJUR.asn1.DERTeletexString=function(e){KJUR.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},YAHOO.lang.extend(KJUR.asn1.DERTeletexString,KJUR.asn1.DERAbstractString),KJUR.asn1.DERIA5String=function(e){KJUR.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},YAHOO.lang.extend(KJUR.asn1.DERIA5String,KJUR.asn1.DERAbstractString),KJUR.asn1.DERUTCTime=function(e){KJUR.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(n){this.hTLV=null,this.isModified=!0,this.date=n,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{12}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date))},YAHOO.lang.extend(KJUR.asn1.DERUTCTime,KJUR.asn1.DERAbstractTime),KJUR.asn1.DERGeneralizedTime=function(e){KJUR.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(n){this.hTLV=null,this.isModified=!0,this.date=n,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{14}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date),e.millis===!0&&(this.withMillis=!0))},YAHOO.lang.extend(KJUR.asn1.DERGeneralizedTime,KJUR.asn1.DERAbstractTime),KJUR.asn1.DERSequence=function(e){KJUR.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var n="",r=0;r<this.asn1Array.length;r++){var i=this.asn1Array[r];n+=i.getEncodedHex()}return this.hV=n,this.hV}},YAHOO.lang.extend(KJUR.asn1.DERSequence,KJUR.asn1.DERAbstractStructured),KJUR.asn1.DERSet=function(e){KJUR.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var n=new Array,r=0;r<this.asn1Array.length;r++){var i=this.asn1Array[r];n.push(i.getEncodedHex())}return this.sortFlag==!0&&n.sort(),this.hV=n.join(""),this.hV},typeof e<"u"&&typeof e.sortflag<"u"&&e.sortflag==!1&&(this.sortFlag=!1)},YAHOO.lang.extend(KJUR.asn1.DERSet,KJUR.asn1.DERAbstractStructured),KJUR.asn1.DERTaggedObject=function(e){KJUR.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(n,r,i){this.hT=r,this.isExplicit=n,this.asn1Object=i,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=i.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,r),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.tag<"u"&&(this.hT=e.tag),typeof e.explicit<"u"&&(this.isExplicit=e.explicit),typeof e.obj<"u"&&(this.asn1Object=e.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},YAHOO.lang.extend(KJUR.asn1.DERTaggedObject,KJUR.asn1.ASN1Object);var __extends=globalThis&&globalThis.__extends||function(){var e=function(n,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(i[o]=a[o])},e(n,r)};return function(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(n,r);function i(){this.constructor=n}n.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),JSEncryptRSAKey=function(e){__extends(n,e);function n(r){var i=e.call(this)||this;return r&&(typeof r=="string"?i.parseKey(r):(n.hasPrivateKeyProperty(r)||n.hasPublicKeyProperty(r))&&i.parsePropertiesFrom(r)),i}return n.prototype.parseKey=function(r){try{var i=0,a=0,o=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,s=o.test(r)?Hex.decode(r):Base64.unarmor(r),l=ASN1.decode(s);if(l.sub.length===3&&(l=l.sub[2].sub[0]),l.sub.length===9){i=l.sub[1].getHexStringValue(),this.n=parseBigInt(i,16),a=l.sub[2].getHexStringValue(),this.e=parseInt(a,16);var c=l.sub[3].getHexStringValue();this.d=parseBigInt(c,16);var u=l.sub[4].getHexStringValue();this.p=parseBigInt(u,16);var f=l.sub[5].getHexStringValue();this.q=parseBigInt(f,16);var x=l.sub[6].getHexStringValue();this.dmp1=parseBigInt(x,16);var h=l.sub[7].getHexStringValue();this.dmq1=parseBigInt(h,16);var g=l.sub[8].getHexStringValue();this.coeff=parseBigInt(g,16)}else if(l.sub.length===2)if(l.sub[0].sub){var v=l.sub[1],p=v.sub[0];i=p.sub[0].getHexStringValue(),this.n=parseBigInt(i,16),a=p.sub[1].getHexStringValue(),this.e=parseInt(a,16)}else i=l.sub[0].getHexStringValue(),this.n=parseBigInt(i,16),a=l.sub[1].getHexStringValue(),this.e=parseInt(a,16);else return!1;return!0}catch{return!1}},n.prototype.getPrivateBaseKey=function(){var r={array:[new KJUR.asn1.DERInteger({int:0}),new KJUR.asn1.DERInteger({bigint:this.n}),new KJUR.asn1.DERInteger({int:this.e}),new KJUR.asn1.DERInteger({bigint:this.d}),new KJUR.asn1.DERInteger({bigint:this.p}),new KJUR.asn1.DERInteger({bigint:this.q}),new KJUR.asn1.DERInteger({bigint:this.dmp1}),new KJUR.asn1.DERInteger({bigint:this.dmq1}),new KJUR.asn1.DERInteger({bigint:this.coeff})]},i=new KJUR.asn1.DERSequence(r);return i.getEncodedHex()},n.prototype.getPrivateBaseKeyB64=function(){return hex2b64(this.getPrivateBaseKey())},n.prototype.getPublicBaseKey=function(){var r=new KJUR.asn1.DERSequence({array:[new KJUR.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new KJUR.asn1.DERNull]}),i=new KJUR.asn1.DERSequence({array:[new KJUR.asn1.DERInteger({bigint:this.n}),new KJUR.asn1.DERInteger({int:this.e})]}),a=new KJUR.asn1.DERBitString({hex:"00"+i.getEncodedHex()}),o=new KJUR.asn1.DERSequence({array:[r,a]});return o.getEncodedHex()},n.prototype.getPublicBaseKeyB64=function(){return hex2b64(this.getPublicBaseKey())},n.wordwrap=function(r,i){if(i=i||64,!r)return r;var a="(.{1,"+i+`})( +|$
93
+ */var KJUR={};(typeof KJUR.asn1>"u"||!KJUR.asn1)&&(KJUR.asn1={}),KJUR.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var n=e.toString(16);return n.length%2==1&&(n="0"+n),n},this.bigIntToMinTwosComplementsHex=function(e){var n=e.toString(16);if(n.substr(0,1)!="-")n.length%2==1?n="0"+n:n.match(/^[0-7]/)||(n="00"+n);else{var r=n.substr(1),i=r.length;i%2==1?i+=1:n.match(/^[0-7]/)||(i+=2);for(var a="",o=0;o<i;o++)a+="f";var s=new BigInteger(a,16),l=s.xor(e).add(BigInteger.ONE);n=l.toString(16).replace(/^-/,"")}return n},this.getPEMStringFromHex=function(e,n){return hextopem(e,n)},this.newObject=function(e){var n=KJUR,r=n.asn1,i=r.DERBoolean,a=r.DERInteger,o=r.DERBitString,s=r.DEROctetString,l=r.DERNull,c=r.DERObjectIdentifier,u=r.DEREnumerated,f=r.DERUTF8String,x=r.DERNumericString,h=r.DERPrintableString,g=r.DERTeletexString,v=r.DERIA5String,p=r.DERUTCTime,C=r.DERGeneralizedTime,b=r.DERSequence,d=r.DERSet,m=r.DERTaggedObject,y=r.ASN1Util.newObject,A=Object.keys(e);if(A.length!=1)throw"key of param shall be only one.";var _=A[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+_+":")==-1)throw"undefined key: "+_;if(_=="bool")return new i(e[_]);if(_=="int")return new a(e[_]);if(_=="bitstr")return new o(e[_]);if(_=="octstr")return new s(e[_]);if(_=="null")return new l(e[_]);if(_=="oid")return new c(e[_]);if(_=="enum")return new u(e[_]);if(_=="utf8str")return new f(e[_]);if(_=="numstr")return new x(e[_]);if(_=="prnstr")return new h(e[_]);if(_=="telstr")return new g(e[_]);if(_=="ia5str")return new v(e[_]);if(_=="utctime")return new p(e[_]);if(_=="gentime")return new C(e[_]);if(_=="seq"){for(var k=e[_],T=[],F=0;F<k.length;F++){var M=y(k[F]);T.push(M)}return new b({array:T})}if(_=="set"){for(var k=e[_],T=[],F=0;F<k.length;F++){var M=y(k[F]);T.push(M)}return new d({array:T})}if(_=="tag"){var B=e[_];if(Object.prototype.toString.call(B)==="[object Array]"&&B.length==3){var L=y(B[2]);return new m({tag:B[0],explicit:B[1],obj:L})}else{var V={};if(B.explicit!==void 0&&(V.explicit=B.explicit),B.tag!==void 0&&(V.tag=B.tag),B.obj===void 0)throw"obj shall be specified for 'tag'.";return V.obj=y(B.obj),new m(V)}}},this.jsonToASN1HEX=function(e){var n=this.newObject(e);return n.getEncodedHex()}},KJUR.asn1.ASN1Util.oidHexToInt=function(e){for(var a="",n=parseInt(e.substr(0,2),16),r=Math.floor(n/40),i=n%40,a=r+"."+i,o="",s=2;s<e.length;s+=2){var l=parseInt(e.substr(s,2),16),c=("00000000"+l.toString(2)).slice(-8);if(o=o+c.substr(1,7),c.substr(0,1)=="0"){var u=new BigInteger(o,2);a=a+"."+u.toString(10),o=""}}return a},KJUR.asn1.ASN1Util.oidIntToHex=function(e){var n=function(l){var c=l.toString(16);return c.length==1&&(c="0"+c),c},r=function(l){var c="",u=new BigInteger(l,10),f=u.toString(2),x=7-f.length%7;x==7&&(x=0);for(var h="",g=0;g<x;g++)h+="0";f=h+f;for(var g=0;g<f.length-1;g+=7){var v=f.substr(g,7);g!=f.length-7&&(v="1"+v),c+=n(parseInt(v,2))}return c};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var i="",a=e.split("."),o=parseInt(a[0])*40+parseInt(a[1]);i+=n(o),a.splice(0,2);for(var s=0;s<a.length;s++)i+=r(a[s]);return i},KJUR.asn1.ASN1Object=function(){var e="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+e.length+",v="+this.hV;var n=this.hV.length/2,r=n.toString(16);if(r.length%2==1&&(r="0"+r),n<128)return r;var i=r.length/2;if(i>15)throw"ASN.1 length too long to represent by 8x: n = "+n.toString(16);var a=128+i;return a.toString(16)+r},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},KJUR.asn1.DERAbstractString=function(e){KJUR.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(n){this.hTLV=null,this.isModified=!0,this.s=n,this.hV=stohex(this.s)},this.setStringHex=function(n){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=n},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"?this.setString(e):typeof e.str<"u"?this.setString(e.str):typeof e.hex<"u"&&this.setStringHex(e.hex))},YAHOO.lang.extend(KJUR.asn1.DERAbstractString,KJUR.asn1.ASN1Object),KJUR.asn1.DERAbstractTime=function(e){KJUR.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(n){utc=n.getTime()+n.getTimezoneOffset()*6e4;var r=new Date(utc);return r},this.formatDate=function(n,r,i){var a=this.zeroPadding,o=this.localDateToUTC(n),s=String(o.getFullYear());r=="utc"&&(s=s.substr(2,2));var l=a(String(o.getMonth()+1),2),c=a(String(o.getDate()),2),u=a(String(o.getHours()),2),f=a(String(o.getMinutes()),2),x=a(String(o.getSeconds()),2),h=s+l+c+u+f+x;if(i===!0){var g=o.getMilliseconds();if(g!=0){var v=a(String(g),3);v=v.replace(/[0]+$/,""),h=h+"."+v}}return h+"Z"},this.zeroPadding=function(n,r){return n.length>=r?n:new Array(r-n.length+1).join("0")+n},this.getString=function(){return this.s},this.setString=function(n){this.hTLV=null,this.isModified=!0,this.s=n,this.hV=stohex(n)},this.setByDateValue=function(n,r,i,a,o,s){var l=new Date(Date.UTC(n,r-1,i,a,o,s,0));this.setByDate(l)},this.getFreshValueHex=function(){return this.hV}},YAHOO.lang.extend(KJUR.asn1.DERAbstractTime,KJUR.asn1.ASN1Object),KJUR.asn1.DERAbstractStructured=function(e){KJUR.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(n){this.hTLV=null,this.isModified=!0,this.asn1Array=n},this.appendASN1Object=function(n){this.hTLV=null,this.isModified=!0,this.asn1Array.push(n)},this.asn1Array=new Array,typeof e<"u"&&typeof e.array<"u"&&(this.asn1Array=e.array)},YAHOO.lang.extend(KJUR.asn1.DERAbstractStructured,KJUR.asn1.ASN1Object),KJUR.asn1.DERBoolean=function(){KJUR.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},YAHOO.lang.extend(KJUR.asn1.DERBoolean,KJUR.asn1.ASN1Object),KJUR.asn1.DERInteger=function(e){KJUR.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(n){this.hTLV=null,this.isModified=!0,this.hV=KJUR.asn1.ASN1Util.bigIntToMinTwosComplementsHex(n)},this.setByInteger=function(n){var r=new BigInteger(String(n),10);this.setByBigInteger(r)},this.setValueHex=function(n){this.hV=n},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.bigint<"u"?this.setByBigInteger(e.bigint):typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},YAHOO.lang.extend(KJUR.asn1.DERInteger,KJUR.asn1.ASN1Object),KJUR.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var n=KJUR.asn1.ASN1Util.newObject(e.obj);e.hex="00"+n.getEncodedHex()}KJUR.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(r){this.hTLV=null,this.isModified=!0,this.hV=r},this.setUnusedBitsAndHexValue=function(r,i){if(r<0||7<r)throw"unused bits shall be from 0 to 7: u = "+r;var a="0"+r;this.hTLV=null,this.isModified=!0,this.hV=a+i},this.setByBinaryString=function(r){r=r.replace(/0+$/,"");var i=8-r.length%8;i==8&&(i=0);for(var a=0;a<=i;a++)r+="0";for(var o="",a=0;a<r.length-1;a+=8){var s=r.substr(a,8),l=parseInt(s,2).toString(16);l.length==1&&(l="0"+l),o+=l}this.hTLV=null,this.isModified=!0,this.hV="0"+i+o},this.setByBooleanArray=function(r){for(var i="",a=0;a<r.length;a++)r[a]==!0?i+="1":i+="0";this.setByBinaryString(i)},this.newFalseArray=function(r){for(var i=new Array(r),a=0;a<r;a++)i[a]=!1;return i},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):typeof e.hex<"u"?this.setHexValueIncludingUnusedBits(e.hex):typeof e.bin<"u"?this.setByBinaryString(e.bin):typeof e.array<"u"&&this.setByBooleanArray(e.array))},YAHOO.lang.extend(KJUR.asn1.DERBitString,KJUR.asn1.ASN1Object),KJUR.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var n=KJUR.asn1.ASN1Util.newObject(e.obj);e.hex=n.getEncodedHex()}KJUR.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},YAHOO.lang.extend(KJUR.asn1.DEROctetString,KJUR.asn1.DERAbstractString),KJUR.asn1.DERNull=function(){KJUR.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},YAHOO.lang.extend(KJUR.asn1.DERNull,KJUR.asn1.ASN1Object),KJUR.asn1.DERObjectIdentifier=function(e){var n=function(i){var a=i.toString(16);return a.length==1&&(a="0"+a),a},r=function(i){var a="",o=new BigInteger(i,10),s=o.toString(2),l=7-s.length%7;l==7&&(l=0);for(var c="",u=0;u<l;u++)c+="0";s=c+s;for(var u=0;u<s.length-1;u+=7){var f=s.substr(u,7);u!=s.length-7&&(f="1"+f),a+=n(parseInt(f,2))}return a};KJUR.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(i){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueOidString=function(i){if(!i.match(/^[0-9.]+$/))throw"malformed oid string: "+i;var a="",o=i.split("."),s=parseInt(o[0])*40+parseInt(o[1]);a+=n(s),o.splice(0,2);for(var l=0;l<o.length;l++)a+=r(o[l]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=a},this.setValueName=function(i){var a=KJUR.asn1.x509.OID.name2oid(i);if(a!=="")this.setValueOidString(a);else throw"DERObjectIdentifier oidName undefined: "+i},this.getFreshValueHex=function(){return this.hV},e!==void 0&&(typeof e=="string"?e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e):e.oid!==void 0?this.setValueOidString(e.oid):e.hex!==void 0?this.setValueHex(e.hex):e.name!==void 0&&this.setValueName(e.name))},YAHOO.lang.extend(KJUR.asn1.DERObjectIdentifier,KJUR.asn1.ASN1Object),KJUR.asn1.DEREnumerated=function(e){KJUR.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(n){this.hTLV=null,this.isModified=!0,this.hV=KJUR.asn1.ASN1Util.bigIntToMinTwosComplementsHex(n)},this.setByInteger=function(n){var r=new BigInteger(String(n),10);this.setByBigInteger(r)},this.setValueHex=function(n){this.hV=n},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},YAHOO.lang.extend(KJUR.asn1.DEREnumerated,KJUR.asn1.ASN1Object),KJUR.asn1.DERUTF8String=function(e){KJUR.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},YAHOO.lang.extend(KJUR.asn1.DERUTF8String,KJUR.asn1.DERAbstractString),KJUR.asn1.DERNumericString=function(e){KJUR.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},YAHOO.lang.extend(KJUR.asn1.DERNumericString,KJUR.asn1.DERAbstractString),KJUR.asn1.DERPrintableString=function(e){KJUR.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},YAHOO.lang.extend(KJUR.asn1.DERPrintableString,KJUR.asn1.DERAbstractString),KJUR.asn1.DERTeletexString=function(e){KJUR.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},YAHOO.lang.extend(KJUR.asn1.DERTeletexString,KJUR.asn1.DERAbstractString),KJUR.asn1.DERIA5String=function(e){KJUR.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},YAHOO.lang.extend(KJUR.asn1.DERIA5String,KJUR.asn1.DERAbstractString),KJUR.asn1.DERUTCTime=function(e){KJUR.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(n){this.hTLV=null,this.isModified=!0,this.date=n,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{12}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date))},YAHOO.lang.extend(KJUR.asn1.DERUTCTime,KJUR.asn1.DERAbstractTime),KJUR.asn1.DERGeneralizedTime=function(e){KJUR.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(n){this.hTLV=null,this.isModified=!0,this.date=n,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{14}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date),e.millis===!0&&(this.withMillis=!0))},YAHOO.lang.extend(KJUR.asn1.DERGeneralizedTime,KJUR.asn1.DERAbstractTime),KJUR.asn1.DERSequence=function(e){KJUR.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var n="",r=0;r<this.asn1Array.length;r++){var i=this.asn1Array[r];n+=i.getEncodedHex()}return this.hV=n,this.hV}},YAHOO.lang.extend(KJUR.asn1.DERSequence,KJUR.asn1.DERAbstractStructured),KJUR.asn1.DERSet=function(e){KJUR.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var n=new Array,r=0;r<this.asn1Array.length;r++){var i=this.asn1Array[r];n.push(i.getEncodedHex())}return this.sortFlag==!0&&n.sort(),this.hV=n.join(""),this.hV},typeof e<"u"&&typeof e.sortflag<"u"&&e.sortflag==!1&&(this.sortFlag=!1)},YAHOO.lang.extend(KJUR.asn1.DERSet,KJUR.asn1.DERAbstractStructured),KJUR.asn1.DERTaggedObject=function(e){KJUR.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(n,r,i){this.hT=r,this.isExplicit=n,this.asn1Object=i,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=i.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,r),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.tag<"u"&&(this.hT=e.tag),typeof e.explicit<"u"&&(this.isExplicit=e.explicit),typeof e.obj<"u"&&(this.asn1Object=e.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},YAHOO.lang.extend(KJUR.asn1.DERTaggedObject,KJUR.asn1.ASN1Object);var __extends=globalThis&&globalThis.__extends||function(){var e=function(n,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(i[o]=a[o])},e(n,r)};return function(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(n,r);function i(){this.constructor=n}n.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),JSEncryptRSAKey=function(e){__extends(n,e);function n(r){var i=e.call(this)||this;return r&&(typeof r=="string"?i.parseKey(r):(n.hasPrivateKeyProperty(r)||n.hasPublicKeyProperty(r))&&i.parsePropertiesFrom(r)),i}return n.prototype.parseKey=function(r){try{var i=0,a=0,o=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,s=o.test(r)?Hex.decode(r):Base64.unarmor(r),l=ASN1.decode(s);if(l.sub.length===3&&(l=l.sub[2].sub[0]),l.sub.length===9){i=l.sub[1].getHexStringValue(),this.n=parseBigInt(i,16),a=l.sub[2].getHexStringValue(),this.e=parseInt(a,16);var c=l.sub[3].getHexStringValue();this.d=parseBigInt(c,16);var u=l.sub[4].getHexStringValue();this.p=parseBigInt(u,16);var f=l.sub[5].getHexStringValue();this.q=parseBigInt(f,16);var x=l.sub[6].getHexStringValue();this.dmp1=parseBigInt(x,16);var h=l.sub[7].getHexStringValue();this.dmq1=parseBigInt(h,16);var g=l.sub[8].getHexStringValue();this.coeff=parseBigInt(g,16)}else if(l.sub.length===2)if(l.sub[0].sub){var v=l.sub[1],p=v.sub[0];i=p.sub[0].getHexStringValue(),this.n=parseBigInt(i,16),a=p.sub[1].getHexStringValue(),this.e=parseInt(a,16)}else i=l.sub[0].getHexStringValue(),this.n=parseBigInt(i,16),a=l.sub[1].getHexStringValue(),this.e=parseInt(a,16);else return!1;return!0}catch{return!1}},n.prototype.getPrivateBaseKey=function(){var r={array:[new KJUR.asn1.DERInteger({int:0}),new KJUR.asn1.DERInteger({bigint:this.n}),new KJUR.asn1.DERInteger({int:this.e}),new KJUR.asn1.DERInteger({bigint:this.d}),new KJUR.asn1.DERInteger({bigint:this.p}),new KJUR.asn1.DERInteger({bigint:this.q}),new KJUR.asn1.DERInteger({bigint:this.dmp1}),new KJUR.asn1.DERInteger({bigint:this.dmq1}),new KJUR.asn1.DERInteger({bigint:this.coeff})]},i=new KJUR.asn1.DERSequence(r);return i.getEncodedHex()},n.prototype.getPrivateBaseKeyB64=function(){return hex2b64(this.getPrivateBaseKey())},n.prototype.getPublicBaseKey=function(){var r=new KJUR.asn1.DERSequence({array:[new KJUR.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new KJUR.asn1.DERNull]}),i=new KJUR.asn1.DERSequence({array:[new KJUR.asn1.DERInteger({bigint:this.n}),new KJUR.asn1.DERInteger({int:this.e})]}),a=new KJUR.asn1.DERBitString({hex:"00"+i.getEncodedHex()}),o=new KJUR.asn1.DERSequence({array:[r,a]});return o.getEncodedHex()},n.prototype.getPublicBaseKeyB64=function(){return hex2b64(this.getPublicBaseKey())},n.wordwrap=function(r,i){if(i=i||64,!r)return r;var a="(.{1,"+i+`})( +|$
94
94
  ?)|(.{1,`+i+"})";return r.match(RegExp(a,"g")).join(`
95
95
  `)},n.prototype.getPrivateKey=function(){var r=`-----BEGIN RSA PRIVATE KEY-----
96
96
  `;return r+=n.wordwrap(this.getPrivateBaseKeyB64())+`
97
97
  `,r+="-----END RSA PRIVATE KEY-----",r},n.prototype.getPublicKey=function(){var r=`-----BEGIN PUBLIC KEY-----
98
98
  `;return r+=n.wordwrap(this.getPublicBaseKeyB64())+`
99
- `,r+="-----END PUBLIC KEY-----",r},n.hasPublicKeyProperty=function(r){return r=r||{},r.hasOwnProperty("n")&&r.hasOwnProperty("e")},n.hasPrivateKeyProperty=function(r){return r=r||{},r.hasOwnProperty("n")&&r.hasOwnProperty("e")&&r.hasOwnProperty("d")&&r.hasOwnProperty("p")&&r.hasOwnProperty("q")&&r.hasOwnProperty("dmp1")&&r.hasOwnProperty("dmq1")&&r.hasOwnProperty("coeff")},n.prototype.parsePropertiesFrom=function(r){this.n=r.n,this.e=r.e,r.hasOwnProperty("d")&&(this.d=r.d,this.p=r.p,this.q=r.q,this.dmp1=r.dmp1,this.dmq1=r.dmq1,this.coeff=r.coeff)},n}(RSAKey),_a,version=typeof process<"u"?(_a=process.env)===null||_a===void 0?void 0:_a.npm_package_version:void 0,JSEncrypt=function(){function e(n){n===void 0&&(n={}),n=n||{},this.default_key_size=n.default_key_size?parseInt(n.default_key_size,10):1024,this.default_public_exponent=n.default_public_exponent||"010001",this.log=n.log||!1,this.key=null}return e.prototype.setKey=function(n){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new JSEncryptRSAKey(n)},e.prototype.setPrivateKey=function(n){this.setKey(n)},e.prototype.setPublicKey=function(n){this.setKey(n)},e.prototype.decrypt=function(n){try{return this.getKey().decrypt(b64tohex(n))}catch{return!1}},e.prototype.encrypt=function(n){try{return hex2b64(this.getKey().encrypt(n))}catch{return!1}},e.prototype.sign=function(n,r,i){try{return hex2b64(this.getKey().sign(n,r,i))}catch{return!1}},e.prototype.verify=function(n,r,i){try{return this.getKey().verify(n,b64tohex(r),i)}catch{return!1}},e.prototype.getKey=function(n){if(!this.key){if(this.key=new JSEncryptRSAKey,n&&{}.toString.call(n)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,n);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},e.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},e.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},e.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},e.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},e.version=version,e}();const encryptor=new JSEncrypt,aesKey=createAesKey();function createAesKey(){let n=Math.random().toString(36).substr(2);for(;n.length<16;)n+=Math.random().toString(36).substr(2);return n=n.substr(0,16),n}const iv=CryptoJS.enc.Utf8.parse("ABCDEF1234123412");function aesEncrypt(e,n){n=n||aesKey;const r=CryptoJS.enc.Utf8.parse(n);let i="";switch(typeof e){case"string":i=CryptoJS.enc.Utf8.parse(e);break;case"object":i=CryptoJS.enc.Utf8.parse(JSON.stringify(e));break;default:i=CryptoJS.enc.Utf8.parse(e.toString())}return CryptoJS.AES.encrypt(i,r,{iv,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.ZeroPadding}).toString()}function aesDecrypt(e,n){n=n||aesKey;const r=CryptoJS.enc.Utf8.parse(n),i=CryptoJS.AES.decrypt(e,r,{iv,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.ZeroPadding});return CryptoJS.enc.Utf8.stringify(i).toString()}function setPublicKey(e){encryptor.setPublicKey(e)}function rsaEncrypt(e){return encryptor.encrypt(e)}function hasEncryptUrl(e=""){e.startsWith("/")||(e="/"+e),e=e.split("?")[0];const r=["/diagram","/dataview"].map(i=>`^(.*?)${i}(/|$)`);for(const i of r)if(new RegExp(i).test(e))return!0;return!1}function EncryptConfigParam(e){const{paramType:n,data:r,params:i,method:a}=e;n==="form"?["get","delete"].includes(a)?e.params=getEncryptParam(i,"string"):e.data=getEncryptParam(r,"string"):["get","delete"].includes(a)?e.params=getEncryptParam(i,"string"):e.data=getEncryptParam(r)}function getEncryptParam(e,n){let r=e||{};if(n==="string"){r="";for(const l in e)if(Object.hasOwnProperty.call(e,l)){const c=e[l];r+=`${l}=${encodeURIComponent(c)}&`}}setPublicKey("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMKaTbS1XHH7u/4dhao1n5Lcegpy6AHKX2TjmTP7IDW6N4wznqlL3Tt+U0/Il1TlNp1/EN+tffYYg4dPrrCUDwcCAwEAAQ==");const a=rsaEncrypt(aesKey);return{c:aesEncrypt(r,aesKey),p:a}}window.getEncryptParam=getEncryptParam;function encryptData(e,n){var r;(r=window==null?void 0:window.config)!=null&&r.encryptFlag&&hasEncryptUrl(e.url)&&(e.data instanceof FormData?e.data=getEncryptFileParam(e.data):EncryptConfigParam(e))}function getEncryptFileParam(e){const n=e.entries(),r=new FormData,i={};for(const o of n){const s=o[0],l=o[1];l instanceof Blob?r.append(s,l):i[s]=l}const a=getEncryptParam(i,"json");return typeof a=="object"&&(r.append("c",a.c),r.append("p",a.p)),r}window.xhaesKey=aesKey,window.xhaesDecrypt=aesDecrypt;function decryptData(e,n){var r;if((r=window==null?void 0:window.config)!=null&&r.encryptFlag&&hasEncryptUrl(e.config.url)&&!(e.data instanceof Blob)&&e.data.data!==void 0){const i=aesDecrypt(e.data.data.content,aesKey);e.data=JSON.parse(i)}}const requestErrorTip=window.config.requestErrorTip,request=axios.create({timeout:1e3*180});request.interceptors.request.use(e=>{const{requestParams:n={}}=window.config;return n!=null&&n.pltToken&&(e.headers["Plt-Token"]=n.pltToken),encryptData(e),e},e=>Promise.reject(e)),request.interceptors.response.use(e=>{var n,r,i;return requestErrorTip&&+((n=e==null?void 0:e.data)==null?void 0:n.code)==500&&antDesignVue.message.error({content:((r=e==null?void 0:e.data)==null?void 0:r.msg)||((i=e==null?void 0:e.data)==null?void 0:i.message)||"服务器异常",key:"SERVER_ERROR",duration:2}),decryptData(e),e},e=>{if(decryptData(e==null?void 0:e.response),requestErrorTip)if(e.message.includes("timeout"))antDesignVue.message.error({content:"网络连接超时,请重试!",key:"TIMEOUT",duration:2});else{const{status:n}=(e==null?void 0:e.response)||{};n>=400&&n<500&&antDesignVue.message.error({content:"请求异常",key:"REQUEST_ERROR",duration:2}),n>=500&&antDesignVue.message.error({content:"服务器异常",key:"REQUEST_ERROR",duration:2})}return Promise.reject(e)});const runCode=(e,n)=>{const r={dayjs,...n};let i="";const a=[];for(const l in r)i+=`${l},`,a.push(r[l]);i=i.replace(/,$/,"");const o=`function (${i}){return ${e}}`;let s;try{s=Function(`"use strict";return (${o})`)()(...a)}catch{return e}return s},useVariablesInText=(e="",{textData:n,codeData:r}={},{useNewline:i=!1,useSpace:a=!1}={})=>{const s={...window.config||{},...n},l=e.match(/\{(.+?)\}/g);if(l==null||l.length===0)return e;for(let c=0;c<l.length;c++){const u=l[c];let f=u.slice(1,-1).trim();const x=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,h=f.match(x);for(let g=0;g<h.length;g++){const v=h[g],p=s[v];p!=null&&typeof p!="function"&&(f=f.replace(v,p))}(/\(.*\)/g.test(f)||/[+/\\*]/g.test(f))&&(f=runCode(f,r)),e=e.replace(u,f)}return i&&(e=e==null?void 0:e.replace(/\n|\\n/g,"<br/>")),a&&(e=e==null?void 0:e.replace(/\s{2,}?/g,"&nbsp;&nbsp;")),e},useRequestData=(e,n,r=()=>{})=>{const{requestUrl:i,requestMethod:a,requestHeaders:o,requestParams:s,requestInterval:l,isOpenRequestTimer:c,openCustomRequestData:u,projectRequestUrl:f="",getModel:x,requestParamsMode:h,customRequestParams:g,dataSetParam:v,requestType:p,dataType:E}=e,{pageMode:b}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"})||{},{pageId:d}=vue.inject("templateOperate",{pageId:""})||{},{contextRequestUrl:m,touchEventId:y}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:"",touchEventId:""})||{},{getGlobalModel:A}=vue.inject(GLOBAL_MODEL,{getGlobalModel:M=>{}})||{},_=x||A,k=useVariablesInText(i),T=async(M={})=>{var S;if(E!=="request"&&F){clearInterval(F);return}if(!k||!a||!o)return;let B={};for(const C of s){const{key:N,value:w}=C;if((w==null?void 0:w.id)==="PARENT"&&(w!=null&&w.prop)){const O=(((S=window.config)==null?void 0:S.record)||{})[w.prop];if(O){const D=O[w.propKey||"value"];D&&(["date","range"].some(U=>lowerCaseIncludes(O==null?void 0:O.type,U))?B[N]=vue.unref(D).format(O.format||"YYYY-MM-DD"):B[N]=vue.unref(D))}continue}if(typeof w=="object"&&w!=null&&w.id){let q={};const{id:O,prop:D,propKey:$,operate:U}=w;let j=!1;try{JSON.parse(O),j=!0}catch{j=!1}O==="THIS"?q=_(vue.unref(y))||{}:q=_(O)||{};const K=vue.unref(q[D]);let G=null;if(["date","range"].some(J=>lowerCaseIncludes(q==null?void 0:q.type,J))){const{value:J,type:ee,mode:Z}=U||{};if(J&&ee&&Z)switch(ee){case"add":G=vue.unref(K).add(J,Z);break;case"minus":G=vue.unref(K).subtract(J,Z);break}G==null&&(G=vue.unref(K)),G=(G==null?void 0:G.format(($==null?void 0:$.trim())||q.format))||""}else if(Object.prototype.toString.call(K)==="[object Object]")$?G=K[$]:G=D?K[D]:K;else if(lowerCaseIncludes(q==null?void 0:q.type,"select")&&vue.unref(K)&&D&&Array.isArray(vue.unref(K)))G=vue.unref(K).map(J=>Object.prototype.hasOwnProperty.call(J,D)?J[D]:J);else if(j){const J=JSON.parse(O);console.log(J,"urlvalue"),G=J.value}else G=K;B[N]=G}else typeof w=="object"&&w.id===null&&p===1?(console.log(w.propKey,"value.propKey"),B[N]=w.propKey):typeof w=="string"&&(B[N]=useVariablesInText(w))}if(p===1){console.log(B,"_params");const C=Object.entries(B);v.param=v.param.map((N,w)=>({...N,paramKey:C[w][0],defaultValue:C[w][1]||""})),B=v}if(h==="2"&&g!=="{}"){const C=JSON.parse(g);L(C),C&&(B=C)}function L(C){const N={...B,...getPageUrlParams(d)};if(Array.isArray(C))C.forEach((w,q)=>{if(typeof w=="string"){const O=w.match(/\${(.+?)\}/g);if(O!=null&&O.length){const D=O[0].slice(2,-1);D&&N[D]?C[q]=N[D]:C[q]=""}}else L(w)});else if(Object.prototype.toString.call(C)==="[object Object]")for(const w in C)if(typeof C[w]=="string"){const q=C[w].match(/\${(.+?)\}/g);if(q!=null&&q.length){const O=q[0].slice(2,-1);O&&N[O]?C[w]=N[O]:C[w]=""}}else L(C[w])}B={...getPageUrlParams(d),...M,...B};let R="";const H=Object.keys(B),V=H.length-1,P=H.length;H.forEach((C,N)=>{let w=B[C];Object.prototype.toString.call(w)==="[object Object]"&&(w=JSON.stringify(w)),N===0?P!==1?R+=`?${C}=${w}&`:R+=`?${C}=${w}`:N===V?R+=`${C}=${w}`:R+=`${C}=${w}&`});function I(C){var N;if(p===1)return{Authentication:(N=window==null?void 0:window.config)==null?void 0:N.indicatorToken};if(typeof C=="string"){const w=JSON.parse(C),q=getPageUrlParams(d);if(Object.prototype.toString.call(w)==="[object Object]"){for(const O in w)if(typeof w[O]=="string"){const D=w[O].match(/\${(.+?)\}/g);if(D!=null&&D.length){const $=D[0].slice(2,-1);$&&q[$]?w[O]=q[$]:w[O]=""}}}return w}else return C}try{const C=["get","head"].includes(a),N={};let w=C?k+R:k;B.dataSqlId&&!w.includes("dataSqlId")&&(w+=`${w.includes("?")?"&":"?"}dataSqlId=${B.dataSqlId}`),Object.prototype.hasOwnProperty.call(B,"signal")?N.signal=B.signal:window.controller&&(N.signal=window.controller.signal);const q=await request({baseURL:vue.unref(m)||f||"",url:w,method:a,headers:o?I(o):{},data:C?{}:B,...N});return r(q),q}catch(C){console.error(C)}},F=vue.unref(b)!=="design"&&c&&(u||u===void 0)&&setInterval(T,l*1e3);return vue.onUnmounted(()=>{clearInterval(F)}),T},useTransformChartDataByAttrKey=(e=[],n,r=!1)=>{let{name:i="name",types:a=[]}=n||{};i=(i==null?void 0:i.trim())||i;const o=new Set,s=new Map,l=e.length,c=a.length;if(l===1&&!r){const x=[];for(let g=0;g<c;g++){const v=a[g],{label:p,value:E}=v,b={...e[0],value:e[0][E]};o.add(p),x.push(b)}const h=e[0][i]||"";s.set(h,x)}else for(let x=0;x<l;x++){const h=e[x],g=h[i];o.add(g);for(let v=0;v<c;v++){const p=a[v],{label:E,value:b}=p,d={...h,value:h[b]||0};if(s.has(E)){const m=s.get(E);m.push(d),s.set(E,m)}else s.set(E,[d])}}const u=Array.from(o),f=[];for(const[x,h]of s)f.push({name:x,data:h});return{dimensions:u,dataset:f}},useImagePath=(e,n=!1)=>{var i;if(!e)return e;let r="";return e!=null&&e.includes("://")?r=e:r=((i=window==null?void 0:window.config)==null?void 0:i.uploadPath)+e,n&&(r=`url(${r})`),r},usePageUrl=(e,n)=>{const r=`${BASE_URL}/preview?pageId=${n}`,i=`${BASE_URL}/${n}`;return e==="preview"?r:i},useValueFormatter=(e,n)=>{var a;if(e==null)return n;const r=e.match(/\{.*\}/g);if(r==null||r.length===0)return n;const i=r.length;for(let o=0;o<i;o++){const s=r[o];if(s==null||s==="")break;let l=(a=s.slice(1,-1))==null?void 0:a.trim();l=l==null?void 0:l.replace(/value/g,n);try{let c=l;(/\(.*\)/g.test(l)||/[+/\\*]/g.test(l))&&(c=runCode(l)),e=e.replace(s,c)}catch{e=e.replace(s,l)}}return e},useIndicatorData=(e={},n=()=>{})=>{var _;const{pageMode:r}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),{requestToken:i}=vue.inject(GLOBAL_TOKEN,{requestToken:()=>{}}),{setLoadedData:a}=vue.inject(LOADED_DATA,{setLoadedData:(k,T)=>{}}),{getGlobalModel:o}=vue.inject(GLOBAL_MODEL,{getGlobalModel:k=>{}}),{pageId:s}=vue.inject("templateOperate",{pageId:""})||{};e.dataType==="indicator"&&i();const l=k=>{const{around:T,unit:F,id:M}=k;let B="";const{pageMode:L="",componentList:R=[]}=(e==null?void 0:e.graphicConfig)||{};let H=null,V=null;if(L==="design"){const P=R==null?void 0:R.find(O=>O.id===M);if(!P)return[];const{interval:I,intervalUnit:S,startTime:C,endTime:N,operate:w,useCurrentTime:q}=P||{};if(q&&(H=dayjs().subtract(I,S),V=dayjs()),C&&(H=dayjs(C)),N&&(V=dayjs(N)),w){const{type:O,value:D,mode:$}=w;switch(O){case"add":H=H&&H.add(D,$),V=V&&V.add(D,$);break;case"minus":H=H&&H.subtract(D,$),V=V&&V.subtract(D,$)}}}else{const P=o(M)||{};vue.unref(P.startTime)&&(H=dayjs(vue.unref(P.startTime))),vue.unref(P.endTime)&&(V=dayjs(vue.unref(P.endTime)))}if(H&&V){const P=V.diff(H,F.toLowerCase());B=`${T==="before"?"-":""}${P+1}`}return B?[B]:[]},c=(k,T)=>Object.prototype.hasOwnProperty.call(k,T),u=(k,T)=>{if(T)c(k,"indexCode")&&(k.hrpIndexCode=k.indexCode,delete k.indexCode),c(k,"indexCodeNum")&&(k.hrpIndexCodeNum=k.indexCodeNum,delete k.indexCodeNum),c(k,"dataType")&&delete k.dataType;else{const{calcWays:F=[],dateCalcTypes:M=[],activeKey:B,componentId:L=""}=k;if(B===5&&(F!=null&&F.length)&&(M!=null&&M.length)&&L){const R=F[0].split("-");(R==null?void 0:R.length)>1&&R[0]==="rangeValue"&&(k.calcWays=l({around:R[1],unit:M[0],id:L})),delete k.radioValue}if(c(k,"dataType")){if(k.fieldType==="DATE"&&(k.label=k.fieldName),k.dataType==="component")if(k.fieldValue==="PARENT"){let R=k.modelKey;R&&k.prop&&(R+=`-${k.prop}`),k.fieldValue="${"+R+"}"}else k.fieldValue="${"+k.fieldValue+"}";delete k.dataType}c(k,"activeKey")&&delete k.activeKey,c(k,"radioValue")&&delete k.radioValue,c(k,"indexCode")&&(k.hrpIndexCode=k.indexCode,delete k.indexCode),c(k,"indexCodeNum")&&(k.hrpIndexCodeNum=k.indexCodeNum,delete k.indexCodeNum),k.dataType!=="component"&&k.useCurrentTime&&(k.fieldValue=dayjs().format(k.dateFormat)),c(k,"modelKey")&&delete k.modelKey,c(k,"prop")&&delete k.prop,delete k.useCurrentTime}},f=(k,T)=>{const F=[];return k!=null&&k.length&&lodashEs.cloneDeep(k).forEach(M=>{if(M.join&&M.conditions){const B=!M.conditions.some(L=>L.join&&L.conditions);M.conditions.forEach((L,R)=>{u(L,T);const H={};if(R<M.conditions.length-1&&(H.join=M.join),B)F.push({...H,...L});else if(L.join&&L.conditions){const V=T?"sqlConditions":"conditions";F.push({[V]:f([L],T),...H})}else F.push({...H,...L})})}else u(M,T),F.push(M)}),F},x=(k={},T)=>{if(k!=null&&k.sortCpnts&&T){const j=m(k);j&&(T.sort=j)}const{label:F,name:M,location:B,show:L,indexCode:R,indexCodeNum:H,calcType:V="COLUMN",builtInFormula:P,builtInValueSource:I,builtInCalcWay:S,formula:C,conditions:N,aggregate:w,distinct:q,dimByCount:O,dataTo:D}=k;let $;if(N&&($=f(N)),V==="COMPONENT"){const j={};return b(j,I),{label:F.trim(),columnName:M,show:L,calcType:V,componentAlias:S,componentValue:j.fieldValue||null}}const U={label:F.trim(),columnName:M,location:B,show:L,calcType:D==="1"?"VIEW":V,hrpIndexCode:R,hrpIndexCodeNum:H,aggregate:w,builtInFormula:P,builtInValueSource:I,formula:C,conditions:$};if(P==="DATE_OFFSET"){const j=S.split("-");if((j==null?void 0:j.length)===3){let K=j[0];return j[2]==="before"&&j[0]!=="0"&&(K=`-${j[0]}`),{...U,calcWays:[K],dateCalcTypes:[j[1]]}}}else return M==="the_count"&&(U.calcType="AGGREGATE",U.distinct=!!q,U.typeGuid=O),{...U,builtInCalcWay:S}},h=k=>{if(!k)return[];const T=lodashEs.cloneDeep((k==null?void 0:k.controlList)||[]).filter(w=>w.conditionKey!=="parentCode"),{classificationList:F=[],rowHeaderList:M=[],dimensionList:B=[],seriesList:L=[],leftAxisList:R=[],rightAxisList:H=[],queryColumnList:V=[],indicators:P=[]}=k;p(T);const I=[...F,...M,...B,...L,...R,...H,...V,...P],S=[];for(const w of I){const q=getConditions((w==null?void 0:w.conditions)||[]);if(q!=null&&q.length){const O=q.filter(D=>(D==null?void 0:D.dataType)==="component").map(D=>{const $={};return D!=null&&D.dateFormat&&($.format=D.dateFormat),D.fieldValue==="PARENT"&&($.id="PARENT",$.keyName=D.modelKey,$.modelKey=D.modelKey,$.prop=D.prop),{conditionKey:D.fieldName,conditionLabel:D.fieldName,conditionName:D.fieldName,conditionValueType:D.fieldType,id:D.componentId,keyName:D.fieldValue,rule:D.rule,notGlobal:!0,indexCode:D.indexCode,typeGuid:D.typeGuid,indexCodeNum:D.indexCodeNum,...$}});if(O!=null&&O.length)for(const D of O)S.find($=>$.keyName===D.keyName)||S.push(D)}}const C=S.length,N=T;for(let w=0;w<C;w++){const q=S[w];if((q==null?void 0:q.conditionKey)==="parentCode")continue;const{id:O,keyName:D,prop:$,format:U,modelKey:j,dataType:K="component",customValue:G}=q,Y=g(q);b(Y,O,{prop:$,dateFormat:U,modelKey:j,keyName:D}),K===""&&(Y.fieldValue=G||""),N.push(Y)}for(let w=N.length-1;w>=0;w--){const q=N[w];q.globalCondition||getConditions(N).find(D=>D.alias===q.alias&&D.globalCondition)&&N.splice(w,1)}return N};function g(k){const{id:T,keyName:F,conditionLabel:M,conditionKey:B,conditionValueType:L,prop:R,rule:H="NONE",notGlobal:V=!1,indexCode:P,typeGuid:I,indexCodeNum:S,dataType:C="component"}=k;let N=F||T;N&&R&&(N+=`-${R}`);let w=H;return w==="NONE"&&(["startTime","endTime"].includes(R)?w=R==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":F!=null&&F.includes("startTime")?w=R==="GREATER_EQUAL":F!=null&&F.includes("endTime")?w=R==="LESS_EQUAL":w="EQUAL"),T==="PARENT"&&(N=k.modelKey,N&&R&&(N+=`-${R}`),w=H),{rule:w,label:M,fieldName:B,fieldValue:"",valueType:L,alias:N,globalCondition:!V,indexCode:P,typeGuid:I,indexCodeNum:S,dataType:C}}const v=["keyValue","conditionKey","conditionLabel","conditionName","conditionValueType","customValue","id","keyName"];function p(k){if(k!=null&&k.length)for(const T of k)if(T!=null&&T.conditions)p(T.conditions);else{const{id:F,keyName:M,prop:B,modelKey:L,format:R,dataType:H="component",customValue:V}=T,P=g(T);b(P,F,{prop:B,dateFormat:R,modelKey:L,keyName:M}),H===""&&(P.fieldValue=V||"");for(const I in P)T[I]=P[I];for(const I of v)delete T[I]}}function E(k){const T=[];if(k!=null&&k.length){for(const F of k)if(F.variableName){const M={variateName:F.variableName,globalCondition:!1,valueType:F.variableType,alias:F.keyName||""};b(M,F.id,{dateFormat:F.format,prop:F.dateTypeValue,keyName:F.keyName,operateType:F.operateType,operateMode:F.operateMode,operateValue:F.operateValue}),F.dataType===""&&(M.fieldValue=F.variableValue),F.format&&(M.dateFormat=F.format),F.label&&(M.label=F.label),T.push(M)}}return T}function b(k,T,F){const{prop:M="",dateFormat:B="",modelKey:L="",keyName:R="",operateValue:H,operateMode:V,operateType:P}=F||{},I=L||R;if(T==="PARENT"&&I&&M){const $=window.config.record;let U=M,j=B;const K=M.match(/\{(.+?)\}/g);if(K!=null&&K.length){const G=K[0].slice(1,-1).trim();U=M.replace(K[0],""),j=G,k.dateFormat=j}if($&&$[I]){const G=vue.unref($[I][U]);dayjs.isDayjs(G)?k.fieldValue=G.format(j||"YYYY-MM-DD"):k.fieldValue=G}return}const S=o(T)||{},{value:C,format:N="YYYY-MM-DD",type:w="",useCurrentTime:q,RECORD:O}=S||{},D=B||N;if(lowerCaseIncludes(S.type,"date")){let $;if(q?C?$=vue.unref(C):$=dayjs():$=vue.unref(C),H&&V&&P)switch(P){case"add":$=$.add(H,V);break;case"minus":$=$.subtract(H,V);break}k.fieldValue=$==null?void 0:$.format(D),k.dateFormat=D}else if(w==="ecanRangePicker"){let $=M;if(!M){const j=R&&R.split("-");j!=null&&j.length&&($=j[j.length-1])}if(!$)return;let U=null;if(vue.unref(S[$])&&(U=dayjs(vue.unref(S[$]))),H&&V&&P){if(H==="rangeValue"){if(S.startTime&&S.endTime){const j=vue.unref(S.endTime).diff(vue.unref(S.startTime),V)+1;switch(P){case"add":U=U&&U.add(j,V);break;case"minus":U=U&&U.subtract(j,V)}}}else if(!isNaN(+H))switch(P){case"add":U=U&&U.add(H,V);break;case"minus":U=U&&U.subtract(H,V)}}if(U&&(k.fieldValue=U==null?void 0:U.format(D)),$==="rangeValue"&&S.startTime&&S.endTime){const j=getFormatStep(D);j&&(k.fieldValue=vue.unref(S.endTime).diff(vue.unref(S.startTime),j)+1)}k.dateFormat=D}else lowerCaseIncludes(w,MODEL_KEY_LIST)?L&&O?k.fieldValue=O[L]:!L&&O?k.fieldValue=O.value:k.fieldValue=vue.unref(C):k.fieldValue=vue.unref(C)}const d=k=>{var T;if(k){const F=Array.isArray(k)?lodashEs.cloneDeep(k):[lodashEs.cloneDeep(k)];let M="",B=[];const L=[],R=[],H=[];for(const V of F){if(V.defaultCode&&(V.label=V.columnName,delete V.defaultCode),V.type==="CUSTOM"&&(B=V.customOrderColumns),M=V.type,L.push(V.label),(T=V.columnName)!=null&&T.includes("_ecanrepeat_")){const P=V.columnName.split("_ecanrepeat_");R.push(P[0])}else R.push(V.columnName);H.push(V.order)}return M!=="CUSTOM"&&(L==null?void 0:L.length)>1&&(M="COMBINATION"),M==="CUSTOM"?{label:L.join(","),columnName:R.join(","),type:M,customOrderColumns:B}:{label:L.join(","),columnName:R.join(","),order:H.join(","),type:M}}else return k},m=k=>{const{sortCpnts:T=[]}=k;let F,M="";for(const B of T){const L=o(B)||{},{type:R,RECORD:H}=L;if(lowerCaseIncludes(R,"image")&&lowerCaseIncludes(H==null?void 0:H.value,["asc","desc"])){M=H.value.toUpperCase();break}}return M&&(F={label:k.label,columnName:k.name,order:M,type:"NORMAL"}),F},y=async(k={})=>{var Ee,De,Ce,Ie,He,qe,$e,je;a(e.id,!1);const{graphicConfig:T,type:F,isGroupTable:M=!1}=e,B=lowerCaseIncludes(F,"pivottable");let{source:L,dataViewId:R,plugin:H="1",layer:V,chartType:P,classificationList:I=[],rowHeaderList:S=[],dimensionList:C=[],seriesList:N=[],leftAxisList:w=[],rightAxisList:q=[],queryColumnList:O=[],indicators:D=[],controlList:$=[],formFields:U={},variableList:j=[],variableConditions:K=[],idxLibMode:G,preview:Y=!1,edvDataSetId:J}=T||{},ee=[];if((T==null?void 0:T.pageMode)==="design"?(ee=(T.sqlConditions??[]).map(de=>{const me={};if(!c(de,"globalCondition")&&!de.join&&(me.globalCondition=!0),!de.join){const ve=de.rule||"EQUAL";me.rule=ve==="NONE"?"EQUAL":ve}return{...de,...me}}),K!=null&&K.length&&(ee=ee.concat(K))):(ee=h(T),j!=null&&j.length&&(ee=ee.concat(E(j)))),ee!=null&&ee.length){const de=ee.filter(ve=>ve.globalCondition),me=ee.filter(ve=>!ve.globalCondition);(de==null?void 0:de.length)>1&&(ee=[{join:"&&",conditions:de},...me])}ee!=null&&ee.length&&(ee=f(ee,"1")),V==null&&(lowerCaseIncludes(F,["table"])||lowerCaseIncludes(F,["list","circulate"])&&(I==null?void 0:I.length)>1?V="1":lowerCaseIncludes(F,["select","checkbox","radio"])?V="3":V="2");let Z;const W=[];let Q="";if(Array.isArray(I)&&I.length>0&&(!["ecanList","ecanCirculate"].includes(F)||(I==null?void 0:I.length)===1)){const de=I.length;for(let me=0;me<de;me++){const ve=I[me]||{},{label:Ae="",name:_e="",show:Oe=!1,sort:Se,customGroup:Pe,conditions:Be,dateFormat:we,typeGuid:Re="",truncations:Me=[]}=ve;if(Oe||de===1){Q=Re,Z={label:Ae.trim(),columnName:_e,show:Oe,sort:m(ve)||d(Se)||Se,customGroup:Pe,conditions:f(Be),typeGuid:Re},we&&(Z.dateFormat=we),_e==="the_date"&&!Z.dateFormat&&(Z.dateFormat="YYYY-MM");const Fe={};if(Array.isArray(Me)&&Me.length>0){const ze=Me.length;for(let Ve=0;Ve<ze;Ve++){const Ne=Me[Ve]||{},{rule:X="",num:ne=0,name:ie=""}=Ne;X&&ne&&(Fe.num=ne,Fe.rule=X,ie&&(Fe.otherGroupName=ie))}}if((Ee=Object.keys(Fe))!=null&&Ee.length&&(Z.truncation=Fe),lowerCaseIncludes(F,["scatter","valueline"]))W.push(Z);else break}}}let te;if(Array.isArray(N)&&N.length>0){const de=N.length;for(let me=0;me<de;me++){const ve=N[me]||{},{label:Ae="",name:_e="",show:Oe=!1,sort:Se,customGroup:Pe,conditions:Be,typeGuid:we}=ve;if(Oe||de===1){te={label:Ae.trim(),columnName:_e,show:Oe,sort:d(Se),customGroup:Pe,conditions:f(Be),typeGuid:we};break}}}const re=[];w==null||w.forEach(de=>{de.location="LEFT",re.push(x(de,Z))}),q==null||q.forEach(de=>{de.location="RIGHT",re.push(x(de,Z))}),D==null||D.forEach(de=>{de.location="LEFT",re.push(x(de,Z))});const ae=[];["ecanList","ecanCirculate"].includes(F)&&(I==null?void 0:I.length)>1&&(O=I),O==null||O.forEach(de=>{const{label:me,name:ve,location:Ae,show:_e,indexCode:Oe,sort:Se,typeGuid:Pe,indexCodeNum:Be,dateFormat:we,conditions:Re}=de;let Me=d(Se);if(k.sort){const{field:ze,order:Ve}=k.sort;let Ne=re.find(X=>X.label===ze);!Ne&&me===ze&&(Ne=de),Ne&&(Me={columnName:Ne.columnName,label:k.sort.field,order:Ve.toUpperCase(),type:"NORMAL"})}const Fe={label:me,columnName:ve,location:Ae,show:_e,sort:Me,calcType:"COLUMN",hrpIndexCode:Oe,hrpIndexCodeNum:Be,conditions:f(Re),typeGuid:Pe};we&&(Fe.dateFormat=we),ve==="the_date"&&!Fe.dateFormat&&(Fe.dateFormat="YYYY-MM"),ae.push(Fe)});let se=[],fe=[];if(Array.isArray(S)&&S.length>0?fe=S:Array.isArray(C)&&C.length>0&&(fe=C),fe!=null&&fe.length){const de=fe.length;for(let me=0;me<de;me++){const ve=fe[me]||{},{label:Ae="",name:_e="",show:Oe=!1,sort:Se,customGroup:Pe,conditions:Be,truncations:we,typeGuid:Re="",dateFormat:Me}=ve;let Fe=d(Se);if(k.sort){const{field:Ne,order:X}=k.sort;let ne=re.find(ie=>ie.label===Ne);!ne&&ve.label===Ne&&(ne=ve),ne&&(Fe={columnName:ne.columnName,label:k.sort.field,order:X.toUpperCase(),type:"NORMAL"})}const ze={label:Ae.trim(),columnName:_e,show:Oe,sort:Fe,customGroup:Pe,conditions:f(Be),typeGuid:Re};Me&&(ze.dateFormat=Me),_e==="the_date"&&!ze.dateFormat&&(ze.dateFormat="YYYY-MM");const Ve={};if(Array.isArray(we)&&we.length>0){const Ne=we.length;for(let X=0;X<Ne;X++){const ne=we[X]||{},{rule:ie="",num:ce=0,name:le=""}=ne;ie&&ce&&(Ve.num=ce,Ve.rule=ie,le&&(Ve.otherGroupName=le))}}(De=Object.keys(Ve))!=null&&De.length&&(ze.truncation=Ve),se.push(ze)}}let he=[],ge;if(k!=null&&k.pivotTableCal){let de=[];const{calc:me=[],filter:ve=[],truncations:Ae=[],sorts:_e=[]}=k.pivotTableCal;if(re.push(...me),ve!=null&&ve.length)for(const Se of ve){const{type:Pe,...Be}=Se;Pe==="indicators"?de=re:Pe==="dimension"&&(de=ae);const we=de.find(Re=>Re.columnName===Se.fieldName);we&&(we.conditions||(we.conditions=[]),we.conditions.push(Be))}if(Ae!=null&&Ae.length)for(const Se of Ae){const Pe=ae.find(Be=>Be.columnName===Se.key);Pe&&(Pe.truncation={num:Se.num,rule:Se.rule})}if(_e!=null&&_e.length)for(const Se of _e){const{fieldType:Pe,columnHeader:Be,columnData:we,...Re}=Se;Pe==="indicators"?(de=re,he=Be,ge=we):Pe==="dimension"&&(de=ae);const Me=de.find(Fe=>Fe.label===Re.label);Me&&(Me.sort={...Re,columnName:Me.columnName})}const Oe=e.dimensionList.filter(Se=>Se.position==="rows").map(Se=>Se.key);se=[],he=[];for(const Se of ae)Oe.includes(Se.columnName)?se.push(Se):he.push({columnName:Se.columnName})}if(lowerCaseIncludes(F,["text","proportion","counter"])?P="zb":lowerCaseIncludes(F,["valueline"])&&(P="valueline"),M){if(se.length===0||re.length===0)return;P="grouptable"}else{if(V==="1"&&ae.length===0)return;if(V==="2"&&re.length===0)return;if(V==="3"&&(!Q&&L!=="EDV_DATA_SET"||!U.labelField||!U.valueField))return;if(V==="3"&&F==="ecanDataSelect"&&re.length===0)return}C!=null&&C.length&&(V="1",P="grouptable");let ye=s||((Ce=window==null?void 0:window.config)==null?void 0:Ce.pageId);if(!ye){const{pathname:de}=window==null?void 0:window.location;if(de){const me=de.split("/");me!=null&&me.length&&(ye=me[me.length-1])}}if(!lowerCaseIncludes(F,["scatter","valueline"])&&((Ie=Object.keys(U))!=null&&Ie.length)){const de=getConditions($).find(ve=>ve.conditionKey==="parentCode"),me={};if(de){const ve=o(de.id)||{};if(ve!=null&&ve.itemCodes)me.parentItemCodes=ve.itemCodes;else return}F==="ecanDataSelect"&&(me.indicatorList=re.filter(ve=>ve.show)),L==="EDV_DATA_SET"&&(me.edvDataSetId=J);try{const ve=await request({url:`${INDICATOR_URL}/diagram/formData`,method:"post",headers:{Authentication:(He=window==null?void 0:window.config)==null?void 0:He.indicatorToken,operateContext:CONTEXT},data:{source:L,dataViewId:R,plugin:"4",layer:V,chartType:"normalSelect",rangeIndexTypeGuid:Q,type:F==="ecanDataSelect"?"normalSelectData":"normalSelect",labelField:U.labelField,valueField:U.valueField,pageId:ye,sqlConditions:ee,idxLibMode:"WITH_DATE_DIM_TABLE",keyName:e.keyName,...me},signal:((qe=window.controller)==null?void 0:qe.signal)||""});return k!=null&&k.isTimer&&n(ve),ve}catch(ve){console.error(ve)}}else try{let de={};lowerCaseIncludes(F,["scatter","valueline"])?de={classifications:W}:de={classification:Z};const me=await request({url:`${INDICATOR_URL}/diagram`,method:"post",headers:{Authentication:($e=window==null?void 0:window.config)==null?void 0:$e.indicatorToken,operateContext:CONTEXT},data:{source:L,dataViewId:R,plugin:B?"5":H,layer:V,chartType:B?"pivot-table":P,...de,series:te,indicatorList:re,queryColumns:M?[]:ae,pageFlag:!0,pageId:ye,edvDataSetId:J||"",sqlConditions:ee.map(ve=>{const{fieldValue:Ae}=ve,_e={};return Ae&&Array.isArray(Ae)&&(_e.fieldValue=JSON.stringify(Ae)),{...ve,..._e}}),idxLibMode:G,preview:Y,rowHeaders:se,keyName:e.keyName,columnData:ge,columnHeader:he},signal:((je=window.controller)==null?void 0:je.signal)||""});return k!=null&&k.isTimer&&n(me),me}catch(de){console.error(de)}},A=vue.unref(r)!=="design"&&((_=e==null?void 0:e.graphicConfig)==null?void 0:_.pageMode)!=="design"&&e.isOpenRequestTimer&&e.requestInterval&&setInterval(()=>{y({isTimer:!0})},e.requestInterval*1e3);return vue.onUnmounted(()=>{clearInterval(A)}),y},useHrefParamsToGlobalVariables=()=>{const n=window.location.search.slice(1).split("&"),r=n.length,i={};for(let a=0;a<r;a++){const o=n[a];if(o==null||o==="")continue;const s=o.split("=");if(Array.isArray(s)){const l=s[0];l.includes("{")||(i[l]=s[1])}}window.config.requestParams={...window.config.requestParams,...i},window.config={...window.config,...i}},_sfc_main$u=vue.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...pageConfigComponentProps,pageId:{type:String,default:""}},setup(e){const{width:n,height:r}=vue.inject(GLOBAL_CONFIG,{width:null,height:null}),i=vue.inject("setPageHeight",y=>{}),a=vue.inject("isMobile",!1),o=vue.computed(()=>{const y={};return a||(y.width=n.value,y.height=r.value),{...y,backgroundColor:e.pageId?"transparent":e.backgroundColor,backgroundImage:useImagePath(e.backgroundImage,!0),backgroundSize:e.backgroundSize}}),s=vue.ref(0),l=vue.ref(0),c=vue.ref(0),u=vue.ref(0),f=vue.ref(!1),x=vue.ref();let h;const g=()=>new Promise(y=>{vue.nextTick(()=>{n.value&&r.value?(s.value=parseFloat(n.value),l.value=parseFloat(r.value)):(s.value=x.value.clientWidth,l.value=x.value.clientHeight),(!c.value||!u.value)&&(c.value=window.screen.width,u.value=window.screen.height),y()})}),v=()=>{s.value&&l.value?(x.value.style.width=`${s.value}px`,x.value.style.height=`${l.value}px`):(x.value.style.width=`${c.value}px`,x.value.style.height=`${u.value}px`)};vue.watch([n,r],async()=>{e.pageId||(await g(),v(),E(),window.addEventListener("resize",b),d()),f.value=!0},{immediate:!0});const p=vue.ref({});vue.provide("scaleValue",p);const E=()=>{if(a){x.value.style.width="100%",x.value.style.height="auto",i("auto");return}const y=document.body.clientWidth,A=document.body.clientHeight,_=s.value||c.value,k=l.value||u.value,T=y/_;let F=A/k;(s.value!==1920||l.value!==1080)&&(F=l.value/s.value*y/k),p.value={widthScale:T,heightScale:F},x.value&&(x.value.style.transform=`scale(${T}, ${F})`),i(F)},b=lodashEs.debounce(async()=>{await g(),E()},100),d=()=>{const y=window.MutationObserver;h=new y(b),h.observe(x.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},m=()=>{h&&(h.disconnect(),h.takeRecords(),h=null)};return vue.onMounted(()=>{f.value=!1}),vue.onUnmounted(()=>{window.removeEventListener("resize",b),m()}),{style:o,container:x,ready:f}}}),PageConfig_vue_vue_type_style_index_0_scoped_e1e149bf_lang="",_hoisted_1$g={id:"container",ref:"container"};function _sfc_render$z(e,n,r,i,a,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$g,[e.ready||e.pageId?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"page-config",style:vue.normalizeStyle(e.style)},[vue.renderSlot(e.$slots,"default",{},void 0,!0)],4)):vue.createCommentVNode("",!0)],512)}const PageConfig=_export_sfc$1(_sfc_main$u,[["render",_sfc_render$z],["__scopeId","data-v-e1e149bf"]]),EcanPageConfig=withInstall$1(PageConfig),providerConfig={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px",pageFontFamily:"",jumpType:"page",jumpTime:null,jumpPage:"",jumpLink:"",requestList:[],events:[]},providerConfigComponentProps=transformToComponentProps(providerConfig),_sfc_main$t=vue.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...providerConfigComponentProps,pageId:{type:String,default:""}},setup(e,{expose:n,emit:r}){e.pageId||useHrefParamsToGlobalVariables();const i=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)),a=vue.ref(),o=()=>{a.value.setAttribute("datav-theme",e.theme)},s=vue.inject("usedComponentList",[]),l=vue.inject("componentList",[]),c=vue.computed(()=>{const W=[];for(const Q of vue.unref(s))Q.type==="ecanModal"?W.push(...Q.componentList):W.push(Q);return W});vue.watch(()=>e.theme,()=>{o()}),vue.onMounted(()=>{o()});const u=vue.computed(()=>useVariablesInText(e.contextRequestUrl)),f=vue.computed(()=>e.pageMode),x=vue.computed(()=>e.theme),h=vue.computed(()=>e.width),g=vue.computed(()=>e.height),v=vue.computed(()=>e.pageFontFamily),p=vue.computed(()=>{const W=[],Q=vue.unref(l).filter(te=>te.type==="ecanModal");for(const te of Q)te!=null&&te.requestList&&W.push(...te.requestList);return[...W,...e.requestList]}),E=vue.ref("");vue.provide(GLOBAL_CONFIG,{contextRequestUrl:u,pageMode:f,theme:x,touchEventId:E,width:h,height:g,fontFamily:v,requestList:p});const b=vue.ref({height:"100%",overflow:e.pageMode==="design"?"":"hidden"});vue.provide("setPageHeight",W=>{let Q=W;i.value||(Q=parseFloat(g.value)*W+"px"),b.value.height=Q}),vue.provide("isMobile",i.value),vue.provide("getContainerMap",()=>e.containerMap),vue.provide("getCombinationMap",()=>e.combinationMap),vue.provide("templateOperate",{pageId:e.pageId,templateEmit:r,setTemplateData:W=>{var Q;if(W!=null&&W.pageId){const{componentId:te,...re}=W;(Q=window.config)!=null&&Q.urlParams||(window.config.urlParams={}),window.config.urlParams[W.pageId]=re,r("templateChange",W)}}});const d=vue.ref(),m=new Map,y=W=>m.get(W),A=(W,Q)=>{var te;if(d.value=Q,m.set(W,Q),!e.pageId){const re=vue.unref(s).find(ae=>ae.id===W);re&&((te=window.config)!=null&&te.record||(window.config.record={}),window.config.record[re.keyName]=Q)}},_=()=>{d.value=null},k=W=>{let Q=W;if(Q){const te=W.match(/\{(.+?)\}/g);if(te!=null&&te.length){let re=te[0].slice(1,-1).trim();const ae=re.match(/\[(.+?)\]/g);let se="";ae!=null&&ae.length&&(re=re.replace(ae[0],""),se=ae[0].slice(1,-1).trim());const fe=vue.unref(c).find(he=>he.keyName===re);if(fe){const he=y(fe.id),{type:ge,value:ye,RECORD:Ee,recordData:De}=he||{};lowerCaseIncludes(ge,MODEL_KEY_LIST)?Q=Ee[se]:lowerCaseIncludes(ge,"select")?Q=De[se]:lowerCaseIncludes(ge,["rangePicker","date"])?dayjs.isDayjs(vue.unref(he[se]))?Q=vue.unref(he[se]).format(he.format):Q=vue.unref(he[se]):Q=ye}else Q=(window.config.requestParams||{})[re]||""}}return Q},T=new Map,F={},M=async(W,Q)=>{var fe;const{requestName:te}=W,re=await useRequestData({...W,projectRequestUrl:vue.unref(u),getModel:y})(),ae=((fe=re==null?void 0:re.data)==null?void 0:fe.data)||{},se=T.get(te);if(se!=null&&se.length&&(!Q||F[te])){for(const he of se)he(ae);Q||T.delete(te)}},B=(W,Q)=>{F[W]&&(clearInterval(F[W]),delete F[W],T.delete(W));const te=vue.unref(c).filter(ae=>!ae.openCustomRequestData&&ae.customRequestName===W),re=T.get(W)||[];if((te==null?void 0:te.length)>re.length&&(re.push(Q),T.set(W,re),(te==null?void 0:te.length)===re.length)){const ae=vue.unref(p).find(se=>se.requestName===W);ae&&(ae!=null&&ae.isOpenRequestTimer&&(ae!=null&&ae.requestInterval)?(M(ae,!0),F[W]=setInterval(()=>{M(ae,!0)},ae.requestInterval*1e3)):M(ae))}};vue.provide(GLOBAL_MODEL,{getGlobalModel:y,setGlobalModel:A,clearInteractiveData:_,getRecordValueByKeyName:k,hanldePageRequestData:B,interactiveData:d});const L=vue.ref({}),R=(W,Q)=>{L.value[W]=Q};vue.provide(LOADED_DATA,{loadedData:L,setLoadedData:R});const H=[],V=()=>{H.pop()},P=W=>{H.push(W)},I=new Map,S=W=>I.get(W),C=(W,Q)=>{I.set(W,Q)};vue.provide(MODAL_MODEL,{popUseModalIds:V,pushUseModalIds:P,getModalModel:S,setModalModel:C});const N=mitt(),w=new Set,q=(W,Q)=>{w.add(W),N.on(W,te=>{const{eventName:re,params:ae}=te;return typeof Q[re]=="function"&&Q[re](ae)}),vue.onBeforeUnmount(()=>{O(W)})},O=W=>{w.delete(W),N.off(W)},D=(W,Q,te={})=>{if(W==="PAGE"){const re=H.length;let ae=[];if(re===0)ae=[...w];else{const se=H[re-1];ae=[...S(se)]}ae.forEach(se=>{N.emit(se,{eventName:Q,params:te})})}else N.emit(W,{eventName:Q,params:te})};vue.provide(EVENT_BUS,{onEvent:q,offEvent:O,emitEvent:D});const $=vue.ref(0),U=()=>{$.value=vue.unref($)+1};vue.provide(GLOBAL_TOKEN,{requestToken:U});const j=new Map,K=new Map,G=({requestFn:W=()=>{},sortNum:Q=0,id:te=""})=>{if(j.has(Q)){const re=j.get(Q);re==null||re.push(W)}else j.set(Q,[W]);K.set(te,W)},Y=W=>new Promise((Q,te)=>{const re=W.map(ae=>ae());Promise.all(re).then(ae=>{Q(ae)}).catch(ae=>{te(ae)})}),J=W=>new Promise(async(Q,te)=>{if(W){if(typeof W=="string"){const re=K.get(W);if(typeof re=="function"){const ae=request.interceptors.response.use(se=>(Q(se),se),se=>(te(se),Promise.reject(se)));re(),request.interceptors.response.eject(ae)}}}else{const re=Array.from(j);re.sort((se,fe)=>fe[0]-se[0]);const ae=re.length;try{e.pageMode!=="design"&&vue.unref($)>0;for(let se=0;se<ae;se++){const fe=re[se][1];await Y(fe)}}catch(se){console.error(se)}finally{j.clear(),Q(null)}}});vue.provide(REQUEST_MODEL,{setRequest:G,touchRequest:J});const ee=()=>{N.emit(REFRESH_PAGE)};vue.provide(REFRESH_PAGE,{emitRefreshPage:ee});const Z=W=>{N.on(REFRESH_PAGE,()=>W()),vue.onMounted(()=>{N.off(REFRESH_PAGE)})};return vue.watchEffect(()=>{var W;if((W=vue.unref(s))!=null&&W.length&&vue.unref(f)!=="design"){const{jumpType:Q,jumpTime:te,jumpPage:re,jumpLink:ae}=e;if(te!=null&&te.value){let se=0;switch(te==null?void 0:te.suffix){case"hours":se=te.value*60*60*1e3;break;case"minute":se=te.value*60*1e3;break;case"seconds":se=te.value*1e3;break}setTimeout(()=>{let fe="";Q==="page"&&re?fe=usePageUrl(vue.unref(f),re):Q==="link"&&ae&&(fe=ae),fe=useVariablesInText(fe),window.open(fe,"_self")},se)}}}),vue.onBeforeUnmount(()=>{j==null||j.clear(),K==null||K.clear()}),n({touchRequest:J,getGlobalModel:y,onRefreshPage:Z,emitEvent:D,getRecordValueByKeyName:k,props:e}),{providerConfig:a,configStyle:b}}}),ProviderConfig_vue_vue_type_style_index_0_scoped_e3bcaa04_lang="";function _sfc_render$y(e,n,r,i,a,o){return vue.openBlock(),vue.createElementBlock("div",{id:"ProviderConfig",ref:"providerConfig",style:vue.normalizeStyle({...e.configStyle,fontFamily:e.pageFontFamily})},[vue.renderSlot(e.$slots,"default",{},void 0,!0)],4)}const ProviderConfig=_export_sfc$1(_sfc_main$t,[["render",_sfc_render$y],["__scopeId","data-v-e3bcaa04"]]),EcanProviderConfig=withInstall$1(ProviderConfig),textProps={...props,name:"文本",keyName:"文本",type:"ecanText",width:"100px",height:"40px",text:"文字",lineHeight:1,color:"#333",variableColor:"#f00",fontSize:"14px",fontFamily:"",fontWeight:400,textShadow:"",justifyContent:"center",alignItems:"center",variableFontSize:"14px",variableDefaultValue:"0",format:"",target:"self",href:"",linkPage:"",data:{},percentageSide:"left",increaseColor:"",declineColor:"",minusSignShow:!0,unitShow:!0,unitText:"",unitFontSize:"14px",unitFontWeight:400,unitColor:"#333",unitTop:"",unitLeft:"",graphicConfig:{},targetShow:!1,targetRule:"",targetValue:"",notExpectColor:"",gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",openCustomRequestData:!0,customRequestName:"",customRequestField:"",showEllipsis:!1,showAnimation:!1,transParams:[],exceedConfig:"",targetTemplate:""},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==",__default__$4=vue.defineComponent({name:"EcanText",components:{Skeleton},props:{...textComponentProps},setup(e,{expose:n}){const r=vue.ref(!1),i=usePickComponentStyle(e),a=vue.ref({}),o=vue.computed(()=>e.variableFontSize||"14px"),s=vue.computed(()=>"-"+vue.unref(o)),l=w=>{var q,O;if(e.showAnimation){const D=e.text.match(/\{(.+?)\}/g)||[];if(D!=null&&D.length){const $=(q=D[0].slice(1,-1))==null?void 0:q.trim();if(vue.unref(a)[$]===w){a.value=w;return}const U=+w[$];let j=0;if(isNaN(U))a.value=w;else{String(U).includes(".")&&(j=((O=String(U).split(".")[1])==null?void 0:O.length)||0);const K=Math.abs(U)*Math.pow(10,j),G=String(K).length;let Y=[];for(let ee=0;ee<5;ee++){const Z=Math.ceil(Math.random()*(K+1)-1);Y.includes(Z)||Y.push(Z)}Y.sort((ee,Z)=>ee-Z),Y=Y.map(ee=>{const Z=String(ee).split("").reverse(),W=[];for(let Q=0;Q<G;Q++)Z&&Z[Q]?W.push(Z[Q]):W.push("0");return j&&W.splice(j,0,"."),(U<0?"-":"")+W.reverse().join("")}),Y.push(U);let J=0;for(const ee of Y)setTimeout(()=>{a.value={...vue.unref(a),[$]:ee}},J*1e3),J+=.1}}else a.value=w}else a.value=w};vue.watch(()=>[e.data,e.dataType],([w,q])=>{q==="static"&&l(w)},{immediate:!0});const{getGlobalModel:c,setGlobalModel:u,getRecordValueByKeyName:f,hanldePageRequestData:x}=vue.inject(GLOBAL_MODEL,{getGlobalModel:w=>{},setGlobalModel:(w,q)=>{},getRecordValueByKeyName:w=>{},hanldePageRequestData:(w,q)=>{}}),{setLoadedData:h,loadedData:g}=vue.inject(LOADED_DATA,{setLoadedData:(w,q)=>{},loadedData:{}}),{setTemplateData:v}=vue.inject("templateOperate",{setTemplateData:w=>{}}),p=vue.computed(()=>{let w="";if(e.gradientShow){const{gradientColor:q,gradientOffset:O,gradientAngle:D,color:$}=e;w+=`background: linear-gradient(${D}, ${$}, ${q||"transparent"} ${O*100}%);-webkit-background-clip: text;color: transparent;`}return w}),E=vue.computed(()=>{const w={};if(e.gradientShow){const{gradientColor:q,gradientOffset:O,gradientAngle:D,color:$}=e,U=q||"transparent";w.background=`linear-gradient(${D}, ${$}, ${U} ${O*100}%)`,w["-webkit-background-clip"]="text",w.color="transparent"}return w}),b=vue.computed(()=>{const w={};return e.linkPage&&(w.cursor="pointer",w.userSelect="none"),w}),d=vue.ref(1),m=vue.computed(()=>{var K;if(vue.unref(r))return"NaN";if(!d.value)return;const w=vue.unref(a),q=e.increaseColor||e.color,O=e.declineColor||e.color;let D=e.text;D=D==null?void 0:D.replace(/\n|\\n/g,"<br/>"),D=D==null?void 0:D.replace(/\s(?!\{) | (?!\})\s/g,"&nbsp;");const $=D.match(/\{(.+?)\}/g)||[];let U="",j="";if(e.exceedConfig==="wrap"?j="show-wrap":e.exceedConfig==="ellipsis"&&(j="show-ellipsis"),$==null||$.length===0){if(D&&e.format==="percentage"&&!isNaN(+D)){const G=parseFloat(D),Y=G*100,J=y(Y.toFixed(2));G>=0?D=`<span class="${j}" style="color: ${J||q||"#ED6643"};font-size:${vue.unref(o)};display: inline-block;${vue.unref(p)}">
99
+ `,r+="-----END PUBLIC KEY-----",r},n.hasPublicKeyProperty=function(r){return r=r||{},r.hasOwnProperty("n")&&r.hasOwnProperty("e")},n.hasPrivateKeyProperty=function(r){return r=r||{},r.hasOwnProperty("n")&&r.hasOwnProperty("e")&&r.hasOwnProperty("d")&&r.hasOwnProperty("p")&&r.hasOwnProperty("q")&&r.hasOwnProperty("dmp1")&&r.hasOwnProperty("dmq1")&&r.hasOwnProperty("coeff")},n.prototype.parsePropertiesFrom=function(r){this.n=r.n,this.e=r.e,r.hasOwnProperty("d")&&(this.d=r.d,this.p=r.p,this.q=r.q,this.dmp1=r.dmp1,this.dmq1=r.dmq1,this.coeff=r.coeff)},n}(RSAKey),_a,version=typeof process<"u"?(_a=process.env)===null||_a===void 0?void 0:_a.npm_package_version:void 0,JSEncrypt=function(){function e(n){n===void 0&&(n={}),n=n||{},this.default_key_size=n.default_key_size?parseInt(n.default_key_size,10):1024,this.default_public_exponent=n.default_public_exponent||"010001",this.log=n.log||!1,this.key=null}return e.prototype.setKey=function(n){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new JSEncryptRSAKey(n)},e.prototype.setPrivateKey=function(n){this.setKey(n)},e.prototype.setPublicKey=function(n){this.setKey(n)},e.prototype.decrypt=function(n){try{return this.getKey().decrypt(b64tohex(n))}catch{return!1}},e.prototype.encrypt=function(n){try{return hex2b64(this.getKey().encrypt(n))}catch{return!1}},e.prototype.sign=function(n,r,i){try{return hex2b64(this.getKey().sign(n,r,i))}catch{return!1}},e.prototype.verify=function(n,r,i){try{return this.getKey().verify(n,b64tohex(r),i)}catch{return!1}},e.prototype.getKey=function(n){if(!this.key){if(this.key=new JSEncryptRSAKey,n&&{}.toString.call(n)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,n);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},e.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},e.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},e.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},e.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},e.version=version,e}();const encryptor=new JSEncrypt,aesKey=createAesKey();function createAesKey(){let n=Math.random().toString(36).substr(2);for(;n.length<16;)n+=Math.random().toString(36).substr(2);return n=n.substr(0,16),n}const iv=CryptoJS.enc.Utf8.parse("ABCDEF1234123412");function aesEncrypt(e,n){n=n||aesKey;const r=CryptoJS.enc.Utf8.parse(n);let i="";switch(typeof e){case"string":i=CryptoJS.enc.Utf8.parse(e);break;case"object":i=CryptoJS.enc.Utf8.parse(JSON.stringify(e));break;default:i=CryptoJS.enc.Utf8.parse(e.toString())}return CryptoJS.AES.encrypt(i,r,{iv,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.ZeroPadding}).toString()}function aesDecrypt(e,n){n=n||aesKey;const r=CryptoJS.enc.Utf8.parse(n),i=CryptoJS.AES.decrypt(e,r,{iv,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.ZeroPadding});return CryptoJS.enc.Utf8.stringify(i).toString()}function setPublicKey(e){encryptor.setPublicKey(e)}function rsaEncrypt(e){return encryptor.encrypt(e)}function hasEncryptUrl(e=""){e.startsWith("/")||(e="/"+e),e=e.split("?")[0];const r=["/diagram","/dataview"].map(i=>`^(.*?)${i}(/|$)`);for(const i of r)if(new RegExp(i).test(e))return!0;return!1}function EncryptConfigParam(e){const{paramType:n,data:r,params:i,method:a}=e;n==="form"?["get","delete"].includes(a)?e.params=getEncryptParam(i,"string"):e.data=getEncryptParam(r,"string"):["get","delete"].includes(a)?e.params=getEncryptParam(i,"string"):e.data=getEncryptParam(r)}function getEncryptParam(e,n){let r=e||{};if(n==="string"){r="";for(const l in e)if(Object.hasOwnProperty.call(e,l)){const c=e[l];r+=`${l}=${encodeURIComponent(c)}&`}}setPublicKey("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMKaTbS1XHH7u/4dhao1n5Lcegpy6AHKX2TjmTP7IDW6N4wznqlL3Tt+U0/Il1TlNp1/EN+tffYYg4dPrrCUDwcCAwEAAQ==");const a=rsaEncrypt(aesKey);return{c:aesEncrypt(r,aesKey),p:a}}window.getEncryptParam=getEncryptParam;function encryptData(e,n){var r;(r=window==null?void 0:window.config)!=null&&r.encryptFlag&&hasEncryptUrl(e.url)&&(e.data instanceof FormData?e.data=getEncryptFileParam(e.data):EncryptConfigParam(e))}function getEncryptFileParam(e){const n=e.entries(),r=new FormData,i={};for(const o of n){const s=o[0],l=o[1];l instanceof Blob?r.append(s,l):i[s]=l}const a=getEncryptParam(i,"json");return typeof a=="object"&&(r.append("c",a.c),r.append("p",a.p)),r}window.xhaesKey=aesKey,window.xhaesDecrypt=aesDecrypt;function decryptData(e,n){var r;if((r=window==null?void 0:window.config)!=null&&r.encryptFlag&&hasEncryptUrl(e.config.url)&&!(e.data instanceof Blob)&&e.data.data!==void 0){const i=aesDecrypt(e.data.data.content,aesKey);e.data=JSON.parse(i)}}const requestErrorTip=window.config.requestErrorTip,request=axios.create({timeout:1e3*180});request.interceptors.request.use(e=>{const{requestParams:n={}}=window.config;return n!=null&&n.pltToken&&(e.headers["Plt-Token"]=n.pltToken),encryptData(e),e},e=>Promise.reject(e)),request.interceptors.response.use(e=>{var n,r,i;return requestErrorTip&&+((n=e==null?void 0:e.data)==null?void 0:n.code)==500&&antDesignVue.message.error({content:((r=e==null?void 0:e.data)==null?void 0:r.msg)||((i=e==null?void 0:e.data)==null?void 0:i.message)||"服务器异常",key:"SERVER_ERROR",duration:2}),decryptData(e),e},e=>{if(decryptData(e==null?void 0:e.response),requestErrorTip)if(e.message.includes("timeout"))antDesignVue.message.error({content:"网络连接超时,请重试!",key:"TIMEOUT",duration:2});else{const{status:n}=(e==null?void 0:e.response)||{};n>=400&&n<500&&antDesignVue.message.error({content:"请求异常",key:"REQUEST_ERROR",duration:2}),n>=500&&antDesignVue.message.error({content:"服务器异常",key:"REQUEST_ERROR",duration:2})}return Promise.reject(e)});const runCode=(e,n)=>{const r={dayjs,...n};let i="";const a=[];for(const l in r)i+=`${l},`,a.push(r[l]);i=i.replace(/,$/,"");const o=`function (${i}){return ${e}}`;let s;try{s=Function(`"use strict";return (${o})`)()(...a)}catch{return e}return s},useVariablesInText=(e="",{textData:n,codeData:r}={},{useNewline:i=!1,useSpace:a=!1}={})=>{const s={...window.config||{},...n},l=e.match(/\{(.+?)\}/g);if(l==null||l.length===0)return e;for(let c=0;c<l.length;c++){const u=l[c];let f=u.slice(1,-1).trim();const x=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,h=f.match(x);for(let g=0;g<h.length;g++){const v=h[g],p=s[v];p!=null&&typeof p!="function"&&(f=f.replace(v,p))}(/\(.*\)/g.test(f)||/[+/\\*]/g.test(f))&&(f=runCode(f,r)),e=e.replace(u,f)}return i&&(e=e==null?void 0:e.replace(/\n|\\n/g,"<br/>")),a&&(e=e==null?void 0:e.replace(/\s{2,}?/g,"&nbsp;&nbsp;")),e},useRequestData=(e,n,r=()=>{})=>{const{requestUrl:i,requestMethod:a,requestHeaders:o,requestParams:s,requestInterval:l,isOpenRequestTimer:c,openCustomRequestData:u,projectRequestUrl:f="",getModel:x,requestParamsMode:h,customRequestParams:g,dataSetParam:v,requestType:p,dataType:C}=e,{pageMode:b}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"})||{},{pageId:d}=vue.inject("templateOperate",{pageId:""})||{},{contextRequestUrl:m,touchEventId:y}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:"",touchEventId:""})||{},{getGlobalModel:A}=vue.inject(GLOBAL_MODEL,{getGlobalModel:M=>{}})||{},_=x||A,k=useVariablesInText(i),T=async(M={})=>{var E;if(C!=="request"&&F){clearInterval(F);return}if(!k||!a||!o)return;let B={};for(const S of s){const{key:N,value:w}=S;if((w==null?void 0:w.id)==="PARENT"&&(w!=null&&w.prop)){const O=(((E=window.config)==null?void 0:E.record)||{})[w.prop];if(O){const D=O[w.propKey||"value"];D&&(["date","range"].some(j=>lowerCaseIncludes(O==null?void 0:O.type,j))?B[N]=vue.unref(D).format(O.format||"YYYY-MM-DD"):B[N]=vue.unref(D))}continue}if(typeof w=="object"&&w!=null&&w.id){let R={};const{id:O,prop:D,propKey:q,operate:j}=w;let H=!1;try{JSON.parse(O),H=!0}catch{H=!1}O==="THIS"?R=_(vue.unref(y))||{}:R=_(O)||{};const K=vue.unref(R[D]);let G=null;if(["date","range"].some(J=>lowerCaseIncludes(R==null?void 0:R.type,J))){const{value:J,type:ee,mode:X}=j||{};if(J&&ee&&X)switch(ee){case"add":G=vue.unref(K).add(J,X);break;case"minus":G=vue.unref(K).subtract(J,X);break}G==null&&(G=vue.unref(K)),G=(G==null?void 0:G.format((q==null?void 0:q.trim())||R.format))||""}else if(Object.prototype.toString.call(K)==="[object Object]")q?G=K[q]:G=D?K[D]:K;else if(lowerCaseIncludes(R==null?void 0:R.type,"select")&&vue.unref(K)&&D&&Array.isArray(vue.unref(K)))G=vue.unref(K).map(J=>Object.prototype.hasOwnProperty.call(J,D)?J[D]:J);else if(H){const J=JSON.parse(O);console.log(J,"urlvalue"),G=J.value}else G=K;B[N]=G}else typeof w=="object"&&w.id===null&&p===1?(console.log(w.propKey,"value.propKey"),B[N]=w.propKey):typeof w=="string"&&(B[N]=useVariablesInText(w))}if(p===1){console.log(B,"_params");const S=Object.entries(B);v.param=v.param.map((N,w)=>({...N,paramKey:S[w][0],defaultValue:S[w][1]||""})),B=v}if(h==="2"&&g!=="{}"){const S=JSON.parse(g);L(S),S&&(B=S)}function L(S){const N={...B,...getPageUrlParams(d)};if(Array.isArray(S))S.forEach((w,R)=>{if(typeof w=="string"){const O=w.match(/\${(.+?)\}/g);if(O!=null&&O.length){const D=O[0].slice(2,-1);D&&N[D]?S[R]=N[D]:S[R]=""}}else L(w)});else if(Object.prototype.toString.call(S)==="[object Object]")for(const w in S)if(typeof S[w]=="string"){const R=S[w].match(/\${(.+?)\}/g);if(R!=null&&R.length){const O=R[0].slice(2,-1);O&&N[O]?S[w]=N[O]:S[w]=""}}else L(S[w])}B={...getPageUrlParams(d),...M,...B};let V="";const U=Object.keys(B),$=U.length-1,P=U.length;U.forEach((S,N)=>{let w=B[S];Object.prototype.toString.call(w)==="[object Object]"&&(w=JSON.stringify(w)),N===0?P!==1?V+=`?${S}=${w}&`:V+=`?${S}=${w}`:N===$?V+=`${S}=${w}`:V+=`${S}=${w}&`});function I(S){var N;if(p===1)return{Authentication:(N=window==null?void 0:window.config)==null?void 0:N.indicatorToken};if(typeof S=="string"){const w=JSON.parse(S),R=getPageUrlParams(d);if(Object.prototype.toString.call(w)==="[object Object]"){for(const O in w)if(typeof w[O]=="string"){const D=w[O].match(/\${(.+?)\}/g);if(D!=null&&D.length){const q=D[0].slice(2,-1);q&&R[q]?w[O]=R[q]:w[O]=""}}}return w}else return S}try{const S=["get","head"].includes(a),N={};let w=S?k+V:k;B.dataSqlId&&!w.includes("dataSqlId")&&(w+=`${w.includes("?")?"&":"?"}dataSqlId=${B.dataSqlId}`),Object.prototype.hasOwnProperty.call(B,"signal")?N.signal=B.signal:window.controller&&(N.signal=window.controller.signal);const R=await request({baseURL:vue.unref(m)||f||"",url:w,method:a,headers:o?I(o):{},data:S?{}:B,...N});return r(R),R}catch(S){console.error(S)}},F=vue.unref(b)!=="design"&&c&&(u||u===void 0)&&setInterval(T,l*1e3);return vue.onUnmounted(()=>{clearInterval(F)}),T},useTransformChartDataByAttrKey=(e=[],n,r=!1)=>{let{name:i="name",types:a=[]}=n||{};i=(i==null?void 0:i.trim())||i;const o=new Set,s=new Map,l=e.length,c=a.length;if(l===1&&!r){const x=[];for(let g=0;g<c;g++){const v=a[g],{label:p,value:C}=v,b={...e[0],value:e[0][C]};o.add(p),x.push(b)}const h=e[0][i]||"";s.set(h,x)}else for(let x=0;x<l;x++){const h=e[x],g=h[i];o.add(g);for(let v=0;v<c;v++){const p=a[v],{label:C,value:b}=p,d={...h,value:h[b]||0};if(s.has(C)){const m=s.get(C);m.push(d),s.set(C,m)}else s.set(C,[d])}}const u=Array.from(o),f=[];for(const[x,h]of s)f.push({name:x,data:h});return{dimensions:u,dataset:f}},useImagePath=(e,n=!1)=>{var i;if(!e)return e;let r="";return e!=null&&e.includes("://")?r=e:r=((i=window==null?void 0:window.config)==null?void 0:i.uploadPath)+e,n&&(r=`url(${r})`),r},usePageUrl=(e,n)=>{const r=`${BASE_URL}/preview?pageId=${n}`,i=`${BASE_URL}/${n}`;return e==="preview"?r:i},useValueFormatter=(e,n)=>{var a;if(e==null)return n;const r=e.match(/\{.*\}/g);if(r==null||r.length===0)return n;const i=r.length;for(let o=0;o<i;o++){const s=r[o];if(s==null||s==="")break;let l=(a=s.slice(1,-1))==null?void 0:a.trim();l=l==null?void 0:l.replace(/value/g,n);try{let c=l;(/\(.*\)/g.test(l)||/[+/\\*]/g.test(l))&&(c=runCode(l)),e=e.replace(s,c)}catch{e=e.replace(s,l)}}return e},useIndicatorData=(e={},n=()=>{})=>{var _;const{pageMode:r}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),{requestToken:i}=vue.inject(GLOBAL_TOKEN,{requestToken:()=>{}}),{setLoadedData:a}=vue.inject(LOADED_DATA,{setLoadedData:(k,T)=>{}}),{getGlobalModel:o}=vue.inject(GLOBAL_MODEL,{getGlobalModel:k=>{}}),{pageId:s}=vue.inject("templateOperate",{pageId:""})||{};e.dataType==="indicator"&&i();const l=k=>{const{around:T,unit:F,id:M}=k;let B="";const{pageMode:L="",componentList:V=[]}=(e==null?void 0:e.graphicConfig)||{};let U=null,$=null;if(L==="design"){const P=V==null?void 0:V.find(O=>O.id===M);if(!P)return[];const{interval:I,intervalUnit:E,startTime:S,endTime:N,operate:w,useCurrentTime:R}=P||{};if(R&&(U=dayjs().subtract(I,E),$=dayjs()),S&&(U=dayjs(S)),N&&($=dayjs(N)),w){const{type:O,value:D,mode:q}=w;switch(O){case"add":U=U&&U.add(D,q),$=$&&$.add(D,q);break;case"minus":U=U&&U.subtract(D,q),$=$&&$.subtract(D,q)}}}else{const P=o(M)||{};vue.unref(P.startTime)&&(U=dayjs(vue.unref(P.startTime))),vue.unref(P.endTime)&&($=dayjs(vue.unref(P.endTime)))}if(U&&$){const P=$.diff(U,F.toLowerCase());B=`${T==="before"?"-":""}${P+1}`}return B?[B]:[]},c=(k,T)=>Object.prototype.hasOwnProperty.call(k,T),u=(k,T)=>{if(T)c(k,"indexCode")&&(k.hrpIndexCode=k.indexCode,delete k.indexCode),c(k,"indexCodeNum")&&(k.hrpIndexCodeNum=k.indexCodeNum,delete k.indexCodeNum),c(k,"dataType")&&delete k.dataType;else{const{calcWays:F=[],dateCalcTypes:M=[],activeKey:B,componentId:L=""}=k;if(B===5&&(F!=null&&F.length)&&(M!=null&&M.length)&&L){const V=F[0].split("-");(V==null?void 0:V.length)>1&&V[0]==="rangeValue"&&(k.calcWays=l({around:V[1],unit:M[0],id:L})),delete k.radioValue}if(c(k,"dataType")){if(k.fieldType==="DATE"&&(k.label=k.fieldName),k.dataType==="component")if(k.fieldValue==="PARENT"){let V=k.modelKey;V&&k.prop&&(V+=`-${k.prop}`),k.fieldValue="${"+V+"}"}else k.fieldValue="${"+k.fieldValue+"}";delete k.dataType}c(k,"activeKey")&&delete k.activeKey,c(k,"radioValue")&&delete k.radioValue,c(k,"indexCode")&&(k.hrpIndexCode=k.indexCode,delete k.indexCode),c(k,"indexCodeNum")&&(k.hrpIndexCodeNum=k.indexCodeNum,delete k.indexCodeNum),k.dataType!=="component"&&k.useCurrentTime&&(k.fieldValue=dayjs().format(k.dateFormat)),c(k,"modelKey")&&delete k.modelKey,c(k,"prop")&&delete k.prop,delete k.useCurrentTime}},f=(k,T)=>{const F=[];return k!=null&&k.length&&lodashEs.cloneDeep(k).forEach(M=>{if(M.join&&M.conditions){const B=!M.conditions.some(L=>L.join&&L.conditions);M.conditions.forEach((L,V)=>{u(L,T);const U={};if(V<M.conditions.length-1&&(U.join=M.join),B)F.push({...U,...L});else if(L.join&&L.conditions){const $=T?"sqlConditions":"conditions";F.push({[$]:f([L],T),...U})}else F.push({...U,...L})})}else u(M,T),F.push(M)}),F},x=(k={},T)=>{if(k!=null&&k.sortCpnts&&T){const H=m(k);H&&(T.sort=H)}const{label:F,name:M,location:B,show:L,indexCode:V,indexCodeNum:U,calcType:$="COLUMN",builtInFormula:P,builtInValueSource:I,builtInCalcWay:E,formula:S,conditions:N,aggregate:w,distinct:R,dimByCount:O,dataTo:D}=k;let q;if(N&&(q=f(N)),$==="COMPONENT"){const H={};return b(H,I),{label:F.trim(),columnName:M,show:L,calcType:$,componentAlias:E,componentValue:H.fieldValue||null}}const j={label:F.trim(),columnName:M,location:B,show:L,calcType:D==="1"?"VIEW":$,hrpIndexCode:V,hrpIndexCodeNum:U,aggregate:w,builtInFormula:P,builtInValueSource:I,formula:S,conditions:q};if(P==="DATE_OFFSET"){const H=E.split("-");if((H==null?void 0:H.length)===3){let K=H[0];return H[2]==="before"&&H[0]!=="0"&&(K=`-${H[0]}`),{...j,calcWays:[K],dateCalcTypes:[H[1]]}}}else return M==="the_count"&&(j.calcType="AGGREGATE",j.distinct=!!R,j.typeGuid=O),{...j,builtInCalcWay:E}},h=k=>{if(!k)return[];const T=lodashEs.cloneDeep((k==null?void 0:k.controlList)||[]).filter(w=>w.conditionKey!=="parentCode"),{classificationList:F=[],rowHeaderList:M=[],dimensionList:B=[],seriesList:L=[],leftAxisList:V=[],rightAxisList:U=[],queryColumnList:$=[],indicators:P=[]}=k;p(T);const I=[...F,...M,...B,...L,...V,...U,...$,...P],E=[];for(const w of I){const R=getConditions((w==null?void 0:w.conditions)||[]);if(R!=null&&R.length){const O=R.filter(D=>(D==null?void 0:D.dataType)==="component").map(D=>{const q={};return D!=null&&D.dateFormat&&(q.format=D.dateFormat),D.fieldValue==="PARENT"&&(q.id="PARENT",q.keyName=D.modelKey,q.modelKey=D.modelKey,q.prop=D.prop),{conditionKey:D.fieldName,conditionLabel:D.fieldName,conditionName:D.fieldName,conditionValueType:D.fieldType,id:D.componentId,keyName:D.fieldValue,rule:D.rule,notGlobal:!0,indexCode:D.indexCode,typeGuid:D.typeGuid,indexCodeNum:D.indexCodeNum,...q}});if(O!=null&&O.length)for(const D of O)E.find(q=>q.keyName===D.keyName)||E.push(D)}}const S=E.length,N=T;for(let w=0;w<S;w++){const R=E[w];if((R==null?void 0:R.conditionKey)==="parentCode")continue;const{id:O,keyName:D,prop:q,format:j,modelKey:H,dataType:K="component",customValue:G}=R,Y=g(R);b(Y,O,{prop:q,dateFormat:j,modelKey:H,keyName:D}),K===""&&(Y.fieldValue=G||""),N.push(Y)}for(let w=N.length-1;w>=0;w--){const R=N[w];R.globalCondition||getConditions(N).find(D=>D.alias===R.alias&&D.globalCondition)&&N.splice(w,1)}return N};function g(k){const{id:T,keyName:F,conditionLabel:M,conditionKey:B,conditionValueType:L,prop:V,rule:U="NONE",notGlobal:$=!1,indexCode:P,typeGuid:I,indexCodeNum:E,dataType:S="component"}=k;let N=F||T;N&&V&&(N+=`-${V}`);let w=U;return w==="NONE"&&(["startTime","endTime"].includes(V)?w=V==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":F!=null&&F.includes("startTime")?w=V==="GREATER_EQUAL":F!=null&&F.includes("endTime")?w=V==="LESS_EQUAL":w="EQUAL"),T==="PARENT"&&(N=k.modelKey,N&&V&&(N+=`-${V}`),w=U),{rule:w,label:M,fieldName:B,fieldValue:"",valueType:L,alias:N,globalCondition:!$,indexCode:P,typeGuid:I,indexCodeNum:E,dataType:S}}const v=["keyValue","conditionKey","conditionLabel","conditionName","conditionValueType","customValue","id","keyName"];function p(k){if(k!=null&&k.length)for(const T of k)if(T!=null&&T.conditions)p(T.conditions);else{const{id:F,keyName:M,prop:B,modelKey:L,format:V,dataType:U="component",customValue:$}=T,P=g(T);b(P,F,{prop:B,dateFormat:V,modelKey:L,keyName:M}),U===""&&(P.fieldValue=$||"");for(const I in P)T[I]=P[I];for(const I of v)delete T[I]}}function C(k){const T=[];if(k!=null&&k.length){for(const F of k)if(F.variableName){const M={variateName:F.variableName,globalCondition:!1,valueType:F.variableType,alias:F.keyName||""};b(M,F.id,{dateFormat:F.format,prop:F.dateTypeValue,keyName:F.keyName,operateType:F.operateType,operateMode:F.operateMode,operateValue:F.operateValue}),F.dataType===""&&(M.fieldValue=F.variableValue),F.format&&(M.dateFormat=F.format),F.label&&(M.label=F.label),T.push(M)}}return T}function b(k,T,F){const{prop:M="",dateFormat:B="",modelKey:L="",keyName:V="",operateValue:U,operateMode:$,operateType:P}=F||{},I=L||V;if(T==="PARENT"&&I&&M){const q=window.config.record;let j=M,H=B;const K=M.match(/\{(.+?)\}/g);if(K!=null&&K.length){const G=K[0].slice(1,-1).trim();j=M.replace(K[0],""),H=G,k.dateFormat=H}if(q&&q[I]){const G=vue.unref(q[I][j]);dayjs.isDayjs(G)?k.fieldValue=G.format(H||"YYYY-MM-DD"):k.fieldValue=G}return}const E=o(T)||{},{value:S,format:N="YYYY-MM-DD",type:w="",useCurrentTime:R,RECORD:O}=E||{},D=B||N;if(lowerCaseIncludes(E.type,"date")){let q;if(R?S?q=vue.unref(S):q=dayjs():q=vue.unref(S),U&&$&&P)switch(P){case"add":q=q.add(U,$);break;case"minus":q=q.subtract(U,$);break}k.fieldValue=q==null?void 0:q.format(D),k.dateFormat=D}else if(w==="ecanRangePicker"){let q=M;if(!M){const H=V&&V.split("-");H!=null&&H.length&&(q=H[H.length-1])}if(!q)return;let j=null;if(vue.unref(E[q])&&(j=dayjs(vue.unref(E[q]))),U&&$&&P){if(U==="rangeValue"){if(E.startTime&&E.endTime){const H=vue.unref(E.endTime).diff(vue.unref(E.startTime),$)+1;switch(P){case"add":j=j&&j.add(H,$);break;case"minus":j=j&&j.subtract(H,$)}}}else if(!isNaN(+U))switch(P){case"add":j=j&&j.add(U,$);break;case"minus":j=j&&j.subtract(U,$)}}if(j&&(k.fieldValue=j==null?void 0:j.format(D)),q==="rangeValue"&&E.startTime&&E.endTime){const H=getFormatStep(D);H&&(k.fieldValue=vue.unref(E.endTime).diff(vue.unref(E.startTime),H)+1)}k.dateFormat=D}else lowerCaseIncludes(w,MODEL_KEY_LIST)?L&&O?k.fieldValue=O[L]:!L&&O?k.fieldValue=O.value:k.fieldValue=vue.unref(S):k.fieldValue=vue.unref(S)}const d=k=>{var T;if(k){const F=Array.isArray(k)?lodashEs.cloneDeep(k):[lodashEs.cloneDeep(k)];let M="",B=[];const L=[],V=[],U=[];for(const $ of F){if($.defaultCode&&($.label=$.columnName,delete $.defaultCode),$.type==="CUSTOM"&&(B=$.customOrderColumns),M=$.type,L.push($.label),(T=$.columnName)!=null&&T.includes("_ecanrepeat_")){const P=$.columnName.split("_ecanrepeat_");V.push(P[0])}else V.push($.columnName);U.push($.order)}return M!=="CUSTOM"&&(L==null?void 0:L.length)>1&&(M="COMBINATION"),M==="CUSTOM"?{label:L.join(","),columnName:V.join(","),type:M,customOrderColumns:B}:{label:L.join(","),columnName:V.join(","),order:U.join(","),type:M}}else return k},m=k=>{const{sortCpnts:T=[]}=k;let F,M="";for(const B of T){const L=o(B)||{},{type:V,RECORD:U}=L;if(lowerCaseIncludes(V,"image")&&lowerCaseIncludes(U==null?void 0:U.value,["asc","desc"])){M=U.value.toUpperCase();break}}return M&&(F={label:k.label,columnName:k.name,order:M,type:"NORMAL"}),F},y=async(k={})=>{var Ae,ke,Be,Ge,$e,He,Ue,We;a(e.id,!1);const{graphicConfig:T,type:F,isGroupTable:M=!1}=e,B=lowerCaseIncludes(F,"pivottable");let{source:L,dataViewId:V,plugin:U="1",layer:$,chartType:P,classificationList:I=[],rowHeaderList:E=[],dimensionList:S=[],seriesList:N=[],leftAxisList:w=[],rightAxisList:R=[],queryColumnList:O=[],indicators:D=[],controlList:q=[],formFields:j={},variableList:H=[],variableConditions:K=[],idxLibMode:G,preview:Y=!1,edvDataSetId:J}=T||{},ee=[];if((T==null?void 0:T.pageMode)==="design"?(ee=(T.sqlConditions??[]).map(de=>{const pe={};if(!c(de,"globalCondition")&&!de.join&&(pe.globalCondition=!0),!de.join){const ve=de.rule||"EQUAL";pe.rule=ve==="NONE"?"EQUAL":ve}return{...de,...pe}}),K!=null&&K.length&&(ee=ee.concat(K))):(ee=h(T),H!=null&&H.length&&(ee=ee.concat(C(H)))),ee!=null&&ee.length){const de=ee.filter(ve=>ve.globalCondition),pe=ee.filter(ve=>!ve.globalCondition);(de==null?void 0:de.length)>1&&(ee=[{join:"&&",conditions:de},...pe])}ee!=null&&ee.length&&(ee=f(ee,"1")),$==null&&(lowerCaseIncludes(F,["table"])||lowerCaseIncludes(F,["list","circulate"])&&(I==null?void 0:I.length)>1?$="1":lowerCaseIncludes(F,["select","checkbox","radio"])?$="3":$="2");let X;const W=[];let Q="";if(Array.isArray(I)&&I.length>0&&(!["ecanList","ecanCirculate"].includes(F)||(I==null?void 0:I.length)===1)){const de=I.length;for(let pe=0;pe<de;pe++){const ve=I[pe]||{},{label:Me="",name:_e="",show:De=!1,sort:Oe,customGroup:Ve,conditions:Ee,dateFormat:Ce,typeGuid:Fe="",truncations:Te=[]}=ve;if(De||de===1){Q=Fe,X={label:Me.trim(),columnName:_e,show:De,sort:m(ve)||d(Oe)||Oe,customGroup:Ve,conditions:f(Ee),typeGuid:Fe},Ce&&(X.dateFormat=Ce),_e==="the_date"&&!X.dateFormat&&(X.dateFormat="YYYY-MM");const we={};if(Array.isArray(Te)&&Te.length>0){const Re=Te.length;for(let Ne=0;Ne<Re;Ne++){const ze=Te[Ne]||{},{rule:qe="",num:Z=0,name:ne=""}=ze;qe&&Z&&(we.num=Z,we.rule=qe,ne&&(we.otherGroupName=ne))}}if((Ae=Object.keys(we))!=null&&Ae.length&&(X.truncation=we),lowerCaseIncludes(F,["scatter","valueline"]))W.push(X);else break}}}let te;if(Array.isArray(N)&&N.length>0){const de=N.length;for(let pe=0;pe<de;pe++){const ve=N[pe]||{},{label:Me="",name:_e="",show:De=!1,sort:Oe,customGroup:Ve,conditions:Ee,typeGuid:Ce}=ve;if(De||de===1){te={label:Me.trim(),columnName:_e,show:De,sort:d(Oe),customGroup:Ve,conditions:f(Ee),typeGuid:Ce};break}}}const ie=[];w==null||w.forEach(de=>{de.location="LEFT",ie.push(x(de,X))}),R==null||R.forEach(de=>{de.location="RIGHT",ie.push(x(de,X))}),D==null||D.forEach(de=>{de.location="LEFT",ie.push(x(de,X))});const ae=[];["ecanList","ecanCirculate"].includes(F)&&(I==null?void 0:I.length)>1&&(O=I),O==null||O.forEach(de=>{const{label:pe,name:ve,location:Me,show:_e,indexCode:De,sort:Oe,typeGuid:Ve,indexCodeNum:Ee,dateFormat:Ce,conditions:Fe}=de;let Te=d(Oe);if(k.sort){const{field:Re,order:Ne}=k.sort;let ze=ie.find(qe=>qe.label===Re);!ze&&pe===Re&&(ze=de),ze&&(Te={columnName:ze.columnName,label:k.sort.field,order:Ne.toUpperCase(),type:"NORMAL"})}const we={label:pe,columnName:ve,location:Me,show:_e,sort:Te,calcType:"COLUMN",hrpIndexCode:De,hrpIndexCodeNum:Ee,conditions:f(Fe),typeGuid:Ve};Ce&&(we.dateFormat=Ce),ve==="the_date"&&!we.dateFormat&&(we.dateFormat="YYYY-MM"),ae.push(we)});let se=[],fe=[];if(Array.isArray(E)&&E.length>0?fe=E:Array.isArray(S)&&S.length>0&&(fe=S),fe!=null&&fe.length){const de=fe.length;for(let pe=0;pe<de;pe++){const ve=fe[pe]||{},{label:Me="",name:_e="",show:De=!1,sort:Oe,customGroup:Ve,conditions:Ee,truncations:Ce,typeGuid:Fe="",dateFormat:Te}=ve;let we=d(Oe);if(k.sort){const{field:ze,order:qe}=k.sort;let Z=ie.find(ne=>ne.label===ze);!Z&&ve.label===ze&&(Z=ve),Z&&(we={columnName:Z.columnName,label:k.sort.field,order:qe.toUpperCase(),type:"NORMAL"})}const Re={label:Me.trim(),columnName:_e,show:De,sort:we,customGroup:Ve,conditions:f(Ee),typeGuid:Fe};Te&&(Re.dateFormat=Te),_e==="the_date"&&!Re.dateFormat&&(Re.dateFormat="YYYY-MM");const Ne={};if(Array.isArray(Ce)&&Ce.length>0){const ze=Ce.length;for(let qe=0;qe<ze;qe++){const Z=Ce[qe]||{},{rule:ne="",num:re=0,name:le=""}=Z;ne&&re&&(Ne.num=re,Ne.rule=ne,le&&(Ne.otherGroupName=le))}}(ke=Object.keys(Ne))!=null&&ke.length&&(Re.truncation=Ne),se.push(Re)}}let he=[],ge,be;if(k!=null&&k.pivotTableCal){let de=[];const{calc:pe=[],filter:ve=[],truncations:Me=[],sorts:_e=[],aggregateMethod:De=[],rowDimensionKeys:Oe=[],colDimensionKeys:Ve=[]}=k.pivotTableCal;if(ie.push(...pe),ve!=null&&ve.length)for(const Ee of ve){const{type:Ce,...Fe}=Ee;Ce==="indicators"?de=ie:Ce==="dimension"&&(de=ae);const Te=de.find(we=>we.columnName===Ee.fieldName);Te&&(Te.conditions||(Te.conditions=[]),Te.conditions.push(Fe))}if(Me!=null&&Me.length)for(const Ee of Me){const Ce=ae.find(Fe=>Fe.columnName===Ee.key);Ce&&(Ce.truncation={num:Ee.num,rule:Ee.rule})}if(_e!=null&&_e.length)for(const Ee of _e){const{fieldType:Ce,columnData:Fe,...Te}=Ee;Ce==="indicators"?(de=ie,ge=Fe):Ce==="dimension"&&(de=ae);const we=de.find(Re=>Re.label===Te.label);we&&(we.sort={...Te,columnName:we.columnName})}De!=null&&De.length&&(be=De),se=[],he=[];for(const Ee of ae)Oe.includes(Ee.columnName)?se.push(Ee):Ve.includes(Ee.columnName)&&he.push(Ee)}if(lowerCaseIncludes(F,["text","proportion","counter"])?P="zb":lowerCaseIncludes(F,["valueline"])&&(P="valueline"),M){if(se.length===0||ie.length===0)return;P="grouptable"}else{if($==="1"&&ae.length===0)return;if($==="2"&&ie.length===0)return;if($==="3"&&(!Q&&L!=="EDV_DATA_SET"||!j.labelField||!j.valueField))return;if($==="3"&&F==="ecanDataSelect"&&ie.length===0)return}S!=null&&S.length&&($="1",P="grouptable");let Se=s||((Be=window==null?void 0:window.config)==null?void 0:Be.pageId);if(!Se){const{pathname:de}=window==null?void 0:window.location;if(de){const pe=de.split("/");pe!=null&&pe.length&&(Se=pe[pe.length-1])}}if(!lowerCaseIncludes(F,["scatter","valueline"])&&((Ge=Object.keys(j))!=null&&Ge.length)){const de=getConditions(q).find(ve=>ve.conditionKey==="parentCode"),pe={};if(de){const ve=o(de.id)||{};if(ve!=null&&ve.itemCodes)pe.parentItemCodes=ve.itemCodes;else return}F==="ecanDataSelect"&&(pe.indicatorList=ie.filter(ve=>ve.show)),L==="EDV_DATA_SET"&&(pe.edvDataSetId=J);try{const ve=await request({url:`${INDICATOR_URL}/diagram/formData`,method:"post",headers:{Authentication:($e=window==null?void 0:window.config)==null?void 0:$e.indicatorToken,operateContext:CONTEXT},data:{source:L,dataViewId:V,plugin:"4",layer:$,chartType:"normalSelect",rangeIndexTypeGuid:Q,type:F==="ecanDataSelect"?"normalSelectData":"normalSelect",labelField:j.labelField,valueField:j.valueField,pageId:Se,sqlConditions:ee,idxLibMode:"WITH_DATE_DIM_TABLE",keyName:e.keyName,...pe},signal:((He=window.controller)==null?void 0:He.signal)||""});return k!=null&&k.isTimer&&n(ve),ve}catch(ve){console.error(ve)}}else try{let de={};lowerCaseIncludes(F,["scatter","valueline"])?de={classifications:W}:de={classification:X};const pe=await request({url:`${INDICATOR_URL}/diagram`,method:"post",headers:{Authentication:(Ue=window==null?void 0:window.config)==null?void 0:Ue.indicatorToken,operateContext:CONTEXT},data:{source:L,dataViewId:V,plugin:B?"5":U,layer:$,chartType:B?"pivot-table":P,...de,series:te,indicatorList:ie,queryColumns:M?[]:ae,pageFlag:!0,pageId:Se,edvDataSetId:J||"",sqlConditions:ee.map(ve=>{const{fieldValue:Me}=ve,_e={};return Me&&Array.isArray(Me)&&(_e.fieldValue=JSON.stringify(Me)),{...ve,..._e}}),idxLibMode:G,preview:Y,rowHeaders:se,keyName:e.keyName,columnData:ge,columnHeaders:he,aggregateMethod:be},signal:((We=window.controller)==null?void 0:We.signal)||""});return k!=null&&k.isTimer&&n(pe),pe}catch(de){console.error(de)}},A=vue.unref(r)!=="design"&&((_=e==null?void 0:e.graphicConfig)==null?void 0:_.pageMode)!=="design"&&e.isOpenRequestTimer&&e.requestInterval&&setInterval(()=>{y({isTimer:!0})},e.requestInterval*1e3);return vue.onUnmounted(()=>{clearInterval(A)}),y},useHrefParamsToGlobalVariables=()=>{const n=window.location.search.slice(1).split("&"),r=n.length,i={};for(let a=0;a<r;a++){const o=n[a];if(o==null||o==="")continue;const s=o.split("=");if(Array.isArray(s)){const l=s[0];l.includes("{")||(i[l]=s[1])}}window.config.requestParams={...window.config.requestParams,...i},window.config={...window.config,...i}},_sfc_main$u=vue.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...pageConfigComponentProps,pageId:{type:String,default:""}},setup(e){const{width:n,height:r}=vue.inject(GLOBAL_CONFIG,{width:null,height:null}),i=vue.inject("setPageHeight",y=>{}),a=vue.inject("isMobile",!1),o=vue.computed(()=>{const y={};return a||(y.width=n.value,y.height=r.value),{...y,backgroundColor:e.pageId?"transparent":e.backgroundColor,backgroundImage:useImagePath(e.backgroundImage,!0),backgroundSize:e.backgroundSize}}),s=vue.ref(0),l=vue.ref(0),c=vue.ref(0),u=vue.ref(0),f=vue.ref(!1),x=vue.ref();let h;const g=()=>new Promise(y=>{vue.nextTick(()=>{n.value&&r.value?(s.value=parseFloat(n.value),l.value=parseFloat(r.value)):(s.value=x.value.clientWidth,l.value=x.value.clientHeight),(!c.value||!u.value)&&(c.value=window.screen.width,u.value=window.screen.height),y()})}),v=()=>{s.value&&l.value?(x.value.style.width=`${s.value}px`,x.value.style.height=`${l.value}px`):(x.value.style.width=`${c.value}px`,x.value.style.height=`${u.value}px`)};vue.watch([n,r],async()=>{e.pageId||(await g(),v(),C(),window.addEventListener("resize",b),d()),f.value=!0},{immediate:!0});const p=vue.ref({});vue.provide("scaleValue",p);const C=()=>{if(a){x.value.style.width="100%",x.value.style.height="auto",i("auto");return}const y=document.body.clientWidth,A=document.body.clientHeight,_=s.value||c.value,k=l.value||u.value,T=y/_;let F=A/k;(s.value!==1920||l.value!==1080)&&(F=l.value/s.value*y/k),p.value={widthScale:T,heightScale:F},x.value&&(x.value.style.transform=`scale(${T}, ${F})`),i(F)},b=lodashEs.debounce(async()=>{await g(),C()},100),d=()=>{const y=window.MutationObserver;h=new y(b),h.observe(x.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},m=()=>{h&&(h.disconnect(),h.takeRecords(),h=null)};return vue.onMounted(()=>{f.value=!1}),vue.onUnmounted(()=>{window.removeEventListener("resize",b),m()}),{style:o,container:x,ready:f}}}),PageConfig_vue_vue_type_style_index_0_scoped_e1e149bf_lang="",_hoisted_1$g={id:"container",ref:"container"};function _sfc_render$z(e,n,r,i,a,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$g,[e.ready||e.pageId?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"page-config",style:vue.normalizeStyle(e.style)},[vue.renderSlot(e.$slots,"default",{},void 0,!0)],4)):vue.createCommentVNode("",!0)],512)}const PageConfig=_export_sfc$1(_sfc_main$u,[["render",_sfc_render$z],["__scopeId","data-v-e1e149bf"]]),EcanPageConfig=withInstall$1(PageConfig),providerConfig={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px",pageFontFamily:"",jumpType:"page",jumpTime:null,jumpPage:"",jumpLink:"",requestList:[],events:[]},providerConfigComponentProps=transformToComponentProps(providerConfig),_sfc_main$t=vue.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...providerConfigComponentProps,pageId:{type:String,default:""}},setup(e,{expose:n,emit:r}){e.pageId||useHrefParamsToGlobalVariables();const i=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)),a=vue.ref(),o=()=>{a.value.setAttribute("datav-theme",e.theme)},s=vue.inject("usedComponentList",[]),l=vue.inject("componentList",[]),c=vue.computed(()=>{const W=[];for(const Q of vue.unref(s))Q.type==="ecanModal"?W.push(...Q.componentList):W.push(Q);return W});vue.watch(()=>e.theme,()=>{o()}),vue.onMounted(()=>{o()});const u=vue.computed(()=>useVariablesInText(e.contextRequestUrl)),f=vue.computed(()=>e.pageMode),x=vue.computed(()=>e.theme),h=vue.computed(()=>e.width),g=vue.computed(()=>e.height),v=vue.computed(()=>e.pageFontFamily),p=vue.computed(()=>{const W=[],Q=vue.unref(l).filter(te=>te.type==="ecanModal");for(const te of Q)te!=null&&te.requestList&&W.push(...te.requestList);return[...W,...e.requestList]}),C=vue.ref("");vue.provide(GLOBAL_CONFIG,{contextRequestUrl:u,pageMode:f,theme:x,touchEventId:C,width:h,height:g,fontFamily:v,requestList:p});const b=vue.ref({height:"100%",overflow:e.pageMode==="design"?"":"hidden"});vue.provide("setPageHeight",W=>{let Q=W;i.value||(Q=parseFloat(g.value)*W+"px"),b.value.height=Q}),vue.provide("isMobile",i.value),vue.provide("getContainerMap",()=>e.containerMap),vue.provide("getCombinationMap",()=>e.combinationMap),vue.provide("templateOperate",{pageId:e.pageId,templateEmit:r,setTemplateData:W=>{var Q;if(W!=null&&W.pageId){const{componentId:te,...ie}=W;(Q=window.config)!=null&&Q.urlParams||(window.config.urlParams={}),window.config.urlParams[W.pageId]=ie,r("templateChange",W)}}});const d=vue.ref(),m=new Map,y=W=>m.get(W),A=(W,Q)=>{var te;if(d.value=Q,m.set(W,Q),!e.pageId){const ie=vue.unref(s).find(ae=>ae.id===W);ie&&((te=window.config)!=null&&te.record||(window.config.record={}),window.config.record[ie.keyName]=Q)}},_=()=>{d.value=null},k=W=>{let Q=W;if(Q){const te=W.match(/\{(.+?)\}/g);if(te!=null&&te.length){let ie=te[0].slice(1,-1).trim();const ae=ie.match(/\[(.+?)\]/g);let se="";ae!=null&&ae.length&&(ie=ie.replace(ae[0],""),se=ae[0].slice(1,-1).trim());const fe=vue.unref(c).find(he=>he.keyName===ie);if(fe){const he=y(fe.id),{type:ge,value:be,RECORD:Se,recordData:Ae}=he||{};lowerCaseIncludes(ge,MODEL_KEY_LIST)?Q=Se[se]:lowerCaseIncludes(ge,"select")?Q=Ae[se]:lowerCaseIncludes(ge,["rangePicker","date"])?dayjs.isDayjs(vue.unref(he[se]))?Q=vue.unref(he[se]).format(he.format):Q=vue.unref(he[se]):Q=be}else Q=(window.config.requestParams||{})[ie]||""}}return Q},T=new Map,F={},M=async(W,Q)=>{var fe;const{requestName:te}=W,ie=await useRequestData({...W,projectRequestUrl:vue.unref(u),getModel:y})(),ae=((fe=ie==null?void 0:ie.data)==null?void 0:fe.data)||{},se=T.get(te);if(se!=null&&se.length&&(!Q||F[te])){for(const he of se)he(ae);Q||T.delete(te)}},B=(W,Q)=>{F[W]&&(clearInterval(F[W]),delete F[W],T.delete(W));const te=vue.unref(c).filter(ae=>!ae.openCustomRequestData&&ae.customRequestName===W),ie=T.get(W)||[];if((te==null?void 0:te.length)>ie.length&&(ie.push(Q),T.set(W,ie),(te==null?void 0:te.length)===ie.length)){const ae=vue.unref(p).find(se=>se.requestName===W);ae&&(ae!=null&&ae.isOpenRequestTimer&&(ae!=null&&ae.requestInterval)?(M(ae,!0),F[W]=setInterval(()=>{M(ae,!0)},ae.requestInterval*1e3)):M(ae))}};vue.provide(GLOBAL_MODEL,{getGlobalModel:y,setGlobalModel:A,clearInteractiveData:_,getRecordValueByKeyName:k,hanldePageRequestData:B,interactiveData:d});const L=vue.ref({}),V=(W,Q)=>{L.value[W]=Q};vue.provide(LOADED_DATA,{loadedData:L,setLoadedData:V});const U=[],$=()=>{U.pop()},P=W=>{U.push(W)},I=new Map,E=W=>I.get(W),S=(W,Q)=>{I.set(W,Q)};vue.provide(MODAL_MODEL,{popUseModalIds:$,pushUseModalIds:P,getModalModel:E,setModalModel:S});const N=mitt(),w=new Set,R=(W,Q)=>{w.add(W),N.on(W,te=>{const{eventName:ie,params:ae}=te;return typeof Q[ie]=="function"&&Q[ie](ae)}),vue.onBeforeUnmount(()=>{O(W)})},O=W=>{w.delete(W),N.off(W)},D=(W,Q,te={})=>{if(W==="PAGE"){const ie=U.length;let ae=[];if(ie===0)ae=[...w];else{const se=U[ie-1];ae=[...E(se)]}ae.forEach(se=>{N.emit(se,{eventName:Q,params:te})})}else N.emit(W,{eventName:Q,params:te})};vue.provide(EVENT_BUS,{onEvent:R,offEvent:O,emitEvent:D});const q=vue.ref(0),j=()=>{q.value=vue.unref(q)+1};vue.provide(GLOBAL_TOKEN,{requestToken:j});const H=new Map,K=new Map,G=({requestFn:W=()=>{},sortNum:Q=0,id:te=""})=>{if(H.has(Q)){const ie=H.get(Q);ie==null||ie.push(W)}else H.set(Q,[W]);K.set(te,W)},Y=W=>new Promise((Q,te)=>{const ie=W.map(ae=>ae());Promise.all(ie).then(ae=>{Q(ae)}).catch(ae=>{te(ae)})}),J=W=>new Promise(async(Q,te)=>{if(W){if(typeof W=="string"){const ie=K.get(W);if(typeof ie=="function"){const ae=request.interceptors.response.use(se=>(Q(se),se),se=>(te(se),Promise.reject(se)));ie(),request.interceptors.response.eject(ae)}}}else{const ie=Array.from(H);ie.sort((se,fe)=>fe[0]-se[0]);const ae=ie.length;try{e.pageMode!=="design"&&vue.unref(q)>0;for(let se=0;se<ae;se++){const fe=ie[se][1];await Y(fe)}}catch(se){console.error(se)}finally{H.clear(),Q(null)}}});vue.provide(REQUEST_MODEL,{setRequest:G,touchRequest:J});const ee=()=>{N.emit(REFRESH_PAGE)};vue.provide(REFRESH_PAGE,{emitRefreshPage:ee});const X=W=>{N.on(REFRESH_PAGE,()=>W()),vue.onMounted(()=>{N.off(REFRESH_PAGE)})};return vue.watchEffect(()=>{var W;if((W=vue.unref(s))!=null&&W.length&&vue.unref(f)!=="design"){const{jumpType:Q,jumpTime:te,jumpPage:ie,jumpLink:ae}=e;if(te!=null&&te.value){let se=0;switch(te==null?void 0:te.suffix){case"hours":se=te.value*60*60*1e3;break;case"minute":se=te.value*60*1e3;break;case"seconds":se=te.value*1e3;break}setTimeout(()=>{let fe="";Q==="page"&&ie?fe=usePageUrl(vue.unref(f),ie):Q==="link"&&ae&&(fe=ae),fe=useVariablesInText(fe),window.open(fe,"_self")},se)}}}),vue.onBeforeUnmount(()=>{H==null||H.clear(),K==null||K.clear()}),n({touchRequest:J,getGlobalModel:y,onRefreshPage:X,emitEvent:D,getRecordValueByKeyName:k,props:e}),{providerConfig:a,configStyle:b}}}),ProviderConfig_vue_vue_type_style_index_0_scoped_e3bcaa04_lang="";function _sfc_render$y(e,n,r,i,a,o){return vue.openBlock(),vue.createElementBlock("div",{id:"ProviderConfig",ref:"providerConfig",style:vue.normalizeStyle({...e.configStyle,fontFamily:e.pageFontFamily})},[vue.renderSlot(e.$slots,"default",{},void 0,!0)],4)}const ProviderConfig=_export_sfc$1(_sfc_main$t,[["render",_sfc_render$y],["__scopeId","data-v-e3bcaa04"]]),EcanProviderConfig=withInstall$1(ProviderConfig),textProps={...props,name:"文本",keyName:"文本",type:"ecanText",width:"100px",height:"40px",text:"文字",lineHeight:1,color:"#333",variableColor:"#f00",fontSize:"14px",fontFamily:"",fontWeight:400,textShadow:"",justifyContent:"center",alignItems:"center",variableFontSize:"14px",variableDefaultValue:"0",format:"",target:"self",href:"",linkPage:"",data:{},percentageSide:"left",increaseColor:"",declineColor:"",minusSignShow:!0,unitShow:!0,unitText:"",unitFontSize:"14px",unitFontWeight:400,unitColor:"#333",unitTop:"",unitLeft:"",graphicConfig:{},targetShow:!1,targetRule:"",targetValue:"",notExpectColor:"",gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",openCustomRequestData:!0,customRequestName:"",customRequestField:"",showEllipsis:!1,showAnimation:!1,transParams:[],exceedConfig:"",targetTemplate:""},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==",__default__$4=vue.defineComponent({name:"EcanText",components:{Skeleton},props:{...textComponentProps},setup(e,{expose:n}){const r=vue.ref(!1),i=usePickComponentStyle(e),a=vue.ref({}),o=vue.computed(()=>e.variableFontSize||"14px"),s=vue.computed(()=>"-"+vue.unref(o)),l=w=>{var R,O;if(e.showAnimation){const D=e.text.match(/\{(.+?)\}/g)||[];if(D!=null&&D.length){const q=(R=D[0].slice(1,-1))==null?void 0:R.trim();if(vue.unref(a)[q]===w){a.value=w;return}const j=+w[q];let H=0;if(isNaN(j))a.value=w;else{String(j).includes(".")&&(H=((O=String(j).split(".")[1])==null?void 0:O.length)||0);const K=Math.abs(j)*Math.pow(10,H),G=String(K).length;let Y=[];for(let ee=0;ee<5;ee++){const X=Math.ceil(Math.random()*(K+1)-1);Y.includes(X)||Y.push(X)}Y.sort((ee,X)=>ee-X),Y=Y.map(ee=>{const X=String(ee).split("").reverse(),W=[];for(let Q=0;Q<G;Q++)X&&X[Q]?W.push(X[Q]):W.push("0");return H&&W.splice(H,0,"."),(j<0?"-":"")+W.reverse().join("")}),Y.push(j);let J=0;for(const ee of Y)setTimeout(()=>{a.value={...vue.unref(a),[q]:ee}},J*1e3),J+=.1}}else a.value=w}else a.value=w};vue.watch(()=>[e.data,e.dataType],([w,R])=>{R==="static"&&l(w)},{immediate:!0});const{getGlobalModel:c,setGlobalModel:u,getRecordValueByKeyName:f,hanldePageRequestData:x}=vue.inject(GLOBAL_MODEL,{getGlobalModel:w=>{},setGlobalModel:(w,R)=>{},getRecordValueByKeyName:w=>{},hanldePageRequestData:(w,R)=>{}}),{setLoadedData:h,loadedData:g}=vue.inject(LOADED_DATA,{setLoadedData:(w,R)=>{},loadedData:{}}),{setTemplateData:v}=vue.inject("templateOperate",{setTemplateData:w=>{}}),p=vue.computed(()=>{let w="";if(e.gradientShow){const{gradientColor:R,gradientOffset:O,gradientAngle:D,color:q}=e;w+=`background: linear-gradient(${D}, ${q}, ${R||"transparent"} ${O*100}%);-webkit-background-clip: text;color: transparent;`}return w}),C=vue.computed(()=>{const w={};if(e.gradientShow){const{gradientColor:R,gradientOffset:O,gradientAngle:D,color:q}=e,j=R||"transparent";w.background=`linear-gradient(${D}, ${q}, ${j} ${O*100}%)`,w["-webkit-background-clip"]="text",w.color="transparent"}return w}),b=vue.computed(()=>{const w={};return e.linkPage&&(w.cursor="pointer",w.userSelect="none"),w}),d=vue.ref(1),m=vue.computed(()=>{var K;if(vue.unref(r))return"NaN";if(!d.value)return;const w=vue.unref(a),R=e.increaseColor||e.color,O=e.declineColor||e.color;let D=e.text;D=D==null?void 0:D.replace(/\n|\\n/g,"<br/>"),D=D==null?void 0:D.replace(/\s(?!\{) | (?!\})\s/g,"&nbsp;");const q=D.match(/\{(.+?)\}/g)||[];let j="",H="";if(e.exceedConfig==="wrap"?H="show-wrap":e.exceedConfig==="ellipsis"&&(H="show-ellipsis"),q==null||q.length===0){if(D&&e.format==="percentage"&&!isNaN(+D)){const G=parseFloat(D),Y=G*100,J=y(Y.toFixed(2));G>=0?D=`<span class="${H}" style="color: ${J||R||"#ED6643"};font-size:${vue.unref(o)};display: inline-block;${vue.unref(p)}">
100
100
  <div class="percentage-img-box">
101
- <img style="width: ${vue.unref(o)};filter: ${`drop-shadow(${J||q||"#ED6643"} ${vue.unref(o)} 0px)`};" src="${goUp}"/>
101
+ <img style="width: ${vue.unref(o)};filter: ${`drop-shadow(${J||R||"#ED6643"} ${vue.unref(o)} 0px)`};" src="${goUp}"/>
102
102
  </div>
103
103
  <span style="color: ${J||e.color};${vue.unref(p)}">${Math.abs(+Y).toFixed(2)}%</span>
104
- </span>`:D=`<span class="${j}" style="color: ${J||O||"#6ACB97"};font-size:${vue.unref(o)};display: inline-block;${vue.unref(p)}">
104
+ </span>`:D=`<span class="${H}" style="color: ${J||O||"#6ACB97"};font-size:${vue.unref(o)};display: inline-block;${vue.unref(p)}">
105
105
  <div class="percentage-img-box">
106
106
  <img style="width: ${vue.unref(o)};filter: ${`drop-shadow(${J||O||"#6ACB97"} ${vue.unref(o)} 0px)`};" src="${goDown}"/>
107
107
  </div>
108
108
  <span style="color: ${J||e.color};${vue.unref(p)}">${e.minusSignShow?"-":""}${Math.abs(+Y).toFixed(2)}%</span>
109
- </span>`}U=D}for(let G=0;G<$.length;G++){const Y=$[G],J=(K=Y==null?void 0:Y.slice(1,Y.length-1))==null?void 0:K.trim();let ee=J;const Z=J.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);for(let Q=0;Q<Z.length;Q++){const te=Z[Q],re=w[te];if(re)ee=J.replace(te,f(String(re))||re);else{const ae=getPageUrlParams(_);ae[te]&&(ee=decodeURIComponent(ae[te]))}}if(/\(.*\)/g.test(ee)){const Q=runCode(ee);Q!=null&&(ee=Q)}let W=ee;if(W===J&&(W=e.variableDefaultValue),W!=null){const Q=e.format;if(Q==="percentage")if(W=+W,isNaN(W))e.variableDefaultValue?D=D.replace(Y,`<span class="${j}" style="color:${y("0.00")||e.variableColor};font-size:${vue.unref(o)};${vue.unref(p)}">${e.variableDefaultValue}</span>`):D=D.replace(Y,`<span class="${j}" style="color:${y("0.00")||e.variableColor};font-size:${vue.unref(o)};${vue.unref(p)}">0%</span>`);else if(W>=0){W=W*100;const te=y(W.toFixed(2));D=D.replace(Y,`<span class="${j}" style="color: ${te||q||"#ED6643"};font-size:${vue.unref(o)};display: inline-block;${vue.unref(p)}">
109
+ </span>`}j=D}for(let G=0;G<q.length;G++){const Y=q[G],J=(K=Y==null?void 0:Y.slice(1,Y.length-1))==null?void 0:K.trim();let ee=J;const X=J.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);for(let Q=0;Q<X.length;Q++){const te=X[Q],ie=w[te];if(ie)ee=J.replace(te,f(String(ie))||ie);else{const ae=getPageUrlParams(_);ae[te]&&(ee=decodeURIComponent(ae[te]))}}if(/\(.*\)/g.test(ee)){const Q=runCode(ee);Q!=null&&(ee=Q)}let W=ee;if(W===J&&(W=e.variableDefaultValue),W!=null){const Q=e.format;if(Q==="percentage")if(W=+W,isNaN(W))e.variableDefaultValue?D=D.replace(Y,`<span class="${H}" style="color:${y("0.00")||e.variableColor};font-size:${vue.unref(o)};${vue.unref(p)}">${e.variableDefaultValue}</span>`):D=D.replace(Y,`<span class="${H}" style="color:${y("0.00")||e.variableColor};font-size:${vue.unref(o)};${vue.unref(p)}">0%</span>`);else if(W>=0){W=W*100;const te=y(W.toFixed(2));D=D.replace(Y,`<span class="${H}" style="color: ${te||R||"#ED6643"};font-size:${vue.unref(o)};display: inline-block;${vue.unref(p)}">
110
110
  <div class="percentage-img-box">
111
- <img style="width: ${vue.unref(o)};filter: ${`drop-shadow(${te||q||"#ED6643"} ${vue.unref(o)} 0px)`};" src="${goUp}"/>
111
+ <img style="width: ${vue.unref(o)};filter: ${`drop-shadow(${te||R||"#ED6643"} ${vue.unref(o)} 0px)`};" src="${goUp}"/>
112
112
  </div>
113
113
  <span style="color: ${te||e.color};${vue.unref(p)}">${Math.abs(+W).toFixed(2)}%</span>
114
- </span>`)}else{W=W*100;const te=y(W.toFixed(2));D=D.replace(Y,`<span class="${j}" style="color: ${te||O||"#6ACB97"};font-size:${vue.unref(o)};display: inline-block;${vue.unref(p)}">
114
+ </span>`)}else{W=W*100;const te=y(W.toFixed(2));D=D.replace(Y,`<span class="${H}" style="color: ${te||O||"#6ACB97"};font-size:${vue.unref(o)};display: inline-block;${vue.unref(p)}">
115
115
  <div class="percentage-img-box">
116
116
  <img style="width: ${vue.unref(o)};filter: ${`drop-shadow(${te||O||"#6ACB97"} ${vue.unref(o)} 0px)`};" src="${goDown}"/>
117
117
  </div>
118
118
  <span style="color: ${te||e.color};${vue.unref(p)}">${e.minusSignShow?"-":""}${Math.abs(+W).toFixed(2)}%</span>
119
- </span>`)}else e.format==="percent"?(W=+W,isNaN(W)||(W=(W*100).toFixed(2),D=D.replace(Y,`<span class="${j}" style="color:${y(W)||e.variableColor};font-size:${vue.unref(o)};${vue.unref(p)}">${W}%</span>`))):e.format==="money"?(W=+W,isNaN(W)||(W=formatMoney(W),D=D.replace(Y,`<span class="${j}" style="color:${y(W)||e.variableColor};font-size:${vue.unref(o)};${vue.unref(p)}">${W}</span>`))):Q==="thousands"?(W=+W,isNaN(W)||(W=formatThousands(W),D=D.replace(Y,`<span class="${j}" style="color:${y(W)||e.variableColor};font-size:${vue.unref(o)};${vue.unref(p)}">${W}</span>`))):D=D.replace(Y,`<span class="${j}" style="color:${y(W)||e.variableColor};font-size:${vue.unref(o)};${vue.unref(p)}">${W}</span>`)}}if(U||(U=`<span class="${j}" style="color: ${y(D)};${vue.unref(p)}">${D}</span>`),e.unitShow&&e.unitText){const{unitTop:G,unitLeft:Y}=e;let J="position:relative;";G&&(J+=`top:${G};`),Y&&(J+=`margin-left:${Y};`),U+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${J};${vue.unref(p)}'>${e.unitText}</span>`}return e.exceedConfig&&(U=`<span class="${j}" style="display: inline-block;color: ${y(U)};">${U}</span>`),U.includes("span")||(U=`<span class="${j}" style="color: ${y(U)};">${U}</span>`),U});function y(w){let q="",O=!1;const{targetValue:D,targetShow:$,notExpectColor:U}=e;if($){switch(e.targetRule){case"equal":w!==D&&(O=!0);break;case"greater":w<=D&&(O=!0);break;case"greater_equal":w<D&&(O=!0);break;case"less":w>=D&&(O=!0);break;case"less_equal":w>D&&(O=!0);break}O&&(q=U)}return q}const{pageMode:A}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",requestList:[]}),{pageId:_}=vue.inject("templateOperate",{pageId:""})||{},k=useRequestData(e),T=vue.ref(!1),F=async()=>{var w,q,O;try{T.value=!0;const D=await k();(w=D==null?void 0:D.data)!=null&&w.data.rowsToData?l(((q=D==null?void 0:D.data)==null?void 0:q.data.rowsToData)||{}):l(((O=D==null?void 0:D.data)==null?void 0:O.data)||{})}catch(D){console.error(D)}finally{T.value=!1}},M=w=>{const q=e.id,O=c(q);u(q,{...O,value:w||"",RECORD:w||""})},B=()=>{M("")},L=w=>{var O,D;const{data:q}=(w==null?void 0:w.data)||{};if(q){r.value=!1;const{columns:$=[],rows:U=[]}=((O=w==null?void 0:w.data)==null?void 0:O.data)??{},{graphicConfig:j}=e;let K={};if($.length>0)if((D=j==null?void 0:j.dimensionList)!=null&&D.length){const G=$[0];G&&(U!=null&&U.length)&&(K={value:U[0][G]})}else{const G=$.find(Y=>!!Y);G&&(K={value:isNaN(U[G])?0:U[G]||0})}M(K==null?void 0:K.value),l(K)}else r.value=!0,M("NaN"),l({value:"NaN"})},R=useIndicatorData(e,L),H=async()=>{try{T.value=!0;const w=await R();L(w)}catch(w){console.error(w)}finally{T.value=!1,h(e.id,!0)}},V=vue.ref(!1);vue.watch(g,w=>{if(e.dataType==="indicator"){const q=getFixedValueDatas(e.graphicConfig);q!=null&&q.length&&(!vue.unref(V)&&canRequestIndicator(e.graphicConfig,w)?(V.value=!0,P()):canRequestIndicator(e.graphicConfig,w)||(V.value=!1))}},{deep:!0});const P=()=>{switch(e.dataType){case"indicator":H();break;case"request":{const{openCustomRequestData:w,customRequestName:q}=e;w||w===void 0?F():x(q,O=>{O&&(O.rowsToData?l(O.rowsToData):l(O))});break}}},{setRequest:I}=vue.inject(REQUEST_MODEL,{setRequest:({id:w,sortNum:q,requestFn:O})=>{}});typeof I=="function"&&I({id:e.id,requestFn:P,sortNum:e.requestSort}),n({refreshData:P});const S=useEmitEvent(e),C=S("click",()=>{const w=document.getElementsByClassName(`ecan-text_${e.id}`);w!=null&&w.length&&M(w[0].innerText),setTimeout(()=>{M("")},0),!(!e.linkPage&&!e.href)&&handleJumpLink(e,{pageMode:vue.unref(A),targetTemplate:e.targetTemplate,getRecordValueByKeyName:f,setTemplateData:v})}),N=S("valueChange",()=>{d.value++});return useOnEvent(e,{refreshData:P,resetRecord:B,click:C,valueChange:N}),vue.watch(()=>m.value,(w,q)=>{w!==q&&N()}),{style:i,myText:m,loading:T,click:C,textIndent:s,vFontSize:o,gradientStyle:E,cursorStyle:b}}}),__injectCSSVars__$4=()=>{vue.useCssVars(e=>({"404765ce":e.vFontSize,"78653df4":e.textIndent,"299ccd5e":e.percentageSide}))},__setup__$4=__default__$4.setup;__default__$4.setup=__setup__$4?(e,n)=>(__injectCSSVars__$4(),__setup__$4(e,n)):__injectCSSVars__$4;const Text_vue_vue_type_style_index_0_scoped_46af486b_lang="",Text_vue_vue_type_style_index_1_lang="",_hoisted_1$f=["innerHTML"];function _sfc_render$x(e,n,r,i,a,o){const s=vue.resolveComponent("skeleton");return e.loading?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:vue.normalizeStyle(e.style)},[vue.createVNode(s,{loading:e.loading},null,8,["loading"])],4)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:vue.normalizeClass(["ecan-text","ecan-text_"+e.id]),style:vue.normalizeStyle({...e.style,...e.gradientStyle,...e.cursorStyle}),innerHTML:e.myText,onClick:n[0]||(n[0]=(...l)=>e.click&&e.click(...l))},null,14,_hoisted_1$f))}const Text=_export_sfc$1(__default__$4,[["render",_sfc_render$x],["__scopeId","data-v-46af486b"]]),EcanText=withInstall$1(Text),_sfc_main$s=vue.defineComponent({name:"EcanScrollText",setup(){return{text:vue.ref("基础文本")}}}),ScrollText_vue_vue_type_style_index_0_scoped_4dd9c03e_lang="",_hoisted_1$e={class:"red"};function _sfc_render$w(e,n,r,i,a,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$e,vue.toDisplayString(e.text),1)}const ScrollText=_export_sfc$1(_sfc_main$s,[["render",_sfc_render$w],["__scopeId","data-v-4dd9c03e"]]),EcanScrollText=withInstall$1(ScrollText),timeDisplayProps={...props,name:"时间展示",keyName:"时间展示",type:"ecanTimeDisplay",format:"YYYY-MM-DD dddd HH:mm:ss",fontSize:"16px",color:"#333",width:"240px",height:"40px",fontFamily:"",fontWeight:400,textShadow:"",alignItems:"center",justifyContent:"center",operate:null,updateInterval:{value:1,mode:"second"}},timeDisplayComponentProps=transformToComponentProps(timeDisplayProps),timeDisplayEvents=["timeChange"],_sfc_main$r=vue.defineComponent({name:"EcanTimeDisplay",props:{...timeDisplayComponentProps},setup(e){const{pageMode:n}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),r=usePickComponentStyle(e),i=()=>{const{format:f,operate:x}=e;let h=dayjs();if(x){const{type:g,value:v,mode:p}=x;switch(g){case"add":h=h.add(v,p);break;case"minus":h=h.subtract(v,p)}}return h.format(f)},a=vue.ref();vue.watch(()=>[e.operate,e.format],()=>{a.value=i()},{immediate:!0,deep:!0}),vue.watch(()=>e.updateInterval,()=>{u()},{deep:!0});let o=null;const s=()=>{clearInterval(o),o=null},c=useEmitEvent(e)("timeChange",()=>{}),u=()=>{o&&s();let f=1e3;const{value:x,mode:h}=e.updateInterval||{};x&&(f=f*x);const g={second:1,minute:60,hour:60*60,day:24*60*60};h&&(f=f*g[h]),o=setInterval(()=>{a.value=i(),vue.unref(n)!=="design"&&c()},f)};return useOnEvent(e,{timeChange:c}),vue.onMounted(()=>{u()}),vue.onUnmounted(()=>{s()}),{style:r,time:a}}}),TimeDisplay_vue_vue_type_style_index_0_scoped_b9216314_lang="";function _sfc_render$v(e,n,r,i,a,o){return vue.openBlock(),vue.createElementBlock("div",{class:"time-display",style:vue.normalizeStyle(e.style)},vue.toDisplayString(e.time),5)}const TimeDisplay=_export_sfc$1(_sfc_main$r,[["render",_sfc_render$v],["__scopeId","data-v-b9216314"]]),EcanTimeDisplay=withInstall$1(TimeDisplay),listProps={...props,type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#0d215e",itemColSpan:"0px",itemRowSpan:"10px",itemPadding:"20px",useRanking:!1,useTitle:!1,sliceCount:6,columnCount:1,itemHeight:"32px",data:[{name:"a",age:12},{name:"b",age:14}],columns:[{key:"name"},{key:"age"}],seqIcon:!1,isUseSeq:!1,seqWidth:"10%",seqName:"序号",seqFontSize:"14px",isAutoScroll:!1,scrollSpeed:10,graphicConfig:{},seqIconWidth:"",seqIconHeight:"",seqIconConfig:[],seqIconOffsetX:0,seqIconOffsetY:0,seqIndexFormatter:"{index}",itemWidth:"100%"},listComponentProps=transformToComponentProps(listProps),listEvents=["refreshData","click","resetRecord"],seqIcon4="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAWhJREFUSEvNlz9Lw0AYxp/3iJ2TgqN+ia5ihbb0A/hnEXG3QxHEyUkQVwcHwU3cgoI4hHKXUnQS3Z0VQVBwbTVtXrlciyKmLo2XmxI47v3x3HPvPUdcKk3B85og2gYwjUkOIoD5CcAeSXk0bmniSqWJQuEA/f4kEb7WMjD6f42kPE0rQlyrPYJoZjg5O5g4voDnrZDvf/xWRIMkuJkOo8odXHeefL9rG+QWrlvOA8gNomiBOp2ePUVM5S7iuE5heG0bBNBeieMdKLWvv74D/Y9Zf0rAfEZKLdkHEUIrcw8h5qjVetNAdhRJKidH+nnY6EJ7IKN9YY4ANPIAou+WDXsgZmtewLxKSik7ICOzOk6ZguDVplnPScpFe8c3Jw2th8GgTu32lb0Wb4yZg0vPgOQmBvwRjKrVBwgxm3lUZL6E4yxTELyneaQBxznMPDwzr5NSJ+nhWT8nisVNAFuZPSeYd0mp43G5+BNp2sfxEUU29gAAAABJRU5ErkJggg==",seqIcon5="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAbVJREFUSEvNl7tKA1EQhmfOyd6ClikVLHwCWzHb5QHUbWIStVRQBLGyEEFsLSwUq6idKIiFjZdNUgTR3k7wAoqC2GU3mz0ju5uIRaKN68l5gDMfM//M/IO0PaS4yd55ErTEEFMEf/cYIvgknjjgmpq3t376GZ2iOa8l+Ybn+CD+kqIZlSFA+C1CTpuw9zvBYK2YfuCM9QmKgaIZNcEQGj4da0bKQuug3g4G3T2TYmQIYwYlIqIbVXdH0KrW2oI4u2Z8qfgqT6AVutZ1Ny0VhAelEXSl+2DilO1IywhCKNgaR8oouVJFGkikk0grvqBl9c5cx5UV8R0I/0MjbTJwqOftMekgmsLA9fxbTa8Po1V9D8eMpIyAwhE8n55JYM6YvDyXBhIN21DEHgHNdgNIg4BmpIEEpak3xGsCMKsU7DMpIC2xeg2R7p2uvMkTK9GRXiiNSmnfrhhoYXcQODzBMkr2oixtxLeW3osP5oDMpRdZxl9sQNcYo1oxfc8Z64/dKgo6efwwxgfnTt1OGpnVDL4Zp3mOAouCmivvdjTPwTlRN3oWBMFiHOeEIPFEAKtGvrTz0znxCSDl9ZPnj4lKAAAAAElFTkSuQmCC",seqIcon6="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAZhJREFUSEvNl79LY0EUhb87L6uwkHSieRjBwm7/ApHVbcwzrT8ake21EGHZympBbLewEOxk2xVEBAVttBLtrRWTiLtaiTHue3NlsgiKRiwSJ1NOMffjzLl3zghH+oHL81ms/Y4xHajSsGUMJMkZIgtE4fJr5wqbpVnS6Z9UrmkoxENVMYCC6BTD4a96MMJW8RQT5LC2YUI8OygInDLrdGcn+CR3LxUStsvaFCUeV3NXpPaIdPKZ/lzlZZCtUgNNUUdUB2LtIZlksBVADmivDvGl99afIiLOsBWUPFG47w/EVXbdU7uieJ7h7CIiT7pDeA+PPJfgN1E49njbD0hbO9xVj8kkA/TnrmqCeVIEUimI4zJqphjp2vUHUpPBmZh/JDrjH0Q1xjLtDyRIQRJfQDBJ1LnjB+TBrFYGKWT/+DTrGlE46qd9W2Kgue5QvUXIkw/3/I34/69vCzx6b4oBrROMiieYoKfpUTGON9CbcQp91ToeKc7wMbPU9PCsfCXKrtYPz+478fd8DtVvGGnOd0LlB4Vw5bV0fg/E2Mcb2D1RagAAAABJRU5ErkJggg==",seqIcon7="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAapJREFUSEvNl88rBGEYx7/P7K6yO2VGOfJPuAqF/AGYi7Q7y8mWTcnJQUquDg4kVnITJQdpZyVOsndXtKUoM4vyY3feR7OLiN0cjHff05ze7+d95vs+7/chtC6FGvRQkgiTBGrCXy4igEVOgGbzaXOx2takdaWSSl39PBefAPBfYpT3KsF4H2LITsc3KgmQ3pO6BFEz2AeId1VSwELsOHrEwKbx8hMM6T1r7EslPqsReefMqlq4PbdpPFYASflYijfJEgifqlqkQzKIArB7YheoE4emZ8Zvy/OI/xUpyz5CoNfOmMeSQah8gwRP2db5HDAtvtjoHyvyocuMLccy+6WDkBICi+KZq4Tb7vaN21K7kVGRcqMLeAa+EqChfDqWkQfy9l+YUWAgUQMgXGTQqDwQCoDZvWZWBvNW1JIC8m7WQlB0POzFb6SZlYFtJ232Sbq+tdPQnth1e52DkSN5LZ5q5dH7XQz4r2AksqqmVglG3asXUJQWv6MiWOzawfsB7I09V/DISoKCkQW/wzMzoo4VW68YnkvjRGNonEATBPgzTjDP5K3h5Wojwitkj93H9BVpxQAAAABJRU5ErkJggg==",_sfc_main$q=vue.defineComponent({name:"EcanList",components:{Skeleton,ATooltip:antDesignVue.Tooltip,MarqueeScroll},props:{...listComponentProps},setup(e,{expose:n}){const r=vue.ref(),i=usePickComponentStyle(e,["backgroundColor"]),a=(I,S)=>{const{format:C,customFormatter:N}=S;if(C==null||C==="")return I;const w={money:formatMoney,percentage:formatPercentage,contrast:formatPercentage,custom:formatCustom};return w[C]?C==="custom"?w[C](I,N)||"":w[C](I)||"":""},o=(I,S)=>{const C=parseFloat(I+"");if(S!=="contrast")return"";switch(!0){case C>=0:return"goUp";case C<0:return"goDown"}},s=useRequestData(e),l=vue.ref(!1),c=async()=>{var I;if(e.dataType==="request")try{l.value=!0;const S=await s();r.value=((I=S==null?void 0:S.data)==null?void 0:I.data.rows)||[]}catch(S){console.error(S)}finally{l.value=!1}};vue.watch(()=>e.data,()=>{(e.dataType==="static"||!vue.unref(r))&&(r.value=e.data)},{immediate:!0,deep:!0});const u=vue.computed(()=>({key:"SEQ",width:e.seqWidth,title:e.seqName,align:"center",fontSize:e.seqFontSize})),f=vue.computed(()=>{const{columns:I,isUseSeq:S}=e;return S?[vue.unref(u),...I]:I}),x=I=>{var N;const{columns:S=[],rows:C=[]}=((N=I==null?void 0:I.data)==null?void 0:N.data)??{};e.isUseSeq&&S.unshift(e.seqName),f.value.forEach((w,q)=>{(!e.isUseSeq||q!==0)&&(w.title=S[q],w.key=S[q])}),r.value=C},h=useIndicatorData(e,x),g=async()=>{try{l.value=!0;const I=await h();x(I)}catch(I){console.error(I)}finally{l.value=!1}},v=()=>{switch(e.dataType){case"indicator":g();break;case"request":c();break}},p=useEmitEvent(e),{getGlobalModel:E,setGlobalModel:b}=vue.inject(GLOBAL_MODEL,{getGlobalModel:I=>{},setGlobalModel:(I,S)=>{}}),d=I=>{p("click",()=>{const S=E(e.id);b(e.id,{...S,type:e.type,RECORD:I})})()};useOnEvent(e,{refreshData:v,resetRecord:()=>{const I=e.id,S=E(I);b(I,{...S,type:e.type,RECORD:""})}});const{setRequest:y}=vue.inject(REQUEST_MODEL,{setRequest:({id:I,sortNum:S,requestFn:C})=>{}});typeof y=="function"&&y({id:e.id,requestFn:v,sortNum:e.requestSort}),n({refreshData:v});const A=(I,S)=>({flex:I.width?"none":"1",width:I.width,height:e.itemHeight,lineHeight:e.itemHeight,textAlign:(S?I.cellAlign:I.align)||"left",backgroundColor:I.cellColor}),_=(I,S)=>{let C=0;const N=vue.unref(r).map(q=>q[S]),w=Math.max(...N);return w&&(C=I[S]/w*100),C},k=I=>{const{progressColor:S="#1890ff",progressGradientColor:C=""}=I;return C?{background:`linear-gradient(to right, ${S} 0%, ${C} 100%)`}:{backgroundColor:S||"#1890ff"}},T=vue.computed(()=>{const I=parseFloat(e.seqFontSize)+5;return{width:I+10,height:I}}),{pageMode:F}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),M=vue.computed(()=>vue.unref(F)!=="design"&&e.isAutoScroll),B=I=>{const{seqIconConfig:S}=e;let C=S.find(N=>N.key===I+1);return C||(C=S.find(N=>N.key==="other")),!!(C!=null&&C.icon)},L=(I,S)=>{const{seqIconConfig:C}=e;let N=C.find(w=>w.key===I+1);return N||(N=C.find(w=>w.key==="other")),S===1?N!=null&&N.icon?useImagePath(N.icon):"":S===2?(N==null?void 0:N.color)||"#fff":""},R=I=>{const{seqIndexFormatter:S}=e,C=I+1;return S?useVariablesInText(S,{textData:{index:C}},{useNewline:!1,useSpace:!0}):C},H=vue.computed(()=>parseFloat(e.itemWidth)!==100?{height:"100%"}:{}),V=vue.computed(()=>!e.itemWidth||e.itemWidth==="100%"?"0":e.itemColSpan);return{style:i,formatFn:a,contrastClass:o,dataSource:r,loading:l,myColumns:f,click:d,getColumnStyle:A,getPercentage:_,getBackgroundColor:k,isShowSeqIcon:B,getSeqIconData:L,seqIcon4,seqIcon5,seqIcon6,seqIcon7,iconSize:T,isScroll:M,formatSeq:R,wrapStyle:H,colSpan:V,getText:(I,S)=>(I.format!=null||I.format!=="")&&a(S[I.key],I)}}}),List_vue_vue_type_style_index_0_scoped_5ba2950a_lang="",List_vue_vue_type_style_index_1_lang="",_withScopeId$4=e=>(vue.pushScopeId("data-v-5ba2950a"),e=e(),vue.popScopeId(),e),_hoisted_1$d={key:0,class:"title"},_hoisted_2$6={key:0,class:"ranking"},_hoisted_3$2=["onClick"],_hoisted_4$2={key:0,class:"ranking"},_hoisted_5$2=_withScopeId$4(()=>vue.createElementVNode("div",{class:"icon"},null,-1)),_hoisted_6$2={class:"sort"},_hoisted_7$2=["src"],_hoisted_8$2={key:1},_hoisted_9$2=["src","width","height"],_hoisted_10$2=["src","width","height"],_hoisted_11$2=["src","width","height"],_hoisted_12$2=["src","width","height"],_hoisted_13$2={key:1},_hoisted_14$2=["title"],_hoisted_15$2={key:2,class:"empty"};function _sfc_render$u(e,n,r,i,a,o){const s=vue.resolveComponent("a-tooltip"),l=vue.resolveComponent("marquee-scroll"),c=vue.resolveComponent("skeleton");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-list",style:vue.normalizeStyle(e.style)},[vue.createVNode(c,{loading:e.loading},{default:vue.withCtx(()=>[e.useTitle?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$d,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.columnCount,u=>(vue.openBlock(),vue.createElementBlock("div",{class:"title-inner",style:vue.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1}/ ${e.columnCount})`,marginRight:u%e.columnCount!==0?e.itemColSpan:"",padding:`0 ${e.itemPadding}`}),key:u},[e.useRanking?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$6)):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.myColumns,(f,x)=>(vue.openBlock(),vue.createElementBlock("div",{class:"column",key:f.key||x,style:vue.normalizeStyle({color:f.titleColor,fontSize:f.fontSize,...e.getColumnStyle(f)})},vue.toDisplayString(f.title),5))),128))],4))),128))])):vue.createCommentVNode("",!0),e.dataSource.length>0?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"ecan-list-content",style:vue.normalizeStyle({paddingTop:e.useTitle?e.itemRowSpan:0,height:e.useTitle?"calc(100% - 40px)":"100%"})},[vue.createVNode(l,{visible:e.isScroll,step:e.scrollSpeed,wrapStyle:{display:"flex",flexDirection:"column",flexWrap:"wrap",...e.wrapStyle}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.dataSource.slice(0,e.sliceCount),(u,f)=>(vue.openBlock(),vue.createElementBlock("div",{class:"item",style:vue.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(${e.itemWidth} - ${e.colSpan})`,marginRight:e.colSpan,marginBottom:e.itemRowSpan,padding:`0 ${e.itemPadding}`}),key:u.id||f,onClick:x=>e.click(u)},[e.useRanking?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$2,[_hoisted_5$2,vue.createElementVNode("div",_hoisted_6$2," Top "+vue.toDisplayString(f+1),1)])):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.myColumns,x=>{var h;return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["column",e.contrastClass(u[x.key],x.format),x.key==="SEQ"?"seq-column":""]),key:x.key,style:vue.normalizeStyle({fontSize:x.fontSize,color:e.contrastClass(u[x.key],x.format)===""?x.color:"",fontWeight:x.fontWeight,...e.getColumnStyle(x,"cell")})},[x.key==="SEQ"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[e.seqIcon?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[(h=e.seqIconConfig)!=null&&h.length?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"icon-box",style:vue.normalizeStyle({width:e.seqIconWidth||"",height:e.seqIconHeight||""})},[e.seqIconWidth&&e.seqIconHeight&&e.isShowSeqIcon(f)?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"custom-seq-icon",src:e.getSeqIconData(f,1),style:vue.normalizeStyle({width:e.seqIconWidth,height:e.seqIconHeight})},null,12,_hoisted_7$2)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:"custom-seq-text",style:vue.normalizeStyle({fontSize:e.seqFontSize,color:e.getSeqIconData(f,2),lineHeight:e.seqIconHeight||"",left:e.seqIconOffsetX,top:e.seqIconOffsetY})},vue.toDisplayString(e.formatSeq(f)),5)],4)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_8$2,[f===0?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon4,width:e.iconSize.width,height:e.iconSize.height},null,8,_hoisted_9$2)):f===1?(vue.openBlock(),vue.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon5,width:e.iconSize.width,height:e.iconSize.height},null,8,_hoisted_10$2)):f===2?(vue.openBlock(),vue.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon6,width:e.iconSize.width,height:e.iconSize.height},null,8,_hoisted_11$2)):f>=3?(vue.openBlock(),vue.createElementBlock("img",{key:3,class:"seq-icon",src:e.seqIcon7,width:e.iconSize.width,height:e.iconSize.height},null,8,_hoisted_12$2)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:"seq-icon seq-text",style:vue.normalizeStyle({fontSize:e.seqFontSize})},vue.toDisplayString(e.formatSeq(f)),5)]))],64)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_13$2,vue.toDisplayString(e.formatSeq(f)),1))],64)):x.format==="progress"?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"progress-cell",style:vue.normalizeStyle({height:e.itemHeight})},[vue.createElementVNode("div",{class:"progress",style:vue.normalizeStyle({height:x.progressWidth||"14px",backgroundColor:x.progressBaseColor})},[vue.createVNode(s,{title:u[x.key],overlayClassName:"ecan-list-tooltip",color:"#fff"},{default:vue.withCtx(()=>[vue.createElementVNode("div",{style:vue.normalizeStyle({borderRadius:"10px",height:x.progressWidth||"14px",width:`${e.getPercentage(u,x.key)}%`,...e.getBackgroundColor(x)})},null,4)]),_:2},1032,["title"])],4)],4)):(vue.openBlock(),vue.createElementBlock("span",{key:2,title:e.getText(x,u)},vue.toDisplayString(e.getText(x,u)),9,_hoisted_14$2))],6)}),128))],12,_hoisted_3$2))),128))]),_:1},8,["visible","step","wrapStyle"])],4)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_15$2," 暂无数据 "))]),_:1},8,["loading"])],4)}const List=_export_sfc$1(_sfc_main$q,[["render",_sfc_render$u],["__scopeId","data-v-5ba2950a"]]),EcanList=withInstall$1(List),proportionProps={...props,name:"占比图",keyName:"占比图",type:"ecanProportion",strokeType:"circle",width:"200px",height:"200px",strokeColor:"#4091f7",strokeLinecap:"round",trailColor:"#f5f5f5",data:{percent:.3},text:"{percent}{%}",fontSize:"26px",color:"#4091f7",variableColor:"#4091f7",strokeWidth:6,fontWeight:400,strokeTextWidth:"100%",lineHeight:"26px",decimalFormat:!0,variableDefaultValue:"0",strokeTextShow:!0,gradientShow:!0,gradientColor:"",gradientOffset:1,graphicConfig:{}},proportionComponentProps=transformToComponentProps(proportionProps),proportionEvents=["refreshData","click"],_sfc_main$p=vue.defineComponent({name:"EcanProportion",components:{AProgress:antDesignVue.Progress,Skeleton},props:{...proportionComponentProps},setup(e,{expose:n}){const r=vue.ref(!1),{pageMode:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),a=usePickComponentStyle(e),o=vue.computed(()=>{const A=e.width;return parseFloat(A)}),s=vue.ref({});vue.watch(()=>e.data,()=>{(e.dataType==="static"||vue.unref(i)==="design")&&(s.value=e.data)},{immediate:!0,deep:!0});const l=vue.computed(()=>{const A=vue.unref(s),_=+e.variableDefaultValue;if(A==null)return isNaN(_)?0:_;const k=e.text.match(/\{(.+?)\}/g)||[];let T;const F=new Set(Object.keys(A));for(let M=0;M<k.length;M++){const B=k[M],L=B.slice(1,B.length-1);if(F.has(L)){T=A[L];break}}return typeof T=="number"?T=T*100:typeof T=="string"&&!isNaN(+T)?T=+T*100:isNaN(_)?T=0:T=_*100,e.decimalFormat&&(T=+T.toFixed(2)),T}),c=vue.computed(()=>{var F;let A=e.text;if(A==="")return vue.unref(l);const _=e.variableDefaultValue,k=vue.unref(s),T=A.match(/\{(.+?)\}/g)||[];for(let M=0;M<T.length;M++){const B=T[M];let L=B.slice(1,B.length-1);const R=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,H=B.match(R);for(let P=0;P<(H==null?void 0:H.length);P++){const I=(F=H[P])==null?void 0:F.trim();k[I]!=null&&(L=L.replace(I,k[I]))}let V=L;try{(/\(.*\)/g.test(L)||/[+/\\*]/g.test(L))&&(V=runCode(L))}catch(P){console.error(P)}typeof+V=="number"&&!isNaN(+V)?(V=+V*100,e.decimalFormat&&(V=V.toFixed(2))):typeof V!="string"&&(V=_),A=A.replace(B,`<span style="color: ${e.variableColor};">${V+""}</span>`)}return A=A==null?void 0:A.replace(/\n|\\n/g,"<br/>"),vue.unref(r)?"NaN":A}),u=useRequestData(e),f=vue.ref(!1),x=async()=>{var A,_,k,T,F;if(e.dataType==="request")try{f.value=!0;const M=await u();s.value=((A=M==null?void 0:M.data)==null?void 0:A.data)||{},(k=(_=M==null?void 0:M.data)==null?void 0:_.data)!=null&&k.rowsToData&&(s.value=((F=(T=M==null?void 0:M.data)==null?void 0:T.data)==null?void 0:F.rowsToData)||{})}catch(M){console.error(M)}finally{f.value=!1}},h=(A={})=>{s.value=A},g=A=>{var k;const{data:_}=(A==null?void 0:A.data)||{};if(_){r.value=!1;const{columns:T=[],rows:F=[]}=((k=A==null?void 0:A.data)==null?void 0:k.data)??{};let M={};if(T.length>0){const B=T.find(L=>!!L);B&&(M={percent:F[B]})}h(M)}else r.value=!0,h({percent:"NaN"})},v=useIndicatorData(e,g),p=async()=>{try{f.value=!0;const A=await v();g(A)}catch(A){console.error(A)}finally{f.value=!1}},E=()=>{switch(e.dataType){case"indicator":p();break;case"request":x();break}};useOnEvent(e,{refreshData:E}),n({refreshData:E});const d=useEmitEvent(e)("click",()=>{}),{setRequest:m}=vue.inject(REQUEST_MODEL,{setRequest:({id:A,sortNum:_,requestFn:k})=>{}});typeof m=="function"&&m({id:e.id,requestFn:E,sortNum:e.requestSort});const y=vue.computed(()=>{const{gradientShow:A,gradientColor:_,gradientOffset:k,strokeColor:T}=e;let F=T;return A&&(F={"0%":T||"transparent",[`${k*100}%`]:_||"transparent"}),F});return{style:a,myWidth:o,text:c,myValue:l,loading:f,click:d,customStrokeColor:y}}}),Proportion_vue_vue_type_style_index_0_scoped_66e28f38_lang="",_hoisted_1$c=["innerHTML"];function _sfc_render$t(e,n,r,i,a,o){const s=vue.resolveComponent("skeleton"),l=vue.resolveComponent("a-progress");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-proportion",style:vue.normalizeStyle(e.style)},[vue.createVNode(l,{class:vue.normalizeClass(["progress",e.gradientShow?"gradient":""]),percent:e.myValue,width:e.myWidth,type:e.strokeType,strokeColor:e.customStrokeColor,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor||"transparent",strokeWidth:e.strokeWidth,showInfo:e.strokeTextShow,gapDegree:e.strokeType==="dashboard"?75:0,onClick:e.click},{format:vue.withCtx(()=>[e.loading?(vue.openBlock(),vue.createBlock(s,{key:0,loading:e.loading},null,8,["loading"])):e.strokeTextShow?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"format",style:vue.normalizeStyle({width:e.strokeTextWidth,fontSize:e.fontSize,color:e.color,fontWeight:e.fontWeight,lineHeight:e.lineHeight})},[vue.createElementVNode("span",{style:{"white-space":"nowrap"},innerHTML:e.text},null,8,_hoisted_1$c)],4)):vue.createCommentVNode("",!0)]),_:1},8,["class","percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","showInfo","gapDegree","onClick"])],4)}const Proportion=_export_sfc$1(_sfc_main$p,[["render",_sfc_render$t],["__scopeId","data-v-66e28f38"]]),EcanProportion=withInstall$1(Proportion),counterProps={...props,name:"计数器",type:"ecanCounter",keyName:"计数器",width:"400px",height:"80px",zIndex:0,digits:5,counterBackgroundImage:"",color:"#333",unitInterval:15,fontSize:"20px",fontWeight:700,fontStyle:"normal",unitWidth:"65px",unitHeight:"72px",data:"",graphicConfig:{}},counterComponentProps=transformToComponentProps(counterProps),counterEvents=["refreshData","click","resetRecord"],_sfc_main$o=vue.defineComponent({name:"EcanCounter",components:{Skeleton},props:{...counterComponentProps},setup(e,{expose:n}){const r=vue.ref(),i=usePickComponentStyle(e),a=vue.computed(()=>({width:e.unitWidth,height:e.unitHeight,marginRight:e.unitInterval+"px"})),o=vue.computed(()=>({color:e.color,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle}));vue.watch(()=>[e.data,e.dataType],([y,A])=>{A==="static"&&(r.value=y)},{immediate:!0});const{getGlobalModel:s,setGlobalModel:l}=vue.inject(GLOBAL_MODEL,{getGlobalModel:y=>{},setGlobalModel:(y,A)=>{}}),u=useEmitEvent(e)("click",()=>{const y=s(e.id);l(e.id,{...y,type:e.type,value:vue.unref(r)})}),f=()=>{const y=e.id,A=s(y);l(y,{...A,type:e.type,value:""})},x=useRequestData(e),h=vue.ref(!1),g=async()=>{var y,A;try{h.value=!0;const _=await x();r.value=((A=(y=_==null?void 0:_.data)==null?void 0:y.data)==null?void 0:A.value)||""}catch(_){console.error(_)}finally{h.value=!1}},v=y=>{var k;const{data:A}=(y==null?void 0:y.data)||{};let _="";if(A){const{columns:T=[],rows:F=[]}=((k=y==null?void 0:y.data)==null?void 0:k.data)??{};if(T.length>0){const M=T.find(B=>!!B);M&&(_=F[M]||"")}}r.value=String(_)},p=useIndicatorData(e,v),E=async()=>{try{h.value=!0;const y=await p();v(y)}catch(y){console.error(y)}finally{h.value=!1}},b=()=>{switch(e.dataType){case"indicator":E();break;case"request":g();break}},d=vue.computed(()=>{const y=[],{digits:A}=e,_=vue.unref(r)?vue.unref(r).split("").reverse().join(""):"";for(let k=0;k<A;k++)_&&_[k]?y.push(_[k]):y.push("0");return y.reverse()});useOnEvent(e,{refreshData:b,resetRecord:f});const{setRequest:m}=vue.inject(REQUEST_MODEL,{setRequest:({id:y,sortNum:A,requestFn:_})=>{}});return typeof m=="function"&&m({id:e.id,requestFn:b,sortNum:e.requestSort}),n({refreshData:b}),{style:i,valueList:d,digitsStyle:a,fontStyle:o,loading:h,useImagePath,click:u}}}),Counter_vue_vue_type_style_index_0_scoped_82bd9070_lang="",_hoisted_1$b=["src"];function _sfc_render$s(e,n,r,i,a,o){var l;const s=vue.resolveComponent("skeleton");return e.loading?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:vue.normalizeStyle(e.style)},[vue.createVNode(s,{loading:e.loading},null,8,["loading"])],4)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"ecan-counter",style:vue.normalizeStyle(e.style),onClick:n[0]||(n[0]=(...c)=>e.click&&e.click(...c))},[(l=e.valueList)!=null&&l.length?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:0},vue.renderList(e.valueList,(c,u)=>(vue.openBlock(),vue.createElementBlock("div",{class:"digits-item",style:vue.normalizeStyle(e.digitsStyle),key:u},[e.counterBackgroundImage?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"item-image",src:e.useImagePath(e.counterBackgroundImage)},null,8,_hoisted_1$b)):vue.createCommentVNode("",!0),vue.createElementVNode("div",{class:"item-text",style:vue.normalizeStyle(e.fontStyle)},vue.toDisplayString(c),5)],4))),128)):vue.createCommentVNode("",!0)],4))}const Counter=_export_sfc$1(_sfc_main$o,[["render",_sfc_render$s],["__scopeId","data-v-82bd9070"]]),EcanCounter=withInstall$1(Counter),inputProps={...props,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px"},inputComponentProps=transformToComponentProps(inputProps),inputEvents=["inputChange","inputBlur"],_sfc_main$n=vue.defineComponent({name:"EcanInput",components:{AInput:antDesignVue.Input},props:{...inputComponentProps},setup(e){const n=usePickComponentStyle(e),r=vue.ref(""),{getGlobalModel:i,setGlobalModel:a,getRecordValueByKeyName:o}=vue.inject(GLOBAL_MODEL,{getGlobalModel:f=>{},setGlobalModel:(f,x)=>{},getRecordValueByKeyName:f=>{}});vue.watch(()=>e.value,f=>{r.value=o(f)},{immediate:!0}),a(e.id,{type:e.type,value:r});const s=()=>{const f=i(e.id);a(e.id,{...f,RECORD:r})},l=useEmitEvent(e),c=lodashEs.debounce(l("inputChange",()=>{s()}),300),u=l("inputBlur",()=>{});return{style:n,myValue:r,inputBlur:u,inputChange:c}}}),Input_vue_vue_type_style_index_0_lang="";function _sfc_render$r(e,n,r,i,a,o){const s=vue.resolveComponent("a-input");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-input",style:vue.normalizeStyle(e.style)},[vue.createVNode(s,{class:"input",value:e.myValue,"onUpdate:value":n[0]||(n[0]=l=>e.myValue=l),placeholder:e.placeholder,onChange:e.inputChange,onBlur:e.inputBlur,style:vue.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","placeholder","onChange","onBlur","style"])],4)}const Input=_export_sfc$1(_sfc_main$n,[["render",_sfc_render$r]]),EcanInput=withInstall$1(Input),datePickerProps$1={...props,height:"33px",width:"130px",id:"",left:"0px",top:"0px",name:"日期选择器",keyName:"日期选择器",rotate:"",type:"ecanDatePicker",value:"",picker:"date",format:"YYYY-MM-DD",showTime:!1,useCurrentTime:!0,operate:null,optionFontSize:"14px"},datePickerComponentProps=transformToComponentProps(datePickerProps$1),datePickerEvents=["dateChange"],__default__$3=vue.defineComponent({name:"EcanDatePicker",props:{...datePickerComponentProps},components:{ADatePicker:antDesignVue.DatePicker,AInput:antDesignVue.Input,CalendarOutlined:CalendarOutlined$1,CloseCircleFilled:CloseCircleFilled$1},setup(e){const n=vue.inject("isMobile",!1),r=vue.inject("scaleValue",{widthScale:"1",heightScale:"1"}),i=usePickComponentStyle(e),a=()=>document.getElementById("ProviderConfig")||document.body,o=vue.ref(null),s=vue.ref(""),l=vue.ref(!1),c=vue.ref([]),u=vue.computed(()=>{let T=["year","month","day"];switch(e.picker){case"year":T=["year"];break;case"month":T=["year","month"];break}return T});vue.watch(()=>[e.value,e.useCurrentTime,e.operate],([T,F,M])=>{let B=null;if(T?B=dayjs(useVariablesInText(T)):F&&(B=dayjs()),M&&B){const{type:L,value:R,mode:H}=M;switch(L){case"add":B=B.add(R,H);break;case"minus":B=B.subtract(R,H)}}o.value=B,vue.unref(n)&&_(B)},{deep:!0,immediate:!0});const{setGlobalModel:f}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(T,F)=>{}}),{pageId:x}=vue.inject("templateOperate",{pageId:""})||{};f(e.id,{type:e.type,format:e.format,useCurrentTime:e.useCurrentTime,value:o});const g=useEmitEvent(e)("dateChange",()=>{const T=getNewValueFromUrlParams(x,e.keyName,"value");T&&(o.value=dayjs(T))}),v=()=>{vue.unref(o)&&g()};useOnEvent(e,{dateChange:g});const p=vue.ref({}),E=vue.ref({}),b=T=>{T?setTimeout(()=>{E.value=vue.unref(p)},300):E.value={}};vue.onMounted(()=>{setTimeout(()=>{const T=document.querySelector(`#ecan-date-picker-${e.id}`);if(T){const F=T.getBoundingClientRect(),M=parseFloat(vue.unref(r).widthScale)*280;document.body.clientWidth-F.left<M&&(p.value.marginLeft=-1*(M-F.width)+"px")}},0)});const d=()=>{_(vue.unref(o)),l.value=!0},m=()=>{_(),o.value=null},y=()=>{const T=dayjs(vue.unref(c).join("-"));o.value=T,_(T),l.value=!1,v()},A=()=>{o.value=dayjs(),_(),s.value=dayjs().format(e.format),l.value=!1};function _(T){c.value=k(T||dayjs()),s.value=(T==null?void 0:T.format(e.format))||""}function k(T){const F=[];for(const M of vue.unref(u))M==="day"?F.push(T.date()):F.push(T[M]()+(M==="month"?1:0));return F}return{style:i,getPopupContainer:a,myValue:o,locale,change:v,scaleValue:r,popupStyle:p,customStyle:E,openChange:b,isMobile:n,mobileDateStr:s,handleClearDate:m,openDatePick:d,datePickVisible:l,columnsType:u,mobileDate:c,onConfirmDate:y,onCancelDate:A}}}),__injectCSSVars__$3=()=>{vue.useCssVars(e=>({"20f8c88c":e.optionFontSize}))},__setup__$3=__default__$3.setup;__default__$3.setup=__setup__$3?(e,n)=>(__injectCSSVars__$3(),__setup__$3(e,n)):__injectCSSVars__$3;const DatePicker_vue_vue_type_style_index_0_scoped_88b266c2_lang="",DatePicker_vue_vue_type_style_index_1_lang="",_hoisted_1$a=["id"];function _sfc_render$q(e,n,r,i,a,o){const s=vue.resolveComponent("calendar-outlined"),l=vue.resolveComponent("close-circle-filled"),c=vue.resolveComponent("a-input"),u=vue.resolveComponent("van-date-picker"),f=vue.resolveComponent("van-popup"),x=vue.resolveComponent("a-date-picker");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-date-picker",style:vue.normalizeStyle(e.style),id:"ecan-date-picker-"+e.id},[e.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(c,{value:e.mobileDateStr,placeholder:"请选择日期",readonly:"",onClick:e.openDatePick},vue.createSlots({prefix:vue.withCtx(()=>[vue.createVNode(s,{style:{color:"#b0b0b0","padding-right":"5px"}})]),_:2},[e.mobileDateStr?{name:"suffix",fn:vue.withCtx(()=>[vue.createVNode(l,{style:{color:"#b0b0b0"},onClick:vue.withModifiers(e.handleClearDate,["stop"])},null,8,["onClick"])])}:void 0]),1032,["value","onClick"]),vue.createVNode(f,{show:e.datePickVisible,"onUpdate:show":n[1]||(n[1]=h=>e.datePickVisible=h),"overlay-style":{background:"rgba(0, 0, 0, .3)"},position:"bottom",teleport:"#app"},{default:vue.withCtx(()=>[e.datePickVisible?(vue.openBlock(),vue.createBlock(u,{key:0,modelValue:e.mobileDate,"onUpdate:modelValue":n[0]||(n[0]=h=>e.mobileDate=h),"columns-type":e.columnsType,"cancel-button-text":"此刻",onConfirm:e.onConfirmDate,onCancel:e.onCancelDate},null,8,["modelValue","columns-type","onConfirm","onCancel"])):vue.createCommentVNode("",!0)]),_:1},8,["show","overlay-style"])],64)):(vue.openBlock(),vue.createBlock(x,{key:1,class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:e.myValue,"onUpdate:value":n[2]||(n[2]=h=>e.myValue=h),format:e.format,picker:e.picker,showTime:e.showTime,locale:e.locale,onChange:e.change,onOpenChange:e.openChange,getPopupContainer:e.getPopupContainer,popupStyle:{fontSize:e.optionFontSize,transform:`scale(${e.scaleValue.widthScale}, ${e.scaleValue.heightScale})`}},null,8,["value","format","picker","showTime","locale","onChange","onOpenChange","getPopupContainer","popupStyle"]))],12,_hoisted_1$a)}const DatePicker$1=_export_sfc$1(__default__$3,[["render",_sfc_render$q],["__scopeId","data-v-88b266c2"]]),EcanDatePicker=withInstall$1(DatePicker$1),rangePickerProps={...props,name:"日期范围选择器",keyName:"日期范围选择器",type:"ecanRangePicker",width:"250px",height:"35px",picker:"date",format:"YYYY-MM-DD",startTime:"",endTime:"",useCurrentTime:!0,interval:1,intervalUnit:"year",operate:null,limitStartTime:"",limitEndTime:"",associated:"",optionFontSize:"14px",isAllowSpanYear:!0,limitInterval:null},rangePickerComponentProps=transformToComponentProps(rangePickerProps),rangePickerEvents=["dateChange"];var quarterOfYear$1={exports:{}};(function(e,n){(function(r,i){e.exports=i()})(commonjsGlobal,function(){var r="month",i="quarter";return function(a,o){var s=o.prototype;s.quarter=function(u){return this.$utils().u(u)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(u-1))};var l=s.add;s.add=function(u,f){return u=Number(u),this.$utils().p(f)===i?this.add(3*u,r):l.bind(this)(u,f)};var c=s.startOf;s.startOf=function(u,f){var x=this.$utils(),h=!!x.u(f)||f;if(x.p(u)===i){var g=this.quarter()-1;return h?this.month(3*g).startOf(r).startOf("day"):this.month(3*g+2).endOf(r).endOf("day")}return c.bind(this)(u,f)}}})})(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(e){const n=vue.inject("isMobile",!1),{pageMode:r}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),i=usePickComponentStyle(e),a=()=>document.getElementById("ProviderConfig")||document.body,o=vue.ref([null,null]),s=vue.ref(!1),l=vue.ref([]),c=vue.ref([]),u=vue.ref(),f=vue.ref(),x=vue.ref(),h=vue.ref(),g=vue.ref(0),v=vue.ref({}),p=vue.ref(""),E=vue.computed(()=>{let G=["year","month","day"];switch(e.picker){case"year":G=["year"];break;case"month":G=["year","month"];break}return G});vue.watch(()=>[e.startTime,e.endTime,e.useCurrentTime,e.interval,e.intervalUnit,e.operate],([G,Y,J,ee,Z,W])=>{if(vue.unref(o).every(Q=>!Q)||vue.unref(r)==="design"){let Q=null,te=null;if(J&&(Q=dayjs().subtract(ee,Z),te=dayjs()),G&&(Q=dayjs(useVariablesInText(G))),Y&&(te=dayjs(useVariablesInText(Y))),W){const{type:re,value:ae,mode:se}=W;switch(re){case"add":Q=Q&&Q.add(ae,se),te=te&&te.add(ae,se);break;case"minus":Q=Q&&Q.subtract(ae,se),te=te&&te.subtract(ae,se)}}o.value=[Q,te],vue.unref(n)&&j()}},{immediate:!0});let b=vue.unref(o)[0],d=vue.unref(o)[1],m="";const y=(G,Y,J)=>{Array.isArray(G)?(b=G[0],d=G[1],m=J.range):(b=null,d=null)},A=G=>{let Y=!1,{limitStartTime:J,limitEndTime:ee}=e;const Z={startTime:`${b||""}`,endTime:`${d||""}`};if(J=useVariablesInText(J,{codeData:Z}),ee=useVariablesInText(ee,{codeData:Z}),J&&ee?Y=!(dayjs(J)<G&&G<dayjs(ee)):J?Y=dayjs(J)>G:ee&&(Y=dayjs(ee)<G),!e.isAllowSpanYear&&m){let W=null;if(m==="start"?W=b:m==="end"&&(W=d),W){const Q=W.startOf("year"),te=W.endOf("year");Y=!(Q<=G&&G<te)}}if(!Y){const{value:W=0,mode:Q="year"}=e.limitInterval||{};W&&(m==="start"?Y=b.add(W,Q)<G:m==="end"&&(Y=d.subtract(W,Q)>G))}return Y},{getGlobalModel:_,setGlobalModel:k}=vue.inject(GLOBAL_MODEL,{getGlobalModel:G=>{},setGlobalModel:(G,Y)=>{}}),T=vue.computed(()=>Array.isArray(vue.unref(o))?vue.unref(o)[0]:null),F=vue.computed(()=>Array.isArray(vue.unref(o))?vue.unref(o)[1]:null),{pageId:M}=vue.inject("templateOperate",{pageId:""})||{};k(e.id,{type:e.type,format:e.format,startTime:T,endTime:F,interval:e.interval,intervalUnit:e.intervalUnit,useCurrentTime:e.useCurrentTime,operate:e.operate});const B=useEmitEvent(e);let L=!1;const R=B("dateChange",()=>{var J;const G=getNewValueFromUrlParams(M,e.keyName,"startTime"),Y=getNewValueFromUrlParams(M,e.keyName,"endTime");(J=o.value)!=null&&J.length||(o.value=[null,null]),G&&(o.value[0]=dayjs(G)),Y&&(o.value[1]=dayjs(Y))}),H=G=>{const Y=vue.unref(o),J=Y&&Y[0]&&Y[1];G===!1&&L===!0&&J&&(R(),L=!1),G||(m="")},V=()=>{L=!0},P=()=>{const{associated:G}=e;if(G){const Y=_(G)||{};if(Y){const{value:J}=Y;if(J)switch(vue.unref(J)){case"month":o.value=[dayjs().startOf("month"),dayjs().endOf("month")];break;case"quarter":o.value=[dayjs().startOf("quarter"),dayjs().endOf("quarter")];break;case"year":o.value=[dayjs().startOf("year"),dayjs().endOf("year")];break}}}R()},I=()=>{$(vue.unref(o)),s.value=!0},S=()=>{$(),p.value="",o.value=[null,null]},C=()=>{o.value=[dayjs(vue.unref(l).join("-")),dayjs(vue.unref(c).join("-"))],$(vue.unref(o)),U(),O(),s.value=!1,R()},N=()=>{D(),s.value=!1},w=()=>{var G,Y;(G=vue.unref(l))!=null&&G.length&&e.format&&(x.value=new Date(vue.unref(l).join("-")),(Y=vue.unref(c))!=null&&Y.length&&dayjs(vue.unref(c).join("-")).isBefore(dayjs(vue.unref(l).join("-")))&&(c.value=lodashEs.cloneDeep(vue.unref(l))))},q=()=>{var G,Y;(G=vue.unref(c))!=null&&G.length&&e.format&&(f.value=new Date(vue.unref(c).join("-")),(Y=vue.unref(l))!=null&&Y.length&&dayjs(vue.unref(l).join("-")).isAfter(dayjs(vue.unref(c).join("-")))&&(l.value=lodashEs.cloneDeep(vue.unref(c))))};function O(){v.value={startMinDate:lodashEs.cloneDeep(vue.unref(u)),startMaxDate:lodashEs.cloneDeep(vue.unref(f)),endMinDate:lodashEs.cloneDeep(vue.unref(x)),endMaxDate:lodashEs.cloneDeep(vue.unref(h))}}function D(){u.value=vue.unref(v).startMinDate,f.value=vue.unref(v).startMaxDate,x.value=vue.unref(v).endMinDate,h.value=vue.unref(v).endMaxDate}function $(G=[]){l.value=K(G[0]||dayjs()),c.value=K(G[1]||dayjs())}function U(){var J,ee;const G=(J=vue.unref(l))!=null&&J.length?dayjs(vue.unref(l).join("-")):"",Y=(ee=vue.unref(c))!=null&&ee.length?dayjs(vue.unref(c).join("-")):"";p.value=G&&Y&&`${G.format(e.format)} 至 ${Y.format(e.format)}`}function j(){const{limitStartTime:G,limitEndTime:Y,limitInterval:J,isAllowSpanYear:ee}=e;$(vue.unref(o)),G&&(u.value=new Date(G),x.value=new Date(G),vue.unref(o)[0].isBefore(dayjs(G))&&(vue.unref(o)[0]=dayjs(G),l.value=K(vue.unref(o)[0]))),Y&&(f.value=new Date(Y),h.value=new Date(Y),vue.unref(o)[1].isAfter(dayjs(Y))&&(vue.unref(o)[1]=dayjs(Y),c.value=K(vue.unref(o)[1]))),vue.unref(o).every(Z=>Z)&&(J!=null&&J.value)&&vue.unref(o)[1].diff(vue.unref(o)[0],J.mode)>J.value&&(vue.unref(o)[0]=vue.unref(o)[1].subtract(J.value,J.mode),l.value=K(vue.unref(o)[0])),vue.unref(o).every(Z=>Z)&&!ee&&vue.unref(o)[0].year()!==vue.unref(o)[1].year()&&(vue.unref(o)[0]=dayjs(`${vue.unref(o)[1].year()}-01-01`),l.value=K(vue.unref(o)[0])),O(),U()}function K(G){const Y=[];for(const J of vue.unref(E))J==="day"?Y.push(G.date()):Y.push(G[J]()+(J==="month"?1:0));return Y}return useOnEvent(e,{dateChange:P}),{style:i,getPopupContainer:a,locale,dateChange:R,myValue:o,disabledDate:A,calendarChange:y,openChange:H,change:V,isMobile:n,mobileDateStr:p,datePickVisible:s,columnsType:E,openDatePick:I,handleClearDate:S,onConfirmDate:C,onCancelDate:N,mobileStartDate:l,mobileEndDate:c,startMinDate:u,startMaxDate:f,endMinDate:x,endMaxDate:h,pickerTabKey:g,onStartDateChange:w,onEndDateChange:q}}}),__injectCSSVars__$2=()=>{vue.useCssVars(e=>({"46b8899f":e.optionFontSize}))},__setup__$2=__default__$2.setup;__default__$2.setup=__setup__$2?(e,n)=>(__injectCSSVars__$2(),__setup__$2(e,n)):__injectCSSVars__$2;const RangePicker_vue_vue_type_style_index_0_scoped_5bde1d03_lang="",RangePicker_vue_vue_type_style_index_1_lang="";function _sfc_render$p(e,n,r,i,a,o){const s=vue.resolveComponent("calendar-outlined"),l=vue.resolveComponent("close-circle-filled"),c=vue.resolveComponent("a-input"),u=vue.resolveComponent("van-date-picker"),f=vue.resolveComponent("van-picker-group"),x=vue.resolveComponent("van-popup"),h=vue.resolveComponent("a-range-picker");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-range-picker",style:vue.normalizeStyle(e.style)},[e.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(c,{value:e.mobileDateStr,placeholder:"请选择日期范围",readonly:"",onClick:e.openDatePick},vue.createSlots({prefix:vue.withCtx(()=>[vue.createVNode(s,{style:{color:"#b0b0b0","padding-right":"5px"}})]),_:2},[e.mobileDateStr?{name:"suffix",fn:vue.withCtx(()=>[vue.createVNode(l,{style:{color:"#b0b0b0"},onClick:vue.withModifiers(e.handleClearDate,["stop"])},null,8,["onClick"])])}:void 0]),1032,["value","onClick"]),vue.createVNode(x,{show:e.datePickVisible,"onUpdate:show":n[3]||(n[3]=g=>e.datePickVisible=g),"overlay-style":{background:"rgba(0, 0, 0, .3)"},position:"bottom",teleport:"#app"},{default:vue.withCtx(()=>[e.datePickVisible?(vue.openBlock(),vue.createBlock(f,{key:0,"active-tab":e.pickerTabKey,"onUpdate:active-tab":n[2]||(n[2]=g=>e.pickerTabKey=g),tabs:["开始日期","结束日期"],onConfirm:e.onConfirmDate,onCancel:e.onCancelDate},{default:vue.withCtx(()=>[vue.createVNode(u,{modelValue:e.mobileStartDate,"onUpdate:modelValue":n[0]||(n[0]=g=>e.mobileStartDate=g),"min-date":e.startMinDate,"max-date":e.startMaxDate,"columns-type":e.columnsType,onChange:e.onStartDateChange},null,8,["modelValue","min-date","max-date","columns-type","onChange"]),vue.createVNode(u,{modelValue:e.mobileEndDate,"onUpdate:modelValue":n[1]||(n[1]=g=>e.mobileEndDate=g),"min-date":e.endMinDate,"max-date":e.endMaxDate,"columns-type":e.columnsType,onChange:e.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(h,{key:1,class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:e.myValue,"onUpdate:value":n[4]||(n[4]=g=>e.myValue=g),format:e.format,picker:e.picker,locale:e.locale,getPopupContainer:e.getPopupContainer,"disabled-date":e.disabledDate,onChange:e.change,onCalendarChange:e.calendarChange,onOpenChange:e.openChange,popupStyle:{fontSize:e.optionFontSize}},null,8,["value","format","picker","locale","getPopupContainer","disabled-date","onChange","onCalendarChange","onOpenChange","popupStyle"]))],4)}const RangePicker=_export_sfc$1(__default__$2,[["render",_sfc_render$p],["__scopeId","data-v-5bde1d03"]]),EcanRangePicker=withInstall$1(RangePicker),buttonProps={...props,width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton",text:"按钮",mode:"default",danger:!1,shape:"default",href:"",target:"self",fontSize:"14px",fontWeight:400,tooltipTextStyleColor:"",buttonBackgroundColor:"#FFFFFF",borderColor:"#d9d9d9"},buttonComponentProps=transformToComponentProps(buttonProps),buttonEvents=["click"],_sfc_main$m=vue.defineComponent({name:"EcanButton",components:{AButton:antDesignVue.Button},props:{...buttonComponentProps},setup(e){const n=usePickComponentStyle(e),i=useEmitEvent(e)("click",()=>{const c=vue.unref(s);c&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:c},"*")}),a=vue.computed(()=>{const c={};return e.mode!=="primary"&&(c.backgroundColor=e.buttonBackgroundColor||"transparent",c.color=e.tooltipTextStyleColor,c.borderColor=e.borderColor||"transparent"),{height:e.height,...c}}),o=vue.computed(()=>useVariablesInText(e.text)),s=vue.computed(()=>useVariablesInText(e.href)||null),l=vue.computed(()=>{const c=e.target;if(!(c==="event"||vue.unref(s)==null))return{self:"_self",blank:"_blank"}[c]});return{style:n,click:i,myText:o,myHref:s,myTarget:l,buttonStyle:a}}}),Button_vue_vue_type_style_index_0_lang="";function _sfc_render$o(e,n,r,i,a,o){const s=vue.resolveComponent("a-button");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-button",style:vue.normalizeStyle(e.style)},[vue.createVNode(s,{block:"",onClick:e.click,type:e.mode,danger:e.danger,shape:e.shape,href:e.myHref,target:e.myTarget,style:vue.normalizeStyle(e.buttonStyle),class:vue.normalizeClass(e.tooltipTextStyleColor?"custom-color":"")},{default:vue.withCtx(()=>[vue.createElementVNode("span",{style:vue.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},vue.toDisplayString(e.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target","style","class"])],4)}const Button=_export_sfc$1(_sfc_main$m,[["render",_sfc_render$o]]),EcanButton=withInstall$1(Button),checkboxProps={...props,width:"240px",id:"",left:"0px",top:"0px",name:"复选框",keyName:"复选框",rotate:"",type:"ecanCheckbox",value:[],data:[{label:"选项一",value:"1",checked:!0},{label:"选项二",value:"2",checked:!0},{label:"选项三",value:"3"}],graphicConfig:{}},checkboxComponentProps=transformToComponentProps(checkboxProps),checkboxEvents=["checkboxChange"],_sfc_main$l=vue.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:antDesignVue.CheckboxGroup},props:{...checkboxComponentProps},setup(e,{expose:n}){const r=usePickComponentStyle(e),i=vue.ref([]),a=vue.ref([]),o=b=>{const d=e.value;let m=[];b.forEach(y=>{y.checked&&m.push(y.value)}),typeof d=="string"&&d!==""?m=m.concat(d.split(",")):Array.isArray(d)&&(m=m.concat(d)),i.value=b,a.value=m};vue.watch(()=>[e.data,e.value],([b])=>{o(b)},{immediate:!0,deep:!0});const s=useRequestData(e),l=async()=>{var m,y;if(e.dataType!=="request")return;const b=await s(),d=((y=(m=b==null?void 0:b.data)==null?void 0:m.data)==null?void 0:y.rows)||[];o(d)},{getGlobalModel:c,setGlobalModel:u}=vue.inject(GLOBAL_MODEL,{getGlobalModel:b=>{},setGlobalModel:(b,d)=>{}});u(e.id,{type:e.type,value:a});const x=useEmitEvent(e)("checkboxChange",()=>{const b=c(e.id);u(e.id,{...b,RECORD:a})}),h=b=>{var m;const{data:d}=(b==null?void 0:b.data)||{};if(d){const A=(((m=b==null?void 0:b.data)==null?void 0:m.data)??[]).map(_=>({label:_.label,value:_.value}));o(A)}else o([])},g=useIndicatorData(e,h),v=async()=>{try{const b=await g();h(b)}catch(b){console.error(b)}},p=()=>{switch(e.dataType){case"indicator":v();break;case"request":l();break}},{setRequest:E}=vue.inject(REQUEST_MODEL,{setRequest:({id:b,sortNum:d,requestFn:m})=>{}});return typeof E=="function"&&E({id:e.id,requestFn:p,sortNum:e.requestSort}),n({refreshData:p}),{myOption:i,style:r,myValue:a,checkboxChange:x}}}),Checkbox_vue_vue_type_style_index_0_lang="";function _sfc_render$n(e,n,r,i,a,o){const s=vue.resolveComponent("a-checkbox-group");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-checkbox",style:vue.normalizeStyle(e.style)},[vue.createVNode(s,{options:e.myOption,value:e.myValue,"onUpdate:value":n[0]||(n[0]=l=>e.myValue=l),onChange:e.checkboxChange},null,8,["options","value","onChange"])],4)}const Checkbox=_export_sfc$1(_sfc_main$l,[["render",_sfc_render$n]]),EcanCheckbox=withInstall$1(Checkbox),selectProps={...props,name:"下拉框选择器",keyName:"下拉框选择器",width:"120px",height:"33px",type:"ecanSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,graphicConfig:{},valueType:"value",isAllowClear:!0,optionFontSize:"14px"},selectComponentProps=transformToComponentProps(selectProps),selectEvents=["selectChange","refreshData","clearValue"],_sfc_main$k=vue.defineComponent({name:"EcanSelect",components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption,AInput:antDesignVue.Input,DownOutlined:DownOutlined$1},props:{...selectComponentProps},setup(e,{expose:n}){var U,j,K;const r=vue.inject("isMobile",!1),i=vue.ref(!1),a={text:((U=e.dataFieldNames)==null?void 0:U.label)||"label",value:((j=e.dataFieldNames)==null?void 0:j.value)||"value"},o=vue.ref([]),s=usePickComponentStyle(e),l=()=>document.getElementById("ProviderConfig")||document.body,c=vue.ref(e.data||[]),u=vue.ref(),f=vue.computed({get:()=>{var Y;const{mode:G}=e;return(Y=vue.unref(c))!=null&&Y.length?u.value:G==="multiple"||G==="tags"||G==="combobox"?[]:""},set:G=>{u.value=G}}),x=vue.computed(()=>{const{value:G,label:Y}=e.dataFieldNames,J=[];if(Array.isArray(vue.unref(f)))for(const ee of vue.unref(f)){const Z=vue.unref(c).find(W=>W[G]===ee);Z&&J.push(Z[Y])}else{const ee=vue.unref(c).find(Z=>Z[G]===vue.unref(f));ee&&J.push(ee[Y])}return J.join(",")}),{getGlobalModel:h,setGlobalModel:g,getRecordValueByKeyName:v}=vue.inject(GLOBAL_MODEL,{getGlobalModel:G=>{},setGlobalModel:(G,Y)=>{},getRecordValueByKeyName:G=>{}}),p=e.dataFieldNames;vue.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,c.value],()=>{const{mode:G,selectFirstOption:Y,value:J}=e,ee=v(J),Z=p.value;if(G==="multiple"||G==="tags"||G==="combobox"){if(ee)u.value=ee.split(",");else if(Y){const W=vue.unref(c)[0];u.value=W?[W[Z]]:[]}}else if(ee)u.value=ee;else if(Y){const W=vue.unref(c)[0];u.value=W?W[Z]:""}},{immediate:!0});const E=(G,Y)=>{const J=p.label,ee=p.value;let Z;const W=Y[J],Q=Y[ee];return W!=null?Z=W:Q!=null&&(Z=Q),(Z==null?void 0:Z.toLowerCase().indexOf(G==null?void 0:G.toLowerCase()))>=0},b=G=>{const{label:Y,value:J,options:ee}=e.dataFieldNames;if(ee&&Array.isArray(G))if(G.some(Z=>ee in Z)){const Z={},W=[];G.forEach(Q=>{Z[Q[ee]]||(Z[Q[ee]]=[]),Z[Q[ee]].push({[Y]:Q[Y],[J]:Q[J]})});for(const Q in Z)W.push({[Y]:Q,[ee]:Z[Q]});return W}else return G;else{if(!ee&&Array.isArray(G))return G=G.map(Z=>({label:Z[Y],value:Z[J]})),G;if(!ee&&!Array.isArray(G))return G}},d=vue.ref(!1),m=G=>{var Y,J;if(c.value=b(((J=(Y=G==null?void 0:G.data)==null?void 0:Y.data)==null?void 0:J.rows)||[]),e.selectFirstOption){let ee=vue.unref(c)[0];if(p.options){const Z=ee[p.options];Z&&Z.length&&(ee=Z[0])}u.value=ee[p.value]}},y=useRequestData(e),A=async()=>{if(e.dataType==="request"){d.value=!0;try{const G=await y();m(G)}catch(G){console.error(G)}finally{d.value=!1}}},{setLoadedData:_,loadedData:k}=vue.inject(LOADED_DATA,{setLoadedData:(G,Y)=>{},loadedData:{}}),T=vue.computed(()=>{let G=u.value;if(e.valueType==="label"&&vue.unref(u)&&vue.unref(c)){const Y=p.label,J=p.value;if(e.mode==="multiple")G=vue.unref(c).filter(ee=>vue.unref(u).includes(ee[J])).map(ee=>ee[Y]);else{const ee=vue.unref(c).find(Z=>vue.unref(u)===Z[J]);ee&&(G=ee[Y])}}return G}),F=vue.ref([]),M=vue.computed(()=>{const G={};if(e.mode!=="multiple"){const Y=vue.unref(F).find(J=>J.value===vue.unref(u));Y&&(G.itemCodes=Y.item_codes)}return G}),B=vue.computed(()=>{const{value:G,label:Y}=p,J=vue.unref(c).find(ee=>ee[G]===vue.unref(f));return J?{label:J[Y],value:J[G]}:{}}),{pageId:L}=vue.inject("templateOperate",{pageId:""})||{};g(e.id,{type:e.type,value:T,label:(K=vue.unref(B))==null?void 0:K.label,...vue.unref(M),recordData:vue.unref(B)});const R=useEmitEvent(e),H=R("selectChange",()=>{const G=e.id,Y=h(G);g(G,{...Y,...vue.unref(M),RECORD:T,recordData:vue.unref(B)});const J=getNewValueFromUrlParams(L,e.keyName,"value");J&&(f.value=J)}),V=R("clearValue",()=>{["multiple","tags","combobox"].includes(e.mode)?u.value=[]:u.value=null;const G=e.id;g(G,{RECORD:"",recordData:vue.unref(B)})}),P=(G=[])=>{var J,ee;const Y=b(G);if((ee=(J=e==null?void 0:e.graphicConfig)==null?void 0:J.formFields)!=null&&ee.hasAllOption){const Z=p.label,W=p.value;Y.unshift({[Z]:"全部",[W]:""})}if(c.value=Y,e.selectFirstOption){let Z=vue.unref(c)[0];if(p.options){const W=Z[p.options];W&&W.length&&(Z=W[0])}u.value=Z[p.value]}g(e.id,{type:e.type,value:T,...vue.unref(M),recordData:vue.unref(B)})},I=G=>{var Z;const{data:Y}=(G==null?void 0:G.data)||{},J=p.label,ee=p.value;if(Y){const{rows:W=[]}=((Z=G==null?void 0:G.data)==null?void 0:Z.data)||{};F.value=W;const Q=W.map(ae=>({[J]:ae.label,[ee]:ae.value})),{id:te}=e,re=h(te);g(te,{...re,...vue.unref(M)}),_(te,!0),P(Q)}else P([])},S=useIndicatorData(e,I),C=async()=>{try{d.value=!0;const G=await S();I(G)}catch(G){console.error(G)}finally{d.value=!1}},N=vue.computed(()=>{var G,Y;return(Y=getConditions(((G=e==null?void 0:e.graphicConfig)==null?void 0:G.controlList)||[]))==null?void 0:Y.find(J=>J.conditionKey==="parentCode")}),w=vue.ref(!1);vue.watch(k,G=>{!vue.unref(w)&&vue.unref(N)&&G[vue.unref(N).id]&&(w.value=!0,q())},{deep:!0});const q=()=>{switch(e.dataType){case"indicator":{if(vue.unref(N)){if(vue.unref(k)[vue.unref(N).id]){const{mode:G}=e;G==="multiple"||G==="tags"||G==="combobox"?f.value=[]:f.value="",C()}}else C();break}case"request":A();break}};useOnEvent(e,{selectChange:H,refreshData:q,clearValue:V});const{setRequest:O}=vue.inject(REQUEST_MODEL,{setRequest:({id:G,sortNum:Y,requestFn:J})=>{}});return typeof O=="function"&&O({id:e.id,requestFn:q,sortNum:e.requestSort}),n({refreshData:q}),{style:s,getPopupContainer:l,myValue:u,selectChange:H,options:c,filterOption:E,loading:d,resultValue:f,isMobile:r,customFieldName:a,pickVisible:i,onConfirmPicker:()=>{f.value=vue.unref(o)[0],H(),i.value=!1},mobileValue:x,openPicker:()=>{var G;!Array.isArray(vue.unref(f))&&((G=vue.unref(c))!=null&&G.length)&&e.dataFieldNames.value&&(o.value=vue.unref(f)?[vue.unref(f)]:[vue.unref(c)[0][e.dataFieldNames.value]]),i.value=!0},mobileSelectValue:o}}}),Select_vue_vue_type_style_index_0_scoped_cb904478_lang="",Select_vue_vue_type_style_index_1_lang="";function _sfc_render$m(e,n,r,i,a,o){const s=vue.resolveComponent("down-outlined"),l=vue.resolveComponent("a-input"),c=vue.resolveComponent("van-picker"),u=vue.resolveComponent("van-popup"),f=vue.resolveComponent("a-select-option"),x=vue.resolveComponent("a-select");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-select",style:vue.normalizeStyle(e.style)},[e.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(l,{value:e.mobileValue,placeholder:"请选择日期",readonly:"",onClick:e.openPicker},{suffix:vue.withCtx(()=>[vue.createVNode(s)]),_:1},8,["value","onClick"]),vue.createVNode(u,{show:e.pickVisible,"onUpdate:show":n[1]||(n[1]=h=>e.pickVisible=h),"overlay-style":{background:"rgba(0, 0, 0, .3)"},position:"bottom",teleport:"#app"},{default:vue.withCtx(()=>[e.pickVisible?(vue.openBlock(),vue.createBlock(c,{key:0,modelValue:e.mobileSelectValue,"onUpdate:modelValue":n[0]||(n[0]=h=>e.mobileSelectValue=h),"columns-field-names":e.customFieldName,columns:e.options,"cancel-button-text":" ",onConfirm:e.onConfirmPicker},null,8,["modelValue","columns-field-names","columns","onConfirm"])):vue.createCommentVNode("",!0)]),_:1},8,["show","overlay-style"])],64)):(vue.openBlock(),vue.createBlock(x,{key:1,class:"select",value:e.resultValue,"onUpdate:value":n[2]||(n[2]=h=>e.resultValue=h),placeholder:e.placeholder,showSearch:"",allowClear:e.isAllowClear,mode:e.mode,getPopupContainer:e.getPopupContainer,maxTagCount:e.maxTagCount,filterOption:e.filterOption,loading:e.loading,autoClearSearchValue:e.autoClearSearchValue,onChange:e.selectChange,style:vue.normalizeStyle({fontSize:e.optionFontSize})},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.options,(h,g)=>(vue.openBlock(),vue.createBlock(f,{key:g,value:h.value,style:vue.normalizeStyle({fontSize:e.optionFontSize})},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(h.label),1)]),_:2},1032,["value","style"]))),128))]),_:1},8,["value","placeholder","allowClear","mode","getPopupContainer","maxTagCount","filterOption","loading","autoClearSearchValue","onChange","style"]))],4)}const Select=_export_sfc$1(_sfc_main$k,[["render",_sfc_render$m],["__scopeId","data-v-cb904478"]]),EcanSelect=withInstall$1(Select),treeSelectProps={...props,name:"树形下拉框选择器",keyName:"树形下拉框选择器",width:"120px",height:"33px",type:"ecanTreeSelect",multiple:!1,data:[{label:"选项一",value:"1",children:[{label:"子选项一",value:"1-1"},{label:"子选项二",value:"1-2"}]},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:"",dataFieldNames:{label:"label",value:"value",children:"children"},maxTagCount:3,placeholder:"请选择",treeCheckable:!1,treeCheckStrictly:!1,selectFirstOption:!1},treeSelectComponentProps=transformToComponentProps(treeSelectProps),treeSelectEvents=["selectChange","refreshData"],_sfc_main$j={name:"EcanTreeSelect",components:{ATreeSelect:antDesignVue.TreeSelect},props:{...treeSelectComponentProps},setup(e){const n=usePickComponentStyle(e),r=vue.ref(e.data),i=(v,p)=>{const E=e.dataFieldNames,b=E.label,d=E.value;let m;const y=p[b],A=p[d];return y!=null?m=y:A!=null&&(m=A),(m==null?void 0:m.toLowerCase().indexOf(v==null?void 0:v.toLowerCase()))>=0},a=vue.ref();vue.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:v,value:p,selectFirstOption:E}=e;v?p?a.value=p.split(","):E&&(a.value=[vue.unref(r)[0]]):p?a.value=p:E&&(a.value=vue.unref(r)[0])},{immediate:!0});const o=vue.ref(!1),s=v=>{var E,b;r.value=((b=(E=v==null?void 0:v.data)==null?void 0:E.data)==null?void 0:b.rows)||[];const p=vue.unref(r)[0];e.value===""&&p!=null&&(a.value=p[e.dataFieldNames.value])},l=useRequestData(e),c=async()=>{if(e.dataType==="request"){o.value=!0;try{const v=await l();s(v)}catch(v){console.error(v)}finally{o.value=!1}}},{getGlobalModel:u,setGlobalModel:f}=vue.inject(GLOBAL_MODEL,{getGlobalModel:v=>{},setGlobalModel:(v,p)=>{}});f(e.id,{type:e.type,value:a});const h=useEmitEvent(e)("selectChange",()=>{const v=e.id,p=u(v);f(v,{...p,RECORD:a})});useOnEvent(e,{selectChange:h,refreshData:c});const{setRequest:g}=vue.inject(REQUEST_MODEL,{setRequest:({id:v,sortNum:p,requestFn:E})=>{}});return g({id:e.id,requestFn:c,sortNum:e.requestSort}),{style:n,treeData:r,filterTreeNode:i,myValue:a,loading:o,selectChange:h}}},TreeSelect_vue_vue_type_style_index_0_scoped_09e7f364_lang="",TreeSelect_vue_vue_type_style_index_1_lang="";function _sfc_render$l(e,n,r,i,a,o){const s=vue.resolveComponent("a-tree-select");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-tree-select",style:vue.normalizeStyle(i.style)},[vue.createVNode(s,{class:"tree-select",value:i.myValue,"onUpdate:value":n[0]||(n[0]=l=>i.myValue=l),allowClear:"",showSearch:"",loading:i.loading,fieldNames:e.dataFieldNames,treeData:i.treeData,maxTagCount:e.maxTagCount,multiple:e.multiple,treeCheckable:e.treeCheckable,filterTreeNode:i.filterTreeNode,placeholder:e.placeholder,onChange:i.selectChange},null,8,["value","loading","fieldNames","treeData","maxTagCount","multiple","treeCheckable","filterTreeNode","placeholder","onChange"])],4)}const TreeSelect=_export_sfc$1(_sfc_main$j,[["render",_sfc_render$l],["__scopeId","data-v-09e7f364"]]),EcanTreeSelect=withInstall$1(TreeSelect),radioProps={...props,width:"260px",height:"32px",id:"",left:"0px",top:"0px",name:"单选框",keyName:"单选框",rotate:"",type:"ecanRadio",value:"",data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],optionType:"default",tabBackgroundImage:"",activeTabBackgroundImage:"",activeTabColor:"#1890ff",tabColor:"#333",tabFontSize:"14px",tabHorizontalPadding:"0px",tabVerticalPadding:"5px",tabBarGutter:"24px",tabFlexDirection:"row",graphicConfig:{},tabTextAlign:"",selectFirstOption:!1,radioMode:"native"},radioComponentProps=transformToComponentProps(radioProps),radioEvents=["checkboxChange","click"],_sfc_main$i=vue.defineComponent({name:"EcanRadio",components:{ARadioGroup:antDesignVue.RadioGroup,ARadioButton:antDesignVue.RadioButton,ARadio:antDesignVue.Radio},props:{...radioComponentProps},setup(e,{expose:n}){const{pageMode:r}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),i=usePickComponentStyle(e),a=vue.ref([]),o=vue.ref(""),s=(A=[])=>{var T;const _=e.value;let k=[];typeof _=="string"&&_!==""?k=k.concat(_.split(",")):Array.isArray(_)&&(k=k.concat(_)),a.value=A,e.selectFirstOption?o.value=((T=A[0])==null?void 0:T.value)||"":o.value=k[0]||""};vue.watch(()=>[e.data,e.value,e.selectFirstOption],([A])=>{vue.unref(r)==="design"&&s(A)},{immediate:!0,deep:!0});const l=useRequestData(e),c=async()=>{var k,T;if(e.dataType!=="request")return;const A=await l(),_=((T=(k=A==null?void 0:A.data)==null?void 0:k.data)==null?void 0:T.rows)||[];s(_)},{getGlobalModel:u,setGlobalModel:f}=vue.inject(GLOBAL_MODEL,{getGlobalModel:A=>{},setGlobalModel:(A,_)=>{}});f(e.id,{type:e.type,value:o});const x=useEmitEvent(e),h=()=>{const A=vue.unref(a).find(_=>_.value===vue.unref(o))||{};x("checkboxChange",()=>{const _=u(e.id);f(e.id,{..._,RECORD:o})},A)()},g=A=>{o.value=A,x("click",()=>{const _=u(e.id);f(e.id,{..._,RECORD:o})})()};vue.watch(o,()=>{h()});const v=A=>{var k;const{data:_}=(A==null?void 0:A.data)||{};if(_){const F=(((k=A==null?void 0:A.data)==null?void 0:k.data)??[]).map(M=>({label:M.label,value:M.value}));s(F)}else s([])},p=useIndicatorData(e,v),E=async()=>{try{const A=await p();v(A)}catch(A){console.error(A)}},b=()=>{switch(e.dataType){case"indicator":E();break;case"request":c();break}},{setRequest:d}=vue.inject(REQUEST_MODEL,{setRequest:({id:A,sortNum:_,requestFn:k})=>{}});typeof d=="function"&&d({id:e.id,requestFn:b,sortNum:e.requestSort});const m=A=>{o.value=A.value},y=vue.computed(()=>e.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px",fontSize:e.tabFontSize}:{fontSize:e.tabFontSize});return vue.onMounted(()=>{s(e.data)}),n({refreshData:b}),{myOption:a,style:i,myValue:o,radioStyle:y,onClickButton:g,useImagePath,tabChange:m}}}),Radio_vue_vue_type_style_index_0_lang="",Radio_vue_vue_type_style_index_1_scoped_a19c4d3e_lang="",_hoisted_1$9=["onClick"];function _sfc_render$k(e,n,r,i,a,o){const s=vue.resolveComponent("a-radio"),l=vue.resolveComponent("a-radio-button"),c=vue.resolveComponent("a-radio-group");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["ecan-radio",e.optionType]),style:vue.normalizeStyle(e.style)},[e.radioMode==="custom"?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"tabs-header",style:vue.normalizeStyle({fontSize:e.tabFontSize,flexDirection:e.tabFlexDirection,alignItems:e.tabTextAlign})},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.myOption,(u,f)=>(vue.openBlock(),vue.createElementBlock("div",{class:"tab",style:vue.normalizeStyle({padding:`${e.tabVerticalPadding} ${e.tabHorizontalPadding}`,color:e.myValue===u.value?e.activeTabColor:e.tabColor,backgroundImage:e.myValue===u.value?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabFlexDirection==="row"?e.tabBarGutter:"0",marginBottom:e.tabFlexDirection==="column"?e.tabBarGutter:"0"}),key:f,onClick:vue.withModifiers(x=>e.tabChange(u),["prevent","stop"])},[vue.createElementVNode("div",{class:"tab-inner",style:vue.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.myValue===u.value?e.activeTabColor:"transparent"}`:""})},vue.toDisplayString(u.label),5)],12,_hoisted_1$9))),128))],4)):e.radioMode==="native"?(vue.openBlock(),vue.createBlock(c,{key:1,value:e.myValue,"onUpdate:value":n[0]||(n[0]=u=>e.myValue=u)},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.myOption,u=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:u.value},[e.optionType==="default"?(vue.openBlock(),vue.createBlock(s,{key:0,value:u.value,style:vue.normalizeStyle(e.radioStyle)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(u.label),1)]),_:2},1032,["value","style"])):e.optionType==="button"?(vue.openBlock(),vue.createBlock(l,{key:1,value:u.value,style:vue.normalizeStyle({fontSize:e.tabFontSize}),onClick:f=>e.onClickButton(u.value)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(u.label),1)]),_:2},1032,["value","style","onClick"])):vue.createCommentVNode("",!0)],64))),128))]),_:1},8,["value"])):vue.createCommentVNode("",!0)],6)}const Radio=_export_sfc$1(_sfc_main$i,[["render",_sfc_render$k],["__scopeId","data-v-a19c4d3e"]]),EcanRadio=withInstall$1(Radio),pieProps={...props,id:"",name:"饼图",keyName:"饼图",type:"ecanPie",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleLeft:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],backgroundColor:"",tooltipShow:!0,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c} ({d}%)",legendShow:!0,legendTextStyleColor:"#333",legendOrient:"vertical",legendTop:"top",legendLeft:"left",innerRadius:"0%",outerRadius:"60%",centerLeft:"50%",centerTop:"50%",minAngle:0,labelShow:!0,labelColor:"#333",labelWidth:100,labelOverflow:"none",isUseLabelColors:!1,labelFontSize:12,labelPosition:"outside",labelFormatter:"{b}\\n{d}%",labelLineShow:!0,labelLineLength:10,labelLineLength2:15,roseType:"",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},dataFieldConfigType:"value",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendFormatter:"{name}",legendFontSize:"12px",tooltipPosition:"",graphicType:"ecanPie",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,legendType:""},pieComponentProps=transformToComponentProps(pieProps),pieEvents=["click","refreshData","resetRecord"],useDownloadFile=async e=>{var c;const n=await request.post(e,{},{responseType:"blob"}),{data:r,headers:i}=n,a=i["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),o=new Blob([r]),s=document.createElement("a"),l=window.URL.createObjectURL(o);s.href=l,s.download=decodeURI(a),s.style.display="none",document.body.appendChild(s),s.click(),(c=s.parentNode)==null||c.removeChild(s),window.URL.revokeObjectURL(l)},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(e){const{containerMap:n={},sourceList:r=[]}=e,i=lodashEs.cloneDeep(e.componentList),a=i.filter(o=>o.type==="ecanTabs"&&o.isAutoScroll);if(a!=null&&a.length)for(const o of a){const s=n[o.id],l=[];if((!hasOwn(o,"componentList")||!(o!=null&&o.componentList))&&(o.componentList=[]),s){let c=0;for(const u in s){const f=s[u],x=[];if(f!=null&&f.length)for(const h of f){let g=i.find(v=>v.id===h);g||(g=r.find(v=>v.id===h)),g&&(x.push(g),containerType.includes(g.type)&&x.push(...getComponentByContainer(g.id,n,r)))}for(const h of x)hasOwn(h,"scale")?parseFloat(u)>0&&(h.left=parseFloat(h.left)+c+"px"):(h.left=parseFloat(h.sourceLeft||h.left)-parseFloat(o.sourceLeft||o.left)+c+"px",h.top=parseFloat(h.sourceTop||h.top)-parseFloat(o.sourceTop||o.top)+"px"),l.includes(h.id)||l.push(h.id);o.componentList.push(...x),c=getMaxLeftInComponents(x)}}for(const c of l){const u=i.findIndex(f=>f.id===c);u!==-1&&i.splice(u,1)}}return i}function compatibleMobileList(e){var o,s;const{combinationMap:n={},sourceList:r=[]}=e,i=e.containerMap,a=lodashEs.cloneDeep([...e.componentList,...getTabsSomeComponentList(i,r)]);if(handleContainerMap(i,a),(o=Object.keys(i))!=null&&o.length||(s=Object.keys(n))!=null&&s.length){for(const h in i){const g=a.find(v=>v.id===h);if(g){hasOwn(g,"parentId")||(g.parentId="",g.sourceLeft=g.left,g.sourceTop=g.top);for(const v in i[h])if(i[h][v])for(const p of i[h][v]){const E=a.find(b=>b.id===p);E&&(E.parentId=h,E.sourceLeft=E.left,E.sourceTop=E.top,E.left=parseFloat(E.left)-parseFloat(g.sourceLeft||g.left)+"px",E.top=parseFloat(E.top)-parseFloat(g.sourceTop||g.top)+"px")}}}const l=Array.from(new Set(a.filter(h=>(!hasOwn(h,"parentId")||h.parentId==="")&&h.combinationId).map(h=>h.combinationId))),c=getCombinationList(l,{...e,componentList:a});c!=null&&c.length&&a.unshift(...c);const u=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],f=a.filter(h=>u.includes(h.type)&&!hasOwn(h,"parentId")),x=[];for(const h of f)if(h){const g=h.id+"_vir";x.push({id:g,keyName:h.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:h.width,height:h.height,left:h.left,top:h.top,sourceLeft:h.left,sourceTop:h.top}),h.parentId=g,h.sourceLeft=h.left,h.sourceTop=h.top,h.left=0,h.top=0}x!=null&&x.length&&a.unshift(...x);for(const h of a){const g=document.body.clientWidth;if(h.parentId===""&&containerType.includes(h.type))h.sourceWidth=parseFloat(h.width),h.height=(g/(h.sourceWidth/parseFloat(h.height))).toFixed(2)+"px",h.width="100%",h.position="relative",h.top="auto",h.left="auto";else{const v=a.find(p=>p.id===h.parentId);if((v==null?void 0:v.parentId)===""){const p=v.sourceWidth||parseFloat(v.width),E=g/p;h.scale=E,h.top=parseFloat(h.top)*E-parseFloat(h.height)*(1-E)/2+"px",h.left=parseFloat(h.left)*E-parseFloat(h.width)*(1-E)/2+"px"}}h.type==="ecanModal"&&(h.parentId="",h.fullModal=!0)}return sortList(a)}return a}function handleContainerMap(e,n){const r=lodashEs.cloneDeep(e),i=n.filter(a=>a.type==="ecanTabs"&&a.isAutoScroll);if(i!=null&&i.length)for(const a of i){const o=r[a.id];for(const s in o)for(const l of o[s]){const c=n.find(u=>u.id===l);if(c&&containerType.includes(c.type)){const u=getComponentByContainer(c.id,r,n);for(const f of u)e[a.id][s].push(f.id),containerType.includes(f.type)&&delete e[f.id];delete e[c.id]}}}}function getTabsSomeComponentList(e,n){const r=[],i=n.filter(a=>a.type==="ecanTabs"&&a.isAutoScroll);if(i!=null&&i.length)for(const a of i){const o=e[a.id];for(const s in o)if(parseFloat(s)>0)for(const l of o[s]){const c=n.find(u=>u.id===l);c&&(r.push(c),containerType.includes(c.type)&&r.push(...getComponentByContainer(c.id,e,n)))}}return r}function getComponentByContainer(e,n,r){const i=[],a=n[e];for(const o in a)for(const s of a[o]){const l=r.find(c=>c.id===s);l&&(i.push(l),containerType.includes(l.type)&&i.push(...getComponentByContainer(l.id,n,r)))}return i}function getCombinationList(e,n,r){const{combinationMap:i={},componentList:a=[]}=n,o=[];for(const s of e){const l=i[s];if(l!=null&&l.length){const c=a.filter(u=>l.includes(u.id));if(c!=null&&c.length){const u=getCombinateRect(c);if(u){o.push({...u,id:s,keyName:s,parentId:r||"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:u.left,sourceTop:u.top});for(const f of c)f&&(f.parentId=s,f.sourceLeft=f.left,f.sourceTop=f.top,f.left=parseFloat(f.left)-parseFloat(u.left)+"px",f.top=parseFloat(f.top)-parseFloat(u.top)+"px")}}}}return o}function sortList(e){const r=e.filter(i=>i.parentId==="");if(r!=null&&r.length){const i=lodashEs.cloneDeep(r).map(a=>({...a,sourceTop:parseFloat(a.sourceTop),sourceLeft:parseFloat(a.sourceLeft)}));for(let a=0;a<i.length-1;a++)for(let o=0;o<i.length-a-1;o++){let s=!1;if((i[o].sourceTop-i[o+1].sourceTop>50||Math.abs(i[o+1].sourceTop-i[o].sourceTop)<=50&&i[o].sourceLeft>i[o+1].sourceLeft)&&(s=!0),s){const l=i[o];i[o]=i[o+1],i[o+1]=l}}for(const a of i){const o=e.findIndex(s=>s.id===a.id);o!==-1&&e.splice(o,1)}return[...i,...e]}return e}function getCombinateRect(e){const n=e.sort((o,s)=>parseFloat(o.top)-parseFloat(s.top))[0],r=e.sort((o,s)=>parseFloat(o.left)-parseFloat(s.left))[0],i=e.map(o=>({...o,computedTop:parseFloat(o.top)+parseFloat(o.height)})).sort((o,s)=>s.computedTop-o.computedTop)[0],a=e.map(o=>({...o,computedLeft:parseFloat(o.left)+parseFloat(o.width)})).sort((o,s)=>s.computedLeft-o.computedLeft)[0];return n&&r&&i&&a?{left:r.left,top:n.top,width:a.computedLeft-parseFloat(r.left)+"px",height:i.computedTop-parseFloat(n.top)+"px"}:null}function getMaxLeftInComponents(e){const n=e.map(r=>parseFloat(r.left)+parseFloat(r.width)).sort((r,i)=>i-r)[0];return n||0}function moveToComponentList(e,n,r){const i=e[r],a=[];if(i)for(const o in i){const s=i[o];for(const l of s){const c=n.find(u=>u.id===l);c&&(a.push(c),containerType.includes(c.type)&&a.push(...getComponentByContainer(c.id,e,n)))}}return a}const _sfc_main$h=vue.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(e,{emit:n}){n("ready",e.component.id)}});function _sfc_render$j(e,n,r,i,a,o){return e.component.parentId?(vue.openBlock(),vue.createBlock(vue.Teleport,{key:0,to:"#container_"+e.component.parentId},[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(e.component.type),vue.mergeProps({style:{scale:e.component.scale}},e.component),null,16,["style"]))],8,["to"])):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(e.component.type),vue.normalizeProps(vue.mergeProps({key:1},e.component)),null,16))}const Render=_export_sfc$1(_sfc_main$h,[["render",_sfc_render$j]]),EcanRender=withInstall$1(Render),_sfc_main$g=vue.defineComponent({name:"EcanModal",components:{AModal:antDesignVue.Modal,CloseOutlined:CloseOutlined$1,Render:EcanRender},props:{...modalComponentProps},setup(e,{emit:n}){const r=vue.ref([]),i=vue.inject("isMobile",!1),a=vue.computed(()=>e.fullModal),o=vue.inject("getContainerMap",()=>{}),s=vue.inject("getCombinationMap",()=>{}),{clearInteractiveData:l,interactiveData:c,setRequestData:u}=vue.inject(GLOBAL_MODEL,{setRequestData:(W,Q)=>{},clearInteractiveData:()=>{},interactiveData:null}),f=()=>document.getElementById("ProviderConfig")||document.body,x=vue.computed(()=>{const W=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[W]}}),h=e.fullModal?"1920px":e.width,g=e.fullModal?"1080px":e.height,v=e.originalWidth,p=e.originalHeight,E=vue.ref("80%"),b=vue.ref(0),d=vue.ref(),m=vue.ref(0),y=vue.ref({}),A=usePickComponentStyle(e),_=vue.ref({}),k=vue.ref(!1),T=vue.ref();let F;const M=()=>{d.value=parseFloat(h)/parseFloat(v);const W=parseFloat(g)/parseFloat(p),Q=document.body.offsetWidth,te=document.body.offsetHeight;if(b.value=Q*vue.unref(d),m.value=te*W,E.value=`${vue.unref(d)*100}%`,y.value={width:`${vue.unref(b)}px`,height:`${vue.unref(m)}px`,border:`${e.borderWidth} solid ${e.borderColor}`,borderRadius:e.borderRadius+"px",boxShadow:e.boxShadow},_.value={...vue.unref(A),backgroundImage:useImagePath(e.backgroundImage,!0)},i)_.value={..._.value,width:"100%",height:"100%"};else{const re={..._.value,width:h,height:g};e.banScale&&vue.unref(a)?(re.width="100%",re.height="100%"):re.transform=`scale(${vue.unref(b)/parseFloat(h)},${vue.unref(m)/parseFloat(g)})`,_.value=re}},B=lodashEs.debounce(()=>{M()},100),L=()=>{const W=window.MutationObserver;F=new W(B),F.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},R=()=>{F&&(F.disconnect(),F.takeRecords(),F=null)},H=vue.ref(!1),{touchRequest:V}=vue.inject(REQUEST_MODEL,{touchRequest:()=>{}}),P=vue.ref(""),I=()=>{var te;const{title:W}=e,Q=(te=vue.unref(c))==null?void 0:te.RECORD;return Q?useVariablesInText(W,{textData:Q},{useNewline:!1,useSpace:!1}):W},S=useEmitEvent(e),C=W=>{const{changeIframeStyle:Q}=window.parent;Q&&typeof Q=="function"&&Q({iframeId:e.parentIframeId||"",action:W})},N=()=>{vue.unref(a)&&C("open"),i&&(document.documentElement.style.overflow="hidden"),P.value=I(),H.value=!0},w=S("hideModal",()=>{vue.unref(a)&&C("close"),n("close"),i&&(document.documentElement.style.overflow="hidden auto",r.value=[]),H.value=!1}),q=()=>{w()},O=()=>{w(),l()},{setModalModel:D,pushUseModalIds:$,popUseModalIds:U}=vue.inject(MODAL_MODEL,{pushUseModalIds:W=>{},popUseModalIds:()=>{},setModalModel:(W,Q)=>{}}),j=vue.computed(()=>{let W=e.componentList;const Q=lodashEs.cloneDeep(e.componentList),te=o(),re=s(),ae={containerMap:te,combinationMap:re};i&&(W=compatibleMobileList({...ae,componentList:Q,sourceList:e.allComponentList})),W=handleScrollCombinations({...ae,componentList:W,sourceList:e.allComponentList});const se=[];for(const fe of W)if(fe.type==="ecanCirculate"){const he=moveToComponentList(te,vue.unref(Q),fe.id);fe.componentList=he,se.push(...he.map(ge=>ge.id))}if(se!=null&&se.length)for(const fe of se){const he=W.findIndex(ge=>ge.id===fe);he!==-1&&W.splice(he,1)}return W}),K=()=>{const W=e.id;let Q=[];const te=e.componentList;Array.isArray(te)&&(Q=te.map(re=>re.id),D(W,[...new Set(Q)]))},G=vue.ref(!1),Y={};for(const W of e.requestList)Y[W.requestName]=useRequestData(W);vue.watch(()=>H.value,async W=>{if(W)k.value=!1,$(e.id),K(),await vue.nextTick(()=>{M(),window.addEventListener("resize",B),L(),k.value=!0}),V();else{for(const Q in Y)u(Q,{});U(),window.removeEventListener("resize",B),R()}});const J=vue.computed(()=>vue.unref(d)>=1),ee=vue.computed(()=>{let W="ecan-modal";return vue.unref(J)&&(W+=" ecan-full-width-modal"),vue.unref(a)&&(W+=" ecan-full-modal"),W});return useOnEvent(e,{showModal:N,hideModal:w}),{modalRef:T,containStyle:y,contentStyle:_,getContainer:f,modalStyle:x,modalWith:E,isFullModal:a,style:A,visible:H,showModal:N,onOk:q,onCancel:O,isFullWidth:J,wrapClassName:ee,ready:k,usedComponentList:j,isMobile:i,readyIds:r,hasOwn,onComponentReady:W=>{r.value.push(W)},formatTitle:P,requestLoaded:G}}}),Modal_vue_vue_type_style_index_0_scoped_e56696cd_lang="",Modal_vue_vue_type_style_index_1_lang="";function _sfc_render$i(e,n,r,i,a,o){const s=vue.resolveComponent("close-outlined"),l=vue.resolveComponent("render"),c=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(c,{getContainer:e.getContainer,wrapClassName:e.wrapClassName,centered:"",visible:e.visible,footer:null,width:e.isFullModal||e.isFullWidth?"100%":e.modalWith,destroyOnClose:e.destroyOnClose,style:vue.normalizeStyle(e.modalStyle),closable:!1,onOk:e.onOk,onCancel:e.onCancel,ref:"modalRef",id:"container_"+e.id},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"contain",ref:"containRef",style:vue.normalizeStyle(e.containStyle)},[e.ready?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"content",style:vue.normalizeStyle(e.contentStyle)},[vue.createElementVNode("div",{class:"header-bar",style:vue.normalizeStyle({backgroundColor:e.backgroundColor,padding:"20px 30px",height:e.isMobile?"62px":""})},[e.formatTitle?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"ant-modal-title",style:vue.normalizeStyle({fontSize:e.titleFontSize,color:e.titleColor})},vue.toDisplayString(e.formatTitle),5)):vue.createCommentVNode("",!0),e.isShowCloseBtn?(vue.openBlock(),vue.createBlock(s,{key:1,class:"close-icon",style:vue.normalizeStyle({color:e.closeBtnColor}),onClick:e.onCancel},null,8,["style","onClick"])):vue.createCommentVNode("",!0)],4),e.usedComponentList.length?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(e.isMobile?"mobile-wrap":"")},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.usedComponentList,(u,f)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:u.id+f},[e.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[e.hasOwn(u,"parentId")&&(e.readyIds.includes(u.parentId)||u.parentId==="")?(vue.openBlock(),vue.createBlock(l,{key:0,component:u,onReady:e.onComponentReady},null,8,["component","onReady"])):vue.createCommentVNode("",!0)],64)):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(u.type),vue.normalizeProps(vue.mergeProps({key:1},u)),null,16))],64))),128))],2)):vue.renderSlot(e.$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$g,[["render",_sfc_render$i],["__scopeId","data-v-e56696cd"]]),EcanModal=withInstall$1(Modal);core$1.use([renderers.CanvasRenderer,charts.PieChart,components$1.TitleComponent,components$1.ToolboxComponent,components$1.TooltipComponent,components$1.LegendComponent]);const _sfc_main$f=vue.defineComponent({name:"EcanPie",props:{...pieComponentProps},components:{Spin,Echarts,EcanModal},setup(e,{expose:n}){const{pageMode:r,fontFamily:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),a=vue.ref(),o=vue.ref(!1),s=usePickComponentStyle(e),l=vue.ref([]),c=vue.ref(),u=vue.ref({}),f=vue.computed(()=>{let{data:H=[]}=vue.unref(l)[0]||{};if(Array.isArray(e.colors)){const V=e.isUseLabelColors,P=e.colors;H=H.map((I,S)=>({label:V?{color:P[S]}:{},...I}))}return{textStyle:{fontFamily:vue.unref(i)},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,orient:e.toolboxOrient,feature:{myDownload:{show:e.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(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.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 V;o.value=!0,(V=c.value)==null||V.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){antDesignVue.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter:V=>{const{marker:P,seriesName:I,name:S,value:C,percent:N,data:w}=V||{};return useVariablesInText(e.tooltipFormatter,{textData:{marker:P,name:S,value:C,percent:N,a:I,b:S,c:C,d:N,...w}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor},position:e.tooltipPosition||void 0},legend:vue.unref(u),color:e.colors,series:[{data:H,type:"pie",radius:[e.innerRadius,e.outerRadius],center:[e.centerLeft,e.centerTop],roseType:e.roseType,avoidLabelOverlap:!0,minAngle:e.minAngle,label:{show:e.labelPosition!=="center"&&e.labelShow,color:e.labelColor,fontSize:o.value?ZOOM_FONT_SIZE:e.labelFontSize,position:e.labelPosition,formatter:handleFormatter(e.labelFormatter),width:e.labelWidth,overflow:e.labelOverflow},labelLine:{show:e.labelLineShow,length:e.labelLineLength,length2:e.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}}),x=()=>{var V,P;const H=o.value?ZOOM_FONT_SIZE:parseFloat(e.legendFontSize);u.value={type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,align:"left",textStyle:{lineHeight:H+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:H}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:(P=(V=vue.unref(l)[0])==null?void 0:V.data)==null?void 0:P.map(I=>({name:I.name,icon:e.legendType})),formatter:I=>{const{data:S}=l.value[0]||{};let C=0,N,w="0%";if(S)for(const q of S)q.name===I&&(N=+q.value),C+=+q.value;return C&&(w=`${(N/C*100).toFixed(2)}%`),getLegendFormat(e.legendFormatter,{name:I,value:N,percent:w})}}},h=()=>{o.value=!1},{getGlobalModel:g,setGlobalModel:v}=vue.inject(GLOBAL_MODEL,{getGlobalModel:H=>{},setGlobalModel:(H,V)=>{}}),p=(H=[],V)=>{const{dataset:P}=useTransformChartDataByAttrValue(H,V);l.value=P},E=(H=[],V)=>{const P=useTransformChartDataByAttrValue(H,V);l.value=P.dataset};vue.watch(()=>e.data,H=>{(e.dataType==="static"||vue.unref(r)==="design")&&p(H)},{immediate:!0,deep:!0}),vue.watch(()=>[e.legendShow,e.legendOrient,e.legendTop,e.legendLeft,e.legendTextStyleColor,e.labelFontSize,e.legendItemHeight,e.legendItemWidth,e.legendItemGap,e.legendFormatter,e.legendFontSize,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll,e.legendType],()=>{x()},{immediate:!0});const b=vue.ref(!1),d=useRequestData(e),m=async()=>{var H,V;if(e.dataType==="request")try{b.value=!0;const P=await d();p((V=(H=P==null?void 0:P.data)==null?void 0:H.data)==null?void 0:V.rows,e.valueTypeDataFieldNames)}catch(P){console.error(P)}finally{b.value=!1}},y=useEmitEvent(e);v(e.id,{type:e.type,RECORD:""});const A=y("click",H=>{const V=g(e.id);v(e.id,{...V,type:e.type,RECORD:H==null?void 0:H.data})}),_=H=>{var P;const{data:V}=(H==null?void 0:H.data)||{};if(V){const{columns:I=[],rows:S=[]}=((P=H==null?void 0:H.data)==null?void 0:P.data)??{};let C=[];if(I.length>0){const N=I[0],w=I[1];C=S.filter(q=>!!q).map(q=>({name:q[N],value:isNaN(q[w])?0:q[w]||0}))}E(C)}},k=useIndicatorData(e,H=>{e.isViewRedrawing&&a.value.clear(),_(H)}),T=async()=>{try{b.value=!0;const H=await k();_(H)}catch(H){console.error(H)}finally{b.value=!1}},{loadedData:F}=vue.inject(LOADED_DATA,{loadedData:{}}),M=vue.ref(!1);vue.watch(F,H=>{if(e.dataType==="indicator"){const V=getFixedValueDatas(e.graphicConfig);V!=null&&V.length&&(!vue.unref(M)&&canRequestIndicator(e.graphicConfig,H)?(M.value=!0,B()):canRequestIndicator(e.graphicConfig,H)||(M.value=!1))}},{deep:!0});const B=()=>{switch(e.dataType){case"indicator":canRequestIndicator(e.graphicConfig,vue.unref(F))&&T();break;case"request":m();break}};useOnEvent(e,{resetRecord:()=>{const H=e.id,V=g(H);v(H,{...V,RECORD:""})},refreshData:B,click:A}),n({refreshData:B});const{setRequest:R}=vue.inject(REQUEST_MODEL,{setRequest:H=>{}});return typeof R=="function"&&R({id:e.id,requestFn:B,sortNum:e.requestSort}),{option:f,style:s,click:A,onClose:h,loading:b,ecanModal:c,echartRef:a}}}),Pie_vue_vue_type_style_index_0_lang="";function _sfc_render$h(e,n,r,i,a,o){const s=vue.resolveComponent("echarts"),l=vue.resolveComponent("spin"),c=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(e.style)},[vue.createVNode(l,{spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,{option:e.option,ref:"echartRef",autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),vue.createVNode(c,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:vue.withCtx(()=>[vue.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Pie=_export_sfc$1(_sfc_main$f,[["render",_sfc_render$h]]),EcanPie=withInstall$1(Pie),lineProps={...props,id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"}],titleText:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanLine",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,tooltipTextStyleColor:""},lineComponentProps=transformToComponentProps(lineProps),lineEvents=["click","refreshData","resetRecord"];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(e,{expose:n}){const{pageMode:r,fontFamily:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),a=vue.ref(),o=vue.ref(!1),s=usePickComponentStyle(e),l=vue.ref([]),c=vue.ref([]),u=vue.ref(),f=vue.computed(()=>o.value?ZOOM_FONT_SIZE:12),x=vue.ref({});let h;const g=vue.ref([]),v=vue.computed(()=>{const I=e.xAxisLabelFormatter,S=e.yAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(i)},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,orient:e.toolboxOrient,feature:{myDownload:{show:e.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(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.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 C;o.value=!0,(C=u.value)==null||C.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){antDesignVue.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:f.value,color:e.tooltipTextStyleColor},show:e.tooltipShow,formatter:C=>{var O;const N=C.length;let w="",q=e.tooltipFormatter;h=(O=C[0])==null?void 0:O.data,q===""&&(q="{marker} {a} {c}");for(let D=0;D<N;D++){const{marker:$,seriesName:U,name:j,value:K,data:G}=C[D]||{};if(D===0){let Y=j;typeof j=="string"&&j[0]==="0"&&!isNaN(+j)&&(Y=(+j).toString()),w+=`${useValueFormatter(I,Y)}<br/>`}w+=useVariablesInText(q,{textData:{marker:$,name:j,value:K,a:U,b:j,c:K||0,...G}},{useNewline:!0,useSpace:!0}),w+="<br/>"}return w},position:e.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:vue.unref(c).map(C=>{let N={};return C&&typeof C=="object"?N={...C}:N={value:C},N}),minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{show:e.xAxisLabelShow,color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(C){return typeof C=="string"&&C[0]==="0"&&!isNaN(+C)&&(C=(+C).toString()),useValueFormatter(I,C)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"},max:e.xAxisMaxValue||null},yAxis:{type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(C){return useValueFormatter(S,C)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"},max:e.yAxisMaxValue||null},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(o.value?ZOOM_FONT_SIZE:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:o.value?ZOOM_FONT_SIZE:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:vue.unref(g).map(C=>({name:C.name,icon:e.legendType})),formatter:C=>getLegendFormat(e.legendFormatter,{name:C})},series:vue.unref(l)}}),p=()=>{o.value=!1},{getGlobalModel:E,setGlobalModel:b}=vue.inject(GLOBAL_MODEL,{getGlobalModel:I=>{},setGlobalModel:(I,S)=>{}}),d=vue.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),m=(I=[],S=!1)=>{let C;if(e.dataFieldConfigType==="key"){const O=S?e.keyTypeDataFieldNames:null;C=useTransformChartDataByAttrKey(I,O)}else if(e.dataFieldConfigType==="value"){const O=S?e.valueTypeDataFieldNames:null;C=useTransformChartDataByAttrValue(I,O)}c.value=C.dimensions,g.value=C.dataset;const N=C.dataset,w=[],q=N.length;for(let O=0;O<q;O++){const D={};e.shadowColor&&(D.shadowColor=e.shadowColor,D.shadowBlur=e.shadowBlur,D.shadowOffsetY=e.shadowOffsetY,D.shadowOffsetX=e.shadowOffsetX),w.push({type:"line",...N[O],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[O]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[O],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...D},...vue.unref(d)})}l.value=w},y=(I=[],S,C=!1)=>{const w=useTransformChartDataByAttrKey(I,C?S:null,!0);c.value=w.dimensions,g.value=w.dataset;const q=w.dataset,O=[],D=q.length;for(let $=0;$<D;$++){const U={};e.shadowColor&&(U.shadowColor=e.shadowColor,U.shadowBlur=e.shadowBlur,U.shadowOffsetY=e.shadowOffsetY,U.shadowOffsetX=e.shadowOffsetX),O.push({type:"line",...q[$],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[$]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[$],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...U},...vue.unref(d)})}l.value=O};vue.watch(()=>[e.data,e.symbolSize,e.smooth,e.lineStyleWidth,e.areaStyleOpacity,e.areaGradientShow,e.areaGradientColor,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX,e.legendFontSize,e.isShowMarkLine,e.markLineType,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([I])=>{(e.dataType==="static"||vue.unref(r)==="design")&&m(I)},{immediate:!0,deep:!0});const A=vue.ref(!1),_=useRequestData(e),k=async()=>{var I,S;if(e.dataType==="request")try{A.value=!0;const C=await _();m((S=(I=C==null?void 0:C.data)==null?void 0:I.data)==null?void 0:S.rows,!0)}catch(C){console.error(C)}finally{A.value=!1}},T=useEmitEvent(e);b(e.id,{type:e.type,RECORD:""});const F=T("click",I=>{const S=E(e.id);b(e.id,{...S,type:e.type,RECORD:e.tooltipShow?h:I.data})}),M=I=>{a.value.chart.containPixel("grid",[I.offsetX,I.offsetY])&&F()};e.tooltipShow?x.value["zr:click"]=M:x.value.click=F;const B=I=>{var w;const{columns:S=[],rows:C=[]}=((w=I==null?void 0:I.data)==null?void 0:w.data)??{};let N;S.length>0&&(N={name:S[0],types:S.slice(1).map(q=>({label:q,value:q}))}),y(C,N,!0)},L=useIndicatorData(e,I=>{e.isViewRedrawing&&a.value.clear(),B(I)}),R=async()=>{try{A.value=!0;const I=await L();B(I)}catch(I){console.error(I)}finally{A.value=!1}},H=()=>{switch(e.dataType){case"indicator":R();break;case"request":k();break}};useOnEvent(e,{refreshData:H,resetRecord:()=>{const I=e.id,S=E(I);b(I,{...S,RECORD:""})},click:F});const{setRequest:P}=vue.inject(REQUEST_MODEL,{setRequest:I=>{}});return typeof P=="function"&&P({id:e.id,requestFn:H,sortNum:e.requestSort}),n({refreshData:H}),{option:v,style:s,click:F,loading:A,onClose:p,ecanModal:u,eventObj:x,echartRef:a}}}),Line_vue_vue_type_style_index_0_lang="";function _sfc_render$g(e,n,r,i,a,o){const s=vue.resolveComponent("echarts"),l=vue.resolveComponent("spin"),c=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(e.style)},[vue.createVNode(l,{spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,vue.mergeProps({ref:"echartRef",option:e.option,autoresize:""},vue.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),vue.createVNode(c,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:vue.withCtx(()=>[vue.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,{option:e.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$g]]),EcanLine=withInstall$1(Line),barProps={...props,id:"",name:"柱状图",keyName:"柱状图",type:"ecanBar",width:"400px",height:"400px",top:"",left:"",rotate:"",xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisLineAlwaysDisplay:!1,data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:310,type:"类型一"},{name:"名称三",value:310,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{marker} {a} {c}",xAxisSplitLineShow:!0,xAxisSplitLineInterval:0,xAxisSplitAreaShow:!1,xAxisSplitLineStyleColor:"#333",xAxisLabelInterval:0,xAxisLabelColor:"#333",xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisLabelWidth:void 0,yAxisLabelRotate:0,yAxisLabelOverflow:"none",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",barWidth:"40%",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",isUseHorizontalAxis:!1,axisInverse:!1,xAxisInverse:!1,yAxisInverse:!1,isStack:!1,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{c}",toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,barBorderRadius:"",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,showBarBackground:!1,legendType:"",legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanBar",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",defaultRangeValue:!1,startValue:"",endValue:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0},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$d=vue.defineComponent({name:"EcanBar",props:{...barComponentProps},components:{Spin,Echarts,EcanModal,AModal:antDesignVue.Modal},setup(e,{expose:n}){const{pageMode:r,fontFamily:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),a=vue.inject("usedComponentList",[]),o=vue.ref(),s=vue.ref(!1),l=vue.ref(!1),c=vue.ref(null),u=vue.ref([]),f=usePickComponentStyle(e),x=vue.ref([]),h=vue.ref(),g=vue.ref({});let v;const p=vue.computed(()=>s.value?ZOOM_FONT_SIZE:12),E=vue.computed(()=>{const{gradientShow:U,gradientColors:j,gradientOffset:K,barBorderRadius:G}=e,Y=vue.unref(x),J=Y.length,ee=[];for(let Z=0;Z<J;Z++){const W={...Y[Z],type:"bar",barWidth:e.barWidth.value+e.barWidth.suffix,showBackground:e.showBarBackground};if(e.isStack&&(W.stack="stack"),W.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:Q=>{let te="",re=e.labelFormatter;re===""&&(re="{c}");const{seriesName:ae,name:se,value:fe,data:he}=Q||{};return te+=useVariablesInText(re,{textData:{name:se,value:fe,a:ae,b:se,c:fe||0,...he}},{useNewline:!0,useSpace:!0}),te}},W.itemStyle={},U&&(W.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[Z]},{offset:K,color:j[Z]},{offset:1,color:j[Z]}]}}),G){const Q=G.split(",");if(Q!=null&&Q.length){const te=[];for(const re of Q){const ae=parseFloat(re);isNaN(ae)||te.push(ae)}W.itemStyle.borderRadius=te}}e.isShowMarkLine&&(W.markLine={data:[{type:e.markLineType}]}),ee.push(W)}return ee}),b=vue.ref([]),d=vue.ref(!1),m=vue.computed(()=>{const U=e.yAxisLabelFormatter,j=e.xAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(i)},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:s.value?!1:e.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(){l.value=!0;const K=o.value.chart.getOption(),{xAxis:G}=K||{};G&&G.length&&(u.value=G[0].data)}},myDownload:{show:e.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(e.toolboxDownloadUrl)}},myDataZoom:{show:s.value?!1:e.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 K;s.value=!0,(K=h.value)==null||K.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){antDesignVue.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",show:e.tooltipShow,formatter:K=>{var ee;const G=K.length;let Y="",J=e.tooltipFormatter;v=(ee=K[0])==null?void 0:ee.data,J===""&&(J="{marker} {a} {c}");for(let Z=0;Z<G;Z++){const{marker:W,seriesName:Q,name:te,value:re,data:ae}=K[Z]||{};if(Z===0){let se=te;typeof te=="string"&&te[0]==="0"&&!isNaN(+te)&&(se=(+te).toString()),Y+=`${useValueFormatter(j,se)}<br/>`}Y+=useVariablesInText(J,{textData:{marker:W,name:te,value:re,a:Q,b:te,c:re||0,...ae}},{useNewline:!0,useSpace:!0}),Y+="<br/>"}return Y},textStyle:{color:e.tooltipTextStyleColor,fontSize:p.value},position:e.tooltipPosition||void 0},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(s.value?ZOOM_FONT_SIZE:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:s.value?ZOOM_FONT_SIZE:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:vue.unref(x).map((K,G)=>({name:K.name,itemStyle:{color:e.colors[G]},icon:e.legendType})),formatter:K=>getLegendFormat(e.legendFormatter,{name:K})},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:vue.unref(k),inverse:e.isUseHorizontalAxis?e.xAxisInverse:e.axisInverse,minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor,type:e.xAxisSplitLineType},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{show:e.xAxisLabelShow,color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(K){return typeof K=="string"&&K[0]==="0"&&!isNaN(+K)&&(K=(+K).toString()),useValueFormatter(j,K)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"},max:e.xAxisMaxValue||null},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?vue.unref(b):null,inverse:e.isUseHorizontalAxis?e.axisInverse:e.yAxisInverse,minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,rotate:e.yAxisLabelRotate,width:e.yAxisLabelWidth,overflow:e.yAxisLabelOverflow,formatter(K){return useValueFormatter(U,K)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"},max:e.yAxisMaxValue||null},series:vue.unref(E)}}),y=()=>{s.value=!1},A=(U=[],j=!1)=>{let K={};if(e.dataFieldConfigType==="key"){const G=j?e.keyTypeDataFieldNames:null;K=useTransformChartDataByAttrKey(U,G)}else if(e.dataFieldConfigType==="value"){const G=j?e.valueTypeDataFieldNames:null;K=useTransformChartDataByAttrValue(U,G)}x.value=K.dataset,b.value=K.dimensions},_=(U=[],j,K=!1)=>{const Y=useTransformChartDataByAttrKey(U,K?j:null,!0);e.defaultRangeValue&&setDefaultRangeVal({props:e,componentList:vue.unref(a),getGlobalModel:N},Y),x.value=Y.dataset,b.value=Y.dimensions},k=vue.computed(()=>vue.unref(b).map(U=>{let j={};return U&&typeof U=="object"?j={...U}:j={value:U},j}));vue.watch(()=>[e.data,e.labelFormatter,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([U])=>{(e.dataType==="static"||vue.unref(r)==="design")&&A(U)},{immediate:!0,deep:!0});const T=useRequestData(e),F=async()=>{var U,j;try{d.value=!0;const K=await T();A((j=(U=K==null?void 0:K.data)==null?void 0:U.data)==null?void 0:j.rows,!0)}catch(K){console.error(K)}finally{d.value=!1}},M=U=>{var Y;const{columns:j=[],rows:K=[]}=((Y=U==null?void 0:U.data)==null?void 0:Y.data)??{};let G;j.length>0&&(G={name:j[0],types:j.slice(1).map(J=>({label:J,value:J}))}),_(K,G,!0)},B=useIndicatorData(e,U=>{e.isViewRedrawing&&o.value.clear(),M(U)}),L=async()=>{try{d.value=!0;const U=await B();M(U)}catch(U){console.error(U)}finally{d.value=!1}},{loadedData:R}=vue.inject(LOADED_DATA,{loadedData:{}}),H=vue.ref(!1);vue.watch(R,U=>{if(e.dataType==="indicator"){const j=getFixedValueDatas(e.graphicConfig);j!=null&&j.length&&(!vue.unref(H)&&canRequestIndicator(e.graphicConfig,U)?(H.value=!0,V()):canRequestIndicator(e.graphicConfig,U)||(H.value=!1))}},{deep:!0});const V=()=>{switch(e.dataType){case"indicator":canRequestIndicator(e.graphicConfig,vue.unref(R))&&L();break;case"request":F();break}},P=(U,j)=>!!vue.unref(u)[j.value].value.includes(U),I=async()=>{l.value=!1;const U=o.value.chart.getOption();for(let j=0;j<7;j++)await S(U,j)},S=(U,j)=>new Promise(K=>{setTimeout(()=>{const{series:G,color:Y,xAxis:J}=U,ee=o.value.chart,{splitArea:Z={}}=J[0]||{};G.forEach((W,Q)=>{const te=W.data;let re="";j%2?re=Y[Q]+"a8":re=Y[Q],te[c.value].itemStyle={color:re}}),j%2?(Z.show=!0,Z.areaStyle.color=vue.unref(u).map((W,Q)=>Q===c.value?"#ff003b26":"")):Z.show=!1,ee.setOption({series:G,xAxis:J}),K()},200)});n({refreshData:V});const C=useEmitEvent(e),{getGlobalModel:N,setGlobalModel:w}=vue.inject(GLOBAL_MODEL,{getGlobalModel:U=>{},setGlobalModel:(U,j)=>{}});w(e.id,{type:e.type,RECORD:""});const q=C("click",U=>{const j=N(e.id);w(e.id,{...j,type:e.type,RECORD:e.tooltipShow?v:U.data})}),{setRequest:O}=vue.inject(REQUEST_MODEL,{setRequest:U=>{}});typeof O=="function"&&O({id:e.id,requestFn:V,sortNum:e.requestSort});const D=()=>{const U=e.id,j=N(U);w(U,{...j,RECORD:""})},$=U=>{o.value.chart.containPixel("grid",[U.offsetX,U.offsetY])&&q()};return e.tooltipShow?g.value["zr:click"]=$:g.value.click=q,useOnEvent(e,{refreshData:V,click:q,resetRecord:D}),{option:m,style:f,refreshData:V,click:q,loading:d,onClose:y,ecanModal:h,echartRef:o,handleLocationOk:I,onFilterOption:P,locationVisible:l,locationValue:c,locationNames:u,eventObj:g}}}),Bar_vue_vue_type_style_index_0_lang="",Bar_vue_vue_type_style_index_1_scoped_b1e34a16_lang="",_withScopeId$3=e=>(vue.pushScopeId("data-v-b1e34a16"),e=e(),vue.popScopeId(),e),_hoisted_1$8={class:"location-wrap"},_hoisted_2$5=_withScopeId$3(()=>vue.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function _sfc_render$f(e,n,r,i,a,o){const s=vue.resolveComponent("echarts"),l=vue.resolveComponent("spin"),c=vue.resolveComponent("ecan-modal"),u=vue.resolveComponent("a-select-option"),f=vue.resolveComponent("a-select"),x=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-bar",style:vue.normalizeStyle(e.style)},[vue.createVNode(l,{spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,vue.mergeProps({ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:""},vue.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),vue.createVNode(c,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:vue.withCtx(()=>[vue.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),vue.createVNode(x,{visible:e.locationVisible,"onUpdate:visible":n[1]||(n[1]=h=>e.locationVisible=h),title:"快速定位",onOk:e.handleLocationOk},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$8,[_hoisted_2$5,vue.createVNode(f,{value:e.locationValue,"onUpdate:value":n[0]||(n[0]=h=>e.locationValue=h),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.locationNames,(h,g)=>(vue.openBlock(),vue.createBlock(u,{key:g,value:g},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(h.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const Bar=_export_sfc$1(_sfc_main$d,[["render",_sfc_render$f],["__scopeId","data-v-b1e34a16"]]),EcanBar=withInstall$1(Bar),scatterProps={...props,id:"",name:"散点图",keyName:"散点图",type:"ecanScatter",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:233,value:335},{name:556,value:310},{name:56,value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",tooltipShow:!0,tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c}",legendShow:!1,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:10,symbolColor:"",xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelColor:"#333",xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelFormatter:"{value}",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",dataFieldNames:{name:"name",value:"value"},gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanScatter",tooltipPosition:"",yAxisName:"",xAxisName:"",showXAxisLineArrow:!1,showYAxisLineArrow:!1,xAxisLineInverse:!1,yAxisLineInverse:!1,yAxisTickShow:!0,xAxisMarkLineValue:[],yAxisMarkLineValue:[],axisMarkArea:[],xAxisMax:null,xAxisMin:null,yAxisMax:null,yAxisMin:null,xAxisLabelShow:!0,crossShow:!0},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$c=vue.defineComponent({name:"EcanScatter",props:{...scatterComponentProps},components:{Spin,Echarts,EcanModal},setup(e,{expose:n}){const{pageMode:r,fontFamily:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),a=vue.ref(),o=vue.ref(!1),s=usePickComponentStyle(e),l=vue.ref([]),c=vue.ref(),u=vue.computed(()=>o.value?ZOOM_FONT_SIZE:12),f=vue.ref(),x=vue.ref(),h=vue.ref(),g=vue.ref(),v=vue.inject("componentList",[]),{loadedData:p}=vue.inject(LOADED_DATA,{loadedData:{}}),E=vue.ref({}),b=vue.computed(()=>{const{xAxisMarkLineValue:O=[],yAxisMarkLineValue:D=[]}=e,$=O.concat(D),U=[];for(const j of $){let K=j.value;const G=K.match(/\{(.+?)\}/g);if(G!=null&&G.length){for(const J of G)K=K.replace(J,J.slice(1,-1));const Y=vue.unref(v).find(J=>J.keyName===K);Y!=null&&Y.id&&!U.find(J=>J.keyName===K)&&U.push({componentId:Y.id,keyName:Y.keyName})}}return U});vue.watch(p,O=>{var D;if((D=vue.unref(b))!=null&&D.length)for(const $ of vue.unref(b)){const{componentId:U,keyName:j}=$;if(O[U]){const K=_(U);E.value[j]=K.value}else delete E.value[j]}},{deep:!0});const d=vue.computed(()=>{const{xAxisMarkLineValue:O=[],yAxisMarkLineValue:D=[]}=e,$=O.map(K=>({...K,x:!0})),U=D.map(K=>({...K,y:!0})),j=$.concat(U);if(j!=null&&j.length){const K=[];for(const G of j){const Y={label:{show:!0,formatter:"",rich:{ft:{}}}},J={};let ee=G.value;const Z=ee.match(/\{(.+?)\}/g);let W="";if(Y.label.formatter=G.label?`{ft|${G.label}}`:"",(G.offsetHorizontal||G.offsetVertical)&&(G.x?Y.label.rich.ft.padding=[0,G.offsetHorizontal||0,G.offsetVertical||0,0]:G.y&&(Y.label.rich.ft.padding=[G.offsetVertical||0,0,0,G.offsetHorizontal||0])),G.labelColor&&(Y.label.rich.ft.color=G.labelColor),G.lineColor&&(J.color=G.lineColor),G.x?W="xAxis":G.y&&(W="yAxis"),Z!=null&&Z.length){for(const Q of Z)ee=ee.replace(Q,Q.slice(1,-1));if(ee){let Q;E.value[ee]?Q=vue.unref(E)[ee]:Q=runCode(ee,{max:G.x?vue.unref(f):G.y?vue.unref(h):0,min:G.x?vue.unref(x):G.y?vue.unref(g):0}),isNaN(+Q)||K.push({[W]:+Q,lineStyle:J,...Y})}}else isNaN(+G.value)||K.push({[W]:G.value,lineStyle:J,...Y})}return{symbol:["none","none"],data:K}}else return{data:[]}});function m(O,D,$){switch(D){case"startX":O[0].coord[0]=+$;break;case"startY":O[0].coord[1]=+$;break;case"endX":O[1].coord[0]=+$;break;case"endY":O[1].coord[1]=+$;break}}const y=vue.computed(()=>{const{axisMarkArea:O=[]}=e;if(O!=null&&O.length){const D=[];for(const $ of O){const U=[{name:"",coord:[],itemStyle:{color:$.color}},{coord:[]}];for(const j in $)if(j!=="color"){let K=$[j];const G=K.match(/\{(.+?)\}/g);if(G!=null&&G.length){for(const Y of G)K=K.replace(Y,Y.slice(1,-1));if(K){const Y=runCode(K,{xMax:vue.unref(f),xMin:vue.unref(x),yMax:vue.unref(h),yMin:vue.unref(g)});isNaN(+Y)||m(U,j,Y)}}else isNaN(+$[j])||m(U,j,$[j])}U.every(j=>{var K;return(K=j.coord)==null?void 0:K.length})&&D.push(U)}return{data:D}}else return{data:[]}}),A=vue.computed(()=>{const O=e.xAxisLabelFormatter,D=e.yAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(i)},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.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(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.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 $;o.value=!0,($=c.value)==null||$.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){antDesignVue.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,xAxis:{z:5,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{show:e.xAxisLabelShow,fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter($){return typeof $=="string"&&$[0]==="0"&&!isNaN(+$)&&($=(+$).toString()),useValueFormatter(O,$)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor},symbol:["none",e.showXAxisLineArrow?"arrow":"none"],symbolSize:[8,12],onZero:!1},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameLocation:e.xAxisLineInverse?"start":"end",nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"},inverse:e.xAxisLineInverse,max:e.xAxisMax,min:e.xAxisMin},yAxis:{z:5,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},axisTick:{show:e.yAxisTickShow},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter($){return useValueFormatter(D,$)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor},symbol:["none",e.showYAxisLineArrow?"arrow":"none"],symbolSize:[8,12],onZero:!1},name:e.yAxisName,nameLocation:e.yAxisLineInverse?"start":"end",nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"},inverse:e.yAxisLineInverse,max:e.yAxisMax,min:e.yAxisMin},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter($){var ee;const{marker:U,seriesName:j,componentType:K}=$,G=((ee=$==null?void 0:$.data)==null?void 0:ee.record)??{},Y=G[vue.unref(F).name],J=G[vue.unref(F).value];return["markLine","markArea"].includes(K)?"":useVariablesInText(e.tooltipFormatter,{textData:{marker:U,seriesName:j,a:j,b:Y,c:J,...G}},{useNewline:!0,useSpace:!0})},axisPointer:{type:e.crossShow||e.crossShow===void 0?"cross":""},textStyle:{fontSize:u.value},position:e.tooltipPosition||void 0},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:u.value}},series:[{data:vue.unref(l),type:"scatter",symbolSize:e.symbolSize,itemStyle:{color:e.symbolColor},markLine:d.value,markArea:y.value}]}}),{getGlobalModel:_,setGlobalModel:k}=vue.inject(GLOBAL_MODEL,{getGlobalModel:O=>{},setGlobalModel:(O,D)=>{}}),T=()=>{var $,U;const O=($=vue.unref(a))==null?void 0:$.chart.getModel().getComponent("yAxis").axis.scale._extent,D=(U=vue.unref(a))==null?void 0:U.chart.getModel().getComponent("xAxis").axis.scale._extent;D&&O&&(x.value=D[0],f.value=D[1],g.value=O[0],h.value=O[1])},F=vue.computed(()=>{let O=e.dataFieldNames;if(e.dataType==="indicator"){const{formFields:D={}}=e.graphicConfig;D!=null&&D.labelField&&(D!=null&&D.valueField)&&(O={name:D.labelField,value:D.valueField})}return O}),M=(O=[])=>{const{name:D="name",value:$="value"}=vue.unref(F)||{};l.value=O.map(U=>({value:[U[D],U[$]],record:U})),setTimeout(()=>{T()},0)};vue.watch(()=>e.data,O=>{(e.dataType==="static"||vue.unref(r)==="design")&&M(O)},{immediate:!0,deep:!0});const B=vue.ref(!1),L=useRequestData(e),R=async()=>{var O,D;if(e.dataType==="request"){B.value=!0;try{const $=await L();M((D=(O=$==null?void 0:$.data)==null?void 0:O.data)==null?void 0:D.rows)}catch($){console.error($)}finally{B.value=!1}}},H=()=>{o.value=!1},V=useEmitEvent(e);k(e.id,{type:e.type,RECORD:""});const P=V("click",O=>{const D=e.id,$=_(D);k(D,{...$,type:e.type,RECORD:O==null?void 0:O.data})}),I=O=>{var D,$;M(($=(D=O==null?void 0:O.data)==null?void 0:D.data)==null?void 0:$.rows)},S=useIndicatorData(e,O=>{e.isViewRedrawing&&a.value.clear(),I(O)}),C=async()=>{try{B.value=!0;const O=await S();I(O)}catch(O){console.error(O)}finally{B.value=!1}},N=()=>{switch(e.dataType){case"indicator":C();break;case"request":R();break}};useOnEvent(e,{refreshData:N,click:P,resetRecord:()=>{const O=e.id,D=_(O);k(O,{...D,RECORD:""})}});const{setRequest:q}=vue.inject(REQUEST_MODEL,{setRequest:O=>{}});return typeof q=="function"&&q({id:e.id,requestFn:N,sortNum:e.requestSort}),n({refreshData:N}),{option:A,style:s,click:P,loading:B,onClose:H,ecanModal:c,echartRef:a}}}),Scatter_vue_vue_type_style_index_0_lang="";function _sfc_render$e(e,n,r,i,a,o){const s=vue.resolveComponent("echarts"),l=vue.resolveComponent("spin"),c=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(e.style)},[vue.createVNode(l,{spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,{ref:"echartRef",option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),vue.createVNode(c,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:vue.withCtx(()=>[vue.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Scatter=_export_sfc$1(_sfc_main$c,[["render",_sfc_render$e]]),EcanScatter=withInstall$1(Scatter),customGraphProps={...props,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},customGraphComponentProps=transformToComponentProps(customGraphProps),_sfc_main$b=vue.defineComponent({name:"EcanCustomGraph",props:{...customGraphComponentProps},components:{Echarts},setup(e){const n=usePickComponentStyle(e),r=vue.ref();return vue.watch(()=>e.optionCode,i=>{try{const a=eval;r.value=a(i)}catch(a){console.error(a)}},{immediate:!0}),{style:n,myOption:r,echarts:echarts__namespace}}});function _sfc_render$d(e,n,r,i,a,o){const s=vue.resolveComponent("echarts");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(e.style)},[vue.createVNode(s,{option:e.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const CustomGraph=_export_sfc$1(_sfc_main$b,[["render",_sfc_render$d]]),EcanCustomGraph=withInstall$1(CustomGraph),comboGraphProps={...props,id:"",name:"组合图表",keyName:"组合图表",type:"ecanComboGraph",width:"400px",height:"400px",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:410,type:"类型一"},{name:"名称三",value:210,type:"类型一"},{name:"名称一",value:510,type:"类型二"},{name:"名称二",value:731,type:"类型二"},{name:"名称三",value:910,type:"类型二"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {a} {c}",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelWidth:void 0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisMinInterval:0,yAxisLeftSplitLineShow:!0,yAxisRightSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",seriesTypes:[{type:"bar",axisIndex:0},{type:"line",axisIndex:0}],yAxis:[{axisLabelFormatter:"{value}"},{axisLabelFormatter:"{value}"}],gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,symbolSize:4,lineStyleWidth:2,smooth:!1,barWidth:"40%",barBorderRadius:"",areaGradientShow:!1,areaGradientColor:"",yAxisLabelShow:!0,yAxisLeftSplitLineType:"solid",yAxisRightSplitLineType:"solid",gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,legendType:"",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanComboGraph",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisLeftName:"",yAxisRightName:"",xAxisName:"",defaultRangeValue:!1,startValue:"",endValue:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0},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$a=vue.defineComponent({name:"EcanComboGraph",props:{...comboGraphComponentProps},components:{Spin,Echarts,EcanModal,AModal:antDesignVue.Modal},setup(e,{expose:n}){const{pageMode:r,fontFamily:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),a=vue.inject("usedComponentList",[]),{getGlobalModel:o,setGlobalModel:s}=vue.inject(GLOBAL_MODEL,{getGlobalModel:j=>{},setGlobalModel:(j,K)=>{}}),l=vue.ref(),c=vue.ref(!1),u=vue.ref(!1),f=vue.ref(null),x=vue.ref([]),h=vue.ref({});let g;const v=usePickComponentStyle(e),p=vue.ref([]),E=vue.ref([]),b=vue.ref(),d=vue.ref([]),m=vue.computed(()=>c.value?ZOOM_FONT_SIZE:12),y=vue.computed(()=>({textStyle:{fontFamily:vue.unref(i)},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:c.value?!1:e.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(){u.value=!0;const j=l.value.chart.getOption(),{xAxis:K}=j||{};K&&K.length&&(x.value=K[0].data)}},myDownload:{show:e.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(e.toolboxDownloadUrl)}},myDataZoom:{show:c.value?!1:e.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 j;c.value=!0,(j=b.value)==null||j.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){antDesignVue.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(c.value?ZOOM_FONT_SIZE:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:c.value?ZOOM_FONT_SIZE:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:vue.unref(d).map((j,K)=>({name:j.name,itemStyle:{color:e.colors[K]},icon:e.legendType})),formatter:j=>getLegendFormat(e.legendFormatter,{name:j})},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:j=>{var ee;const K=j.length;let G="",Y=e.tooltipFormatter;g=(ee=j[0])==null?void 0:ee.data,Y===""&&(Y="{marker} {a} {c}");const J=e.seriesTypes;for(let Z=0;Z<K;Z++){const W=J[Z],{tooltipFormatter:Q}=W||{},{marker:te,seriesName:re,name:ae,value:se,data:fe}=j[Z]||{};if(Z===0){let he=ae;typeof ae=="string"&&ae[0]==="0"&&!isNaN(+ae)&&(he=(+ae).toString()),G+=`${useValueFormatter(e.xAxisLabelFormatter,he)}<br/>`}G+=useVariablesInText(Q||Y,{textData:{marker:te,name:ae,value:se,seriesName:re,a:re,b:ae,c:se||0,...fe}},{useNewline:!0,useSpace:!0}),G+="<br/>"}return G},textStyle:{color:e.tooltipTextStyleColor,fontSize:m.value},position:e.tooltipPosition||void 0},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:vue.unref(E).map(j=>{let K={};return j&&typeof j=="object"?K={...j}:K={value:j},K}),splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{show:e.xAxisLabelShow,color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(j){return typeof j=="string"&&j[0]==="0"&&!isNaN(+j)&&(j=(+j).toString()),useValueFormatter(e.xAxisLabelFormatter,j)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"},max:e.xAxisMaxValue||null},yAxis:vue.unref(F),series:vue.unref(p)})),A=()=>{c.value=!1},_=(j=[],K=!1)=>{let G;if(e.dataFieldConfigType==="key"){const J=K?e.keyTypeDataFieldNames:null;G=useTransformChartDataByAttrKey(j,J)}else if(e.dataFieldConfigType==="value"){const J=K?e.valueTypeDataFieldNames:null;G=useTransformChartDataByAttrValue(j,J)}E.value=G.dimensions;const Y=G.dataset;d.value=G.dataset,p.value=T(Y)},k=(j=[],K,G=!1)=>{const J=useTransformChartDataByAttrKey(j,G?K:null,!0);e.defaultRangeValue&&setDefaultRangeVal({props:e,componentList:vue.unref(a),getGlobalModel:o},J),E.value=J.dimensions;const ee=J.dataset;d.value=J.dataset,p.value=T(ee)};function T(j){const K=[],G=j.length,Y=e.seriesTypes;for(let J=0;J<G;J++){const ee=Y[J],{type:Z,axisIndex:W}=ee||{};let Q={type:Z,yAxisIndex:W,...j[J]};if(Z==="line"){const te={};e.shadowColor&&(te.shadowColor=e.shadowColor,te.shadowBlur=e.shadowBlur,te.shadowOffsetY=e.shadowOffsetY,te.shadowOffsetX=e.shadowOffsetX),Q={...Q,symbolSize:e.symbolSize,smooth:e.smooth,itemStyle:{color:e.colors[J]},areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[J]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[J],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...te}}}if(Z==="bar"){const{gradientShow:te,gradientColors:re,gradientOffset:ae}=e,se={color:e.colors[J]};if(e.barBorderRadius){const fe=e.barBorderRadius.split(",");if(fe!=null&&fe.length){const he=[];for(const ge of fe){const ye=parseFloat(ge);isNaN(ye)||he.push(ye)}se.borderRadius=he}}te&&(se.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[J]},{offset:ae,color:re[J]},{offset:1,color:re[J]}]}),Q={...Q,barWidth:e.barWidth.value+e.barWidth.suffix,itemStyle:se}}e.isShowMarkLine&&(Q.markLine={data:[{type:e.markLineType}]}),K.push(Q)}return K}vue.watch(()=>[e.data,e.seriesTypes,e.symbolSize,e.smooth,e.areaStyleOpacity,e.lineStyleWidth,e.barWidth,e.barBorderRadius,e.areaGradientShow,e.areaGradientColor,e.gradientShow,e.gradientColors,e.gradientOffset,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX,e.legendFontSize,e.xAxisLabelFormatter,e.isShowMarkLine,e.markLineType,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([j])=>{(e.dataType==="static"||vue.unref(r)==="design")&&_(j)},{immediate:!0,deep:!0});const F=vue.computed(()=>{const j=e.yAxis;return j==null?void 0:j.map((K,G)=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:G===0?e.yAxisLeftSplitLineShow:e.yAxisRightSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:G===0?e.yAxisLeftSplitLineType:e.yAxisRightSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(Y){return useValueFormatter(K.axisLabelFormatter,Y)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:G===0?e.yAxisLeftName:e.yAxisRightName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:G===0?"right":"left"},max:e.yAxisMaxValue||null}))}),M=vue.ref(!1),B=useRequestData(e),L=async()=>{var j,K;if(e.dataType==="request")try{M.value=!0;const G=await B();_((K=(j=G==null?void 0:G.data)==null?void 0:j.data)==null?void 0:K.rows,!0)}catch(G){console.error(G)}finally{M.value=!1}},R=j=>{var J;const{columns:K=[],rows:G=[]}=((J=j==null?void 0:j.data)==null?void 0:J.data)??{};let Y;K.length>0&&(Y={name:K[0],types:K.slice(1).map(ee=>({label:ee,value:ee}))}),k(G,Y,!0)},H=useIndicatorData(e,j=>{e.isViewRedrawing&&l.value.clear(),R(j)}),V=async()=>{try{M.value=!0;const j=await H();R(j)}catch(j){console.error(j)}finally{M.value=!1}},{loadedData:P}=vue.inject(LOADED_DATA,{loadedData:{}}),I=vue.ref(!1);vue.watch(P,j=>{if(e.dataType==="indicator"){const K=getFixedValueDatas(e.graphicConfig);K!=null&&K.length&&(!vue.unref(I)&&canRequestIndicator(e.graphicConfig,j)?(I.value=!0,S()):canRequestIndicator(e.graphicConfig,j)||(I.value=!1))}},{deep:!0});const S=()=>{switch(e.dataType){case"indicator":canRequestIndicator(e.graphicConfig,vue.unref(P))&&V();break;case"request":L();break}},C=(j,K)=>!!vue.unref(x)[K.value].value.includes(j),N=async()=>{u.value=!1;const j=l.value.chart.getOption();for(let K=0;K<7;K++)await w(j,K)},w=(j,K)=>new Promise(G=>{setTimeout(()=>{const{series:Y,color:J,xAxis:ee}=j,Z=l.value.chart,{splitArea:W={}}=ee[0]||{};Y.forEach((Q,te)=>{const re=Q.data;let ae="";K%2?ae=J[te]+"a8":ae=J[te],re[f.value].itemStyle={color:ae}}),K%2?(W.show=!0,W.areaStyle.color=vue.unref(x).map((Q,te)=>te===f.value?"#ff003b26":"")):W.show=!1,Z.setOption({series:Y,xAxis:ee}),G()},200)});n({refreshData:S});const q=useEmitEvent(e);s(e.id,{type:e.type,RECORD:""});const O=q("click",j=>{const K=o(e.id);s(e.id,{...K,type:e.type,RECORD:e.tooltipShow?g:j==null?void 0:j.data})}),D=j=>{l.value.chart.containPixel("grid",[j.offsetX,j.offsetY])&&O()};e.tooltipShow?h.value["zr:click"]=D:h.value.click=O;const{setRequest:$}=vue.inject(REQUEST_MODEL,{setRequest:j=>{}});return typeof $=="function"&&$({id:e.id,requestFn:S,sortNum:e.requestSort}),useOnEvent(e,{resetRecord:()=>{const j=e.id,K=o(j);s(j,{...K,RECORD:""})},refreshData:S,click:O}),{style:v,option:y,click:O,loading:M,onClose:A,ecanModal:b,echartRef:l,handleLocationOk:N,onFilterOption:C,locationVisible:u,locationValue:f,locationNames:x,eventObj:h}}}),ComboGraph_vue_vue_type_style_index_0_lang="",ComboGraph_vue_vue_type_style_index_1_scoped_cc00fe91_lang="",_withScopeId$2=e=>(vue.pushScopeId("data-v-cc00fe91"),e=e(),vue.popScopeId(),e),_hoisted_1$7={class:"location-wrap"},_hoisted_2$4=_withScopeId$2(()=>vue.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function _sfc_render$c(e,n,r,i,a,o){const s=vue.resolveComponent("echarts"),l=vue.resolveComponent("spin"),c=vue.resolveComponent("ecan-modal"),u=vue.resolveComponent("a-select-option"),f=vue.resolveComponent("a-select"),x=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(e.style)},[vue.createVNode(l,{spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,vue.mergeProps({ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:""},vue.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),vue.createVNode(c,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:vue.withCtx(()=>[vue.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),vue.createVNode(x,{visible:e.locationVisible,"onUpdate:visible":n[1]||(n[1]=h=>e.locationVisible=h),title:"快速定位",onOk:e.handleLocationOk},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$7,[_hoisted_2$4,vue.createVNode(f,{value:e.locationValue,"onUpdate:value":n[0]||(n[0]=h=>e.locationValue=h),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.locationNames,(h,g)=>(vue.openBlock(),vue.createBlock(u,{key:g,value:g},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(h.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const ComboGraph=_export_sfc$1(_sfc_main$a,[["render",_sfc_render$c],["__scopeId","data-v-cc00fe91"]]),EcanComboGraph=withInstall$1(ComboGraph),radarProps={...props,id:"",name:"雷达图",keyName:"雷达图",type:"ecanRadar",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"},{name:"名称五",value:435,type:"类型一"},{name:"名称六",value:215,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",lineStyleWidth:2,symbolSize:4,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{value}",axisNameColor:"",legendFontSize:"12px",graphicConfig:{},graphicType:"ecanRadar",tooltipPosition:"",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1},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$9=vue.defineComponent({name:"EcanRadar",props:{...radarComponentProps},components:{Spin,Echarts,EcanModal},setup(e,{expose:n}){const{pageMode:r,fontFamily:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),a=vue.ref(),o=vue.ref(!1),s=usePickComponentStyle(e),l=vue.ref([]),c=vue.ref(),u=vue.computed(()=>o.value?ZOOM_FONT_SIZE:12),f=vue.ref([]),x=vue.ref(e.valueTypeDataFieldNames.name),h=vue.computed(()=>{const V=vue.unref(f),P=V.length,I=[];for(let S=0;S<P;S++){const{name:C,data:N=[]}=V[S],w=[{name:C,value:N.map(D=>D.value)}];let q=e.colors[S];if(e.gradientShow){const{gradientOffset:D,gradientColors:$}=e;q={x:.7,y:0,x2:0,y2:0,colorStops:[{offset:0,color:e.colors[S]},{offset:D,color:$[S]},{offset:1,color:$[S]}]}}const O={type:"radar",name:C,data:w,areaStyle:{color:q,opacity:e.areaStyleOpacity},tooltip:{trigger:"item"},symbolSize:e.symbolSize,lineStyle:{width:e.lineStyleWidth},label:{show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:D=>{const{data:$,value:U}=D;let j=0,K="0%";if($)for(const G of $.value)j+=+G;return j&&(K=`${(U/j*100).toFixed(2)}%`),useVariablesInText(e.labelFormatter,{textData:{value:U,percent:K}},{useNewline:!1,useSpace:!1})}}};I.push(O)}return I}),g=vue.computed(()=>{var C;const V=[],P=[],I=vue.unref(f),S=I.length;for(let N=0;N<S;N++){const{data:w=[]}=I[N];for(let q=0;q<w.length;q++)P.push(w[q].value)}if((C=l.value)!=null&&C.length){const N=P!=null&&P.length?Math.max(...P)*1.2:0;for(const w of l.value)V.push({name:w,max:N})}return V}),v=vue.computed(()=>({textStyle:{fontFamily:vue.unref(i)},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.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(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.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 V;o.value=!0,(V=c.value)==null||V.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){antDesignVue.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:u.value},show:e.tooltipShow,formatter:V=>{let P="",I=e.tooltipFormatter;I===""&&(I="{marker} {a} {c}");for(let S=0;S<vue.unref(g).length;S++){const C=vue.unref(g)[S],{marker:N,seriesName:w,value:q}=V||{};S===0&&w&&(P+=`${w}<br/>`),P+=useVariablesInText(I,{textData:{marker:N,name:C.name,value:q[S],a:C.name,b:C.name,c:q[S]||0,type:w}},{useNewline:!0,useSpace:!0}),P+="<br/>"}return P},position:e.tooltipPosition||void 0},radar:{indicator:vue.unref(g),axisName:{color:e.axisNameColor}},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(o.value?ZOOM_FONT_SIZE:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:o.value?ZOOM_FONT_SIZE:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:vue.unref(f).map(V=>({name:V.name,icon:e.legendType})),formatter:V=>getLegendFormat(e.legendFormatter,{name:V})},series:vue.unref(h)})),p=()=>{o.value=!1},{getGlobalModel:E,setGlobalModel:b}=vue.inject(GLOBAL_MODEL,{getGlobalModel:V=>{},setGlobalModel:(V,P)=>{}}),d=(V=[],P=!1)=>{let I;if(e.dataFieldConfigType==="key"){const S=P?e.keyTypeDataFieldNames:null;I=useTransformChartDataByAttrKey(V,S)}else if(e.dataFieldConfigType==="value"){const S=P?e.valueTypeDataFieldNames:null;I=useTransformChartDataByAttrValue(V,S)}l.value=I.dimensions,f.value=I.dataset},m=(V=[],P,I=!1)=>{const C=useTransformChartDataByAttrKey(V,I?P:null,!0);l.value=C.dimensions,f.value=C.dataset};vue.watch(()=>[e.data,e.areaStyleOpacity,e.legendFontSize,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll,e.labelFormatter],([V])=>{(e.dataType==="static"||vue.unref(r)==="design")&&d(V)},{immediate:!0,deep:!0});const y=vue.ref(!1),A=useRequestData(e),_=async()=>{var V,P;if(e.dataType==="request")try{y.value=!0;const I=await A();d((P=(V=I==null?void 0:I.data)==null?void 0:V.data)==null?void 0:P.rows,!0)}catch(I){console.error(I)}finally{y.value=!1}},k=useEmitEvent(e);b(e.id,{type:e.type,RECORD:""});const T=V=>{const P=V.event.topTarget.__dimIdx;P!==void 0&&k("click",()=>{var N;const{value:I,name:S}=V.data||{},C=E(e.id);b(e.id,{...C,type:e.type,RECORD:{[vue.unref(x)]:((N=vue.unref(g)[P])==null?void 0:N.name)||"",[S]:I[P],seriesName:S}})})()},F=V=>{var C;const{columns:P=[],rows:I=[]}=((C=V==null?void 0:V.data)==null?void 0:C.data)??{};let S;P.length>0&&(x.value=P[0],S={name:P[0],types:P.slice(1).map(N=>({label:N,value:N}))}),m(I,S,!0)},M=useIndicatorData(e,V=>{e.isViewRedrawing&&a.value.clear(),F(V)}),B=async()=>{try{y.value=!0;const V=await M();F(V)}catch(V){console.error(V)}finally{y.value=!1}},L=()=>{switch(e.dataType){case"indicator":B();break;case"request":_();break}};useOnEvent(e,{refreshData:L,resetRecord:()=>{const V=e.id,P=E(V);b(V,{...P,RECORD:""})},click:T});const{setRequest:H}=vue.inject(REQUEST_MODEL,{setRequest:V=>{}});return typeof H=="function"&&H({id:e.id,requestFn:L,sortNum:e.requestSort}),n({refreshData:L}),{option:v,style:s,click:T,loading:y,onClose:p,ecanModal:c,echartRef:a}}}),Radar_vue_vue_type_style_index_0_lang="";function _sfc_render$b(e,n,r,i,a,o){const s=vue.resolveComponent("echarts"),l=vue.resolveComponent("spin"),c=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(e.style)},[vue.createVNode(l,{spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,{ref:"echartRef",option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),vue.createVNode(c,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:vue.withCtx(()=>[vue.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Radar=_export_sfc$1(_sfc_main$9,[["render",_sfc_render$b]]),EcanRadar=withInstall$1(Radar),__vite_glob_0_0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",__vite_glob_0_1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWoAAAAuCAYAAAABZlMtAAAAAXNSR0IArs4c6QAAEnVJREFUeF7tXU2MHNdxrqrumd0luRJNi4jIXUeEbcBAfIiM+KLk4BUs2GEOkexA+ZHE5c4yjmAISeSDASc5ZAMESAQkiJPAECKJnP2R8sfAjqEgTgIbpi5RDgogIxAQAbFAWbsrShQoUvxZ7kz3q6jqve7p7pnZmdkf8MBqQezt9+rVq/peT3V1T381CLYZAoaAIWAI3FIEjj52+lNIdKbdTr787t995Z2qMXhLrbPJDQFDwBC4zRGYmj19HyJ9jxnuBIb/SSC6752V2etFWCxQ3+YniblvCBgCtw6BqRPNhwHhH4sWsONfWH9+/j8tUN+6dbGZDQFDwBBQBKZOnvkaMP05AGcJ8yVi98W3Vk69Yo8+7CQxBAwBQ+CWIsA4Ndv8FgB+NTODmd+MiD7/1tLcj3uZZo8+bumC2eSGgCFwOyHwyd/+q7EbVyb/AQEeLPj9ahrxFy405y/2w8IC9e10lpivhoAhcMsQmD713CFu078A4H0dI/j7PN5+cP2Zx29sZZgF6lu2bDaxIWAI3C4IHHnkuXsojn4AAJ/IfUY4u3Zj/2/A2V9NB+FggXoQQtZvCBgChsAOEJiaa97LDv4DAQ7nz6QBnlpfbnxjWLUWqIdFyuQMAUPAEBgRgenZpeMM7p8AYF8YyoD8xNrS/NOjqLJAPQpaJmsIGAKGwJAIfGy2OZ8CP4uAJEMQYdMx/9r68vx3B6k4cqL5JDO8euH5xjkdO2iA9RsChoAhYAiMhsDUyTN/DIx/kI9CuAJMx9eWT748SNPR2TOLCHgSAC6nBJ+5sNg4b4F6EGrWbwgYAobAkAj83G/9Te2dzXqTGR7tDMFVdukD68+fen0rNQfnmgf3p/AdQJjJ5Bjg1fXlxmcsUA+5ACZmCBgChsBWCNw1f3pyLKEXAeBzBbnXawQz5xcbF7Yae/dc8xg5+A4C3FuSY2isrTQWLVDbuWcIGAKGwA4RODbXvDtx8H0G+HQhk355bHzz+BvPPH5lK/VTjzTvhRh+CAAHcznmK5DizNrfNl6VtlED9YfyCwjwGsLMRYSrV/34jY8jtK4hJBsIySaCayEcOQrQ3kRIWghpGyG9A8G18SMA8L5L8M7J/XjFJTiZJgguRYBJYJcgcIo8kSK4MWSWdgBwDpnHvNy4b2NXR2AX/q8h1J1v17Yayhjtr8faXmfGTXZY59i3x5m8HDMCR7rnmm+HTE71xchBXuWEm69jHMaxHIt8GB/JeP+3byevN5Jj/7e2R/7vCBgTJoylPfbyrDJBNhLh8LfqyXRIB2NEjCmT6vHjIgDKxostYiehNKsdmS4i7YuAQMflY8ry8hWI76/KZ3aIPAb9Xkb+069OmJEye0RGbCHZBz/lGEO79xmIsnNSv3/p3qjaPqxcpirIF3ZO5u2aqSzX6a5I5ocD7KrIyaGTlc3N6uNH9SPa5X9vv/rZK57qvF3T9fCrt2DR6qIDfZYrzFf1t4q4Tt8Lg2HxDtNXHMv97Zq/gv8O+xngN6V8RwGEb68tN36l90ncaZ060ZwDhGZJjvlHkOJcFqSlb5RAjQsLC7iwcI7gZw6TBObpwwdo9Y3X6fBHD+HF1gYdPHCELl96Dyf3jdHVpEUH9k3gtQ9atG+sRjc4xYl6TBvXExofq0vwpno9ps0Nh1CLiF1C9XoNWzdTqsVELWaUfbvlsBZF1OaUJCi2naNahMRtxniMKGk7iqMIE04pojolSRvjqEaJcxRFhGnSpqgWEySAFCGl7CgiQtkTxeTSFAmRUiCMyPeTBKXEEcVIzrH2O2aRxzT17ZBKYNU9AWlgJq8nk1f96NKERLMEKcz1ROj1ITofZQkcqn1yrO0SUUU+6BP9iIQsUdfrQUIS++RYgqDYrfZKP8t40iDr+0v6SKIziQYAR/KtNEtk1XGZPu0kVrtJ/c/mAf8tdkVergBYsA/EXGK1TwO47EU/onx6FCZAtZ/IzxP0SowHb5BcRPzeTwictefHvl+3ME73IO16EaqMD+2V/ny+6rgB82X2+Ol3YG8+T7C3OC+I/2V/ivN52HqMy+2hML6DX3l8Ae8unAO+fgF0XTy+O/S3Or4nzh27O/OKAZm/g9a37O+goLl7/fj02vLJJwBQjO27HZ1tStb7h9UgfT3CmcuLjcvF9pECtWbTM+cI3n2XoHUPws3LBIcmSbLmQ60JupRskGbK7Zt0IKmTZsdjLbqe1mhCMuK0RVxPCNgHanYxaSbsEmIXkWbCtZTAEdViyRAloDhsu4jiKCXNVJ3TDzlHEhzlb/k/wihCSrgYtDUYSbbnZaIINcFT+XJQTpk1qPs+DVYIFHtZjT+OJKqlxBhJv3wyQnBU/ZKNSrtEImCU2E6oZxOC7NkHcwmCKp8FXwlseb98qkQvk4+BPpj5jFjaO/rED4maEvykXWJfZx6vR8f7rNbbGvRJqutQgFU/ZP1lDjEXdW6G4Jt++v38/goh/gV5vYj4oJzJe/06D3vQvH2qozC/SPg2xUdk9ZYh86cTBcJ5WggKIbPIgnYxaIRIXUg9iqe2tybrzMfnnwRBJTsoz5e3ZheDTDA/Lo/Lzdfg2jE4v5j0G1/Rn1+cNAT7oJj7mLtS9tFHT/9P8EKPdXwpJ+v2N7N7aH+r9gZ/81je5Wcl1HT5q5caHTXM+pTtLY8r+VtZ190Lxj01yW3h760uN57aah750nBfCn+BCHNFOQZeWl+eL7VVzq6hzEf4MKOGhfDY49y7BJ+8Rx93TB85jHlmnbbxUHoH5kH7/QQnDySoGTZP4DWX4v6JMbyetn3wdtcQxuvI1xMCybT1cUUN+UZCsgfewDrX/GOLWkSt8PhCM+5IMm+HNYixzZuaect4lscW4BAiImgz+iDtMI4kA2d9XJGwwygiStsse0wgwVgywOJjB/KBMuIINVPWjNvLp4k8dtCUzT+OSPS23strxq6RWzPs/Fj6JRMPjxE05dOoSpJZhsxe9hE6SJFAH8tkFwUdx5LxM6KTSKeZt2by/rGCf0whGbzvR5FzYrbq95m1XDS8vMpJphweb2h4L86n8pIOix61Lx+vOKE+BtL5y/rloqefupBJS1CXWEMILvgjuAW79c5ArjY+GnWiiJqpI8MJ6h8YEBE4J7fvCM5fWfztPIp6vUqExwrhtrnz6S8Eu46gXl7B+WtZr0yxEIS8QHY7HhTnE4ZMPpeX08P5zD4EyzwxDRmkNyg8CJHbdu9IFq58r/qlt0TBr8xfCP52Hi+EAT31qN1d9vTK4EOw7GOPvwZ31sXjFvws3QlkeuRjXYAte8TRtb7e7846Vh6byHrrumfrm91Jeb+61qXnnZk/MfM7reyOK7/z2kE/0bOrS3MvDAzSDn5Y/dLQMXzt7ZXGN/uNHSWjHiqam5AhYAgYAoZANwLypSHH+mbHsbxXvjQEfFLe7NgKMwvUdkYZAoaAIbDHCBx9rPkQkn5p2PfNDgvUe7wIpt4QMAQMgX4I9HuzI43wIWEdDoOcZdTDoGQyhoAhYAhsA4ECHbwzmvml6xE+VH2zwzLqbQBsQwwBQ8AQ2AkCSmSJ+Bwg3lnUkzq4Pyu2NKx+y6iHRcrkDAFDwBAYEQFfv0OD9c+WhgZq+LDqLFAPi5TJGQKGgCGwDQRCsP5nQCzWAJFXNhfWlxt/NIzKUQN15Q37BVA6+cMAcPZip+ZTkVqeWSEUc9mEZq77TQSYBoBVgJ+6C+FtALhL2sIm1HP5QYR0He+Cj8J7AHAobeMlAPiIa+P78vXpHQdQ6DvyNerltK33F0pDDxun+/zfoY33JwhXAWDyAIBQ11U+0NSLcjzux40XdAklHSZASDy5jWEsy/vfGwAw5vvGAeAmOxyHcbjpUhwDgE3plv6bwmev+bnlnfFsU/1joLR5GaD2eLninH5MXQxH2SlVPnfY0+Vr7LAl09Rr0HIORcy/b64O+/Gy5TT6QIPP+4NcrVa2UenzmQ4ZX1N9wnxv5/rlfW5pERZ+sM0V9Mv77RD0ejHPt/GAlM/HOAZIEgDZFzY5SmT6rn3c1e79LAj2bijp7z4I83fpqUoOFAi4Z/aU/epnRAwRJJCC3xfcKcCTtXcmGOBSEQfFOSjuOWxv/OqxMN6qHn558/qsb5fNwd6iX1X/9uD4Zt3993tnTkmE6bn1el7NDIvrK43GoNUaJVCL7IfMxJmezERoTRBUmInXOMX9YzGxsBAlAKVxH2aip5ALM7FeS6klzERmbMWyF+ZiRJwzE4WdkHaYiUJqCQxEIYPkdHInr8UHEkqVmShMicBSFL62MhO1BoYTMggpB4Q8S1FZFZ5k4skrQrNWZqISTISMkrMHlWyipJEykzBjGCpzkZGc/KOswyozUcggWqxAGCI5SzEwJgJtG8gzH3szE4WH7mnggRHo2RRKIVeGYSChBCalrGmBPVhgGnr2QGAV+vYiM9GzDYvyHQZimZkY1iFjRm7FTMzJNh2acrnKQcYwlNM6IztUTuE+DMKcQlLtz/VkH5WyXj+uF2Muk+s9LrOvP1Ov4IP+mfnh935cZd4CfTv/YI/MaKx+5Pv4W2U0DmBiensCH7XIhCyN68GIrOCfMyh7MjEr616ksw/N4BwUErffzwCv1Qke2KpS3tRsU0gtv1uaheHc9Qi+tNWXiyMF6v61Pj6FF1s/2btaH+MRtVt7WesjohRgQK0PqUhBw9f60JogUutDmIE+mCNG5DglomqtD6Ha8fZrfURKWRPz+tT60AJKhdoh26/1obTxHdX6kKImQtULtT58DZP+tT5CuNqTWh85g7BY6yIw7rpqbZRrW2TRdEe1PooXm61qfRRrdgQGXSeay8Dt1b4o1SbpqrUR/A01RDK6/o78LdUKqdRiGbbWhxowqLZJd22Y7YffEUcyr0ZEv/iTpbnX+o3s9bqe1J2+QXB/v2A9UqD2aczDCHARs8JMecW8UPMjq5R3MNmgyy7BOyb34wdpgnntD3lcoDVAaj7LdmP+uK61NTyF3IVjrYAnNHKHLI8LNOv21ewk4wbJsjmSmhO++p3UAYk1o/QV7FxKEPs+X1WPwjFjrFXqfA0Qf8vts2jNpkWftMv4UAlPaeZS0IkZfQGnrDZIqEiXHWfV6rL6H6EqXZTPF6rThYzU1+MQ9rKnf0eAnn5epJmrfXKWEzJKpp/1B0q31NgItHAteZT5g5q2k5NbANVfpJD76nbZHYGnbxcp5DktXYOoz+CLFPLQH+bL9Wc1SXzdD1/vQ+s6FefzfRJzCpl5qKRXoJCXMs3stK9WtfOnsG8tZmyVqmv9MsJKVbs8P+6bQXZmy7LIggGdTD9XlFtW7uvS39uv7szZt+RFBvNPcNFfLUQYtuodR7VCXSeDL9+9jGZPRr/vJMiVecPTrcz6fn517pTK6537mzcP51dxPbeqkJTdcfULroP6izWoGeADYv7l1ZX5l/rpUwIM8mLxjRAGOI8JfKlYNa/PKo549TBxQ8AQMAQMAZg+ceZzTPgiMEx6OLgNjI+urTTO9oOnz+t7lyGB+6vBepSM2pbDEDAEDAFDoA8CP31y8dOOWX484G4fq7VS2u+vrjT+dECwlsx6y9f3LFDbaWcIGAKGwC4hMPXos9MYxf9W/KUXBDiz+vE3vwILC1IbsWvr9661A3jy7eXGX8oAC9S7tECmxhAwBAwBQUB+O3E8oRe59NuJ+L0a8ZfPLzbkBd2ewXqf42+GXx/P+7PX9yxQ27llCBgChsAuIyC/Rn5hs/4CsLJMdEPAV5LI/dKF5vzFvo9Cqq/vMb+0tjI/Y4F6lxfI1BkChoAhkCFwdLb5JwjwjQIibxLi599amvtx32Cd/Y4i84+yn+WyQG3nlCFgCBgCe4jA0dnmPAI/m/8EDcIl59wX31459Uq/ae9+rDkDMZzPyqBaoN7DBTLVhoAhYAgIAtOzS8cZ3LdDhQlpusnAv76+PP/dYRCyQD0MSiZjCBgChsAOEfjYidOfTZH+1Rcx0qfWDOieWFuaf3qQagvUgxCyfkPAEDAEdgmBI488dw/F0Q8A4BOZSgT8s9Xlua9vNYUF6l1aAFNjCBgChsAwCEyfeu6Qa9O/I+Bnc3mGsxMHr574v7/+HSm02bVZoB4GWZMxBAwBQ2AXETg21xxPHPw9AzzYUcsvj423j7/xzONXqlNZoN5F8E2VIWAIGALDI8A4Ndv8FgB+tZNZ8+vg6g+svfDYalGPBerhUTVJQ8AQMAR2HYGjs82vf/irJE+F8o/vM/HPry82/tcC9a5DbQoNAUPAENg+AlMnmg8DwWlA+MLaYuO/7NHH9rG0kYaAIWAI7BkCx+aaB88vNuTXBbu2/wfAQwC29PHqBQAAAABJRU5ErkJggg==",__vite_glob_1_0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",__vite_glob_1_1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWoAAAAuCAYAAAABZlMtAAAAAXNSR0IArs4c6QAAEthJREFUeF7tXV2IXdd1Xmufc+/8SKpkIyXWzDQ2Soqhfaghfgl9qENMgkPBdqgI2JE0M6ltQv8cSil9CJ2WpA+BkqQlBNvx/Ehxiq0SbFJqEhzivCQQHHAfGggkRsIaRYlkRX/zd+85a9Vr7b3PPefM/ZNGGYnMOi/nnr3XXnvt75yz9rr77m9dhNoxdfilMR5feQWJv3DmxOwP6vV2bQgYAoaAIbC9CGClu7k5N/nW3d8GgI8jQJsZHl8+MXNye02y3gwBQ8AQMATKCFQc9cSRpfcB5D9GxPcWQsifW16a/bzBZggYAoaAIXBrEKhG1AAw+fhzU5CkrwHAvdEkBJg/c+j0EzA3R7fGTOvVEDAEDIGdi8AmRy1QHHrymb3r643XEPD+DjT8asPhJ04tzqzvXLhs5IaAIWAIbD8CXR21mHHP9MJom/hbAPhQNIsB36CEPn5uYfb89ptqPRoChoAhsDMR6OmoFY65OTfx1t3PIcBs4ayZTyfOfeTtpelf7EzIbNSGgCFgCGwvAv0ddbBl8ujC5wDgX0qmXXRMH3v7xKff2F5zrTdDwBAwBHYeAkM5aoFl6lOLj7ODJQBOAkzrCO4TZ44fe3XnwWYjNgQMAUNg+xAY2lGLSRNH5x9EQNlnPRpMJED+q+Wl2a9tn8nWkyFgCBgCOwsBddR3TS/ck+Twt8snZj47aPgHjzx/v3PuO8BwZ5RFxC+eWZr+h0Ftrd4QMAQMAUPg+hHAfdML+8YJvo8A9wHD6ysJPHppceZSP1W/f2zx/cT8PQC4u5BDOHnXSOvxnzz7VPv6zbAWhoAhYAgYAr0QwIkj8y8j4sNRgAHeJAePnlucOdUPtrtm5g8khN8FhvuKyBrgB83R1sNvPfvUZYPcEDAEDAFD4OYggJOPLdwHCb8OiHtLKi9BBh9e/ubMm/26mXjymXFcH3kFgB8syf0M8uzB5ReeOHNzTDQthoAhYAjsbAR0jTo460VA/OMKHAwzyydmFvtCdPilZHJ85T+B4XARWSOcywAfPLc0/X87G14bvSFgCBgCW0eg2PUha9W7co2sK86aAebOHp/550FdTR1d+CID/H1HDq8Bw5cROY9lkijElRTdrGuCWgoSveyWlqRUVqnuIbup2BdEu4kAnAMg+dD1COXD9NXV5Kpe7U/7H3ZsPezqau+7d7p+BLlivEV9t3F1G8CQcoWZtfGG56UYbw+5jlkFQLWRXN/zEYbNgMwAyMDMKGfBHYGBQrnUIzLlOchZZJFDHeQAhB0dUk+kIFPUS8QY2qlulSfVqf12kZc6b0vUr3YxoPNn/+yr3hyQEyTORa9/clU35qEP7ScHyKVfr0ftERsygAyRU2kv/Um5tJMjyhbtMtD+vT7GPH6WcuQMHEOed8YlysWOTOQyb7va31I92A7tMbYR8YxB5R23MOMRdLwBACOI3GoFHS7q2QAUfS25bpf0rwOKzHrC4BJG3GCQax2SlG0wuoRhNWF0KQNcBZG7mqS816V8+eoK7wOAS1LnGgzJFYakwZA2PS4X3mFwTYZ0hCEdY2ju9uVjbzHs2cPw+gEG+CNxqfFl6/LSdfckm7bnTRydX0TAY2VxZlg8e2JmZpCznjy2+Bkm/ioiXNe2v0F6+9XLe4EI8i6BdMtMgCjnUK7PZKgP5apP36fYrlovxjOIPl8ej+Laf5DbW+0vyFf6k7feF2h/vl3sP7RXPeVxxP59fWgYmnm54fsv9StmFHhEszrjrOLYsScYPHi8AY84XjFTfFphr+BPtfuj962Mfxhv/f7o/Qg41e5P3e4yzh1cw3g3PQ+d/qIebw6L0yL2BrO4TUAmJvDlQCQOk4jIyzE7B1IvClmQBvF4rM7Pn9UDSr1IA7lQLnJh/mfpr5u87x+JmNipXiZ0pf6JGR2SGOSknJkcIOf+mqRB6E/tlvaqjyiUcygntUvkQfTl0l4fG19OeSEv/WQ5h/5ycpgSUcYJOmmv/YsC6UcfhETaMyUyuRGTEzlSR6rYyuQk7aR9nhMnKRJlOblEHhumRMajdjuSSQNTpLzNlKTIec6UOkdZ3uI0bVJOLUqxwVneDvI5Y8NRO2dq+EmHsJlQO8u44eRM1Gwit9eImqMJtVptHnEptdpthrGUsJWROO31VkZju1KC9RZj0qDVjTbt2p3wynqL9qT76eq1c7xv/whdurZG+5P38oVLpwgO3Uvwy/P8h+MH6Kc/PU9w+ADDyZPhORnO+3V1qBNHF+befaf/qeKsAd5cdfDhQTtCJo7OP4wALwLgyHAmbFVK3omow38ov5z+nYm+rjaR1dpFJ+qdtIROUXf/dn6S6NigPiZMAuVJwdtZmkSD0+5MCp36OFn0atNxnqXJpjChbm901lWcNo23mJQ221j0Vx+DoFSoL01CJTzq+G+6Pz3truEV7keBV7/xem9dmhQ7k+Sm+1PIxf6YQVwzinvRmZLRO1j9LE4WfZ2MXEJhdTIM4uyA/CwvLl0+azjecY7BUYvT1mlTHzJxwl5WZube8kGfxN7q02L/3vlrrK9OUSNR1Sd2qh1+jtZ2Yfb0fYoWZD85+Fk1yHtb5FrKHcrMJG31W4LKez0lfdqPTiWUJDqHeSesGOo3E5KpOif2TlimNf2mEZyvfsOQz0He16sedd7yjSA6ahkqoZeVSL/hSCSln4yYUpGXiDxPCDBMtrmcQ5+YEOp1xu0soeYIUTtDBkcE7YRgVCJ7mWTaDO2U0KUErs3gMsJWSoAJY5IRJm1aWUt4d9Kka2mLfi9J+crKBt2ZjtFFibhHdhFcvEoaZY//muA97yEfWb/kMRny6Bn5Th5ZmAbgL5d/ZGSAU5jBowN/ZDy2+CdI9IVOZBsjRu/8isioiHy3Vt+JoMovp+Dgwrvl3x5dNiiWK8J1/HrNBE7eMgkk/FtTiXyLSDgsfGigpepDRFjMBTESlffAhXekE0F39ITZQ2Is1SPy5Tkl6onxdIw85dl1IdKOjkUND+siXm8x3mJccdkkjFsDJvU24VGp2qNAhYWW+uRX/cYRJ6Vof7i/NXs6TtPfF33fKpFxLcJX3yWhXFzOKGbbrvdFAlm9vwJDcR/jfRcvI99y/TKVk9A3Lv90vHYJBx9Ru+ANw2pF+OrunZn3p15OnbV/sP1yhX+cY2QrhosPF+fml028Xq33ztHXx2UWdfohYvZ2yGMW6oN8R79G2OqEfT8aWTNIJOsjVA6PKekZmSUylf6L/mLE7GeOUJ8H+wVR72T1rF8KNJL3zlPOib9Wp6zLNWHZJnXiDHW8GiE3QqQcrtNU2ucdeWmvc03KWU7sna30I+1zTjGhDHNOxRnnOSOKEw7LI5mcE9IlEmxyO8t9pAwZN9GxRM5Nl5Asm8i1RsxjKbV0eUSWSdqM4ynJWa83Wowhcga3m9dwg8ed49X1jHbvSfja6hrvkWWR1RHae4dfFrnDpfybxhodSBp8/p0mT0yN8Nl3xEmPMfz8NMMHxxh+cohg7t3ljzld/ti6o5antteOkJzg0XPfmHl9yMnAxAwBQ8AQMAS2gMDAtWTPWuSXb2hHyBYMs6aGgCFgCBgCHoGBjlqEwo4QcdZ/WgZu2B8ZDWxDwBAwBAyBG0dgKEcd1XfbETIs7fzGTbSWhoAhYAjsbASuy1HrmnUK35cgu4CN+TLk+MCgHxh3Nsw2ekPAEDAEbhyBoR21OekbB9laGgKGgCGwFQSGctS6VQ9hodIR8//mCT4yKHnTVoyztoaAIWAIGAJD/Jh48MjC0w7hS3UnvZLgA/3IL1OfWngA0lKrDOC3ch31ZsWHrve1XCtmZZCpOeXmaQogamK5V9Rf76bONivo8ZwN0LupWgqGOXzDYnwyntq4/PhySCHR81DHbTIufz8235aB9zc8fpthLQFUBkLp0KEj2VerrGehG0sWX0871sPJPmAApUMX8sgi1UDHxV0TCrUKBjnZ/xsO1dtud+pKchjlCv2eZi36dT+wnAGgJfuIlQod9WclG2WfcOxbPpTlEi8nZA45NgKdWj4EenVFPshtrAt9O1Ea96gw9mC9av9GwjAGgButkh2hL6Frw5qnc8djXSjb0vc6A+wCgBUApXGL2tAuketr3v4VXxdlAK4Aar3IpyzpO/clDZZ8zUr7vnKN7wCA37gGSyL9iwCwP2nwBWmQjDDAeSio4FJ2YYThIAD86gIDTAHAGVDSihyyLzoeZZq4lAlVXA7ZvKwMRLlQ2nhsUSYuFGoGfegbUXelkwMvnT0+O91Lsc+o1/iv8r+XDzJia/U9mImV3eR1hqH02L+dchCK21HDtl7elWEY+tBTj3tTK+/N8AvtC85HVV9kRnaqu9lb3lvvP5fbdcOjBEAHrxINvsqo7Dbe7jjHff5Djddb6h+RglbuU24MPd76/SmRk4Lijv5Y4G+/MunkSakzEwPzMDATA2OxGzPRUwaFeO5p5YGBqNQXz0uSYQQKeWD6KaPRMx19nZAHPYXdk2HC5xoz0TMmI8NQ+hRmYmQGCrcm0NbVpGCLWCB2KD3e08w9eabDTBR6j8gUtPAezETVr6QaTWei5JWuzEQh3QiPMLIElYHoWY9lZmLu6eYdhmMk1SgOwkxU1pkwDxlyR7kjUjIMCXNSyj0JRujiIceJMApDOREqazHjtkuomRG1EbnpiFrCTMS25PsoMRM9hRxcoJMXzMQGwdoGY42ZCOkYaS6QnszEm0Ah1z8TyGEBER4pO1Ee4KQ1R3WO3wX5E4JtOq4/10ePXBIl2nc910ekk2/O9dElR0g5Z0fIbVHkvpC3PeSa8E6nT64P1dMj10fB6BuQayRQ5Arm5s3K9RHcZCdHRzXXSpHbpORci/H+1nJ9xFQq1Zwq/vnolfulbHclt0mPXB/Kj1ZatjIHUdyRDqiU6yMw+LYj14f073OReLtirg8/i6hzCrk/Krk+CqZhj1wfkX5+y3N96KQxINdHyB0yMNcHCpOxk+sjy4kaW8j1sbbe4vEhc31MHbqXztzsXB+Vf3ypeum+KU+nphf+gAnESd9TavZD8N8Vy5kXurrwEvn7OupLkWYl8ood1rPHeXmlE5dp4iX6cSXCipaUEjP5onJWuFJkF20ogtda/5v0BMFaVrgyzT7aU8FHA63qzSmbVWWmSkqGChm803BIe4oGXSJTP+QO/b2CX2FmOZqXYK02/VdSsdRkS3BvYtz2uC8+DUA5f2J3nCvjKgBWWaViS3gXc2iIrw/JXzz9W5ygjzp9VO2/gknjQD+XhEMaIUfauOTZkJhXadxKjmfJhBd0SO6Mjj7NoaFxdL0+ZNjTHB7hs4TOwJ5+rZFjzNkR2opizdWh0TNX62NWv0jfZsm65xNSebq7fvX0OUAC/V0TImmWPdb8G6h2+OuCQh5yeMicVmQDDDR0oYVL5CsRc8y4p0tCIVeHxvRKV/f1nj6OnMVoWOniEn2H6FhydIT+1a5QL3k7JAGVLAtpwqUQQcdsfT6XR8iw5xxrDg9Z2gnZ/DQRU8yqp2fHuJ7Rikt4t0TUbo2xMUJXJKueS1mz6jXGfSQtGfUkm15zj6eQyxKJZNETCjmc1OfkhinksrODU1jQv+XqOKnLAPh0v7zUk0eXPgScv9rJCyLfOfjJs8dn5rt6XSs0BAwBQ8AQGBqBYo36Rrff+Wx5+KKkhg29rjLww2ePz742tBUmaAgYAoaAIdATAXXUYfud7OwoiCzMfBpzfKQfkWXy2OJnmfjfivzTCOcB4aPLi/3/wsvuhyFgCBgChsDwCGCvPdL9t98xTh5d+ioAf6bU1c8oyz/2y2/+xenhuzdJQ8AQMAQMgUEIYH0LnuzsWHX4dK890h/4638fWb+850UGKP65HAB/NDK68ZD9+/gguK3eEDAEDIHrR0CXPiaOzL+MiOJ4v7J8fObpXmqmPv31O7md/jcAfyjKIMAro3uvfvLn//E3svfdDkPAEDAEDIGbjIA6at2Sl8EDZ78x83Iv/Qcf+/rdSSP9HjO/v5BB/NLy0rG/u56/lLnJ9ps6Q8AQMAR+5xEYKtfHwSPP3+/Q/Q8AHFBEZEepw79cXpr+2u88QjZAQ8AQMARuMQIDHfXU0ecfAnDfYoBRbytvMMAnzx6ffeUW227dGwKGgCGwIxAYkOtjYRYBngv/ciqAXARwf7Z8/NiPdgQ6NkhDwBAwBG4DBPr8C/n8vwLiP0YbZV914txH3l6a/sVtYLeZYAgYAobAjkFgk6P+4JPPNM5tNF8AhsMlFN7ME/7ouYXZ8zsGGRuoIWAIGAK3CQIVR71/9vk9Ixl+G6D8J7b8Ko+2//zss0+t3iY2mxmGgCFgCOwoBCqO+n2PvXBHnrZ/DMAfEBQQYP7ModNPwNxcPV3bjgLJBmsIGAKGwK1EYNPSh+yXdmn6BiB9ZXlp9vO30jjr2xAwBAwBQ6DHX3HdM72w79TijPyLjR2GgCFgCBgCtxiB/weD2jMQWbgYrgAAAABJRU5ErkJggg==",borderProps={...props,name:"边框",keyName:"边框",type:"ecanBorder",width:"300px",height:"300px",zIndex:0,fontSize:"16px",fontFamily:"",fontWeight:400,title:"标题",mode:"no-title",borderColor:"#eee",borderRadius:"5",borderStyle:"solid",borderWidth:"2px",backgroundColor:"#ffffff",useBorderModify:!1,textShadow:"",data:{},gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",isTransparent:!1,titleMode:"type-1"},borderComponentProps=transformToComponentProps(borderProps),borderEvents=["click"],_sfc_main$8=vue.defineComponent({name:"EcanBorder",props:{...borderComponentProps},setup(e){const n=usePickComponentStyle(e,["background"]),r=vue.computed(()=>{const{isTransparent:v,gradientShow:p,gradientColor:E,gradientOffset:b,gradientAngle:d,backgroundColor:m}=e;if(p){let y=E;return v&&(y="transparent"),y?{background:`linear-gradient(${d}, ${m}, ${y} ${b*100}%)`}:{}}else return{}}),i=vue.computed(()=>{const{events:v}=e;let p={};return v!=null&&v.length&&v.find(b=>b.emit==="showModal")&&(p={cursor:"pointer"}),p}),{theme:a}=vue.inject(GLOBAL_CONFIG,{theme:"light"}),o=vue.computed(()=>{let v="";switch(e.titleMode){case"type-2":v="2";break}return v}),s=vue.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-left.png":__vite_glob_0_0,"../../assets/border-title-decoration-left2.png":__vite_glob_0_1})[`../../assets/border-title-decoration-left${o.value}.png`],self.location).href),l=vue.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-right.png":__vite_glob_1_0,"../../assets/border-title-decoration-right2.png":__vite_glob_1_1})[`../../assets/border-title-decoration-right${o.value}.png`],self.location).href),c=vue.computed(()=>({width:"100%",height:"100%"})),u=vue.computed(()=>{const{borderRadius:v}=e,p=[],E={};if(v){const b=v.split(",");for(const d of b)(+d||+d==0)&&p.push(+d+"px")}return p!=null&&p.length&&(E.borderRadius=p.join(" ")),E}),x=useEmitEvent(e)("click",()=>{}),h=vue.ref([]);vue.watch(()=>e.data,v=>{h.value=v},{immediate:!0,deep:!0}),useOnEvent(e,{click:x});const{setGlobalModel:g}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(v,p)=>{}});return g(e.id,{type:e.type,value:h}),{style:n,gradientStyle:r,click:x,borderStyle:c,theme:a,borderRadiusStyle:u,titleLeftIcon:s,titleRightIcon:l,cursorStyle:i}}}),Border_vue_vue_type_style_index_0_scoped_8dd53b8f_lang="",_withScopeId$1=e=>(vue.pushScopeId("data-v-8dd53b8f"),e=e(),vue.popScopeId(),e),_hoisted_1$6=["id"],_hoisted_2$3=_withScopeId$1(()=>vue.createElementVNode("div",{class:"top-left border-item"},null,-1)),_hoisted_3$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"top-right border-item"},null,-1)),_hoisted_4$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),_hoisted_5$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),_hoisted_6$1={class:"title-item"},_hoisted_7$1=["src"],_hoisted_8$1={class:"title"},_hoisted_9$1=["src"],_hoisted_10$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"top-left border-item"},null,-1)),_hoisted_11$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"top-right border-item"},null,-1)),_hoisted_12$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),_hoisted_13$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),_hoisted_14$1={key:2,class:"left-title"},_hoisted_15$1={class:"title"};function _sfc_render$a(e,n,r,i,a,o){return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-border",style:vue.normalizeStyle({...e.style,...e.gradientStyle,...e.borderRadiusStyle,...e.cursorStyle}),onClick:n[0]||(n[0]=(...s)=>e.click&&e.click(...s)),id:"container_"+e.id},[e.mode==="no-title"?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"no-title",style:vue.normalizeStyle(e.borderStyle)},[e.useBorderModify?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[_hoisted_2$3,_hoisted_3$1,_hoisted_4$1,_hoisted_5$1],64)):vue.createCommentVNode("",!0)],4)):vue.createCommentVNode("",!0),e.mode==="top-title"?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"top-title",style:vue.normalizeStyle(e.borderStyle)},[vue.createElementVNode("div",{class:vue.normalizeClass(["title-item-wrapper",e.titleMode])},[vue.createElementVNode("div",_hoisted_6$1,[vue.createElementVNode("img",{class:vue.normalizeClass(["title-decoration",e.titleMode]),src:e.titleLeftIcon},null,10,_hoisted_7$1),vue.createElementVNode("div",_hoisted_8$1,vue.toDisplayString(e.title),1),vue.createElementVNode("img",{class:vue.normalizeClass(["title-decoration",e.titleMode]),src:e.titleRightIcon},null,10,_hoisted_9$1)])],2),_hoisted_10$1,_hoisted_11$1,_hoisted_12$1,_hoisted_13$1],4)):vue.createCommentVNode("",!0),e.mode==="left-title"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_14$1,[vue.createElementVNode("div",_hoisted_15$1,[vue.createElementVNode("span",null,vue.toDisplayString(e.title),1)])])):vue.createCommentVNode("",!0)],12,_hoisted_1$6)}const Border=_export_sfc$1(_sfc_main$8,[["render",_sfc_render$a],["__scopeId","data-v-8dd53b8f"]]),EcanBorder=withInstall$1(Border),tabsProps$1={...props,tabHorizontalPadding:"0px",type:"ecanTabs",name:"标签页",keyName:"标签页",width:"500px",height:"400px",tabFontSize:"14px",backgroundColor:"#ffffff",activeTabColor:"#1890ff",tabBackgroundImage:"",activeTabBackgroundImage:"",tabColor:"#333",tabBarGutter:"24px",tabFontWeight:400,value:"",activeKey:0,autoSwitch:!1,autoSwitchInterval:5,containIds:[],tabFlexDirection:"row",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}],tabAlignItems:"flex-start",tabJustifyContent:"flex-start",tabType:"tabs",tabWidth:"120px",isAutoScroll:!1,scrollSpeed:10,componentList:[],hideTabs:!1,gridTopPx:"0",gridBottomPx:"0",gridLeftPx:"0",gridRightPx:"0"},tabsComponentProps=transformToComponentProps(tabsProps$1),tabsEvents=["tabChange"],_sfc_main$7=vue.defineComponent({name:"EcanTabs",props:{...tabsComponentProps},components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption,MarqueeScroll},setup(e){const n=usePickComponentStyle(e),r=vue.ref(0);vue.watch(()=>e.activeKey,T=>{r.value=T},{immediate:!0});const{pageMode:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),a=vue.inject("getContainerMap",()=>{}),o=vue.inject("componentList",[]),s=["ecanBorder","ecanTabs","ecanCirculate"],l=vue.computed(()=>a()||{}),c=T=>{const F=vue.unref(l)[T],M=[];if(F)for(const B in F)for(const L of F[B]){const R=vue.unref(o).find(H=>H.id===L);M.push(L),s.includes(R==null?void 0:R.type)&&M.push(...c(L))}return M},u=vue.computed(()=>c(e.id));let f=null;const x=()=>{const T=Array.isArray(vue.unref(g))?vue.unref(g).length-1:0;vue.unref(i)!=="design"&&!e.isAutoScroll&&e.autoSwitch&&T>0&&(f=setInterval(()=>{const F=vue.unref(r)+1;F<=T?r.value=F:r.value=0,v.value=vue.unref(g)[vue.unref(r)],d()},e.autoSwitchInterval*1e3))},h=()=>{clearInterval(f)};vue.onMounted(()=>{vue.unref(i)!=="design"&&x()}),vue.onBeforeUnmount(()=>{h()});const g=vue.ref([]),v=vue.ref({});vue.watch(()=>e.data,T=>{g.value=T,v.value=Array.isArray(T)&&T.length>0?T[0]:{}},{immediate:!0,deep:!0});const p=T=>r.value===T,E=useEmitEvent(e),{setGlobalModel:b}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(T,F)=>{}});b(e.id,{RECORD:vue.unref(v),value:vue.unref(v),activeKey:r});const{emitRefreshPage:d}=vue.inject(REFRESH_PAGE,{emitRefreshPage:()=>{}}),m=T=>{let{tab:F,index:M}=T||{};if(T.label){const B=vue.unref(g).findIndex(L=>L.title===T.label);B!==-1&&(M=B,F=vue.unref(g)[B])}E("tabChange",()=>{!isNaN(+M)&&M!==vue.unref(r)&&(v.value=F,r.value=M,b(e.id,{RECORD:F,value:F,activeKey:M}),d())})()},y=vue.computed(()=>{const T=e.componentList.map(F=>parseFloat(F.left)+parseFloat(F.width)).sort((F,M)=>M-F)[0];return{width:T?T+"px":"100%"}}),A=()=>{vue.unref(i)!=="design"&&h()},_=T=>{var F,M;return T?(M=(F=T==null?void 0:T.parentNode)==null?void 0:F.className)!=null&&M.includes("ecan-")?T.parentNode.getAttribute("cpntid"):_(T.parentNode):""},k=T=>{var F;if(vue.unref(i)!=="design"){const M=(T==null?void 0:T.toElement)||{};if((F=M==null?void 0:M.className)!=null&&F.includes("ecan-"))vue.unref(u).includes(M.getAttribute("cpntid"))||x();else if((M==null?void 0:M.className)==="page-config")x();else{const B=_(M);vue.unref(u).includes(B)||x()}}};return useOnEvent(e,{tabChange:m}),{style:n,activeKey:r,isActive:p,tabChange:m,myData:g,useImagePath,pageMode:i,scrollWrapStyle:y,onMouseEnter:A,onMouseLeave:k}}}),Tabs_vue_vue_type_style_index_0_scoped_c936183e_lang="",_hoisted_1$5=["id"],_hoisted_2$2=["onClick"];function _sfc_render$9(e,n,r,i,a,o){const s=vue.resolveComponent("a-select-option"),l=vue.resolveComponent("a-select"),c=vue.resolveComponent("marquee-scroll");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-tabs",style:vue.normalizeStyle(e.style),id:"container_"+e.id,onMouseenter:n[0]||(n[0]=(...u)=>e.onMouseEnter&&e.onMouseEnter(...u)),onMouseleave:n[1]||(n[1]=(...u)=>e.onMouseLeave&&e.onMouseLeave(...u))},[e.pageMode==="design"||!e.isAutoScroll?vue.withDirectives((vue.openBlock(),vue.createElementBlock("div",{key:0,class:"tabs-header",style:vue.normalizeStyle({fontSize:e.tabFontSize,alignItems:e.tabAlignItems,justifyContent:e.tabJustifyContent,flexDirection:e.tabFlexDirection,margin:`${e.gridTopPx||0} ${e.gridRightPx||0} ${e.gridBottomPx||0} ${e.gridLeftPx||0}`})},[e.tabType==="tabs"?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:0},vue.renderList(e.myData,(u,f)=>(vue.openBlock(),vue.createElementBlock("div",{class:"tab",style:vue.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.isActive(f)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(f)?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabFlexDirection==="row"?e.tabBarGutter:null,marginBottom:e.tabFlexDirection==="column"?e.tabBarGutter:null,fontWeight:e.tabFontWeight}),key:f,onClick:vue.withModifiers(x=>e.tabChange({tab:u,index:f}),["prevent","stop"])},[vue.createElementVNode("div",{class:"tab-inner",style:vue.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(f)?e.activeTabColor:"transparent"}`:""})},vue.toDisplayString(u.title),5)],12,_hoisted_2$2))),128)):e.tabType==="select"?(vue.openBlock(),vue.createBlock(l,{key:1,value:e.activeKey,style:vue.normalizeStyle({width:e.tabWidth})},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.myData,(u,f)=>(vue.openBlock(),vue.createBlock(s,{key:f,value:f,onClick:x=>e.tabChange({tab:u,index:f})},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(u.title),1)]),_:2},1032,["value","onClick"]))),128))]),_:1},8,["value","style"])):vue.createCommentVNode("",!0)],4)),[[vue.vShow,e.pageMode==="design"||!e.hideTabs]]):vue.createCommentVNode("",!0),e.pageMode!=="design"&&e.isAutoScroll?(vue.openBlock(),vue.createBlock(c,{key:1,visible:e.isAutoScroll,step:e.scrollSpeed,vertical:!1,style:vue.normalizeStyle({height:e.height})},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"scroll-wrap",style:vue.normalizeStyle(e.scrollWrapStyle)},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.componentList,u=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(u.type),vue.normalizeProps(vue.mergeProps({key:u.id},u)),null,16))),128))],4)]),_:1},8,["visible","step","style"])):vue.createCommentVNode("",!0)],44,_hoisted_1$5)}const Tabs$1=_export_sfc$1(_sfc_main$7,[["render",_sfc_render$9],["__scopeId","data-v-c936183e"]]),EcanTabs=withInstall$1(Tabs$1),circulateProps={...props,name:"循环列表",type:"ecanCirculate",keyName:"循环列表",width:"300px",height:"300px",zIndex:0,borderColor:"#eee",borderStyle:"solid",borderWidth:"2px",graphicConfig:{},isAutoScroll:!1,scrollSpeed:10,componentList:[],data:[],dataType:"indicator",keyFieldMap:[],unitInterval:15,backgroundColor:"#ffffff",colNum:null,scrollDirection:"horizontal"},circulateComponentProps=transformToComponentProps(circulateProps),circulateEvents=["click","refreshData","resetRecord"];let nanoid=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((n,r)=>(r&=63,r<36?n+=r.toString(36):r<62?n+=(r-26).toString(36).toUpperCase():r>62?n+="-":n+="_",n),"");const _sfc_main$6=vue.defineComponent({name:"EcanCirculate",props:{...circulateComponentProps,sourceLeft:String,sourceTop:String,sourceWidth:Number},components:{MarqueeScroll,Skeleton},setup(e,{expose:n}){const r=vue.ref(!1),i=usePickComponentStyle(e,["background"]),a=vue.inject("usedComponentList",[]),o=vue.inject("isMobile",!1),{getGlobalModel:s,setGlobalModel:l}=vue.inject(GLOBAL_MODEL,{getGlobalModel:T=>{},setGlobalModel:(T,F)=>{}}),c=vue.ref([]),u=vue.ref({}),{pageMode:f}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),x=vue.computed(()=>{if(vue.unref(o)){const T=document.body.clientWidth,F=e.sourceWidth||parseFloat(e.width);return T/F||1}else return 1});function h(T,F){const M=F.find(B=>B.id===e.id);if(M)for(const B of T)B.left=parseFloat(B.left)-parseFloat(M.sourceLeft||M.left)+"px",B.top=parseFloat(B.top)-parseFloat(M.sourceTop||M.top)+"px"}const g=T=>{const F=T.sort((R,H)=>parseFloat(R.top)-parseFloat(H.top))[0],M=T.sort((R,H)=>parseFloat(R.left)-parseFloat(H.left))[0],B=T.map(R=>parseFloat(R.left)+parseFloat(R.width)).sort((R,H)=>H-R)[0],L=T.map(R=>parseFloat(R.top)+parseFloat(R.height)).sort((R,H)=>H-R)[0];if(M&&B&&F&&L){const R=parseFloat(M.left),H=parseFloat(F.top);return{width:B-R,height:L-H,left:R}}else return{width:0,height:0,left:0}},v=vue.ref({}),p=T=>{var C,N;const F=[],{graphicConfig:M,id:B,componentList:L,keyFieldMap:R,unitInterval:H,colNum:V}=e;let P=lodashEs.cloneDeep(L),I=[];if((C=vue.unref(a))!=null&&C.length)for(const w of vue.unref(a))I.push(w),(N=w==null?void 0:w.componentList)!=null&&N.length&&I.push(...w.componentList);if(M.pageMode==="design"&&M.preview){const{containerMap:w}=M.pageConfig||{};I=M.componentList||[],I.push(e),P=moveToComponentList(w,lodashEs.cloneDeep(I),B)}h(P,I);const S=g(P);if(T!=null&&T.length){const{width:w,left:q,height:O}=S;let D=0,$=0;T.forEach((U,j)=>{U.index=j+1;const K=nanoid(),G=lodashEs.cloneDeep(P);for(const Y of G){const J=R.find(Z=>Z.keyName===Y.keyName),ee=nanoid();if(Y.left=(parseFloat(Y.left)+D)*vue.unref(x)+"px",Y.top=(parseFloat(Y.top)+$)*vue.unref(x)+"px",Y.scale=vue.unref(x),Y.id=ee,Y.keyName=Y.name+"_"+ee,Y.unitId=K,J!=null&&J.fieldName){const Z=Y.text.match(/\{(.+?)\}/g);switch(Y.type){case"ecanText":{Y.data={value:String(U[J.fieldName])},Z!=null&&Z.length||(Y.text="{value}");break}case"ecanProportion":{Y.data={percent:String(U[J.fieldName])},Z!=null&&Z.length||(Y.text="{percent}");break}}}}V&&U.index%V===0?(D=0,$+=H+O):D+=H+w,F.push(...G),v.value[K]=U}),u.value={width:((V||T.length)*(w+H)+q)*vue.unref(x)+"px",height:(V?Math.ceil(T.length/V)*(H+O):H+O)*vue.unref(x)+"px"}}c.value=F},E=T=>{var M;const{rows:F=[]}=((M=T==null?void 0:T.data)==null?void 0:M.data)??{};p(F)},b=useIndicatorData(e,E),d=async()=>{try{r.value=!0;const T=await b();E(T)}catch(T){console.error(T)}finally{r.value=!1}},m=()=>{switch(e.dataType){case"indicator":d();break}};useOnEvent(e,{refreshData:m,resetRecord:()=>{const T=e.id,F=s(T);l(T,{...F,RECORD:""})}}),n({refreshData:m}),l(e.id,{type:e.type,RECORD:""});const{setRequest:A}=vue.inject(REQUEST_MODEL,{setRequest:T=>{}});typeof A=="function"&&A({id:e.id,requestFn:m,sortNum:e.requestSort});const _=useEmitEvent(e);return{loading:r,style:i,myComponentList:c,scrollWrapStyle:u,pageMode:f,click:T=>{let F=T.target;if(F){let M=F.getAttribute("unitId");for(;!M&&!F.className.includes("ecan-");)F=F.parentElement,M=F.getAttribute("unitId");M&&_("click",()=>{const B=s(e.id);l(e.id,{...B,type:e.type,RECORD:vue.unref(v)[M]})})()}}}}}),Circulate_vue_vue_type_style_index_0_scoped_85608bec_lang="",_hoisted_1$4=["id"];function _sfc_render$8(e,n,r,i,a,o){const s=vue.resolveComponent("marquee-scroll"),l=vue.resolveComponent("skeleton");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-circulate",style:vue.normalizeStyle(e.style),id:"container_"+e.id,onClick:n[0]||(n[0]=(...c)=>e.click&&e.click(...c))},[vue.createVNode(l,{loading:e.loading},{default:vue.withCtx(()=>{var c;return[(c=e.myComponentList)!=null&&c.length?(vue.openBlock(),vue.createBlock(s,{key:0,visible:e.pageMode!=="design"&&e.isAutoScroll,step:e.scrollSpeed,vertical:e.scrollDirection==="vertical",marqueeStyle:{height:"100%"},wrapStyle:{height:"100%",overflow:"auto"}},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"scroll-wrap",style:vue.normalizeStyle(e.scrollWrapStyle)},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.myComponentList,u=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(u.type),vue.normalizeProps(vue.mergeProps({key:u.id},u)),null,16))),128))],4)]),_:1},8,["visible","step","vertical"])):vue.createCommentVNode("",!0)]}),_:1},8,["loading"])],12,_hoisted_1$4)}const Circulate=_export_sfc$1(_sfc_main$6,[["render",_sfc_render$8],["__scopeId","data-v-85608bec"]]),EcanCirculate=withInstall$1(Circulate),templateProps={...props,name:"模板",type:"ecanTemplate",keyName:"模板",width:"300px",height:"300px",borderColor:"#eee",borderRadius:"5",borderWidth:"2px",borderStyle:"solid",pageId:""},templateComponentProps=transformToComponentProps(templateProps),templateEvents=["refreshData"],_sfc_main$5=vue.defineComponent({name:"EcanTemplate",props:{...templateComponentProps},components:{},setup(e){const n=usePickComponentStyle(e,["background"]),{templateEmit:r}=vue.inject("templateOperate",{templateEmit:(a,o)=>{}})||{};return useOnEvent(e,{refreshData:()=>{r("refreshTemplate",e.pageId)}}),{style:n}}});function _sfc_render$7(e,n,r,i,a,o){return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-template",style:vue.normalizeStyle(e.style)},[vue.renderSlot(e.$slots,"default")],4)}const Template=_export_sfc$1(_sfc_main$5,[["render",_sfc_render$7]]),EcanTemplate=withInstall$1(Template),imageProps={...props,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{},isHoverStyle:!1,borderRadius:"",isAnimation:!1,animationSource:{name:"",directory:""},actionType:"link",isDrillShow:!1,targetTemplate:"",transParams:[]},imageComponentProps=transformToComponentProps(imageProps),imageEvents=["click"];var lottie$1={exports:{}};(function(module,exports){typeof navigator<"u"&&function(e,n){module.exports=n()}(commonjsGlobal,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(n){_useWebWorker=!!n},getWebWorker=function(){return _useWebWorker},setLocationHref=function(n){locationHref=n},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,n){var r,i=e.length,a;for(r=0;r<i;r+=1){a=e[r].prototype;for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n.prototype[o]=a[o])}}function getDescriptor(e,n){return Object.getOwnPropertyDescriptor(e,n)}function createProxyFunction(e){function n(){}return n.prototype=e,n}var audioControllerFactory=function(){function e(n){this.audios=[],this.audioFactory=n,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(r){this.audios.push(r)},pause:function(){var r,i=this.audios.length;for(r=0;r<i;r+=1)this.audios[r].pause()},resume:function(){var r,i=this.audios.length;for(r=0;r<i;r+=1)this.audios[r].resume()},setRate:function(r){var i,a=this.audios.length;for(i=0;i<a;i+=1)this.audios[i].setRate(r)},createAudio:function(r){return this.audioFactory?this.audioFactory(r):window.Howl?new window.Howl({src:[r]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(r){this.audioFactory=r},setVolume:function(r){this._volume=r,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var r,i=this.audios.length;for(r=0;r<i;r+=1)this.audios[r].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(r,i){var a=0,o=[],s;switch(r){case"int16":case"uint8c":s=1;break;default:s=1.1;break}for(a=0;a<i;a+=1)o.push(s);return o}function n(r,i){return r==="float32"?new Float32Array(i):r==="int16"?new Int16Array(i):r==="uint8c"?new Uint8ClampedArray(i):e(r,i)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?n:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$6=function(r){return typeof r}:_typeof$6=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],n,r=e.length;for(n=0;n<r;n+=1)BMMath[e[n]]=Math[e[n]]})(),BMMath.random=Math.random,BMMath.abs=function(e){var n=_typeof$6(e);if(n==="object"&&e.length){var r=createSizedArray(e.length),i,a=e.length;for(i=0;i<a;i+=1)r[i]=Math.abs(e[i]);return r}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,n,r,i){this.type=e,this.currentTime=n,this.totalTime=r,this.direction=i<0?-1:1}function BMCompleteEvent(e,n){this.type=e,this.direction=n<0?-1:1}function BMCompleteLoopEvent(e,n,r,i){this.type=e,this.currentLoop=r,this.totalLoops=n,this.direction=i<0?-1:1}function BMSegmentStartEvent(e,n,r){this.type=e,this.firstFrame=n,this.totalFrames=r}function BMDestroyEvent(e,n){this.type=e,this.target=n}function BMRenderFrameErrorEvent(e,n){this.type="renderFrameError",this.nativeError=e,this.currentTime=n}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}var createElementID=function(){var e=0;return function(){return e+=1,idPrefix$1+"__lottie_element_"+e}}();function HSVtoRGB(e,n,r){var i,a,o,s,l,c,u,f;switch(s=Math.floor(e*6),l=e*6-s,c=r*(1-n),u=r*(1-l*n),f=r*(1-(1-l)*n),s%6){case 0:i=r,a=f,o=c;break;case 1:i=u,a=r,o=c;break;case 2:i=c,a=r,o=f;break;case 3:i=c,a=u,o=r;break;case 4:i=f,a=c,o=r;break;case 5:i=r,a=c,o=u;break}return[i,a,o]}function RGBtoHSV(e,n,r){var i=Math.max(e,n,r),a=Math.min(e,n,r),o=i-a,s,l=i===0?0:o/i,c=i/255;switch(i){case a:s=0;break;case e:s=n-r+o*(n<r?6:0),s/=6*o;break;case n:s=r-e+o*2,s/=6*o;break;case r:s=e-n+o*4,s/=6*o;break}return[s,l,c]}function addSaturationToRGB(e,n){var r=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return r[1]+=n,r[1]>1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(e,n){var r=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return r[2]+=n,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(e,n){var r=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return r[0]+=n/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var e=[],n,r;for(n=0;n<256;n+=1)r=n.toString(16),e[n]=r.length===1?"0"+r:r;return function(i,a,o){return i<0&&(i=0),a<0&&(a=0),o<0&&(o=0),"#"+e[i]+e[a]+e[o]}}(),setSubframeEnabled=function(n){subframeEnabled=!!n},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(n){expressionsPlugin=n},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(n){expressionsInterfaces=n},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(n){defaultCurveSegments=n},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(n){idPrefix$1=n};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(r){return typeof r}:_typeof$5=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$5(e)}var dataManager=function(){var e=1,n=[],r,i,a={onmessage:function(){},postMessage:function(g){r({data:g})}},o={postMessage:function(g){a.onmessage({data:g})}};function s(h){if(window.Worker&&window.Blob&&getWebWorker()){var g=new Blob(["var _workerSelf = self; self.onmessage = ",h.toString()],{type:"text/javascript"}),v=URL.createObjectURL(g);return new Worker(v)}return r=h,a}function l(){i||(i=s(function(g){function v(){function E(V,P){var I,S,C=V.length,N,w,q,O;for(S=0;S<C;S+=1)if(I=V[S],"ks"in I&&!I.completed){if(I.completed=!0,I.hasMask){var D=I.masksProperties;for(w=D.length,N=0;N<w;N+=1)if(D[N].pt.k.i)A(D[N].pt.k);else for(O=D[N].pt.k.length,q=0;q<O;q+=1)D[N].pt.k[q].s&&A(D[N].pt.k[q].s[0]),D[N].pt.k[q].e&&A(D[N].pt.k[q].e[0])}I.ty===0?(I.layers=m(I.refId,P),E(I.layers,P)):I.ty===4?y(I.shapes):I.ty===5&&R(I)}}function b(V,P){if(V){var I=0,S=V.length;for(I=0;I<S;I+=1)V[I].t===1&&(V[I].data.layers=m(V[I].data.refId,P),E(V[I].data.layers,P))}}function d(V,P){for(var I=0,S=P.length;I<S;){if(P[I].id===V)return P[I];I+=1}return null}function m(V,P){var I=d(V,P);return I?I.layers.__used?JSON.parse(JSON.stringify(I.layers)):(I.layers.__used=!0,I.layers):null}function y(V){var P,I=V.length,S,C;for(P=I-1;P>=0;P-=1)if(V[P].ty==="sh")if(V[P].ks.k.i)A(V[P].ks.k);else for(C=V[P].ks.k.length,S=0;S<C;S+=1)V[P].ks.k[S].s&&A(V[P].ks.k[S].s[0]),V[P].ks.k[S].e&&A(V[P].ks.k[S].e[0]);else V[P].ty==="gr"&&y(V[P].it)}function A(V){var P,I=V.i.length;for(P=0;P<I;P+=1)V.i[P][0]+=V.v[P][0],V.i[P][1]+=V.v[P][1],V.o[P][0]+=V.v[P][0],V.o[P][1]+=V.v[P][1]}function _(V,P){var I=P?P.split("."):[100,100,100];return V[0]>I[0]?!0:I[0]>V[0]?!1:V[1]>I[1]?!0:I[1]>V[1]?!1:V[2]>I[2]?!0:I[2]>V[2]?!1:null}var k=function(){var V=[4,4,14];function P(S){var C=S.t.d;S.t.d={k:[{s:C,t:0}]}}function I(S){var C,N=S.length;for(C=0;C<N;C+=1)S[C].ty===5&&P(S[C])}return function(S){if(_(V,S.v)&&(I(S.layers),S.assets)){var C,N=S.assets.length;for(C=0;C<N;C+=1)S.assets[C].layers&&I(S.assets[C].layers)}}}(),T=function(){var V=[4,7,99];return function(P){if(P.chars&&!_(V,P.v)){var I,S=P.chars.length;for(I=0;I<S;I+=1){var C=P.chars[I];C.data&&C.data.shapes&&(y(C.data.shapes),C.data.ip=0,C.data.op=99999,C.data.st=0,C.data.sr=1,C.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},P.chars[I].t||(C.data.shapes.push({ty:"no"}),C.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),F=function(){var V=[5,7,15];function P(S){var C=S.t.p;typeof C.a=="number"&&(C.a={a:0,k:C.a}),typeof C.p=="number"&&(C.p={a:0,k:C.p}),typeof C.r=="number"&&(C.r={a:0,k:C.r})}function I(S){var C,N=S.length;for(C=0;C<N;C+=1)S[C].ty===5&&P(S[C])}return function(S){if(_(V,S.v)&&(I(S.layers),S.assets)){var C,N=S.assets.length;for(C=0;C<N;C+=1)S.assets[C].layers&&I(S.assets[C].layers)}}}(),M=function(){var V=[4,1,9];function P(S){var C,N=S.length,w,q;for(C=0;C<N;C+=1)if(S[C].ty==="gr")P(S[C].it);else if(S[C].ty==="fl"||S[C].ty==="st")if(S[C].c.k&&S[C].c.k[0].i)for(q=S[C].c.k.length,w=0;w<q;w+=1)S[C].c.k[w].s&&(S[C].c.k[w].s[0]/=255,S[C].c.k[w].s[1]/=255,S[C].c.k[w].s[2]/=255,S[C].c.k[w].s[3]/=255),S[C].c.k[w].e&&(S[C].c.k[w].e[0]/=255,S[C].c.k[w].e[1]/=255,S[C].c.k[w].e[2]/=255,S[C].c.k[w].e[3]/=255);else S[C].c.k[0]/=255,S[C].c.k[1]/=255,S[C].c.k[2]/=255,S[C].c.k[3]/=255}function I(S){var C,N=S.length;for(C=0;C<N;C+=1)S[C].ty===4&&P(S[C].shapes)}return function(S){if(_(V,S.v)&&(I(S.layers),S.assets)){var C,N=S.assets.length;for(C=0;C<N;C+=1)S.assets[C].layers&&I(S.assets[C].layers)}}}(),B=function(){var V=[4,4,18];function P(S){var C,N=S.length,w,q;for(C=N-1;C>=0;C-=1)if(S[C].ty==="sh")if(S[C].ks.k.i)S[C].ks.k.c=S[C].closed;else for(q=S[C].ks.k.length,w=0;w<q;w+=1)S[C].ks.k[w].s&&(S[C].ks.k[w].s[0].c=S[C].closed),S[C].ks.k[w].e&&(S[C].ks.k[w].e[0].c=S[C].closed);else S[C].ty==="gr"&&P(S[C].it)}function I(S){var C,N,w=S.length,q,O,D,$;for(N=0;N<w;N+=1){if(C=S[N],C.hasMask){var U=C.masksProperties;for(O=U.length,q=0;q<O;q+=1)if(U[q].pt.k.i)U[q].pt.k.c=U[q].cl;else for($=U[q].pt.k.length,D=0;D<$;D+=1)U[q].pt.k[D].s&&(U[q].pt.k[D].s[0].c=U[q].cl),U[q].pt.k[D].e&&(U[q].pt.k[D].e[0].c=U[q].cl)}C.ty===4&&P(C.shapes)}}return function(S){if(_(V,S.v)&&(I(S.layers),S.assets)){var C,N=S.assets.length;for(C=0;C<N;C+=1)S.assets[C].layers&&I(S.assets[C].layers)}}}();function L(V){V.__complete||(M(V),k(V),T(V),F(V),B(V),E(V.layers,V.assets),b(V.chars,V.assets),V.__complete=!0)}function R(V){V.t.a.length===0&&"m"in V.t.p}var H={};return H.completeData=L,H.checkColors=M,H.checkChars=T,H.checkPathProperties=F,H.checkShapes=B,H.completeLayers=E,H}if(o.dataManager||(o.dataManager=v()),o.assetLoader||(o.assetLoader=function(){function E(d){var m=d.getResponseHeader("content-type");return m&&d.responseType==="json"&&m.indexOf("json")!==-1||d.response&&_typeof$5(d.response)==="object"?d.response:d.response&&typeof d.response=="string"?JSON.parse(d.response):d.responseText?JSON.parse(d.responseText):null}function b(d,m,y,A){var _,k=new XMLHttpRequest;try{k.responseType="json"}catch{}k.onreadystatechange=function(){if(k.readyState===4)if(k.status===200)_=E(k),y(_);else try{_=E(k),y(_)}catch(T){A&&A(T)}};try{k.open(["G","E","T"].join(""),d,!0)}catch{k.open(["G","E","T"].join(""),m+"/"+d,!0)}k.send()}return{load:b}}()),g.data.type==="loadAnimation")o.assetLoader.load(g.data.path,g.data.fullPath,function(E){o.dataManager.completeData(E),o.postMessage({id:g.data.id,payload:E,status:"success"})},function(){o.postMessage({id:g.data.id,status:"error"})});else if(g.data.type==="complete"){var p=g.data.animation;o.dataManager.completeData(p),o.postMessage({id:g.data.id,payload:p,status:"success"})}else g.data.type==="loadData"&&o.assetLoader.load(g.data.path,g.data.fullPath,function(E){o.postMessage({id:g.data.id,payload:E,status:"success"})},function(){o.postMessage({id:g.data.id,status:"error"})})}),i.onmessage=function(h){var g=h.data,v=g.id,p=n[v];n[v]=null,g.status==="success"?p.onComplete(g.payload):p.onError&&p.onError()})}function c(h,g){e+=1;var v="processId_"+e;return n[v]={onComplete:h,onError:g},v}function u(h,g,v){l();var p=c(g,v);i.postMessage({type:"loadAnimation",path:h,fullPath:window.location.origin+window.location.pathname,id:p})}function f(h,g,v){l();var p=c(g,v);i.postMessage({type:"loadData",path:h,fullPath:window.location.origin+window.location.pathname,id:p})}function x(h,g,v){l();var p=c(g,v);i.postMessage({type:"complete",animation:h,id:p})}return{loadAnimation:u,loadData:f,completeAnimation:x}}(),ImagePreloader=function(){var e=function(){var b=createTag("canvas");b.width=1,b.height=1;var d=b.getContext("2d");return d.fillStyle="rgba(0,0,0,0)",d.fillRect(0,0,1,1),b}();function n(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(b,d,m){var y="";if(b.e)y=b.p;else if(d){var A=b.p;A.indexOf("images/")!==-1&&(A=A.split("/")[1]),y=d+A}else y=m,y+=b.u?b.u:"",y+=b.p;return y}function a(b){var d=0,m=setInterval((function(){var y=b.getBBox();(y.width||d>500)&&(this._imageLoaded(),clearInterval(m)),d+=1}).bind(this),50)}function o(b){var d=i(b,this.assetsPath,this.path),m=createNS("image");isSafari?this.testImageLoaded(m):m.addEventListener("load",this._imageLoaded,!1),m.addEventListener("error",(function(){y.img=e,this._imageLoaded()}).bind(this),!1),m.setAttributeNS("http://www.w3.org/1999/xlink","href",d),this._elementHelper.append?this._elementHelper.append(m):this._elementHelper.appendChild(m);var y={img:m,assetData:b};return y}function s(b){var d=i(b,this.assetsPath,this.path),m=createTag("img");m.crossOrigin="anonymous",m.addEventListener("load",this._imageLoaded,!1),m.addEventListener("error",(function(){y.img=e,this._imageLoaded()}).bind(this),!1),m.src=d;var y={img:m,assetData:b};return y}function l(b){var d={assetData:b},m=i(b,this.assetsPath,this.path);return dataManager.loadData(m,(function(y){d.img=y,this._footageLoaded()}).bind(this),(function(){d.img={},this._footageLoaded()}).bind(this)),d}function c(b,d){this.imagesLoadedCb=d;var m,y=b.length;for(m=0;m<y;m+=1)b[m].layers||(!b[m].t||b[m].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(b[m]))):b[m].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(b[m]))))}function u(b){this.path=b||""}function f(b){this.assetsPath=b||""}function x(b){for(var d=0,m=this.images.length;d<m;){if(this.images[d].assetData===b)return this.images[d].img;d+=1}return null}function h(){this.imagesLoadedCb=null,this.images.length=0}function g(){return this.totalImages===this.loadedAssets}function v(){return this.totalFootages===this.loadedFootagesCount}function p(b,d){b==="svg"?(this._elementHelper=d,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function E(){this._imageLoaded=n.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=a.bind(this),this.createFootageData=l.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return E.prototype={loadAssets:c,setAssetsPath:f,setPath:u,loadedImages:g,loadedFootages:v,destroy:h,getAsset:x,createImgData:s,createImageData:o,imageLoaded:n,footageLoaded:r,setCacheType:p},E}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(n,r){if(this._cbs[n])for(var i=this._cbs[n],a=0;a<i.length;a+=1)i[a](r)},addEventListener:function(n,r){return this._cbs[n]||(this._cbs[n]=[]),this._cbs[n].push(r),(function(){this.removeEventListener(n,r)}).bind(this)},removeEventListener:function(n,r){if(!r)this._cbs[n]=null;else if(this._cbs[n]){for(var i=0,a=this._cbs[n].length;i<a;)this._cbs[n][i]===r&&(this._cbs[n].splice(i,1),i-=1,a-=1),i+=1;this._cbs[n].length||(this._cbs[n]=null)}}};var markerParser=function(){function e(n){for(var r=n.split(`\r
120
- `),i={},a,o=0,s=0;s<r.length;s+=1)a=r[s].split(":"),a.length===2&&(i[a[0]]=a[1].trim(),o+=1);if(o===0)throw new Error;return i}return function(n){for(var r=[],i=0;i<n.length;i+=1){var a=n[i],o={time:a.tm,duration:a.dr};try{o.payload=JSON.parse(n[i].cm)}catch{try{o.payload=e(n[i].cm)}catch{o.payload={name:n[i].cm}}}r.push(o)}return r}}(),ProjectInterface=function(){function e(n){this.compositions.push(n)}return function(){function n(r){for(var i=0,a=this.compositions.length;i<a;){if(this.compositions[i].data&&this.compositions[i].data.nm===r)return this.compositions[i].prepareFrame&&this.compositions[i].data.xt&&this.compositions[i].prepareFrame(this.currentFrame),this.compositions[i].compInterface;i+=1}return null}return n.compositions=[],n.currentFrame=0,n.registerComposition=e,n}}(),renderers={},registerRenderer=function(n,r){renderers[n]=r};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}function _typeof$4(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$4=function(r){return typeof r}:_typeof$4=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$4(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var n="svg";e.animType?n=e.animType:e.renderer&&(n=e.renderer);var r=getRenderer(n);this.renderer=new r(this,e.rendererSettings),this.imagePreloader.setCacheType(n,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=n,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay="autoplay"in e?e.autoplay:!0,this.name=e.name?e.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(e,"autoloadSegments")?e.autoloadSegments:!0,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,n){n&&_typeof$4(n)!=="object"&&(n=JSON.parse(n));var r={wrapper:e,animationData:n},i=e.attributes;r.path=i.getNamedItem("data-animation-path")?i.getNamedItem("data-animation-path").value:i.getNamedItem("data-bm-path")?i.getNamedItem("data-bm-path").value:i.getNamedItem("bm-path")?i.getNamedItem("bm-path").value:"",r.animType=i.getNamedItem("data-anim-type")?i.getNamedItem("data-anim-type").value:i.getNamedItem("data-bm-type")?i.getNamedItem("data-bm-type").value:i.getNamedItem("bm-type")?i.getNamedItem("bm-type").value:i.getNamedItem("data-bm-renderer")?i.getNamedItem("data-bm-renderer").value:i.getNamedItem("bm-renderer")?i.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var a=i.getNamedItem("data-anim-loop")?i.getNamedItem("data-anim-loop").value:i.getNamedItem("data-bm-loop")?i.getNamedItem("data-bm-loop").value:i.getNamedItem("bm-loop")?i.getNamedItem("bm-loop").value:"";a==="false"?r.loop=!1:a==="true"?r.loop=!0:a!==""&&(r.loop=parseInt(a,10));var o=i.getNamedItem("data-anim-autoplay")?i.getNamedItem("data-anim-autoplay").value:i.getNamedItem("data-bm-autoplay")?i.getNamedItem("data-bm-autoplay").value:i.getNamedItem("bm-autoplay")?i.getNamedItem("bm-autoplay").value:!0;r.autoplay=o!=="false",r.name=i.getNamedItem("data-name")?i.getNamedItem("data-name").value:i.getNamedItem("data-bm-name")?i.getNamedItem("data-bm-name").value:i.getNamedItem("bm-name")?i.getNamedItem("bm-name").value:"";var s=i.getNamedItem("data-anim-prerender")?i.getNamedItem("data-anim-prerender").value:i.getNamedItem("data-bm-prerender")?i.getNamedItem("data-bm-prerender").value:i.getNamedItem("bm-prerender")?i.getNamedItem("bm-prerender").value:"";s==="false"&&(r.prerender=!1),r.path?this.setParams(r):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var n=this.animationData.layers,r,i=n.length,a=e.layers,o,s=a.length;for(o=0;o<s;o+=1)for(r=0;r<i;){if(n[r].id===a[o].id){n[r]=a[o];break}r+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(i=e.assets.length,r=0;r<i;r+=1)this.animationData.assets.push(e.assets[r]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var n=getExpressionsPlugin();n&&n.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var n=e.shift();this.timeCompleted=n.time*this.frameRate;var r=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(r,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},AnimationItem.prototype.loadSegments=function(){var e=this.animationData.segments;e||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(n){this.triggerConfigError(n)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,n){var r=typeof e=="number"?e:void 0,i=typeof n=="number"?n:void 0;this.renderer.updateContainerSize(r,i)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var n,r=0;r<this.markers.length;r+=1)if(n=this.markers[r],n.payload&&n.payload.name===e)return n;return null},AnimationItem.prototype.goToAndStop=function(e,n,r){if(!(r&&this.name!==r)){var i=Number(e);if(isNaN(i)){var a=this.getMarkerData(e);a&&this.goToAndStop(a.time,!0)}else n?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,n,r){if(!(r&&this.name!==r)){var i=Number(e);if(isNaN(i)){var a=this.getMarkerData(e);a&&(a.duration?this.playSegments([a.time,a.time+a.duration],!0):this.goToAndStop(a.time,!0))}else this.goToAndStop(i,n,r);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var n=this.currentRawFrame+e*this.frameModifier,r=!1;n>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(n>this.totalFrames?n%this.totalFrames:0)||(r=!0,n=this.totalFrames-1):n>=this.totalFrames?(this.playCount+=1,this.checkSegments(n%this.totalFrames)||(this.setCurrentRawFrameValue(n%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(n):n<0?this.checkSegments(n%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+n%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(r=!0,n=0)):this.setCurrentRawFrameValue(n),r&&(this.setCurrentRawFrameValue(n),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,n){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-n)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+n)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,n){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?r=e:this.currentRawFrame+this.firstFrame>n&&(r=n-e)),this.firstFrame=e,this.totalFrames=n-e,this.timeCompleted=this.totalFrames,r!==-1&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(e,n){if(n&&(this.segments.length=0),_typeof$4(e[0])==="object"){var r,i=e.length;for(r=0;r<i;r+=1)this.segments.push(e[r])}else this.segments.push(e);this.segments.length&&n&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return this.segments.length?(this.adjustSegment(this.segments.shift(),e),!0):!1},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,n){n&&this.name!==n||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var n="";if(e.e)n=e.p;else if(this.assetsPath){var r=e.p;r.indexOf("images/")!==-1&&(r=r.split("/")[1]),n=this.assetsPath+r}else n=this.path,n+=e.u?e.u:"",n+=e.p;return n},AnimationItem.prototype.getAssetData=function(e){for(var n=0,r=this.assets.length;n<r;){if(e===this.assets[n].id)return this.assets[n];n+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,n,r){try{var i=this.renderer.getElementByPath(e);i.updateDocumentData(n,r)}catch{}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var n=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",n),this.onError&&this.onError.call(this,n)},AnimationItem.prototype.triggerConfigError=function(e){var n=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",n),this.onError&&this.onError.call(this,n)};var animationManager=function(){var e={},n=[],r=0,i=0,a=0,o=!0,s=!1;function l(P){for(var I=0,S=P.target;I<i;)n[I].animation===S&&(n.splice(I,1),I-=1,i-=1,S.isPaused||x()),I+=1}function c(P,I){if(!P)return null;for(var S=0;S<i;){if(n[S].elem===P&&n[S].elem!==null)return n[S].animation;S+=1}var C=new AnimationItem;return h(C,P),C.setData(P,I),C}function u(){var P,I=n.length,S=[];for(P=0;P<I;P+=1)S.push(n[P].animation);return S}function f(){a+=1,M()}function x(){a-=1}function h(P,I){P.addEventListener("destroy",l),P.addEventListener("_active",f),P.addEventListener("_idle",x),n.push({elem:I,animation:P}),i+=1}function g(P){var I=new AnimationItem;return h(I,null),I.setParams(P),I}function v(P,I){var S;for(S=0;S<i;S+=1)n[S].animation.setSpeed(P,I)}function p(P,I){var S;for(S=0;S<i;S+=1)n[S].animation.setDirection(P,I)}function E(P){var I;for(I=0;I<i;I+=1)n[I].animation.play(P)}function b(P){var I=P-r,S;for(S=0;S<i;S+=1)n[S].animation.advanceTime(I);r=P,a&&!s?window.requestAnimationFrame(b):o=!0}function d(P){r=P,window.requestAnimationFrame(b)}function m(P){var I;for(I=0;I<i;I+=1)n[I].animation.pause(P)}function y(P,I,S){var C;for(C=0;C<i;C+=1)n[C].animation.goToAndStop(P,I,S)}function A(P){var I;for(I=0;I<i;I+=1)n[I].animation.stop(P)}function _(P){var I;for(I=0;I<i;I+=1)n[I].animation.togglePause(P)}function k(P){var I;for(I=i-1;I>=0;I-=1)n[I].animation.destroy(P)}function T(P,I,S){var C=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),N,w=C.length;for(N=0;N<w;N+=1)S&&C[N].setAttribute("data-bm-type",S),c(C[N],P);if(I&&w===0){S||(S="svg");var q=document.getElementsByTagName("body")[0];q.innerText="";var O=createTag("div");O.style.width="100%",O.style.height="100%",O.setAttribute("data-bm-type",S),q.appendChild(O),c(O,P)}}function F(){var P;for(P=0;P<i;P+=1)n[P].animation.resize()}function M(){!s&&a&&o&&(window.requestAnimationFrame(d),o=!1)}function B(){s=!0}function L(){s=!1,M()}function R(P,I){var S;for(S=0;S<i;S+=1)n[S].animation.setVolume(P,I)}function H(P){var I;for(I=0;I<i;I+=1)n[I].animation.mute(P)}function V(P){var I;for(I=0;I<i;I+=1)n[I].animation.unmute(P)}return e.registerAnimation=c,e.loadAnimation=g,e.setSpeed=v,e.setDirection=p,e.play=E,e.pause=m,e.stop=A,e.togglePause=_,e.searchAnimations=T,e.resize=F,e.goToAndStop=y,e.destroy=k,e.freeze=B,e.unfreeze=L,e.setVolume=R,e.mute=H,e.unmute=V,e.getRegisteredAnimations=u,e}(),BezierFactory=function(){var e={};e.getBezierEasing=r;var n={};function r(d,m,y,A,_){var k=_||("bez_"+d+"_"+m+"_"+y+"_"+A).replace(/\./g,"p");if(n[k])return n[k];var T=new b([d,m,y,A]);return n[k]=T,T}var i=4,a=.001,o=1e-7,s=10,l=11,c=1/(l-1),u=typeof Float32Array=="function";function f(d,m){return 1-3*m+3*d}function x(d,m){return 3*m-6*d}function h(d){return 3*d}function g(d,m,y){return((f(m,y)*d+x(m,y))*d+h(m))*d}function v(d,m,y){return 3*f(m,y)*d*d+2*x(m,y)*d+h(m)}function p(d,m,y,A,_){var k,T,F=0;do T=m+(y-m)/2,k=g(T,A,_)-d,k>0?y=T:m=T;while(Math.abs(k)>o&&++F<s);return T}function E(d,m,y,A){for(var _=0;_<i;++_){var k=v(m,y,A);if(k===0)return m;var T=g(m,y,A)-d;m-=T/k}return m}function b(d){this._p=d,this._mSampleValues=u?new Float32Array(l):new Array(l),this._precomputed=!1,this.get=this.get.bind(this)}return b.prototype={get:function(m){var y=this._p[0],A=this._p[1],_=this._p[2],k=this._p[3];return this._precomputed||this._precompute(),y===A&&_===k?m:m===0?0:m===1?1:g(this._getTForX(m),A,k)},_precompute:function(){var m=this._p[0],y=this._p[1],A=this._p[2],_=this._p[3];this._precomputed=!0,(m!==y||A!==_)&&this._calcSampleValues()},_calcSampleValues:function(){for(var m=this._p[0],y=this._p[2],A=0;A<l;++A)this._mSampleValues[A]=g(A*c,m,y)},_getTForX:function(m){for(var y=this._p[0],A=this._p[2],_=this._mSampleValues,k=0,T=1,F=l-1;T!==F&&_[T]<=m;++T)k+=c;--T;var M=(m-_[T])/(_[T+1]-_[T]),B=k+M*c,L=v(B,y,A);return L>=a?E(m,B,y,A):L===0?B:p(m,k,k+c,y,A)}},e}(),pooling=function(){function e(n){return n.concat(createSizedArray(n.length))}return{double:e}}(),poolFactory=function(){return function(e,n,r){var i=0,a=e,o=createSizedArray(a),s={newElement:l,release:c};function l(){var u;return i?(i-=1,u=o[i]):u=n(),u}function c(u){i===a&&(o=pooling.double(o),a*=2),r&&r(u),o[i]=u,i+=1}return s}}(),bezierLengthPool=function(){function e(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,e)}(),segmentsLengthPool=function(){function e(){return{lengths:[],totalLength:0}}function n(r){var i,a=r.lengths.length;for(i=0;i<a;i+=1)bezierLengthPool.release(r.lengths[i]);r.lengths.length=0}return poolFactory(8,e,n)}();function bezFunction(){var e=Math;function n(h,g,v,p,E,b){var d=h*p+g*E+v*b-E*p-b*h-v*g;return d>-.001&&d<.001}function r(h,g,v,p,E,b,d,m,y){if(v===0&&b===0&&y===0)return n(h,g,p,E,d,m);var A=e.sqrt(e.pow(p-h,2)+e.pow(E-g,2)+e.pow(b-v,2)),_=e.sqrt(e.pow(d-h,2)+e.pow(m-g,2)+e.pow(y-v,2)),k=e.sqrt(e.pow(d-p,2)+e.pow(m-E,2)+e.pow(y-b,2)),T;return A>_?A>k?T=A-_-k:T=k-_-A:k>_?T=k-_-A:T=_-A-k,T>-1e-4&&T<1e-4}var i=function(){return function(h,g,v,p){var E=getDefaultCurveSegments(),b,d,m,y,A,_=0,k,T=[],F=[],M=bezierLengthPool.newElement();for(m=v.length,b=0;b<E;b+=1){for(A=b/(E-1),k=0,d=0;d<m;d+=1)y=bmPow(1-A,3)*h[d]+3*bmPow(1-A,2)*A*v[d]+3*(1-A)*bmPow(A,2)*p[d]+bmPow(A,3)*g[d],T[d]=y,F[d]!==null&&(k+=bmPow(T[d]-F[d],2)),F[d]=T[d];k&&(k=bmSqrt(k),_+=k),M.percents[b]=A,M.lengths[b]=_}return M.addedLength=_,M}}();function a(h){var g=segmentsLengthPool.newElement(),v=h.c,p=h.v,E=h.o,b=h.i,d,m=h._length,y=g.lengths,A=0;for(d=0;d<m-1;d+=1)y[d]=i(p[d],p[d+1],E[d],b[d+1]),A+=y[d].addedLength;return v&&m&&(y[d]=i(p[d],p[0],E[d],b[0]),A+=y[d].addedLength),g.totalLength=A,g}function o(h){this.segmentLength=0,this.points=new Array(h)}function s(h,g){this.partialLength=h,this.point=g}var l=function(){var h={};return function(g,v,p,E){var b=(g[0]+"_"+g[1]+"_"+v[0]+"_"+v[1]+"_"+p[0]+"_"+p[1]+"_"+E[0]+"_"+E[1]).replace(/\./g,"p");if(!h[b]){var d=getDefaultCurveSegments(),m,y,A,_,k,T=0,F,M,B=null;g.length===2&&(g[0]!==v[0]||g[1]!==v[1])&&n(g[0],g[1],v[0],v[1],g[0]+p[0],g[1]+p[1])&&n(g[0],g[1],v[0],v[1],v[0]+E[0],v[1]+E[1])&&(d=2);var L=new o(d);for(A=p.length,m=0;m<d;m+=1){for(M=createSizedArray(A),k=m/(d-1),F=0,y=0;y<A;y+=1)_=bmPow(1-k,3)*g[y]+3*bmPow(1-k,2)*k*(g[y]+p[y])+3*(1-k)*bmPow(k,2)*(v[y]+E[y])+bmPow(k,3)*v[y],M[y]=_,B!==null&&(F+=bmPow(M[y]-B[y],2));F=bmSqrt(F),T+=F,L.points[m]=new s(F,M),B=M}L.segmentLength=T,h[b]=L}return h[b]}}();function c(h,g){var v=g.percents,p=g.lengths,E=v.length,b=bmFloor((E-1)*h),d=h*g.addedLength,m=0;if(b===E-1||b===0||d===p[b])return v[b];for(var y=p[b]>d?-1:1,A=!0;A;)if(p[b]<=d&&p[b+1]>d?(m=(d-p[b])/(p[b+1]-p[b]),A=!1):b+=y,b<0||b>=E-1){if(b===E-1)return v[b];A=!1}return v[b]+(v[b+1]-v[b])*m}function u(h,g,v,p,E,b){var d=c(E,b),m=1-d,y=e.round((m*m*m*h[0]+(d*m*m+m*d*m+m*m*d)*v[0]+(d*d*m+m*d*d+d*m*d)*p[0]+d*d*d*g[0])*1e3)/1e3,A=e.round((m*m*m*h[1]+(d*m*m+m*d*m+m*m*d)*v[1]+(d*d*m+m*d*d+d*m*d)*p[1]+d*d*d*g[1])*1e3)/1e3;return[y,A]}var f=createTypedArray("float32",8);function x(h,g,v,p,E,b,d){E<0?E=0:E>1&&(E=1);var m=c(E,d);b=b>1?1:b;var y=c(b,d),A,_=h.length,k=1-m,T=1-y,F=k*k*k,M=m*k*k*3,B=m*m*k*3,L=m*m*m,R=k*k*T,H=m*k*T+k*m*T+k*k*y,V=m*m*T+k*m*y+m*k*y,P=m*m*y,I=k*T*T,S=m*T*T+k*y*T+k*T*y,C=m*y*T+k*y*y+m*T*y,N=m*y*y,w=T*T*T,q=y*T*T+T*y*T+T*T*y,O=y*y*T+T*y*y+y*T*y,D=y*y*y;for(A=0;A<_;A+=1)f[A*4]=e.round((F*h[A]+M*v[A]+B*p[A]+L*g[A])*1e3)/1e3,f[A*4+1]=e.round((R*h[A]+H*v[A]+V*p[A]+P*g[A])*1e3)/1e3,f[A*4+2]=e.round((I*h[A]+S*v[A]+C*p[A]+N*g[A])*1e3)/1e3,f[A*4+3]=e.round((w*h[A]+q*v[A]+O*p[A]+D*g[A])*1e3)/1e3;return f}return{getSegmentsLength:a,getNewSegment:x,getPointInSegment:u,buildBezierData:l,pointOnLine2D:n,pointOnLine3D:r}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,n){var r=this.offsetTime,i;this.propType==="multidimensional"&&(i=createTypedArray("float32",this.pv.length));for(var a=n.lastIndex,o=a,s=this.keyframes.length-1,l=!0,c,u,f;l;){if(c=this.keyframes[o],u=this.keyframes[o+1],o===s-1&&e>=u.t-r){c.h&&(c=u),a=0;break}if(u.t-r>e){a=o;break}o<s-1?o+=1:(a=0,l=!1)}f=this.keyframesMetadata[o]||{};var x,h,g,v,p,E,b=u.t-r,d=c.t-r,m;if(c.to){f.bezierData||(f.bezierData=bez.buildBezierData(c.s,u.s||c.e,c.to,c.ti));var y=f.bezierData;if(e>=b||e<d){var A=e>=b?y.points.length-1:0;for(h=y.points[A].point.length,x=0;x<h;x+=1)i[x]=y.points[A].point[x]}else{f.__fnct?E=f.__fnct:(E=BezierFactory.getBezierEasing(c.o.x,c.o.y,c.i.x,c.i.y,c.n).get,f.__fnct=E),g=E((e-d)/(b-d));var _=y.segmentLength*g,k,T=n.lastFrame<e&&n._lastKeyframeIndex===o?n._lastAddedLength:0;for(p=n.lastFrame<e&&n._lastKeyframeIndex===o?n._lastPoint:0,l=!0,v=y.points.length;l;){if(T+=y.points[p].partialLength,_===0||g===0||p===y.points.length-1){for(h=y.points[p].point.length,x=0;x<h;x+=1)i[x]=y.points[p].point[x];break}else if(_>=T&&_<T+y.points[p+1].partialLength){for(k=(_-T)/y.points[p+1].partialLength,h=y.points[p].point.length,x=0;x<h;x+=1)i[x]=y.points[p].point[x]+(y.points[p+1].point[x]-y.points[p].point[x])*k;break}p<v-1?p+=1:l=!1}n._lastPoint=p,n._lastAddedLength=T-y.points[p].partialLength,n._lastKeyframeIndex=o}}else{var F,M,B,L,R;if(s=c.s.length,m=u.s||c.e,this.sh&&c.h!==1)if(e>=b)i[0]=m[0],i[1]=m[1],i[2]=m[2];else if(e<=d)i[0]=c.s[0],i[1]=c.s[1],i[2]=c.s[2];else{var H=createQuaternion(c.s),V=createQuaternion(m),P=(e-d)/(b-d);quaternionToEuler(i,slerp(H,V,P))}else for(o=0;o<s;o+=1)c.h!==1&&(e>=b?g=1:e<d?g=0:(c.o.x.constructor===Array?(f.__fnct||(f.__fnct=[]),f.__fnct[o]?E=f.__fnct[o]:(F=c.o.x[o]===void 0?c.o.x[0]:c.o.x[o],M=c.o.y[o]===void 0?c.o.y[0]:c.o.y[o],B=c.i.x[o]===void 0?c.i.x[0]:c.i.x[o],L=c.i.y[o]===void 0?c.i.y[0]:c.i.y[o],E=BezierFactory.getBezierEasing(F,M,B,L).get,f.__fnct[o]=E)):f.__fnct?E=f.__fnct:(F=c.o.x,M=c.o.y,B=c.i.x,L=c.i.y,E=BezierFactory.getBezierEasing(F,M,B,L).get,c.keyframeMetadata=E),g=E((e-d)/(b-d)))),m=u.s||c.e,R=c.h===1?c.s[o]:c.s[o]+(m[o]-c.s[o])*g,this.propType==="multidimensional"?i[o]=R:i=R}return n.lastIndex=a,i}function slerp(e,n,r){var i=[],a=e[0],o=e[1],s=e[2],l=e[3],c=n[0],u=n[1],f=n[2],x=n[3],h,g,v,p,E;return g=a*c+o*u+s*f+l*x,g<0&&(g=-g,c=-c,u=-u,f=-f,x=-x),1-g>1e-6?(h=Math.acos(g),v=Math.sin(h),p=Math.sin((1-r)*h)/v,E=Math.sin(r*h)/v):(p=1-r,E=r),i[0]=p*a+E*c,i[1]=p*o+E*u,i[2]=p*s+E*f,i[3]=p*l+E*x,i}function quaternionToEuler(e,n){var r=n[0],i=n[1],a=n[2],o=n[3],s=Math.atan2(2*i*o-2*r*a,1-2*i*i-2*a*a),l=Math.asin(2*r*i+2*a*o),c=Math.atan2(2*r*o-2*i*a,1-2*r*r-2*a*a);e[0]=s/degToRads,e[1]=l/degToRads,e[2]=c/degToRads}function createQuaternion(e){var n=e[0]*degToRads,r=e[1]*degToRads,i=e[2]*degToRads,a=Math.cos(n/2),o=Math.cos(r/2),s=Math.cos(i/2),l=Math.sin(n/2),c=Math.sin(r/2),u=Math.sin(i/2),f=a*o*s-l*c*u,x=l*c*s+a*o*u,h=l*o*s+a*c*u,g=a*c*s-l*o*u;return[x,h,g,f]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,n=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=r&&e>=r||this._caching.lastFrame<n&&e<n))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(e,this._caching);this.pv=i}return this._caching.lastFrame=e,this.pv}function setVValue(e){var n;if(this.propType==="unidimensional")n=e*this.mult,mathAbs(this.v-n)>1e-5&&(this.v=n,this._mdf=!0);else for(var r=0,i=this.v.length;r<i;)n=e[r]*this.mult,mathAbs(this.v[r]-n)>1e-5&&(this.v[r]=n,this._mdf=!0),r+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var e,n=this.effectsSequence.length,r=this.kf?this.pv:this.data.k;for(e=0;e<n;e+=1)r=this.effectsSequence[e](r);this.setVValue(r),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,n,r,i){this.propType="unidimensional",this.mult=r||1,this.data=n,this.v=r?n.k*r:n.k,this.pv=n.k,this._mdf=!1,this.elem=e,this.container=i,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,n,r,i){this.propType="multidimensional",this.mult=r||1,this.data=n,this._mdf=!1,this.elem=e,this.container=i,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var a,o=n.k.length;for(this.v=createTypedArray("float32",o),this.pv=createTypedArray("float32",o),this.vel=createTypedArray("float32",o),a=0;a<o;a+=1)this.v[a]=n.k[a]*this.mult,this.pv[a]=n.k[a];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,n,r,i){this.propType="unidimensional",this.keyframes=n.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=n,this.mult=r||1,this.elem=e,this.container=i,this.comp=e.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(e,n,r,i){this.propType="multidimensional";var a,o=n.k.length,s,l,c,u;for(a=0;a<o-1;a+=1)n.k[a].to&&n.k[a].s&&n.k[a+1]&&n.k[a+1].s&&(s=n.k[a].s,l=n.k[a+1].s,c=n.k[a].to,u=n.k[a].ti,(s.length===2&&!(s[0]===l[0]&&s[1]===l[1])&&bez.pointOnLine2D(s[0],s[1],l[0],l[1],s[0]+c[0],s[1]+c[1])&&bez.pointOnLine2D(s[0],s[1],l[0],l[1],l[0]+u[0],l[1]+u[1])||s.length===3&&!(s[0]===l[0]&&s[1]===l[1]&&s[2]===l[2])&&bez.pointOnLine3D(s[0],s[1],s[2],l[0],l[1],l[2],s[0]+c[0],s[1]+c[1],s[2]+c[2])&&bez.pointOnLine3D(s[0],s[1],s[2],l[0],l[1],l[2],l[0]+u[0],l[1]+u[1],l[2]+u[2]))&&(n.k[a].to=null,n.k[a].ti=null),s[0]===l[0]&&s[1]===l[1]&&c[0]===0&&c[1]===0&&u[0]===0&&u[1]===0&&(s.length===2||s[2]===l[2]&&c[2]===0&&u[2]===0)&&(n.k[a].to=null,n.k[a].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=n,this.keyframes=n.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=r||1,this.elem=e,this.container=i,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var f=n.k[0].s.length;for(this.v=createTypedArray("float32",f),this.pv=createTypedArray("float32",f),a=0;a<f;a+=1)this.v[a]=initFrame,this.pv[a]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",f)},this.addEffect=addEffect}var PropertyFactory=function(){function e(r,i,a,o,s){i.sid&&(i=r.globalData.slotManager.getProp(i));var l;if(!i.k.length)l=new ValueProperty(r,i,o,s);else if(typeof i.k[0]=="number")l=new MultiDimensionalProperty(r,i,o,s);else switch(a){case 0:l=new KeyframedValueProperty(r,i,o,s);break;case 1:l=new KeyframedMultidimensionalProperty(r,i,o,s);break}return l.effectsSequence.length&&s.addDynamicProperty(l),l}var n={getProp:e};return n}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(n){this.dynamicProperties.indexOf(n)===-1&&(this.dynamicProperties.push(n),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var n,r=this.dynamicProperties.length;for(n=0;n<r;n+=1)this.dynamicProperties[n].getValue(),this.dynamicProperties[n]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(n){this.container=n,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=function(){function e(){return createTypedArray("float32",2)}return poolFactory(8,e)}();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,n){this.c=e,this.setLength(n);for(var r=0;r<n;)this.v[r]=pointPool.newElement(),this.o[r]=pointPool.newElement(),this.i[r]=pointPool.newElement(),r+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,n,r,i,a){var o;switch(this._length=Math.max(this._length,i+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":o=this.v;break;case"i":o=this.i;break;case"o":o=this.o;break;default:o=[];break}(!o[i]||o[i]&&!a)&&(o[i]=pointPool.newElement()),o[i][0]=e,o[i][1]=n},ShapePath.prototype.setTripleAt=function(e,n,r,i,a,o,s,l){this.setXYAt(e,n,"v",s,l),this.setXYAt(r,i,"o",s,l),this.setXYAt(a,o,"i",s,l)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var n=this.v,r=this.o,i=this.i,a=0;this.c&&(e.setTripleAt(n[0][0],n[0][1],i[0][0],i[0][1],r[0][0],r[0][1],0,!1),a=1);var o=this._length-1,s=this._length,l;for(l=a;l<s;l+=1)e.setTripleAt(n[o][0],n[o][1],i[o][0],i[o][1],r[o][0],r[o][1],l,!1),o-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function e(){return new ShapePath}function n(a){var o=a._length,s;for(s=0;s<o;s+=1)pointPool.release(a.v[s]),pointPool.release(a.i[s]),pointPool.release(a.o[s]),a.v[s]=null,a.i[s]=null,a.o[s]=null;a._length=0,a.c=!1}function r(a){var o=i.newElement(),s,l=a._length===void 0?a.v.length:a._length;for(o.setLength(l),o.c=a.c,s=0;s<l;s+=1)o.setTripleAt(a.v[s][0],a.v[s][1],a.o[s][0],a.o[s][1],a.i[s][0],a.i[s][1],s);return o}var i=poolFactory(4,e,n);return i.clone=r,i}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=function(){var e={newShapeCollection:a,release:o},n=0,r=4,i=createSizedArray(r);function a(){var s;return n?(n-=1,s=i[n]):s=new ShapeCollection,s}function o(s){var l,c=s._length;for(l=0;l<c;l+=1)shapePool.release(s.shapes[l]);s._length=0,n===r&&(i=pooling.double(i),r*=2),i[n]=s,n+=1}return e}(),ShapePropertyFactory=function(){var e=-999999;function n(b,d,m){var y=m.lastIndex,A,_,k,T,F,M,B,L,R,H=this.keyframes;if(b<H[0].t-this.offsetTime)A=H[0].s[0],k=!0,y=0;else if(b>=H[H.length-1].t-this.offsetTime)A=H[H.length-1].s?H[H.length-1].s[0]:H[H.length-2].e[0],k=!0;else{for(var V=y,P=H.length-1,I=!0,S,C,N;I&&(S=H[V],C=H[V+1],!(C.t-this.offsetTime>b));)V<P-1?V+=1:I=!1;if(N=this.keyframesMetadata[V]||{},k=S.h===1,y=V,!k){if(b>=C.t-this.offsetTime)L=1;else if(b<S.t-this.offsetTime)L=0;else{var w;N.__fnct?w=N.__fnct:(w=BezierFactory.getBezierEasing(S.o.x,S.o.y,S.i.x,S.i.y).get,N.__fnct=w),L=w((b-(S.t-this.offsetTime))/(C.t-this.offsetTime-(S.t-this.offsetTime)))}_=C.s?C.s[0]:S.e[0]}A=S.s[0]}for(M=d._length,B=A.i[0].length,m.lastIndex=y,T=0;T<M;T+=1)for(F=0;F<B;F+=1)R=k?A.i[T][F]:A.i[T][F]+(_.i[T][F]-A.i[T][F])*L,d.i[T][F]=R,R=k?A.o[T][F]:A.o[T][F]+(_.o[T][F]-A.o[T][F])*L,d.o[T][F]=R,R=k?A.v[T][F]:A.v[T][F]+(_.v[T][F]-A.v[T][F])*L,d.v[T][F]=R}function r(){var b=this.comp.renderedFrame-this.offsetTime,d=this.keyframes[0].t-this.offsetTime,m=this.keyframes[this.keyframes.length-1].t-this.offsetTime,y=this._caching.lastFrame;return y!==e&&(y<d&&b<d||y>m&&b>m)||(this._caching.lastIndex=y<b?this._caching.lastIndex:0,this.interpolateShape(b,this.pv,this._caching)),this._caching.lastFrame=b,this.pv}function i(){this.paths=this.localShapeCollection}function a(b,d){if(b._length!==d._length||b.c!==d.c)return!1;var m,y=b._length;for(m=0;m<y;m+=1)if(b.v[m][0]!==d.v[m][0]||b.v[m][1]!==d.v[m][1]||b.o[m][0]!==d.o[m][0]||b.o[m][1]!==d.o[m][1]||b.i[m][0]!==d.i[m][0]||b.i[m][1]!==d.i[m][1])return!1;return!0}function o(b){a(this.v,b)||(this.v=shapePool.clone(b),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function s(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var b;this.kf?b=this.pv:this.data.ks?b=this.data.ks.k:b=this.data.pt.k;var d,m=this.effectsSequence.length;for(d=0;d<m;d+=1)b=this.effectsSequence[d](b);this.setVValue(b),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function l(b,d,m){this.propType="shape",this.comp=b.comp,this.container=b,this.elem=b,this.data=d,this.k=!1,this.kf=!1,this._mdf=!1;var y=m===3?d.pt.k:d.ks.k;this.v=shapePool.clone(y),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=i,this.effectsSequence=[]}function c(b){this.effectsSequence.push(b),this.container.addDynamicProperty(this)}l.prototype.interpolateShape=n,l.prototype.getValue=s,l.prototype.setVValue=o,l.prototype.addEffect=c;function u(b,d,m){this.propType="shape",this.comp=b.comp,this.elem=b,this.container=b,this.offsetTime=b.data.st,this.keyframes=m===3?d.pt.k:d.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var y=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,y),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=i,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[r.bind(this)]}u.prototype.getValue=s,u.prototype.interpolateShape=n,u.prototype.setVValue=o,u.prototype.addEffect=c;var f=function(){var b=roundCorner;function d(m,y){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=y.d,this.elem=m,this.comp=m.comp,this.frameId=-1,this.initDynamicPropertyContainer(m),this.p=PropertyFactory.getProp(m,y.p,1,0,this),this.s=PropertyFactory.getProp(m,y.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return d.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var y=this.p.v[0],A=this.p.v[1],_=this.s.v[0]/2,k=this.s.v[1]/2,T=this.d!==3,F=this.v;F.v[0][0]=y,F.v[0][1]=A-k,F.v[1][0]=T?y+_:y-_,F.v[1][1]=A,F.v[2][0]=y,F.v[2][1]=A+k,F.v[3][0]=T?y-_:y+_,F.v[3][1]=A,F.i[0][0]=T?y-_*b:y+_*b,F.i[0][1]=A-k,F.i[1][0]=T?y+_:y-_,F.i[1][1]=A-k*b,F.i[2][0]=T?y+_*b:y-_*b,F.i[2][1]=A+k,F.i[3][0]=T?y-_:y+_,F.i[3][1]=A+k*b,F.o[0][0]=T?y+_*b:y-_*b,F.o[0][1]=A-k,F.o[1][0]=T?y+_:y-_,F.o[1][1]=A+k*b,F.o[2][0]=T?y-_*b:y+_*b,F.o[2][1]=A+k,F.o[3][0]=T?y-_:y+_,F.o[3][1]=A-k*b}},extendPrototype([DynamicPropertyContainer],d),d}(),x=function(){function b(d,m){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=d,this.comp=d.comp,this.data=m,this.frameId=-1,this.d=m.d,this.initDynamicPropertyContainer(d),m.sy===1?(this.ir=PropertyFactory.getProp(d,m.ir,0,0,this),this.is=PropertyFactory.getProp(d,m.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(d,m.pt,0,0,this),this.p=PropertyFactory.getProp(d,m.p,1,0,this),this.r=PropertyFactory.getProp(d,m.r,0,degToRads,this),this.or=PropertyFactory.getProp(d,m.or,0,0,this),this.os=PropertyFactory.getProp(d,m.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return b.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var m=Math.floor(this.pt.v)*2,y=Math.PI*2/m,A=!0,_=this.or.v,k=this.ir.v,T=this.os.v,F=this.is.v,M=2*Math.PI*_/(m*2),B=2*Math.PI*k/(m*2),L,R,H,V,P=-Math.PI/2;P+=this.r.v;var I=this.data.d===3?-1:1;for(this.v._length=0,L=0;L<m;L+=1){R=A?_:k,H=A?T:F,V=A?M:B;var S=R*Math.cos(P),C=R*Math.sin(P),N=S===0&&C===0?0:C/Math.sqrt(S*S+C*C),w=S===0&&C===0?0:-S/Math.sqrt(S*S+C*C);S+=+this.p.v[0],C+=+this.p.v[1],this.v.setTripleAt(S,C,S-N*V*H*I,C-w*V*H*I,S+N*V*H*I,C+w*V*H*I,L,!0),A=!A,P+=y*I}},convertPolygonToPath:function(){var m=Math.floor(this.pt.v),y=Math.PI*2/m,A=this.or.v,_=this.os.v,k=2*Math.PI*A/(m*4),T,F=-Math.PI*.5,M=this.data.d===3?-1:1;for(F+=this.r.v,this.v._length=0,T=0;T<m;T+=1){var B=A*Math.cos(F),L=A*Math.sin(F),R=B===0&&L===0?0:L/Math.sqrt(B*B+L*L),H=B===0&&L===0?0:-B/Math.sqrt(B*B+L*L);B+=+this.p.v[0],L+=+this.p.v[1],this.v.setTripleAt(B,L,B-R*k*_*M,L-H*k*_*M,B+R*k*_*M,L+H*k*_*M,T,!0),F+=y*M}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],b),b}(),h=function(){function b(d,m){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=d,this.comp=d.comp,this.frameId=-1,this.d=m.d,this.initDynamicPropertyContainer(d),this.p=PropertyFactory.getProp(d,m.p,1,0,this),this.s=PropertyFactory.getProp(d,m.s,1,0,this),this.r=PropertyFactory.getProp(d,m.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return b.prototype={convertRectToPath:function(){var m=this.p.v[0],y=this.p.v[1],A=this.s.v[0]/2,_=this.s.v[1]/2,k=bmMin(A,_,this.r.v),T=k*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(m+A,y-_+k,m+A,y-_+k,m+A,y-_+T,0,!0),this.v.setTripleAt(m+A,y+_-k,m+A,y+_-T,m+A,y+_-k,1,!0),k!==0?(this.v.setTripleAt(m+A-k,y+_,m+A-k,y+_,m+A-T,y+_,2,!0),this.v.setTripleAt(m-A+k,y+_,m-A+T,y+_,m-A+k,y+_,3,!0),this.v.setTripleAt(m-A,y+_-k,m-A,y+_-k,m-A,y+_-T,4,!0),this.v.setTripleAt(m-A,y-_+k,m-A,y-_+T,m-A,y-_+k,5,!0),this.v.setTripleAt(m-A+k,y-_,m-A+k,y-_,m-A+T,y-_,6,!0),this.v.setTripleAt(m+A-k,y-_,m+A-T,y-_,m+A-k,y-_,7,!0)):(this.v.setTripleAt(m-A,y+_,m-A+T,y+_,m-A,y+_,2),this.v.setTripleAt(m-A,y-_,m-A,y-_+T,m-A,y-_,3))):(this.v.setTripleAt(m+A,y-_+k,m+A,y-_+T,m+A,y-_+k,0,!0),k!==0?(this.v.setTripleAt(m+A-k,y-_,m+A-k,y-_,m+A-T,y-_,1,!0),this.v.setTripleAt(m-A+k,y-_,m-A+T,y-_,m-A+k,y-_,2,!0),this.v.setTripleAt(m-A,y-_+k,m-A,y-_+k,m-A,y-_+T,3,!0),this.v.setTripleAt(m-A,y+_-k,m-A,y+_-T,m-A,y+_-k,4,!0),this.v.setTripleAt(m-A+k,y+_,m-A+k,y+_,m-A+T,y+_,5,!0),this.v.setTripleAt(m+A-k,y+_,m+A-T,y+_,m+A-k,y+_,6,!0),this.v.setTripleAt(m+A,y+_-k,m+A,y+_-k,m+A,y+_-T,7,!0)):(this.v.setTripleAt(m-A,y-_,m-A+T,y-_,m-A,y-_,1,!0),this.v.setTripleAt(m-A,y+_,m-A,y+_-T,m-A,y+_,2,!0),this.v.setTripleAt(m+A,y+_,m+A-T,y+_,m+A,y+_,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:i},extendPrototype([DynamicPropertyContainer],b),b}();function g(b,d,m){var y;if(m===3||m===4){var A=m===3?d.pt:d.ks,_=A.k;_.length?y=new u(b,d,m):y=new l(b,d,m)}else m===5?y=new h(b,d):m===6?y=new f(b,d):m===7&&(y=new x(b,d));return y.k&&b.addDynamicProperty(y),y}function v(){return l}function p(){return u}var E={};return E.getShapeProp=g,E.getConstructorFunction=v,E.getKeyframedConstructorFunction=p,E}();/*!
119
+ </span>`)}else e.format==="percent"?(W=+W,isNaN(W)||(W=(W*100).toFixed(2),D=D.replace(Y,`<span class="${H}" style="color:${y(W)||e.variableColor};font-size:${vue.unref(o)};${vue.unref(p)}">${W}%</span>`))):e.format==="money"?(W=+W,isNaN(W)||(W=formatMoney(W),D=D.replace(Y,`<span class="${H}" style="color:${y(W)||e.variableColor};font-size:${vue.unref(o)};${vue.unref(p)}">${W}</span>`))):Q==="thousands"?(W=+W,isNaN(W)||(W=formatThousands(W),D=D.replace(Y,`<span class="${H}" style="color:${y(W)||e.variableColor};font-size:${vue.unref(o)};${vue.unref(p)}">${W}</span>`))):D=D.replace(Y,`<span class="${H}" style="color:${y(W)||e.variableColor};font-size:${vue.unref(o)};${vue.unref(p)}">${W}</span>`)}}if(j||(j=`<span class="${H}" style="color: ${y(D)};${vue.unref(p)}">${D}</span>`),e.unitShow&&e.unitText){const{unitTop:G,unitLeft:Y}=e;let J="position:relative;";G&&(J+=`top:${G};`),Y&&(J+=`margin-left:${Y};`),j+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${J};${vue.unref(p)}'>${e.unitText}</span>`}return e.exceedConfig&&(j=`<span class="${H}" style="display: inline-block;color: ${y(j)};">${j}</span>`),j.includes("span")||(j=`<span class="${H}" style="color: ${y(j)};">${j}</span>`),j});function y(w){let R="",O=!1;const{targetValue:D,targetShow:q,notExpectColor:j}=e;if(q){switch(e.targetRule){case"equal":w!==D&&(O=!0);break;case"greater":w<=D&&(O=!0);break;case"greater_equal":w<D&&(O=!0);break;case"less":w>=D&&(O=!0);break;case"less_equal":w>D&&(O=!0);break}O&&(R=j)}return R}const{pageMode:A}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",requestList:[]}),{pageId:_}=vue.inject("templateOperate",{pageId:""})||{},k=useRequestData(e),T=vue.ref(!1),F=async()=>{var w,R,O;try{T.value=!0;const D=await k();(w=D==null?void 0:D.data)!=null&&w.data.rowsToData?l(((R=D==null?void 0:D.data)==null?void 0:R.data.rowsToData)||{}):l(((O=D==null?void 0:D.data)==null?void 0:O.data)||{})}catch(D){console.error(D)}finally{T.value=!1}},M=w=>{const R=e.id,O=c(R);u(R,{...O,value:w||"",RECORD:w||""})},B=()=>{M("")},L=w=>{var O,D;const{data:R}=(w==null?void 0:w.data)||{};if(R){r.value=!1;const{columns:q=[],rows:j=[]}=((O=w==null?void 0:w.data)==null?void 0:O.data)??{},{graphicConfig:H}=e;let K={};if(q.length>0)if((D=H==null?void 0:H.dimensionList)!=null&&D.length){const G=q[0];G&&(j!=null&&j.length)&&(K={value:j[0][G]})}else{const G=q.find(Y=>!!Y);G&&(K={value:isNaN(j[G])?0:j[G]||0})}M(K==null?void 0:K.value),l(K)}else r.value=!0,M("NaN"),l({value:"NaN"})},V=useIndicatorData(e,L),U=async()=>{try{T.value=!0;const w=await V();L(w)}catch(w){console.error(w)}finally{T.value=!1,h(e.id,!0)}},$=vue.ref(!1);vue.watch(g,w=>{if(e.dataType==="indicator"){const R=getFixedValueDatas(e.graphicConfig);R!=null&&R.length&&(!vue.unref($)&&canRequestIndicator(e.graphicConfig,w)?($.value=!0,P()):canRequestIndicator(e.graphicConfig,w)||($.value=!1))}},{deep:!0});const P=()=>{switch(e.dataType){case"indicator":U();break;case"request":{const{openCustomRequestData:w,customRequestName:R}=e;w||w===void 0?F():x(R,O=>{O&&(O.rowsToData?l(O.rowsToData):l(O))});break}}},{setRequest:I}=vue.inject(REQUEST_MODEL,{setRequest:({id:w,sortNum:R,requestFn:O})=>{}});typeof I=="function"&&I({id:e.id,requestFn:P,sortNum:e.requestSort}),n({refreshData:P});const E=useEmitEvent(e),S=E("click",()=>{const w=document.getElementsByClassName(`ecan-text_${e.id}`);w!=null&&w.length&&M(w[0].innerText),setTimeout(()=>{M("")},0),!(!e.linkPage&&!e.href)&&handleJumpLink(e,{pageMode:vue.unref(A),targetTemplate:e.targetTemplate,getRecordValueByKeyName:f,setTemplateData:v})}),N=E("valueChange",()=>{d.value++});return useOnEvent(e,{refreshData:P,resetRecord:B,click:S,valueChange:N}),vue.watch(()=>m.value,(w,R)=>{w!==R&&N()}),{style:i,myText:m,loading:T,click:S,textIndent:s,vFontSize:o,gradientStyle:C,cursorStyle:b}}}),__injectCSSVars__$4=()=>{vue.useCssVars(e=>({"404765ce":e.vFontSize,"78653df4":e.textIndent,"299ccd5e":e.percentageSide}))},__setup__$4=__default__$4.setup;__default__$4.setup=__setup__$4?(e,n)=>(__injectCSSVars__$4(),__setup__$4(e,n)):__injectCSSVars__$4;const Text_vue_vue_type_style_index_0_scoped_46af486b_lang="",Text_vue_vue_type_style_index_1_lang="",_hoisted_1$f=["innerHTML"];function _sfc_render$x(e,n,r,i,a,o){const s=vue.resolveComponent("skeleton");return e.loading?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:vue.normalizeStyle(e.style)},[vue.createVNode(s,{loading:e.loading},null,8,["loading"])],4)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:vue.normalizeClass(["ecan-text","ecan-text_"+e.id]),style:vue.normalizeStyle({...e.style,...e.gradientStyle,...e.cursorStyle}),innerHTML:e.myText,onClick:n[0]||(n[0]=(...l)=>e.click&&e.click(...l))},null,14,_hoisted_1$f))}const Text=_export_sfc$1(__default__$4,[["render",_sfc_render$x],["__scopeId","data-v-46af486b"]]),EcanText=withInstall$1(Text),_sfc_main$s=vue.defineComponent({name:"EcanScrollText",setup(){return{text:vue.ref("基础文本")}}}),ScrollText_vue_vue_type_style_index_0_scoped_4dd9c03e_lang="",_hoisted_1$e={class:"red"};function _sfc_render$w(e,n,r,i,a,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$e,vue.toDisplayString(e.text),1)}const ScrollText=_export_sfc$1(_sfc_main$s,[["render",_sfc_render$w],["__scopeId","data-v-4dd9c03e"]]),EcanScrollText=withInstall$1(ScrollText),timeDisplayProps={...props,name:"时间展示",keyName:"时间展示",type:"ecanTimeDisplay",format:"YYYY-MM-DD dddd HH:mm:ss",fontSize:"16px",color:"#333",width:"240px",height:"40px",fontFamily:"",fontWeight:400,textShadow:"",alignItems:"center",justifyContent:"center",operate:null,updateInterval:{value:1,mode:"second"}},timeDisplayComponentProps=transformToComponentProps(timeDisplayProps),timeDisplayEvents=["timeChange"],_sfc_main$r=vue.defineComponent({name:"EcanTimeDisplay",props:{...timeDisplayComponentProps},setup(e){const{pageMode:n}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),r=usePickComponentStyle(e),i=()=>{const{format:f,operate:x}=e;let h=dayjs();if(x){const{type:g,value:v,mode:p}=x;switch(g){case"add":h=h.add(v,p);break;case"minus":h=h.subtract(v,p)}}return h.format(f)},a=vue.ref();vue.watch(()=>[e.operate,e.format],()=>{a.value=i()},{immediate:!0,deep:!0}),vue.watch(()=>e.updateInterval,()=>{u()},{deep:!0});let o=null;const s=()=>{clearInterval(o),o=null},c=useEmitEvent(e)("timeChange",()=>{}),u=()=>{o&&s();let f=1e3;const{value:x,mode:h}=e.updateInterval||{};x&&(f=f*x);const g={second:1,minute:60,hour:60*60,day:24*60*60};h&&(f=f*g[h]),o=setInterval(()=>{a.value=i(),vue.unref(n)!=="design"&&c()},f)};return useOnEvent(e,{timeChange:c}),vue.onMounted(()=>{u()}),vue.onUnmounted(()=>{s()}),{style:r,time:a}}}),TimeDisplay_vue_vue_type_style_index_0_scoped_b9216314_lang="";function _sfc_render$v(e,n,r,i,a,o){return vue.openBlock(),vue.createElementBlock("div",{class:"time-display",style:vue.normalizeStyle(e.style)},vue.toDisplayString(e.time),5)}const TimeDisplay=_export_sfc$1(_sfc_main$r,[["render",_sfc_render$v],["__scopeId","data-v-b9216314"]]),EcanTimeDisplay=withInstall$1(TimeDisplay),listProps={...props,type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#0d215e",itemColSpan:"0px",itemRowSpan:"10px",itemPadding:"20px",useRanking:!1,useTitle:!1,sliceCount:6,columnCount:1,itemHeight:"32px",data:[{name:"a",age:12},{name:"b",age:14}],columns:[{key:"name"},{key:"age"}],seqIcon:!1,isUseSeq:!1,seqWidth:"10%",seqName:"序号",seqFontSize:"14px",isAutoScroll:!1,scrollSpeed:10,graphicConfig:{},seqIconWidth:"",seqIconHeight:"",seqIconConfig:[],seqIconOffsetX:0,seqIconOffsetY:0,seqIndexFormatter:"{index}",itemWidth:"100%"},listComponentProps=transformToComponentProps(listProps),listEvents=["refreshData","click","resetRecord"],seqIcon4="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAWhJREFUSEvNlz9Lw0AYxp/3iJ2TgqN+ia5ihbb0A/hnEXG3QxHEyUkQVwcHwU3cgoI4hHKXUnQS3Z0VQVBwbTVtXrlciyKmLo2XmxI47v3x3HPvPUdcKk3B85og2gYwjUkOIoD5CcAeSXk0bmniSqWJQuEA/f4kEb7WMjD6f42kPE0rQlyrPYJoZjg5O5g4voDnrZDvf/xWRIMkuJkOo8odXHeefL9rG+QWrlvOA8gNomiBOp2ePUVM5S7iuE5heG0bBNBeieMdKLWvv74D/Y9Zf0rAfEZKLdkHEUIrcw8h5qjVetNAdhRJKidH+nnY6EJ7IKN9YY4ANPIAou+WDXsgZmtewLxKSik7ICOzOk6ZguDVplnPScpFe8c3Jw2th8GgTu32lb0Wb4yZg0vPgOQmBvwRjKrVBwgxm3lUZL6E4yxTELyneaQBxznMPDwzr5NSJ+nhWT8nisVNAFuZPSeYd0mp43G5+BNp2sfxEUU29gAAAABJRU5ErkJggg==",seqIcon5="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAbVJREFUSEvNl7tKA1EQhmfOyd6ClikVLHwCWzHb5QHUbWIStVRQBLGyEEFsLSwUq6idKIiFjZdNUgTR3k7wAoqC2GU3mz0ju5uIRaKN68l5gDMfM//M/IO0PaS4yd55ErTEEFMEf/cYIvgknjjgmpq3t376GZ2iOa8l+Ybn+CD+kqIZlSFA+C1CTpuw9zvBYK2YfuCM9QmKgaIZNcEQGj4da0bKQuug3g4G3T2TYmQIYwYlIqIbVXdH0KrW2oI4u2Z8qfgqT6AVutZ1Ny0VhAelEXSl+2DilO1IywhCKNgaR8oouVJFGkikk0grvqBl9c5cx5UV8R0I/0MjbTJwqOftMekgmsLA9fxbTa8Po1V9D8eMpIyAwhE8n55JYM6YvDyXBhIN21DEHgHNdgNIg4BmpIEEpak3xGsCMKsU7DMpIC2xeg2R7p2uvMkTK9GRXiiNSmnfrhhoYXcQODzBMkr2oixtxLeW3osP5oDMpRdZxl9sQNcYo1oxfc8Z64/dKgo6efwwxgfnTt1OGpnVDL4Zp3mOAouCmivvdjTPwTlRN3oWBMFiHOeEIPFEAKtGvrTz0znxCSDl9ZPnj4lKAAAAAElFTkSuQmCC",seqIcon6="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAZhJREFUSEvNl79LY0EUhb87L6uwkHSieRjBwm7/ApHVbcwzrT8ake21EGHZympBbLewEOxk2xVEBAVttBLtrRWTiLtaiTHue3NlsgiKRiwSJ1NOMffjzLl3zghH+oHL81ms/Y4xHajSsGUMJMkZIgtE4fJr5wqbpVnS6Z9UrmkoxENVMYCC6BTD4a96MMJW8RQT5LC2YUI8OygInDLrdGcn+CR3LxUStsvaFCUeV3NXpPaIdPKZ/lzlZZCtUgNNUUdUB2LtIZlksBVADmivDvGl99afIiLOsBWUPFG47w/EVXbdU7uieJ7h7CIiT7pDeA+PPJfgN1E49njbD0hbO9xVj8kkA/TnrmqCeVIEUimI4zJqphjp2vUHUpPBmZh/JDrjH0Q1xjLtDyRIQRJfQDBJ1LnjB+TBrFYGKWT/+DTrGlE46qd9W2Kgue5QvUXIkw/3/I34/69vCzx6b4oBrROMiieYoKfpUTGON9CbcQp91ToeKc7wMbPU9PCsfCXKrtYPz+478fd8DtVvGGnOd0LlB4Vw5bV0fg/E2Mcb2D1RagAAAABJRU5ErkJggg==",seqIcon7="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAapJREFUSEvNl88rBGEYx7/P7K6yO2VGOfJPuAqF/AGYi7Q7y8mWTcnJQUquDg4kVnITJQdpZyVOsndXtKUoM4vyY3feR7OLiN0cjHff05ze7+d95vs+7/chtC6FGvRQkgiTBGrCXy4igEVOgGbzaXOx2takdaWSSl39PBefAPBfYpT3KsF4H2LITsc3KgmQ3pO6BFEz2AeId1VSwELsOHrEwKbx8hMM6T1r7EslPqsReefMqlq4PbdpPFYASflYijfJEgifqlqkQzKIArB7YheoE4emZ8Zvy/OI/xUpyz5CoNfOmMeSQah8gwRP2db5HDAtvtjoHyvyocuMLccy+6WDkBICi+KZq4Tb7vaN21K7kVGRcqMLeAa+EqChfDqWkQfy9l+YUWAgUQMgXGTQqDwQCoDZvWZWBvNW1JIC8m7WQlB0POzFb6SZlYFtJ232Sbq+tdPQnth1e52DkSN5LZ5q5dH7XQz4r2AksqqmVglG3asXUJQWv6MiWOzawfsB7I09V/DISoKCkQW/wzMzoo4VW68YnkvjRGNonEATBPgzTjDP5K3h5Wojwitkj93H9BVpxQAAAABJRU5ErkJggg==",_sfc_main$q=vue.defineComponent({name:"EcanList",components:{Skeleton,ATooltip:antDesignVue.Tooltip,MarqueeScroll},props:{...listComponentProps},setup(e,{expose:n}){const r=vue.ref(),i=usePickComponentStyle(e,["backgroundColor"]),a=(I,E)=>{const{format:S,customFormatter:N}=E;if(S==null||S==="")return I;const w={money:formatMoney,percentage:formatPercentage,contrast:formatPercentage,custom:formatCustom};return w[S]?S==="custom"?w[S](I,N)||"":w[S](I)||"":""},o=(I,E)=>{const S=parseFloat(I+"");if(E!=="contrast")return"";switch(!0){case S>=0:return"goUp";case S<0:return"goDown"}},s=useRequestData(e),l=vue.ref(!1),c=async()=>{var I;if(e.dataType==="request")try{l.value=!0;const E=await s();r.value=((I=E==null?void 0:E.data)==null?void 0:I.data.rows)||[]}catch(E){console.error(E)}finally{l.value=!1}};vue.watch(()=>e.data,()=>{(e.dataType==="static"||!vue.unref(r))&&(r.value=e.data)},{immediate:!0,deep:!0});const u=vue.computed(()=>({key:"SEQ",width:e.seqWidth,title:e.seqName,align:"center",fontSize:e.seqFontSize})),f=vue.computed(()=>{const{columns:I,isUseSeq:E}=e;return E?[vue.unref(u),...I]:I}),x=I=>{var N;const{columns:E=[],rows:S=[]}=((N=I==null?void 0:I.data)==null?void 0:N.data)??{};e.isUseSeq&&E.unshift(e.seqName),f.value.forEach((w,R)=>{(!e.isUseSeq||R!==0)&&(w.title=E[R],w.key=E[R])}),r.value=S},h=useIndicatorData(e,x),g=async()=>{try{l.value=!0;const I=await h();x(I)}catch(I){console.error(I)}finally{l.value=!1}},v=()=>{switch(e.dataType){case"indicator":g();break;case"request":c();break}},p=useEmitEvent(e),{getGlobalModel:C,setGlobalModel:b}=vue.inject(GLOBAL_MODEL,{getGlobalModel:I=>{},setGlobalModel:(I,E)=>{}}),d=I=>{p("click",()=>{const E=C(e.id);b(e.id,{...E,type:e.type,RECORD:I})})()};useOnEvent(e,{refreshData:v,resetRecord:()=>{const I=e.id,E=C(I);b(I,{...E,type:e.type,RECORD:""})}});const{setRequest:y}=vue.inject(REQUEST_MODEL,{setRequest:({id:I,sortNum:E,requestFn:S})=>{}});typeof y=="function"&&y({id:e.id,requestFn:v,sortNum:e.requestSort}),n({refreshData:v});const A=(I,E)=>({flex:I.width?"none":"1",width:I.width,height:e.itemHeight,lineHeight:e.itemHeight,textAlign:(E?I.cellAlign:I.align)||"left",backgroundColor:I.cellColor}),_=(I,E)=>{let S=0;const N=vue.unref(r).map(R=>R[E]),w=Math.max(...N);return w&&(S=I[E]/w*100),S},k=I=>{const{progressColor:E="#1890ff",progressGradientColor:S=""}=I;return S?{background:`linear-gradient(to right, ${E} 0%, ${S} 100%)`}:{backgroundColor:E||"#1890ff"}},T=vue.computed(()=>{const I=parseFloat(e.seqFontSize)+5;return{width:I+10,height:I}}),{pageMode:F}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),M=vue.computed(()=>vue.unref(F)!=="design"&&e.isAutoScroll),B=I=>{const{seqIconConfig:E}=e;let S=E.find(N=>N.key===I+1);return S||(S=E.find(N=>N.key==="other")),!!(S!=null&&S.icon)},L=(I,E)=>{const{seqIconConfig:S}=e;let N=S.find(w=>w.key===I+1);return N||(N=S.find(w=>w.key==="other")),E===1?N!=null&&N.icon?useImagePath(N.icon):"":E===2?(N==null?void 0:N.color)||"#fff":""},V=I=>{const{seqIndexFormatter:E}=e,S=I+1;return E?useVariablesInText(E,{textData:{index:S}},{useNewline:!1,useSpace:!0}):S},U=vue.computed(()=>parseFloat(e.itemWidth)!==100?{height:"100%"}:{}),$=vue.computed(()=>!e.itemWidth||e.itemWidth==="100%"?"0":e.itemColSpan);return{style:i,formatFn:a,contrastClass:o,dataSource:r,loading:l,myColumns:f,click:d,getColumnStyle:A,getPercentage:_,getBackgroundColor:k,isShowSeqIcon:B,getSeqIconData:L,seqIcon4,seqIcon5,seqIcon6,seqIcon7,iconSize:T,isScroll:M,formatSeq:V,wrapStyle:U,colSpan:$,getText:(I,E)=>(I.format!=null||I.format!=="")&&a(E[I.key],I)}}}),List_vue_vue_type_style_index_0_scoped_5ba2950a_lang="",List_vue_vue_type_style_index_1_lang="",_withScopeId$4=e=>(vue.pushScopeId("data-v-5ba2950a"),e=e(),vue.popScopeId(),e),_hoisted_1$d={key:0,class:"title"},_hoisted_2$6={key:0,class:"ranking"},_hoisted_3$2=["onClick"],_hoisted_4$2={key:0,class:"ranking"},_hoisted_5$2=_withScopeId$4(()=>vue.createElementVNode("div",{class:"icon"},null,-1)),_hoisted_6$2={class:"sort"},_hoisted_7$2=["src"],_hoisted_8$2={key:1},_hoisted_9$2=["src","width","height"],_hoisted_10$2=["src","width","height"],_hoisted_11$2=["src","width","height"],_hoisted_12$2=["src","width","height"],_hoisted_13$2={key:1},_hoisted_14$2=["title"],_hoisted_15$2={key:2,class:"empty"};function _sfc_render$u(e,n,r,i,a,o){const s=vue.resolveComponent("a-tooltip"),l=vue.resolveComponent("marquee-scroll"),c=vue.resolveComponent("skeleton");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-list",style:vue.normalizeStyle(e.style)},[vue.createVNode(c,{loading:e.loading},{default:vue.withCtx(()=>[e.useTitle?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$d,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.columnCount,u=>(vue.openBlock(),vue.createElementBlock("div",{class:"title-inner",style:vue.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1}/ ${e.columnCount})`,marginRight:u%e.columnCount!==0?e.itemColSpan:"",padding:`0 ${e.itemPadding}`}),key:u},[e.useRanking?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$6)):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.myColumns,(f,x)=>(vue.openBlock(),vue.createElementBlock("div",{class:"column",key:f.key||x,style:vue.normalizeStyle({color:f.titleColor,fontSize:f.fontSize,...e.getColumnStyle(f)})},vue.toDisplayString(f.title),5))),128))],4))),128))])):vue.createCommentVNode("",!0),e.dataSource.length>0?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"ecan-list-content",style:vue.normalizeStyle({paddingTop:e.useTitle?e.itemRowSpan:0,height:e.useTitle?"calc(100% - 40px)":"100%"})},[vue.createVNode(l,{visible:e.isScroll,step:e.scrollSpeed,wrapStyle:{display:"flex",flexDirection:"column",flexWrap:"wrap",...e.wrapStyle}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.dataSource.slice(0,e.sliceCount),(u,f)=>(vue.openBlock(),vue.createElementBlock("div",{class:"item",style:vue.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(${e.itemWidth} - ${e.colSpan})`,marginRight:e.colSpan,marginBottom:e.itemRowSpan,padding:`0 ${e.itemPadding}`}),key:u.id||f,onClick:x=>e.click(u)},[e.useRanking?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$2,[_hoisted_5$2,vue.createElementVNode("div",_hoisted_6$2," Top "+vue.toDisplayString(f+1),1)])):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.myColumns,x=>{var h;return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["column",e.contrastClass(u[x.key],x.format),x.key==="SEQ"?"seq-column":""]),key:x.key,style:vue.normalizeStyle({fontSize:x.fontSize,color:e.contrastClass(u[x.key],x.format)===""?x.color:"",fontWeight:x.fontWeight,...e.getColumnStyle(x,"cell")})},[x.key==="SEQ"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[e.seqIcon?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[(h=e.seqIconConfig)!=null&&h.length?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"icon-box",style:vue.normalizeStyle({width:e.seqIconWidth||"",height:e.seqIconHeight||""})},[e.seqIconWidth&&e.seqIconHeight&&e.isShowSeqIcon(f)?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"custom-seq-icon",src:e.getSeqIconData(f,1),style:vue.normalizeStyle({width:e.seqIconWidth,height:e.seqIconHeight})},null,12,_hoisted_7$2)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:"custom-seq-text",style:vue.normalizeStyle({fontSize:e.seqFontSize,color:e.getSeqIconData(f,2),lineHeight:e.seqIconHeight||"",left:e.seqIconOffsetX,top:e.seqIconOffsetY})},vue.toDisplayString(e.formatSeq(f)),5)],4)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_8$2,[f===0?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon4,width:e.iconSize.width,height:e.iconSize.height},null,8,_hoisted_9$2)):f===1?(vue.openBlock(),vue.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon5,width:e.iconSize.width,height:e.iconSize.height},null,8,_hoisted_10$2)):f===2?(vue.openBlock(),vue.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon6,width:e.iconSize.width,height:e.iconSize.height},null,8,_hoisted_11$2)):f>=3?(vue.openBlock(),vue.createElementBlock("img",{key:3,class:"seq-icon",src:e.seqIcon7,width:e.iconSize.width,height:e.iconSize.height},null,8,_hoisted_12$2)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:"seq-icon seq-text",style:vue.normalizeStyle({fontSize:e.seqFontSize})},vue.toDisplayString(e.formatSeq(f)),5)]))],64)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_13$2,vue.toDisplayString(e.formatSeq(f)),1))],64)):x.format==="progress"?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"progress-cell",style:vue.normalizeStyle({height:e.itemHeight})},[vue.createElementVNode("div",{class:"progress",style:vue.normalizeStyle({height:x.progressWidth||"14px",backgroundColor:x.progressBaseColor})},[vue.createVNode(s,{title:u[x.key],overlayClassName:"ecan-list-tooltip",color:"#fff"},{default:vue.withCtx(()=>[vue.createElementVNode("div",{style:vue.normalizeStyle({borderRadius:"10px",height:x.progressWidth||"14px",width:`${e.getPercentage(u,x.key)}%`,...e.getBackgroundColor(x)})},null,4)]),_:2},1032,["title"])],4)],4)):(vue.openBlock(),vue.createElementBlock("span",{key:2,title:e.getText(x,u)},vue.toDisplayString(e.getText(x,u)),9,_hoisted_14$2))],6)}),128))],12,_hoisted_3$2))),128))]),_:1},8,["visible","step","wrapStyle"])],4)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_15$2," 暂无数据 "))]),_:1},8,["loading"])],4)}const List=_export_sfc$1(_sfc_main$q,[["render",_sfc_render$u],["__scopeId","data-v-5ba2950a"]]),EcanList=withInstall$1(List),proportionProps={...props,name:"占比图",keyName:"占比图",type:"ecanProportion",strokeType:"circle",width:"200px",height:"200px",strokeColor:"#4091f7",strokeLinecap:"round",trailColor:"#f5f5f5",data:{percent:.3},text:"{percent}{%}",fontSize:"26px",color:"#4091f7",variableColor:"#4091f7",strokeWidth:6,fontWeight:400,strokeTextWidth:"100%",lineHeight:"26px",decimalFormat:!0,variableDefaultValue:"0",strokeTextShow:!0,gradientShow:!0,gradientColor:"",gradientOffset:1,graphicConfig:{}},proportionComponentProps=transformToComponentProps(proportionProps),proportionEvents=["refreshData","click"],_sfc_main$p=vue.defineComponent({name:"EcanProportion",components:{AProgress:antDesignVue.Progress,Skeleton},props:{...proportionComponentProps},setup(e,{expose:n}){const r=vue.ref(!1),{pageMode:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),a=usePickComponentStyle(e),o=vue.computed(()=>{const A=e.width;return parseFloat(A)}),s=vue.ref({});vue.watch(()=>e.data,()=>{(e.dataType==="static"||vue.unref(i)==="design")&&(s.value=e.data)},{immediate:!0,deep:!0});const l=vue.computed(()=>{const A=vue.unref(s),_=+e.variableDefaultValue;if(A==null)return isNaN(_)?0:_;const k=e.text.match(/\{(.+?)\}/g)||[];let T;const F=new Set(Object.keys(A));for(let M=0;M<k.length;M++){const B=k[M],L=B.slice(1,B.length-1);if(F.has(L)){T=A[L];break}}return typeof T=="number"?T=T*100:typeof T=="string"&&!isNaN(+T)?T=+T*100:isNaN(_)?T=0:T=_*100,e.decimalFormat&&(T=+T.toFixed(2)),T}),c=vue.computed(()=>{var F;let A=e.text;if(A==="")return vue.unref(l);const _=e.variableDefaultValue,k=vue.unref(s),T=A.match(/\{(.+?)\}/g)||[];for(let M=0;M<T.length;M++){const B=T[M];let L=B.slice(1,B.length-1);const V=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,U=B.match(V);for(let P=0;P<(U==null?void 0:U.length);P++){const I=(F=U[P])==null?void 0:F.trim();k[I]!=null&&(L=L.replace(I,k[I]))}let $=L;try{(/\(.*\)/g.test(L)||/[+/\\*]/g.test(L))&&($=runCode(L))}catch(P){console.error(P)}typeof+$=="number"&&!isNaN(+$)?($=+$*100,e.decimalFormat&&($=$.toFixed(2))):typeof $!="string"&&($=_),A=A.replace(B,`<span style="color: ${e.variableColor};">${$+""}</span>`)}return A=A==null?void 0:A.replace(/\n|\\n/g,"<br/>"),vue.unref(r)?"NaN":A}),u=useRequestData(e),f=vue.ref(!1),x=async()=>{var A,_,k,T,F;if(e.dataType==="request")try{f.value=!0;const M=await u();s.value=((A=M==null?void 0:M.data)==null?void 0:A.data)||{},(k=(_=M==null?void 0:M.data)==null?void 0:_.data)!=null&&k.rowsToData&&(s.value=((F=(T=M==null?void 0:M.data)==null?void 0:T.data)==null?void 0:F.rowsToData)||{})}catch(M){console.error(M)}finally{f.value=!1}},h=(A={})=>{s.value=A},g=A=>{var k;const{data:_}=(A==null?void 0:A.data)||{};if(_){r.value=!1;const{columns:T=[],rows:F=[]}=((k=A==null?void 0:A.data)==null?void 0:k.data)??{};let M={};if(T.length>0){const B=T.find(L=>!!L);B&&(M={percent:F[B]})}h(M)}else r.value=!0,h({percent:"NaN"})},v=useIndicatorData(e,g),p=async()=>{try{f.value=!0;const A=await v();g(A)}catch(A){console.error(A)}finally{f.value=!1}},C=()=>{switch(e.dataType){case"indicator":p();break;case"request":x();break}};useOnEvent(e,{refreshData:C}),n({refreshData:C});const d=useEmitEvent(e)("click",()=>{}),{setRequest:m}=vue.inject(REQUEST_MODEL,{setRequest:({id:A,sortNum:_,requestFn:k})=>{}});typeof m=="function"&&m({id:e.id,requestFn:C,sortNum:e.requestSort});const y=vue.computed(()=>{const{gradientShow:A,gradientColor:_,gradientOffset:k,strokeColor:T}=e;let F=T;return A&&(F={"0%":T||"transparent",[`${k*100}%`]:_||"transparent"}),F});return{style:a,myWidth:o,text:c,myValue:l,loading:f,click:d,customStrokeColor:y}}}),Proportion_vue_vue_type_style_index_0_scoped_66e28f38_lang="",_hoisted_1$c=["innerHTML"];function _sfc_render$t(e,n,r,i,a,o){const s=vue.resolveComponent("skeleton"),l=vue.resolveComponent("a-progress");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-proportion",style:vue.normalizeStyle(e.style)},[vue.createVNode(l,{class:vue.normalizeClass(["progress",e.gradientShow?"gradient":""]),percent:e.myValue,width:e.myWidth,type:e.strokeType,strokeColor:e.customStrokeColor,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor||"transparent",strokeWidth:e.strokeWidth,showInfo:e.strokeTextShow,gapDegree:e.strokeType==="dashboard"?75:0,onClick:e.click},{format:vue.withCtx(()=>[e.loading?(vue.openBlock(),vue.createBlock(s,{key:0,loading:e.loading},null,8,["loading"])):e.strokeTextShow?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"format",style:vue.normalizeStyle({width:e.strokeTextWidth,fontSize:e.fontSize,color:e.color,fontWeight:e.fontWeight,lineHeight:e.lineHeight})},[vue.createElementVNode("span",{style:{"white-space":"nowrap"},innerHTML:e.text},null,8,_hoisted_1$c)],4)):vue.createCommentVNode("",!0)]),_:1},8,["class","percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","showInfo","gapDegree","onClick"])],4)}const Proportion=_export_sfc$1(_sfc_main$p,[["render",_sfc_render$t],["__scopeId","data-v-66e28f38"]]),EcanProportion=withInstall$1(Proportion),counterProps={...props,name:"计数器",type:"ecanCounter",keyName:"计数器",width:"400px",height:"80px",zIndex:0,digits:5,counterBackgroundImage:"",color:"#333",unitInterval:15,fontSize:"20px",fontWeight:700,fontStyle:"normal",unitWidth:"65px",unitHeight:"72px",data:"",graphicConfig:{}},counterComponentProps=transformToComponentProps(counterProps),counterEvents=["refreshData","click","resetRecord"],_sfc_main$o=vue.defineComponent({name:"EcanCounter",components:{Skeleton},props:{...counterComponentProps},setup(e,{expose:n}){const r=vue.ref(),i=usePickComponentStyle(e),a=vue.computed(()=>({width:e.unitWidth,height:e.unitHeight,marginRight:e.unitInterval+"px"})),o=vue.computed(()=>({color:e.color,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle}));vue.watch(()=>[e.data,e.dataType],([y,A])=>{A==="static"&&(r.value=y)},{immediate:!0});const{getGlobalModel:s,setGlobalModel:l}=vue.inject(GLOBAL_MODEL,{getGlobalModel:y=>{},setGlobalModel:(y,A)=>{}}),u=useEmitEvent(e)("click",()=>{const y=s(e.id);l(e.id,{...y,type:e.type,value:vue.unref(r)})}),f=()=>{const y=e.id,A=s(y);l(y,{...A,type:e.type,value:""})},x=useRequestData(e),h=vue.ref(!1),g=async()=>{var y,A;try{h.value=!0;const _=await x();r.value=((A=(y=_==null?void 0:_.data)==null?void 0:y.data)==null?void 0:A.value)||""}catch(_){console.error(_)}finally{h.value=!1}},v=y=>{var k;const{data:A}=(y==null?void 0:y.data)||{};let _="";if(A){const{columns:T=[],rows:F=[]}=((k=y==null?void 0:y.data)==null?void 0:k.data)??{};if(T.length>0){const M=T.find(B=>!!B);M&&(_=F[M]||"")}}r.value=String(_)},p=useIndicatorData(e,v),C=async()=>{try{h.value=!0;const y=await p();v(y)}catch(y){console.error(y)}finally{h.value=!1}},b=()=>{switch(e.dataType){case"indicator":C();break;case"request":g();break}},d=vue.computed(()=>{const y=[],{digits:A}=e,_=vue.unref(r)?vue.unref(r).split("").reverse().join(""):"";for(let k=0;k<A;k++)_&&_[k]?y.push(_[k]):y.push("0");return y.reverse()});useOnEvent(e,{refreshData:b,resetRecord:f});const{setRequest:m}=vue.inject(REQUEST_MODEL,{setRequest:({id:y,sortNum:A,requestFn:_})=>{}});return typeof m=="function"&&m({id:e.id,requestFn:b,sortNum:e.requestSort}),n({refreshData:b}),{style:i,valueList:d,digitsStyle:a,fontStyle:o,loading:h,useImagePath,click:u}}}),Counter_vue_vue_type_style_index_0_scoped_82bd9070_lang="",_hoisted_1$b=["src"];function _sfc_render$s(e,n,r,i,a,o){var l;const s=vue.resolveComponent("skeleton");return e.loading?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:vue.normalizeStyle(e.style)},[vue.createVNode(s,{loading:e.loading},null,8,["loading"])],4)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"ecan-counter",style:vue.normalizeStyle(e.style),onClick:n[0]||(n[0]=(...c)=>e.click&&e.click(...c))},[(l=e.valueList)!=null&&l.length?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:0},vue.renderList(e.valueList,(c,u)=>(vue.openBlock(),vue.createElementBlock("div",{class:"digits-item",style:vue.normalizeStyle(e.digitsStyle),key:u},[e.counterBackgroundImage?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"item-image",src:e.useImagePath(e.counterBackgroundImage)},null,8,_hoisted_1$b)):vue.createCommentVNode("",!0),vue.createElementVNode("div",{class:"item-text",style:vue.normalizeStyle(e.fontStyle)},vue.toDisplayString(c),5)],4))),128)):vue.createCommentVNode("",!0)],4))}const Counter=_export_sfc$1(_sfc_main$o,[["render",_sfc_render$s],["__scopeId","data-v-82bd9070"]]),EcanCounter=withInstall$1(Counter),inputProps={...props,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px"},inputComponentProps=transformToComponentProps(inputProps),inputEvents=["inputChange","inputBlur"],_sfc_main$n=vue.defineComponent({name:"EcanInput",components:{AInput:antDesignVue.Input},props:{...inputComponentProps},setup(e){const n=usePickComponentStyle(e),r=vue.ref(""),{getGlobalModel:i,setGlobalModel:a,getRecordValueByKeyName:o}=vue.inject(GLOBAL_MODEL,{getGlobalModel:f=>{},setGlobalModel:(f,x)=>{},getRecordValueByKeyName:f=>{}});vue.watch(()=>e.value,f=>{r.value=o(f)},{immediate:!0}),a(e.id,{type:e.type,value:r});const s=()=>{const f=i(e.id);a(e.id,{...f,RECORD:r})},l=useEmitEvent(e),c=lodashEs.debounce(l("inputChange",()=>{s()}),300),u=l("inputBlur",()=>{});return{style:n,myValue:r,inputBlur:u,inputChange:c}}}),Input_vue_vue_type_style_index_0_lang="";function _sfc_render$r(e,n,r,i,a,o){const s=vue.resolveComponent("a-input");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-input",style:vue.normalizeStyle(e.style)},[vue.createVNode(s,{class:"input",value:e.myValue,"onUpdate:value":n[0]||(n[0]=l=>e.myValue=l),placeholder:e.placeholder,onChange:e.inputChange,onBlur:e.inputBlur,style:vue.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","placeholder","onChange","onBlur","style"])],4)}const Input=_export_sfc$1(_sfc_main$n,[["render",_sfc_render$r]]),EcanInput=withInstall$1(Input),datePickerProps$1={...props,height:"33px",width:"130px",id:"",left:"0px",top:"0px",name:"日期选择器",keyName:"日期选择器",rotate:"",type:"ecanDatePicker",value:"",picker:"date",format:"YYYY-MM-DD",showTime:!1,useCurrentTime:!0,operate:null,optionFontSize:"14px"},datePickerComponentProps=transformToComponentProps(datePickerProps$1),datePickerEvents=["dateChange"],__default__$3=vue.defineComponent({name:"EcanDatePicker",props:{...datePickerComponentProps},components:{ADatePicker:antDesignVue.DatePicker,AInput:antDesignVue.Input,CalendarOutlined:CalendarOutlined$1,CloseCircleFilled:CloseCircleFilled$1},setup(e){const n=vue.inject("isMobile",!1),r=vue.inject("scaleValue",{widthScale:"1",heightScale:"1"}),i=usePickComponentStyle(e),a=()=>document.getElementById("ProviderConfig")||document.body,o=vue.ref(null),s=vue.ref(""),l=vue.ref(!1),c=vue.ref([]),u=vue.computed(()=>{let T=["year","month","day"];switch(e.picker){case"year":T=["year"];break;case"month":T=["year","month"];break}return T});vue.watch(()=>[e.value,e.useCurrentTime,e.operate],([T,F,M])=>{let B=null;if(T?B=dayjs(useVariablesInText(T)):F&&(B=dayjs()),M&&B){const{type:L,value:V,mode:U}=M;switch(L){case"add":B=B.add(V,U);break;case"minus":B=B.subtract(V,U)}}o.value=B,vue.unref(n)&&_(B)},{deep:!0,immediate:!0});const{setGlobalModel:f}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(T,F)=>{}}),{pageId:x}=vue.inject("templateOperate",{pageId:""})||{};f(e.id,{type:e.type,format:e.format,useCurrentTime:e.useCurrentTime,value:o});const g=useEmitEvent(e)("dateChange",()=>{const T=getNewValueFromUrlParams(x,e.keyName,"value");T&&(o.value=dayjs(T))}),v=()=>{vue.unref(o)&&g()};useOnEvent(e,{dateChange:g});const p=vue.ref({}),C=vue.ref({}),b=T=>{T?setTimeout(()=>{C.value=vue.unref(p)},300):C.value={}};vue.onMounted(()=>{setTimeout(()=>{const T=document.querySelector(`#ecan-date-picker-${e.id}`);if(T){const F=T.getBoundingClientRect(),M=parseFloat(vue.unref(r).widthScale)*280;document.body.clientWidth-F.left<M&&(p.value.marginLeft=-1*(M-F.width)+"px")}},0)});const d=()=>{_(vue.unref(o)),l.value=!0},m=()=>{_(),o.value=null},y=()=>{const T=dayjs(vue.unref(c).join("-"));o.value=T,_(T),l.value=!1,v()},A=()=>{o.value=dayjs(),_(),s.value=dayjs().format(e.format),l.value=!1};function _(T){c.value=k(T||dayjs()),s.value=(T==null?void 0:T.format(e.format))||""}function k(T){const F=[];for(const M of vue.unref(u))M==="day"?F.push(T.date()):F.push(T[M]()+(M==="month"?1:0));return F}return{style:i,getPopupContainer:a,myValue:o,locale,change:v,scaleValue:r,popupStyle:p,customStyle:C,openChange:b,isMobile:n,mobileDateStr:s,handleClearDate:m,openDatePick:d,datePickVisible:l,columnsType:u,mobileDate:c,onConfirmDate:y,onCancelDate:A}}}),__injectCSSVars__$3=()=>{vue.useCssVars(e=>({"20f8c88c":e.optionFontSize}))},__setup__$3=__default__$3.setup;__default__$3.setup=__setup__$3?(e,n)=>(__injectCSSVars__$3(),__setup__$3(e,n)):__injectCSSVars__$3;const DatePicker_vue_vue_type_style_index_0_scoped_88b266c2_lang="",DatePicker_vue_vue_type_style_index_1_lang="",_hoisted_1$a=["id"];function _sfc_render$q(e,n,r,i,a,o){const s=vue.resolveComponent("calendar-outlined"),l=vue.resolveComponent("close-circle-filled"),c=vue.resolveComponent("a-input"),u=vue.resolveComponent("van-date-picker"),f=vue.resolveComponent("van-popup"),x=vue.resolveComponent("a-date-picker");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-date-picker",style:vue.normalizeStyle(e.style),id:"ecan-date-picker-"+e.id},[e.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(c,{value:e.mobileDateStr,placeholder:"请选择日期",readonly:"",onClick:e.openDatePick},vue.createSlots({prefix:vue.withCtx(()=>[vue.createVNode(s,{style:{color:"#b0b0b0","padding-right":"5px"}})]),_:2},[e.mobileDateStr?{name:"suffix",fn:vue.withCtx(()=>[vue.createVNode(l,{style:{color:"#b0b0b0"},onClick:vue.withModifiers(e.handleClearDate,["stop"])},null,8,["onClick"])])}:void 0]),1032,["value","onClick"]),vue.createVNode(f,{show:e.datePickVisible,"onUpdate:show":n[1]||(n[1]=h=>e.datePickVisible=h),"overlay-style":{background:"rgba(0, 0, 0, .3)"},position:"bottom",teleport:"#app"},{default:vue.withCtx(()=>[e.datePickVisible?(vue.openBlock(),vue.createBlock(u,{key:0,modelValue:e.mobileDate,"onUpdate:modelValue":n[0]||(n[0]=h=>e.mobileDate=h),"columns-type":e.columnsType,"cancel-button-text":"此刻",onConfirm:e.onConfirmDate,onCancel:e.onCancelDate},null,8,["modelValue","columns-type","onConfirm","onCancel"])):vue.createCommentVNode("",!0)]),_:1},8,["show","overlay-style"])],64)):(vue.openBlock(),vue.createBlock(x,{key:1,class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:e.myValue,"onUpdate:value":n[2]||(n[2]=h=>e.myValue=h),format:e.format,picker:e.picker,showTime:e.showTime,locale:e.locale,onChange:e.change,onOpenChange:e.openChange,getPopupContainer:e.getPopupContainer,popupStyle:{fontSize:e.optionFontSize,transform:`scale(${e.scaleValue.widthScale}, ${e.scaleValue.heightScale})`}},null,8,["value","format","picker","showTime","locale","onChange","onOpenChange","getPopupContainer","popupStyle"]))],12,_hoisted_1$a)}const DatePicker$1=_export_sfc$1(__default__$3,[["render",_sfc_render$q],["__scopeId","data-v-88b266c2"]]),EcanDatePicker=withInstall$1(DatePicker$1),rangePickerProps={...props,name:"日期范围选择器",keyName:"日期范围选择器",type:"ecanRangePicker",width:"250px",height:"35px",picker:"date",format:"YYYY-MM-DD",startTime:"",endTime:"",useCurrentTime:!0,interval:1,intervalUnit:"year",operate:null,limitStartTime:"",limitEndTime:"",associated:"",optionFontSize:"14px",isAllowSpanYear:!0,limitInterval:null},rangePickerComponentProps=transformToComponentProps(rangePickerProps),rangePickerEvents=["dateChange"];var quarterOfYear$1={exports:{}};(function(e,n){(function(r,i){e.exports=i()})(commonjsGlobal,function(){var r="month",i="quarter";return function(a,o){var s=o.prototype;s.quarter=function(u){return this.$utils().u(u)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(u-1))};var l=s.add;s.add=function(u,f){return u=Number(u),this.$utils().p(f)===i?this.add(3*u,r):l.bind(this)(u,f)};var c=s.startOf;s.startOf=function(u,f){var x=this.$utils(),h=!!x.u(f)||f;if(x.p(u)===i){var g=this.quarter()-1;return h?this.month(3*g).startOf(r).startOf("day"):this.month(3*g+2).endOf(r).endOf("day")}return c.bind(this)(u,f)}}})})(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(e){const n=vue.inject("isMobile",!1),{pageMode:r}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),i=usePickComponentStyle(e),a=()=>document.getElementById("ProviderConfig")||document.body,o=vue.ref([null,null]),s=vue.ref(!1),l=vue.ref([]),c=vue.ref([]),u=vue.ref(),f=vue.ref(),x=vue.ref(),h=vue.ref(),g=vue.ref(0),v=vue.ref({}),p=vue.ref(""),C=vue.computed(()=>{let G=["year","month","day"];switch(e.picker){case"year":G=["year"];break;case"month":G=["year","month"];break}return G});vue.watch(()=>[e.startTime,e.endTime,e.useCurrentTime,e.interval,e.intervalUnit,e.operate],([G,Y,J,ee,X,W])=>{if(vue.unref(o).every(Q=>!Q)||vue.unref(r)==="design"){let Q=null,te=null;if(J&&(Q=dayjs().subtract(ee,X),te=dayjs()),G&&(Q=dayjs(useVariablesInText(G))),Y&&(te=dayjs(useVariablesInText(Y))),W){const{type:ie,value:ae,mode:se}=W;switch(ie){case"add":Q=Q&&Q.add(ae,se),te=te&&te.add(ae,se);break;case"minus":Q=Q&&Q.subtract(ae,se),te=te&&te.subtract(ae,se)}}o.value=[Q,te],vue.unref(n)&&H()}},{immediate:!0});let b=vue.unref(o)[0],d=vue.unref(o)[1],m="";const y=(G,Y,J)=>{Array.isArray(G)?(b=G[0],d=G[1],m=J.range):(b=null,d=null)},A=G=>{let Y=!1,{limitStartTime:J,limitEndTime:ee}=e;const X={startTime:`${b||""}`,endTime:`${d||""}`};if(J=useVariablesInText(J,{codeData:X}),ee=useVariablesInText(ee,{codeData:X}),J&&ee?Y=!(dayjs(J)<G&&G<dayjs(ee)):J?Y=dayjs(J)>G:ee&&(Y=dayjs(ee)<G),!e.isAllowSpanYear&&m){let W=null;if(m==="start"?W=b:m==="end"&&(W=d),W){const Q=W.startOf("year"),te=W.endOf("year");Y=!(Q<=G&&G<te)}}if(!Y){const{value:W=0,mode:Q="year"}=e.limitInterval||{};W&&(m==="start"?Y=b.add(W,Q)<G:m==="end"&&(Y=d.subtract(W,Q)>G))}return Y},{getGlobalModel:_,setGlobalModel:k}=vue.inject(GLOBAL_MODEL,{getGlobalModel:G=>{},setGlobalModel:(G,Y)=>{}}),T=vue.computed(()=>Array.isArray(vue.unref(o))?vue.unref(o)[0]:null),F=vue.computed(()=>Array.isArray(vue.unref(o))?vue.unref(o)[1]:null),{pageId:M}=vue.inject("templateOperate",{pageId:""})||{};k(e.id,{type:e.type,format:e.format,startTime:T,endTime:F,interval:e.interval,intervalUnit:e.intervalUnit,useCurrentTime:e.useCurrentTime,operate:e.operate});const B=useEmitEvent(e);let L=!1;const V=B("dateChange",()=>{var J;const G=getNewValueFromUrlParams(M,e.keyName,"startTime"),Y=getNewValueFromUrlParams(M,e.keyName,"endTime");(J=o.value)!=null&&J.length||(o.value=[null,null]),G&&(o.value[0]=dayjs(G)),Y&&(o.value[1]=dayjs(Y))}),U=G=>{const Y=vue.unref(o),J=Y&&Y[0]&&Y[1];G===!1&&L===!0&&J&&(V(),L=!1),G||(m="")},$=()=>{L=!0},P=()=>{const{associated:G}=e;if(G){const Y=_(G)||{};if(Y){const{value:J}=Y;if(J)switch(vue.unref(J)){case"month":o.value=[dayjs().startOf("month"),dayjs().endOf("month")];break;case"quarter":o.value=[dayjs().startOf("quarter"),dayjs().endOf("quarter")];break;case"year":o.value=[dayjs().startOf("year"),dayjs().endOf("year")];break}}}V()},I=()=>{q(vue.unref(o)),s.value=!0},E=()=>{q(),p.value="",o.value=[null,null]},S=()=>{o.value=[dayjs(vue.unref(l).join("-")),dayjs(vue.unref(c).join("-"))],q(vue.unref(o)),j(),O(),s.value=!1,V()},N=()=>{D(),s.value=!1},w=()=>{var G,Y;(G=vue.unref(l))!=null&&G.length&&e.format&&(x.value=new Date(vue.unref(l).join("-")),(Y=vue.unref(c))!=null&&Y.length&&dayjs(vue.unref(c).join("-")).isBefore(dayjs(vue.unref(l).join("-")))&&(c.value=lodashEs.cloneDeep(vue.unref(l))))},R=()=>{var G,Y;(G=vue.unref(c))!=null&&G.length&&e.format&&(f.value=new Date(vue.unref(c).join("-")),(Y=vue.unref(l))!=null&&Y.length&&dayjs(vue.unref(l).join("-")).isAfter(dayjs(vue.unref(c).join("-")))&&(l.value=lodashEs.cloneDeep(vue.unref(c))))};function O(){v.value={startMinDate:lodashEs.cloneDeep(vue.unref(u)),startMaxDate:lodashEs.cloneDeep(vue.unref(f)),endMinDate:lodashEs.cloneDeep(vue.unref(x)),endMaxDate:lodashEs.cloneDeep(vue.unref(h))}}function D(){u.value=vue.unref(v).startMinDate,f.value=vue.unref(v).startMaxDate,x.value=vue.unref(v).endMinDate,h.value=vue.unref(v).endMaxDate}function q(G=[]){l.value=K(G[0]||dayjs()),c.value=K(G[1]||dayjs())}function j(){var J,ee;const G=(J=vue.unref(l))!=null&&J.length?dayjs(vue.unref(l).join("-")):"",Y=(ee=vue.unref(c))!=null&&ee.length?dayjs(vue.unref(c).join("-")):"";p.value=G&&Y&&`${G.format(e.format)} 至 ${Y.format(e.format)}`}function H(){const{limitStartTime:G,limitEndTime:Y,limitInterval:J,isAllowSpanYear:ee}=e;q(vue.unref(o)),G&&(u.value=new Date(G),x.value=new Date(G),vue.unref(o)[0].isBefore(dayjs(G))&&(vue.unref(o)[0]=dayjs(G),l.value=K(vue.unref(o)[0]))),Y&&(f.value=new Date(Y),h.value=new Date(Y),vue.unref(o)[1].isAfter(dayjs(Y))&&(vue.unref(o)[1]=dayjs(Y),c.value=K(vue.unref(o)[1]))),vue.unref(o).every(X=>X)&&(J!=null&&J.value)&&vue.unref(o)[1].diff(vue.unref(o)[0],J.mode)>J.value&&(vue.unref(o)[0]=vue.unref(o)[1].subtract(J.value,J.mode),l.value=K(vue.unref(o)[0])),vue.unref(o).every(X=>X)&&!ee&&vue.unref(o)[0].year()!==vue.unref(o)[1].year()&&(vue.unref(o)[0]=dayjs(`${vue.unref(o)[1].year()}-01-01`),l.value=K(vue.unref(o)[0])),O(),j()}function K(G){const Y=[];for(const J of vue.unref(C))J==="day"?Y.push(G.date()):Y.push(G[J]()+(J==="month"?1:0));return Y}return useOnEvent(e,{dateChange:P}),{style:i,getPopupContainer:a,locale,dateChange:V,myValue:o,disabledDate:A,calendarChange:y,openChange:U,change:$,isMobile:n,mobileDateStr:p,datePickVisible:s,columnsType:C,openDatePick:I,handleClearDate:E,onConfirmDate:S,onCancelDate:N,mobileStartDate:l,mobileEndDate:c,startMinDate:u,startMaxDate:f,endMinDate:x,endMaxDate:h,pickerTabKey:g,onStartDateChange:w,onEndDateChange:R}}}),__injectCSSVars__$2=()=>{vue.useCssVars(e=>({"46b8899f":e.optionFontSize}))},__setup__$2=__default__$2.setup;__default__$2.setup=__setup__$2?(e,n)=>(__injectCSSVars__$2(),__setup__$2(e,n)):__injectCSSVars__$2;const RangePicker_vue_vue_type_style_index_0_scoped_5bde1d03_lang="",RangePicker_vue_vue_type_style_index_1_lang="";function _sfc_render$p(e,n,r,i,a,o){const s=vue.resolveComponent("calendar-outlined"),l=vue.resolveComponent("close-circle-filled"),c=vue.resolveComponent("a-input"),u=vue.resolveComponent("van-date-picker"),f=vue.resolveComponent("van-picker-group"),x=vue.resolveComponent("van-popup"),h=vue.resolveComponent("a-range-picker");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-range-picker",style:vue.normalizeStyle(e.style)},[e.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(c,{value:e.mobileDateStr,placeholder:"请选择日期范围",readonly:"",onClick:e.openDatePick},vue.createSlots({prefix:vue.withCtx(()=>[vue.createVNode(s,{style:{color:"#b0b0b0","padding-right":"5px"}})]),_:2},[e.mobileDateStr?{name:"suffix",fn:vue.withCtx(()=>[vue.createVNode(l,{style:{color:"#b0b0b0"},onClick:vue.withModifiers(e.handleClearDate,["stop"])},null,8,["onClick"])])}:void 0]),1032,["value","onClick"]),vue.createVNode(x,{show:e.datePickVisible,"onUpdate:show":n[3]||(n[3]=g=>e.datePickVisible=g),"overlay-style":{background:"rgba(0, 0, 0, .3)"},position:"bottom",teleport:"#app"},{default:vue.withCtx(()=>[e.datePickVisible?(vue.openBlock(),vue.createBlock(f,{key:0,"active-tab":e.pickerTabKey,"onUpdate:active-tab":n[2]||(n[2]=g=>e.pickerTabKey=g),tabs:["开始日期","结束日期"],onConfirm:e.onConfirmDate,onCancel:e.onCancelDate},{default:vue.withCtx(()=>[vue.createVNode(u,{modelValue:e.mobileStartDate,"onUpdate:modelValue":n[0]||(n[0]=g=>e.mobileStartDate=g),"min-date":e.startMinDate,"max-date":e.startMaxDate,"columns-type":e.columnsType,onChange:e.onStartDateChange},null,8,["modelValue","min-date","max-date","columns-type","onChange"]),vue.createVNode(u,{modelValue:e.mobileEndDate,"onUpdate:modelValue":n[1]||(n[1]=g=>e.mobileEndDate=g),"min-date":e.endMinDate,"max-date":e.endMaxDate,"columns-type":e.columnsType,onChange:e.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(h,{key:1,class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:e.myValue,"onUpdate:value":n[4]||(n[4]=g=>e.myValue=g),format:e.format,picker:e.picker,locale:e.locale,getPopupContainer:e.getPopupContainer,"disabled-date":e.disabledDate,onChange:e.change,onCalendarChange:e.calendarChange,onOpenChange:e.openChange,popupStyle:{fontSize:e.optionFontSize}},null,8,["value","format","picker","locale","getPopupContainer","disabled-date","onChange","onCalendarChange","onOpenChange","popupStyle"]))],4)}const RangePicker=_export_sfc$1(__default__$2,[["render",_sfc_render$p],["__scopeId","data-v-5bde1d03"]]),EcanRangePicker=withInstall$1(RangePicker),buttonProps={...props,width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton",text:"按钮",mode:"default",danger:!1,shape:"default",href:"",target:"self",fontSize:"14px",fontWeight:400,tooltipTextStyleColor:"",buttonBackgroundColor:"#FFFFFF",borderColor:"#d9d9d9"},buttonComponentProps=transformToComponentProps(buttonProps),buttonEvents=["click"],_sfc_main$m=vue.defineComponent({name:"EcanButton",components:{AButton:antDesignVue.Button},props:{...buttonComponentProps},setup(e){const n=usePickComponentStyle(e),i=useEmitEvent(e)("click",()=>{const c=vue.unref(s);c&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:c},"*")}),a=vue.computed(()=>{const c={};return e.mode!=="primary"&&(c.backgroundColor=e.buttonBackgroundColor||"transparent",c.color=e.tooltipTextStyleColor,c.borderColor=e.borderColor||"transparent"),{height:e.height,...c}}),o=vue.computed(()=>useVariablesInText(e.text)),s=vue.computed(()=>useVariablesInText(e.href)||null),l=vue.computed(()=>{const c=e.target;if(!(c==="event"||vue.unref(s)==null))return{self:"_self",blank:"_blank"}[c]});return{style:n,click:i,myText:o,myHref:s,myTarget:l,buttonStyle:a}}}),Button_vue_vue_type_style_index_0_lang="";function _sfc_render$o(e,n,r,i,a,o){const s=vue.resolveComponent("a-button");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-button",style:vue.normalizeStyle(e.style)},[vue.createVNode(s,{block:"",onClick:e.click,type:e.mode,danger:e.danger,shape:e.shape,href:e.myHref,target:e.myTarget,style:vue.normalizeStyle(e.buttonStyle),class:vue.normalizeClass(e.tooltipTextStyleColor?"custom-color":"")},{default:vue.withCtx(()=>[vue.createElementVNode("span",{style:vue.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},vue.toDisplayString(e.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target","style","class"])],4)}const Button=_export_sfc$1(_sfc_main$m,[["render",_sfc_render$o]]),EcanButton=withInstall$1(Button),checkboxProps={...props,width:"240px",id:"",left:"0px",top:"0px",name:"复选框",keyName:"复选框",rotate:"",type:"ecanCheckbox",value:[],data:[{label:"选项一",value:"1",checked:!0},{label:"选项二",value:"2",checked:!0},{label:"选项三",value:"3"}],graphicConfig:{}},checkboxComponentProps=transformToComponentProps(checkboxProps),checkboxEvents=["checkboxChange"],_sfc_main$l=vue.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:antDesignVue.CheckboxGroup},props:{...checkboxComponentProps},setup(e,{expose:n}){const r=usePickComponentStyle(e),i=vue.ref([]),a=vue.ref([]),o=b=>{const d=e.value;let m=[];b.forEach(y=>{y.checked&&m.push(y.value)}),typeof d=="string"&&d!==""?m=m.concat(d.split(",")):Array.isArray(d)&&(m=m.concat(d)),i.value=b,a.value=m};vue.watch(()=>[e.data,e.value],([b])=>{o(b)},{immediate:!0,deep:!0});const s=useRequestData(e),l=async()=>{var m,y;if(e.dataType!=="request")return;const b=await s(),d=((y=(m=b==null?void 0:b.data)==null?void 0:m.data)==null?void 0:y.rows)||[];o(d)},{getGlobalModel:c,setGlobalModel:u}=vue.inject(GLOBAL_MODEL,{getGlobalModel:b=>{},setGlobalModel:(b,d)=>{}});u(e.id,{type:e.type,value:a});const x=useEmitEvent(e)("checkboxChange",()=>{const b=c(e.id);u(e.id,{...b,RECORD:a})}),h=b=>{var m;const{data:d}=(b==null?void 0:b.data)||{};if(d){const A=(((m=b==null?void 0:b.data)==null?void 0:m.data)??[]).map(_=>({label:_.label,value:_.value}));o(A)}else o([])},g=useIndicatorData(e,h),v=async()=>{try{const b=await g();h(b)}catch(b){console.error(b)}},p=()=>{switch(e.dataType){case"indicator":v();break;case"request":l();break}},{setRequest:C}=vue.inject(REQUEST_MODEL,{setRequest:({id:b,sortNum:d,requestFn:m})=>{}});return typeof C=="function"&&C({id:e.id,requestFn:p,sortNum:e.requestSort}),n({refreshData:p}),{myOption:i,style:r,myValue:a,checkboxChange:x}}}),Checkbox_vue_vue_type_style_index_0_lang="";function _sfc_render$n(e,n,r,i,a,o){const s=vue.resolveComponent("a-checkbox-group");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-checkbox",style:vue.normalizeStyle(e.style)},[vue.createVNode(s,{options:e.myOption,value:e.myValue,"onUpdate:value":n[0]||(n[0]=l=>e.myValue=l),onChange:e.checkboxChange},null,8,["options","value","onChange"])],4)}const Checkbox=_export_sfc$1(_sfc_main$l,[["render",_sfc_render$n]]),EcanCheckbox=withInstall$1(Checkbox),selectProps={...props,name:"下拉框选择器",keyName:"下拉框选择器",width:"120px",height:"33px",type:"ecanSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,graphicConfig:{},valueType:"value",isAllowClear:!0,optionFontSize:"14px"},selectComponentProps=transformToComponentProps(selectProps),selectEvents=["selectChange","refreshData","clearValue"],_sfc_main$k=vue.defineComponent({name:"EcanSelect",components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption,AInput:antDesignVue.Input,DownOutlined:DownOutlined$1},props:{...selectComponentProps},setup(e,{expose:n}){var j,H,K;const r=vue.inject("isMobile",!1),i=vue.ref(!1),a={text:((j=e.dataFieldNames)==null?void 0:j.label)||"label",value:((H=e.dataFieldNames)==null?void 0:H.value)||"value"},o=vue.ref([]),s=usePickComponentStyle(e),l=()=>document.getElementById("ProviderConfig")||document.body,c=vue.ref(e.data||[]),u=vue.ref(),f=vue.computed({get:()=>{var Y;const{mode:G}=e;return(Y=vue.unref(c))!=null&&Y.length?u.value:G==="multiple"||G==="tags"||G==="combobox"?[]:""},set:G=>{u.value=G}}),x=vue.computed(()=>{const{value:G,label:Y}=e.dataFieldNames,J=[];if(Array.isArray(vue.unref(f)))for(const ee of vue.unref(f)){const X=vue.unref(c).find(W=>W[G]===ee);X&&J.push(X[Y])}else{const ee=vue.unref(c).find(X=>X[G]===vue.unref(f));ee&&J.push(ee[Y])}return J.join(",")}),{getGlobalModel:h,setGlobalModel:g,getRecordValueByKeyName:v}=vue.inject(GLOBAL_MODEL,{getGlobalModel:G=>{},setGlobalModel:(G,Y)=>{},getRecordValueByKeyName:G=>{}}),p=e.dataFieldNames;vue.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,c.value],()=>{const{mode:G,selectFirstOption:Y,value:J}=e,ee=v(J),X=p.value;if(G==="multiple"||G==="tags"||G==="combobox"){if(ee)u.value=ee.split(",");else if(Y){const W=vue.unref(c)[0];u.value=W?[W[X]]:[]}}else if(ee)u.value=ee;else if(Y){const W=vue.unref(c)[0];u.value=W?W[X]:""}},{immediate:!0});const C=(G,Y)=>{const J=p.label,ee=p.value;let X;const W=Y[J],Q=Y[ee];return W!=null?X=W:Q!=null&&(X=Q),(X==null?void 0:X.toLowerCase().indexOf(G==null?void 0:G.toLowerCase()))>=0},b=G=>{const{label:Y,value:J,options:ee}=e.dataFieldNames;if(ee&&Array.isArray(G))if(G.some(X=>ee in X)){const X={},W=[];G.forEach(Q=>{X[Q[ee]]||(X[Q[ee]]=[]),X[Q[ee]].push({[Y]:Q[Y],[J]:Q[J]})});for(const Q in X)W.push({[Y]:Q,[ee]:X[Q]});return W}else return G;else{if(!ee&&Array.isArray(G))return G=G.map(X=>({label:X[Y],value:X[J]})),G;if(!ee&&!Array.isArray(G))return G}},d=vue.ref(!1),m=G=>{var Y,J;if(c.value=b(((J=(Y=G==null?void 0:G.data)==null?void 0:Y.data)==null?void 0:J.rows)||[]),e.selectFirstOption){let ee=vue.unref(c)[0];if(p.options){const X=ee[p.options];X&&X.length&&(ee=X[0])}u.value=ee[p.value]}},y=useRequestData(e),A=async()=>{if(e.dataType==="request"){d.value=!0;try{const G=await y();m(G)}catch(G){console.error(G)}finally{d.value=!1}}},{setLoadedData:_,loadedData:k}=vue.inject(LOADED_DATA,{setLoadedData:(G,Y)=>{},loadedData:{}}),T=vue.computed(()=>{let G=u.value;if(e.valueType==="label"&&vue.unref(u)&&vue.unref(c)){const Y=p.label,J=p.value;if(e.mode==="multiple")G=vue.unref(c).filter(ee=>vue.unref(u).includes(ee[J])).map(ee=>ee[Y]);else{const ee=vue.unref(c).find(X=>vue.unref(u)===X[J]);ee&&(G=ee[Y])}}return G}),F=vue.ref([]),M=vue.computed(()=>{const G={};if(e.mode!=="multiple"){const Y=vue.unref(F).find(J=>J.value===vue.unref(u));Y&&(G.itemCodes=Y.item_codes)}return G}),B=vue.computed(()=>{const{value:G,label:Y}=p,J=vue.unref(c).find(ee=>ee[G]===vue.unref(f));return J?{label:J[Y],value:J[G]}:{}}),{pageId:L}=vue.inject("templateOperate",{pageId:""})||{};g(e.id,{type:e.type,value:T,label:(K=vue.unref(B))==null?void 0:K.label,...vue.unref(M),recordData:vue.unref(B)});const V=useEmitEvent(e),U=V("selectChange",()=>{const G=e.id,Y=h(G);g(G,{...Y,...vue.unref(M),RECORD:T,recordData:vue.unref(B)});const J=getNewValueFromUrlParams(L,e.keyName,"value");J&&(f.value=J)}),$=V("clearValue",()=>{["multiple","tags","combobox"].includes(e.mode)?u.value=[]:u.value=null;const G=e.id;g(G,{RECORD:"",recordData:vue.unref(B)})}),P=(G=[])=>{var J,ee;const Y=b(G);if((ee=(J=e==null?void 0:e.graphicConfig)==null?void 0:J.formFields)!=null&&ee.hasAllOption){const X=p.label,W=p.value;Y.unshift({[X]:"全部",[W]:""})}if(c.value=Y,e.selectFirstOption){let X=vue.unref(c)[0];if(p.options){const W=X[p.options];W&&W.length&&(X=W[0])}u.value=X[p.value]}g(e.id,{type:e.type,value:T,...vue.unref(M),recordData:vue.unref(B)})},I=G=>{var X;const{data:Y}=(G==null?void 0:G.data)||{},J=p.label,ee=p.value;if(Y){const{rows:W=[]}=((X=G==null?void 0:G.data)==null?void 0:X.data)||{};F.value=W;const Q=W.map(ae=>({[J]:ae.label,[ee]:ae.value})),{id:te}=e,ie=h(te);g(te,{...ie,...vue.unref(M)}),_(te,!0),P(Q)}else P([])},E=useIndicatorData(e,I),S=async()=>{try{d.value=!0;const G=await E();I(G)}catch(G){console.error(G)}finally{d.value=!1}},N=vue.computed(()=>{var G,Y;return(Y=getConditions(((G=e==null?void 0:e.graphicConfig)==null?void 0:G.controlList)||[]))==null?void 0:Y.find(J=>J.conditionKey==="parentCode")}),w=vue.ref(!1);vue.watch(k,G=>{!vue.unref(w)&&vue.unref(N)&&G[vue.unref(N).id]&&(w.value=!0,R())},{deep:!0});const R=()=>{switch(e.dataType){case"indicator":{if(vue.unref(N)){if(vue.unref(k)[vue.unref(N).id]){const{mode:G}=e;G==="multiple"||G==="tags"||G==="combobox"?f.value=[]:f.value="",S()}}else S();break}case"request":A();break}};useOnEvent(e,{selectChange:U,refreshData:R,clearValue:$});const{setRequest:O}=vue.inject(REQUEST_MODEL,{setRequest:({id:G,sortNum:Y,requestFn:J})=>{}});return typeof O=="function"&&O({id:e.id,requestFn:R,sortNum:e.requestSort}),n({refreshData:R}),{style:s,getPopupContainer:l,myValue:u,selectChange:U,options:c,filterOption:C,loading:d,resultValue:f,isMobile:r,customFieldName:a,pickVisible:i,onConfirmPicker:()=>{f.value=vue.unref(o)[0],U(),i.value=!1},mobileValue:x,openPicker:()=>{var G;!Array.isArray(vue.unref(f))&&((G=vue.unref(c))!=null&&G.length)&&e.dataFieldNames.value&&(o.value=vue.unref(f)?[vue.unref(f)]:[vue.unref(c)[0][e.dataFieldNames.value]]),i.value=!0},mobileSelectValue:o}}}),Select_vue_vue_type_style_index_0_scoped_cb904478_lang="",Select_vue_vue_type_style_index_1_lang="";function _sfc_render$m(e,n,r,i,a,o){const s=vue.resolveComponent("down-outlined"),l=vue.resolveComponent("a-input"),c=vue.resolveComponent("van-picker"),u=vue.resolveComponent("van-popup"),f=vue.resolveComponent("a-select-option"),x=vue.resolveComponent("a-select");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-select",style:vue.normalizeStyle(e.style)},[e.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(l,{value:e.mobileValue,placeholder:"请选择日期",readonly:"",onClick:e.openPicker},{suffix:vue.withCtx(()=>[vue.createVNode(s)]),_:1},8,["value","onClick"]),vue.createVNode(u,{show:e.pickVisible,"onUpdate:show":n[1]||(n[1]=h=>e.pickVisible=h),"overlay-style":{background:"rgba(0, 0, 0, .3)"},position:"bottom",teleport:"#app"},{default:vue.withCtx(()=>[e.pickVisible?(vue.openBlock(),vue.createBlock(c,{key:0,modelValue:e.mobileSelectValue,"onUpdate:modelValue":n[0]||(n[0]=h=>e.mobileSelectValue=h),"columns-field-names":e.customFieldName,columns:e.options,"cancel-button-text":" ",onConfirm:e.onConfirmPicker},null,8,["modelValue","columns-field-names","columns","onConfirm"])):vue.createCommentVNode("",!0)]),_:1},8,["show","overlay-style"])],64)):(vue.openBlock(),vue.createBlock(x,{key:1,class:"select",value:e.resultValue,"onUpdate:value":n[2]||(n[2]=h=>e.resultValue=h),placeholder:e.placeholder,showSearch:"",allowClear:e.isAllowClear,mode:e.mode,getPopupContainer:e.getPopupContainer,maxTagCount:e.maxTagCount,filterOption:e.filterOption,loading:e.loading,autoClearSearchValue:e.autoClearSearchValue,onChange:e.selectChange,style:vue.normalizeStyle({fontSize:e.optionFontSize})},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.options,(h,g)=>(vue.openBlock(),vue.createBlock(f,{key:g,value:h.value,style:vue.normalizeStyle({fontSize:e.optionFontSize})},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(h.label),1)]),_:2},1032,["value","style"]))),128))]),_:1},8,["value","placeholder","allowClear","mode","getPopupContainer","maxTagCount","filterOption","loading","autoClearSearchValue","onChange","style"]))],4)}const Select=_export_sfc$1(_sfc_main$k,[["render",_sfc_render$m],["__scopeId","data-v-cb904478"]]),EcanSelect=withInstall$1(Select),treeSelectProps={...props,name:"树形下拉框选择器",keyName:"树形下拉框选择器",width:"120px",height:"33px",type:"ecanTreeSelect",multiple:!1,data:[{label:"选项一",value:"1",children:[{label:"子选项一",value:"1-1"},{label:"子选项二",value:"1-2"}]},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:"",dataFieldNames:{label:"label",value:"value",children:"children"},maxTagCount:3,placeholder:"请选择",treeCheckable:!1,treeCheckStrictly:!1,selectFirstOption:!1},treeSelectComponentProps=transformToComponentProps(treeSelectProps),treeSelectEvents=["selectChange","refreshData"],_sfc_main$j={name:"EcanTreeSelect",components:{ATreeSelect:antDesignVue.TreeSelect},props:{...treeSelectComponentProps},setup(e){const n=usePickComponentStyle(e),r=vue.ref(e.data),i=(v,p)=>{const C=e.dataFieldNames,b=C.label,d=C.value;let m;const y=p[b],A=p[d];return y!=null?m=y:A!=null&&(m=A),(m==null?void 0:m.toLowerCase().indexOf(v==null?void 0:v.toLowerCase()))>=0},a=vue.ref();vue.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:v,value:p,selectFirstOption:C}=e;v?p?a.value=p.split(","):C&&(a.value=[vue.unref(r)[0]]):p?a.value=p:C&&(a.value=vue.unref(r)[0])},{immediate:!0});const o=vue.ref(!1),s=v=>{var C,b;r.value=((b=(C=v==null?void 0:v.data)==null?void 0:C.data)==null?void 0:b.rows)||[];const p=vue.unref(r)[0];e.value===""&&p!=null&&(a.value=p[e.dataFieldNames.value])},l=useRequestData(e),c=async()=>{if(e.dataType==="request"){o.value=!0;try{const v=await l();s(v)}catch(v){console.error(v)}finally{o.value=!1}}},{getGlobalModel:u,setGlobalModel:f}=vue.inject(GLOBAL_MODEL,{getGlobalModel:v=>{},setGlobalModel:(v,p)=>{}});f(e.id,{type:e.type,value:a});const h=useEmitEvent(e)("selectChange",()=>{const v=e.id,p=u(v);f(v,{...p,RECORD:a})});useOnEvent(e,{selectChange:h,refreshData:c});const{setRequest:g}=vue.inject(REQUEST_MODEL,{setRequest:({id:v,sortNum:p,requestFn:C})=>{}});return g({id:e.id,requestFn:c,sortNum:e.requestSort}),{style:n,treeData:r,filterTreeNode:i,myValue:a,loading:o,selectChange:h}}},TreeSelect_vue_vue_type_style_index_0_scoped_09e7f364_lang="",TreeSelect_vue_vue_type_style_index_1_lang="";function _sfc_render$l(e,n,r,i,a,o){const s=vue.resolveComponent("a-tree-select");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-tree-select",style:vue.normalizeStyle(i.style)},[vue.createVNode(s,{class:"tree-select",value:i.myValue,"onUpdate:value":n[0]||(n[0]=l=>i.myValue=l),allowClear:"",showSearch:"",loading:i.loading,fieldNames:e.dataFieldNames,treeData:i.treeData,maxTagCount:e.maxTagCount,multiple:e.multiple,treeCheckable:e.treeCheckable,filterTreeNode:i.filterTreeNode,placeholder:e.placeholder,onChange:i.selectChange},null,8,["value","loading","fieldNames","treeData","maxTagCount","multiple","treeCheckable","filterTreeNode","placeholder","onChange"])],4)}const TreeSelect=_export_sfc$1(_sfc_main$j,[["render",_sfc_render$l],["__scopeId","data-v-09e7f364"]]),EcanTreeSelect=withInstall$1(TreeSelect),radioProps={...props,width:"260px",height:"32px",id:"",left:"0px",top:"0px",name:"单选框",keyName:"单选框",rotate:"",type:"ecanRadio",value:"",data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],optionType:"default",tabBackgroundImage:"",activeTabBackgroundImage:"",activeTabColor:"#1890ff",tabColor:"#333",tabFontSize:"14px",tabHorizontalPadding:"0px",tabVerticalPadding:"5px",tabBarGutter:"24px",tabFlexDirection:"row",graphicConfig:{},tabTextAlign:"",selectFirstOption:!1,radioMode:"native"},radioComponentProps=transformToComponentProps(radioProps),radioEvents=["checkboxChange","click"],_sfc_main$i=vue.defineComponent({name:"EcanRadio",components:{ARadioGroup:antDesignVue.RadioGroup,ARadioButton:antDesignVue.RadioButton,ARadio:antDesignVue.Radio},props:{...radioComponentProps},setup(e,{expose:n}){const{pageMode:r}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),i=usePickComponentStyle(e),a=vue.ref([]),o=vue.ref(""),s=(A=[])=>{var T;const _=e.value;let k=[];typeof _=="string"&&_!==""?k=k.concat(_.split(",")):Array.isArray(_)&&(k=k.concat(_)),a.value=A,e.selectFirstOption?o.value=((T=A[0])==null?void 0:T.value)||"":o.value=k[0]||""};vue.watch(()=>[e.data,e.value,e.selectFirstOption],([A])=>{vue.unref(r)==="design"&&s(A)},{immediate:!0,deep:!0});const l=useRequestData(e),c=async()=>{var k,T;if(e.dataType!=="request")return;const A=await l(),_=((T=(k=A==null?void 0:A.data)==null?void 0:k.data)==null?void 0:T.rows)||[];s(_)},{getGlobalModel:u,setGlobalModel:f}=vue.inject(GLOBAL_MODEL,{getGlobalModel:A=>{},setGlobalModel:(A,_)=>{}});f(e.id,{type:e.type,value:o});const x=useEmitEvent(e),h=()=>{const A=vue.unref(a).find(_=>_.value===vue.unref(o))||{};x("checkboxChange",()=>{const _=u(e.id);f(e.id,{..._,RECORD:o})},A)()},g=A=>{o.value=A,x("click",()=>{const _=u(e.id);f(e.id,{..._,RECORD:o})})()};vue.watch(o,()=>{h()});const v=A=>{var k;const{data:_}=(A==null?void 0:A.data)||{};if(_){const F=(((k=A==null?void 0:A.data)==null?void 0:k.data)??[]).map(M=>({label:M.label,value:M.value}));s(F)}else s([])},p=useIndicatorData(e,v),C=async()=>{try{const A=await p();v(A)}catch(A){console.error(A)}},b=()=>{switch(e.dataType){case"indicator":C();break;case"request":c();break}},{setRequest:d}=vue.inject(REQUEST_MODEL,{setRequest:({id:A,sortNum:_,requestFn:k})=>{}});typeof d=="function"&&d({id:e.id,requestFn:b,sortNum:e.requestSort});const m=A=>{o.value=A.value},y=vue.computed(()=>e.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px",fontSize:e.tabFontSize}:{fontSize:e.tabFontSize});return vue.onMounted(()=>{s(e.data)}),n({refreshData:b}),{myOption:a,style:i,myValue:o,radioStyle:y,onClickButton:g,useImagePath,tabChange:m}}}),Radio_vue_vue_type_style_index_0_lang="",Radio_vue_vue_type_style_index_1_scoped_a19c4d3e_lang="",_hoisted_1$9=["onClick"];function _sfc_render$k(e,n,r,i,a,o){const s=vue.resolveComponent("a-radio"),l=vue.resolveComponent("a-radio-button"),c=vue.resolveComponent("a-radio-group");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["ecan-radio",e.optionType]),style:vue.normalizeStyle(e.style)},[e.radioMode==="custom"?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"tabs-header",style:vue.normalizeStyle({fontSize:e.tabFontSize,flexDirection:e.tabFlexDirection,alignItems:e.tabTextAlign})},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.myOption,(u,f)=>(vue.openBlock(),vue.createElementBlock("div",{class:"tab",style:vue.normalizeStyle({padding:`${e.tabVerticalPadding} ${e.tabHorizontalPadding}`,color:e.myValue===u.value?e.activeTabColor:e.tabColor,backgroundImage:e.myValue===u.value?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabFlexDirection==="row"?e.tabBarGutter:"0",marginBottom:e.tabFlexDirection==="column"?e.tabBarGutter:"0"}),key:f,onClick:vue.withModifiers(x=>e.tabChange(u),["prevent","stop"])},[vue.createElementVNode("div",{class:"tab-inner",style:vue.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.myValue===u.value?e.activeTabColor:"transparent"}`:""})},vue.toDisplayString(u.label),5)],12,_hoisted_1$9))),128))],4)):e.radioMode==="native"?(vue.openBlock(),vue.createBlock(c,{key:1,value:e.myValue,"onUpdate:value":n[0]||(n[0]=u=>e.myValue=u)},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.myOption,u=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:u.value},[e.optionType==="default"?(vue.openBlock(),vue.createBlock(s,{key:0,value:u.value,style:vue.normalizeStyle(e.radioStyle)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(u.label),1)]),_:2},1032,["value","style"])):e.optionType==="button"?(vue.openBlock(),vue.createBlock(l,{key:1,value:u.value,style:vue.normalizeStyle({fontSize:e.tabFontSize}),onClick:f=>e.onClickButton(u.value)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(u.label),1)]),_:2},1032,["value","style","onClick"])):vue.createCommentVNode("",!0)],64))),128))]),_:1},8,["value"])):vue.createCommentVNode("",!0)],6)}const Radio=_export_sfc$1(_sfc_main$i,[["render",_sfc_render$k],["__scopeId","data-v-a19c4d3e"]]),EcanRadio=withInstall$1(Radio),pieProps={...props,id:"",name:"饼图",keyName:"饼图",type:"ecanPie",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleLeft:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],backgroundColor:"",tooltipShow:!0,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c} ({d}%)",legendShow:!0,legendTextStyleColor:"#333",legendOrient:"vertical",legendTop:"top",legendLeft:"left",innerRadius:"0%",outerRadius:"60%",centerLeft:"50%",centerTop:"50%",minAngle:0,labelShow:!0,labelColor:"#333",labelWidth:100,labelOverflow:"none",isUseLabelColors:!1,labelFontSize:12,labelPosition:"outside",labelFormatter:"{b}\\n{d}%",labelLineShow:!0,labelLineLength:10,labelLineLength2:15,roseType:"",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},dataFieldConfigType:"value",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendFormatter:"{name}",legendFontSize:"12px",tooltipPosition:"",graphicType:"ecanPie",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,legendType:""},pieComponentProps=transformToComponentProps(pieProps),pieEvents=["click","refreshData","resetRecord"],useDownloadFile=async e=>{var c;const n=await request.post(e,{},{responseType:"blob"}),{data:r,headers:i}=n,a=i["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),o=new Blob([r]),s=document.createElement("a"),l=window.URL.createObjectURL(o);s.href=l,s.download=decodeURI(a),s.style.display="none",document.body.appendChild(s),s.click(),(c=s.parentNode)==null||c.removeChild(s),window.URL.revokeObjectURL(l)},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(e){const{containerMap:n={},sourceList:r=[]}=e,i=lodashEs.cloneDeep(e.componentList),a=i.filter(o=>o.type==="ecanTabs"&&o.isAutoScroll);if(a!=null&&a.length)for(const o of a){const s=n[o.id],l=[];if((!hasOwn(o,"componentList")||!(o!=null&&o.componentList))&&(o.componentList=[]),s){let c=0;for(const u in s){const f=s[u],x=[];if(f!=null&&f.length)for(const h of f){let g=i.find(v=>v.id===h);g||(g=r.find(v=>v.id===h)),g&&(x.push(g),containerType.includes(g.type)&&x.push(...getComponentByContainer(g.id,n,r)))}for(const h of x)hasOwn(h,"scale")?parseFloat(u)>0&&(h.left=parseFloat(h.left)+c+"px"):(h.left=parseFloat(h.sourceLeft||h.left)-parseFloat(o.sourceLeft||o.left)+c+"px",h.top=parseFloat(h.sourceTop||h.top)-parseFloat(o.sourceTop||o.top)+"px"),l.includes(h.id)||l.push(h.id);o.componentList.push(...x),c=getMaxLeftInComponents(x)}}for(const c of l){const u=i.findIndex(f=>f.id===c);u!==-1&&i.splice(u,1)}}return i}function compatibleMobileList(e){var o,s;const{combinationMap:n={},sourceList:r=[]}=e,i=e.containerMap,a=lodashEs.cloneDeep([...e.componentList,...getTabsSomeComponentList(i,r)]);if(handleContainerMap(i,a),(o=Object.keys(i))!=null&&o.length||(s=Object.keys(n))!=null&&s.length){for(const h in i){const g=a.find(v=>v.id===h);if(g){hasOwn(g,"parentId")||(g.parentId="",g.sourceLeft=g.left,g.sourceTop=g.top);for(const v in i[h])if(i[h][v])for(const p of i[h][v]){const C=a.find(b=>b.id===p);C&&(C.parentId=h,C.sourceLeft=C.left,C.sourceTop=C.top,C.left=parseFloat(C.left)-parseFloat(g.sourceLeft||g.left)+"px",C.top=parseFloat(C.top)-parseFloat(g.sourceTop||g.top)+"px")}}}const l=Array.from(new Set(a.filter(h=>(!hasOwn(h,"parentId")||h.parentId==="")&&h.combinationId).map(h=>h.combinationId))),c=getCombinationList(l,{...e,componentList:a});c!=null&&c.length&&a.unshift(...c);const u=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],f=a.filter(h=>u.includes(h.type)&&!hasOwn(h,"parentId")),x=[];for(const h of f)if(h){const g=h.id+"_vir";x.push({id:g,keyName:h.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:h.width,height:h.height,left:h.left,top:h.top,sourceLeft:h.left,sourceTop:h.top}),h.parentId=g,h.sourceLeft=h.left,h.sourceTop=h.top,h.left=0,h.top=0}x!=null&&x.length&&a.unshift(...x);for(const h of a){const g=document.body.clientWidth;if(h.parentId===""&&containerType.includes(h.type))h.sourceWidth=parseFloat(h.width),h.height=(g/(h.sourceWidth/parseFloat(h.height))).toFixed(2)+"px",h.width="100%",h.position="relative",h.top="auto",h.left="auto";else{const v=a.find(p=>p.id===h.parentId);if((v==null?void 0:v.parentId)===""){const p=v.sourceWidth||parseFloat(v.width),C=g/p;h.scale=C,h.top=parseFloat(h.top)*C-parseFloat(h.height)*(1-C)/2+"px",h.left=parseFloat(h.left)*C-parseFloat(h.width)*(1-C)/2+"px"}}h.type==="ecanModal"&&(h.parentId="",h.fullModal=!0)}return sortList(a)}return a}function handleContainerMap(e,n){const r=lodashEs.cloneDeep(e),i=n.filter(a=>a.type==="ecanTabs"&&a.isAutoScroll);if(i!=null&&i.length)for(const a of i){const o=r[a.id];for(const s in o)for(const l of o[s]){const c=n.find(u=>u.id===l);if(c&&containerType.includes(c.type)){const u=getComponentByContainer(c.id,r,n);for(const f of u)e[a.id][s].push(f.id),containerType.includes(f.type)&&delete e[f.id];delete e[c.id]}}}}function getTabsSomeComponentList(e,n){const r=[],i=n.filter(a=>a.type==="ecanTabs"&&a.isAutoScroll);if(i!=null&&i.length)for(const a of i){const o=e[a.id];for(const s in o)if(parseFloat(s)>0)for(const l of o[s]){const c=n.find(u=>u.id===l);c&&(r.push(c),containerType.includes(c.type)&&r.push(...getComponentByContainer(c.id,e,n)))}}return r}function getComponentByContainer(e,n,r){const i=[],a=n[e];for(const o in a)for(const s of a[o]){const l=r.find(c=>c.id===s);l&&(i.push(l),containerType.includes(l.type)&&i.push(...getComponentByContainer(l.id,n,r)))}return i}function getCombinationList(e,n,r){const{combinationMap:i={},componentList:a=[]}=n,o=[];for(const s of e){const l=i[s];if(l!=null&&l.length){const c=a.filter(u=>l.includes(u.id));if(c!=null&&c.length){const u=getCombinateRect(c);if(u){o.push({...u,id:s,keyName:s,parentId:r||"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:u.left,sourceTop:u.top});for(const f of c)f&&(f.parentId=s,f.sourceLeft=f.left,f.sourceTop=f.top,f.left=parseFloat(f.left)-parseFloat(u.left)+"px",f.top=parseFloat(f.top)-parseFloat(u.top)+"px")}}}}return o}function sortList(e){const r=e.filter(i=>i.parentId==="");if(r!=null&&r.length){const i=lodashEs.cloneDeep(r).map(a=>({...a,sourceTop:parseFloat(a.sourceTop),sourceLeft:parseFloat(a.sourceLeft)}));for(let a=0;a<i.length-1;a++)for(let o=0;o<i.length-a-1;o++){let s=!1;if((i[o].sourceTop-i[o+1].sourceTop>50||Math.abs(i[o+1].sourceTop-i[o].sourceTop)<=50&&i[o].sourceLeft>i[o+1].sourceLeft)&&(s=!0),s){const l=i[o];i[o]=i[o+1],i[o+1]=l}}for(const a of i){const o=e.findIndex(s=>s.id===a.id);o!==-1&&e.splice(o,1)}return[...i,...e]}return e}function getCombinateRect(e){const n=e.sort((o,s)=>parseFloat(o.top)-parseFloat(s.top))[0],r=e.sort((o,s)=>parseFloat(o.left)-parseFloat(s.left))[0],i=e.map(o=>({...o,computedTop:parseFloat(o.top)+parseFloat(o.height)})).sort((o,s)=>s.computedTop-o.computedTop)[0],a=e.map(o=>({...o,computedLeft:parseFloat(o.left)+parseFloat(o.width)})).sort((o,s)=>s.computedLeft-o.computedLeft)[0];return n&&r&&i&&a?{left:r.left,top:n.top,width:a.computedLeft-parseFloat(r.left)+"px",height:i.computedTop-parseFloat(n.top)+"px"}:null}function getMaxLeftInComponents(e){const n=e.map(r=>parseFloat(r.left)+parseFloat(r.width)).sort((r,i)=>i-r)[0];return n||0}function moveToComponentList(e,n,r){const i=e[r],a=[];if(i)for(const o in i){const s=i[o];for(const l of s){const c=n.find(u=>u.id===l);c&&(a.push(c),containerType.includes(c.type)&&a.push(...getComponentByContainer(c.id,e,n)))}}return a}const _sfc_main$h=vue.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(e,{emit:n}){n("ready",e.component.id)}});function _sfc_render$j(e,n,r,i,a,o){return e.component.parentId?(vue.openBlock(),vue.createBlock(vue.Teleport,{key:0,to:"#container_"+e.component.parentId},[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(e.component.type),vue.mergeProps({style:{scale:e.component.scale}},e.component),null,16,["style"]))],8,["to"])):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(e.component.type),vue.normalizeProps(vue.mergeProps({key:1},e.component)),null,16))}const Render=_export_sfc$1(_sfc_main$h,[["render",_sfc_render$j]]),EcanRender=withInstall$1(Render),_sfc_main$g=vue.defineComponent({name:"EcanModal",components:{AModal:antDesignVue.Modal,CloseOutlined:CloseOutlined$1,Render:EcanRender},props:{...modalComponentProps},setup(e,{emit:n}){const r=vue.ref([]),i=vue.inject("isMobile",!1),a=vue.computed(()=>e.fullModal),o=vue.inject("getContainerMap",()=>{}),s=vue.inject("getCombinationMap",()=>{}),{clearInteractiveData:l,interactiveData:c,setRequestData:u}=vue.inject(GLOBAL_MODEL,{setRequestData:(W,Q)=>{},clearInteractiveData:()=>{},interactiveData:null}),f=()=>document.getElementById("ProviderConfig")||document.body,x=vue.computed(()=>{const W=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[W]}}),h=e.fullModal?"1920px":e.width,g=e.fullModal?"1080px":e.height,v=e.originalWidth,p=e.originalHeight,C=vue.ref("80%"),b=vue.ref(0),d=vue.ref(),m=vue.ref(0),y=vue.ref({}),A=usePickComponentStyle(e),_=vue.ref({}),k=vue.ref(!1),T=vue.ref();let F;const M=()=>{d.value=parseFloat(h)/parseFloat(v);const W=parseFloat(g)/parseFloat(p),Q=document.body.offsetWidth,te=document.body.offsetHeight;if(b.value=Q*vue.unref(d),m.value=te*W,C.value=`${vue.unref(d)*100}%`,y.value={width:`${vue.unref(b)}px`,height:`${vue.unref(m)}px`,border:`${e.borderWidth} solid ${e.borderColor}`,borderRadius:e.borderRadius+"px",boxShadow:e.boxShadow},_.value={...vue.unref(A),backgroundImage:useImagePath(e.backgroundImage,!0)},i)_.value={..._.value,width:"100%",height:"100%"};else{const ie={..._.value,width:h,height:g};e.banScale&&vue.unref(a)?(ie.width="100%",ie.height="100%"):ie.transform=`scale(${vue.unref(b)/parseFloat(h)},${vue.unref(m)/parseFloat(g)})`,_.value=ie}},B=lodashEs.debounce(()=>{M()},100),L=()=>{const W=window.MutationObserver;F=new W(B),F.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},V=()=>{F&&(F.disconnect(),F.takeRecords(),F=null)},U=vue.ref(!1),{touchRequest:$}=vue.inject(REQUEST_MODEL,{touchRequest:()=>{}}),P=vue.ref(""),I=()=>{var te;const{title:W}=e,Q=(te=vue.unref(c))==null?void 0:te.RECORD;return Q?useVariablesInText(W,{textData:Q},{useNewline:!1,useSpace:!1}):W},E=useEmitEvent(e),S=W=>{const{changeIframeStyle:Q}=window.parent;Q&&typeof Q=="function"&&Q({iframeId:e.parentIframeId||"",action:W})},N=()=>{vue.unref(a)&&S("open"),i&&(document.documentElement.style.overflow="hidden"),P.value=I(),U.value=!0},w=E("hideModal",()=>{vue.unref(a)&&S("close"),n("close"),i&&(document.documentElement.style.overflow="hidden auto",r.value=[]),U.value=!1}),R=()=>{w()},O=()=>{w(),l()},{setModalModel:D,pushUseModalIds:q,popUseModalIds:j}=vue.inject(MODAL_MODEL,{pushUseModalIds:W=>{},popUseModalIds:()=>{},setModalModel:(W,Q)=>{}}),H=vue.computed(()=>{let W=e.componentList;const Q=lodashEs.cloneDeep(e.componentList),te=o(),ie=s(),ae={containerMap:te,combinationMap:ie};i&&(W=compatibleMobileList({...ae,componentList:Q,sourceList:e.allComponentList})),W=handleScrollCombinations({...ae,componentList:W,sourceList:e.allComponentList});const se=[];for(const fe of W)if(fe.type==="ecanCirculate"){const he=moveToComponentList(te,vue.unref(Q),fe.id);fe.componentList=he,se.push(...he.map(ge=>ge.id))}if(se!=null&&se.length)for(const fe of se){const he=W.findIndex(ge=>ge.id===fe);he!==-1&&W.splice(he,1)}return W}),K=()=>{const W=e.id;let Q=[];const te=e.componentList;Array.isArray(te)&&(Q=te.map(ie=>ie.id),D(W,[...new Set(Q)]))},G=vue.ref(!1),Y={};for(const W of e.requestList)Y[W.requestName]=useRequestData(W);vue.watch(()=>U.value,async W=>{if(W)k.value=!1,q(e.id),K(),await vue.nextTick(()=>{M(),window.addEventListener("resize",B),L(),k.value=!0}),$();else{for(const Q in Y)u(Q,{});j(),window.removeEventListener("resize",B),V()}});const J=vue.computed(()=>vue.unref(d)>=1),ee=vue.computed(()=>{let W="ecan-modal";return vue.unref(J)&&(W+=" ecan-full-width-modal"),vue.unref(a)&&(W+=" ecan-full-modal"),W});return useOnEvent(e,{showModal:N,hideModal:w}),{modalRef:T,containStyle:y,contentStyle:_,getContainer:f,modalStyle:x,modalWith:C,isFullModal:a,style:A,visible:U,showModal:N,onOk:R,onCancel:O,isFullWidth:J,wrapClassName:ee,ready:k,usedComponentList:H,isMobile:i,readyIds:r,hasOwn,onComponentReady:W=>{r.value.push(W)},formatTitle:P,requestLoaded:G}}}),Modal_vue_vue_type_style_index_0_scoped_e56696cd_lang="",Modal_vue_vue_type_style_index_1_lang="";function _sfc_render$i(e,n,r,i,a,o){const s=vue.resolveComponent("close-outlined"),l=vue.resolveComponent("render"),c=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(c,{getContainer:e.getContainer,wrapClassName:e.wrapClassName,centered:"",visible:e.visible,footer:null,width:e.isFullModal||e.isFullWidth?"100%":e.modalWith,destroyOnClose:e.destroyOnClose,style:vue.normalizeStyle(e.modalStyle),closable:!1,onOk:e.onOk,onCancel:e.onCancel,ref:"modalRef",id:"container_"+e.id},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"contain",ref:"containRef",style:vue.normalizeStyle(e.containStyle)},[e.ready?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"content",style:vue.normalizeStyle(e.contentStyle)},[vue.createElementVNode("div",{class:"header-bar",style:vue.normalizeStyle({backgroundColor:e.backgroundColor,padding:"20px 30px",height:e.isMobile?"62px":""})},[e.formatTitle?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"ant-modal-title",style:vue.normalizeStyle({fontSize:e.titleFontSize,color:e.titleColor})},vue.toDisplayString(e.formatTitle),5)):vue.createCommentVNode("",!0),e.isShowCloseBtn?(vue.openBlock(),vue.createBlock(s,{key:1,class:"close-icon",style:vue.normalizeStyle({color:e.closeBtnColor}),onClick:e.onCancel},null,8,["style","onClick"])):vue.createCommentVNode("",!0)],4),e.usedComponentList.length?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(e.isMobile?"mobile-wrap":"")},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.usedComponentList,(u,f)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:u.id+f},[e.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[e.hasOwn(u,"parentId")&&(e.readyIds.includes(u.parentId)||u.parentId==="")?(vue.openBlock(),vue.createBlock(l,{key:0,component:u,onReady:e.onComponentReady},null,8,["component","onReady"])):vue.createCommentVNode("",!0)],64)):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(u.type),vue.normalizeProps(vue.mergeProps({key:1},u)),null,16))],64))),128))],2)):vue.renderSlot(e.$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$g,[["render",_sfc_render$i],["__scopeId","data-v-e56696cd"]]),EcanModal=withInstall$1(Modal);core$1.use([renderers.CanvasRenderer,charts.PieChart,components$1.TitleComponent,components$1.ToolboxComponent,components$1.TooltipComponent,components$1.LegendComponent]);const _sfc_main$f=vue.defineComponent({name:"EcanPie",props:{...pieComponentProps},components:{Spin,Echarts,EcanModal},setup(e,{expose:n}){const{pageMode:r,fontFamily:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),a=vue.ref(),o=vue.ref(!1),s=usePickComponentStyle(e),l=vue.ref([]),c=vue.ref(),u=vue.ref({}),f=vue.computed(()=>{let{data:U=[]}=vue.unref(l)[0]||{};if(Array.isArray(e.colors)){const $=e.isUseLabelColors,P=e.colors;U=U.map((I,E)=>({label:$?{color:P[E]}:{},...I}))}return{textStyle:{fontFamily:vue.unref(i)},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,orient:e.toolboxOrient,feature:{myDownload:{show:e.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(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.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 $;o.value=!0,($=c.value)==null||$.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){antDesignVue.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter:$=>{const{marker:P,seriesName:I,name:E,value:S,percent:N,data:w}=$||{};return useVariablesInText(e.tooltipFormatter,{textData:{marker:P,name:E,value:S,percent:N,a:I,b:E,c:S,d:N,...w}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor},position:e.tooltipPosition||void 0},legend:vue.unref(u),color:e.colors,series:[{data:U,type:"pie",radius:[e.innerRadius,e.outerRadius],center:[e.centerLeft,e.centerTop],roseType:e.roseType,avoidLabelOverlap:!0,minAngle:e.minAngle,label:{show:e.labelPosition!=="center"&&e.labelShow,color:e.labelColor,fontSize:o.value?ZOOM_FONT_SIZE:e.labelFontSize,position:e.labelPosition,formatter:handleFormatter(e.labelFormatter),width:e.labelWidth,overflow:e.labelOverflow},labelLine:{show:e.labelLineShow,length:e.labelLineLength,length2:e.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}}),x=()=>{var $,P;const U=o.value?ZOOM_FONT_SIZE:parseFloat(e.legendFontSize);u.value={type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,align:"left",textStyle:{lineHeight:U+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:U}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:(P=($=vue.unref(l)[0])==null?void 0:$.data)==null?void 0:P.map(I=>({name:I.name,icon:e.legendType})),formatter:I=>{const{data:E}=l.value[0]||{};let S=0,N,w="0%";if(E)for(const R of E)R.name===I&&(N=+R.value),S+=+R.value;return S&&(w=`${(N/S*100).toFixed(2)}%`),getLegendFormat(e.legendFormatter,{name:I,value:N,percent:w})}}},h=()=>{o.value=!1},{getGlobalModel:g,setGlobalModel:v}=vue.inject(GLOBAL_MODEL,{getGlobalModel:U=>{},setGlobalModel:(U,$)=>{}}),p=(U=[],$)=>{const{dataset:P}=useTransformChartDataByAttrValue(U,$);l.value=P},C=(U=[],$)=>{const P=useTransformChartDataByAttrValue(U,$);l.value=P.dataset};vue.watch(()=>e.data,U=>{(e.dataType==="static"||vue.unref(r)==="design")&&p(U)},{immediate:!0,deep:!0}),vue.watch(()=>[e.legendShow,e.legendOrient,e.legendTop,e.legendLeft,e.legendTextStyleColor,e.labelFontSize,e.legendItemHeight,e.legendItemWidth,e.legendItemGap,e.legendFormatter,e.legendFontSize,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll,e.legendType],()=>{x()},{immediate:!0});const b=vue.ref(!1),d=useRequestData(e),m=async()=>{var U,$;if(e.dataType==="request")try{b.value=!0;const P=await d();p(($=(U=P==null?void 0:P.data)==null?void 0:U.data)==null?void 0:$.rows,e.valueTypeDataFieldNames)}catch(P){console.error(P)}finally{b.value=!1}},y=useEmitEvent(e);v(e.id,{type:e.type,RECORD:""});const A=y("click",U=>{const $=g(e.id);v(e.id,{...$,type:e.type,RECORD:U==null?void 0:U.data})}),_=U=>{var P;const{data:$}=(U==null?void 0:U.data)||{};if($){const{columns:I=[],rows:E=[]}=((P=U==null?void 0:U.data)==null?void 0:P.data)??{};let S=[];if(I.length>0){const N=I[0],w=I[1];S=E.filter(R=>!!R).map(R=>({name:R[N],value:isNaN(R[w])?0:R[w]||0}))}C(S)}},k=useIndicatorData(e,U=>{e.isViewRedrawing&&a.value.clear(),_(U)}),T=async()=>{try{b.value=!0;const U=await k();_(U)}catch(U){console.error(U)}finally{b.value=!1}},{loadedData:F}=vue.inject(LOADED_DATA,{loadedData:{}}),M=vue.ref(!1);vue.watch(F,U=>{if(e.dataType==="indicator"){const $=getFixedValueDatas(e.graphicConfig);$!=null&&$.length&&(!vue.unref(M)&&canRequestIndicator(e.graphicConfig,U)?(M.value=!0,B()):canRequestIndicator(e.graphicConfig,U)||(M.value=!1))}},{deep:!0});const B=()=>{switch(e.dataType){case"indicator":canRequestIndicator(e.graphicConfig,vue.unref(F))&&T();break;case"request":m();break}};useOnEvent(e,{resetRecord:()=>{const U=e.id,$=g(U);v(U,{...$,RECORD:""})},refreshData:B,click:A}),n({refreshData:B});const{setRequest:V}=vue.inject(REQUEST_MODEL,{setRequest:U=>{}});return typeof V=="function"&&V({id:e.id,requestFn:B,sortNum:e.requestSort}),{option:f,style:s,click:A,onClose:h,loading:b,ecanModal:c,echartRef:a}}}),Pie_vue_vue_type_style_index_0_lang="";function _sfc_render$h(e,n,r,i,a,o){const s=vue.resolveComponent("echarts"),l=vue.resolveComponent("spin"),c=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(e.style)},[vue.createVNode(l,{spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,{option:e.option,ref:"echartRef",autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),vue.createVNode(c,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:vue.withCtx(()=>[vue.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Pie=_export_sfc$1(_sfc_main$f,[["render",_sfc_render$h]]),EcanPie=withInstall$1(Pie),lineProps={...props,id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"}],titleText:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanLine",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,tooltipTextStyleColor:""},lineComponentProps=transformToComponentProps(lineProps),lineEvents=["click","refreshData","resetRecord"];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(e,{expose:n}){const{pageMode:r,fontFamily:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),a=vue.ref(),o=vue.ref(!1),s=usePickComponentStyle(e),l=vue.ref([]),c=vue.ref([]),u=vue.ref(),f=vue.computed(()=>o.value?ZOOM_FONT_SIZE:12),x=vue.ref({});let h;const g=vue.ref([]),v=vue.computed(()=>{const I=e.xAxisLabelFormatter,E=e.yAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(i)},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,orient:e.toolboxOrient,feature:{myDownload:{show:e.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(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.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 S;o.value=!0,(S=u.value)==null||S.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){antDesignVue.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:f.value,color:e.tooltipTextStyleColor},show:e.tooltipShow,formatter:S=>{var O;const N=S.length;let w="",R=e.tooltipFormatter;h=(O=S[0])==null?void 0:O.data,R===""&&(R="{marker} {a} {c}");for(let D=0;D<N;D++){const{marker:q,seriesName:j,name:H,value:K,data:G}=S[D]||{};if(D===0){let Y=H;typeof H=="string"&&H[0]==="0"&&!isNaN(+H)&&(Y=(+H).toString()),w+=`${useValueFormatter(I,Y)}<br/>`}w+=useVariablesInText(R,{textData:{marker:q,name:H,value:K,a:j,b:H,c:K||0,...G}},{useNewline:!0,useSpace:!0}),w+="<br/>"}return w},position:e.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:vue.unref(c).map(S=>{let N={};return S&&typeof S=="object"?N={...S}:N={value:S},N}),minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{show:e.xAxisLabelShow,color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(S){return typeof S=="string"&&S[0]==="0"&&!isNaN(+S)&&(S=(+S).toString()),useValueFormatter(I,S)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"},max:e.xAxisMaxValue||null},yAxis:{type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(S){return useValueFormatter(E,S)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"},max:e.yAxisMaxValue||null},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(o.value?ZOOM_FONT_SIZE:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:o.value?ZOOM_FONT_SIZE:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:vue.unref(g).map(S=>({name:S.name,icon:e.legendType})),formatter:S=>getLegendFormat(e.legendFormatter,{name:S})},series:vue.unref(l)}}),p=()=>{o.value=!1},{getGlobalModel:C,setGlobalModel:b}=vue.inject(GLOBAL_MODEL,{getGlobalModel:I=>{},setGlobalModel:(I,E)=>{}}),d=vue.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),m=(I=[],E=!1)=>{let S;if(e.dataFieldConfigType==="key"){const O=E?e.keyTypeDataFieldNames:null;S=useTransformChartDataByAttrKey(I,O)}else if(e.dataFieldConfigType==="value"){const O=E?e.valueTypeDataFieldNames:null;S=useTransformChartDataByAttrValue(I,O)}c.value=S.dimensions,g.value=S.dataset;const N=S.dataset,w=[],R=N.length;for(let O=0;O<R;O++){const D={};e.shadowColor&&(D.shadowColor=e.shadowColor,D.shadowBlur=e.shadowBlur,D.shadowOffsetY=e.shadowOffsetY,D.shadowOffsetX=e.shadowOffsetX),w.push({type:"line",...N[O],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[O]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[O],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...D},...vue.unref(d)})}l.value=w},y=(I=[],E,S=!1)=>{const w=useTransformChartDataByAttrKey(I,S?E:null,!0);c.value=w.dimensions,g.value=w.dataset;const R=w.dataset,O=[],D=R.length;for(let q=0;q<D;q++){const j={};e.shadowColor&&(j.shadowColor=e.shadowColor,j.shadowBlur=e.shadowBlur,j.shadowOffsetY=e.shadowOffsetY,j.shadowOffsetX=e.shadowOffsetX),O.push({type:"line",...R[q],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[q]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[q],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...j},...vue.unref(d)})}l.value=O};vue.watch(()=>[e.data,e.symbolSize,e.smooth,e.lineStyleWidth,e.areaStyleOpacity,e.areaGradientShow,e.areaGradientColor,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX,e.legendFontSize,e.isShowMarkLine,e.markLineType,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([I])=>{(e.dataType==="static"||vue.unref(r)==="design")&&m(I)},{immediate:!0,deep:!0});const A=vue.ref(!1),_=useRequestData(e),k=async()=>{var I,E;if(e.dataType==="request")try{A.value=!0;const S=await _();m((E=(I=S==null?void 0:S.data)==null?void 0:I.data)==null?void 0:E.rows,!0)}catch(S){console.error(S)}finally{A.value=!1}},T=useEmitEvent(e);b(e.id,{type:e.type,RECORD:""});const F=T("click",I=>{const E=C(e.id);b(e.id,{...E,type:e.type,RECORD:e.tooltipShow?h:I.data})}),M=I=>{a.value.chart.containPixel("grid",[I.offsetX,I.offsetY])&&F()};e.tooltipShow?x.value["zr:click"]=M:x.value.click=F;const B=I=>{var w;const{columns:E=[],rows:S=[]}=((w=I==null?void 0:I.data)==null?void 0:w.data)??{};let N;E.length>0&&(N={name:E[0],types:E.slice(1).map(R=>({label:R,value:R}))}),y(S,N,!0)},L=useIndicatorData(e,I=>{e.isViewRedrawing&&a.value.clear(),B(I)}),V=async()=>{try{A.value=!0;const I=await L();B(I)}catch(I){console.error(I)}finally{A.value=!1}},U=()=>{switch(e.dataType){case"indicator":V();break;case"request":k();break}};useOnEvent(e,{refreshData:U,resetRecord:()=>{const I=e.id,E=C(I);b(I,{...E,RECORD:""})},click:F});const{setRequest:P}=vue.inject(REQUEST_MODEL,{setRequest:I=>{}});return typeof P=="function"&&P({id:e.id,requestFn:U,sortNum:e.requestSort}),n({refreshData:U}),{option:v,style:s,click:F,loading:A,onClose:p,ecanModal:u,eventObj:x,echartRef:a}}}),Line_vue_vue_type_style_index_0_lang="";function _sfc_render$g(e,n,r,i,a,o){const s=vue.resolveComponent("echarts"),l=vue.resolveComponent("spin"),c=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(e.style)},[vue.createVNode(l,{spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,vue.mergeProps({ref:"echartRef",option:e.option,autoresize:""},vue.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),vue.createVNode(c,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:vue.withCtx(()=>[vue.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,{option:e.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$g]]),EcanLine=withInstall$1(Line),barProps={...props,id:"",name:"柱状图",keyName:"柱状图",type:"ecanBar",width:"400px",height:"400px",top:"",left:"",rotate:"",xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisLineAlwaysDisplay:!1,data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:310,type:"类型一"},{name:"名称三",value:310,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{marker} {a} {c}",xAxisSplitLineShow:!0,xAxisSplitLineInterval:0,xAxisSplitAreaShow:!1,xAxisSplitLineStyleColor:"#333",xAxisLabelInterval:0,xAxisLabelColor:"#333",xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisLabelWidth:void 0,yAxisLabelRotate:0,yAxisLabelOverflow:"none",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",barWidth:"40%",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",isUseHorizontalAxis:!1,axisInverse:!1,xAxisInverse:!1,yAxisInverse:!1,isStack:!1,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{c}",toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,barBorderRadius:"",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,showBarBackground:!1,legendType:"",legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanBar",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",defaultRangeValue:!1,startValue:"",endValue:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0},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$d=vue.defineComponent({name:"EcanBar",props:{...barComponentProps},components:{Spin,Echarts,EcanModal,AModal:antDesignVue.Modal},setup(e,{expose:n}){const{pageMode:r,fontFamily:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),a=vue.inject("usedComponentList",[]),o=vue.ref(),s=vue.ref(!1),l=vue.ref(!1),c=vue.ref(null),u=vue.ref([]),f=usePickComponentStyle(e),x=vue.ref([]),h=vue.ref(),g=vue.ref({});let v;const p=vue.computed(()=>s.value?ZOOM_FONT_SIZE:12),C=vue.computed(()=>{const{gradientShow:j,gradientColors:H,gradientOffset:K,barBorderRadius:G}=e,Y=vue.unref(x),J=Y.length,ee=[];for(let X=0;X<J;X++){const W={...Y[X],type:"bar",barWidth:e.barWidth.value+e.barWidth.suffix,showBackground:e.showBarBackground};if(e.isStack&&(W.stack="stack"),W.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:Q=>{let te="",ie=e.labelFormatter;ie===""&&(ie="{c}");const{seriesName:ae,name:se,value:fe,data:he}=Q||{};return te+=useVariablesInText(ie,{textData:{name:se,value:fe,a:ae,b:se,c:fe||0,...he}},{useNewline:!0,useSpace:!0}),te}},W.itemStyle={},j&&(W.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[X]},{offset:K,color:H[X]},{offset:1,color:H[X]}]}}),G){const Q=G.split(",");if(Q!=null&&Q.length){const te=[];for(const ie of Q){const ae=parseFloat(ie);isNaN(ae)||te.push(ae)}W.itemStyle.borderRadius=te}}e.isShowMarkLine&&(W.markLine={data:[{type:e.markLineType}]}),ee.push(W)}return ee}),b=vue.ref([]),d=vue.ref(!1),m=vue.computed(()=>{const j=e.yAxisLabelFormatter,H=e.xAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(i)},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:s.value?!1:e.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(){l.value=!0;const K=o.value.chart.getOption(),{xAxis:G}=K||{};G&&G.length&&(u.value=G[0].data)}},myDownload:{show:e.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(e.toolboxDownloadUrl)}},myDataZoom:{show:s.value?!1:e.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 K;s.value=!0,(K=h.value)==null||K.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){antDesignVue.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",show:e.tooltipShow,formatter:K=>{var ee;const G=K.length;let Y="",J=e.tooltipFormatter;v=(ee=K[0])==null?void 0:ee.data,J===""&&(J="{marker} {a} {c}");for(let X=0;X<G;X++){const{marker:W,seriesName:Q,name:te,value:ie,data:ae}=K[X]||{};if(X===0){let se=te;typeof te=="string"&&te[0]==="0"&&!isNaN(+te)&&(se=(+te).toString()),Y+=`${useValueFormatter(H,se)}<br/>`}Y+=useVariablesInText(J,{textData:{marker:W,name:te,value:ie,a:Q,b:te,c:ie||0,...ae}},{useNewline:!0,useSpace:!0}),Y+="<br/>"}return Y},textStyle:{color:e.tooltipTextStyleColor,fontSize:p.value},position:e.tooltipPosition||void 0},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(s.value?ZOOM_FONT_SIZE:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:s.value?ZOOM_FONT_SIZE:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:vue.unref(x).map((K,G)=>({name:K.name,itemStyle:{color:e.colors[G]},icon:e.legendType})),formatter:K=>getLegendFormat(e.legendFormatter,{name:K})},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:vue.unref(k),inverse:e.isUseHorizontalAxis?e.xAxisInverse:e.axisInverse,minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor,type:e.xAxisSplitLineType},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{show:e.xAxisLabelShow,color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(K){return typeof K=="string"&&K[0]==="0"&&!isNaN(+K)&&(K=(+K).toString()),useValueFormatter(H,K)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"},max:e.xAxisMaxValue||null},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?vue.unref(b):null,inverse:e.isUseHorizontalAxis?e.axisInverse:e.yAxisInverse,minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,rotate:e.yAxisLabelRotate,width:e.yAxisLabelWidth,overflow:e.yAxisLabelOverflow,formatter(K){return useValueFormatter(j,K)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"},max:e.yAxisMaxValue||null},series:vue.unref(C)}}),y=()=>{s.value=!1},A=(j=[],H=!1)=>{let K={};if(e.dataFieldConfigType==="key"){const G=H?e.keyTypeDataFieldNames:null;K=useTransformChartDataByAttrKey(j,G)}else if(e.dataFieldConfigType==="value"){const G=H?e.valueTypeDataFieldNames:null;K=useTransformChartDataByAttrValue(j,G)}x.value=K.dataset,b.value=K.dimensions},_=(j=[],H,K=!1)=>{const Y=useTransformChartDataByAttrKey(j,K?H:null,!0);e.defaultRangeValue&&setDefaultRangeVal({props:e,componentList:vue.unref(a),getGlobalModel:N},Y),x.value=Y.dataset,b.value=Y.dimensions},k=vue.computed(()=>vue.unref(b).map(j=>{let H={};return j&&typeof j=="object"?H={...j}:H={value:j},H}));vue.watch(()=>[e.data,e.labelFormatter,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([j])=>{(e.dataType==="static"||vue.unref(r)==="design")&&A(j)},{immediate:!0,deep:!0});const T=useRequestData(e),F=async()=>{var j,H;try{d.value=!0;const K=await T();A((H=(j=K==null?void 0:K.data)==null?void 0:j.data)==null?void 0:H.rows,!0)}catch(K){console.error(K)}finally{d.value=!1}},M=j=>{var Y;const{columns:H=[],rows:K=[]}=((Y=j==null?void 0:j.data)==null?void 0:Y.data)??{};let G;H.length>0&&(G={name:H[0],types:H.slice(1).map(J=>({label:J,value:J}))}),_(K,G,!0)},B=useIndicatorData(e,j=>{e.isViewRedrawing&&o.value.clear(),M(j)}),L=async()=>{try{d.value=!0;const j=await B();M(j)}catch(j){console.error(j)}finally{d.value=!1}},{loadedData:V}=vue.inject(LOADED_DATA,{loadedData:{}}),U=vue.ref(!1);vue.watch(V,j=>{if(e.dataType==="indicator"){const H=getFixedValueDatas(e.graphicConfig);H!=null&&H.length&&(!vue.unref(U)&&canRequestIndicator(e.graphicConfig,j)?(U.value=!0,$()):canRequestIndicator(e.graphicConfig,j)||(U.value=!1))}},{deep:!0});const $=()=>{switch(e.dataType){case"indicator":canRequestIndicator(e.graphicConfig,vue.unref(V))&&L();break;case"request":F();break}},P=(j,H)=>!!vue.unref(u)[H.value].value.includes(j),I=async()=>{l.value=!1;const j=o.value.chart.getOption();for(let H=0;H<7;H++)await E(j,H)},E=(j,H)=>new Promise(K=>{setTimeout(()=>{const{series:G,color:Y,xAxis:J}=j,ee=o.value.chart,{splitArea:X={}}=J[0]||{};G.forEach((W,Q)=>{const te=W.data;let ie="";H%2?ie=Y[Q]+"a8":ie=Y[Q],te[c.value].itemStyle={color:ie}}),H%2?(X.show=!0,X.areaStyle.color=vue.unref(u).map((W,Q)=>Q===c.value?"#ff003b26":"")):X.show=!1,ee.setOption({series:G,xAxis:J}),K()},200)});n({refreshData:$});const S=useEmitEvent(e),{getGlobalModel:N,setGlobalModel:w}=vue.inject(GLOBAL_MODEL,{getGlobalModel:j=>{},setGlobalModel:(j,H)=>{}});w(e.id,{type:e.type,RECORD:""});const R=S("click",j=>{const H=N(e.id);w(e.id,{...H,type:e.type,RECORD:e.tooltipShow?v:j.data})}),{setRequest:O}=vue.inject(REQUEST_MODEL,{setRequest:j=>{}});typeof O=="function"&&O({id:e.id,requestFn:$,sortNum:e.requestSort});const D=()=>{const j=e.id,H=N(j);w(j,{...H,RECORD:""})},q=j=>{o.value.chart.containPixel("grid",[j.offsetX,j.offsetY])&&R()};return e.tooltipShow?g.value["zr:click"]=q:g.value.click=R,useOnEvent(e,{refreshData:$,click:R,resetRecord:D}),{option:m,style:f,refreshData:$,click:R,loading:d,onClose:y,ecanModal:h,echartRef:o,handleLocationOk:I,onFilterOption:P,locationVisible:l,locationValue:c,locationNames:u,eventObj:g}}}),Bar_vue_vue_type_style_index_0_lang="",Bar_vue_vue_type_style_index_1_scoped_b1e34a16_lang="",_withScopeId$3=e=>(vue.pushScopeId("data-v-b1e34a16"),e=e(),vue.popScopeId(),e),_hoisted_1$8={class:"location-wrap"},_hoisted_2$5=_withScopeId$3(()=>vue.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function _sfc_render$f(e,n,r,i,a,o){const s=vue.resolveComponent("echarts"),l=vue.resolveComponent("spin"),c=vue.resolveComponent("ecan-modal"),u=vue.resolveComponent("a-select-option"),f=vue.resolveComponent("a-select"),x=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-bar",style:vue.normalizeStyle(e.style)},[vue.createVNode(l,{spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,vue.mergeProps({ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:""},vue.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),vue.createVNode(c,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:vue.withCtx(()=>[vue.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),vue.createVNode(x,{visible:e.locationVisible,"onUpdate:visible":n[1]||(n[1]=h=>e.locationVisible=h),title:"快速定位",onOk:e.handleLocationOk},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$8,[_hoisted_2$5,vue.createVNode(f,{value:e.locationValue,"onUpdate:value":n[0]||(n[0]=h=>e.locationValue=h),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.locationNames,(h,g)=>(vue.openBlock(),vue.createBlock(u,{key:g,value:g},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(h.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const Bar=_export_sfc$1(_sfc_main$d,[["render",_sfc_render$f],["__scopeId","data-v-b1e34a16"]]),EcanBar=withInstall$1(Bar),scatterProps={...props,id:"",name:"散点图",keyName:"散点图",type:"ecanScatter",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:233,value:335},{name:556,value:310},{name:56,value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",tooltipShow:!0,tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c}",legendShow:!1,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:10,symbolColor:"",xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelColor:"#333",xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelFormatter:"{value}",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",dataFieldNames:{name:"name",value:"value"},gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanScatter",tooltipPosition:"",yAxisName:"",xAxisName:"",showXAxisLineArrow:!1,showYAxisLineArrow:!1,xAxisLineInverse:!1,yAxisLineInverse:!1,yAxisTickShow:!0,xAxisMarkLineValue:[],yAxisMarkLineValue:[],axisMarkArea:[],xAxisMax:null,xAxisMin:null,yAxisMax:null,yAxisMin:null,xAxisLabelShow:!0,crossShow:!0},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$c=vue.defineComponent({name:"EcanScatter",props:{...scatterComponentProps},components:{Spin,Echarts,EcanModal},setup(e,{expose:n}){const{pageMode:r,fontFamily:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),a=vue.ref(),o=vue.ref(!1),s=usePickComponentStyle(e),l=vue.ref([]),c=vue.ref(),u=vue.computed(()=>o.value?ZOOM_FONT_SIZE:12),f=vue.ref(),x=vue.ref(),h=vue.ref(),g=vue.ref(),v=vue.inject("componentList",[]),{loadedData:p}=vue.inject(LOADED_DATA,{loadedData:{}}),C=vue.ref({}),b=vue.computed(()=>{const{xAxisMarkLineValue:O=[],yAxisMarkLineValue:D=[]}=e,q=O.concat(D),j=[];for(const H of q){let K=H.value;const G=K.match(/\{(.+?)\}/g);if(G!=null&&G.length){for(const J of G)K=K.replace(J,J.slice(1,-1));const Y=vue.unref(v).find(J=>J.keyName===K);Y!=null&&Y.id&&!j.find(J=>J.keyName===K)&&j.push({componentId:Y.id,keyName:Y.keyName})}}return j});vue.watch(p,O=>{var D;if((D=vue.unref(b))!=null&&D.length)for(const q of vue.unref(b)){const{componentId:j,keyName:H}=q;if(O[j]){const K=_(j);C.value[H]=K.value}else delete C.value[H]}},{deep:!0});const d=vue.computed(()=>{const{xAxisMarkLineValue:O=[],yAxisMarkLineValue:D=[]}=e,q=O.map(K=>({...K,x:!0})),j=D.map(K=>({...K,y:!0})),H=q.concat(j);if(H!=null&&H.length){const K=[];for(const G of H){const Y={label:{show:!0,formatter:"",rich:{ft:{}}}},J={};let ee=G.value;const X=ee.match(/\{(.+?)\}/g);let W="";if(Y.label.formatter=G.label?`{ft|${G.label}}`:"",(G.offsetHorizontal||G.offsetVertical)&&(G.x?Y.label.rich.ft.padding=[0,G.offsetHorizontal||0,G.offsetVertical||0,0]:G.y&&(Y.label.rich.ft.padding=[G.offsetVertical||0,0,0,G.offsetHorizontal||0])),G.labelColor&&(Y.label.rich.ft.color=G.labelColor),G.lineColor&&(J.color=G.lineColor),G.x?W="xAxis":G.y&&(W="yAxis"),X!=null&&X.length){for(const Q of X)ee=ee.replace(Q,Q.slice(1,-1));if(ee){let Q;C.value[ee]?Q=vue.unref(C)[ee]:Q=runCode(ee,{max:G.x?vue.unref(f):G.y?vue.unref(h):0,min:G.x?vue.unref(x):G.y?vue.unref(g):0}),isNaN(+Q)||K.push({[W]:+Q,lineStyle:J,...Y})}}else isNaN(+G.value)||K.push({[W]:G.value,lineStyle:J,...Y})}return{symbol:["none","none"],data:K}}else return{data:[]}});function m(O,D,q){switch(D){case"startX":O[0].coord[0]=+q;break;case"startY":O[0].coord[1]=+q;break;case"endX":O[1].coord[0]=+q;break;case"endY":O[1].coord[1]=+q;break}}const y=vue.computed(()=>{const{axisMarkArea:O=[]}=e;if(O!=null&&O.length){const D=[];for(const q of O){const j=[{name:"",coord:[],itemStyle:{color:q.color}},{coord:[]}];for(const H in q)if(H!=="color"){let K=q[H];const G=K.match(/\{(.+?)\}/g);if(G!=null&&G.length){for(const Y of G)K=K.replace(Y,Y.slice(1,-1));if(K){const Y=runCode(K,{xMax:vue.unref(f),xMin:vue.unref(x),yMax:vue.unref(h),yMin:vue.unref(g)});isNaN(+Y)||m(j,H,Y)}}else isNaN(+q[H])||m(j,H,q[H])}j.every(H=>{var K;return(K=H.coord)==null?void 0:K.length})&&D.push(j)}return{data:D}}else return{data:[]}}),A=vue.computed(()=>{const O=e.xAxisLabelFormatter,D=e.yAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(i)},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.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(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.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 q;o.value=!0,(q=c.value)==null||q.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){antDesignVue.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,xAxis:{z:5,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{show:e.xAxisLabelShow,fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(q){return typeof q=="string"&&q[0]==="0"&&!isNaN(+q)&&(q=(+q).toString()),useValueFormatter(O,q)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor},symbol:["none",e.showXAxisLineArrow?"arrow":"none"],symbolSize:[8,12],onZero:!1},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameLocation:e.xAxisLineInverse?"start":"end",nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"},inverse:e.xAxisLineInverse,max:e.xAxisMax,min:e.xAxisMin},yAxis:{z:5,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},axisTick:{show:e.yAxisTickShow},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(q){return useValueFormatter(D,q)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor},symbol:["none",e.showYAxisLineArrow?"arrow":"none"],symbolSize:[8,12],onZero:!1},name:e.yAxisName,nameLocation:e.yAxisLineInverse?"start":"end",nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"},inverse:e.yAxisLineInverse,max:e.yAxisMax,min:e.yAxisMin},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter(q){var ee;const{marker:j,seriesName:H,componentType:K}=q,G=((ee=q==null?void 0:q.data)==null?void 0:ee.record)??{},Y=G[vue.unref(F).name],J=G[vue.unref(F).value];return["markLine","markArea"].includes(K)?"":useVariablesInText(e.tooltipFormatter,{textData:{marker:j,seriesName:H,a:H,b:Y,c:J,...G}},{useNewline:!0,useSpace:!0})},axisPointer:{type:e.crossShow||e.crossShow===void 0?"cross":""},textStyle:{fontSize:u.value},position:e.tooltipPosition||void 0},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:u.value}},series:[{data:vue.unref(l),type:"scatter",symbolSize:e.symbolSize,itemStyle:{color:e.symbolColor},markLine:d.value,markArea:y.value}]}}),{getGlobalModel:_,setGlobalModel:k}=vue.inject(GLOBAL_MODEL,{getGlobalModel:O=>{},setGlobalModel:(O,D)=>{}}),T=()=>{var q,j;const O=(q=vue.unref(a))==null?void 0:q.chart.getModel().getComponent("yAxis").axis.scale._extent,D=(j=vue.unref(a))==null?void 0:j.chart.getModel().getComponent("xAxis").axis.scale._extent;D&&O&&(x.value=D[0],f.value=D[1],g.value=O[0],h.value=O[1])},F=vue.computed(()=>{let O=e.dataFieldNames;if(e.dataType==="indicator"){const{formFields:D={}}=e.graphicConfig;D!=null&&D.labelField&&(D!=null&&D.valueField)&&(O={name:D.labelField,value:D.valueField})}return O}),M=(O=[])=>{const{name:D="name",value:q="value"}=vue.unref(F)||{};l.value=O.map(j=>({value:[j[D],j[q]],record:j})),setTimeout(()=>{T()},0)};vue.watch(()=>e.data,O=>{(e.dataType==="static"||vue.unref(r)==="design")&&M(O)},{immediate:!0,deep:!0});const B=vue.ref(!1),L=useRequestData(e),V=async()=>{var O,D;if(e.dataType==="request"){B.value=!0;try{const q=await L();M((D=(O=q==null?void 0:q.data)==null?void 0:O.data)==null?void 0:D.rows)}catch(q){console.error(q)}finally{B.value=!1}}},U=()=>{o.value=!1},$=useEmitEvent(e);k(e.id,{type:e.type,RECORD:""});const P=$("click",O=>{const D=e.id,q=_(D);k(D,{...q,type:e.type,RECORD:O==null?void 0:O.data})}),I=O=>{var D,q;M((q=(D=O==null?void 0:O.data)==null?void 0:D.data)==null?void 0:q.rows)},E=useIndicatorData(e,O=>{e.isViewRedrawing&&a.value.clear(),I(O)}),S=async()=>{try{B.value=!0;const O=await E();I(O)}catch(O){console.error(O)}finally{B.value=!1}},N=()=>{switch(e.dataType){case"indicator":S();break;case"request":V();break}};useOnEvent(e,{refreshData:N,click:P,resetRecord:()=>{const O=e.id,D=_(O);k(O,{...D,RECORD:""})}});const{setRequest:R}=vue.inject(REQUEST_MODEL,{setRequest:O=>{}});return typeof R=="function"&&R({id:e.id,requestFn:N,sortNum:e.requestSort}),n({refreshData:N}),{option:A,style:s,click:P,loading:B,onClose:U,ecanModal:c,echartRef:a}}}),Scatter_vue_vue_type_style_index_0_lang="";function _sfc_render$e(e,n,r,i,a,o){const s=vue.resolveComponent("echarts"),l=vue.resolveComponent("spin"),c=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(e.style)},[vue.createVNode(l,{spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,{ref:"echartRef",option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),vue.createVNode(c,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:vue.withCtx(()=>[vue.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Scatter=_export_sfc$1(_sfc_main$c,[["render",_sfc_render$e]]),EcanScatter=withInstall$1(Scatter),customGraphProps={...props,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},customGraphComponentProps=transformToComponentProps(customGraphProps),_sfc_main$b=vue.defineComponent({name:"EcanCustomGraph",props:{...customGraphComponentProps},components:{Echarts},setup(e){const n=usePickComponentStyle(e),r=vue.ref();return vue.watch(()=>e.optionCode,i=>{try{const a=eval;r.value=a(i)}catch(a){console.error(a)}},{immediate:!0}),{style:n,myOption:r,echarts:echarts__namespace}}});function _sfc_render$d(e,n,r,i,a,o){const s=vue.resolveComponent("echarts");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(e.style)},[vue.createVNode(s,{option:e.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const CustomGraph=_export_sfc$1(_sfc_main$b,[["render",_sfc_render$d]]),EcanCustomGraph=withInstall$1(CustomGraph),comboGraphProps={...props,id:"",name:"组合图表",keyName:"组合图表",type:"ecanComboGraph",width:"400px",height:"400px",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:410,type:"类型一"},{name:"名称三",value:210,type:"类型一"},{name:"名称一",value:510,type:"类型二"},{name:"名称二",value:731,type:"类型二"},{name:"名称三",value:910,type:"类型二"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {a} {c}",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelWidth:void 0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisMinInterval:0,yAxisLeftSplitLineShow:!0,yAxisRightSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",seriesTypes:[{type:"bar",axisIndex:0},{type:"line",axisIndex:0}],yAxis:[{axisLabelFormatter:"{value}"},{axisLabelFormatter:"{value}"}],gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,symbolSize:4,lineStyleWidth:2,smooth:!1,barWidth:"40%",barBorderRadius:"",areaGradientShow:!1,areaGradientColor:"",yAxisLabelShow:!0,yAxisLeftSplitLineType:"solid",yAxisRightSplitLineType:"solid",gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,legendType:"",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanComboGraph",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisLeftName:"",yAxisRightName:"",xAxisName:"",defaultRangeValue:!1,startValue:"",endValue:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0},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$a=vue.defineComponent({name:"EcanComboGraph",props:{...comboGraphComponentProps},components:{Spin,Echarts,EcanModal,AModal:antDesignVue.Modal},setup(e,{expose:n}){const{pageMode:r,fontFamily:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),a=vue.inject("usedComponentList",[]),{getGlobalModel:o,setGlobalModel:s}=vue.inject(GLOBAL_MODEL,{getGlobalModel:H=>{},setGlobalModel:(H,K)=>{}}),l=vue.ref(),c=vue.ref(!1),u=vue.ref(!1),f=vue.ref(null),x=vue.ref([]),h=vue.ref({});let g;const v=usePickComponentStyle(e),p=vue.ref([]),C=vue.ref([]),b=vue.ref(),d=vue.ref([]),m=vue.computed(()=>c.value?ZOOM_FONT_SIZE:12),y=vue.computed(()=>({textStyle:{fontFamily:vue.unref(i)},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:c.value?!1:e.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(){u.value=!0;const H=l.value.chart.getOption(),{xAxis:K}=H||{};K&&K.length&&(x.value=K[0].data)}},myDownload:{show:e.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(e.toolboxDownloadUrl)}},myDataZoom:{show:c.value?!1:e.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 H;c.value=!0,(H=b.value)==null||H.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){antDesignVue.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(c.value?ZOOM_FONT_SIZE:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:c.value?ZOOM_FONT_SIZE:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:vue.unref(d).map((H,K)=>({name:H.name,itemStyle:{color:e.colors[K]},icon:e.legendType})),formatter:H=>getLegendFormat(e.legendFormatter,{name:H})},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:H=>{var ee;const K=H.length;let G="",Y=e.tooltipFormatter;g=(ee=H[0])==null?void 0:ee.data,Y===""&&(Y="{marker} {a} {c}");const J=e.seriesTypes;for(let X=0;X<K;X++){const W=J[X],{tooltipFormatter:Q}=W||{},{marker:te,seriesName:ie,name:ae,value:se,data:fe}=H[X]||{};if(X===0){let he=ae;typeof ae=="string"&&ae[0]==="0"&&!isNaN(+ae)&&(he=(+ae).toString()),G+=`${useValueFormatter(e.xAxisLabelFormatter,he)}<br/>`}G+=useVariablesInText(Q||Y,{textData:{marker:te,name:ae,value:se,seriesName:ie,a:ie,b:ae,c:se||0,...fe}},{useNewline:!0,useSpace:!0}),G+="<br/>"}return G},textStyle:{color:e.tooltipTextStyleColor,fontSize:m.value},position:e.tooltipPosition||void 0},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:vue.unref(C).map(H=>{let K={};return H&&typeof H=="object"?K={...H}:K={value:H},K}),splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{show:e.xAxisLabelShow,color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(H){return typeof H=="string"&&H[0]==="0"&&!isNaN(+H)&&(H=(+H).toString()),useValueFormatter(e.xAxisLabelFormatter,H)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"},max:e.xAxisMaxValue||null},yAxis:vue.unref(F),series:vue.unref(p)})),A=()=>{c.value=!1},_=(H=[],K=!1)=>{let G;if(e.dataFieldConfigType==="key"){const J=K?e.keyTypeDataFieldNames:null;G=useTransformChartDataByAttrKey(H,J)}else if(e.dataFieldConfigType==="value"){const J=K?e.valueTypeDataFieldNames:null;G=useTransformChartDataByAttrValue(H,J)}C.value=G.dimensions;const Y=G.dataset;d.value=G.dataset,p.value=T(Y)},k=(H=[],K,G=!1)=>{const J=useTransformChartDataByAttrKey(H,G?K:null,!0);e.defaultRangeValue&&setDefaultRangeVal({props:e,componentList:vue.unref(a),getGlobalModel:o},J),C.value=J.dimensions;const ee=J.dataset;d.value=J.dataset,p.value=T(ee)};function T(H){const K=[],G=H.length,Y=e.seriesTypes;for(let J=0;J<G;J++){const ee=Y[J],{type:X,axisIndex:W}=ee||{};let Q={type:X,yAxisIndex:W,...H[J]};if(X==="line"){const te={};e.shadowColor&&(te.shadowColor=e.shadowColor,te.shadowBlur=e.shadowBlur,te.shadowOffsetY=e.shadowOffsetY,te.shadowOffsetX=e.shadowOffsetX),Q={...Q,symbolSize:e.symbolSize,smooth:e.smooth,itemStyle:{color:e.colors[J]},areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[J]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[J],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...te}}}if(X==="bar"){const{gradientShow:te,gradientColors:ie,gradientOffset:ae}=e,se={color:e.colors[J]};if(e.barBorderRadius){const fe=e.barBorderRadius.split(",");if(fe!=null&&fe.length){const he=[];for(const ge of fe){const be=parseFloat(ge);isNaN(be)||he.push(be)}se.borderRadius=he}}te&&(se.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[J]},{offset:ae,color:ie[J]},{offset:1,color:ie[J]}]}),Q={...Q,barWidth:e.barWidth.value+e.barWidth.suffix,itemStyle:se}}e.isShowMarkLine&&(Q.markLine={data:[{type:e.markLineType}]}),K.push(Q)}return K}vue.watch(()=>[e.data,e.seriesTypes,e.symbolSize,e.smooth,e.areaStyleOpacity,e.lineStyleWidth,e.barWidth,e.barBorderRadius,e.areaGradientShow,e.areaGradientColor,e.gradientShow,e.gradientColors,e.gradientOffset,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX,e.legendFontSize,e.xAxisLabelFormatter,e.isShowMarkLine,e.markLineType,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([H])=>{(e.dataType==="static"||vue.unref(r)==="design")&&_(H)},{immediate:!0,deep:!0});const F=vue.computed(()=>{const H=e.yAxis;return H==null?void 0:H.map((K,G)=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:G===0?e.yAxisLeftSplitLineShow:e.yAxisRightSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:G===0?e.yAxisLeftSplitLineType:e.yAxisRightSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(Y){return useValueFormatter(K.axisLabelFormatter,Y)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:G===0?e.yAxisLeftName:e.yAxisRightName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:G===0?"right":"left"},max:e.yAxisMaxValue||null}))}),M=vue.ref(!1),B=useRequestData(e),L=async()=>{var H,K;if(e.dataType==="request")try{M.value=!0;const G=await B();_((K=(H=G==null?void 0:G.data)==null?void 0:H.data)==null?void 0:K.rows,!0)}catch(G){console.error(G)}finally{M.value=!1}},V=H=>{var J;const{columns:K=[],rows:G=[]}=((J=H==null?void 0:H.data)==null?void 0:J.data)??{};let Y;K.length>0&&(Y={name:K[0],types:K.slice(1).map(ee=>({label:ee,value:ee}))}),k(G,Y,!0)},U=useIndicatorData(e,H=>{e.isViewRedrawing&&l.value.clear(),V(H)}),$=async()=>{try{M.value=!0;const H=await U();V(H)}catch(H){console.error(H)}finally{M.value=!1}},{loadedData:P}=vue.inject(LOADED_DATA,{loadedData:{}}),I=vue.ref(!1);vue.watch(P,H=>{if(e.dataType==="indicator"){const K=getFixedValueDatas(e.graphicConfig);K!=null&&K.length&&(!vue.unref(I)&&canRequestIndicator(e.graphicConfig,H)?(I.value=!0,E()):canRequestIndicator(e.graphicConfig,H)||(I.value=!1))}},{deep:!0});const E=()=>{switch(e.dataType){case"indicator":canRequestIndicator(e.graphicConfig,vue.unref(P))&&$();break;case"request":L();break}},S=(H,K)=>!!vue.unref(x)[K.value].value.includes(H),N=async()=>{u.value=!1;const H=l.value.chart.getOption();for(let K=0;K<7;K++)await w(H,K)},w=(H,K)=>new Promise(G=>{setTimeout(()=>{const{series:Y,color:J,xAxis:ee}=H,X=l.value.chart,{splitArea:W={}}=ee[0]||{};Y.forEach((Q,te)=>{const ie=Q.data;let ae="";K%2?ae=J[te]+"a8":ae=J[te],ie[f.value].itemStyle={color:ae}}),K%2?(W.show=!0,W.areaStyle.color=vue.unref(x).map((Q,te)=>te===f.value?"#ff003b26":"")):W.show=!1,X.setOption({series:Y,xAxis:ee}),G()},200)});n({refreshData:E});const R=useEmitEvent(e);s(e.id,{type:e.type,RECORD:""});const O=R("click",H=>{const K=o(e.id);s(e.id,{...K,type:e.type,RECORD:e.tooltipShow?g:H==null?void 0:H.data})}),D=H=>{l.value.chart.containPixel("grid",[H.offsetX,H.offsetY])&&O()};e.tooltipShow?h.value["zr:click"]=D:h.value.click=O;const{setRequest:q}=vue.inject(REQUEST_MODEL,{setRequest:H=>{}});return typeof q=="function"&&q({id:e.id,requestFn:E,sortNum:e.requestSort}),useOnEvent(e,{resetRecord:()=>{const H=e.id,K=o(H);s(H,{...K,RECORD:""})},refreshData:E,click:O}),{style:v,option:y,click:O,loading:M,onClose:A,ecanModal:b,echartRef:l,handleLocationOk:N,onFilterOption:S,locationVisible:u,locationValue:f,locationNames:x,eventObj:h}}}),ComboGraph_vue_vue_type_style_index_0_lang="",ComboGraph_vue_vue_type_style_index_1_scoped_cc00fe91_lang="",_withScopeId$2=e=>(vue.pushScopeId("data-v-cc00fe91"),e=e(),vue.popScopeId(),e),_hoisted_1$7={class:"location-wrap"},_hoisted_2$4=_withScopeId$2(()=>vue.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function _sfc_render$c(e,n,r,i,a,o){const s=vue.resolveComponent("echarts"),l=vue.resolveComponent("spin"),c=vue.resolveComponent("ecan-modal"),u=vue.resolveComponent("a-select-option"),f=vue.resolveComponent("a-select"),x=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(e.style)},[vue.createVNode(l,{spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,vue.mergeProps({ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:""},vue.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),vue.createVNode(c,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:vue.withCtx(()=>[vue.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),vue.createVNode(x,{visible:e.locationVisible,"onUpdate:visible":n[1]||(n[1]=h=>e.locationVisible=h),title:"快速定位",onOk:e.handleLocationOk},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$7,[_hoisted_2$4,vue.createVNode(f,{value:e.locationValue,"onUpdate:value":n[0]||(n[0]=h=>e.locationValue=h),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.locationNames,(h,g)=>(vue.openBlock(),vue.createBlock(u,{key:g,value:g},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(h.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const ComboGraph=_export_sfc$1(_sfc_main$a,[["render",_sfc_render$c],["__scopeId","data-v-cc00fe91"]]),EcanComboGraph=withInstall$1(ComboGraph),radarProps={...props,id:"",name:"雷达图",keyName:"雷达图",type:"ecanRadar",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"},{name:"名称五",value:435,type:"类型一"},{name:"名称六",value:215,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",lineStyleWidth:2,symbolSize:4,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{value}",axisNameColor:"",legendFontSize:"12px",graphicConfig:{},graphicType:"ecanRadar",tooltipPosition:"",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1},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$9=vue.defineComponent({name:"EcanRadar",props:{...radarComponentProps},components:{Spin,Echarts,EcanModal},setup(e,{expose:n}){const{pageMode:r,fontFamily:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),a=vue.ref(),o=vue.ref(!1),s=usePickComponentStyle(e),l=vue.ref([]),c=vue.ref(),u=vue.computed(()=>o.value?ZOOM_FONT_SIZE:12),f=vue.ref([]),x=vue.ref(e.valueTypeDataFieldNames.name),h=vue.computed(()=>{const $=vue.unref(f),P=$.length,I=[];for(let E=0;E<P;E++){const{name:S,data:N=[]}=$[E],w=[{name:S,value:N.map(D=>D.value)}];let R=e.colors[E];if(e.gradientShow){const{gradientOffset:D,gradientColors:q}=e;R={x:.7,y:0,x2:0,y2:0,colorStops:[{offset:0,color:e.colors[E]},{offset:D,color:q[E]},{offset:1,color:q[E]}]}}const O={type:"radar",name:S,data:w,areaStyle:{color:R,opacity:e.areaStyleOpacity},tooltip:{trigger:"item"},symbolSize:e.symbolSize,lineStyle:{width:e.lineStyleWidth},label:{show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:D=>{const{data:q,value:j}=D;let H=0,K="0%";if(q)for(const G of q.value)H+=+G;return H&&(K=`${(j/H*100).toFixed(2)}%`),useVariablesInText(e.labelFormatter,{textData:{value:j,percent:K}},{useNewline:!1,useSpace:!1})}}};I.push(O)}return I}),g=vue.computed(()=>{var S;const $=[],P=[],I=vue.unref(f),E=I.length;for(let N=0;N<E;N++){const{data:w=[]}=I[N];for(let R=0;R<w.length;R++)P.push(w[R].value)}if((S=l.value)!=null&&S.length){const N=P!=null&&P.length?Math.max(...P)*1.2:0;for(const w of l.value)$.push({name:w,max:N})}return $}),v=vue.computed(()=>({textStyle:{fontFamily:vue.unref(i)},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.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(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.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 $;o.value=!0,($=c.value)==null||$.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){antDesignVue.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:u.value},show:e.tooltipShow,formatter:$=>{let P="",I=e.tooltipFormatter;I===""&&(I="{marker} {a} {c}");for(let E=0;E<vue.unref(g).length;E++){const S=vue.unref(g)[E],{marker:N,seriesName:w,value:R}=$||{};E===0&&w&&(P+=`${w}<br/>`),P+=useVariablesInText(I,{textData:{marker:N,name:S.name,value:R[E],a:S.name,b:S.name,c:R[E]||0,type:w}},{useNewline:!0,useSpace:!0}),P+="<br/>"}return P},position:e.tooltipPosition||void 0},radar:{indicator:vue.unref(g),axisName:{color:e.axisNameColor}},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(o.value?ZOOM_FONT_SIZE:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:o.value?ZOOM_FONT_SIZE:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:vue.unref(f).map($=>({name:$.name,icon:e.legendType})),formatter:$=>getLegendFormat(e.legendFormatter,{name:$})},series:vue.unref(h)})),p=()=>{o.value=!1},{getGlobalModel:C,setGlobalModel:b}=vue.inject(GLOBAL_MODEL,{getGlobalModel:$=>{},setGlobalModel:($,P)=>{}}),d=($=[],P=!1)=>{let I;if(e.dataFieldConfigType==="key"){const E=P?e.keyTypeDataFieldNames:null;I=useTransformChartDataByAttrKey($,E)}else if(e.dataFieldConfigType==="value"){const E=P?e.valueTypeDataFieldNames:null;I=useTransformChartDataByAttrValue($,E)}l.value=I.dimensions,f.value=I.dataset},m=($=[],P,I=!1)=>{const S=useTransformChartDataByAttrKey($,I?P:null,!0);l.value=S.dimensions,f.value=S.dataset};vue.watch(()=>[e.data,e.areaStyleOpacity,e.legendFontSize,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll,e.labelFormatter],([$])=>{(e.dataType==="static"||vue.unref(r)==="design")&&d($)},{immediate:!0,deep:!0});const y=vue.ref(!1),A=useRequestData(e),_=async()=>{var $,P;if(e.dataType==="request")try{y.value=!0;const I=await A();d((P=($=I==null?void 0:I.data)==null?void 0:$.data)==null?void 0:P.rows,!0)}catch(I){console.error(I)}finally{y.value=!1}},k=useEmitEvent(e);b(e.id,{type:e.type,RECORD:""});const T=$=>{const P=$.event.topTarget.__dimIdx;P!==void 0&&k("click",()=>{var N;const{value:I,name:E}=$.data||{},S=C(e.id);b(e.id,{...S,type:e.type,RECORD:{[vue.unref(x)]:((N=vue.unref(g)[P])==null?void 0:N.name)||"",[E]:I[P],seriesName:E}})})()},F=$=>{var S;const{columns:P=[],rows:I=[]}=((S=$==null?void 0:$.data)==null?void 0:S.data)??{};let E;P.length>0&&(x.value=P[0],E={name:P[0],types:P.slice(1).map(N=>({label:N,value:N}))}),m(I,E,!0)},M=useIndicatorData(e,$=>{e.isViewRedrawing&&a.value.clear(),F($)}),B=async()=>{try{y.value=!0;const $=await M();F($)}catch($){console.error($)}finally{y.value=!1}},L=()=>{switch(e.dataType){case"indicator":B();break;case"request":_();break}};useOnEvent(e,{refreshData:L,resetRecord:()=>{const $=e.id,P=C($);b($,{...P,RECORD:""})},click:T});const{setRequest:U}=vue.inject(REQUEST_MODEL,{setRequest:$=>{}});return typeof U=="function"&&U({id:e.id,requestFn:L,sortNum:e.requestSort}),n({refreshData:L}),{option:v,style:s,click:T,loading:y,onClose:p,ecanModal:c,echartRef:a}}}),Radar_vue_vue_type_style_index_0_lang="";function _sfc_render$b(e,n,r,i,a,o){const s=vue.resolveComponent("echarts"),l=vue.resolveComponent("spin"),c=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(e.style)},[vue.createVNode(l,{spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,{ref:"echartRef",option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),vue.createVNode(c,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:vue.withCtx(()=>[vue.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Radar=_export_sfc$1(_sfc_main$9,[["render",_sfc_render$b]]),EcanRadar=withInstall$1(Radar),__vite_glob_0_0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",__vite_glob_0_1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWoAAAAuCAYAAAABZlMtAAAAAXNSR0IArs4c6QAAEnVJREFUeF7tXU2MHNdxrqrumd0luRJNi4jIXUeEbcBAfIiM+KLk4BUs2GEOkexA+ZHE5c4yjmAISeSDASc5ZAMESAQkiJPAECKJnP2R8sfAjqEgTgIbpi5RDgogIxAQAbFAWbsrShQoUvxZ7kz3q6jqve7p7pnZmdkf8MBqQezt9+rVq/peT3V1T381CLYZAoaAIWAI3FIEjj52+lNIdKbdTr787t995Z2qMXhLrbPJDQFDwBC4zRGYmj19HyJ9jxnuBIb/SSC6752V2etFWCxQ3+YniblvCBgCtw6BqRPNhwHhH4sWsONfWH9+/j8tUN+6dbGZDQFDwBBQBKZOnvkaMP05AGcJ8yVi98W3Vk69Yo8+7CQxBAwBQ+CWIsA4Ndv8FgB+NTODmd+MiD7/1tLcj3uZZo8+bumC2eSGgCFwOyHwyd/+q7EbVyb/AQEeLPj9ahrxFy405y/2w8IC9e10lpivhoAhcMsQmD713CFu078A4H0dI/j7PN5+cP2Zx29sZZgF6lu2bDaxIWAI3C4IHHnkuXsojn4AAJ/IfUY4u3Zj/2/A2V9NB+FggXoQQtZvCBgChsAOEJiaa97LDv4DAQ7nz6QBnlpfbnxjWLUWqIdFyuQMAUPAEBgRgenZpeMM7p8AYF8YyoD8xNrS/NOjqLJAPQpaJmsIGAKGwJAIfGy2OZ8CP4uAJEMQYdMx/9r68vx3B6k4cqL5JDO8euH5xjkdO2iA9RsChoAhYAiMhsDUyTN/DIx/kI9CuAJMx9eWT748SNPR2TOLCHgSAC6nBJ+5sNg4b4F6EGrWbwgYAobAkAj83G/9Te2dzXqTGR7tDMFVdukD68+fen0rNQfnmgf3p/AdQJjJ5Bjg1fXlxmcsUA+5ACZmCBgChsBWCNw1f3pyLKEXAeBzBbnXawQz5xcbF7Yae/dc8xg5+A4C3FuSY2isrTQWLVDbuWcIGAKGwA4RODbXvDtx8H0G+HQhk355bHzz+BvPPH5lK/VTjzTvhRh+CAAHcznmK5DizNrfNl6VtlED9YfyCwjwGsLMRYSrV/34jY8jtK4hJBsIySaCayEcOQrQ3kRIWghpGyG9A8G18SMA8L5L8M7J/XjFJTiZJgguRYBJYJcgcIo8kSK4MWSWdgBwDpnHvNy4b2NXR2AX/q8h1J1v17Yayhjtr8faXmfGTXZY59i3x5m8HDMCR7rnmm+HTE71xchBXuWEm69jHMaxHIt8GB/JeP+3byevN5Jj/7e2R/7vCBgTJoylPfbyrDJBNhLh8LfqyXRIB2NEjCmT6vHjIgDKxostYiehNKsdmS4i7YuAQMflY8ry8hWI76/KZ3aIPAb9Xkb+069OmJEye0RGbCHZBz/lGEO79xmIsnNSv3/p3qjaPqxcpirIF3ZO5u2aqSzX6a5I5ocD7KrIyaGTlc3N6uNH9SPa5X9vv/rZK57qvF3T9fCrt2DR6qIDfZYrzFf1t4q4Tt8Lg2HxDtNXHMv97Zq/gv8O+xngN6V8RwGEb68tN36l90ncaZ060ZwDhGZJjvlHkOJcFqSlb5RAjQsLC7iwcI7gZw6TBObpwwdo9Y3X6fBHD+HF1gYdPHCELl96Dyf3jdHVpEUH9k3gtQ9atG+sRjc4xYl6TBvXExofq0vwpno9ps0Nh1CLiF1C9XoNWzdTqsVELWaUfbvlsBZF1OaUJCi2naNahMRtxniMKGk7iqMIE04pojolSRvjqEaJcxRFhGnSpqgWEySAFCGl7CgiQtkTxeTSFAmRUiCMyPeTBKXEEcVIzrH2O2aRxzT17ZBKYNU9AWlgJq8nk1f96NKERLMEKcz1ROj1ITofZQkcqn1yrO0SUUU+6BP9iIQsUdfrQUIS++RYgqDYrfZKP8t40iDr+0v6SKIziQYAR/KtNEtk1XGZPu0kVrtJ/c/mAf8tdkVergBYsA/EXGK1TwO47EU/onx6FCZAtZ/IzxP0SowHb5BcRPzeTwictefHvl+3ME73IO16EaqMD+2V/ny+6rgB82X2+Ol3YG8+T7C3OC+I/2V/ivN52HqMy+2hML6DX3l8Ae8unAO+fgF0XTy+O/S3Or4nzh27O/OKAZm/g9a37O+goLl7/fj02vLJJwBQjO27HZ1tStb7h9UgfT3CmcuLjcvF9pECtWbTM+cI3n2XoHUPws3LBIcmSbLmQ60JupRskGbK7Zt0IKmTZsdjLbqe1mhCMuK0RVxPCNgHanYxaSbsEmIXkWbCtZTAEdViyRAloDhsu4jiKCXNVJ3TDzlHEhzlb/k/wihCSrgYtDUYSbbnZaIINcFT+XJQTpk1qPs+DVYIFHtZjT+OJKqlxBhJv3wyQnBU/ZKNSrtEImCU2E6oZxOC7NkHcwmCKp8FXwlseb98qkQvk4+BPpj5jFjaO/rED4maEvykXWJfZx6vR8f7rNbbGvRJqutQgFU/ZP1lDjEXdW6G4Jt++v38/goh/gV5vYj4oJzJe/06D3vQvH2qozC/SPg2xUdk9ZYh86cTBcJ5WggKIbPIgnYxaIRIXUg9iqe2tybrzMfnnwRBJTsoz5e3ZheDTDA/Lo/Lzdfg2jE4v5j0G1/Rn1+cNAT7oJj7mLtS9tFHT/9P8EKPdXwpJ+v2N7N7aH+r9gZ/81je5Wcl1HT5q5caHTXM+pTtLY8r+VtZ190Lxj01yW3h760uN57aah750nBfCn+BCHNFOQZeWl+eL7VVzq6hzEf4MKOGhfDY49y7BJ+8Rx93TB85jHlmnbbxUHoH5kH7/QQnDySoGTZP4DWX4v6JMbyetn3wdtcQxuvI1xMCybT1cUUN+UZCsgfewDrX/GOLWkSt8PhCM+5IMm+HNYixzZuaect4lscW4BAiImgz+iDtMI4kA2d9XJGwwygiStsse0wgwVgywOJjB/KBMuIINVPWjNvLp4k8dtCUzT+OSPS23strxq6RWzPs/Fj6JRMPjxE05dOoSpJZhsxe9hE6SJFAH8tkFwUdx5LxM6KTSKeZt2by/rGCf0whGbzvR5FzYrbq95m1XDS8vMpJphweb2h4L86n8pIOix61Lx+vOKE+BtL5y/rloqefupBJS1CXWEMILvgjuAW79c5ArjY+GnWiiJqpI8MJ6h8YEBE4J7fvCM5fWfztPIp6vUqExwrhtrnz6S8Eu46gXl7B+WtZr0yxEIS8QHY7HhTnE4ZMPpeX08P5zD4EyzwxDRmkNyg8CJHbdu9IFq58r/qlt0TBr8xfCP52Hi+EAT31qN1d9vTK4EOw7GOPvwZ31sXjFvws3QlkeuRjXYAte8TRtb7e7846Vh6byHrrumfrm91Jeb+61qXnnZk/MfM7reyOK7/z2kE/0bOrS3MvDAzSDn5Y/dLQMXzt7ZXGN/uNHSWjHiqam5AhYAgYAoZANwLypSHH+mbHsbxXvjQEfFLe7NgKMwvUdkYZAoaAIbDHCBx9rPkQkn5p2PfNDgvUe7wIpt4QMAQMgX4I9HuzI43wIWEdDoOcZdTDoGQyhoAhYAhsA4ECHbwzmvml6xE+VH2zwzLqbQBsQwwBQ8AQ2AkCSmSJ+Bwg3lnUkzq4Pyu2NKx+y6iHRcrkDAFDwBAYEQFfv0OD9c+WhgZq+LDqLFAPi5TJGQKGgCGwDQRCsP5nQCzWAJFXNhfWlxt/NIzKUQN15Q37BVA6+cMAcPZip+ZTkVqeWSEUc9mEZq77TQSYBoBVgJ+6C+FtALhL2sIm1HP5QYR0He+Cj8J7AHAobeMlAPiIa+P78vXpHQdQ6DvyNerltK33F0pDDxun+/zfoY33JwhXAWDyAIBQ11U+0NSLcjzux40XdAklHSZASDy5jWEsy/vfGwAw5vvGAeAmOxyHcbjpUhwDgE3plv6bwmev+bnlnfFsU/1joLR5GaD2eLninH5MXQxH2SlVPnfY0+Vr7LAl09Rr0HIORcy/b64O+/Gy5TT6QIPP+4NcrVa2UenzmQ4ZX1N9wnxv5/rlfW5pERZ+sM0V9Mv77RD0ejHPt/GAlM/HOAZIEgDZFzY5SmT6rn3c1e79LAj2bijp7z4I83fpqUoOFAi4Z/aU/epnRAwRJJCC3xfcKcCTtXcmGOBSEQfFOSjuOWxv/OqxMN6qHn558/qsb5fNwd6iX1X/9uD4Zt3993tnTkmE6bn1el7NDIvrK43GoNUaJVCL7IfMxJmezERoTRBUmInXOMX9YzGxsBAlAKVxH2aip5ALM7FeS6klzERmbMWyF+ZiRJwzE4WdkHaYiUJqCQxEIYPkdHInr8UHEkqVmShMicBSFL62MhO1BoYTMggpB4Q8S1FZFZ5k4skrQrNWZqISTISMkrMHlWyipJEykzBjGCpzkZGc/KOswyozUcggWqxAGCI5SzEwJgJtG8gzH3szE4WH7mnggRHo2RRKIVeGYSChBCalrGmBPVhgGnr2QGAV+vYiM9GzDYvyHQZimZkY1iFjRm7FTMzJNh2acrnKQcYwlNM6IztUTuE+DMKcQlLtz/VkH5WyXj+uF2Muk+s9LrOvP1Ov4IP+mfnh935cZd4CfTv/YI/MaKx+5Pv4W2U0DmBiensCH7XIhCyN68GIrOCfMyh7MjEr616ksw/N4BwUErffzwCv1Qke2KpS3tRsU0gtv1uaheHc9Qi+tNWXiyMF6v61Pj6FF1s/2btaH+MRtVt7WesjohRgQK0PqUhBw9f60JogUutDmIE+mCNG5DglomqtD6Ha8fZrfURKWRPz+tT60AJKhdoh26/1obTxHdX6kKImQtULtT58DZP+tT5CuNqTWh85g7BY6yIw7rpqbZRrW2TRdEe1PooXm61qfRRrdgQGXSeay8Dt1b4o1SbpqrUR/A01RDK6/o78LdUKqdRiGbbWhxowqLZJd22Y7YffEUcyr0ZEv/iTpbnX+o3s9bqe1J2+QXB/v2A9UqD2aczDCHARs8JMecW8UPMjq5R3MNmgyy7BOyb34wdpgnntD3lcoDVAaj7LdmP+uK61NTyF3IVjrYAnNHKHLI8LNOv21ewk4wbJsjmSmhO++p3UAYk1o/QV7FxKEPs+X1WPwjFjrFXqfA0Qf8vts2jNpkWftMv4UAlPaeZS0IkZfQGnrDZIqEiXHWfV6rL6H6EqXZTPF6rThYzU1+MQ9rKnf0eAnn5epJmrfXKWEzJKpp/1B0q31NgItHAteZT5g5q2k5NbANVfpJD76nbZHYGnbxcp5DktXYOoz+CLFPLQH+bL9Wc1SXzdD1/vQ+s6FefzfRJzCpl5qKRXoJCXMs3stK9WtfOnsG8tZmyVqmv9MsJKVbs8P+6bQXZmy7LIggGdTD9XlFtW7uvS39uv7szZt+RFBvNPcNFfLUQYtuodR7VCXSeDL9+9jGZPRr/vJMiVecPTrcz6fn517pTK6537mzcP51dxPbeqkJTdcfULroP6izWoGeADYv7l1ZX5l/rpUwIM8mLxjRAGOI8JfKlYNa/PKo549TBxQ8AQMAQMAZg+ceZzTPgiMEx6OLgNjI+urTTO9oOnz+t7lyGB+6vBepSM2pbDEDAEDAFDoA8CP31y8dOOWX484G4fq7VS2u+vrjT+dECwlsx6y9f3LFDbaWcIGAKGwC4hMPXos9MYxf9W/KUXBDiz+vE3vwILC1IbsWvr9661A3jy7eXGX8oAC9S7tECmxhAwBAwBQUB+O3E8oRe59NuJ+L0a8ZfPLzbkBd2ewXqf42+GXx/P+7PX9yxQ27llCBgChsAuIyC/Rn5hs/4CsLJMdEPAV5LI/dKF5vzFvo9Cqq/vMb+0tjI/Y4F6lxfI1BkChoAhkCFwdLb5JwjwjQIibxLi599amvtx32Cd/Y4i84+yn+WyQG3nlCFgCBgCe4jA0dnmPAI/m/8EDcIl59wX31459Uq/ae9+rDkDMZzPyqBaoN7DBTLVhoAhYAgIAtOzS8cZ3LdDhQlpusnAv76+PP/dYRCyQD0MSiZjCBgChsAOEfjYidOfTZH+1Rcx0qfWDOieWFuaf3qQagvUgxCyfkPAEDAEdgmBI488dw/F0Q8A4BOZSgT8s9Xlua9vNYUF6l1aAFNjCBgChsAwCEyfeu6Qa9O/I+Bnc3mGsxMHr574v7/+HSm02bVZoB4GWZMxBAwBQ2AXETg21xxPHPw9AzzYUcsvj423j7/xzONXqlNZoN5F8E2VIWAIGALDI8A4Ndv8FgB+tZNZ8+vg6g+svfDYalGPBerhUTVJQ8AQMAR2HYGjs82vf/irJE+F8o/vM/HPry82/tcC9a5DbQoNAUPAENg+AlMnmg8DwWlA+MLaYuO/7NHH9rG0kYaAIWAI7BkCx+aaB88vNuTXBbu2/wfAQwC29PHqBQAAAABJRU5ErkJggg==",__vite_glob_1_0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",__vite_glob_1_1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWoAAAAuCAYAAAABZlMtAAAAAXNSR0IArs4c6QAAEthJREFUeF7tXV2IXdd1Xmufc+/8SKpkIyXWzDQ2Soqhfaghfgl9qENMgkPBdqgI2JE0M6ltQv8cSil9CJ2WpA+BkqQlBNvx/Ehxiq0SbFJqEhzivCQQHHAfGggkRsIaRYlkRX/zd+85a9Vr7b3PPefM/ZNGGYnMOi/nnr3XXnvt75yz9rr77m9dhNoxdfilMR5feQWJv3DmxOwP6vV2bQgYAoaAIbC9CGClu7k5N/nW3d8GgI8jQJsZHl8+MXNye02y3gwBQ8AQMATKCFQc9cSRpfcB5D9GxPcWQsifW16a/bzBZggYAoaAIXBrEKhG1AAw+fhzU5CkrwHAvdEkBJg/c+j0EzA3R7fGTOvVEDAEDIGdi8AmRy1QHHrymb3r643XEPD+DjT8asPhJ04tzqzvXLhs5IaAIWAIbD8CXR21mHHP9MJom/hbAPhQNIsB36CEPn5uYfb89ptqPRoChoAhsDMR6OmoFY65OTfx1t3PIcBs4ayZTyfOfeTtpelf7EzIbNSGgCFgCGwvAv0ddbBl8ujC5wDgX0qmXXRMH3v7xKff2F5zrTdDwBAwBHYeAkM5aoFl6lOLj7ODJQBOAkzrCO4TZ44fe3XnwWYjNgQMAUNg+xAY2lGLSRNH5x9EQNlnPRpMJED+q+Wl2a9tn8nWkyFgCBgCOwsBddR3TS/ck+Twt8snZj47aPgHjzx/v3PuO8BwZ5RFxC+eWZr+h0Ftrd4QMAQMAUPg+hHAfdML+8YJvo8A9wHD6ysJPHppceZSP1W/f2zx/cT8PQC4u5BDOHnXSOvxnzz7VPv6zbAWhoAhYAgYAr0QwIkj8y8j4sNRgAHeJAePnlucOdUPtrtm5g8khN8FhvuKyBrgB83R1sNvPfvUZYPcEDAEDAFD4OYggJOPLdwHCb8OiHtLKi9BBh9e/ubMm/26mXjymXFcH3kFgB8syf0M8uzB5ReeOHNzTDQthoAhYAjsbAR0jTo460VA/OMKHAwzyydmFvtCdPilZHJ85T+B4XARWSOcywAfPLc0/X87G14bvSFgCBgCW0eg2PUha9W7co2sK86aAebOHp/550FdTR1d+CID/H1HDq8Bw5cROY9lkijElRTdrGuCWgoSveyWlqRUVqnuIbup2BdEu4kAnAMg+dD1COXD9NXV5Kpe7U/7H3ZsPezqau+7d7p+BLlivEV9t3F1G8CQcoWZtfGG56UYbw+5jlkFQLWRXN/zEYbNgMwAyMDMKGfBHYGBQrnUIzLlOchZZJFDHeQAhB0dUk+kIFPUS8QY2qlulSfVqf12kZc6b0vUr3YxoPNn/+yr3hyQEyTORa9/clU35qEP7ScHyKVfr0ftERsygAyRU2kv/Um5tJMjyhbtMtD+vT7GPH6WcuQMHEOed8YlysWOTOQyb7va31I92A7tMbYR8YxB5R23MOMRdLwBACOI3GoFHS7q2QAUfS25bpf0rwOKzHrC4BJG3GCQax2SlG0wuoRhNWF0KQNcBZG7mqS816V8+eoK7wOAS1LnGgzJFYakwZA2PS4X3mFwTYZ0hCEdY2ju9uVjbzHs2cPw+gEG+CNxqfFl6/LSdfckm7bnTRydX0TAY2VxZlg8e2JmZpCznjy2+Bkm/ioiXNe2v0F6+9XLe4EI8i6BdMtMgCjnUK7PZKgP5apP36fYrlovxjOIPl8ej+Laf5DbW+0vyFf6k7feF2h/vl3sP7RXPeVxxP59fWgYmnm54fsv9StmFHhEszrjrOLYsScYPHi8AY84XjFTfFphr+BPtfuj962Mfxhv/f7o/Qg41e5P3e4yzh1cw3g3PQ+d/qIebw6L0yL2BrO4TUAmJvDlQCQOk4jIyzE7B1IvClmQBvF4rM7Pn9UDSr1IA7lQLnJh/mfpr5u87x+JmNipXiZ0pf6JGR2SGOSknJkcIOf+mqRB6E/tlvaqjyiUcygntUvkQfTl0l4fG19OeSEv/WQ5h/5ycpgSUcYJOmmv/YsC6UcfhETaMyUyuRGTEzlSR6rYyuQk7aR9nhMnKRJlOblEHhumRMajdjuSSQNTpLzNlKTIec6UOkdZ3uI0bVJOLUqxwVneDvI5Y8NRO2dq+EmHsJlQO8u44eRM1Gwit9eImqMJtVptHnEptdpthrGUsJWROO31VkZju1KC9RZj0qDVjTbt2p3wynqL9qT76eq1c7xv/whdurZG+5P38oVLpwgO3Uvwy/P8h+MH6Kc/PU9w+ADDyZPhORnO+3V1qBNHF+befaf/qeKsAd5cdfDhQTtCJo7OP4wALwLgyHAmbFVK3omow38ov5z+nYm+rjaR1dpFJ+qdtIROUXf/dn6S6NigPiZMAuVJwdtZmkSD0+5MCp36OFn0atNxnqXJpjChbm901lWcNo23mJQ221j0Vx+DoFSoL01CJTzq+G+6Pz3truEV7keBV7/xem9dmhQ7k+Sm+1PIxf6YQVwzinvRmZLRO1j9LE4WfZ2MXEJhdTIM4uyA/CwvLl0+azjecY7BUYvT1mlTHzJxwl5WZube8kGfxN7q02L/3vlrrK9OUSNR1Sd2qh1+jtZ2Yfb0fYoWZD85+Fk1yHtb5FrKHcrMJG31W4LKez0lfdqPTiWUJDqHeSesGOo3E5KpOif2TlimNf2mEZyvfsOQz0He16sedd7yjSA6ahkqoZeVSL/hSCSln4yYUpGXiDxPCDBMtrmcQ5+YEOp1xu0soeYIUTtDBkcE7YRgVCJ7mWTaDO2U0KUErs3gMsJWSoAJY5IRJm1aWUt4d9Kka2mLfi9J+crKBt2ZjtFFibhHdhFcvEoaZY//muA97yEfWb/kMRny6Bn5Th5ZmAbgL5d/ZGSAU5jBowN/ZDy2+CdI9IVOZBsjRu/8isioiHy3Vt+JoMovp+Dgwrvl3x5dNiiWK8J1/HrNBE7eMgkk/FtTiXyLSDgsfGigpepDRFjMBTESlffAhXekE0F39ITZQ2Is1SPy5Tkl6onxdIw85dl1IdKOjkUND+siXm8x3mJccdkkjFsDJvU24VGp2qNAhYWW+uRX/cYRJ6Vof7i/NXs6TtPfF33fKpFxLcJX3yWhXFzOKGbbrvdFAlm9vwJDcR/jfRcvI99y/TKVk9A3Lv90vHYJBx9Ru+ANw2pF+OrunZn3p15OnbV/sP1yhX+cY2QrhosPF+fml028Xq33ztHXx2UWdfohYvZ2yGMW6oN8R79G2OqEfT8aWTNIJOsjVA6PKekZmSUylf6L/mLE7GeOUJ8H+wVR72T1rF8KNJL3zlPOib9Wp6zLNWHZJnXiDHW8GiE3QqQcrtNU2ucdeWmvc03KWU7sna30I+1zTjGhDHNOxRnnOSOKEw7LI5mcE9IlEmxyO8t9pAwZN9GxRM5Nl5Asm8i1RsxjKbV0eUSWSdqM4ynJWa83Wowhcga3m9dwg8ed49X1jHbvSfja6hrvkWWR1RHae4dfFrnDpfybxhodSBp8/p0mT0yN8Nl3xEmPMfz8NMMHxxh+cohg7t3ljzld/ti6o5antteOkJzg0XPfmHl9yMnAxAwBQ8AQMAS2gMDAtWTPWuSXb2hHyBYMs6aGgCFgCBgCHoGBjlqEwo4QcdZ/WgZu2B8ZDWxDwBAwBAyBG0dgKEcd1XfbETIs7fzGTbSWhoAhYAjsbASuy1HrmnUK35cgu4CN+TLk+MCgHxh3Nsw2ekPAEDAEbhyBoR21OekbB9laGgKGgCGwFQSGctS6VQ9hodIR8//mCT4yKHnTVoyztoaAIWAIGAJD/Jh48MjC0w7hS3UnvZLgA/3IL1OfWngA0lKrDOC3ch31ZsWHrve1XCtmZZCpOeXmaQogamK5V9Rf76bONivo8ZwN0LupWgqGOXzDYnwyntq4/PhySCHR81DHbTIufz8235aB9zc8fpthLQFUBkLp0KEj2VerrGehG0sWX0871sPJPmAApUMX8sgi1UDHxV0TCrUKBjnZ/xsO1dtud+pKchjlCv2eZi36dT+wnAGgJfuIlQod9WclG2WfcOxbPpTlEi8nZA45NgKdWj4EenVFPshtrAt9O1Ea96gw9mC9av9GwjAGgButkh2hL6Frw5qnc8djXSjb0vc6A+wCgBUApXGL2tAuketr3v4VXxdlAK4Aar3IpyzpO/clDZZ8zUr7vnKN7wCA37gGSyL9iwCwP2nwBWmQjDDAeSio4FJ2YYThIAD86gIDTAHAGVDSihyyLzoeZZq4lAlVXA7ZvKwMRLlQ2nhsUSYuFGoGfegbUXelkwMvnT0+O91Lsc+o1/iv8r+XDzJia/U9mImV3eR1hqH02L+dchCK21HDtl7elWEY+tBTj3tTK+/N8AvtC85HVV9kRnaqu9lb3lvvP5fbdcOjBEAHrxINvsqo7Dbe7jjHff5Djddb6h+RglbuU24MPd76/SmRk4Lijv5Y4G+/MunkSakzEwPzMDATA2OxGzPRUwaFeO5p5YGBqNQXz0uSYQQKeWD6KaPRMx19nZAHPYXdk2HC5xoz0TMmI8NQ+hRmYmQGCrcm0NbVpGCLWCB2KD3e08w9eabDTBR6j8gUtPAezETVr6QaTWei5JWuzEQh3QiPMLIElYHoWY9lZmLu6eYdhmMk1SgOwkxU1pkwDxlyR7kjUjIMCXNSyj0JRujiIceJMApDOREqazHjtkuomRG1EbnpiFrCTMS25PsoMRM9hRxcoJMXzMQGwdoGY42ZCOkYaS6QnszEm0Ah1z8TyGEBER4pO1Ee4KQ1R3WO3wX5E4JtOq4/10ePXBIl2nc910ekk2/O9dElR0g5Z0fIbVHkvpC3PeSa8E6nT64P1dMj10fB6BuQayRQ5Arm5s3K9RHcZCdHRzXXSpHbpORci/H+1nJ9xFQq1Zwq/vnolfulbHclt0mPXB/Kj1ZatjIHUdyRDqiU6yMw+LYj14f073OReLtirg8/i6hzCrk/Krk+CqZhj1wfkX5+y3N96KQxINdHyB0yMNcHCpOxk+sjy4kaW8j1sbbe4vEhc31MHbqXztzsXB+Vf3ypeum+KU+nphf+gAnESd9TavZD8N8Vy5kXurrwEvn7OupLkWYl8ood1rPHeXmlE5dp4iX6cSXCipaUEjP5onJWuFJkF20ogtda/5v0BMFaVrgyzT7aU8FHA63qzSmbVWWmSkqGChm803BIe4oGXSJTP+QO/b2CX2FmOZqXYK02/VdSsdRkS3BvYtz2uC8+DUA5f2J3nCvjKgBWWaViS3gXc2iIrw/JXzz9W5ygjzp9VO2/gknjQD+XhEMaIUfauOTZkJhXadxKjmfJhBd0SO6Mjj7NoaFxdL0+ZNjTHB7hs4TOwJ5+rZFjzNkR2opizdWh0TNX62NWv0jfZsm65xNSebq7fvX0OUAC/V0TImmWPdb8G6h2+OuCQh5yeMicVmQDDDR0oYVL5CsRc8y4p0tCIVeHxvRKV/f1nj6OnMVoWOniEn2H6FhydIT+1a5QL3k7JAGVLAtpwqUQQcdsfT6XR8iw5xxrDg9Z2gnZ/DQRU8yqp2fHuJ7Rikt4t0TUbo2xMUJXJKueS1mz6jXGfSQtGfUkm15zj6eQyxKJZNETCjmc1OfkhinksrODU1jQv+XqOKnLAPh0v7zUk0eXPgScv9rJCyLfOfjJs8dn5rt6XSs0BAwBQ8AQGBqBYo36Rrff+Wx5+KKkhg29rjLww2ePz742tBUmaAgYAoaAIdATAXXUYfud7OwoiCzMfBpzfKQfkWXy2OJnmfjfivzTCOcB4aPLi/3/wsvuhyFgCBgChsDwCGCvPdL9t98xTh5d+ioAf6bU1c8oyz/2y2/+xenhuzdJQ8AQMAQMgUEIYH0LnuzsWHX4dK890h/4638fWb+850UGKP65HAB/NDK68ZD9+/gguK3eEDAEDIHrR0CXPiaOzL+MiOJ4v7J8fObpXmqmPv31O7md/jcAfyjKIMAro3uvfvLn//E3svfdDkPAEDAEDIGbjIA6at2Sl8EDZ78x83Iv/Qcf+/rdSSP9HjO/v5BB/NLy0rG/u56/lLnJ9ps6Q8AQMAR+5xEYKtfHwSPP3+/Q/Q8AHFBEZEepw79cXpr+2u88QjZAQ8AQMARuMQIDHfXU0ecfAnDfYoBRbytvMMAnzx6ffeUW227dGwKGgCGwIxAYkOtjYRYBngv/ciqAXARwf7Z8/NiPdgQ6NkhDwBAwBG4DBPr8C/n8vwLiP0YbZV914txH3l6a/sVtYLeZYAgYAobAjkFgk6P+4JPPNM5tNF8AhsMlFN7ME/7ouYXZ8zsGGRuoIWAIGAK3CQIVR71/9vk9Ixl+G6D8J7b8Ko+2//zss0+t3iY2mxmGgCFgCOwoBCqO+n2PvXBHnrZ/DMAfEBQQYP7ModNPwNxcPV3bjgLJBmsIGAKGwK1EYNPSh+yXdmn6BiB9ZXlp9vO30jjr2xAwBAwBQ6DHX3HdM72w79TijPyLjR2GgCFgCBgCtxiB/weD2jMQWbgYrgAAAABJRU5ErkJggg==",borderProps={...props,name:"边框",keyName:"边框",type:"ecanBorder",width:"300px",height:"300px",zIndex:0,fontSize:"16px",fontFamily:"",fontWeight:400,title:"标题",mode:"no-title",borderColor:"#eee",borderRadius:"5",borderStyle:"solid",borderWidth:"2px",backgroundColor:"#ffffff",useBorderModify:!1,textShadow:"",data:{},gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",isTransparent:!1,titleMode:"type-1"},borderComponentProps=transformToComponentProps(borderProps),borderEvents=["click"],_sfc_main$8=vue.defineComponent({name:"EcanBorder",props:{...borderComponentProps},setup(e){const n=usePickComponentStyle(e,["background"]),r=vue.computed(()=>{const{isTransparent:v,gradientShow:p,gradientColor:C,gradientOffset:b,gradientAngle:d,backgroundColor:m}=e;if(p){let y=C;return v&&(y="transparent"),y?{background:`linear-gradient(${d}, ${m}, ${y} ${b*100}%)`}:{}}else return{}}),i=vue.computed(()=>{const{events:v}=e;let p={};return v!=null&&v.length&&v.find(b=>b.emit==="showModal")&&(p={cursor:"pointer"}),p}),{theme:a}=vue.inject(GLOBAL_CONFIG,{theme:"light"}),o=vue.computed(()=>{let v="";switch(e.titleMode){case"type-2":v="2";break}return v}),s=vue.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-left.png":__vite_glob_0_0,"../../assets/border-title-decoration-left2.png":__vite_glob_0_1})[`../../assets/border-title-decoration-left${o.value}.png`],self.location).href),l=vue.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-right.png":__vite_glob_1_0,"../../assets/border-title-decoration-right2.png":__vite_glob_1_1})[`../../assets/border-title-decoration-right${o.value}.png`],self.location).href),c=vue.computed(()=>({width:"100%",height:"100%"})),u=vue.computed(()=>{const{borderRadius:v}=e,p=[],C={};if(v){const b=v.split(",");for(const d of b)(+d||+d==0)&&p.push(+d+"px")}return p!=null&&p.length&&(C.borderRadius=p.join(" ")),C}),x=useEmitEvent(e)("click",()=>{}),h=vue.ref([]);vue.watch(()=>e.data,v=>{h.value=v},{immediate:!0,deep:!0}),useOnEvent(e,{click:x});const{setGlobalModel:g}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(v,p)=>{}});return g(e.id,{type:e.type,value:h}),{style:n,gradientStyle:r,click:x,borderStyle:c,theme:a,borderRadiusStyle:u,titleLeftIcon:s,titleRightIcon:l,cursorStyle:i}}}),Border_vue_vue_type_style_index_0_scoped_8dd53b8f_lang="",_withScopeId$1=e=>(vue.pushScopeId("data-v-8dd53b8f"),e=e(),vue.popScopeId(),e),_hoisted_1$6=["id"],_hoisted_2$3=_withScopeId$1(()=>vue.createElementVNode("div",{class:"top-left border-item"},null,-1)),_hoisted_3$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"top-right border-item"},null,-1)),_hoisted_4$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),_hoisted_5$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),_hoisted_6$1={class:"title-item"},_hoisted_7$1=["src"],_hoisted_8$1={class:"title"},_hoisted_9$1=["src"],_hoisted_10$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"top-left border-item"},null,-1)),_hoisted_11$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"top-right border-item"},null,-1)),_hoisted_12$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),_hoisted_13$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),_hoisted_14$1={key:2,class:"left-title"},_hoisted_15$1={class:"title"};function _sfc_render$a(e,n,r,i,a,o){return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-border",style:vue.normalizeStyle({...e.style,...e.gradientStyle,...e.borderRadiusStyle,...e.cursorStyle}),onClick:n[0]||(n[0]=(...s)=>e.click&&e.click(...s)),id:"container_"+e.id},[e.mode==="no-title"?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"no-title",style:vue.normalizeStyle(e.borderStyle)},[e.useBorderModify?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[_hoisted_2$3,_hoisted_3$1,_hoisted_4$1,_hoisted_5$1],64)):vue.createCommentVNode("",!0)],4)):vue.createCommentVNode("",!0),e.mode==="top-title"?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"top-title",style:vue.normalizeStyle(e.borderStyle)},[vue.createElementVNode("div",{class:vue.normalizeClass(["title-item-wrapper",e.titleMode])},[vue.createElementVNode("div",_hoisted_6$1,[vue.createElementVNode("img",{class:vue.normalizeClass(["title-decoration",e.titleMode]),src:e.titleLeftIcon},null,10,_hoisted_7$1),vue.createElementVNode("div",_hoisted_8$1,vue.toDisplayString(e.title),1),vue.createElementVNode("img",{class:vue.normalizeClass(["title-decoration",e.titleMode]),src:e.titleRightIcon},null,10,_hoisted_9$1)])],2),_hoisted_10$1,_hoisted_11$1,_hoisted_12$1,_hoisted_13$1],4)):vue.createCommentVNode("",!0),e.mode==="left-title"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_14$1,[vue.createElementVNode("div",_hoisted_15$1,[vue.createElementVNode("span",null,vue.toDisplayString(e.title),1)])])):vue.createCommentVNode("",!0)],12,_hoisted_1$6)}const Border=_export_sfc$1(_sfc_main$8,[["render",_sfc_render$a],["__scopeId","data-v-8dd53b8f"]]),EcanBorder=withInstall$1(Border),tabsProps$1={...props,tabHorizontalPadding:"0px",type:"ecanTabs",name:"标签页",keyName:"标签页",width:"500px",height:"400px",tabFontSize:"14px",backgroundColor:"#ffffff",activeTabColor:"#1890ff",tabBackgroundImage:"",activeTabBackgroundImage:"",tabColor:"#333",tabBarGutter:"24px",tabFontWeight:400,value:"",activeKey:0,autoSwitch:!1,autoSwitchInterval:5,containIds:[],tabFlexDirection:"row",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}],tabAlignItems:"flex-start",tabJustifyContent:"flex-start",tabType:"tabs",tabWidth:"120px",isAutoScroll:!1,scrollSpeed:10,componentList:[],hideTabs:!1,gridTopPx:"0",gridBottomPx:"0",gridLeftPx:"0",gridRightPx:"0"},tabsComponentProps=transformToComponentProps(tabsProps$1),tabsEvents=["tabChange"],_sfc_main$7=vue.defineComponent({name:"EcanTabs",props:{...tabsComponentProps},components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption,MarqueeScroll},setup(e){const n=usePickComponentStyle(e),r=vue.ref(0);vue.watch(()=>e.activeKey,T=>{r.value=T},{immediate:!0});const{pageMode:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),a=vue.inject("getContainerMap",()=>{}),o=vue.inject("componentList",[]),s=["ecanBorder","ecanTabs","ecanCirculate"],l=vue.computed(()=>a()||{}),c=T=>{const F=vue.unref(l)[T],M=[];if(F)for(const B in F)for(const L of F[B]){const V=vue.unref(o).find(U=>U.id===L);M.push(L),s.includes(V==null?void 0:V.type)&&M.push(...c(L))}return M},u=vue.computed(()=>c(e.id));let f=null;const x=()=>{const T=Array.isArray(vue.unref(g))?vue.unref(g).length-1:0;vue.unref(i)!=="design"&&!e.isAutoScroll&&e.autoSwitch&&T>0&&(f=setInterval(()=>{const F=vue.unref(r)+1;F<=T?r.value=F:r.value=0,v.value=vue.unref(g)[vue.unref(r)],d()},e.autoSwitchInterval*1e3))},h=()=>{clearInterval(f)};vue.onMounted(()=>{vue.unref(i)!=="design"&&x()}),vue.onBeforeUnmount(()=>{h()});const g=vue.ref([]),v=vue.ref({});vue.watch(()=>e.data,T=>{g.value=T,v.value=Array.isArray(T)&&T.length>0?T[0]:{}},{immediate:!0,deep:!0});const p=T=>r.value===T,C=useEmitEvent(e),{setGlobalModel:b}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(T,F)=>{}});b(e.id,{RECORD:vue.unref(v),value:vue.unref(v),activeKey:r});const{emitRefreshPage:d}=vue.inject(REFRESH_PAGE,{emitRefreshPage:()=>{}}),m=T=>{let{tab:F,index:M}=T||{};if(T.label){const B=vue.unref(g).findIndex(L=>L.title===T.label);B!==-1&&(M=B,F=vue.unref(g)[B])}C("tabChange",()=>{!isNaN(+M)&&M!==vue.unref(r)&&(v.value=F,r.value=M,b(e.id,{RECORD:F,value:F,activeKey:M}),d())})()},y=vue.computed(()=>{const T=e.componentList.map(F=>parseFloat(F.left)+parseFloat(F.width)).sort((F,M)=>M-F)[0];return{width:T?T+"px":"100%"}}),A=()=>{vue.unref(i)!=="design"&&h()},_=T=>{var F,M;return T?(M=(F=T==null?void 0:T.parentNode)==null?void 0:F.className)!=null&&M.includes("ecan-")?T.parentNode.getAttribute("cpntid"):_(T.parentNode):""},k=T=>{var F;if(vue.unref(i)!=="design"){const M=(T==null?void 0:T.toElement)||{};if((F=M==null?void 0:M.className)!=null&&F.includes("ecan-"))vue.unref(u).includes(M.getAttribute("cpntid"))||x();else if((M==null?void 0:M.className)==="page-config")x();else{const B=_(M);vue.unref(u).includes(B)||x()}}};return useOnEvent(e,{tabChange:m}),{style:n,activeKey:r,isActive:p,tabChange:m,myData:g,useImagePath,pageMode:i,scrollWrapStyle:y,onMouseEnter:A,onMouseLeave:k}}}),Tabs_vue_vue_type_style_index_0_scoped_c936183e_lang="",_hoisted_1$5=["id"],_hoisted_2$2=["onClick"];function _sfc_render$9(e,n,r,i,a,o){const s=vue.resolveComponent("a-select-option"),l=vue.resolveComponent("a-select"),c=vue.resolveComponent("marquee-scroll");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-tabs",style:vue.normalizeStyle(e.style),id:"container_"+e.id,onMouseenter:n[0]||(n[0]=(...u)=>e.onMouseEnter&&e.onMouseEnter(...u)),onMouseleave:n[1]||(n[1]=(...u)=>e.onMouseLeave&&e.onMouseLeave(...u))},[e.pageMode==="design"||!e.isAutoScroll?vue.withDirectives((vue.openBlock(),vue.createElementBlock("div",{key:0,class:"tabs-header",style:vue.normalizeStyle({fontSize:e.tabFontSize,alignItems:e.tabAlignItems,justifyContent:e.tabJustifyContent,flexDirection:e.tabFlexDirection,margin:`${e.gridTopPx||0} ${e.gridRightPx||0} ${e.gridBottomPx||0} ${e.gridLeftPx||0}`})},[e.tabType==="tabs"?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:0},vue.renderList(e.myData,(u,f)=>(vue.openBlock(),vue.createElementBlock("div",{class:"tab",style:vue.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.isActive(f)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(f)?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabFlexDirection==="row"?e.tabBarGutter:null,marginBottom:e.tabFlexDirection==="column"?e.tabBarGutter:null,fontWeight:e.tabFontWeight}),key:f,onClick:vue.withModifiers(x=>e.tabChange({tab:u,index:f}),["prevent","stop"])},[vue.createElementVNode("div",{class:"tab-inner",style:vue.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(f)?e.activeTabColor:"transparent"}`:""})},vue.toDisplayString(u.title),5)],12,_hoisted_2$2))),128)):e.tabType==="select"?(vue.openBlock(),vue.createBlock(l,{key:1,value:e.activeKey,style:vue.normalizeStyle({width:e.tabWidth})},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.myData,(u,f)=>(vue.openBlock(),vue.createBlock(s,{key:f,value:f,onClick:x=>e.tabChange({tab:u,index:f})},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(u.title),1)]),_:2},1032,["value","onClick"]))),128))]),_:1},8,["value","style"])):vue.createCommentVNode("",!0)],4)),[[vue.vShow,e.pageMode==="design"||!e.hideTabs]]):vue.createCommentVNode("",!0),e.pageMode!=="design"&&e.isAutoScroll?(vue.openBlock(),vue.createBlock(c,{key:1,visible:e.isAutoScroll,step:e.scrollSpeed,vertical:!1,style:vue.normalizeStyle({height:e.height})},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"scroll-wrap",style:vue.normalizeStyle(e.scrollWrapStyle)},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.componentList,u=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(u.type),vue.normalizeProps(vue.mergeProps({key:u.id},u)),null,16))),128))],4)]),_:1},8,["visible","step","style"])):vue.createCommentVNode("",!0)],44,_hoisted_1$5)}const Tabs$1=_export_sfc$1(_sfc_main$7,[["render",_sfc_render$9],["__scopeId","data-v-c936183e"]]),EcanTabs=withInstall$1(Tabs$1),circulateProps={...props,name:"循环列表",type:"ecanCirculate",keyName:"循环列表",width:"300px",height:"300px",zIndex:0,borderColor:"#eee",borderStyle:"solid",borderWidth:"2px",graphicConfig:{},isAutoScroll:!1,scrollSpeed:10,componentList:[],data:[],dataType:"indicator",keyFieldMap:[],unitInterval:15,backgroundColor:"#ffffff",colNum:null,scrollDirection:"horizontal"},circulateComponentProps=transformToComponentProps(circulateProps),circulateEvents=["click","refreshData","resetRecord"];let nanoid=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((n,r)=>(r&=63,r<36?n+=r.toString(36):r<62?n+=(r-26).toString(36).toUpperCase():r>62?n+="-":n+="_",n),"");const _sfc_main$6=vue.defineComponent({name:"EcanCirculate",props:{...circulateComponentProps,sourceLeft:String,sourceTop:String,sourceWidth:Number},components:{MarqueeScroll,Skeleton},setup(e,{expose:n}){const r=vue.ref(!1),i=usePickComponentStyle(e,["background"]),a=vue.inject("usedComponentList",[]),o=vue.inject("isMobile",!1),{getGlobalModel:s,setGlobalModel:l}=vue.inject(GLOBAL_MODEL,{getGlobalModel:T=>{},setGlobalModel:(T,F)=>{}}),c=vue.ref([]),u=vue.ref({}),{pageMode:f}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),x=vue.computed(()=>{if(vue.unref(o)){const T=document.body.clientWidth,F=e.sourceWidth||parseFloat(e.width);return T/F||1}else return 1});function h(T,F){const M=F.find(B=>B.id===e.id);if(M)for(const B of T)B.left=parseFloat(B.left)-parseFloat(M.sourceLeft||M.left)+"px",B.top=parseFloat(B.top)-parseFloat(M.sourceTop||M.top)+"px"}const g=T=>{const F=T.sort((V,U)=>parseFloat(V.top)-parseFloat(U.top))[0],M=T.sort((V,U)=>parseFloat(V.left)-parseFloat(U.left))[0],B=T.map(V=>parseFloat(V.left)+parseFloat(V.width)).sort((V,U)=>U-V)[0],L=T.map(V=>parseFloat(V.top)+parseFloat(V.height)).sort((V,U)=>U-V)[0];if(M&&B&&F&&L){const V=parseFloat(M.left),U=parseFloat(F.top);return{width:B-V,height:L-U,left:V}}else return{width:0,height:0,left:0}},v=vue.ref({}),p=T=>{var S,N;const F=[],{graphicConfig:M,id:B,componentList:L,keyFieldMap:V,unitInterval:U,colNum:$}=e;let P=lodashEs.cloneDeep(L),I=[];if((S=vue.unref(a))!=null&&S.length)for(const w of vue.unref(a))I.push(w),(N=w==null?void 0:w.componentList)!=null&&N.length&&I.push(...w.componentList);if(M.pageMode==="design"&&M.preview){const{containerMap:w}=M.pageConfig||{};I=M.componentList||[],I.push(e),P=moveToComponentList(w,lodashEs.cloneDeep(I),B)}h(P,I);const E=g(P);if(T!=null&&T.length){const{width:w,left:R,height:O}=E;let D=0,q=0;T.forEach((j,H)=>{j.index=H+1;const K=nanoid(),G=lodashEs.cloneDeep(P);for(const Y of G){const J=V.find(X=>X.keyName===Y.keyName),ee=nanoid();if(Y.left=(parseFloat(Y.left)+D)*vue.unref(x)+"px",Y.top=(parseFloat(Y.top)+q)*vue.unref(x)+"px",Y.scale=vue.unref(x),Y.id=ee,Y.keyName=Y.name+"_"+ee,Y.unitId=K,J!=null&&J.fieldName){const X=Y.text.match(/\{(.+?)\}/g);switch(Y.type){case"ecanText":{Y.data={value:String(j[J.fieldName])},X!=null&&X.length||(Y.text="{value}");break}case"ecanProportion":{Y.data={percent:String(j[J.fieldName])},X!=null&&X.length||(Y.text="{percent}");break}}}}$&&j.index%$===0?(D=0,q+=U+O):D+=U+w,F.push(...G),v.value[K]=j}),u.value={width:(($||T.length)*(w+U)+R)*vue.unref(x)+"px",height:($?Math.ceil(T.length/$)*(U+O):U+O)*vue.unref(x)+"px"}}c.value=F},C=T=>{var M;const{rows:F=[]}=((M=T==null?void 0:T.data)==null?void 0:M.data)??{};p(F)},b=useIndicatorData(e,C),d=async()=>{try{r.value=!0;const T=await b();C(T)}catch(T){console.error(T)}finally{r.value=!1}},m=()=>{switch(e.dataType){case"indicator":d();break}};useOnEvent(e,{refreshData:m,resetRecord:()=>{const T=e.id,F=s(T);l(T,{...F,RECORD:""})}}),n({refreshData:m}),l(e.id,{type:e.type,RECORD:""});const{setRequest:A}=vue.inject(REQUEST_MODEL,{setRequest:T=>{}});typeof A=="function"&&A({id:e.id,requestFn:m,sortNum:e.requestSort});const _=useEmitEvent(e);return{loading:r,style:i,myComponentList:c,scrollWrapStyle:u,pageMode:f,click:T=>{let F=T.target;if(F){let M=F.getAttribute("unitId");for(;!M&&!F.className.includes("ecan-");)F=F.parentElement,M=F.getAttribute("unitId");M&&_("click",()=>{const B=s(e.id);l(e.id,{...B,type:e.type,RECORD:vue.unref(v)[M]})})()}}}}}),Circulate_vue_vue_type_style_index_0_scoped_85608bec_lang="",_hoisted_1$4=["id"];function _sfc_render$8(e,n,r,i,a,o){const s=vue.resolveComponent("marquee-scroll"),l=vue.resolveComponent("skeleton");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-circulate",style:vue.normalizeStyle(e.style),id:"container_"+e.id,onClick:n[0]||(n[0]=(...c)=>e.click&&e.click(...c))},[vue.createVNode(l,{loading:e.loading},{default:vue.withCtx(()=>{var c;return[(c=e.myComponentList)!=null&&c.length?(vue.openBlock(),vue.createBlock(s,{key:0,visible:e.pageMode!=="design"&&e.isAutoScroll,step:e.scrollSpeed,vertical:e.scrollDirection==="vertical",marqueeStyle:{height:"100%"},wrapStyle:{height:"100%",overflow:"auto"}},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"scroll-wrap",style:vue.normalizeStyle(e.scrollWrapStyle)},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.myComponentList,u=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(u.type),vue.normalizeProps(vue.mergeProps({key:u.id},u)),null,16))),128))],4)]),_:1},8,["visible","step","vertical"])):vue.createCommentVNode("",!0)]}),_:1},8,["loading"])],12,_hoisted_1$4)}const Circulate=_export_sfc$1(_sfc_main$6,[["render",_sfc_render$8],["__scopeId","data-v-85608bec"]]),EcanCirculate=withInstall$1(Circulate),templateProps={...props,name:"模板",type:"ecanTemplate",keyName:"模板",width:"300px",height:"300px",borderColor:"#eee",borderRadius:"5",borderWidth:"2px",borderStyle:"solid",pageId:""},templateComponentProps=transformToComponentProps(templateProps),templateEvents=["refreshData"],_sfc_main$5=vue.defineComponent({name:"EcanTemplate",props:{...templateComponentProps},components:{},setup(e){const n=usePickComponentStyle(e,["background"]),{templateEmit:r}=vue.inject("templateOperate",{templateEmit:(a,o)=>{}})||{};return useOnEvent(e,{refreshData:()=>{r("refreshTemplate",e.pageId)}}),{style:n}}});function _sfc_render$7(e,n,r,i,a,o){return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-template",style:vue.normalizeStyle(e.style)},[vue.renderSlot(e.$slots,"default")],4)}const Template=_export_sfc$1(_sfc_main$5,[["render",_sfc_render$7]]),EcanTemplate=withInstall$1(Template),imageProps={...props,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{},isHoverStyle:!1,borderRadius:"",isAnimation:!1,animationSource:{name:"",directory:""},actionType:"link",isDrillShow:!1,targetTemplate:"",transParams:[]},imageComponentProps=transformToComponentProps(imageProps),imageEvents=["click"];var lottie$1={exports:{}};(function(module,exports){typeof navigator<"u"&&function(e,n){module.exports=n()}(commonjsGlobal,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(n){_useWebWorker=!!n},getWebWorker=function(){return _useWebWorker},setLocationHref=function(n){locationHref=n},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,n){var r,i=e.length,a;for(r=0;r<i;r+=1){a=e[r].prototype;for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n.prototype[o]=a[o])}}function getDescriptor(e,n){return Object.getOwnPropertyDescriptor(e,n)}function createProxyFunction(e){function n(){}return n.prototype=e,n}var audioControllerFactory=function(){function e(n){this.audios=[],this.audioFactory=n,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(r){this.audios.push(r)},pause:function(){var r,i=this.audios.length;for(r=0;r<i;r+=1)this.audios[r].pause()},resume:function(){var r,i=this.audios.length;for(r=0;r<i;r+=1)this.audios[r].resume()},setRate:function(r){var i,a=this.audios.length;for(i=0;i<a;i+=1)this.audios[i].setRate(r)},createAudio:function(r){return this.audioFactory?this.audioFactory(r):window.Howl?new window.Howl({src:[r]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(r){this.audioFactory=r},setVolume:function(r){this._volume=r,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var r,i=this.audios.length;for(r=0;r<i;r+=1)this.audios[r].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(r,i){var a=0,o=[],s;switch(r){case"int16":case"uint8c":s=1;break;default:s=1.1;break}for(a=0;a<i;a+=1)o.push(s);return o}function n(r,i){return r==="float32"?new Float32Array(i):r==="int16"?new Int16Array(i):r==="uint8c"?new Uint8ClampedArray(i):e(r,i)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?n:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$6=function(r){return typeof r}:_typeof$6=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],n,r=e.length;for(n=0;n<r;n+=1)BMMath[e[n]]=Math[e[n]]})(),BMMath.random=Math.random,BMMath.abs=function(e){var n=_typeof$6(e);if(n==="object"&&e.length){var r=createSizedArray(e.length),i,a=e.length;for(i=0;i<a;i+=1)r[i]=Math.abs(e[i]);return r}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,n,r,i){this.type=e,this.currentTime=n,this.totalTime=r,this.direction=i<0?-1:1}function BMCompleteEvent(e,n){this.type=e,this.direction=n<0?-1:1}function BMCompleteLoopEvent(e,n,r,i){this.type=e,this.currentLoop=r,this.totalLoops=n,this.direction=i<0?-1:1}function BMSegmentStartEvent(e,n,r){this.type=e,this.firstFrame=n,this.totalFrames=r}function BMDestroyEvent(e,n){this.type=e,this.target=n}function BMRenderFrameErrorEvent(e,n){this.type="renderFrameError",this.nativeError=e,this.currentTime=n}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}var createElementID=function(){var e=0;return function(){return e+=1,idPrefix$1+"__lottie_element_"+e}}();function HSVtoRGB(e,n,r){var i,a,o,s,l,c,u,f;switch(s=Math.floor(e*6),l=e*6-s,c=r*(1-n),u=r*(1-l*n),f=r*(1-(1-l)*n),s%6){case 0:i=r,a=f,o=c;break;case 1:i=u,a=r,o=c;break;case 2:i=c,a=r,o=f;break;case 3:i=c,a=u,o=r;break;case 4:i=f,a=c,o=r;break;case 5:i=r,a=c,o=u;break}return[i,a,o]}function RGBtoHSV(e,n,r){var i=Math.max(e,n,r),a=Math.min(e,n,r),o=i-a,s,l=i===0?0:o/i,c=i/255;switch(i){case a:s=0;break;case e:s=n-r+o*(n<r?6:0),s/=6*o;break;case n:s=r-e+o*2,s/=6*o;break;case r:s=e-n+o*4,s/=6*o;break}return[s,l,c]}function addSaturationToRGB(e,n){var r=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return r[1]+=n,r[1]>1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(e,n){var r=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return r[2]+=n,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(e,n){var r=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return r[0]+=n/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var e=[],n,r;for(n=0;n<256;n+=1)r=n.toString(16),e[n]=r.length===1?"0"+r:r;return function(i,a,o){return i<0&&(i=0),a<0&&(a=0),o<0&&(o=0),"#"+e[i]+e[a]+e[o]}}(),setSubframeEnabled=function(n){subframeEnabled=!!n},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(n){expressionsPlugin=n},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(n){expressionsInterfaces=n},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(n){defaultCurveSegments=n},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(n){idPrefix$1=n};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(r){return typeof r}:_typeof$5=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$5(e)}var dataManager=function(){var e=1,n=[],r,i,a={onmessage:function(){},postMessage:function(g){r({data:g})}},o={postMessage:function(g){a.onmessage({data:g})}};function s(h){if(window.Worker&&window.Blob&&getWebWorker()){var g=new Blob(["var _workerSelf = self; self.onmessage = ",h.toString()],{type:"text/javascript"}),v=URL.createObjectURL(g);return new Worker(v)}return r=h,a}function l(){i||(i=s(function(g){function v(){function C($,P){var I,E,S=$.length,N,w,R,O;for(E=0;E<S;E+=1)if(I=$[E],"ks"in I&&!I.completed){if(I.completed=!0,I.hasMask){var D=I.masksProperties;for(w=D.length,N=0;N<w;N+=1)if(D[N].pt.k.i)A(D[N].pt.k);else for(O=D[N].pt.k.length,R=0;R<O;R+=1)D[N].pt.k[R].s&&A(D[N].pt.k[R].s[0]),D[N].pt.k[R].e&&A(D[N].pt.k[R].e[0])}I.ty===0?(I.layers=m(I.refId,P),C(I.layers,P)):I.ty===4?y(I.shapes):I.ty===5&&V(I)}}function b($,P){if($){var I=0,E=$.length;for(I=0;I<E;I+=1)$[I].t===1&&($[I].data.layers=m($[I].data.refId,P),C($[I].data.layers,P))}}function d($,P){for(var I=0,E=P.length;I<E;){if(P[I].id===$)return P[I];I+=1}return null}function m($,P){var I=d($,P);return I?I.layers.__used?JSON.parse(JSON.stringify(I.layers)):(I.layers.__used=!0,I.layers):null}function y($){var P,I=$.length,E,S;for(P=I-1;P>=0;P-=1)if($[P].ty==="sh")if($[P].ks.k.i)A($[P].ks.k);else for(S=$[P].ks.k.length,E=0;E<S;E+=1)$[P].ks.k[E].s&&A($[P].ks.k[E].s[0]),$[P].ks.k[E].e&&A($[P].ks.k[E].e[0]);else $[P].ty==="gr"&&y($[P].it)}function A($){var P,I=$.i.length;for(P=0;P<I;P+=1)$.i[P][0]+=$.v[P][0],$.i[P][1]+=$.v[P][1],$.o[P][0]+=$.v[P][0],$.o[P][1]+=$.v[P][1]}function _($,P){var I=P?P.split("."):[100,100,100];return $[0]>I[0]?!0:I[0]>$[0]?!1:$[1]>I[1]?!0:I[1]>$[1]?!1:$[2]>I[2]?!0:I[2]>$[2]?!1:null}var k=function(){var $=[4,4,14];function P(E){var S=E.t.d;E.t.d={k:[{s:S,t:0}]}}function I(E){var S,N=E.length;for(S=0;S<N;S+=1)E[S].ty===5&&P(E[S])}return function(E){if(_($,E.v)&&(I(E.layers),E.assets)){var S,N=E.assets.length;for(S=0;S<N;S+=1)E.assets[S].layers&&I(E.assets[S].layers)}}}(),T=function(){var $=[4,7,99];return function(P){if(P.chars&&!_($,P.v)){var I,E=P.chars.length;for(I=0;I<E;I+=1){var S=P.chars[I];S.data&&S.data.shapes&&(y(S.data.shapes),S.data.ip=0,S.data.op=99999,S.data.st=0,S.data.sr=1,S.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},P.chars[I].t||(S.data.shapes.push({ty:"no"}),S.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),F=function(){var $=[5,7,15];function P(E){var S=E.t.p;typeof S.a=="number"&&(S.a={a:0,k:S.a}),typeof S.p=="number"&&(S.p={a:0,k:S.p}),typeof S.r=="number"&&(S.r={a:0,k:S.r})}function I(E){var S,N=E.length;for(S=0;S<N;S+=1)E[S].ty===5&&P(E[S])}return function(E){if(_($,E.v)&&(I(E.layers),E.assets)){var S,N=E.assets.length;for(S=0;S<N;S+=1)E.assets[S].layers&&I(E.assets[S].layers)}}}(),M=function(){var $=[4,1,9];function P(E){var S,N=E.length,w,R;for(S=0;S<N;S+=1)if(E[S].ty==="gr")P(E[S].it);else if(E[S].ty==="fl"||E[S].ty==="st")if(E[S].c.k&&E[S].c.k[0].i)for(R=E[S].c.k.length,w=0;w<R;w+=1)E[S].c.k[w].s&&(E[S].c.k[w].s[0]/=255,E[S].c.k[w].s[1]/=255,E[S].c.k[w].s[2]/=255,E[S].c.k[w].s[3]/=255),E[S].c.k[w].e&&(E[S].c.k[w].e[0]/=255,E[S].c.k[w].e[1]/=255,E[S].c.k[w].e[2]/=255,E[S].c.k[w].e[3]/=255);else E[S].c.k[0]/=255,E[S].c.k[1]/=255,E[S].c.k[2]/=255,E[S].c.k[3]/=255}function I(E){var S,N=E.length;for(S=0;S<N;S+=1)E[S].ty===4&&P(E[S].shapes)}return function(E){if(_($,E.v)&&(I(E.layers),E.assets)){var S,N=E.assets.length;for(S=0;S<N;S+=1)E.assets[S].layers&&I(E.assets[S].layers)}}}(),B=function(){var $=[4,4,18];function P(E){var S,N=E.length,w,R;for(S=N-1;S>=0;S-=1)if(E[S].ty==="sh")if(E[S].ks.k.i)E[S].ks.k.c=E[S].closed;else for(R=E[S].ks.k.length,w=0;w<R;w+=1)E[S].ks.k[w].s&&(E[S].ks.k[w].s[0].c=E[S].closed),E[S].ks.k[w].e&&(E[S].ks.k[w].e[0].c=E[S].closed);else E[S].ty==="gr"&&P(E[S].it)}function I(E){var S,N,w=E.length,R,O,D,q;for(N=0;N<w;N+=1){if(S=E[N],S.hasMask){var j=S.masksProperties;for(O=j.length,R=0;R<O;R+=1)if(j[R].pt.k.i)j[R].pt.k.c=j[R].cl;else for(q=j[R].pt.k.length,D=0;D<q;D+=1)j[R].pt.k[D].s&&(j[R].pt.k[D].s[0].c=j[R].cl),j[R].pt.k[D].e&&(j[R].pt.k[D].e[0].c=j[R].cl)}S.ty===4&&P(S.shapes)}}return function(E){if(_($,E.v)&&(I(E.layers),E.assets)){var S,N=E.assets.length;for(S=0;S<N;S+=1)E.assets[S].layers&&I(E.assets[S].layers)}}}();function L($){$.__complete||(M($),k($),T($),F($),B($),C($.layers,$.assets),b($.chars,$.assets),$.__complete=!0)}function V($){$.t.a.length===0&&"m"in $.t.p}var U={};return U.completeData=L,U.checkColors=M,U.checkChars=T,U.checkPathProperties=F,U.checkShapes=B,U.completeLayers=C,U}if(o.dataManager||(o.dataManager=v()),o.assetLoader||(o.assetLoader=function(){function C(d){var m=d.getResponseHeader("content-type");return m&&d.responseType==="json"&&m.indexOf("json")!==-1||d.response&&_typeof$5(d.response)==="object"?d.response:d.response&&typeof d.response=="string"?JSON.parse(d.response):d.responseText?JSON.parse(d.responseText):null}function b(d,m,y,A){var _,k=new XMLHttpRequest;try{k.responseType="json"}catch{}k.onreadystatechange=function(){if(k.readyState===4)if(k.status===200)_=C(k),y(_);else try{_=C(k),y(_)}catch(T){A&&A(T)}};try{k.open(["G","E","T"].join(""),d,!0)}catch{k.open(["G","E","T"].join(""),m+"/"+d,!0)}k.send()}return{load:b}}()),g.data.type==="loadAnimation")o.assetLoader.load(g.data.path,g.data.fullPath,function(C){o.dataManager.completeData(C),o.postMessage({id:g.data.id,payload:C,status:"success"})},function(){o.postMessage({id:g.data.id,status:"error"})});else if(g.data.type==="complete"){var p=g.data.animation;o.dataManager.completeData(p),o.postMessage({id:g.data.id,payload:p,status:"success"})}else g.data.type==="loadData"&&o.assetLoader.load(g.data.path,g.data.fullPath,function(C){o.postMessage({id:g.data.id,payload:C,status:"success"})},function(){o.postMessage({id:g.data.id,status:"error"})})}),i.onmessage=function(h){var g=h.data,v=g.id,p=n[v];n[v]=null,g.status==="success"?p.onComplete(g.payload):p.onError&&p.onError()})}function c(h,g){e+=1;var v="processId_"+e;return n[v]={onComplete:h,onError:g},v}function u(h,g,v){l();var p=c(g,v);i.postMessage({type:"loadAnimation",path:h,fullPath:window.location.origin+window.location.pathname,id:p})}function f(h,g,v){l();var p=c(g,v);i.postMessage({type:"loadData",path:h,fullPath:window.location.origin+window.location.pathname,id:p})}function x(h,g,v){l();var p=c(g,v);i.postMessage({type:"complete",animation:h,id:p})}return{loadAnimation:u,loadData:f,completeAnimation:x}}(),ImagePreloader=function(){var e=function(){var b=createTag("canvas");b.width=1,b.height=1;var d=b.getContext("2d");return d.fillStyle="rgba(0,0,0,0)",d.fillRect(0,0,1,1),b}();function n(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(b,d,m){var y="";if(b.e)y=b.p;else if(d){var A=b.p;A.indexOf("images/")!==-1&&(A=A.split("/")[1]),y=d+A}else y=m,y+=b.u?b.u:"",y+=b.p;return y}function a(b){var d=0,m=setInterval((function(){var y=b.getBBox();(y.width||d>500)&&(this._imageLoaded(),clearInterval(m)),d+=1}).bind(this),50)}function o(b){var d=i(b,this.assetsPath,this.path),m=createNS("image");isSafari?this.testImageLoaded(m):m.addEventListener("load",this._imageLoaded,!1),m.addEventListener("error",(function(){y.img=e,this._imageLoaded()}).bind(this),!1),m.setAttributeNS("http://www.w3.org/1999/xlink","href",d),this._elementHelper.append?this._elementHelper.append(m):this._elementHelper.appendChild(m);var y={img:m,assetData:b};return y}function s(b){var d=i(b,this.assetsPath,this.path),m=createTag("img");m.crossOrigin="anonymous",m.addEventListener("load",this._imageLoaded,!1),m.addEventListener("error",(function(){y.img=e,this._imageLoaded()}).bind(this),!1),m.src=d;var y={img:m,assetData:b};return y}function l(b){var d={assetData:b},m=i(b,this.assetsPath,this.path);return dataManager.loadData(m,(function(y){d.img=y,this._footageLoaded()}).bind(this),(function(){d.img={},this._footageLoaded()}).bind(this)),d}function c(b,d){this.imagesLoadedCb=d;var m,y=b.length;for(m=0;m<y;m+=1)b[m].layers||(!b[m].t||b[m].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(b[m]))):b[m].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(b[m]))))}function u(b){this.path=b||""}function f(b){this.assetsPath=b||""}function x(b){for(var d=0,m=this.images.length;d<m;){if(this.images[d].assetData===b)return this.images[d].img;d+=1}return null}function h(){this.imagesLoadedCb=null,this.images.length=0}function g(){return this.totalImages===this.loadedAssets}function v(){return this.totalFootages===this.loadedFootagesCount}function p(b,d){b==="svg"?(this._elementHelper=d,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function C(){this._imageLoaded=n.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=a.bind(this),this.createFootageData=l.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return C.prototype={loadAssets:c,setAssetsPath:f,setPath:u,loadedImages:g,loadedFootages:v,destroy:h,getAsset:x,createImgData:s,createImageData:o,imageLoaded:n,footageLoaded:r,setCacheType:p},C}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(n,r){if(this._cbs[n])for(var i=this._cbs[n],a=0;a<i.length;a+=1)i[a](r)},addEventListener:function(n,r){return this._cbs[n]||(this._cbs[n]=[]),this._cbs[n].push(r),(function(){this.removeEventListener(n,r)}).bind(this)},removeEventListener:function(n,r){if(!r)this._cbs[n]=null;else if(this._cbs[n]){for(var i=0,a=this._cbs[n].length;i<a;)this._cbs[n][i]===r&&(this._cbs[n].splice(i,1),i-=1,a-=1),i+=1;this._cbs[n].length||(this._cbs[n]=null)}}};var markerParser=function(){function e(n){for(var r=n.split(`\r
120
+ `),i={},a,o=0,s=0;s<r.length;s+=1)a=r[s].split(":"),a.length===2&&(i[a[0]]=a[1].trim(),o+=1);if(o===0)throw new Error;return i}return function(n){for(var r=[],i=0;i<n.length;i+=1){var a=n[i],o={time:a.tm,duration:a.dr};try{o.payload=JSON.parse(n[i].cm)}catch{try{o.payload=e(n[i].cm)}catch{o.payload={name:n[i].cm}}}r.push(o)}return r}}(),ProjectInterface=function(){function e(n){this.compositions.push(n)}return function(){function n(r){for(var i=0,a=this.compositions.length;i<a;){if(this.compositions[i].data&&this.compositions[i].data.nm===r)return this.compositions[i].prepareFrame&&this.compositions[i].data.xt&&this.compositions[i].prepareFrame(this.currentFrame),this.compositions[i].compInterface;i+=1}return null}return n.compositions=[],n.currentFrame=0,n.registerComposition=e,n}}(),renderers={},registerRenderer=function(n,r){renderers[n]=r};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}function _typeof$4(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$4=function(r){return typeof r}:_typeof$4=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$4(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var n="svg";e.animType?n=e.animType:e.renderer&&(n=e.renderer);var r=getRenderer(n);this.renderer=new r(this,e.rendererSettings),this.imagePreloader.setCacheType(n,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=n,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay="autoplay"in e?e.autoplay:!0,this.name=e.name?e.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(e,"autoloadSegments")?e.autoloadSegments:!0,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,n){n&&_typeof$4(n)!=="object"&&(n=JSON.parse(n));var r={wrapper:e,animationData:n},i=e.attributes;r.path=i.getNamedItem("data-animation-path")?i.getNamedItem("data-animation-path").value:i.getNamedItem("data-bm-path")?i.getNamedItem("data-bm-path").value:i.getNamedItem("bm-path")?i.getNamedItem("bm-path").value:"",r.animType=i.getNamedItem("data-anim-type")?i.getNamedItem("data-anim-type").value:i.getNamedItem("data-bm-type")?i.getNamedItem("data-bm-type").value:i.getNamedItem("bm-type")?i.getNamedItem("bm-type").value:i.getNamedItem("data-bm-renderer")?i.getNamedItem("data-bm-renderer").value:i.getNamedItem("bm-renderer")?i.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var a=i.getNamedItem("data-anim-loop")?i.getNamedItem("data-anim-loop").value:i.getNamedItem("data-bm-loop")?i.getNamedItem("data-bm-loop").value:i.getNamedItem("bm-loop")?i.getNamedItem("bm-loop").value:"";a==="false"?r.loop=!1:a==="true"?r.loop=!0:a!==""&&(r.loop=parseInt(a,10));var o=i.getNamedItem("data-anim-autoplay")?i.getNamedItem("data-anim-autoplay").value:i.getNamedItem("data-bm-autoplay")?i.getNamedItem("data-bm-autoplay").value:i.getNamedItem("bm-autoplay")?i.getNamedItem("bm-autoplay").value:!0;r.autoplay=o!=="false",r.name=i.getNamedItem("data-name")?i.getNamedItem("data-name").value:i.getNamedItem("data-bm-name")?i.getNamedItem("data-bm-name").value:i.getNamedItem("bm-name")?i.getNamedItem("bm-name").value:"";var s=i.getNamedItem("data-anim-prerender")?i.getNamedItem("data-anim-prerender").value:i.getNamedItem("data-bm-prerender")?i.getNamedItem("data-bm-prerender").value:i.getNamedItem("bm-prerender")?i.getNamedItem("bm-prerender").value:"";s==="false"&&(r.prerender=!1),r.path?this.setParams(r):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var n=this.animationData.layers,r,i=n.length,a=e.layers,o,s=a.length;for(o=0;o<s;o+=1)for(r=0;r<i;){if(n[r].id===a[o].id){n[r]=a[o];break}r+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(i=e.assets.length,r=0;r<i;r+=1)this.animationData.assets.push(e.assets[r]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var n=getExpressionsPlugin();n&&n.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var n=e.shift();this.timeCompleted=n.time*this.frameRate;var r=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(r,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},AnimationItem.prototype.loadSegments=function(){var e=this.animationData.segments;e||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(n){this.triggerConfigError(n)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,n){var r=typeof e=="number"?e:void 0,i=typeof n=="number"?n:void 0;this.renderer.updateContainerSize(r,i)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var n,r=0;r<this.markers.length;r+=1)if(n=this.markers[r],n.payload&&n.payload.name===e)return n;return null},AnimationItem.prototype.goToAndStop=function(e,n,r){if(!(r&&this.name!==r)){var i=Number(e);if(isNaN(i)){var a=this.getMarkerData(e);a&&this.goToAndStop(a.time,!0)}else n?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,n,r){if(!(r&&this.name!==r)){var i=Number(e);if(isNaN(i)){var a=this.getMarkerData(e);a&&(a.duration?this.playSegments([a.time,a.time+a.duration],!0):this.goToAndStop(a.time,!0))}else this.goToAndStop(i,n,r);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var n=this.currentRawFrame+e*this.frameModifier,r=!1;n>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(n>this.totalFrames?n%this.totalFrames:0)||(r=!0,n=this.totalFrames-1):n>=this.totalFrames?(this.playCount+=1,this.checkSegments(n%this.totalFrames)||(this.setCurrentRawFrameValue(n%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(n):n<0?this.checkSegments(n%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+n%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(r=!0,n=0)):this.setCurrentRawFrameValue(n),r&&(this.setCurrentRawFrameValue(n),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,n){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-n)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+n)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,n){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?r=e:this.currentRawFrame+this.firstFrame>n&&(r=n-e)),this.firstFrame=e,this.totalFrames=n-e,this.timeCompleted=this.totalFrames,r!==-1&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(e,n){if(n&&(this.segments.length=0),_typeof$4(e[0])==="object"){var r,i=e.length;for(r=0;r<i;r+=1)this.segments.push(e[r])}else this.segments.push(e);this.segments.length&&n&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return this.segments.length?(this.adjustSegment(this.segments.shift(),e),!0):!1},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,n){n&&this.name!==n||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var n="";if(e.e)n=e.p;else if(this.assetsPath){var r=e.p;r.indexOf("images/")!==-1&&(r=r.split("/")[1]),n=this.assetsPath+r}else n=this.path,n+=e.u?e.u:"",n+=e.p;return n},AnimationItem.prototype.getAssetData=function(e){for(var n=0,r=this.assets.length;n<r;){if(e===this.assets[n].id)return this.assets[n];n+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,n,r){try{var i=this.renderer.getElementByPath(e);i.updateDocumentData(n,r)}catch{}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var n=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",n),this.onError&&this.onError.call(this,n)},AnimationItem.prototype.triggerConfigError=function(e){var n=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",n),this.onError&&this.onError.call(this,n)};var animationManager=function(){var e={},n=[],r=0,i=0,a=0,o=!0,s=!1;function l(P){for(var I=0,E=P.target;I<i;)n[I].animation===E&&(n.splice(I,1),I-=1,i-=1,E.isPaused||x()),I+=1}function c(P,I){if(!P)return null;for(var E=0;E<i;){if(n[E].elem===P&&n[E].elem!==null)return n[E].animation;E+=1}var S=new AnimationItem;return h(S,P),S.setData(P,I),S}function u(){var P,I=n.length,E=[];for(P=0;P<I;P+=1)E.push(n[P].animation);return E}function f(){a+=1,M()}function x(){a-=1}function h(P,I){P.addEventListener("destroy",l),P.addEventListener("_active",f),P.addEventListener("_idle",x),n.push({elem:I,animation:P}),i+=1}function g(P){var I=new AnimationItem;return h(I,null),I.setParams(P),I}function v(P,I){var E;for(E=0;E<i;E+=1)n[E].animation.setSpeed(P,I)}function p(P,I){var E;for(E=0;E<i;E+=1)n[E].animation.setDirection(P,I)}function C(P){var I;for(I=0;I<i;I+=1)n[I].animation.play(P)}function b(P){var I=P-r,E;for(E=0;E<i;E+=1)n[E].animation.advanceTime(I);r=P,a&&!s?window.requestAnimationFrame(b):o=!0}function d(P){r=P,window.requestAnimationFrame(b)}function m(P){var I;for(I=0;I<i;I+=1)n[I].animation.pause(P)}function y(P,I,E){var S;for(S=0;S<i;S+=1)n[S].animation.goToAndStop(P,I,E)}function A(P){var I;for(I=0;I<i;I+=1)n[I].animation.stop(P)}function _(P){var I;for(I=0;I<i;I+=1)n[I].animation.togglePause(P)}function k(P){var I;for(I=i-1;I>=0;I-=1)n[I].animation.destroy(P)}function T(P,I,E){var S=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),N,w=S.length;for(N=0;N<w;N+=1)E&&S[N].setAttribute("data-bm-type",E),c(S[N],P);if(I&&w===0){E||(E="svg");var R=document.getElementsByTagName("body")[0];R.innerText="";var O=createTag("div");O.style.width="100%",O.style.height="100%",O.setAttribute("data-bm-type",E),R.appendChild(O),c(O,P)}}function F(){var P;for(P=0;P<i;P+=1)n[P].animation.resize()}function M(){!s&&a&&o&&(window.requestAnimationFrame(d),o=!1)}function B(){s=!0}function L(){s=!1,M()}function V(P,I){var E;for(E=0;E<i;E+=1)n[E].animation.setVolume(P,I)}function U(P){var I;for(I=0;I<i;I+=1)n[I].animation.mute(P)}function $(P){var I;for(I=0;I<i;I+=1)n[I].animation.unmute(P)}return e.registerAnimation=c,e.loadAnimation=g,e.setSpeed=v,e.setDirection=p,e.play=C,e.pause=m,e.stop=A,e.togglePause=_,e.searchAnimations=T,e.resize=F,e.goToAndStop=y,e.destroy=k,e.freeze=B,e.unfreeze=L,e.setVolume=V,e.mute=U,e.unmute=$,e.getRegisteredAnimations=u,e}(),BezierFactory=function(){var e={};e.getBezierEasing=r;var n={};function r(d,m,y,A,_){var k=_||("bez_"+d+"_"+m+"_"+y+"_"+A).replace(/\./g,"p");if(n[k])return n[k];var T=new b([d,m,y,A]);return n[k]=T,T}var i=4,a=.001,o=1e-7,s=10,l=11,c=1/(l-1),u=typeof Float32Array=="function";function f(d,m){return 1-3*m+3*d}function x(d,m){return 3*m-6*d}function h(d){return 3*d}function g(d,m,y){return((f(m,y)*d+x(m,y))*d+h(m))*d}function v(d,m,y){return 3*f(m,y)*d*d+2*x(m,y)*d+h(m)}function p(d,m,y,A,_){var k,T,F=0;do T=m+(y-m)/2,k=g(T,A,_)-d,k>0?y=T:m=T;while(Math.abs(k)>o&&++F<s);return T}function C(d,m,y,A){for(var _=0;_<i;++_){var k=v(m,y,A);if(k===0)return m;var T=g(m,y,A)-d;m-=T/k}return m}function b(d){this._p=d,this._mSampleValues=u?new Float32Array(l):new Array(l),this._precomputed=!1,this.get=this.get.bind(this)}return b.prototype={get:function(m){var y=this._p[0],A=this._p[1],_=this._p[2],k=this._p[3];return this._precomputed||this._precompute(),y===A&&_===k?m:m===0?0:m===1?1:g(this._getTForX(m),A,k)},_precompute:function(){var m=this._p[0],y=this._p[1],A=this._p[2],_=this._p[3];this._precomputed=!0,(m!==y||A!==_)&&this._calcSampleValues()},_calcSampleValues:function(){for(var m=this._p[0],y=this._p[2],A=0;A<l;++A)this._mSampleValues[A]=g(A*c,m,y)},_getTForX:function(m){for(var y=this._p[0],A=this._p[2],_=this._mSampleValues,k=0,T=1,F=l-1;T!==F&&_[T]<=m;++T)k+=c;--T;var M=(m-_[T])/(_[T+1]-_[T]),B=k+M*c,L=v(B,y,A);return L>=a?C(m,B,y,A):L===0?B:p(m,k,k+c,y,A)}},e}(),pooling=function(){function e(n){return n.concat(createSizedArray(n.length))}return{double:e}}(),poolFactory=function(){return function(e,n,r){var i=0,a=e,o=createSizedArray(a),s={newElement:l,release:c};function l(){var u;return i?(i-=1,u=o[i]):u=n(),u}function c(u){i===a&&(o=pooling.double(o),a*=2),r&&r(u),o[i]=u,i+=1}return s}}(),bezierLengthPool=function(){function e(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,e)}(),segmentsLengthPool=function(){function e(){return{lengths:[],totalLength:0}}function n(r){var i,a=r.lengths.length;for(i=0;i<a;i+=1)bezierLengthPool.release(r.lengths[i]);r.lengths.length=0}return poolFactory(8,e,n)}();function bezFunction(){var e=Math;function n(h,g,v,p,C,b){var d=h*p+g*C+v*b-C*p-b*h-v*g;return d>-.001&&d<.001}function r(h,g,v,p,C,b,d,m,y){if(v===0&&b===0&&y===0)return n(h,g,p,C,d,m);var A=e.sqrt(e.pow(p-h,2)+e.pow(C-g,2)+e.pow(b-v,2)),_=e.sqrt(e.pow(d-h,2)+e.pow(m-g,2)+e.pow(y-v,2)),k=e.sqrt(e.pow(d-p,2)+e.pow(m-C,2)+e.pow(y-b,2)),T;return A>_?A>k?T=A-_-k:T=k-_-A:k>_?T=k-_-A:T=_-A-k,T>-1e-4&&T<1e-4}var i=function(){return function(h,g,v,p){var C=getDefaultCurveSegments(),b,d,m,y,A,_=0,k,T=[],F=[],M=bezierLengthPool.newElement();for(m=v.length,b=0;b<C;b+=1){for(A=b/(C-1),k=0,d=0;d<m;d+=1)y=bmPow(1-A,3)*h[d]+3*bmPow(1-A,2)*A*v[d]+3*(1-A)*bmPow(A,2)*p[d]+bmPow(A,3)*g[d],T[d]=y,F[d]!==null&&(k+=bmPow(T[d]-F[d],2)),F[d]=T[d];k&&(k=bmSqrt(k),_+=k),M.percents[b]=A,M.lengths[b]=_}return M.addedLength=_,M}}();function a(h){var g=segmentsLengthPool.newElement(),v=h.c,p=h.v,C=h.o,b=h.i,d,m=h._length,y=g.lengths,A=0;for(d=0;d<m-1;d+=1)y[d]=i(p[d],p[d+1],C[d],b[d+1]),A+=y[d].addedLength;return v&&m&&(y[d]=i(p[d],p[0],C[d],b[0]),A+=y[d].addedLength),g.totalLength=A,g}function o(h){this.segmentLength=0,this.points=new Array(h)}function s(h,g){this.partialLength=h,this.point=g}var l=function(){var h={};return function(g,v,p,C){var b=(g[0]+"_"+g[1]+"_"+v[0]+"_"+v[1]+"_"+p[0]+"_"+p[1]+"_"+C[0]+"_"+C[1]).replace(/\./g,"p");if(!h[b]){var d=getDefaultCurveSegments(),m,y,A,_,k,T=0,F,M,B=null;g.length===2&&(g[0]!==v[0]||g[1]!==v[1])&&n(g[0],g[1],v[0],v[1],g[0]+p[0],g[1]+p[1])&&n(g[0],g[1],v[0],v[1],v[0]+C[0],v[1]+C[1])&&(d=2);var L=new o(d);for(A=p.length,m=0;m<d;m+=1){for(M=createSizedArray(A),k=m/(d-1),F=0,y=0;y<A;y+=1)_=bmPow(1-k,3)*g[y]+3*bmPow(1-k,2)*k*(g[y]+p[y])+3*(1-k)*bmPow(k,2)*(v[y]+C[y])+bmPow(k,3)*v[y],M[y]=_,B!==null&&(F+=bmPow(M[y]-B[y],2));F=bmSqrt(F),T+=F,L.points[m]=new s(F,M),B=M}L.segmentLength=T,h[b]=L}return h[b]}}();function c(h,g){var v=g.percents,p=g.lengths,C=v.length,b=bmFloor((C-1)*h),d=h*g.addedLength,m=0;if(b===C-1||b===0||d===p[b])return v[b];for(var y=p[b]>d?-1:1,A=!0;A;)if(p[b]<=d&&p[b+1]>d?(m=(d-p[b])/(p[b+1]-p[b]),A=!1):b+=y,b<0||b>=C-1){if(b===C-1)return v[b];A=!1}return v[b]+(v[b+1]-v[b])*m}function u(h,g,v,p,C,b){var d=c(C,b),m=1-d,y=e.round((m*m*m*h[0]+(d*m*m+m*d*m+m*m*d)*v[0]+(d*d*m+m*d*d+d*m*d)*p[0]+d*d*d*g[0])*1e3)/1e3,A=e.round((m*m*m*h[1]+(d*m*m+m*d*m+m*m*d)*v[1]+(d*d*m+m*d*d+d*m*d)*p[1]+d*d*d*g[1])*1e3)/1e3;return[y,A]}var f=createTypedArray("float32",8);function x(h,g,v,p,C,b,d){C<0?C=0:C>1&&(C=1);var m=c(C,d);b=b>1?1:b;var y=c(b,d),A,_=h.length,k=1-m,T=1-y,F=k*k*k,M=m*k*k*3,B=m*m*k*3,L=m*m*m,V=k*k*T,U=m*k*T+k*m*T+k*k*y,$=m*m*T+k*m*y+m*k*y,P=m*m*y,I=k*T*T,E=m*T*T+k*y*T+k*T*y,S=m*y*T+k*y*y+m*T*y,N=m*y*y,w=T*T*T,R=y*T*T+T*y*T+T*T*y,O=y*y*T+T*y*y+y*T*y,D=y*y*y;for(A=0;A<_;A+=1)f[A*4]=e.round((F*h[A]+M*v[A]+B*p[A]+L*g[A])*1e3)/1e3,f[A*4+1]=e.round((V*h[A]+U*v[A]+$*p[A]+P*g[A])*1e3)/1e3,f[A*4+2]=e.round((I*h[A]+E*v[A]+S*p[A]+N*g[A])*1e3)/1e3,f[A*4+3]=e.round((w*h[A]+R*v[A]+O*p[A]+D*g[A])*1e3)/1e3;return f}return{getSegmentsLength:a,getNewSegment:x,getPointInSegment:u,buildBezierData:l,pointOnLine2D:n,pointOnLine3D:r}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,n){var r=this.offsetTime,i;this.propType==="multidimensional"&&(i=createTypedArray("float32",this.pv.length));for(var a=n.lastIndex,o=a,s=this.keyframes.length-1,l=!0,c,u,f;l;){if(c=this.keyframes[o],u=this.keyframes[o+1],o===s-1&&e>=u.t-r){c.h&&(c=u),a=0;break}if(u.t-r>e){a=o;break}o<s-1?o+=1:(a=0,l=!1)}f=this.keyframesMetadata[o]||{};var x,h,g,v,p,C,b=u.t-r,d=c.t-r,m;if(c.to){f.bezierData||(f.bezierData=bez.buildBezierData(c.s,u.s||c.e,c.to,c.ti));var y=f.bezierData;if(e>=b||e<d){var A=e>=b?y.points.length-1:0;for(h=y.points[A].point.length,x=0;x<h;x+=1)i[x]=y.points[A].point[x]}else{f.__fnct?C=f.__fnct:(C=BezierFactory.getBezierEasing(c.o.x,c.o.y,c.i.x,c.i.y,c.n).get,f.__fnct=C),g=C((e-d)/(b-d));var _=y.segmentLength*g,k,T=n.lastFrame<e&&n._lastKeyframeIndex===o?n._lastAddedLength:0;for(p=n.lastFrame<e&&n._lastKeyframeIndex===o?n._lastPoint:0,l=!0,v=y.points.length;l;){if(T+=y.points[p].partialLength,_===0||g===0||p===y.points.length-1){for(h=y.points[p].point.length,x=0;x<h;x+=1)i[x]=y.points[p].point[x];break}else if(_>=T&&_<T+y.points[p+1].partialLength){for(k=(_-T)/y.points[p+1].partialLength,h=y.points[p].point.length,x=0;x<h;x+=1)i[x]=y.points[p].point[x]+(y.points[p+1].point[x]-y.points[p].point[x])*k;break}p<v-1?p+=1:l=!1}n._lastPoint=p,n._lastAddedLength=T-y.points[p].partialLength,n._lastKeyframeIndex=o}}else{var F,M,B,L,V;if(s=c.s.length,m=u.s||c.e,this.sh&&c.h!==1)if(e>=b)i[0]=m[0],i[1]=m[1],i[2]=m[2];else if(e<=d)i[0]=c.s[0],i[1]=c.s[1],i[2]=c.s[2];else{var U=createQuaternion(c.s),$=createQuaternion(m),P=(e-d)/(b-d);quaternionToEuler(i,slerp(U,$,P))}else for(o=0;o<s;o+=1)c.h!==1&&(e>=b?g=1:e<d?g=0:(c.o.x.constructor===Array?(f.__fnct||(f.__fnct=[]),f.__fnct[o]?C=f.__fnct[o]:(F=c.o.x[o]===void 0?c.o.x[0]:c.o.x[o],M=c.o.y[o]===void 0?c.o.y[0]:c.o.y[o],B=c.i.x[o]===void 0?c.i.x[0]:c.i.x[o],L=c.i.y[o]===void 0?c.i.y[0]:c.i.y[o],C=BezierFactory.getBezierEasing(F,M,B,L).get,f.__fnct[o]=C)):f.__fnct?C=f.__fnct:(F=c.o.x,M=c.o.y,B=c.i.x,L=c.i.y,C=BezierFactory.getBezierEasing(F,M,B,L).get,c.keyframeMetadata=C),g=C((e-d)/(b-d)))),m=u.s||c.e,V=c.h===1?c.s[o]:c.s[o]+(m[o]-c.s[o])*g,this.propType==="multidimensional"?i[o]=V:i=V}return n.lastIndex=a,i}function slerp(e,n,r){var i=[],a=e[0],o=e[1],s=e[2],l=e[3],c=n[0],u=n[1],f=n[2],x=n[3],h,g,v,p,C;return g=a*c+o*u+s*f+l*x,g<0&&(g=-g,c=-c,u=-u,f=-f,x=-x),1-g>1e-6?(h=Math.acos(g),v=Math.sin(h),p=Math.sin((1-r)*h)/v,C=Math.sin(r*h)/v):(p=1-r,C=r),i[0]=p*a+C*c,i[1]=p*o+C*u,i[2]=p*s+C*f,i[3]=p*l+C*x,i}function quaternionToEuler(e,n){var r=n[0],i=n[1],a=n[2],o=n[3],s=Math.atan2(2*i*o-2*r*a,1-2*i*i-2*a*a),l=Math.asin(2*r*i+2*a*o),c=Math.atan2(2*r*o-2*i*a,1-2*r*r-2*a*a);e[0]=s/degToRads,e[1]=l/degToRads,e[2]=c/degToRads}function createQuaternion(e){var n=e[0]*degToRads,r=e[1]*degToRads,i=e[2]*degToRads,a=Math.cos(n/2),o=Math.cos(r/2),s=Math.cos(i/2),l=Math.sin(n/2),c=Math.sin(r/2),u=Math.sin(i/2),f=a*o*s-l*c*u,x=l*c*s+a*o*u,h=l*o*s+a*c*u,g=a*c*s-l*o*u;return[x,h,g,f]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,n=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=r&&e>=r||this._caching.lastFrame<n&&e<n))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(e,this._caching);this.pv=i}return this._caching.lastFrame=e,this.pv}function setVValue(e){var n;if(this.propType==="unidimensional")n=e*this.mult,mathAbs(this.v-n)>1e-5&&(this.v=n,this._mdf=!0);else for(var r=0,i=this.v.length;r<i;)n=e[r]*this.mult,mathAbs(this.v[r]-n)>1e-5&&(this.v[r]=n,this._mdf=!0),r+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var e,n=this.effectsSequence.length,r=this.kf?this.pv:this.data.k;for(e=0;e<n;e+=1)r=this.effectsSequence[e](r);this.setVValue(r),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,n,r,i){this.propType="unidimensional",this.mult=r||1,this.data=n,this.v=r?n.k*r:n.k,this.pv=n.k,this._mdf=!1,this.elem=e,this.container=i,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,n,r,i){this.propType="multidimensional",this.mult=r||1,this.data=n,this._mdf=!1,this.elem=e,this.container=i,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var a,o=n.k.length;for(this.v=createTypedArray("float32",o),this.pv=createTypedArray("float32",o),this.vel=createTypedArray("float32",o),a=0;a<o;a+=1)this.v[a]=n.k[a]*this.mult,this.pv[a]=n.k[a];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,n,r,i){this.propType="unidimensional",this.keyframes=n.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=n,this.mult=r||1,this.elem=e,this.container=i,this.comp=e.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(e,n,r,i){this.propType="multidimensional";var a,o=n.k.length,s,l,c,u;for(a=0;a<o-1;a+=1)n.k[a].to&&n.k[a].s&&n.k[a+1]&&n.k[a+1].s&&(s=n.k[a].s,l=n.k[a+1].s,c=n.k[a].to,u=n.k[a].ti,(s.length===2&&!(s[0]===l[0]&&s[1]===l[1])&&bez.pointOnLine2D(s[0],s[1],l[0],l[1],s[0]+c[0],s[1]+c[1])&&bez.pointOnLine2D(s[0],s[1],l[0],l[1],l[0]+u[0],l[1]+u[1])||s.length===3&&!(s[0]===l[0]&&s[1]===l[1]&&s[2]===l[2])&&bez.pointOnLine3D(s[0],s[1],s[2],l[0],l[1],l[2],s[0]+c[0],s[1]+c[1],s[2]+c[2])&&bez.pointOnLine3D(s[0],s[1],s[2],l[0],l[1],l[2],l[0]+u[0],l[1]+u[1],l[2]+u[2]))&&(n.k[a].to=null,n.k[a].ti=null),s[0]===l[0]&&s[1]===l[1]&&c[0]===0&&c[1]===0&&u[0]===0&&u[1]===0&&(s.length===2||s[2]===l[2]&&c[2]===0&&u[2]===0)&&(n.k[a].to=null,n.k[a].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=n,this.keyframes=n.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=r||1,this.elem=e,this.container=i,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var f=n.k[0].s.length;for(this.v=createTypedArray("float32",f),this.pv=createTypedArray("float32",f),a=0;a<f;a+=1)this.v[a]=initFrame,this.pv[a]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",f)},this.addEffect=addEffect}var PropertyFactory=function(){function e(r,i,a,o,s){i.sid&&(i=r.globalData.slotManager.getProp(i));var l;if(!i.k.length)l=new ValueProperty(r,i,o,s);else if(typeof i.k[0]=="number")l=new MultiDimensionalProperty(r,i,o,s);else switch(a){case 0:l=new KeyframedValueProperty(r,i,o,s);break;case 1:l=new KeyframedMultidimensionalProperty(r,i,o,s);break}return l.effectsSequence.length&&s.addDynamicProperty(l),l}var n={getProp:e};return n}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(n){this.dynamicProperties.indexOf(n)===-1&&(this.dynamicProperties.push(n),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var n,r=this.dynamicProperties.length;for(n=0;n<r;n+=1)this.dynamicProperties[n].getValue(),this.dynamicProperties[n]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(n){this.container=n,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=function(){function e(){return createTypedArray("float32",2)}return poolFactory(8,e)}();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,n){this.c=e,this.setLength(n);for(var r=0;r<n;)this.v[r]=pointPool.newElement(),this.o[r]=pointPool.newElement(),this.i[r]=pointPool.newElement(),r+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,n,r,i,a){var o;switch(this._length=Math.max(this._length,i+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":o=this.v;break;case"i":o=this.i;break;case"o":o=this.o;break;default:o=[];break}(!o[i]||o[i]&&!a)&&(o[i]=pointPool.newElement()),o[i][0]=e,o[i][1]=n},ShapePath.prototype.setTripleAt=function(e,n,r,i,a,o,s,l){this.setXYAt(e,n,"v",s,l),this.setXYAt(r,i,"o",s,l),this.setXYAt(a,o,"i",s,l)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var n=this.v,r=this.o,i=this.i,a=0;this.c&&(e.setTripleAt(n[0][0],n[0][1],i[0][0],i[0][1],r[0][0],r[0][1],0,!1),a=1);var o=this._length-1,s=this._length,l;for(l=a;l<s;l+=1)e.setTripleAt(n[o][0],n[o][1],i[o][0],i[o][1],r[o][0],r[o][1],l,!1),o-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function e(){return new ShapePath}function n(a){var o=a._length,s;for(s=0;s<o;s+=1)pointPool.release(a.v[s]),pointPool.release(a.i[s]),pointPool.release(a.o[s]),a.v[s]=null,a.i[s]=null,a.o[s]=null;a._length=0,a.c=!1}function r(a){var o=i.newElement(),s,l=a._length===void 0?a.v.length:a._length;for(o.setLength(l),o.c=a.c,s=0;s<l;s+=1)o.setTripleAt(a.v[s][0],a.v[s][1],a.o[s][0],a.o[s][1],a.i[s][0],a.i[s][1],s);return o}var i=poolFactory(4,e,n);return i.clone=r,i}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=function(){var e={newShapeCollection:a,release:o},n=0,r=4,i=createSizedArray(r);function a(){var s;return n?(n-=1,s=i[n]):s=new ShapeCollection,s}function o(s){var l,c=s._length;for(l=0;l<c;l+=1)shapePool.release(s.shapes[l]);s._length=0,n===r&&(i=pooling.double(i),r*=2),i[n]=s,n+=1}return e}(),ShapePropertyFactory=function(){var e=-999999;function n(b,d,m){var y=m.lastIndex,A,_,k,T,F,M,B,L,V,U=this.keyframes;if(b<U[0].t-this.offsetTime)A=U[0].s[0],k=!0,y=0;else if(b>=U[U.length-1].t-this.offsetTime)A=U[U.length-1].s?U[U.length-1].s[0]:U[U.length-2].e[0],k=!0;else{for(var $=y,P=U.length-1,I=!0,E,S,N;I&&(E=U[$],S=U[$+1],!(S.t-this.offsetTime>b));)$<P-1?$+=1:I=!1;if(N=this.keyframesMetadata[$]||{},k=E.h===1,y=$,!k){if(b>=S.t-this.offsetTime)L=1;else if(b<E.t-this.offsetTime)L=0;else{var w;N.__fnct?w=N.__fnct:(w=BezierFactory.getBezierEasing(E.o.x,E.o.y,E.i.x,E.i.y).get,N.__fnct=w),L=w((b-(E.t-this.offsetTime))/(S.t-this.offsetTime-(E.t-this.offsetTime)))}_=S.s?S.s[0]:E.e[0]}A=E.s[0]}for(M=d._length,B=A.i[0].length,m.lastIndex=y,T=0;T<M;T+=1)for(F=0;F<B;F+=1)V=k?A.i[T][F]:A.i[T][F]+(_.i[T][F]-A.i[T][F])*L,d.i[T][F]=V,V=k?A.o[T][F]:A.o[T][F]+(_.o[T][F]-A.o[T][F])*L,d.o[T][F]=V,V=k?A.v[T][F]:A.v[T][F]+(_.v[T][F]-A.v[T][F])*L,d.v[T][F]=V}function r(){var b=this.comp.renderedFrame-this.offsetTime,d=this.keyframes[0].t-this.offsetTime,m=this.keyframes[this.keyframes.length-1].t-this.offsetTime,y=this._caching.lastFrame;return y!==e&&(y<d&&b<d||y>m&&b>m)||(this._caching.lastIndex=y<b?this._caching.lastIndex:0,this.interpolateShape(b,this.pv,this._caching)),this._caching.lastFrame=b,this.pv}function i(){this.paths=this.localShapeCollection}function a(b,d){if(b._length!==d._length||b.c!==d.c)return!1;var m,y=b._length;for(m=0;m<y;m+=1)if(b.v[m][0]!==d.v[m][0]||b.v[m][1]!==d.v[m][1]||b.o[m][0]!==d.o[m][0]||b.o[m][1]!==d.o[m][1]||b.i[m][0]!==d.i[m][0]||b.i[m][1]!==d.i[m][1])return!1;return!0}function o(b){a(this.v,b)||(this.v=shapePool.clone(b),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function s(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var b;this.kf?b=this.pv:this.data.ks?b=this.data.ks.k:b=this.data.pt.k;var d,m=this.effectsSequence.length;for(d=0;d<m;d+=1)b=this.effectsSequence[d](b);this.setVValue(b),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function l(b,d,m){this.propType="shape",this.comp=b.comp,this.container=b,this.elem=b,this.data=d,this.k=!1,this.kf=!1,this._mdf=!1;var y=m===3?d.pt.k:d.ks.k;this.v=shapePool.clone(y),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=i,this.effectsSequence=[]}function c(b){this.effectsSequence.push(b),this.container.addDynamicProperty(this)}l.prototype.interpolateShape=n,l.prototype.getValue=s,l.prototype.setVValue=o,l.prototype.addEffect=c;function u(b,d,m){this.propType="shape",this.comp=b.comp,this.elem=b,this.container=b,this.offsetTime=b.data.st,this.keyframes=m===3?d.pt.k:d.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var y=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,y),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=i,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[r.bind(this)]}u.prototype.getValue=s,u.prototype.interpolateShape=n,u.prototype.setVValue=o,u.prototype.addEffect=c;var f=function(){var b=roundCorner;function d(m,y){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=y.d,this.elem=m,this.comp=m.comp,this.frameId=-1,this.initDynamicPropertyContainer(m),this.p=PropertyFactory.getProp(m,y.p,1,0,this),this.s=PropertyFactory.getProp(m,y.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return d.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var y=this.p.v[0],A=this.p.v[1],_=this.s.v[0]/2,k=this.s.v[1]/2,T=this.d!==3,F=this.v;F.v[0][0]=y,F.v[0][1]=A-k,F.v[1][0]=T?y+_:y-_,F.v[1][1]=A,F.v[2][0]=y,F.v[2][1]=A+k,F.v[3][0]=T?y-_:y+_,F.v[3][1]=A,F.i[0][0]=T?y-_*b:y+_*b,F.i[0][1]=A-k,F.i[1][0]=T?y+_:y-_,F.i[1][1]=A-k*b,F.i[2][0]=T?y+_*b:y-_*b,F.i[2][1]=A+k,F.i[3][0]=T?y-_:y+_,F.i[3][1]=A+k*b,F.o[0][0]=T?y+_*b:y-_*b,F.o[0][1]=A-k,F.o[1][0]=T?y+_:y-_,F.o[1][1]=A+k*b,F.o[2][0]=T?y-_*b:y+_*b,F.o[2][1]=A+k,F.o[3][0]=T?y-_:y+_,F.o[3][1]=A-k*b}},extendPrototype([DynamicPropertyContainer],d),d}(),x=function(){function b(d,m){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=d,this.comp=d.comp,this.data=m,this.frameId=-1,this.d=m.d,this.initDynamicPropertyContainer(d),m.sy===1?(this.ir=PropertyFactory.getProp(d,m.ir,0,0,this),this.is=PropertyFactory.getProp(d,m.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(d,m.pt,0,0,this),this.p=PropertyFactory.getProp(d,m.p,1,0,this),this.r=PropertyFactory.getProp(d,m.r,0,degToRads,this),this.or=PropertyFactory.getProp(d,m.or,0,0,this),this.os=PropertyFactory.getProp(d,m.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return b.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var m=Math.floor(this.pt.v)*2,y=Math.PI*2/m,A=!0,_=this.or.v,k=this.ir.v,T=this.os.v,F=this.is.v,M=2*Math.PI*_/(m*2),B=2*Math.PI*k/(m*2),L,V,U,$,P=-Math.PI/2;P+=this.r.v;var I=this.data.d===3?-1:1;for(this.v._length=0,L=0;L<m;L+=1){V=A?_:k,U=A?T:F,$=A?M:B;var E=V*Math.cos(P),S=V*Math.sin(P),N=E===0&&S===0?0:S/Math.sqrt(E*E+S*S),w=E===0&&S===0?0:-E/Math.sqrt(E*E+S*S);E+=+this.p.v[0],S+=+this.p.v[1],this.v.setTripleAt(E,S,E-N*$*U*I,S-w*$*U*I,E+N*$*U*I,S+w*$*U*I,L,!0),A=!A,P+=y*I}},convertPolygonToPath:function(){var m=Math.floor(this.pt.v),y=Math.PI*2/m,A=this.or.v,_=this.os.v,k=2*Math.PI*A/(m*4),T,F=-Math.PI*.5,M=this.data.d===3?-1:1;for(F+=this.r.v,this.v._length=0,T=0;T<m;T+=1){var B=A*Math.cos(F),L=A*Math.sin(F),V=B===0&&L===0?0:L/Math.sqrt(B*B+L*L),U=B===0&&L===0?0:-B/Math.sqrt(B*B+L*L);B+=+this.p.v[0],L+=+this.p.v[1],this.v.setTripleAt(B,L,B-V*k*_*M,L-U*k*_*M,B+V*k*_*M,L+U*k*_*M,T,!0),F+=y*M}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],b),b}(),h=function(){function b(d,m){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=d,this.comp=d.comp,this.frameId=-1,this.d=m.d,this.initDynamicPropertyContainer(d),this.p=PropertyFactory.getProp(d,m.p,1,0,this),this.s=PropertyFactory.getProp(d,m.s,1,0,this),this.r=PropertyFactory.getProp(d,m.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return b.prototype={convertRectToPath:function(){var m=this.p.v[0],y=this.p.v[1],A=this.s.v[0]/2,_=this.s.v[1]/2,k=bmMin(A,_,this.r.v),T=k*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(m+A,y-_+k,m+A,y-_+k,m+A,y-_+T,0,!0),this.v.setTripleAt(m+A,y+_-k,m+A,y+_-T,m+A,y+_-k,1,!0),k!==0?(this.v.setTripleAt(m+A-k,y+_,m+A-k,y+_,m+A-T,y+_,2,!0),this.v.setTripleAt(m-A+k,y+_,m-A+T,y+_,m-A+k,y+_,3,!0),this.v.setTripleAt(m-A,y+_-k,m-A,y+_-k,m-A,y+_-T,4,!0),this.v.setTripleAt(m-A,y-_+k,m-A,y-_+T,m-A,y-_+k,5,!0),this.v.setTripleAt(m-A+k,y-_,m-A+k,y-_,m-A+T,y-_,6,!0),this.v.setTripleAt(m+A-k,y-_,m+A-T,y-_,m+A-k,y-_,7,!0)):(this.v.setTripleAt(m-A,y+_,m-A+T,y+_,m-A,y+_,2),this.v.setTripleAt(m-A,y-_,m-A,y-_+T,m-A,y-_,3))):(this.v.setTripleAt(m+A,y-_+k,m+A,y-_+T,m+A,y-_+k,0,!0),k!==0?(this.v.setTripleAt(m+A-k,y-_,m+A-k,y-_,m+A-T,y-_,1,!0),this.v.setTripleAt(m-A+k,y-_,m-A+T,y-_,m-A+k,y-_,2,!0),this.v.setTripleAt(m-A,y-_+k,m-A,y-_+k,m-A,y-_+T,3,!0),this.v.setTripleAt(m-A,y+_-k,m-A,y+_-T,m-A,y+_-k,4,!0),this.v.setTripleAt(m-A+k,y+_,m-A+k,y+_,m-A+T,y+_,5,!0),this.v.setTripleAt(m+A-k,y+_,m+A-T,y+_,m+A-k,y+_,6,!0),this.v.setTripleAt(m+A,y+_-k,m+A,y+_-k,m+A,y+_-T,7,!0)):(this.v.setTripleAt(m-A,y-_,m-A+T,y-_,m-A,y-_,1,!0),this.v.setTripleAt(m-A,y+_,m-A,y+_-T,m-A,y+_,2,!0),this.v.setTripleAt(m+A,y+_,m+A-T,y+_,m+A,y+_,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:i},extendPrototype([DynamicPropertyContainer],b),b}();function g(b,d,m){var y;if(m===3||m===4){var A=m===3?d.pt:d.ks,_=A.k;_.length?y=new u(b,d,m):y=new l(b,d,m)}else m===5?y=new h(b,d):m===6?y=new f(b,d):m===7&&(y=new x(b,d));return y.k&&b.addDynamicProperty(y),y}function v(){return l}function p(){return u}var C={};return C.getShapeProp=g,C.getConstructorFunction=v,C.getKeyframedConstructorFunction=p,C}();/*!
121
121
  Transformation Matrix v2.0
122
122
  (c) Epistemex 2014-2015
123
123
  www.epistemex.com
124
124
  By Ken Fyrstenberg
125
125
  Contributions by leeoniya.
126
126
  License: MIT, header required.
127
- */var Matrix=function(){var e=Math.cos,n=Math.sin,r=Math.tan,i=Math.round;function a(){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 o(S){if(S===0)return this;var C=e(S),N=n(S);return this._t(C,-N,0,0,N,C,0,0,0,0,1,0,0,0,0,1)}function s(S){if(S===0)return this;var C=e(S),N=n(S);return this._t(1,0,0,0,0,C,-N,0,0,N,C,0,0,0,0,1)}function l(S){if(S===0)return this;var C=e(S),N=n(S);return this._t(C,0,N,0,0,1,0,0,-N,0,C,0,0,0,0,1)}function c(S){if(S===0)return this;var C=e(S),N=n(S);return this._t(C,-N,0,0,N,C,0,0,0,0,1,0,0,0,0,1)}function u(S,C){return this._t(1,C,S,1,0,0)}function f(S,C){return this.shear(r(S),r(C))}function x(S,C){var N=e(C),w=n(C);return this._t(N,w,0,0,-w,N,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(S),1,0,0,0,0,1,0,0,0,0,1)._t(N,-w,0,0,w,N,0,0,0,0,1,0,0,0,0,1)}function h(S,C,N){return!N&&N!==0&&(N=1),S===1&&C===1&&N===1?this:this._t(S,0,0,0,0,C,0,0,0,0,N,0,0,0,0,1)}function g(S,C,N,w,q,O,D,$,U,j,K,G,Y,J,ee,Z){return this.props[0]=S,this.props[1]=C,this.props[2]=N,this.props[3]=w,this.props[4]=q,this.props[5]=O,this.props[6]=D,this.props[7]=$,this.props[8]=U,this.props[9]=j,this.props[10]=K,this.props[11]=G,this.props[12]=Y,this.props[13]=J,this.props[14]=ee,this.props[15]=Z,this}function v(S,C,N){return N=N||0,S!==0||C!==0||N!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,S,C,N,1):this}function p(S,C,N,w,q,O,D,$,U,j,K,G,Y,J,ee,Z){var W=this.props;if(S===1&&C===0&&N===0&&w===0&&q===0&&O===1&&D===0&&$===0&&U===0&&j===0&&K===1&&G===0)return W[12]=W[12]*S+W[15]*Y,W[13]=W[13]*O+W[15]*J,W[14]=W[14]*K+W[15]*ee,W[15]*=Z,this._identityCalculated=!1,this;var Q=W[0],te=W[1],re=W[2],ae=W[3],se=W[4],fe=W[5],he=W[6],ge=W[7],ye=W[8],Ee=W[9],De=W[10],Ce=W[11],Ie=W[12],He=W[13],qe=W[14],$e=W[15];return W[0]=Q*S+te*q+re*U+ae*Y,W[1]=Q*C+te*O+re*j+ae*J,W[2]=Q*N+te*D+re*K+ae*ee,W[3]=Q*w+te*$+re*G+ae*Z,W[4]=se*S+fe*q+he*U+ge*Y,W[5]=se*C+fe*O+he*j+ge*J,W[6]=se*N+fe*D+he*K+ge*ee,W[7]=se*w+fe*$+he*G+ge*Z,W[8]=ye*S+Ee*q+De*U+Ce*Y,W[9]=ye*C+Ee*O+De*j+Ce*J,W[10]=ye*N+Ee*D+De*K+Ce*ee,W[11]=ye*w+Ee*$+De*G+Ce*Z,W[12]=Ie*S+He*q+qe*U+$e*Y,W[13]=Ie*C+He*O+qe*j+$e*J,W[14]=Ie*N+He*D+qe*K+$e*ee,W[15]=Ie*w+He*$+qe*G+$e*Z,this._identityCalculated=!1,this}function E(S){var C=S.props;return this.transform(C[0],C[1],C[2],C[3],C[4],C[5],C[6],C[7],C[8],C[9],C[10],C[11],C[12],C[13],C[14],C[15])}function b(){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 d(S){for(var C=0;C<16;){if(S.props[C]!==this.props[C])return!1;C+=1}return!0}function m(S){var C;for(C=0;C<16;C+=1)S.props[C]=this.props[C];return S}function y(S){var C;for(C=0;C<16;C+=1)this.props[C]=S[C]}function A(S,C,N){return{x:S*this.props[0]+C*this.props[4]+N*this.props[8]+this.props[12],y:S*this.props[1]+C*this.props[5]+N*this.props[9]+this.props[13],z:S*this.props[2]+C*this.props[6]+N*this.props[10]+this.props[14]}}function _(S,C,N){return S*this.props[0]+C*this.props[4]+N*this.props[8]+this.props[12]}function k(S,C,N){return S*this.props[1]+C*this.props[5]+N*this.props[9]+this.props[13]}function T(S,C,N){return S*this.props[2]+C*this.props[6]+N*this.props[10]+this.props[14]}function F(){var S=this.props[0]*this.props[5]-this.props[1]*this.props[4],C=this.props[5]/S,N=-this.props[1]/S,w=-this.props[4]/S,q=this.props[0]/S,O=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/S,D=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/S,$=new Matrix;return $.props[0]=C,$.props[1]=N,$.props[4]=w,$.props[5]=q,$.props[12]=O,$.props[13]=D,$}function M(S){var C=this.getInverseMatrix();return C.applyToPointArray(S[0],S[1],S[2]||0)}function B(S){var C,N=S.length,w=[];for(C=0;C<N;C+=1)w[C]=M(S[C]);return w}function L(S,C,N){var w=createTypedArray("float32",6);if(this.isIdentity())w[0]=S[0],w[1]=S[1],w[2]=C[0],w[3]=C[1],w[4]=N[0],w[5]=N[1];else{var q=this.props[0],O=this.props[1],D=this.props[4],$=this.props[5],U=this.props[12],j=this.props[13];w[0]=S[0]*q+S[1]*D+U,w[1]=S[0]*O+S[1]*$+j,w[2]=C[0]*q+C[1]*D+U,w[3]=C[0]*O+C[1]*$+j,w[4]=N[0]*q+N[1]*D+U,w[5]=N[0]*O+N[1]*$+j}return w}function R(S,C,N){var w;return this.isIdentity()?w=[S,C,N]:w=[S*this.props[0]+C*this.props[4]+N*this.props[8]+this.props[12],S*this.props[1]+C*this.props[5]+N*this.props[9]+this.props[13],S*this.props[2]+C*this.props[6]+N*this.props[10]+this.props[14]],w}function H(S,C){if(this.isIdentity())return S+","+C;var N=this.props;return Math.round((S*N[0]+C*N[4]+N[12])*100)/100+","+Math.round((S*N[1]+C*N[5]+N[13])*100)/100}function V(){for(var S=0,C=this.props,N="matrix3d(",w=1e4;S<16;)N+=i(C[S]*w)/w,N+=S===15?")":",",S+=1;return N}function P(S){var C=1e4;return S<1e-6&&S>0||S>-1e-6&&S<0?i(S*C)/C:S}function I(){var S=this.props,C=P(S[0]),N=P(S[1]),w=P(S[4]),q=P(S[5]),O=P(S[12]),D=P(S[13]);return"matrix("+C+","+N+","+w+","+q+","+O+","+D+")"}return function(){this.reset=a,this.rotate=o,this.rotateX=s,this.rotateY=l,this.rotateZ=c,this.skew=f,this.skewFromAxis=x,this.shear=u,this.scale=h,this.setTransform=g,this.translate=v,this.transform=p,this.multiply=E,this.applyToPoint=A,this.applyToX=_,this.applyToY=k,this.applyToZ=T,this.applyToPointArray=R,this.applyToTriplePoints=L,this.applyToPointStringified=H,this.toCSS=V,this.to2dCSS=I,this.clone=m,this.cloneFromProps=y,this.equals=d,this.inversePoints=B,this.inversePoint=M,this.getInverseMatrix=F,this._t=this.transform,this.isIdentity=b,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(r){return typeof r}:_typeof$3=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$3(e)}var lottie={};function setLocation(e){setLocationHref(e)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return animationManager.loadAnimation(e)}function setQuality(e){if(typeof e=="string")switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e)}function inBrowser(){return typeof navigator<"u"}function installPlugin(e,n){e==="expressions"&&setExpressionsPlugin(n)}function getFactory(e){switch(e){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(e){for(var n=queryString.split("&"),r=0;r<n.length;r+=1){var i=n[r].split("=");if(decodeURIComponent(i[0])==e)return decodeURIComponent(i[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(e){}var ShapeModifiers=function(){var e={},n={};e.registerModifier=r,e.getModifier=i;function r(a,o){n[a]||(n[a]=o)}function i(a,o,s){return new n[a](o,s)}return e}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var n={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(n),this.addShapeToModifier(n),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,n){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,n),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(e,n){this.s=PropertyFactory.getProp(e,n.s,0,.01,this),this.e=PropertyFactory.getProp(e,n.e,0,.01,this),this.o=PropertyFactory.getProp(e,n.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=n.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,n,r,i,a){var o=[];n<=1?o.push({s:e,e:n}):e>=1?o.push({s:e-1,e:n-1}):(o.push({s:e,e:1}),o.push({s:0,e:n-1}));var s=[],l,c=o.length,u;for(l=0;l<c;l+=1)if(u=o[l],!(u.e*a<i||u.s*a>i+r)){var f,x;u.s*a<=i?f=0:f=(u.s*a-i)/r,u.e*a>=i+r?x=1:x=(u.e*a-i)/r,s.push([f,x])}return s.length||s.push([0,0]),s},TrimModifier.prototype.releasePathsData=function(e){var n,r=e.length;for(n=0;n<r;n+=1)segmentsLengthPool.release(e[n]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var n,r;if(this._mdf||e){var i=this.o.v%360/360;if(i<0&&(i+=1),this.s.v>1?n=1+i:this.s.v<0?n=0+i:n=this.s.v+i,this.e.v>1?r=1+i:this.e.v<0?r=0+i:r=this.e.v+i,n>r){var a=n;n=r,r=a}n=Math.round(n*1e4)*1e-4,r=Math.round(r*1e4)*1e-4,this.sValue=n,this.eValue=r}else n=this.sValue,r=this.eValue;var o,s,l=this.shapes.length,c,u,f,x,h,g=0;if(r===n)for(s=0;s<l;s+=1)this.shapes[s].localShapeCollection.releaseShapes(),this.shapes[s].shape._mdf=!0,this.shapes[s].shape.paths=this.shapes[s].localShapeCollection,this._mdf&&(this.shapes[s].pathsData.length=0);else if(r===1&&n===0||r===0&&n===1){if(this._mdf)for(s=0;s<l;s+=1)this.shapes[s].pathsData.length=0,this.shapes[s].shape._mdf=!0}else{var v=[],p,E;for(s=0;s<l;s+=1)if(p=this.shapes[s],!p.shape._mdf&&!this._mdf&&!e&&this.m!==2)p.shape.paths=p.localShapeCollection;else{if(o=p.shape.paths,u=o._length,h=0,!p.shape._mdf&&p.pathsData.length)h=p.totalShapeLength;else{for(f=this.releasePathsData(p.pathsData),c=0;c<u;c+=1)x=bez.getSegmentsLength(o.shapes[c]),f.push(x),h+=x.totalLength;p.totalShapeLength=h,p.pathsData=f}g+=h,p.shape._mdf=!0}var b=n,d=r,m=0,y;for(s=l-1;s>=0;s-=1)if(p=this.shapes[s],p.shape._mdf){for(E=p.localShapeCollection,E.releaseShapes(),this.m===2&&l>1?(y=this.calculateShapeEdges(n,r,p.totalShapeLength,m,g),m+=p.totalShapeLength):y=[[b,d]],u=y.length,c=0;c<u;c+=1){b=y[c][0],d=y[c][1],v.length=0,d<=1?v.push({s:p.totalShapeLength*b,e:p.totalShapeLength*d}):b>=1?v.push({s:p.totalShapeLength*(b-1),e:p.totalShapeLength*(d-1)}):(v.push({s:p.totalShapeLength*b,e:p.totalShapeLength}),v.push({s:0,e:p.totalShapeLength*(d-1)}));var A=this.addShapes(p,v[0]);if(v[0].s!==v[0].e){if(v.length>1){var _=p.shape.paths.shapes[p.shape.paths._length-1];if(_.c){var k=A.pop();this.addPaths(A,E),A=this.addShapes(p,v[1],k)}else this.addPaths(A,E),A=this.addShapes(p,v[1])}this.addPaths(A,E)}}p.shape.paths=E}}},TrimModifier.prototype.addPaths=function(e,n){var r,i=e.length;for(r=0;r<i;r+=1)n.addShape(e[r])},TrimModifier.prototype.addSegment=function(e,n,r,i,a,o,s){a.setXYAt(n[0],n[1],"o",o),a.setXYAt(r[0],r[1],"i",o+1),s&&a.setXYAt(e[0],e[1],"v",o),a.setXYAt(i[0],i[1],"v",o+1)},TrimModifier.prototype.addSegmentFromArray=function(e,n,r,i){n.setXYAt(e[1],e[5],"o",r),n.setXYAt(e[2],e[6],"i",r+1),i&&n.setXYAt(e[0],e[4],"v",r),n.setXYAt(e[3],e[7],"v",r+1)},TrimModifier.prototype.addShapes=function(e,n,r){var i=e.pathsData,a=e.shape.paths.shapes,o,s=e.shape.paths._length,l,c,u=0,f,x,h,g,v=[],p,E=!0;for(r?(x=r._length,p=r._length):(r=shapePool.newElement(),x=0,p=0),v.push(r),o=0;o<s;o+=1){for(h=i[o].lengths,r.c=a[o].c,c=a[o].c?h.length:h.length+1,l=1;l<c;l+=1)if(f=h[l-1],u+f.addedLength<n.s)u+=f.addedLength,r.c=!1;else if(u>n.e){r.c=!1;break}else n.s<=u&&n.e>=u+f.addedLength?(this.addSegment(a[o].v[l-1],a[o].o[l-1],a[o].i[l],a[o].v[l],r,x,E),E=!1):(g=bez.getNewSegment(a[o].v[l-1],a[o].v[l],a[o].o[l-1],a[o].i[l],(n.s-u)/f.addedLength,(n.e-u)/f.addedLength,h[l-1]),this.addSegmentFromArray(g,r,x,E),E=!1,r.c=!1),u+=f.addedLength,x+=1;if(a[o].c&&h.length){if(f=h[l-1],u<=n.e){var b=h[l-1].addedLength;n.s<=u&&n.e>=u+b?(this.addSegment(a[o].v[l-1],a[o].o[l-1],a[o].i[0],a[o].v[0],r,x,E),E=!1):(g=bez.getNewSegment(a[o].v[l-1],a[o].v[0],a[o].o[l-1],a[o].i[0],(n.s-u)/b,(n.e-u)/b,h[l-1]),this.addSegmentFromArray(g,r,x,E),E=!1,r.c=!1)}else r.c=!1;u+=f.addedLength,x+=1}if(r._length&&(r.setXYAt(r.v[p][0],r.v[p][1],"i",p),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),u>n.e)break;o<s-1&&(r=shapePool.newElement(),E=!0,v.push(r),x=0)}return v};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,n){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,n.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,n){var r=n/100,i=[0,0],a=e._length,o=0;for(o=0;o<a;o+=1)i[0]+=e.v[o][0],i[1]+=e.v[o][1];i[0]/=a,i[1]/=a;var s=shapePool.newElement();s.c=e.c;var l,c,u,f,x,h;for(o=0;o<a;o+=1)l=e.v[o][0]+(i[0]-e.v[o][0])*r,c=e.v[o][1]+(i[1]-e.v[o][1])*r,u=e.o[o][0]+(i[0]-e.o[o][0])*-r,f=e.o[o][1]+(i[1]-e.o[o][1])*-r,x=e.i[o][0]+(i[0]-e.i[o][0])*-r,h=e.i[o][1]+(i[1]-e.i[o][1])*-r,s.setTripleAt(l,c,u,f,x,h,o);return s},PuckerAndBloatModifier.prototype.processShapes=function(e){var n,r,i=this.shapes.length,a,o,s=this.amount.v;if(s!==0){var l,c;for(r=0;r<i;r+=1){if(l=this.shapes[r],c=l.localShapeCollection,!(!l.shape._mdf&&!this._mdf&&!e))for(c.releaseShapes(),l.shape._mdf=!0,n=l.shape.paths.shapes,o=l.shape.paths._length,a=0;a<o;a+=1)c.addShape(this.processPath(n[a],s));l.shape.paths=l.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function n(c){var u=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||u,this.a&&c.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&c.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&c.skewFromAxis(-this.sk.v,this.sa.v),this.r?c.rotate(-this.r.v):c.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?c.translate(this.px.v,this.py.v,-this.pz.v):c.translate(this.px.v,this.py.v,0):c.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function r(c){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||c){var u;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 f,x;if(u=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(f=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/u,0),x=this.p.getValueAtTime(this.p.keyframes[0].t/u,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(f=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/u,0),x=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/u,0)):(f=this.p.pv,x=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/u,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){f=[],x=[];var h=this.px,g=this.py;h._caching.lastFrame+h.offsetTime<=h.keyframes[0].t?(f[0]=h.getValueAtTime((h.keyframes[0].t+.01)/u,0),f[1]=g.getValueAtTime((g.keyframes[0].t+.01)/u,0),x[0]=h.getValueAtTime(h.keyframes[0].t/u,0),x[1]=g.getValueAtTime(g.keyframes[0].t/u,0)):h._caching.lastFrame+h.offsetTime>=h.keyframes[h.keyframes.length-1].t?(f[0]=h.getValueAtTime(h.keyframes[h.keyframes.length-1].t/u,0),f[1]=g.getValueAtTime(g.keyframes[g.keyframes.length-1].t/u,0),x[0]=h.getValueAtTime((h.keyframes[h.keyframes.length-1].t-.01)/u,0),x[1]=g.getValueAtTime((g.keyframes[g.keyframes.length-1].t-.01)/u,0)):(f=[h.pv,g.pv],x[0]=h.getValueAtTime((h._caching.lastFrame+h.offsetTime-.01)/u,h.offsetTime),x[1]=g.getValueAtTime((g._caching.lastFrame+g.offsetTime-.01)/u,g.offsetTime))}else x=e,f=x;this.v.rotate(-Math.atan2(f[1]-x[1],f[0]-x[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 i(){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 a(){}function o(c){this._addDynamicProperty(c),this.elem.addDynamicProperty(c),this._isDirty=!0}function s(c,u,f){if(this.elem=c,this.frameId=-1,this.propType="transform",this.data=u,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(f||c),u.p&&u.p.s?(this.px=PropertyFactory.getProp(c,u.p.x,0,0,this),this.py=PropertyFactory.getProp(c,u.p.y,0,0,this),u.p.z&&(this.pz=PropertyFactory.getProp(c,u.p.z,0,0,this))):this.p=PropertyFactory.getProp(c,u.p||{k:[0,0,0]},1,0,this),u.rx){if(this.rx=PropertyFactory.getProp(c,u.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(c,u.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(c,u.rz,0,degToRads,this),u.or.k[0].ti){var x,h=u.or.k.length;for(x=0;x<h;x+=1)u.or.k[x].to=null,u.or.k[x].ti=null}this.or=PropertyFactory.getProp(c,u.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(c,u.r||{k:0},0,degToRads,this);u.sk&&(this.sk=PropertyFactory.getProp(c,u.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(c,u.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(c,u.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(c,u.s||{k:[100,100,100]},1,.01,this),u.o?this.o=PropertyFactory.getProp(c,u.o,0,.01,c):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}s.prototype={applyToMatrix:n,getValue:r,precalculateMatrix:i,autoOrient:a},extendPrototype([DynamicPropertyContainer],s),s.prototype.addDynamicProperty=o,s.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function l(c,u,f){return new s(c,u,f)}return{getTransformProperty:l}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,n){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,n.c,0,null,this),this.o=PropertyFactory.getProp(e,n.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,n.tr,this),this.so=PropertyFactory.getProp(e,n.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,n.tr.eo,0,.01,this),this.data=n,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(e,n,r,i,a,o){var s=o?-1:1,l=i.s.v[0]+(1-i.s.v[0])*(1-a),c=i.s.v[1]+(1-i.s.v[1])*(1-a);e.translate(i.p.v[0]*s*a,i.p.v[1]*s*a,i.p.v[2]),n.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),n.rotate(-i.r.v*s*a),n.translate(i.a.v[0],i.a.v[1],i.a.v[2]),r.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),r.scale(o?1/l:l,o?1/c:c),r.translate(i.a.v[0],i.a.v[1],i.a.v[2])},RepeaterModifier.prototype.init=function(e,n,r,i){for(this.elem=e,this.arr=n,this.pos=r,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,n[r]);r>0;)r-=1,this._elements.unshift(n[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var n,r=e.length;for(n=0;n<r;n+=1)e[n]._processed=!1,e[n].ty==="gr"&&this.resetElements(e[n].it)},RepeaterModifier.prototype.cloneElements=function(e){var n=JSON.parse(JSON.stringify(e));return this.resetElements(n),n},RepeaterModifier.prototype.changeGroupRender=function(e,n){var r,i=e.length;for(r=0;r<i;r+=1)e[r]._render=n,e[r].ty==="gr"&&this.changeGroupRender(e[r].it,n)},RepeaterModifier.prototype.processShapes=function(e){var n,r,i,a,o,s=!1;if(this._mdf||e){var l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var c={it:this.cloneElements(this._elements),ty:"gr"};c.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,c),this._groups.splice(0,0,c),this._currentCopies+=1}this.elem.reloadShapes(),s=!0}o=0;var u;for(i=0;i<=this._groups.length-1;i+=1){if(u=o<l,this._groups[i]._render=u,this.changeGroupRender(this._groups[i].it,u),!u){var f=this.elemsData[i].it,x=f[f.length-1];x.transform.op.v!==0?(x.transform.op._mdf=!0,x.transform.op.v=0):x.transform.op._mdf=!1}o+=1}this._currentCopies=l;var h=this.o.v,g=h%1,v=h>0?Math.floor(h):Math.ceil(h),p=this.pMatrix.props,E=this.rMatrix.props,b=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var d=0;if(h>0){for(;d<v;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),d+=1;g&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,g,!1),d+=g)}else if(h<0){for(;d>v;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),d-=1;g&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-g,!0),d-=g)}i=this.data.m===1?0:this._currentCopies-1,a=this.data.m===1?1:-1,o=this._currentCopies;for(var m,y;o;){if(n=this.elemsData[i].it,r=n[n.length-1].transform.mProps.v.props,y=r.length,n[n.length-1].transform.mProps._mdf=!0,n[n.length-1].transform.op._mdf=!0,n[n.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),d!==0){for((i!==0&&a===1||i!==this._currentCopies-1&&a===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(E[0],E[1],E[2],E[3],E[4],E[5],E[6],E[7],E[8],E[9],E[10],E[11],E[12],E[13],E[14],E[15]),this.matrix.transform(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],b[8],b[9],b[10],b[11],b[12],b[13],b[14],b[15]),this.matrix.transform(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15]),m=0;m<y;m+=1)r[m]=this.matrix.props[m];this.matrix.reset()}else for(this.matrix.reset(),m=0;m<y;m+=1)r[m]=this.matrix.props[m];d+=1,o-=1,i+=a}}else for(o=this._currentCopies,i=0,a=1;o;)n=this.elemsData[i].it,r=n[n.length-1].transform.mProps.v.props,n[n.length-1].transform.mProps._mdf=!1,n[n.length-1].transform.op._mdf=!1,o-=1,i+=a;return s},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,n){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,n.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,n){var r=shapePool.newElement();r.c=e.c;var i,a=e._length,o,s,l,c,u,f,x=0,h,g,v,p,E,b;for(i=0;i<a;i+=1)o=e.v[i],l=e.o[i],s=e.i[i],o[0]===l[0]&&o[1]===l[1]&&o[0]===s[0]&&o[1]===s[1]?(i===0||i===a-1)&&!e.c?(r.setTripleAt(o[0],o[1],l[0],l[1],s[0],s[1],x),x+=1):(i===0?c=e.v[a-1]:c=e.v[i-1],u=Math.sqrt(Math.pow(o[0]-c[0],2)+Math.pow(o[1]-c[1],2)),f=u?Math.min(u/2,n)/u:0,E=o[0]+(c[0]-o[0])*f,h=E,b=o[1]-(o[1]-c[1])*f,g=b,v=h-(h-o[0])*roundCorner,p=g-(g-o[1])*roundCorner,r.setTripleAt(h,g,v,p,E,b,x),x+=1,i===a-1?c=e.v[0]:c=e.v[i+1],u=Math.sqrt(Math.pow(o[0]-c[0],2)+Math.pow(o[1]-c[1],2)),f=u?Math.min(u/2,n)/u:0,v=o[0]+(c[0]-o[0])*f,h=v,p=o[1]+(c[1]-o[1])*f,g=p,E=h-(h-o[0])*roundCorner,b=g-(g-o[1])*roundCorner,r.setTripleAt(h,g,v,p,E,b,x),x+=1):(r.setTripleAt(e.v[i][0],e.v[i][1],e.o[i][0],e.o[i][1],e.i[i][0],e.i[i][1],x),x+=1);return r},RoundCornersModifier.prototype.processShapes=function(e){var n,r,i=this.shapes.length,a,o,s=this.rd.v;if(s!==0){var l,c;for(r=0;r<i;r+=1){if(l=this.shapes[r],c=l.localShapeCollection,!(!l.shape._mdf&&!this._mdf&&!e))for(c.releaseShapes(),l.shape._mdf=!0,n=l.shape.paths.shapes,o=l.shape.paths._length,a=0;a<o;a+=1)c.addShape(this.processPath(n[a],s));l.shape.paths=l.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(e,n){return Math.abs(e-n)*1e5<=Math.min(Math.abs(e),Math.abs(n))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,n,r){return e*(1-r)+n*r}function lerpPoint(e,n,r){return[lerp(e[0],n[0],r),lerp(e[1],n[1],r)]}function quadRoots(e,n,r){if(e===0)return[];var i=n*n-4*e*r;if(i<0)return[];var a=-n/(2*e);if(i===0)return[a];var o=Math.sqrt(i)/(2*e);return[a-o,a+o]}function polynomialCoefficients(e,n,r,i){return[-e+3*n-3*r+i,3*e-6*n+3*r,-3*e+3*n,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,n,r,i,a){a&&pointEqual(e,n)&&(n=lerpPoint(e,i,1/3)),a&&pointEqual(r,i)&&(r=lerpPoint(e,i,2/3));var o=polynomialCoefficients(e[0],n[0],r[0],i[0]),s=polynomialCoefficients(e[1],n[1],r[1],i[1]);this.a=[o[0],s[0]],this.b=[o[1],s[1]],this.c=[o[2],s[2]],this.d=[o[3],s[3]],this.points=[e,n,r,i]}PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var n=this.derivative(e);return Math.atan2(n[1],n[0])},PolynomialBezier.prototype.normalAngle=function(e){var n=this.derivative(e);return Math.atan2(n[0],n[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var n=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,r=n*n-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(r<0)return[];var i=Math.sqrt(r);return floatZero(i)?i>0&&i<1?[n]:[]:[n-i,n+i].filter(function(a){return a>0&&a<1})},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var n=lerpPoint(this.points[0],this.points[1],e),r=lerpPoint(this.points[1],this.points[2],e),i=lerpPoint(this.points[2],this.points[3],e),a=lerpPoint(n,r,e),o=lerpPoint(r,i,e),s=lerpPoint(a,o,e);return[new PolynomialBezier(this.points[0],n,a,s,!0),new PolynomialBezier(s,o,i,this.points[3],!0)]};function extrema(e,n){var r=e.points[0][n],i=e.points[e.points.length-1][n];if(r>i){var a=i;i=r,r=a}for(var o=quadRoots(3*e.a[n],2*e.b[n],e.c[n]),s=0;s<o.length;s+=1)if(o[s]>0&&o[s]<1){var l=e.point(o[s])[n];l<r?r=l:l>i&&(i=l)}return{min:r,max:i}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}};function intersectData(e,n,r){var i=e.boundingBox();return{cx:i.cx,cy:i.cy,width:i.width,height:i.height,bez:e,t:(n+r)/2,t1:n,t2:r}}function splitData(e){var n=e.bez.split(.5);return[intersectData(n[0],e.t1,e.t),intersectData(n[1],e.t,e.t2)]}function boxIntersect(e,n){return Math.abs(e.cx-n.cx)*2<e.width+n.width&&Math.abs(e.cy-n.cy)*2<e.height+n.height}function intersectsImpl(e,n,r,i,a,o){if(boxIntersect(e,n)){if(r>=o||e.width<=i&&e.height<=i&&n.width<=i&&n.height<=i){a.push([e.t,n.t]);return}var s=splitData(e),l=splitData(n);intersectsImpl(s[0],l[0],r+1,i,a,o),intersectsImpl(s[0],l[1],r+1,i,a,o),intersectsImpl(s[1],l[0],r+1,i,a,o),intersectsImpl(s[1],l[1],r+1,i,a,o)}}PolynomialBezier.prototype.intersections=function(e,n,r){n===void 0&&(n=2),r===void 0&&(r=7);var i=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,n,i,r),i},PolynomialBezier.shapeSegment=function(e,n){var r=(n+1)%e.length();return new PolynomialBezier(e.v[n],e.o[n],e.i[r],e.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(e,n){var r=(n+1)%e.length();return new PolynomialBezier(e.v[r],e.i[r],e.o[n],e.v[n],!0)};function crossProduct(e,n){return[e[1]*n[2]-e[2]*n[1],e[2]*n[0]-e[0]*n[2],e[0]*n[1]-e[1]*n[0]]}function lineIntersection(e,n,r,i){var a=[e[0],e[1],1],o=[n[0],n[1],1],s=[r[0],r[1],1],l=[i[0],i[1],1],c=crossProduct(crossProduct(a,o),crossProduct(s,l));return floatZero(c[2])?null:[c[0]/c[2],c[1]/c[2]]}function polarOffset(e,n,r){return[e[0]+Math.cos(n)*r,e[1]-Math.sin(n)*r]}function pointDistance(e,n){return Math.hypot(e[0]-n[0],e[1]-n[1])}function pointEqual(e,n){return floatEqual(e[0],n[0])&&floatEqual(e[1],n[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,n){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,n.s,0,null,this),this.frequency=PropertyFactory.getProp(e,n.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,n.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(e,n,r,i,a,o,s){var l=r-Math.PI/2,c=r+Math.PI/2,u=n[0]+Math.cos(r)*i*a,f=n[1]-Math.sin(r)*i*a;e.setTripleAt(u,f,u+Math.cos(l)*o,f-Math.sin(l)*o,u+Math.cos(c)*s,f-Math.sin(c)*s,e.length())}function getPerpendicularVector(e,n){var r=[n[0]-e[0],n[1]-e[1]],i=-Math.PI*.5,a=[Math.cos(i)*r[0]-Math.sin(i)*r[1],Math.sin(i)*r[0]+Math.cos(i)*r[1]];return a}function getProjectingAngle(e,n){var r=n===0?e.length()-1:n-1,i=(n+1)%e.length(),a=e.v[r],o=e.v[i],s=getPerpendicularVector(a,o);return Math.atan2(0,1)-Math.atan2(s[1],s[0])}function zigZagCorner(e,n,r,i,a,o,s){var l=getProjectingAngle(n,r),c=n.v[r%n._length],u=n.v[r===0?n._length-1:r-1],f=n.v[(r+1)%n._length],x=o===2?Math.sqrt(Math.pow(c[0]-u[0],2)+Math.pow(c[1]-u[1],2)):0,h=o===2?Math.sqrt(Math.pow(c[0]-f[0],2)+Math.pow(c[1]-f[1],2)):0;setPoint(e,n.v[r%n._length],l,s,i,h/((a+1)*2),x/((a+1)*2))}function zigZagSegment(e,n,r,i,a,o){for(var s=0;s<i;s+=1){var l=(s+1)/(i+1),c=a===2?Math.sqrt(Math.pow(n.points[3][0]-n.points[0][0],2)+Math.pow(n.points[3][1]-n.points[0][1],2)):0,u=n.normalAngle(l),f=n.point(l);setPoint(e,f,u,o,r,c/((i+1)*2),c/((i+1)*2)),o=-o}return o}ZigZagModifier.prototype.processPath=function(e,n,r,i){var a=e._length,o=shapePool.newElement();if(o.c=e.c,e.c||(a-=1),a===0)return o;var s=-1,l=PolynomialBezier.shapeSegment(e,0);zigZagCorner(o,e,0,n,r,i,s);for(var c=0;c<a;c+=1)s=zigZagSegment(o,l,n,r,i,-s),c===a-1&&!e.c?l=null:l=PolynomialBezier.shapeSegment(e,(c+1)%a),zigZagCorner(o,e,c+1,n,r,i,s);return o},ZigZagModifier.prototype.processShapes=function(e){var n,r,i=this.shapes.length,a,o,s=this.amplitude.v,l=Math.max(0,Math.round(this.frequency.v)),c=this.pointsType.v;if(s!==0){var u,f;for(r=0;r<i;r+=1){if(u=this.shapes[r],f=u.localShapeCollection,!(!u.shape._mdf&&!this._mdf&&!e))for(f.releaseShapes(),u.shape._mdf=!0,n=u.shape.paths.shapes,o=u.shape.paths._length,a=0;a<o;a+=1)f.addShape(this.processPath(n[a],s,l,c));u.shape.paths=u.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(e,n,r){var i=Math.atan2(n[0]-e[0],n[1]-e[1]);return[polarOffset(e,i,r),polarOffset(n,i,r)]}function offsetSegment(e,n){var r,i,a,o,s,l,c;c=linearOffset(e.points[0],e.points[1],n),r=c[0],i=c[1],c=linearOffset(e.points[1],e.points[2],n),a=c[0],o=c[1],c=linearOffset(e.points[2],e.points[3],n),s=c[0],l=c[1];var u=lineIntersection(r,i,a,o);u===null&&(u=i);var f=lineIntersection(s,l,a,o);return f===null&&(f=s),new PolynomialBezier(r,u,f,l)}function joinLines(e,n,r,i,a){var o=n.points[3],s=r.points[0];if(i===3||pointEqual(o,s))return o;if(i===2){var l=-n.tangentAngle(1),c=-r.tangentAngle(0)+Math.PI,u=lineIntersection(o,polarOffset(o,l+Math.PI/2,100),s,polarOffset(s,l+Math.PI/2,100)),f=u?pointDistance(u,o):pointDistance(o,s)/2,x=polarOffset(o,l,2*f*roundCorner);return e.setXYAt(x[0],x[1],"o",e.length()-1),x=polarOffset(s,c,2*f*roundCorner),e.setTripleAt(s[0],s[1],s[0],s[1],x[0],x[1],e.length()),s}var h=pointEqual(o,n.points[2])?n.points[0]:n.points[2],g=pointEqual(s,r.points[1])?r.points[3]:r.points[1],v=lineIntersection(h,o,s,g);return v&&pointDistance(v,o)<a?(e.setTripleAt(v[0],v[1],v[0],v[1],v[0],v[1],e.length()),v):o}function getIntersection(e,n){var r=e.intersections(n);return r.length&&floatEqual(r[0][0],1)&&r.shift(),r.length?r[0]:null}function pruneSegmentIntersection(e,n){var r=e.slice(),i=n.slice(),a=getIntersection(e[e.length-1],n[0]);return a&&(r[e.length-1]=e[e.length-1].split(a[0])[0],i[0]=n[0].split(a[1])[1]),e.length>1&&n.length>1&&(a=getIntersection(e[0],n[n.length-1]),a)?[[e[0].split(a[0])[0]],[n[n.length-1].split(a[1])[1]]]:[r,i]}function pruneIntersections(e){for(var n,r=1;r<e.length;r+=1)n=pruneSegmentIntersection(e[r-1],e[r]),e[r-1]=n[0],e[r]=n[1];return e.length>1&&(n=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=n[0],e[0]=n[1]),e}function offsetSegmentSplit(e,n){var r=e.inflectionPoints(),i,a,o,s;if(r.length===0)return[offsetSegment(e,n)];if(r.length===1||floatEqual(r[1],1))return o=e.split(r[0]),i=o[0],a=o[1],[offsetSegment(i,n),offsetSegment(a,n)];o=e.split(r[0]),i=o[0];var l=(r[1]-r[0])/(1-r[0]);return o=o[1].split(l),s=o[0],a=o[1],[offsetSegment(i,n),offsetSegment(s,n),offsetSegment(a,n)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,n){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,n.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,n.ml,0,null,this),this.lineJoin=n.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(e,n,r,i){var a=shapePool.newElement();a.c=e.c;var o=e.length();e.c||(o-=1);var s,l,c,u=[];for(s=0;s<o;s+=1)c=PolynomialBezier.shapeSegment(e,s),u.push(offsetSegmentSplit(c,n));if(!e.c)for(s=o-1;s>=0;s-=1)c=PolynomialBezier.shapeSegmentInverted(e,s),u.push(offsetSegmentSplit(c,n));u=pruneIntersections(u);var f=null,x=null;for(s=0;s<u.length;s+=1){var h=u[s];for(x&&(f=joinLines(a,x,h[0],r,i)),x=h[h.length-1],l=0;l<h.length;l+=1)c=h[l],f&&pointEqual(c.points[0],f)?a.setXYAt(c.points[1][0],c.points[1][1],"o",a.length()-1):a.setTripleAt(c.points[0][0],c.points[0][1],c.points[1][0],c.points[1][1],c.points[0][0],c.points[0][1],a.length()),a.setTripleAt(c.points[3][0],c.points[3][1],c.points[3][0],c.points[3][1],c.points[2][0],c.points[2][1],a.length()),f=c.points[3]}return u.length&&joinLines(a,x,u[0][0],r,i),a},OffsetPathModifier.prototype.processShapes=function(e){var n,r,i=this.shapes.length,a,o,s=this.amount.v,l=this.miterLimit.v,c=this.lineJoin;if(s!==0){var u,f;for(r=0;r<i;r+=1){if(u=this.shapes[r],f=u.localShapeCollection,!(!u.shape._mdf&&!this._mdf&&!e))for(f.releaseShapes(),u.shape._mdf=!0,n=u.shape.paths.shapes,o=u.shape.paths._length,a=0;a<o;a+=1)f.addShape(this.processPath(n[a],s,c,l));u.shape.paths=u.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(e){for(var n=e.fStyle?e.fStyle.split(" "):[],r="normal",i="normal",a=n.length,o,s=0;s<a;s+=1)switch(o=n[s].toLowerCase(),o){case"italic":i="italic";break;case"bold":r="700";break;case"black":r="900";break;case"medium":r="500";break;case"regular":case"normal":r="400";break;case"light":case"thin":r="200";break}return{style:i,weight:e.fWeight||r}}var FontManager=function(){var e=5e3,n={w:0,size:0,shapes:[],data:{shapes:[]}},r=[];r=r.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 i=127988,a=917631,o=917601,s=917626,l=65039,c=8205,u=127462,f=127487,x=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function h(P){var I=P.split(","),S,C=I.length,N=[];for(S=0;S<C;S+=1)I[S]!=="sans-serif"&&I[S]!=="monospace"&&N.push(I[S]);return N.join(",")}function g(P,I){var S=createTag("span");S.setAttribute("aria-hidden",!0),S.style.fontFamily=I;var C=createTag("span");C.innerText="giItT1WQy@!-/#",S.style.position="absolute",S.style.left="-10000px",S.style.top="-10000px",S.style.fontSize="300px",S.style.fontVariant="normal",S.style.fontStyle="normal",S.style.fontWeight="normal",S.style.letterSpacing="0",S.appendChild(C),document.body.appendChild(S);var N=C.offsetWidth;return C.style.fontFamily=h(P)+", "+I,{node:C,w:N,parent:S}}function v(){var P,I=this.fonts.length,S,C,N=I;for(P=0;P<I;P+=1)this.fonts[P].loaded?N-=1:this.fonts[P].fOrigin==="n"||this.fonts[P].origin===0?this.fonts[P].loaded=!0:(S=this.fonts[P].monoCase.node,C=this.fonts[P].monoCase.w,S.offsetWidth!==C?(N-=1,this.fonts[P].loaded=!0):(S=this.fonts[P].sansCase.node,C=this.fonts[P].sansCase.w,S.offsetWidth!==C&&(N-=1,this.fonts[P].loaded=!0)),this.fonts[P].loaded&&(this.fonts[P].sansCase.parent.parentNode.removeChild(this.fonts[P].sansCase.parent),this.fonts[P].monoCase.parent.parentNode.removeChild(this.fonts[P].monoCase.parent)));N!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function p(P,I){var S=document.body&&I?"svg":"canvas",C,N=getFontProperties(P);if(S==="svg"){var w=createNS("text");w.style.fontSize="100px",w.setAttribute("font-family",P.fFamily),w.setAttribute("font-style",N.style),w.setAttribute("font-weight",N.weight),w.textContent="1",P.fClass?(w.style.fontFamily="inherit",w.setAttribute("class",P.fClass)):w.style.fontFamily=P.fFamily,I.appendChild(w),C=w}else{var q=new OffscreenCanvas(500,500).getContext("2d");q.font=N.style+" "+N.weight+" 100px "+P.fFamily,C=q}function O(D){return S==="svg"?(C.textContent=D,C.getComputedTextLength()):C.measureText(D).width}return{measureText:O}}function E(P,I){if(!P){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=P.list;return}if(!document.body){this.isLoaded=!0,P.list.forEach(function(K){K.helper=p(K),K.cache={}}),this.fonts=P.list;return}var S=P.list,C,N=S.length,w=N;for(C=0;C<N;C+=1){var q=!0,O,D;if(S[C].loaded=!1,S[C].monoCase=g(S[C].fFamily,"monospace"),S[C].sansCase=g(S[C].fFamily,"sans-serif"),!S[C].fPath)S[C].loaded=!0,w-=1;else if(S[C].fOrigin==="p"||S[C].origin===3){if(O=document.querySelectorAll('style[f-forigin="p"][f-family="'+S[C].fFamily+'"], style[f-origin="3"][f-family="'+S[C].fFamily+'"]'),O.length>0&&(q=!1),q){var $=createTag("style");$.setAttribute("f-forigin",S[C].fOrigin),$.setAttribute("f-origin",S[C].origin),$.setAttribute("f-family",S[C].fFamily),$.type="text/css",$.innerText="@font-face {font-family: "+S[C].fFamily+"; font-style: normal; src: url('"+S[C].fPath+"');}",I.appendChild($)}}else if(S[C].fOrigin==="g"||S[C].origin===1){for(O=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),D=0;D<O.length;D+=1)O[D].href.indexOf(S[C].fPath)!==-1&&(q=!1);if(q){var U=createTag("link");U.setAttribute("f-forigin",S[C].fOrigin),U.setAttribute("f-origin",S[C].origin),U.type="text/css",U.rel="stylesheet",U.href=S[C].fPath,document.body.appendChild(U)}}else if(S[C].fOrigin==="t"||S[C].origin===2){for(O=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),D=0;D<O.length;D+=1)S[C].fPath===O[D].src&&(q=!1);if(q){var j=createTag("link");j.setAttribute("f-forigin",S[C].fOrigin),j.setAttribute("f-origin",S[C].origin),j.setAttribute("rel","stylesheet"),j.setAttribute("href",S[C].fPath),I.appendChild(j)}}S[C].helper=p(S[C],I),S[C].cache={},this.fonts.push(S[C])}w===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function b(P){if(P){this.chars||(this.chars=[]);var I,S=P.length,C,N=this.chars.length,w;for(I=0;I<S;I+=1){for(C=0,w=!1;C<N;)this.chars[C].style===P[I].style&&this.chars[C].fFamily===P[I].fFamily&&this.chars[C].ch===P[I].ch&&(w=!0),C+=1;w||(this.chars.push(P[I]),N+=1)}}}function d(P,I,S){for(var C=0,N=this.chars.length;C<N;){if(this.chars[C].ch===P&&this.chars[C].style===I&&this.chars[C].fFamily===S)return this.chars[C];C+=1}return(typeof P=="string"&&P.charCodeAt(0)!==13||!P)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",P,I,S)),n}function m(P,I,S){var C=this.getFontByName(I),N=P;if(!C.cache[N]){var w=C.helper;if(P===" "){var q=w.measureText("|"+P+"|"),O=w.measureText("||");C.cache[N]=(q-O)/100}else C.cache[N]=w.measureText(P)/100}return C.cache[N]*S}function y(P){for(var I=0,S=this.fonts.length;I<S;){if(this.fonts[I].fName===P)return this.fonts[I];I+=1}return this.fonts[0]}function A(P){var I=0,S=P.charCodeAt(0);if(S>=55296&&S<=56319){var C=P.charCodeAt(1);C>=56320&&C<=57343&&(I=(S-55296)*1024+C-56320+65536)}return I}function _(P,I){var S=P.toString(16)+I.toString(16);return x.indexOf(S)!==-1}function k(P){return P===c}function T(P){return P===l}function F(P){var I=A(P);return I>=u&&I<=f}function M(P){return F(P.substr(0,2))&&F(P.substr(2,2))}function B(P){return r.indexOf(P)!==-1}function L(P,I){var S=A(P.substr(I,2));if(S!==i)return!1;var C=0;for(I+=2;C<5;){if(S=A(P.substr(I,2)),S<o||S>s)return!1;C+=1,I+=2}return A(P.substr(I,2))===a}function R(){this.isLoaded=!0}var H=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)};H.isModifier=_,H.isZeroWidthJoiner=k,H.isFlagEmoji=M,H.isRegionalCode=F,H.isCombinedCharacter=B,H.isRegionalFlag=L,H.isVariationSelector=T,H.BLACK_FLAG_CODE_POINT=i;var V={addChars:b,addFonts:E,getCharData:d,getFontByName:y,measureText:m,checkLoadedFonts:v,setIsLoaded:R};return H.prototype=V,H}();function SlotManager(e){this.animationData=e}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(n){this.renderableComponents.indexOf(n)===-1&&this.renderableComponents.push(n)},removeRenderableComponent:function(n){this.renderableComponents.indexOf(n)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(n),1)},prepareRenderableFrame:function(n){this.checkLayerLimits(n)},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(n){this.data.ip-this.data.st<=n&&this.data.op-this.data.st>n?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 n,r=this.renderableComponents.length;for(n=0;n<r;n+=1)this.renderableComponents[n].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 e={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(n){return e[n]||""}}();function SliderEffect(e,n,r){this.p=PropertyFactory.getProp(n,e.v,0,0,r)}function AngleEffect(e,n,r){this.p=PropertyFactory.getProp(n,e.v,0,0,r)}function ColorEffect(e,n,r){this.p=PropertyFactory.getProp(n,e.v,1,0,r)}function PointEffect(e,n,r){this.p=PropertyFactory.getProp(n,e.v,1,0,r)}function LayerIndexEffect(e,n,r){this.p=PropertyFactory.getProp(n,e.v,0,0,r)}function MaskIndexEffect(e,n,r){this.p=PropertyFactory.getProp(n,e.v,0,0,r)}function CheckboxEffect(e,n,r){this.p=PropertyFactory.getProp(n,e.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(e,n){var r=e.ef||[];this.effectElements=[];var i,a=r.length,o;for(i=0;i<a;i+=1)o=new GroupEffect(r[i],n),this.effectElements.push(o)}function GroupEffect(e,n){this.init(e,n)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,n){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(n);var r,i=this.data.ef.length,a,o=this.data.ef;for(r=0;r<i;r+=1){switch(a=null,o[r].ty){case 0:a=new SliderEffect(o[r],n,this);break;case 1:a=new AngleEffect(o[r],n,this);break;case 2:a=new ColorEffect(o[r],n,this);break;case 3:a=new PointEffect(o[r],n,this);break;case 4:case 7:a=new CheckboxEffect(o[r],n,this);break;case 10:a=new LayerIndexEffect(o[r],n,this);break;case 11:a=new MaskIndexEffect(o[r],n,this);break;case 5:a=new EffectsManager(o[r],n);break;default:a=new NoValueEffect(o[r]);break}a&&this.effectElements.push(a)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var n=0,r=this.data.masksProperties.length;n<r;){if(this.data.masksProperties[n].mode!=="n"&&this.data.masksProperties[n].cl!==!1)return!0;n+=1}return!1},initExpressions:function(){var n=getExpressionInterfaces();if(n){var r=n("layer"),i=n("effects"),a=n("shape"),o=n("text"),s=n("comp");this.layerInterface=r(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var l=i.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(l),this.data.ty===0||this.data.xt?this.compInterface=s(this):this.data.ty===4?(this.layerInterface.shapeInterface=a(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=o(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var n=getBlendMode(this.data.bm),r=this.baseElement||this.layerElement;r.style["mix-blend-mode"]=n},initBaseData:function(n,r,i){this.globalData=r,this.comp=i,this.data=n,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(n,r){var i,a=this.dynamicProperties.length;for(i=0;i<a;i+=1)(r||this._isParent&&this.dynamicProperties[i].propType==="transform")&&(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(n){this.dynamicProperties.indexOf(n)===-1&&this.dynamicProperties.push(n)}};function FootageElement(e,n,r){this.initFrame(),this.initRenderable(),this.assetData=n.getAssetData(e.refId),this.footageData=n.imageLoader.getAsset(this.assetData),this.initBaseData(e,n,r)}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 e=getExpressionInterfaces();if(e){var n=e("footage");this.layerInterface=n(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(e,n,r){this.initFrame(),this.initRenderable(),this.assetData=n.getAssetData(e.refId),this.initBaseData(e,n,r),this._isPlaying=!1,this._canPlay=!1;var i=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(i),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,n.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var n=this.tm.v;this._currentTime=n}this._volume=this.lv.v[0];var r=this._volume*this._volumeMultiplier;this._previousVolume!==r&&(this._previousVolume=r,this.audio.volume(r))},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(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*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(e){var n,r=this.layers.length,i;for(this.completeLayers=!0,n=r-1;n>=0;n-=1)this.elements[n]||(i=this.layers[n],i.ip-i.st<=e-this.layers[n].st&&i.op-i.st>e-this.layers[n].st&&this.buildItem(n)),this.completeLayers=this.elements[n]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,n=this.layers.length;for(e=0;e<n;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){this.completeLayers=!1;var n,r=e.length,i,a=this.layers.length;for(n=0;n<r;n+=1)for(i=0;i<a;){if(this.layers[i].id===e[n].id){this.layers[i]=e[n];break}i+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,n,r){for(var i=this.elements,a=this.layers,o=0,s=a.length;o<s;)a[o].ind==n&&(!i[o]||i[o]===!0?(this.buildItem(o),this.addPendingElement(e)):(r.push(i[o]),i[o].setAsParent(),a[o].parent!==void 0?this.buildElementParenting(e,a[o].parent,r):e.setHierarchy(r))),o+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var n,r=e.length;for(n=0;n<r;n+=1)if(e[n].xt){var i=this.createComp(e[n]);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},BaseRenderer.prototype.getElementById=function(e){var n,r=this.elements.length;for(n=0;n<r;n+=1)if(this.elements[n].data.ind===e)return this.elements[n];return null},BaseRenderer.prototype.getElementByPath=function(e){var n=e.shift(),r;if(typeof n=="number")r=this.elements[n];else{var i,a=this.elements.length;for(i=0;i<a;i+=1)if(this.elements[i].data.nm===n){r=this.elements[i];break}}return e.length===0?r:r.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,n){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,n),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=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var n=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:n,localMat:n,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 n,r=this.finalTransform.mat,i=0,a=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<a;){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}i+=1}if(this.finalTransform._matMdf)for(n=this.finalTransform.mProp.v.props,r.cloneFromProps(n),i=0;i<a;i+=1)r.multiply(this.hierarchy[i].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 n=0,r=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;n<r;)this.localTransforms[n]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[n]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),n+=1;if(this.finalTransform._localMatMdf){var i=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(i),n=1;n<r;n+=1){var a=this.localTransforms[n].matrix;i.multiply(a)}i.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var o=this.finalTransform.localOpacity;for(n=0;n<r;n+=1)o*=this.localTransforms[n].opacity*.01;this.finalTransform.localOpacity=o}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var n=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(n.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var r=0,i=n.length;for(r=0;r<i;r+=1)this.localTransforms.push(n[r])}}},globalToLocal:function(n){var r=[];r.push(this.finalTransform);for(var i=!0,a=this.comp;i;)a.finalTransform?(a.data.hasMask&&r.splice(0,0,a.finalTransform),a=a.comp):i=!1;var o,s=r.length,l;for(o=0;o<s;o+=1)l=r[o].mat.applyToPointArray(0,0,0),n=[n[0]-l[0],n[1]-l[1],0];return n},mHelper:new Matrix};function MaskElement(e,n,r){this.data=e,this.element=n,this.globalData=r,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var i=this.globalData.defs,a,o=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(o),this.solidPath="";var s,l=this.masksProperties,c=0,u=[],f,x,h=createElementID(),g,v,p,E,b="clipPath",d="clip-path";for(a=0;a<o;a+=1)if((l[a].mode!=="a"&&l[a].mode!=="n"||l[a].inv||l[a].o.k!==100||l[a].o.x)&&(b="mask",d="mask"),(l[a].mode==="s"||l[a].mode==="i")&&c===0?(g=createNS("rect"),g.setAttribute("fill","#ffffff"),g.setAttribute("width",this.element.comp.data.w||0),g.setAttribute("height",this.element.comp.data.h||0),u.push(g)):g=null,s=createNS("path"),l[a].mode==="n")this.viewData[a]={op:PropertyFactory.getProp(this.element,l[a].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,l[a],3),elem:s,lastPath:""},i.appendChild(s);else{c+=1,s.setAttribute("fill",l[a].mode==="s"?"#000000":"#ffffff"),s.setAttribute("clip-rule","nonzero");var m;if(l[a].x.k!==0?(b="mask",d="mask",E=PropertyFactory.getProp(this.element,l[a].x,0,null,this.element),m=createElementID(),v=createNS("filter"),v.setAttribute("id",m),p=createNS("feMorphology"),p.setAttribute("operator","erode"),p.setAttribute("in","SourceGraphic"),p.setAttribute("radius","0"),v.appendChild(p),i.appendChild(v),s.setAttribute("stroke",l[a].mode==="s"?"#000000":"#ffffff")):(p=null,E=null),this.storedData[a]={elem:s,x:E,expan:p,lastPath:"",lastOperator:"",filterId:m,lastRadius:0},l[a].mode==="i"){x=u.length;var y=createNS("g");for(f=0;f<x;f+=1)y.appendChild(u[f]);var A=createNS("mask");A.setAttribute("mask-type","alpha"),A.setAttribute("id",h+"_"+c),A.appendChild(s),i.appendChild(A),y.setAttribute("mask","url("+getLocationHref()+"#"+h+"_"+c+")"),u.length=0,u.push(y)}else u.push(s);l[a].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[a]={elem:s,lastPath:"",op:PropertyFactory.getProp(this.element,l[a].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,l[a],3),invRect:g},this.viewData[a].prop.k||this.drawPath(l[a],this.viewData[a].prop.v,this.viewData[a])}for(this.maskElement=createNS(b),o=u.length,a=0;a<o;a+=1)this.maskElement.appendChild(u[a]);c>0&&(this.maskElement.setAttribute("id",h),this.element.maskedElement.setAttribute(d,"url("+getLocationHref()+"#"+h+")"),i.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var n=this.element.finalTransform.mat,r,i=this.masksProperties.length;for(r=0;r<i;r+=1)if((this.viewData[r].prop._mdf||e)&&this.drawPath(this.masksProperties[r],this.viewData[r].prop.v,this.viewData[r]),(this.viewData[r].op._mdf||e)&&this.viewData[r].elem.setAttribute("fill-opacity",this.viewData[r].op.v),this.masksProperties[r].mode!=="n"&&(this.viewData[r].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[r].invRect.setAttribute("transform",n.getInverseMatrix().to2dCSS()),this.storedData[r].x&&(this.storedData[r].x._mdf||e))){var a=this.storedData[r].expan;this.storedData[r].x.v<0?(this.storedData[r].lastOperator!=="erode"&&(this.storedData[r].lastOperator="erode",this.storedData[r].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[r].filterId+")")),a.setAttribute("radius",-this.storedData[r].x.v)):(this.storedData[r].lastOperator!=="dilate"&&(this.storedData[r].lastOperator="dilate",this.storedData[r].elem.setAttribute("filter",null)),this.storedData[r].elem.setAttribute("stroke-width",this.storedData[r].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" ",e},MaskElement.prototype.drawPath=function(e,n,r){var i=" M"+n.v[0][0]+","+n.v[0][1],a,o;for(o=n._length,a=1;a<o;a+=1)i+=" C"+n.o[a-1][0]+","+n.o[a-1][1]+" "+n.i[a][0]+","+n.i[a][1]+" "+n.v[a][0]+","+n.v[a][1];if(n.c&&o>1&&(i+=" C"+n.o[a-1][0]+","+n.o[a-1][1]+" "+n.i[0][0]+","+n.i[0][1]+" "+n.v[0][0]+","+n.v[0][1]),r.lastPath!==i){var s="";r.elem&&(n.c&&(s=e.inv?this.solidPath+i:i),r.elem.setAttribute("d",s)),r.lastPath=i}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={};e.createFilter=n,e.createAlphaToLuminanceFilter=r;function n(i,a){var o=createNS("filter");return o.setAttribute("id",i),a!==!0&&(o.setAttribute("filterUnits","objectBoundingBox"),o.setAttribute("x","0%"),o.setAttribute("y","0%"),o.setAttribute("width","100%"),o.setAttribute("height","100%")),o}function r(){var i=createNS("feColorMatrix");return i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),i}return e}(),featureSupport=function(){var e={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))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var n,r="SourceGraphic",i=e.data.ef?e.data.ef.length:0,a=createElementID(),o=filtersFactory.createFilter(a,!0),s=0;this.filters=[];var l;for(n=0;n<i;n+=1){l=null;var c=e.data.ef[n].ty;if(registeredEffects$1[c]){var u=registeredEffects$1[c].effect;l=new u(o,e.effectsManager.effectElements[n],e,idPrefix+s,r),r=idPrefix+s,registeredEffects$1[c].countsAsEffect&&(s+=1)}l&&this.filters.push(l)}s&&(e.globalData.defs.appendChild(o),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+a+")")),this.filters.length&&e.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(e){var n,r=this.filters.length;for(n=0;n<r;n+=1)this.filters[n].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var n,r=this.filters.length,i=[];for(n=0;n<r;n+=1)this.filters[n].type===e&&i.push(this.filters[n]);return i};function registerEffect$1(e,n,r){registeredEffects$1[e]={effect:n,countsAsEffect:r}}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 n=null;if(this.data.td){this.matteMasks={};var r=createNS("g");r.setAttribute("id",this.layerId),r.appendChild(this.layerElement),n=r,this.globalData.defs.appendChild(r)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),n=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 i=createNS("clipPath"),a=createNS("path");a.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var o=createElementID();if(i.setAttribute("id",o),i.appendChild(a),this.globalData.defs.appendChild(i),this.checkMasks()){var s=createNS("g");s.setAttribute("clip-path","url("+getLocationHref()+"#"+o+")"),s.appendChild(this.layerElement),this.transformedElement=s,n?n.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+o+")")}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(n){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[n]){var r=this.layerId+"_"+n,i,a,o,s;if(n===1||n===3){var l=createNS("mask");l.setAttribute("id",r),l.setAttribute("mask-type",n===3?"luminance":"alpha"),o=createNS("use"),o.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(o),this.globalData.defs.appendChild(l),!featureSupport.maskType&&n===1&&(l.setAttribute("mask-type","luminance"),i=createElementID(),a=filtersFactory.createFilter(i),this.globalData.defs.appendChild(a),a.appendChild(filtersFactory.createAlphaToLuminanceFilter()),s=createNS("g"),s.appendChild(o),l.appendChild(s),s.setAttribute("filter","url("+getLocationHref()+"#"+i+")"))}else if(n===2){var c=createNS("mask");c.setAttribute("id",r),c.setAttribute("mask-type","alpha");var u=createNS("g");c.appendChild(u),i=createElementID(),a=filtersFactory.createFilter(i);var f=createNS("feComponentTransfer");f.setAttribute("in","SourceGraphic"),a.appendChild(f);var x=createNS("feFuncA");x.setAttribute("type","table"),x.setAttribute("tableValues","1.0 0.0"),f.appendChild(x),this.globalData.defs.appendChild(a);var h=createNS("rect");h.setAttribute("width",this.comp.data.w),h.setAttribute("height",this.comp.data.h),h.setAttribute("x","0"),h.setAttribute("y","0"),h.setAttribute("fill","#ffffff"),h.setAttribute("opacity","0"),u.setAttribute("filter","url("+getLocationHref()+"#"+i+")"),u.appendChild(h),o=createNS("use"),o.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),u.appendChild(o),featureSupport.maskType||(c.setAttribute("mask-type","luminance"),a.appendChild(filtersFactory.createAlphaToLuminanceFilter()),s=createNS("g"),u.appendChild(h),s.appendChild(this.layerElement),u.appendChild(s)),this.globalData.defs.appendChild(c)}this.matteMasks[n]=r}return this.matteMasks[n]},setMatte:function(n){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+n+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(n){this.hierarchy=n},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var e={initElement:function(r,i,a){this.initFrame(),this.initBaseData(r,i,a),this.initTransform(r,i,a),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var r=this.baseElement||this.layerElement;r.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var r=this.baseElement||this.layerElement;r.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(r){this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(e)],RenderableDOMElement)})();function IImageElement(e,n,r){this.assetData=n.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=n.slotManager.getProp(this.assetData)),this.initElement(e,n,r),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 e=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",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(e,n){this.elem=e,this.pos=n}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(n){var r,i=this.shapeModifiers.length;for(r=0;r<i;r+=1)this.shapeModifiers[r].addShape(n)},isShapeInAnimatedModifiers:function(n){for(var r=0,i=this.shapeModifiers.length;r<i;)if(this.shapeModifiers[r].isAnimatedWithShape(n))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var n,r=this.shapes.length;for(n=0;n<r;n+=1)this.shapes[n].sh.reset();r=this.shapeModifiers.length;var i;for(n=r-1;n>=0&&(i=this.shapeModifiers[n].processShapes(this._isFirstFrame),!i);n-=1);}},searchProcessedElement:function(n){for(var r=this.processedElements,i=0,a=r.length;i<a;){if(r[i].elem===n)return r[i].pos;i+=1}return 0},addProcessedElement:function(n,r){for(var i=this.processedElements,a=i.length;a;)if(a-=1,i[a].elem===n){i[a].pos=r;return}i.push(new ProcessedElement(n,r))},prepareFrame:function(n){this.prepareRenderableFrame(n),this.prepareProperties(n,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,n,r){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=r,this.lvl=n,this._isAnimated=!!r.k;for(var i=0,a=e.length;i<a;){if(e[i].mProps.dynamicProperties.length){this._isAnimated=!0;break}i+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(e,n){this.data=e,this.type=e.ty,this.d="",this.lvl=n,this._mdf=!1,this.closed=e.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(e,n,r,i){this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(n.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",n.length?n.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(i);var a,o=n.length||0,s;for(a=0;a<o;a+=1)s=PropertyFactory.getProp(e,n[a].v,0,0,this),this.k=s.k||this.k,this.dataProps[a]={n:n[a].n,p:s};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(e){if(!(this.elem.globalData.frameId===this.frameId&&!e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var n=0,r=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),n=0;n<r;n+=1)this.dataProps[n].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[n].p.v:this.dashArray[n]=this.dataProps[n].p.v:this.dashoffset[0]=this.dataProps[n].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(e,n,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,n.o,0,.01,this),this.w=PropertyFactory.getProp(e,n.w,0,null,this),this.d=new DashProperty(e,n.d||{},"svg",this),this.c=PropertyFactory.getProp(e,n.c,1,255,this),this.style=r,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(e,n,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,n.o,0,.01,this),this.c=PropertyFactory.getProp(e,n.c,1,255,this),this.style=r}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(e,n,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=r}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(e,n,r){this.data=n,this.c=createTypedArray("uint8c",n.p*4);var i=n.k.k[0].s?n.k.k[0].s.length-n.p*4:n.k.k.length-n.p*4;this.o=createTypedArray("float32",i),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=i,this.initDynamicPropertyContainer(r),this.prop=PropertyFactory.getProp(e,n.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(e,n){for(var r=0,i=this.o.length/2,a;r<i;){if(a=Math.abs(e[r*4]-e[n*4+r*2]),a>.01)return!1;r+=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 e=0,n=this.data.k.k.length;e<n;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var n,r=this.data.p*4,i,a;for(n=0;n<r;n+=1)i=n%4===0?100:255,a=Math.round(this.prop.v[n]*i),this.c[n]!==a&&(this.c[n]=a,this._cmdf=!e);if(this.o.length)for(r=this.prop.v.length,n=this.data.p*4;n<r;n+=1)i=n%2===0?100:1,a=n%2===0?Math.round(this.prop.v[n]*100):this.prop.v[n],this.o[n-this.data.p*4]!==a&&(this.o[n-this.data.p*4]=a,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(e,n,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,n,r)}SVGGradientFillStyleData.prototype.initGradientData=function(e,n,r){this.o=PropertyFactory.getProp(e,n.o,0,.01,this),this.s=PropertyFactory.getProp(e,n.s,1,null,this),this.e=PropertyFactory.getProp(e,n.e,1,null,this),this.h=PropertyFactory.getProp(e,n.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,n.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,n.g,this),this.style=r,this.stops=[],this.setGradientData(r.pElem,n),this.setGradientOpacity(n,r),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,n){var r=createElementID(),i=createNS(n.t===1?"linearGradient":"radialGradient");i.setAttribute("id",r),i.setAttribute("spreadMethod","pad"),i.setAttribute("gradientUnits","userSpaceOnUse");var a=[],o,s,l;for(l=n.g.p*4,s=0;s<l;s+=4)o=createNS("stop"),i.appendChild(o),a.push(o);e.setAttribute(n.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=i,this.cst=a},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,n){if(this.g._hasOpacity&&!this.g._collapsable){var r,i,a,o=createNS("mask"),s=createNS("path");o.appendChild(s);var l=createElementID(),c=createElementID();o.setAttribute("id",c);var u=createNS(e.t===1?"linearGradient":"radialGradient");u.setAttribute("id",l),u.setAttribute("spreadMethod","pad"),u.setAttribute("gradientUnits","userSpaceOnUse"),a=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var f=this.stops;for(i=e.g.p*4;i<a;i+=2)r=createNS("stop"),r.setAttribute("stop-color","rgb(255,255,255)"),u.appendChild(r),f.push(r);s.setAttribute(e.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+l+")"),e.ty==="gs"&&(s.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),s.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),e.lj===1&&s.setAttribute("stroke-miterlimit",e.ml)),this.of=u,this.ms=o,this.ost=f,this.maskId=c,n.msElem=s}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(e,n,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,n.w,0,null,this),this.d=new DashProperty(e,n.d||{},"svg",this),this.initGradientData(e,n,r),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,n,r){this.transform={mProps:e,op:n,container:r},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(n,r,i,a){if(r===0)return"";var o=n.o,s=n.i,l=n.v,c,u=" M"+a.applyToPointStringified(l[0][0],l[0][1]);for(c=1;c<r;c+=1)u+=" C"+a.applyToPointStringified(o[c-1][0],o[c-1][1])+" "+a.applyToPointStringified(s[c][0],s[c][1])+" "+a.applyToPointStringified(l[c][0],l[c][1]);return i&&r&&(u+=" C"+a.applyToPointStringified(o[c-1][0],o[c-1][1])+" "+a.applyToPointStringified(s[0][0],s[0][1])+" "+a.applyToPointStringified(l[0][0],l[0][1]),u+="z"),u},SVGElementsRenderer=function(){var e=new Matrix,n=new Matrix,r={createRenderFunction:i};function i(x){switch(x.ty){case"fl":return l;case"gf":return u;case"gs":return c;case"st":return f;case"sh":case"el":case"rc":case"sr":return s;case"tr":return a;case"no":return o;default:return null}}function a(x,h,g){(g||h.transform.op._mdf)&&h.transform.container.setAttribute("opacity",h.transform.op.v),(g||h.transform.mProps._mdf)&&h.transform.container.setAttribute("transform",h.transform.mProps.v.to2dCSS())}function o(){}function s(x,h,g){var v,p,E,b,d,m,y=h.styles.length,A=h.lvl,_,k,T,F;for(m=0;m<y;m+=1){if(b=h.sh._mdf||g,h.styles[m].lvl<A){for(k=n.reset(),T=A-h.styles[m].lvl,F=h.transformers.length-1;!b&&T>0;)b=h.transformers[F].mProps._mdf||b,T-=1,F-=1;if(b)for(T=A-h.styles[m].lvl,F=h.transformers.length-1;T>0;)k.multiply(h.transformers[F].mProps.v),T-=1,F-=1}else k=e;if(_=h.sh.paths,p=_._length,b){for(E="",v=0;v<p;v+=1)d=_.shapes[v],d&&d._length&&(E+=buildShapeString(d,d._length,d.c,k));h.caches[m]=E}else E=h.caches[m];h.styles[m].d+=x.hd===!0?"":E,h.styles[m]._mdf=b||h.styles[m]._mdf}}function l(x,h,g){var v=h.style;(h.c._mdf||g)&&v.pElem.setAttribute("fill","rgb("+bmFloor(h.c.v[0])+","+bmFloor(h.c.v[1])+","+bmFloor(h.c.v[2])+")"),(h.o._mdf||g)&&v.pElem.setAttribute("fill-opacity",h.o.v)}function c(x,h,g){u(x,h,g),f(x,h,g)}function u(x,h,g){var v=h.gf,p=h.g._hasOpacity,E=h.s.v,b=h.e.v;if(h.o._mdf||g){var d=x.ty==="gf"?"fill-opacity":"stroke-opacity";h.style.pElem.setAttribute(d,h.o.v)}if(h.s._mdf||g){var m=x.t===1?"x1":"cx",y=m==="x1"?"y1":"cy";v.setAttribute(m,E[0]),v.setAttribute(y,E[1]),p&&!h.g._collapsable&&(h.of.setAttribute(m,E[0]),h.of.setAttribute(y,E[1]))}var A,_,k,T;if(h.g._cmdf||g){A=h.cst;var F=h.g.c;for(k=A.length,_=0;_<k;_+=1)T=A[_],T.setAttribute("offset",F[_*4]+"%"),T.setAttribute("stop-color","rgb("+F[_*4+1]+","+F[_*4+2]+","+F[_*4+3]+")")}if(p&&(h.g._omdf||g)){var M=h.g.o;for(h.g._collapsable?A=h.cst:A=h.ost,k=A.length,_=0;_<k;_+=1)T=A[_],h.g._collapsable||T.setAttribute("offset",M[_*2]+"%"),T.setAttribute("stop-opacity",M[_*2+1])}if(x.t===1)(h.e._mdf||g)&&(v.setAttribute("x2",b[0]),v.setAttribute("y2",b[1]),p&&!h.g._collapsable&&(h.of.setAttribute("x2",b[0]),h.of.setAttribute("y2",b[1])));else{var B;if((h.s._mdf||h.e._mdf||g)&&(B=Math.sqrt(Math.pow(E[0]-b[0],2)+Math.pow(E[1]-b[1],2)),v.setAttribute("r",B),p&&!h.g._collapsable&&h.of.setAttribute("r",B)),h.e._mdf||h.h._mdf||h.a._mdf||g){B||(B=Math.sqrt(Math.pow(E[0]-b[0],2)+Math.pow(E[1]-b[1],2)));var L=Math.atan2(b[1]-E[1],b[0]-E[0]),R=h.h.v;R>=1?R=.99:R<=-1&&(R=-.99);var H=B*R,V=Math.cos(L+h.a.v)*H+E[0],P=Math.sin(L+h.a.v)*H+E[1];v.setAttribute("fx",V),v.setAttribute("fy",P),p&&!h.g._collapsable&&(h.of.setAttribute("fx",V),h.of.setAttribute("fy",P))}}}function f(x,h,g){var v=h.style,p=h.d;p&&(p._mdf||g)&&p.dashStr&&(v.pElem.setAttribute("stroke-dasharray",p.dashStr),v.pElem.setAttribute("stroke-dashoffset",p.dashoffset[0])),h.c&&(h.c._mdf||g)&&v.pElem.setAttribute("stroke","rgb("+bmFloor(h.c.v[0])+","+bmFloor(h.c.v[1])+","+bmFloor(h.c.v[2])+")"),(h.o._mdf||g)&&v.pElem.setAttribute("stroke-opacity",h.o.v),(h.w._mdf||g)&&(v.pElem.setAttribute("stroke-width",h.w.v),v.msElem&&v.msElem.setAttribute("stroke-width",h.w.v))}return r}();function SVGShapeElement(e,n,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,n,r),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 e,n=this.shapes.length,r,i,a=this.stylesList.length,o,s=[],l=!1;for(i=0;i<a;i+=1){for(o=this.stylesList[i],l=!1,s.length=0,e=0;e<n;e+=1)r=this.shapes[e],r.styles.indexOf(o)!==-1&&(s.push(r),l=r._isAnimated||l);s.length>1&&l&&this.setShapesAsAnimated(s)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var n,r=e.length;for(n=0;n<r;n+=1)e[n].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,n){var r,i=new SVGStyleData(e,n),a=i.pElem;if(e.ty==="st")r=new SVGStrokeStyleData(this,e,i);else if(e.ty==="fl")r=new SVGFillStyleData(this,e,i);else if(e.ty==="gf"||e.ty==="gs"){var o=e.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;r=new o(this,e,i),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),a.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))}else e.ty==="no"&&(r=new SVGNoStyleData(this,e,i));return(e.ty==="st"||e.ty==="gs")&&(a.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),a.setAttribute("fill-opacity","0"),e.lj===1&&a.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&a.setAttribute("fill-rule","evenodd"),e.ln&&a.setAttribute("id",e.ln),e.cl&&a.setAttribute("class",e.cl),e.bm&&(a.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(i),this.addToAnimatedContents(e,r),r},SVGShapeElement.prototype.createGroupElement=function(e){var n=new ShapeGroupData;return e.ln&&n.gr.setAttribute("id",e.ln),e.cl&&n.gr.setAttribute("class",e.cl),e.bm&&(n.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),n},SVGShapeElement.prototype.createTransformElement=function(e,n){var r=TransformPropertyFactory.getTransformProperty(this,e,this),i=new SVGTransformData(r,r.o,n);return this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.createShapeElement=function(e,n,r){var i=4;e.ty==="rc"?i=5:e.ty==="el"?i=6:e.ty==="sr"&&(i=7);var a=ShapePropertyFactory.getShapeProp(this,e,i,this),o=new SVGShapeData(n,r,a);return this.shapes.push(o),this.addShapeToModifiers(o),this.addToAnimatedContents(e,o),o},SVGShapeElement.prototype.addToAnimatedContents=function(e,n){for(var r=0,i=this.animatedContents.length;r<i;){if(this.animatedContents[r].element===n)return;r+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:n,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var n=e.styles,r,i=this.stylesList.length;for(r=0;r<i;r+=1)this.stylesList[r].closed||n.push(this.stylesList[r])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,n=this.itemsData.length;for(e=0;e<n;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),n=this.dynamicProperties.length,e=0;e<n;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,n,r,i,a,o,s){var l=[].concat(o),c,u=e.length-1,f,x,h=[],g=[],v,p,E;for(c=u;c>=0;c-=1){if(E=this.searchProcessedElement(e[c]),E?n[c]=r[E-1]:e[c]._render=s,e[c].ty==="fl"||e[c].ty==="st"||e[c].ty==="gf"||e[c].ty==="gs"||e[c].ty==="no")E?n[c].style.closed=!1:n[c]=this.createStyleElement(e[c],a),e[c]._render&&n[c].style.pElem.parentNode!==i&&i.appendChild(n[c].style.pElem),h.push(n[c].style);else if(e[c].ty==="gr"){if(!E)n[c]=this.createGroupElement(e[c]);else for(x=n[c].it.length,f=0;f<x;f+=1)n[c].prevViewData[f]=n[c].it[f];this.searchShapes(e[c].it,n[c].it,n[c].prevViewData,n[c].gr,a+1,l,s),e[c]._render&&n[c].gr.parentNode!==i&&i.appendChild(n[c].gr)}else e[c].ty==="tr"?(E||(n[c]=this.createTransformElement(e[c],i)),v=n[c].transform,l.push(v)):e[c].ty==="sh"||e[c].ty==="rc"||e[c].ty==="el"||e[c].ty==="sr"?(E||(n[c]=this.createShapeElement(e[c],l,a)),this.setElementStyles(n[c])):e[c].ty==="tm"||e[c].ty==="rd"||e[c].ty==="ms"||e[c].ty==="pb"||e[c].ty==="zz"||e[c].ty==="op"?(E?(p=n[c],p.closed=!1):(p=ShapeModifiers.getModifier(e[c].ty),p.init(this,e[c]),n[c]=p,this.shapeModifiers.push(p)),g.push(p)):e[c].ty==="rp"&&(E?(p=n[c],p.closed=!0):(p=ShapeModifiers.getModifier(e[c].ty),n[c]=p,p.init(this,e,c,n),this.shapeModifiers.push(p),s=!1),g.push(p));this.addProcessedElement(e[c],c+1)}for(u=h.length,c=0;c<u;c+=1)h[c].closed=!0;for(u=g.length,c=0;c<u;c+=1)g[c].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var e,n=this.stylesList.length;for(e=0;e<n;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<n;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,n=this.animatedContents.length,r;for(e=0;e<n;e+=1)r=this.animatedContents[e],(this._isFirstFrame||r.element._isAnimated)&&r.data!==!0&&r.fn(r.data,r.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(e,n,r,i,a,o){this.o=e,this.sw=n,this.sc=r,this.fc=i,this.m=a,this.p=o,this._mdf={o:!0,sw:!!n,sc:!!r,fc:!!i,m:!0,p:!0}}LetterProps.prototype.update=function(e,n,r,i,a,o){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 s=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,s=!0),this.sw!==n&&(this.sw=n,this._mdf.sw=!0,s=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,s=!0),this.fc!==i&&(this.fc=i,this._mdf.fc=!0,s=!0),this.m!==a&&(this.m=a,this._mdf.m=!0,s=!0),o.length&&(this.p[0]!==o[0]||this.p[1]!==o[1]||this.p[4]!==o[4]||this.p[5]!==o[5]||this.p[12]!==o[12]||this.p[13]!==o[13])&&(this.p=o,this._mdf.p=!0,s=!0),s};function TextProperty(e,n){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,n.d&&n.d.sid&&(n.d=e.globalData.slotManager.getProp(n.d)),this.data=n,this.elem=e,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(e,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,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(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!e)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var n=this.currentData,r=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var i,a=this.effectsSequence.length,o=e||this.data.d.k[this.keysIndex].s;for(i=0;i<a;i+=1)r!==this.keysIndex?o=this.effectsSequence[i](o,o.t):o=this.effectsSequence[i](this.currentData,o.t);n!==o&&this.setCurrentData(o),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,n=this.elem.comp.renderedFrame,r=0,i=e.length;r<=i-1&&!(r===i-1||e[r+1].t>n);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var n=[],r=0,i=e.length,a,o,s=!1,l=!1,c="";r<i;)s=l,l=!1,a=e.charCodeAt(r),c=e.charAt(r),FontManager.isCombinedCharacter(a)?s=!0:a>=55296&&a<=56319?FontManager.isRegionalFlag(e,r)?c=e.substr(r,14):(o=e.charCodeAt(r+1),o>=56320&&o<=57343&&(FontManager.isModifier(a,o)?(c=e.substr(r,2),s=!0):FontManager.isFlagEmoji(e.substr(r,4))?c=e.substr(r,4):c=e.substr(r,2))):a>56319?(o=e.charCodeAt(r+1),FontManager.isVariationSelector(a)&&(s=!0)):FontManager.isZeroWidthJoiner(a)&&(s=!0,l=!0),s?(n[n.length-1]+=c,s=!1):n.push(c),r+=c.length;return n},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var n=this.elem.globalData.fontManager,r=this.data,i=[],a,o,s,l=0,c,u=r.m.g,f=0,x=0,h=0,g=[],v=0,p=0,E,b,d=n.getFontByName(e.f),m,y=0,A=getFontProperties(d);e.fWeight=A.weight,e.fStyle=A.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),o=e.finalText.length,e.finalLineHeight=e.lh;var _=e.tr/1e3*e.finalSize,k;if(e.sz)for(var T=!0,F=e.sz[0],M=e.sz[1],B,L;T;){L=this.buildFinalText(e.t),B=0,v=0,o=L.length,_=e.tr/1e3*e.finalSize;var R=-1;for(a=0;a<o;a+=1)k=L[a].charCodeAt(0),s=!1,L[a]===" "?R=a:(k===13||k===3)&&(v=0,s=!0,B+=e.finalLineHeight||e.finalSize*1.2),n.chars?(m=n.getCharData(L[a],d.fStyle,d.fFamily),y=s?0:m.w*e.finalSize/100):y=n.measureText(L[a],e.f,e.finalSize),v+y>F&&L[a]!==" "?(R===-1?o+=1:a=R,B+=e.finalLineHeight||e.finalSize*1.2,L.splice(a,R===a?1:0,"\r"),R=-1,v=0):(v+=y,v+=_);B+=d.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&M<B?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=L,o=e.finalText.length,T=!1)}v=-_,y=0;var H=0,V;for(a=0;a<o;a+=1)if(s=!1,V=e.finalText[a],k=V.charCodeAt(0),k===13||k===3?(H=0,g.push(v),p=v>p?v:p,v=-2*_,c="",s=!0,h+=1):c=V,n.chars?(m=n.getCharData(V,d.fStyle,n.getFontByName(e.f).fFamily),y=s?0:m.w*e.finalSize/100):y=n.measureText(c,e.f,e.finalSize),V===" "?H+=y+_:(v+=y+_+H,H=0),i.push({l:y,an:y,add:f,n:s,anIndexes:[],val:c,line:h,animatorJustifyOffset:0}),u==2){if(f+=y,c===""||c===" "||a===o-1){for((c===""||c===" ")&&(f-=y);x<=a;)i[x].an=f,i[x].ind=l,i[x].extra=y,x+=1;l+=1,f=0}}else if(u==3){if(f+=y,c===""||a===o-1){for(c===""&&(f-=y);x<=a;)i[x].an=f,i[x].ind=l,i[x].extra=y,x+=1;f=0,l+=1}}else i[l].ind=l,i[l].extra=0,l+=1;if(e.l=i,p=v>p?v:p,g.push(v),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=p,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=g;var P=r.a,I,S;b=P.length;var C,N,w=[];for(E=0;E<b;E+=1){for(I=P[E],I.a.sc&&(e.strokeColorAnim=!0),I.a.sw&&(e.strokeWidthAnim=!0),(I.a.fc||I.a.fh||I.a.fs||I.a.fb)&&(e.fillColorAnim=!0),N=0,C=I.s.b,a=0;a<o;a+=1)S=i[a],S.anIndexes[E]=N,(C==1&&S.val!==""||C==2&&S.val!==""&&S.val!==" "||C==3&&(S.n||S.val==" "||a==o-1)||C==4&&(S.n||a==o-1))&&(I.s.rn===1&&w.push(N),N+=1);r.a[E].s.totalChars=N;var q=-1,O;if(I.s.rn===1)for(a=0;a<o;a+=1)S=i[a],q!=S.anIndexes[E]&&(q=S.anIndexes[E],O=w.splice(Math.floor(Math.random()*w.length),1)[0]),S.anIndexes[E]=O}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=d.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,n){n=n===void 0?this.keysIndex:n;var r=this.copyData({},this.data.d.k[n].s);r=this.copyData(r,e),this.data.d.k[n].s=r,this.recalculate(n),this.setCurrentData(r),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var n=this.data.d.k[e].s;n.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(n)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,n=Math.min,r=Math.floor;function i(o,s){this._currentTextLength=-1,this.k=!1,this.data=s,this.elem=o,this.comp=o.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(o),this.s=PropertyFactory.getProp(o,s.s||{k:0},0,0,this),"e"in s?this.e=PropertyFactory.getProp(o,s.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(o,s.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(o,s.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(o,s.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(o,s.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(o,s.a,0,.01,this),this.dynamicProperties.length||this.getValue()}i.prototype={getMult:function(s){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var l=0,c=0,u=1,f=1;this.ne.v>0?l=this.ne.v/100:c=-this.ne.v/100,this.xe.v>0?u=1-this.xe.v/100:f=1+this.xe.v/100;var x=BezierFactory.getBezierEasing(l,c,u,f).get,h=0,g=this.finalS,v=this.finalE,p=this.data.sh;if(p===2)v===g?h=s>=v?1:0:h=e(0,n(.5/(v-g)+(s-g)/(v-g),1)),h=x(h);else if(p===3)v===g?h=s>=v?0:1:h=1-e(0,n(.5/(v-g)+(s-g)/(v-g),1)),h=x(h);else if(p===4)v===g?h=0:(h=e(0,n(.5/(v-g)+(s-g)/(v-g),1)),h<.5?h*=2:h=1-2*(h-.5)),h=x(h);else if(p===5){if(v===g)h=0;else{var E=v-g;s=n(e(0,s+.5-g),v-g);var b=-E/2+s,d=E/2;h=Math.sqrt(1-b*b/(d*d))}h=x(h)}else p===6?(v===g?h=0:(s=n(e(0,s+.5-g),v-g),h=(1+Math.cos(Math.PI+Math.PI*2*s/(v-g)))/2),h=x(h)):(s>=r(g)&&(s-g<0?h=e(0,n(n(v,1)-(g-s),1)):h=e(0,n(v-s,1))),h=x(h));if(this.sm.v!==100){var m=this.sm.v*.01;m===0&&(m=1e-8);var y=.5-m*.5;h<y?h=0:(h=(h-y)/m,h>1&&(h=1))}return h*this.a.v},getValue:function(s){this.iterateDynamicProperties(),this._mdf=s||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,s&&this.data.r===2&&(this.e.v=this._currentTextLength);var l=this.data.r===2?1:100/this.data.totalChars,c=this.o.v/l,u=this.s.v/l+c,f=this.e.v/l+c;if(u>f){var x=u;u=f,f=x}this.finalS=u,this.finalE=f}},extendPrototype([DynamicPropertyContainer],i);function a(o,s,l){return new i(o,s)}return{getTextSelectorProp:a}}();function TextAnimatorDataProperty(e,n,r){var i={propType:!1},a=PropertyFactory.getProp,o=n.a;this.a={r:o.r?a(e,o.r,0,degToRads,r):i,rx:o.rx?a(e,o.rx,0,degToRads,r):i,ry:o.ry?a(e,o.ry,0,degToRads,r):i,sk:o.sk?a(e,o.sk,0,degToRads,r):i,sa:o.sa?a(e,o.sa,0,degToRads,r):i,s:o.s?a(e,o.s,1,.01,r):i,a:o.a?a(e,o.a,1,0,r):i,o:o.o?a(e,o.o,0,.01,r):i,p:o.p?a(e,o.p,1,0,r):i,sw:o.sw?a(e,o.sw,0,0,r):i,sc:o.sc?a(e,o.sc,1,0,r):i,fc:o.fc?a(e,o.fc,1,0,r):i,fh:o.fh?a(e,o.fh,0,0,r):i,fs:o.fs?a(e,o.fs,0,.01,r):i,fb:o.fb?a(e,o.fb,0,.01,r):i,t:o.t?a(e,o.t,0,0,r):i},this.s=TextSelectorProp.getTextSelectorProp(e,n.s,r),this.s.t=n.s.t}function TextAnimatorProperty(e,n,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=n,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}TextAnimatorProperty.prototype.searchProperties=function(){var e,n=this._textData.a.length,r,i=PropertyFactory.getProp;for(e=0;e<n;e+=1)r=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,r,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:i(this._elem,this._textData.p.a,0,0,this),f:i(this._elem,this._textData.p.f,0,0,this),l:i(this._elem,this._textData.p.l,0,0,this),r:i(this._elem,this._textData.p.r,0,0,this),p:i(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=i(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,n){if(this.lettersChangedFlag=n,!(!this._mdf&&!this._isFirstFrame&&!n&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var r=this._moreOptions.alignment.v,i=this._animatorsData,a=this._textData,o=this.mHelper,s=this._renderType,l=this.renderedLetters.length,c,u,f,x,h=e.l,g,v,p,E,b,d,m,y,A,_,k,T,F,M,B;if(this._hasMaskedPath){if(B=this._pathData.m,!this._pathData.n||this._pathData._mdf){var L=B.v;this._pathData.r.v&&(L=L.reverse()),g={tLength:0,segments:[]},x=L._length-1;var R;for(T=0,f=0;f<x;f+=1)R=bez.buildBezierData(L.v[f],L.v[f+1],[L.o[f][0]-L.v[f][0],L.o[f][1]-L.v[f][1]],[L.i[f+1][0]-L.v[f+1][0],L.i[f+1][1]-L.v[f+1][1]]),g.tLength+=R.segmentLength,g.segments.push(R),T+=R.segmentLength;f=x,B.v.c&&(R=bez.buildBezierData(L.v[f],L.v[0],[L.o[f][0]-L.v[f][0],L.o[f][1]-L.v[f][1]],[L.i[0][0]-L.v[0][0],L.i[0][1]-L.v[0][1]]),g.tLength+=R.segmentLength,g.segments.push(R),T+=R.segmentLength),this._pathData.pi=g}if(g=this._pathData.pi,v=this._pathData.f.v,m=0,d=1,E=0,b=!0,_=g.segments,v<0&&B.v.c)for(g.tLength<Math.abs(v)&&(v=-Math.abs(v)%g.tLength),m=_.length-1,A=_[m].points,d=A.length-1;v<0;)v+=A[d].partialLength,d-=1,d<0&&(m-=1,A=_[m].points,d=A.length-1);A=_[m].points,y=A[d-1],p=A[d],k=p.partialLength}x=h.length,c=0,u=0;var H=e.finalSize*1.2*.714,V=!0,P,I,S,C,N;C=i.length;var w,q=-1,O,D,$,U=v,j=m,K=d,G=-1,Y,J,ee,Z,W,Q,te,re,ae="",se=this.defaultPropsArray,fe;if(e.j===2||e.j===1){var he=0,ge=0,ye=e.j===2?-.5:-1,Ee=0,De=!0;for(f=0;f<x;f+=1)if(h[f].n){for(he&&(he+=ge);Ee<f;)h[Ee].animatorJustifyOffset=he,Ee+=1;he=0,De=!0}else{for(S=0;S<C;S+=1)P=i[S].a,P.t.propType&&(De&&e.j===2&&(ge+=P.t.v*ye),I=i[S].s,w=I.getMult(h[f].anIndexes[S],a.a[S].s.totalChars),w.length?he+=P.t.v*w[0]*ye:he+=P.t.v*w*ye);De=!1}for(he&&(he+=ge);Ee<f;)h[Ee].animatorJustifyOffset=he,Ee+=1}for(f=0;f<x;f+=1){if(o.reset(),Y=1,h[f].n)c=0,u+=e.yOffset,u+=V?1:0,v=U,V=!1,this._hasMaskedPath&&(m=j,d=K,A=_[m].points,y=A[d-1],p=A[d],k=p.partialLength,E=0),ae="",re="",Q="",fe="",se=this.defaultPropsArray;else{if(this._hasMaskedPath){if(G!==h[f].line){switch(e.j){case 1:v+=T-e.lineWidths[h[f].line];break;case 2:v+=(T-e.lineWidths[h[f].line])/2;break}G=h[f].line}q!==h[f].ind&&(h[q]&&(v+=h[q].extra),v+=h[f].an/2,q=h[f].ind),v+=r[0]*h[f].an*.005;var Ce=0;for(S=0;S<C;S+=1)P=i[S].a,P.p.propType&&(I=i[S].s,w=I.getMult(h[f].anIndexes[S],a.a[S].s.totalChars),w.length?Ce+=P.p.v[0]*w[0]:Ce+=P.p.v[0]*w),P.a.propType&&(I=i[S].s,w=I.getMult(h[f].anIndexes[S],a.a[S].s.totalChars),w.length?Ce+=P.a.v[0]*w[0]:Ce+=P.a.v[0]*w);for(b=!0,this._pathData.a.v&&(v=h[0].an*.5+(T-this._pathData.f.v-h[0].an*.5-h[h.length-1].an*.5)*q/(x-1),v+=this._pathData.f.v);b;)E+k>=v+Ce||!A?(F=(v+Ce-E)/p.partialLength,D=y.point[0]+(p.point[0]-y.point[0])*F,$=y.point[1]+(p.point[1]-y.point[1])*F,o.translate(-r[0]*h[f].an*.005,-(r[1]*H)*.01),b=!1):A&&(E+=p.partialLength,d+=1,d>=A.length&&(d=0,m+=1,_[m]?A=_[m].points:B.v.c?(d=0,m=0,A=_[m].points):(E-=p.partialLength,A=null)),A&&(y=p,p=A[d],k=p.partialLength));O=h[f].an/2-h[f].add,o.translate(-O,0,0)}else O=h[f].an/2-h[f].add,o.translate(-O,0,0),o.translate(-r[0]*h[f].an*.005,-r[1]*H*.01,0);for(S=0;S<C;S+=1)P=i[S].a,P.t.propType&&(I=i[S].s,w=I.getMult(h[f].anIndexes[S],a.a[S].s.totalChars),(c!==0||e.j!==0)&&(this._hasMaskedPath?w.length?v+=P.t.v*w[0]:v+=P.t.v*w:w.length?c+=P.t.v*w[0]:c+=P.t.v*w));for(e.strokeWidthAnim&&(ee=e.sw||0),e.strokeColorAnim&&(e.sc?J=[e.sc[0],e.sc[1],e.sc[2]]:J=[0,0,0]),e.fillColorAnim&&e.fc&&(Z=[e.fc[0],e.fc[1],e.fc[2]]),S=0;S<C;S+=1)P=i[S].a,P.a.propType&&(I=i[S].s,w=I.getMult(h[f].anIndexes[S],a.a[S].s.totalChars),w.length?o.translate(-P.a.v[0]*w[0],-P.a.v[1]*w[1],P.a.v[2]*w[2]):o.translate(-P.a.v[0]*w,-P.a.v[1]*w,P.a.v[2]*w));for(S=0;S<C;S+=1)P=i[S].a,P.s.propType&&(I=i[S].s,w=I.getMult(h[f].anIndexes[S],a.a[S].s.totalChars),w.length?o.scale(1+(P.s.v[0]-1)*w[0],1+(P.s.v[1]-1)*w[1],1):o.scale(1+(P.s.v[0]-1)*w,1+(P.s.v[1]-1)*w,1));for(S=0;S<C;S+=1){if(P=i[S].a,I=i[S].s,w=I.getMult(h[f].anIndexes[S],a.a[S].s.totalChars),P.sk.propType&&(w.length?o.skewFromAxis(-P.sk.v*w[0],P.sa.v*w[1]):o.skewFromAxis(-P.sk.v*w,P.sa.v*w)),P.r.propType&&(w.length?o.rotateZ(-P.r.v*w[2]):o.rotateZ(-P.r.v*w)),P.ry.propType&&(w.length?o.rotateY(P.ry.v*w[1]):o.rotateY(P.ry.v*w)),P.rx.propType&&(w.length?o.rotateX(P.rx.v*w[0]):o.rotateX(P.rx.v*w)),P.o.propType&&(w.length?Y+=(P.o.v*w[0]-Y)*w[0]:Y+=(P.o.v*w-Y)*w),e.strokeWidthAnim&&P.sw.propType&&(w.length?ee+=P.sw.v*w[0]:ee+=P.sw.v*w),e.strokeColorAnim&&P.sc.propType)for(W=0;W<3;W+=1)w.length?J[W]+=(P.sc.v[W]-J[W])*w[0]:J[W]+=(P.sc.v[W]-J[W])*w;if(e.fillColorAnim&&e.fc){if(P.fc.propType)for(W=0;W<3;W+=1)w.length?Z[W]+=(P.fc.v[W]-Z[W])*w[0]:Z[W]+=(P.fc.v[W]-Z[W])*w;P.fh.propType&&(w.length?Z=addHueToRGB(Z,P.fh.v*w[0]):Z=addHueToRGB(Z,P.fh.v*w)),P.fs.propType&&(w.length?Z=addSaturationToRGB(Z,P.fs.v*w[0]):Z=addSaturationToRGB(Z,P.fs.v*w)),P.fb.propType&&(w.length?Z=addBrightnessToRGB(Z,P.fb.v*w[0]):Z=addBrightnessToRGB(Z,P.fb.v*w))}}for(S=0;S<C;S+=1)P=i[S].a,P.p.propType&&(I=i[S].s,w=I.getMult(h[f].anIndexes[S],a.a[S].s.totalChars),this._hasMaskedPath?w.length?o.translate(0,P.p.v[1]*w[0],-P.p.v[2]*w[1]):o.translate(0,P.p.v[1]*w,-P.p.v[2]*w):w.length?o.translate(P.p.v[0]*w[0],P.p.v[1]*w[1],-P.p.v[2]*w[2]):o.translate(P.p.v[0]*w,P.p.v[1]*w,-P.p.v[2]*w));if(e.strokeWidthAnim&&(Q=ee<0?0:ee),e.strokeColorAnim&&(te="rgb("+Math.round(J[0]*255)+","+Math.round(J[1]*255)+","+Math.round(J[2]*255)+")"),e.fillColorAnim&&e.fc&&(re="rgb("+Math.round(Z[0]*255)+","+Math.round(Z[1]*255)+","+Math.round(Z[2]*255)+")"),this._hasMaskedPath){if(o.translate(0,-e.ls),o.translate(0,r[1]*H*.01+u,0),this._pathData.p.v){M=(p.point[1]-y.point[1])/(p.point[0]-y.point[0]);var Ie=Math.atan(M)*180/Math.PI;p.point[0]<y.point[0]&&(Ie+=180),o.rotate(-Ie*Math.PI/180)}o.translate(D,$,0),v-=r[0]*h[f].an*.005,h[f+1]&&q!==h[f+1].ind&&(v+=h[f].an/2,v+=e.tr*.001*e.finalSize)}else{switch(o.translate(c,u,0),e.ps&&o.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:o.translate(h[f].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[h[f].line]),0,0);break;case 2:o.translate(h[f].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[h[f].line])/2,0,0);break}o.translate(0,-e.ls),o.translate(O,0,0),o.translate(r[0]*h[f].an*.005,r[1]*H*.01,0),c+=h[f].l+e.tr*.001*e.finalSize}s==="html"?ae=o.toCSS():s==="svg"?ae=o.to2dCSS():se=[o.props[0],o.props[1],o.props[2],o.props[3],o.props[4],o.props[5],o.props[6],o.props[7],o.props[8],o.props[9],o.props[10],o.props[11],o.props[12],o.props[13],o.props[14],o.props[15]],fe=Y}l<=f?(N=new LetterProps(fe,Q,te,re,ae,se),this.renderedLetters.push(N),l+=1,this.lettersChangedFlag=!0):(N=this.renderedLetters[f],this.lettersChangedFlag=N.update(fe,Q,te,re,ae,se)||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(e,n,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,n,r),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,n,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,n){var r,i=n.length,a,o="";for(r=0;r<i;r+=1)n[r].ty==="sh"&&(a=n[r].ks.k,o+=buildShapeString(a,a.i.length,!0,e));return o},ITextElement.prototype.updateDocumentData=function(e,n){this.textProperty.updateDocumentData(e,n)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,n,r,i,a){switch(e.ps&&n.translate(e.ps[0],e.ps[1]+e.ascent,0),n.translate(0,-e.ls,0),e.j){case 1:n.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r]),0,0);break;case 2:n.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r])/2,0,0);break}n.translate(i,a,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[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(e,n,r){this.textSpans=[],this.renderType="svg",this.initElement(e,n,r)}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(e){for(var n=0,r=e.length,i=[],a="";n<r;)e[n]===String.fromCharCode(13)||e[n]===String.fromCharCode(3)?(i.push(a),a=""):a+=e[n],n+=1;return i.push(a),i},SVGTextLottieElement.prototype.buildShapeData=function(e,n){if(e.shapes&&e.shapes.length){var r=e.shapes[0];if(r.it){var i=r.it[r.it.length-1];i.s&&(i.s.k[0]=n,i.s.k[1]=n)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,n,r=this.textProperty.currentData;this.renderedLetters=createSizedArray(r?r.l.length:0),r.fc?this.layerElement.setAttribute("fill",this.buildColor(r.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),r.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(r.sc)),this.layerElement.setAttribute("stroke-width",r.sw)),this.layerElement.setAttribute("font-size",r.finalSize);var i=this.globalData.fontManager.getFontByName(r.f);if(i.fClass)this.layerElement.setAttribute("class",i.fClass);else{this.layerElement.setAttribute("font-family",i.fFamily);var a=r.fWeight,o=r.fStyle;this.layerElement.setAttribute("font-style",o),this.layerElement.setAttribute("font-weight",a)}this.layerElement.setAttribute("aria-label",r.t);var s=r.l||[],l=!!this.globalData.fontManager.chars;n=s.length;var c,u=this.mHelper,f="",x=this.data.singleShape,h=0,g=0,v=!0,p=r.tr*.001*r.finalSize;if(x&&!l&&!r.sz){var E=this.textContainer,b="start";switch(r.j){case 1:b="end";break;case 2:b="middle";break;default:b="start";break}E.setAttribute("text-anchor",b),E.setAttribute("letter-spacing",p);var d=this.buildTextContents(r.finalText);for(n=d.length,g=r.ps?r.ps[1]+r.ascent:0,e=0;e<n;e+=1)c=this.textSpans[e].span||createNS("tspan"),c.textContent=d[e],c.setAttribute("x",0),c.setAttribute("y",g),c.style.display="inherit",E.appendChild(c),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=c,g+=r.finalLineHeight;this.layerElement.appendChild(E)}else{var m=this.textSpans.length,y;for(e=0;e<n;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!l||!x||e===0){if(c=m>e?this.textSpans[e].span:createNS(l?"g":"text"),m<=e){if(c.setAttribute("stroke-linecap","butt"),c.setAttribute("stroke-linejoin","round"),c.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=c,l){var A=createNS("g");c.appendChild(A),this.textSpans[e].childSpan=A}this.textSpans[e].span=c,this.layerElement.appendChild(c)}c.style.display="inherit"}if(u.reset(),x&&(s[e].n&&(h=-p,g+=r.yOffset,g+=v?1:0,v=!1),this.applyTextPropertiesToMatrix(r,u,s[e].line,h,g),h+=s[e].l||0,h+=p),l){y=this.globalData.fontManager.getCharData(r.finalText[e],i.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily);var _;if(y.t===1)_=new SVGCompElement(y.data,this.globalData,this);else{var k=emptyShapeData;y.data&&y.data.shapes&&(k=this.buildShapeData(y.data,r.finalSize)),_=new SVGShapeElement(k,this.globalData,this)}if(this.textSpans[e].glyph){var T=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(T.layerElement),T.destroy()}this.textSpans[e].glyph=_,_._debug=!0,_.prepareFrame(0),_.renderFrame(),this.textSpans[e].childSpan.appendChild(_.layerElement),y.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else x&&c.setAttribute("transform","translate("+u.props[12]+","+u.props[13]+")"),c.textContent=s[e].val,c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}x&&c&&c.setAttribute("d",f)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=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 e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,n=this.textSpans.length,r;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<n;e+=1)r=this.textSpans[e].glyph,r&&(r.prepareFrame(this.comp.renderedFrame-this.data.st),r._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 e,n,r=this.textAnimator.renderedLetters,i=this.textProperty.currentData.l;n=i.length;var a,o,s;for(e=0;e<n;e+=1)i[e].n||(a=r[e],o=this.textSpans[e].span,s=this.textSpans[e].glyph,s&&s.renderFrame(),a._mdf.m&&o.setAttribute("transform",a.m),a._mdf.o&&o.setAttribute("opacity",a.o),a._mdf.sw&&o.setAttribute("stroke-width",a.sw),a._mdf.sc&&o.setAttribute("stroke",a.sc),a._mdf.fc&&o.setAttribute("fill",a.fc))}};function ISolidElement(e,n,r){this.initElement(e,n,r)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)};function NullElement(e,n,r){this.initFrame(),this.initBaseData(e,n,r),this.initFrame(),this.initTransform(e,n,r),this.initHierarchy()}NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!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(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){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 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.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 n=this.globalData.defs;this.setupGlobalData(e,n),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var r=createNS("clipPath"),i=createNS("rect");i.setAttribute("width",e.w),i.setAttribute("height",e.h),i.setAttribute("x",0),i.setAttribute("y",0);var a=createElementID();r.setAttribute("id",a),r.appendChild(i),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+a+")"),n.appendChild(r),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,n=this.layers?this.layers.length:0;for(e=0;e<n;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var n=0,r=this.layers.length;for(n=0;n<r;n+=1)if(this.layers[n].ind===e)return n;return-1},SVGRendererBase.prototype.buildItem=function(e){var n=this.elements;if(!(n[e]||this.layers[e].ty===99)){n[e]=!0;var r=this.createItem(this.layers[e]);if(n[e]=r,getExpressionsPlugin()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,e),this.layers[e].tt){var i="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(i===-1)return;if(!this.elements[i]||this.elements[i]===!0)this.buildItem(i),this.addPendingElement(r);else{var a=n[i],o=a.getMatte(this.layers[e].tt);r.setMatte(o)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var n=0,r=this.elements.length;n<r;){if(this.elements[n]===e){var i="tp"in e.data?this.findIndexByInd(e.data.tp):n-1,a=this.elements[i],o=a.getMatte(this.layers[n].tt);e.setMatte(o);break}n+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var n,r=this.layers.length;for(this.completeLayers||this.checkLayers(e),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].prepareFrame(e-this.layers[n].st);if(this.globalData._mdf)for(n=0;n<r;n+=1)(this.completeLayers||this.elements[n])&&this.elements[n].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,n){var r=e.getBaseElement();if(r){for(var i=0,a;i<n;)this.elements[i]&&this.elements[i]!==!0&&this.elements[i].getBaseElement()&&(a=this.elements[i].getBaseElement()),i+=1;a?this.layerElement.insertBefore(r,a):this.layerElement.appendChild(r)}},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(e,n,r){this.initFrame(),this.initBaseData(e,n,r),this.initTransform(e,n,r),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!n.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var n=this.tm.v;n===this.data.op&&(n=this.data.op-1),this.renderedFrame=n}var r,i=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&(this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st),this.elements[r]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,n=this.layers.length;for(e=0;e<n;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,n=this.layers.length;for(e=0;e<n;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(e,n,r){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,n,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,n.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function SVGRenderer(e,n){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(n&&n.title){var i=createNS("title"),a=createElementID();i.setAttribute("id",a),i.textContent=n.title,this.svgElement.appendChild(i),r+=a}if(n&&n.description){var o=createNS("desc"),s=createElementID();o.setAttribute("id",s),o.textContent=n.description,this.svgElement.appendChild(o),r+=" "+s}r&&this.svgElement.setAttribute("aria-labelledby",r);var l=createNS("defs");this.svgElement.appendChild(l);var c=createNS("g");this.svgElement.appendChild(c),this.layerElement=c,this.renderConfig={preserveAspectRatio:n&&n.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:n&&n.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:n&&n.contentVisibility||"visible",progressiveLoad:n&&n.progressiveLoad||!1,hideOnTransparent:!(n&&n.hideOnTransparent===!1),viewBoxOnly:n&&n.viewBoxOnly||!1,viewBoxSize:n&&n.viewBoxSize||!1,className:n&&n.className||"",id:n&&n.id||"",focusable:n&&n.focusable,filterSize:{width:n&&n.filterSize&&n.filterSize.width||"100%",height:n&&n.filterSize&&n.filterSize.height||"100%",x:n&&n.filterSize&&n.filterSize.x||"0%",y:n&&n.filterSize&&n.filterSize.y||"0%"},width:n&&n.width,height:n&&n.height,runExpressions:!n||n.runExpressions===void 0||n.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:l,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(n){var r,i=n.length,a="_";for(r=0;r<i;r+=1)a+=n[r].transform.key+"_";var o=this.sequences[a];return o||(o={transforms:[].concat(n),finalTransform:new Matrix,_mdf:!1},this.sequences[a]=o,this.sequenceList.push(o)),o},processSequence:function(n,r){for(var i=0,a=n.transforms.length,o=r;i<a&&!r;){if(n.transforms[i].transform.mProps._mdf){o=!0;break}i+=1}if(o)for(n.finalTransform.reset(),i=a-1;i>=0;i-=1)n.finalTransform.multiply(n.transforms[i].transform.mProps.v);n._mdf=o},processSequences:function(n){var r,i=this.sequenceList.length;for(r=0;r<i;r+=1)this.processSequence(this.sequenceList[r],n)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var n="__lottie_element_luma_buffer",r=null,i=null,a=null;function o(){var c=createNS("svg"),u=createNS("filter"),f=createNS("feColorMatrix");return u.setAttribute("id",n),f.setAttribute("type","matrix"),f.setAttribute("color-interpolation-filters","sRGB"),f.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"),u.appendChild(f),c.appendChild(u),c.setAttribute("id",n+"_svg"),featureSupport.svgLumaHidden&&(c.style.display="none"),c}function s(){r||(a=o(),document.body.appendChild(a),r=createTag("canvas"),i=r.getContext("2d"),i.filter="url(#"+n+")",i.fillStyle="rgba(0,0,0,0)",i.fillRect(0,0,1,1))}function l(c){return r||s(),r.width=c.width,r.height=c.height,i.filter="url(#"+n+")",r}return{load:s,get:l}};function createCanvas(e,n){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,n);var r=createTag("canvas");return r.width=e,r.height=n,r}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(e){var n,r=e.data.ef?e.data.ef.length:0;this.filters=[];var i;for(n=0;n<r;n+=1){i=null;var a=e.data.ef[n].ty;if(registeredEffects[a]){var o=registeredEffects[a].effect;i=new o(e.effectsManager.effectElements[n],e)}i&&this.filters.push(i)}this.filters.length&&e.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(e){var n,r=this.filters.length;for(n=0;n<r;n+=1)this.filters[n].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var n,r=this.filters.length,i=[];for(n=0;n<r;n+=1)this.filters[n].type===e&&i.push(this.filters[n]);return i};function registerEffect(e,n){registeredEffects[e]={effect:n}}function CVMaskElement(e,n){this.data=e,this.element=n,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var r,i=this.masksProperties.length,a=!1;for(r=0;r<i;r+=1)this.masksProperties[r].mode!=="n"&&(a=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=a,a&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e=this.element.finalTransform.mat,n=this.element.canvasContext,r,i=this.masksProperties.length,a,o,s;for(n.beginPath(),r=0;r<i;r+=1)if(this.masksProperties[r].mode!=="n"){this.masksProperties[r].inv&&(n.moveTo(0,0),n.lineTo(this.element.globalData.compSize.w,0),n.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),n.lineTo(0,this.element.globalData.compSize.h),n.lineTo(0,0)),s=this.viewData[r].v,a=e.applyToPointArray(s.v[0][0],s.v[0][1],0),n.moveTo(a[0],a[1]);var l,c=s._length;for(l=1;l<c;l+=1)o=e.applyToTriplePoints(s.o[l-1],s.i[l],s.v[l]),n.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5]);o=e.applyToTriplePoints(s.o[l-1],s.i[0],s.v[0]),n.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5])}this.element.globalData.renderer.save(!0),n.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 n=this.globalData.canvasContext,r=assetLoader.createCanvas(n.canvas.width,n.canvas.height);this.buffers.push(r);var i=assetLoader.createCanvas(n.canvas.width,n.canvas.height);this.buffers.push(i),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 n=this.globalData;if(n.blendMode!==this.data.bm){n.blendMode=this.data.bm;var r=getBlendMode(this.data.bm);n.canvasContext.globalCompositeOperation=r}},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(n){n.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 n=this.buffers[0],r=n.getContext("2d");this.clearCanvas(r),r.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 n=this.buffers[1],r=n.getContext("2d");this.clearCanvas(r),r.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 i=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(i.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var a=assetLoader.getLumaCanvas(this.canvasContext.canvas),o=a.getContext("2d");o.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(a,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(n,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(n){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!n)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var r=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(r),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(r),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(e,n,r,i){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var a=4;n.ty==="rc"?a=5:n.ty==="el"?a=6:n.ty==="sr"&&(a=7),this.sh=ShapePropertyFactory.getShapeProp(e,n,a,e);var o,s=r.length,l;for(o=0;o<s;o+=1)r[o].closed||(l={transforms:i.addTransformSequence(r[o].transforms),trNodes:[]},this.styledShapes.push(l),r[o].elements.push(l))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(e,n,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,n,r)}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(e,n){var r={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(n),transforms:[],elements:[],closed:e.hd===!0},i={};if(e.ty==="fl"||e.ty==="st"?(i.c=PropertyFactory.getProp(this,e.c,1,255,this),i.c.k||(r.co="rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")")):(e.ty==="gf"||e.ty==="gs")&&(i.s=PropertyFactory.getProp(this,e.s,1,null,this),i.e=PropertyFactory.getProp(this,e.e,1,null,this),i.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),i.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),i.g=new GradientProperty(this,e.g,this)),i.o=PropertyFactory.getProp(this,e.o,0,.01,this),e.ty==="st"||e.ty==="gs"){if(r.lc=lineCapEnum[e.lc||2],r.lj=lineJoinEnum[e.lj||2],e.lj==1&&(r.ml=e.ml),i.w=PropertyFactory.getProp(this,e.w,0,null,this),i.w.k||(r.wi=i.w.v),e.d){var a=new DashProperty(this,e.d,"canvas",this);i.d=a,i.d.k||(r.da=i.d.dashArray,r.do=i.d.dashoffset[0])}}else r.r=e.r===2?"evenodd":"nonzero";return this.stylesList.push(r),i.style=r,i},CVShapeElement.prototype.createGroupElement=function(){var e={it:[],prevViewData:[]};return e},CVShapeElement.prototype.createTransformElement=function(e){var n={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}};return n},CVShapeElement.prototype.createShapeElement=function(e){var n=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(n),this.addShapeToModifiers(n),n},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,n=this.itemsData.length;for(e=0;e<n;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),n=this.dynamicProperties.length,e=0;e<n;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var n,r=this.stylesList.length;for(n=0;n<r;n+=1)this.stylesList[n].closed||this.stylesList[n].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,n=this.stylesList.length;for(e=0;e<n;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var n,r=e.length;for(n=0;n<r;n+=1)e[n].closed=!0},CVShapeElement.prototype.searchShapes=function(e,n,r,i,a){var o,s=e.length-1,l,c,u=[],f=[],x,h,g,v=[].concat(a);for(o=s;o>=0;o-=1){if(x=this.searchProcessedElement(e[o]),x?n[o]=r[x-1]:e[o]._shouldRender=i,e[o].ty==="fl"||e[o].ty==="st"||e[o].ty==="gf"||e[o].ty==="gs")x?n[o].style.closed=!1:n[o]=this.createStyleElement(e[o],v),u.push(n[o].style);else if(e[o].ty==="gr"){if(!x)n[o]=this.createGroupElement(e[o]);else for(c=n[o].it.length,l=0;l<c;l+=1)n[o].prevViewData[l]=n[o].it[l];this.searchShapes(e[o].it,n[o].it,n[o].prevViewData,i,v)}else e[o].ty==="tr"?(x||(g=this.createTransformElement(e[o]),n[o]=g),v.push(n[o]),this.addTransformToStyleList(n[o])):e[o].ty==="sh"||e[o].ty==="rc"||e[o].ty==="el"||e[o].ty==="sr"?x||(n[o]=this.createShapeElement(e[o])):e[o].ty==="tm"||e[o].ty==="rd"||e[o].ty==="pb"||e[o].ty==="zz"||e[o].ty==="op"?(x?(h=n[o],h.closed=!1):(h=ShapeModifiers.getModifier(e[o].ty),h.init(this,e[o]),n[o]=h,this.shapeModifiers.push(h)),f.push(h)):e[o].ty==="rp"&&(x?(h=n[o],h.closed=!0):(h=ShapeModifiers.getModifier(e[o].ty),n[o]=h,h.init(this,e,o,n),this.shapeModifiers.push(h),i=!1),f.push(h));this.addProcessedElement(e[o],o+1)}for(this.removeTransformFromStyleList(),this.closeStyles(u),s=f.length,o=0;o<s;o+=1)f[o].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(e,n){(e._opMdf||n.op._mdf||this._isFirstFrame)&&(n.opacity=e.opacity,n.opacity*=n.op.v,n._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,n=this.stylesList.length,r,i,a,o,s,l,c=this.globalData.renderer,u=this.globalData.canvasContext,f,x;for(e=0;e<n;e+=1)if(x=this.stylesList[e],f=x.type,!((f==="st"||f==="gs")&&x.wi===0||!x.data._shouldRender||x.coOp===0||this.globalData.currentGlobalAlpha===0)){for(c.save(),s=x.elements,f==="st"||f==="gs"?(c.ctxStrokeStyle(f==="st"?x.co:x.grd),c.ctxLineWidth(x.wi),c.ctxLineCap(x.lc),c.ctxLineJoin(x.lj),c.ctxMiterLimit(x.ml||0)):c.ctxFillStyle(f==="fl"?x.co:x.grd),c.ctxOpacity(x.coOp),f!=="st"&&f!=="gs"&&u.beginPath(),c.ctxTransform(x.preTransforms.finalTransform.props),i=s.length,r=0;r<i;r+=1){for((f==="st"||f==="gs")&&(u.beginPath(),x.da&&(u.setLineDash(x.da),u.lineDashOffset=x.do)),l=s[r].trNodes,o=l.length,a=0;a<o;a+=1)l[a].t==="m"?u.moveTo(l[a].p[0],l[a].p[1]):l[a].t==="c"?u.bezierCurveTo(l[a].pts[0],l[a].pts[1],l[a].pts[2],l[a].pts[3],l[a].pts[4],l[a].pts[5]):u.closePath();(f==="st"||f==="gs")&&(c.ctxStroke(),x.da&&u.setLineDash(this.dashResetter))}f!=="st"&&f!=="gs"&&this.globalData.renderer.ctxFill(x.r),c.restore()}},CVShapeElement.prototype.renderShape=function(e,n,r,i){var a,o=n.length-1,s;for(s=e,a=o;a>=0;a-=1)n[a].ty==="tr"?(s=r[a].transform,this.renderShapeTransform(e,s)):n[a].ty==="sh"||n[a].ty==="el"||n[a].ty==="rc"||n[a].ty==="sr"?this.renderPath(n[a],r[a]):n[a].ty==="fl"?this.renderFill(n[a],r[a],s):n[a].ty==="st"?this.renderStroke(n[a],r[a],s):n[a].ty==="gf"||n[a].ty==="gs"?this.renderGradientFill(n[a],r[a],s):n[a].ty==="gr"?this.renderShape(s,n[a].it,r[a].it):n[a].ty;i&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,n){if(this._isFirstFrame||n._mdf||e.transforms._mdf){var r=e.trNodes,i=n.paths,a,o,s,l=i._length;r.length=0;var c=e.transforms.finalTransform;for(s=0;s<l;s+=1){var u=i.shapes[s];if(u&&u.v){for(o=u._length,a=1;a<o;a+=1)a===1&&r.push({t:"m",p:c.applyToPointArray(u.v[0][0],u.v[0][1],0)}),r.push({t:"c",pts:c.applyToTriplePoints(u.o[a-1],u.i[a],u.v[a])});o===1&&r.push({t:"m",p:c.applyToPointArray(u.v[0][0],u.v[0][1],0)}),u.c&&o&&(r.push({t:"c",pts:c.applyToTriplePoints(u.o[a-1],u.i[0],u.v[0])}),r.push({t:"z"}))}}e.trNodes=r}},CVShapeElement.prototype.renderPath=function(e,n){if(e.hd!==!0&&e._shouldRender){var r,i=n.styledShapes.length;for(r=0;r<i;r+=1)this.renderStyledShape(n.styledShapes[r],n.sh)}},CVShapeElement.prototype.renderFill=function(e,n,r){var i=n.style;(n.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(n.c.v[0])+","+bmFloor(n.c.v[1])+","+bmFloor(n.c.v[2])+")"),(n.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=n.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,n,r){var i=n.style,a;if(!i.grd||n.g._mdf||n.s._mdf||n.e._mdf||e.t!==1&&(n.h._mdf||n.a._mdf)){var o=this.globalData.canvasContext,s=n.s.v,l=n.e.v;if(e.t===1)a=o.createLinearGradient(s[0],s[1],l[0],l[1]);else{var c=Math.sqrt(Math.pow(s[0]-l[0],2)+Math.pow(s[1]-l[1],2)),u=Math.atan2(l[1]-s[1],l[0]-s[0]),f=n.h.v;f>=1?f=.99:f<=-1&&(f=-.99);var x=c*f,h=Math.cos(u+n.a.v)*x+s[0],g=Math.sin(u+n.a.v)*x+s[1];a=o.createRadialGradient(h,g,0,s[0],s[1],c)}var v,p=e.g.p,E=n.g.c,b=1;for(v=0;v<p;v+=1)n.g._hasOpacity&&n.g._collapsable&&(b=n.g.o[v*2+1]),a.addColorStop(E[v*4]/100,"rgba("+E[v*4+1]+","+E[v*4+2]+","+E[v*4+3]+","+b+")");i.grd=a}i.coOp=n.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(e,n,r){var i=n.style,a=n.d;a&&(a._mdf||this._isFirstFrame)&&(i.da=a.dashArray,i.do=a.dashoffset[0]),(n.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(n.c.v[0])+","+bmFloor(n.c.v[1])+","+bmFloor(n.c.v[2])+")"),(n.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=n.o.v*r.opacity),(n.w._mdf||this._isFirstFrame)&&(i.wi=n.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(e,n,r){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(e,n,r)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var n=!1;e.fc?(n=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=n;var r=!1;e.sc&&(r=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var i=this.globalData.fontManager.getFontByName(e.f),a,o,s=e.l,l=this.mHelper;this.stroke=r,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,o=e.finalText.length;var c,u,f,x,h,g,v,p,E,b,d=this.data.singleShape,m=e.tr*.001*e.finalSize,y=0,A=0,_=!0,k=0;for(a=0;a<o;a+=1){c=this.globalData.fontManager.getCharData(e.finalText[a],i.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),u=c&&c.data||{},l.reset(),d&&s[a].n&&(y=-m,A+=e.yOffset,A+=_?1:0,_=!1),h=u.shapes?u.shapes[0].it:[],v=h.length,l.scale(e.finalSize/100,e.finalSize/100),d&&this.applyTextPropertiesToMatrix(e,l,s[a].line,y,A),E=createSizedArray(v-1);var T=0;for(g=0;g<v;g+=1)if(h[g].ty==="sh"){for(x=h[g].ks.k.i.length,p=h[g].ks.k,b=[],f=1;f<x;f+=1)f===1&&b.push(l.applyToX(p.v[0][0],p.v[0][1],0),l.applyToY(p.v[0][0],p.v[0][1],0)),b.push(l.applyToX(p.o[f-1][0],p.o[f-1][1],0),l.applyToY(p.o[f-1][0],p.o[f-1][1],0),l.applyToX(p.i[f][0],p.i[f][1],0),l.applyToY(p.i[f][0],p.i[f][1],0),l.applyToX(p.v[f][0],p.v[f][1],0),l.applyToY(p.v[f][0],p.v[f][1],0));b.push(l.applyToX(p.o[f-1][0],p.o[f-1][1],0),l.applyToY(p.o[f-1][0],p.o[f-1][1],0),l.applyToX(p.i[0][0],p.i[0][1],0),l.applyToY(p.i[0][0],p.i[0][1],0),l.applyToX(p.v[0][0],p.v[0][1],0),l.applyToY(p.v[0][0],p.v[0][1],0)),E[T]=b,T+=1}d&&(y+=s[a].l,y+=m),this.textSpans[k]?this.textSpans[k].elem=E:this.textSpans[k]={elem:E},k+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var e=this.canvasContext;e.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 n,r,i,a,o,s,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;r=c.length;var u,f=null,x=null,h=null,g,v,p=this.globalData.renderer;for(n=0;n<r;n+=1)if(!c[n].n){if(u=l[n],u&&(p.save(),p.ctxTransform(u.p),p.ctxOpacity(u.o)),this.fill){for(u&&u.fc?f!==u.fc&&(p.ctxFillStyle(u.fc),f=u.fc):f!==this.values.fill&&(f=this.values.fill,p.ctxFillStyle(this.values.fill)),g=this.textSpans[n].elem,a=g.length,this.globalData.canvasContext.beginPath(),i=0;i<a;i+=1)for(v=g[i],s=v.length,this.globalData.canvasContext.moveTo(v[0],v[1]),o=2;o<s;o+=6)this.globalData.canvasContext.bezierCurveTo(v[o],v[o+1],v[o+2],v[o+3],v[o+4],v[o+5]);this.globalData.canvasContext.closePath(),p.ctxFill()}if(this.stroke){for(u&&u.sw?h!==u.sw&&(h=u.sw,p.ctxLineWidth(u.sw)):h!==this.values.sWidth&&(h=this.values.sWidth,p.ctxLineWidth(this.values.sWidth)),u&&u.sc?x!==u.sc&&(x=u.sc,p.ctxStrokeStyle(u.sc)):x!==this.values.stroke&&(x=this.values.stroke,p.ctxStrokeStyle(this.values.stroke)),g=this.textSpans[n].elem,a=g.length,this.globalData.canvasContext.beginPath(),i=0;i<a;i+=1)for(v=g[i],s=v.length,this.globalData.canvasContext.moveTo(v[0],v[1]),o=2;o<s;o+=6)this.globalData.canvasContext.bezierCurveTo(v[o],v[o+1],v[o+2],v[o+3],v[o+4],v[o+5]);this.globalData.canvasContext.closePath(),p.ctxStroke()}u&&this.globalData.renderer.restore()}};function CVImageElement(e,n,r){this.assetData=n.getAssetData(e.refId),this.img=n.imageLoader.getAsset(this.assetData),this.initElement(e,n,r)}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 e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var n=e.getContext("2d"),r=this.img.width,i=this.img.height,a=r/i,o=this.assetData.w/this.assetData.h,s,l,c=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;a>o&&c==="xMidYMid slice"||a<o&&c!=="xMidYMid slice"?(l=i,s=l*o):(s=r,l=s/o),n.drawImage(this.img,(r-s)/2,(i-l)/2,s,l,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(e,n,r){this.initElement(e,n,r)}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(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){e[0]===1&&e[1]===0&&e[4]===0&&e[5]===1&&e[12]===0&&e[13]===0||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,n,r,i){this.canvasContext.fillRect(e,n,r,i)},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(e){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var n=this.animationItem.container.style;n.width="100%",n.height="100%";var r="0px 0px 0px";n.transformOrigin=r,n.mozTransformOrigin=r,n.webkitTransformOrigin=r,n["-webkit-transform"]=r,n.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=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,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(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,n){this.reset();var r,i;e?(r=e,i=n,this.canvasContext.canvas.width=r,this.canvasContext.canvas.height=i):(this.animationItem.wrapper&&this.animationItem.container?(r=this.animationItem.wrapper.offsetWidth,i=this.animationItem.wrapper.offsetHeight):(r=this.canvasContext.canvas.width,i=this.canvasContext.canvas.height),this.canvasContext.canvas.width=r*this.renderConfig.dpr,this.canvasContext.canvas.height=i*this.renderConfig.dpr);var a,o;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var s=this.renderConfig.preserveAspectRatio.split(" "),l=s[1]||"meet",c=s[0]||"xMidYMid",u=c.substr(0,4),f=c.substr(4);a=r/i,o=this.transformCanvas.w/this.transformCanvas.h,o>a&&l==="meet"||o<a&&l==="slice"?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=i/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.h/this.renderConfig.dpr)),u==="xMid"&&(o<a&&l==="meet"||o>a&&l==="slice")?this.transformCanvas.tx=(r-this.transformCanvas.w*(i/this.transformCanvas.h))/2*this.renderConfig.dpr:u==="xMax"&&(o<a&&l==="meet"||o>a&&l==="slice")?this.transformCanvas.tx=(r-this.transformCanvas.w*(i/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,f==="YMid"&&(o>a&&l==="meet"||o<a&&l==="slice")?this.transformCanvas.ty=(i-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:f==="YMax"&&(o>a&&l==="meet"||o<a&&l==="slice")?this.transformCanvas.ty=(i-this.transformCanvas.h*(r/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(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 e,n=this.layers?this.layers.length:0;for(e=n-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,n){if(!(this.renderedFrame===e&&this.renderConfig.clearCanvas===!0&&!n||this.destroyed||e===-1)){this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||n,this.globalData.projectInterface.currentFrame=e;var r,i=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(e-this.layers[r].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var n=this.elements;if(!(n[e]||this.layers[e].ty===99)){var r=this.createItem(this.layers[e],this,this.globalData);n[e]=r,r.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.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 e,n=15;for(e=0;e<n;e+=1){var r=new CanvasContext;this.stack[e]=r}this._length=n,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 e=this._length*2,n=0;for(n=this._length;n<e;n+=1)this.stack[n]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var n=this.stack[this.cArrPos],r=n.transform,i,a=this.cTr.props;for(i=0;i<16;i+=1)a[i]=r[i];if(e){this.nativeContext.restore();var o=this.stack[this.cArrPos+1];this.appliedFillStyle=o.fillStyle,this.appliedStrokeStyle=o.strokeStyle,this.appliedLineWidth=o.lineWidth,this.appliedLineCap=o.lineCap,this.appliedLineJoin=o.lineJoin,this.appliedMiterLimit=o.miterLimit}this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),(e||n.opacity!==-1&&this.currentOpacity!==n.opacity)&&(this.nativeContext.globalAlpha=n.opacity,this.currentOpacity=n.opacity),this.currentFillStyle=n.fillStyle,this.currentStrokeStyle=n.strokeStyle,this.currentLineWidth=n.lineWidth,this.currentLineCap=n.lineCap,this.currentLineJoin=n.lineJoin,this.currentMiterLimit=n.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var n=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var r=this.stack[this.cArrPos],i;for(i=0;i<16;i+=1)r.transform[i]=n[i];this.cArrPos+=1;var a=this.stack[this.cArrPos];a.opacity=r.opacity,a.fillStyle=r.fillStyle,a.strokeStyle=r.strokeStyle,a.lineWidth=r.lineWidth,a.lineCap=r.lineCap,a.lineJoin=r.lineJoin,a.miterLimit=r.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var n=this.cTr;this.transformMat.multiply(n),n.cloneFromProps(this.transformMat.props);var r=n.props;this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])},CVContextData.prototype.opacity=function(e){var n=this.stack[this.cArrPos].opacity;n*=e<0?0:e,this.stack[this.cArrPos].opacity!==n&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=n)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,n,r,i){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,n,r,i)},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(e,n,r){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,n,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,n.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e=this.canvasContext;e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip();var n,r=this.layers.length;for(n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].renderFrame()},CVCompElement.prototype.destroy=function(){var e,n=this.layers.length;for(e=n-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)};function CanvasRenderer(e,n){this.animationItem=e,this.renderConfig={clearCanvas:n&&n.clearCanvas!==void 0?n.clearCanvas:!0,context:n&&n.context||null,progressiveLoad:n&&n.progressiveLoad||!1,preserveAspectRatio:n&&n.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:n&&n.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:n&&n.contentVisibility||"visible",className:n&&n.className||"",id:n&&n.id||"",runExpressions:!n||n.runExpressions===void 0||n.runExpressions},this.renderConfig.dpr=n&&n.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=n&&n.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(e){return new CVCompElement(e,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 n=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var r=this.finalTransform.mat.toCSS();n.transform=r,n.webkitTransform=r}this.finalTransform._opMdf&&(n.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(e,n,r){this.initElement(e,n,r)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?(e=createNS("rect"),e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(e=createTag("div"),e.style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)};function HShapeElement(e,n,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,n,r),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 e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var n=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",n.w),e.setAttribute("height",n.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,n){var r,i=e.length;for(r=0;r<i;r+=1)n=e[r].mProps.v.applyToPointArray(n[0],n[1],0);return n},HShapeElement.prototype.calculateShapeBoundingBox=function(e,n){var r=e.sh.v,i=e.transformers,a,o=r._length,s,l,c,u;if(!(o<=1)){for(a=0;a<o-1;a+=1)s=this.getTransformedPoint(i,r.v[a]),l=this.getTransformedPoint(i,r.o[a]),c=this.getTransformedPoint(i,r.i[a+1]),u=this.getTransformedPoint(i,r.v[a+1]),this.checkBounds(s,l,c,u,n);r.c&&(s=this.getTransformedPoint(i,r.v[a]),l=this.getTransformedPoint(i,r.o[a]),c=this.getTransformedPoint(i,r.i[0]),u=this.getTransformedPoint(i,r.v[0]),this.checkBounds(s,l,c,u,n))}},HShapeElement.prototype.checkBounds=function(e,n,r,i,a){this.getBoundsOfCurve(e,n,r,i);var o=this.shapeBoundingBox;a.x=bmMin(o.left,a.x),a.xMax=bmMax(o.right,a.xMax),a.y=bmMin(o.top,a.y),a.yMax=bmMax(o.bottom,a.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(e,n,r,i){for(var a=[[e[0],i[0]],[e[1],i[1]]],o,s,l,c,u,f,x,h=0;h<2;++h)s=6*e[h]-12*n[h]+6*r[h],o=-3*e[h]+9*n[h]-9*r[h]+3*i[h],l=3*n[h]-3*e[h],s|=0,o|=0,l|=0,o===0&&s===0||(o===0?(c=-l/s,c>0&&c<1&&a[h].push(this.calculateF(c,e,n,r,i,h))):(u=s*s-4*l*o,u>=0&&(f=(-s+bmSqrt(u))/(2*o),f>0&&f<1&&a[h].push(this.calculateF(f,e,n,r,i,h)),x=(-s-bmSqrt(u))/(2*o),x>0&&x<1&&a[h].push(this.calculateF(x,e,n,r,i,h)))));this.shapeBoundingBox.left=bmMin.apply(null,a[0]),this.shapeBoundingBox.top=bmMin.apply(null,a[1]),this.shapeBoundingBox.right=bmMax.apply(null,a[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,a[1])},HShapeElement.prototype.calculateF=function(e,n,r,i,a,o){return bmPow(1-e,3)*n[o]+3*bmPow(1-e,2)*e*r[o]+3*(1-e)*bmPow(e,2)*i[o]+bmPow(e,3)*a[o]},HShapeElement.prototype.calculateBoundingBox=function(e,n){var r,i=e.length;for(r=0;r<i;r+=1)e[r]&&e[r].sh?this.calculateShapeBoundingBox(e[r],n):e[r]&&e[r].it?this.calculateBoundingBox(e[r].it,n):e[r]&&e[r].style&&e[r].w&&this.expandStrokeBoundingBox(e[r].w,n)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,n){var r=0;if(e.keyframes){for(var i=0;i<e.keyframes.length;i+=1){var a=e.keyframes[i].s;a>r&&(r=a)}r*=e.mult}else r=e.v*e.mult;n.x-=r,n.xMax+=r,n.y-=r,n.yMax+=r},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,n=999999;if(e.x=n,e.xMax=-n,e.y=n,e.yMax=-n,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var r=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),r=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),r=!0),r||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var i=this.shapeCont.style,a="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";i.transform=a,i.webkitTransform=a}}};function HTextElement(e,n,r){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,n,r)}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 e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var n=this.innerElem.style,r=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";n.fill=r,n.color=r,e.sc&&(n.stroke=this.buildColor(e.sc),n.strokeWidth=e.sw+"px");var i=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(n.fontSize=e.finalSize+"px",n.lineHeight=e.finalSize+"px",i.fClass)this.innerElem.className=i.fClass;else{n.fontFamily=i.fFamily;var a=e.fWeight,o=e.fStyle;n.fontStyle=o,n.fontWeight=a}var s,l,c=e.l;l=c.length;var u,f,x,h=this.mHelper,g,v="",p=0;for(s=0;s<l;s+=1){if(this.globalData.fontManager.chars?(this.textPaths[p]?u=this.textPaths[p]:(u=createNS("path"),u.setAttribute("stroke-linecap",lineCapEnum[1]),u.setAttribute("stroke-linejoin",lineJoinEnum[2]),u.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[p]?(f=this.textSpans[p],x=f.children[0]):(f=createTag("div"),f.style.lineHeight=0,x=createNS("svg"),x.appendChild(u),styleDiv(f)))):this.isMasked?u=this.textPaths[p]?this.textPaths[p]:createNS("text"):this.textSpans[p]?(f=this.textSpans[p],u=this.textPaths[p]):(f=createTag("span"),styleDiv(f),u=createTag("span"),styleDiv(u),f.appendChild(u)),this.globalData.fontManager.chars){var E=this.globalData.fontManager.getCharData(e.finalText[s],i.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),b;if(E?b=E.data:b=null,h.reset(),b&&b.shapes&&b.shapes.length&&(g=b.shapes[0].it,h.scale(e.finalSize/100,e.finalSize/100),v=this.createPathShape(h,g),u.setAttribute("d",v)),this.isMasked)this.innerElem.appendChild(u);else{if(this.innerElem.appendChild(f),b&&b.shapes){document.body.appendChild(x);var d=x.getBBox();x.setAttribute("width",d.width+2),x.setAttribute("height",d.height+2),x.setAttribute("viewBox",d.x-1+" "+(d.y-1)+" "+(d.width+2)+" "+(d.height+2));var m=x.style,y="translate("+(d.x-1)+"px,"+(d.y-1)+"px)";m.transform=y,m.webkitTransform=y,c[s].yOffset=d.y-1}else x.setAttribute("width",1),x.setAttribute("height",1);f.appendChild(x)}}else if(u.textContent=c[s].val,u.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(u);else{this.innerElem.appendChild(f);var A=u.style,_="translate3d(0,"+-e.finalSize/1.2+"px,0)";A.transform=_,A.webkitTransform=_}this.isMasked?this.textSpans[p]=u:this.textSpans[p]=f,this.textSpans[p].style.display="block",this.textPaths[p]=u,p+=1}for(;p<this.textSpans.length;)this.textSpans[p].style.display="none",p+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var e;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),e=this.svgElement.style;var n="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=n,e.webkitTransform=n}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var r,i,a=0,o=this.textAnimator.renderedLetters,s=this.textProperty.currentData.l;i=s.length;var l,c,u;for(r=0;r<i;r+=1)s[r].n?a+=1:(c=this.textSpans[r],u=this.textPaths[r],l=o[a],a+=1,l._mdf.m&&(this.isMasked?c.setAttribute("transform",l.m):(c.style.webkitTransform=l.m,c.style.transform=l.m)),c.style.opacity=l.o,l.sw&&l._mdf.sw&&u.setAttribute("stroke-width",l.sw),l.sc&&l._mdf.sc&&u.setAttribute("stroke",l.sc),l.fc&&l._mdf.fc&&(u.setAttribute("fill",l.fc),u.style.color=l.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var f=this.innerElem.getBBox();this.currentBBox.w!==f.width&&(this.currentBBox.w=f.width,this.svgElement.setAttribute("width",f.width)),this.currentBBox.h!==f.height&&(this.currentBBox.h=f.height,this.svgElement.setAttribute("height",f.height));var x=1;if(this.currentBBox.w!==f.width+x*2||this.currentBBox.h!==f.height+x*2||this.currentBBox.x!==f.x-x||this.currentBBox.y!==f.y-x){this.currentBBox.w=f.width+x*2,this.currentBBox.h=f.height+x*2,this.currentBBox.x=f.x-x,this.currentBBox.y=f.y-x,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var h="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=h,e.webkitTransform=h}}}};function HCameraElement(e,n,r){this.initFrame(),this.initBaseData(e,n,r),this.initHierarchy();var i=PropertyFactory.getProp;if(this.pe=i(this,e.pe,0,0,this),e.ks.p.s?(this.px=i(this,e.ks.p.x,1,0,this),this.py=i(this,e.ks.p.y,1,0,this),this.pz=i(this,e.ks.p.z,1,0,this)):this.p=i(this,e.ks.p,1,0,this),e.ks.a&&(this.a=i(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var a,o=e.ks.or.k.length;for(a=0;a<o;a+=1)e.ks.or.k[a].to=null,e.ks.or.k[a].ti=null}this.or=i(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=i(this,e.ks.rx,0,degToRads,this),this.ry=i(this,e.ks.ry,0,degToRads,this),this.rz=i(this,e.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 e,n=this.comp.threeDElements.length,r,i,a;for(e=0;e<n;e+=1)if(r=this.comp.threeDElements[e],r.type==="3d"){i=r.perspectiveElem.style,a=r.container.style;var o=this.pe.v+"px",s="0px 0px 0px",l="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";i.perspective=o,i.webkitPerspective=o,a.transformOrigin=s,a.mozTransformOrigin=s,a.webkitTransformOrigin=s,i.transform=l,i.webkitTransform=l}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e=this._isFirstFrame,n,r;if(this.hierarchy)for(r=this.hierarchy.length,n=0;n<r;n+=1)e=this.hierarchy[n].finalTransform.mProp._mdf||e;if(e||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(r=this.hierarchy.length-1,n=r;n>=0;n-=1){var i=this.hierarchy[n].finalTransform.mProp;this.mat.translate(-i.p.v[0],-i.p.v[1],i.p.v[2]),this.mat.rotateX(-i.or.v[0]).rotateY(-i.or.v[1]).rotateZ(i.or.v[2]),this.mat.rotateX(-i.rx.v).rotateY(-i.ry.v).rotateZ(i.rz.v),this.mat.scale(1/i.s.v[0],1/i.s.v[1],1/i.s.v[2]),this.mat.translate(i.a.v[0],i.a.v[1],i.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 a;this.p?a=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:a=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var o=Math.sqrt(Math.pow(a[0],2)+Math.pow(a[1],2)+Math.pow(a[2],2)),s=[a[0]/o,a[1]/o,a[2]/o],l=Math.sqrt(s[2]*s[2]+s[0]*s[0]),c=Math.atan2(s[1],l),u=Math.atan2(s[0],-s[2]);this.mat.rotateY(u).rotateX(-c)}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 f=!this._prevMat.equals(this.mat);if((f||this.pe._mdf)&&this.comp.threeDElements){r=this.comp.threeDElements.length;var x,h,g;for(n=0;n<r;n+=1)if(x=this.comp.threeDElements[n],x.type==="3d"){if(f){var v=this.mat.toCSS();g=x.container.style,g.transform=v,g.webkitTransform=v}this.pe._mdf&&(h=x.perspectiveElem.style,h.perspective=this.pe.v+"px",h.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(e,n,r){this.assetData=n.getAssetData(e.refId),this.initElement(e,n,r)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),n=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",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(n),n.crossOrigin="anonymous",n.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(e,n){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:n&&n.className||"",imagePreserveAspectRatio:n&&n.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(n&&n.hideOnTransparent===!1),filterSize:{width:n&&n.filterSize&&n.filterSize.width||"400%",height:n&&n.filterSize&&n.filterSize.height||"400%",x:n&&n.filterSize&&n.filterSize.x||"-100%",y:n&&n.filterSize&&n.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 e=this.pendingElements.pop();e.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(e,n){var r=e.getBaseElement();if(r){var i=this.layers[n];if(!i.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(r,n);else{for(var a=0,o,s,l;a<n;)this.elements[a]&&this.elements[a]!==!0&&this.elements[a].getBaseElement&&(s=this.elements[a],l=this.layers[a].ddd?this.getThreeDContainerByPos(a):s.getBaseElement(),o=l||o),a+=1;o?(!i.ddd||!this.supports3d)&&this.layerElement.insertBefore(r,o):(!i.ddd||!this.supports3d)&&this.layerElement.appendChild(r)}else this.addTo3dContainer(r,n)}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var n=0,r=this.threeDElements.length;n<r;){if(this.threeDElements[n].startPos<=e&&this.threeDElements[n].endPos>=e)return this.threeDElements[n].perspectiveElem;n+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,n){var r=createTag("div"),i,a;styleDiv(r);var o=createTag("div");if(styleDiv(o),n==="3d"){i=r.style,i.width=this.globalData.compSize.w+"px",i.height=this.globalData.compSize.h+"px";var s="50% 50%";i.webkitTransformOrigin=s,i.mozTransformOrigin=s,i.transformOrigin=s,a=o.style;var l="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";a.transform=l,a.webkitTransform=l}r.appendChild(o);var c={container:o,perspectiveElem:r,startPos:e,endPos:e,type:n};return this.threeDElements.push(c),c},HybridRendererBase.prototype.build3dContainers=function(){var e,n=this.layers.length,r,i="";for(e=0;e<n;e+=1)this.layers[e].ddd&&this.layers[e].ty!==3?(i!=="3d"&&(i="3d",r=this.createThreeDContainer(e,"3d")),r.endPos=Math.max(r.endPos,e)):(i!=="2d"&&(i="2d",r=this.createThreeDContainer(e,"2d")),r.endPos=Math.max(r.endPos,e));for(n=this.threeDElements.length,e=n-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,n){for(var r=0,i=this.threeDElements.length;r<i;){if(n<=this.threeDElements[r].endPos){for(var a=this.threeDElements[r].startPos,o;a<n;)this.elements[a]&&this.elements[a].getBaseElement&&(o=this.elements[a].getBaseElement()),a+=1;o?this.threeDElements[r].container.insertBefore(e,o):this.threeDElements[r].container.appendChild(e);break}r+=1}},HybridRendererBase.prototype.configAnimation=function(e){var n=createTag("div"),r=this.animationItem.wrapper,i=n.style;i.width=e.w+"px",i.height=e.h+"px",this.resizerElem=n,styleDiv(n),i.transformStyle="flat",i.mozTransformStyle="flat",i.webkitTransformStyle="flat",this.renderConfig.className&&n.setAttribute("class",this.renderConfig.className),r.appendChild(n),i.overflow="hidden";var a=createNS("svg");a.setAttribute("width","1"),a.setAttribute("height","1"),styleDiv(a),this.resizerElem.appendChild(a);var o=createNS("defs");a.appendChild(o),this.data=e,this.setupGlobalData(e,a),this.globalData.defs=o,this.layers=e.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 e,n=this.layers?this.layers.length:0;for(e=0;e<n;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e=this.animationItem.wrapper.offsetWidth,n=this.animationItem.wrapper.offsetHeight,r=e/n,i=this.globalData.compSize.w/this.globalData.compSize.h,a,o,s,l;i>r?(a=e/this.globalData.compSize.w,o=e/this.globalData.compSize.w,s=0,l=(n-this.globalData.compSize.h*(e/this.globalData.compSize.w))/2):(a=n/this.globalData.compSize.h,o=n/this.globalData.compSize.h,s=(e-this.globalData.compSize.w*(n/this.globalData.compSize.h))/2,l=0);var c=this.resizerElem.style;c.webkitTransform="matrix3d("+a+",0,0,0,0,"+o+",0,0,0,0,1,0,"+s+","+l+",0,1)",c.transform=c.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 e=this.globalData.compSize.w,n=this.globalData.compSize.h,r,i=this.threeDElements.length;for(r=0;r<i;r+=1){var a=this.threeDElements[r].perspectiveElem.style;a.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(n,2))+"px",a.perspective=a.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var n,r=e.length,i=createTag("div");for(n=0;n<r;n+=1)if(e[n].xt){var a=this.createComp(e[n],i,this.globalData.comp,null);a.initExpressions(),this.globalData.projectInterface.registerComposition(a)}};function HCompElement(e,n,r){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,n,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,n.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(e,n){for(var r=0,i;r<n;)this.elements[r]&&this.elements[r].getBaseElement&&(i=this.elements[r].getBaseElement()),r+=1;i?this.layerElement.insertBefore(e,i):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};function HybridRenderer(e,n){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:n&&n.className||"",imagePreserveAspectRatio:n&&n.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(n&&n.hideOnTransparent===!1),filterSize:{width:n&&n.filterSize&&n.filterSize.width||"400%",height:n&&n.filterSize&&n.filterSize.height||"400%",x:n&&n.filterSize&&n.filterSize.x||"-100%",y:n&&n.filterSize&&n.filterSize.y||"-100%"},runExpressions:!n||n.runExpressions===void 0||n.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(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=function(){return function(e){function n(r){for(var i=0,a=e.layers.length;i<a;){if(e.layers[i].nm===r||e.layers[i].ind===r)return e.elements[i].layerInterface;i+=1}return null}return Object.defineProperty(n,"_name",{value:e.data.nm}),n.layer=n,n.pixelAspect=1,n.height=e.data.h||e.globalData.compSize.h,n.width=e.data.w||e.globalData.compSize.w,n.pixelAspect=1,n.frameDuration=1/e.globalData.frameRate,n.displayStartTime=0,n.numLayers=e.layers.length,n}}();function _typeof$2(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function(r){return typeof r}:_typeof$2=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$2(e)}function seedRandom(e,n){var r=this,i=256,a=6,o=52,s="random",l=n.pow(i,a),c=n.pow(2,o),u=c*2,f=i-1,x;function h(m,y,A){var _=[];y=y===!0?{entropy:!0}:y||{};var k=E(p(y.entropy?[m,d(e)]:m===null?b():m,3),_),T=new g(_),F=function(){for(var B=T.g(a),L=l,R=0;B<c;)B=(B+R)*i,L*=i,R=T.g(1);for(;B>=u;)B/=2,L/=2,R>>>=1;return(B+R)/L};return F.int32=function(){return T.g(4)|0},F.quick=function(){return T.g(4)/4294967296},F.double=F,E(d(T.S),e),(y.pass||A||function(M,B,L,R){return R&&(R.S&&v(R,T),M.state=function(){return v(T,{})}),L?(n[s]=M,B):M})(F,k,"global"in y?y.global:this==n,y.state)}n["seed"+s]=h;function g(m){var y,A=m.length,_=this,k=0,T=_.i=_.j=0,F=_.S=[];for(A||(m=[A++]);k<i;)F[k]=k++;for(k=0;k<i;k++)F[k]=F[T=f&T+m[k%A]+(y=F[k])],F[T]=y;_.g=function(M){for(var B,L=0,R=_.i,H=_.j,V=_.S;M--;)B=V[R=f&R+1],L=L*i+V[f&(V[R]=V[H=f&H+B])+(V[H]=B)];return _.i=R,_.j=H,L}}function v(m,y){return y.i=m.i,y.j=m.j,y.S=m.S.slice(),y}function p(m,y){var A=[],_=_typeof$2(m),k;if(y&&_=="object")for(k in m)try{A.push(p(m[k],y-1))}catch{}return A.length?A:_=="string"?m:m+"\0"}function E(m,y){for(var A=m+"",_,k=0;k<A.length;)y[f&k]=f&(_^=y[f&k]*19)+A.charCodeAt(k++);return d(y)}function b(){try{var m=new Uint8Array(i);return(r.crypto||r.msCrypto).getRandomValues(m),d(m)}catch{var y=r.navigator,A=y&&y.plugins;return[+new Date,r,A,r.screen,d(e)]}}function d(m){return String.fromCharCode.apply(0,m)}E(n.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(r){return typeof r}:_typeof$1=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$1(e)}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(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,n){return e==="number"||n instanceof Number||e==="boolean"||e==="string"}function $bm_neg(e){var n=_typeof$1(e);if(n==="number"||e instanceof Number||n==="boolean")return-e;if($bm_isInstanceOfArray(e)){var r,i=e.length,a=[];for(r=0;r<i;r+=1)a[r]=-e[r];return a}return e.propType?e.v:-e}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(e,n){var r=_typeof$1(e),i=_typeof$1(n);if(isNumerable(r,e)&&isNumerable(i,n)||r==="string"||i==="string")return e+n;if($bm_isInstanceOfArray(e)&&isNumerable(i,n))return e=e.slice(0),e[0]+=n,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(n))return n=n.slice(0),n[0]=e+n[0],n;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(n)){for(var a=0,o=e.length,s=n.length,l=[];a<o||a<s;)(typeof e[a]=="number"||e[a]instanceof Number)&&(typeof n[a]=="number"||n[a]instanceof Number)?l[a]=e[a]+n[a]:l[a]=n[a]===void 0?e[a]:e[a]||n[a],a+=1;return l}return 0}var add=sum;function sub(e,n){var r=_typeof$1(e),i=_typeof$1(n);if(isNumerable(r,e)&&isNumerable(i,n))return r==="string"&&(e=parseInt(e,10)),i==="string"&&(n=parseInt(n,10)),e-n;if($bm_isInstanceOfArray(e)&&isNumerable(i,n))return e=e.slice(0),e[0]-=n,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(n))return n=n.slice(0),n[0]=e-n[0],n;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(n)){for(var a=0,o=e.length,s=n.length,l=[];a<o||a<s;)(typeof e[a]=="number"||e[a]instanceof Number)&&(typeof n[a]=="number"||n[a]instanceof Number)?l[a]=e[a]-n[a]:l[a]=n[a]===void 0?e[a]:e[a]||n[a],a+=1;return l}return 0}function mul(e,n){var r=_typeof$1(e),i=_typeof$1(n),a;if(isNumerable(r,e)&&isNumerable(i,n))return e*n;var o,s;if($bm_isInstanceOfArray(e)&&isNumerable(i,n)){for(s=e.length,a=createTypedArray("float32",s),o=0;o<s;o+=1)a[o]=e[o]*n;return a}if(isNumerable(r,e)&&$bm_isInstanceOfArray(n)){for(s=n.length,a=createTypedArray("float32",s),o=0;o<s;o+=1)a[o]=e*n[o];return a}return 0}function div(e,n){var r=_typeof$1(e),i=_typeof$1(n),a;if(isNumerable(r,e)&&isNumerable(i,n))return e/n;var o,s;if($bm_isInstanceOfArray(e)&&isNumerable(i,n)){for(s=e.length,a=createTypedArray("float32",s),o=0;o<s;o+=1)a[o]=e[o]/n;return a}if(isNumerable(r,e)&&$bm_isInstanceOfArray(n)){for(s=n.length,a=createTypedArray("float32",s),o=0;o<s;o+=1)a[o]=e/n[o];return a}return 0}function mod(e,n){return typeof e=="string"&&(e=parseInt(e,10)),typeof n=="string"&&(n=parseInt(n,10)),e%n}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,n,r){if(n>r){var i=r;r=n,n=i}return Math.min(Math.max(e,n),r)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,n){if(typeof e=="number"||e instanceof Number)return n=n||0,Math.abs(e-n);n||(n=helperLengthArray);var r,i=Math.min(e.length,n.length),a=0;for(r=0;r<i;r+=1)a+=Math.pow(n[r]-e[r],2);return Math.sqrt(a)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var n=e[0],r=e[1],i=e[2],a=Math.max(n,r,i),o=Math.min(n,r,i),s,l,c=(a+o)/2;if(a===o)s=0,l=0;else{var u=a-o;switch(l=c>.5?u/(2-a-o):u/(a+o),a){case n:s=(r-i)/u+(r<i?6:0);break;case r:s=(i-n)/u+2;break;case i:s=(n-r)/u+4;break}s/=6}return[s,l,c,e[3]]}function hue2rgb(e,n,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(n-e)*6*r:r<1/2?n:r<2/3?e+(n-e)*(2/3-r)*6:e}function hslToRgb(e){var n=e[0],r=e[1],i=e[2],a,o,s;if(r===0)a=i,s=i,o=i;else{var l=i<.5?i*(1+r):i+r-i*r,c=2*i-l;a=hue2rgb(c,l,n+1/3),o=hue2rgb(c,l,n),s=hue2rgb(c,l,n-1/3)}return[a,o,s,e[3]]}function linear(e,n,r,i,a){if((i===void 0||a===void 0)&&(i=n,a=r,n=0,r=1),r<n){var o=r;r=n,n=o}if(e<=n)return i;if(e>=r)return a;var s=r===n?0:(e-n)/(r-n);if(!i.length)return i+(a-i)*s;var l,c=i.length,u=createTypedArray("float32",c);for(l=0;l<c;l+=1)u[l]=i[l]+(a[l]-i[l])*s;return u}function random(e,n){if(n===void 0&&(e===void 0?(e=0,n=1):(n=e,e=void 0)),n.length){var r,i=n.length;e||(e=createTypedArray("float32",i));var a=createTypedArray("float32",i),o=BMMath.random();for(r=0;r<i;r+=1)a[r]=e[r]+o*(n[r]-e[r]);return a}e===void 0&&(e=0);var s=BMMath.random();return e+s*(n-e)}function createPath(e,n,r,i){var a,o=e.length,s=shapePool.newElement();s.setPathData(!!i,o);var l=[0,0],c,u;for(a=0;a<o;a+=1)c=n&&n[a]?n[a]:l,u=r&&r[a]?r[a]:l,s.setTripleAt(e[a][0],e[a][1],u[0]+e[a][0],u[1]+e[a][1],c[0]+e[a][0],c[1]+e[a][1],a,!0);return s}function initiateExpression(elem,data,property){function noOp(e){return e}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 e(n,r){var i,a,o=this.pv.length?this.pv.length:1,s=createTypedArray("float32",o);n=5;var l=Math.floor(time*n);for(i=0,a=0;i<l;){for(a=0;a<o;a+=1)s[a]+=-r+r*2*BMMath.random();i+=1}var c=time*n,u=c-Math.floor(c),f=createTypedArray("float32",o);if(o>1){for(a=0;a<o;a+=1)f[a]=this.pv[a]+s[a]+(-r+r*2*BMMath.random())*u;return f}return this.pv+s[0]+(-r+r*2*BMMath.random())*u}).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(e,n){return loopIn(e,n,!0)}function loopOutDuration(e,n){return loopOut(e,n,!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(e,n){var r=[n[0]-e[0],n[1]-e[1],n[2]-e[2]],i=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads,a=-Math.atan2(r[1],r[2])/degToRads;return[a,i,0]}function easeOut(e,n,r,i,a){return applyEase(easeOutBez,e,n,r,i,a)}function easeIn(e,n,r,i,a){return applyEase(easeInBez,e,n,r,i,a)}function ease(e,n,r,i,a){return applyEase(easeInOutBez,e,n,r,i,a)}function applyEase(e,n,r,i,a,o){a===void 0?(a=r,o=i):n=(n-r)/(i-r),n>1?n=1:n<0&&(n=0);var s=e(n);if($bm_isInstanceOfArray(a)){var l,c=a.length,u=createTypedArray("float32",c);for(l=0;l<c;l+=1)u[l]=(o[l]-a[l])*s+a[l];return u}return(o-a)*s+a}function nearestKey(e){var n,r=data.k.length,i,a;if(!data.k.length||typeof data.k[0]=="number")i=0,a=0;else if(i=-1,e*=elem.comp.globalData.frameRate,e<data.k[0].t)i=1,a=data.k[0].t;else{for(n=0;n<r-1;n+=1)if(e===data.k[n].t){i=n+1,a=data.k[n].t;break}else if(e>data.k[n].t&&e<data.k[n+1].t){e-data.k[n].t>data.k[n+1].t-e?(i=n+2,a=data.k[n+1].t):(i=n+1,a=data.k[n].t);break}i===-1&&(i=n+1,a=data.k[n].t)}var o={};return o.index=i,o.time=a/elem.comp.globalData.frameRate,o}function key(e){var n,r,i;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+e);e-=1,n={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var a=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(i=a.length,r=0;r<i;r+=1)n[r]=a[r],n.value[r]=a[r];return n}function framesToTime(e,n){return n||(n=elem.comp.globalData.frameRate),e/n}function timeToFrames(e,n){return!e&&e!==0&&(e=time),n||(n=elem.comp.globalData.frameRate),e*n}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,n){return typeof value=="string"?n===void 0?value.substring(e):value.substring(e,n):""}function substr(e,n){return typeof value=="string"?n===void 0?value.substr(e):value.substr(e,n):""}function posterizeTime(e){time=e===0?0:Math.floor(time*e)/e,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(e){return value=e,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 e={};e.initExpressions=n,e.resetFrame=ExpressionManager.resetFrame;function n(r){var i=0,a=[];function o(){i+=1}function s(){i-=1,i===0&&c()}function l(u){a.indexOf(u)===-1&&a.push(u)}function c(){var u,f=a.length;for(u=0;u<f;u+=1)a[u].release();a.length=0}r.renderer.compInterface=CompExpressionInterface(r.renderer),r.renderer.globalData.projectInterface.registerComposition(r.renderer),r.renderer.globalData.pushExpression=o,r.renderer.globalData.popExpression=s,r.renderer.globalData.registerExpressionProperty=l}return e}(),MaskManagerInterface=function(){function e(r,i){this._mask=r,this._data=i}Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var n=function(i){var a=createSizedArray(i.viewData.length),o,s=i.viewData.length;for(o=0;o<s;o+=1)a[o]=new e(i.viewData[o],i.masksProperties[o]);var l=function(u){for(o=0;o<s;){if(i.masksProperties[o].nm===u)return a[o];o+=1}return null};return l};return n}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},n={pv:[0,0,0],v:[0,0,0],mult:1};function r(s,l,c){Object.defineProperty(s,"velocity",{get:function(){return l.getVelocityAtTime(l.comp.currentFrame)}}),s.numKeys=l.keyframes?l.keyframes.length:0,s.key=function(u){if(!s.numKeys)return 0;var f="";"s"in l.keyframes[u-1]?f=l.keyframes[u-1].s:"e"in l.keyframes[u-2]?f=l.keyframes[u-2].e:f=l.keyframes[u-2].s;var x=c==="unidimensional"?new Number(f):Object.assign({},f);return x.time=l.keyframes[u-1].t/l.elem.comp.globalData.frameRate,x.value=c==="unidimensional"?f[0]:f,x},s.valueAtTime=l.getValueAtTime,s.speedAtTime=l.getSpeedAtTime,s.velocityAtTime=l.getVelocityAtTime,s.propertyGroup=l.propertyGroup}function i(s){(!s||!("pv"in s))&&(s=e);var l=1/s.mult,c=s.pv*l,u=new Number(c);return u.value=c,r(u,s,"unidimensional"),function(){return s.k&&s.getValue(),c=s.v*l,u.value!==c&&(u=new Number(c),u.value=c,r(u,s,"unidimensional")),u}}function a(s){(!s||!("pv"in s))&&(s=n);var l=1/s.mult,c=s.data&&s.data.l||s.pv.length,u=createTypedArray("float32",c),f=createTypedArray("float32",c);return u.value=f,r(u,s,"multidimensional"),function(){s.k&&s.getValue();for(var x=0;x<c;x+=1)f[x]=s.v[x]*l,u[x]=f[x];return u}}function o(){return e}return function(s){return s?s.propType==="unidimensional"?i(s):a(s):o}}(),TransformExpressionInterface=function(){return function(e){function n(s){switch(s){case"scale":case"Scale":case"ADBE Scale":case 6:return n.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return n.rotation;case"ADBE Rotate X":return n.xRotation;case"ADBE Rotate Y":return n.yRotation;case"position":case"Position":case"ADBE Position":case 2:return n.position;case"ADBE Position_0":return n.xPosition;case"ADBE Position_1":return n.yPosition;case"ADBE Position_2":return n.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return n.anchorPoint;case"opacity":case"Opacity":case 11:return n.opacity;default:return null}}Object.defineProperty(n,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(n,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(n,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(n,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(n,"scale",{get:ExpressionPropertyInterface(e.s)});var r,i,a,o;return e.p?o=ExpressionPropertyInterface(e.p):(r=ExpressionPropertyInterface(e.px),i=ExpressionPropertyInterface(e.py),e.pz&&(a=ExpressionPropertyInterface(e.pz))),Object.defineProperty(n,"position",{get:function(){return e.p?o():[r(),i(),a?a():0]}}),Object.defineProperty(n,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(n,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(n,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(n,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(n,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(n,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(n,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(n,"orientation",{get:ExpressionPropertyInterface(e.or)}),n}}(),LayerExpressionInterface=function(){function e(u){var f=new Matrix;if(u!==void 0){var x=this._elem.finalTransform.mProp.getValueAtTime(u);x.clone(f)}else{var h=this._elem.finalTransform.mProp;h.applyToMatrix(f)}return f}function n(u,f){var x=this.getMatrix(f);return x.props[12]=0,x.props[13]=0,x.props[14]=0,this.applyPoint(x,u)}function r(u,f){var x=this.getMatrix(f);return this.applyPoint(x,u)}function i(u,f){var x=this.getMatrix(f);return x.props[12]=0,x.props[13]=0,x.props[14]=0,this.invertPoint(x,u)}function a(u,f){var x=this.getMatrix(f);return this.invertPoint(x,u)}function o(u,f){if(this._elem.hierarchy&&this._elem.hierarchy.length){var x,h=this._elem.hierarchy.length;for(x=0;x<h;x+=1)this._elem.hierarchy[x].finalTransform.mProp.applyToMatrix(u)}return u.applyToPointArray(f[0],f[1],f[2]||0)}function s(u,f){if(this._elem.hierarchy&&this._elem.hierarchy.length){var x,h=this._elem.hierarchy.length;for(x=0;x<h;x+=1)this._elem.hierarchy[x].finalTransform.mProp.applyToMatrix(u)}return u.inversePoint(f)}function l(u){var f=new Matrix;if(f.reset(),this._elem.finalTransform.mProp.applyToMatrix(f),this._elem.hierarchy&&this._elem.hierarchy.length){var x,h=this._elem.hierarchy.length;for(x=0;x<h;x+=1)this._elem.hierarchy[x].finalTransform.mProp.applyToMatrix(f);return f.inversePoint(u)}return f.inversePoint(u)}function c(){return[1,1,1,1]}return function(u){var f;function x(p){g.mask=new MaskManagerInterface(p,u)}function h(p){g.effect=p}function g(p){switch(p){case"ADBE Root Vectors Group":case"Contents":case 2:return g.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return f;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return g.effect;case"ADBE Text Properties":return g.textInterface;default:return null}}g.getMatrix=e,g.invertPoint=s,g.applyPoint=o,g.toWorld=r,g.toWorldVec=n,g.fromWorld=a,g.fromWorldVec=i,g.toComp=r,g.fromComp=l,g.sampleImage=c,g.sourceRectAtTime=u.sourceRectAtTime.bind(u),g._elem=u,f=TransformExpressionInterface(u.finalTransform.mProp);var v=getDescriptor(f,"anchorPoint");return Object.defineProperties(g,{hasParent:{get:function(){return u.hierarchy.length}},parent:{get:function(){return u.hierarchy[0].layerInterface}},rotation:getDescriptor(f,"rotation"),scale:getDescriptor(f,"scale"),position:getDescriptor(f,"position"),opacity:getDescriptor(f,"opacity"),anchorPoint:v,anchor_point:v,transform:{get:function(){return f}},active:{get:function(){return u.isInRange}}}),g.startTime=u.data.st,g.index=u.data.ind,g.source=u.data.refId,g.height=u.data.ty===0?u.data.h:100,g.width=u.data.ty===0?u.data.w:100,g.inPoint=u.data.ip/u.comp.globalData.frameRate,g.outPoint=u.data.op/u.comp.globalData.frameRate,g._name=u.data.nm,g.registerMaskInterface=x,g.registerEffectsInterface=h,g}}(),propertyGroupFactory=function(){return function(e,n){return function(r){return r=r===void 0?1:r,r<=0?e:n(r-1)}}}(),PropertyInterface=function(){return function(e,n){var r={_name:e};function i(a){return a=a===void 0?1:a,a<=0?r:n(a-1)}return i}}(),EffectsExpressionInterface=function(){var e={createEffectsInterface:n};function n(a,o){if(a.effectsManager){var s=[],l=a.data.ef,c,u=a.effectsManager.effectElements.length;for(c=0;c<u;c+=1)s.push(r(l[c],a.effectsManager.effectElements[c],o,a));var f=a.data.ef||[],x=function(g){for(c=0,u=f.length;c<u;){if(g===f[c].nm||g===f[c].mn||g===f[c].ix)return s[c];c+=1}return null};return Object.defineProperty(x,"numProperties",{get:function(){return f.length}}),x}return null}function r(a,o,s,l){function c(g){for(var v=a.ef,p=0,E=v.length;p<E;){if(g===v[p].nm||g===v[p].mn||g===v[p].ix)return v[p].ty===5?f[p]:f[p]();p+=1}throw new Error}var u=propertyGroupFactory(c,s),f=[],x,h=a.ef.length;for(x=0;x<h;x+=1)a.ef[x].ty===5?f.push(r(a.ef[x],o.effectElements[x],o.effectElements[x].propertyGroup,l)):f.push(i(o.effectElements[x],a.ef[x].ty,l,u));return a.mn==="ADBE Color Control"&&Object.defineProperty(c,"color",{get:function(){return f[0]()}}),Object.defineProperties(c,{numProperties:{get:function(){return a.np}},_name:{value:a.nm},propertyGroup:{value:u}}),c.enabled=a.en!==0,c.active=c.enabled,c}function i(a,o,s,l){var c=ExpressionPropertyInterface(a.p);function u(){return o===10?s.comp.compInterface(a.p.v):c()}return a.p.setGroupProperty&&a.p.setGroupProperty(PropertyInterface("",l)),u}return e}(),ShapePathInterface=function(){return function(n,r,i){var a=r.sh;function o(l){return l==="Shape"||l==="shape"||l==="Path"||l==="path"||l==="ADBE Vector Shape"||l===2?o.path:null}var s=propertyGroupFactory(o,i);return a.setGroupProperty(PropertyInterface("Path",s)),Object.defineProperties(o,{path:{get:function(){return a.k&&a.getValue(),a}},shape:{get:function(){return a.k&&a.getValue(),a}},_name:{value:n.nm},ix:{value:n.ix},propertyIndex:{value:n.ix},mn:{value:n.mn},propertyGroup:{value:i}}),o}}(),ShapeExpressionInterface=function(){function e(v,p,E){var b=[],d,m=v?v.length:0;for(d=0;d<m;d+=1)v[d].ty==="gr"?b.push(r(v[d],p[d],E)):v[d].ty==="fl"?b.push(i(v[d],p[d],E)):v[d].ty==="st"?b.push(s(v[d],p[d],E)):v[d].ty==="tm"?b.push(l(v[d],p[d],E)):v[d].ty==="tr"||(v[d].ty==="el"?b.push(u(v[d],p[d],E)):v[d].ty==="sr"?b.push(f(v[d],p[d],E)):v[d].ty==="sh"?b.push(ShapePathInterface(v[d],p[d],E)):v[d].ty==="rc"?b.push(x(v[d],p[d],E)):v[d].ty==="rd"?b.push(h(v[d],p[d],E)):v[d].ty==="rp"?b.push(g(v[d],p[d],E)):v[d].ty==="gf"?b.push(a(v[d],p[d],E)):b.push(o(v[d],p[d])));return b}function n(v,p,E){var b,d=function(A){for(var _=0,k=b.length;_<k;){if(b[_]._name===A||b[_].mn===A||b[_].propertyIndex===A||b[_].ix===A||b[_].ind===A)return b[_];_+=1}return typeof A=="number"?b[A-1]:null};d.propertyGroup=propertyGroupFactory(d,E),b=e(v.it,p.it,d.propertyGroup),d.numProperties=b.length;var m=c(v.it[v.it.length-1],p.it[p.it.length-1],d.propertyGroup);return d.transform=m,d.propertyIndex=v.cix,d._name=v.nm,d}function r(v,p,E){var b=function(A){switch(A){case"ADBE Vectors Group":case"Contents":case 2:return b.content;default:return b.transform}};b.propertyGroup=propertyGroupFactory(b,E);var d=n(v,p,b.propertyGroup),m=c(v.it[v.it.length-1],p.it[p.it.length-1],b.propertyGroup);return b.content=d,b.transform=m,Object.defineProperty(b,"_name",{get:function(){return v.nm}}),b.numProperties=v.np,b.propertyIndex=v.ix,b.nm=v.nm,b.mn=v.mn,b}function i(v,p,E){function b(d){return d==="Color"||d==="color"?b.color:d==="Opacity"||d==="opacity"?b.opacity:null}return Object.defineProperties(b,{color:{get:ExpressionPropertyInterface(p.c)},opacity:{get:ExpressionPropertyInterface(p.o)},_name:{value:v.nm},mn:{value:v.mn}}),p.c.setGroupProperty(PropertyInterface("Color",E)),p.o.setGroupProperty(PropertyInterface("Opacity",E)),b}function a(v,p,E){function b(d){return d==="Start Point"||d==="start point"?b.startPoint:d==="End Point"||d==="end point"?b.endPoint:d==="Opacity"||d==="opacity"?b.opacity:null}return Object.defineProperties(b,{startPoint:{get:ExpressionPropertyInterface(p.s)},endPoint:{get:ExpressionPropertyInterface(p.e)},opacity:{get:ExpressionPropertyInterface(p.o)},type:{get:function(){return"a"}},_name:{value:v.nm},mn:{value:v.mn}}),p.s.setGroupProperty(PropertyInterface("Start Point",E)),p.e.setGroupProperty(PropertyInterface("End Point",E)),p.o.setGroupProperty(PropertyInterface("Opacity",E)),b}function o(){function v(){return null}return v}function s(v,p,E){var b=propertyGroupFactory(k,E),d=propertyGroupFactory(_,b);function m(T){Object.defineProperty(_,v.d[T].nm,{get:ExpressionPropertyInterface(p.d.dataProps[T].p)})}var y,A=v.d?v.d.length:0,_={};for(y=0;y<A;y+=1)m(y),p.d.dataProps[y].p.setGroupProperty(d);function k(T){return T==="Color"||T==="color"?k.color:T==="Opacity"||T==="opacity"?k.opacity:T==="Stroke Width"||T==="stroke width"?k.strokeWidth:null}return Object.defineProperties(k,{color:{get:ExpressionPropertyInterface(p.c)},opacity:{get:ExpressionPropertyInterface(p.o)},strokeWidth:{get:ExpressionPropertyInterface(p.w)},dash:{get:function(){return _}},_name:{value:v.nm},mn:{value:v.mn}}),p.c.setGroupProperty(PropertyInterface("Color",b)),p.o.setGroupProperty(PropertyInterface("Opacity",b)),p.w.setGroupProperty(PropertyInterface("Stroke Width",b)),k}function l(v,p,E){function b(m){return m===v.e.ix||m==="End"||m==="end"?b.end:m===v.s.ix?b.start:m===v.o.ix?b.offset:null}var d=propertyGroupFactory(b,E);return b.propertyIndex=v.ix,p.s.setGroupProperty(PropertyInterface("Start",d)),p.e.setGroupProperty(PropertyInterface("End",d)),p.o.setGroupProperty(PropertyInterface("Offset",d)),b.propertyIndex=v.ix,b.propertyGroup=E,Object.defineProperties(b,{start:{get:ExpressionPropertyInterface(p.s)},end:{get:ExpressionPropertyInterface(p.e)},offset:{get:ExpressionPropertyInterface(p.o)},_name:{value:v.nm}}),b.mn=v.mn,b}function c(v,p,E){function b(m){return v.a.ix===m||m==="Anchor Point"?b.anchorPoint:v.o.ix===m||m==="Opacity"?b.opacity:v.p.ix===m||m==="Position"?b.position:v.r.ix===m||m==="Rotation"||m==="ADBE Vector Rotation"?b.rotation:v.s.ix===m||m==="Scale"?b.scale:v.sk&&v.sk.ix===m||m==="Skew"?b.skew:v.sa&&v.sa.ix===m||m==="Skew Axis"?b.skewAxis:null}var d=propertyGroupFactory(b,E);return p.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",d)),p.transform.mProps.p.setGroupProperty(PropertyInterface("Position",d)),p.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",d)),p.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",d)),p.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",d)),p.transform.mProps.sk&&(p.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",d)),p.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",d))),p.transform.op.setGroupProperty(PropertyInterface("Opacity",d)),Object.defineProperties(b,{opacity:{get:ExpressionPropertyInterface(p.transform.mProps.o)},position:{get:ExpressionPropertyInterface(p.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(p.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(p.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(p.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(p.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(p.transform.mProps.sa)},_name:{value:v.nm}}),b.ty="tr",b.mn=v.mn,b.propertyGroup=E,b}function u(v,p,E){function b(y){return v.p.ix===y?b.position:v.s.ix===y?b.size:null}var d=propertyGroupFactory(b,E);b.propertyIndex=v.ix;var m=p.sh.ty==="tm"?p.sh.prop:p.sh;return m.s.setGroupProperty(PropertyInterface("Size",d)),m.p.setGroupProperty(PropertyInterface("Position",d)),Object.defineProperties(b,{size:{get:ExpressionPropertyInterface(m.s)},position:{get:ExpressionPropertyInterface(m.p)},_name:{value:v.nm}}),b.mn=v.mn,b}function f(v,p,E){function b(y){return v.p.ix===y?b.position:v.r.ix===y?b.rotation:v.pt.ix===y?b.points:v.or.ix===y||y==="ADBE Vector Star Outer Radius"?b.outerRadius:v.os.ix===y?b.outerRoundness:v.ir&&(v.ir.ix===y||y==="ADBE Vector Star Inner Radius")?b.innerRadius:v.is&&v.is.ix===y?b.innerRoundness:null}var d=propertyGroupFactory(b,E),m=p.sh.ty==="tm"?p.sh.prop:p.sh;return b.propertyIndex=v.ix,m.or.setGroupProperty(PropertyInterface("Outer Radius",d)),m.os.setGroupProperty(PropertyInterface("Outer Roundness",d)),m.pt.setGroupProperty(PropertyInterface("Points",d)),m.p.setGroupProperty(PropertyInterface("Position",d)),m.r.setGroupProperty(PropertyInterface("Rotation",d)),v.ir&&(m.ir.setGroupProperty(PropertyInterface("Inner Radius",d)),m.is.setGroupProperty(PropertyInterface("Inner Roundness",d))),Object.defineProperties(b,{position:{get:ExpressionPropertyInterface(m.p)},rotation:{get:ExpressionPropertyInterface(m.r)},points:{get:ExpressionPropertyInterface(m.pt)},outerRadius:{get:ExpressionPropertyInterface(m.or)},outerRoundness:{get:ExpressionPropertyInterface(m.os)},innerRadius:{get:ExpressionPropertyInterface(m.ir)},innerRoundness:{get:ExpressionPropertyInterface(m.is)},_name:{value:v.nm}}),b.mn=v.mn,b}function x(v,p,E){function b(y){return v.p.ix===y?b.position:v.r.ix===y?b.roundness:v.s.ix===y||y==="Size"||y==="ADBE Vector Rect Size"?b.size:null}var d=propertyGroupFactory(b,E),m=p.sh.ty==="tm"?p.sh.prop:p.sh;return b.propertyIndex=v.ix,m.p.setGroupProperty(PropertyInterface("Position",d)),m.s.setGroupProperty(PropertyInterface("Size",d)),m.r.setGroupProperty(PropertyInterface("Rotation",d)),Object.defineProperties(b,{position:{get:ExpressionPropertyInterface(m.p)},roundness:{get:ExpressionPropertyInterface(m.r)},size:{get:ExpressionPropertyInterface(m.s)},_name:{value:v.nm}}),b.mn=v.mn,b}function h(v,p,E){function b(y){return v.r.ix===y||y==="Round Corners 1"?b.radius:null}var d=propertyGroupFactory(b,E),m=p;return b.propertyIndex=v.ix,m.rd.setGroupProperty(PropertyInterface("Radius",d)),Object.defineProperties(b,{radius:{get:ExpressionPropertyInterface(m.rd)},_name:{value:v.nm}}),b.mn=v.mn,b}function g(v,p,E){function b(y){return v.c.ix===y||y==="Copies"?b.copies:v.o.ix===y||y==="Offset"?b.offset:null}var d=propertyGroupFactory(b,E),m=p;return b.propertyIndex=v.ix,m.c.setGroupProperty(PropertyInterface("Copies",d)),m.o.setGroupProperty(PropertyInterface("Offset",d)),Object.defineProperties(b,{copies:{get:ExpressionPropertyInterface(m.c)},offset:{get:ExpressionPropertyInterface(m.o)},_name:{value:v.nm}}),b.mn=v.mn,b}return function(v,p,E){var b;function d(y){if(typeof y=="number")return y=y===void 0?1:y,y===0?E:b[y-1];for(var A=0,_=b.length;A<_;){if(b[A]._name===y)return b[A];A+=1}return null}function m(){return E}return d.propertyGroup=propertyGroupFactory(d,m),b=e(v,p,d.propertyGroup),d.numProperties=b.length,d._name="Contents",d}}(),TextExpressionInterface=function(){return function(e){var n;function r(i){switch(i){case"ADBE Text Document":return r.sourceText;default:return null}}return Object.defineProperty(r,"sourceText",{get:function(){e.textProperty.getValue();var a=e.textProperty.currentData.t;return(!n||a!==n.value)&&(n=new String(a),n.value=a||new String(a),Object.defineProperty(n,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),n}}),r}}();function _typeof(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(r){return typeof r}:_typeof=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof(e)}var FootageInterface=function(){var e=function(i){var a="",o=i.getFootageData();function s(){return a="",o=i.getFootageData(),l}function l(c){if(o[c])return a=c,o=o[c],_typeof(o)==="object"?l:o;var u=c.indexOf(a);if(u!==-1){var f=parseInt(c.substr(u+a.length),10);return o=o[f],_typeof(o)==="object"?l:o}return""}return s},n=function(i){function a(o){return o==="Outline"?a.outlineInterface():null}return a._name="Outline",a.outlineInterface=e(i),a};return function(r){function i(a){return a==="Data"?i.dataInterface:null}return i._name="Data",i.dataInterface=n(r),i}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers=function(){function e(s,l,c){l.x&&(c.k=!0,c.x=!0,c.initiateExpression=ExpressionManager.initiateExpression,c.effectsSequence.push(c.initiateExpression(s,l,c).bind(c)))}function n(s){return s*=this.elem.globalData.frameRate,s-=this.offsetTime,s!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<s?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(s,this._cachingAtTime),this._cachingAtTime.lastFrame=s),this._cachingAtTime.value}function r(s){var l=-.01,c=this.getValueAtTime(s),u=this.getValueAtTime(s+l),f=0;if(c.length){var x;for(x=0;x<c.length;x+=1)f+=Math.pow(u[x]-c[x],2);f=Math.sqrt(f)*100}else f=0;return f}function i(s){if(this.vel!==void 0)return this.vel;var l=-.001,c=this.getValueAtTime(s),u=this.getValueAtTime(s+l),f;if(c.length){f=createTypedArray("float32",c.length);var x;for(x=0;x<c.length;x+=1)f[x]=(u[x]-c[x])/l}else f=(u-c)/l;return f}function a(){return this.pv}function o(s){this.propertyGroup=s}return{searchExpressions:e,getSpeedAtTime:r,getVelocityAtTime:i,getValueAtTime:n,getStaticValueAtTime:a,setGroupProperty:o}}();function addPropertyDecorator(){function e(h,g,v){if(!this.k||!this.keyframes)return this.pv;h=h?h.toLowerCase():"";var p=this.comp.renderedFrame,E=this.keyframes,b=E[E.length-1].t;if(p<=b)return this.pv;var d,m;v?(g?d=Math.abs(b-this.elem.comp.globalData.frameRate*g):d=Math.max(0,b-this.elem.data.ip),m=b-d):((!g||g>E.length-1)&&(g=E.length-1),m=E[E.length-1-g].t,d=b-m);var y,A,_;if(h==="pingpong"){var k=Math.floor((p-m)/d);if(k%2!==0)return this.getValueAtTime((d-(p-m)%d+m)/this.comp.globalData.frameRate,0)}else if(h==="offset"){var T=this.getValueAtTime(m/this.comp.globalData.frameRate,0),F=this.getValueAtTime(b/this.comp.globalData.frameRate,0),M=this.getValueAtTime(((p-m)%d+m)/this.comp.globalData.frameRate,0),B=Math.floor((p-m)/d);if(this.pv.length){for(_=new Array(T.length),A=_.length,y=0;y<A;y+=1)_[y]=(F[y]-T[y])*B+M[y];return _}return(F-T)*B+M}else if(h==="continue"){var L=this.getValueAtTime(b/this.comp.globalData.frameRate,0),R=this.getValueAtTime((b-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(_=new Array(L.length),A=_.length,y=0;y<A;y+=1)_[y]=L[y]+(L[y]-R[y])*((p-b)/this.comp.globalData.frameRate)/5e-4;return _}return L+(L-R)*((p-b)/.001)}return this.getValueAtTime(((p-m)%d+m)/this.comp.globalData.frameRate,0)}function n(h,g,v){if(!this.k)return this.pv;h=h?h.toLowerCase():"";var p=this.comp.renderedFrame,E=this.keyframes,b=E[0].t;if(p>=b)return this.pv;var d,m;v?(g?d=Math.abs(this.elem.comp.globalData.frameRate*g):d=Math.max(0,this.elem.data.op-b),m=b+d):((!g||g>E.length-1)&&(g=E.length-1),m=E[g].t,d=m-b);var y,A,_;if(h==="pingpong"){var k=Math.floor((b-p)/d);if(k%2===0)return this.getValueAtTime(((b-p)%d+b)/this.comp.globalData.frameRate,0)}else if(h==="offset"){var T=this.getValueAtTime(b/this.comp.globalData.frameRate,0),F=this.getValueAtTime(m/this.comp.globalData.frameRate,0),M=this.getValueAtTime((d-(b-p)%d+b)/this.comp.globalData.frameRate,0),B=Math.floor((b-p)/d)+1;if(this.pv.length){for(_=new Array(T.length),A=_.length,y=0;y<A;y+=1)_[y]=M[y]-(F[y]-T[y])*B;return _}return M-(F-T)*B}else if(h==="continue"){var L=this.getValueAtTime(b/this.comp.globalData.frameRate,0),R=this.getValueAtTime((b+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(_=new Array(L.length),A=_.length,y=0;y<A;y+=1)_[y]=L[y]+(L[y]-R[y])*(b-p)/.001;return _}return L+(L-R)*(b-p)/.001}return this.getValueAtTime((d-((b-p)%d+b))/this.comp.globalData.frameRate,0)}function r(h,g){if(!this.k)return this.pv;if(h=(h||.4)*.5,g=Math.floor(g||5),g<=1)return this.pv;var v=this.comp.renderedFrame/this.comp.globalData.frameRate,p=v-h,E=v+h,b=g>1?(E-p)/(g-1):1,d=0,m=0,y;this.pv.length?y=createTypedArray("float32",this.pv.length):y=0;for(var A;d<g;){if(A=this.getValueAtTime(p+d*b),this.pv.length)for(m=0;m<this.pv.length;m+=1)y[m]+=A[m];else y+=A;d+=1}if(this.pv.length)for(m=0;m<this.pv.length;m+=1)y[m]/=g;else y/=g;return y}function i(h){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var g=this._transformCachingAtTime.v;if(g.cloneFromProps(this.pre.props),this.appliedTransformations<1){var v=this.a.getValueAtTime(h);g.translate(-v[0]*this.a.mult,-v[1]*this.a.mult,v[2]*this.a.mult)}if(this.appliedTransformations<2){var p=this.s.getValueAtTime(h);g.scale(p[0]*this.s.mult,p[1]*this.s.mult,p[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var E=this.sk.getValueAtTime(h),b=this.sa.getValueAtTime(h);g.skewFromAxis(-E*this.sk.mult,b*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var d=this.r.getValueAtTime(h);g.rotate(-d*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var m=this.rz.getValueAtTime(h),y=this.ry.getValueAtTime(h),A=this.rx.getValueAtTime(h),_=this.or.getValueAtTime(h);g.rotateZ(-m*this.rz.mult).rotateY(y*this.ry.mult).rotateX(A*this.rx.mult).rotateZ(-_[2]*this.or.mult).rotateY(_[1]*this.or.mult).rotateX(_[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var k=this.px.getValueAtTime(h),T=this.py.getValueAtTime(h);if(this.data.p.z){var F=this.pz.getValueAtTime(h);g.translate(k*this.px.mult,T*this.py.mult,-F*this.pz.mult)}else g.translate(k*this.px.mult,T*this.py.mult,0)}else{var M=this.p.getValueAtTime(h);g.translate(M[0]*this.p.mult,M[1]*this.p.mult,-M[2]*this.p.mult)}return g}function a(){return this.v.clone(new Matrix)}var o=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(h,g,v){var p=o(h,g,v);return p.dynamicProperties.length?p.getValueAtTime=i.bind(p):p.getValueAtTime=a.bind(p),p.setGroupProperty=expressionHelpers.setGroupProperty,p};var s=PropertyFactory.getProp;PropertyFactory.getProp=function(h,g,v,p,E){var b=s(h,g,v,p,E);b.kf?b.getValueAtTime=expressionHelpers.getValueAtTime.bind(b):b.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(b),b.setGroupProperty=expressionHelpers.setGroupProperty,b.loopOut=e,b.loopIn=n,b.smooth=r,b.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(b),b.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(b),b.numKeys=g.a===1?g.k.length:0,b.propertyIndex=g.ix;var d=0;return v!==0&&(d=createTypedArray("float32",g.a===1?g.k[0].s.length:g.k.length)),b._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:d},expressionHelpers.searchExpressions(h,g,b),b.k&&E.addDynamicProperty(b),b};function l(h){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),h*=this.elem.globalData.frameRate,h-=this.offsetTime,h!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<h?this._caching.lastIndex:0,this._cachingAtTime.lastTime=h,this.interpolateShape(h,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var c=ShapePropertyFactory.getConstructorFunction(),u=ShapePropertyFactory.getKeyframedConstructorFunction();function f(){}f.prototype={vertices:function(g,v){this.k&&this.getValue();var p=this.v;v!==void 0&&(p=this.getValueAtTime(v,0));var E,b=p._length,d=p[g],m=p.v,y=createSizedArray(b);for(E=0;E<b;E+=1)g==="i"||g==="o"?y[E]=[d[E][0]-m[E][0],d[E][1]-m[E][1]]:y[E]=[d[E][0],d[E][1]];return y},points:function(g){return this.vertices("v",g)},inTangents:function(g){return this.vertices("i",g)},outTangents:function(g){return this.vertices("o",g)},isClosed:function(){return this.v.c},pointOnPath:function(g,v){var p=this.v;v!==void 0&&(p=this.getValueAtTime(v,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(p));for(var E=this._segmentsLength,b=E.lengths,d=E.totalLength*g,m=0,y=b.length,A=0,_;m<y;){if(A+b[m].addedLength>d){var k=m,T=p.c&&m===y-1?0:m+1,F=(d-A)/b[m].addedLength;_=bez.getPointInSegment(p.v[k],p.v[T],p.o[k],p.i[T],F,b[m]);break}else A+=b[m].addedLength;m+=1}return _||(_=p.c?[p.v[0][0],p.v[0][1]]:[p.v[p._length-1][0],p.v[p._length-1][1]]),_},vectorOnPath:function(g,v,p){g==1?g=this.v.c:g==0&&(g=.999);var E=this.pointOnPath(g,v),b=this.pointOnPath(g+.001,v),d=b[0]-E[0],m=b[1]-E[1],y=Math.sqrt(Math.pow(d,2)+Math.pow(m,2));if(y===0)return[0,0];var A=p==="tangent"?[d/y,m/y]:[-m/y,d/y];return A},tangentOnPath:function(g,v){return this.vectorOnPath(g,v,"tangent")},normalOnPath:function(g,v){return this.vectorOnPath(g,v,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([f],c),extendPrototype([f],u),u.prototype.getValueAtTime=l,u.prototype.initiateExpression=ExpressionManager.initiateExpression;var x=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(h,g,v,p,E){var b=x(h,g,v,p,E);return b.propertyIndex=g.ix,b.lock=!1,v===3?expressionHelpers.searchExpressions(h,g.pt,b):v===4&&expressionHelpers.searchExpressions(h,g.ks,b),b.k&&h.addDynamicProperty(b),b}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function e(){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(n,r){var i=this.calculateExpression(r);if(n.t!==i){var a={};return this.copyData(a,n),a.t=i.toString(),a.__complete=!1,a}return n},TextProperty.prototype.searchProperty=function(){var n=this.searchKeyframes(),r=this.searchExpressions();return this.kf=n||r,this.kf},TextProperty.prototype.searchExpressions=e}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function e(n,r){var i=createNS("feMerge");i.setAttribute("result",n);var a,o;for(o=0;o<r.length;o+=1)a=createNS("feMergeNode"),a.setAttribute("in",r[o]),i.appendChild(a),i.appendChild(a);return i}};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(e,n,r,i,a){this.filterManager=n;var o=createNS("feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","linearRGB"),o.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=o,o.setAttribute("result",i+"_tint_1"),e.appendChild(o),o=createNS("feColorMatrix"),o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),o.setAttribute("result",i+"_tint_2"),e.appendChild(o),this.matrixFilter=o;var s=this.createMergeNode(i,[a,i+"_tint_1",i+"_tint_2"]);e.appendChild(s)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var n=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+i+" 0"),this.matrixFilter.setAttribute("values",r[0]-n[0]+" 0 0 0 "+n[0]+" "+(r[1]-n[1])+" 0 0 0 "+n[1]+" "+(r[2]-n[2])+" 0 0 0 "+n[2]+" 0 0 0 1 0")}};function SVGFillFilter(e,n,r,i){this.filterManager=n;var a=createNS("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),a.setAttribute("result",i),e.appendChild(a),this.matrixFilter=a}SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var n=this.filterManager.effectElements[2].p.v,r=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+n[0]+" 0 0 0 0 "+n[1]+" 0 0 0 0 "+n[2]+" 0 0 0 "+r+" 0")}};function SVGStrokeEffect(e,n,r){this.initialized=!1,this.filterManager=n,this.elem=r,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var e=this.elem.layerElement.children||this.elem.layerElement.childNodes,n,r,i,a;for(this.filterManager.effectElements[1].p.v===1?(a=this.elem.maskManager.masksProperties.length,i=0):(i=this.filterManager.effectElements[0].p.v-1,a=i+1),r=createNS("g"),r.setAttribute("fill","none"),r.setAttribute("stroke-linecap","round"),r.setAttribute("stroke-dashoffset",1),i;i<a;i+=1)n=createNS("path"),r.appendChild(n),this.paths.push({p:n,m:i});if(this.filterManager.effectElements[10].p.v===3){var o=createNS("mask"),s=createElementID();o.setAttribute("id",s),o.setAttribute("mask-type","alpha"),o.appendChild(r),this.elem.globalData.defs.appendChild(o);var l=createNS("g");for(l.setAttribute("mask","url("+getLocationHref()+"#"+s+")");e[0];)l.appendChild(e[0]);this.elem.layerElement.appendChild(l),this.masker=o,r.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(e=this.elem.layerElement.children||this.elem.layerElement.childNodes;e.length;)this.elem.layerElement.removeChild(e[0]);this.elem.layerElement.appendChild(r),this.elem.layerElement.removeAttribute("mask"),r.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=r},SVGStrokeEffect.prototype.renderFrame=function(e){this.initialized||this.initialize();var n,r=this.paths.length,i,a;for(n=0;n<r;n+=1)if(this.paths[n].m!==-1&&(i=this.elem.maskManager.viewData[this.paths[n].m],a=this.paths[n].p,(e||this.filterManager._mdf||i.prop._mdf)&&a.setAttribute("d",i.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||i.prop._mdf)){var o;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var s=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,l=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,c=a.getTotalLength();o="0 0 0 "+c*s+" ";var u=c*(l-s),f=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,x=Math.floor(u/f),h;for(h=0;h<x;h+=1)o+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";o+="0 "+c*10+" 0 0"}else o="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;a.setAttribute("stroke-dasharray",o)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(e||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)&&(e||this.filterManager.effectElements[3].p._mdf)){var g=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(g[0]*255)+","+bmFloor(g[1]*255)+","+bmFloor(g[2]*255)+")")}};function SVGTritoneFilter(e,n,r,i){this.filterManager=n;var a=createNS("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","linearRGB"),a.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"),e.appendChild(a);var o=createNS("feComponentTransfer");o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",i),this.matrixFilter=o;var s=createNS("feFuncR");s.setAttribute("type","table"),o.appendChild(s),this.feFuncR=s;var l=createNS("feFuncG");l.setAttribute("type","table"),o.appendChild(l),this.feFuncG=l;var c=createNS("feFuncB");c.setAttribute("type","table"),o.appendChild(c),this.feFuncB=c,e.appendChild(o)}SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var n=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v,a=i[0]+" "+r[0]+" "+n[0],o=i[1]+" "+r[1]+" "+n[1],s=i[2]+" "+r[2]+" "+n[2];this.feFuncR.setAttribute("tableValues",a),this.feFuncG.setAttribute("tableValues",o),this.feFuncB.setAttribute("tableValues",s)}};function SVGProLevelsFilter(e,n,r,i){this.filterManager=n;var a=this.filterManager.effectElements,o=createNS("feComponentTransfer");(a[10].p.k||a[10].p.v!==0||a[11].p.k||a[11].p.v!==1||a[12].p.k||a[12].p.v!==1||a[13].p.k||a[13].p.v!==0||a[14].p.k||a[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",o)),(a[17].p.k||a[17].p.v!==0||a[18].p.k||a[18].p.v!==1||a[19].p.k||a[19].p.v!==1||a[20].p.k||a[20].p.v!==0||a[21].p.k||a[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",o)),(a[24].p.k||a[24].p.v!==0||a[25].p.k||a[25].p.v!==1||a[26].p.k||a[26].p.v!==1||a[27].p.k||a[27].p.v!==0||a[28].p.k||a[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",o)),(a[31].p.k||a[31].p.v!==0||a[32].p.k||a[32].p.v!==1||a[33].p.k||a[33].p.v!==1||a[34].p.k||a[34].p.v!==0||a[35].p.k||a[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",o)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(o.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(o)),(a[3].p.k||a[3].p.v!==0||a[4].p.k||a[4].p.v!==1||a[5].p.k||a[5].p.v!==1||a[6].p.k||a[6].p.v!==0||a[7].p.k||a[7].p.v!==1)&&(o=createNS("feComponentTransfer"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",i),e.appendChild(o),this.feFuncRComposed=this.createFeFunc("feFuncR",o),this.feFuncGComposed=this.createFeFunc("feFuncG",o),this.feFuncBComposed=this.createFeFunc("feFuncB",o))}SVGProLevelsFilter.prototype.createFeFunc=function(e,n){var r=createNS(e);return r.setAttribute("type","table"),n.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(e,n,r,i,a){for(var o=0,s=256,l,c=Math.min(e,n),u=Math.max(e,n),f=Array.call(null,{length:s}),x,h=0,g=a-i,v=n-e;o<=256;)l=o/256,l<=c?x=v<0?a:i:l>=u?x=v<0?i:a:x=i+g*Math.pow((l-e)/v,1/r),f[h]=x,h+=1,o+=256/(s-1);return f.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var n,r=this.filterManager.effectElements;this.feFuncRComposed&&(e||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(n=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",n),this.feFuncGComposed.setAttribute("tableValues",n),this.feFuncBComposed.setAttribute("tableValues",n)),this.feFuncR&&(e||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(n=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",n)),this.feFuncG&&(e||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(n=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",n)),this.feFuncB&&(e||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(n=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",n)),this.feFuncA&&(e||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(n=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",n))}};function SVGDropShadowEffect(e,n,r,i,a){var o=n.container.globalData.renderConfig.filterSize,s=n.data.fs||o;e.setAttribute("x",s.x||o.x),e.setAttribute("y",s.y||o.y),e.setAttribute("width",s.width||o.width),e.setAttribute("height",s.height||o.height),this.filterManager=n;var l=createNS("feGaussianBlur");l.setAttribute("in","SourceAlpha"),l.setAttribute("result",i+"_drop_shadow_1"),l.setAttribute("stdDeviation","0"),this.feGaussianBlur=l,e.appendChild(l);var c=createNS("feOffset");c.setAttribute("dx","25"),c.setAttribute("dy","0"),c.setAttribute("in",i+"_drop_shadow_1"),c.setAttribute("result",i+"_drop_shadow_2"),this.feOffset=c,e.appendChild(c);var u=createNS("feFlood");u.setAttribute("flood-color","#00ff00"),u.setAttribute("flood-opacity","1"),u.setAttribute("result",i+"_drop_shadow_3"),this.feFlood=u,e.appendChild(u);var f=createNS("feComposite");f.setAttribute("in",i+"_drop_shadow_3"),f.setAttribute("in2",i+"_drop_shadow_2"),f.setAttribute("operator","in"),f.setAttribute("result",i+"_drop_shadow_4"),e.appendChild(f);var x=this.createMergeNode(i,[i+"_drop_shadow_4",a]);e.appendChild(x)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var n=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(n[0]*255),Math.round(n[1]*255),Math.round(n[2]*255)))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var r=this.filterManager.effectElements[3].p.v,i=(this.filterManager.effectElements[2].p.v-90)*degToRads,a=r*Math.cos(i),o=r*Math.sin(i);this.feOffset.setAttribute("dx",a),this.feOffset.setAttribute("dy",o)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,n,r){this.initialized=!1,this.filterManager=n,this.filterElem=e,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}SVGMatte3Effect.prototype.findSymbol=function(e){for(var n=0,r=_svgMatteSymbols.length;n<r;){if(_svgMatteSymbols[n]===e)return _svgMatteSymbols[n];n+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,n){var r=e.layerElement.parentNode;if(r){for(var i=r.children,a=0,o=i.length;a<o&&i[a]!==e.layerElement;)a+=1;var s;a<=o-2&&(s=i[a+1]);var l=createNS("use");l.setAttribute("href","#"+n),s?r.insertBefore(l,s):r.appendChild(l)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,n){if(!this.findSymbol(n)){var r=createElementID(),i=createNS("mask");i.setAttribute("id",n.layerId),i.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(n);var a=e.globalData.defs;a.appendChild(i);var o=createNS("symbol");o.setAttribute("id",r),this.replaceInParent(n,r),o.appendChild(n.layerElement),a.appendChild(o);var s=createNS("use");s.setAttribute("href","#"+r),i.appendChild(s),n.data.hd=!1,n.show()}e.setMatte(n.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,n=this.elem.comp.elements,r=0,i=n.length;r<i;)n[r]&&n[r].data.ind===e&&this.setElementAsMask(this.elem,n[r]),r+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(e,n,r,i){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=n;var a=createNS("feGaussianBlur");a.setAttribute("result",i),e.appendChild(a),this.feGaussianBlur=a}SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var n=.3,r=this.filterManager.effectElements[0].p.v*n,i=this.filterManager.effectElements[1].p.v,a=i==3?0:r,o=i==2?0:r;this.feGaussianBlur.setAttribute("stdDeviation",a+" "+o);var s=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",s)}};function TransformEffect(){}TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var n=this.effectsManager.effectElements,r=n[0].p.v,i=n[1].p.v,a=n[2].p.v===1,o=n[3].p.v,s=a?o:n[4].p.v,l=n[5].p.v,c=n[6].p.v,u=n[7].p.v;this.matrix.reset(),this.matrix.translate(-r[0],-r[1],r[2]),this.matrix.scale(s*.01,o*.01,1),this.matrix.rotate(-u*degToRads),this.matrix.skewFromAxis(-l*degToRads,(c+90)*degToRads),this.matrix.translate(i[0],i[1],0),this._mdf=!0,this.opacity!==n[8].p.v&&(this.opacity=n[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(e,n){this.init(n)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(e){this.init(e)}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(e){const n=usePickComponentStyle(e),r=vue.computed(()=>useImagePath(e.imgUrl)),{pageMode:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),a=vue.computed(()=>{const v={},{actionType:p,linkPage:E,href:b}=e,{requestParams:d={}}=window.config;return vue.unref(i)!=="design"&&p==="close"&&e.isDrillShow&&!d.drillFlag&&(v.display="none"),(p==="link"&&(E||b)||!p&&(E||b)||p==="close")&&(v.cursor="pointer"),{...vue.unref(n),...v}}),{getGlobalModel:o,setGlobalModel:s,getRecordValueByKeyName:l}=vue.inject(GLOBAL_MODEL,{getGlobalModel:v=>{},setGlobalModel:(v,p)=>{},getRecordValueByKeyName:v=>{}}),{setTemplateData:c}=vue.inject("templateOperate",{setTemplateData:v=>{}}),f=useEmitEvent(e)("click",()=>{const v=o(e.id);if(s(e.id,{...v,type:e.type,RECORD:e.data||{}}),setTimeout(()=>{s(e.id,{...v,type:e.type,RECORD:{}})},0),[void 0,"link"].includes(e.actionType)){if(!e.linkPage&&!e.href)return;handleJumpLink(e,{pageMode:vue.unref(i),targetTemplate:e.targetTemplate,getRecordValueByKeyName:l,setTemplateData:c})}else e.actionType==="close"&&window.close()}),x=vue.ref(),h=vue.ref(),g=()=>{const{directory:v}=e.animationSource;e.isAnimation&&x.value&&v&&(h.value=lottie.loadAnimation({name:`${e.keyName}-lotTie`,container:x.value,renderer:"svg",loop:!0,autoplay:!0,path:useImagePath(v)+"data.json"}),vue.unref(h).setSpeed(1))};return vue.watch(()=>[e.isAnimation,e.animationSource],([v])=>{v&&vue.nextTick(()=>{g()})},{immediate:!0,deep:!0}),useOnEvent(e,{click:f}),{customStyle:a,myImgUrl:r,animation:x,pageMode:i,onClick:f}}}),__injectCSSVars__$1=()=>{vue.useCssVars(e=>({"8d74eefa":e.isHoverStyle?"pointer":"auto","7ff7bf46":e.isHoverStyle?"0.6":"1"}))},__setup__$1=__default__$1.setup;__default__$1.setup=__setup__$1?(e,n)=>(__injectCSSVars__$1(),__setup__$1(e,n)):__injectCSSVars__$1;const Image_vue_vue_type_style_index_0_scoped_8b128e89_lang="",_hoisted_1$3=["src"];function _sfc_render$6(e,n,r,i,a,o){var s;return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[e.isAnimation?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[e.animationSource.directory?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["ecan-image",e.pageMode==="design"?"component":""]),ref:"animation",style:vue.normalizeStyle(e.customStyle),onClick:n[0]||(n[0]=(...l)=>e.onClick&&e.onClick(...l))},null,6)):vue.createCommentVNode("",!0)],64)):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[e.myImgUrl!==""?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:vue.normalizeClass(["ecan-image",e.pageMode==="design"?"component":""]),style:vue.normalizeStyle(e.customStyle),src:e.myImgUrl,onClick:n[1]||(n[1]=(...l)=>e.onClick&&e.onClick(...l))},null,14,_hoisted_1$3)):vue.createCommentVNode("",!0)],64)),(e.isAnimation?!((s=e.animationSource)!=null&&s.directory):!e.myImgUrl)?(vue.openBlock(),vue.createElementBlock("div",{key:2,class:vue.normalizeClass(["image-placeholder",e.pageMode==="design"?"component":""]),style:vue.normalizeStyle(e.customStyle)}," 请上传图片 ",6)):vue.createCommentVNode("",!0)],64)}const Image$1=_export_sfc$1(__default__$1,[["render",_sfc_render$6],["__scopeId","data-v-8b128e89"]]),EcanImage=withInstall$1(Image$1),iframeProps={...props,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web",transParams:[]},iframeComponentProps=transformToComponentProps(iframeProps),_sfc_main$4=vue.defineComponent({name:"EcanIframe",props:{...iframeComponentProps},setup(e){const n=usePickComponentStyle(e),{contextRequestUrl:r}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:""}),{getRecordValueByKeyName:i}=vue.inject(GLOBAL_MODEL,{getRecordValueByKeyName:o=>{}}),a=vue.computed(()=>{var s;let o=useVariablesInText(e.link);if(e.linkType==="erd"&&o!=null){let l=vue.unref(r);l[l.length-1]==="/"?l+="erdReport":l+="/erdReport",o=`${ERD_URL||l}?_t=0&uid=${o}`}if((s=e.transParams)!=null&&s.length){o.includes("?")?o+="&":o+="?";const l=[];for(const c of e.transParams){const u=i(String(c.fieldName));l.push(`${c.keyName}=${u}`)}o+=l.join("&")}return o});return{style:n,myLink:a}}}),Iframe_vue_vue_type_style_index_0_scoped_06253280_lang="",_hoisted_1$2=["src"];function _sfc_render$5(e,n,r,i,a,o){return e.myLink?(vue.openBlock(),vue.createElementBlock("iframe",{key:0,src:e.myLink,style:vue.normalizeStyle(e.style)},null,12,_hoisted_1$2)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"iframe-placeholder",style:vue.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const Iframe=_export_sfc$1(_sfc_main$4,[["render",_sfc_render$5],["__scopeId","data-v-06253280"]]),EcanIframe=withInstall$1(Iframe),tableProps={...props,zIndex:2,name:"表格",keyName:"表格",type:"ecanTable",width:"400px",height:"240px",bordered:!1,headerFontSize:"14px",headerFontColor:"",fontSize:"14px",isUseSeq:!1,size:"default",headerFontWeight:400,isUseExport:!1,fontWeight:400,columnsFixedNum:0,scrollX:0,paginationShow:!0,isReverse:!1,simple:!1,pageSizeShow:!1,cellBackgroundColor:"",cellFontColor:"",headerBackgroundColor:"",borderColor:"",paginationPosition:"bottomRight",paginationPageSize:10,isUseAction:!1,clickHighlight:!1,filterDropdownHeight:"200px",actionList:[{title:"",href:"",target:"",color:""}],actionColumnWidth:100,columns:[{title:"姓名",dataIndex:"name"},{title:"年龄",dataIndex:"age"},{title:"住址",dataIndex:"address"}],data:[{name:"小明",age:32,address:"福州软件园"},{name:"小红",age:25,address:"福州软件园"}],graphicConfig:{},stripedShow:!1,stripedColor:"#fafafa",isGroupTable:!1,seqWidth:"10%",seqName:"序号",seqIcon:!1,isSummaryFixed:!1,isPageBottom:!1,isShowTotal:!1,hideTableHeader:!1,paginationColor:"",paginationBgColor:"",activePaginationColor:"",activePaginationBgColor:"",hoverBackgroundColor:"",subTotalColumn:"",subTotalName:"小计",isSortByFront:!1,transParams:[],linkPage:"",target:"self",href:"",isAutoScroll:!1,scrollSpeed:10,clickTarget:"row",clickTargetColumns:[],linkTextColor:""},tableComponentProps=transformToComponentProps(tableProps),tableEvents=["click","refreshData","resetRecord","exportTableData"],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(e,{expose:n}){const{pageMode:r}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),i=vue.ref(!1),a=vue.computed(()=>vue.unref(r)!=="design"&&e.isAutoScroll),o=vue.ref({}),s=vue.ref(!1),l=vue.computed(()=>{const X=lodashEs.cloneDeep(e.columns);return e.isUseSeq&&X.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&X.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),X}),c=vue.ref(),u=vue.ref(!1),f=usePickComponentStyle(e),x=vue.ref([]),h=vue.computed(()=>e.scrollX),g=vue.ref(parseFloat(e.height)),v=()=>{let X=0;switch(e.size){case"small":X=50;break;case"middle":X=53;break;default:X=65;break}return X},p=vue.ref(0),E=vue.ref(""),b=vue.ref(0);vue.watchEffect(()=>{var X;(X=x.value)!=null&&X.length&&e.height&&setTimeout(()=>{let ne=parseFloat(e.height),ie=document.querySelector(`#ecanTable-${e.id} .ant-table-tbody`),ce=document.querySelector(`#ecanTable-${e.id} thead.ant-table-thead`);const le=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`);let ue=0;if(ce&&(ne-=(ce==null?void 0:ce.clientHeight)||0),le&&e.isSummaryFixed&&(ue=(le==null?void 0:le.clientHeight)||0,ne-=ue),e.paginationShow&&!e.isAutoScroll){let oe=0;oe=v(),oe&&(ne-=oe)}(ie==null?void 0:ie.clientHeight)>ne?g.value=ne:g.value=0,vue.nextTick(()=>{if(ue){const oe=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`),pe=(oe==null?void 0:oe.clientHeight)||0;ue!==pe&&vue.unref(g)&&(g.value=ne+ue-pe)}e.isAutoScroll&&i.value&&setTimeout(()=>{var be;const oe=document.querySelector(`#ecanTable-${e.id} .ant-table-body`);ie=document.querySelector(`#ecanTable-${e.id} .ant-table-tbody`),ce=document.querySelector(`#ecanTable-${e.id} thead.ant-table-thead`);const pe=oe||ie;p.value=(pe==null?void 0:pe.clientHeight)||0,b.value=(ce==null?void 0:ce.clientHeight)||0,o.value={height:((ie==null?void 0:ie.clientHeight)||0)+"px"};const xe=document.querySelector(`#ecanTable-${e.id} .ant-table-body > table`);if(E.value=(be=document.querySelector(`#ecanTable-${e.id} .ant-table`))==null?void 0:be.className,xe){const Te=xe.cloneNode(!0);xe.style.visibility="hidden",setTimeout(()=>{pe==null||pe.setAttribute("id","hiddenTableBody")},0);const Le=document.querySelectorAll(`#ecanTable-${e.id} .scroll-wrap`);if(Le!=null&&Le.length){for(const Ue of Le)Ue.append(Te.cloneNode(!0));const Ge=document.querySelectorAll(`#ecanTable-${e.id} .scroll-wrap .ant-table-cell`);if(Ge!=null&&Ge.length)for(const Ue of Ge)d(Ue);const We=document.querySelector(`#ecanTable-${e.id} .vue3-marquee`);We&&We.addEventListener("scroll",Ue=>{var Ke;document.querySelector(`#ecanTable-${e.id} .ant-table-header`).scrollLeft=((Ke=Ue==null?void 0:Ue.target)==null?void 0:Ke.scrollLeft)||0})}}},0)})},0)});function d(X){X.addEventListener("click",ne=>{const ce=m(ne.target).getAttribute("dix");if(ce){const le=document.querySelector(`#ecanTable-${e.id} #hiddenTableBody td[dix="${ce}"]`);le&&le.click()}})}function m(X){return X.className.includes("ant-table-cell")?X:m(X.parentElement)}const y=vue.ref([]),A=vue.ref([]),_=vue.ref([]),k=vue.ref([]),T=vue.ref(0),F=vue.ref(1),M=vue.ref(e.paginationPageSize||10),B=vue.reactive([]),L=(X,ne)=>{let ie="";return X.forEach((ce,le)=>{const{value:ue,rule:oe}=ce;ce.conditions?ie+=`(${L(ce.conditions,ce.join)})`:ue&&oe&&(ie+=`value ${oe} '${ue}'`),ie+=`${le===X.length-1?"":ne?" "+ne+" ":""}`}),ie},R=(X=[])=>{var ne,ie;if(Array.isArray(X)&&X.length>0){let ce=X.length;const le=e.columnsFixedNum;if(e.dataType==="indicator"&&((ne=vue.unref(l))!=null&&ne.length)&&!vue.unref(l).find(ue=>{var oe;return(oe=ue.children)==null?void 0:oe.length})){const{graphicConfig:{indicators:ue=[]}}=e;X.forEach((oe,pe)=>{if(vue.unref(l)[pe])for(const Te in vue.unref(l)[pe])["dataIndex","title"].includes(Te)||(oe[Te]=vue.unref(l)[pe][Te]);const xe=ue.find(Te=>Te.label===oe.title),{showLabel:be=""}=xe||{};be&&(oe.title=be)})}for(let ue=ce-1;ue>=0;ue--)(ie=X[ue])!=null&&ie.isHidden&&X.splice(ue,1);ce=X.length;for(let ue=0;ue<ce;ue++){const oe=X[ue];if(ue<le?oe.fixed="left":oe.fixed=!1,e.isSortByFront&&oe.sorter){const Ye=oe.dataIndex;oe.sorter=(Je,Xe)=>Je[Ye]-Xe[Ye]}const{cellAlign:pe="center",cellColor:xe,dataIndex:be,title:Te,tableFilter:Le,headerCellAlign:Ge,headerCellColor:We,overflow:Ue,conditions:Ke}=oe;Le&&(B.push(be),oe.filterOptionsInputValue="",oe.filterCheckboxGroupValue=[],oe.customFilterDropdown=!0,oe.onFilter=(Ye,Je)=>Je[be].toString().toLowerCase().includes(Ye.toLowerCase())),Ke&&(oe.conditionCode=L(Ke)),oe.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:Ge||"center",color:We||e.headerFontColor,borderBottomColor:e.borderColor,backgroundColor:e.headerBackgroundColor}}),oe.customCell=(Ye,Je,Xe)=>({style:{textAlign:pe,color:H(Xe)?e.linkTextColor:xe||e.cellFontColor,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:vue.unref(fe)===Je&&e.clickHighlight,linkText:H(Xe)},dix:Xe.dataIndex+"_"+Je,onClick:ee("click",()=>{const tt=e.id,rt=Z(tt);Ye={dataIndex:be,title:Te,...Ye},W(tt,{...rt,type:e.type,RECORD:Ye}),fe.value=Je,setTimeout(()=>{if(!e.linkPage&&!e.href)return;let nt=!1;(H(Xe)||e.clickTarget!=="cell")&&(nt=!0),nt&&handleJumpLink(e,{pageMode:vue.unref(r),getRecordValueByKeyName:Q})},0)})}),Ue==="ellipsis"?oe.ellipsis=!0:oe.ellipsis=!1,Array.isArray(oe.children)&&R(oe.children)}}};function H(X){let ne=!1;return e.clickTarget==="cell"&&e.clickTargetColumns.includes(X.dataIndex)&&(ne=!0),ne}const V=(X=[])=>{var ie;let ne=lodashEs.cloneDeep(X);return(ie=vue.unref(k))!=null&&ie.length&&(ne=lodashEs.cloneDeep(vue.unref(k))),e.isUseSeq&&ne.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&ne.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),R(ne),ne};vue.watch(M,()=>{F.value=1,ye(!1)}),vue.watch(c,X=>{u.value=!!X}),vue.watch(()=>[e.columns,e.isUseSeq,e.seqWidth,e.seqName,e.seqIcon,e.isUseAction,e.columnsFixedNum,e.actionColumnWidth,e.cellBackgroundColor,e.headerBackgroundColor,e.borderColor,e.stripedColor],()=>{y.value=V(lodashEs.cloneDeep(e.columns))},{immediate:!0,deep:!0}),vue.watch(()=>[e.data,e.dataType],([X,ne])=>{ne==="static"&&(A.value=X)},{immediate:!0});const P=vue.ref({}),I=X=>{if(Array.isArray(X)){const ne=X.length,ie=B,ce=ie.length,le={};for(let oe=0;oe<ne;oe++){const pe=X[oe];for(let xe=0;xe<ce;xe++){const be=ie[xe];if(le[be])le[be].add(pe[be]);else{const Te=new Set;Te.add(pe[be]),le[be]=Te}}}const ue={};for(const oe in le)if(Object.prototype.hasOwnProperty.call(le,oe)){const pe=le[oe],xe=Array.from(pe);ue[oe]=xe.map(be=>({label:be,value:be}))}P.value=ue}};vue.watch(()=>[e.isReverse,y.value,A.value],()=>{const X=vue.unref(y),ne=vue.unref(A);if(I(ne),e.isReverse){const{columns:ie,dataSource:ce}=S(lodashEs.cloneDeep(X),lodashEs.cloneDeep(ne));_.value=ie,x.value=ce.map(le=>({key:nanoid(6),...le}))}else _.value=X,x.value=ne.map(ie=>({key:nanoid(6),...ie}))},{immediate:!0});const S=(X,ne)=>{const ie=X[0],ce=[{title:ie.title,dataIndex:"col0",key:"col0",align:"center"}];for(let ue=0;ue<ne.length;ue++){const oe=ne[ue],pe="col"+(ue+1);ce.push({title:oe[ie.dataIndex],dataIndex:pe,key:pe,align:"center"})}const le=[];for(let ue=1;ue<X.length;ue++){const oe=X[ue],pe={col0:oe.title};for(let xe=0;xe<ne.length;xe++){const be=ne[xe];pe[`col${xe+1}`]=be[oe.dataIndex]}le.push(pe)}return{columns:ce,dataSource:le}},C=vue.ref(""),N=X=>{var ce;const{rows:ne=[],total:ie=0}=((ce=X==null?void 0:X.data)==null?void 0:ce.data)||{};if(T.value=ie,Array.isArray(ne)&&(A.value=ne),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:le=[]}=e,ue=le.find(oe=>oe.key==="dataSqlId");if((ue==null?void 0:ue.value)==="xt_jxzebg"){const oe=ne.filter(pe=>!pe.绩效总额).map(pe=>pe.ORG_NAME);oe!=null&&oe.length&&vue.nextTick(()=>{antDesignVue.notification.warning({message:"提示",description:`当前时段${oe.join("、")}绩效数据为空`,duration:3})})}}i.value=!0},w=useRequestData(e),q=async(X=!0,ne={})=>{try{X&&(s.value=!0),vue.unref(C)&&(ne.orderCondition=vue.unref(C)),e.paginationShow&&(ne={pageNum:vue.unref(F),pageSize:vue.unref(M)||"10",layer:"1",...ne});const ie=await w(ne);N(ie)}catch(ie){console.error(ie)}finally{s.value=!1}},O=({current:X},ne,ie)=>{if(F.value=X,ie&&Object.keys(ie).length>0){const{field:ce,order:le}=ie,oe={ascend:"asc",descend:"desc"}[le];ce!=null&&oe!=null&&oe?C.value=ce+" "+oe:oe||(C.value="")}e.isSortByFront||ye(!1)},D=vue.computed(()=>{const X=e.simple,ne=[e.paginationPosition],ie={};return e.isShowTotal&&(ie.showTotal=ce=>`共 ${ce} 条数据`),e.paginationShow&&{simple:X,position:ne,total:vue.unref(T),current:vue.unref(F),pageSize:vue.unref(M)||"10",showSizeChanger:!1,size:"large",...ie}}),$=X=>+X==1?"是":+X==0?"否":X,U=(X,ne)=>{const{format:ie,retentiondigit:ce,customFormatter:le,defaultVal:ue}=ne;let oe="";if(ie==null||ie==="")oe=X;else{const pe={money:formatMoney,percentage:formatPercentage,contrast:formatPercentage,boolean:$,decimals:formatDecimals,custom:formatCustom};pe[ie]||(oe=""),ie==="decimals"?oe=pe[ie](X,ce)||"":ie==="custom"?oe=pe[ie](X,le)||"":oe=pe[ie](X)||""}return oe||(oe=ue),oe},j=X=>X==="contrast"?"upDown":"",K=X=>{const{text:ne,format:ie,declineColor:ce="#39cf93",increaseColor:le="#ff512e"}=X;if(ie==="contrast"){const ue={fontSize:e.fontSize},oe=parseFloat(ne+"");return oe>=0?ue.color=le:oe<0&&(ue.color=ce),ue}else return{}},G=vue.computed(()=>{const{fontSize:X}=e;return{width:X,height:X,textIndent:`-${parseFloat(X)*2}px`,overflow:"hidden"}}),Y=X=>{const{text:ne,declineColor:ie="#39cf93",increaseColor:ce="#ff512e"}=X,{fontSize:le}=e,ue=parseFloat(ne+""),oe={width:le,verticalAlign:"unset"};return ue>=0?oe.filter=`drop-shadow(${ce||"#ff512e"} ${le} -1px)`:ue<0&&(oe.filter=`drop-shadow(${ie||"#39cf93"} ${le} -1px)`),oe},J=X=>{const ne=parseFloat(X+"");if(ne>=0)return goUp;if(ne<0)return goDown},ee=useEmitEvent(e),{getGlobalModel:Z,setGlobalModel:W,getRecordValueByKeyName:Q}=vue.inject(GLOBAL_MODEL,{getGlobalModel:X=>{},setGlobalModel:(X,ne)=>{},getRecordValueByKeyName:X=>{}});W(e.id,{type:e.type,RECORD:""});const te=(X=[],ne=[])=>{let ie=X.map(ce=>({title:ce,dataIndex:ce,key:ce}));vue.unref(l).find(ce=>{var le;return(le=ce.children)==null?void 0:le.length})&&(ie=lodashEs.cloneDeep(vue.unref(l))),k.value=lodashEs.cloneDeep(ie),y.value=V(ie),A.value=ne,i.value=!0},re=X=>{var ne,ie,ce,le;te((ie=(ne=X==null?void 0:X.data)==null?void 0:ne.data)==null?void 0:ie.columns,(le=(ce=X==null?void 0:X.data)==null?void 0:ce.data)==null?void 0:le.rows)},ae=useIndicatorData(e,re),se=async(X=!0)=>{try{X&&(s.value=!0);const ne=vue.unref(C).split(" "),ie={};e.isSortByFront||(ie.sort={order:ne[1],field:ne[0]});const ce=await ae(ie);re(ce)}catch(ne){console.error(ne)}finally{s.value=!1}},fe=vue.ref(-1),{loadedData:he}=vue.inject(LOADED_DATA,{loadedData:{}}),ge=vue.ref(!1);vue.watch(he,X=>{if(e.dataType==="indicator"){const ne=getFixedValueDatas(e.graphicConfig);ne!=null&&ne.length&&(!vue.unref(ge)&&canRequestIndicator(e.graphicConfig,X)?(ge.value=!0,ye()):canRequestIndicator(e.graphicConfig,X)||(ge.value=!1))}},{deep:!0});const ye=(X=!0)=>{switch(e.dataType){case"request":q(X);break;case"indicator":canRequestIndicator(e.graphicConfig,vue.unref(he))&&se(X);break}},Ee=()=>{const X=e.id,ne=Z(X);W(X,{...ne,type:e.type,RECORD:""})},De=vue.computed(()=>{const X=vue.unref(_);let ne=0;const{subTotalColumn:ie,subTotalName:ce}=e;ie&&(ne=X.findIndex(xe=>xe.dataIndex===ie),ne<0&&(ne=0));const le=[];let ue=0;for(let xe=0;xe<X.length;xe++){const be=X[xe],{isCalcTotal:Te}=be;xe===ne?le.push({...be,total:ce}):Te?(le.push({...be,index:xe,total:0}),ue++):le.push({...be})}if(ue===0)return[];const oe=vue.unref(x),pe=Ce(le);for(let xe=0;xe<pe.length;xe++){const be=pe[xe];let Te=0;const{isCalcTotal:Le,dataIndex:Ge}=be;if(Le===!0){for(let We=0;We<oe.length;We++){const Ke=+oe[We][Ge];isNaN(Ke)||(Te=new big_js.Big(Te).add(Ke).toNumber())}be.total=Te}}return pe});function Ce(X){var ie;const ne=[];for(const ce of X)(ie=ce.children)!=null&&ie.length?ne.push(...Ce(ce.children)):ne.push(ce);return ne}const{setRequest:Ie}=vue.inject(REQUEST_MODEL,{setRequest:X=>{}});typeof Ie=="function"&&Ie({id:e.id,requestFn:ye,sortNum:e.requestSort}),n({refreshData:ye});const He=(X="",ne)=>useVariablesInText(X,ne),qe=X=>{if(X!=="event")return{self:"_self",blank:"_blank"}[X]},$e=(X,ne="")=>{X==="event"&&window.parent.postMessage({type:"openPage",url:ne},"*")},je=(X,ne)=>{X(ne.filterCheckboxGroupValue)},de=(X,ne)=>{X({confirm:!0}),ne.filterOptionsInputValue="",ne.filterCheckboxGroupValue=[]},me=()=>{},ve=X=>{const ne=X.dataIndex;if(typeof ne=="string"){let ie=vue.unref(P)[ne];const ce=vue.unref(X.filterOptionsInputValue).trim();return Array.isArray(ie)?(ie=ie.filter(le=>typeof le.label=="string"?le.label.toLowerCase().includes(ce.toLowerCase()):!0),ie):[]}return[]},Ae=async()=>{var be,Te;const X="EXPORT_KEY";antDesignVue.message.loading({key:X,content:"正在导出...",duration:0});let ne=[];if(e.dataType==="static")ne=e.data;else if(e.dataType==="request"){const Le={layer:"1"};vue.unref(C)&&(Le.orderCondition=vue.unref(C));const Ge=await w(Le);ne=((Te=(be=Ge==null?void 0:Ge.data)==null?void 0:be.data)==null?void 0:Te.rows)||{}}const ie=vue.unref(_),ce=[],le=[];ie==null||ie.forEach(Le=>{ce.push(Le.dataIndex),le.push(Le.title)});const ue=ne.map(Le=>lodashEs.pick(Le,ce)),oe=xlsx.utils.book_new(),pe=xlsx.utils.aoa_to_sheet([le]),xe=xlsx.utils.sheet_add_json(pe,ue,{skipHeader:!0,origin:"A2"});xlsx.utils.book_append_sheet(oe,xe,"sheet"),xlsx.writeFile(oe,"表格数据.xlsx"),antDesignVue.message.success({key:X,content:"导出成功"})},_e=(X,ne=2)=>{const ie=+X*100;return isNaN(ie)||ie<=0?0:ie>=100?100:ie.toFixed(ne)};useOnEvent(e,{resetRecord:Ee,refreshData:ye,exportTableData:Ae});const Oe=(X,ne)=>{let ie=null;return e.stripedShow&&(ie=ne%2===1?"table-striped":null),ie},Se=vue.computed(()=>{let X=0;const{height:ne,isPageBottom:ie}=e;return ie&&ne&&(X=parseFloat(ne)-v()),X?X+"px":"100%"}),Pe=vue.computed(()=>{let X="#071655";return e.headerBackgroundColor&&(X="transparent"),X}),Be=vue.computed(()=>{let X="#071655";return(e.cellBackgroundColor||e.stripedShow&&e.stripedColor)&&(X="transparent"),X}),we=vue.computed(()=>parseFloat(e.fontSize)+16),Re=vue.computed(()=>{let X="";const{paginationColor:ne,paginationBgColor:ie,activePaginationColor:ce,activePaginationBgColor:le,hoverBackgroundColor:ue}=e;return ne&&(X+="p-color "),ie&&(X+="p-bg-color "),ce&&(X+="active-p-color "),le&&(X+="active-p-bg-color "),ue&&(X+="hover-bg-color "),X}),Me=(X,ne)=>{const{conditionCode:ie}=X;return runCode(ie,{value:ne})};return{x:h,y:g,style:f,pagination:D,formatFn:U,contrastClass:j,tableChange:O,summaryList:De,loading:s,onTouchHrefEvent:$e,handleHref:He,handleHrefTarget:qe,useRowIndex:fe,tableColumns:_,tableDataSource:x,useFilterOptions:ve,useSetSelectedKeys:je,onResetFilter:de,onSearchFilterOptions:me,exportTableData:Ae,handleProgressText:_e,pageSizeVisible:u,pageSize:M,tableRef:c,rowClassName:Oe,tableHeight:Se,tableHeaderBgColor:Pe,tableBodyBgColor:Be,getChgStyle:K,chgBoxStyle:G,getChgBoxImgStyle:Y,getChgBoxImgSrc:J,seqIcon1,seqIcon2,seqIcon3,iconSize:we,containerClass:Re,getCellStyle:(X,ne)=>{const{overflow:ie,conditionCode:ce,attribute:le}=X,ue={};return ie==="ellipsis"&&(ue.overflow="hidden",ue.textOverflow="ellipsis"),ce&&(le!=null&&le.color)&&Me(X,ne)&&(ue.color=le.color),le!=null&&le.icon&&(X==null?void 0:X.cellAlign)==="right"&&(ue.display="flex",ue.alignItems="center",ue.justifyContent="flex-end"),ue},isMatchCondition:Me,getAttrImgSrc:X=>{const{attribute:ne}=X;let ie="";return ne!=null&&ne.icon&&(ie=useImagePath(ne.icon)),ie},getAttrImgStyle:X=>{let ne={};return(X==null?void 0:X.cellAlign)==="right"?ne={marginRight:"5px"}:ne={position:"absolute",marginLeft:"5px"},{width:"auto",height:parseFloat(e.fontSize)+6+"px",...ne}},getCellText:(X,ne)=>X||X===0?X:ne==null?void 0:ne.defaultVal,autoScrollHeight:p,autoScrollClass:E,autoScrollTop:b,isScroll:a,scrollWrapStyle:o,isLinkStyle:H}}}),__injectCSSVars__=()=>{vue.useCssVars(e=>({"6ceefd0e":e.stripedColor,"78d8a970":e.tableHeaderBgColor,"070f3c7b":e.tableBodyBgColor,"58aa13b7":e.paginationBgColor,"496bbf3c":e.paginationColor,f254f1de:e.activePaginationBgColor,"929f7dd4":e.activePaginationColor,"6b774af4":e.hoverBackgroundColor}))},__setup__=__default__.setup;__default__.setup=__setup__?(e,n)=>(__injectCSSVars__(),__setup__(e,n)):__injectCSSVars__;const Table_vue_vue_type_style_index_0_scoped_6c429f32_lang="",Table_vue_vue_type_style_index_1_lang="",_withScopeId=e=>(vue.pushScopeId("data-v-6c429f32"),e=e(),vue.popScopeId(),e),_hoisted_1$1=["id"],_hoisted_2$1={key:0,class:"table-tool"},_hoisted_3=vue.createTextVNode("导出数据"),_hoisted_4={key:0,style:{float:"left","margin-right":"5px"}},_hoisted_5={key:1,style:{float:"left","margin-right":"5px",visibility:"hidden"}},_hoisted_6=vue.createTextVNode(" 搜索 "),_hoisted_7=vue.createTextVNode(" 重置 "),_hoisted_8=["src","width","height"],_hoisted_9=["src","width","height"],_hoisted_10=["src","width","height"],_hoisted_11={key:1},_hoisted_12={key:1,class:"action-list"},_hoisted_13=["href","target","onClick"],_hoisted_14={key:2,class:"progress-cell"},_hoisted_15=["src"],_hoisted_16=["title"],_hoisted_17=["title"],_hoisted_18=["src"],_hoisted_19=["title"],_hoisted_20=["src"],_hoisted_21=["src"],_hoisted_22={class:"ant-pagination-options-quick-jumper"},_hoisted_23=_withScopeId(()=>vue.createElementVNode("span",null,"条 / 页",-1));function _sfc_render$4(e,n,r,i,a,o){const s=vue.resolveComponent("a-button"),l=vue.resolveComponent("down-outlined"),c=vue.resolveComponent("right-outlined"),u=vue.resolveComponent("a-input"),f=vue.resolveComponent("a-checkbox-group"),x=vue.resolveComponent("a-table-summary-cell"),h=vue.resolveComponent("a-table-summary-row"),g=vue.resolveComponent("a-table-summary"),v=vue.resolveComponent("a-table"),p=vue.resolveComponent("marquee-scroll"),E=vue.resolveComponent("skeleton");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["ecan-table",e.containerClass]),id:"ecanTable-"+e.id,style:vue.normalizeStyle(e.style)},[vue.createVNode(E,{loading:e.loading},{default:vue.withCtx(()=>{var b;return[e.isUseExport?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$1,[vue.createVNode(s,{class:"export-button",onClick:e.exportTableData},{default:vue.withCtx(()=>[_hoisted_3]),_:1},8,["onClick"])])):vue.createCommentVNode("",!0),vue.createVNode(v,{ref:"tableRef",class:"table",style:vue.normalizeStyle({height:e.tableHeight}),columns:e.tableColumns,"data-source":e.tableDataSource,bordered:e.bordered,size:e.size,scroll:e.y?{x:e.x,y:e.y}:{x:e.x},pagination:e.isAutoScroll?!1:e.pagination,"row-class-name":e.rowClassName,"show-header":!e.hideTableHeader,indentSize:30,onChange:e.tableChange},{expandIcon:vue.withCtx(d=>{var m;return[(m=d.record.children)!=null&&m.length?(vue.openBlock(),vue.createElementBlock("span",_hoisted_4,[d.expanded?(vue.openBlock(),vue.createBlock(l,{key:0,onClick:y=>d.onExpand(d.record,y)},null,8,["onClick"])):(vue.openBlock(),vue.createBlock(c,{key:1,onClick:y=>d.onExpand(d.record,y)},null,8,["onClick"]))])):(vue.openBlock(),vue.createElementBlock("span",_hoisted_5,[vue.createVNode(l)]))]}),customFilterDropdown:vue.withCtx(({column:d,selectedKeys:m,setSelectedKeys:y,confirm:A,clearFilters:_})=>[vue.createElementVNode("div",{class:"ecan-table-filter",style:vue.normalizeStyle({height:e.filterDropdownHeight})},[vue.createVNode(u,{value:d.filterOptionsInputValue,"onUpdate:value":k=>d.filterOptionsInputValue=k,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),vue.createVNode(f,{value:d.filterCheckboxGroupValue,"onUpdate:value":k=>d.filterCheckboxGroupValue=k,class:"filter-checkbox",options:e.useFilterOptions(d),onChange:k=>e.useSetSelectedKeys(y,d)},null,8,["value","onUpdate:value","options","onChange"]),vue.createElementVNode("div",null,[vue.createVNode(s,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>A()},{default:vue.withCtx(()=>[_hoisted_6]),_:2},1032,["onClick"]),vue.createVNode(s,{size:"small",style:{width:"90px"},onClick:vue.withModifiers(k=>e.onResetFilter(_,d),["stop"])},{default:vue.withCtx(()=>[_hoisted_7]),_:2},1032,["onClick"])])],4)]),bodyCell:vue.withCtx(({column:d,index:m,text:y,record:A})=>{var _,k,T,F,M,B;return[d.dataIndex==="SEQ"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[e.seqIcon?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[m===0?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon1,width:e.iconSize,height:e.iconSize},null,8,_hoisted_8)):m===1?(vue.openBlock(),vue.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon2,width:e.iconSize,height:e.iconSize},null,8,_hoisted_9)):m>=2?(vue.openBlock(),vue.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon3,width:e.iconSize,height:e.iconSize},null,8,_hoisted_10)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:"seq-icon seq-text",style:vue.normalizeStyle({fontSize:e.fontSize})},vue.toDisplayString(m+1),5)],64)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_11,vue.toDisplayString(m+1),1))],64)):d.dataIndex==="ACTION"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_12,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.actionList,(L,R)=>(vue.openBlock(),vue.createElementBlock("div",{class:"action",key:R},[vue.createElementVNode("a",{href:e.handleHref(L.href,A),target:e.handleHrefTarget(L.target),style:vue.normalizeStyle({color:L.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:H=>e.onTouchHrefEvent(L.target,e.handleHref(L.href,A))},vue.toDisplayString(L.title),13,_hoisted_13)]))),128))])):d.format==="progress"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_14,[vue.createElementVNode("div",{class:"progress",style:vue.normalizeStyle({background:d.progressColor||"#1890ff",height:d.progressWidth||"18px",width:`${e.handleProgressText(y,d.progressTextDecimalPlaces)}%`})},null,4),vue.createElementVNode("div",{class:"progress-text",style:vue.normalizeStyle({color:+e.handleProgressText(y)<100?d.progressTextColor||"#333":d.progressFinishedTextColor||"#fff"})},vue.toDisplayString(e.handleProgressText(y,d.progressTextDecimalPlaces))+"% ",5)])):(vue.openBlock(),vue.createElementBlock("div",{key:3,style:vue.normalizeStyle({fontSize:e.fontSize,fontWeight:e.isLinkStyle(d)?"bold":e.fontWeight,...e.getCellStyle(d,y)})},[e.isMatchCondition(d,y)&&(d==null?void 0:d.cellAlign)==="right"&&((_=d==null?void 0:d.attribute)!=null&&_.icon)?(vue.openBlock(),vue.createElementBlock("img",{key:0,style:vue.normalizeStyle(e.getAttrImgStyle(d)),src:e.getAttrImgSrc(d)},null,12,_hoisted_15)):vue.createCommentVNode("",!0),d.format==="contrast"?(vue.openBlock(),vue.createElementBlock("span",{key:1,title:((k=d==null?void 0:d.customFormatter)==null?void 0:k.split("{value}")[0])||""},vue.toDisplayString(((T=d==null?void 0:d.customFormatter)==null?void 0:T.split("{value}")[0])||""),9,_hoisted_16)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:vue.normalizeClass([e.contrastClass(d.format)]),style:vue.normalizeStyle(e.getChgStyle({...d,text:y})),title:d.format!=null?e.formatFn(y,d):y},[d.format==="contrast"?(vue.openBlock(),vue.createElementBlock("div",{key:0,style:vue.normalizeStyle(e.chgBoxStyle)},[vue.createElementVNode("img",{style:vue.normalizeStyle(e.getChgBoxImgStyle({...d,text:y})),src:e.getChgBoxImgSrc(y)},null,12,_hoisted_18)],4)):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString(d.format!=null?e.formatFn(y,d):e.getCellText(y,d)),1)],14,_hoisted_17),d.format==="contrast"?(vue.openBlock(),vue.createElementBlock("span",{key:2,title:((F=d==null?void 0:d.customFormatter)==null?void 0:F.split("{value}")[1])||""},vue.toDisplayString(((M=d==null?void 0:d.customFormatter)==null?void 0:M.split("{value}")[1])||""),9,_hoisted_19)):vue.createCommentVNode("",!0),e.isMatchCondition(d,y)&&(d==null?void 0:d.cellAlign)!=="right"&&((B=d==null?void 0:d.attribute)!=null&&B.icon)?(vue.openBlock(),vue.createElementBlock("img",{key:3,style:vue.normalizeStyle(e.getAttrImgStyle(d)),src:e.getAttrImgSrc(d)},null,12,_hoisted_20)):vue.createCommentVNode("",!0)],4))]}),summary:vue.withCtx(()=>[e.summaryList.length>0?(vue.openBlock(),vue.createBlock(g,{key:0,fixed:e.isSummaryFixed},{default:vue.withCtx(()=>[vue.createVNode(h,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.summaryList,(d,m)=>(vue.openBlock(),vue.createBlock(x,{key:m,index:m,style:vue.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:d.cellAlign||"center",color:e.cellFontColor,borderBottomColor:e.borderColor})},{default:vue.withCtx(()=>[vue.createElementVNode("span",{class:vue.normalizeClass([e.contrastClass(d.format)]),style:vue.normalizeStyle({...e.getChgStyle({...d,text:d.total}),fontSize:e.fontSize,fontWeight:e.fontWeight})},[d.format==="contrast"?(vue.openBlock(),vue.createElementBlock("div",{key:0,style:vue.normalizeStyle(e.chgBoxStyle)},[vue.createElementVNode("img",{style:vue.normalizeStyle(e.getChgBoxImgStyle({...d,text:d.total})),src:e.getChgBoxImgSrc(d.total)},null,12,_hoisted_21)],4)):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString((d.format!=null||d.format!=="")&&e.formatFn(d.total,d)),1)],6)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1},8,["fixed"])):vue.createCommentVNode("",!0)]),_:1},8,["style","columns","data-source","bordered","size","scroll","pagination","row-class-name","show-header","onChange"]),e.paginationShow?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[(b=e.tableDataSource)!=null&&b.length&&!e.simple&&e.pageSizeShow&&e.pageSizeVisible?(vue.openBlock(),vue.createBlock(vue.Teleport,{key:0,to:"#ecanTable-"+e.id+" .ant-pagination"},[vue.createElementVNode("div",_hoisted_22,[vue.withDirectives(vue.createElementVNode("input",{type:"text","onUpdate:modelValue":n[0]||(n[0]=d=>e.pageSize=d)},null,512),[[vue.vModelText,e.pageSize]]),_hoisted_23])],8,["to"])):vue.createCommentVNode("",!0)],64)):vue.createCommentVNode("",!0),e.isAutoScroll?(vue.openBlock(),vue.createElementBlock("div",{key:2,class:vue.normalizeClass(["auto-scroll-content ant-table-wrapper table",e.autoScrollClass]),style:vue.normalizeStyle({width:"100%",position:"absolute",left:"0",height:e.autoScrollHeight+"px",top:e.autoScrollTop+"px",overflow:"auto"})},[vue.createVNode(p,{visible:e.isScroll,step:e.scrollSpeed,wrapStyle:{display:"flex",flexDirection:"column",flexWrap:"wrap"}},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"scroll-wrap",style:vue.normalizeStyle(e.scrollWrapStyle)},null,4)]),_:1},8,["visible","step"])],6)):vue.createCommentVNode("",!0)]}),_:1},8,["loading"])],14,_hoisted_1$1)}const Table=_export_sfc$1(__default__,[["render",_sfc_render$4],["__scopeId","data-v-6c429f32"]]),EcanTable=withInstall$1(Table),mapProps={...props,mapJson:null,data:[],name:"地图",keyName:"地图",type:"ecanMap",width:"400px",height:"400px",backgroundImage:"",backgroundImageRepeat:"no-repeat",geoBackgroundImage:"",geoBackgroundImageRepeat:"no-repeat",symbolImage:"",symbolWidth:10,symbolHeight:10,itemStyleColor:"#11BFDA",labelFontSize:14,labelShow:!0,geoLabelShow:!0,geoLabelColor:"#000",geoZoom:1,geoRoam:!1,geoCenter:"",geoLabelFontSize:12,labelColor:"",labelFormatter:"{b}",geoItemStyleAreaColor:"#eee",geoItemStyleBorderColor:"#000",geoItemStyleBorderWidth:1,geoItemStyleShadowColor:"",geoItemStyleShadowOffsetX:0,geoItemStyleShadowOffsetY:0,geoItemStyleShadowBlur:0,geoEmphasisDisabled:!1,geoEmphasisLabelColor:"#fff",geoEmphasisItemStyleAreaColor:"#f00",geoEmphasisItemStyleBorderColor:"#000",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{name}:{value}",tooltipRequestData:{requestUrl:"",requestMethod:"get",requestParams:[]},tooltipBackgroundColor:"#fff",areaStyleKeyName:"",mapAreaStyleConfig:[],legendShow:!1,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"bottom",legendLeft:"right",mapLegendType:"circle",legendTextShow:!0,legendTitle:"",legendTitleColor:"#333",legendTitleFontSize:"16px",legendFrontText:"",legendAfterText:"",legendBoxShadow:""},mapComponentProps=transformToComponentProps(mapProps),mapEvents=["refreshData","click"];core$1.use([renderers.CanvasRenderer,charts.MapChart,charts.ScatterChart,components$1.VisualMapComponent,components$1.TooltipComponent,components$1.GraphicComponent]);const _sfc_main$3=vue.defineComponent({name:"EcanMap",components:{Echarts},props:{...mapComponentProps},setup(e){const n=useRequestData({...e.tooltipRequestData,requestHeaders:{}}),r=vue.ref(),i=vue.ref(""),a=vue.ref(""),o=usePickComponentStyle(e,["backgroundImage"]),s=vue.ref(),l=vue.computed(()=>useImagePath(e.geoBackgroundImage)),c=vue.computed(()=>useImagePath(e.backgroundImage)),u=vue.ref([]),f=vue.computed(()=>e.geoBackgroundImage?{image:vue.unref(s),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),x=vue.computed(()=>{const D=e.symbolImage;return e.symbolImage?"image://"+useImagePath(D):"circle"}),h=D=>{let $=e.tooltipFormatter;const U=$.match(/\{(.+?)\}/g);if(U==null||U.length===0)return $;for(let j=0;j<U.length;j++){const K=U[j];let G=K.slice(1,-1).trim();const Y=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,J=G.match(Y);for(let ee=0;ee<J.length;ee++){const Z=J[ee],W=D[Z];W!=null&&(G=G.replace(Z,W))}$=$.replace(K,G)}return $.split(`
128
- `)},g=vue.ref(!1),v=vue.ref("");let p=new AbortController;const E=(D,$)=>{const U=p.signal;g.value=!0,i.value=D,n({name:D,signal:U}).then(j=>{var K,G;if(j){const Y=((G=(K=j==null?void 0:j.data)==null?void 0:K.data)==null?void 0:G.rows)||[];let J="";for(const ee of Y){const Z=h(ee)||[];if(Z!=null&&Z.length)for(const W of Z)J+=`<div style="word-break: break-all;white-space: normal;">${W}</div>`}J=`<div style="max-width:200px;">${J}</div>`,a.value=J,$(vue.unref(v),J)}else U.aborted?a.value="Loading":a.value=D,$(vue.unref(v),a.value);g.value=!1})},b=vue.ref(),d=vue.computed(()=>e.dataType==="request"?b.value:e.data),m=vue.computed(()=>{const D=[],{mapAreaStyleConfig:$}=e;if($!=null&&$.length)for(const U of $)D.push({...U,key:nanoid(6)});return D}),y=vue.computed(()=>{const D=[];for(const $ of vue.unref(m)){let U="";$.value1&&(U+=`value ${$.rule1} ${$.value1}`),$.value2&&(U+=`${$.value1?"&&":""} value ${$.rule2} ${$.value2}`),U&&D.push({rule:U,color:$.color,key:$.key})}return D.reverse()}),A=vue.computed(()=>{var U;const D=[],{areaStyleKeyName:$}=e;if((U=vue.unref(d))!=null&&U.length)for(const j of vue.unref(d)){const K=j[$];if(K||K===0){const G=vue.unref(y).find(Y=>runCode(Y.rule,{value:K}));G&&D.push({name:j.name,itemStyle:{areaColor:vue.unref(u).includes(G.key)?e.geoItemStyleAreaColor:G.color}})}}return D}),_=vue.computed(()=>{const D=e.geoCenter;let $;return typeof D=="string"&&D!==""&&($=D.split(",")),{tooltip:{show:!0},graphic:[{type:"image",style:{width:parseFloat(e.width),height:parseFloat(e.height),image:vue.unref(c)},top:"center"}],geo:{zoom:e.geoZoom,roam:e.geoRoam,center:$,map:`map-${e.id}`,tooltip:{show:e.tooltipShow,trigger:"item",backgroundColor:e.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:e.tooltipTextStyleColor},formatter:(U,j,K)=>{v.value=j;const{name:G=""}=U,{requestUrl:Y}=e.tooltipRequestData;if(!Y){let J="",ee=e.tooltipFormatter;ee===""&&(ee="{name}:{value}");const Z=vue.unref(d).find(W=>W.name===G);return Z?(J+=useVariablesInText(ee,{textData:{name:G,...Z}},{useNewline:!0,useSpace:!0}),J):G}if(vue.unref(g))vue.unref(i)!==G&&(p.abort(),p=new AbortController);else{if(vue.unref(i)===G)return vue.unref(a);E(G,K)}return"Loading"}},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:vue.unref(f),borderColor:e.geoItemStyleBorderColor,borderWidth:e.geoItemStyleBorderWidth,shadowColor:e.geoItemStyleShadowColor,shadowBlur:e.geoItemStyleShadowBlur,shadowOffsetX:e.geoItemStyleShadowOffsetX,shadowOffsetY:e.geoItemStyleShadowOffsetY},emphasis:{disabled:e.geoEmphasisDisabled,label:{color:e.geoEmphasisLabelColor},itemStyle:{areaColor:e.geoEmphasisItemStyleAreaColor,borderColor:e.geoEmphasisItemStyleBorderColor}},regions:A.value},series:[{type:"scatter",coordinateSystem:"geo",itemStyle:{color:e.itemStyleColor},symbol:vue.unref(x),symbolSize:[e.symbolWidth,e.symbolHeight],label:{show:e.labelShow,fontSize:e.labelFontSize,formatter:e.labelFormatter,color:e.labelColor},tooltip:{show:e.tooltipShow,textStyle:{color:e.tooltipTextStyleColor}},data:d.value}]}}),k=vue.ref(!1),T=async()=>{var U;k.value=!1;const D=e.mapJson,$=`map-${e.id}`;if(D!=null&&D.path){const j=await request(((U=window==null?void 0:window.config)==null?void 0:U.uploadPath)+D.path);core$1.registerMap($,(j==null?void 0:j.data)||{})}else core$1.registerMap($,{});k.value=!0};vue.watch(()=>e.mapJson,()=>{T()},{immediate:!0,deep:!0});const F=async D=>{var j,K,G,Y;const $=(K=(j=D==null?void 0:D.data)==null?void 0:j.data)==null?void 0:K.rows,U=`map-${e.id}`;if($!=null&&$.path){const J=await request($.path);core$1.registerMap(U,(J==null?void 0:J.data)||{})}else if(Array.isArray($))if(b.value=$,(G=$[0])!=null&&G.mapUrl){const J=await request((Y=$[0])==null?void 0:Y.mapUrl);core$1.registerMap(U,(J==null?void 0:J.data)||{})}else core$1.registerMap(U,{});else core$1.registerMap(U,{});vue.nextTick(()=>{k.value=!0})},M=useRequestData(e),B=async()=>{if(e.dataType==="request"){k.value=!1;try{const D=await M();F(D)}catch(D){console.error(D),k.value=!0}}},L=()=>{const D=R(e.id);switch(H(e.id,{...D,RECORD:{}}),e.dataType){case"static":T();break;case"request":B();break}},{getGlobalModel:R,setGlobalModel:H}=vue.inject(GLOBAL_MODEL,{getGlobalModel:D=>{},setGlobalModel:(D,$)=>{}}),P=useEmitEvent(e)("click",()=>{const D=R(e.id);H(e.id,{...D,RECORD:vue.unref(r)})});useOnEvent(e,{refreshData:L});const{setRequest:I}=vue.inject(REQUEST_MODEL,{setRequest:D=>{}});typeof I=="function"&&I({id:e.id,requestFn:L,sortNum:e.requestSort});const S=()=>{vue.unref(r)&&P()},C=(D={})=>{D.componentType==="geo"&&D.region?r.value=D.region:r.value=null},N=vue.computed(()=>{const D={},{legendTop:$,legendLeft:U,legendBoxShadow:j}=e;return j&&(D.boxShadow=j),$==="bottom"?D.bottom=0:$==="top"&&(D.top=0),U==="left"?D.left=0:U==="right"&&(D.right=0),D}),w=vue.computed(()=>{const D={};return e.legendOrient==="vertical"&&(D.flexDirection="column"),D}),q=vue.computed(()=>{var D;if((D=vue.unref(m))!=null&&D.length){const $=[];for(const U of vue.unref(m)){const{value1:j,value2:K,rule1:G,rule2:Y,color:J}=U;j&&K?+j<+K?G.includes(">")&&Y.includes("<")&&$.push({text:`${j} - ${K}`,color:J,key:U.key}):+j>+K?G.includes("<")&&Y.includes(">")&&$.push({text:`${K} - ${j}`,color:J,key:U.key}):+j==+K&&$.push({text:`${j} - ${K}`,color:J,key:U.key}):j?$.push({text:`${G} ${j}`,color:J,key:U.key}):K&&$.push({text:`${Y} ${K}`,color:J,key:U.key})}return $}else return[]});return{option:_,style:o,isLoadedData:k,geoBackgroundImageRef:s,myGeoBackgroundImage:l,mapLegendStyle:N,legendContainerStyle:w,mapLegendList:q,hiddenLegendKey:u,customClick:S,onMouseOver:C,handleToggleVisible:D=>{const $=vue.unref(u).findIndex(U=>U===D);$>=0?u.value.splice($,1):u.value.push(D)}}}}),Map_vue_vue_type_style_index_0_scoped_a22f3d73_lang="",_hoisted_1=["src"],_hoisted_2=["title","onClick"];function _sfc_render$3(e,n,r,i,a,o){const s=vue.resolveComponent("echarts");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-map",style:vue.normalizeStyle(e.style)},[e.isLoadedData?(vue.openBlock(),vue.createBlock(s,{key:0,option:e.option,"update-options":{notMerge:!0},autoresize:"","onZr:click":e.customClick,onMouseover:e.onMouseOver},null,8,["option","onZr:click","onMouseover"])):vue.createCommentVNode("",!0),vue.withDirectives(vue.createElementVNode("img",{ref:"geoBackgroundImageRef",src:e.myGeoBackgroundImage},null,8,_hoisted_1),[[vue.vShow,!1]]),e.legendShow?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"map-legend",style:vue.normalizeStyle(e.mapLegendStyle)},[vue.createElementVNode("div",{class:"legend-title",style:vue.normalizeStyle({color:e.legendTitleColor,fontSize:e.legendTitleFontSize})},vue.toDisplayString(e.legendTitle),5),vue.createElementVNode("div",{class:"legend-container",style:vue.normalizeStyle(e.legendContainerStyle)},[vue.createElementVNode("div",{style:vue.normalizeStyle({color:e.legendTextStyleColor,marginRight:e.legendOrient==="horizontal"?"5px":"",marginBottom:e.legendOrient==="vertical"?"5px":""})},vue.toDisplayString(e.legendFrontText),5),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.mapLegendList,(l,c)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["legend-item",{hidden:e.hiddenLegendKey.includes(l.key)}]),style:vue.normalizeStyle({marginRight:e.legendOrient==="horizontal"?"10px":"",marginLeft:e.legendOrient==="horizontal"?"10px":"",marginBottom:e.legendOrient==="vertical"?"10px":"",marginTop:e.legendOrient==="vertical"?"10px":""}),key:c,title:e.legendTextShow?"":l.text,onClick:u=>e.handleToggleVisible(l.key)},[vue.createElementVNode("div",{class:"color-block",style:vue.normalizeStyle({backgroundColor:l.color,width:"20px",height:e.mapLegendType==="rect"?"16px":"20px",borderRadius:e.mapLegendType==="circle"?"50%":"4px"})},null,4),e.legendTextShow?(vue.openBlock(),vue.createElementBlock("span",{key:0,class:"legend-item-text",style:vue.normalizeStyle({color:e.legendTextStyleColor,marginLeft:"10px"})},vue.toDisplayString(l.text),5)):vue.createCommentVNode("",!0)],14,_hoisted_2))),128)),vue.createElementVNode("div",{style:vue.normalizeStyle({color:e.legendTextStyleColor,marginLeft:e.legendOrient==="horizontal"?"5px":"",marginTop:e.legendOrient==="vertical"?"5px":""})},vue.toDisplayString(e.legendAfterText),5)],4)],4)):vue.createCommentVNode("",!0)],4)}const Map$1=_export_sfc$1(_sfc_main$3,[["render",_sfc_render$3],["__scopeId","data-v-a22f3d73"]]),EcanMap=withInstall$1(Map$1),dataSelectProps={...props,name:"下拉框选择器-数据",keyName:"下拉框选择器-数据",width:"120px",height:"33px",type:"ecanDataSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,graphicConfig:{},valueType:"value",isAllowClear:!0,optionFontSize:"14px"},dataSelectComponentProps=transformToComponentProps(dataSelectProps),dataSelectEvents=["selectChange","refreshData"],_sfc_main$2=vue.defineComponent({name:"EcanDataSelect",components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption},props:{...dataSelectComponentProps},setup(e,{expose:n}){const r=usePickComponentStyle(e),i=()=>document.getElementById("ProviderConfig")||document.body,a=vue.ref(e.data||[]),o=vue.ref(),s=vue.computed({get:()=>{var H;const{mode:R}=e;return(H=vue.unref(a))!=null&&H.length?o.value:R==="multiple"||R==="tags"||R==="combobox"?[]:""},set:R=>{o.value=R}}),{getGlobalModel:l,setGlobalModel:c,getRecordValueByKeyName:u}=vue.inject(GLOBAL_MODEL,{getGlobalModel:R=>{},setGlobalModel:(R,H)=>{},getRecordValueByKeyName:R=>{}}),f=e.dataFieldNames;vue.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,a.value],()=>{const{mode:R,selectFirstOption:H,value:V}=e,P=u(V),I=f.value;if(R==="multiple"||R==="tags"||R==="combobox"){if(P)o.value=P.split(",");else if(H){const S=vue.unref(a)[0];o.value=S?[S[I]]:[]}}else if(P)o.value=P;else if(H){const S=vue.unref(a)[0];o.value=S?S[I]:""}},{immediate:!0});const x=(R,H)=>{const V=f.label,P=f.value;let I;const S=H[V],C=H[P];return S!=null?I=S:C!=null&&(I=C),(I==null?void 0:I.toLowerCase().indexOf(R==null?void 0:R.toLowerCase()))>=0},h=R=>{const{label:H,value:V,options:P}=e.dataFieldNames;if(P&&Array.isArray(R))if(R.some(I=>P in I)){const I={},S=[];R.forEach(C=>{I[C[P]]||(I[C[P]]=[]),I[C[P]].push({[H]:C[H],[V]:C[V]})});for(const C in I)S.push({[H]:C,[P]:I[C]});return S}else return R;else if(!P)return R},g=vue.ref(!1),v=R=>{var H,V;if(a.value=h(((V=(H=R==null?void 0:R.data)==null?void 0:H.data)==null?void 0:V.rows)||[]),e.selectFirstOption){let P=vue.unref(a)[0];if(f.options){const I=P[f.options];I&&I.length&&(P=I[0])}o.value=P[f.value]}},p=useRequestData(e),E=async()=>{if(e.dataType==="request"){g.value=!0;try{const R=await p();v(R)}catch(R){console.error(R)}finally{g.value=!1}}},b=vue.computed(()=>{let R=o.value;if(e.valueType==="label"&&vue.unref(o)&&vue.unref(a)){const H=f.label,V=f.value;if(e.mode==="multiple")R=vue.unref(a).filter(P=>vue.unref(o).includes(P[V])).map(P=>P[H]);else{const P=vue.unref(a).find(I=>vue.unref(o)===I[V]);P&&(R=P[H])}}return R}),d=vue.ref([]),m=vue.computed(()=>{const R={};if(e.mode!=="multiple"){const H=vue.unref(d).find(V=>V.value===vue.unref(o));H&&(R.itemCodes=H.item_codes)}return R}),y=vue.computed(()=>{const{value:R,label:H}=f,V=vue.unref(a).find(P=>P[R]===vue.unref(s));return V?{label:V[H],value:V[R]}:{}});c(e.id,{type:e.type,value:b,...vue.unref(m),recordData:vue.unref(y)});const _=useEmitEvent(e)("selectChange",()=>{const R=e.id,H=l(R);c(R,{...H,...vue.unref(m),RECORD:b,recordData:vue.unref(y)})}),k=(R=[])=>{if(a.value=h(R),e.selectFirstOption){let H=vue.unref(a)[0];if(f.options){const V=H[f.options];V&&V.length&&(H=V[0])}o.value=H[f.value]}c(e.id,{type:e.type,value:b,...vue.unref(m),recordData:vue.unref(y)})},T=R=>{var I;const{data:H}=(R==null?void 0:R.data)||{},V=f.label,P=f.value;if(H){const{rows:S=[]}=((I=R==null?void 0:R.data)==null?void 0:I.data)||{};d.value=S;const C=S.map(q=>({[V]:q.label,[P]:q.value})),{id:N}=e,w=l(N);c(N,{...w,...vue.unref(m)}),k(C)}else k([])},F=useIndicatorData(e,T),M=async()=>{try{g.value=!0;const R=await F();T(R)}catch(R){console.error(R)}finally{g.value=!1}},B=()=>{switch(e.dataType){case"indicator":{M();break}case"request":E();break}};useOnEvent(e,{selectChange:_,refreshData:B});const{setRequest:L}=vue.inject(REQUEST_MODEL,{setRequest:({id:R,sortNum:H,requestFn:V})=>{}});return typeof L=="function"&&L({id:e.id,requestFn:B,sortNum:e.requestSort}),n({refreshData:B}),{style:r,getPopupContainer:i,myValue:o,selectChange:_,options:a,filterOption:x,loading:g,resultValue:s}}}),DataSelect_vue_vue_type_style_index_0_scoped_585d4f8a_lang="",DataSelect_vue_vue_type_style_index_1_lang="";function _sfc_render$2(e,n,r,i,a,o){const s=vue.resolveComponent("a-select-option"),l=vue.resolveComponent("a-select");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-select",style:vue.normalizeStyle(e.style)},[vue.createVNode(l,{class:"select",value:e.resultValue,"onUpdate:value":n[0]||(n[0]=c=>e.resultValue=c),placeholder:e.placeholder,showSearch:"",allowClear:e.isAllowClear,mode:e.mode,getPopupContainer:e.getPopupContainer,fieldNames:e.dataFieldNames,maxTagCount:e.maxTagCount,filterOption:e.filterOption,loading:e.loading,autoClearSearchValue:e.autoClearSearchValue,onChange:e.selectChange,style:vue.normalizeStyle({fontSize:e.optionFontSize})},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.options,(c,u)=>(vue.openBlock(),vue.createBlock(s,{key:u,value:c.value,label:c.label,style:vue.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","label","style"]))),128))]),_:1},8,["value","placeholder","allowClear","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange","style"])],4)}const DataSelect=_export_sfc$1(_sfc_main$2,[["render",_sfc_render$2],["__scopeId","data-v-585d4f8a"]]),EcanDataSelect=withInstall$1(DataSelect),pivotTableProps={...props,name:"透视表",keyName:"透视表",width:"800px",height:"400px",type:"ecanPivotTable",graphicConfig:{},dataType:"indicator",data:[],dimensionList:[],indicatorList:[]},pivotTableComponentProps=transformToComponentProps(pivotTableProps),pivotTableEvents=["refreshData"],_sfc_main$1=vue.defineComponent({name:"EcanPivotTable",components:{},props:{...pivotTableComponentProps},setup(e,{expose:n}){var M,B;const r=(M=window==null?void 0:window.config)==null?void 0:M.pageId,i=(B=window==null?void 0:window.config)==null?void 0:B.indicatorToken,a=usePickComponentStyle(e),o=vue.ref(!1),s=vue.ref(),l=vue.ref([]),c=vue.ref([]),u=vue.ref({}),f=vue.ref({}),{pageMode:x}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),h=L=>{vue.unref(s).refreshData(L)},g=useIndicatorData(e,h),v=async L=>{try{o.value=!0;const R=await g(L);h(R)}catch(R){console.error(R)}finally{o.value=!1}},p=()=>{switch(e.dataType){case"indicator":v();break}},{setRequest:E}=vue.inject(REQUEST_MODEL,{setRequest:({id:L,sortNum:R,requestFn:H})=>{}});typeof E=="function"&&E({id:e.id,requestFn:p,sortNum:e.requestSort}),n({refreshData:p});const d=useEmitEvent(e)("click",()=>{vue.unref(s).click()});useOnEvent(e,{refreshData:p,click:d}),vue.onMounted(()=>{});const m=()=>{const{indicators:L=[],queryColumnList:R=[]}=e.graphicConfig,H=[];for(const S of vue.unref(l)){const{data:C,indicatorKey:N="",calculateType:w=""}=S||{};H.push({label:C.indicatorKey,columnName:C.indicatorKey,location:"LEFT",show:!0,calcType:"BUILT_IN",builtInFormula:w,builtInValueSource:N})}const V=[];for(const S of vue.unref(c)){const C=L.find(q=>q.label===S.key),N=R.find(q=>q.label===S.key),w=C||N;w&&V.push({fieldName:w.name,fieldType:w.genericType,fieldValue:S.type==="dimension"?S.value.join(","):S.value,hrpIndexCode:w.indexCode,hrpIndexCodeNum:w.indexCodeNum,id:w.id,label:w.label,rule:S.rule,targetSource:"",typeGuid:"",type:S.type})}const P=[];if(Object.keys(vue.unref(u)))for(const S in vue.unref(u))vue.unref(u)[S]&&P.push({key:S,num:vue.unref(u)[S],rule:"TOP"});const I=[];if(Object.keys(vue.unref(f)))for(const S in vue.unref(f)){const{order:C,type:N,columnData:w,columnHeader:q}=vue.unref(f)[S],O={label:S,order:C.toUpperCase(),type:"COMBINATION",fieldType:N};N==="indicators"&&(O.columnHeader=q,O.columnData=w,O.type="NORMAL"),I.push(O)}v({pivotTableCal:{calc:H,filter:V,truncations:P,sorts:I}})};return{props:e,style:a,pageMode:x,pivotTableRef:s,calculateList:l,click:d,onCalculate:L=>{vue.unref(l).find(R=>R.data.indicatorKey===L.data.indicatorKey)||l.value.push(L),m()},onDeleteCalculate:L=>{const R=vue.unref(l).findIndex(H=>H.data.indicatorKey===L);R!==-1&&l.value.splice(R,1)},onFilter:L=>{const{key:R="",rule:H={},type:V=""}=L||{},{rule:P,value:I}=H;if(R&&P&&I){const S=c.value.find(C=>C.key===R&&C.type===V);S?(S.rule=P,S.value=I):c.value.push({key:R,rule:P,value:I,type:V})}else{const S=vue.unref(c).findIndex(C=>C.key===R&&C.type===V);S!==-1&&c.value.splice(S,1)}m()},onSort:L=>{const{key:R,order:H,type:V,columnData:P=[],columnHeader:I=[]}=L;vue.unref(f)[R]={order:H,type:V,columnData:P,columnHeader:I},m()},onGetDimensionValues:async(L,R)=>{const{queryColumnList:H=[],edvDataSetId:V="",source:P}=e.graphicConfig,I=H.find(w=>w.name===L),S=await request.post(`${INDICATOR_URL}/diagram/groupvalue`,{source:P,groupColumn:L,hrpIndexTypeGuid:I.typeGuid,pageId:r,pageFlag:!0,edvDataSetId:V},{headers:{Authentication:i,operateContext:CONTEXT}}),{success:C,data:N=[]}=S.data;C&&R(N.map(w=>({value:w})))},onGetTop:L=>{u.value=L||{},m()}}}}),PivotTableContainer_vue_vue_type_style_index_0_scoped_0730046a_lang="";function _sfc_render$1(e,n,r,i,a,o){const s=vue.resolveComponent("pivot-table");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-pivot-table",style:vue.normalizeStyle(e.style)},[vue.createVNode(s,vue.mergeProps({ref:"pivotTableRef"},e.props,{pageMode:e.pageMode,calculateList:e.calculateList,onCalculate:e.onCalculate,onDeleteCalculate:e.onDeleteCalculate,onFilter:e.onFilter,onSort:e.onSort,onGetDimensionValues:e.onGetDimensionValues,onGetTop:e.onGetTop}),null,16,["pageMode","calculateList","onCalculate","onDeleteCalculate","onFilter","onSort","onGetDimensionValues","onGetTop"])],4)}const PivotTableContainer=_export_sfc$1(_sfc_main$1,[["render",_sfc_render$1],["__scopeId","data-v-0730046a"]]),EcanPivotTable=withInstall$1(PivotTableContainer),valueLineProps={...props,id:"",name:"双值轴折线图",keyName:"双值轴折线图",type:"ecanValueLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:0,value:0,value2:10},{name:10,value:20,value2:35},{name:20,value:30,value2:25},{name:30,value:40,value2:55}],titleText:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a}:{c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,tooltipTextStyleColor:"",customPoint:"",axisMarkPoint:[],markPointFormatter:"{x}, {y}"},valueLineComponentProps=transformToComponentProps(valueLineProps),valueLineEvents=["click","refreshData","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.LineChart,components$1.ToolboxComponent,components$1.TitleComponent,components$1.LegendComponent,components$1.MarkLineComponent,components$1.MarkPointComponent]);const _sfc_main=vue.defineComponent({name:"EcanValueLine",props:{...valueLineComponentProps},components:{Spin,Echarts,EcanModal},setup(e,{expose:n}){const{pageMode:r,fontFamily:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),a=vue.ref(),o=vue.ref(!1),s=usePickComponentStyle(e),l=vue.ref([]),c=vue.ref(),u=vue.computed(()=>o.value?ZOOM_FONT_SIZE:12),f=vue.ref({});let x;const h=vue.computed(()=>{const C=e.xAxisLabelFormatter,N=e.yAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(i)},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,orient:e.toolboxOrient,feature:{myDownload:{show:e.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(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.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 w;o.value=!0,(w=c.value)==null||w.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){antDesignVue.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:u.value,color:e.tooltipTextStyleColor},show:e.tooltipShow,formatter:w=>{var $;const q=w.length;let O="",D=e.tooltipFormatter;x=($=w[0])==null?void 0:$.data,D===""&&(D="{marker} {a} {c}");for(let U=0;U<q;U++){const{marker:j,seriesName:K,name:G,value:Y,data:J}=w[U]||{};if(U===0){let ee=G;typeof G=="string"&&G[0]==="0"&&!isNaN(+G)&&(ee=(+G).toString()),O+=`${useValueFormatter(C,ee)}<br/>`}O+=useVariablesInText(D,{textData:{marker:j,a:K,b:Y[0],c:Y[1]||0,...J==null?void 0:J.record}},{useNewline:!0,useSpace:!0}),O+="<br/>"}return O},position:e.tooltipPosition||void 0},xAxis:{type:"value",boundaryGap:e.isBoundaryGap,minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{show:e.xAxisLabelShow,color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(w){return typeof w=="string"&&w[0]==="0"&&!isNaN(+w)&&(w=(+w).toString()),useValueFormatter(C,w)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"},max:e.xAxisMaxValue||null},yAxis:{type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(w){return useValueFormatter(N,w)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"},max:e.yAxisMaxValue||null},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(o.value?ZOOM_FONT_SIZE:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:o.value?ZOOM_FONT_SIZE:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,formatter:w=>getLegendFormat(e.legendFormatter,{name:w})},series:vue.unref(l)}}),g=()=>{o.value=!1},{getGlobalModel:v,setGlobalModel:p,getRecordValueByKeyName:E}=vue.inject(GLOBAL_MODEL,{getGlobalModel:C=>{},setGlobalModel:(C,N)=>{},getRecordValueByKeyName:C=>{}}),b=vue.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),d=(C,N,w,q,O,D,$,U)=>{const j=(-(O*U-D*$)/($-O)+(C*q-N*w)/(w-C))/((q-N)/(w-C)-(U-D)/($-O)),K=(q-N)/(w-C)*(-(O*U-D*$)/($-O)+(C*q-N*w)/(w-C))/((q-N)/(w-C)-(U-D)/($-O))-(C*q-N*w)/(w-C);return[j,K]},m=()=>{var w;const C={symbol:"circle",tooltip:{trigger:"item",formatter:q=>{let O="",D=e.markPointFormatter;D===""&&(D="{x}, {y}");const{data:{coord:$=[]}}=q||{};return O+=useVariablesInText(D,{textData:{x:$[0]||0,y:$[1]||0}},{useNewline:!0,useSpace:!0}),O+="<br/>",O}},data:[]},{axisMarkPoint:N=[]}=e;for(const q of N){const{coord:O=""}=q,D=[];let $=[];if(O.includes("getIntersectPoint")){const U=(w=O.match(/getIntersectPoint\((.*?)\)/)[1])==null?void 0:w.split(",");if((U==null?void 0:U.length)===8){const j=[];for(const K of U){const G=K.replaceAll(" ","");(G==null?void 0:G.slice(0,1))==="{"&&(G==null?void 0:G.slice(-1))==="}"?j.push(+E(G)||0):j.push(+G)}$=d(...j)}}else $=O.split(",");($==null?void 0:$.length)===2&&(D[0]=+$[0],D[1]=+$[1]),D!=null&&D.length&&C.data.push({coord:D,symbolSize:q.symbolSize,itemStyle:{color:q.pointColor||"transparent",borderWidth:q.borderWidth||"transparent",borderColor:q.borderColor||"transparent"},label:{formatter:q.label,position:q.labelPosition,color:q.labelColor||"transparent"}})}return C},y=C=>{var j,K,G;const N=lodashEs.cloneDeep(C),{graphicConfig:w,customPoint:q=""}=e,O={},D={},{formFields:$={}}=w;let U=[];if(q){U=JSON.parse(q);for(const Y of U)for(const J in Y)typeof Y[J]=="string"&&((j=Y[J])==null?void 0:j.slice(0,1))==="{"&&((K=Y[J])==null?void 0:K.slice(-1))==="}"&&(Y[J]=E(Y[J])||0)}U!=null&&U.length&&N.push(...U),e.dataType==="static"?(D.name="name",D.values=["value","value2"]):(D.name=($==null?void 0:$.labelField)||"name",D.values=($==null?void 0:$.valueField)||["value","value2"]);for(const Y of N){const{values:J,name:ee}=D;for(const Z of J){const W={value:[Y[ee],Y[Z]],record:Y};hasOwn(O,Z)?O[Z].push(W):O[Z]=[W]}}if((G=Object.keys(O))!=null&&G.length){const Y=[];for(const J in O)Y.push({name:J,data:O[J]});return Y}else return[]},A=(C=[])=>{const N=y(C),w=[],q=N.length;for(let O=0;O<q;O++){const D={},$={};O===0&&($.markPoint=m()),e.shadowColor&&(D.shadowColor=e.shadowColor,D.shadowBlur=e.shadowBlur,D.shadowOffsetY=e.shadowOffsetY,D.shadowOffsetX=e.shadowOffsetX),w.push({type:"line",...$,...N[O],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[O]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[O],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...D},...vue.unref(b)})}l.value=w},_=(C=[])=>{const N=y(C),w=[],q=N.length;for(let O=0;O<q;O++){const D={};e.shadowColor&&(D.shadowColor=e.shadowColor,D.shadowBlur=e.shadowBlur,D.shadowOffsetY=e.shadowOffsetY,D.shadowOffsetX=e.shadowOffsetX);const $={};O===0&&($.markPoint=m()),w.push({type:"line",...N[O],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[O]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[O],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...D},...vue.unref(b),...$})}l.value=w};vue.watch(()=>[e.data,e.dataType,e.symbolSize,e.smooth,e.lineStyleWidth,e.areaStyleOpacity,e.areaGradientShow,e.areaGradientColor,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX,e.legendFontSize,e.isShowMarkLine,e.markLineType,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([C])=>{(e.dataType==="static"||vue.unref(r)==="design")&&A(C)},{immediate:!0,deep:!0});const k=vue.ref(!1),T=useRequestData(e),F=async()=>{var C,N;if(e.dataType==="request")try{k.value=!0;const w=await T();A((N=(C=w==null?void 0:w.data)==null?void 0:C.data)==null?void 0:N.rows)}catch(w){console.error(w)}finally{k.value=!1}},M=useEmitEvent(e);p(e.id,{type:e.type,RECORD:""});const B=M("click",C=>{const N=v(e.id);p(e.id,{...N,type:e.type,RECORD:e.tooltipShow?x:C.data})}),L=C=>{a.value.chart.containPixel("grid",[C.offsetX,C.offsetY])&&B()};e.tooltipShow?f.value["zr:click"]=L:f.value.click=B;const R=C=>{var w;const{rows:N=[]}=((w=C==null?void 0:C.data)==null?void 0:w.data)??{};_(N)},H=useIndicatorData(e,C=>{e.isViewRedrawing&&a.value.clear(),R(C)}),V=async()=>{try{k.value=!0;const C=await H();R(C)}catch(C){console.error(C)}finally{k.value=!1}},P=()=>{switch(e.dataType){case"indicator":V();break;case"request":F();break}};useOnEvent(e,{refreshData:P,resetRecord:()=>{const C=e.id,N=v(C);p(C,{...N,RECORD:""})},click:B});const{setRequest:S}=vue.inject(REQUEST_MODEL,{setRequest:C=>{}});return typeof S=="function"&&S({id:e.id,requestFn:P,sortNum:e.requestSort}),n({refreshData:P}),{option:h,style:s,click:B,loading:k,onClose:g,ecanModal:c,eventObj:f,echartRef:a}}}),ValueLine_vue_vue_type_style_index_0_lang="";function _sfc_render(e,n,r,i,a,o){const s=vue.resolveComponent("echarts"),l=vue.resolveComponent("spin"),c=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-value-line",style:vue.normalizeStyle(e.style)},[vue.createVNode(l,{spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,vue.mergeProps({ref:"echartRef",option:e.option,autoresize:""},vue.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),vue.createVNode(c,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:vue.withCtx(()=>[vue.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const ValueLine=_export_sfc$1(_sfc_main,[["render",_sfc_render]]),EcanValueLine=withInstall$1(ValueLine),components=Object.freeze(Object.defineProperty({__proto__:null,EcanBar,EcanBorder,EcanButton,EcanCheckbox,EcanCirculate,EcanComboGraph,EcanCounter,EcanCustomGraph,EcanDataSelect,EcanDatePicker,EcanIframe,EcanImage,EcanInput,EcanLine,EcanList,EcanMap,EcanModal,EcanPageConfig,EcanPie,EcanPivotTable,EcanProportion,EcanProviderConfig,EcanRadar,EcanRadio,EcanRangePicker,EcanScatter,EcanScrollText,EcanSelect,EcanTable,EcanTabs,EcanTemplate,EcanText,EcanTimeDisplay,EcanTreeSelect,EcanValueLine,barComponentProps,barEvents,barProps,borderComponentProps,borderEvents,borderProps,buttonComponentProps,buttonEvents,buttonProps,checkboxComponentProps,checkboxEvents,checkboxProps,circulateComponentProps,circulateEvents,circulateProps,comboGraphComponentProps,comboGraphEvents,comboGraphProps,counterComponentProps,counterEvents,counterProps,customGraphComponentProps,customGraphProps,dataSelectComponentProps,dataSelectEvents,dataSelectProps,datePickerComponentProps,datePickerEvents,datePickerProps:datePickerProps$1,iframeComponentProps,iframeProps,imageComponentProps,imageEvents,imageProps,inputComponentProps,inputEvents,inputProps,lineComponentProps,lineEvents,lineProps,listComponentProps,listEvents,listProps,mapComponentProps,mapEvents,mapProps,modalComponentProps,modalEvents,modalProps,pageConfig,pageConfigComponentProps,pieComponentProps,pieEvents,pieProps,pivotTableComponentProps,pivotTableEvents,pivotTableProps,proportionComponentProps,proportionEvents,proportionProps,providerConfig,providerConfigComponentProps,radarComponentProps,radarEvents,radarProps,radioComponentProps,radioEvents,radioProps,rangePickerComponentProps,rangePickerEvents,rangePickerProps,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=e=>e!==null&&typeof e=="object",isDef=e=>e!=null,isFunction=e=>typeof e=="function",isPromise=e=>isObject$1(e)&&isFunction(e.then)&&isFunction(e.catch),isDate=e=>Object.prototype.toString.call(e)==="[object Date]"&&!Number.isNaN(e.getTime()),isNumeric=e=>typeof e=="number"||/^\d+(\.\d+)?$/.test(e),isIOS=()=>inBrowser$1?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1;function get(e,n){const r=n.split(".");let i=e;return r.forEach(a=>{var o;i=isObject$1(i)&&(o=i[a])!=null?o:""}),i}function pick(e,n,r){return n.reduce((i,a)=>((!r||e[a]!==void 0)&&(i[a]=e[a]),i),{})}const isSameValue=(e,n)=>JSON.stringify(e)===JSON.stringify(n),flat=e=>e.reduce((n,r)=>n.concat(r),[]),unknownProp=null,numericProp=[Number,String],truthProp={type:Boolean,default:!0},makeRequiredProp=e=>({type:e,required:!0}),makeArrayProp=()=>({type:Array,default:()=>[]}),makeNumericProp=e=>({type:numericProp,default:e}),makeStringProp=e=>({type:String,default:e});var inBrowser=typeof window<"u";function raf(e){return inBrowser?requestAnimationFrame(e):-1}function cancelRaf(e){inBrowser&&cancelAnimationFrame(e)}function doubleRaf(e){raf(()=>raf(e))}var isWindow=e=>e===window,makeDOMRect=(e,n)=>({top:0,left:0,right:e,bottom:n,width:e,height:n}),useRect=e=>{const n=vue.unref(e);if(isWindow(n)){const r=n.innerWidth,i=n.innerHeight;return makeDOMRect(r,i)}return n!=null&&n.getBoundingClientRect?n.getBoundingClientRect():makeDOMRect(0,0)};function useParent(e){const n=vue.inject(e,null);if(n){const r=vue.getCurrentInstance(),{link:i,unlink:a,internalChildren:o}=n;i(r),vue.onUnmounted(()=>a(r));const s=vue.computed(()=>o.indexOf(r));return{parent:n,index:s}}return{parent:null,index:vue.ref(-1)}}function flattenVNodes(e){const n=[],r=i=>{Array.isArray(i)&&i.forEach(a=>{var o;vue.isVNode(a)&&(n.push(a),(o=a.component)!=null&&o.subTree&&(n.push(a.component.subTree),r(a.component.subTree.children)),a.children&&r(a.children))})};return r(e),n}var findVNodeIndex=(e,n)=>{const r=e.indexOf(n);return r===-1?e.findIndex(i=>n.key!==void 0&&n.key!==null&&i.type===n.type&&i.key===n.key):r};function sortChildren(e,n,r){const i=flattenVNodes(e.subTree.children);r.sort((o,s)=>findVNodeIndex(i,o.vnode)-findVNodeIndex(i,s.vnode));const a=r.map(o=>o.proxy);n.sort((o,s)=>{const l=a.indexOf(o),c=a.indexOf(s);return l-c})}function useChildren(e){const n=vue.reactive([]),r=vue.reactive([]),i=vue.getCurrentInstance();return{children:n,linkChildren:o=>{const s=c=>{c.proxy&&(r.push(c),n.push(c.proxy),sortChildren(i,n,r))},l=c=>{const u=r.indexOf(c);n.splice(u,1),r.splice(u,1)};vue.provide(e,Object.assign({link:s,unlink:l,children:n,internalChildren:r},o))}}}function onMountedOrActivated(e){let n;vue.onMounted(()=>{e(),vue.nextTick(()=>{n=!0})}),vue.onActivated(()=>{n&&e()})}function useEventListener(e,n,r={}){if(!inBrowser)return;const{target:i=window,passive:a=!1,capture:o=!1}=r;let s=!1,l;const c=x=>{if(s)return;const h=vue.unref(x);h&&!l&&(h.addEventListener(e,n,{capture:o,passive:a}),l=!0)},u=x=>{if(s)return;const h=vue.unref(x);h&&l&&(h.removeEventListener(e,n,o),l=!1)};vue.onUnmounted(()=>u(i)),vue.onDeactivated(()=>u(i)),onMountedOrActivated(()=>c(i));let f;return vue.isRef(i)&&(f=vue.watch(i,(x,h)=>{u(h),c(x)})),()=>{f==null||f(),u(i),s=!0}}var width,height;function useWindowSize(){if(!width&&(width=vue.ref(0),height=vue.ref(0),inBrowser)){const e=()=>{width.value=window.innerWidth,height.value=window.innerHeight};e(),window.addEventListener("resize",e,{passive:!0}),window.addEventListener("orientationchange",e,{passive:!0})}return{width,height}}var overflowScrollReg=/scroll|auto|overlay/i,defaultRoot=inBrowser?window:void 0;function isElement(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function getScrollParent(e,n=defaultRoot){let r=e;for(;r&&r!==n&&isElement(r);){const{overflowY:i}=window.getComputedStyle(r);if(overflowScrollReg.test(i))return r;r=r.parentNode}return n}function useScrollParent(e,n=defaultRoot){const r=vue.ref();return vue.onMounted(()=>{e.value&&(r.value=getScrollParent(e.value,n))}),r}var visibility;function usePageVisibility(){if(!visibility&&(visibility=vue.ref("visible"),inBrowser)){const e=()=>{visibility.value=document.hidden?"hidden":"visible"};e(),window.addEventListener("visibilitychange",e)}return visibility}function getScrollTop(e){const n="scrollTop"in e?e.scrollTop:e.pageYOffset;return Math.max(n,0)}function setScrollTop(e,n){"scrollTop"in e?e.scrollTop=n:e.scrollTo(e.scrollX,n)}function getRootScrollTop(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function setRootScrollTop(e){setScrollTop(window,e),setScrollTop(document.body,e)}function getElementTop(e,n){if(e===window)return 0;const r=n?getScrollTop(n):getRootScrollTop();return useRect(e).top+r}isIOS();const stopPropagation=e=>e.stopPropagation();function preventDefault(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&stopPropagation(e)}function isHidden(e){const n=vue.unref(e);if(!n)return!1;const r=window.getComputedStyle(n),i=r.display==="none",a=n.offsetParent===null&&r.position!=="fixed";return i||a}const{width:windowWidth,height:windowHeight}=useWindowSize();function addUnit(e){if(isDef(e))return isNumeric(e)?`${e}px`:String(e)}function getSizeStyle(e){if(isDef(e)){if(Array.isArray(e))return{width:addUnit(e[0]),height:addUnit(e[1])};const n=addUnit(e);return{width:n,height:n}}}function getZIndexStyle(e){const n={};return e!==void 0&&(n.zIndex=+e),n}let rootFontSize;function getRootFontSize(){if(!rootFontSize){const e=document.documentElement,n=e.style.fontSize||window.getComputedStyle(e).fontSize;rootFontSize=parseFloat(n)}return rootFontSize}function convertRem(e){return e=e.replace(/rem/g,""),+e*getRootFontSize()}function convertVw(e){return e=e.replace(/vw/g,""),+e*windowWidth.value/100}function convertVh(e){return e=e.replace(/vh/g,""),+e*windowHeight.value/100}function unitToPx(e){if(typeof e=="number")return e;if(inBrowser$1){if(e.includes("rem"))return convertRem(e);if(e.includes("vw"))return convertVw(e);if(e.includes("vh"))return convertVh(e)}return parseFloat(e)}const camelizeRE=/-(\w)/g,camelize=e=>e.replace(camelizeRE,(n,r)=>r.toUpperCase()),kebabCase=e=>e.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,"");function padZero(e,n=2){let r=e+"";for(;r.length<n;)r="0"+r;return r}const clamp=(e,n,r)=>Math.min(Math.max(e,n),r),{hasOwnProperty}=Object.prototype;function assignKey(e,n,r){const i=n[r];isDef(i)&&(!hasOwnProperty.call(e,r)||!isObject$1(i)?e[r]=i:e[r]=deepAssign(Object(e[r]),i))}function deepAssign(e,n){return Object.keys(n).forEach(r=>{assignKey(e,n,r)}),e}var stdin_default$h={name:"姓名",tel:"电话",save:"保存",clear:"清空",cancel:"取消",confirm:"确认",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",addContact:"添加联系人",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",weekdays:["日","一","二","三","四","五","六"],monthTitle:(e,n)=>`${e}年${n}月`,rangePrompt:e=>`最多选择 ${e} 天`},vanCascader:{select:"请选择"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无门槛",discount:e=>`${e}折`,condition:e=>`满${e}元可用`},vanCouponCell:{title:"优惠券",count:e=>`${e}张可用`},vanCouponList:{exchange:"兑换",close:"不使用",enable:"可用",disabled:"不可用",placeholder:"输入优惠码"},vanAddressEdit:{area:"地区",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",addressDetail:"详细地址",defaultAddress:"设为默认收货地址"},vanAddressList:{add:"新增地址"}};const lang=vue.ref("zh-CN"),messages=vue.reactive({"zh-CN":stdin_default$h}),Locale={messages(){return messages[lang.value]},use(e,n){lang.value=e,this.add({[e]:n})},add(e={}){deepAssign(messages,e)}};var stdin_default$g=Locale;function createTranslate(e){const n=camelize(e)+".";return(r,...i)=>{const a=stdin_default$g.messages(),o=get(a,n+r)||get(a,r);return isFunction(o)?o(...i):o}}function genBem(e,n){return n?typeof n=="string"?` ${e}--${n}`:Array.isArray(n)?n.reduce((r,i)=>r+genBem(e,i),""):Object.keys(n).reduce((r,i)=>r+(n[i]?genBem(e,i):""),""):""}function createBEM(e){return(n,r)=>(n&&typeof n!="string"&&(r=n,n=""),n=n?`${e}__${n}`:e,`${n}${genBem(n,r)}`)}function createNamespace(e){const n=`van-${e}`;return[n,createBEM(n),createTranslate(n)]}const BORDER="van-hairline",BORDER_TOP_BOTTOM=`${BORDER}--top-bottom`,BORDER_UNSET_TOP_BOTTOM=`${BORDER}-unset--top-bottom`,HAPTICS_FEEDBACK="van-haptics-feedback",TAP_OFFSET=5;function callInterceptor(e,{args:n=[],done:r,canceled:i,error:a}){if(e){const o=e.apply(null,n);isPromise(o)?o.then(s=>{s?r():i&&i()}).catch(a||noop):o?r():i&&i()}else r()}function withInstall(e){return e.install=n=>{const{name:r}=e;r&&(n.component(r,e),n.component(camelize(`-${r}`),e))},e}const POPUP_TOGGLE_KEY=Symbol();function onPopupReopen(e){const n=vue.inject(POPUP_TOGGLE_KEY,null);n&&vue.watch(n,r=>{r&&e()})}function useExpose(e){const n=vue.getCurrentInstance();n&&extend(n.proxy,e)}const routeProps={to:[String,Object],url:String,replace:Boolean};function route({to:e,url:n,replace:r,$router:i}){e&&i?i[r?"replace":"push"](e):n&&(r?location.replace(n):location.href=n)}const[name$h,bem$f]=createNamespace("badge"),badgeProps={dot:Boolean,max:numericProp,tag:makeStringProp("div"),color:String,offset:Array,content:numericProp,showZero:truthProp,position:makeStringProp("top-right")};var stdin_default$f=vue.defineComponent({name:name$h,props:badgeProps,setup(e,{slots:n}){const r=()=>{if(n.content)return!0;const{content:l,showZero:c}=e;return isDef(l)&&l!==""&&(c||l!==0&&l!=="0")},i=()=>{const{dot:l,max:c,content:u}=e;if(!l&&r())return n.content?n.content():isDef(c)&&isNumeric(u)&&+u>+c?`${c}+`:u},a=l=>l.startsWith("-")?l.replace("-",""):`-${l}`,o=vue.computed(()=>{const l={background:e.color};if(e.offset){const[c,u]=e.offset,{position:f}=e,[x,h]=f.split("-");n.default?(typeof u=="number"?l[x]=addUnit(x==="top"?u:-u):l[x]=x==="top"?addUnit(u):a(u),typeof c=="number"?l[h]=addUnit(h==="left"?c:-c):l[h]=h==="left"?addUnit(c):a(c)):(l.marginTop=addUnit(u),l.marginLeft=addUnit(c))}return l}),s=()=>{if(r()||e.dot)return vue.createVNode("div",{class:bem$f([e.position,{dot:e.dot,fixed:!!n.default}]),style:o.value},[i()])};return()=>{if(n.default){const{tag:l}=e;return vue.createVNode(l,{class:bem$f("wrapper")},{default:()=>[n.default(),s()]})}return s()}}});const Badge=withInstall(stdin_default$f);let globalZIndex=2e3;const useGlobalZIndex=()=>++globalZIndex,setGlobalZIndex=e=>{globalZIndex=e},[name$g,bem$e]=createNamespace("config-provider"),CONFIG_PROVIDER_KEY=Symbol(name$g),configProviderProps={tag:makeStringProp("div"),theme:makeStringProp("light"),zIndex:Number,themeVars:Object,themeVarsDark:Object,themeVarsLight:Object,themeVarsScope:makeStringProp("local"),iconPrefix:String};function insertDash(e){return e.replace(/([a-zA-Z])(\d)/g,"$1-$2")}function mapThemeVarsToCSSVars(e){const n={};return Object.keys(e).forEach(r=>{const i=insertDash(kebabCase(r));n[`--van-${i}`]=e[r]}),n}function syncThemeVarsOnRoot(e={},n={}){Object.keys(e).forEach(r=>{e[r]!==n[r]&&document.documentElement.style.setProperty(r,e[r])}),Object.keys(n).forEach(r=>{e[r]||document.documentElement.style.removeProperty(r)})}vue.defineComponent({name:name$g,props:configProviderProps,setup(e,{slots:n}){const r=vue.computed(()=>mapThemeVarsToCSSVars(extend({},e.themeVars,e.theme==="dark"?e.themeVarsDark:e.themeVarsLight)));if(inBrowser$1){const i=()=>{document.documentElement.classList.add(`van-theme-${e.theme}`)},a=(o=e.theme)=>{document.documentElement.classList.remove(`van-theme-${o}`)};vue.watch(()=>e.theme,(o,s)=>{s&&a(s),i()},{immediate:!0}),vue.onActivated(i),vue.onDeactivated(a),vue.onBeforeUnmount(a),vue.watch(r,(o,s)=>{e.themeVarsScope==="global"&&syncThemeVarsOnRoot(o,s)}),vue.watch(()=>e.themeVarsScope,(o,s)=>{s==="global"&&syncThemeVarsOnRoot({},r.value),o==="global"&&syncThemeVarsOnRoot(r.value,{})}),e.themeVarsScope==="global"&&syncThemeVarsOnRoot(r.value,{})}return vue.provide(CONFIG_PROVIDER_KEY,e),vue.watchEffect(()=>{e.zIndex!==void 0&&setGlobalZIndex(e.zIndex)}),()=>vue.createVNode(e.tag,{class:bem$e(),style:e.themeVarsScope==="local"?r.value:void 0},{default:()=>{var i;return[(i=n.default)==null?void 0:i.call(n)]}})}});const[name$f,bem$d]=createNamespace("icon"),isImage=e=>e==null?void 0:e.includes("/"),iconProps={dot:Boolean,tag:makeStringProp("i"),name:String,size:numericProp,badge:numericProp,color:String,badgeProps:Object,classPrefix:String};var stdin_default$e=vue.defineComponent({name:name$f,props:iconProps,setup(e,{slots:n}){const r=vue.inject(CONFIG_PROVIDER_KEY,null),i=vue.computed(()=>e.classPrefix||(r==null?void 0:r.iconPrefix)||bem$d());return()=>{const{tag:a,dot:o,name:s,size:l,badge:c,color:u}=e,f=isImage(s);return vue.createVNode(Badge,vue.mergeProps({dot:o,tag:a,class:[i.value,f?"":`${i.value}-${s}`],style:{color:u,fontSize:addUnit(l)},content:c},e.badgeProps),{default:()=>{var x;return[(x=n.default)==null?void 0:x.call(n),f&&vue.createVNode("img",{class:bem$d("image"),src:s},null)]}})}}});const Icon=withInstall(stdin_default$e),[name$e,bem$c]=createNamespace("loading"),SpinIcon=Array(12).fill(null).map((e,n)=>vue.createVNode("i",{class:bem$c("line",String(n+1))},null)),CircularIcon=vue.createVNode("svg",{class:bem$c("circular"),viewBox:"25 25 50 50"},[vue.createVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),loadingProps={size:numericProp,type:makeStringProp("circular"),color:String,vertical:Boolean,textSize:numericProp,textColor:String};var stdin_default$d=vue.defineComponent({name:name$e,props:loadingProps,setup(e,{slots:n}){const r=vue.computed(()=>extend({color:e.color},getSizeStyle(e.size))),i=()=>{const o=e.type==="spinner"?SpinIcon:CircularIcon;return vue.createVNode("span",{class:bem$c("spinner",e.type),style:r.value},[n.icon?n.icon():o])},a=()=>{var o;if(n.default)return vue.createVNode("span",{class:bem$c("text"),style:{fontSize:addUnit(e.textSize),color:(o=e.textColor)!=null?o:e.color}},[n.default()])};return()=>{const{type:o,vertical:s}=e;return vue.createVNode("div",{class:bem$c([o,{vertical:s}]),"aria-live":"polite","aria-busy":!0},[i(),a()])}}});const Loading=withInstall(stdin_default$d),popupSharedProps={show:Boolean,zIndex:numericProp,overlay:truthProp,duration:numericProp,teleport:[String,Object],lockScroll:truthProp,lazyRender:truthProp,beforeClose:Function,overlayStyle:Object,overlayClass:unknownProp,transitionAppear:Boolean,closeOnClickOverlay:truthProp};function getDirection(e,n){return e>n?"horizontal":n>e?"vertical":""}function useTouch(){const e=vue.ref(0),n=vue.ref(0),r=vue.ref(0),i=vue.ref(0),a=vue.ref(0),o=vue.ref(0),s=vue.ref(""),l=vue.ref(!0),c=()=>s.value==="vertical",u=()=>s.value==="horizontal",f=()=>{r.value=0,i.value=0,a.value=0,o.value=0,s.value="",l.value=!0};return{move:g=>{const v=g.touches[0];r.value=(v.clientX<0?0:v.clientX)-e.value,i.value=v.clientY-n.value,a.value=Math.abs(r.value),o.value=Math.abs(i.value);const p=10;(!s.value||a.value<p&&o.value<p)&&(s.value=getDirection(a.value,o.value)),l.value&&(a.value>TAP_OFFSET||o.value>TAP_OFFSET)&&(l.value=!1)},start:g=>{f(),e.value=g.touches[0].clientX,n.value=g.touches[0].clientY},reset:f,startX:e,startY:n,deltaX:r,deltaY:i,offsetX:a,offsetY:o,direction:s,isVertical:c,isHorizontal:u,isTap:l}}let totalLockCount=0;const BODY_LOCK_CLASS="van-overflow-hidden";function useLockScroll(e,n){const r=useTouch(),i="01",a="10",o=f=>{r.move(f);const x=r.deltaY.value>0?a:i,h=getScrollParent(f.target,e.value),{scrollHeight:g,offsetHeight:v,scrollTop:p}=h;let E="11";p===0?E=v>=g?"00":"01":p+v>=g&&(E="10"),E!=="11"&&r.isVertical()&&!(parseInt(E,2)&parseInt(x,2))&&preventDefault(f,!0)},s=()=>{document.addEventListener("touchstart",r.start),document.addEventListener("touchmove",o,{passive:!1}),totalLockCount||document.body.classList.add(BODY_LOCK_CLASS),totalLockCount++},l=()=>{totalLockCount&&(document.removeEventListener("touchstart",r.start),document.removeEventListener("touchmove",o),totalLockCount--,totalLockCount||document.body.classList.remove(BODY_LOCK_CLASS))},c=()=>n()&&s(),u=()=>n()&&l();onMountedOrActivated(c),vue.onDeactivated(u),vue.onBeforeUnmount(u),vue.watch(n,f=>{f?s():l()})}function useLazyRender(e){const n=vue.ref(!1);return vue.watch(e,r=>{r&&(n.value=r)},{immediate:!0}),r=>()=>n.value?r():null}const useScopeId=()=>{var e;const{scopeId:n}=((e=vue.getCurrentInstance())==null?void 0:e.vnode)||{};return n?{[n]:""}:null},[name$d,bem$b]=createNamespace("overlay"),overlayProps={show:Boolean,zIndex:numericProp,duration:numericProp,className:unknownProp,lockScroll:truthProp,lazyRender:truthProp,customStyle:Object,teleport:[String,Object]};var stdin_default$c=vue.defineComponent({name:name$d,props:overlayProps,setup(e,{slots:n}){const r=vue.ref(),i=useLazyRender(()=>e.show||!e.lazyRender),a=s=>{e.lockScroll&&preventDefault(s,!0)},o=i(()=>{var s;const l=extend(getZIndexStyle(e.zIndex),e.customStyle);return isDef(e.duration)&&(l.animationDuration=`${e.duration}s`),vue.withDirectives(vue.createVNode("div",{ref:r,style:l,class:[bem$b(),e.className]},[(s=n.default)==null?void 0:s.call(n)]),[[vue.vShow,e.show]])});return useEventListener("touchmove",a,{target:r}),()=>{const s=vue.createVNode(vue.Transition,{name:"van-fade",appear:!0},{default:o});return e.teleport?vue.createVNode(vue.Teleport,{to:e.teleport},{default:()=>[s]}):s}}});const Overlay=withInstall(stdin_default$c),popupProps=extend({},popupSharedProps,{round:Boolean,position:makeStringProp("center"),closeIcon:makeStringProp("cross"),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:makeStringProp("top-right"),safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),[name$c,bem$a]=createNamespace("popup");var stdin_default$b=vue.defineComponent({name:name$c,inheritAttrs:!1,props:popupProps,emits:["open","close","opened","closed","keydown","update:show","clickOverlay","clickCloseIcon"],setup(e,{emit:n,attrs:r,slots:i}){let a,o;const s=vue.ref(),l=vue.ref(),c=useLazyRender(()=>e.show||!e.lazyRender),u=vue.computed(()=>{const _={zIndex:s.value};if(isDef(e.duration)){const k=e.position==="center"?"animationDuration":"transitionDuration";_[k]=`${e.duration}s`}return _}),f=()=>{a||(a=!0,s.value=e.zIndex!==void 0?+e.zIndex:useGlobalZIndex(),n("open"))},x=()=>{a&&callInterceptor(e.beforeClose,{done(){a=!1,n("close"),n("update:show",!1)}})},h=_=>{n("clickOverlay",_),e.closeOnClickOverlay&&x()},g=()=>{if(e.overlay)return vue.createVNode(Overlay,vue.mergeProps({show:e.show,class:e.overlayClass,zIndex:s.value,duration:e.duration,customStyle:e.overlayStyle,role:e.closeOnClickOverlay?"button":void 0,tabindex:e.closeOnClickOverlay?0:void 0},useScopeId(),{onClick:h}),{default:i["overlay-content"]})},v=_=>{n("clickCloseIcon",_),x()},p=()=>{if(e.closeable)return vue.createVNode(Icon,{role:"button",tabindex:0,name:e.closeIcon,class:[bem$a("close-icon",e.closeIconPosition),HAPTICS_FEEDBACK],classPrefix:e.iconPrefix,onClick:v},null)};let E;const b=()=>{E&&clearTimeout(E),E=setTimeout(()=>{n("opened")})},d=()=>n("closed"),m=_=>n("keydown",_),y=c(()=>{var _;const{round:k,position:T,safeAreaInsetTop:F,safeAreaInsetBottom:M}=e;return vue.withDirectives(vue.createVNode("div",vue.mergeProps({ref:l,style:u.value,role:"dialog",tabindex:0,class:[bem$a({round:k,[T]:T}),{"van-safe-area-top":F,"van-safe-area-bottom":M}],onKeydown:m},r,useScopeId()),[(_=i.default)==null?void 0:_.call(i),p()]),[[vue.vShow,e.show]])}),A=()=>{const{position:_,transition:k,transitionAppear:T}=e,F=_==="center"?"van-fade":`van-popup-slide-${_}`;return vue.createVNode(vue.Transition,{name:k||F,appear:T,onAfterEnter:b,onAfterLeave:d},{default:y})};return vue.watch(()=>e.show,_=>{_&&!a&&(f(),r.tabindex===0&&vue.nextTick(()=>{var k;(k=l.value)==null||k.focus()})),!_&&a&&(a=!1,n("close"))}),useExpose({popupRef:l}),useLockScroll(l,()=>e.show&&e.lockScroll),useEventListener("popstate",()=>{e.closeOnPopstate&&(x(),o=!1)}),vue.onMounted(()=>{e.show&&f()}),vue.onActivated(()=>{o&&(n("update:show",!0),o=!1)}),vue.onDeactivated(()=>{e.show&&e.teleport&&(x(),o=!0)}),vue.provide(POPUP_TOGGLE_KEY,()=>e.show),()=>e.teleport?vue.createVNode(vue.Teleport,{to:e.teleport},{default:()=>[g(),A()]}):vue.createVNode(vue.Fragment,null,[g(),A()])}});const Popup=withInstall(stdin_default$b),[name$b,bem$9,t]=createNamespace("picker"),getFirstEnabledOption=e=>e.find(n=>!n.disabled)||e[0];function getColumnsType(e,n){const r=e[0];if(r){if(Array.isArray(r))return"multiple";if(n.children in r)return"cascade"}return"default"}function findIndexOfEnabledOption(e,n){n=clamp(n,0,e.length);for(let r=n;r<e.length;r++)if(!e[r].disabled)return r;for(let r=n-1;r>=0;r--)if(!e[r].disabled)return r;return 0}const isOptionExist=(e,n,r)=>n!==void 0&&!!e.find(i=>i[r.value]===n);function findOptionByValue(e,n,r){const i=e.findIndex(o=>o[r.value]===n),a=findIndexOfEnabledOption(e,i);return e[a]}function formatCascadeColumns(e,n,r){const i=[];let a={[n.children]:e},o=0;for(;a&&a[n.children];){const s=a[n.children],l=r.value[o];if(a=isDef(l)?findOptionByValue(s,l,n):void 0,!a&&s.length){const c=getFirstEnabledOption(s)[n.value];a=findOptionByValue(s,c,n)}o++,i.push(s)}return i}function getElementTranslateY(e){const{transform:n}=window.getComputedStyle(e),r=n.slice(7,n.length-1).split(", ")[5];return Number(r)}function assignDefaultFields(e){return extend({text:"text",value:"value",children:"children"},e)}const DEFAULT_DURATION=200,MOMENTUM_TIME=300,MOMENTUM_DISTANCE=15,[name$a,bem$8]=createNamespace("picker-column"),PICKER_KEY=Symbol(name$a);var stdin_default$a=vue.defineComponent({name:name$a,props:{value:numericProp,fields:makeRequiredProp(Object),options:makeArrayProp(),readonly:Boolean,allowHtml:Boolean,optionHeight:makeRequiredProp(Number),swipeDuration:makeRequiredProp(numericProp),visibleOptionNum:makeRequiredProp(numericProp)},emits:["change","clickOption","scrollInto"],setup(e,{emit:n,slots:r}){let i,a,o,s,l;const c=vue.ref(),u=vue.ref(),f=vue.ref(0),x=vue.ref(0),h=useTouch(),g=()=>e.options.length,v=()=>e.optionHeight*(+e.visibleOptionNum-1)/2,p=M=>{let B=findIndexOfEnabledOption(e.options,M);const L=-B*e.optionHeight,R=()=>{B>g()-1&&(B=findIndexOfEnabledOption(e.options,M));const H=e.options[B][e.fields.value];H!==e.value&&n("change",H)};i&&L!==f.value?l=R:R(),f.value=L},E=()=>e.readonly||!e.options.length,b=M=>{i||E()||(l=null,x.value=DEFAULT_DURATION,p(M),n("clickOption",e.options[M]))},d=M=>clamp(Math.round(-M/e.optionHeight),0,g()-1),m=vue.computed(()=>d(f.value)),y=(M,B)=>{const L=Math.abs(M/B);M=f.value+L/.003*(M<0?-1:1);const R=d(M);x.value=+e.swipeDuration,p(R)},A=()=>{i=!1,x.value=0,l&&(l(),l=null)},_=M=>{if(!E()){if(h.start(M),i){const B=getElementTranslateY(u.value);f.value=Math.min(0,B-v())}x.value=0,a=f.value,o=Date.now(),s=a,l=null}},k=M=>{if(E())return;h.move(M),h.isVertical()&&(i=!0,preventDefault(M,!0));const B=clamp(a+h.deltaY.value,-(g()*e.optionHeight),e.optionHeight),L=d(B);L!==m.value&&n("scrollInto",e.options[L]),f.value=B;const R=Date.now();R-o>MOMENTUM_TIME&&(o=R,s=B)},T=()=>{if(E())return;const M=f.value-s,B=Date.now()-o;if(B<MOMENTUM_TIME&&Math.abs(M)>MOMENTUM_DISTANCE){y(M,B);return}const R=d(f.value);x.value=DEFAULT_DURATION,p(R),setTimeout(()=>{i=!1},0)},F=()=>{const M={height:`${e.optionHeight}px`};return e.options.map((B,L)=>{const R=B[e.fields.text],{disabled:H}=B,V=B[e.fields.value],P={role:"button",style:M,tabindex:H?-1:0,class:[bem$8("item",{disabled:H,selected:V===e.value}),B.className],onClick:()=>b(L)},I={class:"van-ellipsis",[e.allowHtml?"innerHTML":"textContent"]:R};return vue.createVNode("li",P,[r.option?r.option(B,L):vue.createVNode("div",I,null)])})};return useParent(PICKER_KEY),useExpose({stopMomentum:A}),vue.watchEffect(()=>{const M=i?Math.floor(-f.value/e.optionHeight):e.options.findIndex(R=>R[e.fields.value]===e.value),B=findIndexOfEnabledOption(e.options,M),L=-B*e.optionHeight;i&&B<M&&A(),f.value=L}),useEventListener("touchmove",k,{target:c}),()=>vue.createVNode("div",{ref:c,class:bem$8(),onTouchstartPassive:_,onTouchend:T,onTouchcancel:T},[vue.createVNode("ul",{ref:u,style:{transform:`translate3d(0, ${f.value+v()}px, 0)`,transitionDuration:`${x.value}ms`,transitionProperty:x.value?"all":"none"},class:bem$8("wrapper"),onTransitionend:A},[F()])])}});const[name$9]=createNamespace("picker-toolbar"),pickerToolbarProps={title:String,cancelButtonText:String,confirmButtonText:String},pickerToolbarSlots=["cancel","confirm","title","toolbar"],pickerToolbarPropKeys=Object.keys(pickerToolbarProps);var stdin_default$9=vue.defineComponent({name:name$9,props:pickerToolbarProps,emits:["confirm","cancel"],setup(e,{emit:n,slots:r}){const i=()=>{if(r.title)return r.title();if(e.title)return vue.createVNode("div",{class:[bem$9("title"),"van-ellipsis"]},[e.title])},a=()=>n("cancel"),o=()=>n("confirm"),s=()=>{var c;const u=(c=e.cancelButtonText)!=null?c:t("cancel");if(!(!r.cancel&&!u))return vue.createVNode("button",{type:"button",class:[bem$9("cancel"),HAPTICS_FEEDBACK],onClick:a},[r.cancel?r.cancel():u])},l=()=>{var c;const u=(c=e.confirmButtonText)!=null?c:t("confirm");if(!(!r.confirm&&!u))return vue.createVNode("button",{type:"button",class:[bem$9("confirm"),HAPTICS_FEEDBACK],onClick:o},[r.confirm?r.confirm():u])};return()=>vue.createVNode("div",{class:bem$9("toolbar")},[r.toolbar?r.toolbar():[s(),i(),l()]])}});const useSyncPropRef=(e,n)=>{const r=vue.ref(e());return vue.watch(e,i=>{i!==r.value&&(r.value=i)}),vue.watch(r,i=>{i!==e()&&n(i)}),r};/**
127
+ */var Matrix=function(){var e=Math.cos,n=Math.sin,r=Math.tan,i=Math.round;function a(){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 o(E){if(E===0)return this;var S=e(E),N=n(E);return this._t(S,-N,0,0,N,S,0,0,0,0,1,0,0,0,0,1)}function s(E){if(E===0)return this;var S=e(E),N=n(E);return this._t(1,0,0,0,0,S,-N,0,0,N,S,0,0,0,0,1)}function l(E){if(E===0)return this;var S=e(E),N=n(E);return this._t(S,0,N,0,0,1,0,0,-N,0,S,0,0,0,0,1)}function c(E){if(E===0)return this;var S=e(E),N=n(E);return this._t(S,-N,0,0,N,S,0,0,0,0,1,0,0,0,0,1)}function u(E,S){return this._t(1,S,E,1,0,0)}function f(E,S){return this.shear(r(E),r(S))}function x(E,S){var N=e(S),w=n(S);return this._t(N,w,0,0,-w,N,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(E),1,0,0,0,0,1,0,0,0,0,1)._t(N,-w,0,0,w,N,0,0,0,0,1,0,0,0,0,1)}function h(E,S,N){return!N&&N!==0&&(N=1),E===1&&S===1&&N===1?this:this._t(E,0,0,0,0,S,0,0,0,0,N,0,0,0,0,1)}function g(E,S,N,w,R,O,D,q,j,H,K,G,Y,J,ee,X){return this.props[0]=E,this.props[1]=S,this.props[2]=N,this.props[3]=w,this.props[4]=R,this.props[5]=O,this.props[6]=D,this.props[7]=q,this.props[8]=j,this.props[9]=H,this.props[10]=K,this.props[11]=G,this.props[12]=Y,this.props[13]=J,this.props[14]=ee,this.props[15]=X,this}function v(E,S,N){return N=N||0,E!==0||S!==0||N!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,E,S,N,1):this}function p(E,S,N,w,R,O,D,q,j,H,K,G,Y,J,ee,X){var W=this.props;if(E===1&&S===0&&N===0&&w===0&&R===0&&O===1&&D===0&&q===0&&j===0&&H===0&&K===1&&G===0)return W[12]=W[12]*E+W[15]*Y,W[13]=W[13]*O+W[15]*J,W[14]=W[14]*K+W[15]*ee,W[15]*=X,this._identityCalculated=!1,this;var Q=W[0],te=W[1],ie=W[2],ae=W[3],se=W[4],fe=W[5],he=W[6],ge=W[7],be=W[8],Se=W[9],Ae=W[10],ke=W[11],Be=W[12],Ge=W[13],$e=W[14],He=W[15];return W[0]=Q*E+te*R+ie*j+ae*Y,W[1]=Q*S+te*O+ie*H+ae*J,W[2]=Q*N+te*D+ie*K+ae*ee,W[3]=Q*w+te*q+ie*G+ae*X,W[4]=se*E+fe*R+he*j+ge*Y,W[5]=se*S+fe*O+he*H+ge*J,W[6]=se*N+fe*D+he*K+ge*ee,W[7]=se*w+fe*q+he*G+ge*X,W[8]=be*E+Se*R+Ae*j+ke*Y,W[9]=be*S+Se*O+Ae*H+ke*J,W[10]=be*N+Se*D+Ae*K+ke*ee,W[11]=be*w+Se*q+Ae*G+ke*X,W[12]=Be*E+Ge*R+$e*j+He*Y,W[13]=Be*S+Ge*O+$e*H+He*J,W[14]=Be*N+Ge*D+$e*K+He*ee,W[15]=Be*w+Ge*q+$e*G+He*X,this._identityCalculated=!1,this}function C(E){var S=E.props;return this.transform(S[0],S[1],S[2],S[3],S[4],S[5],S[6],S[7],S[8],S[9],S[10],S[11],S[12],S[13],S[14],S[15])}function b(){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 d(E){for(var S=0;S<16;){if(E.props[S]!==this.props[S])return!1;S+=1}return!0}function m(E){var S;for(S=0;S<16;S+=1)E.props[S]=this.props[S];return E}function y(E){var S;for(S=0;S<16;S+=1)this.props[S]=E[S]}function A(E,S,N){return{x:E*this.props[0]+S*this.props[4]+N*this.props[8]+this.props[12],y:E*this.props[1]+S*this.props[5]+N*this.props[9]+this.props[13],z:E*this.props[2]+S*this.props[6]+N*this.props[10]+this.props[14]}}function _(E,S,N){return E*this.props[0]+S*this.props[4]+N*this.props[8]+this.props[12]}function k(E,S,N){return E*this.props[1]+S*this.props[5]+N*this.props[9]+this.props[13]}function T(E,S,N){return E*this.props[2]+S*this.props[6]+N*this.props[10]+this.props[14]}function F(){var E=this.props[0]*this.props[5]-this.props[1]*this.props[4],S=this.props[5]/E,N=-this.props[1]/E,w=-this.props[4]/E,R=this.props[0]/E,O=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/E,D=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/E,q=new Matrix;return q.props[0]=S,q.props[1]=N,q.props[4]=w,q.props[5]=R,q.props[12]=O,q.props[13]=D,q}function M(E){var S=this.getInverseMatrix();return S.applyToPointArray(E[0],E[1],E[2]||0)}function B(E){var S,N=E.length,w=[];for(S=0;S<N;S+=1)w[S]=M(E[S]);return w}function L(E,S,N){var w=createTypedArray("float32",6);if(this.isIdentity())w[0]=E[0],w[1]=E[1],w[2]=S[0],w[3]=S[1],w[4]=N[0],w[5]=N[1];else{var R=this.props[0],O=this.props[1],D=this.props[4],q=this.props[5],j=this.props[12],H=this.props[13];w[0]=E[0]*R+E[1]*D+j,w[1]=E[0]*O+E[1]*q+H,w[2]=S[0]*R+S[1]*D+j,w[3]=S[0]*O+S[1]*q+H,w[4]=N[0]*R+N[1]*D+j,w[5]=N[0]*O+N[1]*q+H}return w}function V(E,S,N){var w;return this.isIdentity()?w=[E,S,N]:w=[E*this.props[0]+S*this.props[4]+N*this.props[8]+this.props[12],E*this.props[1]+S*this.props[5]+N*this.props[9]+this.props[13],E*this.props[2]+S*this.props[6]+N*this.props[10]+this.props[14]],w}function U(E,S){if(this.isIdentity())return E+","+S;var N=this.props;return Math.round((E*N[0]+S*N[4]+N[12])*100)/100+","+Math.round((E*N[1]+S*N[5]+N[13])*100)/100}function $(){for(var E=0,S=this.props,N="matrix3d(",w=1e4;E<16;)N+=i(S[E]*w)/w,N+=E===15?")":",",E+=1;return N}function P(E){var S=1e4;return E<1e-6&&E>0||E>-1e-6&&E<0?i(E*S)/S:E}function I(){var E=this.props,S=P(E[0]),N=P(E[1]),w=P(E[4]),R=P(E[5]),O=P(E[12]),D=P(E[13]);return"matrix("+S+","+N+","+w+","+R+","+O+","+D+")"}return function(){this.reset=a,this.rotate=o,this.rotateX=s,this.rotateY=l,this.rotateZ=c,this.skew=f,this.skewFromAxis=x,this.shear=u,this.scale=h,this.setTransform=g,this.translate=v,this.transform=p,this.multiply=C,this.applyToPoint=A,this.applyToX=_,this.applyToY=k,this.applyToZ=T,this.applyToPointArray=V,this.applyToTriplePoints=L,this.applyToPointStringified=U,this.toCSS=$,this.to2dCSS=I,this.clone=m,this.cloneFromProps=y,this.equals=d,this.inversePoints=B,this.inversePoint=M,this.getInverseMatrix=F,this._t=this.transform,this.isIdentity=b,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(r){return typeof r}:_typeof$3=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$3(e)}var lottie={};function setLocation(e){setLocationHref(e)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return animationManager.loadAnimation(e)}function setQuality(e){if(typeof e=="string")switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e)}function inBrowser(){return typeof navigator<"u"}function installPlugin(e,n){e==="expressions"&&setExpressionsPlugin(n)}function getFactory(e){switch(e){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(e){for(var n=queryString.split("&"),r=0;r<n.length;r+=1){var i=n[r].split("=");if(decodeURIComponent(i[0])==e)return decodeURIComponent(i[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(e){}var ShapeModifiers=function(){var e={},n={};e.registerModifier=r,e.getModifier=i;function r(a,o){n[a]||(n[a]=o)}function i(a,o,s){return new n[a](o,s)}return e}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var n={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(n),this.addShapeToModifier(n),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,n){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,n),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(e,n){this.s=PropertyFactory.getProp(e,n.s,0,.01,this),this.e=PropertyFactory.getProp(e,n.e,0,.01,this),this.o=PropertyFactory.getProp(e,n.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=n.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,n,r,i,a){var o=[];n<=1?o.push({s:e,e:n}):e>=1?o.push({s:e-1,e:n-1}):(o.push({s:e,e:1}),o.push({s:0,e:n-1}));var s=[],l,c=o.length,u;for(l=0;l<c;l+=1)if(u=o[l],!(u.e*a<i||u.s*a>i+r)){var f,x;u.s*a<=i?f=0:f=(u.s*a-i)/r,u.e*a>=i+r?x=1:x=(u.e*a-i)/r,s.push([f,x])}return s.length||s.push([0,0]),s},TrimModifier.prototype.releasePathsData=function(e){var n,r=e.length;for(n=0;n<r;n+=1)segmentsLengthPool.release(e[n]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var n,r;if(this._mdf||e){var i=this.o.v%360/360;if(i<0&&(i+=1),this.s.v>1?n=1+i:this.s.v<0?n=0+i:n=this.s.v+i,this.e.v>1?r=1+i:this.e.v<0?r=0+i:r=this.e.v+i,n>r){var a=n;n=r,r=a}n=Math.round(n*1e4)*1e-4,r=Math.round(r*1e4)*1e-4,this.sValue=n,this.eValue=r}else n=this.sValue,r=this.eValue;var o,s,l=this.shapes.length,c,u,f,x,h,g=0;if(r===n)for(s=0;s<l;s+=1)this.shapes[s].localShapeCollection.releaseShapes(),this.shapes[s].shape._mdf=!0,this.shapes[s].shape.paths=this.shapes[s].localShapeCollection,this._mdf&&(this.shapes[s].pathsData.length=0);else if(r===1&&n===0||r===0&&n===1){if(this._mdf)for(s=0;s<l;s+=1)this.shapes[s].pathsData.length=0,this.shapes[s].shape._mdf=!0}else{var v=[],p,C;for(s=0;s<l;s+=1)if(p=this.shapes[s],!p.shape._mdf&&!this._mdf&&!e&&this.m!==2)p.shape.paths=p.localShapeCollection;else{if(o=p.shape.paths,u=o._length,h=0,!p.shape._mdf&&p.pathsData.length)h=p.totalShapeLength;else{for(f=this.releasePathsData(p.pathsData),c=0;c<u;c+=1)x=bez.getSegmentsLength(o.shapes[c]),f.push(x),h+=x.totalLength;p.totalShapeLength=h,p.pathsData=f}g+=h,p.shape._mdf=!0}var b=n,d=r,m=0,y;for(s=l-1;s>=0;s-=1)if(p=this.shapes[s],p.shape._mdf){for(C=p.localShapeCollection,C.releaseShapes(),this.m===2&&l>1?(y=this.calculateShapeEdges(n,r,p.totalShapeLength,m,g),m+=p.totalShapeLength):y=[[b,d]],u=y.length,c=0;c<u;c+=1){b=y[c][0],d=y[c][1],v.length=0,d<=1?v.push({s:p.totalShapeLength*b,e:p.totalShapeLength*d}):b>=1?v.push({s:p.totalShapeLength*(b-1),e:p.totalShapeLength*(d-1)}):(v.push({s:p.totalShapeLength*b,e:p.totalShapeLength}),v.push({s:0,e:p.totalShapeLength*(d-1)}));var A=this.addShapes(p,v[0]);if(v[0].s!==v[0].e){if(v.length>1){var _=p.shape.paths.shapes[p.shape.paths._length-1];if(_.c){var k=A.pop();this.addPaths(A,C),A=this.addShapes(p,v[1],k)}else this.addPaths(A,C),A=this.addShapes(p,v[1])}this.addPaths(A,C)}}p.shape.paths=C}}},TrimModifier.prototype.addPaths=function(e,n){var r,i=e.length;for(r=0;r<i;r+=1)n.addShape(e[r])},TrimModifier.prototype.addSegment=function(e,n,r,i,a,o,s){a.setXYAt(n[0],n[1],"o",o),a.setXYAt(r[0],r[1],"i",o+1),s&&a.setXYAt(e[0],e[1],"v",o),a.setXYAt(i[0],i[1],"v",o+1)},TrimModifier.prototype.addSegmentFromArray=function(e,n,r,i){n.setXYAt(e[1],e[5],"o",r),n.setXYAt(e[2],e[6],"i",r+1),i&&n.setXYAt(e[0],e[4],"v",r),n.setXYAt(e[3],e[7],"v",r+1)},TrimModifier.prototype.addShapes=function(e,n,r){var i=e.pathsData,a=e.shape.paths.shapes,o,s=e.shape.paths._length,l,c,u=0,f,x,h,g,v=[],p,C=!0;for(r?(x=r._length,p=r._length):(r=shapePool.newElement(),x=0,p=0),v.push(r),o=0;o<s;o+=1){for(h=i[o].lengths,r.c=a[o].c,c=a[o].c?h.length:h.length+1,l=1;l<c;l+=1)if(f=h[l-1],u+f.addedLength<n.s)u+=f.addedLength,r.c=!1;else if(u>n.e){r.c=!1;break}else n.s<=u&&n.e>=u+f.addedLength?(this.addSegment(a[o].v[l-1],a[o].o[l-1],a[o].i[l],a[o].v[l],r,x,C),C=!1):(g=bez.getNewSegment(a[o].v[l-1],a[o].v[l],a[o].o[l-1],a[o].i[l],(n.s-u)/f.addedLength,(n.e-u)/f.addedLength,h[l-1]),this.addSegmentFromArray(g,r,x,C),C=!1,r.c=!1),u+=f.addedLength,x+=1;if(a[o].c&&h.length){if(f=h[l-1],u<=n.e){var b=h[l-1].addedLength;n.s<=u&&n.e>=u+b?(this.addSegment(a[o].v[l-1],a[o].o[l-1],a[o].i[0],a[o].v[0],r,x,C),C=!1):(g=bez.getNewSegment(a[o].v[l-1],a[o].v[0],a[o].o[l-1],a[o].i[0],(n.s-u)/b,(n.e-u)/b,h[l-1]),this.addSegmentFromArray(g,r,x,C),C=!1,r.c=!1)}else r.c=!1;u+=f.addedLength,x+=1}if(r._length&&(r.setXYAt(r.v[p][0],r.v[p][1],"i",p),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),u>n.e)break;o<s-1&&(r=shapePool.newElement(),C=!0,v.push(r),x=0)}return v};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,n){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,n.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,n){var r=n/100,i=[0,0],a=e._length,o=0;for(o=0;o<a;o+=1)i[0]+=e.v[o][0],i[1]+=e.v[o][1];i[0]/=a,i[1]/=a;var s=shapePool.newElement();s.c=e.c;var l,c,u,f,x,h;for(o=0;o<a;o+=1)l=e.v[o][0]+(i[0]-e.v[o][0])*r,c=e.v[o][1]+(i[1]-e.v[o][1])*r,u=e.o[o][0]+(i[0]-e.o[o][0])*-r,f=e.o[o][1]+(i[1]-e.o[o][1])*-r,x=e.i[o][0]+(i[0]-e.i[o][0])*-r,h=e.i[o][1]+(i[1]-e.i[o][1])*-r,s.setTripleAt(l,c,u,f,x,h,o);return s},PuckerAndBloatModifier.prototype.processShapes=function(e){var n,r,i=this.shapes.length,a,o,s=this.amount.v;if(s!==0){var l,c;for(r=0;r<i;r+=1){if(l=this.shapes[r],c=l.localShapeCollection,!(!l.shape._mdf&&!this._mdf&&!e))for(c.releaseShapes(),l.shape._mdf=!0,n=l.shape.paths.shapes,o=l.shape.paths._length,a=0;a<o;a+=1)c.addShape(this.processPath(n[a],s));l.shape.paths=l.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function n(c){var u=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||u,this.a&&c.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&c.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&c.skewFromAxis(-this.sk.v,this.sa.v),this.r?c.rotate(-this.r.v):c.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?c.translate(this.px.v,this.py.v,-this.pz.v):c.translate(this.px.v,this.py.v,0):c.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function r(c){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||c){var u;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 f,x;if(u=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(f=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/u,0),x=this.p.getValueAtTime(this.p.keyframes[0].t/u,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(f=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/u,0),x=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/u,0)):(f=this.p.pv,x=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/u,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){f=[],x=[];var h=this.px,g=this.py;h._caching.lastFrame+h.offsetTime<=h.keyframes[0].t?(f[0]=h.getValueAtTime((h.keyframes[0].t+.01)/u,0),f[1]=g.getValueAtTime((g.keyframes[0].t+.01)/u,0),x[0]=h.getValueAtTime(h.keyframes[0].t/u,0),x[1]=g.getValueAtTime(g.keyframes[0].t/u,0)):h._caching.lastFrame+h.offsetTime>=h.keyframes[h.keyframes.length-1].t?(f[0]=h.getValueAtTime(h.keyframes[h.keyframes.length-1].t/u,0),f[1]=g.getValueAtTime(g.keyframes[g.keyframes.length-1].t/u,0),x[0]=h.getValueAtTime((h.keyframes[h.keyframes.length-1].t-.01)/u,0),x[1]=g.getValueAtTime((g.keyframes[g.keyframes.length-1].t-.01)/u,0)):(f=[h.pv,g.pv],x[0]=h.getValueAtTime((h._caching.lastFrame+h.offsetTime-.01)/u,h.offsetTime),x[1]=g.getValueAtTime((g._caching.lastFrame+g.offsetTime-.01)/u,g.offsetTime))}else x=e,f=x;this.v.rotate(-Math.atan2(f[1]-x[1],f[0]-x[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 i(){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 a(){}function o(c){this._addDynamicProperty(c),this.elem.addDynamicProperty(c),this._isDirty=!0}function s(c,u,f){if(this.elem=c,this.frameId=-1,this.propType="transform",this.data=u,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(f||c),u.p&&u.p.s?(this.px=PropertyFactory.getProp(c,u.p.x,0,0,this),this.py=PropertyFactory.getProp(c,u.p.y,0,0,this),u.p.z&&(this.pz=PropertyFactory.getProp(c,u.p.z,0,0,this))):this.p=PropertyFactory.getProp(c,u.p||{k:[0,0,0]},1,0,this),u.rx){if(this.rx=PropertyFactory.getProp(c,u.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(c,u.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(c,u.rz,0,degToRads,this),u.or.k[0].ti){var x,h=u.or.k.length;for(x=0;x<h;x+=1)u.or.k[x].to=null,u.or.k[x].ti=null}this.or=PropertyFactory.getProp(c,u.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(c,u.r||{k:0},0,degToRads,this);u.sk&&(this.sk=PropertyFactory.getProp(c,u.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(c,u.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(c,u.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(c,u.s||{k:[100,100,100]},1,.01,this),u.o?this.o=PropertyFactory.getProp(c,u.o,0,.01,c):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}s.prototype={applyToMatrix:n,getValue:r,precalculateMatrix:i,autoOrient:a},extendPrototype([DynamicPropertyContainer],s),s.prototype.addDynamicProperty=o,s.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function l(c,u,f){return new s(c,u,f)}return{getTransformProperty:l}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,n){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,n.c,0,null,this),this.o=PropertyFactory.getProp(e,n.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,n.tr,this),this.so=PropertyFactory.getProp(e,n.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,n.tr.eo,0,.01,this),this.data=n,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(e,n,r,i,a,o){var s=o?-1:1,l=i.s.v[0]+(1-i.s.v[0])*(1-a),c=i.s.v[1]+(1-i.s.v[1])*(1-a);e.translate(i.p.v[0]*s*a,i.p.v[1]*s*a,i.p.v[2]),n.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),n.rotate(-i.r.v*s*a),n.translate(i.a.v[0],i.a.v[1],i.a.v[2]),r.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),r.scale(o?1/l:l,o?1/c:c),r.translate(i.a.v[0],i.a.v[1],i.a.v[2])},RepeaterModifier.prototype.init=function(e,n,r,i){for(this.elem=e,this.arr=n,this.pos=r,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,n[r]);r>0;)r-=1,this._elements.unshift(n[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var n,r=e.length;for(n=0;n<r;n+=1)e[n]._processed=!1,e[n].ty==="gr"&&this.resetElements(e[n].it)},RepeaterModifier.prototype.cloneElements=function(e){var n=JSON.parse(JSON.stringify(e));return this.resetElements(n),n},RepeaterModifier.prototype.changeGroupRender=function(e,n){var r,i=e.length;for(r=0;r<i;r+=1)e[r]._render=n,e[r].ty==="gr"&&this.changeGroupRender(e[r].it,n)},RepeaterModifier.prototype.processShapes=function(e){var n,r,i,a,o,s=!1;if(this._mdf||e){var l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var c={it:this.cloneElements(this._elements),ty:"gr"};c.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,c),this._groups.splice(0,0,c),this._currentCopies+=1}this.elem.reloadShapes(),s=!0}o=0;var u;for(i=0;i<=this._groups.length-1;i+=1){if(u=o<l,this._groups[i]._render=u,this.changeGroupRender(this._groups[i].it,u),!u){var f=this.elemsData[i].it,x=f[f.length-1];x.transform.op.v!==0?(x.transform.op._mdf=!0,x.transform.op.v=0):x.transform.op._mdf=!1}o+=1}this._currentCopies=l;var h=this.o.v,g=h%1,v=h>0?Math.floor(h):Math.ceil(h),p=this.pMatrix.props,C=this.rMatrix.props,b=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var d=0;if(h>0){for(;d<v;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),d+=1;g&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,g,!1),d+=g)}else if(h<0){for(;d>v;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),d-=1;g&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-g,!0),d-=g)}i=this.data.m===1?0:this._currentCopies-1,a=this.data.m===1?1:-1,o=this._currentCopies;for(var m,y;o;){if(n=this.elemsData[i].it,r=n[n.length-1].transform.mProps.v.props,y=r.length,n[n.length-1].transform.mProps._mdf=!0,n[n.length-1].transform.op._mdf=!0,n[n.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),d!==0){for((i!==0&&a===1||i!==this._currentCopies-1&&a===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(C[0],C[1],C[2],C[3],C[4],C[5],C[6],C[7],C[8],C[9],C[10],C[11],C[12],C[13],C[14],C[15]),this.matrix.transform(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],b[8],b[9],b[10],b[11],b[12],b[13],b[14],b[15]),this.matrix.transform(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15]),m=0;m<y;m+=1)r[m]=this.matrix.props[m];this.matrix.reset()}else for(this.matrix.reset(),m=0;m<y;m+=1)r[m]=this.matrix.props[m];d+=1,o-=1,i+=a}}else for(o=this._currentCopies,i=0,a=1;o;)n=this.elemsData[i].it,r=n[n.length-1].transform.mProps.v.props,n[n.length-1].transform.mProps._mdf=!1,n[n.length-1].transform.op._mdf=!1,o-=1,i+=a;return s},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,n){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,n.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,n){var r=shapePool.newElement();r.c=e.c;var i,a=e._length,o,s,l,c,u,f,x=0,h,g,v,p,C,b;for(i=0;i<a;i+=1)o=e.v[i],l=e.o[i],s=e.i[i],o[0]===l[0]&&o[1]===l[1]&&o[0]===s[0]&&o[1]===s[1]?(i===0||i===a-1)&&!e.c?(r.setTripleAt(o[0],o[1],l[0],l[1],s[0],s[1],x),x+=1):(i===0?c=e.v[a-1]:c=e.v[i-1],u=Math.sqrt(Math.pow(o[0]-c[0],2)+Math.pow(o[1]-c[1],2)),f=u?Math.min(u/2,n)/u:0,C=o[0]+(c[0]-o[0])*f,h=C,b=o[1]-(o[1]-c[1])*f,g=b,v=h-(h-o[0])*roundCorner,p=g-(g-o[1])*roundCorner,r.setTripleAt(h,g,v,p,C,b,x),x+=1,i===a-1?c=e.v[0]:c=e.v[i+1],u=Math.sqrt(Math.pow(o[0]-c[0],2)+Math.pow(o[1]-c[1],2)),f=u?Math.min(u/2,n)/u:0,v=o[0]+(c[0]-o[0])*f,h=v,p=o[1]+(c[1]-o[1])*f,g=p,C=h-(h-o[0])*roundCorner,b=g-(g-o[1])*roundCorner,r.setTripleAt(h,g,v,p,C,b,x),x+=1):(r.setTripleAt(e.v[i][0],e.v[i][1],e.o[i][0],e.o[i][1],e.i[i][0],e.i[i][1],x),x+=1);return r},RoundCornersModifier.prototype.processShapes=function(e){var n,r,i=this.shapes.length,a,o,s=this.rd.v;if(s!==0){var l,c;for(r=0;r<i;r+=1){if(l=this.shapes[r],c=l.localShapeCollection,!(!l.shape._mdf&&!this._mdf&&!e))for(c.releaseShapes(),l.shape._mdf=!0,n=l.shape.paths.shapes,o=l.shape.paths._length,a=0;a<o;a+=1)c.addShape(this.processPath(n[a],s));l.shape.paths=l.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(e,n){return Math.abs(e-n)*1e5<=Math.min(Math.abs(e),Math.abs(n))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,n,r){return e*(1-r)+n*r}function lerpPoint(e,n,r){return[lerp(e[0],n[0],r),lerp(e[1],n[1],r)]}function quadRoots(e,n,r){if(e===0)return[];var i=n*n-4*e*r;if(i<0)return[];var a=-n/(2*e);if(i===0)return[a];var o=Math.sqrt(i)/(2*e);return[a-o,a+o]}function polynomialCoefficients(e,n,r,i){return[-e+3*n-3*r+i,3*e-6*n+3*r,-3*e+3*n,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,n,r,i,a){a&&pointEqual(e,n)&&(n=lerpPoint(e,i,1/3)),a&&pointEqual(r,i)&&(r=lerpPoint(e,i,2/3));var o=polynomialCoefficients(e[0],n[0],r[0],i[0]),s=polynomialCoefficients(e[1],n[1],r[1],i[1]);this.a=[o[0],s[0]],this.b=[o[1],s[1]],this.c=[o[2],s[2]],this.d=[o[3],s[3]],this.points=[e,n,r,i]}PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var n=this.derivative(e);return Math.atan2(n[1],n[0])},PolynomialBezier.prototype.normalAngle=function(e){var n=this.derivative(e);return Math.atan2(n[0],n[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var n=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,r=n*n-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(r<0)return[];var i=Math.sqrt(r);return floatZero(i)?i>0&&i<1?[n]:[]:[n-i,n+i].filter(function(a){return a>0&&a<1})},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var n=lerpPoint(this.points[0],this.points[1],e),r=lerpPoint(this.points[1],this.points[2],e),i=lerpPoint(this.points[2],this.points[3],e),a=lerpPoint(n,r,e),o=lerpPoint(r,i,e),s=lerpPoint(a,o,e);return[new PolynomialBezier(this.points[0],n,a,s,!0),new PolynomialBezier(s,o,i,this.points[3],!0)]};function extrema(e,n){var r=e.points[0][n],i=e.points[e.points.length-1][n];if(r>i){var a=i;i=r,r=a}for(var o=quadRoots(3*e.a[n],2*e.b[n],e.c[n]),s=0;s<o.length;s+=1)if(o[s]>0&&o[s]<1){var l=e.point(o[s])[n];l<r?r=l:l>i&&(i=l)}return{min:r,max:i}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}};function intersectData(e,n,r){var i=e.boundingBox();return{cx:i.cx,cy:i.cy,width:i.width,height:i.height,bez:e,t:(n+r)/2,t1:n,t2:r}}function splitData(e){var n=e.bez.split(.5);return[intersectData(n[0],e.t1,e.t),intersectData(n[1],e.t,e.t2)]}function boxIntersect(e,n){return Math.abs(e.cx-n.cx)*2<e.width+n.width&&Math.abs(e.cy-n.cy)*2<e.height+n.height}function intersectsImpl(e,n,r,i,a,o){if(boxIntersect(e,n)){if(r>=o||e.width<=i&&e.height<=i&&n.width<=i&&n.height<=i){a.push([e.t,n.t]);return}var s=splitData(e),l=splitData(n);intersectsImpl(s[0],l[0],r+1,i,a,o),intersectsImpl(s[0],l[1],r+1,i,a,o),intersectsImpl(s[1],l[0],r+1,i,a,o),intersectsImpl(s[1],l[1],r+1,i,a,o)}}PolynomialBezier.prototype.intersections=function(e,n,r){n===void 0&&(n=2),r===void 0&&(r=7);var i=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,n,i,r),i},PolynomialBezier.shapeSegment=function(e,n){var r=(n+1)%e.length();return new PolynomialBezier(e.v[n],e.o[n],e.i[r],e.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(e,n){var r=(n+1)%e.length();return new PolynomialBezier(e.v[r],e.i[r],e.o[n],e.v[n],!0)};function crossProduct(e,n){return[e[1]*n[2]-e[2]*n[1],e[2]*n[0]-e[0]*n[2],e[0]*n[1]-e[1]*n[0]]}function lineIntersection(e,n,r,i){var a=[e[0],e[1],1],o=[n[0],n[1],1],s=[r[0],r[1],1],l=[i[0],i[1],1],c=crossProduct(crossProduct(a,o),crossProduct(s,l));return floatZero(c[2])?null:[c[0]/c[2],c[1]/c[2]]}function polarOffset(e,n,r){return[e[0]+Math.cos(n)*r,e[1]-Math.sin(n)*r]}function pointDistance(e,n){return Math.hypot(e[0]-n[0],e[1]-n[1])}function pointEqual(e,n){return floatEqual(e[0],n[0])&&floatEqual(e[1],n[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,n){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,n.s,0,null,this),this.frequency=PropertyFactory.getProp(e,n.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,n.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(e,n,r,i,a,o,s){var l=r-Math.PI/2,c=r+Math.PI/2,u=n[0]+Math.cos(r)*i*a,f=n[1]-Math.sin(r)*i*a;e.setTripleAt(u,f,u+Math.cos(l)*o,f-Math.sin(l)*o,u+Math.cos(c)*s,f-Math.sin(c)*s,e.length())}function getPerpendicularVector(e,n){var r=[n[0]-e[0],n[1]-e[1]],i=-Math.PI*.5,a=[Math.cos(i)*r[0]-Math.sin(i)*r[1],Math.sin(i)*r[0]+Math.cos(i)*r[1]];return a}function getProjectingAngle(e,n){var r=n===0?e.length()-1:n-1,i=(n+1)%e.length(),a=e.v[r],o=e.v[i],s=getPerpendicularVector(a,o);return Math.atan2(0,1)-Math.atan2(s[1],s[0])}function zigZagCorner(e,n,r,i,a,o,s){var l=getProjectingAngle(n,r),c=n.v[r%n._length],u=n.v[r===0?n._length-1:r-1],f=n.v[(r+1)%n._length],x=o===2?Math.sqrt(Math.pow(c[0]-u[0],2)+Math.pow(c[1]-u[1],2)):0,h=o===2?Math.sqrt(Math.pow(c[0]-f[0],2)+Math.pow(c[1]-f[1],2)):0;setPoint(e,n.v[r%n._length],l,s,i,h/((a+1)*2),x/((a+1)*2))}function zigZagSegment(e,n,r,i,a,o){for(var s=0;s<i;s+=1){var l=(s+1)/(i+1),c=a===2?Math.sqrt(Math.pow(n.points[3][0]-n.points[0][0],2)+Math.pow(n.points[3][1]-n.points[0][1],2)):0,u=n.normalAngle(l),f=n.point(l);setPoint(e,f,u,o,r,c/((i+1)*2),c/((i+1)*2)),o=-o}return o}ZigZagModifier.prototype.processPath=function(e,n,r,i){var a=e._length,o=shapePool.newElement();if(o.c=e.c,e.c||(a-=1),a===0)return o;var s=-1,l=PolynomialBezier.shapeSegment(e,0);zigZagCorner(o,e,0,n,r,i,s);for(var c=0;c<a;c+=1)s=zigZagSegment(o,l,n,r,i,-s),c===a-1&&!e.c?l=null:l=PolynomialBezier.shapeSegment(e,(c+1)%a),zigZagCorner(o,e,c+1,n,r,i,s);return o},ZigZagModifier.prototype.processShapes=function(e){var n,r,i=this.shapes.length,a,o,s=this.amplitude.v,l=Math.max(0,Math.round(this.frequency.v)),c=this.pointsType.v;if(s!==0){var u,f;for(r=0;r<i;r+=1){if(u=this.shapes[r],f=u.localShapeCollection,!(!u.shape._mdf&&!this._mdf&&!e))for(f.releaseShapes(),u.shape._mdf=!0,n=u.shape.paths.shapes,o=u.shape.paths._length,a=0;a<o;a+=1)f.addShape(this.processPath(n[a],s,l,c));u.shape.paths=u.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(e,n,r){var i=Math.atan2(n[0]-e[0],n[1]-e[1]);return[polarOffset(e,i,r),polarOffset(n,i,r)]}function offsetSegment(e,n){var r,i,a,o,s,l,c;c=linearOffset(e.points[0],e.points[1],n),r=c[0],i=c[1],c=linearOffset(e.points[1],e.points[2],n),a=c[0],o=c[1],c=linearOffset(e.points[2],e.points[3],n),s=c[0],l=c[1];var u=lineIntersection(r,i,a,o);u===null&&(u=i);var f=lineIntersection(s,l,a,o);return f===null&&(f=s),new PolynomialBezier(r,u,f,l)}function joinLines(e,n,r,i,a){var o=n.points[3],s=r.points[0];if(i===3||pointEqual(o,s))return o;if(i===2){var l=-n.tangentAngle(1),c=-r.tangentAngle(0)+Math.PI,u=lineIntersection(o,polarOffset(o,l+Math.PI/2,100),s,polarOffset(s,l+Math.PI/2,100)),f=u?pointDistance(u,o):pointDistance(o,s)/2,x=polarOffset(o,l,2*f*roundCorner);return e.setXYAt(x[0],x[1],"o",e.length()-1),x=polarOffset(s,c,2*f*roundCorner),e.setTripleAt(s[0],s[1],s[0],s[1],x[0],x[1],e.length()),s}var h=pointEqual(o,n.points[2])?n.points[0]:n.points[2],g=pointEqual(s,r.points[1])?r.points[3]:r.points[1],v=lineIntersection(h,o,s,g);return v&&pointDistance(v,o)<a?(e.setTripleAt(v[0],v[1],v[0],v[1],v[0],v[1],e.length()),v):o}function getIntersection(e,n){var r=e.intersections(n);return r.length&&floatEqual(r[0][0],1)&&r.shift(),r.length?r[0]:null}function pruneSegmentIntersection(e,n){var r=e.slice(),i=n.slice(),a=getIntersection(e[e.length-1],n[0]);return a&&(r[e.length-1]=e[e.length-1].split(a[0])[0],i[0]=n[0].split(a[1])[1]),e.length>1&&n.length>1&&(a=getIntersection(e[0],n[n.length-1]),a)?[[e[0].split(a[0])[0]],[n[n.length-1].split(a[1])[1]]]:[r,i]}function pruneIntersections(e){for(var n,r=1;r<e.length;r+=1)n=pruneSegmentIntersection(e[r-1],e[r]),e[r-1]=n[0],e[r]=n[1];return e.length>1&&(n=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=n[0],e[0]=n[1]),e}function offsetSegmentSplit(e,n){var r=e.inflectionPoints(),i,a,o,s;if(r.length===0)return[offsetSegment(e,n)];if(r.length===1||floatEqual(r[1],1))return o=e.split(r[0]),i=o[0],a=o[1],[offsetSegment(i,n),offsetSegment(a,n)];o=e.split(r[0]),i=o[0];var l=(r[1]-r[0])/(1-r[0]);return o=o[1].split(l),s=o[0],a=o[1],[offsetSegment(i,n),offsetSegment(s,n),offsetSegment(a,n)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,n){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,n.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,n.ml,0,null,this),this.lineJoin=n.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(e,n,r,i){var a=shapePool.newElement();a.c=e.c;var o=e.length();e.c||(o-=1);var s,l,c,u=[];for(s=0;s<o;s+=1)c=PolynomialBezier.shapeSegment(e,s),u.push(offsetSegmentSplit(c,n));if(!e.c)for(s=o-1;s>=0;s-=1)c=PolynomialBezier.shapeSegmentInverted(e,s),u.push(offsetSegmentSplit(c,n));u=pruneIntersections(u);var f=null,x=null;for(s=0;s<u.length;s+=1){var h=u[s];for(x&&(f=joinLines(a,x,h[0],r,i)),x=h[h.length-1],l=0;l<h.length;l+=1)c=h[l],f&&pointEqual(c.points[0],f)?a.setXYAt(c.points[1][0],c.points[1][1],"o",a.length()-1):a.setTripleAt(c.points[0][0],c.points[0][1],c.points[1][0],c.points[1][1],c.points[0][0],c.points[0][1],a.length()),a.setTripleAt(c.points[3][0],c.points[3][1],c.points[3][0],c.points[3][1],c.points[2][0],c.points[2][1],a.length()),f=c.points[3]}return u.length&&joinLines(a,x,u[0][0],r,i),a},OffsetPathModifier.prototype.processShapes=function(e){var n,r,i=this.shapes.length,a,o,s=this.amount.v,l=this.miterLimit.v,c=this.lineJoin;if(s!==0){var u,f;for(r=0;r<i;r+=1){if(u=this.shapes[r],f=u.localShapeCollection,!(!u.shape._mdf&&!this._mdf&&!e))for(f.releaseShapes(),u.shape._mdf=!0,n=u.shape.paths.shapes,o=u.shape.paths._length,a=0;a<o;a+=1)f.addShape(this.processPath(n[a],s,c,l));u.shape.paths=u.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(e){for(var n=e.fStyle?e.fStyle.split(" "):[],r="normal",i="normal",a=n.length,o,s=0;s<a;s+=1)switch(o=n[s].toLowerCase(),o){case"italic":i="italic";break;case"bold":r="700";break;case"black":r="900";break;case"medium":r="500";break;case"regular":case"normal":r="400";break;case"light":case"thin":r="200";break}return{style:i,weight:e.fWeight||r}}var FontManager=function(){var e=5e3,n={w:0,size:0,shapes:[],data:{shapes:[]}},r=[];r=r.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 i=127988,a=917631,o=917601,s=917626,l=65039,c=8205,u=127462,f=127487,x=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function h(P){var I=P.split(","),E,S=I.length,N=[];for(E=0;E<S;E+=1)I[E]!=="sans-serif"&&I[E]!=="monospace"&&N.push(I[E]);return N.join(",")}function g(P,I){var E=createTag("span");E.setAttribute("aria-hidden",!0),E.style.fontFamily=I;var S=createTag("span");S.innerText="giItT1WQy@!-/#",E.style.position="absolute",E.style.left="-10000px",E.style.top="-10000px",E.style.fontSize="300px",E.style.fontVariant="normal",E.style.fontStyle="normal",E.style.fontWeight="normal",E.style.letterSpacing="0",E.appendChild(S),document.body.appendChild(E);var N=S.offsetWidth;return S.style.fontFamily=h(P)+", "+I,{node:S,w:N,parent:E}}function v(){var P,I=this.fonts.length,E,S,N=I;for(P=0;P<I;P+=1)this.fonts[P].loaded?N-=1:this.fonts[P].fOrigin==="n"||this.fonts[P].origin===0?this.fonts[P].loaded=!0:(E=this.fonts[P].monoCase.node,S=this.fonts[P].monoCase.w,E.offsetWidth!==S?(N-=1,this.fonts[P].loaded=!0):(E=this.fonts[P].sansCase.node,S=this.fonts[P].sansCase.w,E.offsetWidth!==S&&(N-=1,this.fonts[P].loaded=!0)),this.fonts[P].loaded&&(this.fonts[P].sansCase.parent.parentNode.removeChild(this.fonts[P].sansCase.parent),this.fonts[P].monoCase.parent.parentNode.removeChild(this.fonts[P].monoCase.parent)));N!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function p(P,I){var E=document.body&&I?"svg":"canvas",S,N=getFontProperties(P);if(E==="svg"){var w=createNS("text");w.style.fontSize="100px",w.setAttribute("font-family",P.fFamily),w.setAttribute("font-style",N.style),w.setAttribute("font-weight",N.weight),w.textContent="1",P.fClass?(w.style.fontFamily="inherit",w.setAttribute("class",P.fClass)):w.style.fontFamily=P.fFamily,I.appendChild(w),S=w}else{var R=new OffscreenCanvas(500,500).getContext("2d");R.font=N.style+" "+N.weight+" 100px "+P.fFamily,S=R}function O(D){return E==="svg"?(S.textContent=D,S.getComputedTextLength()):S.measureText(D).width}return{measureText:O}}function C(P,I){if(!P){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=P.list;return}if(!document.body){this.isLoaded=!0,P.list.forEach(function(K){K.helper=p(K),K.cache={}}),this.fonts=P.list;return}var E=P.list,S,N=E.length,w=N;for(S=0;S<N;S+=1){var R=!0,O,D;if(E[S].loaded=!1,E[S].monoCase=g(E[S].fFamily,"monospace"),E[S].sansCase=g(E[S].fFamily,"sans-serif"),!E[S].fPath)E[S].loaded=!0,w-=1;else if(E[S].fOrigin==="p"||E[S].origin===3){if(O=document.querySelectorAll('style[f-forigin="p"][f-family="'+E[S].fFamily+'"], style[f-origin="3"][f-family="'+E[S].fFamily+'"]'),O.length>0&&(R=!1),R){var q=createTag("style");q.setAttribute("f-forigin",E[S].fOrigin),q.setAttribute("f-origin",E[S].origin),q.setAttribute("f-family",E[S].fFamily),q.type="text/css",q.innerText="@font-face {font-family: "+E[S].fFamily+"; font-style: normal; src: url('"+E[S].fPath+"');}",I.appendChild(q)}}else if(E[S].fOrigin==="g"||E[S].origin===1){for(O=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),D=0;D<O.length;D+=1)O[D].href.indexOf(E[S].fPath)!==-1&&(R=!1);if(R){var j=createTag("link");j.setAttribute("f-forigin",E[S].fOrigin),j.setAttribute("f-origin",E[S].origin),j.type="text/css",j.rel="stylesheet",j.href=E[S].fPath,document.body.appendChild(j)}}else if(E[S].fOrigin==="t"||E[S].origin===2){for(O=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),D=0;D<O.length;D+=1)E[S].fPath===O[D].src&&(R=!1);if(R){var H=createTag("link");H.setAttribute("f-forigin",E[S].fOrigin),H.setAttribute("f-origin",E[S].origin),H.setAttribute("rel","stylesheet"),H.setAttribute("href",E[S].fPath),I.appendChild(H)}}E[S].helper=p(E[S],I),E[S].cache={},this.fonts.push(E[S])}w===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function b(P){if(P){this.chars||(this.chars=[]);var I,E=P.length,S,N=this.chars.length,w;for(I=0;I<E;I+=1){for(S=0,w=!1;S<N;)this.chars[S].style===P[I].style&&this.chars[S].fFamily===P[I].fFamily&&this.chars[S].ch===P[I].ch&&(w=!0),S+=1;w||(this.chars.push(P[I]),N+=1)}}}function d(P,I,E){for(var S=0,N=this.chars.length;S<N;){if(this.chars[S].ch===P&&this.chars[S].style===I&&this.chars[S].fFamily===E)return this.chars[S];S+=1}return(typeof P=="string"&&P.charCodeAt(0)!==13||!P)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",P,I,E)),n}function m(P,I,E){var S=this.getFontByName(I),N=P;if(!S.cache[N]){var w=S.helper;if(P===" "){var R=w.measureText("|"+P+"|"),O=w.measureText("||");S.cache[N]=(R-O)/100}else S.cache[N]=w.measureText(P)/100}return S.cache[N]*E}function y(P){for(var I=0,E=this.fonts.length;I<E;){if(this.fonts[I].fName===P)return this.fonts[I];I+=1}return this.fonts[0]}function A(P){var I=0,E=P.charCodeAt(0);if(E>=55296&&E<=56319){var S=P.charCodeAt(1);S>=56320&&S<=57343&&(I=(E-55296)*1024+S-56320+65536)}return I}function _(P,I){var E=P.toString(16)+I.toString(16);return x.indexOf(E)!==-1}function k(P){return P===c}function T(P){return P===l}function F(P){var I=A(P);return I>=u&&I<=f}function M(P){return F(P.substr(0,2))&&F(P.substr(2,2))}function B(P){return r.indexOf(P)!==-1}function L(P,I){var E=A(P.substr(I,2));if(E!==i)return!1;var S=0;for(I+=2;S<5;){if(E=A(P.substr(I,2)),E<o||E>s)return!1;S+=1,I+=2}return A(P.substr(I,2))===a}function V(){this.isLoaded=!0}var U=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)};U.isModifier=_,U.isZeroWidthJoiner=k,U.isFlagEmoji=M,U.isRegionalCode=F,U.isCombinedCharacter=B,U.isRegionalFlag=L,U.isVariationSelector=T,U.BLACK_FLAG_CODE_POINT=i;var $={addChars:b,addFonts:C,getCharData:d,getFontByName:y,measureText:m,checkLoadedFonts:v,setIsLoaded:V};return U.prototype=$,U}();function SlotManager(e){this.animationData=e}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(n){this.renderableComponents.indexOf(n)===-1&&this.renderableComponents.push(n)},removeRenderableComponent:function(n){this.renderableComponents.indexOf(n)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(n),1)},prepareRenderableFrame:function(n){this.checkLayerLimits(n)},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(n){this.data.ip-this.data.st<=n&&this.data.op-this.data.st>n?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 n,r=this.renderableComponents.length;for(n=0;n<r;n+=1)this.renderableComponents[n].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 e={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(n){return e[n]||""}}();function SliderEffect(e,n,r){this.p=PropertyFactory.getProp(n,e.v,0,0,r)}function AngleEffect(e,n,r){this.p=PropertyFactory.getProp(n,e.v,0,0,r)}function ColorEffect(e,n,r){this.p=PropertyFactory.getProp(n,e.v,1,0,r)}function PointEffect(e,n,r){this.p=PropertyFactory.getProp(n,e.v,1,0,r)}function LayerIndexEffect(e,n,r){this.p=PropertyFactory.getProp(n,e.v,0,0,r)}function MaskIndexEffect(e,n,r){this.p=PropertyFactory.getProp(n,e.v,0,0,r)}function CheckboxEffect(e,n,r){this.p=PropertyFactory.getProp(n,e.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(e,n){var r=e.ef||[];this.effectElements=[];var i,a=r.length,o;for(i=0;i<a;i+=1)o=new GroupEffect(r[i],n),this.effectElements.push(o)}function GroupEffect(e,n){this.init(e,n)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,n){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(n);var r,i=this.data.ef.length,a,o=this.data.ef;for(r=0;r<i;r+=1){switch(a=null,o[r].ty){case 0:a=new SliderEffect(o[r],n,this);break;case 1:a=new AngleEffect(o[r],n,this);break;case 2:a=new ColorEffect(o[r],n,this);break;case 3:a=new PointEffect(o[r],n,this);break;case 4:case 7:a=new CheckboxEffect(o[r],n,this);break;case 10:a=new LayerIndexEffect(o[r],n,this);break;case 11:a=new MaskIndexEffect(o[r],n,this);break;case 5:a=new EffectsManager(o[r],n);break;default:a=new NoValueEffect(o[r]);break}a&&this.effectElements.push(a)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var n=0,r=this.data.masksProperties.length;n<r;){if(this.data.masksProperties[n].mode!=="n"&&this.data.masksProperties[n].cl!==!1)return!0;n+=1}return!1},initExpressions:function(){var n=getExpressionInterfaces();if(n){var r=n("layer"),i=n("effects"),a=n("shape"),o=n("text"),s=n("comp");this.layerInterface=r(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var l=i.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(l),this.data.ty===0||this.data.xt?this.compInterface=s(this):this.data.ty===4?(this.layerInterface.shapeInterface=a(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=o(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var n=getBlendMode(this.data.bm),r=this.baseElement||this.layerElement;r.style["mix-blend-mode"]=n},initBaseData:function(n,r,i){this.globalData=r,this.comp=i,this.data=n,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(n,r){var i,a=this.dynamicProperties.length;for(i=0;i<a;i+=1)(r||this._isParent&&this.dynamicProperties[i].propType==="transform")&&(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(n){this.dynamicProperties.indexOf(n)===-1&&this.dynamicProperties.push(n)}};function FootageElement(e,n,r){this.initFrame(),this.initRenderable(),this.assetData=n.getAssetData(e.refId),this.footageData=n.imageLoader.getAsset(this.assetData),this.initBaseData(e,n,r)}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 e=getExpressionInterfaces();if(e){var n=e("footage");this.layerInterface=n(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(e,n,r){this.initFrame(),this.initRenderable(),this.assetData=n.getAssetData(e.refId),this.initBaseData(e,n,r),this._isPlaying=!1,this._canPlay=!1;var i=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(i),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,n.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var n=this.tm.v;this._currentTime=n}this._volume=this.lv.v[0];var r=this._volume*this._volumeMultiplier;this._previousVolume!==r&&(this._previousVolume=r,this.audio.volume(r))},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(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*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(e){var n,r=this.layers.length,i;for(this.completeLayers=!0,n=r-1;n>=0;n-=1)this.elements[n]||(i=this.layers[n],i.ip-i.st<=e-this.layers[n].st&&i.op-i.st>e-this.layers[n].st&&this.buildItem(n)),this.completeLayers=this.elements[n]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,n=this.layers.length;for(e=0;e<n;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){this.completeLayers=!1;var n,r=e.length,i,a=this.layers.length;for(n=0;n<r;n+=1)for(i=0;i<a;){if(this.layers[i].id===e[n].id){this.layers[i]=e[n];break}i+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,n,r){for(var i=this.elements,a=this.layers,o=0,s=a.length;o<s;)a[o].ind==n&&(!i[o]||i[o]===!0?(this.buildItem(o),this.addPendingElement(e)):(r.push(i[o]),i[o].setAsParent(),a[o].parent!==void 0?this.buildElementParenting(e,a[o].parent,r):e.setHierarchy(r))),o+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var n,r=e.length;for(n=0;n<r;n+=1)if(e[n].xt){var i=this.createComp(e[n]);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},BaseRenderer.prototype.getElementById=function(e){var n,r=this.elements.length;for(n=0;n<r;n+=1)if(this.elements[n].data.ind===e)return this.elements[n];return null},BaseRenderer.prototype.getElementByPath=function(e){var n=e.shift(),r;if(typeof n=="number")r=this.elements[n];else{var i,a=this.elements.length;for(i=0;i<a;i+=1)if(this.elements[i].data.nm===n){r=this.elements[i];break}}return e.length===0?r:r.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,n){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,n),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=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var n=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:n,localMat:n,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 n,r=this.finalTransform.mat,i=0,a=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<a;){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}i+=1}if(this.finalTransform._matMdf)for(n=this.finalTransform.mProp.v.props,r.cloneFromProps(n),i=0;i<a;i+=1)r.multiply(this.hierarchy[i].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 n=0,r=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;n<r;)this.localTransforms[n]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[n]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),n+=1;if(this.finalTransform._localMatMdf){var i=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(i),n=1;n<r;n+=1){var a=this.localTransforms[n].matrix;i.multiply(a)}i.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var o=this.finalTransform.localOpacity;for(n=0;n<r;n+=1)o*=this.localTransforms[n].opacity*.01;this.finalTransform.localOpacity=o}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var n=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(n.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var r=0,i=n.length;for(r=0;r<i;r+=1)this.localTransforms.push(n[r])}}},globalToLocal:function(n){var r=[];r.push(this.finalTransform);for(var i=!0,a=this.comp;i;)a.finalTransform?(a.data.hasMask&&r.splice(0,0,a.finalTransform),a=a.comp):i=!1;var o,s=r.length,l;for(o=0;o<s;o+=1)l=r[o].mat.applyToPointArray(0,0,0),n=[n[0]-l[0],n[1]-l[1],0];return n},mHelper:new Matrix};function MaskElement(e,n,r){this.data=e,this.element=n,this.globalData=r,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var i=this.globalData.defs,a,o=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(o),this.solidPath="";var s,l=this.masksProperties,c=0,u=[],f,x,h=createElementID(),g,v,p,C,b="clipPath",d="clip-path";for(a=0;a<o;a+=1)if((l[a].mode!=="a"&&l[a].mode!=="n"||l[a].inv||l[a].o.k!==100||l[a].o.x)&&(b="mask",d="mask"),(l[a].mode==="s"||l[a].mode==="i")&&c===0?(g=createNS("rect"),g.setAttribute("fill","#ffffff"),g.setAttribute("width",this.element.comp.data.w||0),g.setAttribute("height",this.element.comp.data.h||0),u.push(g)):g=null,s=createNS("path"),l[a].mode==="n")this.viewData[a]={op:PropertyFactory.getProp(this.element,l[a].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,l[a],3),elem:s,lastPath:""},i.appendChild(s);else{c+=1,s.setAttribute("fill",l[a].mode==="s"?"#000000":"#ffffff"),s.setAttribute("clip-rule","nonzero");var m;if(l[a].x.k!==0?(b="mask",d="mask",C=PropertyFactory.getProp(this.element,l[a].x,0,null,this.element),m=createElementID(),v=createNS("filter"),v.setAttribute("id",m),p=createNS("feMorphology"),p.setAttribute("operator","erode"),p.setAttribute("in","SourceGraphic"),p.setAttribute("radius","0"),v.appendChild(p),i.appendChild(v),s.setAttribute("stroke",l[a].mode==="s"?"#000000":"#ffffff")):(p=null,C=null),this.storedData[a]={elem:s,x:C,expan:p,lastPath:"",lastOperator:"",filterId:m,lastRadius:0},l[a].mode==="i"){x=u.length;var y=createNS("g");for(f=0;f<x;f+=1)y.appendChild(u[f]);var A=createNS("mask");A.setAttribute("mask-type","alpha"),A.setAttribute("id",h+"_"+c),A.appendChild(s),i.appendChild(A),y.setAttribute("mask","url("+getLocationHref()+"#"+h+"_"+c+")"),u.length=0,u.push(y)}else u.push(s);l[a].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[a]={elem:s,lastPath:"",op:PropertyFactory.getProp(this.element,l[a].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,l[a],3),invRect:g},this.viewData[a].prop.k||this.drawPath(l[a],this.viewData[a].prop.v,this.viewData[a])}for(this.maskElement=createNS(b),o=u.length,a=0;a<o;a+=1)this.maskElement.appendChild(u[a]);c>0&&(this.maskElement.setAttribute("id",h),this.element.maskedElement.setAttribute(d,"url("+getLocationHref()+"#"+h+")"),i.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var n=this.element.finalTransform.mat,r,i=this.masksProperties.length;for(r=0;r<i;r+=1)if((this.viewData[r].prop._mdf||e)&&this.drawPath(this.masksProperties[r],this.viewData[r].prop.v,this.viewData[r]),(this.viewData[r].op._mdf||e)&&this.viewData[r].elem.setAttribute("fill-opacity",this.viewData[r].op.v),this.masksProperties[r].mode!=="n"&&(this.viewData[r].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[r].invRect.setAttribute("transform",n.getInverseMatrix().to2dCSS()),this.storedData[r].x&&(this.storedData[r].x._mdf||e))){var a=this.storedData[r].expan;this.storedData[r].x.v<0?(this.storedData[r].lastOperator!=="erode"&&(this.storedData[r].lastOperator="erode",this.storedData[r].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[r].filterId+")")),a.setAttribute("radius",-this.storedData[r].x.v)):(this.storedData[r].lastOperator!=="dilate"&&(this.storedData[r].lastOperator="dilate",this.storedData[r].elem.setAttribute("filter",null)),this.storedData[r].elem.setAttribute("stroke-width",this.storedData[r].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" ",e},MaskElement.prototype.drawPath=function(e,n,r){var i=" M"+n.v[0][0]+","+n.v[0][1],a,o;for(o=n._length,a=1;a<o;a+=1)i+=" C"+n.o[a-1][0]+","+n.o[a-1][1]+" "+n.i[a][0]+","+n.i[a][1]+" "+n.v[a][0]+","+n.v[a][1];if(n.c&&o>1&&(i+=" C"+n.o[a-1][0]+","+n.o[a-1][1]+" "+n.i[0][0]+","+n.i[0][1]+" "+n.v[0][0]+","+n.v[0][1]),r.lastPath!==i){var s="";r.elem&&(n.c&&(s=e.inv?this.solidPath+i:i),r.elem.setAttribute("d",s)),r.lastPath=i}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={};e.createFilter=n,e.createAlphaToLuminanceFilter=r;function n(i,a){var o=createNS("filter");return o.setAttribute("id",i),a!==!0&&(o.setAttribute("filterUnits","objectBoundingBox"),o.setAttribute("x","0%"),o.setAttribute("y","0%"),o.setAttribute("width","100%"),o.setAttribute("height","100%")),o}function r(){var i=createNS("feColorMatrix");return i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),i}return e}(),featureSupport=function(){var e={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))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var n,r="SourceGraphic",i=e.data.ef?e.data.ef.length:0,a=createElementID(),o=filtersFactory.createFilter(a,!0),s=0;this.filters=[];var l;for(n=0;n<i;n+=1){l=null;var c=e.data.ef[n].ty;if(registeredEffects$1[c]){var u=registeredEffects$1[c].effect;l=new u(o,e.effectsManager.effectElements[n],e,idPrefix+s,r),r=idPrefix+s,registeredEffects$1[c].countsAsEffect&&(s+=1)}l&&this.filters.push(l)}s&&(e.globalData.defs.appendChild(o),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+a+")")),this.filters.length&&e.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(e){var n,r=this.filters.length;for(n=0;n<r;n+=1)this.filters[n].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var n,r=this.filters.length,i=[];for(n=0;n<r;n+=1)this.filters[n].type===e&&i.push(this.filters[n]);return i};function registerEffect$1(e,n,r){registeredEffects$1[e]={effect:n,countsAsEffect:r}}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 n=null;if(this.data.td){this.matteMasks={};var r=createNS("g");r.setAttribute("id",this.layerId),r.appendChild(this.layerElement),n=r,this.globalData.defs.appendChild(r)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),n=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 i=createNS("clipPath"),a=createNS("path");a.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var o=createElementID();if(i.setAttribute("id",o),i.appendChild(a),this.globalData.defs.appendChild(i),this.checkMasks()){var s=createNS("g");s.setAttribute("clip-path","url("+getLocationHref()+"#"+o+")"),s.appendChild(this.layerElement),this.transformedElement=s,n?n.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+o+")")}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(n){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[n]){var r=this.layerId+"_"+n,i,a,o,s;if(n===1||n===3){var l=createNS("mask");l.setAttribute("id",r),l.setAttribute("mask-type",n===3?"luminance":"alpha"),o=createNS("use"),o.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(o),this.globalData.defs.appendChild(l),!featureSupport.maskType&&n===1&&(l.setAttribute("mask-type","luminance"),i=createElementID(),a=filtersFactory.createFilter(i),this.globalData.defs.appendChild(a),a.appendChild(filtersFactory.createAlphaToLuminanceFilter()),s=createNS("g"),s.appendChild(o),l.appendChild(s),s.setAttribute("filter","url("+getLocationHref()+"#"+i+")"))}else if(n===2){var c=createNS("mask");c.setAttribute("id",r),c.setAttribute("mask-type","alpha");var u=createNS("g");c.appendChild(u),i=createElementID(),a=filtersFactory.createFilter(i);var f=createNS("feComponentTransfer");f.setAttribute("in","SourceGraphic"),a.appendChild(f);var x=createNS("feFuncA");x.setAttribute("type","table"),x.setAttribute("tableValues","1.0 0.0"),f.appendChild(x),this.globalData.defs.appendChild(a);var h=createNS("rect");h.setAttribute("width",this.comp.data.w),h.setAttribute("height",this.comp.data.h),h.setAttribute("x","0"),h.setAttribute("y","0"),h.setAttribute("fill","#ffffff"),h.setAttribute("opacity","0"),u.setAttribute("filter","url("+getLocationHref()+"#"+i+")"),u.appendChild(h),o=createNS("use"),o.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),u.appendChild(o),featureSupport.maskType||(c.setAttribute("mask-type","luminance"),a.appendChild(filtersFactory.createAlphaToLuminanceFilter()),s=createNS("g"),u.appendChild(h),s.appendChild(this.layerElement),u.appendChild(s)),this.globalData.defs.appendChild(c)}this.matteMasks[n]=r}return this.matteMasks[n]},setMatte:function(n){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+n+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(n){this.hierarchy=n},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var e={initElement:function(r,i,a){this.initFrame(),this.initBaseData(r,i,a),this.initTransform(r,i,a),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var r=this.baseElement||this.layerElement;r.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var r=this.baseElement||this.layerElement;r.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(r){this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(e)],RenderableDOMElement)})();function IImageElement(e,n,r){this.assetData=n.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=n.slotManager.getProp(this.assetData)),this.initElement(e,n,r),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 e=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",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(e,n){this.elem=e,this.pos=n}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(n){var r,i=this.shapeModifiers.length;for(r=0;r<i;r+=1)this.shapeModifiers[r].addShape(n)},isShapeInAnimatedModifiers:function(n){for(var r=0,i=this.shapeModifiers.length;r<i;)if(this.shapeModifiers[r].isAnimatedWithShape(n))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var n,r=this.shapes.length;for(n=0;n<r;n+=1)this.shapes[n].sh.reset();r=this.shapeModifiers.length;var i;for(n=r-1;n>=0&&(i=this.shapeModifiers[n].processShapes(this._isFirstFrame),!i);n-=1);}},searchProcessedElement:function(n){for(var r=this.processedElements,i=0,a=r.length;i<a;){if(r[i].elem===n)return r[i].pos;i+=1}return 0},addProcessedElement:function(n,r){for(var i=this.processedElements,a=i.length;a;)if(a-=1,i[a].elem===n){i[a].pos=r;return}i.push(new ProcessedElement(n,r))},prepareFrame:function(n){this.prepareRenderableFrame(n),this.prepareProperties(n,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,n,r){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=r,this.lvl=n,this._isAnimated=!!r.k;for(var i=0,a=e.length;i<a;){if(e[i].mProps.dynamicProperties.length){this._isAnimated=!0;break}i+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(e,n){this.data=e,this.type=e.ty,this.d="",this.lvl=n,this._mdf=!1,this.closed=e.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(e,n,r,i){this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(n.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",n.length?n.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(i);var a,o=n.length||0,s;for(a=0;a<o;a+=1)s=PropertyFactory.getProp(e,n[a].v,0,0,this),this.k=s.k||this.k,this.dataProps[a]={n:n[a].n,p:s};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(e){if(!(this.elem.globalData.frameId===this.frameId&&!e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var n=0,r=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),n=0;n<r;n+=1)this.dataProps[n].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[n].p.v:this.dashArray[n]=this.dataProps[n].p.v:this.dashoffset[0]=this.dataProps[n].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(e,n,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,n.o,0,.01,this),this.w=PropertyFactory.getProp(e,n.w,0,null,this),this.d=new DashProperty(e,n.d||{},"svg",this),this.c=PropertyFactory.getProp(e,n.c,1,255,this),this.style=r,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(e,n,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,n.o,0,.01,this),this.c=PropertyFactory.getProp(e,n.c,1,255,this),this.style=r}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(e,n,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=r}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(e,n,r){this.data=n,this.c=createTypedArray("uint8c",n.p*4);var i=n.k.k[0].s?n.k.k[0].s.length-n.p*4:n.k.k.length-n.p*4;this.o=createTypedArray("float32",i),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=i,this.initDynamicPropertyContainer(r),this.prop=PropertyFactory.getProp(e,n.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(e,n){for(var r=0,i=this.o.length/2,a;r<i;){if(a=Math.abs(e[r*4]-e[n*4+r*2]),a>.01)return!1;r+=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 e=0,n=this.data.k.k.length;e<n;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var n,r=this.data.p*4,i,a;for(n=0;n<r;n+=1)i=n%4===0?100:255,a=Math.round(this.prop.v[n]*i),this.c[n]!==a&&(this.c[n]=a,this._cmdf=!e);if(this.o.length)for(r=this.prop.v.length,n=this.data.p*4;n<r;n+=1)i=n%2===0?100:1,a=n%2===0?Math.round(this.prop.v[n]*100):this.prop.v[n],this.o[n-this.data.p*4]!==a&&(this.o[n-this.data.p*4]=a,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(e,n,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,n,r)}SVGGradientFillStyleData.prototype.initGradientData=function(e,n,r){this.o=PropertyFactory.getProp(e,n.o,0,.01,this),this.s=PropertyFactory.getProp(e,n.s,1,null,this),this.e=PropertyFactory.getProp(e,n.e,1,null,this),this.h=PropertyFactory.getProp(e,n.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,n.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,n.g,this),this.style=r,this.stops=[],this.setGradientData(r.pElem,n),this.setGradientOpacity(n,r),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,n){var r=createElementID(),i=createNS(n.t===1?"linearGradient":"radialGradient");i.setAttribute("id",r),i.setAttribute("spreadMethod","pad"),i.setAttribute("gradientUnits","userSpaceOnUse");var a=[],o,s,l;for(l=n.g.p*4,s=0;s<l;s+=4)o=createNS("stop"),i.appendChild(o),a.push(o);e.setAttribute(n.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=i,this.cst=a},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,n){if(this.g._hasOpacity&&!this.g._collapsable){var r,i,a,o=createNS("mask"),s=createNS("path");o.appendChild(s);var l=createElementID(),c=createElementID();o.setAttribute("id",c);var u=createNS(e.t===1?"linearGradient":"radialGradient");u.setAttribute("id",l),u.setAttribute("spreadMethod","pad"),u.setAttribute("gradientUnits","userSpaceOnUse"),a=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var f=this.stops;for(i=e.g.p*4;i<a;i+=2)r=createNS("stop"),r.setAttribute("stop-color","rgb(255,255,255)"),u.appendChild(r),f.push(r);s.setAttribute(e.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+l+")"),e.ty==="gs"&&(s.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),s.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),e.lj===1&&s.setAttribute("stroke-miterlimit",e.ml)),this.of=u,this.ms=o,this.ost=f,this.maskId=c,n.msElem=s}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(e,n,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,n.w,0,null,this),this.d=new DashProperty(e,n.d||{},"svg",this),this.initGradientData(e,n,r),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,n,r){this.transform={mProps:e,op:n,container:r},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(n,r,i,a){if(r===0)return"";var o=n.o,s=n.i,l=n.v,c,u=" M"+a.applyToPointStringified(l[0][0],l[0][1]);for(c=1;c<r;c+=1)u+=" C"+a.applyToPointStringified(o[c-1][0],o[c-1][1])+" "+a.applyToPointStringified(s[c][0],s[c][1])+" "+a.applyToPointStringified(l[c][0],l[c][1]);return i&&r&&(u+=" C"+a.applyToPointStringified(o[c-1][0],o[c-1][1])+" "+a.applyToPointStringified(s[0][0],s[0][1])+" "+a.applyToPointStringified(l[0][0],l[0][1]),u+="z"),u},SVGElementsRenderer=function(){var e=new Matrix,n=new Matrix,r={createRenderFunction:i};function i(x){switch(x.ty){case"fl":return l;case"gf":return u;case"gs":return c;case"st":return f;case"sh":case"el":case"rc":case"sr":return s;case"tr":return a;case"no":return o;default:return null}}function a(x,h,g){(g||h.transform.op._mdf)&&h.transform.container.setAttribute("opacity",h.transform.op.v),(g||h.transform.mProps._mdf)&&h.transform.container.setAttribute("transform",h.transform.mProps.v.to2dCSS())}function o(){}function s(x,h,g){var v,p,C,b,d,m,y=h.styles.length,A=h.lvl,_,k,T,F;for(m=0;m<y;m+=1){if(b=h.sh._mdf||g,h.styles[m].lvl<A){for(k=n.reset(),T=A-h.styles[m].lvl,F=h.transformers.length-1;!b&&T>0;)b=h.transformers[F].mProps._mdf||b,T-=1,F-=1;if(b)for(T=A-h.styles[m].lvl,F=h.transformers.length-1;T>0;)k.multiply(h.transformers[F].mProps.v),T-=1,F-=1}else k=e;if(_=h.sh.paths,p=_._length,b){for(C="",v=0;v<p;v+=1)d=_.shapes[v],d&&d._length&&(C+=buildShapeString(d,d._length,d.c,k));h.caches[m]=C}else C=h.caches[m];h.styles[m].d+=x.hd===!0?"":C,h.styles[m]._mdf=b||h.styles[m]._mdf}}function l(x,h,g){var v=h.style;(h.c._mdf||g)&&v.pElem.setAttribute("fill","rgb("+bmFloor(h.c.v[0])+","+bmFloor(h.c.v[1])+","+bmFloor(h.c.v[2])+")"),(h.o._mdf||g)&&v.pElem.setAttribute("fill-opacity",h.o.v)}function c(x,h,g){u(x,h,g),f(x,h,g)}function u(x,h,g){var v=h.gf,p=h.g._hasOpacity,C=h.s.v,b=h.e.v;if(h.o._mdf||g){var d=x.ty==="gf"?"fill-opacity":"stroke-opacity";h.style.pElem.setAttribute(d,h.o.v)}if(h.s._mdf||g){var m=x.t===1?"x1":"cx",y=m==="x1"?"y1":"cy";v.setAttribute(m,C[0]),v.setAttribute(y,C[1]),p&&!h.g._collapsable&&(h.of.setAttribute(m,C[0]),h.of.setAttribute(y,C[1]))}var A,_,k,T;if(h.g._cmdf||g){A=h.cst;var F=h.g.c;for(k=A.length,_=0;_<k;_+=1)T=A[_],T.setAttribute("offset",F[_*4]+"%"),T.setAttribute("stop-color","rgb("+F[_*4+1]+","+F[_*4+2]+","+F[_*4+3]+")")}if(p&&(h.g._omdf||g)){var M=h.g.o;for(h.g._collapsable?A=h.cst:A=h.ost,k=A.length,_=0;_<k;_+=1)T=A[_],h.g._collapsable||T.setAttribute("offset",M[_*2]+"%"),T.setAttribute("stop-opacity",M[_*2+1])}if(x.t===1)(h.e._mdf||g)&&(v.setAttribute("x2",b[0]),v.setAttribute("y2",b[1]),p&&!h.g._collapsable&&(h.of.setAttribute("x2",b[0]),h.of.setAttribute("y2",b[1])));else{var B;if((h.s._mdf||h.e._mdf||g)&&(B=Math.sqrt(Math.pow(C[0]-b[0],2)+Math.pow(C[1]-b[1],2)),v.setAttribute("r",B),p&&!h.g._collapsable&&h.of.setAttribute("r",B)),h.e._mdf||h.h._mdf||h.a._mdf||g){B||(B=Math.sqrt(Math.pow(C[0]-b[0],2)+Math.pow(C[1]-b[1],2)));var L=Math.atan2(b[1]-C[1],b[0]-C[0]),V=h.h.v;V>=1?V=.99:V<=-1&&(V=-.99);var U=B*V,$=Math.cos(L+h.a.v)*U+C[0],P=Math.sin(L+h.a.v)*U+C[1];v.setAttribute("fx",$),v.setAttribute("fy",P),p&&!h.g._collapsable&&(h.of.setAttribute("fx",$),h.of.setAttribute("fy",P))}}}function f(x,h,g){var v=h.style,p=h.d;p&&(p._mdf||g)&&p.dashStr&&(v.pElem.setAttribute("stroke-dasharray",p.dashStr),v.pElem.setAttribute("stroke-dashoffset",p.dashoffset[0])),h.c&&(h.c._mdf||g)&&v.pElem.setAttribute("stroke","rgb("+bmFloor(h.c.v[0])+","+bmFloor(h.c.v[1])+","+bmFloor(h.c.v[2])+")"),(h.o._mdf||g)&&v.pElem.setAttribute("stroke-opacity",h.o.v),(h.w._mdf||g)&&(v.pElem.setAttribute("stroke-width",h.w.v),v.msElem&&v.msElem.setAttribute("stroke-width",h.w.v))}return r}();function SVGShapeElement(e,n,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,n,r),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 e,n=this.shapes.length,r,i,a=this.stylesList.length,o,s=[],l=!1;for(i=0;i<a;i+=1){for(o=this.stylesList[i],l=!1,s.length=0,e=0;e<n;e+=1)r=this.shapes[e],r.styles.indexOf(o)!==-1&&(s.push(r),l=r._isAnimated||l);s.length>1&&l&&this.setShapesAsAnimated(s)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var n,r=e.length;for(n=0;n<r;n+=1)e[n].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,n){var r,i=new SVGStyleData(e,n),a=i.pElem;if(e.ty==="st")r=new SVGStrokeStyleData(this,e,i);else if(e.ty==="fl")r=new SVGFillStyleData(this,e,i);else if(e.ty==="gf"||e.ty==="gs"){var o=e.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;r=new o(this,e,i),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),a.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))}else e.ty==="no"&&(r=new SVGNoStyleData(this,e,i));return(e.ty==="st"||e.ty==="gs")&&(a.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),a.setAttribute("fill-opacity","0"),e.lj===1&&a.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&a.setAttribute("fill-rule","evenodd"),e.ln&&a.setAttribute("id",e.ln),e.cl&&a.setAttribute("class",e.cl),e.bm&&(a.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(i),this.addToAnimatedContents(e,r),r},SVGShapeElement.prototype.createGroupElement=function(e){var n=new ShapeGroupData;return e.ln&&n.gr.setAttribute("id",e.ln),e.cl&&n.gr.setAttribute("class",e.cl),e.bm&&(n.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),n},SVGShapeElement.prototype.createTransformElement=function(e,n){var r=TransformPropertyFactory.getTransformProperty(this,e,this),i=new SVGTransformData(r,r.o,n);return this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.createShapeElement=function(e,n,r){var i=4;e.ty==="rc"?i=5:e.ty==="el"?i=6:e.ty==="sr"&&(i=7);var a=ShapePropertyFactory.getShapeProp(this,e,i,this),o=new SVGShapeData(n,r,a);return this.shapes.push(o),this.addShapeToModifiers(o),this.addToAnimatedContents(e,o),o},SVGShapeElement.prototype.addToAnimatedContents=function(e,n){for(var r=0,i=this.animatedContents.length;r<i;){if(this.animatedContents[r].element===n)return;r+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:n,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var n=e.styles,r,i=this.stylesList.length;for(r=0;r<i;r+=1)this.stylesList[r].closed||n.push(this.stylesList[r])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,n=this.itemsData.length;for(e=0;e<n;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),n=this.dynamicProperties.length,e=0;e<n;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,n,r,i,a,o,s){var l=[].concat(o),c,u=e.length-1,f,x,h=[],g=[],v,p,C;for(c=u;c>=0;c-=1){if(C=this.searchProcessedElement(e[c]),C?n[c]=r[C-1]:e[c]._render=s,e[c].ty==="fl"||e[c].ty==="st"||e[c].ty==="gf"||e[c].ty==="gs"||e[c].ty==="no")C?n[c].style.closed=!1:n[c]=this.createStyleElement(e[c],a),e[c]._render&&n[c].style.pElem.parentNode!==i&&i.appendChild(n[c].style.pElem),h.push(n[c].style);else if(e[c].ty==="gr"){if(!C)n[c]=this.createGroupElement(e[c]);else for(x=n[c].it.length,f=0;f<x;f+=1)n[c].prevViewData[f]=n[c].it[f];this.searchShapes(e[c].it,n[c].it,n[c].prevViewData,n[c].gr,a+1,l,s),e[c]._render&&n[c].gr.parentNode!==i&&i.appendChild(n[c].gr)}else e[c].ty==="tr"?(C||(n[c]=this.createTransformElement(e[c],i)),v=n[c].transform,l.push(v)):e[c].ty==="sh"||e[c].ty==="rc"||e[c].ty==="el"||e[c].ty==="sr"?(C||(n[c]=this.createShapeElement(e[c],l,a)),this.setElementStyles(n[c])):e[c].ty==="tm"||e[c].ty==="rd"||e[c].ty==="ms"||e[c].ty==="pb"||e[c].ty==="zz"||e[c].ty==="op"?(C?(p=n[c],p.closed=!1):(p=ShapeModifiers.getModifier(e[c].ty),p.init(this,e[c]),n[c]=p,this.shapeModifiers.push(p)),g.push(p)):e[c].ty==="rp"&&(C?(p=n[c],p.closed=!0):(p=ShapeModifiers.getModifier(e[c].ty),n[c]=p,p.init(this,e,c,n),this.shapeModifiers.push(p),s=!1),g.push(p));this.addProcessedElement(e[c],c+1)}for(u=h.length,c=0;c<u;c+=1)h[c].closed=!0;for(u=g.length,c=0;c<u;c+=1)g[c].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var e,n=this.stylesList.length;for(e=0;e<n;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<n;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,n=this.animatedContents.length,r;for(e=0;e<n;e+=1)r=this.animatedContents[e],(this._isFirstFrame||r.element._isAnimated)&&r.data!==!0&&r.fn(r.data,r.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(e,n,r,i,a,o){this.o=e,this.sw=n,this.sc=r,this.fc=i,this.m=a,this.p=o,this._mdf={o:!0,sw:!!n,sc:!!r,fc:!!i,m:!0,p:!0}}LetterProps.prototype.update=function(e,n,r,i,a,o){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 s=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,s=!0),this.sw!==n&&(this.sw=n,this._mdf.sw=!0,s=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,s=!0),this.fc!==i&&(this.fc=i,this._mdf.fc=!0,s=!0),this.m!==a&&(this.m=a,this._mdf.m=!0,s=!0),o.length&&(this.p[0]!==o[0]||this.p[1]!==o[1]||this.p[4]!==o[4]||this.p[5]!==o[5]||this.p[12]!==o[12]||this.p[13]!==o[13])&&(this.p=o,this._mdf.p=!0,s=!0),s};function TextProperty(e,n){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,n.d&&n.d.sid&&(n.d=e.globalData.slotManager.getProp(n.d)),this.data=n,this.elem=e,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(e,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,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(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!e)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var n=this.currentData,r=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var i,a=this.effectsSequence.length,o=e||this.data.d.k[this.keysIndex].s;for(i=0;i<a;i+=1)r!==this.keysIndex?o=this.effectsSequence[i](o,o.t):o=this.effectsSequence[i](this.currentData,o.t);n!==o&&this.setCurrentData(o),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,n=this.elem.comp.renderedFrame,r=0,i=e.length;r<=i-1&&!(r===i-1||e[r+1].t>n);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var n=[],r=0,i=e.length,a,o,s=!1,l=!1,c="";r<i;)s=l,l=!1,a=e.charCodeAt(r),c=e.charAt(r),FontManager.isCombinedCharacter(a)?s=!0:a>=55296&&a<=56319?FontManager.isRegionalFlag(e,r)?c=e.substr(r,14):(o=e.charCodeAt(r+1),o>=56320&&o<=57343&&(FontManager.isModifier(a,o)?(c=e.substr(r,2),s=!0):FontManager.isFlagEmoji(e.substr(r,4))?c=e.substr(r,4):c=e.substr(r,2))):a>56319?(o=e.charCodeAt(r+1),FontManager.isVariationSelector(a)&&(s=!0)):FontManager.isZeroWidthJoiner(a)&&(s=!0,l=!0),s?(n[n.length-1]+=c,s=!1):n.push(c),r+=c.length;return n},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var n=this.elem.globalData.fontManager,r=this.data,i=[],a,o,s,l=0,c,u=r.m.g,f=0,x=0,h=0,g=[],v=0,p=0,C,b,d=n.getFontByName(e.f),m,y=0,A=getFontProperties(d);e.fWeight=A.weight,e.fStyle=A.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),o=e.finalText.length,e.finalLineHeight=e.lh;var _=e.tr/1e3*e.finalSize,k;if(e.sz)for(var T=!0,F=e.sz[0],M=e.sz[1],B,L;T;){L=this.buildFinalText(e.t),B=0,v=0,o=L.length,_=e.tr/1e3*e.finalSize;var V=-1;for(a=0;a<o;a+=1)k=L[a].charCodeAt(0),s=!1,L[a]===" "?V=a:(k===13||k===3)&&(v=0,s=!0,B+=e.finalLineHeight||e.finalSize*1.2),n.chars?(m=n.getCharData(L[a],d.fStyle,d.fFamily),y=s?0:m.w*e.finalSize/100):y=n.measureText(L[a],e.f,e.finalSize),v+y>F&&L[a]!==" "?(V===-1?o+=1:a=V,B+=e.finalLineHeight||e.finalSize*1.2,L.splice(a,V===a?1:0,"\r"),V=-1,v=0):(v+=y,v+=_);B+=d.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&M<B?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=L,o=e.finalText.length,T=!1)}v=-_,y=0;var U=0,$;for(a=0;a<o;a+=1)if(s=!1,$=e.finalText[a],k=$.charCodeAt(0),k===13||k===3?(U=0,g.push(v),p=v>p?v:p,v=-2*_,c="",s=!0,h+=1):c=$,n.chars?(m=n.getCharData($,d.fStyle,n.getFontByName(e.f).fFamily),y=s?0:m.w*e.finalSize/100):y=n.measureText(c,e.f,e.finalSize),$===" "?U+=y+_:(v+=y+_+U,U=0),i.push({l:y,an:y,add:f,n:s,anIndexes:[],val:c,line:h,animatorJustifyOffset:0}),u==2){if(f+=y,c===""||c===" "||a===o-1){for((c===""||c===" ")&&(f-=y);x<=a;)i[x].an=f,i[x].ind=l,i[x].extra=y,x+=1;l+=1,f=0}}else if(u==3){if(f+=y,c===""||a===o-1){for(c===""&&(f-=y);x<=a;)i[x].an=f,i[x].ind=l,i[x].extra=y,x+=1;f=0,l+=1}}else i[l].ind=l,i[l].extra=0,l+=1;if(e.l=i,p=v>p?v:p,g.push(v),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=p,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=g;var P=r.a,I,E;b=P.length;var S,N,w=[];for(C=0;C<b;C+=1){for(I=P[C],I.a.sc&&(e.strokeColorAnim=!0),I.a.sw&&(e.strokeWidthAnim=!0),(I.a.fc||I.a.fh||I.a.fs||I.a.fb)&&(e.fillColorAnim=!0),N=0,S=I.s.b,a=0;a<o;a+=1)E=i[a],E.anIndexes[C]=N,(S==1&&E.val!==""||S==2&&E.val!==""&&E.val!==" "||S==3&&(E.n||E.val==" "||a==o-1)||S==4&&(E.n||a==o-1))&&(I.s.rn===1&&w.push(N),N+=1);r.a[C].s.totalChars=N;var R=-1,O;if(I.s.rn===1)for(a=0;a<o;a+=1)E=i[a],R!=E.anIndexes[C]&&(R=E.anIndexes[C],O=w.splice(Math.floor(Math.random()*w.length),1)[0]),E.anIndexes[C]=O}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=d.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,n){n=n===void 0?this.keysIndex:n;var r=this.copyData({},this.data.d.k[n].s);r=this.copyData(r,e),this.data.d.k[n].s=r,this.recalculate(n),this.setCurrentData(r),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var n=this.data.d.k[e].s;n.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(n)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,n=Math.min,r=Math.floor;function i(o,s){this._currentTextLength=-1,this.k=!1,this.data=s,this.elem=o,this.comp=o.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(o),this.s=PropertyFactory.getProp(o,s.s||{k:0},0,0,this),"e"in s?this.e=PropertyFactory.getProp(o,s.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(o,s.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(o,s.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(o,s.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(o,s.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(o,s.a,0,.01,this),this.dynamicProperties.length||this.getValue()}i.prototype={getMult:function(s){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var l=0,c=0,u=1,f=1;this.ne.v>0?l=this.ne.v/100:c=-this.ne.v/100,this.xe.v>0?u=1-this.xe.v/100:f=1+this.xe.v/100;var x=BezierFactory.getBezierEasing(l,c,u,f).get,h=0,g=this.finalS,v=this.finalE,p=this.data.sh;if(p===2)v===g?h=s>=v?1:0:h=e(0,n(.5/(v-g)+(s-g)/(v-g),1)),h=x(h);else if(p===3)v===g?h=s>=v?0:1:h=1-e(0,n(.5/(v-g)+(s-g)/(v-g),1)),h=x(h);else if(p===4)v===g?h=0:(h=e(0,n(.5/(v-g)+(s-g)/(v-g),1)),h<.5?h*=2:h=1-2*(h-.5)),h=x(h);else if(p===5){if(v===g)h=0;else{var C=v-g;s=n(e(0,s+.5-g),v-g);var b=-C/2+s,d=C/2;h=Math.sqrt(1-b*b/(d*d))}h=x(h)}else p===6?(v===g?h=0:(s=n(e(0,s+.5-g),v-g),h=(1+Math.cos(Math.PI+Math.PI*2*s/(v-g)))/2),h=x(h)):(s>=r(g)&&(s-g<0?h=e(0,n(n(v,1)-(g-s),1)):h=e(0,n(v-s,1))),h=x(h));if(this.sm.v!==100){var m=this.sm.v*.01;m===0&&(m=1e-8);var y=.5-m*.5;h<y?h=0:(h=(h-y)/m,h>1&&(h=1))}return h*this.a.v},getValue:function(s){this.iterateDynamicProperties(),this._mdf=s||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,s&&this.data.r===2&&(this.e.v=this._currentTextLength);var l=this.data.r===2?1:100/this.data.totalChars,c=this.o.v/l,u=this.s.v/l+c,f=this.e.v/l+c;if(u>f){var x=u;u=f,f=x}this.finalS=u,this.finalE=f}},extendPrototype([DynamicPropertyContainer],i);function a(o,s,l){return new i(o,s)}return{getTextSelectorProp:a}}();function TextAnimatorDataProperty(e,n,r){var i={propType:!1},a=PropertyFactory.getProp,o=n.a;this.a={r:o.r?a(e,o.r,0,degToRads,r):i,rx:o.rx?a(e,o.rx,0,degToRads,r):i,ry:o.ry?a(e,o.ry,0,degToRads,r):i,sk:o.sk?a(e,o.sk,0,degToRads,r):i,sa:o.sa?a(e,o.sa,0,degToRads,r):i,s:o.s?a(e,o.s,1,.01,r):i,a:o.a?a(e,o.a,1,0,r):i,o:o.o?a(e,o.o,0,.01,r):i,p:o.p?a(e,o.p,1,0,r):i,sw:o.sw?a(e,o.sw,0,0,r):i,sc:o.sc?a(e,o.sc,1,0,r):i,fc:o.fc?a(e,o.fc,1,0,r):i,fh:o.fh?a(e,o.fh,0,0,r):i,fs:o.fs?a(e,o.fs,0,.01,r):i,fb:o.fb?a(e,o.fb,0,.01,r):i,t:o.t?a(e,o.t,0,0,r):i},this.s=TextSelectorProp.getTextSelectorProp(e,n.s,r),this.s.t=n.s.t}function TextAnimatorProperty(e,n,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=n,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}TextAnimatorProperty.prototype.searchProperties=function(){var e,n=this._textData.a.length,r,i=PropertyFactory.getProp;for(e=0;e<n;e+=1)r=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,r,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:i(this._elem,this._textData.p.a,0,0,this),f:i(this._elem,this._textData.p.f,0,0,this),l:i(this._elem,this._textData.p.l,0,0,this),r:i(this._elem,this._textData.p.r,0,0,this),p:i(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=i(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,n){if(this.lettersChangedFlag=n,!(!this._mdf&&!this._isFirstFrame&&!n&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var r=this._moreOptions.alignment.v,i=this._animatorsData,a=this._textData,o=this.mHelper,s=this._renderType,l=this.renderedLetters.length,c,u,f,x,h=e.l,g,v,p,C,b,d,m,y,A,_,k,T,F,M,B;if(this._hasMaskedPath){if(B=this._pathData.m,!this._pathData.n||this._pathData._mdf){var L=B.v;this._pathData.r.v&&(L=L.reverse()),g={tLength:0,segments:[]},x=L._length-1;var V;for(T=0,f=0;f<x;f+=1)V=bez.buildBezierData(L.v[f],L.v[f+1],[L.o[f][0]-L.v[f][0],L.o[f][1]-L.v[f][1]],[L.i[f+1][0]-L.v[f+1][0],L.i[f+1][1]-L.v[f+1][1]]),g.tLength+=V.segmentLength,g.segments.push(V),T+=V.segmentLength;f=x,B.v.c&&(V=bez.buildBezierData(L.v[f],L.v[0],[L.o[f][0]-L.v[f][0],L.o[f][1]-L.v[f][1]],[L.i[0][0]-L.v[0][0],L.i[0][1]-L.v[0][1]]),g.tLength+=V.segmentLength,g.segments.push(V),T+=V.segmentLength),this._pathData.pi=g}if(g=this._pathData.pi,v=this._pathData.f.v,m=0,d=1,C=0,b=!0,_=g.segments,v<0&&B.v.c)for(g.tLength<Math.abs(v)&&(v=-Math.abs(v)%g.tLength),m=_.length-1,A=_[m].points,d=A.length-1;v<0;)v+=A[d].partialLength,d-=1,d<0&&(m-=1,A=_[m].points,d=A.length-1);A=_[m].points,y=A[d-1],p=A[d],k=p.partialLength}x=h.length,c=0,u=0;var U=e.finalSize*1.2*.714,$=!0,P,I,E,S,N;S=i.length;var w,R=-1,O,D,q,j=v,H=m,K=d,G=-1,Y,J,ee,X,W,Q,te,ie,ae="",se=this.defaultPropsArray,fe;if(e.j===2||e.j===1){var he=0,ge=0,be=e.j===2?-.5:-1,Se=0,Ae=!0;for(f=0;f<x;f+=1)if(h[f].n){for(he&&(he+=ge);Se<f;)h[Se].animatorJustifyOffset=he,Se+=1;he=0,Ae=!0}else{for(E=0;E<S;E+=1)P=i[E].a,P.t.propType&&(Ae&&e.j===2&&(ge+=P.t.v*be),I=i[E].s,w=I.getMult(h[f].anIndexes[E],a.a[E].s.totalChars),w.length?he+=P.t.v*w[0]*be:he+=P.t.v*w*be);Ae=!1}for(he&&(he+=ge);Se<f;)h[Se].animatorJustifyOffset=he,Se+=1}for(f=0;f<x;f+=1){if(o.reset(),Y=1,h[f].n)c=0,u+=e.yOffset,u+=$?1:0,v=j,$=!1,this._hasMaskedPath&&(m=H,d=K,A=_[m].points,y=A[d-1],p=A[d],k=p.partialLength,C=0),ae="",ie="",Q="",fe="",se=this.defaultPropsArray;else{if(this._hasMaskedPath){if(G!==h[f].line){switch(e.j){case 1:v+=T-e.lineWidths[h[f].line];break;case 2:v+=(T-e.lineWidths[h[f].line])/2;break}G=h[f].line}R!==h[f].ind&&(h[R]&&(v+=h[R].extra),v+=h[f].an/2,R=h[f].ind),v+=r[0]*h[f].an*.005;var ke=0;for(E=0;E<S;E+=1)P=i[E].a,P.p.propType&&(I=i[E].s,w=I.getMult(h[f].anIndexes[E],a.a[E].s.totalChars),w.length?ke+=P.p.v[0]*w[0]:ke+=P.p.v[0]*w),P.a.propType&&(I=i[E].s,w=I.getMult(h[f].anIndexes[E],a.a[E].s.totalChars),w.length?ke+=P.a.v[0]*w[0]:ke+=P.a.v[0]*w);for(b=!0,this._pathData.a.v&&(v=h[0].an*.5+(T-this._pathData.f.v-h[0].an*.5-h[h.length-1].an*.5)*R/(x-1),v+=this._pathData.f.v);b;)C+k>=v+ke||!A?(F=(v+ke-C)/p.partialLength,D=y.point[0]+(p.point[0]-y.point[0])*F,q=y.point[1]+(p.point[1]-y.point[1])*F,o.translate(-r[0]*h[f].an*.005,-(r[1]*U)*.01),b=!1):A&&(C+=p.partialLength,d+=1,d>=A.length&&(d=0,m+=1,_[m]?A=_[m].points:B.v.c?(d=0,m=0,A=_[m].points):(C-=p.partialLength,A=null)),A&&(y=p,p=A[d],k=p.partialLength));O=h[f].an/2-h[f].add,o.translate(-O,0,0)}else O=h[f].an/2-h[f].add,o.translate(-O,0,0),o.translate(-r[0]*h[f].an*.005,-r[1]*U*.01,0);for(E=0;E<S;E+=1)P=i[E].a,P.t.propType&&(I=i[E].s,w=I.getMult(h[f].anIndexes[E],a.a[E].s.totalChars),(c!==0||e.j!==0)&&(this._hasMaskedPath?w.length?v+=P.t.v*w[0]:v+=P.t.v*w:w.length?c+=P.t.v*w[0]:c+=P.t.v*w));for(e.strokeWidthAnim&&(ee=e.sw||0),e.strokeColorAnim&&(e.sc?J=[e.sc[0],e.sc[1],e.sc[2]]:J=[0,0,0]),e.fillColorAnim&&e.fc&&(X=[e.fc[0],e.fc[1],e.fc[2]]),E=0;E<S;E+=1)P=i[E].a,P.a.propType&&(I=i[E].s,w=I.getMult(h[f].anIndexes[E],a.a[E].s.totalChars),w.length?o.translate(-P.a.v[0]*w[0],-P.a.v[1]*w[1],P.a.v[2]*w[2]):o.translate(-P.a.v[0]*w,-P.a.v[1]*w,P.a.v[2]*w));for(E=0;E<S;E+=1)P=i[E].a,P.s.propType&&(I=i[E].s,w=I.getMult(h[f].anIndexes[E],a.a[E].s.totalChars),w.length?o.scale(1+(P.s.v[0]-1)*w[0],1+(P.s.v[1]-1)*w[1],1):o.scale(1+(P.s.v[0]-1)*w,1+(P.s.v[1]-1)*w,1));for(E=0;E<S;E+=1){if(P=i[E].a,I=i[E].s,w=I.getMult(h[f].anIndexes[E],a.a[E].s.totalChars),P.sk.propType&&(w.length?o.skewFromAxis(-P.sk.v*w[0],P.sa.v*w[1]):o.skewFromAxis(-P.sk.v*w,P.sa.v*w)),P.r.propType&&(w.length?o.rotateZ(-P.r.v*w[2]):o.rotateZ(-P.r.v*w)),P.ry.propType&&(w.length?o.rotateY(P.ry.v*w[1]):o.rotateY(P.ry.v*w)),P.rx.propType&&(w.length?o.rotateX(P.rx.v*w[0]):o.rotateX(P.rx.v*w)),P.o.propType&&(w.length?Y+=(P.o.v*w[0]-Y)*w[0]:Y+=(P.o.v*w-Y)*w),e.strokeWidthAnim&&P.sw.propType&&(w.length?ee+=P.sw.v*w[0]:ee+=P.sw.v*w),e.strokeColorAnim&&P.sc.propType)for(W=0;W<3;W+=1)w.length?J[W]+=(P.sc.v[W]-J[W])*w[0]:J[W]+=(P.sc.v[W]-J[W])*w;if(e.fillColorAnim&&e.fc){if(P.fc.propType)for(W=0;W<3;W+=1)w.length?X[W]+=(P.fc.v[W]-X[W])*w[0]:X[W]+=(P.fc.v[W]-X[W])*w;P.fh.propType&&(w.length?X=addHueToRGB(X,P.fh.v*w[0]):X=addHueToRGB(X,P.fh.v*w)),P.fs.propType&&(w.length?X=addSaturationToRGB(X,P.fs.v*w[0]):X=addSaturationToRGB(X,P.fs.v*w)),P.fb.propType&&(w.length?X=addBrightnessToRGB(X,P.fb.v*w[0]):X=addBrightnessToRGB(X,P.fb.v*w))}}for(E=0;E<S;E+=1)P=i[E].a,P.p.propType&&(I=i[E].s,w=I.getMult(h[f].anIndexes[E],a.a[E].s.totalChars),this._hasMaskedPath?w.length?o.translate(0,P.p.v[1]*w[0],-P.p.v[2]*w[1]):o.translate(0,P.p.v[1]*w,-P.p.v[2]*w):w.length?o.translate(P.p.v[0]*w[0],P.p.v[1]*w[1],-P.p.v[2]*w[2]):o.translate(P.p.v[0]*w,P.p.v[1]*w,-P.p.v[2]*w));if(e.strokeWidthAnim&&(Q=ee<0?0:ee),e.strokeColorAnim&&(te="rgb("+Math.round(J[0]*255)+","+Math.round(J[1]*255)+","+Math.round(J[2]*255)+")"),e.fillColorAnim&&e.fc&&(ie="rgb("+Math.round(X[0]*255)+","+Math.round(X[1]*255)+","+Math.round(X[2]*255)+")"),this._hasMaskedPath){if(o.translate(0,-e.ls),o.translate(0,r[1]*U*.01+u,0),this._pathData.p.v){M=(p.point[1]-y.point[1])/(p.point[0]-y.point[0]);var Be=Math.atan(M)*180/Math.PI;p.point[0]<y.point[0]&&(Be+=180),o.rotate(-Be*Math.PI/180)}o.translate(D,q,0),v-=r[0]*h[f].an*.005,h[f+1]&&R!==h[f+1].ind&&(v+=h[f].an/2,v+=e.tr*.001*e.finalSize)}else{switch(o.translate(c,u,0),e.ps&&o.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:o.translate(h[f].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[h[f].line]),0,0);break;case 2:o.translate(h[f].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[h[f].line])/2,0,0);break}o.translate(0,-e.ls),o.translate(O,0,0),o.translate(r[0]*h[f].an*.005,r[1]*U*.01,0),c+=h[f].l+e.tr*.001*e.finalSize}s==="html"?ae=o.toCSS():s==="svg"?ae=o.to2dCSS():se=[o.props[0],o.props[1],o.props[2],o.props[3],o.props[4],o.props[5],o.props[6],o.props[7],o.props[8],o.props[9],o.props[10],o.props[11],o.props[12],o.props[13],o.props[14],o.props[15]],fe=Y}l<=f?(N=new LetterProps(fe,Q,te,ie,ae,se),this.renderedLetters.push(N),l+=1,this.lettersChangedFlag=!0):(N=this.renderedLetters[f],this.lettersChangedFlag=N.update(fe,Q,te,ie,ae,se)||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(e,n,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,n,r),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,n,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,n){var r,i=n.length,a,o="";for(r=0;r<i;r+=1)n[r].ty==="sh"&&(a=n[r].ks.k,o+=buildShapeString(a,a.i.length,!0,e));return o},ITextElement.prototype.updateDocumentData=function(e,n){this.textProperty.updateDocumentData(e,n)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,n,r,i,a){switch(e.ps&&n.translate(e.ps[0],e.ps[1]+e.ascent,0),n.translate(0,-e.ls,0),e.j){case 1:n.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r]),0,0);break;case 2:n.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r])/2,0,0);break}n.translate(i,a,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[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(e,n,r){this.textSpans=[],this.renderType="svg",this.initElement(e,n,r)}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(e){for(var n=0,r=e.length,i=[],a="";n<r;)e[n]===String.fromCharCode(13)||e[n]===String.fromCharCode(3)?(i.push(a),a=""):a+=e[n],n+=1;return i.push(a),i},SVGTextLottieElement.prototype.buildShapeData=function(e,n){if(e.shapes&&e.shapes.length){var r=e.shapes[0];if(r.it){var i=r.it[r.it.length-1];i.s&&(i.s.k[0]=n,i.s.k[1]=n)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,n,r=this.textProperty.currentData;this.renderedLetters=createSizedArray(r?r.l.length:0),r.fc?this.layerElement.setAttribute("fill",this.buildColor(r.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),r.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(r.sc)),this.layerElement.setAttribute("stroke-width",r.sw)),this.layerElement.setAttribute("font-size",r.finalSize);var i=this.globalData.fontManager.getFontByName(r.f);if(i.fClass)this.layerElement.setAttribute("class",i.fClass);else{this.layerElement.setAttribute("font-family",i.fFamily);var a=r.fWeight,o=r.fStyle;this.layerElement.setAttribute("font-style",o),this.layerElement.setAttribute("font-weight",a)}this.layerElement.setAttribute("aria-label",r.t);var s=r.l||[],l=!!this.globalData.fontManager.chars;n=s.length;var c,u=this.mHelper,f="",x=this.data.singleShape,h=0,g=0,v=!0,p=r.tr*.001*r.finalSize;if(x&&!l&&!r.sz){var C=this.textContainer,b="start";switch(r.j){case 1:b="end";break;case 2:b="middle";break;default:b="start";break}C.setAttribute("text-anchor",b),C.setAttribute("letter-spacing",p);var d=this.buildTextContents(r.finalText);for(n=d.length,g=r.ps?r.ps[1]+r.ascent:0,e=0;e<n;e+=1)c=this.textSpans[e].span||createNS("tspan"),c.textContent=d[e],c.setAttribute("x",0),c.setAttribute("y",g),c.style.display="inherit",C.appendChild(c),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=c,g+=r.finalLineHeight;this.layerElement.appendChild(C)}else{var m=this.textSpans.length,y;for(e=0;e<n;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!l||!x||e===0){if(c=m>e?this.textSpans[e].span:createNS(l?"g":"text"),m<=e){if(c.setAttribute("stroke-linecap","butt"),c.setAttribute("stroke-linejoin","round"),c.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=c,l){var A=createNS("g");c.appendChild(A),this.textSpans[e].childSpan=A}this.textSpans[e].span=c,this.layerElement.appendChild(c)}c.style.display="inherit"}if(u.reset(),x&&(s[e].n&&(h=-p,g+=r.yOffset,g+=v?1:0,v=!1),this.applyTextPropertiesToMatrix(r,u,s[e].line,h,g),h+=s[e].l||0,h+=p),l){y=this.globalData.fontManager.getCharData(r.finalText[e],i.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily);var _;if(y.t===1)_=new SVGCompElement(y.data,this.globalData,this);else{var k=emptyShapeData;y.data&&y.data.shapes&&(k=this.buildShapeData(y.data,r.finalSize)),_=new SVGShapeElement(k,this.globalData,this)}if(this.textSpans[e].glyph){var T=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(T.layerElement),T.destroy()}this.textSpans[e].glyph=_,_._debug=!0,_.prepareFrame(0),_.renderFrame(),this.textSpans[e].childSpan.appendChild(_.layerElement),y.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else x&&c.setAttribute("transform","translate("+u.props[12]+","+u.props[13]+")"),c.textContent=s[e].val,c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}x&&c&&c.setAttribute("d",f)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=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 e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,n=this.textSpans.length,r;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<n;e+=1)r=this.textSpans[e].glyph,r&&(r.prepareFrame(this.comp.renderedFrame-this.data.st),r._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 e,n,r=this.textAnimator.renderedLetters,i=this.textProperty.currentData.l;n=i.length;var a,o,s;for(e=0;e<n;e+=1)i[e].n||(a=r[e],o=this.textSpans[e].span,s=this.textSpans[e].glyph,s&&s.renderFrame(),a._mdf.m&&o.setAttribute("transform",a.m),a._mdf.o&&o.setAttribute("opacity",a.o),a._mdf.sw&&o.setAttribute("stroke-width",a.sw),a._mdf.sc&&o.setAttribute("stroke",a.sc),a._mdf.fc&&o.setAttribute("fill",a.fc))}};function ISolidElement(e,n,r){this.initElement(e,n,r)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)};function NullElement(e,n,r){this.initFrame(),this.initBaseData(e,n,r),this.initFrame(),this.initTransform(e,n,r),this.initHierarchy()}NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!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(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){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 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.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 n=this.globalData.defs;this.setupGlobalData(e,n),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var r=createNS("clipPath"),i=createNS("rect");i.setAttribute("width",e.w),i.setAttribute("height",e.h),i.setAttribute("x",0),i.setAttribute("y",0);var a=createElementID();r.setAttribute("id",a),r.appendChild(i),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+a+")"),n.appendChild(r),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,n=this.layers?this.layers.length:0;for(e=0;e<n;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var n=0,r=this.layers.length;for(n=0;n<r;n+=1)if(this.layers[n].ind===e)return n;return-1},SVGRendererBase.prototype.buildItem=function(e){var n=this.elements;if(!(n[e]||this.layers[e].ty===99)){n[e]=!0;var r=this.createItem(this.layers[e]);if(n[e]=r,getExpressionsPlugin()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,e),this.layers[e].tt){var i="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(i===-1)return;if(!this.elements[i]||this.elements[i]===!0)this.buildItem(i),this.addPendingElement(r);else{var a=n[i],o=a.getMatte(this.layers[e].tt);r.setMatte(o)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var n=0,r=this.elements.length;n<r;){if(this.elements[n]===e){var i="tp"in e.data?this.findIndexByInd(e.data.tp):n-1,a=this.elements[i],o=a.getMatte(this.layers[n].tt);e.setMatte(o);break}n+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var n,r=this.layers.length;for(this.completeLayers||this.checkLayers(e),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].prepareFrame(e-this.layers[n].st);if(this.globalData._mdf)for(n=0;n<r;n+=1)(this.completeLayers||this.elements[n])&&this.elements[n].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,n){var r=e.getBaseElement();if(r){for(var i=0,a;i<n;)this.elements[i]&&this.elements[i]!==!0&&this.elements[i].getBaseElement()&&(a=this.elements[i].getBaseElement()),i+=1;a?this.layerElement.insertBefore(r,a):this.layerElement.appendChild(r)}},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(e,n,r){this.initFrame(),this.initBaseData(e,n,r),this.initTransform(e,n,r),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!n.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var n=this.tm.v;n===this.data.op&&(n=this.data.op-1),this.renderedFrame=n}var r,i=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&(this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st),this.elements[r]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,n=this.layers.length;for(e=0;e<n;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,n=this.layers.length;for(e=0;e<n;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(e,n,r){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,n,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,n.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function SVGRenderer(e,n){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(n&&n.title){var i=createNS("title"),a=createElementID();i.setAttribute("id",a),i.textContent=n.title,this.svgElement.appendChild(i),r+=a}if(n&&n.description){var o=createNS("desc"),s=createElementID();o.setAttribute("id",s),o.textContent=n.description,this.svgElement.appendChild(o),r+=" "+s}r&&this.svgElement.setAttribute("aria-labelledby",r);var l=createNS("defs");this.svgElement.appendChild(l);var c=createNS("g");this.svgElement.appendChild(c),this.layerElement=c,this.renderConfig={preserveAspectRatio:n&&n.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:n&&n.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:n&&n.contentVisibility||"visible",progressiveLoad:n&&n.progressiveLoad||!1,hideOnTransparent:!(n&&n.hideOnTransparent===!1),viewBoxOnly:n&&n.viewBoxOnly||!1,viewBoxSize:n&&n.viewBoxSize||!1,className:n&&n.className||"",id:n&&n.id||"",focusable:n&&n.focusable,filterSize:{width:n&&n.filterSize&&n.filterSize.width||"100%",height:n&&n.filterSize&&n.filterSize.height||"100%",x:n&&n.filterSize&&n.filterSize.x||"0%",y:n&&n.filterSize&&n.filterSize.y||"0%"},width:n&&n.width,height:n&&n.height,runExpressions:!n||n.runExpressions===void 0||n.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:l,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(n){var r,i=n.length,a="_";for(r=0;r<i;r+=1)a+=n[r].transform.key+"_";var o=this.sequences[a];return o||(o={transforms:[].concat(n),finalTransform:new Matrix,_mdf:!1},this.sequences[a]=o,this.sequenceList.push(o)),o},processSequence:function(n,r){for(var i=0,a=n.transforms.length,o=r;i<a&&!r;){if(n.transforms[i].transform.mProps._mdf){o=!0;break}i+=1}if(o)for(n.finalTransform.reset(),i=a-1;i>=0;i-=1)n.finalTransform.multiply(n.transforms[i].transform.mProps.v);n._mdf=o},processSequences:function(n){var r,i=this.sequenceList.length;for(r=0;r<i;r+=1)this.processSequence(this.sequenceList[r],n)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var n="__lottie_element_luma_buffer",r=null,i=null,a=null;function o(){var c=createNS("svg"),u=createNS("filter"),f=createNS("feColorMatrix");return u.setAttribute("id",n),f.setAttribute("type","matrix"),f.setAttribute("color-interpolation-filters","sRGB"),f.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"),u.appendChild(f),c.appendChild(u),c.setAttribute("id",n+"_svg"),featureSupport.svgLumaHidden&&(c.style.display="none"),c}function s(){r||(a=o(),document.body.appendChild(a),r=createTag("canvas"),i=r.getContext("2d"),i.filter="url(#"+n+")",i.fillStyle="rgba(0,0,0,0)",i.fillRect(0,0,1,1))}function l(c){return r||s(),r.width=c.width,r.height=c.height,i.filter="url(#"+n+")",r}return{load:s,get:l}};function createCanvas(e,n){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,n);var r=createTag("canvas");return r.width=e,r.height=n,r}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(e){var n,r=e.data.ef?e.data.ef.length:0;this.filters=[];var i;for(n=0;n<r;n+=1){i=null;var a=e.data.ef[n].ty;if(registeredEffects[a]){var o=registeredEffects[a].effect;i=new o(e.effectsManager.effectElements[n],e)}i&&this.filters.push(i)}this.filters.length&&e.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(e){var n,r=this.filters.length;for(n=0;n<r;n+=1)this.filters[n].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var n,r=this.filters.length,i=[];for(n=0;n<r;n+=1)this.filters[n].type===e&&i.push(this.filters[n]);return i};function registerEffect(e,n){registeredEffects[e]={effect:n}}function CVMaskElement(e,n){this.data=e,this.element=n,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var r,i=this.masksProperties.length,a=!1;for(r=0;r<i;r+=1)this.masksProperties[r].mode!=="n"&&(a=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=a,a&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e=this.element.finalTransform.mat,n=this.element.canvasContext,r,i=this.masksProperties.length,a,o,s;for(n.beginPath(),r=0;r<i;r+=1)if(this.masksProperties[r].mode!=="n"){this.masksProperties[r].inv&&(n.moveTo(0,0),n.lineTo(this.element.globalData.compSize.w,0),n.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),n.lineTo(0,this.element.globalData.compSize.h),n.lineTo(0,0)),s=this.viewData[r].v,a=e.applyToPointArray(s.v[0][0],s.v[0][1],0),n.moveTo(a[0],a[1]);var l,c=s._length;for(l=1;l<c;l+=1)o=e.applyToTriplePoints(s.o[l-1],s.i[l],s.v[l]),n.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5]);o=e.applyToTriplePoints(s.o[l-1],s.i[0],s.v[0]),n.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5])}this.element.globalData.renderer.save(!0),n.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 n=this.globalData.canvasContext,r=assetLoader.createCanvas(n.canvas.width,n.canvas.height);this.buffers.push(r);var i=assetLoader.createCanvas(n.canvas.width,n.canvas.height);this.buffers.push(i),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 n=this.globalData;if(n.blendMode!==this.data.bm){n.blendMode=this.data.bm;var r=getBlendMode(this.data.bm);n.canvasContext.globalCompositeOperation=r}},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(n){n.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 n=this.buffers[0],r=n.getContext("2d");this.clearCanvas(r),r.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 n=this.buffers[1],r=n.getContext("2d");this.clearCanvas(r),r.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 i=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(i.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var a=assetLoader.getLumaCanvas(this.canvasContext.canvas),o=a.getContext("2d");o.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(a,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(n,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(n){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!n)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var r=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(r),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(r),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(e,n,r,i){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var a=4;n.ty==="rc"?a=5:n.ty==="el"?a=6:n.ty==="sr"&&(a=7),this.sh=ShapePropertyFactory.getShapeProp(e,n,a,e);var o,s=r.length,l;for(o=0;o<s;o+=1)r[o].closed||(l={transforms:i.addTransformSequence(r[o].transforms),trNodes:[]},this.styledShapes.push(l),r[o].elements.push(l))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(e,n,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,n,r)}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(e,n){var r={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(n),transforms:[],elements:[],closed:e.hd===!0},i={};if(e.ty==="fl"||e.ty==="st"?(i.c=PropertyFactory.getProp(this,e.c,1,255,this),i.c.k||(r.co="rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")")):(e.ty==="gf"||e.ty==="gs")&&(i.s=PropertyFactory.getProp(this,e.s,1,null,this),i.e=PropertyFactory.getProp(this,e.e,1,null,this),i.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),i.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),i.g=new GradientProperty(this,e.g,this)),i.o=PropertyFactory.getProp(this,e.o,0,.01,this),e.ty==="st"||e.ty==="gs"){if(r.lc=lineCapEnum[e.lc||2],r.lj=lineJoinEnum[e.lj||2],e.lj==1&&(r.ml=e.ml),i.w=PropertyFactory.getProp(this,e.w,0,null,this),i.w.k||(r.wi=i.w.v),e.d){var a=new DashProperty(this,e.d,"canvas",this);i.d=a,i.d.k||(r.da=i.d.dashArray,r.do=i.d.dashoffset[0])}}else r.r=e.r===2?"evenodd":"nonzero";return this.stylesList.push(r),i.style=r,i},CVShapeElement.prototype.createGroupElement=function(){var e={it:[],prevViewData:[]};return e},CVShapeElement.prototype.createTransformElement=function(e){var n={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}};return n},CVShapeElement.prototype.createShapeElement=function(e){var n=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(n),this.addShapeToModifiers(n),n},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,n=this.itemsData.length;for(e=0;e<n;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),n=this.dynamicProperties.length,e=0;e<n;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var n,r=this.stylesList.length;for(n=0;n<r;n+=1)this.stylesList[n].closed||this.stylesList[n].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,n=this.stylesList.length;for(e=0;e<n;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var n,r=e.length;for(n=0;n<r;n+=1)e[n].closed=!0},CVShapeElement.prototype.searchShapes=function(e,n,r,i,a){var o,s=e.length-1,l,c,u=[],f=[],x,h,g,v=[].concat(a);for(o=s;o>=0;o-=1){if(x=this.searchProcessedElement(e[o]),x?n[o]=r[x-1]:e[o]._shouldRender=i,e[o].ty==="fl"||e[o].ty==="st"||e[o].ty==="gf"||e[o].ty==="gs")x?n[o].style.closed=!1:n[o]=this.createStyleElement(e[o],v),u.push(n[o].style);else if(e[o].ty==="gr"){if(!x)n[o]=this.createGroupElement(e[o]);else for(c=n[o].it.length,l=0;l<c;l+=1)n[o].prevViewData[l]=n[o].it[l];this.searchShapes(e[o].it,n[o].it,n[o].prevViewData,i,v)}else e[o].ty==="tr"?(x||(g=this.createTransformElement(e[o]),n[o]=g),v.push(n[o]),this.addTransformToStyleList(n[o])):e[o].ty==="sh"||e[o].ty==="rc"||e[o].ty==="el"||e[o].ty==="sr"?x||(n[o]=this.createShapeElement(e[o])):e[o].ty==="tm"||e[o].ty==="rd"||e[o].ty==="pb"||e[o].ty==="zz"||e[o].ty==="op"?(x?(h=n[o],h.closed=!1):(h=ShapeModifiers.getModifier(e[o].ty),h.init(this,e[o]),n[o]=h,this.shapeModifiers.push(h)),f.push(h)):e[o].ty==="rp"&&(x?(h=n[o],h.closed=!0):(h=ShapeModifiers.getModifier(e[o].ty),n[o]=h,h.init(this,e,o,n),this.shapeModifiers.push(h),i=!1),f.push(h));this.addProcessedElement(e[o],o+1)}for(this.removeTransformFromStyleList(),this.closeStyles(u),s=f.length,o=0;o<s;o+=1)f[o].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(e,n){(e._opMdf||n.op._mdf||this._isFirstFrame)&&(n.opacity=e.opacity,n.opacity*=n.op.v,n._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,n=this.stylesList.length,r,i,a,o,s,l,c=this.globalData.renderer,u=this.globalData.canvasContext,f,x;for(e=0;e<n;e+=1)if(x=this.stylesList[e],f=x.type,!((f==="st"||f==="gs")&&x.wi===0||!x.data._shouldRender||x.coOp===0||this.globalData.currentGlobalAlpha===0)){for(c.save(),s=x.elements,f==="st"||f==="gs"?(c.ctxStrokeStyle(f==="st"?x.co:x.grd),c.ctxLineWidth(x.wi),c.ctxLineCap(x.lc),c.ctxLineJoin(x.lj),c.ctxMiterLimit(x.ml||0)):c.ctxFillStyle(f==="fl"?x.co:x.grd),c.ctxOpacity(x.coOp),f!=="st"&&f!=="gs"&&u.beginPath(),c.ctxTransform(x.preTransforms.finalTransform.props),i=s.length,r=0;r<i;r+=1){for((f==="st"||f==="gs")&&(u.beginPath(),x.da&&(u.setLineDash(x.da),u.lineDashOffset=x.do)),l=s[r].trNodes,o=l.length,a=0;a<o;a+=1)l[a].t==="m"?u.moveTo(l[a].p[0],l[a].p[1]):l[a].t==="c"?u.bezierCurveTo(l[a].pts[0],l[a].pts[1],l[a].pts[2],l[a].pts[3],l[a].pts[4],l[a].pts[5]):u.closePath();(f==="st"||f==="gs")&&(c.ctxStroke(),x.da&&u.setLineDash(this.dashResetter))}f!=="st"&&f!=="gs"&&this.globalData.renderer.ctxFill(x.r),c.restore()}},CVShapeElement.prototype.renderShape=function(e,n,r,i){var a,o=n.length-1,s;for(s=e,a=o;a>=0;a-=1)n[a].ty==="tr"?(s=r[a].transform,this.renderShapeTransform(e,s)):n[a].ty==="sh"||n[a].ty==="el"||n[a].ty==="rc"||n[a].ty==="sr"?this.renderPath(n[a],r[a]):n[a].ty==="fl"?this.renderFill(n[a],r[a],s):n[a].ty==="st"?this.renderStroke(n[a],r[a],s):n[a].ty==="gf"||n[a].ty==="gs"?this.renderGradientFill(n[a],r[a],s):n[a].ty==="gr"?this.renderShape(s,n[a].it,r[a].it):n[a].ty;i&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,n){if(this._isFirstFrame||n._mdf||e.transforms._mdf){var r=e.trNodes,i=n.paths,a,o,s,l=i._length;r.length=0;var c=e.transforms.finalTransform;for(s=0;s<l;s+=1){var u=i.shapes[s];if(u&&u.v){for(o=u._length,a=1;a<o;a+=1)a===1&&r.push({t:"m",p:c.applyToPointArray(u.v[0][0],u.v[0][1],0)}),r.push({t:"c",pts:c.applyToTriplePoints(u.o[a-1],u.i[a],u.v[a])});o===1&&r.push({t:"m",p:c.applyToPointArray(u.v[0][0],u.v[0][1],0)}),u.c&&o&&(r.push({t:"c",pts:c.applyToTriplePoints(u.o[a-1],u.i[0],u.v[0])}),r.push({t:"z"}))}}e.trNodes=r}},CVShapeElement.prototype.renderPath=function(e,n){if(e.hd!==!0&&e._shouldRender){var r,i=n.styledShapes.length;for(r=0;r<i;r+=1)this.renderStyledShape(n.styledShapes[r],n.sh)}},CVShapeElement.prototype.renderFill=function(e,n,r){var i=n.style;(n.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(n.c.v[0])+","+bmFloor(n.c.v[1])+","+bmFloor(n.c.v[2])+")"),(n.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=n.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,n,r){var i=n.style,a;if(!i.grd||n.g._mdf||n.s._mdf||n.e._mdf||e.t!==1&&(n.h._mdf||n.a._mdf)){var o=this.globalData.canvasContext,s=n.s.v,l=n.e.v;if(e.t===1)a=o.createLinearGradient(s[0],s[1],l[0],l[1]);else{var c=Math.sqrt(Math.pow(s[0]-l[0],2)+Math.pow(s[1]-l[1],2)),u=Math.atan2(l[1]-s[1],l[0]-s[0]),f=n.h.v;f>=1?f=.99:f<=-1&&(f=-.99);var x=c*f,h=Math.cos(u+n.a.v)*x+s[0],g=Math.sin(u+n.a.v)*x+s[1];a=o.createRadialGradient(h,g,0,s[0],s[1],c)}var v,p=e.g.p,C=n.g.c,b=1;for(v=0;v<p;v+=1)n.g._hasOpacity&&n.g._collapsable&&(b=n.g.o[v*2+1]),a.addColorStop(C[v*4]/100,"rgba("+C[v*4+1]+","+C[v*4+2]+","+C[v*4+3]+","+b+")");i.grd=a}i.coOp=n.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(e,n,r){var i=n.style,a=n.d;a&&(a._mdf||this._isFirstFrame)&&(i.da=a.dashArray,i.do=a.dashoffset[0]),(n.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(n.c.v[0])+","+bmFloor(n.c.v[1])+","+bmFloor(n.c.v[2])+")"),(n.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=n.o.v*r.opacity),(n.w._mdf||this._isFirstFrame)&&(i.wi=n.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(e,n,r){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(e,n,r)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var n=!1;e.fc?(n=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=n;var r=!1;e.sc&&(r=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var i=this.globalData.fontManager.getFontByName(e.f),a,o,s=e.l,l=this.mHelper;this.stroke=r,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,o=e.finalText.length;var c,u,f,x,h,g,v,p,C,b,d=this.data.singleShape,m=e.tr*.001*e.finalSize,y=0,A=0,_=!0,k=0;for(a=0;a<o;a+=1){c=this.globalData.fontManager.getCharData(e.finalText[a],i.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),u=c&&c.data||{},l.reset(),d&&s[a].n&&(y=-m,A+=e.yOffset,A+=_?1:0,_=!1),h=u.shapes?u.shapes[0].it:[],v=h.length,l.scale(e.finalSize/100,e.finalSize/100),d&&this.applyTextPropertiesToMatrix(e,l,s[a].line,y,A),C=createSizedArray(v-1);var T=0;for(g=0;g<v;g+=1)if(h[g].ty==="sh"){for(x=h[g].ks.k.i.length,p=h[g].ks.k,b=[],f=1;f<x;f+=1)f===1&&b.push(l.applyToX(p.v[0][0],p.v[0][1],0),l.applyToY(p.v[0][0],p.v[0][1],0)),b.push(l.applyToX(p.o[f-1][0],p.o[f-1][1],0),l.applyToY(p.o[f-1][0],p.o[f-1][1],0),l.applyToX(p.i[f][0],p.i[f][1],0),l.applyToY(p.i[f][0],p.i[f][1],0),l.applyToX(p.v[f][0],p.v[f][1],0),l.applyToY(p.v[f][0],p.v[f][1],0));b.push(l.applyToX(p.o[f-1][0],p.o[f-1][1],0),l.applyToY(p.o[f-1][0],p.o[f-1][1],0),l.applyToX(p.i[0][0],p.i[0][1],0),l.applyToY(p.i[0][0],p.i[0][1],0),l.applyToX(p.v[0][0],p.v[0][1],0),l.applyToY(p.v[0][0],p.v[0][1],0)),C[T]=b,T+=1}d&&(y+=s[a].l,y+=m),this.textSpans[k]?this.textSpans[k].elem=C:this.textSpans[k]={elem:C},k+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var e=this.canvasContext;e.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 n,r,i,a,o,s,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;r=c.length;var u,f=null,x=null,h=null,g,v,p=this.globalData.renderer;for(n=0;n<r;n+=1)if(!c[n].n){if(u=l[n],u&&(p.save(),p.ctxTransform(u.p),p.ctxOpacity(u.o)),this.fill){for(u&&u.fc?f!==u.fc&&(p.ctxFillStyle(u.fc),f=u.fc):f!==this.values.fill&&(f=this.values.fill,p.ctxFillStyle(this.values.fill)),g=this.textSpans[n].elem,a=g.length,this.globalData.canvasContext.beginPath(),i=0;i<a;i+=1)for(v=g[i],s=v.length,this.globalData.canvasContext.moveTo(v[0],v[1]),o=2;o<s;o+=6)this.globalData.canvasContext.bezierCurveTo(v[o],v[o+1],v[o+2],v[o+3],v[o+4],v[o+5]);this.globalData.canvasContext.closePath(),p.ctxFill()}if(this.stroke){for(u&&u.sw?h!==u.sw&&(h=u.sw,p.ctxLineWidth(u.sw)):h!==this.values.sWidth&&(h=this.values.sWidth,p.ctxLineWidth(this.values.sWidth)),u&&u.sc?x!==u.sc&&(x=u.sc,p.ctxStrokeStyle(u.sc)):x!==this.values.stroke&&(x=this.values.stroke,p.ctxStrokeStyle(this.values.stroke)),g=this.textSpans[n].elem,a=g.length,this.globalData.canvasContext.beginPath(),i=0;i<a;i+=1)for(v=g[i],s=v.length,this.globalData.canvasContext.moveTo(v[0],v[1]),o=2;o<s;o+=6)this.globalData.canvasContext.bezierCurveTo(v[o],v[o+1],v[o+2],v[o+3],v[o+4],v[o+5]);this.globalData.canvasContext.closePath(),p.ctxStroke()}u&&this.globalData.renderer.restore()}};function CVImageElement(e,n,r){this.assetData=n.getAssetData(e.refId),this.img=n.imageLoader.getAsset(this.assetData),this.initElement(e,n,r)}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 e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var n=e.getContext("2d"),r=this.img.width,i=this.img.height,a=r/i,o=this.assetData.w/this.assetData.h,s,l,c=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;a>o&&c==="xMidYMid slice"||a<o&&c!=="xMidYMid slice"?(l=i,s=l*o):(s=r,l=s/o),n.drawImage(this.img,(r-s)/2,(i-l)/2,s,l,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(e,n,r){this.initElement(e,n,r)}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(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){e[0]===1&&e[1]===0&&e[4]===0&&e[5]===1&&e[12]===0&&e[13]===0||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,n,r,i){this.canvasContext.fillRect(e,n,r,i)},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(e){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var n=this.animationItem.container.style;n.width="100%",n.height="100%";var r="0px 0px 0px";n.transformOrigin=r,n.mozTransformOrigin=r,n.webkitTransformOrigin=r,n["-webkit-transform"]=r,n.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=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,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(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,n){this.reset();var r,i;e?(r=e,i=n,this.canvasContext.canvas.width=r,this.canvasContext.canvas.height=i):(this.animationItem.wrapper&&this.animationItem.container?(r=this.animationItem.wrapper.offsetWidth,i=this.animationItem.wrapper.offsetHeight):(r=this.canvasContext.canvas.width,i=this.canvasContext.canvas.height),this.canvasContext.canvas.width=r*this.renderConfig.dpr,this.canvasContext.canvas.height=i*this.renderConfig.dpr);var a,o;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var s=this.renderConfig.preserveAspectRatio.split(" "),l=s[1]||"meet",c=s[0]||"xMidYMid",u=c.substr(0,4),f=c.substr(4);a=r/i,o=this.transformCanvas.w/this.transformCanvas.h,o>a&&l==="meet"||o<a&&l==="slice"?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=i/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.h/this.renderConfig.dpr)),u==="xMid"&&(o<a&&l==="meet"||o>a&&l==="slice")?this.transformCanvas.tx=(r-this.transformCanvas.w*(i/this.transformCanvas.h))/2*this.renderConfig.dpr:u==="xMax"&&(o<a&&l==="meet"||o>a&&l==="slice")?this.transformCanvas.tx=(r-this.transformCanvas.w*(i/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,f==="YMid"&&(o>a&&l==="meet"||o<a&&l==="slice")?this.transformCanvas.ty=(i-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:f==="YMax"&&(o>a&&l==="meet"||o<a&&l==="slice")?this.transformCanvas.ty=(i-this.transformCanvas.h*(r/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(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 e,n=this.layers?this.layers.length:0;for(e=n-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,n){if(!(this.renderedFrame===e&&this.renderConfig.clearCanvas===!0&&!n||this.destroyed||e===-1)){this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||n,this.globalData.projectInterface.currentFrame=e;var r,i=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(e-this.layers[r].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var n=this.elements;if(!(n[e]||this.layers[e].ty===99)){var r=this.createItem(this.layers[e],this,this.globalData);n[e]=r,r.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.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 e,n=15;for(e=0;e<n;e+=1){var r=new CanvasContext;this.stack[e]=r}this._length=n,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 e=this._length*2,n=0;for(n=this._length;n<e;n+=1)this.stack[n]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var n=this.stack[this.cArrPos],r=n.transform,i,a=this.cTr.props;for(i=0;i<16;i+=1)a[i]=r[i];if(e){this.nativeContext.restore();var o=this.stack[this.cArrPos+1];this.appliedFillStyle=o.fillStyle,this.appliedStrokeStyle=o.strokeStyle,this.appliedLineWidth=o.lineWidth,this.appliedLineCap=o.lineCap,this.appliedLineJoin=o.lineJoin,this.appliedMiterLimit=o.miterLimit}this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),(e||n.opacity!==-1&&this.currentOpacity!==n.opacity)&&(this.nativeContext.globalAlpha=n.opacity,this.currentOpacity=n.opacity),this.currentFillStyle=n.fillStyle,this.currentStrokeStyle=n.strokeStyle,this.currentLineWidth=n.lineWidth,this.currentLineCap=n.lineCap,this.currentLineJoin=n.lineJoin,this.currentMiterLimit=n.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var n=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var r=this.stack[this.cArrPos],i;for(i=0;i<16;i+=1)r.transform[i]=n[i];this.cArrPos+=1;var a=this.stack[this.cArrPos];a.opacity=r.opacity,a.fillStyle=r.fillStyle,a.strokeStyle=r.strokeStyle,a.lineWidth=r.lineWidth,a.lineCap=r.lineCap,a.lineJoin=r.lineJoin,a.miterLimit=r.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var n=this.cTr;this.transformMat.multiply(n),n.cloneFromProps(this.transformMat.props);var r=n.props;this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])},CVContextData.prototype.opacity=function(e){var n=this.stack[this.cArrPos].opacity;n*=e<0?0:e,this.stack[this.cArrPos].opacity!==n&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=n)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,n,r,i){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,n,r,i)},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(e,n,r){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,n,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,n.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e=this.canvasContext;e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip();var n,r=this.layers.length;for(n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].renderFrame()},CVCompElement.prototype.destroy=function(){var e,n=this.layers.length;for(e=n-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)};function CanvasRenderer(e,n){this.animationItem=e,this.renderConfig={clearCanvas:n&&n.clearCanvas!==void 0?n.clearCanvas:!0,context:n&&n.context||null,progressiveLoad:n&&n.progressiveLoad||!1,preserveAspectRatio:n&&n.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:n&&n.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:n&&n.contentVisibility||"visible",className:n&&n.className||"",id:n&&n.id||"",runExpressions:!n||n.runExpressions===void 0||n.runExpressions},this.renderConfig.dpr=n&&n.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=n&&n.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(e){return new CVCompElement(e,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 n=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var r=this.finalTransform.mat.toCSS();n.transform=r,n.webkitTransform=r}this.finalTransform._opMdf&&(n.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(e,n,r){this.initElement(e,n,r)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?(e=createNS("rect"),e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(e=createTag("div"),e.style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)};function HShapeElement(e,n,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,n,r),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 e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var n=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",n.w),e.setAttribute("height",n.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,n){var r,i=e.length;for(r=0;r<i;r+=1)n=e[r].mProps.v.applyToPointArray(n[0],n[1],0);return n},HShapeElement.prototype.calculateShapeBoundingBox=function(e,n){var r=e.sh.v,i=e.transformers,a,o=r._length,s,l,c,u;if(!(o<=1)){for(a=0;a<o-1;a+=1)s=this.getTransformedPoint(i,r.v[a]),l=this.getTransformedPoint(i,r.o[a]),c=this.getTransformedPoint(i,r.i[a+1]),u=this.getTransformedPoint(i,r.v[a+1]),this.checkBounds(s,l,c,u,n);r.c&&(s=this.getTransformedPoint(i,r.v[a]),l=this.getTransformedPoint(i,r.o[a]),c=this.getTransformedPoint(i,r.i[0]),u=this.getTransformedPoint(i,r.v[0]),this.checkBounds(s,l,c,u,n))}},HShapeElement.prototype.checkBounds=function(e,n,r,i,a){this.getBoundsOfCurve(e,n,r,i);var o=this.shapeBoundingBox;a.x=bmMin(o.left,a.x),a.xMax=bmMax(o.right,a.xMax),a.y=bmMin(o.top,a.y),a.yMax=bmMax(o.bottom,a.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(e,n,r,i){for(var a=[[e[0],i[0]],[e[1],i[1]]],o,s,l,c,u,f,x,h=0;h<2;++h)s=6*e[h]-12*n[h]+6*r[h],o=-3*e[h]+9*n[h]-9*r[h]+3*i[h],l=3*n[h]-3*e[h],s|=0,o|=0,l|=0,o===0&&s===0||(o===0?(c=-l/s,c>0&&c<1&&a[h].push(this.calculateF(c,e,n,r,i,h))):(u=s*s-4*l*o,u>=0&&(f=(-s+bmSqrt(u))/(2*o),f>0&&f<1&&a[h].push(this.calculateF(f,e,n,r,i,h)),x=(-s-bmSqrt(u))/(2*o),x>0&&x<1&&a[h].push(this.calculateF(x,e,n,r,i,h)))));this.shapeBoundingBox.left=bmMin.apply(null,a[0]),this.shapeBoundingBox.top=bmMin.apply(null,a[1]),this.shapeBoundingBox.right=bmMax.apply(null,a[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,a[1])},HShapeElement.prototype.calculateF=function(e,n,r,i,a,o){return bmPow(1-e,3)*n[o]+3*bmPow(1-e,2)*e*r[o]+3*(1-e)*bmPow(e,2)*i[o]+bmPow(e,3)*a[o]},HShapeElement.prototype.calculateBoundingBox=function(e,n){var r,i=e.length;for(r=0;r<i;r+=1)e[r]&&e[r].sh?this.calculateShapeBoundingBox(e[r],n):e[r]&&e[r].it?this.calculateBoundingBox(e[r].it,n):e[r]&&e[r].style&&e[r].w&&this.expandStrokeBoundingBox(e[r].w,n)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,n){var r=0;if(e.keyframes){for(var i=0;i<e.keyframes.length;i+=1){var a=e.keyframes[i].s;a>r&&(r=a)}r*=e.mult}else r=e.v*e.mult;n.x-=r,n.xMax+=r,n.y-=r,n.yMax+=r},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,n=999999;if(e.x=n,e.xMax=-n,e.y=n,e.yMax=-n,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var r=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),r=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),r=!0),r||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var i=this.shapeCont.style,a="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";i.transform=a,i.webkitTransform=a}}};function HTextElement(e,n,r){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,n,r)}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 e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var n=this.innerElem.style,r=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";n.fill=r,n.color=r,e.sc&&(n.stroke=this.buildColor(e.sc),n.strokeWidth=e.sw+"px");var i=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(n.fontSize=e.finalSize+"px",n.lineHeight=e.finalSize+"px",i.fClass)this.innerElem.className=i.fClass;else{n.fontFamily=i.fFamily;var a=e.fWeight,o=e.fStyle;n.fontStyle=o,n.fontWeight=a}var s,l,c=e.l;l=c.length;var u,f,x,h=this.mHelper,g,v="",p=0;for(s=0;s<l;s+=1){if(this.globalData.fontManager.chars?(this.textPaths[p]?u=this.textPaths[p]:(u=createNS("path"),u.setAttribute("stroke-linecap",lineCapEnum[1]),u.setAttribute("stroke-linejoin",lineJoinEnum[2]),u.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[p]?(f=this.textSpans[p],x=f.children[0]):(f=createTag("div"),f.style.lineHeight=0,x=createNS("svg"),x.appendChild(u),styleDiv(f)))):this.isMasked?u=this.textPaths[p]?this.textPaths[p]:createNS("text"):this.textSpans[p]?(f=this.textSpans[p],u=this.textPaths[p]):(f=createTag("span"),styleDiv(f),u=createTag("span"),styleDiv(u),f.appendChild(u)),this.globalData.fontManager.chars){var C=this.globalData.fontManager.getCharData(e.finalText[s],i.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),b;if(C?b=C.data:b=null,h.reset(),b&&b.shapes&&b.shapes.length&&(g=b.shapes[0].it,h.scale(e.finalSize/100,e.finalSize/100),v=this.createPathShape(h,g),u.setAttribute("d",v)),this.isMasked)this.innerElem.appendChild(u);else{if(this.innerElem.appendChild(f),b&&b.shapes){document.body.appendChild(x);var d=x.getBBox();x.setAttribute("width",d.width+2),x.setAttribute("height",d.height+2),x.setAttribute("viewBox",d.x-1+" "+(d.y-1)+" "+(d.width+2)+" "+(d.height+2));var m=x.style,y="translate("+(d.x-1)+"px,"+(d.y-1)+"px)";m.transform=y,m.webkitTransform=y,c[s].yOffset=d.y-1}else x.setAttribute("width",1),x.setAttribute("height",1);f.appendChild(x)}}else if(u.textContent=c[s].val,u.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(u);else{this.innerElem.appendChild(f);var A=u.style,_="translate3d(0,"+-e.finalSize/1.2+"px,0)";A.transform=_,A.webkitTransform=_}this.isMasked?this.textSpans[p]=u:this.textSpans[p]=f,this.textSpans[p].style.display="block",this.textPaths[p]=u,p+=1}for(;p<this.textSpans.length;)this.textSpans[p].style.display="none",p+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var e;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),e=this.svgElement.style;var n="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=n,e.webkitTransform=n}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var r,i,a=0,o=this.textAnimator.renderedLetters,s=this.textProperty.currentData.l;i=s.length;var l,c,u;for(r=0;r<i;r+=1)s[r].n?a+=1:(c=this.textSpans[r],u=this.textPaths[r],l=o[a],a+=1,l._mdf.m&&(this.isMasked?c.setAttribute("transform",l.m):(c.style.webkitTransform=l.m,c.style.transform=l.m)),c.style.opacity=l.o,l.sw&&l._mdf.sw&&u.setAttribute("stroke-width",l.sw),l.sc&&l._mdf.sc&&u.setAttribute("stroke",l.sc),l.fc&&l._mdf.fc&&(u.setAttribute("fill",l.fc),u.style.color=l.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var f=this.innerElem.getBBox();this.currentBBox.w!==f.width&&(this.currentBBox.w=f.width,this.svgElement.setAttribute("width",f.width)),this.currentBBox.h!==f.height&&(this.currentBBox.h=f.height,this.svgElement.setAttribute("height",f.height));var x=1;if(this.currentBBox.w!==f.width+x*2||this.currentBBox.h!==f.height+x*2||this.currentBBox.x!==f.x-x||this.currentBBox.y!==f.y-x){this.currentBBox.w=f.width+x*2,this.currentBBox.h=f.height+x*2,this.currentBBox.x=f.x-x,this.currentBBox.y=f.y-x,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var h="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=h,e.webkitTransform=h}}}};function HCameraElement(e,n,r){this.initFrame(),this.initBaseData(e,n,r),this.initHierarchy();var i=PropertyFactory.getProp;if(this.pe=i(this,e.pe,0,0,this),e.ks.p.s?(this.px=i(this,e.ks.p.x,1,0,this),this.py=i(this,e.ks.p.y,1,0,this),this.pz=i(this,e.ks.p.z,1,0,this)):this.p=i(this,e.ks.p,1,0,this),e.ks.a&&(this.a=i(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var a,o=e.ks.or.k.length;for(a=0;a<o;a+=1)e.ks.or.k[a].to=null,e.ks.or.k[a].ti=null}this.or=i(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=i(this,e.ks.rx,0,degToRads,this),this.ry=i(this,e.ks.ry,0,degToRads,this),this.rz=i(this,e.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 e,n=this.comp.threeDElements.length,r,i,a;for(e=0;e<n;e+=1)if(r=this.comp.threeDElements[e],r.type==="3d"){i=r.perspectiveElem.style,a=r.container.style;var o=this.pe.v+"px",s="0px 0px 0px",l="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";i.perspective=o,i.webkitPerspective=o,a.transformOrigin=s,a.mozTransformOrigin=s,a.webkitTransformOrigin=s,i.transform=l,i.webkitTransform=l}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e=this._isFirstFrame,n,r;if(this.hierarchy)for(r=this.hierarchy.length,n=0;n<r;n+=1)e=this.hierarchy[n].finalTransform.mProp._mdf||e;if(e||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(r=this.hierarchy.length-1,n=r;n>=0;n-=1){var i=this.hierarchy[n].finalTransform.mProp;this.mat.translate(-i.p.v[0],-i.p.v[1],i.p.v[2]),this.mat.rotateX(-i.or.v[0]).rotateY(-i.or.v[1]).rotateZ(i.or.v[2]),this.mat.rotateX(-i.rx.v).rotateY(-i.ry.v).rotateZ(i.rz.v),this.mat.scale(1/i.s.v[0],1/i.s.v[1],1/i.s.v[2]),this.mat.translate(i.a.v[0],i.a.v[1],i.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 a;this.p?a=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:a=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var o=Math.sqrt(Math.pow(a[0],2)+Math.pow(a[1],2)+Math.pow(a[2],2)),s=[a[0]/o,a[1]/o,a[2]/o],l=Math.sqrt(s[2]*s[2]+s[0]*s[0]),c=Math.atan2(s[1],l),u=Math.atan2(s[0],-s[2]);this.mat.rotateY(u).rotateX(-c)}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 f=!this._prevMat.equals(this.mat);if((f||this.pe._mdf)&&this.comp.threeDElements){r=this.comp.threeDElements.length;var x,h,g;for(n=0;n<r;n+=1)if(x=this.comp.threeDElements[n],x.type==="3d"){if(f){var v=this.mat.toCSS();g=x.container.style,g.transform=v,g.webkitTransform=v}this.pe._mdf&&(h=x.perspectiveElem.style,h.perspective=this.pe.v+"px",h.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(e,n,r){this.assetData=n.getAssetData(e.refId),this.initElement(e,n,r)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),n=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",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(n),n.crossOrigin="anonymous",n.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(e,n){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:n&&n.className||"",imagePreserveAspectRatio:n&&n.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(n&&n.hideOnTransparent===!1),filterSize:{width:n&&n.filterSize&&n.filterSize.width||"400%",height:n&&n.filterSize&&n.filterSize.height||"400%",x:n&&n.filterSize&&n.filterSize.x||"-100%",y:n&&n.filterSize&&n.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 e=this.pendingElements.pop();e.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(e,n){var r=e.getBaseElement();if(r){var i=this.layers[n];if(!i.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(r,n);else{for(var a=0,o,s,l;a<n;)this.elements[a]&&this.elements[a]!==!0&&this.elements[a].getBaseElement&&(s=this.elements[a],l=this.layers[a].ddd?this.getThreeDContainerByPos(a):s.getBaseElement(),o=l||o),a+=1;o?(!i.ddd||!this.supports3d)&&this.layerElement.insertBefore(r,o):(!i.ddd||!this.supports3d)&&this.layerElement.appendChild(r)}else this.addTo3dContainer(r,n)}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var n=0,r=this.threeDElements.length;n<r;){if(this.threeDElements[n].startPos<=e&&this.threeDElements[n].endPos>=e)return this.threeDElements[n].perspectiveElem;n+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,n){var r=createTag("div"),i,a;styleDiv(r);var o=createTag("div");if(styleDiv(o),n==="3d"){i=r.style,i.width=this.globalData.compSize.w+"px",i.height=this.globalData.compSize.h+"px";var s="50% 50%";i.webkitTransformOrigin=s,i.mozTransformOrigin=s,i.transformOrigin=s,a=o.style;var l="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";a.transform=l,a.webkitTransform=l}r.appendChild(o);var c={container:o,perspectiveElem:r,startPos:e,endPos:e,type:n};return this.threeDElements.push(c),c},HybridRendererBase.prototype.build3dContainers=function(){var e,n=this.layers.length,r,i="";for(e=0;e<n;e+=1)this.layers[e].ddd&&this.layers[e].ty!==3?(i!=="3d"&&(i="3d",r=this.createThreeDContainer(e,"3d")),r.endPos=Math.max(r.endPos,e)):(i!=="2d"&&(i="2d",r=this.createThreeDContainer(e,"2d")),r.endPos=Math.max(r.endPos,e));for(n=this.threeDElements.length,e=n-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,n){for(var r=0,i=this.threeDElements.length;r<i;){if(n<=this.threeDElements[r].endPos){for(var a=this.threeDElements[r].startPos,o;a<n;)this.elements[a]&&this.elements[a].getBaseElement&&(o=this.elements[a].getBaseElement()),a+=1;o?this.threeDElements[r].container.insertBefore(e,o):this.threeDElements[r].container.appendChild(e);break}r+=1}},HybridRendererBase.prototype.configAnimation=function(e){var n=createTag("div"),r=this.animationItem.wrapper,i=n.style;i.width=e.w+"px",i.height=e.h+"px",this.resizerElem=n,styleDiv(n),i.transformStyle="flat",i.mozTransformStyle="flat",i.webkitTransformStyle="flat",this.renderConfig.className&&n.setAttribute("class",this.renderConfig.className),r.appendChild(n),i.overflow="hidden";var a=createNS("svg");a.setAttribute("width","1"),a.setAttribute("height","1"),styleDiv(a),this.resizerElem.appendChild(a);var o=createNS("defs");a.appendChild(o),this.data=e,this.setupGlobalData(e,a),this.globalData.defs=o,this.layers=e.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 e,n=this.layers?this.layers.length:0;for(e=0;e<n;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e=this.animationItem.wrapper.offsetWidth,n=this.animationItem.wrapper.offsetHeight,r=e/n,i=this.globalData.compSize.w/this.globalData.compSize.h,a,o,s,l;i>r?(a=e/this.globalData.compSize.w,o=e/this.globalData.compSize.w,s=0,l=(n-this.globalData.compSize.h*(e/this.globalData.compSize.w))/2):(a=n/this.globalData.compSize.h,o=n/this.globalData.compSize.h,s=(e-this.globalData.compSize.w*(n/this.globalData.compSize.h))/2,l=0);var c=this.resizerElem.style;c.webkitTransform="matrix3d("+a+",0,0,0,0,"+o+",0,0,0,0,1,0,"+s+","+l+",0,1)",c.transform=c.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 e=this.globalData.compSize.w,n=this.globalData.compSize.h,r,i=this.threeDElements.length;for(r=0;r<i;r+=1){var a=this.threeDElements[r].perspectiveElem.style;a.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(n,2))+"px",a.perspective=a.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var n,r=e.length,i=createTag("div");for(n=0;n<r;n+=1)if(e[n].xt){var a=this.createComp(e[n],i,this.globalData.comp,null);a.initExpressions(),this.globalData.projectInterface.registerComposition(a)}};function HCompElement(e,n,r){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,n,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,n.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(e,n){for(var r=0,i;r<n;)this.elements[r]&&this.elements[r].getBaseElement&&(i=this.elements[r].getBaseElement()),r+=1;i?this.layerElement.insertBefore(e,i):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};function HybridRenderer(e,n){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:n&&n.className||"",imagePreserveAspectRatio:n&&n.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(n&&n.hideOnTransparent===!1),filterSize:{width:n&&n.filterSize&&n.filterSize.width||"400%",height:n&&n.filterSize&&n.filterSize.height||"400%",x:n&&n.filterSize&&n.filterSize.x||"-100%",y:n&&n.filterSize&&n.filterSize.y||"-100%"},runExpressions:!n||n.runExpressions===void 0||n.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(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=function(){return function(e){function n(r){for(var i=0,a=e.layers.length;i<a;){if(e.layers[i].nm===r||e.layers[i].ind===r)return e.elements[i].layerInterface;i+=1}return null}return Object.defineProperty(n,"_name",{value:e.data.nm}),n.layer=n,n.pixelAspect=1,n.height=e.data.h||e.globalData.compSize.h,n.width=e.data.w||e.globalData.compSize.w,n.pixelAspect=1,n.frameDuration=1/e.globalData.frameRate,n.displayStartTime=0,n.numLayers=e.layers.length,n}}();function _typeof$2(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function(r){return typeof r}:_typeof$2=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$2(e)}function seedRandom(e,n){var r=this,i=256,a=6,o=52,s="random",l=n.pow(i,a),c=n.pow(2,o),u=c*2,f=i-1,x;function h(m,y,A){var _=[];y=y===!0?{entropy:!0}:y||{};var k=C(p(y.entropy?[m,d(e)]:m===null?b():m,3),_),T=new g(_),F=function(){for(var B=T.g(a),L=l,V=0;B<c;)B=(B+V)*i,L*=i,V=T.g(1);for(;B>=u;)B/=2,L/=2,V>>>=1;return(B+V)/L};return F.int32=function(){return T.g(4)|0},F.quick=function(){return T.g(4)/4294967296},F.double=F,C(d(T.S),e),(y.pass||A||function(M,B,L,V){return V&&(V.S&&v(V,T),M.state=function(){return v(T,{})}),L?(n[s]=M,B):M})(F,k,"global"in y?y.global:this==n,y.state)}n["seed"+s]=h;function g(m){var y,A=m.length,_=this,k=0,T=_.i=_.j=0,F=_.S=[];for(A||(m=[A++]);k<i;)F[k]=k++;for(k=0;k<i;k++)F[k]=F[T=f&T+m[k%A]+(y=F[k])],F[T]=y;_.g=function(M){for(var B,L=0,V=_.i,U=_.j,$=_.S;M--;)B=$[V=f&V+1],L=L*i+$[f&($[V]=$[U=f&U+B])+($[U]=B)];return _.i=V,_.j=U,L}}function v(m,y){return y.i=m.i,y.j=m.j,y.S=m.S.slice(),y}function p(m,y){var A=[],_=_typeof$2(m),k;if(y&&_=="object")for(k in m)try{A.push(p(m[k],y-1))}catch{}return A.length?A:_=="string"?m:m+"\0"}function C(m,y){for(var A=m+"",_,k=0;k<A.length;)y[f&k]=f&(_^=y[f&k]*19)+A.charCodeAt(k++);return d(y)}function b(){try{var m=new Uint8Array(i);return(r.crypto||r.msCrypto).getRandomValues(m),d(m)}catch{var y=r.navigator,A=y&&y.plugins;return[+new Date,r,A,r.screen,d(e)]}}function d(m){return String.fromCharCode.apply(0,m)}C(n.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(r){return typeof r}:_typeof$1=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$1(e)}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(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,n){return e==="number"||n instanceof Number||e==="boolean"||e==="string"}function $bm_neg(e){var n=_typeof$1(e);if(n==="number"||e instanceof Number||n==="boolean")return-e;if($bm_isInstanceOfArray(e)){var r,i=e.length,a=[];for(r=0;r<i;r+=1)a[r]=-e[r];return a}return e.propType?e.v:-e}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(e,n){var r=_typeof$1(e),i=_typeof$1(n);if(isNumerable(r,e)&&isNumerable(i,n)||r==="string"||i==="string")return e+n;if($bm_isInstanceOfArray(e)&&isNumerable(i,n))return e=e.slice(0),e[0]+=n,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(n))return n=n.slice(0),n[0]=e+n[0],n;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(n)){for(var a=0,o=e.length,s=n.length,l=[];a<o||a<s;)(typeof e[a]=="number"||e[a]instanceof Number)&&(typeof n[a]=="number"||n[a]instanceof Number)?l[a]=e[a]+n[a]:l[a]=n[a]===void 0?e[a]:e[a]||n[a],a+=1;return l}return 0}var add=sum;function sub(e,n){var r=_typeof$1(e),i=_typeof$1(n);if(isNumerable(r,e)&&isNumerable(i,n))return r==="string"&&(e=parseInt(e,10)),i==="string"&&(n=parseInt(n,10)),e-n;if($bm_isInstanceOfArray(e)&&isNumerable(i,n))return e=e.slice(0),e[0]-=n,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(n))return n=n.slice(0),n[0]=e-n[0],n;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(n)){for(var a=0,o=e.length,s=n.length,l=[];a<o||a<s;)(typeof e[a]=="number"||e[a]instanceof Number)&&(typeof n[a]=="number"||n[a]instanceof Number)?l[a]=e[a]-n[a]:l[a]=n[a]===void 0?e[a]:e[a]||n[a],a+=1;return l}return 0}function mul(e,n){var r=_typeof$1(e),i=_typeof$1(n),a;if(isNumerable(r,e)&&isNumerable(i,n))return e*n;var o,s;if($bm_isInstanceOfArray(e)&&isNumerable(i,n)){for(s=e.length,a=createTypedArray("float32",s),o=0;o<s;o+=1)a[o]=e[o]*n;return a}if(isNumerable(r,e)&&$bm_isInstanceOfArray(n)){for(s=n.length,a=createTypedArray("float32",s),o=0;o<s;o+=1)a[o]=e*n[o];return a}return 0}function div(e,n){var r=_typeof$1(e),i=_typeof$1(n),a;if(isNumerable(r,e)&&isNumerable(i,n))return e/n;var o,s;if($bm_isInstanceOfArray(e)&&isNumerable(i,n)){for(s=e.length,a=createTypedArray("float32",s),o=0;o<s;o+=1)a[o]=e[o]/n;return a}if(isNumerable(r,e)&&$bm_isInstanceOfArray(n)){for(s=n.length,a=createTypedArray("float32",s),o=0;o<s;o+=1)a[o]=e/n[o];return a}return 0}function mod(e,n){return typeof e=="string"&&(e=parseInt(e,10)),typeof n=="string"&&(n=parseInt(n,10)),e%n}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,n,r){if(n>r){var i=r;r=n,n=i}return Math.min(Math.max(e,n),r)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,n){if(typeof e=="number"||e instanceof Number)return n=n||0,Math.abs(e-n);n||(n=helperLengthArray);var r,i=Math.min(e.length,n.length),a=0;for(r=0;r<i;r+=1)a+=Math.pow(n[r]-e[r],2);return Math.sqrt(a)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var n=e[0],r=e[1],i=e[2],a=Math.max(n,r,i),o=Math.min(n,r,i),s,l,c=(a+o)/2;if(a===o)s=0,l=0;else{var u=a-o;switch(l=c>.5?u/(2-a-o):u/(a+o),a){case n:s=(r-i)/u+(r<i?6:0);break;case r:s=(i-n)/u+2;break;case i:s=(n-r)/u+4;break}s/=6}return[s,l,c,e[3]]}function hue2rgb(e,n,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(n-e)*6*r:r<1/2?n:r<2/3?e+(n-e)*(2/3-r)*6:e}function hslToRgb(e){var n=e[0],r=e[1],i=e[2],a,o,s;if(r===0)a=i,s=i,o=i;else{var l=i<.5?i*(1+r):i+r-i*r,c=2*i-l;a=hue2rgb(c,l,n+1/3),o=hue2rgb(c,l,n),s=hue2rgb(c,l,n-1/3)}return[a,o,s,e[3]]}function linear(e,n,r,i,a){if((i===void 0||a===void 0)&&(i=n,a=r,n=0,r=1),r<n){var o=r;r=n,n=o}if(e<=n)return i;if(e>=r)return a;var s=r===n?0:(e-n)/(r-n);if(!i.length)return i+(a-i)*s;var l,c=i.length,u=createTypedArray("float32",c);for(l=0;l<c;l+=1)u[l]=i[l]+(a[l]-i[l])*s;return u}function random(e,n){if(n===void 0&&(e===void 0?(e=0,n=1):(n=e,e=void 0)),n.length){var r,i=n.length;e||(e=createTypedArray("float32",i));var a=createTypedArray("float32",i),o=BMMath.random();for(r=0;r<i;r+=1)a[r]=e[r]+o*(n[r]-e[r]);return a}e===void 0&&(e=0);var s=BMMath.random();return e+s*(n-e)}function createPath(e,n,r,i){var a,o=e.length,s=shapePool.newElement();s.setPathData(!!i,o);var l=[0,0],c,u;for(a=0;a<o;a+=1)c=n&&n[a]?n[a]:l,u=r&&r[a]?r[a]:l,s.setTripleAt(e[a][0],e[a][1],u[0]+e[a][0],u[1]+e[a][1],c[0]+e[a][0],c[1]+e[a][1],a,!0);return s}function initiateExpression(elem,data,property){function noOp(e){return e}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 e(n,r){var i,a,o=this.pv.length?this.pv.length:1,s=createTypedArray("float32",o);n=5;var l=Math.floor(time*n);for(i=0,a=0;i<l;){for(a=0;a<o;a+=1)s[a]+=-r+r*2*BMMath.random();i+=1}var c=time*n,u=c-Math.floor(c),f=createTypedArray("float32",o);if(o>1){for(a=0;a<o;a+=1)f[a]=this.pv[a]+s[a]+(-r+r*2*BMMath.random())*u;return f}return this.pv+s[0]+(-r+r*2*BMMath.random())*u}).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(e,n){return loopIn(e,n,!0)}function loopOutDuration(e,n){return loopOut(e,n,!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(e,n){var r=[n[0]-e[0],n[1]-e[1],n[2]-e[2]],i=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads,a=-Math.atan2(r[1],r[2])/degToRads;return[a,i,0]}function easeOut(e,n,r,i,a){return applyEase(easeOutBez,e,n,r,i,a)}function easeIn(e,n,r,i,a){return applyEase(easeInBez,e,n,r,i,a)}function ease(e,n,r,i,a){return applyEase(easeInOutBez,e,n,r,i,a)}function applyEase(e,n,r,i,a,o){a===void 0?(a=r,o=i):n=(n-r)/(i-r),n>1?n=1:n<0&&(n=0);var s=e(n);if($bm_isInstanceOfArray(a)){var l,c=a.length,u=createTypedArray("float32",c);for(l=0;l<c;l+=1)u[l]=(o[l]-a[l])*s+a[l];return u}return(o-a)*s+a}function nearestKey(e){var n,r=data.k.length,i,a;if(!data.k.length||typeof data.k[0]=="number")i=0,a=0;else if(i=-1,e*=elem.comp.globalData.frameRate,e<data.k[0].t)i=1,a=data.k[0].t;else{for(n=0;n<r-1;n+=1)if(e===data.k[n].t){i=n+1,a=data.k[n].t;break}else if(e>data.k[n].t&&e<data.k[n+1].t){e-data.k[n].t>data.k[n+1].t-e?(i=n+2,a=data.k[n+1].t):(i=n+1,a=data.k[n].t);break}i===-1&&(i=n+1,a=data.k[n].t)}var o={};return o.index=i,o.time=a/elem.comp.globalData.frameRate,o}function key(e){var n,r,i;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+e);e-=1,n={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var a=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(i=a.length,r=0;r<i;r+=1)n[r]=a[r],n.value[r]=a[r];return n}function framesToTime(e,n){return n||(n=elem.comp.globalData.frameRate),e/n}function timeToFrames(e,n){return!e&&e!==0&&(e=time),n||(n=elem.comp.globalData.frameRate),e*n}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,n){return typeof value=="string"?n===void 0?value.substring(e):value.substring(e,n):""}function substr(e,n){return typeof value=="string"?n===void 0?value.substr(e):value.substr(e,n):""}function posterizeTime(e){time=e===0?0:Math.floor(time*e)/e,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(e){return value=e,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 e={};e.initExpressions=n,e.resetFrame=ExpressionManager.resetFrame;function n(r){var i=0,a=[];function o(){i+=1}function s(){i-=1,i===0&&c()}function l(u){a.indexOf(u)===-1&&a.push(u)}function c(){var u,f=a.length;for(u=0;u<f;u+=1)a[u].release();a.length=0}r.renderer.compInterface=CompExpressionInterface(r.renderer),r.renderer.globalData.projectInterface.registerComposition(r.renderer),r.renderer.globalData.pushExpression=o,r.renderer.globalData.popExpression=s,r.renderer.globalData.registerExpressionProperty=l}return e}(),MaskManagerInterface=function(){function e(r,i){this._mask=r,this._data=i}Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var n=function(i){var a=createSizedArray(i.viewData.length),o,s=i.viewData.length;for(o=0;o<s;o+=1)a[o]=new e(i.viewData[o],i.masksProperties[o]);var l=function(u){for(o=0;o<s;){if(i.masksProperties[o].nm===u)return a[o];o+=1}return null};return l};return n}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},n={pv:[0,0,0],v:[0,0,0],mult:1};function r(s,l,c){Object.defineProperty(s,"velocity",{get:function(){return l.getVelocityAtTime(l.comp.currentFrame)}}),s.numKeys=l.keyframes?l.keyframes.length:0,s.key=function(u){if(!s.numKeys)return 0;var f="";"s"in l.keyframes[u-1]?f=l.keyframes[u-1].s:"e"in l.keyframes[u-2]?f=l.keyframes[u-2].e:f=l.keyframes[u-2].s;var x=c==="unidimensional"?new Number(f):Object.assign({},f);return x.time=l.keyframes[u-1].t/l.elem.comp.globalData.frameRate,x.value=c==="unidimensional"?f[0]:f,x},s.valueAtTime=l.getValueAtTime,s.speedAtTime=l.getSpeedAtTime,s.velocityAtTime=l.getVelocityAtTime,s.propertyGroup=l.propertyGroup}function i(s){(!s||!("pv"in s))&&(s=e);var l=1/s.mult,c=s.pv*l,u=new Number(c);return u.value=c,r(u,s,"unidimensional"),function(){return s.k&&s.getValue(),c=s.v*l,u.value!==c&&(u=new Number(c),u.value=c,r(u,s,"unidimensional")),u}}function a(s){(!s||!("pv"in s))&&(s=n);var l=1/s.mult,c=s.data&&s.data.l||s.pv.length,u=createTypedArray("float32",c),f=createTypedArray("float32",c);return u.value=f,r(u,s,"multidimensional"),function(){s.k&&s.getValue();for(var x=0;x<c;x+=1)f[x]=s.v[x]*l,u[x]=f[x];return u}}function o(){return e}return function(s){return s?s.propType==="unidimensional"?i(s):a(s):o}}(),TransformExpressionInterface=function(){return function(e){function n(s){switch(s){case"scale":case"Scale":case"ADBE Scale":case 6:return n.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return n.rotation;case"ADBE Rotate X":return n.xRotation;case"ADBE Rotate Y":return n.yRotation;case"position":case"Position":case"ADBE Position":case 2:return n.position;case"ADBE Position_0":return n.xPosition;case"ADBE Position_1":return n.yPosition;case"ADBE Position_2":return n.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return n.anchorPoint;case"opacity":case"Opacity":case 11:return n.opacity;default:return null}}Object.defineProperty(n,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(n,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(n,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(n,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(n,"scale",{get:ExpressionPropertyInterface(e.s)});var r,i,a,o;return e.p?o=ExpressionPropertyInterface(e.p):(r=ExpressionPropertyInterface(e.px),i=ExpressionPropertyInterface(e.py),e.pz&&(a=ExpressionPropertyInterface(e.pz))),Object.defineProperty(n,"position",{get:function(){return e.p?o():[r(),i(),a?a():0]}}),Object.defineProperty(n,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(n,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(n,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(n,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(n,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(n,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(n,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(n,"orientation",{get:ExpressionPropertyInterface(e.or)}),n}}(),LayerExpressionInterface=function(){function e(u){var f=new Matrix;if(u!==void 0){var x=this._elem.finalTransform.mProp.getValueAtTime(u);x.clone(f)}else{var h=this._elem.finalTransform.mProp;h.applyToMatrix(f)}return f}function n(u,f){var x=this.getMatrix(f);return x.props[12]=0,x.props[13]=0,x.props[14]=0,this.applyPoint(x,u)}function r(u,f){var x=this.getMatrix(f);return this.applyPoint(x,u)}function i(u,f){var x=this.getMatrix(f);return x.props[12]=0,x.props[13]=0,x.props[14]=0,this.invertPoint(x,u)}function a(u,f){var x=this.getMatrix(f);return this.invertPoint(x,u)}function o(u,f){if(this._elem.hierarchy&&this._elem.hierarchy.length){var x,h=this._elem.hierarchy.length;for(x=0;x<h;x+=1)this._elem.hierarchy[x].finalTransform.mProp.applyToMatrix(u)}return u.applyToPointArray(f[0],f[1],f[2]||0)}function s(u,f){if(this._elem.hierarchy&&this._elem.hierarchy.length){var x,h=this._elem.hierarchy.length;for(x=0;x<h;x+=1)this._elem.hierarchy[x].finalTransform.mProp.applyToMatrix(u)}return u.inversePoint(f)}function l(u){var f=new Matrix;if(f.reset(),this._elem.finalTransform.mProp.applyToMatrix(f),this._elem.hierarchy&&this._elem.hierarchy.length){var x,h=this._elem.hierarchy.length;for(x=0;x<h;x+=1)this._elem.hierarchy[x].finalTransform.mProp.applyToMatrix(f);return f.inversePoint(u)}return f.inversePoint(u)}function c(){return[1,1,1,1]}return function(u){var f;function x(p){g.mask=new MaskManagerInterface(p,u)}function h(p){g.effect=p}function g(p){switch(p){case"ADBE Root Vectors Group":case"Contents":case 2:return g.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return f;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return g.effect;case"ADBE Text Properties":return g.textInterface;default:return null}}g.getMatrix=e,g.invertPoint=s,g.applyPoint=o,g.toWorld=r,g.toWorldVec=n,g.fromWorld=a,g.fromWorldVec=i,g.toComp=r,g.fromComp=l,g.sampleImage=c,g.sourceRectAtTime=u.sourceRectAtTime.bind(u),g._elem=u,f=TransformExpressionInterface(u.finalTransform.mProp);var v=getDescriptor(f,"anchorPoint");return Object.defineProperties(g,{hasParent:{get:function(){return u.hierarchy.length}},parent:{get:function(){return u.hierarchy[0].layerInterface}},rotation:getDescriptor(f,"rotation"),scale:getDescriptor(f,"scale"),position:getDescriptor(f,"position"),opacity:getDescriptor(f,"opacity"),anchorPoint:v,anchor_point:v,transform:{get:function(){return f}},active:{get:function(){return u.isInRange}}}),g.startTime=u.data.st,g.index=u.data.ind,g.source=u.data.refId,g.height=u.data.ty===0?u.data.h:100,g.width=u.data.ty===0?u.data.w:100,g.inPoint=u.data.ip/u.comp.globalData.frameRate,g.outPoint=u.data.op/u.comp.globalData.frameRate,g._name=u.data.nm,g.registerMaskInterface=x,g.registerEffectsInterface=h,g}}(),propertyGroupFactory=function(){return function(e,n){return function(r){return r=r===void 0?1:r,r<=0?e:n(r-1)}}}(),PropertyInterface=function(){return function(e,n){var r={_name:e};function i(a){return a=a===void 0?1:a,a<=0?r:n(a-1)}return i}}(),EffectsExpressionInterface=function(){var e={createEffectsInterface:n};function n(a,o){if(a.effectsManager){var s=[],l=a.data.ef,c,u=a.effectsManager.effectElements.length;for(c=0;c<u;c+=1)s.push(r(l[c],a.effectsManager.effectElements[c],o,a));var f=a.data.ef||[],x=function(g){for(c=0,u=f.length;c<u;){if(g===f[c].nm||g===f[c].mn||g===f[c].ix)return s[c];c+=1}return null};return Object.defineProperty(x,"numProperties",{get:function(){return f.length}}),x}return null}function r(a,o,s,l){function c(g){for(var v=a.ef,p=0,C=v.length;p<C;){if(g===v[p].nm||g===v[p].mn||g===v[p].ix)return v[p].ty===5?f[p]:f[p]();p+=1}throw new Error}var u=propertyGroupFactory(c,s),f=[],x,h=a.ef.length;for(x=0;x<h;x+=1)a.ef[x].ty===5?f.push(r(a.ef[x],o.effectElements[x],o.effectElements[x].propertyGroup,l)):f.push(i(o.effectElements[x],a.ef[x].ty,l,u));return a.mn==="ADBE Color Control"&&Object.defineProperty(c,"color",{get:function(){return f[0]()}}),Object.defineProperties(c,{numProperties:{get:function(){return a.np}},_name:{value:a.nm},propertyGroup:{value:u}}),c.enabled=a.en!==0,c.active=c.enabled,c}function i(a,o,s,l){var c=ExpressionPropertyInterface(a.p);function u(){return o===10?s.comp.compInterface(a.p.v):c()}return a.p.setGroupProperty&&a.p.setGroupProperty(PropertyInterface("",l)),u}return e}(),ShapePathInterface=function(){return function(n,r,i){var a=r.sh;function o(l){return l==="Shape"||l==="shape"||l==="Path"||l==="path"||l==="ADBE Vector Shape"||l===2?o.path:null}var s=propertyGroupFactory(o,i);return a.setGroupProperty(PropertyInterface("Path",s)),Object.defineProperties(o,{path:{get:function(){return a.k&&a.getValue(),a}},shape:{get:function(){return a.k&&a.getValue(),a}},_name:{value:n.nm},ix:{value:n.ix},propertyIndex:{value:n.ix},mn:{value:n.mn},propertyGroup:{value:i}}),o}}(),ShapeExpressionInterface=function(){function e(v,p,C){var b=[],d,m=v?v.length:0;for(d=0;d<m;d+=1)v[d].ty==="gr"?b.push(r(v[d],p[d],C)):v[d].ty==="fl"?b.push(i(v[d],p[d],C)):v[d].ty==="st"?b.push(s(v[d],p[d],C)):v[d].ty==="tm"?b.push(l(v[d],p[d],C)):v[d].ty==="tr"||(v[d].ty==="el"?b.push(u(v[d],p[d],C)):v[d].ty==="sr"?b.push(f(v[d],p[d],C)):v[d].ty==="sh"?b.push(ShapePathInterface(v[d],p[d],C)):v[d].ty==="rc"?b.push(x(v[d],p[d],C)):v[d].ty==="rd"?b.push(h(v[d],p[d],C)):v[d].ty==="rp"?b.push(g(v[d],p[d],C)):v[d].ty==="gf"?b.push(a(v[d],p[d],C)):b.push(o(v[d],p[d])));return b}function n(v,p,C){var b,d=function(A){for(var _=0,k=b.length;_<k;){if(b[_]._name===A||b[_].mn===A||b[_].propertyIndex===A||b[_].ix===A||b[_].ind===A)return b[_];_+=1}return typeof A=="number"?b[A-1]:null};d.propertyGroup=propertyGroupFactory(d,C),b=e(v.it,p.it,d.propertyGroup),d.numProperties=b.length;var m=c(v.it[v.it.length-1],p.it[p.it.length-1],d.propertyGroup);return d.transform=m,d.propertyIndex=v.cix,d._name=v.nm,d}function r(v,p,C){var b=function(A){switch(A){case"ADBE Vectors Group":case"Contents":case 2:return b.content;default:return b.transform}};b.propertyGroup=propertyGroupFactory(b,C);var d=n(v,p,b.propertyGroup),m=c(v.it[v.it.length-1],p.it[p.it.length-1],b.propertyGroup);return b.content=d,b.transform=m,Object.defineProperty(b,"_name",{get:function(){return v.nm}}),b.numProperties=v.np,b.propertyIndex=v.ix,b.nm=v.nm,b.mn=v.mn,b}function i(v,p,C){function b(d){return d==="Color"||d==="color"?b.color:d==="Opacity"||d==="opacity"?b.opacity:null}return Object.defineProperties(b,{color:{get:ExpressionPropertyInterface(p.c)},opacity:{get:ExpressionPropertyInterface(p.o)},_name:{value:v.nm},mn:{value:v.mn}}),p.c.setGroupProperty(PropertyInterface("Color",C)),p.o.setGroupProperty(PropertyInterface("Opacity",C)),b}function a(v,p,C){function b(d){return d==="Start Point"||d==="start point"?b.startPoint:d==="End Point"||d==="end point"?b.endPoint:d==="Opacity"||d==="opacity"?b.opacity:null}return Object.defineProperties(b,{startPoint:{get:ExpressionPropertyInterface(p.s)},endPoint:{get:ExpressionPropertyInterface(p.e)},opacity:{get:ExpressionPropertyInterface(p.o)},type:{get:function(){return"a"}},_name:{value:v.nm},mn:{value:v.mn}}),p.s.setGroupProperty(PropertyInterface("Start Point",C)),p.e.setGroupProperty(PropertyInterface("End Point",C)),p.o.setGroupProperty(PropertyInterface("Opacity",C)),b}function o(){function v(){return null}return v}function s(v,p,C){var b=propertyGroupFactory(k,C),d=propertyGroupFactory(_,b);function m(T){Object.defineProperty(_,v.d[T].nm,{get:ExpressionPropertyInterface(p.d.dataProps[T].p)})}var y,A=v.d?v.d.length:0,_={};for(y=0;y<A;y+=1)m(y),p.d.dataProps[y].p.setGroupProperty(d);function k(T){return T==="Color"||T==="color"?k.color:T==="Opacity"||T==="opacity"?k.opacity:T==="Stroke Width"||T==="stroke width"?k.strokeWidth:null}return Object.defineProperties(k,{color:{get:ExpressionPropertyInterface(p.c)},opacity:{get:ExpressionPropertyInterface(p.o)},strokeWidth:{get:ExpressionPropertyInterface(p.w)},dash:{get:function(){return _}},_name:{value:v.nm},mn:{value:v.mn}}),p.c.setGroupProperty(PropertyInterface("Color",b)),p.o.setGroupProperty(PropertyInterface("Opacity",b)),p.w.setGroupProperty(PropertyInterface("Stroke Width",b)),k}function l(v,p,C){function b(m){return m===v.e.ix||m==="End"||m==="end"?b.end:m===v.s.ix?b.start:m===v.o.ix?b.offset:null}var d=propertyGroupFactory(b,C);return b.propertyIndex=v.ix,p.s.setGroupProperty(PropertyInterface("Start",d)),p.e.setGroupProperty(PropertyInterface("End",d)),p.o.setGroupProperty(PropertyInterface("Offset",d)),b.propertyIndex=v.ix,b.propertyGroup=C,Object.defineProperties(b,{start:{get:ExpressionPropertyInterface(p.s)},end:{get:ExpressionPropertyInterface(p.e)},offset:{get:ExpressionPropertyInterface(p.o)},_name:{value:v.nm}}),b.mn=v.mn,b}function c(v,p,C){function b(m){return v.a.ix===m||m==="Anchor Point"?b.anchorPoint:v.o.ix===m||m==="Opacity"?b.opacity:v.p.ix===m||m==="Position"?b.position:v.r.ix===m||m==="Rotation"||m==="ADBE Vector Rotation"?b.rotation:v.s.ix===m||m==="Scale"?b.scale:v.sk&&v.sk.ix===m||m==="Skew"?b.skew:v.sa&&v.sa.ix===m||m==="Skew Axis"?b.skewAxis:null}var d=propertyGroupFactory(b,C);return p.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",d)),p.transform.mProps.p.setGroupProperty(PropertyInterface("Position",d)),p.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",d)),p.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",d)),p.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",d)),p.transform.mProps.sk&&(p.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",d)),p.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",d))),p.transform.op.setGroupProperty(PropertyInterface("Opacity",d)),Object.defineProperties(b,{opacity:{get:ExpressionPropertyInterface(p.transform.mProps.o)},position:{get:ExpressionPropertyInterface(p.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(p.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(p.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(p.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(p.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(p.transform.mProps.sa)},_name:{value:v.nm}}),b.ty="tr",b.mn=v.mn,b.propertyGroup=C,b}function u(v,p,C){function b(y){return v.p.ix===y?b.position:v.s.ix===y?b.size:null}var d=propertyGroupFactory(b,C);b.propertyIndex=v.ix;var m=p.sh.ty==="tm"?p.sh.prop:p.sh;return m.s.setGroupProperty(PropertyInterface("Size",d)),m.p.setGroupProperty(PropertyInterface("Position",d)),Object.defineProperties(b,{size:{get:ExpressionPropertyInterface(m.s)},position:{get:ExpressionPropertyInterface(m.p)},_name:{value:v.nm}}),b.mn=v.mn,b}function f(v,p,C){function b(y){return v.p.ix===y?b.position:v.r.ix===y?b.rotation:v.pt.ix===y?b.points:v.or.ix===y||y==="ADBE Vector Star Outer Radius"?b.outerRadius:v.os.ix===y?b.outerRoundness:v.ir&&(v.ir.ix===y||y==="ADBE Vector Star Inner Radius")?b.innerRadius:v.is&&v.is.ix===y?b.innerRoundness:null}var d=propertyGroupFactory(b,C),m=p.sh.ty==="tm"?p.sh.prop:p.sh;return b.propertyIndex=v.ix,m.or.setGroupProperty(PropertyInterface("Outer Radius",d)),m.os.setGroupProperty(PropertyInterface("Outer Roundness",d)),m.pt.setGroupProperty(PropertyInterface("Points",d)),m.p.setGroupProperty(PropertyInterface("Position",d)),m.r.setGroupProperty(PropertyInterface("Rotation",d)),v.ir&&(m.ir.setGroupProperty(PropertyInterface("Inner Radius",d)),m.is.setGroupProperty(PropertyInterface("Inner Roundness",d))),Object.defineProperties(b,{position:{get:ExpressionPropertyInterface(m.p)},rotation:{get:ExpressionPropertyInterface(m.r)},points:{get:ExpressionPropertyInterface(m.pt)},outerRadius:{get:ExpressionPropertyInterface(m.or)},outerRoundness:{get:ExpressionPropertyInterface(m.os)},innerRadius:{get:ExpressionPropertyInterface(m.ir)},innerRoundness:{get:ExpressionPropertyInterface(m.is)},_name:{value:v.nm}}),b.mn=v.mn,b}function x(v,p,C){function b(y){return v.p.ix===y?b.position:v.r.ix===y?b.roundness:v.s.ix===y||y==="Size"||y==="ADBE Vector Rect Size"?b.size:null}var d=propertyGroupFactory(b,C),m=p.sh.ty==="tm"?p.sh.prop:p.sh;return b.propertyIndex=v.ix,m.p.setGroupProperty(PropertyInterface("Position",d)),m.s.setGroupProperty(PropertyInterface("Size",d)),m.r.setGroupProperty(PropertyInterface("Rotation",d)),Object.defineProperties(b,{position:{get:ExpressionPropertyInterface(m.p)},roundness:{get:ExpressionPropertyInterface(m.r)},size:{get:ExpressionPropertyInterface(m.s)},_name:{value:v.nm}}),b.mn=v.mn,b}function h(v,p,C){function b(y){return v.r.ix===y||y==="Round Corners 1"?b.radius:null}var d=propertyGroupFactory(b,C),m=p;return b.propertyIndex=v.ix,m.rd.setGroupProperty(PropertyInterface("Radius",d)),Object.defineProperties(b,{radius:{get:ExpressionPropertyInterface(m.rd)},_name:{value:v.nm}}),b.mn=v.mn,b}function g(v,p,C){function b(y){return v.c.ix===y||y==="Copies"?b.copies:v.o.ix===y||y==="Offset"?b.offset:null}var d=propertyGroupFactory(b,C),m=p;return b.propertyIndex=v.ix,m.c.setGroupProperty(PropertyInterface("Copies",d)),m.o.setGroupProperty(PropertyInterface("Offset",d)),Object.defineProperties(b,{copies:{get:ExpressionPropertyInterface(m.c)},offset:{get:ExpressionPropertyInterface(m.o)},_name:{value:v.nm}}),b.mn=v.mn,b}return function(v,p,C){var b;function d(y){if(typeof y=="number")return y=y===void 0?1:y,y===0?C:b[y-1];for(var A=0,_=b.length;A<_;){if(b[A]._name===y)return b[A];A+=1}return null}function m(){return C}return d.propertyGroup=propertyGroupFactory(d,m),b=e(v,p,d.propertyGroup),d.numProperties=b.length,d._name="Contents",d}}(),TextExpressionInterface=function(){return function(e){var n;function r(i){switch(i){case"ADBE Text Document":return r.sourceText;default:return null}}return Object.defineProperty(r,"sourceText",{get:function(){e.textProperty.getValue();var a=e.textProperty.currentData.t;return(!n||a!==n.value)&&(n=new String(a),n.value=a||new String(a),Object.defineProperty(n,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),n}}),r}}();function _typeof(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(r){return typeof r}:_typeof=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof(e)}var FootageInterface=function(){var e=function(i){var a="",o=i.getFootageData();function s(){return a="",o=i.getFootageData(),l}function l(c){if(o[c])return a=c,o=o[c],_typeof(o)==="object"?l:o;var u=c.indexOf(a);if(u!==-1){var f=parseInt(c.substr(u+a.length),10);return o=o[f],_typeof(o)==="object"?l:o}return""}return s},n=function(i){function a(o){return o==="Outline"?a.outlineInterface():null}return a._name="Outline",a.outlineInterface=e(i),a};return function(r){function i(a){return a==="Data"?i.dataInterface:null}return i._name="Data",i.dataInterface=n(r),i}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers=function(){function e(s,l,c){l.x&&(c.k=!0,c.x=!0,c.initiateExpression=ExpressionManager.initiateExpression,c.effectsSequence.push(c.initiateExpression(s,l,c).bind(c)))}function n(s){return s*=this.elem.globalData.frameRate,s-=this.offsetTime,s!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<s?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(s,this._cachingAtTime),this._cachingAtTime.lastFrame=s),this._cachingAtTime.value}function r(s){var l=-.01,c=this.getValueAtTime(s),u=this.getValueAtTime(s+l),f=0;if(c.length){var x;for(x=0;x<c.length;x+=1)f+=Math.pow(u[x]-c[x],2);f=Math.sqrt(f)*100}else f=0;return f}function i(s){if(this.vel!==void 0)return this.vel;var l=-.001,c=this.getValueAtTime(s),u=this.getValueAtTime(s+l),f;if(c.length){f=createTypedArray("float32",c.length);var x;for(x=0;x<c.length;x+=1)f[x]=(u[x]-c[x])/l}else f=(u-c)/l;return f}function a(){return this.pv}function o(s){this.propertyGroup=s}return{searchExpressions:e,getSpeedAtTime:r,getVelocityAtTime:i,getValueAtTime:n,getStaticValueAtTime:a,setGroupProperty:o}}();function addPropertyDecorator(){function e(h,g,v){if(!this.k||!this.keyframes)return this.pv;h=h?h.toLowerCase():"";var p=this.comp.renderedFrame,C=this.keyframes,b=C[C.length-1].t;if(p<=b)return this.pv;var d,m;v?(g?d=Math.abs(b-this.elem.comp.globalData.frameRate*g):d=Math.max(0,b-this.elem.data.ip),m=b-d):((!g||g>C.length-1)&&(g=C.length-1),m=C[C.length-1-g].t,d=b-m);var y,A,_;if(h==="pingpong"){var k=Math.floor((p-m)/d);if(k%2!==0)return this.getValueAtTime((d-(p-m)%d+m)/this.comp.globalData.frameRate,0)}else if(h==="offset"){var T=this.getValueAtTime(m/this.comp.globalData.frameRate,0),F=this.getValueAtTime(b/this.comp.globalData.frameRate,0),M=this.getValueAtTime(((p-m)%d+m)/this.comp.globalData.frameRate,0),B=Math.floor((p-m)/d);if(this.pv.length){for(_=new Array(T.length),A=_.length,y=0;y<A;y+=1)_[y]=(F[y]-T[y])*B+M[y];return _}return(F-T)*B+M}else if(h==="continue"){var L=this.getValueAtTime(b/this.comp.globalData.frameRate,0),V=this.getValueAtTime((b-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(_=new Array(L.length),A=_.length,y=0;y<A;y+=1)_[y]=L[y]+(L[y]-V[y])*((p-b)/this.comp.globalData.frameRate)/5e-4;return _}return L+(L-V)*((p-b)/.001)}return this.getValueAtTime(((p-m)%d+m)/this.comp.globalData.frameRate,0)}function n(h,g,v){if(!this.k)return this.pv;h=h?h.toLowerCase():"";var p=this.comp.renderedFrame,C=this.keyframes,b=C[0].t;if(p>=b)return this.pv;var d,m;v?(g?d=Math.abs(this.elem.comp.globalData.frameRate*g):d=Math.max(0,this.elem.data.op-b),m=b+d):((!g||g>C.length-1)&&(g=C.length-1),m=C[g].t,d=m-b);var y,A,_;if(h==="pingpong"){var k=Math.floor((b-p)/d);if(k%2===0)return this.getValueAtTime(((b-p)%d+b)/this.comp.globalData.frameRate,0)}else if(h==="offset"){var T=this.getValueAtTime(b/this.comp.globalData.frameRate,0),F=this.getValueAtTime(m/this.comp.globalData.frameRate,0),M=this.getValueAtTime((d-(b-p)%d+b)/this.comp.globalData.frameRate,0),B=Math.floor((b-p)/d)+1;if(this.pv.length){for(_=new Array(T.length),A=_.length,y=0;y<A;y+=1)_[y]=M[y]-(F[y]-T[y])*B;return _}return M-(F-T)*B}else if(h==="continue"){var L=this.getValueAtTime(b/this.comp.globalData.frameRate,0),V=this.getValueAtTime((b+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(_=new Array(L.length),A=_.length,y=0;y<A;y+=1)_[y]=L[y]+(L[y]-V[y])*(b-p)/.001;return _}return L+(L-V)*(b-p)/.001}return this.getValueAtTime((d-((b-p)%d+b))/this.comp.globalData.frameRate,0)}function r(h,g){if(!this.k)return this.pv;if(h=(h||.4)*.5,g=Math.floor(g||5),g<=1)return this.pv;var v=this.comp.renderedFrame/this.comp.globalData.frameRate,p=v-h,C=v+h,b=g>1?(C-p)/(g-1):1,d=0,m=0,y;this.pv.length?y=createTypedArray("float32",this.pv.length):y=0;for(var A;d<g;){if(A=this.getValueAtTime(p+d*b),this.pv.length)for(m=0;m<this.pv.length;m+=1)y[m]+=A[m];else y+=A;d+=1}if(this.pv.length)for(m=0;m<this.pv.length;m+=1)y[m]/=g;else y/=g;return y}function i(h){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var g=this._transformCachingAtTime.v;if(g.cloneFromProps(this.pre.props),this.appliedTransformations<1){var v=this.a.getValueAtTime(h);g.translate(-v[0]*this.a.mult,-v[1]*this.a.mult,v[2]*this.a.mult)}if(this.appliedTransformations<2){var p=this.s.getValueAtTime(h);g.scale(p[0]*this.s.mult,p[1]*this.s.mult,p[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var C=this.sk.getValueAtTime(h),b=this.sa.getValueAtTime(h);g.skewFromAxis(-C*this.sk.mult,b*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var d=this.r.getValueAtTime(h);g.rotate(-d*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var m=this.rz.getValueAtTime(h),y=this.ry.getValueAtTime(h),A=this.rx.getValueAtTime(h),_=this.or.getValueAtTime(h);g.rotateZ(-m*this.rz.mult).rotateY(y*this.ry.mult).rotateX(A*this.rx.mult).rotateZ(-_[2]*this.or.mult).rotateY(_[1]*this.or.mult).rotateX(_[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var k=this.px.getValueAtTime(h),T=this.py.getValueAtTime(h);if(this.data.p.z){var F=this.pz.getValueAtTime(h);g.translate(k*this.px.mult,T*this.py.mult,-F*this.pz.mult)}else g.translate(k*this.px.mult,T*this.py.mult,0)}else{var M=this.p.getValueAtTime(h);g.translate(M[0]*this.p.mult,M[1]*this.p.mult,-M[2]*this.p.mult)}return g}function a(){return this.v.clone(new Matrix)}var o=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(h,g,v){var p=o(h,g,v);return p.dynamicProperties.length?p.getValueAtTime=i.bind(p):p.getValueAtTime=a.bind(p),p.setGroupProperty=expressionHelpers.setGroupProperty,p};var s=PropertyFactory.getProp;PropertyFactory.getProp=function(h,g,v,p,C){var b=s(h,g,v,p,C);b.kf?b.getValueAtTime=expressionHelpers.getValueAtTime.bind(b):b.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(b),b.setGroupProperty=expressionHelpers.setGroupProperty,b.loopOut=e,b.loopIn=n,b.smooth=r,b.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(b),b.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(b),b.numKeys=g.a===1?g.k.length:0,b.propertyIndex=g.ix;var d=0;return v!==0&&(d=createTypedArray("float32",g.a===1?g.k[0].s.length:g.k.length)),b._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:d},expressionHelpers.searchExpressions(h,g,b),b.k&&C.addDynamicProperty(b),b};function l(h){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),h*=this.elem.globalData.frameRate,h-=this.offsetTime,h!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<h?this._caching.lastIndex:0,this._cachingAtTime.lastTime=h,this.interpolateShape(h,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var c=ShapePropertyFactory.getConstructorFunction(),u=ShapePropertyFactory.getKeyframedConstructorFunction();function f(){}f.prototype={vertices:function(g,v){this.k&&this.getValue();var p=this.v;v!==void 0&&(p=this.getValueAtTime(v,0));var C,b=p._length,d=p[g],m=p.v,y=createSizedArray(b);for(C=0;C<b;C+=1)g==="i"||g==="o"?y[C]=[d[C][0]-m[C][0],d[C][1]-m[C][1]]:y[C]=[d[C][0],d[C][1]];return y},points:function(g){return this.vertices("v",g)},inTangents:function(g){return this.vertices("i",g)},outTangents:function(g){return this.vertices("o",g)},isClosed:function(){return this.v.c},pointOnPath:function(g,v){var p=this.v;v!==void 0&&(p=this.getValueAtTime(v,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(p));for(var C=this._segmentsLength,b=C.lengths,d=C.totalLength*g,m=0,y=b.length,A=0,_;m<y;){if(A+b[m].addedLength>d){var k=m,T=p.c&&m===y-1?0:m+1,F=(d-A)/b[m].addedLength;_=bez.getPointInSegment(p.v[k],p.v[T],p.o[k],p.i[T],F,b[m]);break}else A+=b[m].addedLength;m+=1}return _||(_=p.c?[p.v[0][0],p.v[0][1]]:[p.v[p._length-1][0],p.v[p._length-1][1]]),_},vectorOnPath:function(g,v,p){g==1?g=this.v.c:g==0&&(g=.999);var C=this.pointOnPath(g,v),b=this.pointOnPath(g+.001,v),d=b[0]-C[0],m=b[1]-C[1],y=Math.sqrt(Math.pow(d,2)+Math.pow(m,2));if(y===0)return[0,0];var A=p==="tangent"?[d/y,m/y]:[-m/y,d/y];return A},tangentOnPath:function(g,v){return this.vectorOnPath(g,v,"tangent")},normalOnPath:function(g,v){return this.vectorOnPath(g,v,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([f],c),extendPrototype([f],u),u.prototype.getValueAtTime=l,u.prototype.initiateExpression=ExpressionManager.initiateExpression;var x=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(h,g,v,p,C){var b=x(h,g,v,p,C);return b.propertyIndex=g.ix,b.lock=!1,v===3?expressionHelpers.searchExpressions(h,g.pt,b):v===4&&expressionHelpers.searchExpressions(h,g.ks,b),b.k&&h.addDynamicProperty(b),b}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function e(){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(n,r){var i=this.calculateExpression(r);if(n.t!==i){var a={};return this.copyData(a,n),a.t=i.toString(),a.__complete=!1,a}return n},TextProperty.prototype.searchProperty=function(){var n=this.searchKeyframes(),r=this.searchExpressions();return this.kf=n||r,this.kf},TextProperty.prototype.searchExpressions=e}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function e(n,r){var i=createNS("feMerge");i.setAttribute("result",n);var a,o;for(o=0;o<r.length;o+=1)a=createNS("feMergeNode"),a.setAttribute("in",r[o]),i.appendChild(a),i.appendChild(a);return i}};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(e,n,r,i,a){this.filterManager=n;var o=createNS("feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","linearRGB"),o.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=o,o.setAttribute("result",i+"_tint_1"),e.appendChild(o),o=createNS("feColorMatrix"),o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),o.setAttribute("result",i+"_tint_2"),e.appendChild(o),this.matrixFilter=o;var s=this.createMergeNode(i,[a,i+"_tint_1",i+"_tint_2"]);e.appendChild(s)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var n=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+i+" 0"),this.matrixFilter.setAttribute("values",r[0]-n[0]+" 0 0 0 "+n[0]+" "+(r[1]-n[1])+" 0 0 0 "+n[1]+" "+(r[2]-n[2])+" 0 0 0 "+n[2]+" 0 0 0 1 0")}};function SVGFillFilter(e,n,r,i){this.filterManager=n;var a=createNS("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),a.setAttribute("result",i),e.appendChild(a),this.matrixFilter=a}SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var n=this.filterManager.effectElements[2].p.v,r=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+n[0]+" 0 0 0 0 "+n[1]+" 0 0 0 0 "+n[2]+" 0 0 0 "+r+" 0")}};function SVGStrokeEffect(e,n,r){this.initialized=!1,this.filterManager=n,this.elem=r,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var e=this.elem.layerElement.children||this.elem.layerElement.childNodes,n,r,i,a;for(this.filterManager.effectElements[1].p.v===1?(a=this.elem.maskManager.masksProperties.length,i=0):(i=this.filterManager.effectElements[0].p.v-1,a=i+1),r=createNS("g"),r.setAttribute("fill","none"),r.setAttribute("stroke-linecap","round"),r.setAttribute("stroke-dashoffset",1),i;i<a;i+=1)n=createNS("path"),r.appendChild(n),this.paths.push({p:n,m:i});if(this.filterManager.effectElements[10].p.v===3){var o=createNS("mask"),s=createElementID();o.setAttribute("id",s),o.setAttribute("mask-type","alpha"),o.appendChild(r),this.elem.globalData.defs.appendChild(o);var l=createNS("g");for(l.setAttribute("mask","url("+getLocationHref()+"#"+s+")");e[0];)l.appendChild(e[0]);this.elem.layerElement.appendChild(l),this.masker=o,r.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(e=this.elem.layerElement.children||this.elem.layerElement.childNodes;e.length;)this.elem.layerElement.removeChild(e[0]);this.elem.layerElement.appendChild(r),this.elem.layerElement.removeAttribute("mask"),r.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=r},SVGStrokeEffect.prototype.renderFrame=function(e){this.initialized||this.initialize();var n,r=this.paths.length,i,a;for(n=0;n<r;n+=1)if(this.paths[n].m!==-1&&(i=this.elem.maskManager.viewData[this.paths[n].m],a=this.paths[n].p,(e||this.filterManager._mdf||i.prop._mdf)&&a.setAttribute("d",i.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||i.prop._mdf)){var o;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var s=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,l=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,c=a.getTotalLength();o="0 0 0 "+c*s+" ";var u=c*(l-s),f=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,x=Math.floor(u/f),h;for(h=0;h<x;h+=1)o+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";o+="0 "+c*10+" 0 0"}else o="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;a.setAttribute("stroke-dasharray",o)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(e||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)&&(e||this.filterManager.effectElements[3].p._mdf)){var g=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(g[0]*255)+","+bmFloor(g[1]*255)+","+bmFloor(g[2]*255)+")")}};function SVGTritoneFilter(e,n,r,i){this.filterManager=n;var a=createNS("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","linearRGB"),a.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"),e.appendChild(a);var o=createNS("feComponentTransfer");o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",i),this.matrixFilter=o;var s=createNS("feFuncR");s.setAttribute("type","table"),o.appendChild(s),this.feFuncR=s;var l=createNS("feFuncG");l.setAttribute("type","table"),o.appendChild(l),this.feFuncG=l;var c=createNS("feFuncB");c.setAttribute("type","table"),o.appendChild(c),this.feFuncB=c,e.appendChild(o)}SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var n=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v,a=i[0]+" "+r[0]+" "+n[0],o=i[1]+" "+r[1]+" "+n[1],s=i[2]+" "+r[2]+" "+n[2];this.feFuncR.setAttribute("tableValues",a),this.feFuncG.setAttribute("tableValues",o),this.feFuncB.setAttribute("tableValues",s)}};function SVGProLevelsFilter(e,n,r,i){this.filterManager=n;var a=this.filterManager.effectElements,o=createNS("feComponentTransfer");(a[10].p.k||a[10].p.v!==0||a[11].p.k||a[11].p.v!==1||a[12].p.k||a[12].p.v!==1||a[13].p.k||a[13].p.v!==0||a[14].p.k||a[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",o)),(a[17].p.k||a[17].p.v!==0||a[18].p.k||a[18].p.v!==1||a[19].p.k||a[19].p.v!==1||a[20].p.k||a[20].p.v!==0||a[21].p.k||a[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",o)),(a[24].p.k||a[24].p.v!==0||a[25].p.k||a[25].p.v!==1||a[26].p.k||a[26].p.v!==1||a[27].p.k||a[27].p.v!==0||a[28].p.k||a[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",o)),(a[31].p.k||a[31].p.v!==0||a[32].p.k||a[32].p.v!==1||a[33].p.k||a[33].p.v!==1||a[34].p.k||a[34].p.v!==0||a[35].p.k||a[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",o)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(o.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(o)),(a[3].p.k||a[3].p.v!==0||a[4].p.k||a[4].p.v!==1||a[5].p.k||a[5].p.v!==1||a[6].p.k||a[6].p.v!==0||a[7].p.k||a[7].p.v!==1)&&(o=createNS("feComponentTransfer"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",i),e.appendChild(o),this.feFuncRComposed=this.createFeFunc("feFuncR",o),this.feFuncGComposed=this.createFeFunc("feFuncG",o),this.feFuncBComposed=this.createFeFunc("feFuncB",o))}SVGProLevelsFilter.prototype.createFeFunc=function(e,n){var r=createNS(e);return r.setAttribute("type","table"),n.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(e,n,r,i,a){for(var o=0,s=256,l,c=Math.min(e,n),u=Math.max(e,n),f=Array.call(null,{length:s}),x,h=0,g=a-i,v=n-e;o<=256;)l=o/256,l<=c?x=v<0?a:i:l>=u?x=v<0?i:a:x=i+g*Math.pow((l-e)/v,1/r),f[h]=x,h+=1,o+=256/(s-1);return f.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var n,r=this.filterManager.effectElements;this.feFuncRComposed&&(e||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(n=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",n),this.feFuncGComposed.setAttribute("tableValues",n),this.feFuncBComposed.setAttribute("tableValues",n)),this.feFuncR&&(e||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(n=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",n)),this.feFuncG&&(e||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(n=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",n)),this.feFuncB&&(e||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(n=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",n)),this.feFuncA&&(e||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(n=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",n))}};function SVGDropShadowEffect(e,n,r,i,a){var o=n.container.globalData.renderConfig.filterSize,s=n.data.fs||o;e.setAttribute("x",s.x||o.x),e.setAttribute("y",s.y||o.y),e.setAttribute("width",s.width||o.width),e.setAttribute("height",s.height||o.height),this.filterManager=n;var l=createNS("feGaussianBlur");l.setAttribute("in","SourceAlpha"),l.setAttribute("result",i+"_drop_shadow_1"),l.setAttribute("stdDeviation","0"),this.feGaussianBlur=l,e.appendChild(l);var c=createNS("feOffset");c.setAttribute("dx","25"),c.setAttribute("dy","0"),c.setAttribute("in",i+"_drop_shadow_1"),c.setAttribute("result",i+"_drop_shadow_2"),this.feOffset=c,e.appendChild(c);var u=createNS("feFlood");u.setAttribute("flood-color","#00ff00"),u.setAttribute("flood-opacity","1"),u.setAttribute("result",i+"_drop_shadow_3"),this.feFlood=u,e.appendChild(u);var f=createNS("feComposite");f.setAttribute("in",i+"_drop_shadow_3"),f.setAttribute("in2",i+"_drop_shadow_2"),f.setAttribute("operator","in"),f.setAttribute("result",i+"_drop_shadow_4"),e.appendChild(f);var x=this.createMergeNode(i,[i+"_drop_shadow_4",a]);e.appendChild(x)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var n=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(n[0]*255),Math.round(n[1]*255),Math.round(n[2]*255)))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var r=this.filterManager.effectElements[3].p.v,i=(this.filterManager.effectElements[2].p.v-90)*degToRads,a=r*Math.cos(i),o=r*Math.sin(i);this.feOffset.setAttribute("dx",a),this.feOffset.setAttribute("dy",o)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,n,r){this.initialized=!1,this.filterManager=n,this.filterElem=e,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}SVGMatte3Effect.prototype.findSymbol=function(e){for(var n=0,r=_svgMatteSymbols.length;n<r;){if(_svgMatteSymbols[n]===e)return _svgMatteSymbols[n];n+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,n){var r=e.layerElement.parentNode;if(r){for(var i=r.children,a=0,o=i.length;a<o&&i[a]!==e.layerElement;)a+=1;var s;a<=o-2&&(s=i[a+1]);var l=createNS("use");l.setAttribute("href","#"+n),s?r.insertBefore(l,s):r.appendChild(l)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,n){if(!this.findSymbol(n)){var r=createElementID(),i=createNS("mask");i.setAttribute("id",n.layerId),i.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(n);var a=e.globalData.defs;a.appendChild(i);var o=createNS("symbol");o.setAttribute("id",r),this.replaceInParent(n,r),o.appendChild(n.layerElement),a.appendChild(o);var s=createNS("use");s.setAttribute("href","#"+r),i.appendChild(s),n.data.hd=!1,n.show()}e.setMatte(n.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,n=this.elem.comp.elements,r=0,i=n.length;r<i;)n[r]&&n[r].data.ind===e&&this.setElementAsMask(this.elem,n[r]),r+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(e,n,r,i){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=n;var a=createNS("feGaussianBlur");a.setAttribute("result",i),e.appendChild(a),this.feGaussianBlur=a}SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var n=.3,r=this.filterManager.effectElements[0].p.v*n,i=this.filterManager.effectElements[1].p.v,a=i==3?0:r,o=i==2?0:r;this.feGaussianBlur.setAttribute("stdDeviation",a+" "+o);var s=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",s)}};function TransformEffect(){}TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var n=this.effectsManager.effectElements,r=n[0].p.v,i=n[1].p.v,a=n[2].p.v===1,o=n[3].p.v,s=a?o:n[4].p.v,l=n[5].p.v,c=n[6].p.v,u=n[7].p.v;this.matrix.reset(),this.matrix.translate(-r[0],-r[1],r[2]),this.matrix.scale(s*.01,o*.01,1),this.matrix.rotate(-u*degToRads),this.matrix.skewFromAxis(-l*degToRads,(c+90)*degToRads),this.matrix.translate(i[0],i[1],0),this._mdf=!0,this.opacity!==n[8].p.v&&(this.opacity=n[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(e,n){this.init(n)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(e){this.init(e)}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(e){const n=usePickComponentStyle(e),r=vue.computed(()=>useImagePath(e.imgUrl)),{pageMode:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),a=vue.computed(()=>{const v={},{actionType:p,linkPage:C,href:b}=e,{requestParams:d={}}=window.config;return vue.unref(i)!=="design"&&p==="close"&&e.isDrillShow&&!d.drillFlag&&(v.display="none"),(p==="link"&&(C||b)||!p&&(C||b)||p==="close")&&(v.cursor="pointer"),{...vue.unref(n),...v}}),{getGlobalModel:o,setGlobalModel:s,getRecordValueByKeyName:l}=vue.inject(GLOBAL_MODEL,{getGlobalModel:v=>{},setGlobalModel:(v,p)=>{},getRecordValueByKeyName:v=>{}}),{setTemplateData:c}=vue.inject("templateOperate",{setTemplateData:v=>{}}),f=useEmitEvent(e)("click",()=>{const v=o(e.id);if(s(e.id,{...v,type:e.type,RECORD:e.data||{}}),setTimeout(()=>{s(e.id,{...v,type:e.type,RECORD:{}})},0),[void 0,"link"].includes(e.actionType)){if(!e.linkPage&&!e.href)return;handleJumpLink(e,{pageMode:vue.unref(i),targetTemplate:e.targetTemplate,getRecordValueByKeyName:l,setTemplateData:c})}else e.actionType==="close"&&window.close()}),x=vue.ref(),h=vue.ref(),g=()=>{const{directory:v}=e.animationSource;e.isAnimation&&x.value&&v&&(h.value=lottie.loadAnimation({name:`${e.keyName}-lotTie`,container:x.value,renderer:"svg",loop:!0,autoplay:!0,path:useImagePath(v)+"data.json"}),vue.unref(h).setSpeed(1))};return vue.watch(()=>[e.isAnimation,e.animationSource],([v])=>{v&&vue.nextTick(()=>{g()})},{immediate:!0,deep:!0}),useOnEvent(e,{click:f}),{customStyle:a,myImgUrl:r,animation:x,pageMode:i,onClick:f}}}),__injectCSSVars__$1=()=>{vue.useCssVars(e=>({"8d74eefa":e.isHoverStyle?"pointer":"auto","7ff7bf46":e.isHoverStyle?"0.6":"1"}))},__setup__$1=__default__$1.setup;__default__$1.setup=__setup__$1?(e,n)=>(__injectCSSVars__$1(),__setup__$1(e,n)):__injectCSSVars__$1;const Image_vue_vue_type_style_index_0_scoped_8b128e89_lang="",_hoisted_1$3=["src"];function _sfc_render$6(e,n,r,i,a,o){var s;return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[e.isAnimation?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[e.animationSource.directory?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["ecan-image",e.pageMode==="design"?"component":""]),ref:"animation",style:vue.normalizeStyle(e.customStyle),onClick:n[0]||(n[0]=(...l)=>e.onClick&&e.onClick(...l))},null,6)):vue.createCommentVNode("",!0)],64)):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[e.myImgUrl!==""?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:vue.normalizeClass(["ecan-image",e.pageMode==="design"?"component":""]),style:vue.normalizeStyle(e.customStyle),src:e.myImgUrl,onClick:n[1]||(n[1]=(...l)=>e.onClick&&e.onClick(...l))},null,14,_hoisted_1$3)):vue.createCommentVNode("",!0)],64)),(e.isAnimation?!((s=e.animationSource)!=null&&s.directory):!e.myImgUrl)?(vue.openBlock(),vue.createElementBlock("div",{key:2,class:vue.normalizeClass(["image-placeholder",e.pageMode==="design"?"component":""]),style:vue.normalizeStyle(e.customStyle)}," 请上传图片 ",6)):vue.createCommentVNode("",!0)],64)}const Image$1=_export_sfc$1(__default__$1,[["render",_sfc_render$6],["__scopeId","data-v-8b128e89"]]),EcanImage=withInstall$1(Image$1),iframeProps={...props,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web",transParams:[]},iframeComponentProps=transformToComponentProps(iframeProps),_sfc_main$4=vue.defineComponent({name:"EcanIframe",props:{...iframeComponentProps},setup(e){const n=usePickComponentStyle(e),{contextRequestUrl:r}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:""}),{getRecordValueByKeyName:i}=vue.inject(GLOBAL_MODEL,{getRecordValueByKeyName:o=>{}}),a=vue.computed(()=>{var s;let o=useVariablesInText(e.link);if(e.linkType==="erd"&&o!=null){let l=vue.unref(r);l[l.length-1]==="/"?l+="erdReport":l+="/erdReport",o=`${ERD_URL||l}?_t=0&uid=${o}`}if((s=e.transParams)!=null&&s.length){o.includes("?")?o+="&":o+="?";const l=[];for(const c of e.transParams){const u=i(String(c.fieldName));l.push(`${c.keyName}=${u}`)}o+=l.join("&")}return o});return{style:n,myLink:a}}}),Iframe_vue_vue_type_style_index_0_scoped_06253280_lang="",_hoisted_1$2=["src"];function _sfc_render$5(e,n,r,i,a,o){return e.myLink?(vue.openBlock(),vue.createElementBlock("iframe",{key:0,src:e.myLink,style:vue.normalizeStyle(e.style)},null,12,_hoisted_1$2)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"iframe-placeholder",style:vue.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const Iframe=_export_sfc$1(_sfc_main$4,[["render",_sfc_render$5],["__scopeId","data-v-06253280"]]),EcanIframe=withInstall$1(Iframe),tableProps={...props,zIndex:2,name:"表格",keyName:"表格",type:"ecanTable",width:"400px",height:"240px",bordered:!1,headerFontSize:"14px",headerFontColor:"",fontSize:"14px",isUseSeq:!1,size:"default",headerFontWeight:400,isUseExport:!1,fontWeight:400,columnsFixedNum:0,scrollX:0,paginationShow:!0,isReverse:!1,simple:!1,pageSizeShow:!1,cellBackgroundColor:"",cellFontColor:"",headerBackgroundColor:"",borderColor:"",paginationPosition:"bottomRight",paginationPageSize:10,isUseAction:!1,clickHighlight:!1,filterDropdownHeight:"200px",actionList:[{title:"",href:"",target:"",color:""}],actionColumnWidth:100,columns:[{title:"姓名",dataIndex:"name"},{title:"年龄",dataIndex:"age"},{title:"住址",dataIndex:"address"}],data:[{name:"小明",age:32,address:"福州软件园"},{name:"小红",age:25,address:"福州软件园"}],graphicConfig:{},stripedShow:!1,stripedColor:"#fafafa",isGroupTable:!1,seqWidth:"10%",seqName:"序号",seqIcon:!1,isSummaryFixed:!1,isPageBottom:!1,isShowTotal:!1,hideTableHeader:!1,paginationColor:"",paginationBgColor:"",activePaginationColor:"",activePaginationBgColor:"",hoverBackgroundColor:"",subTotalColumn:"",subTotalName:"小计",isSortByFront:!1,transParams:[],linkPage:"",target:"self",href:"",isAutoScroll:!1,scrollSpeed:10,clickTarget:"row",clickTargetColumns:[],linkTextColor:""},tableComponentProps=transformToComponentProps(tableProps),tableEvents=["click","refreshData","resetRecord","exportTableData"],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(e,{expose:n}){const{pageMode:r,height:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",height:null}),a=vue.ref(!1),o=vue.computed(()=>vue.unref(r)!=="design"&&e.isAutoScroll),s=vue.ref({}),l=vue.ref(!1),c=vue.computed(()=>{const Z=lodashEs.cloneDeep(e.columns);return e.isUseSeq&&Z.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&Z.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),Z}),u=vue.ref(),f=vue.ref(!1),x=usePickComponentStyle(e),h=vue.ref([]),g=vue.computed(()=>{const{height:Z}=e;return typeof Z=="string"?Z:Z.suffix==="px"?Z.value+"px":Z.suffix==="%"?parseFloat(vue.unref(i))*(Z.value/100)+"px":"0"}),v=vue.computed(()=>e.scrollX),p=vue.ref(parseFloat(g.value)),C=()=>{let Z=0;switch(e.size){case"small":Z=50;break;case"middle":Z=53;break;default:Z=65;break}return Z},b=vue.ref(0),d=vue.ref(""),m=vue.ref(0);vue.watchEffect(()=>{var Z;(Z=h.value)!=null&&Z.length&&g.value&&setTimeout(()=>{let ne=parseFloat(g.value),re=document.querySelector(`#ecanTable-${e.id} .ant-table-tbody`),le=document.querySelector(`#ecanTable-${e.id} thead.ant-table-thead`);const ce=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`);let ue=0;if(le&&(ne-=(le==null?void 0:le.clientHeight)||0),ce&&e.isSummaryFixed&&(ue=(ce==null?void 0:ce.clientHeight)||0,ne-=ue),e.paginationShow&&!e.isAutoScroll){let oe=0;oe=C(),oe&&(ne-=oe)}(re==null?void 0:re.clientHeight)>ne?p.value=ne:p.value=0,vue.nextTick(()=>{if(ue){const oe=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`),me=(oe==null?void 0:oe.clientHeight)||0;ue!==me&&vue.unref(p)&&(p.value=ne+ue-me)}e.isAutoScroll&&a.value&&setTimeout(()=>{var xe;const oe=document.querySelector(`#ecanTable-${e.id} .ant-table-body`);re=document.querySelector(`#ecanTable-${e.id} .ant-table-tbody`),le=document.querySelector(`#ecanTable-${e.id} thead.ant-table-thead`);const me=oe||re;b.value=(me==null?void 0:me.clientHeight)||0,m.value=(le==null?void 0:le.clientHeight)||0,s.value={height:((re==null?void 0:re.clientHeight)||0)+"px"};const ye=document.querySelector(`#ecanTable-${e.id} .ant-table-body > table`);if(d.value=(xe=document.querySelector(`#ecanTable-${e.id} .ant-table`))==null?void 0:xe.className,ye){const Ie=ye.cloneNode(!0);ye.style.visibility="hidden",setTimeout(()=>{me==null||me.setAttribute("id","hiddenTableBody")},0);const Le=document.querySelectorAll(`#ecanTable-${e.id} .scroll-wrap`);if(Le!=null&&Le.length){for(const Ke of Le)Ke.append(Ie.cloneNode(!0));const je=document.querySelectorAll(`#ecanTable-${e.id} .scroll-wrap .ant-table-cell`);if(je!=null&&je.length)for(const Ke of je)y(Ke);const Ye=document.querySelector(`#ecanTable-${e.id} .vue3-marquee`);Ye&&Ye.addEventListener("scroll",Ke=>{var Je;document.querySelector(`#ecanTable-${e.id} .ant-table-header`).scrollLeft=((Je=Ke==null?void 0:Ke.target)==null?void 0:Je.scrollLeft)||0})}}},0)})},0)});function y(Z){Z.addEventListener("click",ne=>{const le=A(ne.target).getAttribute("dix");if(le){const ce=document.querySelector(`#ecanTable-${e.id} #hiddenTableBody td[dix="${le}"]`);ce&&ce.click()}})}function A(Z){return Z.className.includes("ant-table-cell")?Z:A(Z.parentElement)}const _=vue.ref([]),k=vue.ref([]),T=vue.ref([]),F=vue.ref([]),M=vue.ref(0),B=vue.ref(1),L=vue.ref(e.paginationPageSize||10),V=vue.reactive([]),U=(Z,ne)=>{let re="";return Z.forEach((le,ce)=>{const{value:ue,rule:oe}=le;le.conditions?re+=`(${U(le.conditions,le.join)})`:ue&&oe&&(re+=`value ${oe} '${ue}'`),re+=`${ce===Z.length-1?"":ne?" "+ne+" ":""}`}),re},$=(Z=[])=>{var ne,re;if(Array.isArray(Z)&&Z.length>0){let le=Z.length;const ce=e.columnsFixedNum;if(e.dataType==="indicator"&&((ne=vue.unref(c))!=null&&ne.length)&&!vue.unref(c).find(ue=>{var oe;return(oe=ue.children)==null?void 0:oe.length})){const{graphicConfig:{indicators:ue=[]}}=e;Z.forEach((oe,me)=>{if(vue.unref(c)[me])for(const Ie in vue.unref(c)[me])["dataIndex","title"].includes(Ie)||(oe[Ie]=vue.unref(c)[me][Ie]);const ye=ue.find(Ie=>Ie.label===oe.title),{showLabel:xe=""}=ye||{};xe&&(oe.title=xe)})}for(let ue=le-1;ue>=0;ue--)(re=Z[ue])!=null&&re.isHidden&&Z.splice(ue,1);le=Z.length;for(let ue=0;ue<le;ue++){const oe=Z[ue];if(ue<ce?oe.fixed="left":oe.fixed=!1,e.isSortByFront&&oe.sorter){const Ze=oe.dataIndex;oe.sorter=(Xe,et)=>Xe[Ze]-et[Ze]}const{cellAlign:me="center",cellColor:ye,dataIndex:xe,title:Ie,tableFilter:Le,headerCellAlign:je,headerCellColor:Ye,overflow:Ke,conditions:Je}=oe;Le&&(V.push(xe),oe.filterOptionsInputValue="",oe.filterCheckboxGroupValue=[],oe.customFilterDropdown=!0,oe.onFilter=(Ze,Xe)=>Xe[xe].toString().toLowerCase().includes(Ze.toLowerCase())),Je&&(oe.conditionCode=U(Je)),oe.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:je||"center",color:Ye||e.headerFontColor,borderBottomColor:e.borderColor,backgroundColor:e.headerBackgroundColor}}),oe.customCell=(Ze,Xe,et)=>({style:{textAlign:me,color:P(et)?e.linkTextColor:ye||e.cellFontColor,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:vue.unref(ge)===Xe&&e.clickHighlight,linkText:P(et)},dix:et.dataIndex+"_"+Xe,onClick:W("click",()=>{const rt=e.id,at=Q(rt);Ze={dataIndex:xe,title:Ie,...Ze},te(rt,{...at,type:e.type,RECORD:Ze}),ge.value=Xe,setTimeout(()=>{if(!e.linkPage&&!e.href)return;let it=!1;(P(et)||e.clickTarget!=="cell")&&(it=!0),it&&handleJumpLink(e,{pageMode:vue.unref(r),getRecordValueByKeyName:ie})},0)})}),Ke==="ellipsis"?oe.ellipsis=!0:oe.ellipsis=!1,Array.isArray(oe.children)&&$(oe.children)}}};function P(Z){let ne=!1;return e.clickTarget==="cell"&&e.clickTargetColumns.includes(Z.dataIndex)&&(ne=!0),ne}const I=(Z=[])=>{var re;let ne=lodashEs.cloneDeep(Z);return(re=vue.unref(F))!=null&&re.length&&(ne=lodashEs.cloneDeep(vue.unref(F))),e.isUseSeq&&ne.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&ne.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),$(ne),ne};vue.watch(L,()=>{B.value=1,Ae(!1)}),vue.watch(u,Z=>{f.value=!!Z}),vue.watch(()=>[e.columns,e.isUseSeq,e.seqWidth,e.seqName,e.seqIcon,e.isUseAction,e.columnsFixedNum,e.actionColumnWidth,e.cellBackgroundColor,e.headerBackgroundColor,e.borderColor,e.stripedColor],()=>{_.value=I(lodashEs.cloneDeep(e.columns))},{immediate:!0,deep:!0}),vue.watch(()=>[e.data,e.dataType],([Z,ne])=>{ne==="static"&&(k.value=Z)},{immediate:!0});const E=vue.ref({}),S=Z=>{if(Array.isArray(Z)){const ne=Z.length,re=V,le=re.length,ce={};for(let oe=0;oe<ne;oe++){const me=Z[oe];for(let ye=0;ye<le;ye++){const xe=re[ye];if(ce[xe])ce[xe].add(me[xe]);else{const Ie=new Set;Ie.add(me[xe]),ce[xe]=Ie}}}const ue={};for(const oe in ce)if(Object.prototype.hasOwnProperty.call(ce,oe)){const me=ce[oe],ye=Array.from(me);ue[oe]=ye.map(xe=>({label:xe,value:xe}))}E.value=ue}};vue.watch(()=>[e.isReverse,_.value,k.value],()=>{const Z=vue.unref(_),ne=vue.unref(k);if(S(ne),e.isReverse){const{columns:re,dataSource:le}=N(lodashEs.cloneDeep(Z),lodashEs.cloneDeep(ne));T.value=re,h.value=le.map(ce=>({key:nanoid(6),...ce}))}else T.value=Z,h.value=ne.map(re=>({key:nanoid(6),...re}))},{immediate:!0});const N=(Z,ne)=>{const re=Z[0],le=[{title:re.title,dataIndex:"col0",key:"col0",align:"center"}];for(let ue=0;ue<ne.length;ue++){const oe=ne[ue],me="col"+(ue+1);le.push({title:oe[re.dataIndex],dataIndex:me,key:me,align:"center"})}const ce=[];for(let ue=1;ue<Z.length;ue++){const oe=Z[ue],me={col0:oe.title};for(let ye=0;ye<ne.length;ye++){const xe=ne[ye];me[`col${ye+1}`]=xe[oe.dataIndex]}ce.push(me)}return{columns:le,dataSource:ce}},w=vue.ref(""),R=Z=>{var le;const{rows:ne=[],total:re=0}=((le=Z==null?void 0:Z.data)==null?void 0:le.data)||{};if(M.value=re,Array.isArray(ne)&&(k.value=ne),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:ce=[]}=e,ue=ce.find(oe=>oe.key==="dataSqlId");if((ue==null?void 0:ue.value)==="xt_jxzebg"){const oe=ne.filter(me=>!me.绩效总额).map(me=>me.ORG_NAME);oe!=null&&oe.length&&vue.nextTick(()=>{antDesignVue.notification.warning({message:"提示",description:`当前时段${oe.join("、")}绩效数据为空`,duration:3})})}}a.value=!0},O=useRequestData(e),D=async(Z=!0,ne={})=>{try{Z&&(l.value=!0),vue.unref(w)&&(ne.orderCondition=vue.unref(w)),e.paginationShow&&(ne={pageNum:vue.unref(B),pageSize:vue.unref(L)||"10",layer:"1",...ne});const re=await O(ne);R(re)}catch(re){console.error(re)}finally{l.value=!1}},q=({current:Z},ne,re)=>{if(B.value=Z,re&&Object.keys(re).length>0){const{field:le,order:ce}=re,oe={ascend:"asc",descend:"desc"}[ce];le!=null&&oe!=null&&oe?w.value=le+" "+oe:oe||(w.value="")}e.isSortByFront||Ae(!1)},j=vue.computed(()=>{const Z=e.simple,ne=[e.paginationPosition],re={};return e.isShowTotal&&(re.showTotal=le=>`共 ${le} 条数据`),e.paginationShow&&{simple:Z,position:ne,total:vue.unref(M),current:vue.unref(B),pageSize:vue.unref(L)||"10",showSizeChanger:!1,size:"large",...re}}),H=Z=>+Z==1?"是":+Z==0?"否":Z,K=(Z,ne)=>{const{format:re,retentiondigit:le,customFormatter:ce,defaultVal:ue}=ne;let oe="";if(re==null||re==="")oe=Z;else{const me={money:formatMoney,percentage:formatPercentage,contrast:formatPercentage,boolean:H,decimals:formatDecimals,custom:formatCustom};me[re]||(oe=""),re==="decimals"?oe=me[re](Z,le)||"":re==="custom"?oe=me[re](Z,ce)||"":oe=me[re](Z)||""}return oe||(oe=ue),oe},G=Z=>Z==="contrast"?"upDown":"",Y=Z=>{const{text:ne,format:re,declineColor:le="#39cf93",increaseColor:ce="#ff512e"}=Z;if(re==="contrast"){const ue={fontSize:e.fontSize},oe=parseFloat(ne+"");return oe>=0?ue.color=ce:oe<0&&(ue.color=le),ue}else return{}},J=vue.computed(()=>{const{fontSize:Z}=e;return{width:Z,height:Z,textIndent:`-${parseFloat(Z)*2}px`,overflow:"hidden"}}),ee=Z=>{const{text:ne,declineColor:re="#39cf93",increaseColor:le="#ff512e"}=Z,{fontSize:ce}=e,ue=parseFloat(ne+""),oe={width:ce,verticalAlign:"unset"};return ue>=0?oe.filter=`drop-shadow(${le||"#ff512e"} ${ce} -1px)`:ue<0&&(oe.filter=`drop-shadow(${re||"#39cf93"} ${ce} -1px)`),oe},X=Z=>{const ne=parseFloat(Z+"");if(ne>=0)return goUp;if(ne<0)return goDown},W=useEmitEvent(e),{getGlobalModel:Q,setGlobalModel:te,getRecordValueByKeyName:ie}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Z=>{},setGlobalModel:(Z,ne)=>{},getRecordValueByKeyName:Z=>{}});te(e.id,{type:e.type,RECORD:""});const ae=(Z=[],ne=[])=>{let re=Z.map(le=>({title:le,dataIndex:le,key:le}));vue.unref(c).find(le=>{var ce;return(ce=le.children)==null?void 0:ce.length})&&(re=lodashEs.cloneDeep(vue.unref(c))),F.value=lodashEs.cloneDeep(re),_.value=I(re),k.value=ne,a.value=!0},se=Z=>{var ne,re,le,ce;ae((re=(ne=Z==null?void 0:Z.data)==null?void 0:ne.data)==null?void 0:re.columns,(ce=(le=Z==null?void 0:Z.data)==null?void 0:le.data)==null?void 0:ce.rows)},fe=useIndicatorData(e,se),he=async(Z=!0)=>{try{Z&&(l.value=!0);const ne=vue.unref(w).split(" "),re={};e.isSortByFront||(re.sort={order:ne[1],field:ne[0]});const le=await fe(re);se(le)}catch(ne){console.error(ne)}finally{l.value=!1}},ge=vue.ref(-1),{loadedData:be}=vue.inject(LOADED_DATA,{loadedData:{}}),Se=vue.ref(!1);vue.watch(be,Z=>{if(e.dataType==="indicator"){const ne=getFixedValueDatas(e.graphicConfig);ne!=null&&ne.length&&(!vue.unref(Se)&&canRequestIndicator(e.graphicConfig,Z)?(Se.value=!0,Ae()):canRequestIndicator(e.graphicConfig,Z)||(Se.value=!1))}},{deep:!0});const Ae=(Z=!0)=>{switch(e.dataType){case"request":D(Z);break;case"indicator":canRequestIndicator(e.graphicConfig,vue.unref(be))&&he(Z);break}},ke=()=>{const Z=e.id,ne=Q(Z);te(Z,{...ne,type:e.type,RECORD:""})},Be=vue.computed(()=>{const Z=vue.unref(T);let ne=0;const{subTotalColumn:re,subTotalName:le}=e;re&&(ne=Z.findIndex(ye=>ye.dataIndex===re),ne<0&&(ne=0));const ce=[];let ue=0;for(let ye=0;ye<Z.length;ye++){const xe=Z[ye],{isCalcTotal:Ie}=xe;ye===ne?ce.push({...xe,total:le}):Ie?(ce.push({...xe,index:ye,total:0}),ue++):ce.push({...xe})}if(ue===0)return[];const oe=vue.unref(h),me=Ge(ce);for(let ye=0;ye<me.length;ye++){const xe=me[ye];let Ie=0;const{isCalcTotal:Le,dataIndex:je}=xe;if(Le===!0){for(let Ye=0;Ye<oe.length;Ye++){const Je=+oe[Ye][je];isNaN(Je)||(Ie=new big_js.Big(Ie).add(Je).toNumber())}xe.total=Ie}}return me});function Ge(Z){var re;const ne=[];for(const le of Z)(re=le.children)!=null&&re.length?ne.push(...Ge(le.children)):ne.push(le);return ne}const{setRequest:$e}=vue.inject(REQUEST_MODEL,{setRequest:Z=>{}});typeof $e=="function"&&$e({id:e.id,requestFn:Ae,sortNum:e.requestSort}),n({refreshData:Ae});const He=(Z="",ne)=>useVariablesInText(Z,ne),Ue=Z=>{if(Z!=="event")return{self:"_self",blank:"_blank"}[Z]},We=(Z,ne="")=>{Z==="event"&&window.parent.postMessage({type:"openPage",url:ne},"*")},de=(Z,ne)=>{Z(ne.filterCheckboxGroupValue)},pe=(Z,ne)=>{Z({confirm:!0}),ne.filterOptionsInputValue="",ne.filterCheckboxGroupValue=[]},ve=()=>{},Me=Z=>{const ne=Z.dataIndex;if(typeof ne=="string"){let re=vue.unref(E)[ne];const le=vue.unref(Z.filterOptionsInputValue).trim();return Array.isArray(re)?(re=re.filter(ce=>typeof ce.label=="string"?ce.label.toLowerCase().includes(le.toLowerCase()):!0),re):[]}return[]},_e=async()=>{var xe,Ie;const Z="EXPORT_KEY";antDesignVue.message.loading({key:Z,content:"正在导出...",duration:0});let ne=[];if(e.dataType==="static")ne=e.data;else if(e.dataType==="request"){const Le={layer:"1"};vue.unref(w)&&(Le.orderCondition=vue.unref(w));const je=await O(Le);ne=((Ie=(xe=je==null?void 0:je.data)==null?void 0:xe.data)==null?void 0:Ie.rows)||{}}const re=vue.unref(T),le=[],ce=[];re==null||re.forEach(Le=>{le.push(Le.dataIndex),ce.push(Le.title)});const ue=ne.map(Le=>lodashEs.pick(Le,le)),oe=xlsx.utils.book_new(),me=xlsx.utils.aoa_to_sheet([ce]),ye=xlsx.utils.sheet_add_json(me,ue,{skipHeader:!0,origin:"A2"});xlsx.utils.book_append_sheet(oe,ye,"sheet"),xlsx.writeFile(oe,"表格数据.xlsx"),antDesignVue.message.success({key:Z,content:"导出成功"})},De=(Z,ne=2)=>{const re=+Z*100;return isNaN(re)||re<=0?0:re>=100?100:re.toFixed(ne)};useOnEvent(e,{resetRecord:ke,refreshData:Ae,exportTableData:_e});const Oe=(Z,ne)=>{let re=null;return e.stripedShow&&(re=ne%2===1?"table-striped":null),re},Ve=vue.computed(()=>{let Z=0;const{isPageBottom:ne}=e;return ne&&g.value&&(Z=parseFloat(vue.unref(g))-C()),Z?Z+"px":"100%"}),Ee=vue.computed(()=>{let Z="#071655";return e.headerBackgroundColor&&(Z="transparent"),Z}),Ce=vue.computed(()=>{let Z="#071655";return(e.cellBackgroundColor||e.stripedShow&&e.stripedColor)&&(Z="transparent"),Z}),Fe=vue.computed(()=>parseFloat(e.fontSize)+16),Te=vue.computed(()=>{let Z="";const{paginationColor:ne,paginationBgColor:re,activePaginationColor:le,activePaginationBgColor:ce,hoverBackgroundColor:ue}=e;return ne&&(Z+="p-color "),re&&(Z+="p-bg-color "),le&&(Z+="active-p-color "),ce&&(Z+="active-p-bg-color "),ue&&(Z+="hover-bg-color "),Z}),we=(Z,ne)=>{const{conditionCode:re}=Z;return runCode(re,{value:ne})};return{x:v,y:p,style:x,pagination:j,formatFn:K,contrastClass:G,tableChange:q,summaryList:Be,loading:l,onTouchHrefEvent:We,handleHref:He,handleHrefTarget:Ue,useRowIndex:ge,tableColumns:T,tableDataSource:h,useFilterOptions:Me,useSetSelectedKeys:de,onResetFilter:pe,onSearchFilterOptions:ve,exportTableData:_e,handleProgressText:De,pageSizeVisible:f,pageSize:L,tableRef:u,rowClassName:Oe,tableHeight:Ve,tableHeaderBgColor:Ee,tableBodyBgColor:Ce,getChgStyle:Y,chgBoxStyle:J,getChgBoxImgStyle:ee,getChgBoxImgSrc:X,seqIcon1,seqIcon2,seqIcon3,iconSize:Fe,containerClass:Te,getCellStyle:(Z,ne)=>{const{overflow:re,conditionCode:le,attribute:ce}=Z,ue={};return re==="ellipsis"&&(ue.overflow="hidden",ue.textOverflow="ellipsis"),le&&(ce!=null&&ce.color)&&we(Z,ne)&&(ue.color=ce.color),ce!=null&&ce.icon&&(Z==null?void 0:Z.cellAlign)==="right"&&(ue.display="flex",ue.alignItems="center",ue.justifyContent="flex-end"),ue},isMatchCondition:we,getAttrImgSrc:Z=>{const{attribute:ne}=Z;let re="";return ne!=null&&ne.icon&&(re=useImagePath(ne.icon)),re},getAttrImgStyle:Z=>{let ne={};return(Z==null?void 0:Z.cellAlign)==="right"?ne={marginRight:"5px"}:ne={position:"absolute",marginLeft:"5px"},{width:"auto",height:parseFloat(e.fontSize)+6+"px",...ne}},getCellText:(Z,ne)=>Z||Z===0?Z:ne==null?void 0:ne.defaultVal,autoScrollHeight:b,autoScrollClass:d,autoScrollTop:m,isScroll:o,scrollWrapStyle:s,isLinkStyle:P}}}),__injectCSSVars__=()=>{vue.useCssVars(e=>({"4a46f6a0":e.stripedColor,"3b3e6557":e.tableHeaderBgColor,"6bb0c622":e.tableBodyBgColor,ef8c8220:e.paginationBgColor,"5d2ee4b5":e.paginationColor,"1ffc238a":e.activePaginationBgColor,"18d4b062":e.activePaginationColor,ebaa8ea6:e.hoverBackgroundColor}))},__setup__=__default__.setup;__default__.setup=__setup__?(e,n)=>(__injectCSSVars__(),__setup__(e,n)):__injectCSSVars__;const Table_vue_vue_type_style_index_0_scoped_60425935_lang="",Table_vue_vue_type_style_index_1_lang="",_withScopeId=e=>(vue.pushScopeId("data-v-60425935"),e=e(),vue.popScopeId(),e),_hoisted_1$1=["id"],_hoisted_2$1={key:0,class:"table-tool"},_hoisted_3=vue.createTextVNode("导出数据"),_hoisted_4={key:0,style:{float:"left","margin-right":"5px"}},_hoisted_5={key:1,style:{float:"left","margin-right":"5px",visibility:"hidden"}},_hoisted_6=vue.createTextVNode(" 搜索 "),_hoisted_7=vue.createTextVNode(" 重置 "),_hoisted_8=["src","width","height"],_hoisted_9=["src","width","height"],_hoisted_10=["src","width","height"],_hoisted_11={key:1},_hoisted_12={key:1,class:"action-list"},_hoisted_13=["href","target","onClick"],_hoisted_14={key:2,class:"progress-cell"},_hoisted_15=["src"],_hoisted_16=["title"],_hoisted_17=["title"],_hoisted_18=["src"],_hoisted_19=["title"],_hoisted_20=["src"],_hoisted_21=["src"],_hoisted_22={class:"ant-pagination-options-quick-jumper"},_hoisted_23=_withScopeId(()=>vue.createElementVNode("span",null,"条 / 页",-1));function _sfc_render$4(e,n,r,i,a,o){const s=vue.resolveComponent("a-button"),l=vue.resolveComponent("down-outlined"),c=vue.resolveComponent("right-outlined"),u=vue.resolveComponent("a-input"),f=vue.resolveComponent("a-checkbox-group"),x=vue.resolveComponent("a-table-summary-cell"),h=vue.resolveComponent("a-table-summary-row"),g=vue.resolveComponent("a-table-summary"),v=vue.resolveComponent("a-table"),p=vue.resolveComponent("marquee-scroll"),C=vue.resolveComponent("skeleton");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["ecan-table",e.containerClass]),id:"ecanTable-"+e.id,style:vue.normalizeStyle(e.style)},[vue.createVNode(C,{loading:e.loading},{default:vue.withCtx(()=>{var b;return[e.isUseExport?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$1,[vue.createVNode(s,{class:"export-button",onClick:e.exportTableData},{default:vue.withCtx(()=>[_hoisted_3]),_:1},8,["onClick"])])):vue.createCommentVNode("",!0),vue.createVNode(v,{ref:"tableRef",class:"table",style:vue.normalizeStyle({height:e.tableHeight}),columns:e.tableColumns,"data-source":e.tableDataSource,bordered:e.bordered,size:e.size,scroll:e.y?{x:e.x,y:e.y}:{x:e.x},pagination:e.isAutoScroll?!1:e.pagination,"row-class-name":e.rowClassName,"show-header":!e.hideTableHeader,indentSize:30,onChange:e.tableChange},{expandIcon:vue.withCtx(d=>{var m;return[(m=d.record.children)!=null&&m.length?(vue.openBlock(),vue.createElementBlock("span",_hoisted_4,[d.expanded?(vue.openBlock(),vue.createBlock(l,{key:0,onClick:y=>d.onExpand(d.record,y)},null,8,["onClick"])):(vue.openBlock(),vue.createBlock(c,{key:1,onClick:y=>d.onExpand(d.record,y)},null,8,["onClick"]))])):(vue.openBlock(),vue.createElementBlock("span",_hoisted_5,[vue.createVNode(l)]))]}),customFilterDropdown:vue.withCtx(({column:d,selectedKeys:m,setSelectedKeys:y,confirm:A,clearFilters:_})=>[vue.createElementVNode("div",{class:"ecan-table-filter",style:vue.normalizeStyle({height:e.filterDropdownHeight})},[vue.createVNode(u,{value:d.filterOptionsInputValue,"onUpdate:value":k=>d.filterOptionsInputValue=k,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),vue.createVNode(f,{value:d.filterCheckboxGroupValue,"onUpdate:value":k=>d.filterCheckboxGroupValue=k,class:"filter-checkbox",options:e.useFilterOptions(d),onChange:k=>e.useSetSelectedKeys(y,d)},null,8,["value","onUpdate:value","options","onChange"]),vue.createElementVNode("div",null,[vue.createVNode(s,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>A()},{default:vue.withCtx(()=>[_hoisted_6]),_:2},1032,["onClick"]),vue.createVNode(s,{size:"small",style:{width:"90px"},onClick:vue.withModifiers(k=>e.onResetFilter(_,d),["stop"])},{default:vue.withCtx(()=>[_hoisted_7]),_:2},1032,["onClick"])])],4)]),bodyCell:vue.withCtx(({column:d,index:m,text:y,record:A})=>{var _,k,T,F,M,B;return[d.dataIndex==="SEQ"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[e.seqIcon?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[m===0?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon1,width:e.iconSize,height:e.iconSize},null,8,_hoisted_8)):m===1?(vue.openBlock(),vue.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon2,width:e.iconSize,height:e.iconSize},null,8,_hoisted_9)):m>=2?(vue.openBlock(),vue.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon3,width:e.iconSize,height:e.iconSize},null,8,_hoisted_10)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:"seq-icon seq-text",style:vue.normalizeStyle({fontSize:e.fontSize})},vue.toDisplayString(m+1),5)],64)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_11,vue.toDisplayString(m+1),1))],64)):d.dataIndex==="ACTION"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_12,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.actionList,(L,V)=>(vue.openBlock(),vue.createElementBlock("div",{class:"action",key:V},[vue.createElementVNode("a",{href:e.handleHref(L.href,A),target:e.handleHrefTarget(L.target),style:vue.normalizeStyle({color:L.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:U=>e.onTouchHrefEvent(L.target,e.handleHref(L.href,A))},vue.toDisplayString(L.title),13,_hoisted_13)]))),128))])):d.format==="progress"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_14,[vue.createElementVNode("div",{class:"progress",style:vue.normalizeStyle({background:d.progressColor||"#1890ff",height:d.progressWidth||"18px",width:`${e.handleProgressText(y,d.progressTextDecimalPlaces)}%`})},null,4),vue.createElementVNode("div",{class:"progress-text",style:vue.normalizeStyle({color:+e.handleProgressText(y)<100?d.progressTextColor||"#333":d.progressFinishedTextColor||"#fff"})},vue.toDisplayString(e.handleProgressText(y,d.progressTextDecimalPlaces))+"% ",5)])):(vue.openBlock(),vue.createElementBlock("div",{key:3,style:vue.normalizeStyle({fontSize:e.fontSize,fontWeight:e.isLinkStyle(d)?"bold":e.fontWeight,...e.getCellStyle(d,y)})},[e.isMatchCondition(d,y)&&(d==null?void 0:d.cellAlign)==="right"&&((_=d==null?void 0:d.attribute)!=null&&_.icon)?(vue.openBlock(),vue.createElementBlock("img",{key:0,style:vue.normalizeStyle(e.getAttrImgStyle(d)),src:e.getAttrImgSrc(d)},null,12,_hoisted_15)):vue.createCommentVNode("",!0),d.format==="contrast"?(vue.openBlock(),vue.createElementBlock("span",{key:1,title:((k=d==null?void 0:d.customFormatter)==null?void 0:k.split("{value}")[0])||""},vue.toDisplayString(((T=d==null?void 0:d.customFormatter)==null?void 0:T.split("{value}")[0])||""),9,_hoisted_16)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:vue.normalizeClass([e.contrastClass(d.format)]),style:vue.normalizeStyle(e.getChgStyle({...d,text:y})),title:d.format!=null?e.formatFn(y,d):y},[d.format==="contrast"?(vue.openBlock(),vue.createElementBlock("div",{key:0,style:vue.normalizeStyle(e.chgBoxStyle)},[vue.createElementVNode("img",{style:vue.normalizeStyle(e.getChgBoxImgStyle({...d,text:y})),src:e.getChgBoxImgSrc(y)},null,12,_hoisted_18)],4)):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString(d.format!=null?e.formatFn(y,d):e.getCellText(y,d)),1)],14,_hoisted_17),d.format==="contrast"?(vue.openBlock(),vue.createElementBlock("span",{key:2,title:((F=d==null?void 0:d.customFormatter)==null?void 0:F.split("{value}")[1])||""},vue.toDisplayString(((M=d==null?void 0:d.customFormatter)==null?void 0:M.split("{value}")[1])||""),9,_hoisted_19)):vue.createCommentVNode("",!0),e.isMatchCondition(d,y)&&(d==null?void 0:d.cellAlign)!=="right"&&((B=d==null?void 0:d.attribute)!=null&&B.icon)?(vue.openBlock(),vue.createElementBlock("img",{key:3,style:vue.normalizeStyle(e.getAttrImgStyle(d)),src:e.getAttrImgSrc(d)},null,12,_hoisted_20)):vue.createCommentVNode("",!0)],4))]}),summary:vue.withCtx(()=>[e.summaryList.length>0?(vue.openBlock(),vue.createBlock(g,{key:0,fixed:e.isSummaryFixed},{default:vue.withCtx(()=>[vue.createVNode(h,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.summaryList,(d,m)=>(vue.openBlock(),vue.createBlock(x,{key:m,index:m,style:vue.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:d.cellAlign||"center",color:e.cellFontColor,borderBottomColor:e.borderColor})},{default:vue.withCtx(()=>[vue.createElementVNode("span",{class:vue.normalizeClass([e.contrastClass(d.format)]),style:vue.normalizeStyle({...e.getChgStyle({...d,text:d.total}),fontSize:e.fontSize,fontWeight:e.fontWeight})},[d.format==="contrast"?(vue.openBlock(),vue.createElementBlock("div",{key:0,style:vue.normalizeStyle(e.chgBoxStyle)},[vue.createElementVNode("img",{style:vue.normalizeStyle(e.getChgBoxImgStyle({...d,text:d.total})),src:e.getChgBoxImgSrc(d.total)},null,12,_hoisted_21)],4)):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString((d.format!=null||d.format!=="")&&e.formatFn(d.total,d)),1)],6)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1},8,["fixed"])):vue.createCommentVNode("",!0)]),_:1},8,["style","columns","data-source","bordered","size","scroll","pagination","row-class-name","show-header","onChange"]),e.paginationShow?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[(b=e.tableDataSource)!=null&&b.length&&!e.simple&&e.pageSizeShow&&e.pageSizeVisible?(vue.openBlock(),vue.createBlock(vue.Teleport,{key:0,to:"#ecanTable-"+e.id+" .ant-pagination"},[vue.createElementVNode("div",_hoisted_22,[vue.withDirectives(vue.createElementVNode("input",{type:"text","onUpdate:modelValue":n[0]||(n[0]=d=>e.pageSize=d)},null,512),[[vue.vModelText,e.pageSize]]),_hoisted_23])],8,["to"])):vue.createCommentVNode("",!0)],64)):vue.createCommentVNode("",!0),e.isAutoScroll?(vue.openBlock(),vue.createElementBlock("div",{key:2,class:vue.normalizeClass(["auto-scroll-content ant-table-wrapper table",e.autoScrollClass]),style:vue.normalizeStyle({width:"100%",position:"absolute",left:"0",height:e.autoScrollHeight+"px",top:e.autoScrollTop+"px",overflow:"auto"})},[vue.createVNode(p,{visible:e.isScroll,step:e.scrollSpeed,wrapStyle:{display:"flex",flexDirection:"column",flexWrap:"wrap"}},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"scroll-wrap",style:vue.normalizeStyle(e.scrollWrapStyle)},null,4)]),_:1},8,["visible","step"])],6)):vue.createCommentVNode("",!0)]}),_:1},8,["loading"])],14,_hoisted_1$1)}const Table=_export_sfc$1(__default__,[["render",_sfc_render$4],["__scopeId","data-v-60425935"]]),EcanTable=withInstall$1(Table),mapProps={...props,mapJson:null,data:[],name:"地图",keyName:"地图",type:"ecanMap",width:"400px",height:"400px",backgroundImage:"",backgroundImageRepeat:"no-repeat",geoBackgroundImage:"",geoBackgroundImageRepeat:"no-repeat",symbolImage:"",symbolWidth:10,symbolHeight:10,itemStyleColor:"#11BFDA",labelFontSize:14,labelShow:!0,geoLabelShow:!0,geoLabelColor:"#000",geoZoom:1,geoRoam:!1,geoCenter:"",geoLabelFontSize:12,labelColor:"",labelFormatter:"{b}",geoItemStyleAreaColor:"#eee",geoItemStyleBorderColor:"#000",geoItemStyleBorderWidth:1,geoItemStyleShadowColor:"",geoItemStyleShadowOffsetX:0,geoItemStyleShadowOffsetY:0,geoItemStyleShadowBlur:0,geoEmphasisDisabled:!1,geoEmphasisLabelColor:"#fff",geoEmphasisItemStyleAreaColor:"#f00",geoEmphasisItemStyleBorderColor:"#000",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{name}:{value}",tooltipRequestData:{requestUrl:"",requestMethod:"get",requestParams:[]},tooltipBackgroundColor:"#fff",areaStyleKeyName:"",mapAreaStyleConfig:[],legendShow:!1,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"bottom",legendLeft:"right",mapLegendType:"circle",legendTextShow:!0,legendTitle:"",legendTitleColor:"#333",legendTitleFontSize:"16px",legendFrontText:"",legendAfterText:"",legendBoxShadow:""},mapComponentProps=transformToComponentProps(mapProps),mapEvents=["refreshData","click"];core$1.use([renderers.CanvasRenderer,charts.MapChart,charts.ScatterChart,components$1.VisualMapComponent,components$1.TooltipComponent,components$1.GraphicComponent]);const _sfc_main$3=vue.defineComponent({name:"EcanMap",components:{Echarts},props:{...mapComponentProps},setup(e){const n=useRequestData({...e.tooltipRequestData,requestHeaders:{}}),r=vue.ref(),i=vue.ref(""),a=vue.ref(""),o=usePickComponentStyle(e,["backgroundImage"]),s=vue.ref(),l=vue.computed(()=>useImagePath(e.geoBackgroundImage)),c=vue.computed(()=>useImagePath(e.backgroundImage)),u=vue.ref([]),f=vue.computed(()=>e.geoBackgroundImage?{image:vue.unref(s),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),x=vue.computed(()=>{const D=e.symbolImage;return e.symbolImage?"image://"+useImagePath(D):"circle"}),h=D=>{let q=e.tooltipFormatter;const j=q.match(/\{(.+?)\}/g);if(j==null||j.length===0)return q;for(let H=0;H<j.length;H++){const K=j[H];let G=K.slice(1,-1).trim();const Y=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,J=G.match(Y);for(let ee=0;ee<J.length;ee++){const X=J[ee],W=D[X];W!=null&&(G=G.replace(X,W))}q=q.replace(K,G)}return q.split(`
128
+ `)},g=vue.ref(!1),v=vue.ref("");let p=new AbortController;const C=(D,q)=>{const j=p.signal;g.value=!0,i.value=D,n({name:D,signal:j}).then(H=>{var K,G;if(H){const Y=((G=(K=H==null?void 0:H.data)==null?void 0:K.data)==null?void 0:G.rows)||[];let J="";for(const ee of Y){const X=h(ee)||[];if(X!=null&&X.length)for(const W of X)J+=`<div style="word-break: break-all;white-space: normal;">${W}</div>`}J=`<div style="max-width:200px;">${J}</div>`,a.value=J,q(vue.unref(v),J)}else j.aborted?a.value="Loading":a.value=D,q(vue.unref(v),a.value);g.value=!1})},b=vue.ref(),d=vue.computed(()=>e.dataType==="request"?b.value:e.data),m=vue.computed(()=>{const D=[],{mapAreaStyleConfig:q}=e;if(q!=null&&q.length)for(const j of q)D.push({...j,key:nanoid(6)});return D}),y=vue.computed(()=>{const D=[];for(const q of vue.unref(m)){let j="";q.value1&&(j+=`value ${q.rule1} ${q.value1}`),q.value2&&(j+=`${q.value1?"&&":""} value ${q.rule2} ${q.value2}`),j&&D.push({rule:j,color:q.color,key:q.key})}return D.reverse()}),A=vue.computed(()=>{var j;const D=[],{areaStyleKeyName:q}=e;if((j=vue.unref(d))!=null&&j.length)for(const H of vue.unref(d)){const K=H[q];if(K||K===0){const G=vue.unref(y).find(Y=>runCode(Y.rule,{value:K}));G&&D.push({name:H.name,itemStyle:{areaColor:vue.unref(u).includes(G.key)?e.geoItemStyleAreaColor:G.color}})}}return D}),_=vue.computed(()=>{const D=e.geoCenter;let q;return typeof D=="string"&&D!==""&&(q=D.split(",")),{tooltip:{show:!0},graphic:[{type:"image",style:{width:parseFloat(e.width),height:parseFloat(e.height),image:vue.unref(c)},top:"center"}],geo:{zoom:e.geoZoom,roam:e.geoRoam,center:q,map:`map-${e.id}`,tooltip:{show:e.tooltipShow,trigger:"item",backgroundColor:e.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:e.tooltipTextStyleColor},formatter:(j,H,K)=>{v.value=H;const{name:G=""}=j,{requestUrl:Y}=e.tooltipRequestData;if(!Y){let J="",ee=e.tooltipFormatter;ee===""&&(ee="{name}:{value}");const X=vue.unref(d).find(W=>W.name===G);return X?(J+=useVariablesInText(ee,{textData:{name:G,...X}},{useNewline:!0,useSpace:!0}),J):G}if(vue.unref(g))vue.unref(i)!==G&&(p.abort(),p=new AbortController);else{if(vue.unref(i)===G)return vue.unref(a);C(G,K)}return"Loading"}},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:vue.unref(f),borderColor:e.geoItemStyleBorderColor,borderWidth:e.geoItemStyleBorderWidth,shadowColor:e.geoItemStyleShadowColor,shadowBlur:e.geoItemStyleShadowBlur,shadowOffsetX:e.geoItemStyleShadowOffsetX,shadowOffsetY:e.geoItemStyleShadowOffsetY},emphasis:{disabled:e.geoEmphasisDisabled,label:{color:e.geoEmphasisLabelColor},itemStyle:{areaColor:e.geoEmphasisItemStyleAreaColor,borderColor:e.geoEmphasisItemStyleBorderColor}},regions:A.value},series:[{type:"scatter",coordinateSystem:"geo",itemStyle:{color:e.itemStyleColor},symbol:vue.unref(x),symbolSize:[e.symbolWidth,e.symbolHeight],label:{show:e.labelShow,fontSize:e.labelFontSize,formatter:e.labelFormatter,color:e.labelColor},tooltip:{show:e.tooltipShow,textStyle:{color:e.tooltipTextStyleColor}},data:d.value}]}}),k=vue.ref(!1),T=async()=>{var j;k.value=!1;const D=e.mapJson,q=`map-${e.id}`;if(D!=null&&D.path){const H=await request(((j=window==null?void 0:window.config)==null?void 0:j.uploadPath)+D.path);core$1.registerMap(q,(H==null?void 0:H.data)||{})}else core$1.registerMap(q,{});k.value=!0};vue.watch(()=>e.mapJson,()=>{T()},{immediate:!0,deep:!0});const F=async D=>{var H,K,G,Y;const q=(K=(H=D==null?void 0:D.data)==null?void 0:H.data)==null?void 0:K.rows,j=`map-${e.id}`;if(q!=null&&q.path){const J=await request(q.path);core$1.registerMap(j,(J==null?void 0:J.data)||{})}else if(Array.isArray(q))if(b.value=q,(G=q[0])!=null&&G.mapUrl){const J=await request((Y=q[0])==null?void 0:Y.mapUrl);core$1.registerMap(j,(J==null?void 0:J.data)||{})}else core$1.registerMap(j,{});else core$1.registerMap(j,{});vue.nextTick(()=>{k.value=!0})},M=useRequestData(e),B=async()=>{if(e.dataType==="request"){k.value=!1;try{const D=await M();F(D)}catch(D){console.error(D),k.value=!0}}},L=()=>{const D=V(e.id);switch(U(e.id,{...D,RECORD:{}}),e.dataType){case"static":T();break;case"request":B();break}},{getGlobalModel:V,setGlobalModel:U}=vue.inject(GLOBAL_MODEL,{getGlobalModel:D=>{},setGlobalModel:(D,q)=>{}}),P=useEmitEvent(e)("click",()=>{const D=V(e.id);U(e.id,{...D,RECORD:vue.unref(r)})});useOnEvent(e,{refreshData:L});const{setRequest:I}=vue.inject(REQUEST_MODEL,{setRequest:D=>{}});typeof I=="function"&&I({id:e.id,requestFn:L,sortNum:e.requestSort});const E=()=>{vue.unref(r)&&P()},S=(D={})=>{D.componentType==="geo"&&D.region?r.value=D.region:r.value=null},N=vue.computed(()=>{const D={},{legendTop:q,legendLeft:j,legendBoxShadow:H}=e;return H&&(D.boxShadow=H),q==="bottom"?D.bottom=0:q==="top"&&(D.top=0),j==="left"?D.left=0:j==="right"&&(D.right=0),D}),w=vue.computed(()=>{const D={};return e.legendOrient==="vertical"&&(D.flexDirection="column"),D}),R=vue.computed(()=>{var D;if((D=vue.unref(m))!=null&&D.length){const q=[];for(const j of vue.unref(m)){const{value1:H,value2:K,rule1:G,rule2:Y,color:J}=j;H&&K?+H<+K?G.includes(">")&&Y.includes("<")&&q.push({text:`${H} - ${K}`,color:J,key:j.key}):+H>+K?G.includes("<")&&Y.includes(">")&&q.push({text:`${K} - ${H}`,color:J,key:j.key}):+H==+K&&q.push({text:`${H} - ${K}`,color:J,key:j.key}):H?q.push({text:`${G} ${H}`,color:J,key:j.key}):K&&q.push({text:`${Y} ${K}`,color:J,key:j.key})}return q}else return[]});return{option:_,style:o,isLoadedData:k,geoBackgroundImageRef:s,myGeoBackgroundImage:l,mapLegendStyle:N,legendContainerStyle:w,mapLegendList:R,hiddenLegendKey:u,customClick:E,onMouseOver:S,handleToggleVisible:D=>{const q=vue.unref(u).findIndex(j=>j===D);q>=0?u.value.splice(q,1):u.value.push(D)}}}}),Map_vue_vue_type_style_index_0_scoped_a22f3d73_lang="",_hoisted_1=["src"],_hoisted_2=["title","onClick"];function _sfc_render$3(e,n,r,i,a,o){const s=vue.resolveComponent("echarts");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-map",style:vue.normalizeStyle(e.style)},[e.isLoadedData?(vue.openBlock(),vue.createBlock(s,{key:0,option:e.option,"update-options":{notMerge:!0},autoresize:"","onZr:click":e.customClick,onMouseover:e.onMouseOver},null,8,["option","onZr:click","onMouseover"])):vue.createCommentVNode("",!0),vue.withDirectives(vue.createElementVNode("img",{ref:"geoBackgroundImageRef",src:e.myGeoBackgroundImage},null,8,_hoisted_1),[[vue.vShow,!1]]),e.legendShow?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"map-legend",style:vue.normalizeStyle(e.mapLegendStyle)},[vue.createElementVNode("div",{class:"legend-title",style:vue.normalizeStyle({color:e.legendTitleColor,fontSize:e.legendTitleFontSize})},vue.toDisplayString(e.legendTitle),5),vue.createElementVNode("div",{class:"legend-container",style:vue.normalizeStyle(e.legendContainerStyle)},[vue.createElementVNode("div",{style:vue.normalizeStyle({color:e.legendTextStyleColor,marginRight:e.legendOrient==="horizontal"?"5px":"",marginBottom:e.legendOrient==="vertical"?"5px":""})},vue.toDisplayString(e.legendFrontText),5),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.mapLegendList,(l,c)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["legend-item",{hidden:e.hiddenLegendKey.includes(l.key)}]),style:vue.normalizeStyle({marginRight:e.legendOrient==="horizontal"?"10px":"",marginLeft:e.legendOrient==="horizontal"?"10px":"",marginBottom:e.legendOrient==="vertical"?"10px":"",marginTop:e.legendOrient==="vertical"?"10px":""}),key:c,title:e.legendTextShow?"":l.text,onClick:u=>e.handleToggleVisible(l.key)},[vue.createElementVNode("div",{class:"color-block",style:vue.normalizeStyle({backgroundColor:l.color,width:"20px",height:e.mapLegendType==="rect"?"16px":"20px",borderRadius:e.mapLegendType==="circle"?"50%":"4px"})},null,4),e.legendTextShow?(vue.openBlock(),vue.createElementBlock("span",{key:0,class:"legend-item-text",style:vue.normalizeStyle({color:e.legendTextStyleColor,marginLeft:"10px"})},vue.toDisplayString(l.text),5)):vue.createCommentVNode("",!0)],14,_hoisted_2))),128)),vue.createElementVNode("div",{style:vue.normalizeStyle({color:e.legendTextStyleColor,marginLeft:e.legendOrient==="horizontal"?"5px":"",marginTop:e.legendOrient==="vertical"?"5px":""})},vue.toDisplayString(e.legendAfterText),5)],4)],4)):vue.createCommentVNode("",!0)],4)}const Map$1=_export_sfc$1(_sfc_main$3,[["render",_sfc_render$3],["__scopeId","data-v-a22f3d73"]]),EcanMap=withInstall$1(Map$1),dataSelectProps={...props,name:"下拉框选择器-数据",keyName:"下拉框选择器-数据",width:"120px",height:"33px",type:"ecanDataSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,graphicConfig:{},valueType:"value",isAllowClear:!0,optionFontSize:"14px"},dataSelectComponentProps=transformToComponentProps(dataSelectProps),dataSelectEvents=["selectChange","refreshData"],_sfc_main$2=vue.defineComponent({name:"EcanDataSelect",components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption},props:{...dataSelectComponentProps},setup(e,{expose:n}){const r=usePickComponentStyle(e),i=()=>document.getElementById("ProviderConfig")||document.body,a=vue.ref(e.data||[]),o=vue.ref(),s=vue.computed({get:()=>{var U;const{mode:V}=e;return(U=vue.unref(a))!=null&&U.length?o.value:V==="multiple"||V==="tags"||V==="combobox"?[]:""},set:V=>{o.value=V}}),{getGlobalModel:l,setGlobalModel:c,getRecordValueByKeyName:u}=vue.inject(GLOBAL_MODEL,{getGlobalModel:V=>{},setGlobalModel:(V,U)=>{},getRecordValueByKeyName:V=>{}}),f=e.dataFieldNames;vue.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,a.value],()=>{const{mode:V,selectFirstOption:U,value:$}=e,P=u($),I=f.value;if(V==="multiple"||V==="tags"||V==="combobox"){if(P)o.value=P.split(",");else if(U){const E=vue.unref(a)[0];o.value=E?[E[I]]:[]}}else if(P)o.value=P;else if(U){const E=vue.unref(a)[0];o.value=E?E[I]:""}},{immediate:!0});const x=(V,U)=>{const $=f.label,P=f.value;let I;const E=U[$],S=U[P];return E!=null?I=E:S!=null&&(I=S),(I==null?void 0:I.toLowerCase().indexOf(V==null?void 0:V.toLowerCase()))>=0},h=V=>{const{label:U,value:$,options:P}=e.dataFieldNames;if(P&&Array.isArray(V))if(V.some(I=>P in I)){const I={},E=[];V.forEach(S=>{I[S[P]]||(I[S[P]]=[]),I[S[P]].push({[U]:S[U],[$]:S[$]})});for(const S in I)E.push({[U]:S,[P]:I[S]});return E}else return V;else if(!P)return V},g=vue.ref(!1),v=V=>{var U,$;if(a.value=h((($=(U=V==null?void 0:V.data)==null?void 0:U.data)==null?void 0:$.rows)||[]),e.selectFirstOption){let P=vue.unref(a)[0];if(f.options){const I=P[f.options];I&&I.length&&(P=I[0])}o.value=P[f.value]}},p=useRequestData(e),C=async()=>{if(e.dataType==="request"){g.value=!0;try{const V=await p();v(V)}catch(V){console.error(V)}finally{g.value=!1}}},b=vue.computed(()=>{let V=o.value;if(e.valueType==="label"&&vue.unref(o)&&vue.unref(a)){const U=f.label,$=f.value;if(e.mode==="multiple")V=vue.unref(a).filter(P=>vue.unref(o).includes(P[$])).map(P=>P[U]);else{const P=vue.unref(a).find(I=>vue.unref(o)===I[$]);P&&(V=P[U])}}return V}),d=vue.ref([]),m=vue.computed(()=>{const V={};if(e.mode!=="multiple"){const U=vue.unref(d).find($=>$.value===vue.unref(o));U&&(V.itemCodes=U.item_codes)}return V}),y=vue.computed(()=>{const{value:V,label:U}=f,$=vue.unref(a).find(P=>P[V]===vue.unref(s));return $?{label:$[U],value:$[V]}:{}});c(e.id,{type:e.type,value:b,...vue.unref(m),recordData:vue.unref(y)});const _=useEmitEvent(e)("selectChange",()=>{const V=e.id,U=l(V);c(V,{...U,...vue.unref(m),RECORD:b,recordData:vue.unref(y)})}),k=(V=[])=>{if(a.value=h(V),e.selectFirstOption){let U=vue.unref(a)[0];if(f.options){const $=U[f.options];$&&$.length&&(U=$[0])}o.value=U[f.value]}c(e.id,{type:e.type,value:b,...vue.unref(m),recordData:vue.unref(y)})},T=V=>{var I;const{data:U}=(V==null?void 0:V.data)||{},$=f.label,P=f.value;if(U){const{rows:E=[]}=((I=V==null?void 0:V.data)==null?void 0:I.data)||{};d.value=E;const S=E.map(R=>({[$]:R.label,[P]:R.value})),{id:N}=e,w=l(N);c(N,{...w,...vue.unref(m)}),k(S)}else k([])},F=useIndicatorData(e,T),M=async()=>{try{g.value=!0;const V=await F();T(V)}catch(V){console.error(V)}finally{g.value=!1}},B=()=>{switch(e.dataType){case"indicator":{M();break}case"request":C();break}};useOnEvent(e,{selectChange:_,refreshData:B});const{setRequest:L}=vue.inject(REQUEST_MODEL,{setRequest:({id:V,sortNum:U,requestFn:$})=>{}});return typeof L=="function"&&L({id:e.id,requestFn:B,sortNum:e.requestSort}),n({refreshData:B}),{style:r,getPopupContainer:i,myValue:o,selectChange:_,options:a,filterOption:x,loading:g,resultValue:s}}}),DataSelect_vue_vue_type_style_index_0_scoped_585d4f8a_lang="",DataSelect_vue_vue_type_style_index_1_lang="";function _sfc_render$2(e,n,r,i,a,o){const s=vue.resolveComponent("a-select-option"),l=vue.resolveComponent("a-select");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-select",style:vue.normalizeStyle(e.style)},[vue.createVNode(l,{class:"select",value:e.resultValue,"onUpdate:value":n[0]||(n[0]=c=>e.resultValue=c),placeholder:e.placeholder,showSearch:"",allowClear:e.isAllowClear,mode:e.mode,getPopupContainer:e.getPopupContainer,fieldNames:e.dataFieldNames,maxTagCount:e.maxTagCount,filterOption:e.filterOption,loading:e.loading,autoClearSearchValue:e.autoClearSearchValue,onChange:e.selectChange,style:vue.normalizeStyle({fontSize:e.optionFontSize})},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.options,(c,u)=>(vue.openBlock(),vue.createBlock(s,{key:u,value:c.value,label:c.label,style:vue.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","label","style"]))),128))]),_:1},8,["value","placeholder","allowClear","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange","style"])],4)}const DataSelect=_export_sfc$1(_sfc_main$2,[["render",_sfc_render$2],["__scopeId","data-v-585d4f8a"]]),EcanDataSelect=withInstall$1(DataSelect),pivotTableProps={...props,name:"透视表",keyName:"透视表",width:"800px",height:"400px",type:"ecanPivotTable",graphicConfig:{},dataType:"indicator",data:[],dimensionList:[],indicatorList:[],styleConfig:{borderColor:"#E3E3E3",headerBgColor:"#ECF1F5",headerColor:"#000000",bodyBgColor:"#FFFFFF",bodyColor:"#000000",indicatorsHeaderBgColor:"#ECF1F5",indicatorsHeaderColor:"#000000",indicatorsBodyBgColor:"#FFFFFF",indicatorsBodyColor:"#000000",aggregateBgColor:"#ECF1F5",aggregateColor:"#000000"}},pivotTableComponentProps=transformToComponentProps(pivotTableProps),pivotTableEvents=["refreshData"],_sfc_main$1=vue.defineComponent({name:"EcanPivotTable",components:{},props:{...pivotTableComponentProps},setup(e,{expose:n}){var U,$;const r=(U=window==null?void 0:window.config)==null?void 0:U.pageId,i=($=window==null?void 0:window.config)==null?void 0:$.indicatorToken,a=usePickComponentStyle(e),o=vue.ref(!1),s=vue.ref(),l=vue.ref([]),c=vue.ref([]),u=vue.ref({}),f=vue.ref({}),x=vue.ref([]),{pageMode:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),g=vue.computed(()=>vue.unref(s).option),v=P=>{vue.unref(s).refreshData(P)},p=vue.computed(()=>{const{indicators:P=[],queryColumnList:I=[]}=e.graphicConfig,E=[];for(const R of vue.unref(l)){const{data:O,indicatorKey:D="",calculateType:q=""}=R||{};E.push({label:O.indicatorKey,columnName:O.indicatorKey,location:"LEFT",show:!0,calcType:"BUILT_IN",builtInFormula:q,builtInValueSource:D})}const S=[];for(const R of vue.unref(c)){const O=P.find(j=>j.label===R.key),D=I.find(j=>j.label===R.key),q=O||D;q&&S.push({fieldName:q.name,fieldType:q.genericType,fieldValue:R.type==="dimension"?R.value.join(","):R.value,hrpIndexCode:q.indexCode,hrpIndexCodeNum:q.indexCodeNum,id:q.id,label:q.label,rule:R.rule,targetSource:"",typeGuid:"",type:R.type})}const N=[];if(Object.keys(vue.unref(u)))for(const R in vue.unref(u))vue.unref(u)[R]&&N.push({key:R,num:vue.unref(u)[R],rule:"TOP"});const w=[];if(Object.keys(vue.unref(f)))for(const R in vue.unref(f)){const{order:O,type:D,columnData:q,columnHeader:j}=vue.unref(f)[R],H={label:R,order:O.toUpperCase(),type:"COMBINATION",fieldType:D};D==="indicators"&&(H.columnHeader=j,H.columnData=q,H.type="NORMAL"),w.push(H)}return{calc:E,filter:S,truncations:N,sorts:w,aggregateMethod:vue.unref(x)||[]}}),C=useIndicatorData(e,v),b=async()=>{const{dimensionList:P}=e,{rows:I=[],columns:E=[]}=vue.unref(g),S=[],N=[];for(const R of I)S.push(R.dimensionKey);for(const R of E)N.push(R.dimensionKey);S!=null&&S.length||S.push(...P.filter(R=>R.position==="rows").map(R=>R.key)),N!=null&&N.length||N.push(...P.filter(R=>R.position==="columns").map(R=>R.key));const w={...vue.unref(p),rowDimensionKeys:S,colDimensionKeys:N};try{o.value=!0;const R=await C({pivotTableCal:w});v(R)}catch(R){console.error(R)}finally{o.value=!1}},d=()=>{switch(e.dataType){case"indicator":b();break}},{setRequest:m}=vue.inject(REQUEST_MODEL,{setRequest:({id:P,sortNum:I,requestFn:E})=>{}});typeof m=="function"&&m({id:e.id,requestFn:d,sortNum:e.requestSort}),n({refreshData:d});const A=useEmitEvent(e)("click",()=>{vue.unref(s).click()});useOnEvent(e,{refreshData:d,click:A}),vue.onMounted(()=>{});const _=P=>{vue.unref(l).find(I=>I.data.indicatorKey===P.data.indicatorKey)||l.value.push(P),b()},k=P=>{const I=vue.unref(l).findIndex(E=>E.data.indicatorKey===P);I!==-1&&l.value.splice(I,1)},T=P=>{const{key:I="",rule:E={},type:S=""}=P||{},{rule:N,value:w}=E;if(I&&N&&w){const R=c.value.find(O=>O.key===I&&O.type===S);R?(R.rule=N,R.value=w):c.value.push({key:I,rule:N,value:w,type:S})}else{const R=vue.unref(c).findIndex(O=>O.key===I&&O.type===S);R!==-1&&c.value.splice(R,1)}b()},F=async({key:P,callback:I})=>{const{queryColumnList:E=[],edvDataSetId:S="",source:N}=e.graphicConfig,w=E.find(q=>q.name===P),R=await request.post(`${INDICATOR_URL}/diagram/groupvalue`,{source:N,groupColumn:P,hrpIndexTypeGuid:w.typeGuid,pageId:r,pageFlag:!0,edvDataSetId:S},{headers:{Authentication:i,operateContext:CONTEXT}}),{success:O,data:D=[]}=R.data;O&&I(D.map(q=>({value:q})))},M=P=>{u.value=P||{},b()},B=P=>{const{key:I,order:E,type:S,columnData:N=[]}=P;vue.unref(f)[I]={order:E,type:S,columnData:N},b()},L=P=>{x.value=P,b()};return{props:e,style:a,pageMode:h,pivotTableRef:s,calculateList:l,click:A,onTableChange:({type:P,data:I})=>{switch(P){case"1":_(I);break;case"2":k(I);break;case"3":T(I);break;case"4":B(I);break;case"5":F(I);break;case"6":M(I);break;case"7":case"8":b();break;case"9":L(I);break}}}}}),PivotTableContainer_vue_vue_type_style_index_0_scoped_4db833ee_lang="";function _sfc_render$1(e,n,r,i,a,o){const s=vue.resolveComponent("pivot-table");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-pivot-table",style:vue.normalizeStyle(e.style)},[vue.createVNode(s,vue.mergeProps({ref:"pivotTableRef"},e.props,{pageMode:e.pageMode,calculateList:e.calculateList,onTableChange:e.onTableChange}),null,16,["pageMode","calculateList","onTableChange"])],4)}const PivotTableContainer=_export_sfc$1(_sfc_main$1,[["render",_sfc_render$1],["__scopeId","data-v-4db833ee"]]),EcanPivotTable=withInstall$1(PivotTableContainer),valueLineProps={...props,id:"",name:"双值轴折线图",keyName:"双值轴折线图",type:"ecanValueLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:0,value:0,value2:10},{name:10,value:20,value2:35},{name:20,value:30,value2:25},{name:30,value:40,value2:55}],titleText:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a}:{c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,tooltipTextStyleColor:"",customPoint:"",axisMarkPoint:[],markPointFormatter:"{x}, {y}"},valueLineComponentProps=transformToComponentProps(valueLineProps),valueLineEvents=["click","refreshData","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.LineChart,components$1.ToolboxComponent,components$1.TitleComponent,components$1.LegendComponent,components$1.MarkLineComponent,components$1.MarkPointComponent]);const _sfc_main=vue.defineComponent({name:"EcanValueLine",props:{...valueLineComponentProps},components:{Spin,Echarts,EcanModal},setup(e,{expose:n}){const{pageMode:r,fontFamily:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),a=vue.ref(),o=vue.ref(!1),s=usePickComponentStyle(e),l=vue.ref([]),c=vue.ref(),u=vue.computed(()=>o.value?ZOOM_FONT_SIZE:12),f=vue.ref({});let x;const h=vue.computed(()=>{const S=e.xAxisLabelFormatter,N=e.yAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(i)},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,orient:e.toolboxOrient,feature:{myDownload:{show:e.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(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.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 w;o.value=!0,(w=c.value)==null||w.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){antDesignVue.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:u.value,color:e.tooltipTextStyleColor},show:e.tooltipShow,formatter:w=>{var q;const R=w.length;let O="",D=e.tooltipFormatter;x=(q=w[0])==null?void 0:q.data,D===""&&(D="{marker} {a} {c}");for(let j=0;j<R;j++){const{marker:H,seriesName:K,name:G,value:Y,data:J}=w[j]||{};if(j===0){let ee=G;typeof G=="string"&&G[0]==="0"&&!isNaN(+G)&&(ee=(+G).toString()),O+=`${useValueFormatter(S,ee)}<br/>`}O+=useVariablesInText(D,{textData:{marker:H,a:K,b:Y[0],c:Y[1]||0,...J==null?void 0:J.record}},{useNewline:!0,useSpace:!0}),O+="<br/>"}return O},position:e.tooltipPosition||void 0},xAxis:{type:"value",boundaryGap:e.isBoundaryGap,minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{show:e.xAxisLabelShow,color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(w){return typeof w=="string"&&w[0]==="0"&&!isNaN(+w)&&(w=(+w).toString()),useValueFormatter(S,w)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"},max:e.xAxisMaxValue||null},yAxis:{type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(w){return useValueFormatter(N,w)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"},max:e.yAxisMaxValue||null},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(o.value?ZOOM_FONT_SIZE:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:o.value?ZOOM_FONT_SIZE:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,formatter:w=>getLegendFormat(e.legendFormatter,{name:w})},series:vue.unref(l)}}),g=()=>{o.value=!1},{getGlobalModel:v,setGlobalModel:p,getRecordValueByKeyName:C}=vue.inject(GLOBAL_MODEL,{getGlobalModel:S=>{},setGlobalModel:(S,N)=>{},getRecordValueByKeyName:S=>{}}),b=vue.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),d=(S,N,w,R,O,D,q,j)=>{const H=(-(O*j-D*q)/(q-O)+(S*R-N*w)/(w-S))/((R-N)/(w-S)-(j-D)/(q-O)),K=(R-N)/(w-S)*(-(O*j-D*q)/(q-O)+(S*R-N*w)/(w-S))/((R-N)/(w-S)-(j-D)/(q-O))-(S*R-N*w)/(w-S);return[H,K]},m=()=>{var w;const S={symbol:"circle",tooltip:{trigger:"item",formatter:R=>{let O="",D=e.markPointFormatter;D===""&&(D="{x}, {y}");const{data:{coord:q=[]}}=R||{};return O+=useVariablesInText(D,{textData:{x:q[0]||0,y:q[1]||0}},{useNewline:!0,useSpace:!0}),O+="<br/>",O}},data:[]},{axisMarkPoint:N=[]}=e;for(const R of N){const{coord:O=""}=R,D=[];let q=[];if(O.includes("getIntersectPoint")){const j=(w=O.match(/getIntersectPoint\((.*?)\)/)[1])==null?void 0:w.split(",");if((j==null?void 0:j.length)===8){const H=[];for(const K of j){const G=K.replaceAll(" ","");(G==null?void 0:G.slice(0,1))==="{"&&(G==null?void 0:G.slice(-1))==="}"?H.push(+C(G)||0):H.push(+G)}q=d(...H)}}else q=O.split(",");(q==null?void 0:q.length)===2&&(D[0]=+q[0],D[1]=+q[1]),D!=null&&D.length&&S.data.push({coord:D,symbolSize:R.symbolSize,itemStyle:{color:R.pointColor||"transparent",borderWidth:R.borderWidth||"transparent",borderColor:R.borderColor||"transparent"},label:{formatter:R.label,position:R.labelPosition,color:R.labelColor||"transparent"}})}return S},y=S=>{var H,K,G;const N=lodashEs.cloneDeep(S),{graphicConfig:w,customPoint:R=""}=e,O={},D={},{formFields:q={}}=w;let j=[];if(R){j=JSON.parse(R);for(const Y of j)for(const J in Y)typeof Y[J]=="string"&&((H=Y[J])==null?void 0:H.slice(0,1))==="{"&&((K=Y[J])==null?void 0:K.slice(-1))==="}"&&(Y[J]=C(Y[J])||0)}j!=null&&j.length&&N.push(...j),e.dataType==="static"?(D.name="name",D.values=["value","value2"]):(D.name=(q==null?void 0:q.labelField)||"name",D.values=(q==null?void 0:q.valueField)||["value","value2"]);for(const Y of N){const{values:J,name:ee}=D;for(const X of J){const W={value:[Y[ee],Y[X]],record:Y};hasOwn(O,X)?O[X].push(W):O[X]=[W]}}if((G=Object.keys(O))!=null&&G.length){const Y=[];for(const J in O)Y.push({name:J,data:O[J]});return Y}else return[]},A=(S=[])=>{const N=y(S),w=[],R=N.length;for(let O=0;O<R;O++){const D={},q={};O===0&&(q.markPoint=m()),e.shadowColor&&(D.shadowColor=e.shadowColor,D.shadowBlur=e.shadowBlur,D.shadowOffsetY=e.shadowOffsetY,D.shadowOffsetX=e.shadowOffsetX),w.push({type:"line",...q,...N[O],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[O]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[O],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...D},...vue.unref(b)})}l.value=w},_=(S=[])=>{const N=y(S),w=[],R=N.length;for(let O=0;O<R;O++){const D={};e.shadowColor&&(D.shadowColor=e.shadowColor,D.shadowBlur=e.shadowBlur,D.shadowOffsetY=e.shadowOffsetY,D.shadowOffsetX=e.shadowOffsetX);const q={};O===0&&(q.markPoint=m()),w.push({type:"line",...N[O],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[O]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[O],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...D},...vue.unref(b),...q})}l.value=w};vue.watch(()=>[e.data,e.dataType,e.symbolSize,e.smooth,e.lineStyleWidth,e.areaStyleOpacity,e.areaGradientShow,e.areaGradientColor,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX,e.legendFontSize,e.isShowMarkLine,e.markLineType,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([S])=>{(e.dataType==="static"||vue.unref(r)==="design")&&A(S)},{immediate:!0,deep:!0});const k=vue.ref(!1),T=useRequestData(e),F=async()=>{var S,N;if(e.dataType==="request")try{k.value=!0;const w=await T();A((N=(S=w==null?void 0:w.data)==null?void 0:S.data)==null?void 0:N.rows)}catch(w){console.error(w)}finally{k.value=!1}},M=useEmitEvent(e);p(e.id,{type:e.type,RECORD:""});const B=M("click",S=>{const N=v(e.id);p(e.id,{...N,type:e.type,RECORD:e.tooltipShow?x:S.data})}),L=S=>{a.value.chart.containPixel("grid",[S.offsetX,S.offsetY])&&B()};e.tooltipShow?f.value["zr:click"]=L:f.value.click=B;const V=S=>{var w;const{rows:N=[]}=((w=S==null?void 0:S.data)==null?void 0:w.data)??{};_(N)},U=useIndicatorData(e,S=>{e.isViewRedrawing&&a.value.clear(),V(S)}),$=async()=>{try{k.value=!0;const S=await U();V(S)}catch(S){console.error(S)}finally{k.value=!1}},P=()=>{switch(e.dataType){case"indicator":$();break;case"request":F();break}};useOnEvent(e,{refreshData:P,resetRecord:()=>{const S=e.id,N=v(S);p(S,{...N,RECORD:""})},click:B});const{setRequest:E}=vue.inject(REQUEST_MODEL,{setRequest:S=>{}});return typeof E=="function"&&E({id:e.id,requestFn:P,sortNum:e.requestSort}),n({refreshData:P}),{option:h,style:s,click:B,loading:k,onClose:g,ecanModal:c,eventObj:f,echartRef:a}}}),ValueLine_vue_vue_type_style_index_0_lang="";function _sfc_render(e,n,r,i,a,o){const s=vue.resolveComponent("echarts"),l=vue.resolveComponent("spin"),c=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-value-line",style:vue.normalizeStyle(e.style)},[vue.createVNode(l,{spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,vue.mergeProps({ref:"echartRef",option:e.option,autoresize:""},vue.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),vue.createVNode(c,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:vue.withCtx(()=>[vue.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:vue.withCtx(()=>[vue.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const ValueLine=_export_sfc$1(_sfc_main,[["render",_sfc_render]]),EcanValueLine=withInstall$1(ValueLine),components=Object.freeze(Object.defineProperty({__proto__:null,EcanBar,EcanBorder,EcanButton,EcanCheckbox,EcanCirculate,EcanComboGraph,EcanCounter,EcanCustomGraph,EcanDataSelect,EcanDatePicker,EcanIframe,EcanImage,EcanInput,EcanLine,EcanList,EcanMap,EcanModal,EcanPageConfig,EcanPie,EcanPivotTable,EcanProportion,EcanProviderConfig,EcanRadar,EcanRadio,EcanRangePicker,EcanScatter,EcanScrollText,EcanSelect,EcanTable,EcanTabs,EcanTemplate,EcanText,EcanTimeDisplay,EcanTreeSelect,EcanValueLine,barComponentProps,barEvents,barProps,borderComponentProps,borderEvents,borderProps,buttonComponentProps,buttonEvents,buttonProps,checkboxComponentProps,checkboxEvents,checkboxProps,circulateComponentProps,circulateEvents,circulateProps,comboGraphComponentProps,comboGraphEvents,comboGraphProps,counterComponentProps,counterEvents,counterProps,customGraphComponentProps,customGraphProps,dataSelectComponentProps,dataSelectEvents,dataSelectProps,datePickerComponentProps,datePickerEvents,datePickerProps:datePickerProps$1,iframeComponentProps,iframeProps,imageComponentProps,imageEvents,imageProps,inputComponentProps,inputEvents,inputProps,lineComponentProps,lineEvents,lineProps,listComponentProps,listEvents,listProps,mapComponentProps,mapEvents,mapProps,modalComponentProps,modalEvents,modalProps,pageConfig,pageConfigComponentProps,pieComponentProps,pieEvents,pieProps,pivotTableComponentProps,pivotTableEvents,pivotTableProps,proportionComponentProps,proportionEvents,proportionProps,providerConfig,providerConfigComponentProps,radarComponentProps,radarEvents,radarProps,radioComponentProps,radioEvents,radioProps,rangePickerComponentProps,rangePickerEvents,rangePickerProps,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=e=>e!==null&&typeof e=="object",isDef=e=>e!=null,isFunction=e=>typeof e=="function",isPromise=e=>isObject$1(e)&&isFunction(e.then)&&isFunction(e.catch),isDate=e=>Object.prototype.toString.call(e)==="[object Date]"&&!Number.isNaN(e.getTime()),isNumeric=e=>typeof e=="number"||/^\d+(\.\d+)?$/.test(e),isIOS=()=>inBrowser$1?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1;function get(e,n){const r=n.split(".");let i=e;return r.forEach(a=>{var o;i=isObject$1(i)&&(o=i[a])!=null?o:""}),i}function pick(e,n,r){return n.reduce((i,a)=>((!r||e[a]!==void 0)&&(i[a]=e[a]),i),{})}const isSameValue=(e,n)=>JSON.stringify(e)===JSON.stringify(n),flat=e=>e.reduce((n,r)=>n.concat(r),[]),unknownProp=null,numericProp=[Number,String],truthProp={type:Boolean,default:!0},makeRequiredProp=e=>({type:e,required:!0}),makeArrayProp=()=>({type:Array,default:()=>[]}),makeNumericProp=e=>({type:numericProp,default:e}),makeStringProp=e=>({type:String,default:e});var inBrowser=typeof window<"u";function raf(e){return inBrowser?requestAnimationFrame(e):-1}function cancelRaf(e){inBrowser&&cancelAnimationFrame(e)}function doubleRaf(e){raf(()=>raf(e))}var isWindow=e=>e===window,makeDOMRect=(e,n)=>({top:0,left:0,right:e,bottom:n,width:e,height:n}),useRect=e=>{const n=vue.unref(e);if(isWindow(n)){const r=n.innerWidth,i=n.innerHeight;return makeDOMRect(r,i)}return n!=null&&n.getBoundingClientRect?n.getBoundingClientRect():makeDOMRect(0,0)};function useParent(e){const n=vue.inject(e,null);if(n){const r=vue.getCurrentInstance(),{link:i,unlink:a,internalChildren:o}=n;i(r),vue.onUnmounted(()=>a(r));const s=vue.computed(()=>o.indexOf(r));return{parent:n,index:s}}return{parent:null,index:vue.ref(-1)}}function flattenVNodes(e){const n=[],r=i=>{Array.isArray(i)&&i.forEach(a=>{var o;vue.isVNode(a)&&(n.push(a),(o=a.component)!=null&&o.subTree&&(n.push(a.component.subTree),r(a.component.subTree.children)),a.children&&r(a.children))})};return r(e),n}var findVNodeIndex=(e,n)=>{const r=e.indexOf(n);return r===-1?e.findIndex(i=>n.key!==void 0&&n.key!==null&&i.type===n.type&&i.key===n.key):r};function sortChildren(e,n,r){const i=flattenVNodes(e.subTree.children);r.sort((o,s)=>findVNodeIndex(i,o.vnode)-findVNodeIndex(i,s.vnode));const a=r.map(o=>o.proxy);n.sort((o,s)=>{const l=a.indexOf(o),c=a.indexOf(s);return l-c})}function useChildren(e){const n=vue.reactive([]),r=vue.reactive([]),i=vue.getCurrentInstance();return{children:n,linkChildren:o=>{const s=c=>{c.proxy&&(r.push(c),n.push(c.proxy),sortChildren(i,n,r))},l=c=>{const u=r.indexOf(c);n.splice(u,1),r.splice(u,1)};vue.provide(e,Object.assign({link:s,unlink:l,children:n,internalChildren:r},o))}}}function onMountedOrActivated(e){let n;vue.onMounted(()=>{e(),vue.nextTick(()=>{n=!0})}),vue.onActivated(()=>{n&&e()})}function useEventListener(e,n,r={}){if(!inBrowser)return;const{target:i=window,passive:a=!1,capture:o=!1}=r;let s=!1,l;const c=x=>{if(s)return;const h=vue.unref(x);h&&!l&&(h.addEventListener(e,n,{capture:o,passive:a}),l=!0)},u=x=>{if(s)return;const h=vue.unref(x);h&&l&&(h.removeEventListener(e,n,o),l=!1)};vue.onUnmounted(()=>u(i)),vue.onDeactivated(()=>u(i)),onMountedOrActivated(()=>c(i));let f;return vue.isRef(i)&&(f=vue.watch(i,(x,h)=>{u(h),c(x)})),()=>{f==null||f(),u(i),s=!0}}var width,height;function useWindowSize(){if(!width&&(width=vue.ref(0),height=vue.ref(0),inBrowser)){const e=()=>{width.value=window.innerWidth,height.value=window.innerHeight};e(),window.addEventListener("resize",e,{passive:!0}),window.addEventListener("orientationchange",e,{passive:!0})}return{width,height}}var overflowScrollReg=/scroll|auto|overlay/i,defaultRoot=inBrowser?window:void 0;function isElement(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function getScrollParent(e,n=defaultRoot){let r=e;for(;r&&r!==n&&isElement(r);){const{overflowY:i}=window.getComputedStyle(r);if(overflowScrollReg.test(i))return r;r=r.parentNode}return n}function useScrollParent(e,n=defaultRoot){const r=vue.ref();return vue.onMounted(()=>{e.value&&(r.value=getScrollParent(e.value,n))}),r}var visibility;function usePageVisibility(){if(!visibility&&(visibility=vue.ref("visible"),inBrowser)){const e=()=>{visibility.value=document.hidden?"hidden":"visible"};e(),window.addEventListener("visibilitychange",e)}return visibility}function getScrollTop(e){const n="scrollTop"in e?e.scrollTop:e.pageYOffset;return Math.max(n,0)}function setScrollTop(e,n){"scrollTop"in e?e.scrollTop=n:e.scrollTo(e.scrollX,n)}function getRootScrollTop(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function setRootScrollTop(e){setScrollTop(window,e),setScrollTop(document.body,e)}function getElementTop(e,n){if(e===window)return 0;const r=n?getScrollTop(n):getRootScrollTop();return useRect(e).top+r}isIOS();const stopPropagation=e=>e.stopPropagation();function preventDefault(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&stopPropagation(e)}function isHidden(e){const n=vue.unref(e);if(!n)return!1;const r=window.getComputedStyle(n),i=r.display==="none",a=n.offsetParent===null&&r.position!=="fixed";return i||a}const{width:windowWidth,height:windowHeight}=useWindowSize();function addUnit(e){if(isDef(e))return isNumeric(e)?`${e}px`:String(e)}function getSizeStyle(e){if(isDef(e)){if(Array.isArray(e))return{width:addUnit(e[0]),height:addUnit(e[1])};const n=addUnit(e);return{width:n,height:n}}}function getZIndexStyle(e){const n={};return e!==void 0&&(n.zIndex=+e),n}let rootFontSize;function getRootFontSize(){if(!rootFontSize){const e=document.documentElement,n=e.style.fontSize||window.getComputedStyle(e).fontSize;rootFontSize=parseFloat(n)}return rootFontSize}function convertRem(e){return e=e.replace(/rem/g,""),+e*getRootFontSize()}function convertVw(e){return e=e.replace(/vw/g,""),+e*windowWidth.value/100}function convertVh(e){return e=e.replace(/vh/g,""),+e*windowHeight.value/100}function unitToPx(e){if(typeof e=="number")return e;if(inBrowser$1){if(e.includes("rem"))return convertRem(e);if(e.includes("vw"))return convertVw(e);if(e.includes("vh"))return convertVh(e)}return parseFloat(e)}const camelizeRE=/-(\w)/g,camelize=e=>e.replace(camelizeRE,(n,r)=>r.toUpperCase()),kebabCase=e=>e.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,"");function padZero(e,n=2){let r=e+"";for(;r.length<n;)r="0"+r;return r}const clamp=(e,n,r)=>Math.min(Math.max(e,n),r),{hasOwnProperty}=Object.prototype;function assignKey(e,n,r){const i=n[r];isDef(i)&&(!hasOwnProperty.call(e,r)||!isObject$1(i)?e[r]=i:e[r]=deepAssign(Object(e[r]),i))}function deepAssign(e,n){return Object.keys(n).forEach(r=>{assignKey(e,n,r)}),e}var stdin_default$h={name:"姓名",tel:"电话",save:"保存",clear:"清空",cancel:"取消",confirm:"确认",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",addContact:"添加联系人",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",weekdays:["日","一","二","三","四","五","六"],monthTitle:(e,n)=>`${e}年${n}月`,rangePrompt:e=>`最多选择 ${e} 天`},vanCascader:{select:"请选择"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无门槛",discount:e=>`${e}折`,condition:e=>`满${e}元可用`},vanCouponCell:{title:"优惠券",count:e=>`${e}张可用`},vanCouponList:{exchange:"兑换",close:"不使用",enable:"可用",disabled:"不可用",placeholder:"输入优惠码"},vanAddressEdit:{area:"地区",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",addressDetail:"详细地址",defaultAddress:"设为默认收货地址"},vanAddressList:{add:"新增地址"}};const lang=vue.ref("zh-CN"),messages=vue.reactive({"zh-CN":stdin_default$h}),Locale={messages(){return messages[lang.value]},use(e,n){lang.value=e,this.add({[e]:n})},add(e={}){deepAssign(messages,e)}};var stdin_default$g=Locale;function createTranslate(e){const n=camelize(e)+".";return(r,...i)=>{const a=stdin_default$g.messages(),o=get(a,n+r)||get(a,r);return isFunction(o)?o(...i):o}}function genBem(e,n){return n?typeof n=="string"?` ${e}--${n}`:Array.isArray(n)?n.reduce((r,i)=>r+genBem(e,i),""):Object.keys(n).reduce((r,i)=>r+(n[i]?genBem(e,i):""),""):""}function createBEM(e){return(n,r)=>(n&&typeof n!="string"&&(r=n,n=""),n=n?`${e}__${n}`:e,`${n}${genBem(n,r)}`)}function createNamespace(e){const n=`van-${e}`;return[n,createBEM(n),createTranslate(n)]}const BORDER="van-hairline",BORDER_TOP_BOTTOM=`${BORDER}--top-bottom`,BORDER_UNSET_TOP_BOTTOM=`${BORDER}-unset--top-bottom`,HAPTICS_FEEDBACK="van-haptics-feedback",TAP_OFFSET=5;function callInterceptor(e,{args:n=[],done:r,canceled:i,error:a}){if(e){const o=e.apply(null,n);isPromise(o)?o.then(s=>{s?r():i&&i()}).catch(a||noop):o?r():i&&i()}else r()}function withInstall(e){return e.install=n=>{const{name:r}=e;r&&(n.component(r,e),n.component(camelize(`-${r}`),e))},e}const POPUP_TOGGLE_KEY=Symbol();function onPopupReopen(e){const n=vue.inject(POPUP_TOGGLE_KEY,null);n&&vue.watch(n,r=>{r&&e()})}function useExpose(e){const n=vue.getCurrentInstance();n&&extend(n.proxy,e)}const routeProps={to:[String,Object],url:String,replace:Boolean};function route({to:e,url:n,replace:r,$router:i}){e&&i?i[r?"replace":"push"](e):n&&(r?location.replace(n):location.href=n)}const[name$h,bem$f]=createNamespace("badge"),badgeProps={dot:Boolean,max:numericProp,tag:makeStringProp("div"),color:String,offset:Array,content:numericProp,showZero:truthProp,position:makeStringProp("top-right")};var stdin_default$f=vue.defineComponent({name:name$h,props:badgeProps,setup(e,{slots:n}){const r=()=>{if(n.content)return!0;const{content:l,showZero:c}=e;return isDef(l)&&l!==""&&(c||l!==0&&l!=="0")},i=()=>{const{dot:l,max:c,content:u}=e;if(!l&&r())return n.content?n.content():isDef(c)&&isNumeric(u)&&+u>+c?`${c}+`:u},a=l=>l.startsWith("-")?l.replace("-",""):`-${l}`,o=vue.computed(()=>{const l={background:e.color};if(e.offset){const[c,u]=e.offset,{position:f}=e,[x,h]=f.split("-");n.default?(typeof u=="number"?l[x]=addUnit(x==="top"?u:-u):l[x]=x==="top"?addUnit(u):a(u),typeof c=="number"?l[h]=addUnit(h==="left"?c:-c):l[h]=h==="left"?addUnit(c):a(c)):(l.marginTop=addUnit(u),l.marginLeft=addUnit(c))}return l}),s=()=>{if(r()||e.dot)return vue.createVNode("div",{class:bem$f([e.position,{dot:e.dot,fixed:!!n.default}]),style:o.value},[i()])};return()=>{if(n.default){const{tag:l}=e;return vue.createVNode(l,{class:bem$f("wrapper")},{default:()=>[n.default(),s()]})}return s()}}});const Badge=withInstall(stdin_default$f);let globalZIndex=2e3;const useGlobalZIndex=()=>++globalZIndex,setGlobalZIndex=e=>{globalZIndex=e},[name$g,bem$e]=createNamespace("config-provider"),CONFIG_PROVIDER_KEY=Symbol(name$g),configProviderProps={tag:makeStringProp("div"),theme:makeStringProp("light"),zIndex:Number,themeVars:Object,themeVarsDark:Object,themeVarsLight:Object,themeVarsScope:makeStringProp("local"),iconPrefix:String};function insertDash(e){return e.replace(/([a-zA-Z])(\d)/g,"$1-$2")}function mapThemeVarsToCSSVars(e){const n={};return Object.keys(e).forEach(r=>{const i=insertDash(kebabCase(r));n[`--van-${i}`]=e[r]}),n}function syncThemeVarsOnRoot(e={},n={}){Object.keys(e).forEach(r=>{e[r]!==n[r]&&document.documentElement.style.setProperty(r,e[r])}),Object.keys(n).forEach(r=>{e[r]||document.documentElement.style.removeProperty(r)})}vue.defineComponent({name:name$g,props:configProviderProps,setup(e,{slots:n}){const r=vue.computed(()=>mapThemeVarsToCSSVars(extend({},e.themeVars,e.theme==="dark"?e.themeVarsDark:e.themeVarsLight)));if(inBrowser$1){const i=()=>{document.documentElement.classList.add(`van-theme-${e.theme}`)},a=(o=e.theme)=>{document.documentElement.classList.remove(`van-theme-${o}`)};vue.watch(()=>e.theme,(o,s)=>{s&&a(s),i()},{immediate:!0}),vue.onActivated(i),vue.onDeactivated(a),vue.onBeforeUnmount(a),vue.watch(r,(o,s)=>{e.themeVarsScope==="global"&&syncThemeVarsOnRoot(o,s)}),vue.watch(()=>e.themeVarsScope,(o,s)=>{s==="global"&&syncThemeVarsOnRoot({},r.value),o==="global"&&syncThemeVarsOnRoot(r.value,{})}),e.themeVarsScope==="global"&&syncThemeVarsOnRoot(r.value,{})}return vue.provide(CONFIG_PROVIDER_KEY,e),vue.watchEffect(()=>{e.zIndex!==void 0&&setGlobalZIndex(e.zIndex)}),()=>vue.createVNode(e.tag,{class:bem$e(),style:e.themeVarsScope==="local"?r.value:void 0},{default:()=>{var i;return[(i=n.default)==null?void 0:i.call(n)]}})}});const[name$f,bem$d]=createNamespace("icon"),isImage=e=>e==null?void 0:e.includes("/"),iconProps={dot:Boolean,tag:makeStringProp("i"),name:String,size:numericProp,badge:numericProp,color:String,badgeProps:Object,classPrefix:String};var stdin_default$e=vue.defineComponent({name:name$f,props:iconProps,setup(e,{slots:n}){const r=vue.inject(CONFIG_PROVIDER_KEY,null),i=vue.computed(()=>e.classPrefix||(r==null?void 0:r.iconPrefix)||bem$d());return()=>{const{tag:a,dot:o,name:s,size:l,badge:c,color:u}=e,f=isImage(s);return vue.createVNode(Badge,vue.mergeProps({dot:o,tag:a,class:[i.value,f?"":`${i.value}-${s}`],style:{color:u,fontSize:addUnit(l)},content:c},e.badgeProps),{default:()=>{var x;return[(x=n.default)==null?void 0:x.call(n),f&&vue.createVNode("img",{class:bem$d("image"),src:s},null)]}})}}});const Icon=withInstall(stdin_default$e),[name$e,bem$c]=createNamespace("loading"),SpinIcon=Array(12).fill(null).map((e,n)=>vue.createVNode("i",{class:bem$c("line",String(n+1))},null)),CircularIcon=vue.createVNode("svg",{class:bem$c("circular"),viewBox:"25 25 50 50"},[vue.createVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),loadingProps={size:numericProp,type:makeStringProp("circular"),color:String,vertical:Boolean,textSize:numericProp,textColor:String};var stdin_default$d=vue.defineComponent({name:name$e,props:loadingProps,setup(e,{slots:n}){const r=vue.computed(()=>extend({color:e.color},getSizeStyle(e.size))),i=()=>{const o=e.type==="spinner"?SpinIcon:CircularIcon;return vue.createVNode("span",{class:bem$c("spinner",e.type),style:r.value},[n.icon?n.icon():o])},a=()=>{var o;if(n.default)return vue.createVNode("span",{class:bem$c("text"),style:{fontSize:addUnit(e.textSize),color:(o=e.textColor)!=null?o:e.color}},[n.default()])};return()=>{const{type:o,vertical:s}=e;return vue.createVNode("div",{class:bem$c([o,{vertical:s}]),"aria-live":"polite","aria-busy":!0},[i(),a()])}}});const Loading=withInstall(stdin_default$d),popupSharedProps={show:Boolean,zIndex:numericProp,overlay:truthProp,duration:numericProp,teleport:[String,Object],lockScroll:truthProp,lazyRender:truthProp,beforeClose:Function,overlayStyle:Object,overlayClass:unknownProp,transitionAppear:Boolean,closeOnClickOverlay:truthProp};function getDirection(e,n){return e>n?"horizontal":n>e?"vertical":""}function useTouch(){const e=vue.ref(0),n=vue.ref(0),r=vue.ref(0),i=vue.ref(0),a=vue.ref(0),o=vue.ref(0),s=vue.ref(""),l=vue.ref(!0),c=()=>s.value==="vertical",u=()=>s.value==="horizontal",f=()=>{r.value=0,i.value=0,a.value=0,o.value=0,s.value="",l.value=!0};return{move:g=>{const v=g.touches[0];r.value=(v.clientX<0?0:v.clientX)-e.value,i.value=v.clientY-n.value,a.value=Math.abs(r.value),o.value=Math.abs(i.value);const p=10;(!s.value||a.value<p&&o.value<p)&&(s.value=getDirection(a.value,o.value)),l.value&&(a.value>TAP_OFFSET||o.value>TAP_OFFSET)&&(l.value=!1)},start:g=>{f(),e.value=g.touches[0].clientX,n.value=g.touches[0].clientY},reset:f,startX:e,startY:n,deltaX:r,deltaY:i,offsetX:a,offsetY:o,direction:s,isVertical:c,isHorizontal:u,isTap:l}}let totalLockCount=0;const BODY_LOCK_CLASS="van-overflow-hidden";function useLockScroll(e,n){const r=useTouch(),i="01",a="10",o=f=>{r.move(f);const x=r.deltaY.value>0?a:i,h=getScrollParent(f.target,e.value),{scrollHeight:g,offsetHeight:v,scrollTop:p}=h;let C="11";p===0?C=v>=g?"00":"01":p+v>=g&&(C="10"),C!=="11"&&r.isVertical()&&!(parseInt(C,2)&parseInt(x,2))&&preventDefault(f,!0)},s=()=>{document.addEventListener("touchstart",r.start),document.addEventListener("touchmove",o,{passive:!1}),totalLockCount||document.body.classList.add(BODY_LOCK_CLASS),totalLockCount++},l=()=>{totalLockCount&&(document.removeEventListener("touchstart",r.start),document.removeEventListener("touchmove",o),totalLockCount--,totalLockCount||document.body.classList.remove(BODY_LOCK_CLASS))},c=()=>n()&&s(),u=()=>n()&&l();onMountedOrActivated(c),vue.onDeactivated(u),vue.onBeforeUnmount(u),vue.watch(n,f=>{f?s():l()})}function useLazyRender(e){const n=vue.ref(!1);return vue.watch(e,r=>{r&&(n.value=r)},{immediate:!0}),r=>()=>n.value?r():null}const useScopeId=()=>{var e;const{scopeId:n}=((e=vue.getCurrentInstance())==null?void 0:e.vnode)||{};return n?{[n]:""}:null},[name$d,bem$b]=createNamespace("overlay"),overlayProps={show:Boolean,zIndex:numericProp,duration:numericProp,className:unknownProp,lockScroll:truthProp,lazyRender:truthProp,customStyle:Object,teleport:[String,Object]};var stdin_default$c=vue.defineComponent({name:name$d,props:overlayProps,setup(e,{slots:n}){const r=vue.ref(),i=useLazyRender(()=>e.show||!e.lazyRender),a=s=>{e.lockScroll&&preventDefault(s,!0)},o=i(()=>{var s;const l=extend(getZIndexStyle(e.zIndex),e.customStyle);return isDef(e.duration)&&(l.animationDuration=`${e.duration}s`),vue.withDirectives(vue.createVNode("div",{ref:r,style:l,class:[bem$b(),e.className]},[(s=n.default)==null?void 0:s.call(n)]),[[vue.vShow,e.show]])});return useEventListener("touchmove",a,{target:r}),()=>{const s=vue.createVNode(vue.Transition,{name:"van-fade",appear:!0},{default:o});return e.teleport?vue.createVNode(vue.Teleport,{to:e.teleport},{default:()=>[s]}):s}}});const Overlay=withInstall(stdin_default$c),popupProps=extend({},popupSharedProps,{round:Boolean,position:makeStringProp("center"),closeIcon:makeStringProp("cross"),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:makeStringProp("top-right"),safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),[name$c,bem$a]=createNamespace("popup");var stdin_default$b=vue.defineComponent({name:name$c,inheritAttrs:!1,props:popupProps,emits:["open","close","opened","closed","keydown","update:show","clickOverlay","clickCloseIcon"],setup(e,{emit:n,attrs:r,slots:i}){let a,o;const s=vue.ref(),l=vue.ref(),c=useLazyRender(()=>e.show||!e.lazyRender),u=vue.computed(()=>{const _={zIndex:s.value};if(isDef(e.duration)){const k=e.position==="center"?"animationDuration":"transitionDuration";_[k]=`${e.duration}s`}return _}),f=()=>{a||(a=!0,s.value=e.zIndex!==void 0?+e.zIndex:useGlobalZIndex(),n("open"))},x=()=>{a&&callInterceptor(e.beforeClose,{done(){a=!1,n("close"),n("update:show",!1)}})},h=_=>{n("clickOverlay",_),e.closeOnClickOverlay&&x()},g=()=>{if(e.overlay)return vue.createVNode(Overlay,vue.mergeProps({show:e.show,class:e.overlayClass,zIndex:s.value,duration:e.duration,customStyle:e.overlayStyle,role:e.closeOnClickOverlay?"button":void 0,tabindex:e.closeOnClickOverlay?0:void 0},useScopeId(),{onClick:h}),{default:i["overlay-content"]})},v=_=>{n("clickCloseIcon",_),x()},p=()=>{if(e.closeable)return vue.createVNode(Icon,{role:"button",tabindex:0,name:e.closeIcon,class:[bem$a("close-icon",e.closeIconPosition),HAPTICS_FEEDBACK],classPrefix:e.iconPrefix,onClick:v},null)};let C;const b=()=>{C&&clearTimeout(C),C=setTimeout(()=>{n("opened")})},d=()=>n("closed"),m=_=>n("keydown",_),y=c(()=>{var _;const{round:k,position:T,safeAreaInsetTop:F,safeAreaInsetBottom:M}=e;return vue.withDirectives(vue.createVNode("div",vue.mergeProps({ref:l,style:u.value,role:"dialog",tabindex:0,class:[bem$a({round:k,[T]:T}),{"van-safe-area-top":F,"van-safe-area-bottom":M}],onKeydown:m},r,useScopeId()),[(_=i.default)==null?void 0:_.call(i),p()]),[[vue.vShow,e.show]])}),A=()=>{const{position:_,transition:k,transitionAppear:T}=e,F=_==="center"?"van-fade":`van-popup-slide-${_}`;return vue.createVNode(vue.Transition,{name:k||F,appear:T,onAfterEnter:b,onAfterLeave:d},{default:y})};return vue.watch(()=>e.show,_=>{_&&!a&&(f(),r.tabindex===0&&vue.nextTick(()=>{var k;(k=l.value)==null||k.focus()})),!_&&a&&(a=!1,n("close"))}),useExpose({popupRef:l}),useLockScroll(l,()=>e.show&&e.lockScroll),useEventListener("popstate",()=>{e.closeOnPopstate&&(x(),o=!1)}),vue.onMounted(()=>{e.show&&f()}),vue.onActivated(()=>{o&&(n("update:show",!0),o=!1)}),vue.onDeactivated(()=>{e.show&&e.teleport&&(x(),o=!0)}),vue.provide(POPUP_TOGGLE_KEY,()=>e.show),()=>e.teleport?vue.createVNode(vue.Teleport,{to:e.teleport},{default:()=>[g(),A()]}):vue.createVNode(vue.Fragment,null,[g(),A()])}});const Popup=withInstall(stdin_default$b),[name$b,bem$9,t]=createNamespace("picker"),getFirstEnabledOption=e=>e.find(n=>!n.disabled)||e[0];function getColumnsType(e,n){const r=e[0];if(r){if(Array.isArray(r))return"multiple";if(n.children in r)return"cascade"}return"default"}function findIndexOfEnabledOption(e,n){n=clamp(n,0,e.length);for(let r=n;r<e.length;r++)if(!e[r].disabled)return r;for(let r=n-1;r>=0;r--)if(!e[r].disabled)return r;return 0}const isOptionExist=(e,n,r)=>n!==void 0&&!!e.find(i=>i[r.value]===n);function findOptionByValue(e,n,r){const i=e.findIndex(o=>o[r.value]===n),a=findIndexOfEnabledOption(e,i);return e[a]}function formatCascadeColumns(e,n,r){const i=[];let a={[n.children]:e},o=0;for(;a&&a[n.children];){const s=a[n.children],l=r.value[o];if(a=isDef(l)?findOptionByValue(s,l,n):void 0,!a&&s.length){const c=getFirstEnabledOption(s)[n.value];a=findOptionByValue(s,c,n)}o++,i.push(s)}return i}function getElementTranslateY(e){const{transform:n}=window.getComputedStyle(e),r=n.slice(7,n.length-1).split(", ")[5];return Number(r)}function assignDefaultFields(e){return extend({text:"text",value:"value",children:"children"},e)}const DEFAULT_DURATION=200,MOMENTUM_TIME=300,MOMENTUM_DISTANCE=15,[name$a,bem$8]=createNamespace("picker-column"),PICKER_KEY=Symbol(name$a);var stdin_default$a=vue.defineComponent({name:name$a,props:{value:numericProp,fields:makeRequiredProp(Object),options:makeArrayProp(),readonly:Boolean,allowHtml:Boolean,optionHeight:makeRequiredProp(Number),swipeDuration:makeRequiredProp(numericProp),visibleOptionNum:makeRequiredProp(numericProp)},emits:["change","clickOption","scrollInto"],setup(e,{emit:n,slots:r}){let i,a,o,s,l;const c=vue.ref(),u=vue.ref(),f=vue.ref(0),x=vue.ref(0),h=useTouch(),g=()=>e.options.length,v=()=>e.optionHeight*(+e.visibleOptionNum-1)/2,p=M=>{let B=findIndexOfEnabledOption(e.options,M);const L=-B*e.optionHeight,V=()=>{B>g()-1&&(B=findIndexOfEnabledOption(e.options,M));const U=e.options[B][e.fields.value];U!==e.value&&n("change",U)};i&&L!==f.value?l=V:V(),f.value=L},C=()=>e.readonly||!e.options.length,b=M=>{i||C()||(l=null,x.value=DEFAULT_DURATION,p(M),n("clickOption",e.options[M]))},d=M=>clamp(Math.round(-M/e.optionHeight),0,g()-1),m=vue.computed(()=>d(f.value)),y=(M,B)=>{const L=Math.abs(M/B);M=f.value+L/.003*(M<0?-1:1);const V=d(M);x.value=+e.swipeDuration,p(V)},A=()=>{i=!1,x.value=0,l&&(l(),l=null)},_=M=>{if(!C()){if(h.start(M),i){const B=getElementTranslateY(u.value);f.value=Math.min(0,B-v())}x.value=0,a=f.value,o=Date.now(),s=a,l=null}},k=M=>{if(C())return;h.move(M),h.isVertical()&&(i=!0,preventDefault(M,!0));const B=clamp(a+h.deltaY.value,-(g()*e.optionHeight),e.optionHeight),L=d(B);L!==m.value&&n("scrollInto",e.options[L]),f.value=B;const V=Date.now();V-o>MOMENTUM_TIME&&(o=V,s=B)},T=()=>{if(C())return;const M=f.value-s,B=Date.now()-o;if(B<MOMENTUM_TIME&&Math.abs(M)>MOMENTUM_DISTANCE){y(M,B);return}const V=d(f.value);x.value=DEFAULT_DURATION,p(V),setTimeout(()=>{i=!1},0)},F=()=>{const M={height:`${e.optionHeight}px`};return e.options.map((B,L)=>{const V=B[e.fields.text],{disabled:U}=B,$=B[e.fields.value],P={role:"button",style:M,tabindex:U?-1:0,class:[bem$8("item",{disabled:U,selected:$===e.value}),B.className],onClick:()=>b(L)},I={class:"van-ellipsis",[e.allowHtml?"innerHTML":"textContent"]:V};return vue.createVNode("li",P,[r.option?r.option(B,L):vue.createVNode("div",I,null)])})};return useParent(PICKER_KEY),useExpose({stopMomentum:A}),vue.watchEffect(()=>{const M=i?Math.floor(-f.value/e.optionHeight):e.options.findIndex(V=>V[e.fields.value]===e.value),B=findIndexOfEnabledOption(e.options,M),L=-B*e.optionHeight;i&&B<M&&A(),f.value=L}),useEventListener("touchmove",k,{target:c}),()=>vue.createVNode("div",{ref:c,class:bem$8(),onTouchstartPassive:_,onTouchend:T,onTouchcancel:T},[vue.createVNode("ul",{ref:u,style:{transform:`translate3d(0, ${f.value+v()}px, 0)`,transitionDuration:`${x.value}ms`,transitionProperty:x.value?"all":"none"},class:bem$8("wrapper"),onTransitionend:A},[F()])])}});const[name$9]=createNamespace("picker-toolbar"),pickerToolbarProps={title:String,cancelButtonText:String,confirmButtonText:String},pickerToolbarSlots=["cancel","confirm","title","toolbar"],pickerToolbarPropKeys=Object.keys(pickerToolbarProps);var stdin_default$9=vue.defineComponent({name:name$9,props:pickerToolbarProps,emits:["confirm","cancel"],setup(e,{emit:n,slots:r}){const i=()=>{if(r.title)return r.title();if(e.title)return vue.createVNode("div",{class:[bem$9("title"),"van-ellipsis"]},[e.title])},a=()=>n("cancel"),o=()=>n("confirm"),s=()=>{var c;const u=(c=e.cancelButtonText)!=null?c:t("cancel");if(!(!r.cancel&&!u))return vue.createVNode("button",{type:"button",class:[bem$9("cancel"),HAPTICS_FEEDBACK],onClick:a},[r.cancel?r.cancel():u])},l=()=>{var c;const u=(c=e.confirmButtonText)!=null?c:t("confirm");if(!(!r.confirm&&!u))return vue.createVNode("button",{type:"button",class:[bem$9("confirm"),HAPTICS_FEEDBACK],onClick:o},[r.confirm?r.confirm():u])};return()=>vue.createVNode("div",{class:bem$9("toolbar")},[r.toolbar?r.toolbar():[s(),i(),l()]])}});const useSyncPropRef=(e,n)=>{const r=vue.ref(e());return vue.watch(e,i=>{i!==r.value&&(r.value=i)}),vue.watch(r,i=>{i!==e()&&n(i)}),r};/**
129
129
  * @vue/shared v3.5.4
130
130
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
131
131
  * @license MIT
132
- **/process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const isArray=Array.isArray,isString=e=>typeof e=="string",isObject=e=>e!==null&&typeof e=="object",cacheStringFunction=e=>{const n=Object.create(null);return r=>n[r]||(n[r]=e(r))},hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(e=>e.replace(hyphenateRE,"-$1").toLowerCase());function normalizeStyle(e){if(isArray(e)){const n={};for(let r=0;r<e.length;r++){const i=e[r],a=isString(i)?parseStringStyle(i):normalizeStyle(i);if(a)for(const o in a)n[o]=a[o]}return n}else if(isString(e)||isObject(e))return e}const listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=/\/\*[^]*?\*\//g;function parseStringStyle(e){const n={};return e.replace(styleCommentRE,"").split(listDelimiterRE).forEach(r=>{if(r){const i=r.split(propertyDelimiterRE);i.length>1&&(n[i[0].trim()]=i[1].trim())}}),n}function stringifyStyle(e){let n="";if(!e||isString(e))return n;for(const r in e){const i=e[r];if(isString(i)||typeof i=="number"){const a=r.startsWith("--")?r:hyphenate(r);n+=`${a}:${i};`}}return n}function normalizeClass(e){let n="";if(isString(e))n=e;else if(isArray(e))for(let r=0;r<e.length;r++){const i=normalizeClass(e[r]);i&&(n+=i+" ")}else if(isObject(e))for(const r in e)e[r]&&(n+=r+" ");return n.trim()}function scrollLeftTo(e,n,r){let i,a=0;const o=e.scrollLeft,s=r===0?1:Math.round(r*1e3/16);let l=o;function c(){cancelRaf(i)}function u(){l+=(n-o)/s,e.scrollLeft=l,++a<s&&(i=raf(u))}return u(),c}function scrollTopTo(e,n,r,i){let a,o=getScrollTop(e);const s=o<n,l=r===0?1:Math.round(r*1e3/16),c=(n-o)/l;function u(){cancelRaf(a)}function f(){o+=c,(s&&o>n||!s&&o<n)&&(o=n),setScrollTop(e,o),s&&o<n||!s&&o>n?a=raf(f):i&&(a=raf(i))}return f(),u}let current=0;function useId(){const e=vue.getCurrentInstance(),{name:n="unknown"}=(e==null?void 0:e.type)||{};return process.env.NODE_ENV==="test"?n:`${n}-${++current}`}function useRefs(){const e=vue.ref([]),n=[];return vue.onBeforeUpdate(()=>{e.value=[]}),[e,i=>(n[i]||(n[i]=a=>{e.value[i]=a}),n[i])]}function useVisibilityChange(e,n){if(!inBrowser$1||!window.IntersectionObserver)return;const r=new IntersectionObserver(o=>{n(o[0].intersectionRatio>0)},{root:document.body}),i=()=>{e.value&&r.observe(e.value)},a=()=>{e.value&&r.unobserve(e.value)};vue.onDeactivated(a),vue.onBeforeUnmount(a),onMountedOrActivated(i)}const[name$8,bem$7]=createNamespace("sticky"),stickyProps={zIndex:numericProp,position:makeStringProp("top"),container:Object,offsetTop:makeNumericProp(0),offsetBottom:makeNumericProp(0)};var stdin_default$8=vue.defineComponent({name:name$8,props:stickyProps,emits:["scroll","change"],setup(e,{emit:n,slots:r}){const i=vue.ref(),a=useScrollParent(i),o=vue.reactive({fixed:!1,width:0,height:0,transform:0}),s=vue.ref(!1),l=vue.computed(()=>unitToPx(e.position==="top"?e.offsetTop:e.offsetBottom)),c=vue.computed(()=>{if(s.value)return;const{fixed:h,height:g,width:v}=o;if(h)return{width:`${v}px`,height:`${g}px`}}),u=vue.computed(()=>{if(!o.fixed||s.value)return;const h=extend(getZIndexStyle(e.zIndex),{width:`${o.width}px`,height:`${o.height}px`,[e.position]:`${l.value}px`});return o.transform&&(h.transform=`translate3d(0, ${o.transform}px, 0)`),h}),f=h=>n("scroll",{scrollTop:h,isFixed:o.fixed}),x=()=>{if(!i.value||isHidden(i))return;const{container:h,position:g}=e,v=useRect(i),p=getScrollTop(window);if(o.width=v.width,o.height=v.height,g==="top")if(h){const E=useRect(h),b=E.bottom-l.value-o.height;o.fixed=l.value>v.top&&E.bottom>0,o.transform=b<0?b:0}else o.fixed=l.value>v.top;else{const{clientHeight:E}=document.documentElement;if(h){const b=useRect(h),d=E-b.top-l.value-o.height;o.fixed=E-l.value<v.bottom&&E>b.top,o.transform=d<0?-d:0}else o.fixed=E-l.value<v.bottom}f(p)};return vue.watch(()=>o.fixed,h=>n("change",h)),useEventListener("scroll",x,{target:a,passive:!0}),useVisibilityChange(i,x),vue.watch([windowWidth,windowHeight],()=>{!i.value||isHidden(i)||!o.fixed||(s.value=!0,vue.nextTick(()=>{const h=useRect(i);o.width=h.width,o.height=h.height,s.value=!1}))}),()=>{var h;return vue.createVNode("div",{ref:i,style:c.value},[vue.createVNode("div",{class:bem$7({fixed:o.fixed&&!s.value}),style:u.value},[(h=r.default)==null?void 0:h.call(r)])])}}});const Sticky=withInstall(stdin_default$8),[name$7,bem$6]=createNamespace("swipe"),swipeProps={loop:truthProp,width:numericProp,height:numericProp,vertical:Boolean,autoplay:makeNumericProp(0),duration:makeNumericProp(500),touchable:truthProp,lazyRender:Boolean,initialSwipe:makeNumericProp(0),indicatorColor:String,showIndicators:truthProp,stopPropagation:truthProp},SWIPE_KEY=Symbol(name$7);var stdin_default$7=vue.defineComponent({name:name$7,props:swipeProps,emits:["change","dragStart","dragEnd"],setup(e,{emit:n,slots:r}){const i=vue.ref(),a=vue.ref(),o=vue.reactive({rect:null,width:0,height:0,offset:0,active:0,swiping:!1});let s=!1;const l=useTouch(),{children:c,linkChildren:u}=useChildren(SWIPE_KEY),f=vue.computed(()=>c.length),x=vue.computed(()=>o[e.vertical?"height":"width"]),h=vue.computed(()=>e.vertical?l.deltaY.value:l.deltaX.value),g=vue.computed(()=>o.rect?(e.vertical?o.rect.height:o.rect.width)-x.value*f.value:0),v=vue.computed(()=>x.value?Math.ceil(Math.abs(g.value)/x.value):f.value),p=vue.computed(()=>f.value*x.value),E=vue.computed(()=>(o.active+f.value)%f.value),b=vue.computed(()=>{const w=e.vertical?"vertical":"horizontal";return l.direction.value===w}),d=vue.computed(()=>{const w={transitionDuration:`${o.swiping?0:e.duration}ms`,transform:`translate${e.vertical?"Y":"X"}(${+o.offset.toFixed(2)}px)`};if(x.value){const q=e.vertical?"height":"width",O=e.vertical?"width":"height";w[q]=`${p.value}px`,w[O]=e[O]?`${e[O]}px`:""}return w}),m=w=>{const{active:q}=o;return w?e.loop?clamp(q+w,-1,f.value):clamp(q+w,0,v.value):q},y=(w,q=0)=>{let O=w*x.value;e.loop||(O=Math.min(O,-g.value));let D=q-O;return e.loop||(D=clamp(D,g.value,0)),D},A=({pace:w=0,offset:q=0,emitChange:O})=>{if(f.value<=1)return;const{active:D}=o,$=m(w),U=y($,q);if(e.loop){if(c[0]&&U!==g.value){const j=U<g.value;c[0].setOffset(j?p.value:0)}if(c[f.value-1]&&U!==0){const j=U>0;c[f.value-1].setOffset(j?-p.value:0)}}o.active=$,o.offset=U,O&&$!==D&&n("change",E.value)},_=()=>{o.swiping=!0,o.active<=-1?A({pace:f.value}):o.active>=f.value&&A({pace:-f.value})},k=()=>{_(),l.reset(),doubleRaf(()=>{o.swiping=!1,A({pace:-1,emitChange:!0})})},T=()=>{_(),l.reset(),doubleRaf(()=>{o.swiping=!1,A({pace:1,emitChange:!0})})};let F;const M=()=>clearTimeout(F),B=()=>{M(),+e.autoplay>0&&f.value>1&&(F=setTimeout(()=>{T(),B()},+e.autoplay))},L=(w=+e.initialSwipe)=>{if(!i.value)return;const q=()=>{var O,D;if(!isHidden(i)){const $={width:i.value.offsetWidth,height:i.value.offsetHeight};o.rect=$,o.width=+((O=e.width)!=null?O:$.width),o.height=+((D=e.height)!=null?D:$.height)}f.value&&(w=Math.min(f.value-1,w),w===-1&&(w=f.value-1)),o.active=w,o.swiping=!0,o.offset=y(w),c.forEach($=>{$.setOffset(0)}),B()};isHidden(i)?vue.nextTick().then(q):q()},R=()=>L(o.active);let H;const V=w=>{!e.touchable||w.touches.length>1||(l.start(w),s=!1,H=Date.now(),M(),_())},P=w=>{e.touchable&&o.swiping&&(l.move(w),b.value&&(!e.loop&&(o.active===0&&h.value>0||o.active===f.value-1&&h.value<0)||(preventDefault(w,e.stopPropagation),A({offset:h.value}),s||(n("dragStart",{index:E.value}),s=!0))))},I=()=>{if(!e.touchable||!o.swiping)return;const w=Date.now()-H,q=h.value/w;if((Math.abs(q)>.25||Math.abs(h.value)>x.value/2)&&b.value){const D=e.vertical?l.offsetY.value:l.offsetX.value;let $=0;e.loop?$=D>0?h.value>0?-1:1:0:$=-Math[h.value>0?"ceil":"floor"](h.value/x.value),A({pace:$,emitChange:!0})}else h.value&&A({pace:0});s=!1,o.swiping=!1,n("dragEnd",{index:E.value}),B()},S=(w,q={})=>{_(),l.reset(),doubleRaf(()=>{let O;e.loop&&w===f.value?O=o.active===0?0:w:O=w%f.value,q.immediate?doubleRaf(()=>{o.swiping=!1}):o.swiping=!1,A({pace:O-o.active,emitChange:!0})})},C=(w,q)=>{const O=q===E.value,D=O?{backgroundColor:e.indicatorColor}:void 0;return vue.createVNode("i",{style:D,class:bem$6("indicator",{active:O})},null)},N=()=>{if(r.indicator)return r.indicator({active:E.value,total:f.value});if(e.showIndicators&&f.value>1)return vue.createVNode("div",{class:bem$6("indicators",{vertical:e.vertical})},[Array(f.value).fill("").map(C)])};return useExpose({prev:k,next:T,state:o,resize:R,swipeTo:S}),u({size:x,props:e,count:f,activeIndicator:E}),vue.watch(()=>e.initialSwipe,w=>L(+w)),vue.watch(f,()=>L(o.active)),vue.watch(()=>e.autoplay,B),vue.watch([windowWidth,windowHeight,()=>e.width,()=>e.height],R),vue.watch(usePageVisibility(),w=>{w==="visible"?B():M()}),vue.onMounted(L),vue.onActivated(()=>L(o.active)),onPopupReopen(()=>L(o.active)),vue.onDeactivated(M),vue.onBeforeUnmount(M),useEventListener("touchmove",P,{target:a}),()=>{var w;return vue.createVNode("div",{ref:i,class:bem$6()},[vue.createVNode("div",{ref:a,style:d.value,class:bem$6("track",{vertical:e.vertical}),onTouchstartPassive:V,onTouchend:I,onTouchcancel:I},[(w=r.default)==null?void 0:w.call(r)]),N()])}}});const Swipe=withInstall(stdin_default$7),[name$6,bem$5]=createNamespace("tabs");var stdin_default$6=vue.defineComponent({name:name$6,props:{count:makeRequiredProp(Number),inited:Boolean,animated:Boolean,duration:makeRequiredProp(numericProp),swipeable:Boolean,lazyRender:Boolean,currentIndex:makeRequiredProp(Number)},emits:["change"],setup(e,{emit:n,slots:r}){const i=vue.ref(),a=l=>n("change",l),o=()=>{var l;const c=(l=r.default)==null?void 0:l.call(r);return e.animated||e.swipeable?vue.createVNode(Swipe,{ref:i,loop:!1,class:bem$5("track"),duration:+e.duration*1e3,touchable:e.swipeable,lazyRender:e.lazyRender,showIndicators:!1,onChange:a},{default:()=>[c]}):c},s=l=>{const c=i.value;c&&c.state.active!==l&&c.swipeTo(l,{immediate:!e.inited})};return vue.watch(()=>e.currentIndex,s),vue.onMounted(()=>{s(e.currentIndex)}),useExpose({swipeRef:i}),()=>vue.createVNode("div",{class:bem$5("content",{animated:e.animated||e.swipeable})},[o()])}});const[name$5,bem$4]=createNamespace("tabs"),tabsProps={type:makeStringProp("line"),color:String,border:Boolean,sticky:Boolean,shrink:Boolean,active:makeNumericProp(0),duration:makeNumericProp(.3),animated:Boolean,ellipsis:truthProp,swipeable:Boolean,scrollspy:Boolean,offsetTop:makeNumericProp(0),background:String,lazyRender:truthProp,showHeader:truthProp,lineWidth:numericProp,lineHeight:numericProp,beforeChange:Function,swipeThreshold:makeNumericProp(5),titleActiveColor:String,titleInactiveColor:String},TABS_KEY=Symbol(name$5);var stdin_default$5=vue.defineComponent({name:name$5,props:tabsProps,emits:["change","scroll","rendered","clickTab","update:active"],setup(e,{emit:n,slots:r}){let i,a,o,s,l;const c=vue.ref(),u=vue.ref(),f=vue.ref(),x=vue.ref(),h=useId(),g=useScrollParent(c),[v,p]=useRefs(),{children:E,linkChildren:b}=useChildren(TABS_KEY),d=vue.reactive({inited:!1,position:"",lineStyle:{},currentIndex:-1}),m=vue.computed(()=>E.length>+e.swipeThreshold||!e.ellipsis||e.shrink),y=vue.computed(()=>({borderColor:e.color,background:e.background})),A=($,U)=>{var j;return(j=$.name)!=null?j:U},_=vue.computed(()=>{const $=E[d.currentIndex];if($)return A($,d.currentIndex)}),k=vue.computed(()=>unitToPx(e.offsetTop)),T=vue.computed(()=>e.sticky?k.value+i:0),F=$=>{const U=u.value,j=v.value;if(!m.value||!U||!j||!j[d.currentIndex])return;const K=j[d.currentIndex].$el,G=K.offsetLeft-(U.offsetWidth-K.offsetWidth)/2;s&&s(),s=scrollLeftTo(U,G,$?0:+e.duration)},M=()=>{const $=d.inited;vue.nextTick(()=>{const U=v.value;if(!U||!U[d.currentIndex]||e.type!=="line"||isHidden(c.value))return;const j=U[d.currentIndex].$el,{lineWidth:K,lineHeight:G}=e,Y=j.offsetLeft+j.offsetWidth/2,J={width:addUnit(K),backgroundColor:e.color,transform:`translateX(${Y}px) translateX(-50%)`};if($&&(J.transitionDuration=`${e.duration}s`),isDef(G)){const ee=addUnit(G);J.height=ee,J.borderRadius=ee}d.lineStyle=J})},B=$=>{const U=$<d.currentIndex?-1:1;for(;$>=0&&$<E.length;){if(!E[$].disabled)return $;$+=U}},L=($,U)=>{const j=B($);if(!isDef(j))return;const K=E[j],G=A(K,j),Y=d.currentIndex!==null;d.currentIndex!==j&&(d.currentIndex=j,U||F(),M()),G!==e.active&&(n("update:active",G),Y&&n("change",G,K.title)),o&&!e.scrollspy&&setRootScrollTop(Math.ceil(getElementTop(c.value)-k.value))},R=($,U)=>{const j=E.find((G,Y)=>A(G,Y)===$),K=j?E.indexOf(j):0;L(K,U)},H=($=!1)=>{if(e.scrollspy){const U=E[d.currentIndex].$el;if(U&&g.value){const j=getElementTop(U,g.value)-T.value;a=!0,l&&l(),l=scrollTopTo(g.value,j,$?0:+e.duration,()=>{a=!1})}}},V=($,U,j)=>{const{title:K,disabled:G}=E[U],Y=A(E[U],U);G||(callInterceptor(e.beforeChange,{args:[Y],done:()=>{L(U),H()}}),route($)),n("clickTab",{name:Y,title:K,event:j,disabled:G})},P=$=>{o=$.isFixed,n("scroll",$)},I=$=>{vue.nextTick(()=>{R($),H(!0)})},S=()=>{for(let $=0;$<E.length;$++){const{top:U}=useRect(E[$].$el);if(U>T.value)return $===0?0:$-1}return E.length-1},C=()=>{if(e.scrollspy&&!a){const $=S();L($)}},N=()=>{if(e.type==="line"&&E.length)return vue.createVNode("div",{class:bem$4("line"),style:d.lineStyle},null)},w=()=>{var $,U,j;const{type:K,border:G,sticky:Y}=e,J=[vue.createVNode("div",{ref:Y?void 0:f,class:[bem$4("wrap"),{[BORDER_TOP_BOTTOM]:K==="line"&&G}]},[vue.createVNode("div",{ref:u,role:"tablist",class:bem$4("nav",[K,{shrink:e.shrink,complete:m.value}]),style:y.value,"aria-orientation":"horizontal"},[($=r["nav-left"])==null?void 0:$.call(r),E.map(ee=>ee.renderTitle(V)),N(),(U=r["nav-right"])==null?void 0:U.call(r)])]),(j=r["nav-bottom"])==null?void 0:j.call(r)];return Y?vue.createVNode("div",{ref:f},[J]):J},q=()=>{M(),vue.nextTick(()=>{var $,U;F(!0),(U=($=x.value)==null?void 0:$.swipeRef.value)==null||U.resize()})};vue.watch(()=>[e.color,e.duration,e.lineWidth,e.lineHeight],M),vue.watch(windowWidth,q),vue.watch(()=>e.active,$=>{$!==_.value&&R($)}),vue.watch(()=>E.length,()=>{d.inited&&(R(e.active),M(),vue.nextTick(()=>{F(!0)}))});const O=()=>{R(e.active,!0),vue.nextTick(()=>{d.inited=!0,f.value&&(i=useRect(f.value).height),F(!0)})},D=($,U)=>n("rendered",$,U);return useExpose({resize:q,scrollTo:I}),vue.onActivated(M),onPopupReopen(M),onMountedOrActivated(O),useVisibilityChange(c,M),useEventListener("scroll",C,{target:g,passive:!0}),b({id:h,props:e,setLine:M,scrollable:m,onRendered:D,currentName:_,setTitleRefs:p,scrollIntoView:F}),()=>vue.createVNode("div",{ref:c,class:bem$4([e.type])},[e.showHeader?e.sticky?vue.createVNode(Sticky,{container:c.value,offsetTop:k.value,onScroll:P},{default:()=>[w()]}):w():null,vue.createVNode(stdin_default$6,{ref:x,count:E.length,inited:d.inited,animated:e.animated,duration:e.duration,swipeable:e.swipeable,lazyRender:e.lazyRender,currentIndex:d.currentIndex,onChange:L},{default:()=>{var $;return[($=r.default)==null?void 0:$.call(r)]}})])}});const TAB_STATUS_KEY=Symbol(),[name$4,bem$3]=createNamespace("tab"),TabTitle=vue.defineComponent({name:name$4,props:{id:String,dot:Boolean,type:String,color:String,title:String,badge:numericProp,shrink:Boolean,isActive:Boolean,disabled:Boolean,controls:String,scrollable:Boolean,activeColor:String,inactiveColor:String,showZeroBadge:truthProp},setup(e,{slots:n}){const r=vue.computed(()=>{const a={},{type:o,color:s,disabled:l,isActive:c,activeColor:u,inactiveColor:f}=e;s&&o==="card"&&(a.borderColor=s,l||(c?a.backgroundColor=s:a.color=s));const h=c?u:f;return h&&(a.color=h),a}),i=()=>{const a=vue.createVNode("span",{class:bem$3("text",{ellipsis:!e.scrollable})},[n.title?n.title():e.title]);return e.dot||isDef(e.badge)&&e.badge!==""?vue.createVNode(Badge,{dot:e.dot,content:e.badge,showZero:e.showZeroBadge},{default:()=>[a]}):a};return()=>vue.createVNode("div",{id:e.id,role:"tab",class:[bem$3([e.type,{grow:e.scrollable&&!e.shrink,shrink:e.shrink,active:e.isActive,disabled:e.disabled}])],style:r.value,tabindex:e.disabled?void 0:e.isActive?0:-1,"aria-selected":e.isActive,"aria-disabled":e.disabled||void 0,"aria-controls":e.controls},[i()])}}),[name$3,bem$2]=createNamespace("swipe-item");var stdin_default$4=vue.defineComponent({name:name$3,setup(e,{slots:n}){let r;const i=vue.reactive({offset:0,inited:!1,mounted:!1}),{parent:a,index:o}=useParent(SWIPE_KEY);if(!a){process.env.NODE_ENV!=="production"&&console.error("[Vant] <SwipeItem> must be a child component of <Swipe>.");return}const s=vue.computed(()=>{const u={},{vertical:f}=a.props;return a.size.value&&(u[f?"height":"width"]=`${a.size.value}px`),i.offset&&(u.transform=`translate${f?"Y":"X"}(${i.offset}px)`),u}),l=vue.computed(()=>{const{loop:u,lazyRender:f}=a.props;if(!f||r)return!0;if(!i.mounted)return!1;const x=a.activeIndicator.value,h=a.count.value-1,g=x===0&&u?h:x-1,v=x===h&&u?0:x+1;return r=o.value===x||o.value===g||o.value===v,r}),c=u=>{i.offset=u};return vue.onMounted(()=>{vue.nextTick(()=>{i.mounted=!0})}),useExpose({setOffset:c}),()=>{var u;return vue.createVNode("div",{class:bem$2(),style:s.value},[l.value?(u=n.default)==null?void 0:u.call(n):null])}}});const SwipeItem=withInstall(stdin_default$4),[name$2,bem$1]=createNamespace("tab"),tabProps=extend({},routeProps,{dot:Boolean,name:numericProp,badge:numericProp,title:String,disabled:Boolean,titleClass:unknownProp,titleStyle:[String,Object],showZeroBadge:truthProp});var stdin_default$3=vue.defineComponent({name:name$2,props:tabProps,setup(e,{slots:n}){const r=useId(),i=vue.ref(!1),a=vue.getCurrentInstance(),{parent:o,index:s}=useParent(TABS_KEY);if(!o){process.env.NODE_ENV!=="production"&&console.error("[Vant] <Tab> must be a child component of <Tabs>.");return}const l=()=>{var v;return(v=e.name)!=null?v:s.value},c=()=>{i.value=!0,o.props.lazyRender&&vue.nextTick(()=>{o.onRendered(l(),e.title)})},u=vue.computed(()=>{const v=l()===o.currentName.value;return v&&!i.value&&c(),v}),f=vue.ref(""),x=vue.ref("");vue.watchEffect(()=>{const{titleClass:v,titleStyle:p}=e;f.value=v?normalizeClass(v):"",x.value=p&&typeof p!="string"?stringifyStyle(normalizeStyle(p)):p});const h=v=>vue.createVNode(TabTitle,vue.mergeProps({key:r,id:`${o.id}-${s.value}`,ref:o.setTitleRefs(s.value),style:x.value,class:f.value,isActive:u.value,controls:r,scrollable:o.scrollable.value,activeColor:o.props.titleActiveColor,inactiveColor:o.props.titleInactiveColor,onClick:p=>v(a.proxy,s.value,p)},pick(o.props,["type","color","shrink"]),pick(e,["dot","badge","title","disabled","showZeroBadge"])),{title:n.title}),g=vue.ref(!u.value);return vue.watch(u,v=>{v?g.value=!1:doubleRaf(()=>{g.value=!0})}),vue.watch(()=>e.title,()=>{o.setLine(),o.scrollIntoView()}),vue.provide(TAB_STATUS_KEY,u),useExpose({id:r,renderTitle:h}),()=>{var v;const p=`${o.id}-${s.value}`,{animated:E,swipeable:b,scrollspy:d,lazyRender:m}=o.props;if(!n.default&&!E)return;const y=d||u.value;if(E||b)return vue.createVNode(SwipeItem,{id:r,role:"tabpanel",class:bem$1("panel-wrapper",{inactive:g.value}),tabindex:u.value?0:-1,"aria-hidden":!u.value,"aria-labelledby":p},{default:()=>{var k;return[vue.createVNode("div",{class:bem$1("panel")},[(k=n.default)==null?void 0:k.call(n)])]}});const _=i.value||d||!m?(v=n.default)==null?void 0:v.call(n):null;return vue.withDirectives(vue.createVNode("div",{id:r,role:"tabpanel",class:bem$1("panel"),tabindex:y?0:-1,"aria-labelledby":p},[_]),[[vue.vShow,y]])}}});const Tab=withInstall(stdin_default$3),Tabs=withInstall(stdin_default$5),[name$1,bem]=createNamespace("picker-group"),PICKER_GROUP_KEY=Symbol(name$1),pickerGroupProps=extend({tabs:makeArrayProp(),activeTab:makeNumericProp(0),nextStepText:String,showToolbar:truthProp},pickerToolbarProps);var stdin_default$2=vue.defineComponent({name:name$1,props:pickerGroupProps,emits:["confirm","cancel","update:activeTab"],setup(e,{emit:n,slots:r}){const i=useSyncPropRef(()=>e.activeTab,u=>n("update:activeTab",u)),{children:a,linkChildren:o}=useChildren(PICKER_GROUP_KEY);o();const s=()=>+i.value<e.tabs.length-1&&e.nextStepText,l=()=>{s()?i.value=+i.value+1:n("confirm",a.map(u=>u.confirm()))},c=()=>n("cancel");return()=>{var u,f;let x=(f=(u=r.default)==null?void 0:u.call(r))==null?void 0:f.filter(g=>g.type!==vue.Comment).map(g=>g.type===vue.Fragment?g.children:g);x&&(x=flat(x));const h=s()?e.nextStepText:e.confirmButtonText;return vue.createVNode("div",{class:bem()},[e.showToolbar?vue.createVNode(stdin_default$9,{title:e.title,cancelButtonText:e.cancelButtonText,confirmButtonText:h,onConfirm:l,onCancel:c},pick(r,pickerToolbarSlots)):null,vue.createVNode(Tabs,{active:i.value,"onUpdate:active":g=>i.value=g,class:bem("tabs"),shrink:!0,animated:!0,lazyRender:!1},{default:()=>[e.tabs.map((g,v)=>vue.createVNode(Tab,{title:g,titleClass:bem("tab-title")},{default:()=>[x==null?void 0:x[v]]}))]})])}}});const pickerSharedProps=extend({loading:Boolean,readonly:Boolean,allowHtml:Boolean,optionHeight:makeNumericProp(44),showToolbar:truthProp,swipeDuration:makeNumericProp(1e3),visibleOptionNum:makeNumericProp(6)},pickerToolbarProps),pickerProps=extend({},pickerSharedProps,{columns:makeArrayProp(),modelValue:makeArrayProp(),toolbarPosition:makeStringProp("top"),columnsFieldNames:Object});var stdin_default$1=vue.defineComponent({name:name$b,props:pickerProps,emits:["confirm","cancel","change","scrollInto","clickOption","update:modelValue"],setup(e,{emit:n,slots:r}){const i=vue.ref(),a=vue.ref(e.modelValue.slice(0)),{parent:o}=useParent(PICKER_GROUP_KEY),{children:s,linkChildren:l}=useChildren(PICKER_KEY);l();const c=vue.computed(()=>assignDefaultFields(e.columnsFieldNames)),u=vue.computed(()=>unitToPx(e.optionHeight)),f=vue.computed(()=>getColumnsType(e.columns,c.value)),x=vue.computed(()=>{const{columns:B}=e;switch(f.value){case"multiple":return B;case"cascade":return formatCascadeColumns(B,c.value,a);default:return[B]}}),h=vue.computed(()=>x.value.some(B=>B.length)),g=vue.computed(()=>x.value.map((B,L)=>findOptionByValue(B,a.value[L],c.value))),v=vue.computed(()=>x.value.map((B,L)=>B.findIndex(R=>R[c.value.value]===a.value[L]))),p=(B,L)=>{if(a.value[B]!==L){const R=a.value.slice(0);R[B]=L,a.value=R}},E=()=>({selectedValues:a.value.slice(0),selectedOptions:g.value,selectedIndexes:v.value}),b=(B,L)=>{p(L,B),f.value==="cascade"&&a.value.forEach((R,H)=>{const V=x.value[H];isOptionExist(V,R,c.value)||p(H,V.length?V[0][c.value.value]:void 0)}),vue.nextTick(()=>{n("change",extend({columnIndex:L},E()))})},d=(B,L)=>{const R={columnIndex:L,currentOption:B};n("clickOption",extend(E(),R)),n("scrollInto",R)},m=()=>{s.forEach(L=>L.stopMomentum());const B=E();return vue.nextTick(()=>{n("confirm",B)}),B},y=()=>n("cancel",E()),A=()=>x.value.map((B,L)=>vue.createVNode(stdin_default$a,{value:a.value[L],fields:c.value,options:B,readonly:e.readonly,allowHtml:e.allowHtml,optionHeight:u.value,swipeDuration:e.swipeDuration,visibleOptionNum:e.visibleOptionNum,onChange:R=>b(R,L),onClickOption:R=>d(R,L),onScrollInto:R=>{n("scrollInto",{currentOption:R,columnIndex:L})}},{option:r.option})),_=B=>{if(h.value){const L={height:`${u.value}px`},R={backgroundSize:`100% ${(B-u.value)/2}px`};return[vue.createVNode("div",{class:bem$9("mask"),style:R},null),vue.createVNode("div",{class:[BORDER_UNSET_TOP_BOTTOM,bem$9("frame")],style:L},null)]}},k=()=>{const B=u.value*+e.visibleOptionNum,L={height:`${B}px`};return vue.createVNode("div",{ref:i,class:bem$9("columns"),style:L},[A(),_(B)])},T=()=>{if(e.showToolbar&&!o)return vue.createVNode(stdin_default$9,vue.mergeProps(pick(e,pickerToolbarPropKeys),{onConfirm:m,onCancel:y}),pick(r,pickerToolbarSlots))};vue.watch(x,B=>{B.forEach((L,R)=>{L.length&&!isOptionExist(L,a.value[R],c.value)&&p(R,getFirstEnabledOption(L)[c.value.value])})},{immediate:!0});let F;return vue.watch(()=>e.modelValue,B=>{!isSameValue(B,a.value)&&!isSameValue(B,F)&&(a.value=B.slice(0),F=B.slice(0))},{deep:!0}),vue.watch(a,B=>{isSameValue(B,e.modelValue)||(F=B.slice(0),n("update:modelValue",F))},{immediate:!0}),useEventListener("touchmove",preventDefault,{target:i}),useExpose({confirm:m,getSelectedOptions:()=>g.value}),()=>{var B,L;return vue.createVNode("div",{class:bem$9()},[e.toolbarPosition==="top"?T():null,e.loading?vue.createVNode(Loading,{class:bem$9("loading")},null):null,(B=r["columns-top"])==null?void 0:B.call(r),k(),(L=r["columns-bottom"])==null?void 0:L.call(r),e.toolbarPosition==="bottom"?T():null])}}});const Picker=withInstall(stdin_default$1),sharedProps=extend({},pickerSharedProps,{modelValue:makeArrayProp(),filter:Function,formatter:{type:Function,default:(e,n)=>n}}),pickerInheritKeys=Object.keys(pickerSharedProps);function times(e,n){if(e<0)return[];const r=Array(e);let i=-1;for(;++i<e;)r[i]=n(i);return r}const getMonthEndDay=(e,n)=>32-new Date(e,n-1,32).getDate(),genOptions=(e,n,r,i,a,o)=>{const s=times(n-e+1,l=>{const c=padZero(e+l);return i(r,{text:c,value:c})});return a?a(r,s,o):s},formatValueRange=(e,n)=>e.map((r,i)=>{const a=n[i];if(a.length){const o=+a[0].value,s=+a[a.length-1].value;return padZero(clamp(+r,o,s))}return r}),currentYear=new Date().getFullYear(),[name]=createNamespace("date-picker"),datePickerProps=extend({},sharedProps,{columnsType:{type:Array,default:()=>["year","month","day"]},minDate:{type:Date,default:()=>new Date(currentYear-10,0,1),validator:isDate},maxDate:{type:Date,default:()=>new Date(currentYear+10,11,31),validator:isDate}});var stdin_default=vue.defineComponent({name,props:datePickerProps,emits:["confirm","cancel","change","update:modelValue"],setup(e,{emit:n,slots:r}){const i=vue.ref(e.modelValue),a=vue.ref(!1),o=vue.ref(),s=()=>{const y=e.minDate.getFullYear(),A=e.maxDate.getFullYear();return genOptions(y,A,"year",e.formatter,e.filter)},l=y=>y===e.minDate.getFullYear(),c=y=>y===e.maxDate.getFullYear(),u=y=>y===e.minDate.getMonth()+1,f=y=>y===e.maxDate.getMonth()+1,x=y=>{const{minDate:A,columnsType:_}=e,k=_.indexOf(y),T=a.value?e.modelValue[k]:i.value[k];if(T)return+T;switch(y){case"year":return A.getFullYear();case"month":return A.getMonth()+1;case"day":return A.getDate()}},h=()=>{const y=x("year"),A=l(y)?e.minDate.getMonth()+1:1,_=c(y)?e.maxDate.getMonth()+1:12;return genOptions(A,_,"month",e.formatter,e.filter)},g=()=>{const y=x("year"),A=x("month"),_=l(y)&&u(A)?e.minDate.getDate():1,k=c(y)&&f(A)?e.maxDate.getDate():getMonthEndDay(y,A);return genOptions(_,k,"day",e.formatter,e.filter)},v=()=>{var y;return(y=o.value)==null?void 0:y.confirm()},p=()=>i.value,E=vue.computed(()=>e.columnsType.map(y=>{switch(y){case"year":return s();case"month":return h();case"day":return g();default:if(process.env.NODE_ENV!=="production")throw new Error(`[Vant] DatePicker: unsupported columns type: ${y}`);return[]}}));vue.watch(i,y=>{isSameValue(y,e.modelValue)||n("update:modelValue",y)}),vue.watch(()=>e.modelValue,(y,A)=>{a.value=isSameValue(A,i.value),y=formatValueRange(y,E.value),isSameValue(y,i.value)||(i.value=y),a.value=!1},{immediate:!0});const b=(...y)=>n("change",...y),d=(...y)=>n("cancel",...y),m=(...y)=>n("confirm",...y);return useExpose({confirm:v,getSelectedDate:p}),()=>vue.createVNode(Picker,vue.mergeProps({ref:o,modelValue:i.value,"onUpdate:modelValue":y=>i.value=y,columns:E.value,onChange:b,onCancel:d,onConfirm:m},pick(e,pickerInheritKeys)),r)}});const DatePicker=withInstall(stdin_default),PickerGroup=withInstall(stdin_default$2),index$1="",install=e=>{e.use(DatePicker),e.use(Popup),e.use(PickerGroup),e.use(Picker),Object.keys(components).forEach(n=>{const r=components[n];r.install&&e.use(r)})},index={install};exports.EcanBar=EcanBar,exports.EcanBorder=EcanBorder,exports.EcanButton=EcanButton,exports.EcanCheckbox=EcanCheckbox,exports.EcanCirculate=EcanCirculate,exports.EcanComboGraph=EcanComboGraph,exports.EcanCounter=EcanCounter,exports.EcanCustomGraph=EcanCustomGraph,exports.EcanDataSelect=EcanDataSelect,exports.EcanDatePicker=EcanDatePicker,exports.EcanIframe=EcanIframe,exports.EcanImage=EcanImage,exports.EcanInput=EcanInput,exports.EcanLine=EcanLine,exports.EcanList=EcanList,exports.EcanMap=EcanMap,exports.EcanModal=EcanModal,exports.EcanPageConfig=EcanPageConfig,exports.EcanPie=EcanPie,exports.EcanPivotTable=EcanPivotTable,exports.EcanProportion=EcanProportion,exports.EcanProviderConfig=EcanProviderConfig,exports.EcanRadar=EcanRadar,exports.EcanRadio=EcanRadio,exports.EcanRangePicker=EcanRangePicker,exports.EcanScatter=EcanScatter,exports.EcanScrollText=EcanScrollText,exports.EcanSelect=EcanSelect,exports.EcanTable=EcanTable,exports.EcanTabs=EcanTabs,exports.EcanTemplate=EcanTemplate,exports.EcanText=EcanText,exports.EcanTimeDisplay=EcanTimeDisplay,exports.EcanTreeSelect=EcanTreeSelect,exports.EcanValueLine=EcanValueLine,exports.barComponentProps=barComponentProps,exports.barEvents=barEvents,exports.barProps=barProps,exports.borderComponentProps=borderComponentProps,exports.borderEvents=borderEvents,exports.borderProps=borderProps,exports.buttonComponentProps=buttonComponentProps,exports.buttonEvents=buttonEvents,exports.buttonProps=buttonProps,exports.checkboxComponentProps=checkboxComponentProps,exports.checkboxEvents=checkboxEvents,exports.checkboxProps=checkboxProps,exports.circulateComponentProps=circulateComponentProps,exports.circulateEvents=circulateEvents,exports.circulateProps=circulateProps,exports.comboGraphComponentProps=comboGraphComponentProps,exports.comboGraphEvents=comboGraphEvents,exports.comboGraphProps=comboGraphProps,exports.compatibleMobileList=compatibleMobileList,exports.counterComponentProps=counterComponentProps,exports.counterEvents=counterEvents,exports.counterProps=counterProps,exports.customGraphComponentProps=customGraphComponentProps,exports.customGraphProps=customGraphProps,exports.dataSelectComponentProps=dataSelectComponentProps,exports.dataSelectEvents=dataSelectEvents,exports.dataSelectProps=dataSelectProps,exports.datePickerComponentProps=datePickerComponentProps,exports.datePickerEvents=datePickerEvents,exports.datePickerProps=datePickerProps$1,exports.default=index,exports.handleScrollCombinations=handleScrollCombinations,exports.iframeComponentProps=iframeComponentProps,exports.iframeProps=iframeProps,exports.imageComponentProps=imageComponentProps,exports.imageEvents=imageEvents,exports.imageProps=imageProps,exports.inputComponentProps=inputComponentProps,exports.inputEvents=inputEvents,exports.inputProps=inputProps,exports.lineComponentProps=lineComponentProps,exports.lineEvents=lineEvents,exports.lineProps=lineProps,exports.listComponentProps=listComponentProps,exports.listEvents=listEvents,exports.listProps=listProps,exports.mapComponentProps=mapComponentProps,exports.mapEvents=mapEvents,exports.mapProps=mapProps,exports.modalComponentProps=modalComponentProps,exports.modalEvents=modalEvents,exports.modalProps=modalProps,exports.moveToComponentList=moveToComponentList,exports.pageConfig=pageConfig,exports.pageConfigComponentProps=pageConfigComponentProps,exports.pieComponentProps=pieComponentProps,exports.pieEvents=pieEvents,exports.pieProps=pieProps,exports.pivotTableComponentProps=pivotTableComponentProps,exports.pivotTableEvents=pivotTableEvents,exports.pivotTableProps=pivotTableProps,exports.proportionComponentProps=proportionComponentProps,exports.proportionEvents=proportionEvents,exports.proportionProps=proportionProps,exports.providerConfig=providerConfig,exports.providerConfigComponentProps=providerConfigComponentProps,exports.radarComponentProps=radarComponentProps,exports.radarEvents=radarEvents,exports.radarProps=radarProps,exports.radioComponentProps=radioComponentProps,exports.radioEvents=radioEvents,exports.radioProps=radioProps,exports.rangePickerComponentProps=rangePickerComponentProps,exports.rangePickerEvents=rangePickerEvents,exports.rangePickerProps=rangePickerProps,exports.scatterComponentProps=scatterComponentProps,exports.scatterEvents=scatterEvents,exports.scatterProps=scatterProps,exports.selectComponentProps=selectComponentProps,exports.selectEvents=selectEvents,exports.selectProps=selectProps,exports.tableComponentProps=tableComponentProps,exports.tableEvents=tableEvents,exports.tableProps=tableProps,exports.tabsComponentProps=tabsComponentProps,exports.tabsEvents=tabsEvents,exports.tabsProps=tabsProps$1,exports.templateComponentProps=templateComponentProps,exports.templateEvents=templateEvents,exports.templateProps=templateProps,exports.textComponentProps=textComponentProps,exports.textEvents=textEvents,exports.textProps=textProps,exports.timeDisplayComponentProps=timeDisplayComponentProps,exports.timeDisplayEvents=timeDisplayEvents,exports.timeDisplayProps=timeDisplayProps,exports.treeSelectComponentProps=treeSelectComponentProps,exports.treeSelectEvents=treeSelectEvents,exports.treeSelectProps=treeSelectProps,exports.valueLineComponentProps=valueLineComponentProps,exports.valueLineEvents=valueLineEvents,exports.valueLineProps=valueLineProps,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
132
+ **/process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const isArray=Array.isArray,isString=e=>typeof e=="string",isObject=e=>e!==null&&typeof e=="object",cacheStringFunction=e=>{const n=Object.create(null);return r=>n[r]||(n[r]=e(r))},hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(e=>e.replace(hyphenateRE,"-$1").toLowerCase());function normalizeStyle(e){if(isArray(e)){const n={};for(let r=0;r<e.length;r++){const i=e[r],a=isString(i)?parseStringStyle(i):normalizeStyle(i);if(a)for(const o in a)n[o]=a[o]}return n}else if(isString(e)||isObject(e))return e}const listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=/\/\*[^]*?\*\//g;function parseStringStyle(e){const n={};return e.replace(styleCommentRE,"").split(listDelimiterRE).forEach(r=>{if(r){const i=r.split(propertyDelimiterRE);i.length>1&&(n[i[0].trim()]=i[1].trim())}}),n}function stringifyStyle(e){let n="";if(!e||isString(e))return n;for(const r in e){const i=e[r];if(isString(i)||typeof i=="number"){const a=r.startsWith("--")?r:hyphenate(r);n+=`${a}:${i};`}}return n}function normalizeClass(e){let n="";if(isString(e))n=e;else if(isArray(e))for(let r=0;r<e.length;r++){const i=normalizeClass(e[r]);i&&(n+=i+" ")}else if(isObject(e))for(const r in e)e[r]&&(n+=r+" ");return n.trim()}function scrollLeftTo(e,n,r){let i,a=0;const o=e.scrollLeft,s=r===0?1:Math.round(r*1e3/16);let l=o;function c(){cancelRaf(i)}function u(){l+=(n-o)/s,e.scrollLeft=l,++a<s&&(i=raf(u))}return u(),c}function scrollTopTo(e,n,r,i){let a,o=getScrollTop(e);const s=o<n,l=r===0?1:Math.round(r*1e3/16),c=(n-o)/l;function u(){cancelRaf(a)}function f(){o+=c,(s&&o>n||!s&&o<n)&&(o=n),setScrollTop(e,o),s&&o<n||!s&&o>n?a=raf(f):i&&(a=raf(i))}return f(),u}let current=0;function useId(){const e=vue.getCurrentInstance(),{name:n="unknown"}=(e==null?void 0:e.type)||{};return process.env.NODE_ENV==="test"?n:`${n}-${++current}`}function useRefs(){const e=vue.ref([]),n=[];return vue.onBeforeUpdate(()=>{e.value=[]}),[e,i=>(n[i]||(n[i]=a=>{e.value[i]=a}),n[i])]}function useVisibilityChange(e,n){if(!inBrowser$1||!window.IntersectionObserver)return;const r=new IntersectionObserver(o=>{n(o[0].intersectionRatio>0)},{root:document.body}),i=()=>{e.value&&r.observe(e.value)},a=()=>{e.value&&r.unobserve(e.value)};vue.onDeactivated(a),vue.onBeforeUnmount(a),onMountedOrActivated(i)}const[name$8,bem$7]=createNamespace("sticky"),stickyProps={zIndex:numericProp,position:makeStringProp("top"),container:Object,offsetTop:makeNumericProp(0),offsetBottom:makeNumericProp(0)};var stdin_default$8=vue.defineComponent({name:name$8,props:stickyProps,emits:["scroll","change"],setup(e,{emit:n,slots:r}){const i=vue.ref(),a=useScrollParent(i),o=vue.reactive({fixed:!1,width:0,height:0,transform:0}),s=vue.ref(!1),l=vue.computed(()=>unitToPx(e.position==="top"?e.offsetTop:e.offsetBottom)),c=vue.computed(()=>{if(s.value)return;const{fixed:h,height:g,width:v}=o;if(h)return{width:`${v}px`,height:`${g}px`}}),u=vue.computed(()=>{if(!o.fixed||s.value)return;const h=extend(getZIndexStyle(e.zIndex),{width:`${o.width}px`,height:`${o.height}px`,[e.position]:`${l.value}px`});return o.transform&&(h.transform=`translate3d(0, ${o.transform}px, 0)`),h}),f=h=>n("scroll",{scrollTop:h,isFixed:o.fixed}),x=()=>{if(!i.value||isHidden(i))return;const{container:h,position:g}=e,v=useRect(i),p=getScrollTop(window);if(o.width=v.width,o.height=v.height,g==="top")if(h){const C=useRect(h),b=C.bottom-l.value-o.height;o.fixed=l.value>v.top&&C.bottom>0,o.transform=b<0?b:0}else o.fixed=l.value>v.top;else{const{clientHeight:C}=document.documentElement;if(h){const b=useRect(h),d=C-b.top-l.value-o.height;o.fixed=C-l.value<v.bottom&&C>b.top,o.transform=d<0?-d:0}else o.fixed=C-l.value<v.bottom}f(p)};return vue.watch(()=>o.fixed,h=>n("change",h)),useEventListener("scroll",x,{target:a,passive:!0}),useVisibilityChange(i,x),vue.watch([windowWidth,windowHeight],()=>{!i.value||isHidden(i)||!o.fixed||(s.value=!0,vue.nextTick(()=>{const h=useRect(i);o.width=h.width,o.height=h.height,s.value=!1}))}),()=>{var h;return vue.createVNode("div",{ref:i,style:c.value},[vue.createVNode("div",{class:bem$7({fixed:o.fixed&&!s.value}),style:u.value},[(h=r.default)==null?void 0:h.call(r)])])}}});const Sticky=withInstall(stdin_default$8),[name$7,bem$6]=createNamespace("swipe"),swipeProps={loop:truthProp,width:numericProp,height:numericProp,vertical:Boolean,autoplay:makeNumericProp(0),duration:makeNumericProp(500),touchable:truthProp,lazyRender:Boolean,initialSwipe:makeNumericProp(0),indicatorColor:String,showIndicators:truthProp,stopPropagation:truthProp},SWIPE_KEY=Symbol(name$7);var stdin_default$7=vue.defineComponent({name:name$7,props:swipeProps,emits:["change","dragStart","dragEnd"],setup(e,{emit:n,slots:r}){const i=vue.ref(),a=vue.ref(),o=vue.reactive({rect:null,width:0,height:0,offset:0,active:0,swiping:!1});let s=!1;const l=useTouch(),{children:c,linkChildren:u}=useChildren(SWIPE_KEY),f=vue.computed(()=>c.length),x=vue.computed(()=>o[e.vertical?"height":"width"]),h=vue.computed(()=>e.vertical?l.deltaY.value:l.deltaX.value),g=vue.computed(()=>o.rect?(e.vertical?o.rect.height:o.rect.width)-x.value*f.value:0),v=vue.computed(()=>x.value?Math.ceil(Math.abs(g.value)/x.value):f.value),p=vue.computed(()=>f.value*x.value),C=vue.computed(()=>(o.active+f.value)%f.value),b=vue.computed(()=>{const w=e.vertical?"vertical":"horizontal";return l.direction.value===w}),d=vue.computed(()=>{const w={transitionDuration:`${o.swiping?0:e.duration}ms`,transform:`translate${e.vertical?"Y":"X"}(${+o.offset.toFixed(2)}px)`};if(x.value){const R=e.vertical?"height":"width",O=e.vertical?"width":"height";w[R]=`${p.value}px`,w[O]=e[O]?`${e[O]}px`:""}return w}),m=w=>{const{active:R}=o;return w?e.loop?clamp(R+w,-1,f.value):clamp(R+w,0,v.value):R},y=(w,R=0)=>{let O=w*x.value;e.loop||(O=Math.min(O,-g.value));let D=R-O;return e.loop||(D=clamp(D,g.value,0)),D},A=({pace:w=0,offset:R=0,emitChange:O})=>{if(f.value<=1)return;const{active:D}=o,q=m(w),j=y(q,R);if(e.loop){if(c[0]&&j!==g.value){const H=j<g.value;c[0].setOffset(H?p.value:0)}if(c[f.value-1]&&j!==0){const H=j>0;c[f.value-1].setOffset(H?-p.value:0)}}o.active=q,o.offset=j,O&&q!==D&&n("change",C.value)},_=()=>{o.swiping=!0,o.active<=-1?A({pace:f.value}):o.active>=f.value&&A({pace:-f.value})},k=()=>{_(),l.reset(),doubleRaf(()=>{o.swiping=!1,A({pace:-1,emitChange:!0})})},T=()=>{_(),l.reset(),doubleRaf(()=>{o.swiping=!1,A({pace:1,emitChange:!0})})};let F;const M=()=>clearTimeout(F),B=()=>{M(),+e.autoplay>0&&f.value>1&&(F=setTimeout(()=>{T(),B()},+e.autoplay))},L=(w=+e.initialSwipe)=>{if(!i.value)return;const R=()=>{var O,D;if(!isHidden(i)){const q={width:i.value.offsetWidth,height:i.value.offsetHeight};o.rect=q,o.width=+((O=e.width)!=null?O:q.width),o.height=+((D=e.height)!=null?D:q.height)}f.value&&(w=Math.min(f.value-1,w),w===-1&&(w=f.value-1)),o.active=w,o.swiping=!0,o.offset=y(w),c.forEach(q=>{q.setOffset(0)}),B()};isHidden(i)?vue.nextTick().then(R):R()},V=()=>L(o.active);let U;const $=w=>{!e.touchable||w.touches.length>1||(l.start(w),s=!1,U=Date.now(),M(),_())},P=w=>{e.touchable&&o.swiping&&(l.move(w),b.value&&(!e.loop&&(o.active===0&&h.value>0||o.active===f.value-1&&h.value<0)||(preventDefault(w,e.stopPropagation),A({offset:h.value}),s||(n("dragStart",{index:C.value}),s=!0))))},I=()=>{if(!e.touchable||!o.swiping)return;const w=Date.now()-U,R=h.value/w;if((Math.abs(R)>.25||Math.abs(h.value)>x.value/2)&&b.value){const D=e.vertical?l.offsetY.value:l.offsetX.value;let q=0;e.loop?q=D>0?h.value>0?-1:1:0:q=-Math[h.value>0?"ceil":"floor"](h.value/x.value),A({pace:q,emitChange:!0})}else h.value&&A({pace:0});s=!1,o.swiping=!1,n("dragEnd",{index:C.value}),B()},E=(w,R={})=>{_(),l.reset(),doubleRaf(()=>{let O;e.loop&&w===f.value?O=o.active===0?0:w:O=w%f.value,R.immediate?doubleRaf(()=>{o.swiping=!1}):o.swiping=!1,A({pace:O-o.active,emitChange:!0})})},S=(w,R)=>{const O=R===C.value,D=O?{backgroundColor:e.indicatorColor}:void 0;return vue.createVNode("i",{style:D,class:bem$6("indicator",{active:O})},null)},N=()=>{if(r.indicator)return r.indicator({active:C.value,total:f.value});if(e.showIndicators&&f.value>1)return vue.createVNode("div",{class:bem$6("indicators",{vertical:e.vertical})},[Array(f.value).fill("").map(S)])};return useExpose({prev:k,next:T,state:o,resize:V,swipeTo:E}),u({size:x,props:e,count:f,activeIndicator:C}),vue.watch(()=>e.initialSwipe,w=>L(+w)),vue.watch(f,()=>L(o.active)),vue.watch(()=>e.autoplay,B),vue.watch([windowWidth,windowHeight,()=>e.width,()=>e.height],V),vue.watch(usePageVisibility(),w=>{w==="visible"?B():M()}),vue.onMounted(L),vue.onActivated(()=>L(o.active)),onPopupReopen(()=>L(o.active)),vue.onDeactivated(M),vue.onBeforeUnmount(M),useEventListener("touchmove",P,{target:a}),()=>{var w;return vue.createVNode("div",{ref:i,class:bem$6()},[vue.createVNode("div",{ref:a,style:d.value,class:bem$6("track",{vertical:e.vertical}),onTouchstartPassive:$,onTouchend:I,onTouchcancel:I},[(w=r.default)==null?void 0:w.call(r)]),N()])}}});const Swipe=withInstall(stdin_default$7),[name$6,bem$5]=createNamespace("tabs");var stdin_default$6=vue.defineComponent({name:name$6,props:{count:makeRequiredProp(Number),inited:Boolean,animated:Boolean,duration:makeRequiredProp(numericProp),swipeable:Boolean,lazyRender:Boolean,currentIndex:makeRequiredProp(Number)},emits:["change"],setup(e,{emit:n,slots:r}){const i=vue.ref(),a=l=>n("change",l),o=()=>{var l;const c=(l=r.default)==null?void 0:l.call(r);return e.animated||e.swipeable?vue.createVNode(Swipe,{ref:i,loop:!1,class:bem$5("track"),duration:+e.duration*1e3,touchable:e.swipeable,lazyRender:e.lazyRender,showIndicators:!1,onChange:a},{default:()=>[c]}):c},s=l=>{const c=i.value;c&&c.state.active!==l&&c.swipeTo(l,{immediate:!e.inited})};return vue.watch(()=>e.currentIndex,s),vue.onMounted(()=>{s(e.currentIndex)}),useExpose({swipeRef:i}),()=>vue.createVNode("div",{class:bem$5("content",{animated:e.animated||e.swipeable})},[o()])}});const[name$5,bem$4]=createNamespace("tabs"),tabsProps={type:makeStringProp("line"),color:String,border:Boolean,sticky:Boolean,shrink:Boolean,active:makeNumericProp(0),duration:makeNumericProp(.3),animated:Boolean,ellipsis:truthProp,swipeable:Boolean,scrollspy:Boolean,offsetTop:makeNumericProp(0),background:String,lazyRender:truthProp,showHeader:truthProp,lineWidth:numericProp,lineHeight:numericProp,beforeChange:Function,swipeThreshold:makeNumericProp(5),titleActiveColor:String,titleInactiveColor:String},TABS_KEY=Symbol(name$5);var stdin_default$5=vue.defineComponent({name:name$5,props:tabsProps,emits:["change","scroll","rendered","clickTab","update:active"],setup(e,{emit:n,slots:r}){let i,a,o,s,l;const c=vue.ref(),u=vue.ref(),f=vue.ref(),x=vue.ref(),h=useId(),g=useScrollParent(c),[v,p]=useRefs(),{children:C,linkChildren:b}=useChildren(TABS_KEY),d=vue.reactive({inited:!1,position:"",lineStyle:{},currentIndex:-1}),m=vue.computed(()=>C.length>+e.swipeThreshold||!e.ellipsis||e.shrink),y=vue.computed(()=>({borderColor:e.color,background:e.background})),A=(q,j)=>{var H;return(H=q.name)!=null?H:j},_=vue.computed(()=>{const q=C[d.currentIndex];if(q)return A(q,d.currentIndex)}),k=vue.computed(()=>unitToPx(e.offsetTop)),T=vue.computed(()=>e.sticky?k.value+i:0),F=q=>{const j=u.value,H=v.value;if(!m.value||!j||!H||!H[d.currentIndex])return;const K=H[d.currentIndex].$el,G=K.offsetLeft-(j.offsetWidth-K.offsetWidth)/2;s&&s(),s=scrollLeftTo(j,G,q?0:+e.duration)},M=()=>{const q=d.inited;vue.nextTick(()=>{const j=v.value;if(!j||!j[d.currentIndex]||e.type!=="line"||isHidden(c.value))return;const H=j[d.currentIndex].$el,{lineWidth:K,lineHeight:G}=e,Y=H.offsetLeft+H.offsetWidth/2,J={width:addUnit(K),backgroundColor:e.color,transform:`translateX(${Y}px) translateX(-50%)`};if(q&&(J.transitionDuration=`${e.duration}s`),isDef(G)){const ee=addUnit(G);J.height=ee,J.borderRadius=ee}d.lineStyle=J})},B=q=>{const j=q<d.currentIndex?-1:1;for(;q>=0&&q<C.length;){if(!C[q].disabled)return q;q+=j}},L=(q,j)=>{const H=B(q);if(!isDef(H))return;const K=C[H],G=A(K,H),Y=d.currentIndex!==null;d.currentIndex!==H&&(d.currentIndex=H,j||F(),M()),G!==e.active&&(n("update:active",G),Y&&n("change",G,K.title)),o&&!e.scrollspy&&setRootScrollTop(Math.ceil(getElementTop(c.value)-k.value))},V=(q,j)=>{const H=C.find((G,Y)=>A(G,Y)===q),K=H?C.indexOf(H):0;L(K,j)},U=(q=!1)=>{if(e.scrollspy){const j=C[d.currentIndex].$el;if(j&&g.value){const H=getElementTop(j,g.value)-T.value;a=!0,l&&l(),l=scrollTopTo(g.value,H,q?0:+e.duration,()=>{a=!1})}}},$=(q,j,H)=>{const{title:K,disabled:G}=C[j],Y=A(C[j],j);G||(callInterceptor(e.beforeChange,{args:[Y],done:()=>{L(j),U()}}),route(q)),n("clickTab",{name:Y,title:K,event:H,disabled:G})},P=q=>{o=q.isFixed,n("scroll",q)},I=q=>{vue.nextTick(()=>{V(q),U(!0)})},E=()=>{for(let q=0;q<C.length;q++){const{top:j}=useRect(C[q].$el);if(j>T.value)return q===0?0:q-1}return C.length-1},S=()=>{if(e.scrollspy&&!a){const q=E();L(q)}},N=()=>{if(e.type==="line"&&C.length)return vue.createVNode("div",{class:bem$4("line"),style:d.lineStyle},null)},w=()=>{var q,j,H;const{type:K,border:G,sticky:Y}=e,J=[vue.createVNode("div",{ref:Y?void 0:f,class:[bem$4("wrap"),{[BORDER_TOP_BOTTOM]:K==="line"&&G}]},[vue.createVNode("div",{ref:u,role:"tablist",class:bem$4("nav",[K,{shrink:e.shrink,complete:m.value}]),style:y.value,"aria-orientation":"horizontal"},[(q=r["nav-left"])==null?void 0:q.call(r),C.map(ee=>ee.renderTitle($)),N(),(j=r["nav-right"])==null?void 0:j.call(r)])]),(H=r["nav-bottom"])==null?void 0:H.call(r)];return Y?vue.createVNode("div",{ref:f},[J]):J},R=()=>{M(),vue.nextTick(()=>{var q,j;F(!0),(j=(q=x.value)==null?void 0:q.swipeRef.value)==null||j.resize()})};vue.watch(()=>[e.color,e.duration,e.lineWidth,e.lineHeight],M),vue.watch(windowWidth,R),vue.watch(()=>e.active,q=>{q!==_.value&&V(q)}),vue.watch(()=>C.length,()=>{d.inited&&(V(e.active),M(),vue.nextTick(()=>{F(!0)}))});const O=()=>{V(e.active,!0),vue.nextTick(()=>{d.inited=!0,f.value&&(i=useRect(f.value).height),F(!0)})},D=(q,j)=>n("rendered",q,j);return useExpose({resize:R,scrollTo:I}),vue.onActivated(M),onPopupReopen(M),onMountedOrActivated(O),useVisibilityChange(c,M),useEventListener("scroll",S,{target:g,passive:!0}),b({id:h,props:e,setLine:M,scrollable:m,onRendered:D,currentName:_,setTitleRefs:p,scrollIntoView:F}),()=>vue.createVNode("div",{ref:c,class:bem$4([e.type])},[e.showHeader?e.sticky?vue.createVNode(Sticky,{container:c.value,offsetTop:k.value,onScroll:P},{default:()=>[w()]}):w():null,vue.createVNode(stdin_default$6,{ref:x,count:C.length,inited:d.inited,animated:e.animated,duration:e.duration,swipeable:e.swipeable,lazyRender:e.lazyRender,currentIndex:d.currentIndex,onChange:L},{default:()=>{var q;return[(q=r.default)==null?void 0:q.call(r)]}})])}});const TAB_STATUS_KEY=Symbol(),[name$4,bem$3]=createNamespace("tab"),TabTitle=vue.defineComponent({name:name$4,props:{id:String,dot:Boolean,type:String,color:String,title:String,badge:numericProp,shrink:Boolean,isActive:Boolean,disabled:Boolean,controls:String,scrollable:Boolean,activeColor:String,inactiveColor:String,showZeroBadge:truthProp},setup(e,{slots:n}){const r=vue.computed(()=>{const a={},{type:o,color:s,disabled:l,isActive:c,activeColor:u,inactiveColor:f}=e;s&&o==="card"&&(a.borderColor=s,l||(c?a.backgroundColor=s:a.color=s));const h=c?u:f;return h&&(a.color=h),a}),i=()=>{const a=vue.createVNode("span",{class:bem$3("text",{ellipsis:!e.scrollable})},[n.title?n.title():e.title]);return e.dot||isDef(e.badge)&&e.badge!==""?vue.createVNode(Badge,{dot:e.dot,content:e.badge,showZero:e.showZeroBadge},{default:()=>[a]}):a};return()=>vue.createVNode("div",{id:e.id,role:"tab",class:[bem$3([e.type,{grow:e.scrollable&&!e.shrink,shrink:e.shrink,active:e.isActive,disabled:e.disabled}])],style:r.value,tabindex:e.disabled?void 0:e.isActive?0:-1,"aria-selected":e.isActive,"aria-disabled":e.disabled||void 0,"aria-controls":e.controls},[i()])}}),[name$3,bem$2]=createNamespace("swipe-item");var stdin_default$4=vue.defineComponent({name:name$3,setup(e,{slots:n}){let r;const i=vue.reactive({offset:0,inited:!1,mounted:!1}),{parent:a,index:o}=useParent(SWIPE_KEY);if(!a){process.env.NODE_ENV!=="production"&&console.error("[Vant] <SwipeItem> must be a child component of <Swipe>.");return}const s=vue.computed(()=>{const u={},{vertical:f}=a.props;return a.size.value&&(u[f?"height":"width"]=`${a.size.value}px`),i.offset&&(u.transform=`translate${f?"Y":"X"}(${i.offset}px)`),u}),l=vue.computed(()=>{const{loop:u,lazyRender:f}=a.props;if(!f||r)return!0;if(!i.mounted)return!1;const x=a.activeIndicator.value,h=a.count.value-1,g=x===0&&u?h:x-1,v=x===h&&u?0:x+1;return r=o.value===x||o.value===g||o.value===v,r}),c=u=>{i.offset=u};return vue.onMounted(()=>{vue.nextTick(()=>{i.mounted=!0})}),useExpose({setOffset:c}),()=>{var u;return vue.createVNode("div",{class:bem$2(),style:s.value},[l.value?(u=n.default)==null?void 0:u.call(n):null])}}});const SwipeItem=withInstall(stdin_default$4),[name$2,bem$1]=createNamespace("tab"),tabProps=extend({},routeProps,{dot:Boolean,name:numericProp,badge:numericProp,title:String,disabled:Boolean,titleClass:unknownProp,titleStyle:[String,Object],showZeroBadge:truthProp});var stdin_default$3=vue.defineComponent({name:name$2,props:tabProps,setup(e,{slots:n}){const r=useId(),i=vue.ref(!1),a=vue.getCurrentInstance(),{parent:o,index:s}=useParent(TABS_KEY);if(!o){process.env.NODE_ENV!=="production"&&console.error("[Vant] <Tab> must be a child component of <Tabs>.");return}const l=()=>{var v;return(v=e.name)!=null?v:s.value},c=()=>{i.value=!0,o.props.lazyRender&&vue.nextTick(()=>{o.onRendered(l(),e.title)})},u=vue.computed(()=>{const v=l()===o.currentName.value;return v&&!i.value&&c(),v}),f=vue.ref(""),x=vue.ref("");vue.watchEffect(()=>{const{titleClass:v,titleStyle:p}=e;f.value=v?normalizeClass(v):"",x.value=p&&typeof p!="string"?stringifyStyle(normalizeStyle(p)):p});const h=v=>vue.createVNode(TabTitle,vue.mergeProps({key:r,id:`${o.id}-${s.value}`,ref:o.setTitleRefs(s.value),style:x.value,class:f.value,isActive:u.value,controls:r,scrollable:o.scrollable.value,activeColor:o.props.titleActiveColor,inactiveColor:o.props.titleInactiveColor,onClick:p=>v(a.proxy,s.value,p)},pick(o.props,["type","color","shrink"]),pick(e,["dot","badge","title","disabled","showZeroBadge"])),{title:n.title}),g=vue.ref(!u.value);return vue.watch(u,v=>{v?g.value=!1:doubleRaf(()=>{g.value=!0})}),vue.watch(()=>e.title,()=>{o.setLine(),o.scrollIntoView()}),vue.provide(TAB_STATUS_KEY,u),useExpose({id:r,renderTitle:h}),()=>{var v;const p=`${o.id}-${s.value}`,{animated:C,swipeable:b,scrollspy:d,lazyRender:m}=o.props;if(!n.default&&!C)return;const y=d||u.value;if(C||b)return vue.createVNode(SwipeItem,{id:r,role:"tabpanel",class:bem$1("panel-wrapper",{inactive:g.value}),tabindex:u.value?0:-1,"aria-hidden":!u.value,"aria-labelledby":p},{default:()=>{var k;return[vue.createVNode("div",{class:bem$1("panel")},[(k=n.default)==null?void 0:k.call(n)])]}});const _=i.value||d||!m?(v=n.default)==null?void 0:v.call(n):null;return vue.withDirectives(vue.createVNode("div",{id:r,role:"tabpanel",class:bem$1("panel"),tabindex:y?0:-1,"aria-labelledby":p},[_]),[[vue.vShow,y]])}}});const Tab=withInstall(stdin_default$3),Tabs=withInstall(stdin_default$5),[name$1,bem]=createNamespace("picker-group"),PICKER_GROUP_KEY=Symbol(name$1),pickerGroupProps=extend({tabs:makeArrayProp(),activeTab:makeNumericProp(0),nextStepText:String,showToolbar:truthProp},pickerToolbarProps);var stdin_default$2=vue.defineComponent({name:name$1,props:pickerGroupProps,emits:["confirm","cancel","update:activeTab"],setup(e,{emit:n,slots:r}){const i=useSyncPropRef(()=>e.activeTab,u=>n("update:activeTab",u)),{children:a,linkChildren:o}=useChildren(PICKER_GROUP_KEY);o();const s=()=>+i.value<e.tabs.length-1&&e.nextStepText,l=()=>{s()?i.value=+i.value+1:n("confirm",a.map(u=>u.confirm()))},c=()=>n("cancel");return()=>{var u,f;let x=(f=(u=r.default)==null?void 0:u.call(r))==null?void 0:f.filter(g=>g.type!==vue.Comment).map(g=>g.type===vue.Fragment?g.children:g);x&&(x=flat(x));const h=s()?e.nextStepText:e.confirmButtonText;return vue.createVNode("div",{class:bem()},[e.showToolbar?vue.createVNode(stdin_default$9,{title:e.title,cancelButtonText:e.cancelButtonText,confirmButtonText:h,onConfirm:l,onCancel:c},pick(r,pickerToolbarSlots)):null,vue.createVNode(Tabs,{active:i.value,"onUpdate:active":g=>i.value=g,class:bem("tabs"),shrink:!0,animated:!0,lazyRender:!1},{default:()=>[e.tabs.map((g,v)=>vue.createVNode(Tab,{title:g,titleClass:bem("tab-title")},{default:()=>[x==null?void 0:x[v]]}))]})])}}});const pickerSharedProps=extend({loading:Boolean,readonly:Boolean,allowHtml:Boolean,optionHeight:makeNumericProp(44),showToolbar:truthProp,swipeDuration:makeNumericProp(1e3),visibleOptionNum:makeNumericProp(6)},pickerToolbarProps),pickerProps=extend({},pickerSharedProps,{columns:makeArrayProp(),modelValue:makeArrayProp(),toolbarPosition:makeStringProp("top"),columnsFieldNames:Object});var stdin_default$1=vue.defineComponent({name:name$b,props:pickerProps,emits:["confirm","cancel","change","scrollInto","clickOption","update:modelValue"],setup(e,{emit:n,slots:r}){const i=vue.ref(),a=vue.ref(e.modelValue.slice(0)),{parent:o}=useParent(PICKER_GROUP_KEY),{children:s,linkChildren:l}=useChildren(PICKER_KEY);l();const c=vue.computed(()=>assignDefaultFields(e.columnsFieldNames)),u=vue.computed(()=>unitToPx(e.optionHeight)),f=vue.computed(()=>getColumnsType(e.columns,c.value)),x=vue.computed(()=>{const{columns:B}=e;switch(f.value){case"multiple":return B;case"cascade":return formatCascadeColumns(B,c.value,a);default:return[B]}}),h=vue.computed(()=>x.value.some(B=>B.length)),g=vue.computed(()=>x.value.map((B,L)=>findOptionByValue(B,a.value[L],c.value))),v=vue.computed(()=>x.value.map((B,L)=>B.findIndex(V=>V[c.value.value]===a.value[L]))),p=(B,L)=>{if(a.value[B]!==L){const V=a.value.slice(0);V[B]=L,a.value=V}},C=()=>({selectedValues:a.value.slice(0),selectedOptions:g.value,selectedIndexes:v.value}),b=(B,L)=>{p(L,B),f.value==="cascade"&&a.value.forEach((V,U)=>{const $=x.value[U];isOptionExist($,V,c.value)||p(U,$.length?$[0][c.value.value]:void 0)}),vue.nextTick(()=>{n("change",extend({columnIndex:L},C()))})},d=(B,L)=>{const V={columnIndex:L,currentOption:B};n("clickOption",extend(C(),V)),n("scrollInto",V)},m=()=>{s.forEach(L=>L.stopMomentum());const B=C();return vue.nextTick(()=>{n("confirm",B)}),B},y=()=>n("cancel",C()),A=()=>x.value.map((B,L)=>vue.createVNode(stdin_default$a,{value:a.value[L],fields:c.value,options:B,readonly:e.readonly,allowHtml:e.allowHtml,optionHeight:u.value,swipeDuration:e.swipeDuration,visibleOptionNum:e.visibleOptionNum,onChange:V=>b(V,L),onClickOption:V=>d(V,L),onScrollInto:V=>{n("scrollInto",{currentOption:V,columnIndex:L})}},{option:r.option})),_=B=>{if(h.value){const L={height:`${u.value}px`},V={backgroundSize:`100% ${(B-u.value)/2}px`};return[vue.createVNode("div",{class:bem$9("mask"),style:V},null),vue.createVNode("div",{class:[BORDER_UNSET_TOP_BOTTOM,bem$9("frame")],style:L},null)]}},k=()=>{const B=u.value*+e.visibleOptionNum,L={height:`${B}px`};return vue.createVNode("div",{ref:i,class:bem$9("columns"),style:L},[A(),_(B)])},T=()=>{if(e.showToolbar&&!o)return vue.createVNode(stdin_default$9,vue.mergeProps(pick(e,pickerToolbarPropKeys),{onConfirm:m,onCancel:y}),pick(r,pickerToolbarSlots))};vue.watch(x,B=>{B.forEach((L,V)=>{L.length&&!isOptionExist(L,a.value[V],c.value)&&p(V,getFirstEnabledOption(L)[c.value.value])})},{immediate:!0});let F;return vue.watch(()=>e.modelValue,B=>{!isSameValue(B,a.value)&&!isSameValue(B,F)&&(a.value=B.slice(0),F=B.slice(0))},{deep:!0}),vue.watch(a,B=>{isSameValue(B,e.modelValue)||(F=B.slice(0),n("update:modelValue",F))},{immediate:!0}),useEventListener("touchmove",preventDefault,{target:i}),useExpose({confirm:m,getSelectedOptions:()=>g.value}),()=>{var B,L;return vue.createVNode("div",{class:bem$9()},[e.toolbarPosition==="top"?T():null,e.loading?vue.createVNode(Loading,{class:bem$9("loading")},null):null,(B=r["columns-top"])==null?void 0:B.call(r),k(),(L=r["columns-bottom"])==null?void 0:L.call(r),e.toolbarPosition==="bottom"?T():null])}}});const Picker=withInstall(stdin_default$1),sharedProps=extend({},pickerSharedProps,{modelValue:makeArrayProp(),filter:Function,formatter:{type:Function,default:(e,n)=>n}}),pickerInheritKeys=Object.keys(pickerSharedProps);function times(e,n){if(e<0)return[];const r=Array(e);let i=-1;for(;++i<e;)r[i]=n(i);return r}const getMonthEndDay=(e,n)=>32-new Date(e,n-1,32).getDate(),genOptions=(e,n,r,i,a,o)=>{const s=times(n-e+1,l=>{const c=padZero(e+l);return i(r,{text:c,value:c})});return a?a(r,s,o):s},formatValueRange=(e,n)=>e.map((r,i)=>{const a=n[i];if(a.length){const o=+a[0].value,s=+a[a.length-1].value;return padZero(clamp(+r,o,s))}return r}),currentYear=new Date().getFullYear(),[name]=createNamespace("date-picker"),datePickerProps=extend({},sharedProps,{columnsType:{type:Array,default:()=>["year","month","day"]},minDate:{type:Date,default:()=>new Date(currentYear-10,0,1),validator:isDate},maxDate:{type:Date,default:()=>new Date(currentYear+10,11,31),validator:isDate}});var stdin_default=vue.defineComponent({name,props:datePickerProps,emits:["confirm","cancel","change","update:modelValue"],setup(e,{emit:n,slots:r}){const i=vue.ref(e.modelValue),a=vue.ref(!1),o=vue.ref(),s=()=>{const y=e.minDate.getFullYear(),A=e.maxDate.getFullYear();return genOptions(y,A,"year",e.formatter,e.filter)},l=y=>y===e.minDate.getFullYear(),c=y=>y===e.maxDate.getFullYear(),u=y=>y===e.minDate.getMonth()+1,f=y=>y===e.maxDate.getMonth()+1,x=y=>{const{minDate:A,columnsType:_}=e,k=_.indexOf(y),T=a.value?e.modelValue[k]:i.value[k];if(T)return+T;switch(y){case"year":return A.getFullYear();case"month":return A.getMonth()+1;case"day":return A.getDate()}},h=()=>{const y=x("year"),A=l(y)?e.minDate.getMonth()+1:1,_=c(y)?e.maxDate.getMonth()+1:12;return genOptions(A,_,"month",e.formatter,e.filter)},g=()=>{const y=x("year"),A=x("month"),_=l(y)&&u(A)?e.minDate.getDate():1,k=c(y)&&f(A)?e.maxDate.getDate():getMonthEndDay(y,A);return genOptions(_,k,"day",e.formatter,e.filter)},v=()=>{var y;return(y=o.value)==null?void 0:y.confirm()},p=()=>i.value,C=vue.computed(()=>e.columnsType.map(y=>{switch(y){case"year":return s();case"month":return h();case"day":return g();default:if(process.env.NODE_ENV!=="production")throw new Error(`[Vant] DatePicker: unsupported columns type: ${y}`);return[]}}));vue.watch(i,y=>{isSameValue(y,e.modelValue)||n("update:modelValue",y)}),vue.watch(()=>e.modelValue,(y,A)=>{a.value=isSameValue(A,i.value),y=formatValueRange(y,C.value),isSameValue(y,i.value)||(i.value=y),a.value=!1},{immediate:!0});const b=(...y)=>n("change",...y),d=(...y)=>n("cancel",...y),m=(...y)=>n("confirm",...y);return useExpose({confirm:v,getSelectedDate:p}),()=>vue.createVNode(Picker,vue.mergeProps({ref:o,modelValue:i.value,"onUpdate:modelValue":y=>i.value=y,columns:C.value,onChange:b,onCancel:d,onConfirm:m},pick(e,pickerInheritKeys)),r)}});const DatePicker=withInstall(stdin_default),PickerGroup=withInstall(stdin_default$2),index$1="",install=e=>{e.use(DatePicker),e.use(Popup),e.use(PickerGroup),e.use(Picker),Object.keys(components).forEach(n=>{const r=components[n];r.install&&e.use(r)})},index={install};exports.EcanBar=EcanBar,exports.EcanBorder=EcanBorder,exports.EcanButton=EcanButton,exports.EcanCheckbox=EcanCheckbox,exports.EcanCirculate=EcanCirculate,exports.EcanComboGraph=EcanComboGraph,exports.EcanCounter=EcanCounter,exports.EcanCustomGraph=EcanCustomGraph,exports.EcanDataSelect=EcanDataSelect,exports.EcanDatePicker=EcanDatePicker,exports.EcanIframe=EcanIframe,exports.EcanImage=EcanImage,exports.EcanInput=EcanInput,exports.EcanLine=EcanLine,exports.EcanList=EcanList,exports.EcanMap=EcanMap,exports.EcanModal=EcanModal,exports.EcanPageConfig=EcanPageConfig,exports.EcanPie=EcanPie,exports.EcanPivotTable=EcanPivotTable,exports.EcanProportion=EcanProportion,exports.EcanProviderConfig=EcanProviderConfig,exports.EcanRadar=EcanRadar,exports.EcanRadio=EcanRadio,exports.EcanRangePicker=EcanRangePicker,exports.EcanScatter=EcanScatter,exports.EcanScrollText=EcanScrollText,exports.EcanSelect=EcanSelect,exports.EcanTable=EcanTable,exports.EcanTabs=EcanTabs,exports.EcanTemplate=EcanTemplate,exports.EcanText=EcanText,exports.EcanTimeDisplay=EcanTimeDisplay,exports.EcanTreeSelect=EcanTreeSelect,exports.EcanValueLine=EcanValueLine,exports.barComponentProps=barComponentProps,exports.barEvents=barEvents,exports.barProps=barProps,exports.borderComponentProps=borderComponentProps,exports.borderEvents=borderEvents,exports.borderProps=borderProps,exports.buttonComponentProps=buttonComponentProps,exports.buttonEvents=buttonEvents,exports.buttonProps=buttonProps,exports.checkboxComponentProps=checkboxComponentProps,exports.checkboxEvents=checkboxEvents,exports.checkboxProps=checkboxProps,exports.circulateComponentProps=circulateComponentProps,exports.circulateEvents=circulateEvents,exports.circulateProps=circulateProps,exports.comboGraphComponentProps=comboGraphComponentProps,exports.comboGraphEvents=comboGraphEvents,exports.comboGraphProps=comboGraphProps,exports.compatibleMobileList=compatibleMobileList,exports.counterComponentProps=counterComponentProps,exports.counterEvents=counterEvents,exports.counterProps=counterProps,exports.customGraphComponentProps=customGraphComponentProps,exports.customGraphProps=customGraphProps,exports.dataSelectComponentProps=dataSelectComponentProps,exports.dataSelectEvents=dataSelectEvents,exports.dataSelectProps=dataSelectProps,exports.datePickerComponentProps=datePickerComponentProps,exports.datePickerEvents=datePickerEvents,exports.datePickerProps=datePickerProps$1,exports.default=index,exports.handleScrollCombinations=handleScrollCombinations,exports.iframeComponentProps=iframeComponentProps,exports.iframeProps=iframeProps,exports.imageComponentProps=imageComponentProps,exports.imageEvents=imageEvents,exports.imageProps=imageProps,exports.inputComponentProps=inputComponentProps,exports.inputEvents=inputEvents,exports.inputProps=inputProps,exports.lineComponentProps=lineComponentProps,exports.lineEvents=lineEvents,exports.lineProps=lineProps,exports.listComponentProps=listComponentProps,exports.listEvents=listEvents,exports.listProps=listProps,exports.mapComponentProps=mapComponentProps,exports.mapEvents=mapEvents,exports.mapProps=mapProps,exports.modalComponentProps=modalComponentProps,exports.modalEvents=modalEvents,exports.modalProps=modalProps,exports.moveToComponentList=moveToComponentList,exports.pageConfig=pageConfig,exports.pageConfigComponentProps=pageConfigComponentProps,exports.pieComponentProps=pieComponentProps,exports.pieEvents=pieEvents,exports.pieProps=pieProps,exports.pivotTableComponentProps=pivotTableComponentProps,exports.pivotTableEvents=pivotTableEvents,exports.pivotTableProps=pivotTableProps,exports.proportionComponentProps=proportionComponentProps,exports.proportionEvents=proportionEvents,exports.proportionProps=proportionProps,exports.providerConfig=providerConfig,exports.providerConfigComponentProps=providerConfigComponentProps,exports.radarComponentProps=radarComponentProps,exports.radarEvents=radarEvents,exports.radarProps=radarProps,exports.radioComponentProps=radioComponentProps,exports.radioEvents=radioEvents,exports.radioProps=radioProps,exports.rangePickerComponentProps=rangePickerComponentProps,exports.rangePickerEvents=rangePickerEvents,exports.rangePickerProps=rangePickerProps,exports.scatterComponentProps=scatterComponentProps,exports.scatterEvents=scatterEvents,exports.scatterProps=scatterProps,exports.selectComponentProps=selectComponentProps,exports.selectEvents=selectEvents,exports.selectProps=selectProps,exports.tableComponentProps=tableComponentProps,exports.tableEvents=tableEvents,exports.tableProps=tableProps,exports.tabsComponentProps=tabsComponentProps,exports.tabsEvents=tabsEvents,exports.tabsProps=tabsProps$1,exports.templateComponentProps=templateComponentProps,exports.templateEvents=templateEvents,exports.templateProps=templateProps,exports.textComponentProps=textComponentProps,exports.textEvents=textEvents,exports.textProps=textProps,exports.timeDisplayComponentProps=timeDisplayComponentProps,exports.timeDisplayEvents=timeDisplayEvents,exports.timeDisplayProps=timeDisplayProps,exports.treeSelectComponentProps=treeSelectComponentProps,exports.treeSelectEvents=treeSelectEvents,exports.treeSelectProps=treeSelectProps,exports.valueLineComponentProps=valueLineComponentProps,exports.valueLineEvents=valueLineEvents,exports.valueLineProps=valueLineProps,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
133
133
  //# sourceMappingURL=index.umd.js.map